@use-stall/ui 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +218 -154
- package/dist/index.mjs +214 -151
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2417,26 +2417,88 @@ var Kbd = ({
|
|
|
2417
2417
|
);
|
|
2418
2418
|
var KbdKey = ({ ...props }) => /* @__PURE__ */ jsx26("kbd", { ...props });
|
|
2419
2419
|
|
|
2420
|
-
// src/components/
|
|
2420
|
+
// src/components/loader.tsx
|
|
2421
2421
|
import React21 from "react";
|
|
2422
2422
|
import { motion } from "framer-motion";
|
|
2423
|
-
import {
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2423
|
+
import { createPortal } from "react-dom";
|
|
2424
|
+
import Lottie from "lottie-react";
|
|
2425
|
+
|
|
2426
|
+
// src/assets/logo/primary.json
|
|
2427
|
+
var primary_default = { nm: "Main Scene", ddd: 0, h: 220, w: 220, meta: { g: "@lottiefiles/creator 1.45.0" }, layers: [{ ty: 4, nm: "logo", sr: 1, st: 0, op: 150, ip: 0, hd: false, ddd: 0, bm: 0, hasMask: false, ao: 0, ks: { a: { a: 0, k: [175.0000000000001, 150.0220489501953] }, s: { a: 1, k: [{ o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [100, 100], t: 0 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [100, 100], t: 28 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 36 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 40 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 46 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 52 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 60 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 84 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 90 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 94 }, { s: [100, 100], t: 103 }] }, sk: { a: 0, k: 0 }, p: { a: 1, k: [{ o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 0 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 28 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 36 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 40 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 46 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 52 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 60 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 84 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 90 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 94 }, { s: [110, 85], t: 103 }] }, r: { a: 1, k: [{ o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [0], t: 0 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [0], t: 46 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 52 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 60 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [0], t: 84 }, { s: [0], t: 90 }] }, sa: { a: 0, k: 0 }, o: { a: 0, k: 100 } }, shapes: [{ ty: "gr", bm: 0, hd: false, nm: "piece", it: [{ ty: "sh", bm: 0, hd: false, nm: "Path 1", d: 1, ks: { a: 0, k: { c: true, i: [[0, 0], [0, 0], [0, 0], [16.56899999999999, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 16.569000000000017], [0, 0], [0, 0], [0, 0]], v: [[200, 225], [250, 225], [250, 245], [220, 275], [200, 275], [200, 225]] } } }, { ty: "fl", bm: 0, hd: false, nm: "Fill", c: { a: 0, k: [0.0824, 0.3686, 0.4588] }, r: 1, o: { a: 0, k: 100 } }, { ty: "tr", a: { a: 0, k: [225, 250.0220489501953] }, s: { a: 0, k: [100, 100] }, sk: { a: 0, k: 0 }, p: { a: 1, k: [{ o: { x: 0.55, y: 0.06 }, i: { x: 0.36, y: 1 }, s: [225, 250.022], t: 0 }, { o: { x: 0.22, y: 0.61 }, i: { x: 1, y: 1 }, s: [224.8387, 200.022], t: 18 }, { o: { x: 0, y: 0 }, i: { x: 0.68, y: 0.19 }, s: [224.8387, 200.022], t: 28 }, { o: { x: 0.55, y: 0.06 }, i: { x: 0.68, y: 0.19 }, s: [224.8387, 200.022], t: 52 }, { o: { x: 0.55, y: 0.06 }, i: { x: 0.36, y: 1 }, s: [225.9571, 251.4679], t: 60 }, { o: { x: 0.22, y: 0.61 }, i: { x: 0.36, y: 1 }, s: [225.9571, 251.4679], t: 66 }, { o: { x: 0.65, y: 0 }, i: { x: 1, y: 1 }, s: [225.0484, 199.9604], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 90 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 94 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 103 }, { s: [225.0484, 250.022], t: 112 }] }, r: { a: 0, k: 0 }, sa: { a: 0, k: 0 }, o: { a: 0, k: 100 } }] }, { ty: "gr", bm: 0, hd: false, nm: "main", it: [{ ty: "sh", bm: 0, hd: false, nm: "Path 2", d: 1, ks: { a: 0, k: { c: true, i: [[0, 0], [-16.569000000000003, 0], [0, 0], [0, -16.5685], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 16.56899999999999], [0, 0]], o: [[0, -16.5685], [0, 0], [16.56899999999999, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-16.569000000000003, 0], [0, 0], [0, 0]], v: [[100, 105], [130, 75], [220, 75], [250, 105], [250, 174.5], [199.5, 174.5], [199.5, 125], [150, 125], [150, 174.5], [199.5, 174.5], [199.5, 225], [130, 225], [100, 195], [100, 105]] } } }, { ty: "fl", bm: 0, hd: false, nm: "Fill", c: { a: 0, k: [0.0824, 0.3686, 0.4588] }, r: 1, o: { a: 0, k: 100 } }, { ty: "tr", a: { a: 0, k: [175, 150.0220489501953] }, s: { a: 0, k: [100, 100] }, sk: { a: 0, k: 0 }, p: { a: 0, k: [175, 150.0220489501953] }, r: { a: 0, k: 0 }, sa: { a: 0, k: 0 }, o: { a: 0, k: 100 } }] }], ind: 1 }], v: "5.7.0", fr: 30, op: 150, ip: 0, assets: [] };
|
|
2428
|
+
|
|
2429
|
+
// src/assets/logo/light.json
|
|
2430
|
+
var light_default = { nm: "Main Scene", ddd: 0, h: 220, w: 220, meta: { g: "@lottiefiles/creator 1.45.0" }, layers: [{ ty: 4, nm: "logo", sr: 1, st: 0, op: 150, ip: 0, hd: false, ddd: 0, bm: 0, hasMask: false, ao: 0, ks: { a: { a: 0, k: [175.0000000000001, 150.0220489501953] }, s: { a: 1, k: [{ o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [100, 100], t: 0 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [100, 100], t: 28 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 36 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 40 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 46 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 52 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 60 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 84 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 90 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [50, 50], t: 94 }, { s: [100, 100], t: 103 }] }, sk: { a: 0, k: 0 }, p: { a: 1, k: [{ o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 0 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 28 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 36 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 40 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 46 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 52 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 60 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 110], t: 84 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 90 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [110, 85], t: 94 }, { s: [110, 85], t: 103 }] }, r: { a: 1, k: [{ o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [0], t: 0 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [0], t: 46 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 52 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 60 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [-90], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [0], t: 84 }, { s: [0], t: 90 }] }, sa: { a: 0, k: 0 }, o: { a: 0, k: 100 } }, shapes: [{ ty: "gr", bm: 0, hd: false, nm: "piece", it: [{ ty: "sh", bm: 0, hd: false, nm: "Path 1", d: 1, ks: { a: 0, k: { c: true, i: [[0, 0], [0, 0], [0, 0], [16.56899999999999, 0], [0, 0], [0, 0]], o: [[0, 0], [0, 0], [0, 16.569000000000017], [0, 0], [0, 0], [0, 0]], v: [[200, 225], [250, 225], [250, 245], [220, 275], [200, 275], [200, 225]] } } }, { ty: "fl", bm: 0, hd: false, nm: "Fill", c: { a: 0, k: [1, 1, 1], sid: "secondary" }, r: 1, o: { a: 0, k: 100 } }, { ty: "tr", a: { a: 0, k: [225, 250.0220489501953] }, s: { a: 0, k: [100, 100] }, sk: { a: 0, k: 0 }, p: { a: 1, k: [{ o: { x: 0.55, y: 0.06 }, i: { x: 0.36, y: 1 }, s: [225, 250.022], t: 0 }, { o: { x: 0.22, y: 0.61 }, i: { x: 1, y: 1 }, s: [224.8387, 200.022], t: 18 }, { o: { x: 0, y: 0 }, i: { x: 0.68, y: 0.19 }, s: [224.8387, 200.022], t: 28 }, { o: { x: 0.55, y: 0.06 }, i: { x: 0.68, y: 0.19 }, s: [224.8387, 200.022], t: 52 }, { o: { x: 0.55, y: 0.06 }, i: { x: 0.36, y: 1 }, s: [225.9571, 251.4679], t: 60 }, { o: { x: 0.22, y: 0.61 }, i: { x: 0.36, y: 1 }, s: [225.9571, 251.4679], t: 66 }, { o: { x: 0.65, y: 0 }, i: { x: 1, y: 1 }, s: [225.0484, 199.9604], t: 71 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 76 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 90 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 94 }, { o: { x: 0.167, y: 0.167 }, i: { x: 0.833, y: 0.833 }, s: [225.0484, 199.9604], t: 103 }, { s: [225.0484, 250.022], t: 112 }] }, r: { a: 0, k: 0 }, sa: { a: 0, k: 0 }, o: { a: 0, k: 100 } }] }, { ty: "gr", bm: 0, hd: false, nm: "main", it: [{ ty: "sh", bm: 0, hd: false, nm: "Path 2", d: 1, ks: { a: 0, k: { c: true, i: [[0, 0], [-16.569000000000003, 0], [0, 0], [0, -16.5685], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 16.56899999999999], [0, 0]], o: [[0, -16.5685], [0, 0], [16.56899999999999, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-16.569000000000003, 0], [0, 0], [0, 0]], v: [[100, 105], [130, 75], [220, 75], [250, 105], [250, 174.5], [199.5, 174.5], [199.5, 125], [150, 125], [150, 174.5], [199.5, 174.5], [199.5, 225], [130, 225], [100, 195], [100, 105]] } } }, { ty: "fl", bm: 0, hd: false, nm: "Fill", c: { a: 0, k: [1, 1, 1], sid: "secondary" }, r: 1, o: { a: 0, k: 100 } }, { ty: "tr", a: { a: 0, k: [175, 150.0220489501953] }, s: { a: 0, k: [100, 100] }, sk: { a: 0, k: 0 }, p: { a: 0, k: [175, 150.0220489501953] }, r: { a: 0, k: 0 }, sa: { a: 0, k: 0 }, o: { a: 0, k: 100 } }] }], ind: 1 }], v: "5.7.0", fr: 30, op: 150, ip: 0, assets: [], slots: { secondary: { p: { a: 0, k: [1, 1, 1] } } } };
|
|
2431
|
+
|
|
2432
|
+
// src/components/loader.tsx
|
|
2433
|
+
import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2434
|
+
var Loader = React21.memo(({ loadingProgress }) => {
|
|
2435
|
+
const theme = React21.useMemo(() => {
|
|
2436
|
+
const local = localStorage.getItem("stall-theme");
|
|
2437
|
+
if (local) {
|
|
2438
|
+
return JSON.parse(local);
|
|
2439
|
+
}
|
|
2440
|
+
return "system";
|
|
2441
|
+
}, []);
|
|
2442
|
+
const currentTheme = React21.useMemo(() => {
|
|
2443
|
+
if (theme === "system") {
|
|
2444
|
+
const systemTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2445
|
+
return systemTheme;
|
|
2446
|
+
}
|
|
2447
|
+
return theme;
|
|
2448
|
+
}, [theme]);
|
|
2449
|
+
return /* @__PURE__ */ jsx27(React21.Fragment, { children: createPortal(
|
|
2450
|
+
/* @__PURE__ */ jsx27(React21.Fragment, { children: /* @__PURE__ */ jsxs17(
|
|
2451
|
+
motion.div,
|
|
2452
|
+
{
|
|
2453
|
+
initial: { opacity: 0, y: 10 },
|
|
2454
|
+
animate: { opacity: 1, y: 0 },
|
|
2455
|
+
exit: { opacity: 0, y: 10 },
|
|
2456
|
+
className: "fixed inset-0 bg-main-background/80 backdrop-blur-sm flex flex-col gap-4\n items-center justify-center z-50",
|
|
2457
|
+
children: [
|
|
2458
|
+
/* @__PURE__ */ jsx27("div", { className: "h-20 w-20 flex items-center justify-center", children: /* @__PURE__ */ jsx27(
|
|
2459
|
+
Lottie,
|
|
2460
|
+
{
|
|
2461
|
+
animationData: currentTheme === "light" ? primary_default : light_default,
|
|
2462
|
+
loop: true,
|
|
2463
|
+
className: "h-16 w-16"
|
|
2464
|
+
}
|
|
2465
|
+
) }),
|
|
2466
|
+
loadingProgress && /* @__PURE__ */ jsx27("span", { className: "text-sm font-medium", children: loadingProgress?.title }),
|
|
2467
|
+
loadingProgress && /* @__PURE__ */ jsx27("div", { className: "w-44 h-2.5 overflow-hidden rounded-full bg-main-background shadow-sm", children: /* @__PURE__ */ jsx27(
|
|
2468
|
+
motion.div,
|
|
2469
|
+
{
|
|
2470
|
+
initial: { width: 0 },
|
|
2471
|
+
animate: { width: `${loadingProgress?.percentage}%` },
|
|
2472
|
+
className: "h-full bg-cyan-800"
|
|
2473
|
+
}
|
|
2474
|
+
) })
|
|
2475
|
+
]
|
|
2476
|
+
}
|
|
2477
|
+
) }),
|
|
2478
|
+
document.body
|
|
2479
|
+
) });
|
|
2480
|
+
});
|
|
2481
|
+
|
|
2482
|
+
// src/components/modal-container.tsx
|
|
2483
|
+
import React22 from "react";
|
|
2484
|
+
import { motion as motion2 } from "framer-motion";
|
|
2485
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2486
|
+
var ModalContainer = React22.memo((props) => {
|
|
2487
|
+
return /* @__PURE__ */ jsx28(
|
|
2488
|
+
motion2.div,
|
|
2427
2489
|
{
|
|
2428
2490
|
initial: { y: 10, opacity: 0 },
|
|
2429
2491
|
exit: { y: 10, opacity: 0 },
|
|
2430
2492
|
animate: { y: 0, opacity: 1 },
|
|
2431
2493
|
className: "fixed inset-0 md:inset-2 md:rounded-xl md:border-4 border-white dark:border-zinc-700\n shadow-3xl bg-main-background overflow-hidden z-10",
|
|
2432
|
-
children: /* @__PURE__ */
|
|
2494
|
+
children: /* @__PURE__ */ jsx28("div", { className: "w-full h-full overflow-hidden overflow-y-auto flex justify-center", children: /* @__PURE__ */ jsx28("div", { className: "w-full max-w-[700px] h-fit shrink-0 overflow-hidden flex flex-col p-4", children: props.children }) })
|
|
2433
2495
|
}
|
|
2434
2496
|
);
|
|
2435
2497
|
});
|
|
2436
2498
|
|
|
2437
2499
|
// src/components/multi-select.tsx
|
|
2438
|
-
import * as
|
|
2439
|
-
import { jsx as
|
|
2500
|
+
import * as React23 from "react";
|
|
2501
|
+
import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2440
2502
|
var MultiSelect = ({
|
|
2441
2503
|
options: options2 = [],
|
|
2442
2504
|
value = [],
|
|
@@ -2447,10 +2509,10 @@ var MultiSelect = ({
|
|
|
2447
2509
|
maxCount,
|
|
2448
2510
|
required
|
|
2449
2511
|
}) => {
|
|
2450
|
-
const selectedOptions =
|
|
2512
|
+
const selectedOptions = React23.useMemo(() => {
|
|
2451
2513
|
return value.map((v) => options2.find((opt) => opt.value === v)).filter(Boolean);
|
|
2452
2514
|
}, [value, options2]);
|
|
2453
|
-
const handleValueChange =
|
|
2515
|
+
const handleValueChange = React23.useCallback(
|
|
2454
2516
|
(newValue) => {
|
|
2455
2517
|
if (Array.isArray(newValue)) {
|
|
2456
2518
|
onValueChange?.(newValue.map((opt) => opt.value));
|
|
@@ -2460,7 +2522,7 @@ var MultiSelect = ({
|
|
|
2460
2522
|
},
|
|
2461
2523
|
[onValueChange]
|
|
2462
2524
|
);
|
|
2463
|
-
return /* @__PURE__ */
|
|
2525
|
+
return /* @__PURE__ */ jsxs18(
|
|
2464
2526
|
Combobox,
|
|
2465
2527
|
{
|
|
2466
2528
|
required,
|
|
@@ -2470,15 +2532,15 @@ var MultiSelect = ({
|
|
|
2470
2532
|
onValueChange: handleValueChange,
|
|
2471
2533
|
disabled: maxCount === options2.length,
|
|
2472
2534
|
children: [
|
|
2473
|
-
/* @__PURE__ */
|
|
2535
|
+
/* @__PURE__ */ jsx29(
|
|
2474
2536
|
ComboboxChips,
|
|
2475
2537
|
{
|
|
2476
2538
|
className: cn(
|
|
2477
2539
|
"min-h-10! before:hidden shadow-none rounded-10!",
|
|
2478
2540
|
className
|
|
2479
2541
|
),
|
|
2480
|
-
children: /* @__PURE__ */
|
|
2481
|
-
value2?.map((item) => /* @__PURE__ */
|
|
2542
|
+
children: /* @__PURE__ */ jsx29(ComboboxValue, { children: (value2) => /* @__PURE__ */ jsxs18(React23.Fragment, { children: [
|
|
2543
|
+
value2?.map((item) => /* @__PURE__ */ jsx29(
|
|
2482
2544
|
ComboboxChip,
|
|
2483
2545
|
{
|
|
2484
2546
|
"aria-label": item.value,
|
|
@@ -2487,7 +2549,7 @@ var MultiSelect = ({
|
|
|
2487
2549
|
},
|
|
2488
2550
|
item.value
|
|
2489
2551
|
)),
|
|
2490
|
-
/* @__PURE__ */
|
|
2552
|
+
/* @__PURE__ */ jsx29(
|
|
2491
2553
|
ComboboxInput,
|
|
2492
2554
|
{
|
|
2493
2555
|
placeholder: value2.length > 0 ? void 0 : placeholder || "Select an item...",
|
|
@@ -2501,14 +2563,14 @@ var MultiSelect = ({
|
|
|
2501
2563
|
] }) })
|
|
2502
2564
|
}
|
|
2503
2565
|
),
|
|
2504
|
-
/* @__PURE__ */
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */
|
|
2566
|
+
/* @__PURE__ */ jsxs18(ComboboxPopup, { className: "rounded-xl", children: [
|
|
2567
|
+
/* @__PURE__ */ jsxs18(ComboboxEmpty, { className: "w-full center-flex flex-col", children: [
|
|
2568
|
+
/* @__PURE__ */ jsx29(
|
|
2507
2569
|
"div",
|
|
2508
2570
|
{
|
|
2509
2571
|
style: { borderRadius: "30% 70% 70% 30% / 30% 38% 62% 70%" },
|
|
2510
2572
|
className: "mt-8 size-24 center-flex bg-accent/50 rounded-blob",
|
|
2511
|
-
children: /* @__PURE__ */
|
|
2573
|
+
children: /* @__PURE__ */ jsx29(
|
|
2512
2574
|
"img",
|
|
2513
2575
|
{
|
|
2514
2576
|
src: "/images/no-direction.png",
|
|
@@ -2518,10 +2580,10 @@ var MultiSelect = ({
|
|
|
2518
2580
|
)
|
|
2519
2581
|
}
|
|
2520
2582
|
),
|
|
2521
|
-
/* @__PURE__ */
|
|
2522
|
-
/* @__PURE__ */
|
|
2583
|
+
/* @__PURE__ */ jsx29("h1", { className: "mt-4 text-sm text-foreground font-semibold", children: "Nothing Found" }),
|
|
2584
|
+
/* @__PURE__ */ jsx29("p", { className: "mt-1 mb-8 text-sm text-center text-muted-foreground max-w-62", children: "We couldn't find anything matching your search" })
|
|
2523
2585
|
] }),
|
|
2524
|
-
/* @__PURE__ */
|
|
2586
|
+
/* @__PURE__ */ jsx29(ComboboxList, { children: (item) => /* @__PURE__ */ jsx29(
|
|
2525
2587
|
ComboboxItem,
|
|
2526
2588
|
{
|
|
2527
2589
|
value: item,
|
|
@@ -2539,11 +2601,11 @@ MultiSelect.displayName = "MultiSelect";
|
|
|
2539
2601
|
|
|
2540
2602
|
// src/components/password-input.tsx
|
|
2541
2603
|
import { Check as Check5, Eye, EyeOff, X } from "lucide-react";
|
|
2542
|
-
import
|
|
2543
|
-
import { jsx as
|
|
2544
|
-
var PasswordInput =
|
|
2604
|
+
import React24 from "react";
|
|
2605
|
+
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2606
|
+
var PasswordInput = React24.forwardRef(
|
|
2545
2607
|
({ className, onSubmit, showStrength, ...props }, ref) => {
|
|
2546
|
-
const [isVisible, setIsVisible] =
|
|
2608
|
+
const [isVisible, setIsVisible] = React24.useState(false);
|
|
2547
2609
|
const toggleVisibility = () => setIsVisible((prevState) => !prevState);
|
|
2548
2610
|
const checkStrength = (pass) => {
|
|
2549
2611
|
const requirements = [
|
|
@@ -2558,7 +2620,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2558
2620
|
}));
|
|
2559
2621
|
};
|
|
2560
2622
|
const strength = checkStrength(props.value?.toString() || "");
|
|
2561
|
-
const strengthScore =
|
|
2623
|
+
const strengthScore = React24.useMemo(() => {
|
|
2562
2624
|
return strength.filter((req) => req.met).length;
|
|
2563
2625
|
}, [strength]);
|
|
2564
2626
|
const getStrengthColor = (score) => {
|
|
@@ -2581,9 +2643,9 @@ var PasswordInput = React23.forwardRef(
|
|
|
2581
2643
|
}
|
|
2582
2644
|
onSubmit?.(event);
|
|
2583
2645
|
};
|
|
2584
|
-
return /* @__PURE__ */
|
|
2585
|
-
/* @__PURE__ */
|
|
2586
|
-
/* @__PURE__ */
|
|
2646
|
+
return /* @__PURE__ */ jsxs19("div", { className: "relative w-full", children: [
|
|
2647
|
+
/* @__PURE__ */ jsxs19("div", { className: "relative w-full", children: [
|
|
2648
|
+
/* @__PURE__ */ jsx30(
|
|
2587
2649
|
Input,
|
|
2588
2650
|
{
|
|
2589
2651
|
className: cn("pe-9", className),
|
|
@@ -2594,7 +2656,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2594
2656
|
onSubmit: handleSubmit
|
|
2595
2657
|
}
|
|
2596
2658
|
),
|
|
2597
|
-
showStrength && /* @__PURE__ */
|
|
2659
|
+
showStrength && /* @__PURE__ */ jsx30(
|
|
2598
2660
|
"input",
|
|
2599
2661
|
{
|
|
2600
2662
|
title: "password",
|
|
@@ -2604,7 +2666,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2604
2666
|
value: showStrength ? strengthScore >= 4 ? props?.value : "" : props.value
|
|
2605
2667
|
}
|
|
2606
2668
|
),
|
|
2607
|
-
/* @__PURE__ */
|
|
2669
|
+
/* @__PURE__ */ jsx30(
|
|
2608
2670
|
"button",
|
|
2609
2671
|
{
|
|
2610
2672
|
className: "absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-10 text-muted-foreground/80 outline-offset-2 transition-colors hover:text-foreground focus:z-10 focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-ring/70 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -2613,12 +2675,12 @@ var PasswordInput = React23.forwardRef(
|
|
|
2613
2675
|
"aria-label": isVisible ? "Hide password" : "Show password",
|
|
2614
2676
|
"aria-pressed": isVisible,
|
|
2615
2677
|
"aria-controls": "password",
|
|
2616
|
-
children: isVisible ? /* @__PURE__ */
|
|
2678
|
+
children: isVisible ? /* @__PURE__ */ jsx30(EyeOff, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ jsx30(Eye, { size: 16, strokeWidth: 2, "aria-hidden": "true" })
|
|
2617
2679
|
}
|
|
2618
2680
|
)
|
|
2619
2681
|
] }),
|
|
2620
|
-
showStrength && /* @__PURE__ */
|
|
2621
|
-
/* @__PURE__ */
|
|
2682
|
+
showStrength && /* @__PURE__ */ jsxs19(React24.Fragment, { children: [
|
|
2683
|
+
/* @__PURE__ */ jsx30(
|
|
2622
2684
|
"div",
|
|
2623
2685
|
{
|
|
2624
2686
|
className: "my-3 h-1 w-full overflow-hidden rounded-full bg-border",
|
|
@@ -2627,7 +2689,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2627
2689
|
"aria-valuemin": 0,
|
|
2628
2690
|
"aria-valuemax": 4,
|
|
2629
2691
|
"aria-label": "Password strength",
|
|
2630
|
-
children: /* @__PURE__ */
|
|
2692
|
+
children: /* @__PURE__ */ jsx30(
|
|
2631
2693
|
"div",
|
|
2632
2694
|
{
|
|
2633
2695
|
className: `h-full ${getStrengthColor(
|
|
@@ -2638,7 +2700,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2638
2700
|
)
|
|
2639
2701
|
}
|
|
2640
2702
|
),
|
|
2641
|
-
/* @__PURE__ */
|
|
2703
|
+
/* @__PURE__ */ jsxs19(
|
|
2642
2704
|
"p",
|
|
2643
2705
|
{
|
|
2644
2706
|
id: "password-strength",
|
|
@@ -2649,15 +2711,15 @@ var PasswordInput = React23.forwardRef(
|
|
|
2649
2711
|
]
|
|
2650
2712
|
}
|
|
2651
2713
|
),
|
|
2652
|
-
/* @__PURE__ */
|
|
2653
|
-
req.met ? /* @__PURE__ */
|
|
2714
|
+
/* @__PURE__ */ jsx30("ul", { className: "space-y-1.5", "aria-label": "Password requirements", children: strength.map((req, index) => /* @__PURE__ */ jsxs19("li", { className: "flex items-center gap-2", children: [
|
|
2715
|
+
req.met ? /* @__PURE__ */ jsx30(
|
|
2654
2716
|
Check5,
|
|
2655
2717
|
{
|
|
2656
2718
|
size: 16,
|
|
2657
2719
|
className: "text-emerald-500",
|
|
2658
2720
|
"aria-hidden": "true"
|
|
2659
2721
|
}
|
|
2660
|
-
) : /* @__PURE__ */
|
|
2722
|
+
) : /* @__PURE__ */ jsx30(
|
|
2661
2723
|
X,
|
|
2662
2724
|
{
|
|
2663
2725
|
size: 16,
|
|
@@ -2665,13 +2727,13 @@ var PasswordInput = React23.forwardRef(
|
|
|
2665
2727
|
"aria-hidden": "true"
|
|
2666
2728
|
}
|
|
2667
2729
|
),
|
|
2668
|
-
/* @__PURE__ */
|
|
2730
|
+
/* @__PURE__ */ jsxs19(
|
|
2669
2731
|
"span",
|
|
2670
2732
|
{
|
|
2671
2733
|
className: `text-xs ${req.met ? "text-emerald-600" : "text-muted-foreground"}`,
|
|
2672
2734
|
children: [
|
|
2673
2735
|
req.text,
|
|
2674
|
-
/* @__PURE__ */
|
|
2736
|
+
/* @__PURE__ */ jsx30("span", { className: "sr-only", children: req.met ? " - Requirement met" : " - Requirement not met" })
|
|
2675
2737
|
]
|
|
2676
2738
|
}
|
|
2677
2739
|
)
|
|
@@ -2681,7 +2743,7 @@ var PasswordInput = React23.forwardRef(
|
|
|
2681
2743
|
}
|
|
2682
2744
|
);
|
|
2683
2745
|
PasswordInput.displayName = "PasswordInput";
|
|
2684
|
-
var password_input_default =
|
|
2746
|
+
var password_input_default = React24.memo(PasswordInput);
|
|
2685
2747
|
|
|
2686
2748
|
// src/components/phone-number-input.tsx
|
|
2687
2749
|
import { ChevronDown as ChevronDown2, Phone } from "lucide-react";
|
|
@@ -2689,7 +2751,7 @@ import { forwardRef as forwardRef16, useState as useState3 } from "react";
|
|
|
2689
2751
|
import * as RPNInput from "react-phone-number-input";
|
|
2690
2752
|
import flags from "react-phone-number-input/flags";
|
|
2691
2753
|
import { isValidPhoneNumber } from "react-phone-number-input";
|
|
2692
|
-
import { jsx as
|
|
2754
|
+
import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2693
2755
|
function PhoneNumberInput({
|
|
2694
2756
|
className = "",
|
|
2695
2757
|
...props
|
|
@@ -2703,7 +2765,7 @@ function PhoneNumberInput({
|
|
|
2703
2765
|
}
|
|
2704
2766
|
props.onChange(newValue ?? "");
|
|
2705
2767
|
};
|
|
2706
|
-
return /* @__PURE__ */
|
|
2768
|
+
return /* @__PURE__ */ jsx31("div", { className: cn(className), children: /* @__PURE__ */ jsx31(
|
|
2707
2769
|
RPNInput.default,
|
|
2708
2770
|
{
|
|
2709
2771
|
className: cn("flex rounded-md", error && "border border-red-500/70"),
|
|
@@ -2721,7 +2783,7 @@ function PhoneNumberInput({
|
|
|
2721
2783
|
}
|
|
2722
2784
|
var PhoneInput = forwardRef16(
|
|
2723
2785
|
({ className, ...props }, ref) => {
|
|
2724
|
-
return /* @__PURE__ */
|
|
2786
|
+
return /* @__PURE__ */ jsx31(
|
|
2725
2787
|
Input,
|
|
2726
2788
|
{
|
|
2727
2789
|
className: cn(
|
|
@@ -2744,7 +2806,7 @@ var CountrySelect = ({
|
|
|
2744
2806
|
const handleSelect = (event) => {
|
|
2745
2807
|
onChange(event.target.value);
|
|
2746
2808
|
};
|
|
2747
|
-
return /* @__PURE__ */
|
|
2809
|
+
return /* @__PURE__ */ jsxs20(
|
|
2748
2810
|
"div",
|
|
2749
2811
|
{
|
|
2750
2812
|
className: cn(`relative inline-flex items-center self-stretch rounded-s-10 border border-input
|
|
@@ -2752,11 +2814,11 @@ var CountrySelect = ({
|
|
|
2752
2814
|
focus-within:border-ring focus-within:outline-none focus-within:ring-[3px] focus-within:ring-ring/20
|
|
2753
2815
|
hover:text-foreground has-disabled:pointer-events-none has-disabled:opacity-50`),
|
|
2754
2816
|
children: [
|
|
2755
|
-
/* @__PURE__ */
|
|
2756
|
-
/* @__PURE__ */
|
|
2757
|
-
/* @__PURE__ */
|
|
2817
|
+
/* @__PURE__ */ jsxs20("div", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [
|
|
2818
|
+
/* @__PURE__ */ jsx31(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
2819
|
+
/* @__PURE__ */ jsx31("span", { className: "text-muted-foreground/80", children: /* @__PURE__ */ jsx31(ChevronDown2, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) })
|
|
2758
2820
|
] }),
|
|
2759
|
-
/* @__PURE__ */
|
|
2821
|
+
/* @__PURE__ */ jsxs20(
|
|
2760
2822
|
"select",
|
|
2761
2823
|
{
|
|
2762
2824
|
disabled,
|
|
@@ -2765,8 +2827,8 @@ var CountrySelect = ({
|
|
|
2765
2827
|
className: "absolute inset-0 text-sm opacity-0",
|
|
2766
2828
|
"aria-label": "Select country",
|
|
2767
2829
|
children: [
|
|
2768
|
-
/* @__PURE__ */
|
|
2769
|
-
options2.filter((x) => x.value).map((option, i) => /* @__PURE__ */
|
|
2830
|
+
/* @__PURE__ */ jsx31("option", { value: "", children: "Select a country" }, "default"),
|
|
2831
|
+
options2.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxs20("option", { value: option.value, children: [
|
|
2770
2832
|
option.label,
|
|
2771
2833
|
" ",
|
|
2772
2834
|
option.value && `+${RPNInput.getCountryCallingCode(option.value)}`
|
|
@@ -2780,15 +2842,15 @@ var CountrySelect = ({
|
|
|
2780
2842
|
};
|
|
2781
2843
|
var FlagComponent = ({ country, countryName }) => {
|
|
2782
2844
|
const Flag = flags[country];
|
|
2783
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ jsx31("span", { className: "w-5 overflow-hidden rounded-sm", children: Flag ? /* @__PURE__ */ jsx31(Flag, { title: countryName }) : /* @__PURE__ */ jsx31(Phone, { size: 16, "aria-hidden": "true" }) });
|
|
2784
2846
|
};
|
|
2785
2847
|
|
|
2786
2848
|
// src/components/price-input.tsx
|
|
2787
|
-
import
|
|
2788
|
-
import { jsx as
|
|
2789
|
-
var PriceInput =
|
|
2849
|
+
import React26 from "react";
|
|
2850
|
+
import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2851
|
+
var PriceInput = React26.forwardRef(
|
|
2790
2852
|
({ currency, ...props }, ref) => {
|
|
2791
|
-
return /* @__PURE__ */
|
|
2853
|
+
return /* @__PURE__ */ jsxs21(
|
|
2792
2854
|
"div",
|
|
2793
2855
|
{
|
|
2794
2856
|
className: cn(
|
|
@@ -2796,8 +2858,8 @@ var PriceInput = React25.forwardRef(
|
|
|
2796
2858
|
props.containerClassname
|
|
2797
2859
|
),
|
|
2798
2860
|
children: [
|
|
2799
|
-
!props.hide_currency_symbol && /* @__PURE__ */
|
|
2800
|
-
/* @__PURE__ */
|
|
2861
|
+
!props.hide_currency_symbol && /* @__PURE__ */ jsx32("div", { className: "absolute inset-y-0.5 flex items-center pl-4 pr-2", children: /* @__PURE__ */ jsx32("span", { className: "[fontSize:inherit] font-medium text-muted-foreground/50", children: currency?.symbol }) }),
|
|
2862
|
+
/* @__PURE__ */ jsx32(
|
|
2801
2863
|
Input,
|
|
2802
2864
|
{
|
|
2803
2865
|
ref,
|
|
@@ -2807,7 +2869,7 @@ var PriceInput = React25.forwardRef(
|
|
|
2807
2869
|
className: cn("px-10 shadow-none m-0! py-0", props.className)
|
|
2808
2870
|
}
|
|
2809
2871
|
),
|
|
2810
|
-
!props.hide_currency_code && /* @__PURE__ */
|
|
2872
|
+
!props.hide_currency_code && /* @__PURE__ */ jsx32("div", { className: "absolute inset-y-0.5 right-0 flex items-center pl-3 pr-4", children: /* @__PURE__ */ jsx32("span", { className: "[fontSize:inherit] font-medium text-muted-foreground/50", children: currency?.code }) })
|
|
2811
2873
|
]
|
|
2812
2874
|
}
|
|
2813
2875
|
);
|
|
@@ -2816,10 +2878,10 @@ var PriceInput = React25.forwardRef(
|
|
|
2816
2878
|
PriceInput.displayName = "PriceInput";
|
|
2817
2879
|
|
|
2818
2880
|
// src/components/progress.tsx
|
|
2819
|
-
import * as
|
|
2881
|
+
import * as React27 from "react";
|
|
2820
2882
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2821
|
-
import { jsx as
|
|
2822
|
-
var Progress =
|
|
2883
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2884
|
+
var Progress = React27.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
2823
2885
|
ProgressPrimitive.Root,
|
|
2824
2886
|
{
|
|
2825
2887
|
ref,
|
|
@@ -2828,7 +2890,7 @@ var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2828
2890
|
className
|
|
2829
2891
|
),
|
|
2830
2892
|
...props,
|
|
2831
|
-
children: /* @__PURE__ */
|
|
2893
|
+
children: /* @__PURE__ */ jsx33(
|
|
2832
2894
|
ProgressPrimitive.Indicator,
|
|
2833
2895
|
{
|
|
2834
2896
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -2840,14 +2902,14 @@ var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2840
2902
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2841
2903
|
|
|
2842
2904
|
// src/components/select.tsx
|
|
2843
|
-
import * as
|
|
2905
|
+
import * as React28 from "react";
|
|
2844
2906
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2845
2907
|
import { Check as Check6, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
|
|
2846
|
-
import { jsx as
|
|
2908
|
+
import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2847
2909
|
var Select = SelectPrimitive.Root;
|
|
2848
2910
|
var SelectGroup = SelectPrimitive.Group;
|
|
2849
2911
|
var SelectValue = SelectPrimitive.Value;
|
|
2850
|
-
var SelectTrigger =
|
|
2912
|
+
var SelectTrigger = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs22(
|
|
2851
2913
|
SelectPrimitive.Trigger,
|
|
2852
2914
|
{
|
|
2853
2915
|
ref,
|
|
@@ -2858,12 +2920,12 @@ var SelectTrigger = React27.forwardRef(({ className, children, ...props }, ref)
|
|
|
2858
2920
|
...props,
|
|
2859
2921
|
children: [
|
|
2860
2922
|
children,
|
|
2861
|
-
/* @__PURE__ */
|
|
2923
|
+
/* @__PURE__ */ jsx34(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx34(ChevronDown3, { className: "h-4 w-4 opacity-50" }) })
|
|
2862
2924
|
]
|
|
2863
2925
|
}
|
|
2864
2926
|
));
|
|
2865
2927
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2866
|
-
var SelectScrollUpButton =
|
|
2928
|
+
var SelectScrollUpButton = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
2867
2929
|
SelectPrimitive.ScrollUpButton,
|
|
2868
2930
|
{
|
|
2869
2931
|
ref,
|
|
@@ -2872,11 +2934,11 @@ var SelectScrollUpButton = React27.forwardRef(({ className, ...props }, ref) =>
|
|
|
2872
2934
|
className
|
|
2873
2935
|
),
|
|
2874
2936
|
...props,
|
|
2875
|
-
children: /* @__PURE__ */
|
|
2937
|
+
children: /* @__PURE__ */ jsx34(ChevronUp, { className: "h-4 w-4" })
|
|
2876
2938
|
}
|
|
2877
2939
|
));
|
|
2878
2940
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2879
|
-
var SelectScrollDownButton =
|
|
2941
|
+
var SelectScrollDownButton = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
2880
2942
|
SelectPrimitive.ScrollDownButton,
|
|
2881
2943
|
{
|
|
2882
2944
|
ref,
|
|
@@ -2885,11 +2947,11 @@ var SelectScrollDownButton = React27.forwardRef(({ className, ...props }, ref) =
|
|
|
2885
2947
|
className
|
|
2886
2948
|
),
|
|
2887
2949
|
...props,
|
|
2888
|
-
children: /* @__PURE__ */
|
|
2950
|
+
children: /* @__PURE__ */ jsx34(ChevronDown3, { className: "h-4 w-4" })
|
|
2889
2951
|
}
|
|
2890
2952
|
));
|
|
2891
2953
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2892
|
-
var SelectContent =
|
|
2954
|
+
var SelectContent = React28.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx34(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs22(
|
|
2893
2955
|
SelectPrimitive.Content,
|
|
2894
2956
|
{
|
|
2895
2957
|
ref,
|
|
@@ -2901,8 +2963,8 @@ var SelectContent = React27.forwardRef(({ className, children, position = "poppe
|
|
|
2901
2963
|
position,
|
|
2902
2964
|
...props,
|
|
2903
2965
|
children: [
|
|
2904
|
-
/* @__PURE__ */
|
|
2905
|
-
/* @__PURE__ */
|
|
2966
|
+
/* @__PURE__ */ jsx34(SelectScrollUpButton, {}),
|
|
2967
|
+
/* @__PURE__ */ jsx34(
|
|
2906
2968
|
SelectPrimitive.Viewport,
|
|
2907
2969
|
{
|
|
2908
2970
|
className: cn(
|
|
@@ -2912,12 +2974,12 @@ var SelectContent = React27.forwardRef(({ className, children, position = "poppe
|
|
|
2912
2974
|
children
|
|
2913
2975
|
}
|
|
2914
2976
|
),
|
|
2915
|
-
/* @__PURE__ */
|
|
2977
|
+
/* @__PURE__ */ jsx34(SelectScrollDownButton, {})
|
|
2916
2978
|
]
|
|
2917
2979
|
}
|
|
2918
2980
|
) }));
|
|
2919
2981
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2920
|
-
var SelectLabel =
|
|
2982
|
+
var SelectLabel = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
2921
2983
|
SelectPrimitive.Label,
|
|
2922
2984
|
{
|
|
2923
2985
|
ref,
|
|
@@ -2926,7 +2988,7 @@ var SelectLabel = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2926
2988
|
}
|
|
2927
2989
|
));
|
|
2928
2990
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2929
|
-
var SelectItem =
|
|
2991
|
+
var SelectItem = React28.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs22(
|
|
2930
2992
|
SelectPrimitive.Item,
|
|
2931
2993
|
{
|
|
2932
2994
|
ref,
|
|
@@ -2936,13 +2998,13 @@ var SelectItem = React27.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2936
2998
|
),
|
|
2937
2999
|
...props,
|
|
2938
3000
|
children: [
|
|
2939
|
-
/* @__PURE__ */
|
|
2940
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ jsx34("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx34(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx34(Check6, { className: "h-4 w-4" }) }) }),
|
|
3002
|
+
/* @__PURE__ */ jsx34(SelectPrimitive.ItemText, { children })
|
|
2941
3003
|
]
|
|
2942
3004
|
}
|
|
2943
3005
|
));
|
|
2944
3006
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2945
|
-
var SelectSeparator =
|
|
3007
|
+
var SelectSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
2946
3008
|
SelectPrimitive.Separator,
|
|
2947
3009
|
{
|
|
2948
3010
|
ref,
|
|
@@ -2953,11 +3015,11 @@ var SelectSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2953
3015
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2954
3016
|
|
|
2955
3017
|
// src/components/separator.tsx
|
|
2956
|
-
import * as
|
|
3018
|
+
import * as React29 from "react";
|
|
2957
3019
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2958
|
-
import { jsx as
|
|
2959
|
-
var Separator3 =
|
|
2960
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
3020
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3021
|
+
var Separator3 = React29.forwardRef(
|
|
3022
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
2961
3023
|
SeparatorPrimitive.Root,
|
|
2962
3024
|
{
|
|
2963
3025
|
ref,
|
|
@@ -2975,16 +3037,16 @@ var Separator3 = React28.forwardRef(
|
|
|
2975
3037
|
Separator3.displayName = SeparatorPrimitive.Root.displayName;
|
|
2976
3038
|
|
|
2977
3039
|
// src/components/sheet.tsx
|
|
2978
|
-
import * as
|
|
3040
|
+
import * as React30 from "react";
|
|
2979
3041
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2980
3042
|
import { cva as cva4 } from "class-variance-authority";
|
|
2981
3043
|
import { X as X2 } from "lucide-react";
|
|
2982
|
-
import { jsx as
|
|
3044
|
+
import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2983
3045
|
var Sheet = SheetPrimitive.Root;
|
|
2984
3046
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2985
3047
|
var SheetClose = SheetPrimitive.Close;
|
|
2986
3048
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2987
|
-
var SheetOverlay =
|
|
3049
|
+
var SheetOverlay = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
2988
3050
|
SheetPrimitive.Overlay,
|
|
2989
3051
|
{
|
|
2990
3052
|
className: cn(
|
|
@@ -3012,9 +3074,9 @@ var sheetVariants = cva4(
|
|
|
3012
3074
|
}
|
|
3013
3075
|
}
|
|
3014
3076
|
);
|
|
3015
|
-
var SheetContent =
|
|
3016
|
-
/* @__PURE__ */
|
|
3017
|
-
/* @__PURE__ */
|
|
3077
|
+
var SheetContent = React30.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs23(SheetPortal, { children: [
|
|
3078
|
+
/* @__PURE__ */ jsx36(SheetOverlay, {}),
|
|
3079
|
+
/* @__PURE__ */ jsxs23(
|
|
3018
3080
|
SheetPrimitive.Content,
|
|
3019
3081
|
{
|
|
3020
3082
|
ref,
|
|
@@ -3022,9 +3084,9 @@ var SheetContent = React29.forwardRef(({ side = "right", className, children, ..
|
|
|
3022
3084
|
...props,
|
|
3023
3085
|
children: [
|
|
3024
3086
|
children,
|
|
3025
|
-
/* @__PURE__ */
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
/* @__PURE__ */
|
|
3087
|
+
/* @__PURE__ */ jsxs23(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
3088
|
+
/* @__PURE__ */ jsx36(X2, { className: "h-4 w-4" }),
|
|
3089
|
+
/* @__PURE__ */ jsx36("span", { className: "sr-only", children: "Close" })
|
|
3028
3090
|
] })
|
|
3029
3091
|
]
|
|
3030
3092
|
}
|
|
@@ -3034,7 +3096,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
3034
3096
|
var SheetHeader = ({
|
|
3035
3097
|
className,
|
|
3036
3098
|
...props
|
|
3037
|
-
}) => /* @__PURE__ */
|
|
3099
|
+
}) => /* @__PURE__ */ jsx36(
|
|
3038
3100
|
"div",
|
|
3039
3101
|
{
|
|
3040
3102
|
className: cn(
|
|
@@ -3048,7 +3110,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
3048
3110
|
var SheetFooter = ({
|
|
3049
3111
|
className,
|
|
3050
3112
|
...props
|
|
3051
|
-
}) => /* @__PURE__ */
|
|
3113
|
+
}) => /* @__PURE__ */ jsx36(
|
|
3052
3114
|
"div",
|
|
3053
3115
|
{
|
|
3054
3116
|
className: cn(
|
|
@@ -3059,7 +3121,7 @@ var SheetFooter = ({
|
|
|
3059
3121
|
}
|
|
3060
3122
|
);
|
|
3061
3123
|
SheetFooter.displayName = "SheetFooter";
|
|
3062
|
-
var SheetTitle =
|
|
3124
|
+
var SheetTitle = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
3063
3125
|
SheetPrimitive.Title,
|
|
3064
3126
|
{
|
|
3065
3127
|
ref,
|
|
@@ -3068,7 +3130,7 @@ var SheetTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3068
3130
|
}
|
|
3069
3131
|
));
|
|
3070
3132
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
3071
|
-
var SheetDescription =
|
|
3133
|
+
var SheetDescription = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
3072
3134
|
SheetPrimitive.Description,
|
|
3073
3135
|
{
|
|
3074
3136
|
ref,
|
|
@@ -3079,12 +3141,12 @@ var SheetDescription = React29.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3079
3141
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
3080
3142
|
|
|
3081
3143
|
// src/components/skeleton.tsx
|
|
3082
|
-
import { jsx as
|
|
3144
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3083
3145
|
function Skeleton({
|
|
3084
3146
|
className,
|
|
3085
3147
|
...props
|
|
3086
3148
|
}) {
|
|
3087
|
-
return /* @__PURE__ */
|
|
3149
|
+
return /* @__PURE__ */ jsx37(
|
|
3088
3150
|
"div",
|
|
3089
3151
|
{
|
|
3090
3152
|
className: cn("animate-pulse rounded-lg bg-muted", className),
|
|
@@ -3097,7 +3159,7 @@ function Skeleton({
|
|
|
3097
3159
|
import { mergeProps as mergeProps3 } from "@base-ui-components/react/merge-props";
|
|
3098
3160
|
import { useRender as useRender3 } from "@base-ui-components/react/use-render";
|
|
3099
3161
|
import { cva as cva5 } from "class-variance-authority";
|
|
3100
|
-
import { jsx as
|
|
3162
|
+
import { jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3101
3163
|
var statusIndicatorVariants = cva5(
|
|
3102
3164
|
"relative inline-flex size-2.5 shrink-0",
|
|
3103
3165
|
{
|
|
@@ -3128,8 +3190,8 @@ function StatusIndicator({
|
|
|
3128
3190
|
return useRender3({
|
|
3129
3191
|
defaultTagName: "span",
|
|
3130
3192
|
props: mergeProps3(defaultProps, props),
|
|
3131
|
-
render: render || /* @__PURE__ */
|
|
3132
|
-
/* @__PURE__ */
|
|
3193
|
+
render: render || /* @__PURE__ */ jsxs24("span", { ...defaultProps, children: [
|
|
3194
|
+
/* @__PURE__ */ jsx38(
|
|
3133
3195
|
"span",
|
|
3134
3196
|
{
|
|
3135
3197
|
className: cn(
|
|
@@ -3138,16 +3200,16 @@ function StatusIndicator({
|
|
|
3138
3200
|
)
|
|
3139
3201
|
}
|
|
3140
3202
|
),
|
|
3141
|
-
/* @__PURE__ */
|
|
3203
|
+
/* @__PURE__ */ jsx38("span", { className: "relative inline-flex rounded-full size-2.5" })
|
|
3142
3204
|
] })
|
|
3143
3205
|
});
|
|
3144
3206
|
}
|
|
3145
3207
|
|
|
3146
3208
|
// src/components/switch.tsx
|
|
3147
3209
|
import { Switch as SwitchPrimitive } from "@base-ui-components/react/switch";
|
|
3148
|
-
import { jsx as
|
|
3210
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3149
3211
|
function Switch({ className, ...props }) {
|
|
3150
|
-
return /* @__PURE__ */
|
|
3212
|
+
return /* @__PURE__ */ jsx39(
|
|
3151
3213
|
SwitchPrimitive.Root,
|
|
3152
3214
|
{
|
|
3153
3215
|
className: cn(
|
|
@@ -3156,7 +3218,7 @@ function Switch({ className, ...props }) {
|
|
|
3156
3218
|
),
|
|
3157
3219
|
"data-slot": "switch",
|
|
3158
3220
|
...props,
|
|
3159
|
-
children: /* @__PURE__ */
|
|
3221
|
+
children: /* @__PURE__ */ jsx39(
|
|
3160
3222
|
SwitchPrimitive.Thumb,
|
|
3161
3223
|
{
|
|
3162
3224
|
className: cn(
|
|
@@ -3170,14 +3232,14 @@ function Switch({ className, ...props }) {
|
|
|
3170
3232
|
}
|
|
3171
3233
|
|
|
3172
3234
|
// src/components/table.tsx
|
|
3173
|
-
import { jsx as
|
|
3235
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3174
3236
|
function Table({ className, ...props }) {
|
|
3175
|
-
return /* @__PURE__ */
|
|
3237
|
+
return /* @__PURE__ */ jsx40(
|
|
3176
3238
|
"div",
|
|
3177
3239
|
{
|
|
3178
3240
|
className: "relative w-full overflow-x-auto",
|
|
3179
3241
|
"data-slot": "table-container",
|
|
3180
|
-
children: /* @__PURE__ */
|
|
3242
|
+
children: /* @__PURE__ */ jsx40(
|
|
3181
3243
|
"table",
|
|
3182
3244
|
{
|
|
3183
3245
|
className: cn(
|
|
@@ -3192,7 +3254,7 @@ function Table({ className, ...props }) {
|
|
|
3192
3254
|
);
|
|
3193
3255
|
}
|
|
3194
3256
|
function TableHeader({ className, ...props }) {
|
|
3195
|
-
return /* @__PURE__ */
|
|
3257
|
+
return /* @__PURE__ */ jsx40(
|
|
3196
3258
|
"thead",
|
|
3197
3259
|
{
|
|
3198
3260
|
className: cn(
|
|
@@ -3205,7 +3267,7 @@ function TableHeader({ className, ...props }) {
|
|
|
3205
3267
|
);
|
|
3206
3268
|
}
|
|
3207
3269
|
function TableBody({ className, ...props }) {
|
|
3208
|
-
return /* @__PURE__ */
|
|
3270
|
+
return /* @__PURE__ */ jsx40(
|
|
3209
3271
|
"tbody",
|
|
3210
3272
|
{
|
|
3211
3273
|
className: cn(
|
|
@@ -3218,7 +3280,7 @@ function TableBody({ className, ...props }) {
|
|
|
3218
3280
|
);
|
|
3219
3281
|
}
|
|
3220
3282
|
function TableFooter({ className, ...props }) {
|
|
3221
|
-
return /* @__PURE__ */
|
|
3283
|
+
return /* @__PURE__ */ jsx40(
|
|
3222
3284
|
"tfoot",
|
|
3223
3285
|
{
|
|
3224
3286
|
className: cn(
|
|
@@ -3231,7 +3293,7 @@ function TableFooter({ className, ...props }) {
|
|
|
3231
3293
|
);
|
|
3232
3294
|
}
|
|
3233
3295
|
function TableRow({ className, ...props }) {
|
|
3234
|
-
return /* @__PURE__ */
|
|
3296
|
+
return /* @__PURE__ */ jsx40(
|
|
3235
3297
|
"tr",
|
|
3236
3298
|
{
|
|
3237
3299
|
className: cn(
|
|
@@ -3244,7 +3306,7 @@ function TableRow({ className, ...props }) {
|
|
|
3244
3306
|
);
|
|
3245
3307
|
}
|
|
3246
3308
|
function TableHead({ className, ...props }) {
|
|
3247
|
-
return /* @__PURE__ */
|
|
3309
|
+
return /* @__PURE__ */ jsx40(
|
|
3248
3310
|
"th",
|
|
3249
3311
|
{
|
|
3250
3312
|
className: cn(
|
|
@@ -3257,7 +3319,7 @@ function TableHead({ className, ...props }) {
|
|
|
3257
3319
|
);
|
|
3258
3320
|
}
|
|
3259
3321
|
function TableCell({ className, ...props }) {
|
|
3260
|
-
return /* @__PURE__ */
|
|
3322
|
+
return /* @__PURE__ */ jsx40(
|
|
3261
3323
|
"td",
|
|
3262
3324
|
{
|
|
3263
3325
|
className: cn(
|
|
@@ -3273,7 +3335,7 @@ function TableCaption({
|
|
|
3273
3335
|
className,
|
|
3274
3336
|
...props
|
|
3275
3337
|
}) {
|
|
3276
|
-
return /* @__PURE__ */
|
|
3338
|
+
return /* @__PURE__ */ jsx40(
|
|
3277
3339
|
"caption",
|
|
3278
3340
|
{
|
|
3279
3341
|
className: cn(
|
|
@@ -3287,11 +3349,11 @@ function TableCaption({
|
|
|
3287
3349
|
}
|
|
3288
3350
|
|
|
3289
3351
|
// src/components/tabs.tsx
|
|
3290
|
-
import * as
|
|
3352
|
+
import * as React31 from "react";
|
|
3291
3353
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3292
|
-
import { jsx as
|
|
3354
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3293
3355
|
var Tabs = TabsPrimitive.Root;
|
|
3294
|
-
var TabsList =
|
|
3356
|
+
var TabsList = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
3295
3357
|
TabsPrimitive.List,
|
|
3296
3358
|
{
|
|
3297
3359
|
ref,
|
|
@@ -3303,7 +3365,7 @@ var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3303
3365
|
}
|
|
3304
3366
|
));
|
|
3305
3367
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3306
|
-
var TabsTrigger =
|
|
3368
|
+
var TabsTrigger = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
3307
3369
|
TabsPrimitive.Trigger,
|
|
3308
3370
|
{
|
|
3309
3371
|
ref,
|
|
@@ -3315,7 +3377,7 @@ var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3315
3377
|
}
|
|
3316
3378
|
));
|
|
3317
3379
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3318
|
-
var TabsContent =
|
|
3380
|
+
var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
|
|
3319
3381
|
TabsPrimitive.Content,
|
|
3320
3382
|
{
|
|
3321
3383
|
ref,
|
|
@@ -3331,14 +3393,14 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
|
3331
3393
|
// src/components/tags-input.tsx
|
|
3332
3394
|
import { TagInput } from "emblor";
|
|
3333
3395
|
import { useId as useId3, useState as useState4 } from "react";
|
|
3334
|
-
import { jsx as
|
|
3396
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3335
3397
|
|
|
3336
3398
|
// src/components/textarea.tsx
|
|
3337
|
-
import * as
|
|
3338
|
-
import { jsx as
|
|
3339
|
-
var Textarea =
|
|
3399
|
+
import * as React32 from "react";
|
|
3400
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3401
|
+
var Textarea = React32.forwardRef(
|
|
3340
3402
|
({ className, ...props }, ref) => {
|
|
3341
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ jsx43(
|
|
3342
3404
|
"textarea",
|
|
3343
3405
|
{
|
|
3344
3406
|
className: cn(
|
|
@@ -3354,18 +3416,18 @@ var Textarea = React31.forwardRef(
|
|
|
3354
3416
|
Textarea.displayName = "Textarea";
|
|
3355
3417
|
|
|
3356
3418
|
// src/components/timeline.tsx
|
|
3357
|
-
import * as
|
|
3358
|
-
import { jsx as
|
|
3359
|
-
var TimelineContext =
|
|
3419
|
+
import * as React33 from "react";
|
|
3420
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3421
|
+
var TimelineContext = React33.createContext(null);
|
|
3360
3422
|
function useTimeline() {
|
|
3361
|
-
const context =
|
|
3423
|
+
const context = React33.useContext(TimelineContext);
|
|
3362
3424
|
if (!context) {
|
|
3363
3425
|
throw new Error("useTimeline must be used within a <Timeline />.");
|
|
3364
3426
|
}
|
|
3365
3427
|
return context;
|
|
3366
3428
|
}
|
|
3367
|
-
var Timeline =
|
|
3368
|
-
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */
|
|
3429
|
+
var Timeline = React33.forwardRef(
|
|
3430
|
+
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx44(TimelineContext.Provider, { value: { orientation }, children: /* @__PURE__ */ jsx44(
|
|
3369
3431
|
"ol",
|
|
3370
3432
|
{
|
|
3371
3433
|
ref,
|
|
@@ -3381,9 +3443,9 @@ var Timeline = React32.forwardRef(
|
|
|
3381
3443
|
) })
|
|
3382
3444
|
);
|
|
3383
3445
|
Timeline.displayName = "Timeline";
|
|
3384
|
-
var TimelineItem =
|
|
3446
|
+
var TimelineItem = React33.forwardRef(({ className, ...props }, ref) => {
|
|
3385
3447
|
const { orientation } = useTimeline();
|
|
3386
|
-
return /* @__PURE__ */
|
|
3448
|
+
return /* @__PURE__ */ jsx44(
|
|
3387
3449
|
"li",
|
|
3388
3450
|
{
|
|
3389
3451
|
ref,
|
|
@@ -3398,9 +3460,9 @@ var TimelineItem = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3398
3460
|
);
|
|
3399
3461
|
});
|
|
3400
3462
|
TimelineItem.displayName = "TimelineItem";
|
|
3401
|
-
var TimelineSeparator =
|
|
3463
|
+
var TimelineSeparator = React33.forwardRef(({ className, ...props }, ref) => {
|
|
3402
3464
|
const { orientation } = useTimeline();
|
|
3403
|
-
return /* @__PURE__ */
|
|
3465
|
+
return /* @__PURE__ */ jsx44(
|
|
3404
3466
|
"div",
|
|
3405
3467
|
{
|
|
3406
3468
|
ref,
|
|
@@ -3415,9 +3477,9 @@ var TimelineSeparator = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3415
3477
|
);
|
|
3416
3478
|
});
|
|
3417
3479
|
TimelineSeparator.displayName = "TimelineSeparator";
|
|
3418
|
-
var TimelineDot =
|
|
3480
|
+
var TimelineDot = React33.forwardRef(({ variant = "default", className, ...props }, ref) => {
|
|
3419
3481
|
const { orientation } = useTimeline();
|
|
3420
|
-
return /* @__PURE__ */
|
|
3482
|
+
return /* @__PURE__ */ jsx44(
|
|
3421
3483
|
"div",
|
|
3422
3484
|
{
|
|
3423
3485
|
ref,
|
|
@@ -3434,9 +3496,9 @@ var TimelineDot = React32.forwardRef(({ variant = "default", className, ...props
|
|
|
3434
3496
|
);
|
|
3435
3497
|
});
|
|
3436
3498
|
TimelineDot.displayName = "TimelineDot";
|
|
3437
|
-
var TimelineConnector =
|
|
3499
|
+
var TimelineConnector = React33.forwardRef(({ className, ...props }, ref) => {
|
|
3438
3500
|
const { orientation } = useTimeline();
|
|
3439
|
-
return /* @__PURE__ */
|
|
3501
|
+
return /* @__PURE__ */ jsx44(
|
|
3440
3502
|
"div",
|
|
3441
3503
|
{
|
|
3442
3504
|
ref,
|
|
@@ -3452,9 +3514,9 @@ var TimelineConnector = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3452
3514
|
);
|
|
3453
3515
|
});
|
|
3454
3516
|
TimelineConnector.displayName = "TimelineConnector";
|
|
3455
|
-
var TimelineContent =
|
|
3517
|
+
var TimelineContent = React33.forwardRef(({ className, ...props }, ref) => {
|
|
3456
3518
|
const { orientation } = useTimeline();
|
|
3457
|
-
return /* @__PURE__ */
|
|
3519
|
+
return /* @__PURE__ */ jsx44(
|
|
3458
3520
|
"div",
|
|
3459
3521
|
{
|
|
3460
3522
|
ref,
|
|
@@ -3470,14 +3532,14 @@ var TimelineContent = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3470
3532
|
);
|
|
3471
3533
|
});
|
|
3472
3534
|
TimelineContent.displayName = "TimelineContent";
|
|
3473
|
-
var TimelineTitle =
|
|
3535
|
+
var TimelineTitle = React33.forwardRef((props, ref) => {
|
|
3474
3536
|
const { orientation } = useTimeline();
|
|
3475
|
-
return /* @__PURE__ */
|
|
3537
|
+
return /* @__PURE__ */ jsx44("div", { ref, "data-orientation": orientation, ...props });
|
|
3476
3538
|
});
|
|
3477
3539
|
TimelineTitle.displayName = "TimelineTitle";
|
|
3478
|
-
var TimelineDescription =
|
|
3540
|
+
var TimelineDescription = React33.forwardRef(({ className, ...props }, ref) => {
|
|
3479
3541
|
const { orientation } = useTimeline();
|
|
3480
|
-
return /* @__PURE__ */
|
|
3542
|
+
return /* @__PURE__ */ jsx44(
|
|
3481
3543
|
"div",
|
|
3482
3544
|
{
|
|
3483
3545
|
ref,
|
|
@@ -3490,13 +3552,13 @@ var TimelineDescription = React32.forwardRef(({ className, ...props }, ref) => {
|
|
|
3490
3552
|
TimelineDescription.displayName = "TimelineDescription";
|
|
3491
3553
|
|
|
3492
3554
|
// src/components/tooltip.tsx
|
|
3493
|
-
import * as
|
|
3555
|
+
import * as React34 from "react";
|
|
3494
3556
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3495
|
-
import { jsx as
|
|
3557
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
3496
3558
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3497
3559
|
var Tooltip = TooltipPrimitive.Root;
|
|
3498
3560
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3499
|
-
var TooltipContent =
|
|
3561
|
+
var TooltipContent = React34.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
3500
3562
|
TooltipPrimitive.Content,
|
|
3501
3563
|
{
|
|
3502
3564
|
ref,
|
|
@@ -3637,6 +3699,7 @@ export {
|
|
|
3637
3699
|
Kbd,
|
|
3638
3700
|
KbdKey,
|
|
3639
3701
|
Label2 as Label,
|
|
3702
|
+
Loader,
|
|
3640
3703
|
MultiSelect,
|
|
3641
3704
|
PhoneNumberInput,
|
|
3642
3705
|
Popover,
|