@handamade/psi-react 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppShell/AppShell.d.ts +10 -1
- package/dist/AppShell/AppShell.d.ts.map +1 -1
- package/dist/NavBar/NavBar.d.ts +3 -1
- package/dist/NavBar/NavBar.d.ts.map +1 -1
- package/dist/index.js +438 -437
- package/dist/manifest.json +2 -2
- package/dist/styles.css +1 -1
- package/docs/AppShell.md +2 -2
- package/docs/NavBar.md +1 -1
- package/llms.txt +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as h, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
-
import { Children as F, useId as R, isValidElement as
|
|
2
|
+
import { Children as F, useId as R, isValidElement as re, Fragment as ye, cloneElement as pe, createContext as U, useContext as $, useRef as B, useEffect as z, useLayoutEffect as ze, useState as oe, useCallback as k, useMemo as ge } from "react";
|
|
3
3
|
const Fe = "_button_1rxq8_3", Ue = "_disabled_1rxq8_45", Ge = "_size24_1rxq8_70", Ye = "_size32_1rxq8_88", Ze = "_size40_1rxq8_106", Xe = "_size48_1rxq8_124", Je = "_accent_1rxq8_145", Qe = "_accentSubtle_1rxq8_157", en = "_neutral_1rxq8_169", nn = "_neutralSubtle_1rxq8_181", tn = "_ghost_1rxq8_193", rn = "_danger_1rxq8_205", on = "_dangerSubtle_1rxq8_217", sn = "_outline_1rxq8_229", L = {
|
|
4
4
|
button: Fe,
|
|
5
5
|
disabled: Ue,
|
|
@@ -144,7 +144,7 @@ const wn = "_card_1btb3_1", xn = "_stacked_1btb3_8", kn = "_featured_1btb3_10",
|
|
|
144
144
|
body: $n,
|
|
145
145
|
hoverLift: Bn
|
|
146
146
|
};
|
|
147
|
-
function
|
|
147
|
+
function Ti({
|
|
148
148
|
variant: e = "stacked",
|
|
149
149
|
media: n,
|
|
150
150
|
hoverLift: i = !1,
|
|
@@ -168,7 +168,7 @@ const Sn = "_panel_jn8w4_1", Cn = "_padding16_jn8w4_8", Ce = {
|
|
|
168
168
|
panel: Sn,
|
|
169
169
|
padding16: Cn
|
|
170
170
|
};
|
|
171
|
-
function
|
|
171
|
+
function Ii({ padding: e = 24, className: n, children: i, ref: s, ...a }) {
|
|
172
172
|
const o = [Ce.panel, e === 16 ? Ce.padding16 : void 0, n].filter(Boolean).join(" ");
|
|
173
173
|
return /* @__PURE__ */ t("div", { ref: s, className: o, ...a, children: i });
|
|
174
174
|
}
|
|
@@ -178,7 +178,7 @@ const Ln = "_list_1lh3q_8", jn = "_item_1lh3q_26", Tn = "_term_1lh3q_44", In = "
|
|
|
178
178
|
term: Tn,
|
|
179
179
|
value: In
|
|
180
180
|
};
|
|
181
|
-
function
|
|
181
|
+
function zi({
|
|
182
182
|
layout: e = "stacked",
|
|
183
183
|
gap: n = 12,
|
|
184
184
|
className: i,
|
|
@@ -198,13 +198,13 @@ function Ii({
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function qi({ term: e, className: n, children: i, ref: s, ...a }) {
|
|
202
202
|
return /* @__PURE__ */ h("div", { ref: s, className: [he.item, n].filter(Boolean).join(" "), ...a, children: [
|
|
203
203
|
/* @__PURE__ */ t("dt", { className: he.term, children: e }),
|
|
204
204
|
/* @__PURE__ */ t("dd", { className: he.value, children: i })
|
|
205
205
|
] });
|
|
206
206
|
}
|
|
207
|
-
const zn = "
|
|
207
|
+
const zn = "_navbar_1eh60_1", qn = "_inner_1eh60_15", Mn = "_fluid_1eh60_23", En = "_brand_1eh60_25", Dn = "_links_1eh60_26", Wn = "_actions_1eh60_56", Z = {
|
|
208
208
|
navbar: zn,
|
|
209
209
|
inner: qn,
|
|
210
210
|
fluid: Mn,
|
|
@@ -212,7 +212,7 @@ const zn = "_navbar_1w24e_1", qn = "_inner_1w24e_12", Mn = "_fluid_1w24e_20", En
|
|
|
212
212
|
links: Dn,
|
|
213
213
|
actions: Wn
|
|
214
214
|
};
|
|
215
|
-
function
|
|
215
|
+
function Mi({ brand: e, actions: n, children: i, navLabel: s, fluid: a = !1, className: o, ref: r, ...c }) {
|
|
216
216
|
const l = [Z.navbar, o].filter(Boolean).join(" "), d = F.toArray(i).length > 0;
|
|
217
217
|
return /* @__PURE__ */ t("header", { ref: r, className: l, ...c, children: /* @__PURE__ */ h("div", { className: `${a ? Z.fluid : "psi-container"} ${Z.inner}`, children: [
|
|
218
218
|
e != null && /* @__PURE__ */ t("div", { className: Z.brand, children: e }),
|
|
@@ -223,7 +223,7 @@ function qi({ brand: e, actions: n, children: i, navLabel: s, fluid: a = !1, cla
|
|
|
223
223
|
const Pn = "_skipLink_1fn0y_4", An = {
|
|
224
224
|
skipLink: Pn
|
|
225
225
|
};
|
|
226
|
-
function
|
|
226
|
+
function Ei({ className: e, ref: n, children: i, ...s }) {
|
|
227
227
|
const a = [An.skipLink, e].filter(Boolean).join(" ");
|
|
228
228
|
return /* @__PURE__ */ t("a", { ref: n, className: a, ...s, children: i });
|
|
229
229
|
}
|
|
@@ -236,14 +236,14 @@ const Rn = "_navTree_1ktoe_7", Hn = "_list_1ktoe_11", Vn = "_groupList_1ktoe_12"
|
|
|
236
236
|
groupLabel: Fn,
|
|
237
237
|
chevron: Un
|
|
238
238
|
};
|
|
239
|
-
function
|
|
239
|
+
function Di({ children: e, className: n, ref: i, ...s }) {
|
|
240
240
|
const a = [V.navTree, n].filter(Boolean).join(" ");
|
|
241
241
|
return /* @__PURE__ */ t("nav", { ref: i, className: a, ...s, children: /* @__PURE__ */ t("ul", { className: V.list, children: e }) });
|
|
242
242
|
}
|
|
243
243
|
function Gn({ size: e = 20, ...n }) {
|
|
244
244
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" }) });
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Wi({ label: e, open: n, onOpenChange: i, children: s, className: a }) {
|
|
247
247
|
const o = R(), r = [V.group, a].filter(Boolean).join(" ");
|
|
248
248
|
return /* @__PURE__ */ h("li", { className: r, children: [
|
|
249
249
|
/* @__PURE__ */ h(
|
|
@@ -263,18 +263,19 @@ function Di({ label: e, open: n, onOpenChange: i, children: s, className: a }) {
|
|
|
263
263
|
/* @__PURE__ */ t("ul", { id: o, className: V.groupList, hidden: !n, children: s })
|
|
264
264
|
] });
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const r = [V.item, s].filter(Boolean).join(" "), c = n === void 0 && i &&
|
|
266
|
+
function Pi({ children: e, href: n, current: i, className: s, ref: a, ...o }) {
|
|
267
|
+
const r = [V.item, s].filter(Boolean).join(" "), c = n === void 0 && i && re(e) && e.type !== ye ? e : null;
|
|
268
268
|
return /* @__PURE__ */ t("li", { ref: a, className: r, ...o, children: n !== void 0 ? /* @__PURE__ */ t("a", { href: n, "aria-current": i ? "page" : void 0, children: e }) : c ? pe(c, { "aria-current": "page" }) : e });
|
|
269
269
|
}
|
|
270
|
-
const Yn = "
|
|
270
|
+
const Yn = "_appShell_4veby_10", Zn = "_sidebarClosed_4veby_20", Xn = "_header_4veby_24", Jn = "_sidebar_4veby_20", Qn = "_main_4veby_47", et = "_mainSquare_4veby_60", X = {
|
|
271
271
|
appShell: Yn,
|
|
272
272
|
sidebarClosed: Zn,
|
|
273
273
|
header: Xn,
|
|
274
274
|
sidebar: Jn,
|
|
275
|
-
main: Qn
|
|
275
|
+
main: Qn,
|
|
276
|
+
mainSquare: et
|
|
276
277
|
};
|
|
277
|
-
function
|
|
278
|
+
function Ai({
|
|
278
279
|
skipLink: e,
|
|
279
280
|
header: n,
|
|
280
281
|
sidebar: i,
|
|
@@ -287,30 +288,30 @@ function Pi({
|
|
|
287
288
|
ref: d,
|
|
288
289
|
..._
|
|
289
290
|
}) {
|
|
290
|
-
const u = a && i != null, f = [
|
|
291
|
+
const u = a && i != null, f = [X.appShell, !u && X.sidebarClosed, l].filter(Boolean).join(" "), g = [X.main, (!u || n == null) && X.mainSquare].filter(Boolean).join(" ");
|
|
291
292
|
return /* @__PURE__ */ h("div", { ref: d, className: f, ..._, children: [
|
|
292
293
|
e,
|
|
293
|
-
n != null && /* @__PURE__ */ t("div", { className:
|
|
294
|
-
/* @__PURE__ */ t("div", { id: r, className:
|
|
295
|
-
/* @__PURE__ */ t("main", { id: c, className:
|
|
294
|
+
n != null && /* @__PURE__ */ t("div", { className: X.header, children: n }),
|
|
295
|
+
/* @__PURE__ */ t("div", { id: r, className: X.sidebar, hidden: !u, "data-psi-theme": o, children: i }),
|
|
296
|
+
/* @__PURE__ */ t("main", { id: c, className: g, tabIndex: -1, children: s })
|
|
296
297
|
] });
|
|
297
298
|
}
|
|
298
|
-
const
|
|
299
|
-
frame:
|
|
299
|
+
const nt = "_frame_et4fc_1", tt = {
|
|
300
|
+
frame: nt
|
|
300
301
|
};
|
|
301
|
-
function
|
|
302
|
-
const r = [
|
|
302
|
+
function Ri({ ratio: e, className: n, style: i, children: s, ref: a, ...o }) {
|
|
303
|
+
const r = [tt.frame, n].filter(Boolean).join(" ");
|
|
303
304
|
return /* @__PURE__ */ t("div", { ref: a, className: r, style: { aspectRatio: String(e), ...i }, ...o, children: s });
|
|
304
305
|
}
|
|
305
|
-
const
|
|
306
|
-
field:
|
|
307
|
-
label:
|
|
308
|
-
marker:
|
|
309
|
-
requiredText:
|
|
310
|
-
message:
|
|
311
|
-
invalid:
|
|
306
|
+
const rt = "_field_x989o_1", ot = "_label_x989o_10", it = "_marker_x989o_19", st = "_requiredText_x989o_25", at = "_message_x989o_30", ct = "_invalid_x989o_36", O = {
|
|
307
|
+
field: rt,
|
|
308
|
+
label: ot,
|
|
309
|
+
marker: it,
|
|
310
|
+
requiredText: st,
|
|
311
|
+
message: at,
|
|
312
|
+
invalid: ct
|
|
312
313
|
}, G = U(null);
|
|
313
|
-
function
|
|
314
|
+
function Hi({
|
|
314
315
|
label: e,
|
|
315
316
|
description: n,
|
|
316
317
|
error: i,
|
|
@@ -346,7 +347,7 @@ function Ri({
|
|
|
346
347
|
}
|
|
347
348
|
) : /* @__PURE__ */ t("div", { ref: _, className: S, ...u, children: y });
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
+
function Vi() {
|
|
350
351
|
const e = $(G);
|
|
351
352
|
return e ? {
|
|
352
353
|
id: e.id,
|
|
@@ -356,13 +357,13 @@ function Hi() {
|
|
|
356
357
|
...e.required ? { "aria-required": !0, required: !0 } : {}
|
|
357
358
|
} : {};
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function Oi({ size: e = 20, ...n }) {
|
|
360
361
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
361
362
|
/* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
|
362
363
|
/* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
|
|
363
364
|
] });
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function Ki({ size: e = 20, ...n }) {
|
|
366
367
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) });
|
|
367
368
|
}
|
|
368
369
|
function xe({ size: e = 20, ...n }) {
|
|
@@ -371,65 +372,65 @@ function xe({ size: e = 20, ...n }) {
|
|
|
371
372
|
/* @__PURE__ */ t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
372
373
|
] });
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
+
function lt({ size: e = 20, ...n }) {
|
|
375
376
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" }) });
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
+
function dt({ size: e = 20, ...n }) {
|
|
378
379
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" }) });
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
+
function ut({ size: e = 20, ...n }) {
|
|
381
382
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "15 18 9 12 15 6" }) });
|
|
382
383
|
}
|
|
383
|
-
function
|
|
384
|
+
function Fi({ size: e = 20, ...n }) {
|
|
384
385
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
385
386
|
/* @__PURE__ */ t("circle", { cx: "11", cy: "11", r: "8" }),
|
|
386
387
|
/* @__PURE__ */ t("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
387
388
|
] });
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
+
function Ui({ size: e = 20, ...n }) {
|
|
390
391
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
391
392
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" }),
|
|
392
393
|
/* @__PURE__ */ t("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
393
394
|
] });
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
+
function Gi({ size: e = 20, ...n }) {
|
|
396
397
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
397
398
|
/* @__PURE__ */ t("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
398
399
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "7", r: "4" })
|
|
399
400
|
] });
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
+
function Yi({ size: e = 20, ...n }) {
|
|
402
403
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
403
404
|
/* @__PURE__ */ t("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
404
405
|
/* @__PURE__ */ t("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
405
406
|
] });
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function Zi({ size: e = 20, ...n }) {
|
|
408
409
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
409
410
|
/* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
|
|
410
411
|
/* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
411
412
|
] });
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
+
function _t({ size: e = 20, ...n }) {
|
|
414
415
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
415
416
|
/* @__PURE__ */ t("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
416
417
|
/* @__PURE__ */ t("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
417
418
|
] });
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
+
function Xi({ size: e = 20, ...n }) {
|
|
420
421
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
421
422
|
/* @__PURE__ */ t("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
422
423
|
/* @__PURE__ */ t("polyline", { points: "15 3 21 3 21 9" }),
|
|
423
424
|
/* @__PURE__ */ t("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
424
425
|
] });
|
|
425
426
|
}
|
|
426
|
-
function
|
|
427
|
+
function Ji({ size: e = 20, ...n }) {
|
|
427
428
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
428
429
|
/* @__PURE__ */ t("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
429
430
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" })
|
|
430
431
|
] });
|
|
431
432
|
}
|
|
432
|
-
function
|
|
433
|
+
function Qi({ size: e = 20, ...n }) {
|
|
433
434
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
434
435
|
/* @__PURE__ */ t("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94" }),
|
|
435
436
|
/* @__PURE__ */ t("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }),
|
|
@@ -437,7 +438,7 @@ function Ji({ size: e = 20, ...n }) {
|
|
|
437
438
|
/* @__PURE__ */ t("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
|
|
438
439
|
] });
|
|
439
440
|
}
|
|
440
|
-
function
|
|
441
|
+
function es({ size: e = 20, ...n }) {
|
|
441
442
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
442
443
|
/* @__PURE__ */ t("line", { x1: "12", y1: "2", x2: "12", y2: "6" }),
|
|
443
444
|
/* @__PURE__ */ t("line", { x1: "12", y1: "18", x2: "12", y2: "22" }),
|
|
@@ -449,105 +450,105 @@ function Qi({ size: e = 20, ...n }) {
|
|
|
449
450
|
/* @__PURE__ */ t("line", { x1: "16.24", y1: "7.76", x2: "19.07", y2: "4.93" })
|
|
450
451
|
] });
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
+
function ns({ size: e = 20, ...n }) {
|
|
453
454
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
454
455
|
/* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
|
455
456
|
/* @__PURE__ */ t("polyline", { points: "19 12 12 19 5 12" })
|
|
456
457
|
] });
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function ts({ size: e = 20, ...n }) {
|
|
459
460
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
460
461
|
/* @__PURE__ */ t("line", { x1: "7", y1: "17", x2: "17", y2: "7" }),
|
|
461
462
|
/* @__PURE__ */ t("polyline", { points: "7 7 17 7 17 17" })
|
|
462
463
|
] });
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function rs({ size: e = 20, ...n }) {
|
|
465
466
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) });
|
|
466
467
|
}
|
|
467
|
-
function
|
|
468
|
+
function os({ size: e = 20, ...n }) {
|
|
468
469
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }) });
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
+
function is({ size: e = 20, ...n }) {
|
|
471
472
|
return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" }) });
|
|
472
473
|
}
|
|
473
|
-
function
|
|
474
|
+
function ss({ size: e = 20, ...n }) {
|
|
474
475
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
475
476
|
/* @__PURE__ */ t("rect", { x: "2", y: "2", width: "20", height: "20", rx: "5", ry: "5" }),
|
|
476
477
|
/* @__PURE__ */ t("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
|
|
477
478
|
/* @__PURE__ */ t("line", { x1: "17.5", y1: "6.5", x2: "17.51", y2: "6.5" })
|
|
478
479
|
] });
|
|
479
480
|
}
|
|
480
|
-
function
|
|
481
|
+
function ht({ size: e = 20, ...n }) {
|
|
481
482
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
482
483
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
|
|
483
484
|
/* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "16" }),
|
|
484
485
|
/* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "8" })
|
|
485
486
|
] });
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
+
function ft({ size: e = 20, ...n }) {
|
|
488
489
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
489
490
|
/* @__PURE__ */ t("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
|
|
490
491
|
/* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
491
492
|
/* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12", y2: "17" })
|
|
492
493
|
] });
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
+
function gt({ size: e = 20, ...n }) {
|
|
495
496
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
496
497
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
|
|
497
498
|
/* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
|
|
498
499
|
/* @__PURE__ */ t("line", { x1: "12", y1: "16", x2: "12", y2: "16" })
|
|
499
500
|
] });
|
|
500
501
|
}
|
|
501
|
-
function
|
|
502
|
+
function as({ size: e = 20, ...n }) {
|
|
502
503
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
503
504
|
/* @__PURE__ */ t("circle", { cx: "5", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
|
|
504
505
|
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
|
|
505
506
|
/* @__PURE__ */ t("circle", { cx: "19", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" })
|
|
506
507
|
] });
|
|
507
508
|
}
|
|
508
|
-
function
|
|
509
|
+
function cs({ size: e = 20, ...n }) {
|
|
509
510
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
510
511
|
/* @__PURE__ */ t("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
|
511
512
|
/* @__PURE__ */ t("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
|
512
513
|
/* @__PURE__ */ t("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
|
513
514
|
] });
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function ls({ size: e = 20, ...n }) {
|
|
516
517
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
517
518
|
/* @__PURE__ */ t("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
|
|
518
519
|
/* @__PURE__ */ t("polyline", { points: "16 17 21 12 16 7" }),
|
|
519
520
|
/* @__PURE__ */ t("line", { x1: "21", y1: "12", x2: "9", y2: "12" })
|
|
520
521
|
] });
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
+
function ds({ size: e = 20, ...n }) {
|
|
523
524
|
return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
|
|
524
525
|
/* @__PURE__ */ t("path", { d: "M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" }),
|
|
525
526
|
/* @__PURE__ */ t("rect", { x: "8", y: "11", width: "8", height: "7", rx: "1" }),
|
|
526
527
|
/* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "18" })
|
|
527
528
|
] });
|
|
528
529
|
}
|
|
529
|
-
const
|
|
530
|
-
dialog:
|
|
531
|
-
panel:
|
|
532
|
-
center:
|
|
533
|
-
inlineStart:
|
|
534
|
-
inlineEnd:
|
|
535
|
-
w400:
|
|
536
|
-
w560:
|
|
537
|
-
w720:
|
|
538
|
-
header:
|
|
539
|
-
title:
|
|
540
|
-
footer:
|
|
541
|
-
},
|
|
530
|
+
const pt = "_dialog_qg38y_2", mt = "_panel_qg38y_20", vt = "_center_qg38y_42", bt = "_inlineStart_qg38y_50", yt = "_inlineEnd_qg38y_51", wt = "_w400_qg38y_100", xt = "_w560_qg38y_101", kt = "_w720_qg38y_102", Nt = "_header_qg38y_124", $t = "_title_qg38y_131", Bt = "_footer_qg38y_137", q = {
|
|
531
|
+
dialog: pt,
|
|
532
|
+
panel: mt,
|
|
533
|
+
center: vt,
|
|
534
|
+
inlineStart: bt,
|
|
535
|
+
inlineEnd: yt,
|
|
536
|
+
w400: wt,
|
|
537
|
+
w560: xt,
|
|
538
|
+
w720: kt,
|
|
539
|
+
header: Nt,
|
|
540
|
+
title: $t,
|
|
541
|
+
footer: Bt
|
|
542
|
+
}, St = {
|
|
542
543
|
400: q.w400,
|
|
543
544
|
560: q.w560,
|
|
544
545
|
720: q.w720
|
|
545
|
-
},
|
|
546
|
+
}, Ct = {
|
|
546
547
|
center: q.center,
|
|
547
548
|
"inline-start": q.inlineStart,
|
|
548
549
|
"inline-end": q.inlineEnd
|
|
549
550
|
};
|
|
550
|
-
function
|
|
551
|
+
function us({
|
|
551
552
|
open: e,
|
|
552
553
|
onClose: n,
|
|
553
554
|
title: i,
|
|
@@ -581,7 +582,7 @@ function ds({
|
|
|
581
582
|
y.preventDefault(), (c ?? r) && n("esc");
|
|
582
583
|
}, S = (y) => {
|
|
583
584
|
r && y.target === m.current && n("backdrop");
|
|
584
|
-
}, T = [q.dialog,
|
|
585
|
+
}, T = [q.dialog, St[a], Ct[o], _].filter(Boolean).join(" ");
|
|
585
586
|
return /* @__PURE__ */ t(
|
|
586
587
|
"dialog",
|
|
587
588
|
{
|
|
@@ -612,21 +613,21 @@ function ds({
|
|
|
612
613
|
}
|
|
613
614
|
);
|
|
614
615
|
}
|
|
615
|
-
const
|
|
616
|
-
input:
|
|
617
|
-
size24:
|
|
618
|
-
size32:
|
|
619
|
-
size40:
|
|
620
|
-
size48:
|
|
621
|
-
error:
|
|
622
|
-
},
|
|
623
|
-
24:
|
|
624
|
-
32:
|
|
625
|
-
40:
|
|
626
|
-
48:
|
|
616
|
+
const Lt = "_input_pmr7w_3", jt = "_size24_pmr7w_43", Tt = "_size32_pmr7w_49", It = "_size40_pmr7w_55", zt = "_size48_pmr7w_61", qt = "_error_pmr7w_69", Q = {
|
|
617
|
+
input: Lt,
|
|
618
|
+
size24: jt,
|
|
619
|
+
size32: Tt,
|
|
620
|
+
size40: It,
|
|
621
|
+
size48: zt,
|
|
622
|
+
error: qt
|
|
623
|
+
}, Mt = {
|
|
624
|
+
24: Q.size24,
|
|
625
|
+
32: Q.size32,
|
|
626
|
+
40: Q.size40,
|
|
627
|
+
48: Q.size48
|
|
627
628
|
};
|
|
628
|
-
function
|
|
629
|
-
const r = $(G), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [
|
|
629
|
+
function _s({ size: e = 32, error: n = !1, type: i = "text", className: s, ref: a, ...o }) {
|
|
630
|
+
const r = $(G), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [Q.input, Mt[e], c && Q.error, s].filter(Boolean).join(" ");
|
|
630
631
|
return /* @__PURE__ */ t(
|
|
631
632
|
"input",
|
|
632
633
|
{
|
|
@@ -641,20 +642,20 @@ function us({ size: e = 32, error: n = !1, type: i = "text", className: s, ref:
|
|
|
641
642
|
}
|
|
642
643
|
);
|
|
643
644
|
}
|
|
644
|
-
const
|
|
645
|
-
select:
|
|
646
|
-
size24:
|
|
647
|
-
size32:
|
|
648
|
-
size40:
|
|
649
|
-
size48:
|
|
650
|
-
error:
|
|
651
|
-
},
|
|
652
|
-
24:
|
|
653
|
-
32:
|
|
654
|
-
40:
|
|
655
|
-
48:
|
|
645
|
+
const Et = "_select_1eqz1_3", Dt = "_size24_1eqz1_57", Wt = "_size32_1eqz1_67", Pt = "_size40_1eqz1_77", At = "_size48_1eqz1_87", Rt = "_error_1eqz1_99", ee = {
|
|
646
|
+
select: Et,
|
|
647
|
+
size24: Dt,
|
|
648
|
+
size32: Wt,
|
|
649
|
+
size40: Pt,
|
|
650
|
+
size48: At,
|
|
651
|
+
error: Rt
|
|
652
|
+
}, Ht = {
|
|
653
|
+
24: ee.size24,
|
|
654
|
+
32: ee.size32,
|
|
655
|
+
40: ee.size40,
|
|
656
|
+
48: ee.size48
|
|
656
657
|
};
|
|
657
|
-
function
|
|
658
|
+
function hs({
|
|
658
659
|
size: e = 32,
|
|
659
660
|
error: n = !1,
|
|
660
661
|
className: i,
|
|
@@ -663,9 +664,9 @@ function _s({
|
|
|
663
664
|
...o
|
|
664
665
|
}) {
|
|
665
666
|
const r = $(G), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
c &&
|
|
667
|
+
ee.select,
|
|
668
|
+
Ht[e],
|
|
669
|
+
c && ee.error,
|
|
669
670
|
i
|
|
670
671
|
].filter(Boolean).join(" ");
|
|
671
672
|
return /* @__PURE__ */ t(
|
|
@@ -682,12 +683,12 @@ function _s({
|
|
|
682
683
|
}
|
|
683
684
|
);
|
|
684
685
|
}
|
|
685
|
-
const
|
|
686
|
-
label:
|
|
687
|
-
disabled:
|
|
688
|
-
indicator:
|
|
689
|
-
input:
|
|
690
|
-
text:
|
|
686
|
+
const Vt = "_label_10kne_3", Ot = "_disabled_10kne_13", Kt = "_indicator_10kne_26", Ft = "_input_10kne_42", Ut = "_text_10kne_97", se = {
|
|
687
|
+
label: Vt,
|
|
688
|
+
disabled: Ot,
|
|
689
|
+
indicator: Kt,
|
|
690
|
+
input: Ft,
|
|
691
|
+
text: Ut
|
|
691
692
|
};
|
|
692
693
|
function qe({
|
|
693
694
|
children: e,
|
|
@@ -720,22 +721,22 @@ function qe({
|
|
|
720
721
|
e && /* @__PURE__ */ t("span", { className: se.text, children: e })
|
|
721
722
|
] });
|
|
722
723
|
}
|
|
723
|
-
const
|
|
724
|
-
label:
|
|
725
|
-
disabled:
|
|
726
|
-
track:
|
|
727
|
-
input:
|
|
728
|
-
thumb:
|
|
729
|
-
text:
|
|
724
|
+
const Gt = "_label_yv464_3", Yt = "_disabled_yv464_13", Zt = "_track_yv464_26", Xt = "_input_yv464_38", Jt = "_thumb_yv464_50", Qt = "_text_yv464_67", J = {
|
|
725
|
+
label: Gt,
|
|
726
|
+
disabled: Yt,
|
|
727
|
+
track: Zt,
|
|
728
|
+
input: Xt,
|
|
729
|
+
thumb: Jt,
|
|
730
|
+
text: Qt
|
|
730
731
|
};
|
|
731
|
-
function
|
|
732
|
+
function fs({
|
|
732
733
|
children: e,
|
|
733
734
|
className: n,
|
|
734
735
|
disabled: i,
|
|
735
736
|
ref: s,
|
|
736
737
|
...a
|
|
737
738
|
}) {
|
|
738
|
-
const o = [
|
|
739
|
+
const o = [J.label, i && J.disabled, n].filter(Boolean).join(" ");
|
|
739
740
|
return /* @__PURE__ */ h("label", { className: o, children: [
|
|
740
741
|
/* @__PURE__ */ t(
|
|
741
742
|
"input",
|
|
@@ -743,55 +744,55 @@ function hs({
|
|
|
743
744
|
ref: s,
|
|
744
745
|
type: "checkbox",
|
|
745
746
|
role: "switch",
|
|
746
|
-
className: `psi-sr-only ${
|
|
747
|
+
className: `psi-sr-only ${J.input}`,
|
|
747
748
|
disabled: i,
|
|
748
749
|
...a
|
|
749
750
|
}
|
|
750
751
|
),
|
|
751
|
-
/* @__PURE__ */ t("span", { className:
|
|
752
|
-
e && /* @__PURE__ */ t("span", { className:
|
|
752
|
+
/* @__PURE__ */ t("span", { className: J.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: J.thumb }) }),
|
|
753
|
+
e && /* @__PURE__ */ t("span", { className: J.text, children: e })
|
|
753
754
|
] });
|
|
754
755
|
}
|
|
755
|
-
const
|
|
756
|
-
stack:
|
|
757
|
-
gap4:
|
|
758
|
-
gap8:
|
|
759
|
-
gap12:
|
|
760
|
-
gap16:
|
|
761
|
-
gap24:
|
|
762
|
-
gap32:
|
|
763
|
-
alignStart:
|
|
764
|
-
alignCenter:
|
|
765
|
-
alignEnd:
|
|
766
|
-
},
|
|
756
|
+
const er = "_stack_49uys_4", nr = "_gap4_49uys_9", tr = "_gap8_49uys_10", rr = "_gap12_49uys_11", or = "_gap16_49uys_12", ir = "_gap24_49uys_13", sr = "_gap32_49uys_14", ar = "_alignStart_49uys_16", cr = "_alignCenter_49uys_17", lr = "_alignEnd_49uys_18", D = {
|
|
757
|
+
stack: er,
|
|
758
|
+
gap4: nr,
|
|
759
|
+
gap8: tr,
|
|
760
|
+
gap12: rr,
|
|
761
|
+
gap16: or,
|
|
762
|
+
gap24: ir,
|
|
763
|
+
gap32: sr,
|
|
764
|
+
alignStart: ar,
|
|
765
|
+
alignCenter: cr,
|
|
766
|
+
alignEnd: lr
|
|
767
|
+
}, dr = {
|
|
767
768
|
4: D.gap4,
|
|
768
769
|
8: D.gap8,
|
|
769
770
|
12: D.gap12,
|
|
770
771
|
16: D.gap16,
|
|
771
772
|
24: D.gap24,
|
|
772
773
|
32: D.gap32
|
|
773
|
-
},
|
|
774
|
+
}, ur = {
|
|
774
775
|
stretch: void 0,
|
|
775
776
|
start: D.alignStart,
|
|
776
777
|
center: D.alignCenter,
|
|
777
778
|
end: D.alignEnd
|
|
778
779
|
};
|
|
779
|
-
function
|
|
780
|
-
const r = [D.stack,
|
|
780
|
+
function gs({ gap: e = 16, align: n = "stretch", className: i, children: s, ref: a, ...o }) {
|
|
781
|
+
const r = [D.stack, dr[e], ur[n], i].filter(Boolean).join(" ");
|
|
781
782
|
return /* @__PURE__ */ t("div", { ref: a, className: r, ...o, children: s });
|
|
782
783
|
}
|
|
783
|
-
const
|
|
784
|
-
text:
|
|
785
|
-
s12Regular:
|
|
786
|
-
s12Medium:
|
|
787
|
-
s14Regular:
|
|
788
|
-
s14Medium:
|
|
789
|
-
s16Regular:
|
|
790
|
-
s16Medium:
|
|
791
|
-
s18Regular:
|
|
792
|
-
s18Medium:
|
|
793
|
-
secondary:
|
|
794
|
-
},
|
|
784
|
+
const _r = "_text_14u60_4", hr = "_s12Regular_14u60_9", fr = "_s12Medium_14u60_10", gr = "_s14Regular_14u60_11", pr = "_s14Medium_14u60_12", mr = "_s16Regular_14u60_13", vr = "_s16Medium_14u60_14", br = "_s18Regular_14u60_15", yr = "_s18Medium_14u60_16", wr = "_secondary_14u60_18", E = {
|
|
785
|
+
text: _r,
|
|
786
|
+
s12Regular: hr,
|
|
787
|
+
s12Medium: fr,
|
|
788
|
+
s14Regular: gr,
|
|
789
|
+
s14Medium: pr,
|
|
790
|
+
s16Regular: mr,
|
|
791
|
+
s16Medium: vr,
|
|
792
|
+
s18Regular: br,
|
|
793
|
+
s18Medium: yr,
|
|
794
|
+
secondary: wr
|
|
795
|
+
}, xr = {
|
|
795
796
|
"12regular": E.s12Regular,
|
|
796
797
|
"12medium": E.s12Medium,
|
|
797
798
|
"14regular": E.s14Regular,
|
|
@@ -801,7 +802,7 @@ const ur = "_text_14u60_4", _r = "_s12Regular_14u60_9", hr = "_s12Medium_14u60_1
|
|
|
801
802
|
"18regular": E.s18Regular,
|
|
802
803
|
"18medium": E.s18Medium
|
|
803
804
|
};
|
|
804
|
-
function
|
|
805
|
+
function ps({
|
|
805
806
|
as: e = "p",
|
|
806
807
|
size: n = 14,
|
|
807
808
|
weight: i = "regular",
|
|
@@ -811,16 +812,16 @@ function gs({
|
|
|
811
812
|
ref: r,
|
|
812
813
|
...c
|
|
813
814
|
}) {
|
|
814
|
-
const l = [E.text,
|
|
815
|
+
const l = [E.text, xr[`${n}${i}`], s === "secondary" && E.secondary, a].filter(Boolean).join(" ");
|
|
815
816
|
return /* @__PURE__ */ t(e, { ref: r, className: l, ...c, children: o });
|
|
816
817
|
}
|
|
817
|
-
const
|
|
818
|
-
wrap:
|
|
819
|
-
textarea:
|
|
820
|
-
error:
|
|
821
|
-
counter:
|
|
818
|
+
const kr = "_wrap_1twws_6", Nr = "_textarea_1twws_11", $r = "_error_1twws_49", Br = "_counter_1twws_55", _e = {
|
|
819
|
+
wrap: kr,
|
|
820
|
+
textarea: Nr,
|
|
821
|
+
error: $r,
|
|
822
|
+
counter: Br
|
|
822
823
|
};
|
|
823
|
-
function
|
|
824
|
+
function ms({
|
|
824
825
|
rows: e = 3,
|
|
825
826
|
error: n = !1,
|
|
826
827
|
showCounter: i = !0,
|
|
@@ -830,7 +831,7 @@ function ps({
|
|
|
830
831
|
ref: r,
|
|
831
832
|
...c
|
|
832
833
|
}) {
|
|
833
|
-
const l = $(G), d = `${R()}-counter`, _ = n || ((l == null ? void 0 : l.invalid) ?? !1), u = c.value !== void 0, [f, g] =
|
|
834
|
+
const l = $(G), d = `${R()}-counter`, _ = n || ((l == null ? void 0 : l.invalid) ?? !1), u = c.value !== void 0, [f, g] = oe(() => String(c.defaultValue ?? "").length), m = u ? String(c.value ?? "").length : f, b = s !== void 0 && i, x = [l == null ? void 0 : l.describedBy, b ? d : void 0, c["aria-describedby"]].filter(Boolean).join(" ") || void 0, j = [_e.textarea, _ && _e.error, a].filter(Boolean).join(" "), S = (y) => {
|
|
834
835
|
u || g(y.target.value.length), o == null || o(y);
|
|
835
836
|
}, T = /* @__PURE__ */ t(
|
|
836
837
|
"textarea",
|
|
@@ -857,16 +858,16 @@ function ps({
|
|
|
857
858
|
] })
|
|
858
859
|
] }) : T;
|
|
859
860
|
}
|
|
860
|
-
const
|
|
861
|
-
group:
|
|
862
|
-
horizontal:
|
|
863
|
-
label:
|
|
864
|
-
disabled:
|
|
865
|
-
circle:
|
|
866
|
-
input:
|
|
867
|
-
text:
|
|
861
|
+
const Sr = "_group_wwg2k_5", Cr = "_horizontal_wwg2k_12", Lr = "_label_wwg2k_18", jr = "_disabled_wwg2k_28", Tr = "_circle_wwg2k_35", Ir = "_input_wwg2k_51", zr = "_text_wwg2k_79", K = {
|
|
862
|
+
group: Sr,
|
|
863
|
+
horizontal: Cr,
|
|
864
|
+
label: Lr,
|
|
865
|
+
disabled: jr,
|
|
866
|
+
circle: Tr,
|
|
867
|
+
input: Ir,
|
|
868
|
+
text: zr
|
|
868
869
|
}, Me = U(null);
|
|
869
|
-
function
|
|
870
|
+
function vs({
|
|
870
871
|
children: e,
|
|
871
872
|
name: n,
|
|
872
873
|
value: i,
|
|
@@ -878,7 +879,7 @@ function ms({
|
|
|
878
879
|
ref: l,
|
|
879
880
|
...d
|
|
880
881
|
}) {
|
|
881
|
-
const _ = $(G), u = R(), [f, g] =
|
|
882
|
+
const _ = $(G), u = R(), [f, g] = oe(s), m = i !== void 0 ? i : f, b = (_ == null ? void 0 : _.group) === !0, x = (S) => {
|
|
882
883
|
i === void 0 && g(S), a == null || a(S);
|
|
883
884
|
}, j = [K.group, r === "horizontal" && K.horizontal, c].filter(Boolean).join(" ");
|
|
884
885
|
return /* @__PURE__ */ t(
|
|
@@ -906,7 +907,7 @@ function ms({
|
|
|
906
907
|
}
|
|
907
908
|
);
|
|
908
909
|
}
|
|
909
|
-
function
|
|
910
|
+
function bs({ value: e, children: n, disabled: i, className: s, ref: a }) {
|
|
910
911
|
const o = $(Me), r = i || (o == null ? void 0 : o.disabled) || !1, c = [K.label, r && K.disabled, s].filter(Boolean).join(" ");
|
|
911
912
|
return /* @__PURE__ */ h("label", { className: c, children: [
|
|
912
913
|
/* @__PURE__ */ t(
|
|
@@ -928,33 +929,33 @@ function vs({ value: e, children: n, disabled: i, className: s, ref: a }) {
|
|
|
928
929
|
n && /* @__PURE__ */ t("span", { className: K.text, children: n })
|
|
929
930
|
] });
|
|
930
931
|
}
|
|
931
|
-
const
|
|
932
|
-
tag:
|
|
933
|
-
dismiss:
|
|
934
|
-
neutral:
|
|
935
|
-
accent:
|
|
936
|
-
success:
|
|
937
|
-
warning:
|
|
938
|
-
danger:
|
|
939
|
-
neutralSubtle:
|
|
940
|
-
accentSubtle:
|
|
941
|
-
successSubtle:
|
|
942
|
-
warningSubtle:
|
|
943
|
-
dangerSubtle:
|
|
944
|
-
},
|
|
932
|
+
const qr = "_tag_1r2xw_3", Mr = "_dismiss_1r2xw_17", Er = "_neutral_1r2xw_43", Dr = "_accent_1r2xw_48", Wr = "_success_1r2xw_53", Pr = "_warning_1r2xw_58", Ar = "_danger_1r2xw_63", Rr = "_neutralSubtle_1r2xw_70", Hr = "_accentSubtle_1r2xw_75", Vr = "_successSubtle_1r2xw_80", Or = "_warningSubtle_1r2xw_85", Kr = "_dangerSubtle_1r2xw_90", I = {
|
|
933
|
+
tag: qr,
|
|
934
|
+
dismiss: Mr,
|
|
935
|
+
neutral: Er,
|
|
936
|
+
accent: Dr,
|
|
937
|
+
success: Wr,
|
|
938
|
+
warning: Pr,
|
|
939
|
+
danger: Ar,
|
|
940
|
+
neutralSubtle: Rr,
|
|
941
|
+
accentSubtle: Hr,
|
|
942
|
+
successSubtle: Vr,
|
|
943
|
+
warningSubtle: Or,
|
|
944
|
+
dangerSubtle: Kr
|
|
945
|
+
}, Fr = {
|
|
945
946
|
neutral: I.neutral,
|
|
946
947
|
accent: I.accent,
|
|
947
948
|
success: I.success,
|
|
948
949
|
warning: I.warning,
|
|
949
950
|
danger: I.danger
|
|
950
|
-
},
|
|
951
|
+
}, Ur = {
|
|
951
952
|
neutral: I.neutralSubtle,
|
|
952
953
|
accent: I.accentSubtle,
|
|
953
954
|
success: I.successSubtle,
|
|
954
955
|
warning: I.warningSubtle,
|
|
955
956
|
danger: I.dangerSubtle
|
|
956
957
|
};
|
|
957
|
-
function
|
|
958
|
+
function ys({
|
|
958
959
|
variant: e = "neutral",
|
|
959
960
|
subtle: n = !1,
|
|
960
961
|
onDismiss: i,
|
|
@@ -963,7 +964,7 @@ function bs({
|
|
|
963
964
|
ref: o,
|
|
964
965
|
...r
|
|
965
966
|
}) {
|
|
966
|
-
const c = n ?
|
|
967
|
+
const c = n ? Ur : Fr, l = [I.tag, c[e], s].filter(Boolean).join(" ");
|
|
967
968
|
return /* @__PURE__ */ h("span", { ref: o, className: l, ...r, children: [
|
|
968
969
|
a,
|
|
969
970
|
i && /* @__PURE__ */ t(
|
|
@@ -995,25 +996,25 @@ function bs({
|
|
|
995
996
|
)
|
|
996
997
|
] });
|
|
997
998
|
}
|
|
998
|
-
const
|
|
999
|
-
wrapper:
|
|
1000
|
-
tooltip:
|
|
1001
|
-
top:
|
|
1002
|
-
bottom:
|
|
1003
|
-
left:
|
|
1004
|
-
right:
|
|
1005
|
-
},
|
|
1006
|
-
top:
|
|
1007
|
-
bottom:
|
|
1008
|
-
left:
|
|
1009
|
-
right:
|
|
1010
|
-
},
|
|
1011
|
-
function
|
|
999
|
+
const Gr = "_wrapper_15o1w_3", Yr = "_tooltip_15o1w_10", Zr = "_top_15o1w_32", Xr = "_bottom_15o1w_45", Jr = "_left_15o1w_58", Qr = "_right_15o1w_71", ne = {
|
|
1000
|
+
wrapper: Gr,
|
|
1001
|
+
tooltip: Yr,
|
|
1002
|
+
top: Zr,
|
|
1003
|
+
bottom: Xr,
|
|
1004
|
+
left: Jr,
|
|
1005
|
+
right: Qr
|
|
1006
|
+
}, eo = {
|
|
1007
|
+
top: ne.top,
|
|
1008
|
+
bottom: ne.bottom,
|
|
1009
|
+
left: ne.left,
|
|
1010
|
+
right: ne.right
|
|
1011
|
+
}, no = 150;
|
|
1012
|
+
function ws({
|
|
1012
1013
|
content: e,
|
|
1013
1014
|
children: n,
|
|
1014
1015
|
placement: i = "top"
|
|
1015
1016
|
}) {
|
|
1016
|
-
const [s, a] =
|
|
1017
|
+
const [s, a] = oe(!1), o = R(), r = B(void 0), c = k(() => {
|
|
1017
1018
|
r.current !== void 0 && (window.clearTimeout(r.current), r.current = void 0);
|
|
1018
1019
|
}, []), l = k(() => a(!0), []), d = k(() => a(!1), []);
|
|
1019
1020
|
z(() => c, [c]), z(() => {
|
|
@@ -1024,7 +1025,7 @@ function ys({
|
|
|
1024
1025
|
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
1025
1026
|
}, [s, d]);
|
|
1026
1027
|
const _ = () => {
|
|
1027
|
-
c(), r.current = window.setTimeout(l,
|
|
1028
|
+
c(), r.current = window.setTimeout(l, no);
|
|
1028
1029
|
}, u = () => {
|
|
1029
1030
|
c(), d();
|
|
1030
1031
|
}, f = pe(n, {
|
|
@@ -1043,7 +1044,7 @@ function ys({
|
|
|
1043
1044
|
return /* @__PURE__ */ h(
|
|
1044
1045
|
"span",
|
|
1045
1046
|
{
|
|
1046
|
-
className:
|
|
1047
|
+
className: ne.wrapper,
|
|
1047
1048
|
onMouseEnter: _,
|
|
1048
1049
|
onMouseLeave: u,
|
|
1049
1050
|
children: [
|
|
@@ -1053,7 +1054,7 @@ function ys({
|
|
|
1053
1054
|
{
|
|
1054
1055
|
id: o,
|
|
1055
1056
|
role: "tooltip",
|
|
1056
|
-
className: [
|
|
1057
|
+
className: [ne.tooltip, eo[i]].filter(Boolean).join(" "),
|
|
1057
1058
|
children: e
|
|
1058
1059
|
}
|
|
1059
1060
|
)
|
|
@@ -1061,20 +1062,20 @@ function ys({
|
|
|
1061
1062
|
}
|
|
1062
1063
|
);
|
|
1063
1064
|
}
|
|
1064
|
-
const
|
|
1065
|
-
toolbar:
|
|
1066
|
-
gap8:
|
|
1067
|
-
gap12:
|
|
1068
|
-
gap16:
|
|
1069
|
-
alignEnd:
|
|
1070
|
-
alignStart:
|
|
1071
|
-
},
|
|
1065
|
+
const to = "_toolbar_8bwkv_1", ro = "_gap8_8bwkv_7", oo = "_gap12_8bwkv_8", io = "_gap16_8bwkv_9", so = "_alignEnd_8bwkv_13", ao = "_alignStart_8bwkv_19", te = {
|
|
1066
|
+
toolbar: to,
|
|
1067
|
+
gap8: ro,
|
|
1068
|
+
gap12: oo,
|
|
1069
|
+
gap16: io,
|
|
1070
|
+
alignEnd: so,
|
|
1071
|
+
alignStart: ao
|
|
1072
|
+
}, co = { 8: te.gap8, 12: te.gap12, 16: te.gap16 }, lo = {
|
|
1072
1073
|
center: void 0,
|
|
1073
|
-
end:
|
|
1074
|
-
start:
|
|
1074
|
+
end: te.alignEnd,
|
|
1075
|
+
start: te.alignStart
|
|
1075
1076
|
};
|
|
1076
|
-
function
|
|
1077
|
-
const c = [
|
|
1077
|
+
function xs({ gap: e = 8, align: n = "center", as: i = "div", className: s, children: a, ref: o, ...r }) {
|
|
1078
|
+
const c = [te.toolbar, co[e], lo[n], s].filter(Boolean).join(" ");
|
|
1078
1079
|
return i === "form" ? /* @__PURE__ */ t("form", { ref: o, className: c, ...r, children: a }) : /* @__PURE__ */ t(
|
|
1079
1080
|
"div",
|
|
1080
1081
|
{
|
|
@@ -1086,14 +1087,14 @@ function ws({ gap: e = 8, align: n = "center", as: i = "div", className: s, chil
|
|
|
1086
1087
|
}
|
|
1087
1088
|
);
|
|
1088
1089
|
}
|
|
1089
|
-
const
|
|
1090
|
-
trigger:
|
|
1091
|
-
menu:
|
|
1092
|
-
item:
|
|
1093
|
-
text:
|
|
1094
|
-
separator:
|
|
1095
|
-
},
|
|
1096
|
-
function
|
|
1090
|
+
const uo = "_trigger_pivae_4", _o = "_menu_pivae_16", ho = "_item_pivae_37", fo = "_text_pivae_85", go = "_separator_pivae_93", de = {
|
|
1091
|
+
trigger: uo,
|
|
1092
|
+
menu: _o,
|
|
1093
|
+
item: ho,
|
|
1094
|
+
text: fo,
|
|
1095
|
+
separator: go
|
|
1096
|
+
}, po = 500;
|
|
1097
|
+
function mo({ popoverRef: e, triggerRef: n, open: i, openAtRef: s, onEsc: a, onTab: o }) {
|
|
1097
1098
|
const r = B(""), c = B(0), l = k(() => {
|
|
1098
1099
|
const u = e.current;
|
|
1099
1100
|
return u ? Array.from(
|
|
@@ -1148,7 +1149,7 @@ function po({ popoverRef: e, triggerRef: n, open: i, openAtRef: s, onEsc: a, onT
|
|
|
1148
1149
|
}
|
|
1149
1150
|
if (u.key.length !== 1 || u.metaKey || u.ctrlKey || u.altKey) return;
|
|
1150
1151
|
const m = Date.now();
|
|
1151
|
-
r.current = m - c.current >
|
|
1152
|
+
r.current = m - c.current > po ? u.key.toLowerCase() : r.current + u.key.toLowerCase(), c.current = m;
|
|
1152
1153
|
const b = f.find(
|
|
1153
1154
|
(x) => (x.textContent ?? "").trim().toLowerCase().startsWith(r.current)
|
|
1154
1155
|
);
|
|
@@ -1157,15 +1158,15 @@ function po({ popoverRef: e, triggerRef: n, open: i, openAtRef: s, onEsc: a, onT
|
|
|
1157
1158
|
[l, d, a, o]
|
|
1158
1159
|
);
|
|
1159
1160
|
}
|
|
1160
|
-
function
|
|
1161
|
+
function vo() {
|
|
1161
1162
|
return typeof CSS < "u" && CSS.supports("anchor-name", "--x");
|
|
1162
1163
|
}
|
|
1163
|
-
function
|
|
1164
|
+
function bo({ popoverRef: e, triggerRef: n, open: i, placement: s, anchorName: a }) {
|
|
1164
1165
|
z(() => {
|
|
1165
1166
|
const o = n.current, r = e.current;
|
|
1166
1167
|
!o || !r || (o.style.setProperty("anchor-name", a), r.style.setProperty("position-anchor", a));
|
|
1167
1168
|
}, [e, n, a]), z(() => {
|
|
1168
|
-
if (!i ||
|
|
1169
|
+
if (!i || vo()) return;
|
|
1169
1170
|
const o = n.current, r = e.current;
|
|
1170
1171
|
if (!o || !r) return;
|
|
1171
1172
|
const c = () => {
|
|
@@ -1182,7 +1183,7 @@ const Ee = U({ close: () => {
|
|
|
1182
1183
|
function Le(e) {
|
|
1183
1184
|
return e.hasAttribute("data-open") || e.matches(":popover-open");
|
|
1184
1185
|
}
|
|
1185
|
-
function
|
|
1186
|
+
function ks({
|
|
1186
1187
|
open: e,
|
|
1187
1188
|
onClose: n,
|
|
1188
1189
|
trigger: i,
|
|
@@ -1194,7 +1195,7 @@ function xs({
|
|
|
1194
1195
|
...l
|
|
1195
1196
|
}) {
|
|
1196
1197
|
const d = B(null), _ = B(null), u = B(!1), f = R().replace(/:/g, ""), g = `--psi-menu-${f}`, m = r ?? `psi-menu-${f}`, b = B("first");
|
|
1197
|
-
|
|
1198
|
+
bo({ popoverRef: d, triggerRef: _, open: e, placement: s, anchorName: g });
|
|
1198
1199
|
const x = (p) => {
|
|
1199
1200
|
d.current = p, typeof c == "function" ? c(p) : c && (c.current = p);
|
|
1200
1201
|
};
|
|
@@ -1213,7 +1214,7 @@ function xs({
|
|
|
1213
1214
|
}
|
|
1214
1215
|
Le(p) || e && n("outside");
|
|
1215
1216
|
}
|
|
1216
|
-
}, [n, e]), S =
|
|
1217
|
+
}, [n, e]), S = mo({
|
|
1217
1218
|
popoverRef: d,
|
|
1218
1219
|
triggerRef: _,
|
|
1219
1220
|
open: e,
|
|
@@ -1230,7 +1231,7 @@ function xs({
|
|
|
1230
1231
|
n(p);
|
|
1231
1232
|
},
|
|
1232
1233
|
[n]
|
|
1233
|
-
), H =
|
|
1234
|
+
), H = re(i);
|
|
1234
1235
|
z(() => {
|
|
1235
1236
|
H || console.warn(
|
|
1236
1237
|
"Psi Menu: `trigger` must be a single React element that forwards props to a focusable node. Menu clones it to attach aria-haspopup and aria-expanded; a string, fragment or array cannot carry them, so the menu renders without its trigger ARIA."
|
|
@@ -1257,7 +1258,7 @@ function xs({
|
|
|
1257
1258
|
)
|
|
1258
1259
|
] });
|
|
1259
1260
|
}
|
|
1260
|
-
function
|
|
1261
|
+
function Ns({ children: e, onSelect: n, variant: i = "neutral", disabled: s = !1 }) {
|
|
1261
1262
|
const { close: a } = $(Ee);
|
|
1262
1263
|
return /* @__PURE__ */ t(
|
|
1263
1264
|
"button",
|
|
@@ -1276,41 +1277,41 @@ function ks({ children: e, onSelect: n, variant: i = "neutral", disabled: s = !1
|
|
|
1276
1277
|
}
|
|
1277
1278
|
);
|
|
1278
1279
|
}
|
|
1279
|
-
function
|
|
1280
|
+
function $s() {
|
|
1280
1281
|
return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: de.separator });
|
|
1281
1282
|
}
|
|
1282
|
-
function
|
|
1283
|
+
function Bs({ children: e, id: n }) {
|
|
1283
1284
|
return /* @__PURE__ */ t("div", { id: n, "data-psi-menu-text": !0, className: de.text, children: e });
|
|
1284
1285
|
}
|
|
1285
|
-
const
|
|
1286
|
-
table:
|
|
1287
|
-
caption:
|
|
1288
|
-
captionDetail:
|
|
1289
|
-
headerCell:
|
|
1290
|
-
cell:
|
|
1291
|
-
rowHeader:
|
|
1292
|
-
sortButton:
|
|
1293
|
-
sortIndicator:
|
|
1294
|
-
selectCell:
|
|
1295
|
-
body:
|
|
1296
|
-
row:
|
|
1297
|
-
sticky:
|
|
1298
|
-
}, De = /* @__PURE__ */ new Set(),
|
|
1286
|
+
const yo = "_table_1maek_3", wo = "_caption_1maek_19", xo = "_captionDetail_1maek_27", ko = "_headerCell_1maek_38", No = "_cell_1maek_44", $o = "_rowHeader_1maek_51", Bo = "_sortButton_1maek_62", So = "_sortIndicator_1maek_79", Co = "_selectCell_1maek_123", Lo = "_body_1maek_130", jo = "_row_1maek_51", To = "_sticky_1maek_155", N = {
|
|
1287
|
+
table: yo,
|
|
1288
|
+
caption: wo,
|
|
1289
|
+
captionDetail: xo,
|
|
1290
|
+
headerCell: ko,
|
|
1291
|
+
cell: No,
|
|
1292
|
+
rowHeader: $o,
|
|
1293
|
+
sortButton: Bo,
|
|
1294
|
+
sortIndicator: So,
|
|
1295
|
+
selectCell: Co,
|
|
1296
|
+
body: Lo,
|
|
1297
|
+
row: jo,
|
|
1298
|
+
sticky: To
|
|
1299
|
+
}, De = /* @__PURE__ */ new Set(), ie = U({
|
|
1299
1300
|
size: 40,
|
|
1300
1301
|
sortable: !1,
|
|
1301
1302
|
sort: null,
|
|
1302
1303
|
selectable: !1,
|
|
1303
1304
|
selected: De
|
|
1304
1305
|
}), We = U([]);
|
|
1305
|
-
function
|
|
1306
|
+
function Io({ children: e, className: n, ref: i, ...s }) {
|
|
1306
1307
|
return /* @__PURE__ */ t("tbody", { ...s, ref: i, className: [N.body, n].filter(Boolean).join(" "), children: e });
|
|
1307
1308
|
}
|
|
1308
|
-
function
|
|
1309
|
+
function zo(e) {
|
|
1309
1310
|
const n = [];
|
|
1310
1311
|
let i = !1, s = !1;
|
|
1311
1312
|
const a = (o) => {
|
|
1312
1313
|
F.forEach(o, function r(c) {
|
|
1313
|
-
if (!
|
|
1314
|
+
if (!re(c)) return;
|
|
1314
1315
|
if (c.type === ye) {
|
|
1315
1316
|
F.forEach(c.props.children, r);
|
|
1316
1317
|
return;
|
|
@@ -1320,16 +1321,16 @@ function Io(e) {
|
|
|
1320
1321
|
});
|
|
1321
1322
|
};
|
|
1322
1323
|
return F.forEach(e, function o(r) {
|
|
1323
|
-
if (
|
|
1324
|
+
if (re(r)) {
|
|
1324
1325
|
if (r.type === ye) {
|
|
1325
1326
|
F.forEach(r.props.children, o);
|
|
1326
1327
|
return;
|
|
1327
1328
|
}
|
|
1328
|
-
r.type ===
|
|
1329
|
+
r.type === Io && (i = !0, a(r.props.children));
|
|
1329
1330
|
}
|
|
1330
1331
|
}), { ids: n, sawBody: i, hasRowWithoutId: s };
|
|
1331
1332
|
}
|
|
1332
|
-
function
|
|
1333
|
+
function Ss({
|
|
1333
1334
|
size: e = 40,
|
|
1334
1335
|
stickyHeader: n,
|
|
1335
1336
|
sortable: i = !1,
|
|
@@ -1343,43 +1344,43 @@ function Bs({
|
|
|
1343
1344
|
ref: _,
|
|
1344
1345
|
...u
|
|
1345
1346
|
}) {
|
|
1346
|
-
const f = [N.table, n && N.sticky, d].filter(Boolean).join(" "), { ids: g, sawBody: m, hasRowWithoutId: b } = ge(() =>
|
|
1347
|
-
return process.env.NODE_ENV !== "production" && (i && !a && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), o && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), o && !m && console.warn("Psi Table: `selectable` is set but no `TableBody` is visible to `Table`. Wrapping `TableBody` in a component other than a Fragment hides its rows, and select-all will clear the selection instead of filling it."), o && b && console.warn("Psi Table: `selectable` is set but a row in `TableBody` has no `rowId`. That row will render without a selection checkbox and select-all will not include it.")), /* @__PURE__ */ t(
|
|
1347
|
+
const f = [N.table, n && N.sticky, d].filter(Boolean).join(" "), { ids: g, sawBody: m, hasRowWithoutId: b } = ge(() => zo(l), [l]);
|
|
1348
|
+
return process.env.NODE_ENV !== "production" && (i && !a && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), o && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), o && !m && console.warn("Psi Table: `selectable` is set but no `TableBody` is visible to `Table`. Wrapping `TableBody` in a component other than a Fragment hides its rows, and select-all will clear the selection instead of filling it."), o && b && console.warn("Psi Table: `selectable` is set but a row in `TableBody` has no `rowId`. That row will render without a selection checkbox and select-all will not include it.")), /* @__PURE__ */ t(ie.Provider, { value: { size: e, sortable: i, sort: s, onSortChange: a, selectable: o, selected: r, onSelectionChange: c }, children: /* @__PURE__ */ t(We.Provider, { value: g, children: /* @__PURE__ */ t("table", { ...u, ref: _, className: f, "data-size": e, children: l }) }) });
|
|
1348
1349
|
}
|
|
1349
|
-
function
|
|
1350
|
-
const { selected: i, onSelectionChange: s } = $(
|
|
1350
|
+
function qo({ rowId: e, label: n }) {
|
|
1351
|
+
const { selected: i, onSelectionChange: s } = $(ie), a = () => {
|
|
1351
1352
|
const o = new Set(i);
|
|
1352
1353
|
o.has(e) ? o.delete(e) : o.add(e), s == null || s(o);
|
|
1353
1354
|
};
|
|
1354
1355
|
return /* @__PURE__ */ t("td", { className: `${N.cell} ${N.selectCell}`, children: /* @__PURE__ */ t(qe, { "aria-label": n, checked: i.has(e), onChange: a }) });
|
|
1355
1356
|
}
|
|
1356
|
-
function
|
|
1357
|
-
const { selected: e, onSelectionChange: n } = $(
|
|
1357
|
+
function Mo() {
|
|
1358
|
+
const { selected: e, onSelectionChange: n } = $(ie), i = $(We), s = i.length > 0 && i.every((r) => e.has(r)), a = i.some((r) => e.has(r)), o = () => {
|
|
1358
1359
|
const r = new Set(e);
|
|
1359
1360
|
s ? i.forEach((c) => r.delete(c)) : i.forEach((c) => r.add(c)), n == null || n(r);
|
|
1360
1361
|
};
|
|
1361
1362
|
return /* @__PURE__ */ t("th", { scope: "col", className: `${N.headerCell} ${N.selectCell}`, children: /* @__PURE__ */ t(qe, { "aria-label": "Select all rows", checked: s, indeterminate: a && !s, onChange: o }) });
|
|
1362
1363
|
}
|
|
1363
|
-
function
|
|
1364
|
-
const { selectable: a } = $(
|
|
1364
|
+
function Cs({ children: e, className: n, ref: i, ...s }) {
|
|
1365
|
+
const { selectable: a } = $(ie);
|
|
1365
1366
|
let o = !1;
|
|
1366
1367
|
const r = a ? F.map(e, (c) => {
|
|
1367
|
-
if (o || !
|
|
1368
|
+
if (o || !re(c)) return c;
|
|
1368
1369
|
o = !0;
|
|
1369
1370
|
const l = c;
|
|
1370
1371
|
return pe(
|
|
1371
1372
|
l,
|
|
1372
1373
|
void 0,
|
|
1373
1374
|
/* @__PURE__ */ h(fe, { children: [
|
|
1374
|
-
/* @__PURE__ */ t(
|
|
1375
|
+
/* @__PURE__ */ t(Mo, {}),
|
|
1375
1376
|
l.props.children
|
|
1376
1377
|
] })
|
|
1377
1378
|
);
|
|
1378
1379
|
}) : e;
|
|
1379
1380
|
return /* @__PURE__ */ t("thead", { ...s, ref: i, className: [N.head, n].filter(Boolean).join(" "), children: r });
|
|
1380
1381
|
}
|
|
1381
|
-
function
|
|
1382
|
-
const { selectable: r, selected: c } = $(
|
|
1382
|
+
function Ls({ rowId: e, selectLabel: n, children: i, className: s, ref: a, ...o }) {
|
|
1383
|
+
const { selectable: r, selected: c } = $(ie), l = e !== void 0 && c.has(e);
|
|
1383
1384
|
return /* @__PURE__ */ h(
|
|
1384
1385
|
"tr",
|
|
1385
1386
|
{
|
|
@@ -1389,14 +1390,14 @@ function Cs({ rowId: e, selectLabel: n, children: i, className: s, ref: a, ...o
|
|
|
1389
1390
|
"data-row-id": e,
|
|
1390
1391
|
"data-selected": l || void 0,
|
|
1391
1392
|
children: [
|
|
1392
|
-
r && e !== void 0 && /* @__PURE__ */ t(
|
|
1393
|
+
r && e !== void 0 && /* @__PURE__ */ t(qo, { rowId: e, label: n ?? `Select row ${e}` }),
|
|
1393
1394
|
i
|
|
1394
1395
|
]
|
|
1395
1396
|
}
|
|
1396
1397
|
);
|
|
1397
1398
|
}
|
|
1398
|
-
function
|
|
1399
|
-
const { sortable: r, sort: c, onSortChange: l } = $(
|
|
1399
|
+
function js({ sortKey: e, numeric: n, children: i, className: s, ref: a, ...o }) {
|
|
1400
|
+
const { sortable: r, sort: c, onSortChange: l } = $(ie), d = r && e !== void 0, _ = d && (c == null ? void 0 : c.key) === e, u = d ? _ ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, f = () => {
|
|
1400
1401
|
if (!e) return;
|
|
1401
1402
|
const g = _ && c.direction === "asc" ? "desc" : "asc";
|
|
1402
1403
|
l == null || l({ key: e, direction: g });
|
|
@@ -1417,24 +1418,24 @@ function Ls({ sortKey: e, numeric: n, children: i, className: s, ref: a, ...o })
|
|
|
1417
1418
|
}
|
|
1418
1419
|
);
|
|
1419
1420
|
}
|
|
1420
|
-
function
|
|
1421
|
+
function Ts({ numeric: e, colSpan: n, rowHeader: i, children: s, className: a, ref: o, ...r }) {
|
|
1421
1422
|
const c = [N.cell, i && N.rowHeader, a].filter(Boolean).join(" ");
|
|
1422
1423
|
return i ? /* @__PURE__ */ t("th", { ...r, ref: o, scope: "row", colSpan: n, className: c, "data-numeric": e || void 0, children: s }) : /* @__PURE__ */ t("td", { ...r, ref: o, colSpan: n, className: c, "data-numeric": e || void 0, children: s });
|
|
1423
1424
|
}
|
|
1424
|
-
function
|
|
1425
|
+
function Is({ children: e, detail: n, className: i, ref: s, ...a }) {
|
|
1425
1426
|
return /* @__PURE__ */ h("caption", { ...a, ref: s, className: [N.caption, i].filter(Boolean).join(" "), children: [
|
|
1426
1427
|
e,
|
|
1427
1428
|
n != null && /* @__PURE__ */ t("span", { className: N.captionDetail, children: n })
|
|
1428
1429
|
] });
|
|
1429
1430
|
}
|
|
1430
|
-
const
|
|
1431
|
-
nav:
|
|
1432
|
-
ellipsis:
|
|
1431
|
+
const Eo = "_nav_166vs_6", Do = "_ellipsis_166vs_12", je = {
|
|
1432
|
+
nav: Eo,
|
|
1433
|
+
ellipsis: Do
|
|
1433
1434
|
};
|
|
1434
1435
|
function ae(e, n) {
|
|
1435
1436
|
return Array.from({ length: n - e + 1 }, (i, s) => e + s);
|
|
1436
1437
|
}
|
|
1437
|
-
function
|
|
1438
|
+
function Wo(e, n, i) {
|
|
1438
1439
|
const s = Math.max(0, i), a = s * 2 + 1, o = a + 4;
|
|
1439
1440
|
if (n <= o)
|
|
1440
1441
|
return ae(1, n);
|
|
@@ -1449,7 +1450,7 @@ function Do(e, n, i) {
|
|
|
1449
1450
|
}
|
|
1450
1451
|
return l && d ? [1, "ellipsis", ...ae(r, c), "ellipsis", n] : ae(1, n);
|
|
1451
1452
|
}
|
|
1452
|
-
function
|
|
1453
|
+
function zs({
|
|
1453
1454
|
page: e,
|
|
1454
1455
|
pageCount: n,
|
|
1455
1456
|
onPageChange: i,
|
|
@@ -1461,7 +1462,7 @@ function Is({
|
|
|
1461
1462
|
process.env.NODE_ENV !== "production" && (!r || e !== l) && console.warn(
|
|
1462
1463
|
`Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${r ? l : "none"}. Clamp \`page\` when \`pageCount\` shrinks — e.g. after filtering.`
|
|
1463
1464
|
);
|
|
1464
|
-
const d = r ?
|
|
1465
|
+
const d = r ? Wo(l, n, s) : [];
|
|
1465
1466
|
return /* @__PURE__ */ h("nav", { "aria-label": a, className: [je.nav, o].filter(Boolean).join(" "), children: [
|
|
1466
1467
|
/* @__PURE__ */ t(
|
|
1467
1468
|
le,
|
|
@@ -1500,10 +1501,10 @@ function Is({
|
|
|
1500
1501
|
)
|
|
1501
1502
|
] });
|
|
1502
1503
|
}
|
|
1503
|
-
const
|
|
1504
|
-
nav:
|
|
1504
|
+
const Po = "_nav_jbhk1_5", Ao = {
|
|
1505
|
+
nav: Po
|
|
1505
1506
|
};
|
|
1506
|
-
function
|
|
1507
|
+
function qs({
|
|
1507
1508
|
hasPrevious: e,
|
|
1508
1509
|
hasNext: n,
|
|
1509
1510
|
onPrevious: i,
|
|
@@ -1514,43 +1515,43 @@ function zs({
|
|
|
1514
1515
|
"aria-label": c = "Pagination",
|
|
1515
1516
|
className: l
|
|
1516
1517
|
}) {
|
|
1517
|
-
return /* @__PURE__ */ h("nav", { "aria-label": c, className: [
|
|
1518
|
+
return /* @__PURE__ */ h("nav", { "aria-label": c, className: [Ao.nav, l].filter(Boolean).join(" "), children: [
|
|
1518
1519
|
/* @__PURE__ */ h(ce, { variant: "ghost", size: r, disabled: !e, onClick: i, children: [
|
|
1519
|
-
/* @__PURE__ */ t(
|
|
1520
|
+
/* @__PURE__ */ t(ut, { size: 16, "aria-hidden": "true" }),
|
|
1520
1521
|
/* @__PURE__ */ t("span", { children: a })
|
|
1521
1522
|
] }),
|
|
1522
1523
|
/* @__PURE__ */ h(ce, { variant: "ghost", size: r, disabled: !n, onClick: s, children: [
|
|
1523
1524
|
/* @__PURE__ */ t("span", { children: o }),
|
|
1524
|
-
/* @__PURE__ */ t(
|
|
1525
|
+
/* @__PURE__ */ t(dt, { size: 16, "aria-hidden": "true" })
|
|
1525
1526
|
] })
|
|
1526
1527
|
] });
|
|
1527
1528
|
}
|
|
1528
1529
|
const ke = {
|
|
1529
|
-
neutral:
|
|
1530
|
-
success:
|
|
1531
|
-
warning:
|
|
1532
|
-
danger:
|
|
1533
|
-
},
|
|
1530
|
+
neutral: ht,
|
|
1531
|
+
success: lt,
|
|
1532
|
+
warning: ft,
|
|
1533
|
+
danger: gt
|
|
1534
|
+
}, Ro = {
|
|
1534
1535
|
neutral: null,
|
|
1535
1536
|
success: "Success:",
|
|
1536
1537
|
warning: "Warning:",
|
|
1537
1538
|
danger: "Error:"
|
|
1538
1539
|
};
|
|
1539
1540
|
function Ne(e, n) {
|
|
1540
|
-
return n === void 0 ?
|
|
1541
|
-
}
|
|
1542
|
-
const
|
|
1543
|
-
toast:
|
|
1544
|
-
icon:
|
|
1545
|
-
iconNeutral:
|
|
1546
|
-
iconSuccess:
|
|
1547
|
-
iconWarning:
|
|
1548
|
-
iconDanger:
|
|
1549
|
-
body:
|
|
1550
|
-
action:
|
|
1551
|
-
region:
|
|
1552
|
-
live:
|
|
1553
|
-
},
|
|
1541
|
+
return n === void 0 ? Ro[e] : n;
|
|
1542
|
+
}
|
|
1543
|
+
const Ho = "_toast_1gxg8_10", Vo = "_icon_1gxg8_39", Oo = "_iconNeutral_1gxg8_44", Ko = "_iconSuccess_1gxg8_45", Fo = "_iconWarning_1gxg8_46", Uo = "_iconDanger_1gxg8_47", Go = "_body_1gxg8_51", Yo = "_action_1gxg8_55", Zo = "_region_1gxg8_61", Xo = "_live_1gxg8_91", M = {
|
|
1544
|
+
toast: Ho,
|
|
1545
|
+
icon: Vo,
|
|
1546
|
+
iconNeutral: Oo,
|
|
1547
|
+
iconSuccess: Ko,
|
|
1548
|
+
iconWarning: Fo,
|
|
1549
|
+
iconDanger: Uo,
|
|
1550
|
+
body: Go,
|
|
1551
|
+
action: Yo,
|
|
1552
|
+
region: Zo,
|
|
1553
|
+
live: Xo
|
|
1554
|
+
}, Jo = {
|
|
1554
1555
|
neutral: M.iconNeutral,
|
|
1555
1556
|
success: M.iconSuccess,
|
|
1556
1557
|
warning: M.iconWarning,
|
|
@@ -1567,7 +1568,7 @@ function we({
|
|
|
1567
1568
|
}) {
|
|
1568
1569
|
const c = ke[e], l = Ne(e, a), d = [M.toast, o].filter(Boolean).join(" ");
|
|
1569
1570
|
return /* @__PURE__ */ h("div", { ref: r, className: d, "data-variant": e, "data-psi-toast": !0, children: [
|
|
1570
|
-
/* @__PURE__ */ t("span", { className: [M.icon,
|
|
1571
|
+
/* @__PURE__ */ t("span", { className: [M.icon, Jo[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
|
|
1571
1572
|
/* @__PURE__ */ h("div", { className: M.body, children: [
|
|
1572
1573
|
l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
|
|
1573
1574
|
n
|
|
@@ -1588,13 +1589,13 @@ function we({
|
|
|
1588
1589
|
function Pe({ children: e }) {
|
|
1589
1590
|
return /* @__PURE__ */ t("div", { className: "psi-sr-only", "data-psi-announcement": !0, children: e });
|
|
1590
1591
|
}
|
|
1591
|
-
const
|
|
1592
|
+
const Qo = /* @__PURE__ */ new Set(["warning", "danger"]);
|
|
1592
1593
|
function Te(e) {
|
|
1593
|
-
if (!
|
|
1594
|
+
if (!re(e) || e.type !== we && e.type !== Pe) return !1;
|
|
1594
1595
|
const { politeness: n, variant: i } = e.props;
|
|
1595
|
-
return n !== void 0 ? n === "assertive" : e.type === we &&
|
|
1596
|
+
return n !== void 0 ? n === "assertive" : e.type === we && Qo.has(i ?? "neutral");
|
|
1596
1597
|
}
|
|
1597
|
-
function
|
|
1598
|
+
function ei({
|
|
1598
1599
|
placement: e = "bottom-end",
|
|
1599
1600
|
"aria-label": n = "Notifications",
|
|
1600
1601
|
children: i,
|
|
@@ -1634,7 +1635,7 @@ function Qo({
|
|
|
1634
1635
|
);
|
|
1635
1636
|
}
|
|
1636
1637
|
const Ae = U(null);
|
|
1637
|
-
function
|
|
1638
|
+
function Ms() {
|
|
1638
1639
|
const e = $(Ae);
|
|
1639
1640
|
if (!e)
|
|
1640
1641
|
throw new Error(
|
|
@@ -1642,8 +1643,8 @@ function qs() {
|
|
|
1642
1643
|
);
|
|
1643
1644
|
return e;
|
|
1644
1645
|
}
|
|
1645
|
-
const
|
|
1646
|
-
function
|
|
1646
|
+
const ni = 1e3;
|
|
1647
|
+
function Es({
|
|
1647
1648
|
limit: e = 3,
|
|
1648
1649
|
duration: n = 5e3,
|
|
1649
1650
|
actionDuration: i = 1e4,
|
|
@@ -1651,7 +1652,7 @@ function Ms({
|
|
|
1651
1652
|
children: a,
|
|
1652
1653
|
...o
|
|
1653
1654
|
}) {
|
|
1654
|
-
const [r, c] =
|
|
1655
|
+
const [r, c] = oe([]), [l, d] = oe([]), _ = B(/* @__PURE__ */ new Map()), u = B(!1), f = B(0), g = R(), m = k((v) => {
|
|
1655
1656
|
const p = _.current.get(v);
|
|
1656
1657
|
(p == null ? void 0 : p.handle) !== void 0 && clearTimeout(p.handle), _.current.delete(v), c((w) => w.some((C) => C.id === v) ? w.filter((C) => C.id !== v) : w), d((w) => w.some((C) => C.id === v) ? w.filter((C) => C.id !== v) : w);
|
|
1657
1658
|
}, []), b = k(
|
|
@@ -1679,7 +1680,7 @@ function Ms({
|
|
|
1679
1680
|
), j = k(
|
|
1680
1681
|
(v, { politeness: p = "polite" } = {}) => {
|
|
1681
1682
|
const w = `${g}-${f.current++}`;
|
|
1682
|
-
return d((C) => [...C, { id: w, message: v, politeness: p }]), b(w,
|
|
1683
|
+
return d((C) => [...C, { id: w, message: v, politeness: p }]), b(w, ni), w;
|
|
1683
1684
|
},
|
|
1684
1685
|
[b, g]
|
|
1685
1686
|
), S = k(() => {
|
|
@@ -1732,7 +1733,7 @@ function Ms({
|
|
|
1732
1733
|
onPointerLeave: y,
|
|
1733
1734
|
onFocusCapture: T,
|
|
1734
1735
|
onBlurCapture: y,
|
|
1735
|
-
children: /* @__PURE__ */ h(
|
|
1736
|
+
children: /* @__PURE__ */ h(ei, { ...o, placement: s, children: [
|
|
1736
1737
|
r.map((v) => /* @__PURE__ */ t(
|
|
1737
1738
|
we,
|
|
1738
1739
|
{
|
|
@@ -1751,23 +1752,23 @@ function Ms({
|
|
|
1751
1752
|
)
|
|
1752
1753
|
] });
|
|
1753
1754
|
}
|
|
1754
|
-
const
|
|
1755
|
-
banner:
|
|
1756
|
-
icon:
|
|
1757
|
-
iconNeutral:
|
|
1758
|
-
iconSuccess:
|
|
1759
|
-
iconWarning:
|
|
1760
|
-
iconDanger:
|
|
1761
|
-
body:
|
|
1762
|
-
title:
|
|
1763
|
-
action:
|
|
1764
|
-
},
|
|
1755
|
+
const ti = "_banner_15y1f_7", ri = "_icon_15y1f_26", oi = "_iconNeutral_15y1f_31", ii = "_iconSuccess_15y1f_32", si = "_iconWarning_15y1f_33", ai = "_iconDanger_15y1f_34", ci = "_body_15y1f_36", li = "_title_15y1f_50", di = "_action_15y1f_55", P = {
|
|
1756
|
+
banner: ti,
|
|
1757
|
+
icon: ri,
|
|
1758
|
+
iconNeutral: oi,
|
|
1759
|
+
iconSuccess: ii,
|
|
1760
|
+
iconWarning: si,
|
|
1761
|
+
iconDanger: ai,
|
|
1762
|
+
body: ci,
|
|
1763
|
+
title: li,
|
|
1764
|
+
action: di
|
|
1765
|
+
}, ui = {
|
|
1765
1766
|
neutral: P.iconNeutral,
|
|
1766
1767
|
success: P.iconSuccess,
|
|
1767
1768
|
warning: P.iconWarning,
|
|
1768
1769
|
danger: P.iconDanger
|
|
1769
1770
|
};
|
|
1770
|
-
function
|
|
1771
|
+
function Ds({
|
|
1771
1772
|
variant: e = "neutral",
|
|
1772
1773
|
title: n,
|
|
1773
1774
|
children: i,
|
|
@@ -1780,7 +1781,7 @@ function Es({
|
|
|
1780
1781
|
}) {
|
|
1781
1782
|
const d = ke[e], _ = Ne(e, o), u = [P.banner, r].filter(Boolean).join(" ");
|
|
1782
1783
|
return /* @__PURE__ */ h("div", { ...l, ref: c, className: u, "data-variant": e, "data-psi-banner": !0, children: [
|
|
1783
|
-
/* @__PURE__ */ t("span", { className: [P.icon,
|
|
1784
|
+
/* @__PURE__ */ t("span", { className: [P.icon, ui[e]].join(" "), children: /* @__PURE__ */ t(d, { size: 20, "aria-hidden": "true" }) }),
|
|
1784
1785
|
/* @__PURE__ */ h("div", { className: P.body, children: [
|
|
1785
1786
|
_ && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: _ }),
|
|
1786
1787
|
n != null && /* @__PURE__ */ t("strong", { className: P.title, children: n }),
|
|
@@ -1790,23 +1791,23 @@ function Es({
|
|
|
1790
1791
|
a && /* @__PURE__ */ t(le, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: a, children: /* @__PURE__ */ t(xe, { "aria-hidden": "true" }) })
|
|
1791
1792
|
] });
|
|
1792
1793
|
}
|
|
1793
|
-
const
|
|
1794
|
-
inlineAlert:
|
|
1795
|
-
icon:
|
|
1796
|
-
iconNeutral:
|
|
1797
|
-
iconSuccess:
|
|
1798
|
-
iconWarning:
|
|
1799
|
-
iconDanger:
|
|
1800
|
-
body:
|
|
1801
|
-
title:
|
|
1802
|
-
action:
|
|
1803
|
-
},
|
|
1794
|
+
const _i = "_inlineAlert_16390_7", hi = "_icon_16390_38", fi = "_iconNeutral_16390_43", gi = "_iconSuccess_16390_44", pi = "_iconWarning_16390_45", mi = "_iconDanger_16390_46", vi = "_body_16390_48", bi = "_title_16390_62", yi = "_action_16390_67", A = {
|
|
1795
|
+
inlineAlert: _i,
|
|
1796
|
+
icon: hi,
|
|
1797
|
+
iconNeutral: fi,
|
|
1798
|
+
iconSuccess: gi,
|
|
1799
|
+
iconWarning: pi,
|
|
1800
|
+
iconDanger: mi,
|
|
1801
|
+
body: vi,
|
|
1802
|
+
title: bi,
|
|
1803
|
+
action: yi
|
|
1804
|
+
}, wi = {
|
|
1804
1805
|
neutral: A.iconNeutral,
|
|
1805
1806
|
success: A.iconSuccess,
|
|
1806
1807
|
warning: A.iconWarning,
|
|
1807
1808
|
danger: A.iconDanger
|
|
1808
1809
|
};
|
|
1809
|
-
function
|
|
1810
|
+
function Ws({
|
|
1810
1811
|
variant: e = "neutral",
|
|
1811
1812
|
title: n,
|
|
1812
1813
|
children: i,
|
|
@@ -1818,7 +1819,7 @@ function Ds({
|
|
|
1818
1819
|
}) {
|
|
1819
1820
|
const l = ke[e], d = Ne(e, a), _ = [A.inlineAlert, o].filter(Boolean).join(" ");
|
|
1820
1821
|
return /* @__PURE__ */ h("div", { ...c, ref: r, className: _, "data-variant": e, "data-psi-inline-alert": !0, children: [
|
|
1821
|
-
/* @__PURE__ */ t("span", { className: [A.icon,
|
|
1822
|
+
/* @__PURE__ */ t("span", { className: [A.icon, wi[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
|
|
1822
1823
|
/* @__PURE__ */ h("div", { className: A.body, children: [
|
|
1823
1824
|
d && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: d }),
|
|
1824
1825
|
n != null && /* @__PURE__ */ t("strong", { className: A.title, children: n }),
|
|
@@ -1827,11 +1828,11 @@ function Ds({
|
|
|
1827
1828
|
s != null && /* @__PURE__ */ t("div", { className: A.action, children: s })
|
|
1828
1829
|
] });
|
|
1829
1830
|
}
|
|
1830
|
-
const
|
|
1831
|
-
skeleton:
|
|
1832
|
-
line:
|
|
1831
|
+
const xi = "_skeleton_1yo7t_12", ki = "_line_1yo7t_28", Ie = {
|
|
1832
|
+
skeleton: xi,
|
|
1833
|
+
line: ki
|
|
1833
1834
|
};
|
|
1834
|
-
function
|
|
1835
|
+
function Ps({
|
|
1835
1836
|
variant: e = "text",
|
|
1836
1837
|
lines: n = 1,
|
|
1837
1838
|
size: i = 40,
|
|
@@ -1854,7 +1855,7 @@ function Ws({
|
|
|
1854
1855
|
}
|
|
1855
1856
|
);
|
|
1856
1857
|
}
|
|
1857
|
-
function
|
|
1858
|
+
function As({
|
|
1858
1859
|
value: e,
|
|
1859
1860
|
label: n = "Copy",
|
|
1860
1861
|
size: i = 32,
|
|
@@ -1881,17 +1882,17 @@ function Ps({
|
|
|
1881
1882
|
);
|
|
1882
1883
|
},
|
|
1883
1884
|
children: [
|
|
1884
|
-
/* @__PURE__ */ t(
|
|
1885
|
+
/* @__PURE__ */ t(_t, { size: 16, "aria-hidden": "true" }),
|
|
1885
1886
|
/* @__PURE__ */ t("span", { children: n })
|
|
1886
1887
|
]
|
|
1887
1888
|
}
|
|
1888
1889
|
);
|
|
1889
1890
|
}
|
|
1890
|
-
const
|
|
1891
|
-
tabs:
|
|
1892
|
-
list:
|
|
1893
|
-
tab:
|
|
1894
|
-
panel:
|
|
1891
|
+
const Ni = "_tabs_1x9om_8", $i = "_list_1x9om_21", Bi = "_tab_1x9om_8", Si = "_panel_1x9om_99", me = {
|
|
1892
|
+
tabs: Ni,
|
|
1893
|
+
list: $i,
|
|
1894
|
+
tab: Bi,
|
|
1895
|
+
panel: Si
|
|
1895
1896
|
}, Re = U(null);
|
|
1896
1897
|
function $e(e) {
|
|
1897
1898
|
const n = $(Re);
|
|
@@ -1901,7 +1902,7 @@ function $e(e) {
|
|
|
1901
1902
|
);
|
|
1902
1903
|
return n;
|
|
1903
1904
|
}
|
|
1904
|
-
function
|
|
1905
|
+
function Rs({
|
|
1905
1906
|
value: e,
|
|
1906
1907
|
onValueChange: n,
|
|
1907
1908
|
orientation: i = "horizontal",
|
|
@@ -1909,7 +1910,7 @@ function As({
|
|
|
1909
1910
|
className: a,
|
|
1910
1911
|
ref: o
|
|
1911
1912
|
}) {
|
|
1912
|
-
const r = R(), [c, l] =
|
|
1913
|
+
const r = R(), [c, l] = oe([]), d = k((g) => (l((m) => [...m, g]), () => l((m) => m.filter((b) => b !== g))), []), { tabStop: _, unmatched: u } = ge(() => {
|
|
1913
1914
|
if (c.length === 0) return { tabStop: e, unmatched: !1 };
|
|
1914
1915
|
if (c.some((b) => b.value === e)) return { tabStop: e, unmatched: !1 };
|
|
1915
1916
|
const g = [...c].sort(
|
|
@@ -1942,7 +1943,7 @@ function He(e, n) {
|
|
|
1942
1943
|
function Ve(e, n) {
|
|
1943
1944
|
return `${e}panel-${n}`;
|
|
1944
1945
|
}
|
|
1945
|
-
function
|
|
1946
|
+
function Ci({ listRef: e, orientation: n, onValueChange: i }) {
|
|
1946
1947
|
const s = k(() => {
|
|
1947
1948
|
const o = e.current;
|
|
1948
1949
|
return o ? Array.from(
|
|
@@ -1981,10 +1982,10 @@ function Si({ listRef: e, orientation: n, onValueChange: i }) {
|
|
|
1981
1982
|
[a, s, n]
|
|
1982
1983
|
);
|
|
1983
1984
|
}
|
|
1984
|
-
function
|
|
1985
|
+
function Hs({ "aria-label": e, children: n, className: i, ref: s }) {
|
|
1985
1986
|
const { orientation: a, onValueChange: o } = $e("TabList"), r = B(null), c = (d) => {
|
|
1986
1987
|
r.current = d, typeof s == "function" ? s(d) : s && (s.current = d);
|
|
1987
|
-
}, l =
|
|
1988
|
+
}, l = Ci({ listRef: r, orientation: a, onValueChange: o });
|
|
1988
1989
|
return /* @__PURE__ */ t(
|
|
1989
1990
|
"div",
|
|
1990
1991
|
{
|
|
@@ -1998,7 +1999,7 @@ function Rs({ "aria-label": e, children: n, className: i, ref: s }) {
|
|
|
1998
1999
|
}
|
|
1999
2000
|
);
|
|
2000
2001
|
}
|
|
2001
|
-
function
|
|
2002
|
+
function Vs({ value: e, children: n, disabled: i = !1, className: s, ref: a }) {
|
|
2002
2003
|
const o = $e("Tab"), r = o.value === e, c = B(null), { registerTab: l } = o, d = (_) => {
|
|
2003
2004
|
c.current = _, typeof a == "function" ? a(_) : a && (a.current = _);
|
|
2004
2005
|
};
|
|
@@ -2026,7 +2027,7 @@ function Hs({ value: e, children: n, disabled: i = !1, className: s, ref: a }) {
|
|
|
2026
2027
|
}
|
|
2027
2028
|
);
|
|
2028
2029
|
}
|
|
2029
|
-
function
|
|
2030
|
+
function Os({ value: e, children: n, className: i, ref: s }) {
|
|
2030
2031
|
const a = $e("TabPanel"), o = a.value === e;
|
|
2031
2032
|
return /* @__PURE__ */ t(
|
|
2032
2033
|
"div",
|
|
@@ -2044,92 +2045,92 @@ function Vs({ value: e, children: n, className: i, ref: s }) {
|
|
|
2044
2045
|
}
|
|
2045
2046
|
export {
|
|
2046
2047
|
Pe as Announcement,
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2048
|
+
Ai as AppShell,
|
|
2049
|
+
Ri as AspectRatio,
|
|
2050
|
+
Ds as Banner,
|
|
2050
2051
|
ce as Button,
|
|
2051
|
-
|
|
2052
|
+
Ti as Card,
|
|
2052
2053
|
qe as Checkbox,
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2054
|
+
As as CopyButton,
|
|
2055
|
+
qs as CursorPagination,
|
|
2056
|
+
qi as DescriptionItem,
|
|
2057
|
+
zi as DescriptionList,
|
|
2058
|
+
us as Dialog,
|
|
2059
|
+
Hi as Field,
|
|
2059
2060
|
G as FieldContext,
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2061
|
+
gt as IconAlertCircle,
|
|
2062
|
+
ft as IconAlertTriangle,
|
|
2063
|
+
ns as IconArrowDown,
|
|
2064
|
+
ts as IconArrowUpRight,
|
|
2064
2065
|
le as IconButton,
|
|
2065
|
-
|
|
2066
|
+
lt as IconCheck,
|
|
2066
2067
|
Gn as IconChevronDown,
|
|
2067
|
-
|
|
2068
|
-
|
|
2068
|
+
ut as IconChevronLeft,
|
|
2069
|
+
dt as IconChevronRight,
|
|
2069
2070
|
xe as IconClose,
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2071
|
+
_t as IconCopy,
|
|
2072
|
+
Yi as IconEdit,
|
|
2073
|
+
Xi as IconExternalLink,
|
|
2074
|
+
Ji as IconEye,
|
|
2075
|
+
Qi as IconEyeOff,
|
|
2076
|
+
os as IconGitHub,
|
|
2077
|
+
ht as IconInfo,
|
|
2078
|
+
ss as IconInstagram,
|
|
2079
|
+
rs as IconLinkedIn,
|
|
2080
|
+
es as IconLoader,
|
|
2081
|
+
ls as IconLogOut,
|
|
2082
|
+
cs as IconMenu,
|
|
2083
|
+
Ki as IconMinus,
|
|
2084
|
+
as as IconMoreHorizontal,
|
|
2085
|
+
Oi as IconPlus,
|
|
2086
|
+
Fi as IconSearch,
|
|
2087
|
+
Ui as IconSettings,
|
|
2088
|
+
ds as IconSimCard,
|
|
2089
|
+
Zi as IconTrash,
|
|
2090
|
+
Gi as IconUser,
|
|
2091
|
+
is as IconX,
|
|
2092
|
+
Ws as InlineAlert,
|
|
2093
|
+
_s as Input,
|
|
2094
|
+
ks as Menu,
|
|
2094
2095
|
Ee as MenuContext,
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2096
|
+
Ns as MenuItem,
|
|
2097
|
+
$s as MenuSeparator,
|
|
2098
|
+
Bs as MenuText,
|
|
2099
|
+
Mi as NavBar,
|
|
2100
|
+
Wi as NavGroup,
|
|
2101
|
+
Pi as NavItem,
|
|
2102
|
+
Di as NavTree,
|
|
2103
|
+
zs as Pagination,
|
|
2104
|
+
Ii as Panel,
|
|
2105
|
+
bs as Radio,
|
|
2106
|
+
vs as RadioGroup,
|
|
2106
2107
|
Me as RadioGroupContext,
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2108
|
+
hs as Select,
|
|
2109
|
+
Ps as Skeleton,
|
|
2110
|
+
Ei as SkipLink,
|
|
2111
|
+
gs as Stack,
|
|
2112
|
+
fs as Switch,
|
|
2113
|
+
Vs as Tab,
|
|
2114
|
+
Hs as TabList,
|
|
2115
|
+
Os as TabPanel,
|
|
2116
|
+
Ss as Table,
|
|
2117
|
+
Io as TableBody,
|
|
2118
|
+
Is as TableCaption,
|
|
2119
|
+
Ts as TableCell,
|
|
2120
|
+
Cs as TableHead,
|
|
2121
|
+
js as TableHeaderCell,
|
|
2122
|
+
Ls as TableRow,
|
|
2123
|
+
Rs as Tabs,
|
|
2123
2124
|
Re as TabsContext,
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2125
|
+
ys as Tag,
|
|
2126
|
+
ps as Text,
|
|
2127
|
+
ms as Textarea,
|
|
2127
2128
|
we as Toast,
|
|
2128
2129
|
Ae as ToastContext,
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2130
|
+
Es as ToastProvider,
|
|
2131
|
+
ei as ToastRegion,
|
|
2132
|
+
xs as Toolbar,
|
|
2133
|
+
ws as Tooltip,
|
|
2134
|
+
Vi as useFieldControl,
|
|
2135
|
+
Ms as useToast
|
|
2135
2136
|
};
|