@photon-ai/pho-ui 4.17.0 → 4.18.1
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/{basic-page-DS1YIheB.js → basic-page-Bfcda8w5.js} +417 -399
- package/dist/chunks/basic-page-Bfcda8w5.js.map +1 -0
- package/dist/chunks/{code-block-DMiZkEWS.js → code-block-DekLMMtV.js} +2 -2
- package/dist/chunks/{code-block-DMiZkEWS.js.map → code-block-DekLMMtV.js.map} +1 -1
- package/dist/chunks/{copy-button-CHYc_cvM.js → copy-button-BmGshaq9.js} +15 -15
- package/dist/chunks/copy-button-BmGshaq9.js.map +1 -0
- package/dist/chunks/{data-table-hzZb7Otx.js → data-table-T4QKnrxQ.js} +30 -30
- package/dist/chunks/data-table-T4QKnrxQ.js.map +1 -0
- package/dist/chunks/{description-list-SIlI9ZHs.js → description-list-BRRQ0oF6.js} +3 -3
- package/dist/chunks/{description-list-SIlI9ZHs.js.map → description-list-BRRQ0oF6.js.map} +1 -1
- package/dist/chunks/{filter-bar-BCiaO1gO.js → filter-bar-qJJWL4_a.js} +21 -21
- package/dist/chunks/filter-bar-qJJWL4_a.js.map +1 -0
- package/dist/components/code-block.js +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/description-list.js +1 -1
- package/dist/components/filter-bar.js +1 -1
- package/dist/index.js +6 -6
- package/dist/sections/basic-page.js +2 -2
- package/dist/src/components/copy-button/copy-button.d.ts +2 -2
- package/dist/src/sections/basic-page/basic-page.d.ts +13 -3
- package/dist/src/sections/basic-page/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/basic-page-DS1YIheB.js.map +0 -1
- package/dist/chunks/copy-button-CHYc_cvM.js.map +0 -1
- package/dist/chunks/data-table-hzZb7Otx.js.map +0 -1
- package/dist/chunks/filter-bar-BCiaO1gO.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as s } from "./cn-ChIgwEl3.js";
|
|
3
|
-
import { n as y } from "./copy-button-
|
|
3
|
+
import { n as y } from "./copy-button-BmGshaq9.js";
|
|
4
4
|
import { createContext as N, useContext as v } from "react";
|
|
5
5
|
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
6
6
|
var d = N("inline"), b = {
|
|
@@ -19,7 +19,7 @@ function C({ layout: e = "inline", columns: n = 1, className: o, ...a }) {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
function L({ label: e, value: n, children: o, mono: a, copy: r, optional: x, empty: h = "Not set", className: f, ...u }) {
|
|
22
|
-
const g = v(d), i = o ?? n, l = i == null || i === "" || i === !1, c = typeof r == "string" ? r : r && typeof n == "string" ? n : null, w = typeof e == "string" ? e
|
|
22
|
+
const g = v(d), i = o ?? n, l = i == null || i === "" || i === !1, c = typeof r == "string" ? r : r && typeof n == "string" ? n : null, w = typeof e == "string" ? e : "value", m = /* @__PURE__ */ t("span", {
|
|
23
23
|
className: s("min-w-0", a ? "truncate" : "font-sans text-base [overflow-wrap:anywhere] whitespace-normal"),
|
|
24
24
|
children: i
|
|
25
25
|
});
|
|
@@ -57,4 +57,4 @@ export {
|
|
|
57
57
|
D as t
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
//# sourceMappingURL=description-list-
|
|
60
|
+
//# sourceMappingURL=description-list-BRRQ0oF6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-list-
|
|
1
|
+
{"version":3,"file":"description-list-BRRQ0oF6.js","names":[],"sources":["../../src/components/description-list/description-list.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n type ComponentProps,\n type ReactNode,\n type Ref,\n} from \"react\";\nimport { CopyButton } from \"../copy-button\";\nimport { cn } from \"../../utils/cn\";\n\n/**\n * Description List — the facts about one record, label beside value:\n * the status, the request id, the time, the ip, the api version, the\n * idempotency key, the api key. A `<dl>` under the hood.\n *\n * Where `BasicPage.Row` is a 68px row built for a control on its right,\n * these are dense lines of text: `inline` puts the label in a column\n * beside the value, every label the same width (a subgrid), one line per\n * fact; `stacked` puts the label above the value and flows the pairs\n * into `columns`. A `mono` value wears the mono face with a copy\n * control after it; a value that is not there says so in muted ink.\n */\n\nexport type DescriptionListLayout = \"inline\" | \"stacked\";\n\nconst LayoutContext = createContext<DescriptionListLayout>(\"inline\");\n\nexport interface DescriptionListRootProps extends ComponentProps<\"dl\"> {\n /**\n * `inline` (default): label column beside the value column, one line\n * per item. `stacked`: label above value, pairs flowing into `columns`.\n */\n layout?: DescriptionListLayout;\n /** For `stacked`: pairs per row from `sm` up. @default 1 */\n columns?: 1 | 2 | 3;\n ref?: Ref<HTMLDListElement>;\n}\n\nconst COLUMNS: Record<1 | 2 | 3, string> = {\n 1: \"\",\n 2: \"sm:grid-cols-2\",\n 3: \"sm:grid-cols-3\",\n};\n\nfunction Root({\n layout = \"inline\",\n columns = 1,\n className,\n ...props\n}: DescriptionListRootProps) {\n return (\n <LayoutContext.Provider value={layout}>\n <dl\n data-description-list={layout}\n className={cn(\n \"m-0 grid min-w-0\",\n layout === \"inline\"\n ? \"grid-cols-[minmax(0,auto)_minmax(0,1fr)] gap-x-6\"\n : cn(\"gap-x-6 gap-y-3\", COLUMNS[columns]),\n className,\n )}\n {...props}\n />\n </LayoutContext.Provider>\n );\n}\n\nexport interface DescriptionListItemProps extends Omit<\n ComponentProps<\"div\">,\n \"children\" | \"title\"\n> {\n /** The fact's name — \"Request ID\", \"Idempotency key\". */\n label: ReactNode;\n /** The fact. A string wears the item's type; a node is yours to style. */\n value?: ReactNode;\n /** Composed content instead of `value` — a `Badge`, a link. */\n children?: ReactNode;\n /** The value in the mono face — ids, keys, addresses. */\n mono?: boolean;\n /**\n * A copy control after the value, and a click on the value copies\n * too. `true` copies a string `value`; pass the text to copy when the\n * value is composed.\n */\n copy?: boolean | string;\n /** Marks the label `(Optional)` — a fact that may not be there. */\n optional?: boolean;\n /** What an absent value says. @default \"Not set\" */\n empty?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n}\n\nfunction Item({\n label,\n value,\n children,\n mono,\n copy,\n optional,\n empty = \"Not set\",\n className,\n ...props\n}: DescriptionListItemProps) {\n const layout = useContext(LayoutContext);\n const content = children ?? value;\n const absent = content == null || content === \"\" || content === false;\n const copyText =\n typeof copy === \"string\"\n ? copy\n : copy && typeof value === \"string\"\n ? value\n : null;\n // Verbatim: \"Copy Trace ID\" reads the acronym, \"Copy Meta number ID\" the brand.\n const copyLabel = typeof label === \"string\" ? label : \"value\";\n // An id keeps its line and truncates; prose wraps, in its own face\n // over the copy view's mono default.\n const shown = (\n <span\n className={cn(\n \"min-w-0\",\n mono\n ? \"truncate\"\n : \"font-sans text-base [overflow-wrap:anywhere] whitespace-normal\",\n )}\n >\n {content}\n </span>\n );\n return (\n <div\n data-description-item=\"\"\n data-empty={absent || undefined}\n className={cn(\n \"min-w-0\",\n layout === \"inline\"\n ? \"col-span-2 grid grid-cols-subgrid items-baseline py-1\"\n : \"flex flex-col gap-0.5\",\n className,\n )}\n {...props}\n >\n <dt className=\"text-pho-description min-w-0 text-base [overflow-wrap:anywhere]\">\n {label}\n {optional ? (\n <span className=\"text-pho-placeholder\"> (Optional)</span>\n ) : null}\n </dt>\n <dd\n className={cn(\n \"m-0 flex min-w-0 items-center gap-1\",\n absent\n ? \"text-pho-placeholder text-base\"\n : mono\n ? \"text-pho-primary font-mono text-xs\"\n : \"text-pho-primary text-base\",\n )}\n >\n {absent ? (\n <span className=\"truncate\">{empty}</span>\n ) : copyText != null && copyText !== \"\" ? (\n // The value is the copy control's too: a click on it copies.\n <CopyButton\n value={copyText}\n label={copyLabel}\n size=\"xs\"\n className=\"-my-1\"\n >\n {shown}\n </CopyButton>\n ) : (\n shown\n )}\n </dd>\n </div>\n );\n}\n\n/**\n * ```tsx\n * <DescriptionList.Root>\n * <DescriptionList.Item label=\"Status\"><Badge …/></DescriptionList.Item>\n * <DescriptionList.Item label=\"Request ID\" value=\"pho_req_…\" mono copy />\n * <DescriptionList.Item label=\"Idempotency key\" optional mono copy />\n * </DescriptionList.Root>\n * ```\n */\nexport const DescriptionList = { Root, Item };\n"],"mappings":";;;;;AAyBA,IAAM,IAAgB,EAAqC,QAAQ,GAa7D,IAAqC;AAAA,EACzC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,SAAS,EAAK,EACZ,QAAA,IAAS,UACT,SAAA,IAAU,GACV,WAAA,GACA,GAAG,EAAA,GACwB;AAC3B,SACE,gBAAA,EAAC,EAAc,UAAf;AAAA,IAAwB,OAAO;AAAA,IAC7B,UAAA,gBAAA,EAAC,MAAD;AAAA,MACE,yBAAuB;AAAA,MACvB,WAAW,EACT,oBACA,MAAW,WACP,qDACA,EAAG,mBAAmB,EAAQ,CAAA,CAAQ,GAC1C,CACF;AAAA,MACA,GAAI;AAAA,IACL,CAAA;AAAA,EACqB,CAAA;AAE5B;AA2BA,SAAS,EAAK,EACZ,OAAA,GACA,OAAA,GACA,UAAA,GACA,MAAA,GACA,MAAA,GACA,UAAA,GACA,OAAA,IAAQ,WACR,WAAA,GACA,GAAG,EAAA,GACwB;AAC3B,QAAM,IAAS,EAAW,CAAa,GACjC,IAAU,KAAY,GACtB,IAAS,KAAW,QAAQ,MAAY,MAAM,MAAY,IAC1D,IACJ,OAAO,KAAS,WACZ,IACA,KAAQ,OAAO,KAAU,WACvB,IACA,MAEF,IAAY,OAAO,KAAU,WAAW,IAAQ,SAGhD,IACJ,gBAAA,EAAC,QAAD;AAAA,IACE,WAAW,EACT,WACA,IACI,aACA,gEACN;AAAA,IAEC,UAAA;AAAA,EACG,CAAA;AAER,SACE,gBAAA,EAAC,OAAD;AAAA,IACE,yBAAsB;AAAA,IACtB,cAAY,KAAU;AAAA,IACtB,WAAW,EACT,WACA,MAAW,WACP,0DACA,yBACJ,CACF;AAAA,IACA,GAAI;AAAA,IAVN,UAAA,CAYE,gBAAA,EAAC,MAAD;AAAA,MAAI,WAAU;AAAA,MAAd,UAAA,CACG,GACA,IACC,gBAAA,EAAC,QAAD;AAAA,QAAM,WAAU;AAAA,QAAuB,UAAA;AAAA,MAAiB,CAAA,IACtD,IACF;AAAA,IACJ,CAAA,GAAA,gBAAA,EAAC,MAAD;AAAA,MACE,WAAW,EACT,uCACA,IACI,mCACA,IACE,uCACA,4BACR;AAAA,MAEC,UAAA,IACC,gBAAA,EAAC,QAAD;AAAA,QAAM,WAAU;AAAA,QAAY,UAAA;AAAA,MAAY,CAAA,IACtC,KAAY,QAAQ,MAAa,KAEnC,gBAAA,EAAC,GAAD;AAAA,QACE,OAAO;AAAA,QACP,OAAO;AAAA,QACP,MAAK;AAAA,QACL,WAAU;AAAA,QAET,UAAA;AAAA,MACS,CAAA,IAEZ;AAAA,IAEA,CAAA,CACD;AAAA;AAET;AAWA,IAAa,IAAkB;AAAA,EAAE,MAAA;AAAA,EAAM,MAAA;AAAK"}
|
|
@@ -5,7 +5,7 @@ import { t as R } from "./createReactComponent-BqCmnqfX.js";
|
|
|
5
5
|
import { t as k } from "./IconCheck-D2WuculQ.js";
|
|
6
6
|
import { t as S } from "./IconSearch-BKAHkLyX.js";
|
|
7
7
|
import { t as P } from "./IconX-pZ9vrtSr.js";
|
|
8
|
-
import { i as
|
|
8
|
+
import { i as u } from "./menu-CoMrYnd1.js";
|
|
9
9
|
import { t as T } from "./box-search-C9EVZgcb.js";
|
|
10
10
|
import { useRef as A, useState as F } from "react";
|
|
11
11
|
import { Fragment as I, jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
@@ -69,11 +69,11 @@ function z(e) {
|
|
|
69
69
|
}
|
|
70
70
|
function B({ definition: e, value: r, onChange: n }) {
|
|
71
71
|
const t = N(r), i = K(e, r);
|
|
72
|
-
return /* @__PURE__ */ m(
|
|
72
|
+
return /* @__PURE__ */ m(u.Root, { children: [/* @__PURE__ */ m("span", {
|
|
73
73
|
"data-filter-chip": e.key,
|
|
74
74
|
"data-set": t || void 0,
|
|
75
75
|
className: "inline-flex max-w-full shrink-0 items-stretch",
|
|
76
|
-
children: [/* @__PURE__ */ a(
|
|
76
|
+
children: [/* @__PURE__ */ a(u.Trigger, { render: /* @__PURE__ */ a(w, {
|
|
77
77
|
variant: "outlined",
|
|
78
78
|
size: "sm",
|
|
79
79
|
prefix: t ? void 0 : L,
|
|
@@ -95,12 +95,12 @@ function B({ definition: e, value: r, onChange: n }) {
|
|
|
95
95
|
svgOnly: !0,
|
|
96
96
|
"aria-label": `Clear ${e.label.toLowerCase()} filter`,
|
|
97
97
|
onClick: () => n(void 0),
|
|
98
|
-
className: "-ml-px rounded-l-none px-2 hover:relative [&>svg]:size-3.5",
|
|
98
|
+
className: "-ml-px h-auto rounded-l-none px-2 hover:relative [&>svg]:size-3.5",
|
|
99
99
|
children: /* @__PURE__ */ a(P, {})
|
|
100
100
|
}) : null]
|
|
101
|
-
}), /* @__PURE__ */ a(
|
|
101
|
+
}), /* @__PURE__ */ a(u.Portal, { children: /* @__PURE__ */ a(u.Positioner, {
|
|
102
102
|
align: "start",
|
|
103
|
-
children: /* @__PURE__ */ a(
|
|
103
|
+
children: /* @__PURE__ */ a(u.Popup, {
|
|
104
104
|
"aria-label": `${e.label} filter`,
|
|
105
105
|
"aria-labelledby": void 0,
|
|
106
106
|
className: "flex max-w-[min(30rem,calc(100vw-2rem))] min-w-64 flex-col p-0",
|
|
@@ -144,7 +144,7 @@ function M({ value: e, onChange: r, placeholder: n, label: t, listRef: i }) {
|
|
|
144
144
|
}
|
|
145
145
|
var U = "min-w-0 flex-1 truncate";
|
|
146
146
|
function j({ definition: e, value: r, onChange: n }) {
|
|
147
|
-
const [t, i] = F(""), c = A(null), y = e.searchable ?? e.options.length > O, l = new Set(r == null ? [] : Array.isArray(r) ? r : [r]), h = t.trim().toLowerCase(),
|
|
147
|
+
const [t, i] = F(""), c = A(null), y = e.searchable ?? e.options.length > O, l = new Set(r == null ? [] : Array.isArray(r) ? r : [r]), h = t.trim().toLowerCase(), p = h ? e.options.filter((o) => o.label.toLowerCase().includes(h) || o.value.toLowerCase().includes(h)) : e.options, x = (o) => {
|
|
148
148
|
const s = new Set(l);
|
|
149
149
|
s.has(o.value) ? s.delete(o.value) : s.add(o.value);
|
|
150
150
|
const d = e.options.map((f) => f.value).filter((f) => s.has(f));
|
|
@@ -160,25 +160,25 @@ function j({ definition: e, value: r, onChange: n }) {
|
|
|
160
160
|
placeholder: e.searchPlaceholder ?? "Search",
|
|
161
161
|
label: `Search ${e.label.toLowerCase()} options`,
|
|
162
162
|
listRef: c
|
|
163
|
-
}) : null,
|
|
163
|
+
}) : null, p.length === 0 ? /* @__PURE__ */ a("p", {
|
|
164
164
|
className: "text-pho-description px-3 py-3 text-xs",
|
|
165
165
|
children: "Nothing matches."
|
|
166
166
|
}) : /* @__PURE__ */ a("div", {
|
|
167
167
|
ref: c,
|
|
168
168
|
className: "max-h-[min(50vh,20rem)] overflow-y-auto p-1.5",
|
|
169
|
-
children: e.multiple ?
|
|
169
|
+
children: e.multiple ? p.map((o) => /* @__PURE__ */ m(u.CheckboxItem, {
|
|
170
170
|
checked: l.has(o.value),
|
|
171
171
|
closeOnClick: !1,
|
|
172
172
|
onClick: () => x(o),
|
|
173
|
-
children: [/* @__PURE__ */ a(
|
|
174
|
-
}, o.value)) : /* @__PURE__ */ a(
|
|
173
|
+
children: [/* @__PURE__ */ a(u.CheckboxItemIndicator, { children: /* @__PURE__ */ a(k, {}) }), b(o)]
|
|
174
|
+
}, o.value)) : /* @__PURE__ */ a(u.RadioGroup, {
|
|
175
175
|
value: typeof r == "string" ? r : "",
|
|
176
176
|
"aria-label": `${e.label} options`,
|
|
177
|
-
children:
|
|
177
|
+
children: p.map((o) => /* @__PURE__ */ m(u.RadioItem, {
|
|
178
178
|
value: o.value,
|
|
179
179
|
closeOnClick: !0,
|
|
180
180
|
onClick: () => n(l.has(o.value) ? void 0 : o.value),
|
|
181
|
-
children: [/* @__PURE__ */ a(
|
|
181
|
+
children: [/* @__PURE__ */ a(u.RadioItemIndicator, { children: /* @__PURE__ */ a(k, {}) }), b(o)]
|
|
182
182
|
}, o.value))
|
|
183
183
|
})
|
|
184
184
|
})] });
|
|
@@ -186,21 +186,21 @@ function j({ definition: e, value: r, onChange: n }) {
|
|
|
186
186
|
var v = "bg-pho-primary ring-pho-primary text-pho-primary focus-visible:ring-pho-brand w-full min-w-0 rounded-sm px-2 py-1 text-base ring-1 transition-shadow duration-100 ease-linear outline-none ring-inset focus-visible:ring-2";
|
|
187
187
|
function q({ definition: e, value: r, onChange: n }) {
|
|
188
188
|
const t = e.presets ?? $, i = (l) => l == null ? "" : D.test(l) ? l : l.slice(0, 10), c = (l, h) => {
|
|
189
|
-
const
|
|
189
|
+
const p = {
|
|
190
190
|
from: i(r?.from) || null,
|
|
191
191
|
to: i(r?.to) || null,
|
|
192
192
|
[l]: h || null
|
|
193
193
|
};
|
|
194
|
-
n(
|
|
194
|
+
n(p.from == null && p.to == null ? void 0 : p);
|
|
195
195
|
}, y = (l) => {
|
|
196
196
|
z(l) && l.stopPropagation();
|
|
197
197
|
};
|
|
198
198
|
return /* @__PURE__ */ m(I, { children: [/* @__PURE__ */ a("div", {
|
|
199
199
|
className: "p-1.5",
|
|
200
|
-
children: /* @__PURE__ */ a(
|
|
200
|
+
children: /* @__PURE__ */ a(u.RadioGroup, {
|
|
201
201
|
value: r?.preset ?? "",
|
|
202
202
|
"aria-label": `${e.label} presets`,
|
|
203
|
-
children: t.map((l) => /* @__PURE__ */ m(
|
|
203
|
+
children: t.map((l) => /* @__PURE__ */ m(u.RadioItem, {
|
|
204
204
|
value: l.label,
|
|
205
205
|
closeOnClick: !0,
|
|
206
206
|
onClick: () => n({
|
|
@@ -208,7 +208,7 @@ function q({ definition: e, value: r, onChange: n }) {
|
|
|
208
208
|
to: null,
|
|
209
209
|
preset: l.label
|
|
210
210
|
}),
|
|
211
|
-
children: [/* @__PURE__ */ a(
|
|
211
|
+
children: [/* @__PURE__ */ a(u.RadioItemIndicator, { children: /* @__PURE__ */ a(k, {}) }), l.label]
|
|
212
212
|
}, l.label))
|
|
213
213
|
})
|
|
214
214
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -236,7 +236,7 @@ function q({ definition: e, value: r, onChange: n }) {
|
|
|
236
236
|
})]
|
|
237
237
|
})] });
|
|
238
238
|
}
|
|
239
|
-
function G({ definitions: e, filters: r, onFiltersChange: n, search: t, onSearchChange: i, searchPlaceholder: c = "Search", searchLabel: y, sticky: l, className: h, children:
|
|
239
|
+
function G({ definitions: e, filters: r, onFiltersChange: n, search: t, onSearchChange: i, searchPlaceholder: c = "Search", searchLabel: y, sticky: l, className: h, children: p, ...x }) {
|
|
240
240
|
const b = e.filter((s) => N(r[s.key])).length, o = (s, d) => {
|
|
241
241
|
const f = { ...r };
|
|
242
242
|
d === void 0 ? delete f[s] : f[s] = d, n(f);
|
|
@@ -272,7 +272,7 @@ function G({ definitions: e, filters: r, onFiltersChange: n, search: t, onSearch
|
|
|
272
272
|
},
|
|
273
273
|
children: "Clear filters"
|
|
274
274
|
}) : null,
|
|
275
|
-
|
|
275
|
+
p
|
|
276
276
|
]
|
|
277
277
|
});
|
|
278
278
|
}
|
|
@@ -284,4 +284,4 @@ export {
|
|
|
284
284
|
$ as t
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
//# sourceMappingURL=filter-bar-
|
|
287
|
+
//# sourceMappingURL=filter-bar-qJJWL4_a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-bar-qJJWL4_a.js","names":[],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.46.0_react@19.2.8/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs","../../src/components/filter-bar/filter-bar.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.46.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 5l0 14\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M5 12l14 0\", \"key\": \"svg-1\" }]];\nconst IconPlus = createReactComponent(\"outline\", \"plus\", \"Plus\", __iconNode);\n\nexport { __iconNode, IconPlus as default };\n//# sourceMappingURL=IconPlus.mjs.map\n","import {\n useRef,\n useState,\n type ComponentProps,\n type KeyboardEvent,\n type ReactNode,\n type Ref,\n type RefObject,\n} from \"react\";\nimport { IconCheck, IconPlus, IconSearch, IconX } from \"@tabler/icons-react\";\nimport { Button } from \"../button\";\nimport { BoxSearch } from \"../input-group/box-search\";\nimport { Menu } from \"../menu\";\nimport { cn } from \"../../utils/cn\";\n\n/**\n * Filter Bar — the row that pins above a log list: a search field for an\n * id, then one chip per filter. A chip with nothing chosen reads\n * `+ Status`; with a value it reads `Status: Failed` and carries its own\n * clear. Each chip opens a menu: a keyboard-first list of options (with a\n * search field past eight of them), or presets and a from / to pair for a\n * date range.\n *\n * Design notes:\n * - Built from the library's own controls, nothing bespoke: a chip is an\n * outlined `Button` (the clear beside it another), and what it opens is a\n * `Menu` — so a chip's menu wears the same hairline, shadow and\n * origin-scaled entrance as every other menu, in both themes.\n * - Fully controlled. The page owns `filters` and `search` and hands\n * them back changed; the bar keeps no state but which menu is open.\n * That keeps the query in one place (the URL, a store) and lets the\n * list refetch from it.\n * - Chips are real buttons (the trigger, and the clear beside it), so\n * the bar is one tab stop per control and Escape closes a menu back\n * onto its chip.\n * - No scroll container of its own: chips wrap. `sticky` pins it to the\n * top of the nearest scroll pane on the surface it sits on.\n */\n\nexport interface FilterOption {\n value: string;\n label: string;\n /**\n * Rich option row (a badge, mono path). Search and the set chip still\n * use `label` and `value` strings.\n */\n title?: ReactNode;\n}\n\ninterface FilterDefinitionBase {\n /** The key in `filters` this chip reads and writes. */\n key: string;\n /** The chip's word — \"Status\", \"Event type\". Sentence case. */\n label: string;\n}\n\nexport interface SelectFilterDefinition extends FilterDefinitionBase {\n type?: \"select\";\n options: readonly FilterOption[];\n /** Several values at once (`string[]`); one at a time by default. */\n multiple?: boolean;\n /**\n * A search field above the options. On by default past eight options,\n * off below; say so to override.\n */\n searchable?: boolean;\n /** The search field's placeholder. @default \"Search\" */\n searchPlaceholder?: string;\n}\n\n/** A relative preset for a date-range filter — \"Last 7 days\" is 168 hours. */\nexport interface DateRangePreset {\n label: string;\n hours: number;\n}\n\nexport interface DateRangeFilterDefinition extends FilterDefinitionBase {\n type: \"date-range\";\n /** The relative presets listed above the from / to pair. */\n presets?: readonly DateRangePreset[];\n}\n\nexport type FilterDefinition =\n SelectFilterDefinition | DateRangeFilterDefinition;\n\n/**\n * A date-range value. A preset stores an absolute ISO timestamp in `from`\n * (computed when chosen) and its label in `preset`; the from / to pair\n * stores plain `YYYY-MM-DD` dates. Either side may be open (`null`).\n */\nexport interface DateRangeValue {\n from: string | null;\n to: string | null;\n preset?: string;\n}\n\nexport type FilterValue = string | string[] | DateRangeValue;\n\n/** The page's filter state — one entry per definition key that is set. */\nexport type FilterValues = Record<string, FilterValue | undefined>;\n\n/** The relative presets a date-range chip lists when given none. */\nexport const FILTER_DATE_PRESETS: readonly DateRangePreset[] = [\n { label: \"Last hour\", hours: 1 },\n { label: \"Last 24 hours\", hours: 24 },\n { label: \"Last 7 days\", hours: 24 * 7 },\n { label: \"Last 30 days\", hours: 24 * 30 },\n];\n\n/** Past this many options a select chip shows a search field. */\nconst SEARCHABLE_PAST = 8;\n\n/** Whether a filter value counts as set — an empty string or list does not. */\nexport function isFilterSet(value: FilterValue | undefined): boolean {\n if (value == null) return false;\n if (typeof value === \"string\") return value !== \"\";\n if (Array.isArray(value)) return value.length > 0;\n return value.from != null || value.to != null;\n}\n\nconst DATE_ONLY = /^\\d{4}-\\d{2}-\\d{2}$/;\n\nfunction formatDay(value: string): string {\n // A plain date is a calendar day: format it in UTC so the day survives\n // every viewer timezone. A timestamp is a moment: format it locally.\n const dateOnly = DATE_ONLY.test(value);\n const date = new Date(dateOnly ? `${value}T00:00:00Z` : value);\n if (Number.isNaN(date.getTime())) return value;\n return new Intl.DateTimeFormat(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n ...(dateOnly ? { timeZone: \"UTC\" } : {}),\n }).format(date);\n}\n\n/** The words a set chip shows after its label. */\nexport function formatFilterValue(\n definition: FilterDefinition,\n value: FilterValue | undefined,\n): string {\n if (!isFilterSet(value) || value == null) return \"\";\n if (definition.type === \"date-range\") {\n const range = value as DateRangeValue;\n if (range.preset) return range.preset;\n if (range.from && range.to) {\n return `${formatDay(range.from)} to ${formatDay(range.to)}`;\n }\n if (range.from) return `From ${formatDay(range.from)}`;\n if (range.to) return `Until ${formatDay(range.to)}`;\n return \"\";\n }\n const labelOf = (item: string) =>\n definition.options.find((option) => option.value === item)?.label ?? item;\n if (Array.isArray(value)) return value.map(labelOf).join(\", \");\n return typeof value === \"string\" ? labelOf(value) : \"\";\n}\n\n/* ------------------------------ menu fields ------------------------------ */\n\n// Keys a field inside a menu keeps to itself: text editing and the caret.\n// The menu owns the rest — Up/Down move to the rows, Escape closes, Tab\n// leaves. Base UI's menu typeahead would otherwise swallow every character\n// typed (it prevents the key to jump between rows).\nfunction isFieldKey(event: KeyboardEvent<HTMLElement>): boolean {\n if (event.ctrlKey || event.metaKey || event.altKey) return true;\n if (event.key.length === 1) return true;\n return [\n \"Backspace\",\n \"Delete\",\n \"ArrowLeft\",\n \"ArrowRight\",\n \"Home\",\n \"End\",\n ].includes(event.key);\n}\n\n// A native date field steps its parts with Up/Down too, so it keeps those\n// as well; only Escape and Tab reach the menu.\nfunction isDateFieldKey(event: KeyboardEvent<HTMLElement>): boolean {\n return event.key !== \"Escape\" && event.key !== \"Tab\";\n}\n\n/* --------------------------------- chips -------------------------------- */\n\nfunction FilterChip({\n definition,\n value,\n onChange,\n}: {\n definition: FilterDefinition;\n value: FilterValue | undefined;\n onChange: (next: FilterValue | undefined) => void;\n}) {\n const set = isFilterSet(value);\n const display = formatFilterValue(definition, value);\n // Uncontrolled: a pick closes the menu through its row, and the panel\n // inside unmounts with it, so a search typed there starts over next time.\n return (\n <Menu.Root>\n <span\n data-filter-chip={definition.key}\n data-set={set || undefined}\n className=\"inline-flex max-w-full shrink-0 items-stretch\"\n >\n <Menu.Trigger\n render={\n <Button\n variant=\"outlined\"\n size=\"sm\"\n prefix={set ? undefined : IconPlus}\n aria-label={set ? undefined : `${definition.label} filter`}\n className={cn(\n \"relative max-w-full min-w-0\",\n set && \"rounded-r-none pr-2.5\",\n )}\n >\n {set ? (\n <span className=\"flex min-w-0 items-baseline gap-1\">\n <span className=\"text-pho-description shrink-0 font-normal\">\n {definition.label}:\n </span>\n <span className=\"text-pho-primary max-w-56 truncate\">\n {display}\n </span>\n </span>\n ) : (\n definition.label\n )}\n </Button>\n }\n />\n {set ? (\n <Button\n variant=\"outlined\"\n size=\"sm\"\n svgOnly\n aria-label={`Clear ${definition.label.toLowerCase()} filter`}\n onClick={() => onChange(undefined)}\n // Shares its left edge with the trigger: one hairline between\n // the two, drawn by the trigger's ring; a hover lifts it to\n // the front so its own ring reads whole.\n className=\"-ml-px h-auto rounded-l-none px-2 hover:relative [&>svg]:size-3.5\"\n >\n <IconX />\n </Button>\n ) : null}\n </span>\n <Menu.Portal>\n <Menu.Positioner align=\"start\">\n {/* As wide as its longest row up to a cap, so a path reads whole\n where it can and truncates where it cannot; padding moves off\n the popup and onto its sections so a search field runs edge\n to edge. */}\n <Menu.Popup\n aria-label={`${definition.label} filter`}\n // Base UI names the menu after its trigger, whose words change\n // with the value; the menu keeps one name.\n aria-labelledby={undefined}\n className=\"flex max-w-[min(30rem,calc(100vw-2rem))] min-w-64 flex-col p-0\"\n >\n {definition.type === \"date-range\" ? (\n <DateRangePanel\n definition={definition}\n value={value as DateRangeValue | undefined}\n onChange={onChange}\n />\n ) : (\n <OptionsPanel\n definition={definition}\n value={value as string | string[] | undefined}\n onChange={onChange}\n />\n )}\n </Menu.Popup>\n </Menu.Positioner>\n </Menu.Portal>\n </Menu.Root>\n );\n}\n\n/** A search field pinned over a menu's rows. */\nfunction MenuSearch({\n value,\n onChange,\n placeholder,\n label,\n listRef,\n}: {\n value: string;\n onChange: (next: string) => void;\n placeholder: string;\n label: string;\n listRef: RefObject<HTMLDivElement | null>;\n}) {\n return (\n <div className=\"border-pho-secondary relative flex items-center border-b\">\n <IconSearch\n aria-hidden\n className=\"text-pho-secondary pointer-events-none absolute left-3 size-4\"\n />\n <input\n type=\"text\"\n // The field takes focus as the menu opens, so a keystroke right\n // away already searches.\n // oxlint-disable-next-line jsx-a11y/no-autofocus\n autoFocus\n aria-label={label}\n placeholder={placeholder}\n autoComplete=\"off\"\n spellCheck={false}\n value={value}\n onChange={(event) => onChange(event.target.value)}\n onKeyDown={(event) => {\n // An IME confirming its composition sends Enter too: that Enter\n // is the field's, never a pick.\n if (event.nativeEvent.isComposing) {\n event.stopPropagation();\n return;\n }\n if (isFieldKey(event)) {\n event.stopPropagation();\n } else if (event.key === \"Enter\") {\n // Enter from the field takes the first row, as it would once\n // the arrows reached it — through the row itself, so the menu\n // closes the way it does on a click.\n event.preventDefault();\n event.stopPropagation();\n listRef.current\n ?.querySelector<HTMLElement>('[role^=\"menuitem\"]')\n ?.click();\n }\n }}\n className=\"text-pho-primary placeholder:text-pho-placeholder h-10 w-full bg-transparent pr-3 pl-9 text-base outline-none\"\n />\n </div>\n );\n}\n\nconst OPTION_ROW = \"min-w-0 flex-1 truncate\";\n\nfunction OptionsPanel({\n definition,\n value,\n onChange,\n}: {\n definition: SelectFilterDefinition;\n value: string | string[] | undefined;\n onChange: (next: string | string[] | undefined) => void;\n}) {\n const [query, setQuery] = useState(\"\");\n const listRef = useRef<HTMLDivElement>(null);\n const searchable =\n definition.searchable ?? definition.options.length > SEARCHABLE_PAST;\n const chosen = new Set(\n value == null ? [] : Array.isArray(value) ? value : [value],\n );\n const needle = query.trim().toLowerCase();\n const options = needle\n ? definition.options.filter(\n (option) =>\n option.label.toLowerCase().includes(needle) ||\n option.value.toLowerCase().includes(needle),\n )\n : definition.options;\n const toggle = (option: FilterOption) => {\n const next = new Set(chosen);\n if (next.has(option.value)) next.delete(option.value);\n else next.add(option.value);\n // Keep the definition's order, so the chip reads the same way\n // whatever order the values were chosen in.\n const ordered = definition.options\n .map((item) => item.value)\n .filter((item) => next.has(item));\n onChange(ordered.length > 0 ? ordered : undefined);\n };\n const row = (option: FilterOption) => (\n <span className={OPTION_ROW} title={option.label}>\n {option.title ?? option.label}\n </span>\n );\n return (\n <>\n {searchable ? (\n <MenuSearch\n value={query}\n onChange={setQuery}\n placeholder={definition.searchPlaceholder ?? \"Search\"}\n label={`Search ${definition.label.toLowerCase()} options`}\n listRef={listRef}\n />\n ) : null}\n {options.length === 0 ? (\n <p className=\"text-pho-description px-3 py-3 text-xs\">\n Nothing matches.\n </p>\n ) : (\n <div\n ref={listRef}\n className=\"max-h-[min(50vh,20rem)] overflow-y-auto p-1.5\"\n >\n {definition.multiple ? (\n options.map((option) => (\n <Menu.CheckboxItem\n key={option.value}\n checked={chosen.has(option.value)}\n closeOnClick={false}\n onClick={() => toggle(option)}\n >\n <Menu.CheckboxItemIndicator>\n <IconCheck />\n </Menu.CheckboxItemIndicator>\n {row(option)}\n </Menu.CheckboxItem>\n ))\n ) : (\n <Menu.RadioGroup\n value={typeof value === \"string\" ? value : \"\"}\n aria-label={`${definition.label} options`}\n >\n {options.map((option) => (\n <Menu.RadioItem\n key={option.value}\n value={option.value}\n // One pick is the answer, so the menu closes on it (a\n // radio row stays open unless told); the chosen row\n // picked again clears the filter.\n closeOnClick\n onClick={() =>\n onChange(\n chosen.has(option.value) ? undefined : option.value,\n )\n }\n >\n <Menu.RadioItemIndicator>\n <IconCheck />\n </Menu.RadioItemIndicator>\n {row(option)}\n </Menu.RadioItem>\n ))}\n </Menu.RadioGroup>\n )}\n </div>\n )}\n </>\n );\n}\n\nconst DATE_INPUT =\n \"bg-pho-primary ring-pho-primary text-pho-primary focus-visible:ring-pho-brand w-full min-w-0 rounded-sm px-2 py-1 text-base ring-1 transition-shadow duration-100 ease-linear outline-none ring-inset focus-visible:ring-2\";\n\nfunction DateRangePanel({\n definition,\n value,\n onChange,\n}: {\n definition: DateRangeFilterDefinition;\n value: DateRangeValue | undefined;\n onChange: (next: DateRangeValue | undefined) => void;\n}) {\n const presets = definition.presets ?? FILTER_DATE_PRESETS;\n // A preset's `from` is a timestamp; the day field shows its date.\n const day = (side: string | null | undefined) =>\n side == null ? \"\" : DATE_ONLY.test(side) ? side : side.slice(0, 10);\n const setSide = (side: \"from\" | \"to\", next: string) => {\n // Editing either day leaves a preset behind: the pair is the value now,\n // and a preset's timestamp becomes the day it fell on.\n const range: DateRangeValue = {\n from: day(value?.from) || null,\n to: day(value?.to) || null,\n [side]: next || null,\n };\n onChange(range.from == null && range.to == null ? undefined : range);\n };\n const stopFieldKeys = (event: KeyboardEvent<HTMLInputElement>) => {\n if (isDateFieldKey(event)) event.stopPropagation();\n };\n return (\n <>\n <div className=\"p-1.5\">\n <Menu.RadioGroup\n value={value?.preset ?? \"\"}\n aria-label={`${definition.label} presets`}\n >\n {presets.map((preset) => (\n <Menu.RadioItem\n key={preset.label}\n value={preset.label}\n closeOnClick\n onClick={() =>\n onChange({\n from: new Date(\n Date.now() - preset.hours * 60 * 60 * 1000,\n ).toISOString(),\n to: null,\n preset: preset.label,\n })\n }\n >\n <Menu.RadioItemIndicator>\n <IconCheck />\n </Menu.RadioItemIndicator>\n {preset.label}\n </Menu.RadioItem>\n ))}\n </Menu.RadioGroup>\n </div>\n {/* The day fields keep their keys: the menu's arrow handling would\n otherwise swallow the native date stepping. */}\n <div className=\"border-pho-secondary grid grid-cols-2 gap-2 border-t p-2\">\n <label className=\"text-pho-description flex min-w-0 flex-col gap-1 text-xs\">\n From\n <input\n type=\"date\"\n value={day(value?.from)}\n max={day(value?.to) || undefined}\n onChange={(event) => setSide(\"from\", event.target.value)}\n onKeyDown={stopFieldKeys}\n className={DATE_INPUT}\n />\n </label>\n <label className=\"text-pho-description flex min-w-0 flex-col gap-1 text-xs\">\n To\n <input\n type=\"date\"\n value={day(value?.to)}\n min={day(value?.from) || undefined}\n onChange={(event) => setSide(\"to\", event.target.value)}\n onKeyDown={stopFieldKeys}\n className={DATE_INPUT}\n />\n </label>\n </div>\n </>\n );\n}\n\n/* ---------------------------------- bar --------------------------------- */\n\nexport interface FilterBarProps extends Omit<\n ComponentProps<\"div\">,\n \"children\"\n> {\n /** One chip per definition, in this order. */\n definitions: readonly FilterDefinition[];\n /** The values, keyed by definition key. Absent or empty means unset. */\n filters: FilterValues;\n /** The whole map, changed — set, cleared, or cleared all. */\n onFiltersChange: (next: FilterValues) => void;\n /** The search field's text. The field renders only with `onSearchChange`. */\n search?: string;\n onSearchChange?: (value: string) => void;\n /** A teaching phrase — \"Find an event by id\". @default \"Search\" */\n searchPlaceholder?: string;\n /** The field's accessible name when the placeholder is too short to be one. */\n searchLabel?: string;\n /**\n * Pin the bar to the top of the nearest scroll pane. It paints the\n * surface it sits on (`--pho-surface`) so rows scroll under it.\n */\n sticky?: boolean;\n /** Controls after the chips — a range picker, an export button. */\n children?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport function FilterBar({\n definitions,\n filters,\n onFiltersChange,\n search,\n onSearchChange,\n searchPlaceholder = \"Search\",\n searchLabel,\n sticky,\n className,\n children,\n ...props\n}: FilterBarProps) {\n const setCount = definitions.filter((definition) =>\n isFilterSet(filters[definition.key]),\n ).length;\n const change = (key: string, next: FilterValue | undefined) => {\n const rest = { ...filters };\n if (next === undefined) delete rest[key];\n else rest[key] = next;\n onFiltersChange(rest);\n };\n return (\n <div\n data-filter-bar=\"\"\n className={cn(\n \"flex min-w-0 flex-wrap items-center gap-2\",\n sticky &&\n \"sticky top-0 z-10 bg-[var(--pho-surface,var(--background-color-pho-page))] py-3\",\n className,\n )}\n {...props}\n >\n {onSearchChange != null ? (\n <BoxSearch\n value={search ?? \"\"}\n onChange={(event) => onSearchChange(event.target.value)}\n onClear={() => onSearchChange(\"\")}\n onKeyDown={(event) => {\n if (event.key !== \"Escape\") return;\n event.preventDefault();\n onSearchChange(\"\");\n }}\n placeholder={searchPlaceholder}\n aria-label={searchLabel ?? searchPlaceholder}\n className=\"w-64 max-w-full\"\n />\n ) : null}\n {definitions.map((definition) => (\n <FilterChip\n key={definition.key}\n definition={definition}\n value={filters[definition.key]}\n onChange={(next) => change(definition.key, next)}\n />\n ))}\n {setCount > 1 ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => {\n const rest = { ...filters };\n for (const definition of definitions) delete rest[definition.key];\n onFiltersChange(rest);\n }}\n >\n Clear filters\n </Button>\n ) : null}\n {children}\n </div>\n );\n}\n\nFilterBar.displayName = \"FilterBar\";\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AASA,IAAM,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAc,KAAO;AAAQ,CAAC,GAAG,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAc,KAAO;AAAQ,CAAC,CAAC,GAC9G,IAAW,EAAqB,WAAW,QAAQ,QAAQ,CAAU,GC4F9D,IAAkD;AAAA,EAC7D;AAAA,IAAE,OAAO;AAAA,IAAa,OAAO;AAAA,EAAE;AAAA,EAC/B;AAAA,IAAE,OAAO;AAAA,IAAiB,OAAO;AAAA,EAAG;AAAA,EACpC;AAAA,IAAE,OAAO;AAAA,IAAe,OAAO;AAAA,EAAO;AAAA,EACtC;AAAA,IAAE,OAAO;AAAA,IAAgB,OAAO;AAAA,EAAQ;AAC1C,GAGM,IAAkB;AAGxB,SAAgB,EAAY,GAAyC;AACnE,SAAI,KAAS,OAAa,KACtB,OAAO,KAAU,WAAiB,MAAU,KAC5C,MAAM,QAAQ,CAAK,IAAU,EAAM,SAAS,IACzC,EAAM,QAAQ,QAAQ,EAAM,MAAM;AAC3C;AAEA,IAAM,IAAY;AAElB,SAAS,EAAU,GAAuB;AAGxC,QAAM,IAAW,EAAU,KAAK,CAAK,GAC/B,IAAO,IAAI,KAAK,IAAW,GAAG,CAAA,eAAoB,CAA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KAAK,CAAI;AAAA,MAChD,GAJM,EAAW,GAIjB,CACF;AAAA,MACA,IAAW,IACV,gBAAA,EAAC,GAAD;AAAA,QACE,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,SAAA,MAAe;AACb,gBAAM,IAAO,EAAE,GAAG,EAAQ;AAC1B,qBAAW,KAAc,EAAa,QAAO,EAAK,EAAW,GAAA;AAC7D,UAAA,EAAgB,CAAI;AAAA,QACtB;AAAA,QACD,UAAA;AAAA,MAEO,CAAA,IACN;AAAA,MACH;AAAA,IACE;AAAA;AAET;AAEA,EAAU,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as s, c as e, d as i, i as g, l as o, n as h, o as l, r, s as t, t as n, u as A } from "../chunks/code-block-
|
|
2
|
+
import { a as s, c as e, d as i, i as g, l as o, n as h, o as l, r, s as t, t as n, u as A } from "../chunks/code-block-DekLMMtV.js";
|
|
3
3
|
export {
|
|
4
4
|
o as CODE_GRAMMARS,
|
|
5
5
|
e as CODE_TOKEN_CLASS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e, i as t, n as r, r as o, t as s } from "../chunks/data-table-
|
|
2
|
+
import { a as e, i as t, n as r, r as o, t as s } from "../chunks/data-table-T4QKnrxQ.js";
|
|
3
3
|
import { r as c } from "../chunks/chrome-Ds7WykBJ.js";
|
|
4
4
|
import { t as T } from "../chunks/ghost-search-8PzP73zS.js";
|
|
5
5
|
export {
|
package/dist/index.js
CHANGED
|
@@ -11,13 +11,13 @@ import { a as k, c as w, d as W, i as y, l as H, n as K, o as x, r as z, s as X,
|
|
|
11
11
|
import { a as J, c as Q, i as q, l as $, n as aa, o as sa, r as ta, s as ra, t as oa } from "./chunks/error-D5SzZ0ev.js";
|
|
12
12
|
import { t as ia } from "./chunks/chat-Bu8UyIbT.js";
|
|
13
13
|
import { A as Ea, B as _a, C as na, D as ma, E as Aa, F as Ia, I as Ta, L as pa, M as Ra, N as la, O as Ca, P as ua, R as Ba, S as fa, T as Na, V as La, _ as Pa, a as ca, b as Da, c as Oa, d as da, f as Va, g as ga, h as ha, i as Ga, j as Ua, k as Ma, l as ba, m as Fa, n as va, o as ka, p as wa, r as Wa, s as ya, t as Ha, u as Ka, v as xa, w as za, x as Xa, y as Ya, z as Za } from "./chunks/trace-DyjsBY-S.js";
|
|
14
|
-
import { a as Ja, c as Qa, d as qa, i as $a, l as as, n as ss, o as ts, r as rs, s as os, t as es, u as is } from "./chunks/code-block-
|
|
14
|
+
import { a as Ja, c as Qa, d as qa, i as $a, l as as, n as ss, o as ts, r as rs, s as os, t as es, u as is } from "./chunks/code-block-DekLMMtV.js";
|
|
15
15
|
import { n as Es, t as _s } from "./chunks/date-picker-CZbcNIe-.js";
|
|
16
|
-
import { n as ms, t as As } from "./chunks/copy-button-
|
|
16
|
+
import { n as ms, t as As } from "./chunks/copy-button-BmGshaq9.js";
|
|
17
17
|
import { a as Ts, c as ps, d as Rs, i as ls, l as Cs, n as us, o as Bs, r as fs, s as Ns, t as Ls, u as Ps } from "./chunks/sidebar-BP39w1iA.js";
|
|
18
18
|
import { t as Ds } from "./chunks/input-fFWvPJOf.js";
|
|
19
|
-
import { i as ds, n as Vs, r as gs, t as hs } from "./chunks/filter-bar-
|
|
20
|
-
import { i as Us } from "./chunks/data-table-
|
|
19
|
+
import { i as ds, n as Vs, r as gs, t as hs } from "./chunks/filter-bar-qJJWL4_a.js";
|
|
20
|
+
import { i as Us } from "./chunks/data-table-T4QKnrxQ.js";
|
|
21
21
|
import { n as bs, t as Fs } from "./chunks/stat-hnNqjWVG.js";
|
|
22
22
|
import { t as ks } from "./chunks/calendar-4OFiCLAv.js";
|
|
23
23
|
import { t as Ws } from "./chunks/close-button-GvqWbLl0.js";
|
|
@@ -25,8 +25,8 @@ import { t as Hs } from "./chunks/input-group-fc9_jD4d.js";
|
|
|
25
25
|
import { n as xs, t as zs } from "./chunks/card-N-tvFsuV.js";
|
|
26
26
|
import { n as Ys, t as Zs } from "./chunks/dialog-12foDiQb.js";
|
|
27
27
|
import { i as Js, n as Qs, r as qs, t as $s } from "./chunks/status-view-C8tabjDu.js";
|
|
28
|
-
import { t as st } from "./chunks/description-list-
|
|
29
|
-
import { a as rt, c as ot, d as et, f as it, i as St, l as Et, m as _t, n as nt, o as mt, p as At, r as It, s as Tt, t as pt, u as Rt } from "./chunks/basic-page-
|
|
28
|
+
import { t as st } from "./chunks/description-list-BRRQ0oF6.js";
|
|
29
|
+
import { a as rt, c as ot, d as et, f as it, i as St, l as Et, m as _t, n as nt, o as mt, p as At, r as It, s as Tt, t as pt, u as Rt } from "./chunks/basic-page-Bfcda8w5.js";
|
|
30
30
|
import { a as Ct, i as ut, n as Bt, o as ft, r as Nt, s as Lt, t as Pt } from "./chunks/chart-PPuzbeXN.js";
|
|
31
31
|
import "./components/chart.js";
|
|
32
32
|
import { t as Ot } from "./chunks/bar-chart-B-c6dujU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as s } from "../chunks/data-table-
|
|
3
|
-
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-
|
|
2
|
+
import { i as s } from "../chunks/data-table-T4QKnrxQ.js";
|
|
3
|
+
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-Bfcda8w5.js";
|
|
4
4
|
export {
|
|
5
5
|
D as AUTO_SAVE_DELAY_MS,
|
|
6
6
|
B as BASIC_PAGE_CALLOUT,
|
|
@@ -50,8 +50,8 @@ export interface CopyButtonProps extends CopyButtonBaseProps, Omit<ButtonHTMLAtt
|
|
|
50
50
|
* says "Copied" to assistive tech through a polite live region. Ghost at
|
|
51
51
|
* rest so a mono value stays the loudest thing on its line; the wash and
|
|
52
52
|
* the ink lift on hover. Pass a view of the value as `children` and it
|
|
53
|
-
* renders before the button, a click target too; the
|
|
54
|
-
* either.
|
|
53
|
+
* renders before the button, a click target too; the glyph then rests in
|
|
54
|
+
* description ink, and the wash lifts over either.
|
|
55
55
|
*/
|
|
56
56
|
export declare function CopyButton({ value, children, label, size, onCopied, className, onClick, ...props }: CopyButtonProps): import("react").JSX.Element;
|
|
57
57
|
export declare namespace CopyButton {
|
|
@@ -654,10 +654,20 @@ export interface BasicPageRowProps extends Omit<ComponentProps<"div">, "title" |
|
|
|
654
654
|
* controls that sit under the label.
|
|
655
655
|
*/
|
|
656
656
|
declare function Row({ label, description, htmlFor, stacked, className, children, ...props }: BasicPageRowProps): import("react").JSX.Element;
|
|
657
|
-
|
|
658
|
-
|
|
657
|
+
export interface BasicPageValueProps extends ComponentProps<"p"> {
|
|
658
|
+
/** The value in the mono face — ids, numbers, addresses. */
|
|
659
|
+
mono?: boolean;
|
|
660
|
+
/**
|
|
661
|
+
* The value copies itself: a click on it, or on the copy control after
|
|
662
|
+
* it, writes it to the clipboard. `true` copies string `children`; pass
|
|
663
|
+
* the text to copy when the value is composed. The control is named
|
|
664
|
+
* for the row's label, as written ("Copy Resource ID").
|
|
665
|
+
*/
|
|
666
|
+
copy?: boolean | string;
|
|
659
667
|
ref?: Ref<HTMLParagraphElement>;
|
|
660
|
-
}
|
|
668
|
+
}
|
|
669
|
+
/** Read-only value on the right side of a row (email, an id). */
|
|
670
|
+
declare function Value({ className, mono, copy, children, ...props }: BasicPageValueProps): import("react").JSX.Element;
|
|
661
671
|
export interface BasicPageReceiptProps extends ComponentProps<"ul"> {
|
|
662
672
|
/**
|
|
663
673
|
* What the receipt says with nothing on it, in the card's place for the
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BasicPage, formToasts, AUTO_SAVE_DELAY_MS, useCondense, useAutoSave, type BasicPageCondense, BASIC_PAGE_CARD, CONDENSE_BAR_ENTER, CONDENSE_BAR_TRAVEL, CONDENSE_BAR_RISE_PX, BASIC_PAGE_CALLOUT, BASIC_PAGE_ROW, BASIC_PAGE_ITEM, BASIC_PAGE_ITEM_PANEL, BASIC_PAGE_ITEM_PANEL_DIVIDED, type BasicPageRootProps, type BasicPageColumnsProps, type BasicPageAsideProps, type BasicPageAsideWidth, type BasicPageAsidePresentation, type BasicPageRowProps, type BasicPageRowLinkProps, type BasicPageBackProps, type BasicPageBreadcrumbsProps, type BasicPageCrumbProps, type BasicPageFooterProps, type BasicPageFormProps, type BasicPageFormErrors, type BasicPageItemPanelProps, type BasicPageOnboardProps, type BasicPageStepProps, type BasicPageTitleAccessoryProps, type BasicPageCheckProps, type BasicPageCheckState, type BasicPageTimelineItemProps, type BasicPageReceiptProps, type BasicPageReceiptGroupProps, type BasicPageReceiptLineProps, type BasicPageReceiptTotalProps, } from './basic-page';
|
|
1
|
+
export { BasicPage, formToasts, AUTO_SAVE_DELAY_MS, useCondense, useAutoSave, type BasicPageCondense, BASIC_PAGE_CARD, CONDENSE_BAR_ENTER, CONDENSE_BAR_TRAVEL, CONDENSE_BAR_RISE_PX, BASIC_PAGE_CALLOUT, BASIC_PAGE_ROW, BASIC_PAGE_ITEM, BASIC_PAGE_ITEM_PANEL, BASIC_PAGE_ITEM_PANEL_DIVIDED, type BasicPageRootProps, type BasicPageColumnsProps, type BasicPageAsideProps, type BasicPageAsideWidth, type BasicPageAsidePresentation, type BasicPageRowProps, type BasicPageValueProps, type BasicPageRowLinkProps, type BasicPageBackProps, type BasicPageBreadcrumbsProps, type BasicPageCrumbProps, type BasicPageFooterProps, type BasicPageFormProps, type BasicPageFormErrors, type BasicPageItemPanelProps, type BasicPageOnboardProps, type BasicPageStepProps, type BasicPageTitleAccessoryProps, type BasicPageCheckProps, type BasicPageCheckState, type BasicPageTimelineItemProps, type BasicPageReceiptProps, type BasicPageReceiptGroupProps, type BasicPageReceiptLineProps, type BasicPageReceiptTotalProps, } from './basic-page';
|
|
2
2
|
export { createColumns, type DataTableColumn, type DataTableColumnMeta, type DataTableProps, type SortingState, } from '../../components/data-table';
|
|
3
3
|
export { type DescriptionListRootProps as BasicPageMetaProps, type DescriptionListItemProps as BasicPageMetaItemProps, type DescriptionListLayout as BasicPageMetaLayout, } from '../../components/description-list';
|