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