@photon-ai/pho-ui 4.7.1 → 4.9.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/bar-chart-ht70KKj3.js +19 -0
- package/dist/chunks/bar-chart-ht70KKj3.js.map +1 -0
- package/dist/chunks/{basic-page-BUmntB7L.js → basic-page-DzT8yecB.js} +174 -173
- package/dist/chunks/basic-page-DzT8yecB.js.map +1 -0
- package/dist/chunks/chart-B5c8gmlj.js +1338 -0
- package/dist/chunks/chart-B5c8gmlj.js.map +1 -0
- package/dist/chunks/code-block-CbcE994O.js +516 -0
- package/dist/chunks/code-block-CbcE994O.js.map +1 -0
- package/dist/chunks/{data-table-Mog6m3d9.js → data-table-B1dmrN6r.js} +89 -94
- package/dist/chunks/data-table-B1dmrN6r.js.map +1 -0
- package/dist/chunks/ghost-search-CNVs9k1o.js +34 -0
- package/dist/chunks/ghost-search-CNVs9k1o.js.map +1 -0
- package/dist/chunks/line-chart-Cm_Ac7f4.js +22 -0
- package/dist/chunks/line-chart-Cm_Ac7f4.js.map +1 -0
- package/dist/chunks/{trace-CjOi3_IP.js → trace-D1fOFzJt.js} +633 -622
- package/dist/chunks/trace-D1fOFzJt.js.map +1 -0
- package/dist/components/bar-chart.js +1 -1
- package/dist/components/chart.js +8 -5
- package/dist/components/code-block.js +12 -3
- package/dist/components/data-table.js +8 -8
- package/dist/components/line-chart.js +1 -1
- package/dist/components/trace.js +1 -1
- package/dist/index.js +175 -162
- package/dist/motion.js +14 -13
- package/dist/motion.js.map +1 -1
- package/dist/primitives.js +1 -1
- package/dist/sections/basic-page.js +2 -2
- package/dist/src/components/bar-chart/bar-chart.d.ts +9 -1
- package/dist/src/components/chart/chart.d.ts +25 -0
- package/dist/src/components/chart/format.d.ts +9 -5
- package/dist/src/components/chart/index.d.ts +7 -4
- package/dist/src/components/chart/scale.d.ts +2 -2
- package/dist/src/components/chart/shell.d.ts +20 -13
- package/dist/src/components/chart/skeleton.d.ts +11 -0
- package/dist/src/components/chart/theme.d.ts +8 -0
- package/dist/src/components/chart/types.d.ts +39 -2
- package/dist/src/components/chart/use-measure.d.ts +2 -1
- package/dist/src/components/code-block/code-block.d.ts +23 -11
- package/dist/src/components/code-block/highlight.d.ts +24 -0
- package/dist/src/components/code-block/index.d.ts +4 -1
- package/dist/src/components/code-block/languages.d.ts +64 -0
- package/dist/src/components/code-block/pho-theme.d.ts +18 -0
- package/dist/src/components/code-block/tokens.d.ts +14 -0
- package/dist/src/components/data-table/chrome.d.ts +25 -0
- package/dist/src/components/data-table/data-table.d.ts +1 -2
- package/dist/src/components/line-chart/line-chart.d.ts +12 -3
- package/dist/src/components/trace/trace.d.ts +15 -4
- package/dist/src/motion/index.d.ts +6 -0
- package/dist/src/sections/basic-page/basic-page.d.ts +2 -0
- package/package.json +4 -1
- package/src/styles/theme.css +17 -4
- package/dist/chunks/IconArrowsMinimize-BfPUGuCB.js +0 -75
- package/dist/chunks/IconArrowsMinimize-BfPUGuCB.js.map +0 -1
- package/dist/chunks/bar-chart-DIALC2_z.js +0 -190
- package/dist/chunks/bar-chart-DIALC2_z.js.map +0 -1
- package/dist/chunks/basic-page-BUmntB7L.js.map +0 -1
- package/dist/chunks/code-block-BuFfh0zH.js +0 -197
- package/dist/chunks/code-block-BuFfh0zH.js.map +0 -1
- package/dist/chunks/data-table-Mog6m3d9.js.map +0 -1
- package/dist/chunks/ghost-search-AmVXd0zE.js +0 -25
- package/dist/chunks/ghost-search-AmVXd0zE.js.map +0 -1
- package/dist/chunks/legend-C0mU7dqd.js +0 -60
- package/dist/chunks/legend-C0mU7dqd.js.map +0 -1
- package/dist/chunks/line-chart-VuMYKzW3.js +0 -453
- package/dist/chunks/line-chart-VuMYKzW3.js.map +0 -1
- package/dist/chunks/trace-CjOi3_IP.js.map +0 -1
- package/dist/chunks/use-measure-C-i54AC6.js +0 -629
- package/dist/chunks/use-measure-C-i54AC6.js.map +0 -1
- package/dist/src/components/chart/axes.d.ts +0 -22
|
@@ -4,33 +4,33 @@ import { n as je } from "./link-provider-DXzDQ08N.js";
|
|
|
4
4
|
import { FADE_ENTRANCE as ha, FADE_SWAP as ga, SPRING_ENTRANCE as ba, TRAVEL_LINEAR as va, fadeThroughBlur as ne } from "../motion.js";
|
|
5
5
|
import { a as Z, o as Ne } from "./button-C9VqBBIr.js";
|
|
6
6
|
import { t as ya } from "./error-D5SzZ0ev.js";
|
|
7
|
-
import {
|
|
7
|
+
import { f as xa, p as wa, t as Na } from "./code-block-CbcE994O.js";
|
|
8
8
|
import { t as se } from "./IconChevronLeft-CSWMKQ4C.js";
|
|
9
|
-
import { t as
|
|
9
|
+
import { t as Aa } from "./IconChevronRight-CzoJnYNI.js";
|
|
10
10
|
import { t as Oe } from "./IconSearch-BKAHkLyX.js";
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
11
|
+
import { a as _a, n as Ca, r as Ae, t as Ea } from "./data-table-B1dmrN6r.js";
|
|
12
|
+
import { t as ka } from "./IconX-pZ9vrtSr.js";
|
|
13
|
+
import { t as Sa } from "./toast-BACxYsv6.js";
|
|
14
14
|
import { t as ge } from "./input-group-fc9_jD4d.js";
|
|
15
|
-
import { t as
|
|
15
|
+
import { t as Ra } from "./animated-height-I44sUq0n.js";
|
|
16
16
|
import { n as _e, t as J } from "./scroll-area-DSwD9th7.js";
|
|
17
|
-
import { i as
|
|
18
|
-
import { t as
|
|
17
|
+
import { i as Ta } from "./checkbox-CLPmblNA.js";
|
|
18
|
+
import { t as Pa } from "./form-AiHbbw4m.js";
|
|
19
19
|
import { i as Q } from "./menu-BQeprfxB.js";
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as Be } from "./description-list-8qm83WZB.js";
|
|
20
|
+
import { t as Ia } from "./ghost-search-CNVs9k1o.js";
|
|
22
21
|
import { t as K } from "./tooltip-BTF7GChl.js";
|
|
23
|
-
import {
|
|
22
|
+
import { t as Be } from "./description-list-8qm83WZB.js";
|
|
23
|
+
import { Children as ee, Fragment as Oa, createContext as G, isValidElement as Ke, useCallback as Ce, useContext as k, useEffect as O, useId as Ba, useLayoutEffect as z, useMemo as V, useRef as E, useState as w, useSyncExternalStore as ue } from "react";
|
|
24
24
|
import { Fragment as de, jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
25
|
-
import { AnimatePresence as $, motion as A, useIsPresent as
|
|
25
|
+
import { AnimatePresence as $, motion as A, useIsPresent as La, useReducedMotion as M } from "motion/react";
|
|
26
26
|
import { Dialog as re } from "@base-ui/react/dialog";
|
|
27
27
|
import { createPortal as Le } from "react-dom";
|
|
28
|
-
var Ee = "rounded-base border border-pho-secondary bg-pho-primary", le = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", Xe = `${Ee} ${le} gap-0`, Me = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5",
|
|
29
|
-
function
|
|
28
|
+
var Ee = "rounded-base border border-pho-secondary bg-pho-primary", le = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", Xe = `${Ee} ${le} gap-0`, Me = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5", Ma = "flex min-h-[4.25rem] min-w-0 flex-col gap-3 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6", Da = "flex flex-col gap-3 px-5 py-4", Ha = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", Fa = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", P = ba, D = ha, X = 12, Qe = G(null), za = 768;
|
|
29
|
+
function Ga(e, t = "default") {
|
|
30
30
|
return Math.round(t === "wide" ? Math.min(Math.max(e * (2 / 3), 448), 768) : Math.min(Math.max(e * 0.4, 320), 448));
|
|
31
31
|
}
|
|
32
32
|
var Ye = G(null), Ue = G(null);
|
|
33
|
-
function
|
|
33
|
+
function Wa(e) {
|
|
34
34
|
const [t, n] = w(null), [r, l] = w(!1), [s, u] = w(!1), [d, i] = w(!1), [c, f] = w(() => ({
|
|
35
35
|
width: typeof window > "u" ? 0 : window.innerWidth,
|
|
36
36
|
height: null
|
|
@@ -51,7 +51,7 @@ function Ga(e) {
|
|
|
51
51
|
}, [e, r]), {
|
|
52
52
|
host: V(() => ({
|
|
53
53
|
slot: t,
|
|
54
|
-
paneNarrow: c.width <
|
|
54
|
+
paneNarrow: c.width < za,
|
|
55
55
|
paneWidth: c.width,
|
|
56
56
|
paneHeight: c.height,
|
|
57
57
|
setOpen: u,
|
|
@@ -63,13 +63,13 @@ function Ga(e) {
|
|
|
63
63
|
asPage: d
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Va(e) {
|
|
67
67
|
return e == null ? window.scrollY : e.scrollTop;
|
|
68
68
|
}
|
|
69
69
|
function De(e, t) {
|
|
70
70
|
e == null ? window.scrollTo({ top: t }) : e.scrollTop = t;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function $a({ condense: e = !0, width: t, prerendered: n = !1, className: r, children: l, ref: s, ...u }) {
|
|
73
73
|
const d = k(ae)?.adopt ?? !1, i = k(Ue), c = e === "pinned", [f, o] = w(!1), m = E(0), h = Ce((q) => {
|
|
74
74
|
m.current += q ? 1 : -1, o(m.current > 0);
|
|
75
75
|
}, []), g = t === "full" && i == null, v = t === "wide" || t == null && f, [N] = w(_a), b = E(null), _ = V(() => ({
|
|
@@ -80,7 +80,7 @@ function Va({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
|
|
|
80
80
|
if (i != null)
|
|
81
81
|
return i.setBack(R), () => i.setBack(null);
|
|
82
82
|
}, [i, R]);
|
|
83
|
-
const { host: B, setSlot: L, open: W, asPage: te } =
|
|
83
|
+
const { host: B, setSlot: L, open: W, asPage: te } = Wa(b), H = W && te, me = V(() => ({
|
|
84
84
|
setTitle: S,
|
|
85
85
|
setTail: I,
|
|
86
86
|
pinned: c
|
|
@@ -97,7 +97,7 @@ function Va({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
|
|
|
97
97
|
if (H === C.current || q == null) return;
|
|
98
98
|
C.current = H;
|
|
99
99
|
const he = Re(q);
|
|
100
|
-
H ? (j.current =
|
|
100
|
+
H ? (j.current = Va(he), De(he, 0)) : De(he, j.current);
|
|
101
101
|
}, [H]);
|
|
102
102
|
const F = e && !c ? /* @__PURE__ */ a(Je, {
|
|
103
103
|
title: x,
|
|
@@ -148,7 +148,7 @@ function Va({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
|
|
|
148
148
|
}
|
|
149
149
|
var be = /* @__PURE__ */ new Set();
|
|
150
150
|
function Je({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: l }) {
|
|
151
|
-
const s = M(), [u, d] = w(() => r || !n && be.size > 0), i = k(ae), c =
|
|
151
|
+
const s = M(), [u, d] = w(() => r || !n && be.size > 0), i = k(ae), c = Ba();
|
|
152
152
|
z(() => {
|
|
153
153
|
if (!(!u || n))
|
|
154
154
|
return be.add(c), () => {
|
|
@@ -192,7 +192,7 @@ function Je({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: l })
|
|
|
192
192
|
const h = new IntersectionObserver(([g]) => d(g != null && !g.isIntersecting), { root: Re(f) });
|
|
193
193
|
return h.observe(f), () => h.disconnect();
|
|
194
194
|
}, [f, r]);
|
|
195
|
-
const o = s ? 0 : -
|
|
195
|
+
const o = s ? 0 : -tt, m = s ? "blur(0px)" : `blur(${_e}px)`;
|
|
196
196
|
return /* @__PURE__ */ a("div", {
|
|
197
197
|
"data-basic-page-condense": "",
|
|
198
198
|
className: p("sticky top-0 z-20 h-0 overflow-visible", l),
|
|
@@ -236,7 +236,7 @@ function Je({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: l })
|
|
|
236
236
|
},
|
|
237
237
|
transition: {
|
|
238
238
|
...oe,
|
|
239
|
-
y:
|
|
239
|
+
y: at
|
|
240
240
|
},
|
|
241
241
|
className: "text-pho-primary block max-w-full min-w-0 truncate text-center text-base font-medium",
|
|
242
242
|
children: e?.label
|
|
@@ -245,28 +245,28 @@ function Je({ title: e, tail: t, silent: n = !1, pinned: r = !1, className: l })
|
|
|
245
245
|
})
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function qa(e) {
|
|
249
249
|
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function ja(e) {
|
|
252
252
|
if (!(typeof e != "string" && typeof e != "number"))
|
|
253
|
-
return
|
|
253
|
+
return qa(String(e)) || void 0;
|
|
254
254
|
}
|
|
255
255
|
function ke(e, t) {
|
|
256
256
|
if (e !== "")
|
|
257
|
-
return e ??
|
|
257
|
+
return e ?? ja(t);
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var Ka = (e) => `basic-page-morph-${e}`, Xa = { layout: P }, He = 10, Fe = {
|
|
260
260
|
delay: 0.2,
|
|
261
261
|
duration: 0.12,
|
|
262
262
|
ease: "easeOut"
|
|
263
|
-
},
|
|
263
|
+
}, Qa = {
|
|
264
264
|
duration: 0.18,
|
|
265
265
|
ease: "easeOut"
|
|
266
|
-
},
|
|
266
|
+
}, Ya = -8, Ua = {
|
|
267
267
|
duration: 0.16,
|
|
268
268
|
ease: "easeOut"
|
|
269
|
-
},
|
|
269
|
+
}, Ja = {
|
|
270
270
|
delay: 0.14,
|
|
271
271
|
duration: 0.16,
|
|
272
272
|
ease: "easeOut"
|
|
@@ -274,7 +274,7 @@ var ja = (e) => `basic-page-morph-${e}`, Ka = { layout: P }, He = 10, Fe = {
|
|
|
274
274
|
duration: 0.12,
|
|
275
275
|
ease: "easeOut"
|
|
276
276
|
}, Y = [];
|
|
277
|
-
function
|
|
277
|
+
function Za(e) {
|
|
278
278
|
const t = E({ labels: e });
|
|
279
279
|
t.current.labels = e, z(() => {
|
|
280
280
|
const n = t.current;
|
|
@@ -299,7 +299,7 @@ var Se = G(null), aa = G({
|
|
|
299
299
|
back: null
|
|
300
300
|
}, ae = G(null), pe = () => () => {
|
|
301
301
|
}, ze = () => xe;
|
|
302
|
-
function
|
|
302
|
+
function et({ adopt: e = !0, children: t }) {
|
|
303
303
|
const [n] = w(() => {
|
|
304
304
|
let l = xe, s = null;
|
|
305
305
|
const u = /* @__PURE__ */ new Set(), d = () => {
|
|
@@ -326,11 +326,11 @@ function Za({ adopt: e = !0, children: t }) {
|
|
|
326
326
|
children: t
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Bn() {
|
|
330
330
|
const e = k(ae);
|
|
331
331
|
return ue(e?.store.subscribe ?? pe, e?.store.get ?? ze, e?.store.get ?? ze);
|
|
332
332
|
}
|
|
333
|
-
var oe = ga,
|
|
333
|
+
var oe = ga, at = va, tt = -8;
|
|
334
334
|
function Re(e) {
|
|
335
335
|
if (typeof getComputedStyle != "function") return null;
|
|
336
336
|
for (let t = e.parentElement; t != null && t !== document.body; t = t.parentElement) {
|
|
@@ -339,8 +339,8 @@ function Re(e) {
|
|
|
339
339
|
}
|
|
340
340
|
return null;
|
|
341
341
|
}
|
|
342
|
-
var ve = /* @__PURE__ */ new Map(),
|
|
343
|
-
function
|
|
342
|
+
var ve = /* @__PURE__ */ new Map(), nt = 96;
|
|
343
|
+
function rt(e) {
|
|
344
344
|
const t = e.closest("[data-basic-page-root]"), n = t?.querySelector("[data-basic-page-column]");
|
|
345
345
|
return !t || !n ? 0 : n.getBoundingClientRect().left - t.getBoundingClientRect().left;
|
|
346
346
|
}
|
|
@@ -348,7 +348,7 @@ function ta(e) {
|
|
|
348
348
|
const [t] = w(() => {
|
|
349
349
|
if (e == null) return !1;
|
|
350
350
|
const r = ve.get(e);
|
|
351
|
-
return r != null && r.visible && r.el.isConnected &&
|
|
351
|
+
return r != null && r.visible && r.el.isConnected && rt(r.el) <= nt;
|
|
352
352
|
}), n = E(null);
|
|
353
353
|
return O(() => {
|
|
354
354
|
if (e == null || typeof IntersectionObserver > "u") return;
|
|
@@ -368,7 +368,7 @@ function ta(e) {
|
|
|
368
368
|
ref: n
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var it = {
|
|
372
372
|
fade: {
|
|
373
373
|
initial: { opacity: 0 },
|
|
374
374
|
animate: { opacity: 1 },
|
|
@@ -391,17 +391,17 @@ var rt = {
|
|
|
391
391
|
slide: {
|
|
392
392
|
initial: { x: "-100%" },
|
|
393
393
|
animate: { x: 0 },
|
|
394
|
-
transition: { x:
|
|
394
|
+
transition: { x: Ja }
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
function na({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: l, className: s, children: u }) {
|
|
398
|
-
const [d, i] = w(!1), c = !n && l != null ?
|
|
398
|
+
const [d, i] = w(!1), c = !n && l != null ? it[l] : null;
|
|
399
399
|
return /* @__PURE__ */ y(A.span, {
|
|
400
400
|
ref: r,
|
|
401
|
-
layoutId:
|
|
401
|
+
layoutId: Ka(e),
|
|
402
402
|
initial: c?.initial,
|
|
403
403
|
animate: c?.animate,
|
|
404
|
-
transition: n ?
|
|
404
|
+
transition: n ? Xa : {
|
|
405
405
|
layout: { duration: 0 },
|
|
406
406
|
...c?.transition
|
|
407
407
|
},
|
|
@@ -414,7 +414,7 @@ function na({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: l, cla
|
|
|
414
414
|
"aria-hidden": !0,
|
|
415
415
|
initial: { opacity: 1 },
|
|
416
416
|
animate: { opacity: 0 },
|
|
417
|
-
transition:
|
|
417
|
+
transition: Qa,
|
|
418
418
|
onAnimationComplete: () => i(!1),
|
|
419
419
|
className: p("absolute inset-0", t),
|
|
420
420
|
children: u
|
|
@@ -422,7 +422,7 @@ function na({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: l, cla
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
var Ge = "max-w-full min-w-0 truncate align-top", We = "flex shrink-0 items-center";
|
|
425
|
-
function
|
|
425
|
+
function st({ id: e, morphId: t, enter: n, trailing: r, className: l, children: s, ...u }) {
|
|
426
426
|
const d = ke(e, s), i = M(), c = Pe(n === !0), f = ta(t), o = ea(), m = !i && (t != null || c === !0), h = c || o != null ? "rise" : void 0, g = k(Se), v = g?.pinned ?? !1, N = k(ae)?.adopt ?? !1, b = k(aa), _ = E(null);
|
|
427
427
|
z(() => {
|
|
428
428
|
if (!(g == null || v))
|
|
@@ -514,23 +514,23 @@ function it({ id: e, morphId: t, enter: n, trailing: r, className: l, children:
|
|
|
514
514
|
animate: { opacity: 0 },
|
|
515
515
|
transition: Ze,
|
|
516
516
|
onAnimationComplete: () => S(!1),
|
|
517
|
-
className: p("text-pho-secondary pointer-events-none absolute inline-flex items-center",
|
|
517
|
+
className: p("text-pho-secondary pointer-events-none absolute inline-flex items-center", $t),
|
|
518
518
|
children: /* @__PURE__ */ a(se, {})
|
|
519
519
|
})]
|
|
520
520
|
})] });
|
|
521
521
|
}
|
|
522
522
|
var ra = G(!1);
|
|
523
|
-
function
|
|
523
|
+
function lt() {
|
|
524
524
|
const e = k(ra), t = M(), [n] = w(() => e && !t);
|
|
525
525
|
return n;
|
|
526
526
|
}
|
|
527
|
-
var
|
|
527
|
+
var ot = {
|
|
528
528
|
height: 0,
|
|
529
529
|
opacity: 0,
|
|
530
530
|
paddingTop: 0,
|
|
531
531
|
paddingBottom: 0,
|
|
532
532
|
borderTopWidth: 0
|
|
533
|
-
},
|
|
533
|
+
}, ct = {
|
|
534
534
|
y: P,
|
|
535
535
|
opacity: D,
|
|
536
536
|
height: P,
|
|
@@ -539,7 +539,7 @@ var lt = {
|
|
|
539
539
|
borderTopWidth: P
|
|
540
540
|
};
|
|
541
541
|
function Te() {
|
|
542
|
-
const e =
|
|
542
|
+
const e = lt(), t = La(), n = M();
|
|
543
543
|
return {
|
|
544
544
|
initial: e ? {
|
|
545
545
|
opacity: 0,
|
|
@@ -549,15 +549,15 @@ function Te() {
|
|
|
549
549
|
opacity: 1,
|
|
550
550
|
y: 0
|
|
551
551
|
},
|
|
552
|
-
exit:
|
|
553
|
-
transition: n ? { duration: 0 } :
|
|
552
|
+
exit: ot,
|
|
553
|
+
transition: n ? { duration: 0 } : ct,
|
|
554
554
|
leaving: !t
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
var
|
|
557
|
+
var ut = typeof process < "u" && process.env.NODE_ENV !== "production";
|
|
558
558
|
function ia(e, t, n, r) {
|
|
559
559
|
O(() => {
|
|
560
|
-
if (!
|
|
560
|
+
if (!ut || e.current == null || typeof getComputedStyle != "function") return;
|
|
561
561
|
const l = (u) => {
|
|
562
562
|
const d = getComputedStyle(u).rowGap;
|
|
563
563
|
return d === "" || d === "normal" ? null : parseFloat(d);
|
|
@@ -571,26 +571,26 @@ function ia(e, t, n, r) {
|
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function dt(e) {
|
|
575
575
|
return Array.from(e.querySelectorAll("[data-basic-page-stack], [data-basic-page-title], [data-basic-page-header]")).some((t) => t.closest('[aria-busy="true"]') != null);
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
function
|
|
579
|
-
return ue(pe,
|
|
577
|
+
var pt = () => !1, mt = () => !0;
|
|
578
|
+
function ft() {
|
|
579
|
+
return ue(pe, pt, mt);
|
|
580
580
|
}
|
|
581
581
|
function Pe(e, t = !1) {
|
|
582
|
-
const n = k(Qe), r =
|
|
582
|
+
const n = k(Qe), r = ft(), [l] = w(() => {
|
|
583
583
|
if (r || !e || n?.prerendered) return !1;
|
|
584
584
|
if (t) return !0;
|
|
585
585
|
if (document.querySelector("[data-basic-page-prerendered]") != null) return !1;
|
|
586
586
|
const s = n ? n.ref.current : document;
|
|
587
|
-
return s == null || !
|
|
587
|
+
return s == null || !dt(s);
|
|
588
588
|
});
|
|
589
589
|
return l;
|
|
590
590
|
}
|
|
591
591
|
function ie({ enter: e, className: t, children: n, ref: r, ...l }) {
|
|
592
592
|
const s = M(), u = E(null);
|
|
593
|
-
ia(u, "Stack", 40, (m) => m.hasAttribute("data-basic-page-fields") ? 20 : m.hasAttribute("data-basic-page-card") || m.hasAttribute("data-basic-page-onboard") || m.hasAttribute("data-basic-page-header") || m.hasAttribute("data-basic-page-columns") || m.hasAttribute("data-data-table") ? null : 12);
|
|
593
|
+
ia(u, "Stack", 40, (m) => m.hasAttribute("data-basic-page-fields") ? 20 : m.hasAttribute("data-basic-page-card") || m.hasAttribute("data-basic-page-onboard") || m.hasAttribute("data-basic-page-header") || m.hasAttribute("data-basic-page-columns") || m.hasAttribute("data-data-table") || m.hasAttribute("data-code-block") ? null : 12);
|
|
594
594
|
const d = Pe(e ?? !0, e === !0), i = l["aria-busy"], c = i === !0 || i === "true", f = E(c), o = f.current && !c;
|
|
595
595
|
return O(() => {
|
|
596
596
|
f.current = c;
|
|
@@ -611,7 +611,7 @@ function ie({ enter: e, className: t, children: n, ref: r, ...l }) {
|
|
|
611
611
|
y: P,
|
|
612
612
|
opacity: D
|
|
613
613
|
},
|
|
614
|
-
className: p("mt-7 flex min-w-0 flex-col gap-10", "[&:has(>*:first-child:not([data-basic-page-callout])>[data-basic-page-header]:first-child)]:mt-6 [&:has(>*:first-child:not([data-basic-page-callout])>h2:first-child)]:mt-6 [&:has(>[data-basic-page-header]:first-child)]:mt-6 [&:has(>h2:first-child)]:mt-6", "[[data-basic-page-pinned]:not([data-basic-page-width=full])_[data-basic-page-column]_&]:mt-3 [[data-basic-page-pinned][data-basic-page-width=full]_[data-basic-page-column]_&]:mt-0", "*:min-w-0 [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:flex [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:flex-col [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table])]:gap-3", t),
|
|
614
|
+
className: p("mt-7 flex min-w-0 flex-col gap-10", "[&:has(>*:first-child:not([data-basic-page-callout])>[data-basic-page-header]:first-child)]:mt-6 [&:has(>*:first-child:not([data-basic-page-callout])>h2:first-child)]:mt-6 [&:has(>[data-basic-page-header]:first-child)]:mt-6 [&:has(>h2:first-child)]:mt-6", "[[data-basic-page-pinned]:not([data-basic-page-width=full])_[data-basic-page-column]_&]:mt-3 [[data-basic-page-pinned][data-basic-page-width=full]_[data-basic-page-column]_&]:mt-0", "*:min-w-0 [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table]):not([data-code-block])]:flex [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table]):not([data-code-block])]:flex-col [&>*:not([data-basic-page-fields]):not([data-basic-page-card]):not([data-basic-page-callout]):not([data-basic-page-onboard]):not([data-basic-page-header]):not([data-basic-page-columns]):not([data-data-table]):not([data-code-block])]:gap-3", t),
|
|
615
615
|
...l,
|
|
616
616
|
children: /* @__PURE__ */ a(ra.Provider, {
|
|
617
617
|
value: o,
|
|
@@ -620,7 +620,7 @@ function ie({ enter: e, className: t, children: n, ref: r, ...l }) {
|
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
var Ve = "@container grid min-w-0 grid-cols-[minmax(0,1fr)_auto_auto] mb-3 gap-y-0 [&>:not([data-basic-page-search]):not([data-basic-page-header-action])]:col-start-1 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:row-span-2 [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action]))]:self-center [&>:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])):not(:nth-last-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-end [&>:not([data-basic-page-search]):not([data-basic-page-header-action]):not(:nth-child(1_of_:not([data-basic-page-search]):not([data-basic-page-header-action])))]:self-start [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0";
|
|
623
|
-
function
|
|
623
|
+
function ht({ enter: e, className: t, ...n }) {
|
|
624
624
|
const r = M();
|
|
625
625
|
return Pe(e === !0) && !r ? /* @__PURE__ */ a(A.div, {
|
|
626
626
|
initial: {
|
|
@@ -644,14 +644,14 @@ function ft({ enter: e, className: t, ...n }) {
|
|
|
644
644
|
"data-basic-page-header": ""
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function gt({ className: e, ...t }) {
|
|
648
648
|
return /* @__PURE__ */ a("div", {
|
|
649
649
|
"data-basic-page-header-action": "",
|
|
650
650
|
className: p("flex items-center gap-2", "[[data-basic-page-header]>&]:col-start-3 [[data-basic-page-header]>&]:row-span-2 [[data-basic-page-header]>&]:row-start-1 [[data-basic-page-header]>&]:mr-5 [[data-basic-page-header]>&]:ml-4 [[data-basic-page-header]>&]:self-start [[data-basic-page-header]>&]:justify-self-end", "[[data-basic-page-callout]_[data-basic-page-header]>&]:mr-0", e),
|
|
651
651
|
...t
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function bt({ id: e, className: t, children: n, ...r }) {
|
|
655
655
|
const l = ke(e, n);
|
|
656
656
|
return /* @__PURE__ */ a("h2", {
|
|
657
657
|
id: l,
|
|
@@ -666,7 +666,7 @@ function sa({ className: e, ...t }) {
|
|
|
666
666
|
...t
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function vt({ one: e, other: t, ...n }) {
|
|
670
670
|
const r = k(Ae), l = ue(r?.subscribe ?? pe, () => r?.get().api ?? null, () => null);
|
|
671
671
|
if (l == null) return null;
|
|
672
672
|
const s = l.query.trim() !== "" ? `${l.matched} of ${l.total}.` : `${l.total} ${l.total === 1 ? e : t}.`;
|
|
@@ -675,19 +675,19 @@ function bt({ one: e, other: t, ...n }) {
|
|
|
675
675
|
children: s
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function yt({ className: e, ...t }) {
|
|
679
679
|
return /* @__PURE__ */ a("p", {
|
|
680
680
|
className: p("text-pho-description px-5 text-xs font-normal", "mt-3 [[data-basic-page-callout]_&]:mt-0 [[data-basic-page-stack]>*>&]:mt-0", e),
|
|
681
681
|
...t
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function xt({ animateHeight: e, className: t, children: n, ...r }) {
|
|
685
685
|
const l = /* @__PURE__ */ a($, { children: ee.toArray(n) });
|
|
686
686
|
return e ? /* @__PURE__ */ a("div", {
|
|
687
687
|
className: p(Ee, "min-h-0 gap-0", t),
|
|
688
688
|
...r,
|
|
689
689
|
"data-basic-page-card": "",
|
|
690
|
-
children: /* @__PURE__ */ a(
|
|
690
|
+
children: /* @__PURE__ */ a(Ra, {
|
|
691
691
|
transition: P,
|
|
692
692
|
className: le,
|
|
693
693
|
children: l
|
|
@@ -699,21 +699,21 @@ function yt({ animateHeight: e, className: t, children: n, ...r }) {
|
|
|
699
699
|
children: l
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function wt({ className: e, ...t }) {
|
|
703
703
|
const { leaving: n, ...r } = Te();
|
|
704
704
|
return /* @__PURE__ */ a(A.div, {
|
|
705
705
|
...r,
|
|
706
|
-
className: p(
|
|
706
|
+
className: p(Da, n && "overflow-hidden", e),
|
|
707
707
|
...t
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Nt({ divided: e = !1, className: t, ...n }) {
|
|
711
711
|
return /* @__PURE__ */ a("div", {
|
|
712
|
-
className: p(e ?
|
|
712
|
+
className: p(e ? Fa : Ha, t),
|
|
713
713
|
...n
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function At({ className: e, icon: t, children: n, ...r }) {
|
|
717
717
|
if (t == null || t === !1 || t === !0) return /* @__PURE__ */ a("div", {
|
|
718
718
|
className: p(Me, e),
|
|
719
719
|
...r,
|
|
@@ -738,7 +738,7 @@ function Nt({ className: e, icon: t, children: n, ...r }) {
|
|
|
738
738
|
}), s]
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function _t({ id: e, className: t, children: n, ...r }) {
|
|
742
742
|
const l = ke(e, n);
|
|
743
743
|
return /* @__PURE__ */ a("h2", {
|
|
744
744
|
id: l,
|
|
@@ -747,14 +747,14 @@ function At({ id: e, className: t, children: n, ...r }) {
|
|
|
747
747
|
children: n
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Ct({ className: e, ...t }) {
|
|
751
751
|
return /* @__PURE__ */ a("p", {
|
|
752
752
|
className: p("text-display-xs text-pho-description font-normal", e),
|
|
753
753
|
...t
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
756
|
var la = G(null), oa = G(!1);
|
|
757
|
-
function
|
|
757
|
+
function Et({ className: e, children: t, ...n }) {
|
|
758
758
|
let r = !1;
|
|
759
759
|
const l = ee.toArray(t).map((s, u) => {
|
|
760
760
|
if (!Ke(s)) return s;
|
|
@@ -774,19 +774,19 @@ function Ct({ className: e, children: t, ...n }) {
|
|
|
774
774
|
children: l
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
|
-
var
|
|
777
|
+
var kt = "relative grid size-5 shrink-0 place-items-center rounded-full border text-xs font-medium tabular-nums transition-[background-color,border-color,color] duration-200 ease-out *:[grid-area:1/1]", St = {
|
|
778
778
|
done: "border-pho-ink text-pho-primary",
|
|
779
779
|
current: "bg-pho-brand-solid text-pho-on-brand border-transparent",
|
|
780
780
|
working: "border-transparent text-pho-primary",
|
|
781
781
|
pending: "border-pho-ink text-pho-primary border-dashed",
|
|
782
782
|
upcoming: "border-pho-primary text-pho-description"
|
|
783
|
-
},
|
|
783
|
+
}, Rt = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink opacity-30", Tt = "pointer-events-none absolute -inset-px rounded-full border border-pho-ink border-r-transparent border-b-transparent border-l-transparent animate-pho-spinner", Pt = {
|
|
784
784
|
done: "Done.",
|
|
785
785
|
working: "In progress.",
|
|
786
786
|
pending: "Waiting."
|
|
787
787
|
};
|
|
788
|
-
function
|
|
789
|
-
const f = k(la), o = f?.state ?? (l ? "done" : s ? "working" : u ? "pending" : "current"), m = M(), h = o === "current" || o === "working" || o === "pending", g = o === "upcoming", v =
|
|
788
|
+
function It({ icon: e, aside: t, title: n, description: r, done: l, working: s, pending: u, className: d, children: i, ...c }) {
|
|
789
|
+
const f = k(la), o = f?.state ?? (l ? "done" : s ? "working" : u ? "pending" : "current"), m = M(), h = o === "current" || o === "working" || o === "pending", g = o === "upcoming", v = Pt[o], N = i != null && i !== !1, b = e != null && e !== !1, _ = t != null && t !== !1;
|
|
790
790
|
return /* @__PURE__ */ a("li", {
|
|
791
791
|
"data-basic-page-step": o,
|
|
792
792
|
"aria-current": h ? "step" : void 0,
|
|
@@ -797,18 +797,18 @@ function Pt({ icon: e, aside: t, title: n, description: r, done: l, working: s,
|
|
|
797
797
|
children: [
|
|
798
798
|
/* @__PURE__ */ y("span", {
|
|
799
799
|
"aria-hidden": !0,
|
|
800
|
-
className: p(
|
|
800
|
+
className: p(kt, St[o], "col-start-1 row-start-1"),
|
|
801
801
|
children: [/* @__PURE__ */ a($, {
|
|
802
802
|
initial: !1,
|
|
803
803
|
children: o === "done" ? /* @__PURE__ */ a(A.span, {
|
|
804
804
|
...ne(m),
|
|
805
805
|
className: "flex",
|
|
806
|
-
children: /* @__PURE__ */ a(
|
|
806
|
+
children: /* @__PURE__ */ a(Ta, { className: "size-3" })
|
|
807
807
|
}, "check") : /* @__PURE__ */ a(A.span, {
|
|
808
808
|
...ne(m),
|
|
809
809
|
children: f?.number ?? 1
|
|
810
810
|
}, "number")
|
|
811
|
-
}), o === "working" ? /* @__PURE__ */ y(de, { children: [/* @__PURE__ */ a("span", { className:
|
|
811
|
+
}), o === "working" ? /* @__PURE__ */ y(de, { children: [/* @__PURE__ */ a("span", { className: Rt }), /* @__PURE__ */ a("span", { className: Tt })] }) : null]
|
|
812
812
|
}),
|
|
813
813
|
/* @__PURE__ */ y("div", {
|
|
814
814
|
"data-basic-page-step-title": "",
|
|
@@ -861,11 +861,11 @@ function Pt({ icon: e, aside: t, title: n, description: r, done: l, working: s,
|
|
|
861
861
|
})
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Ot({ label: e, description: t, htmlFor: n, stacked: r = !1, className: l, children: s, ...u }) {
|
|
865
865
|
const { leaving: d, ...i } = Te();
|
|
866
866
|
return /* @__PURE__ */ y(A.div, {
|
|
867
867
|
...i,
|
|
868
|
-
className: p(
|
|
868
|
+
className: p(Ma, r && "sm:flex-col sm:items-stretch sm:justify-start sm:gap-3", d && "overflow-hidden", l),
|
|
869
869
|
...u,
|
|
870
870
|
children: [/* @__PURE__ */ y("div", {
|
|
871
871
|
className: "min-w-0",
|
|
@@ -886,14 +886,14 @@ function It({ label: e, description: t, htmlFor: n, stacked: r = !1, className:
|
|
|
886
886
|
})]
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Bt({ className: e, ...t }) {
|
|
890
890
|
const n = k(oa);
|
|
891
891
|
return /* @__PURE__ */ a("p", {
|
|
892
892
|
className: p("text-pho-description max-w-full min-w-0 truncate", n ? "text-display-xs font-normal" : "text-base", e),
|
|
893
893
|
...t
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Lt({ error: e, show: t, className: n, children: r, ...l }) {
|
|
897
897
|
const s = M(), u = k(U), d = e ?? u?.error ?? void 0;
|
|
898
898
|
return /* @__PURE__ */ a($, {
|
|
899
899
|
initial: !1,
|
|
@@ -925,11 +925,11 @@ function Bt({ error: e, show: t, className: n, children: r, ...l }) {
|
|
|
925
925
|
}) : null
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function Ln() {
|
|
929
929
|
return k(U)?.requestSave ?? null;
|
|
930
930
|
}
|
|
931
|
-
var
|
|
932
|
-
function
|
|
931
|
+
var Mn = 800, ye = Sa.createToastManager(), U = G(null);
|
|
932
|
+
function Mt({ action: e, errors: t, autoSave: n = !1, className: r, children: l, onChange: s, onBlur: u, ...d }) {
|
|
933
933
|
const [i, c] = w(!1), [f, o] = w(!1), [m, h] = w(null), [g, v] = w(t ?? {}), [N, b] = w(null), _ = E(null), x = E(null), S = E(null), R = E(!1), I = E(!1), B = E(null), L = E(async () => {
|
|
934
934
|
});
|
|
935
935
|
O(() => () => {
|
|
@@ -997,7 +997,7 @@ function Lt({ action: e, errors: t, autoSave: n = !1, className: r, children: l,
|
|
|
997
997
|
]);
|
|
998
998
|
return /* @__PURE__ */ a(U.Provider, {
|
|
999
999
|
value: me,
|
|
1000
|
-
children: /* @__PURE__ */ a(
|
|
1000
|
+
children: /* @__PURE__ */ a(Pa, {
|
|
1001
1001
|
errors: g,
|
|
1002
1002
|
onFormSubmit: async (T) => {
|
|
1003
1003
|
if (e != null) {
|
|
@@ -1043,7 +1043,7 @@ function Lt({ action: e, errors: t, autoSave: n = !1, className: r, children: l,
|
|
|
1043
1043
|
})
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function Dt({ name: e, className: t, ...n }) {
|
|
1047
1047
|
const r = k(U), l = M(), s = r?.auto ?? null, u = s != null && (e == null || s.field === e), [d, i] = w(!1), c = u ? s.phase : null;
|
|
1048
1048
|
O(() => {
|
|
1049
1049
|
if (c !== "saved") return;
|
|
@@ -1078,11 +1078,11 @@ function Mt({ name: e, className: t, ...n }) {
|
|
|
1078
1078
|
})
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1082
|
-
function
|
|
1081
|
+
var Ht = "flex min-w-0 flex-col gap-5 p-5 [&>[data-basic-page-alert]]:-mx-5 [&>[data-basic-page-alert]]:-mt-2 [&>[data-basic-page-alert]]:-mb-5 [&>[data-basic-page-footer]]:pr-0 [&>[data-basic-page-reveal]]:flex [&>[data-basic-page-reveal]]:flex-col [&>[data-basic-page-reveal]]:gap-5";
|
|
1082
|
+
function Ft({ className: e, ...t }) {
|
|
1083
1083
|
const n = E(null);
|
|
1084
1084
|
return ia(n, "Fields", 20, () => null), /* @__PURE__ */ a("div", {
|
|
1085
|
-
className: p(Ee,
|
|
1085
|
+
className: p(Ee, Ht, e),
|
|
1086
1086
|
...t,
|
|
1087
1087
|
ref: (r) => {
|
|
1088
1088
|
n.current = r;
|
|
@@ -1092,13 +1092,13 @@ function Ht({ className: e, ...t }) {
|
|
|
1092
1092
|
"data-basic-page-fields": ""
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function zt({ className: e, ...t }) {
|
|
1096
1096
|
return /* @__PURE__ */ a("div", {
|
|
1097
1097
|
className: p("flex min-w-0 flex-col gap-5 *:min-w-0 sm:flex-row sm:gap-3 sm:*:flex-1", e),
|
|
1098
1098
|
...t
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function Gt({ children: e = "Save changes", ...t }) {
|
|
1102
1102
|
const n = k(U);
|
|
1103
1103
|
return /* @__PURE__ */ a(Z, {
|
|
1104
1104
|
type: "submit",
|
|
@@ -1109,7 +1109,7 @@ function zt({ children: e = "Save changes", ...t }) {
|
|
|
1109
1109
|
children: e
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Wt({ show: e, className: t, ...n }) {
|
|
1113
1113
|
const r = k(U), l = e === "dirty" ? r?.dirty ?? !1 : e, s = /* @__PURE__ */ a("div", {
|
|
1114
1114
|
"data-basic-page-footer": "",
|
|
1115
1115
|
className: p("flex items-center justify-end gap-3 pr-[calc(1.25rem+2.5px)]", t),
|
|
@@ -1122,14 +1122,14 @@ function Gt({ show: e, className: t, ...n }) {
|
|
|
1122
1122
|
children: s
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1125
|
+
var Vt = {
|
|
1126
1126
|
stack: "-2.5rem",
|
|
1127
1127
|
block: "-0.75rem",
|
|
1128
1128
|
fields: "-1.25rem",
|
|
1129
1129
|
none: "0px"
|
|
1130
1130
|
};
|
|
1131
1131
|
function Ie({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: l, ...s }) {
|
|
1132
|
-
const u = M(), d =
|
|
1132
|
+
const u = M(), d = Vt[r ? "none" : n], i = E(null), c = E(e !== !0);
|
|
1133
1133
|
O(() => {
|
|
1134
1134
|
c.current = !0;
|
|
1135
1135
|
}, []);
|
|
@@ -1187,15 +1187,15 @@ function Ie({ show: e, clip: t = !0, gap: n = "stack", dividers: r, className: l
|
|
|
1187
1187
|
}) : null
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
1190
|
-
var
|
|
1191
|
-
function
|
|
1192
|
-
return typeof window < "u" && typeof window.matchMedia == "function" && !window.matchMedia(
|
|
1190
|
+
var $t = "top-4 left-5 h-8 text-base [&>svg]:size-[1.125em] [&>svg]:shrink-0", qt = "(min-width: 40rem)";
|
|
1191
|
+
function jt() {
|
|
1192
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && !window.matchMedia(qt).matches;
|
|
1193
1193
|
}
|
|
1194
1194
|
var ca = G(null);
|
|
1195
1195
|
function ua({ className: e, children: t, ...n }) {
|
|
1196
1196
|
const r = ee.toArray(t).filter(Ke), l = r.map((_) => _.props.children ?? null), s = ea();
|
|
1197
|
-
|
|
1198
|
-
const [u] = w(
|
|
1197
|
+
Za(l);
|
|
1198
|
+
const [u] = w(jt), d = M(), i = r.length, c = je(), f = !u && i >= Kt, o = k(Se), m = i > 0 ? r[i - 1]?.props : null, h = m?.children ?? "Back", g = m?.href, v = m?.onClick;
|
|
1199
1199
|
z(() => {
|
|
1200
1200
|
if (!(o == null || g == null))
|
|
1201
1201
|
return o.setTail({
|
|
@@ -1217,7 +1217,7 @@ function ua({ className: e, children: t, ...n }) {
|
|
|
1217
1217
|
...n,
|
|
1218
1218
|
children: /* @__PURE__ */ y("ol", {
|
|
1219
1219
|
className: "m-0 flex list-none items-center p-0",
|
|
1220
|
-
children: [r.map((_, x) => f && x > 0 && x < i - 2 ? null : /* @__PURE__ */ y(
|
|
1220
|
+
children: [r.map((_, x) => f && x > 0 && x < i - 2 ? null : /* @__PURE__ */ y(Oa, { children: [f && x === i - 2 && /* @__PURE__ */ y("li", {
|
|
1221
1221
|
className: "m-0 flex items-center max-sm:hidden",
|
|
1222
1222
|
children: [/* @__PURE__ */ a("span", {
|
|
1223
1223
|
"aria-hidden": !0,
|
|
@@ -1228,7 +1228,7 @@ function ua({ className: e, children: t, ...n }) {
|
|
|
1228
1228
|
size: "sm",
|
|
1229
1229
|
"aria-label": "Hidden pages",
|
|
1230
1230
|
className: "px-2.5",
|
|
1231
|
-
children:
|
|
1231
|
+
children: Xt
|
|
1232
1232
|
}) }), /* @__PURE__ */ a(Q.Portal, { children: /* @__PURE__ */ a(Q.Positioner, {
|
|
1233
1233
|
align: "start",
|
|
1234
1234
|
sideOffset: 4,
|
|
@@ -1269,7 +1269,7 @@ function ua({ className: e, children: t, ...n }) {
|
|
|
1269
1269
|
})
|
|
1270
1270
|
});
|
|
1271
1271
|
}
|
|
1272
|
-
var we = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none", ce = "/",
|
|
1272
|
+
var we = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none", ce = "/", Kt = 4, Xt = "…";
|
|
1273
1273
|
function da({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
1274
1274
|
const s = k(ca), u = M(), d = n != null && !u, i = ta(d ? n : void 0);
|
|
1275
1275
|
if (s == null) throw new Error("BasicPage.Crumb must be rendered inside BasicPage.Breadcrumbs");
|
|
@@ -1328,10 +1328,10 @@ function da({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
|
1328
1328
|
opacity: 1
|
|
1329
1329
|
},
|
|
1330
1330
|
animate: {
|
|
1331
|
-
x:
|
|
1331
|
+
x: Ya,
|
|
1332
1332
|
opacity: 0
|
|
1333
1333
|
},
|
|
1334
|
-
transition:
|
|
1334
|
+
transition: Ua,
|
|
1335
1335
|
onAnimationComplete: () => B(null),
|
|
1336
1336
|
className: "pointer-events-none absolute inset-y-0 left-0 whitespace-nowrap",
|
|
1337
1337
|
children: I
|
|
@@ -1342,13 +1342,13 @@ function da({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
|
1342
1342
|
})
|
|
1343
1343
|
})] });
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function Qt({ className: e, ...t }) {
|
|
1346
1346
|
return /* @__PURE__ */ a(ua, {
|
|
1347
1347
|
className: e,
|
|
1348
1348
|
children: /* @__PURE__ */ a(da, { ...t })
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Yt({ label: e, description: t, leading: n, href: r, className: l, children: s, ...u }) {
|
|
1352
1352
|
const d = je(), i = V(() => A.create(d), [d]), { leaving: c, ...f } = Te();
|
|
1353
1353
|
return /* @__PURE__ */ y(i, {
|
|
1354
1354
|
href: r,
|
|
@@ -1375,15 +1375,15 @@ function Qt({ label: e, description: t, leading: n, href: r, className: l, child
|
|
|
1375
1375
|
children: [s != null ? /* @__PURE__ */ a("div", {
|
|
1376
1376
|
className: "min-w-0",
|
|
1377
1377
|
children: s
|
|
1378
|
-
}) : null, /* @__PURE__ */ a(
|
|
1378
|
+
}) : null, /* @__PURE__ */ a(Aa, {
|
|
1379
1379
|
"aria-hidden": !0,
|
|
1380
1380
|
className: "text-pho-secondary group-hover:text-pho-secondary-hover size-4 shrink-0 transition-colors"
|
|
1381
1381
|
})]
|
|
1382
1382
|
})]
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1386
|
-
const o = k(Ye), m = o != null ?
|
|
1385
|
+
function Ut({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, onClose: l, width: s = "default", presentation: u, defaultPresentation: d, onPresentationChange: i, expandable: c = !0, children: f }) {
|
|
1386
|
+
const o = k(Ye), m = o != null ? Ga(o.paneWidth, s) : 0, h = e ?? ee.toArray(f).length > 0, { presentation: g, setPresentation: v, canChoose: N } = Jt({
|
|
1387
1387
|
isOpen: h,
|
|
1388
1388
|
paneNarrow: o?.paneNarrow ?? !1,
|
|
1389
1389
|
presentation: u,
|
|
@@ -1413,13 +1413,13 @@ function Yt({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, on
|
|
|
1413
1413
|
className: "absolute top-2 right-2 z-30",
|
|
1414
1414
|
children: /* @__PURE__ */ a(K.Provider, { children: /* @__PURE__ */ a(ma, {
|
|
1415
1415
|
label: "Show as panel",
|
|
1416
|
-
icon: /* @__PURE__ */ a(
|
|
1416
|
+
icon: /* @__PURE__ */ a(xa, {}),
|
|
1417
1417
|
onClick: R
|
|
1418
1418
|
}) })
|
|
1419
1419
|
}) : null, f]
|
|
1420
1420
|
}) : null, o.slot);
|
|
1421
1421
|
}
|
|
1422
|
-
return t === "inline" ? Le(/* @__PURE__ */ a(
|
|
1422
|
+
return t === "inline" ? Le(/* @__PURE__ */ a(Zt, {
|
|
1423
1423
|
width: m,
|
|
1424
1424
|
paneHeight: o.paneHeight,
|
|
1425
1425
|
onClose: l,
|
|
@@ -1427,7 +1427,7 @@ function Yt({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, on
|
|
|
1427
1427
|
open: h,
|
|
1428
1428
|
placeholder: r,
|
|
1429
1429
|
children: f
|
|
1430
|
-
}), o.slot) : /* @__PURE__ */ a(
|
|
1430
|
+
}), o.slot) : /* @__PURE__ */ a(en, {
|
|
1431
1431
|
container: o.slot,
|
|
1432
1432
|
width: m,
|
|
1433
1433
|
paneHeight: o.paneHeight,
|
|
@@ -1438,7 +1438,7 @@ function Yt({ open: e, variant: t = "overlay", modal: n = !1, placeholder: r, on
|
|
|
1438
1438
|
children: f
|
|
1439
1439
|
});
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function Jt({ isOpen: e, paneNarrow: t, presentation: n, defaultPresentation: r, onPresentationChange: l }) {
|
|
1442
1442
|
const [s, u] = w(e), [d, i] = w(null);
|
|
1443
1443
|
z(() => {
|
|
1444
1444
|
e || (u(!1), i(null));
|
|
@@ -1469,7 +1469,7 @@ var $e = {
|
|
|
1469
1469
|
size: "sm",
|
|
1470
1470
|
svgOnly: !0,
|
|
1471
1471
|
"aria-label": "Close",
|
|
1472
|
-
children: /* @__PURE__ */ a(
|
|
1472
|
+
children: /* @__PURE__ */ a(ka, {})
|
|
1473
1473
|
};
|
|
1474
1474
|
function ma({ label: e, icon: t, onClick: n }) {
|
|
1475
1475
|
return /* @__PURE__ */ y(K.Root, { children: [/* @__PURE__ */ a(K.Trigger, { render: /* @__PURE__ */ a(Z, {
|
|
@@ -1486,7 +1486,7 @@ function fa({ back: e, onClose: t, onExpand: n, closeRef: r, panel: l, children:
|
|
|
1486
1486
|
className: "absolute top-2 right-2 z-30 flex items-center gap-0.5",
|
|
1487
1487
|
children: [n != null ? /* @__PURE__ */ a(K.Provider, { children: /* @__PURE__ */ a(ma, {
|
|
1488
1488
|
label: "Expand",
|
|
1489
|
-
icon: /* @__PURE__ */ a(
|
|
1489
|
+
icon: /* @__PURE__ */ a(wa, {}),
|
|
1490
1490
|
onClick: n
|
|
1491
1491
|
}) }) : null, /* @__PURE__ */ a("span", {
|
|
1492
1492
|
ref: r,
|
|
@@ -1520,7 +1520,7 @@ function fa({ back: e, onClose: t, onExpand: n, closeRef: r, panel: l, children:
|
|
|
1520
1520
|
}), /* @__PURE__ */ a(J.Scrollbar, { children: /* @__PURE__ */ a(J.Thumb, {}) })]
|
|
1521
1521
|
})] });
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function Zt({ width: e, paneHeight: t, onClose: n, onExpand: r, open: l, placeholder: s, children: u }) {
|
|
1524
1524
|
const d = M(), { back: i, panel: c, closeRef: f, leave: o } = pa(), m = d ? "blur(0px)" : `blur(${_e}px)`, h = t ?? "100dvh";
|
|
1525
1525
|
O(() => {
|
|
1526
1526
|
const v = (N) => {
|
|
@@ -1578,7 +1578,7 @@ function Jt({ width: e, paneHeight: t, onClose: n, onExpand: r, open: l, placeho
|
|
|
1578
1578
|
})
|
|
1579
1579
|
});
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function en({ container: e, width: t, paneHeight: n, onClose: r, onExpand: l, open: s, modal: u, children: d }) {
|
|
1582
1582
|
const { back: i, panel: c, closeRef: f, leave: o } = pa(), m = n ?? "100dvh";
|
|
1583
1583
|
return /* @__PURE__ */ a(re.Root, {
|
|
1584
1584
|
open: s,
|
|
@@ -1621,8 +1621,8 @@ function Zt({ container: e, width: t, paneHeight: n, onClose: r, onExpand: l, op
|
|
|
1621
1621
|
})
|
|
1622
1622
|
});
|
|
1623
1623
|
}
|
|
1624
|
-
var
|
|
1625
|
-
function
|
|
1624
|
+
var an = "14rem", tn = "transition-[width] duration-[330ms] ease-pho-spring motion-reduce:transition-none", qe = "transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none";
|
|
1625
|
+
function nn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r, placeholder: l, label: s, className: u, ...d }) {
|
|
1626
1626
|
const i = k(Ae), c = ue(i?.subscribe ?? pe, () => i?.get().api ?? null, () => null), f = n != null;
|
|
1627
1627
|
O(() => {
|
|
1628
1628
|
if (!(i == null || f))
|
|
@@ -1652,7 +1652,7 @@ function tn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
|
|
|
1652
1652
|
"data-variant": "ghost",
|
|
1653
1653
|
className: p("flex min-w-0 flex-1", o == null && "hidden", u),
|
|
1654
1654
|
...d,
|
|
1655
|
-
children: o != null && /* @__PURE__ */ a(
|
|
1655
|
+
children: o != null && /* @__PURE__ */ a(Ia, {
|
|
1656
1656
|
value: o.query,
|
|
1657
1657
|
onChange: o.setQuery,
|
|
1658
1658
|
placeholder: o.placeholder,
|
|
@@ -1669,8 +1669,8 @@ function tn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
|
|
|
1669
1669
|
className: p("grid min-w-0 content-center", "[[data-basic-page-header]>&]:col-start-2 [[data-basic-page-header]>&]:row-span-2 [[data-basic-page-header]>&]:row-start-1 [[data-basic-page-header]>&]:ml-4 [[data-basic-page-header]>&]:justify-items-end [[data-basic-page-header]>&]:self-start", o == null && "hidden", u),
|
|
1670
1670
|
...d,
|
|
1671
1671
|
children: o != null && /* @__PURE__ */ y("div", {
|
|
1672
|
-
className: p("grid w-9 max-w-full justify-items-end *:[grid-area:1/1]",
|
|
1673
|
-
style: v ? { width:
|
|
1672
|
+
className: p("grid w-9 max-w-full justify-items-end *:[grid-area:1/1]", tn, N && "@[36rem]:w-56"),
|
|
1673
|
+
style: v ? { width: an } : void 0,
|
|
1674
1674
|
children: [/* @__PURE__ */ a(Z, {
|
|
1675
1675
|
variant: "outlined",
|
|
1676
1676
|
size: "sm",
|
|
@@ -1707,7 +1707,7 @@ function tn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
|
|
|
1707
1707
|
})
|
|
1708
1708
|
});
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function rn({ header: e, main: t, side: n, foot: r, enter: l }) {
|
|
1711
1711
|
const s = n != null;
|
|
1712
1712
|
return /* @__PURE__ */ a("div", {
|
|
1713
1713
|
"data-basic-page-columns": "",
|
|
@@ -1740,61 +1740,62 @@ function nn({ header: e, main: t, side: n, foot: r, enter: l }) {
|
|
|
1740
1740
|
})
|
|
1741
1741
|
});
|
|
1742
1742
|
}
|
|
1743
|
-
var
|
|
1744
|
-
Root:
|
|
1745
|
-
Aside:
|
|
1746
|
-
Search:
|
|
1747
|
-
Table:
|
|
1748
|
-
|
|
1743
|
+
var Dn = {
|
|
1744
|
+
Root: $a,
|
|
1745
|
+
Aside: Ut,
|
|
1746
|
+
Search: nn,
|
|
1747
|
+
Table: Ea,
|
|
1748
|
+
Code: Na,
|
|
1749
|
+
CondenseScope: et,
|
|
1749
1750
|
Breadcrumbs: ua,
|
|
1750
1751
|
Crumb: da,
|
|
1751
|
-
Back:
|
|
1752
|
-
Title:
|
|
1752
|
+
Back: Qt,
|
|
1753
|
+
Title: st,
|
|
1753
1754
|
Stack: ie,
|
|
1754
|
-
Columns:
|
|
1755
|
-
Header:
|
|
1756
|
-
HeaderAction:
|
|
1757
|
-
SectionTitle:
|
|
1755
|
+
Columns: rn,
|
|
1756
|
+
Header: ht,
|
|
1757
|
+
HeaderAction: gt,
|
|
1758
|
+
SectionTitle: bt,
|
|
1758
1759
|
Description: sa,
|
|
1759
|
-
TableCount:
|
|
1760
|
-
SectionFooter:
|
|
1761
|
-
Card:
|
|
1762
|
-
Item:
|
|
1763
|
-
ItemPanel:
|
|
1764
|
-
Callout:
|
|
1765
|
-
CalloutTitle:
|
|
1766
|
-
CalloutDescription:
|
|
1767
|
-
Onboard:
|
|
1768
|
-
Step:
|
|
1769
|
-
Row:
|
|
1770
|
-
RowLink:
|
|
1771
|
-
Value:
|
|
1760
|
+
TableCount: vt,
|
|
1761
|
+
SectionFooter: yt,
|
|
1762
|
+
Card: xt,
|
|
1763
|
+
Item: wt,
|
|
1764
|
+
ItemPanel: Nt,
|
|
1765
|
+
Callout: At,
|
|
1766
|
+
CalloutTitle: _t,
|
|
1767
|
+
CalloutDescription: Ct,
|
|
1768
|
+
Onboard: Et,
|
|
1769
|
+
Step: It,
|
|
1770
|
+
Row: Ot,
|
|
1771
|
+
RowLink: Yt,
|
|
1772
|
+
Value: Bt,
|
|
1772
1773
|
Meta: Be.Root,
|
|
1773
1774
|
MetaItem: Be.Item,
|
|
1774
|
-
Alert:
|
|
1775
|
-
Footer:
|
|
1776
|
-
Form:
|
|
1777
|
-
Saved:
|
|
1778
|
-
Fields:
|
|
1779
|
-
Inline:
|
|
1780
|
-
Submit:
|
|
1775
|
+
Alert: Lt,
|
|
1776
|
+
Footer: Wt,
|
|
1777
|
+
Form: Mt,
|
|
1778
|
+
Saved: Dt,
|
|
1779
|
+
Fields: Ft,
|
|
1780
|
+
Inline: zt,
|
|
1781
|
+
Submit: Gt,
|
|
1781
1782
|
Reveal: Ie
|
|
1782
1783
|
};
|
|
1783
1784
|
export {
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1785
|
+
Ha as a,
|
|
1786
|
+
Dn as c,
|
|
1787
|
+
at as d,
|
|
1787
1788
|
ye as f,
|
|
1788
|
-
|
|
1789
|
+
Da as i,
|
|
1789
1790
|
oe as l,
|
|
1790
|
-
|
|
1791
|
+
Bn as m,
|
|
1791
1792
|
Me as n,
|
|
1792
|
-
|
|
1793
|
-
|
|
1793
|
+
Fa as o,
|
|
1794
|
+
Ln as p,
|
|
1794
1795
|
Xe as r,
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1796
|
+
Ma as s,
|
|
1797
|
+
Mn as t,
|
|
1798
|
+
tt as u
|
|
1798
1799
|
};
|
|
1799
1800
|
|
|
1800
|
-
//# sourceMappingURL=basic-page-
|
|
1801
|
+
//# sourceMappingURL=basic-page-DzT8yecB.js.map
|