@photon-ai/pho-ui 4.25.0 → 4.27.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/README.md +2 -2
- package/dist/chunks/{avatar-PgBOfszL.js → avatar-BJvgi8ON.js} +24 -30
- package/dist/chunks/avatar-BJvgi8ON.js.map +1 -0
- package/dist/chunks/{basic-page-DYBjCadG.js → basic-page-DSPzDKrZ.js} +80 -83
- package/dist/chunks/basic-page-DSPzDKrZ.js.map +1 -0
- package/dist/chunks/{box-search-CMl5bQ7Y.js → box-search-DD2EPtDy.js} +18 -19
- package/dist/chunks/box-search-DD2EPtDy.js.map +1 -0
- package/dist/chunks/{calendar-DDWITGo4.js → calendar-s-QRks1Z.js} +66 -69
- package/dist/chunks/calendar-s-QRks1Z.js.map +1 -0
- package/dist/chunks/{chat-D98GCjbe.js → chat-D6SGRahp.js} +226 -276
- package/dist/chunks/chat-D6SGRahp.js.map +1 -0
- package/dist/chunks/{checkbox-D8smFViR.js → checkbox-B3fVczYP.js} +2 -2
- package/dist/chunks/checkbox-B3fVczYP.js.map +1 -0
- package/dist/chunks/{close-button-Ck4rY1Fp.js → close-button-Bwv_OoCZ.js} +2 -2
- package/dist/chunks/close-button-Bwv_OoCZ.js.map +1 -0
- package/dist/chunks/{code-block-CthLWfxd.js → code-block-CiZWZBO2.js} +169 -238
- package/dist/chunks/code-block-CiZWZBO2.js.map +1 -0
- package/dist/chunks/copy-button-DNNZu6r4.js +69 -0
- package/dist/chunks/copy-button-DNNZu6r4.js.map +1 -0
- package/dist/chunks/{data-table-C1tLUdw0.js → data-table-CshUlqIu.js} +11 -12
- package/dist/chunks/data-table-CshUlqIu.js.map +1 -0
- package/dist/chunks/{date-picker-D-sWo3i8.js → date-picker-BaAkim2u.js} +126 -151
- package/dist/chunks/date-picker-BaAkim2u.js.map +1 -0
- package/dist/chunks/{description-list-DcTvBHzI.js → description-list-VTNz1MmJ.js} +2 -2
- package/dist/chunks/{description-list-DcTvBHzI.js.map → description-list-VTNz1MmJ.js.map} +1 -1
- package/dist/chunks/{dialog-H72fZGtf.js → dialog-C116Qr0w.js} +2 -2
- package/dist/chunks/{dialog-H72fZGtf.js.map → dialog-C116Qr0w.js.map} +1 -1
- package/dist/chunks/{filter-bar-D_sBAT5Y.js → filter-bar-DI5JO1Cd.js} +63 -72
- package/dist/chunks/filter-bar-DI5JO1Cd.js.map +1 -0
- package/dist/chunks/{ghost-search-CMUI2UH0.js → ghost-search-DhADxaWi.js} +11 -12
- package/dist/chunks/ghost-search-DhADxaWi.js.map +1 -0
- package/dist/chunks/icons-eq5FZ3Yc.js +1254 -0
- package/dist/chunks/icons-eq5FZ3Yc.js.map +1 -0
- package/dist/chunks/{input-DWnb33UF.js → input-hrrPhzXp.js} +37 -56
- package/dist/chunks/input-hrrPhzXp.js.map +1 -0
- package/dist/chunks/{select-Dux2SBVc.js → select-DlyDd7AB.js} +10 -10
- package/dist/chunks/select-DlyDd7AB.js.map +1 -0
- package/dist/chunks/{sidebar-ttBkgGRh.js → sidebar-DTRcoxrB.js} +95 -111
- package/dist/chunks/sidebar-DTRcoxrB.js.map +1 -0
- package/dist/chunks/{toast-Cbnn8lcA.js → toast-Btwu5Kjk.js} +7 -7
- package/dist/chunks/toast-Btwu5Kjk.js.map +1 -0
- package/dist/chunks/{trace-ClMpG82z.js → trace-CKYAff2U.js} +498 -607
- package/dist/chunks/trace-CKYAff2U.js.map +1 -0
- package/dist/components/avatar.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/chat.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +1 -1
- package/dist/components/command.js +36 -37
- package/dist/components/command.js.map +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.js +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/description-list.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/error.js +252 -11
- package/dist/components/error.js.map +1 -0
- package/dist/components/filter-bar.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/notification.js +27 -34
- package/dist/components/notification.js.map +1 -1
- package/dist/components/phone-input.js +3 -4
- package/dist/components/phone-input.js.map +1 -1
- package/dist/components/scope.js +52 -53
- package/dist/components/scope.js.map +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/theme-toggle.js +69 -95
- package/dist/components/theme-toggle.js.map +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/trace.js +1 -1
- package/dist/icons.js +235 -78
- package/dist/icons.js.map +1 -1
- package/dist/index.js +158 -158
- package/dist/sections/basic-page.js +2 -2
- package/dist/sections/sidebar.js +1 -1
- package/dist/src/components/avatar/avatar.d.ts +1 -1
- package/dist/src/components/notification/notification.d.ts +2 -2
- package/dist/src/components/trace/decorations.d.ts +3 -3
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/photon/icons.d.ts +315 -0
- package/dist/src/icons/photon/index.d.ts +2 -0
- package/dist/src/icons/photon/photon-icon.d.ts +51 -0
- package/package.json +5 -3
- package/src/styles/fonts.css +2 -1
- package/src/styles/theme.css +3 -1
- package/dist/chunks/IconArrowUpRight-OK8Fp0KQ.js +0 -14
- package/dist/chunks/IconArrowUpRight-OK8Fp0KQ.js.map +0 -1
- package/dist/chunks/IconCheck-DwSMn1wK.js +0 -11
- package/dist/chunks/IconCheck-DwSMn1wK.js.map +0 -1
- package/dist/chunks/IconChevronDown-Cd68NnX2.js +0 -11
- package/dist/chunks/IconChevronDown-Cd68NnX2.js.map +0 -1
- package/dist/chunks/IconChevronLeft-CptqhdxO.js +0 -11
- package/dist/chunks/IconChevronLeft-CptqhdxO.js.map +0 -1
- package/dist/chunks/IconChevronRight-BNkXCTk6.js +0 -11
- package/dist/chunks/IconChevronRight-BNkXCTk6.js.map +0 -1
- package/dist/chunks/IconChevronUp-Bxllwz8J.js +0 -11
- package/dist/chunks/IconChevronUp-Bxllwz8J.js.map +0 -1
- package/dist/chunks/IconInfoCircle-CTAynhe8.js +0 -21
- package/dist/chunks/IconInfoCircle-CTAynhe8.js.map +0 -1
- package/dist/chunks/IconSearch-DkcWWZ1H.js +0 -14
- package/dist/chunks/IconSearch-DkcWWZ1H.js.map +0 -1
- package/dist/chunks/IconX-DnPlFC68.js +0 -14
- package/dist/chunks/IconX-DnPlFC68.js.map +0 -1
- package/dist/chunks/avatar-PgBOfszL.js.map +0 -1
- package/dist/chunks/basic-page-DYBjCadG.js.map +0 -1
- package/dist/chunks/box-search-CMl5bQ7Y.js.map +0 -1
- package/dist/chunks/calendar-DDWITGo4.js.map +0 -1
- package/dist/chunks/chat-D98GCjbe.js.map +0 -1
- package/dist/chunks/checkbox-D8smFViR.js.map +0 -1
- package/dist/chunks/close-button-Ck4rY1Fp.js.map +0 -1
- package/dist/chunks/code-block-CthLWfxd.js.map +0 -1
- package/dist/chunks/copy-button-BLvirhXk.js +0 -76
- package/dist/chunks/copy-button-BLvirhXk.js.map +0 -1
- package/dist/chunks/data-table-C1tLUdw0.js.map +0 -1
- package/dist/chunks/date-picker-D-sWo3i8.js.map +0 -1
- package/dist/chunks/error-BT71wcUd.js +0 -270
- package/dist/chunks/error-BT71wcUd.js.map +0 -1
- package/dist/chunks/filter-bar-D_sBAT5Y.js.map +0 -1
- package/dist/chunks/ghost-search-CMUI2UH0.js.map +0 -1
- package/dist/chunks/input-DWnb33UF.js.map +0 -1
- package/dist/chunks/select-Dux2SBVc.js.map +0 -1
- package/dist/chunks/sidebar-ttBkgGRh.js.map +0 -1
- package/dist/chunks/toast-Cbnn8lcA.js.map +0 -1
- package/dist/chunks/trace-ClMpG82z.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,10 +6,10 @@ Photon's React component library — the Photon Design System. Built on
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
pnpm add @photon-ai/pho-ui
|
|
9
|
+
pnpm add @photon-ai/pho-ui @tabler/icons-react motion
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
Peer dependencies: `react`, `react-dom`, `@
|
|
12
|
+
Peer dependencies: `react`, `react-dom`, `@tabler/icons-react`, `motion` (14).
|
|
13
13
|
|
|
14
14
|
## Styles (Tailwind v4)
|
|
15
15
|
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as n } from "./cn-CPbhpG1q.js";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as g } from "./resolve-variant-CcD8iG5l.js";
|
|
4
4
|
import { n as z } from "./spinner-BSutFL4l.js";
|
|
5
|
-
import {
|
|
6
|
-
import { forwardRef as N, useEffect as
|
|
5
|
+
import { rn as E } from "./icons-eq5FZ3Yc.js";
|
|
6
|
+
import { forwardRef as N, useEffect as k, useRef as j, useState as A } from "react";
|
|
7
7
|
import { jsx as s } from "react/jsx-runtime";
|
|
8
8
|
import { Avatar as c } from "@base-ui/react/avatar";
|
|
9
|
-
var
|
|
10
|
-
d: "M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",
|
|
11
|
-
key: "svg-0"
|
|
12
|
-
}], ["path", {
|
|
13
|
-
d: "M13.5 6.5l4 4",
|
|
14
|
-
key: "svg-1"
|
|
15
|
-
}]], S = k("outline", "pencil", "Pencil", A), _ = {
|
|
9
|
+
var R = {
|
|
16
10
|
xs: {
|
|
17
11
|
classes: "size-6 text-[0.625rem]",
|
|
18
12
|
description: "Extra small — inline chips and rails"
|
|
@@ -30,13 +24,13 @@ var A = [["path", {
|
|
|
30
24
|
description: "Large — profile headers"
|
|
31
25
|
}
|
|
32
26
|
};
|
|
33
|
-
function
|
|
27
|
+
function S({ className: e, size: t = "md", ...a }) {
|
|
34
28
|
return /* @__PURE__ */ s(c.Root, {
|
|
35
|
-
className: n("group bg-pho-secondary text-pho-secondary relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full align-middle font-medium select-none",
|
|
29
|
+
className: n("group bg-pho-secondary text-pho-secondary relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full align-middle font-medium select-none", g(R, t), e),
|
|
36
30
|
...a
|
|
37
31
|
});
|
|
38
32
|
}
|
|
39
|
-
function
|
|
33
|
+
function w({ className: e, ...t }) {
|
|
40
34
|
return /* @__PURE__ */ s(c.Image, {
|
|
41
35
|
className: n("size-full object-cover", e),
|
|
42
36
|
...t
|
|
@@ -48,52 +42,52 @@ function I({ className: e, ...t }) {
|
|
|
48
42
|
...t
|
|
49
43
|
});
|
|
50
44
|
}
|
|
51
|
-
function
|
|
45
|
+
function C(e) {
|
|
52
46
|
return e != null && typeof e.then == "function";
|
|
53
47
|
}
|
|
54
|
-
var V = N(function({ label: t, className: a, children: u, onClick: d, loading:
|
|
55
|
-
const [
|
|
56
|
-
|
|
48
|
+
var V = N(function({ label: t, className: a, children: u, onClick: d, loading: m = !1, disabled: o = !1, ...p }, y) {
|
|
49
|
+
const [v, l] = A(!1), r = j(!0);
|
|
50
|
+
k(() => (r.current = !0, () => {
|
|
57
51
|
r.current = !1;
|
|
58
52
|
}), []);
|
|
59
|
-
const i =
|
|
53
|
+
const i = v || m;
|
|
60
54
|
function h(b) {
|
|
61
55
|
if (i || o) return;
|
|
62
56
|
const f = d?.(b);
|
|
63
|
-
|
|
57
|
+
C(f) && (l(!0), f.then(() => {
|
|
64
58
|
r.current && l(!1);
|
|
65
|
-
}, (
|
|
66
|
-
r.current && l(!1), typeof process < "u" && process.env.NODE_ENV !== "production" && console.error("Avatar.Edit: async onClick rejected —",
|
|
59
|
+
}, (x) => {
|
|
60
|
+
r.current && l(!1), typeof process < "u" && process.env.NODE_ENV !== "production" && console.error("Avatar.Edit: async onClick rejected —", x);
|
|
67
61
|
}));
|
|
68
62
|
}
|
|
69
63
|
return /* @__PURE__ */ s("button", {
|
|
70
|
-
ref:
|
|
64
|
+
ref: y,
|
|
71
65
|
type: "button",
|
|
72
66
|
"aria-label": t || "Edit",
|
|
73
67
|
"aria-busy": i || void 0,
|
|
74
68
|
"aria-disabled": o || i || void 0,
|
|
75
69
|
disabled: o,
|
|
76
70
|
"data-loading": i || void 0,
|
|
77
|
-
...
|
|
71
|
+
...p,
|
|
78
72
|
onClick: h,
|
|
79
73
|
className: n("bg-pho-overlay outline-pho-brand absolute inset-0 z-10 flex cursor-pointer items-center justify-center text-white opacity-0 transition-opacity duration-100 ease-linear group-hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-2 data-loading:cursor-wait data-loading:opacity-100 data-[popup-open]:opacity-100", a),
|
|
80
74
|
children: i ? /* @__PURE__ */ s(z, { className: "size-[45%]" }) : u != null ? /* @__PURE__ */ s("span", {
|
|
81
75
|
className: "flex size-[45%] shrink-0 items-center justify-center [&_svg]:size-full",
|
|
82
76
|
children: u
|
|
83
|
-
}) : /* @__PURE__ */ s(
|
|
77
|
+
}) : /* @__PURE__ */ s(E, {
|
|
84
78
|
"aria-hidden": "true",
|
|
85
79
|
className: "size-[45%] shrink-0"
|
|
86
80
|
})
|
|
87
81
|
});
|
|
88
|
-
}),
|
|
89
|
-
Root:
|
|
90
|
-
Image:
|
|
82
|
+
}), O = {
|
|
83
|
+
Root: S,
|
|
84
|
+
Image: w,
|
|
91
85
|
Fallback: I,
|
|
92
86
|
Edit: V
|
|
93
87
|
};
|
|
94
88
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
O as n,
|
|
90
|
+
R as t
|
|
97
91
|
};
|
|
98
92
|
|
|
99
|
-
//# sourceMappingURL=avatar-
|
|
93
|
+
//# sourceMappingURL=avatar-BJvgi8ON.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-BJvgi8ON.js","names":["BaseAvatar","Avatar","cn","resolveVariant","Spinner","PencilIcon","forwardRef","useEffect","useRef","useState","jsx","Avatar","AVATAR_SIZES","Root","className","size","props","Image","Fallback","isThenable","value","Edit","label","children","onClick","loading","disabled","ref","busy","setBusy","mountedRef","inert","handleClick","event","result","error","Avatar$1"],"sources":["../../src/components/avatar/avatar.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useRef,\n useState,\n type ButtonHTMLAttributes,\n type ComponentProps,\n type ElementType,\n type MouseEvent as ReactMouseEvent,\n type ReactNode,\n} from \"react\";\nimport { Avatar as BaseAvatar } from \"@base-ui/react/avatar\";\nimport { PencilIcon } from \"../../icons/photon\";\nimport { cn } from \"../../utils/cn\";\nimport { resolveVariant, type VariantMap } from \"../../utils/resolve-variant\";\nimport { Spinner } from \"../spinner/spinner\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\n/** Size axis — four sizes, no `xl` (Geist-reductive). `md` is default. */\nexport const AVATAR_SIZES = {\n xs: {\n classes: \"size-6 text-[0.625rem]\",\n description: \"Extra small — inline chips and rails\",\n },\n sm: { classes: \"size-8 text-xs\", description: \"Small — dense lists\" },\n md: { classes: \"size-10 text-base\", description: \"Medium — the default\" },\n lg: { classes: \"size-12 text-md\", description: \"Large — profile headers\" },\n} satisfies VariantMap;\n\nexport type AvatarSize = keyof typeof AVATAR_SIZES;\n\ninterface RootProps extends StyledProps<typeof BaseAvatar.Root> {\n /** Size variant. @default \"md\" */\n size?: AvatarSize;\n}\n\nfunction Root({ className, size = \"md\", ...props }: RootProps) {\n return (\n <BaseAvatar.Root\n className={cn(\n // True circle at rest — `squircle` is for interactive chrome (hover /\n // rings), not resting media. `group` drives Avatar.Edit hover reveal.\n \"group bg-pho-secondary text-pho-secondary relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full align-middle font-medium select-none\",\n resolveVariant(AVATAR_SIZES, size),\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Image({ className, ...props }: StyledProps<typeof BaseAvatar.Image>) {\n return (\n <BaseAvatar.Image\n className={cn(\"size-full object-cover\", className)}\n {...props}\n />\n );\n}\n\nfunction Fallback({\n className,\n ...props\n}: StyledProps<typeof BaseAvatar.Fallback>) {\n return (\n <BaseAvatar.Fallback\n className={cn(\"flex size-full items-center justify-center\", className)}\n {...props}\n />\n );\n}\n\nfunction isThenable(value: unknown): value is Promise<unknown> {\n return (\n value != null && typeof (value as { then?: unknown }).then === \"function\"\n );\n}\n\nexport interface EditProps extends Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n \"color\" | \"onClick\"\n> {\n /** Accessible label. @default \"Edit\" */\n label?: string;\n /**\n * Replace the default pencil icon. Pass `MoreHorizontalIcon` when this button is a\n * `Menu.Trigger` (change + remove). Custom icons are sized automatically.\n */\n children?: ReactNode;\n /**\n * Declarative loading state (same visual as an in-flight promise).\n * @default false\n */\n loading?: boolean;\n /**\n * Action handler. Return a promise to keep the overlay visible with a\n * spinner until it settles. On rejection the control stays interactive —\n * surface errors inside the handler.\n */\n onClick?: (\n event: ReactMouseEvent<HTMLButtonElement>,\n ) => void | Promise<unknown>;\n}\n\n/**\n * Full-face edit control — overlay + icon that reveals on hover /\n * focus-visible / open menu. Default icon is pencil for a direct action;\n * pass children (e.g. `MoreHorizontalIcon`) when composing a Menu. Wire behavior via\n * `onClick` (sync or async) or `Menu.Trigger` — no file input is built in.\n */\nconst Edit = forwardRef<HTMLButtonElement, EditProps>(function Edit(\n {\n label,\n className,\n children,\n onClick,\n loading = false,\n disabled = false,\n ...props\n },\n ref,\n) {\n const [busy, setBusy] = useState(false);\n const mountedRef = useRef(true);\n\n useEffect(() => {\n mountedRef.current = true;\n return () => {\n mountedRef.current = false;\n };\n }, []);\n\n const inert = busy || loading;\n\n function handleClick(event: ReactMouseEvent<HTMLButtonElement>) {\n if (inert || disabled) return;\n const result = onClick?.(event);\n if (!isThenable(result)) return;\n setBusy(true);\n result.then(\n () => {\n if (mountedRef.current) setBusy(false);\n },\n (error: unknown) => {\n if (mountedRef.current) setBusy(false);\n if (\n typeof process !== \"undefined\" &&\n process.env?.NODE_ENV !== \"production\"\n ) {\n console.error(\"Avatar.Edit: async onClick rejected —\", error);\n }\n },\n );\n }\n\n return (\n <button\n ref={ref}\n type=\"button\"\n aria-label={label || \"Edit\"}\n aria-busy={inert || undefined}\n aria-disabled={disabled || inert || undefined}\n disabled={disabled}\n data-loading={inert || undefined}\n {...props}\n onClick={handleClick}\n className={cn(\n // Stay visible while a Menu opened from this trigger is open\n // (`data-popup-open` from Base UI), or while an async action runs.\n \"bg-pho-overlay outline-pho-brand absolute inset-0 z-10 flex cursor-pointer items-center justify-center text-white opacity-0 transition-opacity duration-100 ease-linear group-hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-2 data-loading:cursor-wait data-loading:opacity-100 data-[popup-open]:opacity-100\",\n className,\n )}\n >\n {inert ? (\n <Spinner className=\"size-[45%]\" />\n ) : children != null ? (\n <span className=\"flex size-[45%] shrink-0 items-center justify-center [&_svg]:size-full\">\n {children}\n </span>\n ) : (\n <PencilIcon aria-hidden=\"true\" className=\"size-[45%] shrink-0\" />\n )}\n </button>\n );\n});\n\n/**\n * Avatar built on Base UI `Avatar`. Compose `Avatar.Image` with an\n * `Avatar.Fallback` (initials or icon) that shows while the image loads or if\n * it fails. Set `size` on `Avatar.Root`. Add `Avatar.Edit` when the avatar\n * itself should open a change-photo action.\n */\nexport const Avatar = { Root, Image, Fallback, Edit };\n"],"mappings":"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"}
|
|
@@ -3,34 +3,31 @@ import { t as d } from "./cn-CPbhpG1q.js";
|
|
|
3
3
|
import { n as aa } from "./link-provider-DXzDQ08N.js";
|
|
4
4
|
import { FADE_ENTRANCE as Ha, FADE_SWAP as za, SPRING_ENTRANCE as Ga, TRAVEL_LINEAR as $a, fadeThroughBlur as Q, revealIn as Wa } from "../motion.js";
|
|
5
5
|
import { a as re, o as Re } from "./button-KM0lAQ4x.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as Ua } from "./IconSearch-DkcWWZ1H.js";
|
|
12
|
-
import { a as Ya, n as Ja, r as Se, t as Za } from "./data-table-C1tLUdw0.js";
|
|
13
|
-
import { t as ta } from "./IconX-DnPlFC68.js";
|
|
14
|
-
import { t as et } from "./toast-Cbnn8lcA.js";
|
|
15
|
-
import { n as at, t as na } from "./animated-height-zr7BmFY1.js";
|
|
6
|
+
import { $ as Va, B as ja, L as ta, N as ce, P as qa, _n as Ka } from "./icons-eq5FZ3Yc.js";
|
|
7
|
+
import { a as Xa, n as Qa, r as Se, t as Ua } from "./data-table-CshUlqIu.js";
|
|
8
|
+
import { t as Ya } from "./code-block-CiZWZBO2.js";
|
|
9
|
+
import { t as Ja } from "./toast-Btwu5Kjk.js";
|
|
10
|
+
import { n as Za, t as na } from "./animated-height-zr7BmFY1.js";
|
|
16
11
|
import { n as Te, t as te } from "./scroll-area-DjdSnx2p.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
12
|
+
import { Error as et } from "../components/error.js";
|
|
13
|
+
import { i as ra } from "./checkbox-B3fVczYP.js";
|
|
14
|
+
import { t as at } from "./form-CXT6ayt0.js";
|
|
19
15
|
import { i as Y } from "./menu-CZSn8JAX.js";
|
|
20
|
-
import { t as
|
|
16
|
+
import { t as tt } from "./ghost-search-DhADxaWi.js";
|
|
17
|
+
import { n as nt } from "./copy-button-DNNZu6r4.js";
|
|
21
18
|
import { t as X } from "./tooltip-4J1PUJmB.js";
|
|
22
|
-
import { t as Ge } from "./description-list-
|
|
23
|
-
import { t as rt } from "./box-search-
|
|
24
|
-
import { Children as U, Fragment as it, createContext as
|
|
19
|
+
import { t as Ge } from "./description-list-VTNz1MmJ.js";
|
|
20
|
+
import { t as rt } from "./box-search-DD2EPtDy.js";
|
|
21
|
+
import { Children as U, Fragment as it, createContext as L, isValidElement as de, useCallback as Pe, useContext as k, useEffect as B, useId as Ie, useLayoutEffect as H, useMemo as V, useRef as C, useState as _, useSyncExternalStore as ge } from "react";
|
|
25
22
|
import { Fragment as Z, jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
26
23
|
import { AnimatePresence as z, motion as N, useIsPresent as ia, useReducedMotion as I } from "motion/react";
|
|
27
24
|
import { Dialog as le } from "@base-ui/react/dialog";
|
|
28
25
|
import { createPortal as $e } from "react-dom";
|
|
29
|
-
var ne = "rounded-base border border-pho-secondary bg-pho-primary [--choice-card-inset:0.75rem]", ue = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", sa = `${ne} ${ue} gap-0`, We = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5 [--choice-card-inset:0.75rem]", st = "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", lt = "flex flex-col gap-3 px-5 py-4", ot = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", ct = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", P = Ga, F = Ha, j = 12, la =
|
|
26
|
+
var ne = "rounded-base border border-pho-secondary bg-pho-primary [--choice-card-inset:0.75rem]", ue = "divide-y divide-pho-secondary [&>:has(+[data-basic-page-alert])]:border-b-0", sa = `${ne} ${ue} gap-0`, We = "flex min-w-0 flex-col gap-3 rounded-base border border-pho-secondary bg-pho-page p-5 [--choice-card-inset:0.75rem]", st = "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", lt = "flex flex-col gap-3 px-5 py-4", ot = "-mx-5 -mb-4 flex items-center rounded-b-[calc(0.75rem-1px)] bg-pho-secondary py-1 pr-3 pl-5", ct = "-mx-2 -mt-1.5 flex items-center rounded-sm bg-pho-secondary px-2 py-0.5", P = Ga, F = Ha, j = 12, la = L(null), Le = L(!1), dt = 768;
|
|
30
27
|
function ut(e, t = "default") {
|
|
31
28
|
return Math.round(t === "wide" ? Math.min(Math.max(e * (2 / 3), 448), 768) : Math.min(Math.max(e * 0.4, 320), 448));
|
|
32
29
|
}
|
|
33
|
-
var oa =
|
|
30
|
+
var oa = L(null), ca = L(null);
|
|
34
31
|
function pt(e) {
|
|
35
32
|
const [t, n] = _(null), [r, l] = _(!1), [i, o] = _(!1), [p, s] = _(!1), [u, m] = _(() => ({
|
|
36
33
|
width: typeof window > "u" ? 0 : window.innerWidth,
|
|
@@ -73,17 +70,17 @@ function Ve(e, t) {
|
|
|
73
70
|
function ft({ condense: e = !0, width: t, prerendered: n = !1, className: r, children: l, ref: i, ...o }) {
|
|
74
71
|
const p = k(ie)?.adopt ?? !1, s = k(ca), u = e === "pinned", [m, c] = _(!1), h = C(0), g = Pe((q) => {
|
|
75
72
|
h.current += q ? 1 : -1, c(h.current > 0);
|
|
76
|
-
}, []), v = t === "full" && s == null, y = t === "wide" || t == null && m, [w] = _(
|
|
73
|
+
}, []), v = t === "full" && s == null, y = t === "wide" || t == null && m, [w] = _(Xa), f = C(null), A = V(() => ({
|
|
77
74
|
ref: f,
|
|
78
75
|
prerendered: n
|
|
79
|
-
}), [n]), [x, E] = _(null), [S,
|
|
76
|
+
}), [n]), [x, E] = _(null), [S, O] = _(null);
|
|
80
77
|
B(() => {
|
|
81
78
|
if (s != null)
|
|
82
79
|
return s.setBack(S), () => s.setBack(null);
|
|
83
80
|
}, [s, S]);
|
|
84
81
|
const { host: M, setSlot: D, open: W, asPage: se } = pt(f), G = W && se, ye = V(() => ({
|
|
85
82
|
setTitle: E,
|
|
86
|
-
setTail:
|
|
83
|
+
setTail: O,
|
|
87
84
|
pinned: u
|
|
88
85
|
}), [u]), T = V(() => ({
|
|
89
86
|
tail: s == null ? S : null,
|
|
@@ -129,7 +126,7 @@ function ft({ condense: e = !0, width: t, prerendered: n = !1, className: r, chi
|
|
|
129
126
|
value: A,
|
|
130
127
|
children: /* @__PURE__ */ a(oa.Provider, {
|
|
131
128
|
value: M,
|
|
132
|
-
children: /* @__PURE__ */ a(
|
|
129
|
+
children: /* @__PURE__ */ a(Qa.Provider, {
|
|
133
130
|
value: g,
|
|
134
131
|
children: /* @__PURE__ */ b(Se.Provider, {
|
|
135
132
|
value: w,
|
|
@@ -253,7 +250,7 @@ function gt(e) {
|
|
|
253
250
|
if (!(typeof e != "string" && typeof e != "number"))
|
|
254
251
|
return ht(String(e)) || void 0;
|
|
255
252
|
}
|
|
256
|
-
function
|
|
253
|
+
function Oe(e, t) {
|
|
257
254
|
if (e !== "")
|
|
258
255
|
return e ?? gt(t);
|
|
259
256
|
}
|
|
@@ -291,14 +288,14 @@ function pa() {
|
|
|
291
288
|
});
|
|
292
289
|
return e;
|
|
293
290
|
}
|
|
294
|
-
var Be =
|
|
291
|
+
var Be = L(null), ma = L({
|
|
295
292
|
tail: null,
|
|
296
293
|
silent: !1
|
|
297
294
|
}), Ce = {
|
|
298
295
|
condensed: !1,
|
|
299
296
|
title: null,
|
|
300
297
|
back: null
|
|
301
|
-
}, ie =
|
|
298
|
+
}, ie = L(null), be = () => () => {
|
|
302
299
|
}, Ke = () => Ce;
|
|
303
300
|
function At({ adopt: e = !0, children: t }) {
|
|
304
301
|
const [n] = _(() => {
|
|
@@ -327,7 +324,7 @@ function At({ adopt: e = !0, children: t }) {
|
|
|
327
324
|
children: t
|
|
328
325
|
});
|
|
329
326
|
}
|
|
330
|
-
function
|
|
327
|
+
function hr() {
|
|
331
328
|
const e = k(ie);
|
|
332
329
|
return ge(e?.store.subscribe ?? be, e?.store.get ?? Ke, e?.store.get ?? Ke);
|
|
333
330
|
}
|
|
@@ -422,7 +419,7 @@ function ha({ morphId: e, fromClassName: t, fly: n, morphRef: r, arrival: l, cla
|
|
|
422
419
|
})]
|
|
423
420
|
});
|
|
424
421
|
}
|
|
425
|
-
var Xe = "max-w-full min-w-0 truncate align-top", Qe = "flex shrink-0 items-center", ga =
|
|
422
|
+
var Xe = "max-w-full min-w-0 truncate align-top", Qe = "flex shrink-0 items-center", ga = L(!1);
|
|
426
423
|
function Ue(e) {
|
|
427
424
|
return typeof e == "string" || typeof e == "number" ? e : /* @__PURE__ */ a(ga.Provider, {
|
|
428
425
|
value: !0,
|
|
@@ -433,7 +430,7 @@ function Tt({ inBar: e = !0, children: t }) {
|
|
|
433
430
|
return k(ga) && !e ? null : /* @__PURE__ */ a(Z, { children: t });
|
|
434
431
|
}
|
|
435
432
|
function Pt({ id: e, morphId: t, enter: n, trailing: r, className: l, children: i, ...o }) {
|
|
436
|
-
const p =
|
|
433
|
+
const p = Oe(e, i), s = I(), u = ve(n === !0), m = fa(t), c = pa(), h = !s && (t != null || u === !0), g = u || c != null ? "rise" : void 0, v = k(Be), y = v?.pinned ?? !1, w = k(ie)?.adopt ?? !1, f = k(ma), A = C(null);
|
|
437
434
|
H(() => {
|
|
438
435
|
if (!(v == null || y))
|
|
439
436
|
return v.setTitle({
|
|
@@ -449,7 +446,7 @@ function Pt({ id: e, morphId: t, enter: n, trailing: r, className: l, children:
|
|
|
449
446
|
H(() => {
|
|
450
447
|
J.length > 0 && E(!1);
|
|
451
448
|
}, []);
|
|
452
|
-
const S = r != null && r !== !1,
|
|
449
|
+
const S = r != null && r !== !1, O = !s && (t != null ? m.fly || g != null : u === !0), M = t != null && !s ? /* @__PURE__ */ a(ha, {
|
|
453
450
|
morphId: t,
|
|
454
451
|
fromClassName: "text-pho-secondary",
|
|
455
452
|
fly: m.fly,
|
|
@@ -488,7 +485,7 @@ function Pt({ id: e, morphId: t, enter: n, trailing: r, className: l, children:
|
|
|
488
485
|
}), /* @__PURE__ */ b("h1", {
|
|
489
486
|
id: p,
|
|
490
487
|
"data-basic-page-title": "",
|
|
491
|
-
className: d("font-heading text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-
|
|
488
|
+
className: d("font-heading text-display-base text-pho-primary max-w-full min-w-0 scroll-mt-12 px-5 font-[600]", !y && "min-h-[1lh]", h ? "whitespace-nowrap" : "truncate", y && "sr-only", l),
|
|
492
489
|
...o,
|
|
493
490
|
ref: (D) => {
|
|
494
491
|
A.current = D;
|
|
@@ -497,7 +494,7 @@ function Pt({ id: e, morphId: t, enter: n, trailing: r, className: l, children:
|
|
|
497
494
|
},
|
|
498
495
|
children: [S ? /* @__PURE__ */ b("span", {
|
|
499
496
|
className: "flex min-h-[1lh] max-w-full min-w-0 items-center gap-2",
|
|
500
|
-
children: [M,
|
|
497
|
+
children: [M, O ? /* @__PURE__ */ a(N.span, {
|
|
501
498
|
"data-basic-page-title-trailing": "",
|
|
502
499
|
initial: {
|
|
503
500
|
opacity: 0,
|
|
@@ -529,18 +526,18 @@ function Pt({ id: e, morphId: t, enter: n, trailing: r, className: l, children:
|
|
|
529
526
|
})]
|
|
530
527
|
})] });
|
|
531
528
|
}
|
|
532
|
-
var De =
|
|
529
|
+
var De = L(!1);
|
|
533
530
|
function It() {
|
|
534
531
|
const e = k(De), t = I(), [n] = _(() => e && !t);
|
|
535
532
|
return n;
|
|
536
533
|
}
|
|
537
|
-
var
|
|
534
|
+
var Lt = {
|
|
538
535
|
height: 0,
|
|
539
536
|
opacity: 0,
|
|
540
537
|
paddingTop: 0,
|
|
541
538
|
paddingBottom: 0,
|
|
542
539
|
borderTopWidth: 0
|
|
543
|
-
},
|
|
540
|
+
}, Ot = {
|
|
544
541
|
y: P,
|
|
545
542
|
opacity: F,
|
|
546
543
|
height: P,
|
|
@@ -559,8 +556,8 @@ function ee() {
|
|
|
559
556
|
opacity: 1,
|
|
560
557
|
y: 0
|
|
561
558
|
},
|
|
562
|
-
exit:
|
|
563
|
-
transition: n ? { duration: 0 } :
|
|
559
|
+
exit: Lt,
|
|
560
|
+
transition: n ? { duration: 0 } : Ot,
|
|
564
561
|
leaving: !t
|
|
565
562
|
};
|
|
566
563
|
}
|
|
@@ -589,7 +586,7 @@ function Ht() {
|
|
|
589
586
|
return ge(be, Dt, Ft);
|
|
590
587
|
}
|
|
591
588
|
function ve(e, t = !1) {
|
|
592
|
-
const n = k(la), r = k(
|
|
589
|
+
const n = k(la), r = k(Le), l = Ht(), [i] = _(() => {
|
|
593
590
|
if (l || !e || n?.prerendered || r) return !1;
|
|
594
591
|
if (t) return !0;
|
|
595
592
|
if (document.querySelector("[data-basic-page-prerendered]") != null) return !1;
|
|
@@ -662,7 +659,7 @@ function Gt({ className: e, ...t }) {
|
|
|
662
659
|
});
|
|
663
660
|
}
|
|
664
661
|
function $t({ id: e, className: t, children: n, ...r }) {
|
|
665
|
-
const l =
|
|
662
|
+
const l = Oe(e, n);
|
|
666
663
|
return /* @__PURE__ */ a("h2", {
|
|
667
664
|
id: l,
|
|
668
665
|
className: d("font-heading text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate px-5 font-medium", "mb-3 [[data-basic-page-callout]_&]:mb-0 [[data-basic-page-header]>&]:mb-0 [[data-basic-page-stack]>*>&]:mb-0 [[data-basic-page-stack]>*>[data-basic-page-form-body]>&]:mb-0", t),
|
|
@@ -749,7 +746,7 @@ function Xt({ className: e, icon: t, children: n, ...r }) {
|
|
|
749
746
|
});
|
|
750
747
|
}
|
|
751
748
|
function Qt({ id: e, className: t, children: n, ...r }) {
|
|
752
|
-
const l =
|
|
749
|
+
const l = Oe(e, n);
|
|
753
750
|
return /* @__PURE__ */ a("h2", {
|
|
754
751
|
id: l,
|
|
755
752
|
className: d("font-heading text-display-xs text-pho-primary max-w-full min-w-0 scroll-mt-12 truncate font-medium", t),
|
|
@@ -763,7 +760,7 @@ function Ut({ className: e, ...t }) {
|
|
|
763
760
|
...t
|
|
764
761
|
});
|
|
765
762
|
}
|
|
766
|
-
var Fe =
|
|
763
|
+
var Fe = L(null), ya = L(!1);
|
|
767
764
|
function xa(e) {
|
|
768
765
|
return e === "current" || e === "working" || e === "pending";
|
|
769
766
|
}
|
|
@@ -911,7 +908,7 @@ function an({ steps: e, atHand: t, className: n, ref: r, ...l }) {
|
|
|
911
908
|
"aria-labelledby": `${p}-${w.index}`,
|
|
912
909
|
tabIndex: -1,
|
|
913
910
|
className: "min-w-0 outline-none",
|
|
914
|
-
children: /* @__PURE__ */ a(
|
|
911
|
+
children: /* @__PURE__ */ a(Le.Provider, {
|
|
915
912
|
value: !0,
|
|
916
913
|
children: w.page
|
|
917
914
|
})
|
|
@@ -954,7 +951,7 @@ var ka = {
|
|
|
954
951
|
pending: "Waiting",
|
|
955
952
|
upcoming: "Not yet",
|
|
956
953
|
failed: null
|
|
957
|
-
}, Ra =
|
|
954
|
+
}, Ra = L(!1);
|
|
958
955
|
function tn(e) {
|
|
959
956
|
const t = e.findIndex((n) => n === "failed" || n === "pending" || n === "working");
|
|
960
957
|
return t === -1 ? e.lastIndexOf("done") : t;
|
|
@@ -1069,7 +1066,7 @@ function ln({ state: e = "done", title: t, time: n, className: r, children: l, .
|
|
|
1069
1066
|
});
|
|
1070
1067
|
}
|
|
1071
1068
|
function on({ seat: e, title: t, icon: n, className: r, ...l }) {
|
|
1072
|
-
const { state: i, row: o } = e, p = I(), s = C(null), u = C(null), m =
|
|
1069
|
+
const { state: i, row: o } = e, p = I(), s = C(null), u = C(null), m = Za("width", s, u, P), c = xa(i), h = Ca[i], g = typeof t == "string" || typeof t == "number" ? `title:${t}` : `state:${i === "done"}`;
|
|
1073
1070
|
return /* @__PURE__ */ b("li", {
|
|
1074
1071
|
"data-basic-page-step": i,
|
|
1075
1072
|
"aria-current": c ? "step" : void 0,
|
|
@@ -1189,7 +1186,7 @@ function cn({ icon: e, aside: t, title: n, description: r, done: l, working: i,
|
|
|
1189
1186
|
})
|
|
1190
1187
|
});
|
|
1191
1188
|
}
|
|
1192
|
-
var Ta =
|
|
1189
|
+
var Ta = L(void 0);
|
|
1193
1190
|
function dn({ label: e, description: t, htmlFor: n, stacked: r = !1, className: l, children: i, ...o }) {
|
|
1194
1191
|
const { leaving: p, ...s } = ee();
|
|
1195
1192
|
return /* @__PURE__ */ b(N.div, {
|
|
@@ -1210,7 +1207,7 @@ function dn({ label: e, description: t, htmlFor: n, stacked: r = !1, className:
|
|
|
1210
1207
|
children: t
|
|
1211
1208
|
}) : null]
|
|
1212
1209
|
}), /* @__PURE__ */ a("div", {
|
|
1213
|
-
className: d("flex w-full min-w-0 items-center gap-2 sm:w-auto", r
|
|
1210
|
+
className: d("flex w-full min-w-0 items-center gap-2 sm:w-auto", r ? "sm:w-full" : "sm:max-w-[calc(100%-7.5rem)] sm:shrink-0"),
|
|
1214
1211
|
children: /* @__PURE__ */ a(Ta.Provider, {
|
|
1215
1212
|
value: typeof e == "string" ? e : void 0,
|
|
1216
1213
|
children: i
|
|
@@ -1223,7 +1220,7 @@ function un({ className: e, mono: t, copy: n, children: r, ...l }) {
|
|
|
1223
1220
|
return s ? /* @__PURE__ */ a("p", {
|
|
1224
1221
|
className: d("flex max-w-full min-w-0 items-center", e),
|
|
1225
1222
|
...l,
|
|
1226
|
-
children: /* @__PURE__ */ a(
|
|
1223
|
+
children: /* @__PURE__ */ a(nt, {
|
|
1227
1224
|
value: s,
|
|
1228
1225
|
label: o ?? "value",
|
|
1229
1226
|
size: "xs",
|
|
@@ -1341,7 +1338,7 @@ function xn({ error: e, show: t, className: n, children: r, ...l }) {
|
|
|
1341
1338
|
height: P,
|
|
1342
1339
|
opacity: F
|
|
1343
1340
|
},
|
|
1344
|
-
children: /* @__PURE__ */ a(
|
|
1341
|
+
children: /* @__PURE__ */ a(et, {
|
|
1345
1342
|
error: p,
|
|
1346
1343
|
className: d("px-5 pb-3", n),
|
|
1347
1344
|
...l,
|
|
@@ -1350,12 +1347,12 @@ function xn({ error: e, show: t, className: n, children: r, ...l }) {
|
|
|
1350
1347
|
}) : null
|
|
1351
1348
|
});
|
|
1352
1349
|
}
|
|
1353
|
-
function
|
|
1350
|
+
function gr() {
|
|
1354
1351
|
return k(ae)?.requestSave ?? null;
|
|
1355
1352
|
}
|
|
1356
|
-
var
|
|
1353
|
+
var br = 800, Ae = Ja.createToastManager(), ae = L(null);
|
|
1357
1354
|
function wn({ action: e, errors: t, autoSave: n = !1, className: r, children: l, onChange: i, onBlur: o, ...p }) {
|
|
1358
|
-
const [s, u] = _(!1), [m, c] = _(!1), [h, g] = _(null), [v, y] = _(t ?? {}), [w, f] = _(null), A = C(null), x = C(null), E = C(null), S = C(!1),
|
|
1355
|
+
const [s, u] = _(!1), [m, c] = _(!1), [h, g] = _(null), [v, y] = _(t ?? {}), [w, f] = _(null), A = C(null), x = C(null), E = C(null), S = C(!1), O = C(!1), M = C(null), D = C(async () => {
|
|
1359
1356
|
});
|
|
1360
1357
|
B(() => () => {
|
|
1361
1358
|
x.current != null && clearTimeout(x.current);
|
|
@@ -1364,7 +1361,7 @@ function wn({ action: e, errors: t, autoSave: n = !1, className: r, children: l,
|
|
|
1364
1361
|
const T = A.current;
|
|
1365
1362
|
if (T == null || e == null) return;
|
|
1366
1363
|
if (S.current) {
|
|
1367
|
-
|
|
1364
|
+
O.current = !0;
|
|
1368
1365
|
return;
|
|
1369
1366
|
}
|
|
1370
1367
|
if (!T.checkValidity()) return;
|
|
@@ -1397,7 +1394,7 @@ function wn({ action: e, errors: t, autoSave: n = !1, className: r, children: l,
|
|
|
1397
1394
|
}
|
|
1398
1395
|
});
|
|
1399
1396
|
} finally {
|
|
1400
|
-
S.current = !1,
|
|
1397
|
+
S.current = !1, O.current && (O.current = !1, D.current());
|
|
1401
1398
|
}
|
|
1402
1399
|
};
|
|
1403
1400
|
D.current = W;
|
|
@@ -1422,7 +1419,7 @@ function wn({ action: e, errors: t, autoSave: n = !1, className: r, children: l,
|
|
|
1422
1419
|
]);
|
|
1423
1420
|
return /* @__PURE__ */ a(ae.Provider, {
|
|
1424
1421
|
value: ye,
|
|
1425
|
-
children: /* @__PURE__ */ a(
|
|
1422
|
+
children: /* @__PURE__ */ a(at, {
|
|
1426
1423
|
errors: v,
|
|
1427
1424
|
onFormSubmit: async (T) => {
|
|
1428
1425
|
if (e != null) {
|
|
@@ -1615,8 +1612,8 @@ var Rn = "top-4 left-5 h-8 text-base [&>svg]:size-[1.125em] [&>svg]:shrink-0", S
|
|
|
1615
1612
|
function Tn() {
|
|
1616
1613
|
return typeof window < "u" && typeof window.matchMedia == "function" && !window.matchMedia(Sn).matches;
|
|
1617
1614
|
}
|
|
1618
|
-
var
|
|
1619
|
-
function
|
|
1615
|
+
var La = L(null);
|
|
1616
|
+
function Oa({ className: e, children: t, ...n }) {
|
|
1620
1617
|
const r = U.toArray(t).filter(de), l = r.map((A) => A.props.children ?? null), i = pa();
|
|
1621
1618
|
_t(l);
|
|
1622
1619
|
const [o] = _(Tn), p = I(), s = r.length, u = aa(), m = !o && s >= Pn, c = k(Be), h = s > 0 ? r[s - 1]?.props : null, g = h?.children ?? "Back", v = h?.href, y = h?.onClick;
|
|
@@ -1657,19 +1654,19 @@ function La({ className: e, children: t, ...n }) {
|
|
|
1657
1654
|
align: "start",
|
|
1658
1655
|
sideOffset: 4,
|
|
1659
1656
|
children: /* @__PURE__ */ a(Y.Popup, { children: r.slice(1, s - 2).map((E, S) => {
|
|
1660
|
-
const
|
|
1657
|
+
const O = E.props;
|
|
1661
1658
|
return /* @__PURE__ */ a(Y.LinkItem, {
|
|
1662
1659
|
render: /* @__PURE__ */ a(u, {
|
|
1663
|
-
href:
|
|
1664
|
-
onClick:
|
|
1660
|
+
href: O.href,
|
|
1661
|
+
onClick: O.onClick
|
|
1665
1662
|
}),
|
|
1666
|
-
children:
|
|
1663
|
+
children: O.children ?? "Back"
|
|
1667
1664
|
}, E.key ?? S);
|
|
1668
1665
|
}) })
|
|
1669
1666
|
}) })] })]
|
|
1670
1667
|
}), /* @__PURE__ */ a("li", {
|
|
1671
1668
|
className: d("m-0 flex items-center", x < s - 1 && "max-sm:hidden"),
|
|
1672
|
-
children: /* @__PURE__ */ a(
|
|
1669
|
+
children: /* @__PURE__ */ a(La.Provider, {
|
|
1673
1670
|
value: {
|
|
1674
1671
|
index: x,
|
|
1675
1672
|
count: s,
|
|
@@ -1695,9 +1692,9 @@ function La({ className: e, children: t, ...n }) {
|
|
|
1695
1692
|
}
|
|
1696
1693
|
var ke = "text-pho-description -mx-1 inline-flex shrink-0 text-base select-none", he = "/", Pn = 4, In = "…";
|
|
1697
1694
|
function Ba({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
1698
|
-
const i = k(
|
|
1695
|
+
const i = k(La), o = I(), p = n != null && !o, s = fa(p ? n : void 0);
|
|
1699
1696
|
if (i == null) throw new Error("BasicPage.Crumb must be rendered inside BasicPage.Breadcrumbs");
|
|
1700
|
-
const { index: u, count: m, departing: c, narrow: h } = i, g = u === 0, v = u === m - 1, y = c != null && c.labels.length < m, w = c != null && c.labels.length > m, f = v && (c == null || y || h), A = g || v, x = g && v ? "" : g ? "max-sm:hidden" : "sm:hidden", E = c != null, S = v ? h ? w ? "slide" : "fade" : f ? "fade" : void 0 : void 0, [
|
|
1697
|
+
const { index: u, count: m, departing: c, narrow: h } = i, g = u === 0, v = u === m - 1, y = c != null && c.labels.length < m, w = c != null && c.labels.length > m, f = v && (c == null || y || h), A = g || v, x = g && v ? "" : g ? "max-sm:hidden" : "sm:hidden", E = c != null, S = v ? h ? w ? "slide" : "fade" : f ? "fade" : void 0 : void 0, [O, M] = _(p && h && s.fly && c != null && !w ? c.labels[c.labels.length - 1] : null), D = p && A && !E, W = p && !g && v && (c == null || y);
|
|
1701
1698
|
return /* @__PURE__ */ b(Z, { children: [!g && /* @__PURE__ */ a("span", {
|
|
1702
1699
|
"aria-hidden": !0,
|
|
1703
1700
|
className: d(ke, "max-sm:hidden"),
|
|
@@ -1745,7 +1742,7 @@ function Ba({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
|
1745
1742
|
morphRef: s.ref,
|
|
1746
1743
|
arrival: S,
|
|
1747
1744
|
children: r
|
|
1748
|
-
}),
|
|
1745
|
+
}), O != null && /* @__PURE__ */ a(N.span, {
|
|
1749
1746
|
"aria-hidden": !0,
|
|
1750
1747
|
initial: {
|
|
1751
1748
|
x: 0,
|
|
@@ -1758,7 +1755,7 @@ function Ba({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
|
1758
1755
|
transition: wt,
|
|
1759
1756
|
onAnimationComplete: () => M(null),
|
|
1760
1757
|
className: "pointer-events-none absolute inset-y-0 left-0 whitespace-nowrap",
|
|
1761
|
-
children:
|
|
1758
|
+
children: O
|
|
1762
1759
|
})]
|
|
1763
1760
|
}) : /* @__PURE__ */ a("span", {
|
|
1764
1761
|
className: d("block", !v && "max-w-40 truncate"),
|
|
@@ -1766,13 +1763,13 @@ function Ba({ href: e, className: t, morphId: n, children: r = "Back", ...l }) {
|
|
|
1766
1763
|
})
|
|
1767
1764
|
})] });
|
|
1768
1765
|
}
|
|
1769
|
-
function
|
|
1770
|
-
return /* @__PURE__ */ a(
|
|
1766
|
+
function Ln({ className: e, ...t }) {
|
|
1767
|
+
return /* @__PURE__ */ a(Oa, {
|
|
1771
1768
|
className: e,
|
|
1772
1769
|
children: /* @__PURE__ */ a(Ba, { ...t })
|
|
1773
1770
|
});
|
|
1774
1771
|
}
|
|
1775
|
-
function
|
|
1772
|
+
function On({ label: e, description: t, leading: n, href: r, className: l, children: i, ...o }) {
|
|
1776
1773
|
const p = aa(), s = V(() => N.create(p), [p]), { leaving: u, ...m } = ee();
|
|
1777
1774
|
return /* @__PURE__ */ b(s, {
|
|
1778
1775
|
href: r,
|
|
@@ -1799,7 +1796,7 @@ function Ln({ label: e, description: t, leading: n, href: r, className: l, child
|
|
|
1799
1796
|
children: [i != null ? /* @__PURE__ */ a("div", {
|
|
1800
1797
|
className: "min-w-0",
|
|
1801
1798
|
children: i
|
|
1802
|
-
}) : null, /* @__PURE__ */ a(
|
|
1799
|
+
}) : null, /* @__PURE__ */ a(qa, {
|
|
1803
1800
|
"aria-hidden": !0,
|
|
1804
1801
|
className: "text-pho-secondary group-hover:text-pho-secondary-hover size-4 shrink-0 transition-colors"
|
|
1805
1802
|
})]
|
|
@@ -1910,7 +1907,7 @@ function Fa({ back: e, onClose: t, onExpand: n, closeRef: r, panel: l, children:
|
|
|
1910
1907
|
className: "absolute top-2 right-2 z-30 flex items-center gap-0.5",
|
|
1911
1908
|
children: [n != null ? /* @__PURE__ */ a(X.Provider, { children: /* @__PURE__ */ a(Da, {
|
|
1912
1909
|
label: "Expand",
|
|
1913
|
-
icon: /* @__PURE__ */ a(
|
|
1910
|
+
icon: /* @__PURE__ */ a(Va, {}),
|
|
1914
1911
|
onClick: n
|
|
1915
1912
|
}) }) : null, /* @__PURE__ */ a("span", {
|
|
1916
1913
|
ref: r,
|
|
@@ -1938,7 +1935,7 @@ function Fa({ back: e, onClose: t, onExpand: n, closeRef: r, panel: l, children:
|
|
|
1938
1935
|
},
|
|
1939
1936
|
children: /* @__PURE__ */ a(ca.Provider, {
|
|
1940
1937
|
value: l,
|
|
1941
|
-
children: /* @__PURE__ */ a(
|
|
1938
|
+
children: /* @__PURE__ */ a(Le.Provider, {
|
|
1942
1939
|
value: !0,
|
|
1943
1940
|
children: i
|
|
1944
1941
|
})
|
|
@@ -2079,7 +2076,7 @@ function Gn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
|
|
|
2079
2076
|
"data-variant": "ghost",
|
|
2080
2077
|
className: d("flex min-w-0 flex-1", c == null && "hidden", o),
|
|
2081
2078
|
...p,
|
|
2082
|
-
children: c != null && /* @__PURE__ */ a(
|
|
2079
|
+
children: c != null && /* @__PURE__ */ a(tt, {
|
|
2083
2080
|
value: c.query,
|
|
2084
2081
|
onChange: c.setQuery,
|
|
2085
2082
|
onClear: () => c.setQuery(""),
|
|
@@ -2109,7 +2106,7 @@ function Gn({ variant: e = "box", fold: t = "auto", value: n, onValueChange: r,
|
|
|
2109
2106
|
tabIndex: y ? -1 : void 0,
|
|
2110
2107
|
onClick: () => g(!0),
|
|
2111
2108
|
className: d(ea, y ? "pointer-events-none invisible opacity-0" : "visible opacity-100", w && "@[36rem]:pointer-events-none @[36rem]:invisible @[36rem]:opacity-0"),
|
|
2112
|
-
children: /* @__PURE__ */ a(
|
|
2109
|
+
children: /* @__PURE__ */ a(Ka, {})
|
|
2113
2110
|
}), /* @__PURE__ */ a("div", {
|
|
2114
2111
|
inert: !w && !y,
|
|
2115
2112
|
className: d("w-full min-w-0", ea, y ? "visible opacity-100" : "pointer-events-none invisible opacity-0", w && "@[36rem]:pointer-events-auto @[36rem]:visible @[36rem]:opacity-100"),
|
|
@@ -2165,16 +2162,16 @@ function $n({ header: e, main: t, side: n, foot: r, enter: l }) {
|
|
|
2165
2162
|
})
|
|
2166
2163
|
});
|
|
2167
2164
|
}
|
|
2168
|
-
var
|
|
2165
|
+
var vr = {
|
|
2169
2166
|
Root: ft,
|
|
2170
2167
|
Aside: Bn,
|
|
2171
2168
|
Search: Gn,
|
|
2172
|
-
Table:
|
|
2173
|
-
Code:
|
|
2169
|
+
Table: Ua,
|
|
2170
|
+
Code: Ya,
|
|
2174
2171
|
CondenseScope: At,
|
|
2175
|
-
Breadcrumbs:
|
|
2172
|
+
Breadcrumbs: Oa,
|
|
2176
2173
|
Crumb: Ba,
|
|
2177
|
-
Back:
|
|
2174
|
+
Back: Ln,
|
|
2178
2175
|
Title: Pt,
|
|
2179
2176
|
TitleAccessory: Tt,
|
|
2180
2177
|
Stack: oe,
|
|
@@ -2198,7 +2195,7 @@ var wr = {
|
|
|
2198
2195
|
Timeline: sn,
|
|
2199
2196
|
TimelineItem: ln,
|
|
2200
2197
|
Row: dn,
|
|
2201
|
-
RowLink:
|
|
2198
|
+
RowLink: On,
|
|
2202
2199
|
Value: un,
|
|
2203
2200
|
Meta: Ge.Root,
|
|
2204
2201
|
MetaItem: Ge.Item,
|
|
@@ -2217,19 +2214,19 @@ var wr = {
|
|
|
2217
2214
|
};
|
|
2218
2215
|
export {
|
|
2219
2216
|
ot as a,
|
|
2220
|
-
|
|
2217
|
+
vr as c,
|
|
2221
2218
|
Ct as d,
|
|
2222
2219
|
Ae as f,
|
|
2223
2220
|
lt as i,
|
|
2224
2221
|
pe as l,
|
|
2225
|
-
|
|
2222
|
+
hr as m,
|
|
2226
2223
|
We as n,
|
|
2227
2224
|
ct as o,
|
|
2228
|
-
|
|
2225
|
+
gr as p,
|
|
2229
2226
|
sa as r,
|
|
2230
2227
|
st as s,
|
|
2231
|
-
|
|
2228
|
+
br as t,
|
|
2232
2229
|
Et as u
|
|
2233
2230
|
};
|
|
2234
2231
|
|
|
2235
|
-
//# sourceMappingURL=basic-page-
|
|
2232
|
+
//# sourceMappingURL=basic-page-DSPzDKrZ.js.map
|