@photon-ai/pho-ui 2.1.1 → 2.2.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.map +1 -1
- package/dist/chunks/IconArrowUpRight-DGgKzQwV.js.map +1 -1
- package/dist/chunks/IconCheck-D2WuculQ.js.map +1 -1
- package/dist/chunks/IconChevronLeft-CSWMKQ4C.js.map +1 -1
- package/dist/chunks/IconInfoCircle-L0zfhg7R.js.map +1 -1
- package/dist/chunks/IconX-pZ9vrtSr.js.map +1 -1
- package/dist/chunks/animated-height-C2eQstGy.js.map +1 -1
- package/dist/chunks/{avatar-CiAvJNNs.js → avatar-BkmGDIqf.js} +3 -3
- package/dist/chunks/{avatar-CiAvJNNs.js.map → avatar-BkmGDIqf.js.map} +1 -1
- package/dist/chunks/basic-page-CB36yrpL.js +643 -0
- package/dist/chunks/basic-page-CB36yrpL.js.map +1 -0
- package/dist/chunks/{button-X5wsWvRa.js → button-BmhyLgy5.js} +3 -3
- package/dist/chunks/{button-X5wsWvRa.js.map → button-BmhyLgy5.js.map} +1 -1
- package/dist/chunks/{card-9cGnv-VD.js → card-DSW3Uhag.js} +2 -2
- package/dist/chunks/{card-9cGnv-VD.js.map → card-DSW3Uhag.js.map} +1 -1
- package/dist/chunks/{close-button-xadxp0j8.js → close-button-GvqWbLl0.js} +2 -2
- package/dist/chunks/{close-button-xadxp0j8.js.map → close-button-GvqWbLl0.js.map} +1 -1
- package/dist/chunks/{cn-DTiB6ek_.js → cn-ChIgwEl3.js} +99 -96
- package/dist/chunks/{cn-DTiB6ek_.js.map → cn-ChIgwEl3.js.map} +1 -1
- package/dist/chunks/{combobox-rLdS6fl-.js → combobox-Dj5m_dDd.js} +2 -2
- package/dist/chunks/{combobox-rLdS6fl-.js.map → combobox-Dj5m_dDd.js.map} +1 -1
- package/dist/chunks/createReactComponent-BqCmnqfX.js.map +1 -1
- package/dist/chunks/{dialog-BC23YRUq.js → dialog-DtFO7oy0.js} +5 -5
- package/dist/chunks/{dialog-BC23YRUq.js.map → dialog-DtFO7oy0.js.map} +1 -1
- package/dist/chunks/{error-DR6G2LmG.js → error-Da7P5WZi.js} +11 -10
- package/dist/chunks/{error-DR6G2LmG.js.map → error-Da7P5WZi.js.map} +1 -1
- package/dist/chunks/{input-D3XQcC4J.js → input-QSAUO30c.js} +2 -2
- package/dist/chunks/{input-D3XQcC4J.js.map → input-QSAUO30c.js.map} +1 -1
- package/dist/chunks/{input-group-D6dlma8k.js → input-group-5AtpIhC_.js} +2 -2
- package/dist/chunks/{input-group-D6dlma8k.js.map → input-group-5AtpIhC_.js.map} +1 -1
- package/dist/chunks/{menu-BC-9IP29.js → menu-Cgj3lq9z.js} +3 -3
- package/dist/chunks/{menu-BC-9IP29.js.map → menu-Cgj3lq9z.js.map} +1 -1
- package/dist/chunks/{popover-EL1SE1kj.js → popover-BhBJO346.js} +2 -2
- package/dist/chunks/{popover-EL1SE1kj.js.map → popover-BhBJO346.js.map} +1 -1
- package/dist/chunks/{scroll-area-CNZVwe7v.js → scroll-area-Cw4JFqNG.js} +2 -2
- package/dist/chunks/{scroll-area-CNZVwe7v.js.map → scroll-area-Cw4JFqNG.js.map} +1 -1
- package/dist/chunks/{sidebar-DDJC1MeD.js → sidebar-BETMObNj.js} +25 -24
- package/dist/chunks/{sidebar-DDJC1MeD.js.map → sidebar-BETMObNj.js.map} +1 -1
- package/dist/chunks/{spinner-Cy8bkyJf.js → spinner-BzLUo4Xk.js} +2 -2
- package/dist/chunks/{spinner-Cy8bkyJf.js.map → spinner-BzLUo4Xk.js.map} +1 -1
- package/dist/chunks/{status-view-CcbctPqR.js → status-view-C8tabjDu.js} +2 -2
- package/dist/chunks/{status-view-CcbctPqR.js.map → status-view-C8tabjDu.js.map} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/card.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command.js +2 -2
- package/dist/components/command.js.map +1 -1
- package/dist/components/context-menu.js +2 -2
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/error.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/fieldset.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/kbd.js.map +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/notification.js +1 -1
- package/dist/components/notification.js.map +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/otp-field.js +1 -1
- package/dist/components/otp-field.js.map +1 -1
- package/dist/components/phone-input.js +2064 -2050
- package/dist/components/phone-input.js.map +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/preview-card.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/status-view.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/switch.js.map +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/theme-toggle.js +1 -1
- package/dist/components/theme-toggle.js.map +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/icons.js.map +1 -1
- package/dist/index.js +11 -11
- package/dist/primitives.js +1 -3
- package/dist/sections/basic-page.js +1 -1
- package/dist/sections/sidebar.js +1 -1
- package/dist/src/components/toast/toast.d.ts +1 -1
- package/dist/src/sections/basic-page/basic-page.d.ts +57 -21
- package/dist/src/sections/basic-page/index.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +21 -20
- package/dist/chunks/basic-page-x3aFcSVs.js +0 -482
- package/dist/chunks/basic-page-x3aFcSVs.js.map +0 -1
- package/dist/primitives.js.map +0 -1
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as r } from "./cn-ChIgwEl3.js";
|
|
3
|
+
import { n as ie } from "./link-provider-9TFNyDqO.js";
|
|
4
|
+
import { o as re } from "./button-BmhyLgy5.js";
|
|
5
|
+
import { t as se } from "./createReactComponent-BqCmnqfX.js";
|
|
6
|
+
import { t as oe } from "./error-Da7P5WZi.js";
|
|
7
|
+
import { t as R } from "./IconChevronLeft-CSWMKQ4C.js";
|
|
8
|
+
import { t as le } from "./animated-height-C2eQstGy.js";
|
|
9
|
+
import { Children as z, createContext as ce, isValidElement as me, useContext as ue, useEffect as pe, useLayoutEffect as F, useRef as j, useState as b } from "react";
|
|
10
|
+
import { Fragment as de, jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
11
|
+
import { AnimatePresence as L, motion as p, useReducedMotion as v } from "motion/react";
|
|
12
|
+
var fe = [["path", {
|
|
13
|
+
d: "M9 6l6 6l-6 6",
|
|
14
|
+
key: "svg-0"
|
|
15
|
+
}]], he = se("outline", "chevron-right", "ChevronRight", fe), K = "rounded-base border border-pho-secondary bg-pho-primary", C = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", ye = `${K} ${C}`, H = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5", xe = "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", ve = "flex flex-col gap-3 px-5 py-4", ge = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", Ne = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", f = {
|
|
16
|
+
type: "spring",
|
|
17
|
+
stiffness: 400,
|
|
18
|
+
damping: 40
|
|
19
|
+
}, h = {
|
|
20
|
+
duration: 0.25,
|
|
21
|
+
ease: "easeOut"
|
|
22
|
+
}, _ = 12;
|
|
23
|
+
function be({ className: e, ...t }) {
|
|
24
|
+
return /* @__PURE__ */ n("div", {
|
|
25
|
+
className: r("relative mx-auto flex min-h-full w-full max-w-[44.5rem] min-w-0 flex-col px-5 pt-12 pb-12 *:min-w-0 has-[[data-basic-page-back]]:pt-16", e),
|
|
26
|
+
...t
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function we(e) {
|
|
30
|
+
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
31
|
+
}
|
|
32
|
+
function Ae(e) {
|
|
33
|
+
if (!(typeof e != "string" && typeof e != "number"))
|
|
34
|
+
return we(String(e)) || void 0;
|
|
35
|
+
}
|
|
36
|
+
function T(e, t) {
|
|
37
|
+
if (e !== "")
|
|
38
|
+
return e ?? Ae(t);
|
|
39
|
+
}
|
|
40
|
+
var _e = (e) => `basic-page-morph-${e}`, Ce = { layout: f }, V = 10, D = {
|
|
41
|
+
delay: 0.2,
|
|
42
|
+
duration: 0.12,
|
|
43
|
+
ease: "easeOut"
|
|
44
|
+
}, Ee = {
|
|
45
|
+
duration: 0.18,
|
|
46
|
+
ease: "easeOut"
|
|
47
|
+
}, Re = -8, Ie = {
|
|
48
|
+
duration: 0.16,
|
|
49
|
+
ease: "easeOut"
|
|
50
|
+
}, Le = {
|
|
51
|
+
delay: 0.14,
|
|
52
|
+
duration: 0.16,
|
|
53
|
+
ease: "easeOut"
|
|
54
|
+
}, $ = {
|
|
55
|
+
duration: 0.12,
|
|
56
|
+
ease: "easeOut"
|
|
57
|
+
}, w = [];
|
|
58
|
+
function Te(e) {
|
|
59
|
+
const t = j({ labels: e });
|
|
60
|
+
t.current.labels = e, F(() => {
|
|
61
|
+
const a = t.current;
|
|
62
|
+
return w.push(a), () => {
|
|
63
|
+
w.splice(w.indexOf(a), 1);
|
|
64
|
+
};
|
|
65
|
+
}, []);
|
|
66
|
+
}
|
|
67
|
+
function U() {
|
|
68
|
+
const [e] = b(() => {
|
|
69
|
+
const t = w[w.length - 1];
|
|
70
|
+
return t ? { labels: [...t.labels] } : null;
|
|
71
|
+
});
|
|
72
|
+
return e;
|
|
73
|
+
}
|
|
74
|
+
var E = /* @__PURE__ */ new Map();
|
|
75
|
+
function W(e) {
|
|
76
|
+
const [t] = b(() => e != null && E.get(e) === !0), a = j(null);
|
|
77
|
+
return pe(() => {
|
|
78
|
+
if (e == null || typeof IntersectionObserver > "u") return;
|
|
79
|
+
const i = a.current;
|
|
80
|
+
if (!i) return;
|
|
81
|
+
const s = new IntersectionObserver(([o]) => {
|
|
82
|
+
o && E.set(e, o.isIntersecting);
|
|
83
|
+
});
|
|
84
|
+
return s.observe(i), () => {
|
|
85
|
+
s.disconnect(), E.delete(e);
|
|
86
|
+
};
|
|
87
|
+
}, [e]), {
|
|
88
|
+
fly: t,
|
|
89
|
+
ref: a
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
var Oe = {
|
|
93
|
+
fade: {
|
|
94
|
+
initial: { opacity: 0 },
|
|
95
|
+
animate: { opacity: 1 },
|
|
96
|
+
transition: { opacity: h }
|
|
97
|
+
},
|
|
98
|
+
rise: {
|
|
99
|
+
initial: {
|
|
100
|
+
opacity: 0,
|
|
101
|
+
y: _
|
|
102
|
+
},
|
|
103
|
+
animate: {
|
|
104
|
+
opacity: 1,
|
|
105
|
+
y: 0
|
|
106
|
+
},
|
|
107
|
+
transition: {
|
|
108
|
+
y: f,
|
|
109
|
+
opacity: h
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
slide: {
|
|
113
|
+
initial: { x: "-100%" },
|
|
114
|
+
animate: { x: 0 },
|
|
115
|
+
transition: { x: Le }
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
function X({ morphId: e, fromClassName: t, fly: a, morphRef: i, arrival: s, className: o, children: m }) {
|
|
119
|
+
const [u, l] = b(!1), y = !a && s != null ? Oe[s] : null;
|
|
120
|
+
return /* @__PURE__ */ d(p.span, {
|
|
121
|
+
ref: i,
|
|
122
|
+
layoutId: _e(e),
|
|
123
|
+
initial: y?.initial,
|
|
124
|
+
animate: y?.animate,
|
|
125
|
+
transition: a ? Ce : {
|
|
126
|
+
layout: { duration: 0 },
|
|
127
|
+
...y?.transition
|
|
128
|
+
},
|
|
129
|
+
onLayoutAnimationStart: () => {
|
|
130
|
+
a && l(!0);
|
|
131
|
+
},
|
|
132
|
+
onLayoutAnimationComplete: () => l(!1),
|
|
133
|
+
className: r("relative inline-block", o),
|
|
134
|
+
children: [m, u && /* @__PURE__ */ n(p.span, {
|
|
135
|
+
"aria-hidden": !0,
|
|
136
|
+
initial: { opacity: 1 },
|
|
137
|
+
animate: { opacity: 0 },
|
|
138
|
+
transition: Ee,
|
|
139
|
+
onAnimationComplete: () => l(!1),
|
|
140
|
+
className: r("absolute inset-0", t),
|
|
141
|
+
children: m
|
|
142
|
+
})]
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
var G = "max-w-full min-w-0 truncate align-top";
|
|
146
|
+
function Pe({ id: e, morphId: t, enter: a, className: i, children: s, ...o }) {
|
|
147
|
+
const m = T(e, s), u = v(), l = W(t), y = U(), g = !u && (t != null || a === !0), [c, x] = b(l.fly && y != null);
|
|
148
|
+
return F(() => {
|
|
149
|
+
w.length > 0 && x(!1);
|
|
150
|
+
}, []), /* @__PURE__ */ d("h1", {
|
|
151
|
+
id: m,
|
|
152
|
+
className: r("text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-medium", g ? "whitespace-nowrap" : "truncate", i),
|
|
153
|
+
...o,
|
|
154
|
+
children: [t != null && !u ? /* @__PURE__ */ n(X, {
|
|
155
|
+
morphId: t,
|
|
156
|
+
fromClassName: "text-pho-secondary",
|
|
157
|
+
fly: l.fly,
|
|
158
|
+
morphRef: l.ref,
|
|
159
|
+
arrival: a ? "rise" : void 0,
|
|
160
|
+
className: G,
|
|
161
|
+
children: s
|
|
162
|
+
}) : a && !u ? /* @__PURE__ */ n(p.span, {
|
|
163
|
+
initial: {
|
|
164
|
+
opacity: 0,
|
|
165
|
+
y: _
|
|
166
|
+
},
|
|
167
|
+
animate: {
|
|
168
|
+
opacity: 1,
|
|
169
|
+
y: 0
|
|
170
|
+
},
|
|
171
|
+
transition: {
|
|
172
|
+
y: f,
|
|
173
|
+
opacity: h
|
|
174
|
+
},
|
|
175
|
+
className: r("inline-block", G),
|
|
176
|
+
children: s
|
|
177
|
+
}) : s, c && /* @__PURE__ */ n(p.span, {
|
|
178
|
+
"aria-hidden": !0,
|
|
179
|
+
initial: { opacity: 1 },
|
|
180
|
+
animate: { opacity: 0 },
|
|
181
|
+
transition: $,
|
|
182
|
+
onAnimationComplete: () => x(!1),
|
|
183
|
+
className: r("text-pho-secondary pointer-events-none absolute inline-flex items-center", Qe),
|
|
184
|
+
children: /* @__PURE__ */ n(R, {})
|
|
185
|
+
})]
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
function Se({ className: e, ...t }) {
|
|
189
|
+
const a = v();
|
|
190
|
+
return /* @__PURE__ */ n(p.div, {
|
|
191
|
+
initial: a ? !1 : {
|
|
192
|
+
opacity: 0,
|
|
193
|
+
y: _
|
|
194
|
+
},
|
|
195
|
+
animate: {
|
|
196
|
+
opacity: 1,
|
|
197
|
+
y: 0
|
|
198
|
+
},
|
|
199
|
+
transition: {
|
|
200
|
+
y: f,
|
|
201
|
+
opacity: h
|
|
202
|
+
},
|
|
203
|
+
className: r("mt-6 flex min-w-0 flex-col gap-10", "*:flex *:min-w-0 *:flex-col *:gap-3", e),
|
|
204
|
+
...t
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function Be({ enter: e, className: t, ...a }) {
|
|
208
|
+
const i = v();
|
|
209
|
+
return e && !i ? /* @__PURE__ */ n(p.div, {
|
|
210
|
+
initial: {
|
|
211
|
+
opacity: 0,
|
|
212
|
+
y: _
|
|
213
|
+
},
|
|
214
|
+
animate: {
|
|
215
|
+
opacity: 1,
|
|
216
|
+
y: 0
|
|
217
|
+
},
|
|
218
|
+
transition: {
|
|
219
|
+
y: f,
|
|
220
|
+
opacity: h
|
|
221
|
+
},
|
|
222
|
+
className: r("flex min-w-0 flex-col", t),
|
|
223
|
+
...a
|
|
224
|
+
}) : /* @__PURE__ */ n("div", {
|
|
225
|
+
className: r("flex min-w-0 flex-col", t),
|
|
226
|
+
...a
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
function Me({ id: e, className: t, children: a, ...i }) {
|
|
230
|
+
const s = T(e, a);
|
|
231
|
+
return /* @__PURE__ */ n("h2", {
|
|
232
|
+
id: s,
|
|
233
|
+
className: r("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate px-5 font-medium", t),
|
|
234
|
+
...i,
|
|
235
|
+
children: a
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
function ke({ className: e, ...t }) {
|
|
239
|
+
return /* @__PURE__ */ n("p", {
|
|
240
|
+
className: r("text-display-xs text-pho-description px-5 font-normal", e),
|
|
241
|
+
...t
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
function He({ className: e, ...t }) {
|
|
245
|
+
return /* @__PURE__ */ n("p", {
|
|
246
|
+
className: r("text-pho-description px-5 text-xs font-normal", e),
|
|
247
|
+
...t
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
function Ve({ animateHeight: e, className: t, children: a, ...i }) {
|
|
251
|
+
return e ? /* @__PURE__ */ n("div", {
|
|
252
|
+
className: r(K, "min-h-0 overflow-hidden", t),
|
|
253
|
+
...i,
|
|
254
|
+
children: /* @__PURE__ */ n(le, {
|
|
255
|
+
transition: f,
|
|
256
|
+
className: C,
|
|
257
|
+
children: a
|
|
258
|
+
})
|
|
259
|
+
}) : /* @__PURE__ */ n("div", {
|
|
260
|
+
className: r(ye, t),
|
|
261
|
+
...i,
|
|
262
|
+
children: a
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
function De({ className: e, ...t }) {
|
|
266
|
+
return /* @__PURE__ */ n("div", {
|
|
267
|
+
className: r(ve, e),
|
|
268
|
+
...t
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function Ge({ divided: e = !1, className: t, ...a }) {
|
|
272
|
+
return /* @__PURE__ */ n("div", {
|
|
273
|
+
className: r(e ? Ne : ge, t),
|
|
274
|
+
...a
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
function ze({ className: e, icon: t, children: a, ...i }) {
|
|
278
|
+
if (t == null || t === !1 || t === !0) return /* @__PURE__ */ n("div", {
|
|
279
|
+
className: r(H, e),
|
|
280
|
+
...i,
|
|
281
|
+
children: a
|
|
282
|
+
});
|
|
283
|
+
const [s, ...o] = z.toArray(a);
|
|
284
|
+
return /* @__PURE__ */ d("div", {
|
|
285
|
+
className: r(H, e),
|
|
286
|
+
...i,
|
|
287
|
+
children: [/* @__PURE__ */ d("div", {
|
|
288
|
+
className: "relative",
|
|
289
|
+
children: [/* @__PURE__ */ n("div", {
|
|
290
|
+
className: "min-w-0 pr-16",
|
|
291
|
+
children: s
|
|
292
|
+
}), /* @__PURE__ */ n("div", {
|
|
293
|
+
"aria-hidden": !0,
|
|
294
|
+
className: "text-pho-description pointer-events-none absolute top-1/2 right-0 size-14 -translate-y-1/2 opacity-50 [&>svg]:size-full",
|
|
295
|
+
children: t
|
|
296
|
+
})]
|
|
297
|
+
}), o]
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function Fe({ id: e, className: t, children: a, ...i }) {
|
|
301
|
+
const s = T(e, a);
|
|
302
|
+
return /* @__PURE__ */ n("h2", {
|
|
303
|
+
id: s,
|
|
304
|
+
className: r("text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", t),
|
|
305
|
+
...i,
|
|
306
|
+
children: a
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
function je({ className: e, ...t }) {
|
|
310
|
+
return /* @__PURE__ */ n("p", {
|
|
311
|
+
className: r("text-display-xs text-pho-description font-normal", e),
|
|
312
|
+
...t
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function Ke({ label: e, description: t, htmlFor: a, stacked: i = !1, className: s, children: o, ...m }) {
|
|
316
|
+
return /* @__PURE__ */ d("div", {
|
|
317
|
+
className: r(xe, i && "sm:flex-col sm:items-stretch sm:justify-start sm:gap-3", s),
|
|
318
|
+
...m,
|
|
319
|
+
children: [/* @__PURE__ */ d("div", {
|
|
320
|
+
className: "min-w-0",
|
|
321
|
+
children: [a ? /* @__PURE__ */ n("label", {
|
|
322
|
+
htmlFor: a,
|
|
323
|
+
className: "text-pho-primary block text-base font-normal",
|
|
324
|
+
children: e
|
|
325
|
+
}) : /* @__PURE__ */ n("p", {
|
|
326
|
+
className: "text-pho-primary text-base font-normal",
|
|
327
|
+
children: e
|
|
328
|
+
}), t ? /* @__PURE__ */ n("p", {
|
|
329
|
+
className: "text-pho-description text-xs",
|
|
330
|
+
children: t
|
|
331
|
+
}) : null]
|
|
332
|
+
}), /* @__PURE__ */ n("div", {
|
|
333
|
+
className: r("flex w-full min-w-0 items-center gap-2 sm:w-auto", i && "sm:w-full"),
|
|
334
|
+
children: o
|
|
335
|
+
})]
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
function $e({ className: e, ...t }) {
|
|
339
|
+
return /* @__PURE__ */ n("p", {
|
|
340
|
+
className: r("text-pho-description max-w-full min-w-0 truncate text-base", e),
|
|
341
|
+
...t
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
function Ue({ error: e, show: t, className: a, children: i, ...s }) {
|
|
345
|
+
const o = v();
|
|
346
|
+
return /* @__PURE__ */ n(L, {
|
|
347
|
+
initial: !1,
|
|
348
|
+
children: (t ?? !0) && (e != null || i != null) ? /* @__PURE__ */ n(p.div, {
|
|
349
|
+
"data-basic-page-alert": "",
|
|
350
|
+
className: "overflow-hidden",
|
|
351
|
+
initial: {
|
|
352
|
+
height: 0,
|
|
353
|
+
opacity: 0
|
|
354
|
+
},
|
|
355
|
+
animate: {
|
|
356
|
+
height: "auto",
|
|
357
|
+
opacity: 1
|
|
358
|
+
},
|
|
359
|
+
exit: {
|
|
360
|
+
height: 0,
|
|
361
|
+
opacity: 0
|
|
362
|
+
},
|
|
363
|
+
transition: o ? { duration: 0 } : {
|
|
364
|
+
height: f,
|
|
365
|
+
opacity: h
|
|
366
|
+
},
|
|
367
|
+
children: /* @__PURE__ */ n(oe, {
|
|
368
|
+
error: e,
|
|
369
|
+
className: r("px-5 pb-3", a),
|
|
370
|
+
...s,
|
|
371
|
+
children: i
|
|
372
|
+
})
|
|
373
|
+
}) : null
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
function We({ show: e, className: t, ...a }) {
|
|
377
|
+
const i = v(), s = /* @__PURE__ */ n("div", {
|
|
378
|
+
className: r("flex items-center justify-between gap-6 px-5 py-4", t),
|
|
379
|
+
...a
|
|
380
|
+
});
|
|
381
|
+
return e === void 0 ? s : /* @__PURE__ */ n(L, {
|
|
382
|
+
initial: !1,
|
|
383
|
+
children: e ? /* @__PURE__ */ n(p.div, {
|
|
384
|
+
className: "overflow-hidden",
|
|
385
|
+
initial: {
|
|
386
|
+
height: 0,
|
|
387
|
+
opacity: 0
|
|
388
|
+
},
|
|
389
|
+
animate: {
|
|
390
|
+
height: "auto",
|
|
391
|
+
opacity: 1
|
|
392
|
+
},
|
|
393
|
+
exit: {
|
|
394
|
+
height: 0,
|
|
395
|
+
opacity: 0
|
|
396
|
+
},
|
|
397
|
+
transition: i ? { duration: 0 } : {
|
|
398
|
+
height: f,
|
|
399
|
+
opacity: h
|
|
400
|
+
},
|
|
401
|
+
children: s
|
|
402
|
+
}) : null
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
var Xe = {
|
|
406
|
+
stack: "-2.5rem",
|
|
407
|
+
block: "-0.75rem",
|
|
408
|
+
none: "0px"
|
|
409
|
+
};
|
|
410
|
+
function Ye({ show: e, gap: t = "stack", dividers: a, className: i, ...s }) {
|
|
411
|
+
const o = v(), m = Xe[a ? "none" : t];
|
|
412
|
+
return e === void 0 ? /* @__PURE__ */ n(p.div, {
|
|
413
|
+
initial: o ? !1 : {
|
|
414
|
+
opacity: 0,
|
|
415
|
+
y: _
|
|
416
|
+
},
|
|
417
|
+
animate: {
|
|
418
|
+
opacity: 1,
|
|
419
|
+
y: 0
|
|
420
|
+
},
|
|
421
|
+
transition: {
|
|
422
|
+
y: f,
|
|
423
|
+
opacity: h
|
|
424
|
+
},
|
|
425
|
+
className: r(a && C, i),
|
|
426
|
+
...s
|
|
427
|
+
}) : /* @__PURE__ */ n(L, {
|
|
428
|
+
initial: !1,
|
|
429
|
+
children: e ? /* @__PURE__ */ n(p.div, {
|
|
430
|
+
initial: {
|
|
431
|
+
height: 0,
|
|
432
|
+
opacity: 0,
|
|
433
|
+
marginTop: m
|
|
434
|
+
},
|
|
435
|
+
animate: {
|
|
436
|
+
height: "auto",
|
|
437
|
+
opacity: 1,
|
|
438
|
+
marginTop: 0
|
|
439
|
+
},
|
|
440
|
+
exit: {
|
|
441
|
+
height: 0,
|
|
442
|
+
opacity: 0,
|
|
443
|
+
marginTop: m
|
|
444
|
+
},
|
|
445
|
+
transition: o ? { duration: 0 } : {
|
|
446
|
+
height: f,
|
|
447
|
+
marginTop: f,
|
|
448
|
+
opacity: h
|
|
449
|
+
},
|
|
450
|
+
className: r("overflow-hidden", a && C, i),
|
|
451
|
+
...s
|
|
452
|
+
}) : null
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
var Qe = "top-4 left-[18.25px] h-8 text-base [&>svg]:size-[1.125em] [&>svg]:shrink-0", qe = "(min-width: 40rem)";
|
|
456
|
+
function Je() {
|
|
457
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && !window.matchMedia(qe).matches;
|
|
458
|
+
}
|
|
459
|
+
var Y = ce(null);
|
|
460
|
+
function Q({ className: e, children: t, ...a }) {
|
|
461
|
+
const i = z.toArray(t).filter(me), s = i.map((c) => c.props.children ?? null), o = U();
|
|
462
|
+
Te(s);
|
|
463
|
+
const [m] = b(Je), u = v(), l = i.length, [y, g] = b(!u && !m && o != null && o.labels.length > l);
|
|
464
|
+
return /* @__PURE__ */ n("nav", {
|
|
465
|
+
"aria-label": "Breadcrumb",
|
|
466
|
+
"data-basic-page-back": "",
|
|
467
|
+
className: r("absolute top-4 left-[10.25px] flex min-w-max items-center", e),
|
|
468
|
+
...a,
|
|
469
|
+
children: /* @__PURE__ */ d("ol", {
|
|
470
|
+
className: "m-0 flex list-none items-center p-0",
|
|
471
|
+
children: [i.map((c, x) => /* @__PURE__ */ n("li", {
|
|
472
|
+
className: r("m-0 flex items-center", x < l - 1 && "max-sm:hidden"),
|
|
473
|
+
children: /* @__PURE__ */ n(Y.Provider, {
|
|
474
|
+
value: {
|
|
475
|
+
index: x,
|
|
476
|
+
count: l,
|
|
477
|
+
departing: o,
|
|
478
|
+
narrow: m
|
|
479
|
+
},
|
|
480
|
+
children: c
|
|
481
|
+
})
|
|
482
|
+
}, c.key ?? x)), y && /* @__PURE__ */ n("li", {
|
|
483
|
+
"aria-hidden": !0,
|
|
484
|
+
className: "m-0 flex items-center max-sm:hidden",
|
|
485
|
+
children: /* @__PURE__ */ n(p.span, {
|
|
486
|
+
initial: { opacity: 1 },
|
|
487
|
+
animate: { opacity: 0 },
|
|
488
|
+
transition: $,
|
|
489
|
+
onAnimationComplete: () => g(!1),
|
|
490
|
+
className: q,
|
|
491
|
+
children: I
|
|
492
|
+
})
|
|
493
|
+
})]
|
|
494
|
+
})
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
var q = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none", I = "/";
|
|
498
|
+
function J({ href: e, className: t, morphId: a, children: i = "Back", ...s }) {
|
|
499
|
+
const o = ue(Y), m = v(), u = a != null && !m, l = W(u ? a : void 0);
|
|
500
|
+
if (o == null) throw new Error("BasicPage.Crumb must be rendered inside BasicPage.Breadcrumbs");
|
|
501
|
+
const { index: y, count: g, departing: c, narrow: x } = o, A = y === 0, N = y === g - 1, O = c != null && c.labels.length < g, P = c != null && c.labels.length > g, Z = N && (c == null || O || x), S = A || N, B = A && N ? "" : A ? "max-sm:hidden" : "sm:hidden", ee = c != null, M = N ? x ? P ? "slide" : "fade" : Z ? "fade" : void 0 : void 0, [k, te] = b(u && x && l.fly && c != null && !P ? c.labels[c.labels.length - 1] : null), ne = u && S && !ee, ae = u && !A && N && (c == null || O);
|
|
502
|
+
return /* @__PURE__ */ d(de, { children: [!A && /* @__PURE__ */ n("span", {
|
|
503
|
+
"aria-hidden": !0,
|
|
504
|
+
className: r(q, "max-sm:hidden"),
|
|
505
|
+
children: ae ? /* @__PURE__ */ n(p.span, {
|
|
506
|
+
initial: l.fly ? {
|
|
507
|
+
opacity: 0,
|
|
508
|
+
x: V
|
|
509
|
+
} : { opacity: 0 },
|
|
510
|
+
animate: l.fly ? {
|
|
511
|
+
opacity: 1,
|
|
512
|
+
x: 0
|
|
513
|
+
} : { opacity: 1 },
|
|
514
|
+
transition: l.fly ? D : h,
|
|
515
|
+
className: "inline-flex",
|
|
516
|
+
children: I
|
|
517
|
+
}) : I
|
|
518
|
+
}), /* @__PURE__ */ n(re, {
|
|
519
|
+
variant: "ghost",
|
|
520
|
+
size: "sm",
|
|
521
|
+
href: e,
|
|
522
|
+
prefix: S ? ne ? /* @__PURE__ */ n(p.span, {
|
|
523
|
+
initial: l.fly ? {
|
|
524
|
+
opacity: 0,
|
|
525
|
+
x: V
|
|
526
|
+
} : { opacity: 0 },
|
|
527
|
+
animate: l.fly ? {
|
|
528
|
+
opacity: 1,
|
|
529
|
+
x: 0
|
|
530
|
+
} : { opacity: 1 },
|
|
531
|
+
transition: l.fly ? D : h,
|
|
532
|
+
className: r("inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0", B),
|
|
533
|
+
children: /* @__PURE__ */ n(R, {})
|
|
534
|
+
}) : /* @__PURE__ */ n("span", {
|
|
535
|
+
className: r("inline-flex [&>svg]:size-[1.125em] [&>svg]:shrink-0", B),
|
|
536
|
+
children: /* @__PURE__ */ n(R, {})
|
|
537
|
+
}) : /* @__PURE__ */ n("span", { className: "hidden" }),
|
|
538
|
+
className: r("min-w-max", t),
|
|
539
|
+
...s,
|
|
540
|
+
children: u && a != null ? /* @__PURE__ */ d("span", {
|
|
541
|
+
className: r("relative block", !l.fly && M === "slide" && "overflow-hidden", !N && "max-w-40 truncate"),
|
|
542
|
+
children: [/* @__PURE__ */ n(X, {
|
|
543
|
+
morphId: a,
|
|
544
|
+
fromClassName: "text-pho-primary",
|
|
545
|
+
fly: l.fly,
|
|
546
|
+
morphRef: l.ref,
|
|
547
|
+
arrival: M,
|
|
548
|
+
children: i
|
|
549
|
+
}), k != null && /* @__PURE__ */ n(p.span, {
|
|
550
|
+
"aria-hidden": !0,
|
|
551
|
+
initial: {
|
|
552
|
+
x: 0,
|
|
553
|
+
opacity: 1
|
|
554
|
+
},
|
|
555
|
+
animate: {
|
|
556
|
+
x: Re,
|
|
557
|
+
opacity: 0
|
|
558
|
+
},
|
|
559
|
+
transition: Ie,
|
|
560
|
+
onAnimationComplete: () => te(null),
|
|
561
|
+
className: "pointer-events-none absolute inset-y-0 left-0 whitespace-nowrap",
|
|
562
|
+
children: k
|
|
563
|
+
})]
|
|
564
|
+
}) : /* @__PURE__ */ n("span", {
|
|
565
|
+
className: r("block", !N && "max-w-40 truncate"),
|
|
566
|
+
children: i
|
|
567
|
+
})
|
|
568
|
+
})] });
|
|
569
|
+
}
|
|
570
|
+
function Ze({ className: e, ...t }) {
|
|
571
|
+
return /* @__PURE__ */ n(Q, {
|
|
572
|
+
className: e,
|
|
573
|
+
children: /* @__PURE__ */ n(J, { ...t })
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
function et({ label: e, description: t, leading: a, href: i, className: s, children: o, ...m }) {
|
|
577
|
+
const u = ie();
|
|
578
|
+
return /* @__PURE__ */ d(u, {
|
|
579
|
+
href: i,
|
|
580
|
+
...m,
|
|
581
|
+
className: r("flex min-h-[4.25rem] min-w-0 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)]", s),
|
|
582
|
+
children: [/* @__PURE__ */ d("div", {
|
|
583
|
+
className: r("flex min-w-0 flex-1 items-center", a != null && "gap-3"),
|
|
584
|
+
children: [a, /* @__PURE__ */ d("div", {
|
|
585
|
+
className: "min-w-0",
|
|
586
|
+
children: [/* @__PURE__ */ n("div", {
|
|
587
|
+
className: "flex min-w-0 items-center gap-1",
|
|
588
|
+
children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ n("p", {
|
|
589
|
+
className: "text-pho-primary truncate text-base font-medium",
|
|
590
|
+
children: e
|
|
591
|
+
}) : e
|
|
592
|
+
}), t ? /* @__PURE__ */ n("div", {
|
|
593
|
+
className: "text-pho-description truncate text-xs",
|
|
594
|
+
children: t
|
|
595
|
+
}) : null]
|
|
596
|
+
})]
|
|
597
|
+
}), /* @__PURE__ */ d("div", {
|
|
598
|
+
className: "flex min-w-0 items-center justify-end gap-2",
|
|
599
|
+
children: [o != null ? /* @__PURE__ */ n("div", {
|
|
600
|
+
className: "min-w-0",
|
|
601
|
+
children: o
|
|
602
|
+
}) : null, /* @__PURE__ */ n(he, {
|
|
603
|
+
"aria-hidden": !0,
|
|
604
|
+
className: "text-pho-secondary group-hover:text-pho-secondary-hover size-4 shrink-0 transition-colors"
|
|
605
|
+
})]
|
|
606
|
+
})]
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
var ut = {
|
|
610
|
+
Root: be,
|
|
611
|
+
Breadcrumbs: Q,
|
|
612
|
+
Crumb: J,
|
|
613
|
+
Back: Ze,
|
|
614
|
+
Title: Pe,
|
|
615
|
+
Stack: Se,
|
|
616
|
+
Header: Be,
|
|
617
|
+
SectionTitle: Me,
|
|
618
|
+
Description: ke,
|
|
619
|
+
SectionFooter: He,
|
|
620
|
+
Card: Ve,
|
|
621
|
+
Item: De,
|
|
622
|
+
ItemPanel: Ge,
|
|
623
|
+
Callout: ze,
|
|
624
|
+
CalloutTitle: Fe,
|
|
625
|
+
CalloutDescription: je,
|
|
626
|
+
Row: Ke,
|
|
627
|
+
RowLink: et,
|
|
628
|
+
Value: $e,
|
|
629
|
+
Alert: Ue,
|
|
630
|
+
Footer: We,
|
|
631
|
+
Reveal: Ye
|
|
632
|
+
};
|
|
633
|
+
export {
|
|
634
|
+
Ne as a,
|
|
635
|
+
ge as i,
|
|
636
|
+
ye as n,
|
|
637
|
+
xe as o,
|
|
638
|
+
ve as r,
|
|
639
|
+
ut as s,
|
|
640
|
+
H as t
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
//# sourceMappingURL=basic-page-CB36yrpL.js.map
|