@photon-ai/pho-ui 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/IconAlertCircleFilled-VxKU8TYK.js +11 -0
- package/dist/chunks/IconAlertCircleFilled-VxKU8TYK.js.map +1 -0
- package/dist/chunks/IconInfoCircle-L0zfhg7R.js +21 -0
- package/dist/chunks/IconInfoCircle-L0zfhg7R.js.map +1 -0
- package/dist/chunks/animated-height-DhNSac85.js +50 -0
- package/dist/chunks/animated-height-DhNSac85.js.map +1 -0
- package/dist/chunks/basic-page-D1zm81YS.js +481 -0
- package/dist/chunks/basic-page-D1zm81YS.js.map +1 -0
- package/dist/chunks/{close-button-B8gF5UNk.js → button-X5wsWvRa.js} +127 -147
- package/dist/chunks/button-X5wsWvRa.js.map +1 -0
- package/dist/chunks/close-button-xadxp0j8.js +29 -0
- package/dist/chunks/close-button-xadxp0j8.js.map +1 -0
- package/dist/chunks/{dialog--PQoodig.js → dialog-Caze1vkf.js} +84 -79
- package/dist/chunks/dialog-Caze1vkf.js.map +1 -0
- package/dist/chunks/error-DR6G2LmG.js +251 -0
- package/dist/chunks/error-DR6G2LmG.js.map +1 -0
- package/dist/chunks/{input-CxS7ndpb.js → input-D3XQcC4J.js} +29 -31
- package/dist/chunks/input-D3XQcC4J.js.map +1 -0
- package/dist/chunks/{menu-BSXds3Rt.js → menu-BC-9IP29.js} +39 -39
- package/dist/chunks/menu-BC-9IP29.js.map +1 -0
- package/dist/chunks/popover-EL1SE1kj.js +46 -0
- package/dist/chunks/popover-EL1SE1kj.js.map +1 -0
- package/dist/chunks/{sidebar-DLYTxo2j.js → sidebar-DDJC1MeD.js} +2 -2
- package/dist/chunks/{sidebar-DLYTxo2j.js.map → sidebar-DDJC1MeD.js.map} +1 -1
- package/dist/components/button.js +13 -12
- package/dist/components/command.js +126 -162
- package/dist/components/command.js.map +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/error.js +13 -0
- package/dist/components/input.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/notification.js +27 -39
- package/dist/components/notification.js.map +1 -1
- package/dist/components/phone-input.js +1867 -1848
- package/dist/components/phone-input.js.map +1 -1
- package/dist/components/popover.js +2 -43
- package/dist/components/toast.js.map +1 -1
- package/dist/index.js +65 -53
- package/dist/primitives.js +1 -1
- package/dist/sections/basic-page.js +1 -1
- package/dist/sections/sidebar.js +1 -1
- package/dist/src/components/dialog/dialog.d.ts +12 -4
- package/dist/src/components/drawer/drawer.d.ts +2 -2
- package/dist/src/components/error/error.d.ts +56 -0
- package/dist/src/components/error/index.d.ts +2 -0
- package/dist/src/components/error/problem.d.ts +80 -0
- package/dist/src/components/notification/notification.d.ts +1 -1
- package/dist/src/components/phone-input/phone-input.d.ts +7 -1
- package/dist/src/components/toast/toast.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/sections/basic-page/basic-page.d.ts +157 -43
- package/dist/src/utils/animated-height.d.ts +4 -1
- package/package.json +5 -5
- package/src/styles/theme.css +27 -0
- package/dist/chunks/basic-page-awtvmT-6.js +0 -270
- package/dist/chunks/basic-page-awtvmT-6.js.map +0 -1
- package/dist/chunks/close-button-B8gF5UNk.js.map +0 -1
- package/dist/chunks/dialog--PQoodig.js.map +0 -1
- package/dist/chunks/input-CxS7ndpb.js.map +0 -1
- package/dist/chunks/menu-BSXds3Rt.js.map +0 -1
- package/dist/components/alert-dialog.js +0 -59
- package/dist/components/alert-dialog.js.map +0 -1
- package/dist/components/popover.js.map +0 -1
- package/dist/src/components/alert-dialog/alert-dialog.d.ts +0 -41
- package/dist/src/components/alert-dialog/index.d.ts +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as l } from "./createReactComponent-BqCmnqfX.js";
|
|
3
|
+
var e = [["path", {
|
|
4
|
+
d: "M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm.01 13l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",
|
|
5
|
+
key: "svg-0"
|
|
6
|
+
}]], r = l("filled", "alert-circle-filled", "AlertCircleFilled", e);
|
|
7
|
+
export {
|
|
8
|
+
r as t
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=IconAlertCircleFilled-VxKU8TYK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconAlertCircleFilled-VxKU8TYK.js","names":[],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.44.0_react@19.2.7/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircleFilled.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.44.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm.01 13l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z\", \"key\": \"svg-0\" }]];\nconst IconAlertCircleFilled = createReactComponent(\"filled\", \"alert-circle-filled\", \"AlertCircleFilled\", __iconNode);\n\nexport { __iconNode, IconAlertCircleFilled as default };\n//# sourceMappingURL=IconAlertCircleFilled.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AASA,IAAM,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAoU,KAAO;AAAQ,CAAC,CAAC,GACnX,IAAwB,EAAqB,UAAU,uBAAuB,qBAAqB,CAAU"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./createReactComponent-BqCmnqfX.js";
|
|
3
|
+
var o = [
|
|
4
|
+
["path", {
|
|
5
|
+
d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",
|
|
6
|
+
key: "svg-0"
|
|
7
|
+
}],
|
|
8
|
+
["path", {
|
|
9
|
+
d: "M12 9h.01",
|
|
10
|
+
key: "svg-1"
|
|
11
|
+
}],
|
|
12
|
+
["path", {
|
|
13
|
+
d: "M11 12h1v4h1",
|
|
14
|
+
key: "svg-2"
|
|
15
|
+
}]
|
|
16
|
+
], a = e("outline", "info-circle", "InfoCircle", o);
|
|
17
|
+
export {
|
|
18
|
+
a as t
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=IconInfoCircle-L0zfhg7R.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconInfoCircle-L0zfhg7R.js","names":[],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.44.0_react@19.2.7/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.44.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 9h.01\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M11 12h1v4h1\", \"key\": \"svg-2\" }]];\nconst IconInfoCircle = createReactComponent(\"outline\", \"info-circle\", \"InfoCircle\", __iconNode);\n\nexport { __iconNode, IconInfoCircle as default };\n//# sourceMappingURL=IconInfoCircle.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AASA,IAAM,IAAa;AAAA,EAAC,CAAC,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAwC,KAAO;AAAA,EAAQ,CAAC;AAAA,EAAG,CAAC,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAa,KAAO;AAAA,EAAQ,CAAC;AAAA,EAAG,CAAC,QAAQ;AAAA,IAAE,GAAK;AAAA,IAAgB,KAAO;AAAA,EAAQ,CAAC;AAAC,GAC1L,IAAiB,EAAqB,WAAW,eAAe,cAAc,CAAU"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect as h, useRef as d } from "react";
|
|
3
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
4
|
+
import { animate as g, motion as R, useMotionValue as x, useReducedMotion as y } from "motion/react";
|
|
5
|
+
var w = {
|
|
6
|
+
type: "spring",
|
|
7
|
+
stiffness: 640,
|
|
8
|
+
damping: 50
|
|
9
|
+
};
|
|
10
|
+
function S({ className: p, transition: s, children: v }) {
|
|
11
|
+
const i = d(null), c = d(null), t = x("auto"), u = y();
|
|
12
|
+
return h(() => {
|
|
13
|
+
const o = i.current, n = c.current;
|
|
14
|
+
if (!o || !n) return;
|
|
15
|
+
let e = null;
|
|
16
|
+
const l = new ResizeObserver((b) => {
|
|
17
|
+
const f = b[0]?.borderBoxSize?.[0], r = f ? f.blockSize : n.offsetHeight, a = t.get();
|
|
18
|
+
if (a === "auto" || u) {
|
|
19
|
+
e?.stop(), e = null, o.style.overflow = "", t.set(r);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
!e && Math.abs(a - r) < 0.5 || (o.style.overflow = "hidden", e?.stop(), e = g(t, r, {
|
|
23
|
+
...s ?? w,
|
|
24
|
+
onComplete: () => {
|
|
25
|
+
e = null, o.style.overflow = "";
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
});
|
|
29
|
+
return l.observe(n), () => {
|
|
30
|
+
l.disconnect(), e?.stop();
|
|
31
|
+
};
|
|
32
|
+
}, [
|
|
33
|
+
t,
|
|
34
|
+
u,
|
|
35
|
+
s
|
|
36
|
+
]), /* @__PURE__ */ m(R.div, {
|
|
37
|
+
ref: i,
|
|
38
|
+
style: { height: t },
|
|
39
|
+
children: /* @__PURE__ */ m("div", {
|
|
40
|
+
ref: c,
|
|
41
|
+
className: p,
|
|
42
|
+
children: v
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
S as t
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=animated-height-DhNSac85.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animated-height-DhNSac85.js","names":[],"sources":["../../src/utils/animated-height.tsx"],"sourcesContent":["import { useEffect, useRef, type ReactNode } from \"react\";\nimport {\n animate,\n motion,\n useMotionValue,\n useReducedMotion,\n type ValueAnimationTransition,\n} from \"motion/react\";\n\n/**\n * Height spring for container-size transitions — same feel as the onboarding /\n * invite card and BasicPage footer reveal: quick, critically damped (no\n * overshoot that would flash clipped content).\n */\nconst HEIGHT_SPRING = { type: \"spring\", stiffness: 640, damping: 50 } as const;\n\n/**\n * Animates its own height to follow the measured height of `children`, so\n * content swaps (search filtering, skeleton → data) glide instead of jumping.\n * Honors `prefers-reduced-motion` by snapping height with no spring.\n */\nexport function AnimatedHeight({\n className,\n transition,\n children,\n}: {\n className?: string;\n /** Spring override for the height follow. @default the Command spring */\n transition?: ValueAnimationTransition<number | \"auto\">;\n children: ReactNode;\n}) {\n const containerRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const height = useMotionValue<number | \"auto\">(\"auto\");\n const reduceMotion = useReducedMotion();\n\n useEffect(() => {\n const container = containerRef.current;\n const content = contentRef.current;\n if (!container || !content) return;\n\n let animation: ReturnType<typeof animate> | null = null;\n\n const observer = new ResizeObserver((entries) => {\n const box = entries[0]?.borderBoxSize?.[0];\n const next = box ? box.blockSize : content.offsetHeight;\n const current = height.get();\n if (current === \"auto\" || reduceMotion) {\n animation?.stop();\n animation = null;\n container.style.overflow = \"\";\n height.set(next);\n return;\n }\n if (!animation && Math.abs(current - next) < 0.5) return;\n container.style.overflow = \"hidden\";\n animation?.stop();\n animation = animate(height, next, {\n ...(transition ?? HEIGHT_SPRING),\n onComplete: () => {\n animation = null;\n container.style.overflow = \"\";\n },\n });\n });\n observer.observe(content);\n\n return () => {\n observer.disconnect();\n animation?.stop();\n };\n }, [height, reduceMotion, transition]);\n\n return (\n <motion.div ref={containerRef} style={{ height }}>\n <div ref={contentRef} className={className}>\n {children}\n </div>\n </motion.div>\n );\n}\n"],"mappings":";;;;AAcA,IAAM,IAAgB;AAAA,EAAE,MAAM;AAAA,EAAU,WAAW;AAAA,EAAK,SAAS;AAAG;AAOpE,SAAgB,EAAe,EAC7B,WAAA,GACA,YAAA,GACA,UAAA,EAAA,GAMC;AACD,QAAM,IAAe,EAAuB,IAAI,GAC1C,IAAa,EAAuB,IAAI,GACxC,IAAS,EAAgC,MAAM,GAC/C,IAAe,EAAiB;AAEtC,SAAA,EAAA,MAAgB;AACd,UAAM,IAAY,EAAa,SACzB,IAAU,EAAW;AAC3B,QAAI,CAAC,KAAa,CAAC,EAAS;AAE5B,QAAI,IAA+C;AAEnD,UAAM,IAAW,IAAI,eAAA,CAAgB,MAAY;AAC/C,YAAM,IAAM,EAAQ,CAAA,GAAI,gBAAgB,CAAA,GAClC,IAAO,IAAM,EAAI,YAAY,EAAQ,cACrC,IAAU,EAAO,IAAI;AAC3B,UAAI,MAAY,UAAU,GAAc;AACtC,QAAA,GAAW,KAAK,GAChB,IAAY,MACZ,EAAU,MAAM,WAAW,IAC3B,EAAO,IAAI,CAAI;AACf;AAAA,MACF;AACA,MAAI,CAAC,KAAa,KAAK,IAAI,IAAU,CAAI,IAAI,QAC7C,EAAU,MAAM,WAAW,UAC3B,GAAW,KAAK,GAChB,IAAY,EAAQ,GAAQ,GAAM;AAAA,QAChC,GAAI,KAAc;AAAA,QAClB,YAAA,MAAkB;AAChB,UAAA,IAAY,MACZ,EAAU,MAAM,WAAW;AAAA,QAC7B;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AACD,WAAA,EAAS,QAAQ,CAAO,GAExB,MAAa;AACX,MAAA,EAAS,WAAW,GACpB,GAAW,KAAK;AAAA,IAClB;AAAA,EACF,GAAG;AAAA,IAAC;AAAA,IAAQ;AAAA,IAAc;AAAA,EAAU,CAAC,GAGnC,gBAAA,EAAC,EAAO,KAAR;AAAA,IAAY,KAAK;AAAA,IAAc,OAAO,EAAE,QAAA,EAAO;AAAA,cAC7C,gBAAA,EAAC,OAAD;AAAA,MAAK,KAAK;AAAA,MAAuB,WAAA;AAAA,MAC9B,UAAA;AAAA,IACE,CAAA;AAAA,EACK,CAAA;AAEhB"}
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as r } from "./cn-DTiB6ek_.js";
|
|
3
|
+
import { n as I } from "./link-provider-9TFNyDqO.js";
|
|
4
|
+
import { o as P } from "./button-X5wsWvRa.js";
|
|
5
|
+
import { t as S } from "./createReactComponent-BqCmnqfX.js";
|
|
6
|
+
import { t as M } from "./error-DR6G2LmG.js";
|
|
7
|
+
import { t as g } from "./IconChevronLeft-CSWMKQ4C.js";
|
|
8
|
+
import { t as k } from "./animated-height-DhNSac85.js";
|
|
9
|
+
import { Children as T, useEffect as O, useRef as L, useState as _ } from "react";
|
|
10
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
11
|
+
import { AnimatePresence as x, motion as p, useReducedMotion as d } from "motion/react";
|
|
12
|
+
var D = [["path", {
|
|
13
|
+
d: "M9 6l6 6l-6 6",
|
|
14
|
+
key: "svg-0"
|
|
15
|
+
}]], B = S("outline", "chevron-right", "ChevronRight", D), C = "rounded-base border border-pho-secondary bg-pho-primary", E = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", G = `${C} ${E}`, N = "flex flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5", H = "flex min-h-[4.25rem] flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6", j = "flex flex-col gap-3 px-5 py-4", z = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", F = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", u = {
|
|
16
|
+
type: "spring",
|
|
17
|
+
stiffness: 400,
|
|
18
|
+
damping: 40
|
|
19
|
+
}, f = {
|
|
20
|
+
duration: 0.25,
|
|
21
|
+
ease: "easeOut"
|
|
22
|
+
};
|
|
23
|
+
function V({ className: e, ...t }) {
|
|
24
|
+
return /* @__PURE__ */ a("div", {
|
|
25
|
+
className: r("relative mx-auto flex min-h-full w-full max-w-[44.5rem] flex-col px-5 pt-12 pb-12 has-[[data-basic-page-back]]:pt-16", e),
|
|
26
|
+
...t
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function $(e) {
|
|
30
|
+
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
31
|
+
}
|
|
32
|
+
function K(e) {
|
|
33
|
+
if (!(typeof e != "string" && typeof e != "number"))
|
|
34
|
+
return $(String(e)) || void 0;
|
|
35
|
+
}
|
|
36
|
+
function v(e, t) {
|
|
37
|
+
if (e !== "")
|
|
38
|
+
return e ?? K(t);
|
|
39
|
+
}
|
|
40
|
+
var U = (e) => `basic-page-morph-${e}`, W = { layout: u }, X = 10, q = {
|
|
41
|
+
delay: 0.2,
|
|
42
|
+
duration: 0.12,
|
|
43
|
+
ease: "easeOut"
|
|
44
|
+
}, J = {
|
|
45
|
+
duration: 0.18,
|
|
46
|
+
ease: "easeOut"
|
|
47
|
+
}, b = /* @__PURE__ */ new Map();
|
|
48
|
+
function R(e) {
|
|
49
|
+
const [t] = _(() => e != null && b.get(e) === !0), i = L(null);
|
|
50
|
+
return O(() => {
|
|
51
|
+
if (e == null || typeof IntersectionObserver > "u") return;
|
|
52
|
+
const n = i.current;
|
|
53
|
+
if (!n) return;
|
|
54
|
+
const o = new IntersectionObserver(([s]) => {
|
|
55
|
+
s && b.set(e, s.isIntersecting);
|
|
56
|
+
});
|
|
57
|
+
return o.observe(n), () => {
|
|
58
|
+
o.disconnect();
|
|
59
|
+
};
|
|
60
|
+
}, [e]), {
|
|
61
|
+
fly: t,
|
|
62
|
+
ref: i
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function w({ morphId: e, fromClassName: t, fly: i, morphRef: n, fallback: o = !1, children: s }) {
|
|
66
|
+
const [l, c] = _(!1), y = !i && o;
|
|
67
|
+
return /* @__PURE__ */ m(p.span, {
|
|
68
|
+
ref: n,
|
|
69
|
+
layoutId: U(e),
|
|
70
|
+
initial: y ? { opacity: 0 } : void 0,
|
|
71
|
+
animate: y ? { opacity: 1 } : void 0,
|
|
72
|
+
transition: i ? W : {
|
|
73
|
+
layout: { duration: 0 },
|
|
74
|
+
opacity: f
|
|
75
|
+
},
|
|
76
|
+
onLayoutAnimationStart: () => {
|
|
77
|
+
i && c(!0);
|
|
78
|
+
},
|
|
79
|
+
onLayoutAnimationComplete: () => c(!1),
|
|
80
|
+
className: "relative inline-block",
|
|
81
|
+
children: [s, l && /* @__PURE__ */ a(p.span, {
|
|
82
|
+
"aria-hidden": !0,
|
|
83
|
+
initial: { opacity: 1 },
|
|
84
|
+
animate: { opacity: 0 },
|
|
85
|
+
transition: J,
|
|
86
|
+
className: r("absolute inset-0", t),
|
|
87
|
+
children: s
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function Q({ id: e, morphId: t, enter: i, className: n, children: o, ...s }) {
|
|
92
|
+
const l = v(e, o), c = d(), y = R(t);
|
|
93
|
+
return /* @__PURE__ */ a("h1", {
|
|
94
|
+
id: l,
|
|
95
|
+
className: r("text-display-base text-pho-primary scroll-mt-12 px-5 font-medium", n),
|
|
96
|
+
...s,
|
|
97
|
+
children: t != null && !c ? /* @__PURE__ */ a(w, {
|
|
98
|
+
morphId: t,
|
|
99
|
+
fromClassName: "text-pho-secondary",
|
|
100
|
+
fly: y.fly,
|
|
101
|
+
morphRef: y.ref,
|
|
102
|
+
children: o
|
|
103
|
+
}) : i && !c ? /* @__PURE__ */ a(p.span, {
|
|
104
|
+
initial: {
|
|
105
|
+
opacity: 0,
|
|
106
|
+
y: h
|
|
107
|
+
},
|
|
108
|
+
animate: {
|
|
109
|
+
opacity: 1,
|
|
110
|
+
y: 0
|
|
111
|
+
},
|
|
112
|
+
transition: {
|
|
113
|
+
y: u,
|
|
114
|
+
opacity: f
|
|
115
|
+
},
|
|
116
|
+
className: "inline-block",
|
|
117
|
+
children: o
|
|
118
|
+
}) : o
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function Y({ className: e, ...t }) {
|
|
122
|
+
const i = d();
|
|
123
|
+
return /* @__PURE__ */ a(p.div, {
|
|
124
|
+
initial: i ? !1 : {
|
|
125
|
+
opacity: 0,
|
|
126
|
+
y: h
|
|
127
|
+
},
|
|
128
|
+
animate: {
|
|
129
|
+
opacity: 1,
|
|
130
|
+
y: 0
|
|
131
|
+
},
|
|
132
|
+
transition: {
|
|
133
|
+
y: u,
|
|
134
|
+
opacity: f
|
|
135
|
+
},
|
|
136
|
+
className: r("mt-6 flex flex-col gap-10", "*:flex *:flex-col *:gap-3", e),
|
|
137
|
+
...t
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function Z({ enter: e, className: t, ...i }) {
|
|
141
|
+
const n = d();
|
|
142
|
+
return e && !n ? /* @__PURE__ */ a(p.div, {
|
|
143
|
+
initial: {
|
|
144
|
+
opacity: 0,
|
|
145
|
+
y: h
|
|
146
|
+
},
|
|
147
|
+
animate: {
|
|
148
|
+
opacity: 1,
|
|
149
|
+
y: 0
|
|
150
|
+
},
|
|
151
|
+
transition: {
|
|
152
|
+
y: u,
|
|
153
|
+
opacity: f
|
|
154
|
+
},
|
|
155
|
+
className: r("flex flex-col", t),
|
|
156
|
+
...i
|
|
157
|
+
}) : /* @__PURE__ */ a("div", {
|
|
158
|
+
className: r("flex flex-col", t),
|
|
159
|
+
...i
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function ee({ id: e, className: t, children: i, ...n }) {
|
|
163
|
+
return /* @__PURE__ */ a("h2", {
|
|
164
|
+
id: v(e, i),
|
|
165
|
+
className: r("text-display-xs text-pho-primary scroll-mt-12 px-5 font-medium", t),
|
|
166
|
+
...n,
|
|
167
|
+
children: i
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function te({ className: e, ...t }) {
|
|
171
|
+
return /* @__PURE__ */ a("p", {
|
|
172
|
+
className: r("text-display-xs text-pho-description px-5 font-normal", e),
|
|
173
|
+
...t
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function ie({ className: e, ...t }) {
|
|
177
|
+
return /* @__PURE__ */ a("p", {
|
|
178
|
+
className: r("text-pho-description px-5 text-xs font-normal", e),
|
|
179
|
+
...t
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function ae({ animateHeight: e, className: t, children: i, ...n }) {
|
|
183
|
+
return e ? /* @__PURE__ */ a("div", {
|
|
184
|
+
className: r(C, "overflow-hidden", t),
|
|
185
|
+
...n,
|
|
186
|
+
children: /* @__PURE__ */ a(k, {
|
|
187
|
+
transition: u,
|
|
188
|
+
className: E,
|
|
189
|
+
children: i
|
|
190
|
+
})
|
|
191
|
+
}) : /* @__PURE__ */ a("div", {
|
|
192
|
+
className: r(G, t),
|
|
193
|
+
...n,
|
|
194
|
+
children: i
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function ne({ className: e, ...t }) {
|
|
198
|
+
return /* @__PURE__ */ a("div", {
|
|
199
|
+
className: r(j, e),
|
|
200
|
+
...t
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
function re({ divided: e = !1, className: t, ...i }) {
|
|
204
|
+
return /* @__PURE__ */ a("div", {
|
|
205
|
+
className: r(e ? F : z, t),
|
|
206
|
+
...i
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function oe({ className: e, icon: t, children: i, ...n }) {
|
|
210
|
+
if (t == null || t === !1 || t === !0) return /* @__PURE__ */ a("div", {
|
|
211
|
+
className: r(N, e),
|
|
212
|
+
...n,
|
|
213
|
+
children: i
|
|
214
|
+
});
|
|
215
|
+
const [o, ...s] = T.toArray(i);
|
|
216
|
+
return /* @__PURE__ */ m("div", {
|
|
217
|
+
className: r(N, e),
|
|
218
|
+
...n,
|
|
219
|
+
children: [/* @__PURE__ */ m("div", {
|
|
220
|
+
className: "relative",
|
|
221
|
+
children: [/* @__PURE__ */ a("div", {
|
|
222
|
+
className: "min-w-0 pr-16",
|
|
223
|
+
children: o
|
|
224
|
+
}), /* @__PURE__ */ a("div", {
|
|
225
|
+
"aria-hidden": !0,
|
|
226
|
+
className: "text-pho-description pointer-events-none absolute top-1/2 right-0 size-14 -translate-y-1/2 opacity-50 [&>svg]:size-full",
|
|
227
|
+
children: t
|
|
228
|
+
})]
|
|
229
|
+
}), s]
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
function se({ id: e, className: t, children: i, ...n }) {
|
|
233
|
+
return /* @__PURE__ */ a("h2", {
|
|
234
|
+
id: v(e, i),
|
|
235
|
+
className: r("text-display-xs text-pho-primary scroll-mt-12 font-medium", t),
|
|
236
|
+
...n,
|
|
237
|
+
children: i
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
function le({ className: e, ...t }) {
|
|
241
|
+
return /* @__PURE__ */ a("p", {
|
|
242
|
+
className: r("text-display-xs text-pho-description font-normal", e),
|
|
243
|
+
...t
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
function ce({ label: e, description: t, htmlFor: i, stacked: n = !1, className: o, children: s, ...l }) {
|
|
247
|
+
return /* @__PURE__ */ m("div", {
|
|
248
|
+
className: r(H, n && "sm:flex-col sm:items-stretch sm:justify-start sm:gap-3", o),
|
|
249
|
+
...l,
|
|
250
|
+
children: [/* @__PURE__ */ m("div", {
|
|
251
|
+
className: "min-w-0",
|
|
252
|
+
children: [i ? /* @__PURE__ */ a("label", {
|
|
253
|
+
htmlFor: i,
|
|
254
|
+
className: "text-pho-primary block text-base font-normal",
|
|
255
|
+
children: e
|
|
256
|
+
}) : /* @__PURE__ */ a("p", {
|
|
257
|
+
className: "text-pho-primary text-base font-normal",
|
|
258
|
+
children: e
|
|
259
|
+
}), t ? /* @__PURE__ */ a("p", {
|
|
260
|
+
className: "text-pho-description text-xs",
|
|
261
|
+
children: t
|
|
262
|
+
}) : null]
|
|
263
|
+
}), /* @__PURE__ */ a("div", {
|
|
264
|
+
className: r("flex w-full min-w-0 items-center gap-2 sm:w-auto", n && "sm:w-full"),
|
|
265
|
+
children: s
|
|
266
|
+
})]
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
function ue({ className: e, ...t }) {
|
|
270
|
+
return /* @__PURE__ */ a("p", {
|
|
271
|
+
className: r("text-pho-description truncate text-base", e),
|
|
272
|
+
...t
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
function pe({ error: e, show: t, className: i, children: n, ...o }) {
|
|
276
|
+
const s = d();
|
|
277
|
+
return /* @__PURE__ */ a(x, {
|
|
278
|
+
initial: !1,
|
|
279
|
+
children: (t ?? !0) && (e != null || n != null) ? /* @__PURE__ */ a(p.div, {
|
|
280
|
+
"data-basic-page-alert": "",
|
|
281
|
+
className: "overflow-hidden",
|
|
282
|
+
initial: {
|
|
283
|
+
height: 0,
|
|
284
|
+
opacity: 0
|
|
285
|
+
},
|
|
286
|
+
animate: {
|
|
287
|
+
height: "auto",
|
|
288
|
+
opacity: 1
|
|
289
|
+
},
|
|
290
|
+
exit: {
|
|
291
|
+
height: 0,
|
|
292
|
+
opacity: 0
|
|
293
|
+
},
|
|
294
|
+
transition: s ? { duration: 0 } : {
|
|
295
|
+
height: u,
|
|
296
|
+
opacity: f
|
|
297
|
+
},
|
|
298
|
+
children: /* @__PURE__ */ a(M, {
|
|
299
|
+
error: e,
|
|
300
|
+
className: r("px-5 pb-3", i),
|
|
301
|
+
...o,
|
|
302
|
+
children: n
|
|
303
|
+
})
|
|
304
|
+
}) : null
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
function me({ show: e, className: t, ...i }) {
|
|
308
|
+
const n = d(), o = /* @__PURE__ */ a("div", {
|
|
309
|
+
className: r("flex items-center justify-between gap-6 px-5 py-4", t),
|
|
310
|
+
...i
|
|
311
|
+
});
|
|
312
|
+
return e === void 0 ? o : /* @__PURE__ */ a(x, {
|
|
313
|
+
initial: !1,
|
|
314
|
+
children: e ? /* @__PURE__ */ a(p.div, {
|
|
315
|
+
className: "overflow-hidden",
|
|
316
|
+
initial: {
|
|
317
|
+
height: 0,
|
|
318
|
+
opacity: 0
|
|
319
|
+
},
|
|
320
|
+
animate: {
|
|
321
|
+
height: "auto",
|
|
322
|
+
opacity: 1
|
|
323
|
+
},
|
|
324
|
+
exit: {
|
|
325
|
+
height: 0,
|
|
326
|
+
opacity: 0
|
|
327
|
+
},
|
|
328
|
+
transition: n ? { duration: 0 } : {
|
|
329
|
+
height: u,
|
|
330
|
+
opacity: f
|
|
331
|
+
},
|
|
332
|
+
children: o
|
|
333
|
+
}) : null
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
var h = 12, A = {
|
|
337
|
+
stack: "-2.5rem",
|
|
338
|
+
block: "-0.75rem"
|
|
339
|
+
};
|
|
340
|
+
function fe({ show: e, gap: t = "stack", className: i, ...n }) {
|
|
341
|
+
const o = d();
|
|
342
|
+
return e === void 0 ? /* @__PURE__ */ a(p.div, {
|
|
343
|
+
initial: o ? !1 : {
|
|
344
|
+
opacity: 0,
|
|
345
|
+
y: h
|
|
346
|
+
},
|
|
347
|
+
animate: {
|
|
348
|
+
opacity: 1,
|
|
349
|
+
y: 0
|
|
350
|
+
},
|
|
351
|
+
transition: {
|
|
352
|
+
y: u,
|
|
353
|
+
opacity: f
|
|
354
|
+
},
|
|
355
|
+
className: i,
|
|
356
|
+
...n
|
|
357
|
+
}) : /* @__PURE__ */ a(x, {
|
|
358
|
+
initial: !1,
|
|
359
|
+
children: e ? /* @__PURE__ */ a(p.div, {
|
|
360
|
+
initial: {
|
|
361
|
+
height: 0,
|
|
362
|
+
opacity: 0,
|
|
363
|
+
marginTop: A[t]
|
|
364
|
+
},
|
|
365
|
+
animate: {
|
|
366
|
+
height: "auto",
|
|
367
|
+
opacity: 1,
|
|
368
|
+
marginTop: 0
|
|
369
|
+
},
|
|
370
|
+
exit: {
|
|
371
|
+
height: 0,
|
|
372
|
+
opacity: 0,
|
|
373
|
+
marginTop: A[t]
|
|
374
|
+
},
|
|
375
|
+
transition: o ? { duration: 0 } : {
|
|
376
|
+
height: u,
|
|
377
|
+
marginTop: u,
|
|
378
|
+
opacity: f
|
|
379
|
+
},
|
|
380
|
+
className: r("overflow-hidden", i),
|
|
381
|
+
...n
|
|
382
|
+
}) : null
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
function de({ href: e, className: t, morphId: i, children: n = "Back", ...o }) {
|
|
386
|
+
const s = d(), l = i != null && !s, c = R(l ? i : void 0);
|
|
387
|
+
return /* @__PURE__ */ a(P, {
|
|
388
|
+
variant: "ghost",
|
|
389
|
+
size: "sm",
|
|
390
|
+
href: e,
|
|
391
|
+
"data-basic-page-back": "",
|
|
392
|
+
prefix: l ? /* @__PURE__ */ a(p.span, {
|
|
393
|
+
initial: c.fly ? {
|
|
394
|
+
opacity: 0,
|
|
395
|
+
x: X
|
|
396
|
+
} : { opacity: 0 },
|
|
397
|
+
animate: c.fly ? {
|
|
398
|
+
opacity: 1,
|
|
399
|
+
x: 0
|
|
400
|
+
} : { opacity: 1 },
|
|
401
|
+
transition: c.fly ? q : f,
|
|
402
|
+
className: "inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0",
|
|
403
|
+
children: /* @__PURE__ */ a(g, {})
|
|
404
|
+
}) : /* @__PURE__ */ a(g, {}),
|
|
405
|
+
className: r("absolute top-4 left-[10.25px]", t),
|
|
406
|
+
...o,
|
|
407
|
+
children: l && i != null ? /* @__PURE__ */ a(w, {
|
|
408
|
+
morphId: i,
|
|
409
|
+
fromClassName: "text-pho-primary",
|
|
410
|
+
fly: c.fly,
|
|
411
|
+
morphRef: c.ref,
|
|
412
|
+
fallback: !0,
|
|
413
|
+
children: n
|
|
414
|
+
}) : n
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
function ye({ label: e, description: t, leading: i, href: n, className: o, children: s, ...l }) {
|
|
418
|
+
return /* @__PURE__ */ m(I(), {
|
|
419
|
+
href: n,
|
|
420
|
+
...l,
|
|
421
|
+
className: r("flex min-h-[4.25rem] flex-row items-center justify-between gap-6 px-5 py-4", "group outline-pho-brand hover:bg-pho-primary-hover cursor-pointer transition-colors focus-visible:outline-2 focus-visible:-outline-offset-2", "first:rounded-t-[calc(var(--radius-base)-1px)] last:rounded-b-[calc(var(--radius-base)-1px)]", o),
|
|
422
|
+
children: [/* @__PURE__ */ m("div", {
|
|
423
|
+
className: r("flex min-w-0 flex-1 items-center", i != null && "gap-3"),
|
|
424
|
+
children: [i, /* @__PURE__ */ m("div", {
|
|
425
|
+
className: "min-w-0",
|
|
426
|
+
children: [/* @__PURE__ */ a("div", {
|
|
427
|
+
className: "flex min-w-0 items-center gap-1",
|
|
428
|
+
children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ a("p", {
|
|
429
|
+
className: "text-pho-primary truncate text-base font-medium",
|
|
430
|
+
children: e
|
|
431
|
+
}) : e
|
|
432
|
+
}), t ? /* @__PURE__ */ a("div", {
|
|
433
|
+
className: "text-pho-description truncate text-xs",
|
|
434
|
+
children: t
|
|
435
|
+
}) : null]
|
|
436
|
+
})]
|
|
437
|
+
}), /* @__PURE__ */ m("div", {
|
|
438
|
+
className: "flex min-w-0 items-center justify-end gap-2",
|
|
439
|
+
children: [s != null ? /* @__PURE__ */ a("div", {
|
|
440
|
+
className: "min-w-0",
|
|
441
|
+
children: s
|
|
442
|
+
}) : null, /* @__PURE__ */ a(B, {
|
|
443
|
+
"aria-hidden": !0,
|
|
444
|
+
className: "text-pho-secondary group-hover:text-pho-secondary-hover size-4 shrink-0 transition-colors"
|
|
445
|
+
})]
|
|
446
|
+
})]
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
var Re = {
|
|
450
|
+
Root: V,
|
|
451
|
+
Back: de,
|
|
452
|
+
Title: Q,
|
|
453
|
+
Stack: Y,
|
|
454
|
+
Header: Z,
|
|
455
|
+
SectionTitle: ee,
|
|
456
|
+
Description: te,
|
|
457
|
+
SectionFooter: ie,
|
|
458
|
+
Card: ae,
|
|
459
|
+
Item: ne,
|
|
460
|
+
ItemPanel: re,
|
|
461
|
+
Callout: oe,
|
|
462
|
+
CalloutTitle: se,
|
|
463
|
+
CalloutDescription: le,
|
|
464
|
+
Row: ce,
|
|
465
|
+
RowLink: ye,
|
|
466
|
+
Value: ue,
|
|
467
|
+
Alert: pe,
|
|
468
|
+
Footer: me,
|
|
469
|
+
Reveal: fe
|
|
470
|
+
};
|
|
471
|
+
export {
|
|
472
|
+
F as a,
|
|
473
|
+
z as i,
|
|
474
|
+
G as n,
|
|
475
|
+
H as o,
|
|
476
|
+
j as r,
|
|
477
|
+
Re as s,
|
|
478
|
+
N as t
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
//# sourceMappingURL=basic-page-D1zm81YS.js.map
|