@alexgorbatchev/shadcn 0.0.104 → 0.0.106
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-38barrma.js +110 -0
- package/dist/{chunk-p8bdmafq.js → chunk-j7fvvgyp.js} +2 -2
- package/dist/{chunk-23ppkypt.js → chunk-me64e034.js} +1 -100
- package/dist/{chunk-e1hkq1mw.js → chunk-rxmcz0j1.js} +617 -481
- package/dist/components/ActionBar.d.ts +31 -0
- package/dist/components/ErrorSummary.d.ts +21 -0
- package/dist/components/Outline.d.ts +20 -0
- package/dist/components/data-grid/index.js +7 -5
- package/dist/components/image-viewer/ImageRegionFields.d.ts +15 -0
- package/dist/components/image-viewer/ImageRegionSelect.d.ts +11 -6
- package/dist/components/image-viewer/imageRegion.d.ts +21 -0
- package/dist/components/image-viewer/index.d.ts +3 -0
- package/dist/components/image-viewer/index.js +247 -92
- 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 +487 -228
- package/dist/index.d.ts +5 -0
- package/dist/index.js +26 -10
- package/dist/prototype.js +1 -1
- package/llms/components/data-display/ImageViewer.md +2 -2
- 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 -1
- package/package.json +1 -1
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
ComboboxChip2,
|
|
102
102
|
ComboboxChipsInput2,
|
|
103
103
|
useComboboxAnchor2
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-me64e034.js";
|
|
105
105
|
import {
|
|
106
106
|
Empty2,
|
|
107
107
|
EmptyHeader2,
|
|
@@ -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,
|
|
@@ -1426,9 +1562,9 @@ function ButtonGroupSeparator2({
|
|
|
1426
1562
|
});
|
|
1427
1563
|
}
|
|
1428
1564
|
// src/components/DescriptionList.tsx
|
|
1429
|
-
import { jsx as
|
|
1565
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1430
1566
|
function DescriptionList2({ density, className, ...props }) {
|
|
1431
|
-
return /* @__PURE__ */
|
|
1567
|
+
return /* @__PURE__ */ jsx20("dl", {
|
|
1432
1568
|
"data-density": density,
|
|
1433
1569
|
"data-slot": "description-list",
|
|
1434
1570
|
className: cn2("flex w-full min-w-0 flex-col gap-panel text-sm", className),
|
|
@@ -1436,7 +1572,7 @@ function DescriptionList2({ density, className, ...props }) {
|
|
|
1436
1572
|
});
|
|
1437
1573
|
}
|
|
1438
1574
|
function DescriptionListItem2({ density, className, ...props }) {
|
|
1439
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ jsx20("div", {
|
|
1440
1576
|
"data-density": density,
|
|
1441
1577
|
"data-slot": "description-list-item",
|
|
1442
1578
|
className: cn2("flex min-w-0 flex-col gap-1", className),
|
|
@@ -1444,7 +1580,7 @@ function DescriptionListItem2({ density, className, ...props }) {
|
|
|
1444
1580
|
});
|
|
1445
1581
|
}
|
|
1446
1582
|
function DescriptionTerm2({ density, className, ...props }) {
|
|
1447
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsx20("dt", {
|
|
1448
1584
|
"data-density": density,
|
|
1449
1585
|
"data-slot": "description-term",
|
|
1450
1586
|
className: cn2("min-w-0 font-medium break-words text-muted-foreground", className),
|
|
@@ -1452,7 +1588,7 @@ function DescriptionTerm2({ density, className, ...props }) {
|
|
|
1452
1588
|
});
|
|
1453
1589
|
}
|
|
1454
1590
|
function DescriptionDetails2({ density, className, ...props }) {
|
|
1455
|
-
return /* @__PURE__ */
|
|
1591
|
+
return /* @__PURE__ */ jsx20("dd", {
|
|
1456
1592
|
"data-density": density,
|
|
1457
1593
|
"data-slot": "description-details",
|
|
1458
1594
|
className: cn2("min-w-0 break-words whitespace-pre-wrap text-foreground", className),
|
|
@@ -1463,9 +1599,9 @@ function DescriptionDetails2({ density, className, ...props }) {
|
|
|
1463
1599
|
import { mergeProps as mergeProps5 } from "@base-ui/react/merge-props";
|
|
1464
1600
|
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
1465
1601
|
import { cva as cva2 } from "class-variance-authority";
|
|
1466
|
-
import { jsx as
|
|
1602
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1467
1603
|
function ItemGroup2({ density, className, ...props }) {
|
|
1468
|
-
return /* @__PURE__ */
|
|
1604
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1469
1605
|
role: "list",
|
|
1470
1606
|
"data-density": density,
|
|
1471
1607
|
"data-slot": "item-group",
|
|
@@ -1474,7 +1610,7 @@ function ItemGroup2({ density, className, ...props }) {
|
|
|
1474
1610
|
});
|
|
1475
1611
|
}
|
|
1476
1612
|
function ItemSeparator2({ density, className, ...props }) {
|
|
1477
|
-
return /* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ jsx21(Separator2, {
|
|
1478
1614
|
"data-density": density,
|
|
1479
1615
|
"data-slot": "item-separator",
|
|
1480
1616
|
orientation: "horizontal",
|
|
@@ -1535,7 +1671,7 @@ var itemMediaVariants = cva2("flex shrink-0 items-center justify-center gap-2 gr
|
|
|
1535
1671
|
}
|
|
1536
1672
|
});
|
|
1537
1673
|
function ItemMedia2({ density, className, variant = "default", ...props }) {
|
|
1538
|
-
return /* @__PURE__ */
|
|
1674
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1539
1675
|
"data-density": density,
|
|
1540
1676
|
"data-slot": "item-media",
|
|
1541
1677
|
"data-variant": variant,
|
|
@@ -1544,7 +1680,7 @@ function ItemMedia2({ density, className, variant = "default", ...props }) {
|
|
|
1544
1680
|
});
|
|
1545
1681
|
}
|
|
1546
1682
|
function ItemContent2({ density, className, ...props }) {
|
|
1547
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1548
1684
|
"data-density": density,
|
|
1549
1685
|
"data-slot": "item-content",
|
|
1550
1686
|
className: cn2("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", className),
|
|
@@ -1552,7 +1688,7 @@ function ItemContent2({ density, className, ...props }) {
|
|
|
1552
1688
|
});
|
|
1553
1689
|
}
|
|
1554
1690
|
function ItemTitle2({ density, className, wrap = false, ...props }) {
|
|
1555
|
-
return /* @__PURE__ */
|
|
1691
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1556
1692
|
"data-density": density,
|
|
1557
1693
|
"data-slot": "item-title",
|
|
1558
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),
|
|
@@ -1560,7 +1696,7 @@ function ItemTitle2({ density, className, wrap = false, ...props }) {
|
|
|
1560
1696
|
});
|
|
1561
1697
|
}
|
|
1562
1698
|
function ItemDescription2({ density, className, ...props }) {
|
|
1563
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ jsx21("p", {
|
|
1564
1700
|
"data-density": density,
|
|
1565
1701
|
"data-slot": "item-description",
|
|
1566
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),
|
|
@@ -1568,7 +1704,7 @@ function ItemDescription2({ density, className, ...props }) {
|
|
|
1568
1704
|
});
|
|
1569
1705
|
}
|
|
1570
1706
|
function ItemActions2({ density, className, ...props }) {
|
|
1571
|
-
return /* @__PURE__ */
|
|
1707
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1572
1708
|
"data-density": density,
|
|
1573
1709
|
"data-slot": "item-actions",
|
|
1574
1710
|
className: cn2("flex items-center gap-2", className),
|
|
@@ -1576,7 +1712,7 @@ function ItemActions2({ density, className, ...props }) {
|
|
|
1576
1712
|
});
|
|
1577
1713
|
}
|
|
1578
1714
|
function ItemHeader2({ density, className, ...props }) {
|
|
1579
|
-
return /* @__PURE__ */
|
|
1715
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1580
1716
|
"data-density": density,
|
|
1581
1717
|
"data-slot": "item-header",
|
|
1582
1718
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1584,7 +1720,7 @@ function ItemHeader2({ density, className, ...props }) {
|
|
|
1584
1720
|
});
|
|
1585
1721
|
}
|
|
1586
1722
|
function ItemFooter2({ density, className, ...props }) {
|
|
1587
|
-
return /* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
1588
1724
|
"data-density": density,
|
|
1589
1725
|
"data-slot": "item-footer",
|
|
1590
1726
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1593,9 +1729,9 @@ function ItemFooter2({ density, className, ...props }) {
|
|
|
1593
1729
|
}
|
|
1594
1730
|
// src/components/Pagination.tsx
|
|
1595
1731
|
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
1596
|
-
import { jsx as
|
|
1732
|
+
import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1597
1733
|
function Pagination2({ density, className, ...props }) {
|
|
1598
|
-
return /* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ jsx22("nav", {
|
|
1599
1735
|
role: "navigation",
|
|
1600
1736
|
"aria-label": "pagination",
|
|
1601
1737
|
"data-density": density,
|
|
@@ -1605,7 +1741,7 @@ function Pagination2({ density, className, ...props }) {
|
|
|
1605
1741
|
});
|
|
1606
1742
|
}
|
|
1607
1743
|
function PaginationContent2({ density, className, ...props }) {
|
|
1608
|
-
return /* @__PURE__ */
|
|
1744
|
+
return /* @__PURE__ */ jsx22("ul", {
|
|
1609
1745
|
"data-density": density,
|
|
1610
1746
|
"data-slot": "pagination-content",
|
|
1611
1747
|
className: cn2("flex items-center gap-0.5", className),
|
|
@@ -1613,7 +1749,7 @@ function PaginationContent2({ density, className, ...props }) {
|
|
|
1613
1749
|
});
|
|
1614
1750
|
}
|
|
1615
1751
|
function PaginationItem2({ ...props }) {
|
|
1616
|
-
return /* @__PURE__ */
|
|
1752
|
+
return /* @__PURE__ */ jsx22("li", {
|
|
1617
1753
|
"data-slot": "pagination-item",
|
|
1618
1754
|
...props
|
|
1619
1755
|
});
|
|
@@ -1626,7 +1762,7 @@ function PaginationLink2({
|
|
|
1626
1762
|
size = "icon",
|
|
1627
1763
|
...props
|
|
1628
1764
|
}) {
|
|
1629
|
-
return /* @__PURE__ */
|
|
1765
|
+
return /* @__PURE__ */ jsx22(AnalyticsLink, {
|
|
1630
1766
|
component: "PaginationLink",
|
|
1631
1767
|
analytics,
|
|
1632
1768
|
"data-density": density,
|
|
@@ -1643,18 +1779,18 @@ function PaginationPrevious2({
|
|
|
1643
1779
|
text = "Previous",
|
|
1644
1780
|
...props
|
|
1645
1781
|
}) {
|
|
1646
|
-
return /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ jsxs14(PaginationLink2, {
|
|
1647
1783
|
density,
|
|
1648
1784
|
"aria-label": "Go to previous page",
|
|
1649
1785
|
size: "default",
|
|
1650
1786
|
className: cn2("ps-1.5!", className),
|
|
1651
1787
|
...props,
|
|
1652
1788
|
children: [
|
|
1653
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ jsx22(ChevronLeftIcon, {
|
|
1654
1790
|
"data-icon": "inline-start",
|
|
1655
1791
|
className: "rtl:rotate-180"
|
|
1656
1792
|
}),
|
|
1657
|
-
/* @__PURE__ */
|
|
1793
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1658
1794
|
className: "hidden sm:block",
|
|
1659
1795
|
children: text
|
|
1660
1796
|
})
|
|
@@ -1662,18 +1798,18 @@ function PaginationPrevious2({
|
|
|
1662
1798
|
});
|
|
1663
1799
|
}
|
|
1664
1800
|
function PaginationNext2({ density, className, text = "Next", ...props }) {
|
|
1665
|
-
return /* @__PURE__ */
|
|
1801
|
+
return /* @__PURE__ */ jsxs14(PaginationLink2, {
|
|
1666
1802
|
density,
|
|
1667
1803
|
"aria-label": "Go to next page",
|
|
1668
1804
|
size: "default",
|
|
1669
1805
|
className: cn2("pe-1.5!", className),
|
|
1670
1806
|
...props,
|
|
1671
1807
|
children: [
|
|
1672
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1673
1809
|
className: "hidden sm:block",
|
|
1674
1810
|
children: text
|
|
1675
1811
|
}),
|
|
1676
|
-
/* @__PURE__ */
|
|
1812
|
+
/* @__PURE__ */ jsx22(ChevronRightIcon2, {
|
|
1677
1813
|
"data-icon": "inline-end",
|
|
1678
1814
|
className: "rtl:rotate-180"
|
|
1679
1815
|
})
|
|
@@ -1681,15 +1817,15 @@ function PaginationNext2({ density, className, text = "Next", ...props }) {
|
|
|
1681
1817
|
});
|
|
1682
1818
|
}
|
|
1683
1819
|
function PaginationEllipsis2({ density, className, ...props }) {
|
|
1684
|
-
return /* @__PURE__ */
|
|
1820
|
+
return /* @__PURE__ */ jsxs14("span", {
|
|
1685
1821
|
"aria-hidden": true,
|
|
1686
1822
|
"data-density": density,
|
|
1687
1823
|
"data-slot": "pagination-ellipsis",
|
|
1688
1824
|
className: cn2("flex size-control items-center justify-center [&_svg:not([class*='size-'])]:size-4", className),
|
|
1689
1825
|
...props,
|
|
1690
1826
|
children: [
|
|
1691
|
-
/* @__PURE__ */
|
|
1692
|
-
/* @__PURE__ */
|
|
1827
|
+
/* @__PURE__ */ jsx22(MoreHorizontalIcon2, {}),
|
|
1828
|
+
/* @__PURE__ */ jsx22("span", {
|
|
1693
1829
|
className: "sr-only",
|
|
1694
1830
|
children: "More pages"
|
|
1695
1831
|
})
|
|
@@ -1700,9 +1836,9 @@ function PaginationEllipsis2({ density, className, ...props }) {
|
|
|
1700
1836
|
import { CheckIcon } from "lucide-react";
|
|
1701
1837
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1702
1838
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
1703
|
-
import { jsx as
|
|
1839
|
+
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1704
1840
|
function Menubar2({ density, className, ...props }) {
|
|
1705
|
-
return /* @__PURE__ */
|
|
1841
|
+
return /* @__PURE__ */ jsx23(MenubarPrimitive, {
|
|
1706
1842
|
"data-density": density,
|
|
1707
1843
|
"data-slot": "menubar",
|
|
1708
1844
|
className: (state) => cn2("flex h-control items-center gap-0.5 rounded-sm border p-px", typeof className === "function" ? className(state) : className),
|
|
@@ -1714,26 +1850,26 @@ function MenubarMenu2({
|
|
|
1714
1850
|
...props
|
|
1715
1851
|
}) {
|
|
1716
1852
|
const trackedOnOpenChange = useAnalyticsCallback("MenubarMenu", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
1717
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsx23(DropdownMenu2, {
|
|
1718
1854
|
"data-slot": "menubar-menu",
|
|
1719
1855
|
...props,
|
|
1720
1856
|
onOpenChange: trackedOnOpenChange
|
|
1721
1857
|
});
|
|
1722
1858
|
}
|
|
1723
1859
|
function MenubarGroup2({ ...props }) {
|
|
1724
|
-
return /* @__PURE__ */
|
|
1860
|
+
return /* @__PURE__ */ jsx23(MenuGroup2, {
|
|
1725
1861
|
"data-slot": "menubar-group",
|
|
1726
1862
|
...props
|
|
1727
1863
|
});
|
|
1728
1864
|
}
|
|
1729
1865
|
function MenubarPortal2({ ...props }) {
|
|
1730
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsx23(MenuPortal, {
|
|
1731
1867
|
"data-slot": "menubar-portal",
|
|
1732
1868
|
...props
|
|
1733
1869
|
});
|
|
1734
1870
|
}
|
|
1735
1871
|
function MenubarTrigger2({ density, className, ...props }) {
|
|
1736
|
-
return /* @__PURE__ */
|
|
1872
|
+
return /* @__PURE__ */ jsx23(DropdownMenuTrigger2, {
|
|
1737
1873
|
"data-density": density,
|
|
1738
1874
|
"data-slot": "menubar-trigger",
|
|
1739
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),
|
|
@@ -1748,7 +1884,7 @@ function MenubarContent2({
|
|
|
1748
1884
|
sideOffset = 8,
|
|
1749
1885
|
...props
|
|
1750
1886
|
}) {
|
|
1751
|
-
return /* @__PURE__ */
|
|
1887
|
+
return /* @__PURE__ */ jsx23(MenuPopup, {
|
|
1752
1888
|
density,
|
|
1753
1889
|
"data-slot": "menubar-content",
|
|
1754
1890
|
align,
|
|
@@ -1767,7 +1903,7 @@ function MenubarItem2({
|
|
|
1767
1903
|
...props
|
|
1768
1904
|
}) {
|
|
1769
1905
|
const trackedOnClick = useAnalyticsCallback("MenubarItem", analytics, { name: "ui.activate" }, props.onClick);
|
|
1770
|
-
return /* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ jsx23(MenuItem2, {
|
|
1771
1907
|
density,
|
|
1772
1908
|
"data-slot": "menubar-item",
|
|
1773
1909
|
inset,
|
|
@@ -1787,7 +1923,7 @@ function MenubarCheckboxItem2({
|
|
|
1787
1923
|
...props
|
|
1788
1924
|
}) {
|
|
1789
1925
|
const trackedOnCheckedChange = useAnalyticsCallback("MenubarCheckboxItem", analytics, { name: "ui.change-request" }, props.onCheckedChange);
|
|
1790
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ jsxs15(MenuPrimitive.CheckboxItem, {
|
|
1791
1927
|
"data-density": density,
|
|
1792
1928
|
"data-slot": "menubar-checkbox-item",
|
|
1793
1929
|
"data-inset": inset,
|
|
@@ -1796,10 +1932,10 @@ function MenubarCheckboxItem2({
|
|
|
1796
1932
|
...props,
|
|
1797
1933
|
onCheckedChange: trackedOnCheckedChange,
|
|
1798
1934
|
children: [
|
|
1799
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ jsx23("span", {
|
|
1800
1936
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1801
|
-
children: /* @__PURE__ */
|
|
1802
|
-
children: /* @__PURE__ */
|
|
1937
|
+
children: /* @__PURE__ */ jsx23(MenuPrimitive.CheckboxItemIndicator, {
|
|
1938
|
+
children: /* @__PURE__ */ jsx23(CheckIcon, {})
|
|
1803
1939
|
})
|
|
1804
1940
|
}),
|
|
1805
1941
|
children
|
|
@@ -1807,23 +1943,23 @@ function MenubarCheckboxItem2({
|
|
|
1807
1943
|
});
|
|
1808
1944
|
}
|
|
1809
1945
|
function MenubarRadioGroup2({ ...props }) {
|
|
1810
|
-
return /* @__PURE__ */
|
|
1946
|
+
return /* @__PURE__ */ jsx23(MenuRadioGroup2, {
|
|
1811
1947
|
"data-slot": "menubar-radio-group",
|
|
1812
1948
|
...props
|
|
1813
1949
|
});
|
|
1814
1950
|
}
|
|
1815
1951
|
function MenubarRadioItem2({ density, className, children, inset, ...props }) {
|
|
1816
|
-
return /* @__PURE__ */
|
|
1952
|
+
return /* @__PURE__ */ jsxs15(MenuPrimitive.RadioItem, {
|
|
1817
1953
|
"data-density": density,
|
|
1818
1954
|
"data-slot": "menubar-radio-item",
|
|
1819
1955
|
"data-inset": inset,
|
|
1820
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),
|
|
1821
1957
|
...props,
|
|
1822
1958
|
children: [
|
|
1823
|
-
/* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ jsx23("span", {
|
|
1824
1960
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1825
|
-
children: /* @__PURE__ */
|
|
1826
|
-
children: /* @__PURE__ */
|
|
1961
|
+
children: /* @__PURE__ */ jsx23(MenuPrimitive.RadioItemIndicator, {
|
|
1962
|
+
children: /* @__PURE__ */ jsx23(CheckIcon, {})
|
|
1827
1963
|
})
|
|
1828
1964
|
}),
|
|
1829
1965
|
children
|
|
@@ -1831,7 +1967,7 @@ function MenubarRadioItem2({ density, className, children, inset, ...props }) {
|
|
|
1831
1967
|
});
|
|
1832
1968
|
}
|
|
1833
1969
|
function MenubarLabel2({ density, className, inset, ...props }) {
|
|
1834
|
-
return /* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ jsx23(MenuLabel2, {
|
|
1835
1971
|
density,
|
|
1836
1972
|
"data-slot": "menubar-label",
|
|
1837
1973
|
inset,
|
|
@@ -1840,7 +1976,7 @@ function MenubarLabel2({ density, className, inset, ...props }) {
|
|
|
1840
1976
|
});
|
|
1841
1977
|
}
|
|
1842
1978
|
function MenubarSeparator2({ density, className, ...props }) {
|
|
1843
|
-
return /* @__PURE__ */
|
|
1979
|
+
return /* @__PURE__ */ jsx23(MenuSeparator2, {
|
|
1844
1980
|
density,
|
|
1845
1981
|
"data-slot": "menubar-separator",
|
|
1846
1982
|
className: (state) => cn2("-mx-1 my-1 h-px bg-border", typeof className === "function" ? className(state) : className),
|
|
@@ -1848,7 +1984,7 @@ function MenubarSeparator2({ density, className, ...props }) {
|
|
|
1848
1984
|
});
|
|
1849
1985
|
}
|
|
1850
1986
|
function MenubarShortcut2({ density, className, ...props }) {
|
|
1851
|
-
return /* @__PURE__ */
|
|
1987
|
+
return /* @__PURE__ */ jsx23(MenuShortcut2, {
|
|
1852
1988
|
"data-density": density,
|
|
1853
1989
|
"data-slot": "menubar-shortcut",
|
|
1854
1990
|
className: cn2("ms-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground", className),
|
|
@@ -1856,13 +1992,13 @@ function MenubarShortcut2({ density, className, ...props }) {
|
|
|
1856
1992
|
});
|
|
1857
1993
|
}
|
|
1858
1994
|
function MenubarSub2({ ...props }) {
|
|
1859
|
-
return /* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ jsx23(MenuSub2, {
|
|
1860
1996
|
"data-slot": "menubar-sub",
|
|
1861
1997
|
...props
|
|
1862
1998
|
});
|
|
1863
1999
|
}
|
|
1864
2000
|
function MenubarSubTrigger2({ density, className, inset, ...props }) {
|
|
1865
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ jsx23(MenuSubTrigger2, {
|
|
1866
2002
|
density,
|
|
1867
2003
|
"data-slot": "menubar-sub-trigger",
|
|
1868
2004
|
inset,
|
|
@@ -1871,7 +2007,7 @@ function MenubarSubTrigger2({ density, className, inset, ...props }) {
|
|
|
1871
2007
|
});
|
|
1872
2008
|
}
|
|
1873
2009
|
function MenubarSubContent2({ density, className, ...props }) {
|
|
1874
|
-
return /* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ jsx23(MenuSubContent2, {
|
|
1875
2011
|
density,
|
|
1876
2012
|
"data-slot": "menubar-sub-content",
|
|
1877
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),
|
|
@@ -1882,7 +2018,7 @@ function MenubarSubContent2({ density, className, ...props }) {
|
|
|
1882
2018
|
import { ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
|
|
1883
2019
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
1884
2020
|
import { cva as cva3 } from "class-variance-authority";
|
|
1885
|
-
import { jsx as
|
|
2021
|
+
import { jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1886
2022
|
function NavigationMenu2({
|
|
1887
2023
|
analytics,
|
|
1888
2024
|
density,
|
|
@@ -1893,7 +2029,7 @@ function NavigationMenu2({
|
|
|
1893
2029
|
}) {
|
|
1894
2030
|
const trackedOnValueChange = useAnalyticsCallback("NavigationMenu", analytics, { name: "ui.change-request" }, props.onValueChange);
|
|
1895
2031
|
const resolvedDensity = useDensity(density);
|
|
1896
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsxs16(NavigationMenuPrimitive.Root, {
|
|
1897
2033
|
"data-density": resolvedDensity,
|
|
1898
2034
|
"data-slot": "navigation-menu",
|
|
1899
2035
|
className: (state) => cn2("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", typeof className === "function" ? className(state) : className),
|
|
@@ -1901,7 +2037,7 @@ function NavigationMenu2({
|
|
|
1901
2037
|
onValueChange: trackedOnValueChange,
|
|
1902
2038
|
children: [
|
|
1903
2039
|
children,
|
|
1904
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ jsx24(NavigationMenuPositioner2, {
|
|
1905
2041
|
density: resolvedDensity,
|
|
1906
2042
|
align
|
|
1907
2043
|
})
|
|
@@ -1909,7 +2045,7 @@ function NavigationMenu2({
|
|
|
1909
2045
|
});
|
|
1910
2046
|
}
|
|
1911
2047
|
function NavigationMenuList2({ density, className, ...props }) {
|
|
1912
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.List, {
|
|
1913
2049
|
"data-density": density,
|
|
1914
2050
|
"data-slot": "navigation-menu-list",
|
|
1915
2051
|
className: (state) => cn2("group flex flex-1 list-none items-center justify-center gap-0", typeof className === "function" ? className(state) : className),
|
|
@@ -1917,7 +2053,7 @@ function NavigationMenuList2({ density, className, ...props }) {
|
|
|
1917
2053
|
});
|
|
1918
2054
|
}
|
|
1919
2055
|
function NavigationMenuItem2({ density, className, ...props }) {
|
|
1920
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Item, {
|
|
1921
2057
|
"data-density": density,
|
|
1922
2058
|
"data-slot": "navigation-menu-item",
|
|
1923
2059
|
className: (state) => cn2("relative", typeof className === "function" ? className(state) : className),
|
|
@@ -1926,7 +2062,7 @@ function NavigationMenuItem2({ density, className, ...props }) {
|
|
|
1926
2062
|
}
|
|
1927
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");
|
|
1928
2064
|
function NavigationMenuTrigger2({ density, className, children, ...props }) {
|
|
1929
|
-
return /* @__PURE__ */
|
|
2065
|
+
return /* @__PURE__ */ jsxs16(NavigationMenuPrimitive.Trigger, {
|
|
1930
2066
|
"data-density": density,
|
|
1931
2067
|
"data-slot": "navigation-menu-trigger",
|
|
1932
2068
|
className: (state) => cn2(navigationMenuTriggerStyle2(), "group", typeof className === "function" ? className(state) : className),
|
|
@@ -1934,12 +2070,12 @@ function NavigationMenuTrigger2({ density, className, children, ...props }) {
|
|
|
1934
2070
|
children: [
|
|
1935
2071
|
children,
|
|
1936
2072
|
" ",
|
|
1937
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ jsx24(NavigationMenuIndicator2, {})
|
|
1938
2074
|
]
|
|
1939
2075
|
});
|
|
1940
2076
|
}
|
|
1941
2077
|
function NavigationMenuContent2({ density, className, ...props }) {
|
|
1942
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Content, {
|
|
1943
2079
|
"data-density": density,
|
|
1944
2080
|
"data-slot": "navigation-menu-content",
|
|
1945
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),
|
|
@@ -1959,12 +2095,12 @@ function NavigationMenuPositioner2({
|
|
|
1959
2095
|
const direction = useDirection2();
|
|
1960
2096
|
const container = usePortalContainer2();
|
|
1961
2097
|
const portal = usePortalNode();
|
|
1962
|
-
return /* @__PURE__ */
|
|
2098
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Portal, {
|
|
1963
2099
|
container,
|
|
1964
2100
|
ref: portal.ref,
|
|
1965
|
-
children: /* @__PURE__ */
|
|
2101
|
+
children: /* @__PURE__ */ jsx24(PortalProvider2, {
|
|
1966
2102
|
container: portal.node,
|
|
1967
|
-
children: /* @__PURE__ */
|
|
2103
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Positioner, {
|
|
1968
2104
|
dir: direction,
|
|
1969
2105
|
side,
|
|
1970
2106
|
sideOffset,
|
|
@@ -1972,11 +2108,11 @@ function NavigationMenuPositioner2({
|
|
|
1972
2108
|
alignOffset,
|
|
1973
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),
|
|
1974
2110
|
...props,
|
|
1975
|
-
children: /* @__PURE__ */
|
|
2111
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Popup, {
|
|
1976
2112
|
"data-density": resolvedDensity,
|
|
1977
2113
|
"data-slot": "navigation-menu-popup",
|
|
1978
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",
|
|
1979
|
-
children: /* @__PURE__ */
|
|
2115
|
+
children: /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Viewport, {
|
|
1980
2116
|
className: "relative size-full overflow-hidden"
|
|
1981
2117
|
})
|
|
1982
2118
|
})
|
|
@@ -1986,7 +2122,7 @@ function NavigationMenuPositioner2({
|
|
|
1986
2122
|
}
|
|
1987
2123
|
function NavigationMenuLink2({ analytics, density, className, ...props }) {
|
|
1988
2124
|
const trackedOnClick = useAnalyticsCallback("NavigationMenuLink", analytics, { name: "ui.activate" }, props.onClick);
|
|
1989
|
-
return /* @__PURE__ */
|
|
2125
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Link, {
|
|
1990
2126
|
"data-density": density,
|
|
1991
2127
|
"data-slot": "navigation-menu-link",
|
|
1992
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),
|
|
@@ -2000,32 +2136,32 @@ function NavigationMenuIndicator2({
|
|
|
2000
2136
|
children,
|
|
2001
2137
|
...props
|
|
2002
2138
|
}) {
|
|
2003
|
-
return /* @__PURE__ */
|
|
2139
|
+
return /* @__PURE__ */ jsx24(NavigationMenuPrimitive.Icon, {
|
|
2004
2140
|
"data-density": density,
|
|
2005
2141
|
"data-slot": "navigation-menu-indicator",
|
|
2006
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),
|
|
2007
2143
|
...props,
|
|
2008
|
-
children: children ?? /* @__PURE__ */
|
|
2144
|
+
children: children ?? /* @__PURE__ */ jsx24(ChevronDownIcon2, {})
|
|
2009
2145
|
});
|
|
2010
2146
|
}
|
|
2011
2147
|
// src/components/Toast.tsx
|
|
2012
2148
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
2013
2149
|
import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, LoaderCircleIcon, XIcon } from "lucide-react";
|
|
2014
|
-
import { jsx as
|
|
2150
|
+
import { jsx as jsx25, jsxs as jsxs17, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
2015
2151
|
function ToastProvider2(props) {
|
|
2016
|
-
return /* @__PURE__ */
|
|
2152
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Provider, {
|
|
2017
2153
|
...props
|
|
2018
2154
|
});
|
|
2019
2155
|
}
|
|
2020
2156
|
function ToastPortal2({ container, ref, children, ...props }) {
|
|
2021
2157
|
const resolvedContainer = usePortalContainer2(container);
|
|
2022
2158
|
const portal = usePortalNode(ref);
|
|
2023
|
-
return /* @__PURE__ */
|
|
2159
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Portal, {
|
|
2024
2160
|
"data-slot": "toast-portal",
|
|
2025
2161
|
container: resolvedContainer,
|
|
2026
2162
|
ref: portal.ref,
|
|
2027
2163
|
...props,
|
|
2028
|
-
children: /* @__PURE__ */
|
|
2164
|
+
children: /* @__PURE__ */ jsx25(PortalProvider2, {
|
|
2029
2165
|
container: portal.node,
|
|
2030
2166
|
children
|
|
2031
2167
|
})
|
|
@@ -2034,7 +2170,7 @@ function ToastPortal2({ container, ref, children, ...props }) {
|
|
|
2034
2170
|
function ToastViewport2({ density, dir, className, ...props }) {
|
|
2035
2171
|
const resolvedDensity = useDensity(density);
|
|
2036
2172
|
const inheritedDirection = useDirection2();
|
|
2037
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Viewport, {
|
|
2038
2174
|
dir: dir ?? inheritedDirection,
|
|
2039
2175
|
"data-density": resolvedDensity,
|
|
2040
2176
|
"data-slot": "toast-viewport",
|
|
@@ -2043,7 +2179,7 @@ function ToastViewport2({ density, dir, className, ...props }) {
|
|
|
2043
2179
|
});
|
|
2044
2180
|
}
|
|
2045
2181
|
function Toast2({ density, className, ...props }) {
|
|
2046
|
-
return /* @__PURE__ */
|
|
2182
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Root, {
|
|
2047
2183
|
"data-density": density,
|
|
2048
2184
|
"data-slot": "toast",
|
|
2049
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),
|
|
@@ -2051,21 +2187,21 @@ function Toast2({ density, className, ...props }) {
|
|
|
2051
2187
|
});
|
|
2052
2188
|
}
|
|
2053
2189
|
function ToastContent2({ className, ...props }) {
|
|
2054
|
-
return /* @__PURE__ */
|
|
2190
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Content, {
|
|
2055
2191
|
"data-slot": "toast-content",
|
|
2056
2192
|
className: (state) => cn2("flex items-center gap-control-gap p-panel", typeof className === "function" ? className(state) : className),
|
|
2057
2193
|
...props
|
|
2058
2194
|
});
|
|
2059
2195
|
}
|
|
2060
2196
|
function ToastTitle2({ className, ...props }) {
|
|
2061
|
-
return /* @__PURE__ */
|
|
2197
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Title, {
|
|
2062
2198
|
"data-slot": "toast-title",
|
|
2063
2199
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
2064
2200
|
...props
|
|
2065
2201
|
});
|
|
2066
2202
|
}
|
|
2067
2203
|
function ToastDescription2({ className, ...props }) {
|
|
2068
|
-
return /* @__PURE__ */
|
|
2204
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Description, {
|
|
2069
2205
|
"data-slot": "toast-description",
|
|
2070
2206
|
className: (state) => cn2("text-sm text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
2071
2207
|
...props
|
|
@@ -2074,14 +2210,14 @@ function ToastDescription2({ className, ...props }) {
|
|
|
2074
2210
|
function ToastAction2({
|
|
2075
2211
|
analytics,
|
|
2076
2212
|
className,
|
|
2077
|
-
render = /* @__PURE__ */
|
|
2213
|
+
render = /* @__PURE__ */ jsx25(Button2, {
|
|
2078
2214
|
variant: "outline",
|
|
2079
2215
|
size: "sm"
|
|
2080
2216
|
}),
|
|
2081
2217
|
...props
|
|
2082
2218
|
}) {
|
|
2083
2219
|
const trackedOnClick = useAnalyticsCallback("ToastAction", analytics, { name: "ui.activate" }, props.onClick);
|
|
2084
|
-
return /* @__PURE__ */
|
|
2220
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Action, {
|
|
2085
2221
|
"data-slot": "toast-action",
|
|
2086
2222
|
render,
|
|
2087
2223
|
className: (state) => cn2("shrink-0", typeof className === "function" ? className(state) : className),
|
|
@@ -2093,21 +2229,21 @@ function ToastClose2({
|
|
|
2093
2229
|
analytics,
|
|
2094
2230
|
className,
|
|
2095
2231
|
children,
|
|
2096
|
-
render = /* @__PURE__ */
|
|
2232
|
+
render = /* @__PURE__ */ jsx25(Button2, {
|
|
2097
2233
|
variant: "ghost",
|
|
2098
2234
|
size: "icon-sm"
|
|
2099
2235
|
}),
|
|
2100
2236
|
...props
|
|
2101
2237
|
}) {
|
|
2102
2238
|
const trackedOnClick = useAnalyticsCallback("ToastClose", analytics, { name: "ui.activate" }, props.onClick);
|
|
2103
|
-
return /* @__PURE__ */
|
|
2239
|
+
return /* @__PURE__ */ jsx25(ToastPrimitive.Close, {
|
|
2104
2240
|
"data-slot": "toast-close",
|
|
2105
2241
|
"aria-label": "Close toast",
|
|
2106
2242
|
render,
|
|
2107
2243
|
className: (state) => cn2("relative shrink-0 text-muted-foreground hover:text-foreground", typeof className === "function" ? className(state) : className),
|
|
2108
2244
|
...props,
|
|
2109
2245
|
onClick: trackedOnClick,
|
|
2110
|
-
children: children ?? /* @__PURE__ */
|
|
2246
|
+
children: children ?? /* @__PURE__ */ jsx25(XIcon, {
|
|
2111
2247
|
"aria-hidden": "true"
|
|
2112
2248
|
})
|
|
2113
2249
|
});
|
|
@@ -2115,24 +2251,24 @@ function ToastClose2({
|
|
|
2115
2251
|
function ToastIcon({ type }) {
|
|
2116
2252
|
switch (type) {
|
|
2117
2253
|
case "success":
|
|
2118
|
-
return /* @__PURE__ */
|
|
2254
|
+
return /* @__PURE__ */ jsx25(CircleCheckIcon, {
|
|
2119
2255
|
"aria-hidden": "true"
|
|
2120
2256
|
});
|
|
2121
2257
|
case "info":
|
|
2122
|
-
return /* @__PURE__ */
|
|
2258
|
+
return /* @__PURE__ */ jsx25(InfoIcon, {
|
|
2123
2259
|
"aria-hidden": "true"
|
|
2124
2260
|
});
|
|
2125
2261
|
case "warning":
|
|
2126
|
-
return /* @__PURE__ */
|
|
2262
|
+
return /* @__PURE__ */ jsx25(TriangleAlertIcon, {
|
|
2127
2263
|
"aria-hidden": "true"
|
|
2128
2264
|
});
|
|
2129
2265
|
case "error":
|
|
2130
|
-
return /* @__PURE__ */
|
|
2266
|
+
return /* @__PURE__ */ jsx25(OctagonXIcon, {
|
|
2131
2267
|
"aria-hidden": "true",
|
|
2132
2268
|
className: "text-destructive"
|
|
2133
2269
|
});
|
|
2134
2270
|
case "loading":
|
|
2135
|
-
return /* @__PURE__ */
|
|
2271
|
+
return /* @__PURE__ */ jsx25(LoaderCircleIcon, {
|
|
2136
2272
|
"aria-hidden": "true",
|
|
2137
2273
|
className: "animate-spin motion-reduce:animate-none"
|
|
2138
2274
|
});
|
|
@@ -2142,41 +2278,41 @@ function ToastIcon({ type }) {
|
|
|
2142
2278
|
}
|
|
2143
2279
|
function ToastList() {
|
|
2144
2280
|
const { toasts } = ToastPrimitive.useToastManager();
|
|
2145
|
-
return /* @__PURE__ */
|
|
2146
|
-
children: toasts.map((toastItem) => /* @__PURE__ */
|
|
2281
|
+
return /* @__PURE__ */ jsx25(Fragment4, {
|
|
2282
|
+
children: toasts.map((toastItem) => /* @__PURE__ */ jsx25(Toast2, {
|
|
2147
2283
|
toast: toastItem,
|
|
2148
|
-
children: /* @__PURE__ */
|
|
2284
|
+
children: /* @__PURE__ */ jsxs17(ToastContent2, {
|
|
2149
2285
|
children: [
|
|
2150
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ jsx25("span", {
|
|
2151
2287
|
"data-slot": "toast-icon",
|
|
2152
2288
|
className: "shrink-0 empty:hidden [&_svg]:size-4",
|
|
2153
|
-
children: /* @__PURE__ */
|
|
2289
|
+
children: /* @__PURE__ */ jsx25(ToastIcon, {
|
|
2154
2290
|
type: toastItem.type
|
|
2155
2291
|
})
|
|
2156
2292
|
}),
|
|
2157
|
-
/* @__PURE__ */
|
|
2293
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
2158
2294
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
2159
2295
|
children: [
|
|
2160
|
-
/* @__PURE__ */
|
|
2161
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ jsx25(ToastTitle2, {}),
|
|
2297
|
+
/* @__PURE__ */ jsx25(ToastDescription2, {})
|
|
2162
2298
|
]
|
|
2163
2299
|
}),
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2300
|
+
/* @__PURE__ */ jsx25(ToastAction2, {}),
|
|
2301
|
+
/* @__PURE__ */ jsx25(ToastClose2, {})
|
|
2166
2302
|
]
|
|
2167
2303
|
})
|
|
2168
2304
|
}, toastItem.id))
|
|
2169
2305
|
});
|
|
2170
2306
|
}
|
|
2171
2307
|
function ToastToaster2({ children, density, ...props }) {
|
|
2172
|
-
return /* @__PURE__ */
|
|
2308
|
+
return /* @__PURE__ */ jsxs17(ToastProvider2, {
|
|
2173
2309
|
...props,
|
|
2174
2310
|
children: [
|
|
2175
2311
|
children,
|
|
2176
|
-
/* @__PURE__ */
|
|
2177
|
-
children: /* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ jsx25(ToastPortal2, {
|
|
2313
|
+
children: /* @__PURE__ */ jsx25(ToastViewport2, {
|
|
2178
2314
|
density,
|
|
2179
|
-
children: /* @__PURE__ */
|
|
2315
|
+
children: /* @__PURE__ */ jsx25(ToastList, {})
|
|
2180
2316
|
})
|
|
2181
2317
|
})
|
|
2182
2318
|
]
|
|
@@ -2192,7 +2328,7 @@ function useToastManager2() {
|
|
|
2192
2328
|
import { mergeProps as mergeProps6 } from "@base-ui/react/merge-props";
|
|
2193
2329
|
import { useRender as useRender6 } from "@base-ui/react/use-render";
|
|
2194
2330
|
import { cva as cva4 } from "class-variance-authority";
|
|
2195
|
-
import { jsx as
|
|
2331
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2196
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", {
|
|
2197
2333
|
variants: {
|
|
2198
2334
|
variant: {
|
|
@@ -2211,7 +2347,7 @@ function Marker2({ density, className, variant = "default", render, ...props })
|
|
|
2211
2347
|
});
|
|
2212
2348
|
}
|
|
2213
2349
|
function MarkerIcon2({ density, className, ...props }) {
|
|
2214
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2215
2351
|
"data-density": density,
|
|
2216
2352
|
"data-slot": "marker-icon",
|
|
2217
2353
|
"aria-hidden": "true",
|
|
@@ -2220,7 +2356,7 @@ function MarkerIcon2({ density, className, ...props }) {
|
|
|
2220
2356
|
});
|
|
2221
2357
|
}
|
|
2222
2358
|
function MarkerContent2({ density, className, ...props }) {
|
|
2223
|
-
return /* @__PURE__ */
|
|
2359
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2224
2360
|
"data-density": density,
|
|
2225
2361
|
"data-slot": "marker-content",
|
|
2226
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),
|
|
@@ -2231,9 +2367,9 @@ function MarkerContent2({ density, className, ...props }) {
|
|
|
2231
2367
|
import { mergeProps as mergeProps7 } from "@base-ui/react/merge-props";
|
|
2232
2368
|
import { useRender as useRender7 } from "@base-ui/react/use-render";
|
|
2233
2369
|
import { cva as cva5 } from "class-variance-authority";
|
|
2234
|
-
import { jsx as
|
|
2370
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2235
2371
|
function BubbleGroup2({ density, className, ...props }) {
|
|
2236
|
-
return /* @__PURE__ */
|
|
2372
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2237
2373
|
"data-density": density,
|
|
2238
2374
|
"data-slot": "bubble-group",
|
|
2239
2375
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2255,7 +2391,7 @@ var bubbleVariants = cva5("group/bubble relative flex w-fit max-w-[80%] min-w-0
|
|
|
2255
2391
|
defaultVariants: { variant: "default" }
|
|
2256
2392
|
});
|
|
2257
2393
|
function Bubble2({ density, variant = "default", align = "start", className, ...props }) {
|
|
2258
|
-
return /* @__PURE__ */
|
|
2394
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2259
2395
|
"data-density": density,
|
|
2260
2396
|
"data-slot": "bubble",
|
|
2261
2397
|
"data-variant": variant,
|
|
@@ -2288,7 +2424,7 @@ function BubbleReactions2({
|
|
|
2288
2424
|
className,
|
|
2289
2425
|
...props
|
|
2290
2426
|
}) {
|
|
2291
|
-
return /* @__PURE__ */
|
|
2427
|
+
return /* @__PURE__ */ jsx27("div", {
|
|
2292
2428
|
"data-density": density,
|
|
2293
2429
|
"data-slot": "bubble-reactions",
|
|
2294
2430
|
"data-align": align,
|
|
@@ -2307,9 +2443,9 @@ var MessageContext = createContext2(null);
|
|
|
2307
2443
|
|
|
2308
2444
|
// src/components/Message.tsx
|
|
2309
2445
|
import { ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
2310
|
-
import { jsx as
|
|
2446
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2311
2447
|
function MessageGroup2({ density, className, ...props }) {
|
|
2312
|
-
return /* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2313
2449
|
"data-density": density,
|
|
2314
2450
|
"data-slot": "message-group",
|
|
2315
2451
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2320,9 +2456,9 @@ function Message2({ density, className, align = "start", style, ...props }) {
|
|
|
2320
2456
|
const [footerOffset, setFooterOffset] = useState(0);
|
|
2321
2457
|
const context = useMemo2(() => ({ setFooterOffset }), []);
|
|
2322
2458
|
const messageStyle = { ...style, "--message-footer-offset": `${footerOffset}px` };
|
|
2323
|
-
return /* @__PURE__ */
|
|
2459
|
+
return /* @__PURE__ */ jsx28(MessageContext.Provider, {
|
|
2324
2460
|
value: context,
|
|
2325
|
-
children: /* @__PURE__ */
|
|
2461
|
+
children: /* @__PURE__ */ jsx28("div", {
|
|
2326
2462
|
"data-density": density,
|
|
2327
2463
|
"data-slot": "message",
|
|
2328
2464
|
"data-align": align,
|
|
@@ -2333,7 +2469,7 @@ function Message2({ density, className, align = "start", style, ...props }) {
|
|
|
2333
2469
|
});
|
|
2334
2470
|
}
|
|
2335
2471
|
function MessageAvatar2({ density, className, ...props }) {
|
|
2336
|
-
return /* @__PURE__ */
|
|
2472
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2337
2473
|
"data-density": density,
|
|
2338
2474
|
"data-slot": "message-avatar",
|
|
2339
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),
|
|
@@ -2341,7 +2477,7 @@ function MessageAvatar2({ density, className, ...props }) {
|
|
|
2341
2477
|
});
|
|
2342
2478
|
}
|
|
2343
2479
|
function MessageContent2({ density, className, ...props }) {
|
|
2344
|
-
return /* @__PURE__ */
|
|
2480
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2345
2481
|
"data-density": density,
|
|
2346
2482
|
"data-slot": "message-content",
|
|
2347
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),
|
|
@@ -2349,7 +2485,7 @@ function MessageContent2({ density, className, ...props }) {
|
|
|
2349
2485
|
});
|
|
2350
2486
|
}
|
|
2351
2487
|
function MessageHeader2({ density, className, ...props }) {
|
|
2352
|
-
return /* @__PURE__ */
|
|
2488
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2353
2489
|
"data-density": density,
|
|
2354
2490
|
"data-slot": "message-header",
|
|
2355
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),
|
|
@@ -2388,7 +2524,7 @@ function MessageFooter2({ density, className, ...props }) {
|
|
|
2388
2524
|
});
|
|
2389
2525
|
}
|
|
2390
2526
|
function MessageThread2({ density, className, ...props }) {
|
|
2391
|
-
return /* @__PURE__ */
|
|
2527
|
+
return /* @__PURE__ */ jsx28(Collapsible2, {
|
|
2392
2528
|
"data-density": density,
|
|
2393
2529
|
"data-slot": "message-thread",
|
|
2394
2530
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2396,13 +2532,13 @@ function MessageThread2({ density, className, ...props }) {
|
|
|
2396
2532
|
});
|
|
2397
2533
|
}
|
|
2398
2534
|
function MessageThreadSummary2({ density, className, children, ...props }) {
|
|
2399
|
-
return /* @__PURE__ */
|
|
2535
|
+
return /* @__PURE__ */ jsxs18(CollapsibleTrigger2, {
|
|
2400
2536
|
"data-density": density,
|
|
2401
2537
|
"data-slot": "message-thread-summary",
|
|
2402
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),
|
|
2403
2539
|
...props,
|
|
2404
2540
|
children: [
|
|
2405
|
-
/* @__PURE__ */
|
|
2541
|
+
/* @__PURE__ */ jsx28(ChevronRightIcon3, {
|
|
2406
2542
|
"aria-hidden": "true",
|
|
2407
2543
|
className: "size-3 shrink-0 group-aria-expanded/message-thread-summary:rotate-90 motion-reduce:transition-none"
|
|
2408
2544
|
}),
|
|
@@ -2411,7 +2547,7 @@ function MessageThreadSummary2({ density, className, children, ...props }) {
|
|
|
2411
2547
|
});
|
|
2412
2548
|
}
|
|
2413
2549
|
function MessageThreadReplies2({ density, className, ...props }) {
|
|
2414
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ jsx28(CollapsibleContent2, {
|
|
2415
2551
|
"data-density": density,
|
|
2416
2552
|
"data-slot": "message-thread-replies",
|
|
2417
2553
|
className: cn2("min-w-0", className),
|
|
@@ -2422,7 +2558,7 @@ function MessageThreadReplies2({ density, className, ...props }) {
|
|
|
2422
2558
|
import { mergeProps as mergeProps8 } from "@base-ui/react/merge-props";
|
|
2423
2559
|
import { useRender as useRender9 } from "@base-ui/react/use-render";
|
|
2424
2560
|
import { cva as cva6 } from "class-variance-authority";
|
|
2425
|
-
import { jsx as
|
|
2561
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2426
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", {
|
|
2427
2563
|
variants: {
|
|
2428
2564
|
size: {
|
|
@@ -2444,7 +2580,7 @@ function Attachment2({
|
|
|
2444
2580
|
orientation = "horizontal",
|
|
2445
2581
|
...props
|
|
2446
2582
|
}) {
|
|
2447
|
-
return /* @__PURE__ */
|
|
2583
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2448
2584
|
"data-slot": "attachment",
|
|
2449
2585
|
"data-density": density,
|
|
2450
2586
|
"data-state": state,
|
|
@@ -2464,7 +2600,7 @@ var attachmentMediaVariants = cva6("relative flex aspect-square w-10 shrink-0 it
|
|
|
2464
2600
|
defaultVariants: { variant: "icon" }
|
|
2465
2601
|
});
|
|
2466
2602
|
function AttachmentMedia2({ density, className, variant = "icon", ...props }) {
|
|
2467
|
-
return /* @__PURE__ */
|
|
2603
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2468
2604
|
"data-slot": "attachment-media",
|
|
2469
2605
|
"data-density": density,
|
|
2470
2606
|
"data-variant": variant,
|
|
@@ -2473,7 +2609,7 @@ function AttachmentMedia2({ density, className, variant = "icon", ...props }) {
|
|
|
2473
2609
|
});
|
|
2474
2610
|
}
|
|
2475
2611
|
function AttachmentContent2({ density, className, ...props }) {
|
|
2476
|
-
return /* @__PURE__ */
|
|
2612
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2477
2613
|
"data-slot": "attachment-content",
|
|
2478
2614
|
"data-density": density,
|
|
2479
2615
|
className: cn2("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
@@ -2481,7 +2617,7 @@ function AttachmentContent2({ density, className, ...props }) {
|
|
|
2481
2617
|
});
|
|
2482
2618
|
}
|
|
2483
2619
|
function AttachmentTitle2({ density, className, ...props }) {
|
|
2484
|
-
return /* @__PURE__ */
|
|
2620
|
+
return /* @__PURE__ */ jsx29("span", {
|
|
2485
2621
|
"data-slot": "attachment-title",
|
|
2486
2622
|
"data-density": density,
|
|
2487
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),
|
|
@@ -2489,7 +2625,7 @@ function AttachmentTitle2({ density, className, ...props }) {
|
|
|
2489
2625
|
});
|
|
2490
2626
|
}
|
|
2491
2627
|
function AttachmentDescription2({ density, className, ...props }) {
|
|
2492
|
-
return /* @__PURE__ */
|
|
2628
|
+
return /* @__PURE__ */ jsx29("span", {
|
|
2493
2629
|
"data-slot": "attachment-description",
|
|
2494
2630
|
"data-density": density,
|
|
2495
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),
|
|
@@ -2497,7 +2633,7 @@ function AttachmentDescription2({ density, className, ...props }) {
|
|
|
2497
2633
|
});
|
|
2498
2634
|
}
|
|
2499
2635
|
function AttachmentActions2({ density, className, ...props }) {
|
|
2500
|
-
return /* @__PURE__ */
|
|
2636
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2501
2637
|
"data-slot": "attachment-actions",
|
|
2502
2638
|
"data-density": density,
|
|
2503
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),
|
|
@@ -2510,7 +2646,7 @@ function AttachmentAction2({
|
|
|
2510
2646
|
size = "icon-xs",
|
|
2511
2647
|
...props
|
|
2512
2648
|
}) {
|
|
2513
|
-
return /* @__PURE__ */
|
|
2649
|
+
return /* @__PURE__ */ jsx29(Button2, {
|
|
2514
2650
|
"data-slot": "attachment-action",
|
|
2515
2651
|
variant,
|
|
2516
2652
|
size,
|
|
@@ -2535,7 +2671,7 @@ function AttachmentTrigger2({
|
|
|
2535
2671
|
});
|
|
2536
2672
|
}
|
|
2537
2673
|
function AttachmentGroup2({ density, className, ...props }) {
|
|
2538
|
-
return /* @__PURE__ */
|
|
2674
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2539
2675
|
"data-slot": "attachment-group",
|
|
2540
2676
|
"data-density": density,
|
|
2541
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),
|
|
@@ -2543,8 +2679,8 @@ function AttachmentGroup2({ density, className, ...props }) {
|
|
|
2543
2679
|
});
|
|
2544
2680
|
}
|
|
2545
2681
|
// src/components/InlineEdit.tsx
|
|
2546
|
-
import { useEffect as useEffect2, useId as
|
|
2547
|
-
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";
|
|
2548
2684
|
function InlineEdit2({
|
|
2549
2685
|
analytics,
|
|
2550
2686
|
label,
|
|
@@ -2559,7 +2695,7 @@ function InlineEdit2({
|
|
|
2559
2695
|
onCancel
|
|
2560
2696
|
}) {
|
|
2561
2697
|
const track = useAnalytics2("InlineEdit", analytics);
|
|
2562
|
-
const triggerId =
|
|
2698
|
+
const triggerId = useId5();
|
|
2563
2699
|
const errorId = `${triggerId}-error`;
|
|
2564
2700
|
const input = useRef2(null);
|
|
2565
2701
|
const isFinished = useRef2(false);
|
|
@@ -2594,22 +2730,22 @@ function InlineEdit2({
|
|
|
2594
2730
|
setSaving(false);
|
|
2595
2731
|
}
|
|
2596
2732
|
};
|
|
2597
|
-
return /* @__PURE__ */
|
|
2733
|
+
return /* @__PURE__ */ jsxs19("form", {
|
|
2598
2734
|
className: "min-w-0",
|
|
2599
2735
|
onSubmit: (event) => {
|
|
2600
2736
|
event.preventDefault();
|
|
2601
2737
|
save();
|
|
2602
2738
|
},
|
|
2603
2739
|
children: [
|
|
2604
|
-
/* @__PURE__ */
|
|
2740
|
+
/* @__PURE__ */ jsxs19(Tooltip2, {
|
|
2605
2741
|
open: Boolean(error) && isErrorOpen,
|
|
2606
2742
|
onOpenChange: setErrorOpen,
|
|
2607
2743
|
disableHoverablePopup: true,
|
|
2608
2744
|
triggerId,
|
|
2609
2745
|
children: [
|
|
2610
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ jsx30(TooltipTrigger2, {
|
|
2611
2747
|
id: triggerId,
|
|
2612
|
-
render: /* @__PURE__ */
|
|
2748
|
+
render: /* @__PURE__ */ jsx30(Input2, {
|
|
2613
2749
|
analytics: false,
|
|
2614
2750
|
ref: input,
|
|
2615
2751
|
density,
|
|
@@ -2641,20 +2777,20 @@ function InlineEdit2({
|
|
|
2641
2777
|
}
|
|
2642
2778
|
})
|
|
2643
2779
|
}),
|
|
2644
|
-
error && /* @__PURE__ */
|
|
2780
|
+
error && /* @__PURE__ */ jsx30(TooltipContent2, {
|
|
2645
2781
|
density,
|
|
2646
2782
|
side: "bottom",
|
|
2647
2783
|
align: "start",
|
|
2648
2784
|
"data-testid": "InlineEdit--error-popup",
|
|
2649
2785
|
"aria-hidden": true,
|
|
2650
|
-
children: /* @__PURE__ */
|
|
2786
|
+
children: /* @__PURE__ */ jsx30("p", {
|
|
2651
2787
|
className: "text-destructive",
|
|
2652
2788
|
children: error
|
|
2653
2789
|
})
|
|
2654
2790
|
})
|
|
2655
2791
|
]
|
|
2656
2792
|
}),
|
|
2657
|
-
error && /* @__PURE__ */
|
|
2793
|
+
error && /* @__PURE__ */ jsx30("p", {
|
|
2658
2794
|
id: errorId,
|
|
2659
2795
|
role: "alert",
|
|
2660
2796
|
className: "sr-only",
|
|
@@ -2667,7 +2803,7 @@ function InlineEdit2({
|
|
|
2667
2803
|
import { useState as useState3 } from "react";
|
|
2668
2804
|
import { Radio } from "@base-ui/react/radio";
|
|
2669
2805
|
import { StarIcon, CircleOffIcon } from "lucide-react";
|
|
2670
|
-
import { jsx as
|
|
2806
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2671
2807
|
var ITEM_SIZES = { comfortable: "size-5", compact: "size-4" };
|
|
2672
2808
|
var STAR_SIZES = { comfortable: "size-3.5", compact: "size-3" };
|
|
2673
2809
|
var CLEAR_SIZES = { comfortable: "size-3", compact: "size-2.5" };
|
|
@@ -2704,7 +2840,7 @@ function StarRating2({
|
|
|
2704
2840
|
onValueChange(draft);
|
|
2705
2841
|
setDraft(null);
|
|
2706
2842
|
};
|
|
2707
|
-
return /* @__PURE__ */
|
|
2843
|
+
return /* @__PURE__ */ jsx31(RadioGroup2, {
|
|
2708
2844
|
analytics,
|
|
2709
2845
|
"aria-label": label,
|
|
2710
2846
|
"aria-busy": busy || undefined,
|
|
@@ -2714,7 +2850,7 @@ function StarRating2({
|
|
|
2714
2850
|
className: "inline-flex w-fit shrink-0 items-center gap-0.5",
|
|
2715
2851
|
onValueChange: isConfirm ? (next) => setDraft(next) : onValueChange,
|
|
2716
2852
|
onBlur,
|
|
2717
|
-
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, {
|
|
2718
2854
|
value: star,
|
|
2719
2855
|
nativeButton: true,
|
|
2720
2856
|
...focusable ? {} : { tabIndex: -1 },
|
|
@@ -2725,17 +2861,17 @@ function StarRating2({
|
|
|
2725
2861
|
confirm(star);
|
|
2726
2862
|
}
|
|
2727
2863
|
},
|
|
2728
|
-
render: /* @__PURE__ */
|
|
2864
|
+
render: /* @__PURE__ */ jsx31(AnalyticsButton, {
|
|
2729
2865
|
component: "StarRating",
|
|
2730
2866
|
type: "button"
|
|
2731
2867
|
}),
|
|
2732
2868
|
"aria-label": star === 0 ? "Unrated" : `${star} ${star === 1 ? "star" : "stars"}`,
|
|
2733
2869
|
title: star === 0 ? "Clear rating" : `${star} stars`,
|
|
2734
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]),
|
|
2735
|
-
children: star === 0 ? /* @__PURE__ */
|
|
2871
|
+
children: star === 0 ? /* @__PURE__ */ jsx31(CircleOffIcon, {
|
|
2736
2872
|
"aria-hidden": "true",
|
|
2737
2873
|
className: CLEAR_SIZES[density]
|
|
2738
|
-
}) : /* @__PURE__ */
|
|
2874
|
+
}) : /* @__PURE__ */ jsx31(StarIcon, {
|
|
2739
2875
|
"aria-hidden": "true",
|
|
2740
2876
|
className: star <= shown ? cn2(STAR_SIZES[density], "fill-primary text-primary") : STAR_SIZES[density]
|
|
2741
2877
|
})
|
|
@@ -2745,7 +2881,7 @@ function StarRating2({
|
|
|
2745
2881
|
// src/components/ReviewList.tsx
|
|
2746
2882
|
import { useRef as useRef3, useState as useState4 } from "react";
|
|
2747
2883
|
import { ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
2748
|
-
import { jsx as
|
|
2884
|
+
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2749
2885
|
var TOGGLE_KEYS = new Set(["x", "X"]);
|
|
2750
2886
|
function isMod(event) {
|
|
2751
2887
|
return event.metaKey || event.ctrlKey;
|
|
@@ -2828,7 +2964,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2828
2964
|
setCursor({ row: index, cell });
|
|
2829
2965
|
};
|
|
2830
2966
|
const isTree = rows.some((row) => row.level !== undefined);
|
|
2831
|
-
return /* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ jsx32("div", {
|
|
2832
2968
|
"data-slot": "review-list",
|
|
2833
2969
|
role: isTree ? "treegrid" : "grid",
|
|
2834
2970
|
"aria-label": label,
|
|
@@ -2845,7 +2981,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2845
2981
|
cellsRef.current.delete(key);
|
|
2846
2982
|
};
|
|
2847
2983
|
const tabIndex = (cell) => isCursorRow && cursor.cell === cell ? 0 : -1;
|
|
2848
|
-
return /* @__PURE__ */
|
|
2984
|
+
return /* @__PURE__ */ jsxs20("div", {
|
|
2849
2985
|
role: "row",
|
|
2850
2986
|
"aria-rowindex": index + 1,
|
|
2851
2987
|
"aria-level": isTree ? row.level ?? 1 : undefined,
|
|
@@ -2853,13 +2989,13 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2853
2989
|
"data-included": row.isIncluded || undefined,
|
|
2854
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"),
|
|
2855
2991
|
children: [
|
|
2856
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ jsx32("div", {
|
|
2857
2993
|
ref: cellRef(0),
|
|
2858
2994
|
role: "gridcell",
|
|
2859
2995
|
tabIndex: tabIndex(0),
|
|
2860
2996
|
className: "flex shrink-0 items-center pt-0.5 outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
2861
2997
|
onClick: (event) => onRowClick(event, row, index, 0),
|
|
2862
|
-
children: /* @__PURE__ */
|
|
2998
|
+
children: /* @__PURE__ */ jsx32(Checkbox2, {
|
|
2863
2999
|
"aria-label": row.checkboxLabel,
|
|
2864
3000
|
checked: row.isIncluded,
|
|
2865
3001
|
indeterminate: row.isIndeterminate,
|
|
@@ -2872,7 +3008,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2872
3008
|
}
|
|
2873
3009
|
})
|
|
2874
3010
|
}),
|
|
2875
|
-
/* @__PURE__ */
|
|
3011
|
+
/* @__PURE__ */ jsxs20("div", {
|
|
2876
3012
|
ref: cellRef(1),
|
|
2877
3013
|
role: "gridcell",
|
|
2878
3014
|
tabIndex: tabIndex(1),
|
|
@@ -2880,9 +3016,9 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2880
3016
|
style: isTree ? { paddingInlineStart: `${((row.level ?? 1) - 1) * 1.25}rem` } : undefined,
|
|
2881
3017
|
onClick: (event) => onRowClick(event, row, index, 1),
|
|
2882
3018
|
children: [
|
|
2883
|
-
isTree && /* @__PURE__ */
|
|
3019
|
+
isTree && /* @__PURE__ */ jsx32("span", {
|
|
2884
3020
|
className: "flex size-5 shrink-0 items-center justify-center",
|
|
2885
|
-
children: row.isExpanded !== undefined && /* @__PURE__ */
|
|
3021
|
+
children: row.isExpanded !== undefined && /* @__PURE__ */ jsx32("button", {
|
|
2886
3022
|
type: "button",
|
|
2887
3023
|
tabIndex: -1,
|
|
2888
3024
|
"aria-hidden": "true",
|
|
@@ -2893,18 +3029,18 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2893
3029
|
setCursor({ row: index, cell: 1 });
|
|
2894
3030
|
onExpandedChange?.(row.id, !row.isExpanded);
|
|
2895
3031
|
},
|
|
2896
|
-
children: /* @__PURE__ */
|
|
3032
|
+
children: /* @__PURE__ */ jsx32(ChevronRightIcon4, {
|
|
2897
3033
|
className: cn2("size-4 transition-transform", row.isExpanded && "rotate-90")
|
|
2898
3034
|
})
|
|
2899
3035
|
})
|
|
2900
3036
|
}),
|
|
2901
|
-
/* @__PURE__ */
|
|
3037
|
+
/* @__PURE__ */ jsx32("div", {
|
|
2902
3038
|
className: "min-w-0 flex-1",
|
|
2903
3039
|
children: row.content
|
|
2904
3040
|
})
|
|
2905
3041
|
]
|
|
2906
3042
|
}),
|
|
2907
|
-
row.cells?.map((cell, offset) => /* @__PURE__ */
|
|
3043
|
+
row.cells?.map((cell, offset) => /* @__PURE__ */ jsx32("div", {
|
|
2908
3044
|
ref: cellRef(offset + 2),
|
|
2909
3045
|
role: "gridcell",
|
|
2910
3046
|
tabIndex: tabIndex(offset + 2),
|
|
@@ -2919,10 +3055,10 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2919
3055
|
}
|
|
2920
3056
|
// src/components/ChoiceTable.tsx
|
|
2921
3057
|
import {
|
|
2922
|
-
useId as
|
|
3058
|
+
useId as useId6,
|
|
2923
3059
|
useRef as useRef4
|
|
2924
3060
|
} from "react";
|
|
2925
|
-
import { jsx as
|
|
3061
|
+
import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2926
3062
|
function isModified(event) {
|
|
2927
3063
|
return event.altKey || event.metaKey || event.ctrlKey || event.shiftKey;
|
|
2928
3064
|
}
|
|
@@ -2935,7 +3071,7 @@ function ChoiceTable2({
|
|
|
2935
3071
|
onConfirm,
|
|
2936
3072
|
ref
|
|
2937
3073
|
}) {
|
|
2938
|
-
const baseId =
|
|
3074
|
+
const baseId = useId6();
|
|
2939
3075
|
const rowsRef = useRef4(new Map);
|
|
2940
3076
|
const chosenIndex = rows.findIndex((row) => row.id === value);
|
|
2941
3077
|
const rowId = (id) => `${baseId}-${id}`;
|
|
@@ -2974,7 +3110,7 @@ function ChoiceTable2({
|
|
|
2974
3110
|
onValueChange(row.id);
|
|
2975
3111
|
event.currentTarget.closest("[role='grid']")?.focus({ preventScroll: true });
|
|
2976
3112
|
};
|
|
2977
|
-
return /* @__PURE__ */
|
|
3113
|
+
return /* @__PURE__ */ jsxs21("div", {
|
|
2978
3114
|
ref,
|
|
2979
3115
|
"data-slot": "choice-table",
|
|
2980
3116
|
role: "grid",
|
|
@@ -2986,12 +3122,12 @@ function ChoiceTable2({
|
|
|
2986
3122
|
className: "group/choice flex min-w-0 flex-col rounded-md text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2987
3123
|
onKeyDown,
|
|
2988
3124
|
children: [
|
|
2989
|
-
/* @__PURE__ */
|
|
3125
|
+
/* @__PURE__ */ jsx33("div", {
|
|
2990
3126
|
role: "row",
|
|
2991
3127
|
"aria-rowindex": 1,
|
|
2992
3128
|
style: template,
|
|
2993
3129
|
className: "grid items-end gap-x-3 border-b px-3 py-1.5 text-xs text-muted-foreground",
|
|
2994
|
-
children: columns.map((column) => /* @__PURE__ */
|
|
3130
|
+
children: columns.map((column) => /* @__PURE__ */ jsx33("div", {
|
|
2995
3131
|
role: "columnheader",
|
|
2996
3132
|
className: cn2("min-w-0", column.isEnd && "text-end"),
|
|
2997
3133
|
children: column.header
|
|
@@ -2999,7 +3135,7 @@ function ChoiceTable2({
|
|
|
2999
3135
|
}),
|
|
3000
3136
|
rows.map((row, index) => {
|
|
3001
3137
|
const isChosen = index === chosenIndex;
|
|
3002
|
-
return /* @__PURE__ */
|
|
3138
|
+
return /* @__PURE__ */ jsxs21("div", {
|
|
3003
3139
|
id: rowId(row.id),
|
|
3004
3140
|
ref: (element) => {
|
|
3005
3141
|
if (element)
|
|
@@ -3016,12 +3152,12 @@ function ChoiceTable2({
|
|
|
3016
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"),
|
|
3017
3153
|
onClick: (event) => onRowClick(event, row),
|
|
3018
3154
|
children: [
|
|
3019
|
-
row.cells.map((cell, cellIndex) => /* @__PURE__ */
|
|
3155
|
+
row.cells.map((cell, cellIndex) => /* @__PURE__ */ jsx33("div", {
|
|
3020
3156
|
role: "gridcell",
|
|
3021
3157
|
className: cn2("min-w-0 break-words", columns[cellIndex]?.isEnd && "text-end"),
|
|
3022
3158
|
children: cell
|
|
3023
3159
|
}, cellIndex)),
|
|
3024
|
-
row.detail !== undefined && /* @__PURE__ */
|
|
3160
|
+
row.detail !== undefined && /* @__PURE__ */ jsx33("div", {
|
|
3025
3161
|
"data-slot": "choice-table-detail",
|
|
3026
3162
|
role: "gridcell",
|
|
3027
3163
|
className: "col-span-full min-w-0",
|
|
@@ -3035,7 +3171,7 @@ function ChoiceTable2({
|
|
|
3035
3171
|
}
|
|
3036
3172
|
// src/components/ConfirmationDialog.tsx
|
|
3037
3173
|
import { useState as useState5 } from "react";
|
|
3038
|
-
import { jsx as
|
|
3174
|
+
import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3039
3175
|
function ConfirmationDialog2({
|
|
3040
3176
|
open,
|
|
3041
3177
|
title,
|
|
@@ -3047,7 +3183,7 @@ function ConfirmationDialog2({
|
|
|
3047
3183
|
}) {
|
|
3048
3184
|
const [isPending, setPending] = useState5(false);
|
|
3049
3185
|
const [error, setError] = useState5(null);
|
|
3050
|
-
return /* @__PURE__ */
|
|
3186
|
+
return /* @__PURE__ */ jsx34(AlertDialog2, {
|
|
3051
3187
|
open,
|
|
3052
3188
|
onOpenChange: (next, details) => {
|
|
3053
3189
|
if (isPending)
|
|
@@ -3057,33 +3193,33 @@ function ConfirmationDialog2({
|
|
|
3057
3193
|
onOpenChange(next);
|
|
3058
3194
|
}
|
|
3059
3195
|
},
|
|
3060
|
-
children: /* @__PURE__ */
|
|
3196
|
+
children: /* @__PURE__ */ jsxs22(AlertDialogContent2, {
|
|
3061
3197
|
children: [
|
|
3062
|
-
/* @__PURE__ */
|
|
3063
|
-
children: /* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx34(AlertDialogHeader2, {
|
|
3199
|
+
children: /* @__PURE__ */ jsx34(AlertDialogTitle2, {
|
|
3064
3200
|
children: title
|
|
3065
3201
|
})
|
|
3066
3202
|
}),
|
|
3067
|
-
/* @__PURE__ */
|
|
3203
|
+
/* @__PURE__ */ jsxs22(ScrollArea2, {
|
|
3068
3204
|
children: [
|
|
3069
|
-
/* @__PURE__ */
|
|
3205
|
+
/* @__PURE__ */ jsx34(AlertDialogDescription2, {
|
|
3070
3206
|
children: description
|
|
3071
3207
|
}),
|
|
3072
|
-
error && /* @__PURE__ */
|
|
3208
|
+
error && /* @__PURE__ */ jsx34(Alert2, {
|
|
3073
3209
|
variant: "destructive",
|
|
3074
|
-
children: /* @__PURE__ */
|
|
3210
|
+
children: /* @__PURE__ */ jsx34(AlertDescription2, {
|
|
3075
3211
|
children: error
|
|
3076
3212
|
})
|
|
3077
3213
|
})
|
|
3078
3214
|
]
|
|
3079
3215
|
}),
|
|
3080
|
-
/* @__PURE__ */
|
|
3216
|
+
/* @__PURE__ */ jsxs22(AlertDialogFooter2, {
|
|
3081
3217
|
children: [
|
|
3082
|
-
/* @__PURE__ */
|
|
3218
|
+
/* @__PURE__ */ jsx34(AlertDialogCancel2, {
|
|
3083
3219
|
disabled: isPending,
|
|
3084
3220
|
children: "Cancel"
|
|
3085
3221
|
}),
|
|
3086
|
-
/* @__PURE__ */
|
|
3222
|
+
/* @__PURE__ */ jsx34(Button2, {
|
|
3087
3223
|
variant: "destructive",
|
|
3088
3224
|
disabled: isPending,
|
|
3089
3225
|
onClick: async () => {
|
|
@@ -3127,7 +3263,7 @@ function useObjectURL(file) {
|
|
|
3127
3263
|
}
|
|
3128
3264
|
|
|
3129
3265
|
// src/components/ImagePicker.tsx
|
|
3130
|
-
import { jsx as
|
|
3266
|
+
import { jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3131
3267
|
function ImagePicker2({
|
|
3132
3268
|
analytics,
|
|
3133
3269
|
src,
|
|
@@ -3141,27 +3277,27 @@ function ImagePicker2({
|
|
|
3141
3277
|
const input = useRef5(null);
|
|
3142
3278
|
const preview = useObjectURL(file);
|
|
3143
3279
|
const image = file === null ? undefined : preview ?? src;
|
|
3144
|
-
return /* @__PURE__ */
|
|
3280
|
+
return /* @__PURE__ */ jsxs23("figure", {
|
|
3145
3281
|
className: "flex min-w-0 flex-col items-center gap-3",
|
|
3146
3282
|
"aria-label": label,
|
|
3147
3283
|
children: [
|
|
3148
|
-
/* @__PURE__ */
|
|
3284
|
+
/* @__PURE__ */ jsxs23(Avatar2, {
|
|
3149
3285
|
size: "preview",
|
|
3150
3286
|
shape: "square",
|
|
3151
3287
|
children: [
|
|
3152
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx35(AvatarImage2, {
|
|
3153
3289
|
src: image,
|
|
3154
3290
|
alt: label
|
|
3155
3291
|
}),
|
|
3156
|
-
/* @__PURE__ */
|
|
3157
|
-
children: /* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx35(AvatarFallback2, {
|
|
3293
|
+
children: /* @__PURE__ */ jsx35(ImageIcon, {
|
|
3158
3294
|
className: "size-12",
|
|
3159
3295
|
"aria-hidden": "true"
|
|
3160
3296
|
})
|
|
3161
3297
|
})
|
|
3162
3298
|
]
|
|
3163
3299
|
}),
|
|
3164
|
-
/* @__PURE__ */
|
|
3300
|
+
/* @__PURE__ */ jsx35("input", {
|
|
3165
3301
|
ref: input,
|
|
3166
3302
|
hidden: true,
|
|
3167
3303
|
type: "file",
|
|
@@ -3177,22 +3313,22 @@ function ImagePicker2({
|
|
|
3177
3313
|
event.currentTarget.value = "";
|
|
3178
3314
|
}
|
|
3179
3315
|
}),
|
|
3180
|
-
/* @__PURE__ */
|
|
3316
|
+
/* @__PURE__ */ jsxs23("div", {
|
|
3181
3317
|
className: "flex flex-wrap justify-center gap-2",
|
|
3182
3318
|
children: [
|
|
3183
|
-
/* @__PURE__ */
|
|
3319
|
+
/* @__PURE__ */ jsxs23(Button2, {
|
|
3184
3320
|
type: "button",
|
|
3185
3321
|
variant: "outline",
|
|
3186
3322
|
disabled,
|
|
3187
3323
|
onClick: () => input.current?.click(),
|
|
3188
3324
|
children: [
|
|
3189
|
-
/* @__PURE__ */
|
|
3325
|
+
/* @__PURE__ */ jsx35(UploadIcon, {
|
|
3190
3326
|
"data-icon": "inline-start"
|
|
3191
3327
|
}),
|
|
3192
3328
|
"Upload image"
|
|
3193
3329
|
]
|
|
3194
3330
|
}),
|
|
3195
|
-
/* @__PURE__ */
|
|
3331
|
+
/* @__PURE__ */ jsx35(Button2, {
|
|
3196
3332
|
type: "button",
|
|
3197
3333
|
variant: "outline",
|
|
3198
3334
|
disabled: disabled || !image,
|
|
@@ -3206,9 +3342,9 @@ function ImagePicker2({
|
|
|
3206
3342
|
}
|
|
3207
3343
|
// src/components/Meter.tsx
|
|
3208
3344
|
import { Meter as MeterPrimitive } from "@base-ui/react/meter";
|
|
3209
|
-
import { jsx as
|
|
3345
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3210
3346
|
function Meter2({ density, className, ...props }) {
|
|
3211
|
-
return /* @__PURE__ */
|
|
3347
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Root, {
|
|
3212
3348
|
"data-density": density,
|
|
3213
3349
|
"data-slot": "meter",
|
|
3214
3350
|
className: (state) => cn2("flex min-w-0 flex-wrap items-center gap-field-gap", typeof className === "function" ? className(state) : className),
|
|
@@ -3216,7 +3352,7 @@ function Meter2({ density, className, ...props }) {
|
|
|
3216
3352
|
});
|
|
3217
3353
|
}
|
|
3218
3354
|
function MeterLabel2({ density, className, ...props }) {
|
|
3219
|
-
return /* @__PURE__ */
|
|
3355
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Label, {
|
|
3220
3356
|
"data-density": density,
|
|
3221
3357
|
"data-slot": "meter-label",
|
|
3222
3358
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
@@ -3224,7 +3360,7 @@ function MeterLabel2({ density, className, ...props }) {
|
|
|
3224
3360
|
});
|
|
3225
3361
|
}
|
|
3226
3362
|
function MeterValue2({ density, className, ...props }) {
|
|
3227
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Value, {
|
|
3228
3364
|
"data-density": density,
|
|
3229
3365
|
"data-slot": "meter-value",
|
|
3230
3366
|
className: (state) => cn2("ms-auto text-sm text-muted-foreground tabular-nums", typeof className === "function" ? className(state) : className),
|
|
@@ -3232,7 +3368,7 @@ function MeterValue2({ density, className, ...props }) {
|
|
|
3232
3368
|
});
|
|
3233
3369
|
}
|
|
3234
3370
|
function MeterTrack2({ density, className, ...props }) {
|
|
3235
|
-
return /* @__PURE__ */
|
|
3371
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Track, {
|
|
3236
3372
|
"data-density": density,
|
|
3237
3373
|
"data-slot": "meter-track",
|
|
3238
3374
|
className: (state) => cn2("h-1 w-full overflow-hidden rounded-sm bg-muted", typeof className === "function" ? className(state) : className),
|
|
@@ -3244,7 +3380,7 @@ function MeterIndicator2({
|
|
|
3244
3380
|
className,
|
|
3245
3381
|
...props
|
|
3246
3382
|
}) {
|
|
3247
|
-
return /* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ jsx36(MeterPrimitive.Indicator, {
|
|
3248
3384
|
"data-density": density,
|
|
3249
3385
|
"data-slot": "meter-indicator",
|
|
3250
3386
|
className: (state) => cn2("h-full bg-primary transition-[width] motion-reduce:transition-none", typeof className === "function" ? className(state) : className),
|
|
@@ -3252,9 +3388,9 @@ function MeterIndicator2({
|
|
|
3252
3388
|
});
|
|
3253
3389
|
}
|
|
3254
3390
|
// src/components/ToolbarToggleChip.tsx
|
|
3255
|
-
import { useId as
|
|
3391
|
+
import { useId as useId7 } from "react";
|
|
3256
3392
|
import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
|
|
3257
|
-
import { jsx as
|
|
3393
|
+
import { jsx as jsx37, jsxs as jsxs24, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3258
3394
|
function pressedLabel(pressed) {
|
|
3259
3395
|
if (pressed === "mixed")
|
|
3260
3396
|
return "mixed";
|
|
@@ -3275,7 +3411,7 @@ function ToolbarToggleChip2({
|
|
|
3275
3411
|
spaceActivates = true,
|
|
3276
3412
|
className
|
|
3277
3413
|
}) {
|
|
3278
|
-
const reasonId =
|
|
3414
|
+
const reasonId = useId7();
|
|
3279
3415
|
const trackedChange = useAnalyticsCallback("ToolbarToggleChip", analytics, { name: "ui.change-request" }, onPressedChange);
|
|
3280
3416
|
const isDisabled = Boolean(disabledReason);
|
|
3281
3417
|
const onMouseDown = (event) => {
|
|
@@ -3291,7 +3427,7 @@ function ToolbarToggleChip2({
|
|
|
3291
3427
|
if (!spaceActivates && event.key === " ")
|
|
3292
3428
|
event.preventDefault();
|
|
3293
3429
|
};
|
|
3294
|
-
const button = /* @__PURE__ */
|
|
3430
|
+
const button = /* @__PURE__ */ jsxs24(ToolbarPrimitive.Button, {
|
|
3295
3431
|
"data-density": density,
|
|
3296
3432
|
"data-slot": "toolbar-toggle-chip",
|
|
3297
3433
|
"data-pressed": pressedLabel(pressed),
|
|
@@ -3310,17 +3446,17 @@ function ToolbarToggleChip2({
|
|
|
3310
3446
|
trackedChange(pressed !== true);
|
|
3311
3447
|
},
|
|
3312
3448
|
children: [
|
|
3313
|
-
swatch && /* @__PURE__ */
|
|
3449
|
+
swatch && /* @__PURE__ */ jsx37("span", {
|
|
3314
3450
|
"aria-hidden": "true",
|
|
3315
3451
|
"data-slot": "toolbar-toggle-chip-swatch",
|
|
3316
3452
|
className: "size-3 shrink-0 rounded-sm border border-border",
|
|
3317
3453
|
style: { backgroundColor: swatch }
|
|
3318
3454
|
}),
|
|
3319
|
-
/* @__PURE__ */
|
|
3455
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3320
3456
|
className: hideLabel ? "sr-only" : "min-w-0 truncate",
|
|
3321
3457
|
children
|
|
3322
3458
|
}),
|
|
3323
|
-
detail !== undefined && /* @__PURE__ */
|
|
3459
|
+
detail !== undefined && /* @__PURE__ */ jsxs24("span", {
|
|
3324
3460
|
"data-slot": "toolbar-toggle-chip-detail",
|
|
3325
3461
|
className: "text-xs text-muted-foreground",
|
|
3326
3462
|
children: [
|
|
@@ -3328,28 +3464,28 @@ function ToolbarToggleChip2({
|
|
|
3328
3464
|
detail
|
|
3329
3465
|
]
|
|
3330
3466
|
}),
|
|
3331
|
-
shortcut && !hideLabel && /* @__PURE__ */
|
|
3467
|
+
shortcut && !hideLabel && /* @__PURE__ */ jsx37(Kbd2, {
|
|
3332
3468
|
"aria-hidden": "true",
|
|
3333
3469
|
className: "ms-1",
|
|
3334
3470
|
children: shortcut.toUpperCase()
|
|
3335
3471
|
})
|
|
3336
3472
|
]
|
|
3337
3473
|
});
|
|
3338
|
-
return /* @__PURE__ */
|
|
3474
|
+
return /* @__PURE__ */ jsxs24(Fragment5, {
|
|
3339
3475
|
children: [
|
|
3340
|
-
disabledReason && /* @__PURE__ */
|
|
3476
|
+
disabledReason && /* @__PURE__ */ jsx37("span", {
|
|
3341
3477
|
id: reasonId,
|
|
3342
3478
|
className: "sr-only",
|
|
3343
3479
|
children: disabledReason
|
|
3344
3480
|
}),
|
|
3345
|
-
/* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ jsxs24(Tooltip2, {
|
|
3346
3482
|
disabled: !disabledReason && !hideLabel,
|
|
3347
3483
|
children: [
|
|
3348
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ jsx37(TooltipTrigger2, {
|
|
3349
3485
|
render: button,
|
|
3350
3486
|
closeOnClick: false
|
|
3351
3487
|
}),
|
|
3352
|
-
(disabledReason || hideLabel) && /* @__PURE__ */
|
|
3488
|
+
(disabledReason || hideLabel) && /* @__PURE__ */ jsxs24(TooltipContent2, {
|
|
3353
3489
|
children: [
|
|
3354
3490
|
hideLabel ? children : null,
|
|
3355
3491
|
hideLabel && shortcut ? ` · ${shortcut.toUpperCase()}` : null,
|
|
@@ -3365,9 +3501,9 @@ function ToolbarToggleChip2({
|
|
|
3365
3501
|
// src/components/Stepper.tsx
|
|
3366
3502
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
3367
3503
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3368
|
-
import { jsx as
|
|
3504
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3369
3505
|
function Stepper2({ density, className, ...props }) {
|
|
3370
|
-
return /* @__PURE__ */
|
|
3506
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.Root, {
|
|
3371
3507
|
"data-density": density,
|
|
3372
3508
|
"data-slot": "stepper",
|
|
3373
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),
|
|
@@ -3380,7 +3516,7 @@ function StepperList2({
|
|
|
3380
3516
|
activateOnFocus = false,
|
|
3381
3517
|
...props
|
|
3382
3518
|
}) {
|
|
3383
|
-
return /* @__PURE__ */
|
|
3519
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.List, {
|
|
3384
3520
|
"data-density": density,
|
|
3385
3521
|
"data-slot": "stepper-list",
|
|
3386
3522
|
activateOnFocus,
|
|
@@ -3389,7 +3525,7 @@ function StepperList2({
|
|
|
3389
3525
|
});
|
|
3390
3526
|
}
|
|
3391
3527
|
function StepperTrigger2({ density, className, ...props }) {
|
|
3392
|
-
return /* @__PURE__ */
|
|
3528
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.Tab, {
|
|
3393
3529
|
"data-density": density,
|
|
3394
3530
|
"data-slot": "stepper-trigger",
|
|
3395
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),
|
|
@@ -3397,17 +3533,17 @@ function StepperTrigger2({ density, className, ...props }) {
|
|
|
3397
3533
|
});
|
|
3398
3534
|
}
|
|
3399
3535
|
function StepperIndicator2({ completed = false, children, className, ...props }) {
|
|
3400
|
-
return /* @__PURE__ */
|
|
3536
|
+
return /* @__PURE__ */ jsx38("span", {
|
|
3401
3537
|
"aria-hidden": "true",
|
|
3402
3538
|
"data-slot": "stepper-indicator",
|
|
3403
3539
|
"data-completed": completed || undefined,
|
|
3404
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),
|
|
3405
3541
|
...props,
|
|
3406
|
-
children: completed ? /* @__PURE__ */
|
|
3542
|
+
children: completed ? /* @__PURE__ */ jsx38(CheckIcon2, {}) : children
|
|
3407
3543
|
});
|
|
3408
3544
|
}
|
|
3409
3545
|
function StepperContent2({ density, className, ...props }) {
|
|
3410
|
-
return /* @__PURE__ */
|
|
3546
|
+
return /* @__PURE__ */ jsx38(TabsPrimitive.Panel, {
|
|
3411
3547
|
"data-density": density,
|
|
3412
3548
|
"data-slot": "stepper-content",
|
|
3413
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),
|
|
@@ -3415,7 +3551,7 @@ function StepperContent2({ density, className, ...props }) {
|
|
|
3415
3551
|
});
|
|
3416
3552
|
}
|
|
3417
3553
|
// src/components/AppShell.tsx
|
|
3418
|
-
import { jsx as
|
|
3554
|
+
import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3419
3555
|
function AppShell2({
|
|
3420
3556
|
navigation,
|
|
3421
3557
|
brand,
|
|
@@ -3429,28 +3565,28 @@ function AppShell2({
|
|
|
3429
3565
|
content = "scroll",
|
|
3430
3566
|
density
|
|
3431
3567
|
}) {
|
|
3432
|
-
return /* @__PURE__ */
|
|
3568
|
+
return /* @__PURE__ */ jsxs25(SidebarProvider2, {
|
|
3433
3569
|
density,
|
|
3434
3570
|
defaultOpen: defaultSidebarOpen,
|
|
3435
3571
|
className: "relative min-h-0",
|
|
3436
3572
|
style: { height },
|
|
3437
3573
|
"data-scroll": "none",
|
|
3438
3574
|
children: [
|
|
3439
|
-
/* @__PURE__ */
|
|
3575
|
+
/* @__PURE__ */ jsxs25(Sidebar2, {
|
|
3440
3576
|
collapsible: "icon",
|
|
3441
3577
|
position: "container",
|
|
3442
3578
|
children: [
|
|
3443
|
-
/* @__PURE__ */
|
|
3579
|
+
/* @__PURE__ */ jsx39(SidebarHeader2, {
|
|
3444
3580
|
children: brand
|
|
3445
3581
|
}),
|
|
3446
|
-
/* @__PURE__ */
|
|
3447
|
-
children: /* @__PURE__ */
|
|
3582
|
+
/* @__PURE__ */ jsx39(SidebarContent2, {
|
|
3583
|
+
children: /* @__PURE__ */ jsx39("nav", {
|
|
3448
3584
|
"aria-label": "Primary navigation",
|
|
3449
|
-
children: /* @__PURE__ */
|
|
3450
|
-
children: /* @__PURE__ */
|
|
3451
|
-
children: navigation.map((item) => /* @__PURE__ */
|
|
3452
|
-
children: /* @__PURE__ */
|
|
3453
|
-
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, {
|
|
3454
3590
|
component: "AppShell",
|
|
3455
3591
|
render: item.render,
|
|
3456
3592
|
...item.href === undefined ? {} : { href: item.href },
|
|
@@ -3460,7 +3596,7 @@ function AppShell2({
|
|
|
3460
3596
|
tooltip: item.label,
|
|
3461
3597
|
children: [
|
|
3462
3598
|
item.icon,
|
|
3463
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ jsx39("span", {
|
|
3464
3600
|
children: item.label
|
|
3465
3601
|
})
|
|
3466
3602
|
]
|
|
@@ -3470,41 +3606,41 @@ function AppShell2({
|
|
|
3470
3606
|
})
|
|
3471
3607
|
})
|
|
3472
3608
|
}),
|
|
3473
|
-
sidebarFooter && /* @__PURE__ */
|
|
3609
|
+
sidebarFooter && /* @__PURE__ */ jsx39(SidebarFooter2, {
|
|
3474
3610
|
children: sidebarFooter
|
|
3475
3611
|
})
|
|
3476
3612
|
]
|
|
3477
3613
|
}),
|
|
3478
|
-
/* @__PURE__ */
|
|
3614
|
+
/* @__PURE__ */ jsxs25(SidebarInset2, {
|
|
3479
3615
|
"aria-label": label,
|
|
3480
3616
|
className: "min-h-0 min-w-0",
|
|
3481
3617
|
"data-scroll": "none",
|
|
3482
3618
|
children: [
|
|
3483
|
-
/* @__PURE__ */
|
|
3619
|
+
/* @__PURE__ */ jsxs25("header", {
|
|
3484
3620
|
"data-scroll": "none",
|
|
3485
3621
|
className: "flex shrink-0 items-center gap-control-gap border-b border-border p-panel",
|
|
3486
3622
|
children: [
|
|
3487
|
-
/* @__PURE__ */
|
|
3488
|
-
/* @__PURE__ */
|
|
3623
|
+
/* @__PURE__ */ jsx39(SidebarTrigger2, {}),
|
|
3624
|
+
/* @__PURE__ */ jsx39(Separator2, {
|
|
3489
3625
|
orientation: "vertical",
|
|
3490
3626
|
className: "h-control"
|
|
3491
3627
|
}),
|
|
3492
3628
|
header
|
|
3493
3629
|
]
|
|
3494
3630
|
}),
|
|
3495
|
-
content === "fill" ? /* @__PURE__ */
|
|
3631
|
+
content === "fill" ? /* @__PURE__ */ jsx39("div", {
|
|
3496
3632
|
"data-slot": "app-shell-content",
|
|
3497
3633
|
"data-scroll": "none",
|
|
3498
3634
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
3499
3635
|
children
|
|
3500
|
-
}) : /* @__PURE__ */
|
|
3636
|
+
}) : /* @__PURE__ */ jsx39(ScrollArea2, {
|
|
3501
3637
|
className: "min-h-0 flex-1",
|
|
3502
|
-
children: /* @__PURE__ */
|
|
3638
|
+
children: /* @__PURE__ */ jsx39("div", {
|
|
3503
3639
|
className: "flex min-w-0 flex-col gap-panel p-panel",
|
|
3504
3640
|
children
|
|
3505
3641
|
})
|
|
3506
3642
|
}),
|
|
3507
|
-
footer && /* @__PURE__ */
|
|
3643
|
+
footer && /* @__PURE__ */ jsx39("footer", {
|
|
3508
3644
|
className: "shrink-0 border-t border-border p-panel",
|
|
3509
3645
|
"data-scroll": "none",
|
|
3510
3646
|
children: footer
|
|
@@ -3854,7 +3990,7 @@ import {
|
|
|
3854
3990
|
DropletIcon,
|
|
3855
3991
|
SunIcon
|
|
3856
3992
|
} from "lucide-react";
|
|
3857
|
-
import { jsx as
|
|
3993
|
+
import { jsx as jsx40, jsxs as jsxs26, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3858
3994
|
var CONDITION_ICONS = {
|
|
3859
3995
|
clear: SunIcon,
|
|
3860
3996
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -3906,43 +4042,43 @@ function WeatherSummary2({
|
|
|
3906
4042
|
defaultTagName: "div",
|
|
3907
4043
|
props: mergeProps14({
|
|
3908
4044
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
3909
|
-
children: /* @__PURE__ */
|
|
4045
|
+
children: /* @__PURE__ */ jsxs26(Fragment6, {
|
|
3910
4046
|
children: [
|
|
3911
|
-
/* @__PURE__ */
|
|
4047
|
+
/* @__PURE__ */ jsx40(ConditionIcon, {
|
|
3912
4048
|
"aria-hidden": "true",
|
|
3913
4049
|
"data-slot": "weather-summary-icon",
|
|
3914
4050
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
3915
4051
|
}),
|
|
3916
|
-
/* @__PURE__ */
|
|
4052
|
+
/* @__PURE__ */ jsxs26("div", {
|
|
3917
4053
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
3918
4054
|
children: [
|
|
3919
|
-
/* @__PURE__ */
|
|
4055
|
+
/* @__PURE__ */ jsx40("div", {
|
|
3920
4056
|
className: "text-sm font-medium break-words",
|
|
3921
4057
|
children: label
|
|
3922
4058
|
}),
|
|
3923
|
-
/* @__PURE__ */
|
|
4059
|
+
/* @__PURE__ */ jsx40("div", {
|
|
3924
4060
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
3925
4061
|
children: conditionLabel
|
|
3926
4062
|
}),
|
|
3927
|
-
/* @__PURE__ */
|
|
4063
|
+
/* @__PURE__ */ jsxs26("div", {
|
|
3928
4064
|
className: "flex flex-wrap items-baseline gap-x-2 text-sm tabular-nums",
|
|
3929
4065
|
children: [
|
|
3930
|
-
/* @__PURE__ */
|
|
4066
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
3931
4067
|
children: [
|
|
3932
|
-
/* @__PURE__ */
|
|
4068
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3933
4069
|
className: "sr-only",
|
|
3934
4070
|
children: "High "
|
|
3935
4071
|
}),
|
|
3936
|
-
/* @__PURE__ */
|
|
4072
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3937
4073
|
className: "font-medium",
|
|
3938
4074
|
children: highText
|
|
3939
4075
|
})
|
|
3940
4076
|
]
|
|
3941
4077
|
}),
|
|
3942
|
-
/* @__PURE__ */
|
|
4078
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
3943
4079
|
className: "text-muted-foreground",
|
|
3944
4080
|
children: [
|
|
3945
|
-
/* @__PURE__ */
|
|
4081
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3946
4082
|
className: "sr-only",
|
|
3947
4083
|
children: "Low "
|
|
3948
4084
|
}),
|
|
@@ -3951,17 +4087,17 @@ function WeatherSummary2({
|
|
|
3951
4087
|
})
|
|
3952
4088
|
]
|
|
3953
4089
|
}),
|
|
3954
|
-
probabilityText !== undefined && /* @__PURE__ */
|
|
4090
|
+
probabilityText !== undefined && /* @__PURE__ */ jsxs26("div", {
|
|
3955
4091
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
3956
4092
|
children: [
|
|
3957
|
-
/* @__PURE__ */
|
|
4093
|
+
/* @__PURE__ */ jsx40(DropletIcon, {
|
|
3958
4094
|
"aria-hidden": "true",
|
|
3959
4095
|
className: "size-3 shrink-0"
|
|
3960
4096
|
}),
|
|
3961
|
-
/* @__PURE__ */
|
|
4097
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
3962
4098
|
children: [
|
|
3963
4099
|
probabilityText,
|
|
3964
|
-
/* @__PURE__ */
|
|
4100
|
+
/* @__PURE__ */ jsx40("span", {
|
|
3965
4101
|
className: "sr-only",
|
|
3966
4102
|
children: " chance of precipitation"
|
|
3967
4103
|
})
|
|
@@ -3979,7 +4115,7 @@ function WeatherSummary2({
|
|
|
3979
4115
|
});
|
|
3980
4116
|
}
|
|
3981
4117
|
// src/components/WeatherForecast.tsx
|
|
3982
|
-
import { jsx as
|
|
4118
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3983
4119
|
function WeatherForecast2({
|
|
3984
4120
|
days,
|
|
3985
4121
|
label,
|
|
@@ -3990,52 +4126,52 @@ function WeatherForecast2({
|
|
|
3990
4126
|
className,
|
|
3991
4127
|
...props
|
|
3992
4128
|
}) {
|
|
3993
|
-
return /* @__PURE__ */
|
|
4129
|
+
return /* @__PURE__ */ jsx41("ul", {
|
|
3994
4130
|
"aria-label": label,
|
|
3995
4131
|
"data-slot": "weather-forecast",
|
|
3996
4132
|
"data-density": density,
|
|
3997
4133
|
className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
|
|
3998
4134
|
...props,
|
|
3999
|
-
children: days.map(({ id, ...day }) => /* @__PURE__ */
|
|
4135
|
+
children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx41(WeatherSummary2, {
|
|
4000
4136
|
...day,
|
|
4001
4137
|
unit,
|
|
4002
4138
|
locale,
|
|
4003
4139
|
variant: variant === "strip" ? "compact" : "default",
|
|
4004
|
-
render: /* @__PURE__ */
|
|
4140
|
+
render: /* @__PURE__ */ jsx41("li", {})
|
|
4005
4141
|
}, id))
|
|
4006
4142
|
});
|
|
4007
4143
|
}
|
|
4008
4144
|
// src/components/PageHeader.tsx
|
|
4009
|
-
import { jsx as
|
|
4145
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4010
4146
|
function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, density }) {
|
|
4011
|
-
return /* @__PURE__ */
|
|
4147
|
+
return /* @__PURE__ */ jsxs27("header", {
|
|
4012
4148
|
"data-density": density,
|
|
4013
4149
|
"data-slot": "page-header",
|
|
4014
4150
|
"data-scroll": "none",
|
|
4015
4151
|
className: "flex min-w-0 flex-col gap-field-gap",
|
|
4016
4152
|
children: [
|
|
4017
4153
|
breadcrumbs,
|
|
4018
|
-
/* @__PURE__ */
|
|
4154
|
+
/* @__PURE__ */ jsxs27("div", {
|
|
4019
4155
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-panel",
|
|
4020
4156
|
children: [
|
|
4021
|
-
/* @__PURE__ */
|
|
4157
|
+
/* @__PURE__ */ jsxs27("div", {
|
|
4022
4158
|
className: "min-w-0",
|
|
4023
4159
|
children: [
|
|
4024
|
-
eyebrow != null && /* @__PURE__ */
|
|
4160
|
+
eyebrow != null && /* @__PURE__ */ jsx42("div", {
|
|
4025
4161
|
className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4026
4162
|
children: eyebrow
|
|
4027
4163
|
}),
|
|
4028
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ jsx42("h1", {
|
|
4029
4165
|
className: "text-xl font-semibold text-foreground",
|
|
4030
4166
|
children: title
|
|
4031
4167
|
}),
|
|
4032
|
-
description && /* @__PURE__ */
|
|
4168
|
+
description && /* @__PURE__ */ jsx42("div", {
|
|
4033
4169
|
className: "mt-1 text-sm text-muted-foreground",
|
|
4034
4170
|
children: description
|
|
4035
4171
|
})
|
|
4036
4172
|
]
|
|
4037
4173
|
}),
|
|
4038
|
-
actions && /* @__PURE__ */
|
|
4174
|
+
actions && /* @__PURE__ */ jsx42("div", {
|
|
4039
4175
|
className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4040
4176
|
children: actions
|
|
4041
4177
|
})
|
|
@@ -4045,46 +4181,46 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
4045
4181
|
});
|
|
4046
4182
|
}
|
|
4047
4183
|
// src/components/PageIntro.tsx
|
|
4048
|
-
import { jsx as
|
|
4184
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4049
4185
|
function PageIntro2({ title, description, eyebrow, icon, actions, highlights, density }) {
|
|
4050
|
-
return /* @__PURE__ */
|
|
4186
|
+
return /* @__PURE__ */ jsx43("header", {
|
|
4051
4187
|
"data-density": density,
|
|
4052
4188
|
"data-slot": "page-intro",
|
|
4053
4189
|
"data-scroll": "none",
|
|
4054
4190
|
className: "@container/page-intro min-w-0",
|
|
4055
|
-
children: /* @__PURE__ */
|
|
4191
|
+
children: /* @__PURE__ */ jsxs28(Card2, {
|
|
4056
4192
|
variant: "hero",
|
|
4057
4193
|
className: "gap-0 py-0",
|
|
4058
4194
|
children: [
|
|
4059
|
-
/* @__PURE__ */
|
|
4195
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4060
4196
|
"aria-hidden": "true",
|
|
4061
4197
|
"data-slot": "page-intro-wash",
|
|
4062
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%)]"
|
|
4063
4199
|
}),
|
|
4064
|
-
/* @__PURE__ */
|
|
4200
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4065
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",
|
|
4066
4202
|
children: [
|
|
4067
|
-
/* @__PURE__ */
|
|
4203
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4068
4204
|
className: "flex min-w-0 gap-panel",
|
|
4069
4205
|
children: [
|
|
4070
|
-
icon != null && /* @__PURE__ */
|
|
4206
|
+
icon != null && /* @__PURE__ */ jsx43("div", {
|
|
4071
4207
|
"aria-hidden": "true",
|
|
4072
4208
|
"data-slot": "page-intro-icon",
|
|
4073
4209
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
4074
4210
|
children: icon
|
|
4075
4211
|
}),
|
|
4076
|
-
/* @__PURE__ */
|
|
4212
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4077
4213
|
className: "min-w-0",
|
|
4078
4214
|
children: [
|
|
4079
|
-
eyebrow != null && /* @__PURE__ */
|
|
4215
|
+
eyebrow != null && /* @__PURE__ */ jsx43("div", {
|
|
4080
4216
|
className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4081
4217
|
children: eyebrow
|
|
4082
4218
|
}),
|
|
4083
|
-
/* @__PURE__ */
|
|
4219
|
+
/* @__PURE__ */ jsx43("h1", {
|
|
4084
4220
|
className: "text-2xl font-semibold text-foreground",
|
|
4085
4221
|
children: title
|
|
4086
4222
|
}),
|
|
4087
|
-
/* @__PURE__ */
|
|
4223
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4088
4224
|
className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
|
|
4089
4225
|
children: description
|
|
4090
4226
|
})
|
|
@@ -4092,33 +4228,33 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4092
4228
|
})
|
|
4093
4229
|
]
|
|
4094
4230
|
}),
|
|
4095
|
-
actions != null && /* @__PURE__ */
|
|
4231
|
+
actions != null && /* @__PURE__ */ jsx43("div", {
|
|
4096
4232
|
className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4097
4233
|
children: actions
|
|
4098
4234
|
})
|
|
4099
4235
|
]
|
|
4100
4236
|
}),
|
|
4101
|
-
highlights != null && highlights.length > 0 && /* @__PURE__ */
|
|
4237
|
+
highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx43("ul", {
|
|
4102
4238
|
"aria-label": `What you can do in ${title}`,
|
|
4103
4239
|
"data-slot": "page-intro-highlights",
|
|
4104
4240
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
4105
|
-
children: highlights.map((highlight) => /* @__PURE__ */
|
|
4241
|
+
children: highlights.map((highlight) => /* @__PURE__ */ jsxs28("li", {
|
|
4106
4242
|
"data-slot": "page-intro-highlight",
|
|
4107
4243
|
className: "flex min-w-0 gap-2",
|
|
4108
4244
|
children: [
|
|
4109
|
-
highlight.icon != null && /* @__PURE__ */
|
|
4245
|
+
highlight.icon != null && /* @__PURE__ */ jsx43("span", {
|
|
4110
4246
|
"aria-hidden": "true",
|
|
4111
4247
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
4112
4248
|
children: highlight.icon
|
|
4113
4249
|
}),
|
|
4114
|
-
/* @__PURE__ */
|
|
4250
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4115
4251
|
className: "min-w-0",
|
|
4116
4252
|
children: [
|
|
4117
|
-
/* @__PURE__ */
|
|
4253
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4118
4254
|
className: "text-sm font-medium text-foreground",
|
|
4119
4255
|
children: highlight.title
|
|
4120
4256
|
}),
|
|
4121
|
-
/* @__PURE__ */
|
|
4257
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4122
4258
|
className: "mt-0.5 text-sm text-muted-foreground",
|
|
4123
4259
|
children: highlight.description
|
|
4124
4260
|
})
|
|
@@ -4132,7 +4268,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4132
4268
|
});
|
|
4133
4269
|
}
|
|
4134
4270
|
// src/components/WorkspaceSwitcher.tsx
|
|
4135
|
-
import { jsx as
|
|
4271
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4136
4272
|
function WorkspaceSwitcher2({
|
|
4137
4273
|
workspaces,
|
|
4138
4274
|
value,
|
|
@@ -4142,7 +4278,7 @@ function WorkspaceSwitcher2({
|
|
|
4142
4278
|
label = "Workspace",
|
|
4143
4279
|
density
|
|
4144
4280
|
}) {
|
|
4145
|
-
return /* @__PURE__ */
|
|
4281
|
+
return /* @__PURE__ */ jsxs29(Select2, {
|
|
4146
4282
|
items: workspaces,
|
|
4147
4283
|
value,
|
|
4148
4284
|
defaultValue: defaultValue ?? workspaces[0]?.value,
|
|
@@ -4152,15 +4288,15 @@ function WorkspaceSwitcher2({
|
|
|
4152
4288
|
},
|
|
4153
4289
|
disabled,
|
|
4154
4290
|
children: [
|
|
4155
|
-
/* @__PURE__ */
|
|
4291
|
+
/* @__PURE__ */ jsx44(SelectTrigger2, {
|
|
4156
4292
|
"aria-label": label,
|
|
4157
4293
|
density,
|
|
4158
|
-
children: /* @__PURE__ */
|
|
4294
|
+
children: /* @__PURE__ */ jsx44(SelectValue2, {})
|
|
4159
4295
|
}),
|
|
4160
|
-
/* @__PURE__ */
|
|
4296
|
+
/* @__PURE__ */ jsx44(SelectContent2, {
|
|
4161
4297
|
density,
|
|
4162
|
-
children: /* @__PURE__ */
|
|
4163
|
-
children: workspaces.map((workspace) => /* @__PURE__ */
|
|
4298
|
+
children: /* @__PURE__ */ jsx44(SelectGroup2, {
|
|
4299
|
+
children: workspaces.map((workspace) => /* @__PURE__ */ jsx44(SelectItem2, {
|
|
4164
4300
|
value: workspace.value,
|
|
4165
4301
|
children: workspace.label
|
|
4166
4302
|
}, workspace.value))
|
|
@@ -4170,52 +4306,52 @@ function WorkspaceSwitcher2({
|
|
|
4170
4306
|
});
|
|
4171
4307
|
}
|
|
4172
4308
|
// src/components/AccountMenu.tsx
|
|
4173
|
-
import { jsx as
|
|
4309
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4174
4310
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
4175
|
-
return /* @__PURE__ */
|
|
4311
|
+
return /* @__PURE__ */ jsxs30(DropdownMenu2, {
|
|
4176
4312
|
children: [
|
|
4177
|
-
/* @__PURE__ */
|
|
4178
|
-
render: /* @__PURE__ */
|
|
4313
|
+
/* @__PURE__ */ jsxs30(DropdownMenuTrigger2, {
|
|
4314
|
+
render: /* @__PURE__ */ jsx45(Button2, {
|
|
4179
4315
|
variant: "ghost",
|
|
4180
4316
|
density
|
|
4181
4317
|
}),
|
|
4182
4318
|
"aria-label": `Account menu for ${name}`,
|
|
4183
4319
|
children: [
|
|
4184
|
-
/* @__PURE__ */
|
|
4320
|
+
/* @__PURE__ */ jsxs30(Avatar2, {
|
|
4185
4321
|
className: "size-control",
|
|
4186
4322
|
children: [
|
|
4187
|
-
/* @__PURE__ */
|
|
4323
|
+
/* @__PURE__ */ jsx45(AvatarImage2, {
|
|
4188
4324
|
src: image,
|
|
4189
4325
|
alt: ""
|
|
4190
4326
|
}),
|
|
4191
|
-
/* @__PURE__ */
|
|
4327
|
+
/* @__PURE__ */ jsx45(AvatarFallback2, {
|
|
4192
4328
|
children: name.slice(0, 2).toUpperCase()
|
|
4193
4329
|
})
|
|
4194
4330
|
]
|
|
4195
4331
|
}),
|
|
4196
|
-
/* @__PURE__ */
|
|
4332
|
+
/* @__PURE__ */ jsx45("span", {
|
|
4197
4333
|
children: name
|
|
4198
4334
|
})
|
|
4199
4335
|
]
|
|
4200
4336
|
}),
|
|
4201
|
-
/* @__PURE__ */
|
|
4337
|
+
/* @__PURE__ */ jsx45(MenuPopup, {
|
|
4202
4338
|
density,
|
|
4203
4339
|
align: "end",
|
|
4204
|
-
children: /* @__PURE__ */
|
|
4340
|
+
children: /* @__PURE__ */ jsxs30(MenuGroup2, {
|
|
4205
4341
|
children: [
|
|
4206
|
-
/* @__PURE__ */
|
|
4342
|
+
/* @__PURE__ */ jsx45(MenuLabel2, {
|
|
4207
4343
|
children: email ?? name
|
|
4208
4344
|
}),
|
|
4209
|
-
/* @__PURE__ */
|
|
4345
|
+
/* @__PURE__ */ jsx45(MenuItem2, {
|
|
4210
4346
|
onClick: () => onAction("profile"),
|
|
4211
4347
|
children: "Profile"
|
|
4212
4348
|
}),
|
|
4213
|
-
/* @__PURE__ */
|
|
4349
|
+
/* @__PURE__ */ jsx45(MenuItem2, {
|
|
4214
4350
|
onClick: () => onAction("settings"),
|
|
4215
4351
|
children: "Settings"
|
|
4216
4352
|
}),
|
|
4217
|
-
/* @__PURE__ */
|
|
4218
|
-
/* @__PURE__ */
|
|
4353
|
+
/* @__PURE__ */ jsx45(MenuSeparator2, {}),
|
|
4354
|
+
/* @__PURE__ */ jsx45(MenuItem2, {
|
|
4219
4355
|
onClick: () => onAction("sign-out"),
|
|
4220
4356
|
children: "Sign out"
|
|
4221
4357
|
})
|
|
@@ -4226,7 +4362,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4226
4362
|
});
|
|
4227
4363
|
}
|
|
4228
4364
|
// src/components/StatCard.tsx
|
|
4229
|
-
import { jsx as
|
|
4365
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4230
4366
|
function StatCard2({
|
|
4231
4367
|
label,
|
|
4232
4368
|
value,
|
|
@@ -4237,48 +4373,48 @@ function StatCard2({
|
|
|
4237
4373
|
loading = false,
|
|
4238
4374
|
density
|
|
4239
4375
|
}) {
|
|
4240
|
-
return /* @__PURE__ */
|
|
4376
|
+
return /* @__PURE__ */ jsxs31(Card2, {
|
|
4241
4377
|
density,
|
|
4242
4378
|
"aria-label": label,
|
|
4243
4379
|
"aria-busy": loading,
|
|
4244
4380
|
children: [
|
|
4245
|
-
/* @__PURE__ */
|
|
4381
|
+
/* @__PURE__ */ jsxs31(CardHeader2, {
|
|
4246
4382
|
children: [
|
|
4247
|
-
/* @__PURE__ */
|
|
4383
|
+
/* @__PURE__ */ jsx46(CardTitle2, {
|
|
4248
4384
|
children: label
|
|
4249
4385
|
}),
|
|
4250
|
-
description && /* @__PURE__ */
|
|
4386
|
+
description && /* @__PURE__ */ jsx46(CardDescription2, {
|
|
4251
4387
|
children: description
|
|
4252
4388
|
})
|
|
4253
4389
|
]
|
|
4254
4390
|
}),
|
|
4255
|
-
/* @__PURE__ */
|
|
4256
|
-
children: /* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ jsx46(CardContent2, {
|
|
4392
|
+
children: /* @__PURE__ */ jsxs31("div", {
|
|
4257
4393
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4258
4394
|
children: [
|
|
4259
|
-
loading ? /* @__PURE__ */
|
|
4395
|
+
loading ? /* @__PURE__ */ jsx46(Skeleton2, {
|
|
4260
4396
|
className: "h-8 w-24",
|
|
4261
4397
|
"aria-label": `Loading ${label}`
|
|
4262
|
-
}) : /* @__PURE__ */
|
|
4398
|
+
}) : /* @__PURE__ */ jsx46("div", {
|
|
4263
4399
|
className: "text-2xl font-semibold tabular-nums",
|
|
4264
4400
|
children: value
|
|
4265
4401
|
}),
|
|
4266
|
-
change && /* @__PURE__ */
|
|
4402
|
+
change && /* @__PURE__ */ jsx46(Badge2, {
|
|
4267
4403
|
variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
|
|
4268
4404
|
children: change
|
|
4269
4405
|
})
|
|
4270
4406
|
]
|
|
4271
4407
|
})
|
|
4272
4408
|
}),
|
|
4273
|
-
children && /* @__PURE__ */
|
|
4409
|
+
children && /* @__PURE__ */ jsx46(CardFooter2, {
|
|
4274
4410
|
children
|
|
4275
4411
|
})
|
|
4276
4412
|
]
|
|
4277
4413
|
});
|
|
4278
4414
|
}
|
|
4279
4415
|
// src/components/AuthForm.tsx
|
|
4280
|
-
import { useId as
|
|
4281
|
-
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";
|
|
4282
4418
|
function AuthForm2({
|
|
4283
4419
|
mode = "sign-in",
|
|
4284
4420
|
onSubmit,
|
|
@@ -4287,7 +4423,7 @@ function AuthForm2({
|
|
|
4287
4423
|
disabled = false,
|
|
4288
4424
|
density
|
|
4289
4425
|
}) {
|
|
4290
|
-
const id =
|
|
4426
|
+
const id = useId8();
|
|
4291
4427
|
const [pending, setPending] = useState7(false);
|
|
4292
4428
|
const [error, setError] = useState7("");
|
|
4293
4429
|
const title = mode === "sign-up" ? "Create an account" : mode === "reset-password" ? "Reset your password" : "Sign in";
|
|
@@ -4308,33 +4444,33 @@ function AuthForm2({
|
|
|
4308
4444
|
setPending(false);
|
|
4309
4445
|
}
|
|
4310
4446
|
}
|
|
4311
|
-
return /* @__PURE__ */
|
|
4447
|
+
return /* @__PURE__ */ jsxs32(Card2, {
|
|
4312
4448
|
density,
|
|
4313
4449
|
children: [
|
|
4314
|
-
/* @__PURE__ */
|
|
4450
|
+
/* @__PURE__ */ jsxs32(CardHeader2, {
|
|
4315
4451
|
children: [
|
|
4316
|
-
/* @__PURE__ */
|
|
4452
|
+
/* @__PURE__ */ jsx47(CardTitle2, {
|
|
4317
4453
|
children: title
|
|
4318
4454
|
}),
|
|
4319
|
-
/* @__PURE__ */
|
|
4455
|
+
/* @__PURE__ */ jsx47(CardDescription2, {
|
|
4320
4456
|
children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
|
|
4321
4457
|
})
|
|
4322
4458
|
]
|
|
4323
4459
|
}),
|
|
4324
|
-
/* @__PURE__ */
|
|
4325
|
-
children: /* @__PURE__ */
|
|
4460
|
+
/* @__PURE__ */ jsx47(CardContent2, {
|
|
4461
|
+
children: /* @__PURE__ */ jsx47("form", {
|
|
4326
4462
|
onSubmit: submit,
|
|
4327
4463
|
"aria-label": title,
|
|
4328
4464
|
"aria-busy": pending,
|
|
4329
|
-
children: /* @__PURE__ */
|
|
4465
|
+
children: /* @__PURE__ */ jsxs32(FieldGroup2, {
|
|
4330
4466
|
children: [
|
|
4331
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4467
|
+
mode === "sign-up" && /* @__PURE__ */ jsxs32(Field2, {
|
|
4332
4468
|
children: [
|
|
4333
|
-
/* @__PURE__ */
|
|
4469
|
+
/* @__PURE__ */ jsx47(FieldLabel2, {
|
|
4334
4470
|
htmlFor: id + "-name",
|
|
4335
4471
|
children: "Name"
|
|
4336
4472
|
}),
|
|
4337
|
-
/* @__PURE__ */
|
|
4473
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4338
4474
|
id: id + "-name",
|
|
4339
4475
|
name: "name",
|
|
4340
4476
|
autoComplete: "name",
|
|
@@ -4343,13 +4479,13 @@ function AuthForm2({
|
|
|
4343
4479
|
})
|
|
4344
4480
|
]
|
|
4345
4481
|
}),
|
|
4346
|
-
/* @__PURE__ */
|
|
4482
|
+
/* @__PURE__ */ jsxs32(Field2, {
|
|
4347
4483
|
children: [
|
|
4348
|
-
/* @__PURE__ */
|
|
4484
|
+
/* @__PURE__ */ jsx47(FieldLabel2, {
|
|
4349
4485
|
htmlFor: id + "-email",
|
|
4350
4486
|
children: "Email"
|
|
4351
4487
|
}),
|
|
4352
|
-
/* @__PURE__ */
|
|
4488
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4353
4489
|
id: id + "-email",
|
|
4354
4490
|
name: "email",
|
|
4355
4491
|
type: "email",
|
|
@@ -4359,13 +4495,13 @@ function AuthForm2({
|
|
|
4359
4495
|
})
|
|
4360
4496
|
]
|
|
4361
4497
|
}),
|
|
4362
|
-
mode !== "reset-password" && /* @__PURE__ */
|
|
4498
|
+
mode !== "reset-password" && /* @__PURE__ */ jsxs32(Field2, {
|
|
4363
4499
|
children: [
|
|
4364
|
-
/* @__PURE__ */
|
|
4500
|
+
/* @__PURE__ */ jsx47(FieldLabel2, {
|
|
4365
4501
|
htmlFor: id + "-password",
|
|
4366
4502
|
children: "Password"
|
|
4367
4503
|
}),
|
|
4368
|
-
/* @__PURE__ */
|
|
4504
|
+
/* @__PURE__ */ jsx47(Input2, {
|
|
4369
4505
|
id: id + "-password",
|
|
4370
4506
|
name: "password",
|
|
4371
4507
|
type: "password",
|
|
@@ -4374,27 +4510,27 @@ function AuthForm2({
|
|
|
4374
4510
|
required: true,
|
|
4375
4511
|
disabled: disabled || pending
|
|
4376
4512
|
}),
|
|
4377
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4513
|
+
mode === "sign-up" && /* @__PURE__ */ jsx47(FieldDescription2, {
|
|
4378
4514
|
children: "Use at least eight characters."
|
|
4379
4515
|
})
|
|
4380
4516
|
]
|
|
4381
4517
|
}),
|
|
4382
|
-
error && /* @__PURE__ */
|
|
4518
|
+
error && /* @__PURE__ */ jsxs32(Alert2, {
|
|
4383
4519
|
variant: "destructive",
|
|
4384
4520
|
children: [
|
|
4385
|
-
/* @__PURE__ */
|
|
4521
|
+
/* @__PURE__ */ jsx47(AlertTitle2, {
|
|
4386
4522
|
children: "Request failed"
|
|
4387
4523
|
}),
|
|
4388
|
-
/* @__PURE__ */
|
|
4524
|
+
/* @__PURE__ */ jsx47(AlertDescription2, {
|
|
4389
4525
|
children: error
|
|
4390
4526
|
})
|
|
4391
4527
|
]
|
|
4392
4528
|
}),
|
|
4393
|
-
/* @__PURE__ */
|
|
4529
|
+
/* @__PURE__ */ jsxs32(Button2, {
|
|
4394
4530
|
type: "submit",
|
|
4395
4531
|
disabled: disabled || pending,
|
|
4396
4532
|
children: [
|
|
4397
|
-
pending && /* @__PURE__ */
|
|
4533
|
+
pending && /* @__PURE__ */ jsx47(Spinner2, {
|
|
4398
4534
|
"data-icon": "inline-start"
|
|
4399
4535
|
}),
|
|
4400
4536
|
mode === "reset-password" ? "Send reset link" : title
|
|
@@ -4405,14 +4541,14 @@ function AuthForm2({
|
|
|
4405
4541
|
})
|
|
4406
4542
|
})
|
|
4407
4543
|
}),
|
|
4408
|
-
footer && /* @__PURE__ */
|
|
4544
|
+
footer && /* @__PURE__ */ jsx47(CardFooter2, {
|
|
4409
4545
|
children: footer
|
|
4410
4546
|
})
|
|
4411
4547
|
]
|
|
4412
4548
|
});
|
|
4413
4549
|
}
|
|
4414
4550
|
// src/components/SettingsSection.tsx
|
|
4415
|
-
import { jsx as
|
|
4551
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4416
4552
|
function SettingsSection2({
|
|
4417
4553
|
title,
|
|
4418
4554
|
description,
|
|
@@ -4425,48 +4561,48 @@ function SettingsSection2({
|
|
|
4425
4561
|
destructive = false,
|
|
4426
4562
|
density
|
|
4427
4563
|
}) {
|
|
4428
|
-
return /* @__PURE__ */
|
|
4564
|
+
return /* @__PURE__ */ jsx48("form", {
|
|
4429
4565
|
"aria-label": title,
|
|
4430
4566
|
onSubmit,
|
|
4431
4567
|
"aria-busy": pending,
|
|
4432
|
-
children: /* @__PURE__ */
|
|
4568
|
+
children: /* @__PURE__ */ jsxs33(Card2, {
|
|
4433
4569
|
density,
|
|
4434
4570
|
children: [
|
|
4435
|
-
/* @__PURE__ */
|
|
4571
|
+
/* @__PURE__ */ jsxs33(CardHeader2, {
|
|
4436
4572
|
children: [
|
|
4437
|
-
/* @__PURE__ */
|
|
4573
|
+
/* @__PURE__ */ jsx48(CardTitle2, {
|
|
4438
4574
|
children: title
|
|
4439
4575
|
}),
|
|
4440
|
-
description && /* @__PURE__ */
|
|
4576
|
+
description && /* @__PURE__ */ jsx48(CardDescription2, {
|
|
4441
4577
|
children: description
|
|
4442
4578
|
})
|
|
4443
4579
|
]
|
|
4444
4580
|
}),
|
|
4445
|
-
/* @__PURE__ */
|
|
4446
|
-
children: /* @__PURE__ */
|
|
4581
|
+
/* @__PURE__ */ jsx48(CardContent2, {
|
|
4582
|
+
children: /* @__PURE__ */ jsxs33("fieldset", {
|
|
4447
4583
|
disabled: disabled || pending,
|
|
4448
4584
|
className: "min-w-0 border-0 p-0",
|
|
4449
4585
|
children: [
|
|
4450
|
-
/* @__PURE__ */
|
|
4586
|
+
/* @__PURE__ */ jsx48("legend", {
|
|
4451
4587
|
className: "sr-only",
|
|
4452
4588
|
children: title
|
|
4453
4589
|
}),
|
|
4454
|
-
/* @__PURE__ */
|
|
4590
|
+
/* @__PURE__ */ jsx48(FieldGroup2, {
|
|
4455
4591
|
children
|
|
4456
4592
|
})
|
|
4457
4593
|
]
|
|
4458
4594
|
})
|
|
4459
4595
|
}),
|
|
4460
|
-
/* @__PURE__ */
|
|
4596
|
+
/* @__PURE__ */ jsxs33(CardFooter2, {
|
|
4461
4597
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4462
4598
|
children: [
|
|
4463
4599
|
footer,
|
|
4464
|
-
/* @__PURE__ */
|
|
4600
|
+
/* @__PURE__ */ jsxs33(Button2, {
|
|
4465
4601
|
type: "submit",
|
|
4466
4602
|
variant: destructive ? "destructive" : "default",
|
|
4467
4603
|
disabled: disabled || pending,
|
|
4468
4604
|
children: [
|
|
4469
|
-
pending && /* @__PURE__ */
|
|
4605
|
+
pending && /* @__PURE__ */ jsx48(Spinner2, {
|
|
4470
4606
|
"data-icon": "inline-start"
|
|
4471
4607
|
}),
|
|
4472
4608
|
saveLabel
|
|
@@ -4479,7 +4615,7 @@ function SettingsSection2({
|
|
|
4479
4615
|
});
|
|
4480
4616
|
}
|
|
4481
4617
|
// src/components/TagInput.tsx
|
|
4482
|
-
import { jsx as
|
|
4618
|
+
import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4483
4619
|
function TagInput2({
|
|
4484
4620
|
label,
|
|
4485
4621
|
options,
|
|
@@ -4492,7 +4628,7 @@ function TagInput2({
|
|
|
4492
4628
|
density
|
|
4493
4629
|
}) {
|
|
4494
4630
|
const anchor = useComboboxAnchor2();
|
|
4495
|
-
return /* @__PURE__ */
|
|
4631
|
+
return /* @__PURE__ */ jsxs34(Combobox2, {
|
|
4496
4632
|
items: options,
|
|
4497
4633
|
multiple: true,
|
|
4498
4634
|
value,
|
|
@@ -4501,33 +4637,33 @@ function TagInput2({
|
|
|
4501
4637
|
disabled,
|
|
4502
4638
|
name,
|
|
4503
4639
|
children: [
|
|
4504
|
-
/* @__PURE__ */
|
|
4640
|
+
/* @__PURE__ */ jsxs34(ComboboxChips2, {
|
|
4505
4641
|
ref: anchor,
|
|
4506
4642
|
density,
|
|
4507
4643
|
children: [
|
|
4508
|
-
/* @__PURE__ */
|
|
4509
|
-
children: (values) => values.map((item) => /* @__PURE__ */
|
|
4644
|
+
/* @__PURE__ */ jsx49(ComboboxValue2, {
|
|
4645
|
+
children: (values) => values.map((item) => /* @__PURE__ */ jsx49(ComboboxChip2, {
|
|
4510
4646
|
removeLabel: `Remove ${item}`,
|
|
4511
4647
|
children: item
|
|
4512
4648
|
}, item))
|
|
4513
4649
|
}),
|
|
4514
|
-
/* @__PURE__ */
|
|
4650
|
+
/* @__PURE__ */ jsx49(ComboboxChipsInput2, {
|
|
4515
4651
|
"aria-label": label,
|
|
4516
4652
|
placeholder
|
|
4517
4653
|
})
|
|
4518
4654
|
]
|
|
4519
4655
|
}),
|
|
4520
|
-
/* @__PURE__ */
|
|
4656
|
+
/* @__PURE__ */ jsxs34(ComboboxContent2, {
|
|
4521
4657
|
anchor,
|
|
4522
4658
|
density,
|
|
4523
4659
|
children: [
|
|
4524
|
-
/* @__PURE__ */
|
|
4660
|
+
/* @__PURE__ */ jsx49(ComboboxEmpty2, {
|
|
4525
4661
|
children: "No matching tags."
|
|
4526
4662
|
}),
|
|
4527
|
-
/* @__PURE__ */
|
|
4528
|
-
children: /* @__PURE__ */
|
|
4529
|
-
children: /* @__PURE__ */
|
|
4530
|
-
children: (item) => /* @__PURE__ */
|
|
4663
|
+
/* @__PURE__ */ jsx49(ComboboxList2, {
|
|
4664
|
+
children: /* @__PURE__ */ jsx49(ComboboxGroup2, {
|
|
4665
|
+
children: /* @__PURE__ */ jsx49(ComboboxCollection2, {
|
|
4666
|
+
children: (item) => /* @__PURE__ */ jsx49(ComboboxItem2, {
|
|
4531
4667
|
value: item,
|
|
4532
4668
|
children: item
|
|
4533
4669
|
}, item)
|
|
@@ -4540,9 +4676,9 @@ function TagInput2({
|
|
|
4540
4676
|
});
|
|
4541
4677
|
}
|
|
4542
4678
|
// src/components/FilterChip.tsx
|
|
4543
|
-
import { useId as
|
|
4679
|
+
import { useId as useId9 } from "react";
|
|
4544
4680
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
4545
|
-
import { jsx as
|
|
4681
|
+
import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4546
4682
|
function FilterChip2({
|
|
4547
4683
|
density,
|
|
4548
4684
|
className,
|
|
@@ -4552,8 +4688,8 @@ function FilterChip2({
|
|
|
4552
4688
|
onKeyDown,
|
|
4553
4689
|
...props
|
|
4554
4690
|
}) {
|
|
4555
|
-
const labelId =
|
|
4556
|
-
return /* @__PURE__ */
|
|
4691
|
+
const labelId = useId9();
|
|
4692
|
+
return /* @__PURE__ */ jsxs35("div", {
|
|
4557
4693
|
role: "group",
|
|
4558
4694
|
"aria-labelledby": labelId,
|
|
4559
4695
|
"data-density": density,
|
|
@@ -4569,13 +4705,13 @@ function FilterChip2({
|
|
|
4569
4705
|
},
|
|
4570
4706
|
...props,
|
|
4571
4707
|
children: [
|
|
4572
|
-
/* @__PURE__ */
|
|
4708
|
+
/* @__PURE__ */ jsx50("span", {
|
|
4573
4709
|
id: labelId,
|
|
4574
4710
|
"data-slot": "filter-chip-label",
|
|
4575
4711
|
className: "min-w-0 py-1 break-words",
|
|
4576
4712
|
children
|
|
4577
4713
|
}),
|
|
4578
|
-
/* @__PURE__ */
|
|
4714
|
+
/* @__PURE__ */ jsxs35(Button2, {
|
|
4579
4715
|
type: "button",
|
|
4580
4716
|
variant: "ghost",
|
|
4581
4717
|
size: "xs",
|
|
@@ -4583,7 +4719,7 @@ function FilterChip2({
|
|
|
4583
4719
|
onClick: onClear,
|
|
4584
4720
|
children: [
|
|
4585
4721
|
clearLabel,
|
|
4586
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ jsx50(XIcon2, {
|
|
4587
4723
|
"aria-hidden": "true",
|
|
4588
4724
|
"data-icon": "inline-end"
|
|
4589
4725
|
})
|
|
@@ -4593,7 +4729,7 @@ function FilterChip2({
|
|
|
4593
4729
|
});
|
|
4594
4730
|
}
|
|
4595
4731
|
// src/components/FilterBar.tsx
|
|
4596
|
-
import { jsx as
|
|
4732
|
+
import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4597
4733
|
function FilterBar2({
|
|
4598
4734
|
label,
|
|
4599
4735
|
search,
|
|
@@ -4604,26 +4740,26 @@ function FilterBar2({
|
|
|
4604
4740
|
disabled,
|
|
4605
4741
|
density
|
|
4606
4742
|
}) {
|
|
4607
|
-
return /* @__PURE__ */
|
|
4743
|
+
return /* @__PURE__ */ jsxs36("fieldset", {
|
|
4608
4744
|
"aria-label": label,
|
|
4609
4745
|
disabled,
|
|
4610
4746
|
"data-density": density,
|
|
4611
4747
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4612
4748
|
children: [
|
|
4613
|
-
/* @__PURE__ */
|
|
4749
|
+
/* @__PURE__ */ jsx51(Input2, {
|
|
4614
4750
|
"aria-label": `Search ${label}`,
|
|
4615
4751
|
type: "search",
|
|
4616
4752
|
value: search,
|
|
4617
4753
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4618
4754
|
className: "min-w-40 flex-1"
|
|
4619
4755
|
}),
|
|
4620
|
-
filters.map((filter) => /* @__PURE__ */
|
|
4756
|
+
filters.map((filter) => /* @__PURE__ */ jsx51(OptionSelect2, {
|
|
4621
4757
|
"aria-label": filter.label,
|
|
4622
4758
|
value: value[filter.id] ?? "",
|
|
4623
4759
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4624
4760
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4625
4761
|
}, filter.id)),
|
|
4626
|
-
/* @__PURE__ */
|
|
4762
|
+
/* @__PURE__ */ jsx51(Button2, {
|
|
4627
4763
|
type: "button",
|
|
4628
4764
|
variant: "ghost",
|
|
4629
4765
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4637,7 +4773,7 @@ function FilterBar2({
|
|
|
4637
4773
|
});
|
|
4638
4774
|
}
|
|
4639
4775
|
// src/components/BarList.tsx
|
|
4640
|
-
import { jsx as
|
|
4776
|
+
import { jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4641
4777
|
function BarList2({
|
|
4642
4778
|
label,
|
|
4643
4779
|
items,
|
|
@@ -4646,14 +4782,14 @@ function BarList2({
|
|
|
4646
4782
|
density
|
|
4647
4783
|
}) {
|
|
4648
4784
|
const max = Math.max(1, ...items.map((item) => item.value));
|
|
4649
|
-
return /* @__PURE__ */
|
|
4785
|
+
return /* @__PURE__ */ jsxs37("section", {
|
|
4650
4786
|
"aria-label": label,
|
|
4651
4787
|
"data-density": density,
|
|
4652
4788
|
children: [
|
|
4653
|
-
/* @__PURE__ */
|
|
4789
|
+
/* @__PURE__ */ jsx52("ul", {
|
|
4654
4790
|
className: "grid gap-3",
|
|
4655
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4656
|
-
children: /* @__PURE__ */
|
|
4791
|
+
children: items.map((item) => /* @__PURE__ */ jsx52("li", {
|
|
4792
|
+
children: /* @__PURE__ */ jsxs37(Meter2, {
|
|
4657
4793
|
min: 0,
|
|
4658
4794
|
max,
|
|
4659
4795
|
value: item.value,
|
|
@@ -4661,11 +4797,11 @@ function BarList2({
|
|
|
4661
4797
|
format: { maximumFractionDigits: 2 },
|
|
4662
4798
|
className: "gap-y-1",
|
|
4663
4799
|
children: [
|
|
4664
|
-
/* @__PURE__ */
|
|
4800
|
+
/* @__PURE__ */ jsxs37("div", {
|
|
4665
4801
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4666
4802
|
children: [
|
|
4667
|
-
/* @__PURE__ */
|
|
4668
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
4803
|
+
/* @__PURE__ */ jsx52(MeterLabel2, {
|
|
4804
|
+
children: onItemSelect ? /* @__PURE__ */ jsx52(Button2, {
|
|
4669
4805
|
type: "button",
|
|
4670
4806
|
variant: "link",
|
|
4671
4807
|
className: "h-auto p-0",
|
|
@@ -4673,19 +4809,19 @@ function BarList2({
|
|
|
4673
4809
|
children: item.label
|
|
4674
4810
|
}) : item.label
|
|
4675
4811
|
}),
|
|
4676
|
-
/* @__PURE__ */
|
|
4812
|
+
/* @__PURE__ */ jsx52(MeterValue2, {
|
|
4677
4813
|
children: () => valueFormatter(item.value)
|
|
4678
4814
|
})
|
|
4679
4815
|
]
|
|
4680
4816
|
}),
|
|
4681
|
-
/* @__PURE__ */
|
|
4682
|
-
children: /* @__PURE__ */
|
|
4817
|
+
/* @__PURE__ */ jsx52(MeterTrack2, {
|
|
4818
|
+
children: /* @__PURE__ */ jsx52(MeterIndicator2, {})
|
|
4683
4819
|
})
|
|
4684
4820
|
]
|
|
4685
4821
|
})
|
|
4686
4822
|
}, item.id))
|
|
4687
4823
|
}),
|
|
4688
|
-
!items.length && /* @__PURE__ */
|
|
4824
|
+
!items.length && /* @__PURE__ */ jsx52("p", {
|
|
4689
4825
|
role: "status",
|
|
4690
4826
|
className: "text-sm text-muted-foreground",
|
|
4691
4827
|
children: "No data available."
|
|
@@ -4694,23 +4830,23 @@ function BarList2({
|
|
|
4694
4830
|
});
|
|
4695
4831
|
}
|
|
4696
4832
|
// src/components/StatusTracker.tsx
|
|
4697
|
-
import { jsx as
|
|
4833
|
+
import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4698
4834
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4699
4835
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4700
|
-
return /* @__PURE__ */
|
|
4701
|
-
children: /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ jsx53(TooltipProvider2, {
|
|
4837
|
+
children: /* @__PURE__ */ jsx53("div", {
|
|
4702
4838
|
role: "group",
|
|
4703
4839
|
"aria-label": label,
|
|
4704
4840
|
"data-density": density,
|
|
4705
4841
|
className: "flex min-w-0 gap-1",
|
|
4706
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4842
|
+
children: items.map((item) => /* @__PURE__ */ jsxs38(Tooltip2, {
|
|
4707
4843
|
children: [
|
|
4708
|
-
/* @__PURE__ */
|
|
4844
|
+
/* @__PURE__ */ jsx53(TooltipTrigger2, {
|
|
4709
4845
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4710
4846
|
onClick: () => onItemSelect?.(item),
|
|
4711
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])
|
|
4712
4848
|
}),
|
|
4713
|
-
/* @__PURE__ */
|
|
4849
|
+
/* @__PURE__ */ jsxs38(TooltipContent2, {
|
|
4714
4850
|
children: [
|
|
4715
4851
|
item.label,
|
|
4716
4852
|
": ",
|
|
@@ -4723,7 +4859,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4723
4859
|
});
|
|
4724
4860
|
}
|
|
4725
4861
|
// src/components/DashboardLayout.tsx
|
|
4726
|
-
import { jsx as
|
|
4862
|
+
import { jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4727
4863
|
function DashboardLayout2({
|
|
4728
4864
|
title,
|
|
4729
4865
|
description,
|
|
@@ -4734,24 +4870,24 @@ function DashboardLayout2({
|
|
|
4734
4870
|
footer,
|
|
4735
4871
|
density
|
|
4736
4872
|
}) {
|
|
4737
|
-
return /* @__PURE__ */
|
|
4873
|
+
return /* @__PURE__ */ jsxs39("div", {
|
|
4738
4874
|
"data-density": density,
|
|
4739
4875
|
"data-scroll": "none",
|
|
4740
4876
|
className: "grid min-w-0 gap-6",
|
|
4741
4877
|
children: [
|
|
4742
|
-
/* @__PURE__ */
|
|
4878
|
+
/* @__PURE__ */ jsx54(PageHeader2, {
|
|
4743
4879
|
title,
|
|
4744
4880
|
description,
|
|
4745
4881
|
actions
|
|
4746
4882
|
}),
|
|
4747
4883
|
filters,
|
|
4748
|
-
stats.length > 0 && /* @__PURE__ */
|
|
4884
|
+
stats.length > 0 && /* @__PURE__ */ jsx54("div", {
|
|
4749
4885
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4750
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
4886
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx54(StatCard2, {
|
|
4751
4887
|
...stat
|
|
4752
4888
|
}, id))
|
|
4753
4889
|
}),
|
|
4754
|
-
/* @__PURE__ */
|
|
4890
|
+
/* @__PURE__ */ jsx54("div", {
|
|
4755
4891
|
className: "grid min-w-0 gap-4",
|
|
4756
4892
|
children
|
|
4757
4893
|
}),
|
|
@@ -4760,18 +4896,18 @@ function DashboardLayout2({
|
|
|
4760
4896
|
});
|
|
4761
4897
|
}
|
|
4762
4898
|
// src/components/BillingUsage.tsx
|
|
4763
|
-
import { jsx as
|
|
4899
|
+
import { jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4764
4900
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4765
|
-
return /* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ jsxs40(Card2, {
|
|
4766
4902
|
density,
|
|
4767
4903
|
"aria-label": "Billing and usage",
|
|
4768
4904
|
children: [
|
|
4769
|
-
/* @__PURE__ */
|
|
4905
|
+
/* @__PURE__ */ jsxs40(CardHeader2, {
|
|
4770
4906
|
children: [
|
|
4771
|
-
/* @__PURE__ */
|
|
4907
|
+
/* @__PURE__ */ jsx55(CardTitle2, {
|
|
4772
4908
|
children: plan
|
|
4773
4909
|
}),
|
|
4774
|
-
/* @__PURE__ */
|
|
4910
|
+
/* @__PURE__ */ jsxs40(CardDescription2, {
|
|
4775
4911
|
children: [
|
|
4776
4912
|
price,
|
|
4777
4913
|
" · ",
|
|
@@ -4780,32 +4916,32 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4780
4916
|
})
|
|
4781
4917
|
]
|
|
4782
4918
|
}),
|
|
4783
|
-
/* @__PURE__ */
|
|
4919
|
+
/* @__PURE__ */ jsx55(CardContent2, {
|
|
4784
4920
|
className: "grid gap-4",
|
|
4785
|
-
children: metrics.map((metric) => /* @__PURE__ */
|
|
4921
|
+
children: metrics.map((metric) => /* @__PURE__ */ jsxs40(Meter2, {
|
|
4786
4922
|
value: metric.used,
|
|
4787
4923
|
max: metric.limit,
|
|
4788
4924
|
"aria-label": metric.label,
|
|
4789
4925
|
children: [
|
|
4790
|
-
/* @__PURE__ */
|
|
4926
|
+
/* @__PURE__ */ jsxs40("div", {
|
|
4791
4927
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4792
4928
|
children: [
|
|
4793
|
-
/* @__PURE__ */
|
|
4929
|
+
/* @__PURE__ */ jsx55(MeterLabel2, {
|
|
4794
4930
|
children: metric.label
|
|
4795
4931
|
}),
|
|
4796
|
-
/* @__PURE__ */
|
|
4932
|
+
/* @__PURE__ */ jsx55(MeterValue2, {
|
|
4797
4933
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
4798
4934
|
})
|
|
4799
4935
|
]
|
|
4800
4936
|
}),
|
|
4801
|
-
/* @__PURE__ */
|
|
4802
|
-
children: /* @__PURE__ */
|
|
4937
|
+
/* @__PURE__ */ jsx55(MeterTrack2, {
|
|
4938
|
+
children: /* @__PURE__ */ jsx55(MeterIndicator2, {})
|
|
4803
4939
|
})
|
|
4804
4940
|
]
|
|
4805
4941
|
}, metric.id))
|
|
4806
4942
|
}),
|
|
4807
|
-
/* @__PURE__ */
|
|
4808
|
-
children: /* @__PURE__ */
|
|
4943
|
+
/* @__PURE__ */ jsx55(CardFooter2, {
|
|
4944
|
+
children: /* @__PURE__ */ jsx55(Button2, {
|
|
4809
4945
|
type: "button",
|
|
4810
4946
|
variant: "outline",
|
|
4811
4947
|
onClick: onManage,
|
|
@@ -4816,4 +4952,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4816
4952
|
]
|
|
4817
4953
|
});
|
|
4818
4954
|
}
|
|
4819
|
-
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, 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 };
|
|
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 };
|