@handamade/psi-react 0.14.0 → 0.14.2
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/AspectRatio/AspectRatio.d.ts +3 -1
- package/dist/AspectRatio/AspectRatio.d.ts.map +1 -1
- package/dist/Button/Button.d.ts +3 -1
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Card/Card.d.ts +2 -0
- package/dist/Card/Card.d.ts.map +1 -1
- package/dist/DescriptionList/DescriptionItem.d.ts +2 -0
- package/dist/DescriptionList/DescriptionItem.d.ts.map +1 -1
- package/dist/DescriptionList/DescriptionList.d.ts +3 -1
- package/dist/DescriptionList/DescriptionList.d.ts.map +1 -1
- package/dist/Dialog/Dialog.d.ts +2 -0
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Field/Field.d.ts +2 -0
- package/dist/Field/Field.d.ts.map +1 -1
- package/dist/IconButton/IconButton.d.ts +3 -1
- package/dist/IconButton/IconButton.d.ts.map +1 -1
- package/dist/Menu/Menu.d.ts +1 -0
- package/dist/Menu/Menu.d.ts.map +1 -1
- package/dist/Menu/MenuItem.d.ts +1 -0
- package/dist/Menu/MenuItem.d.ts.map +1 -1
- package/dist/Panel/Panel.d.ts +3 -1
- package/dist/Panel/Panel.d.ts.map +1 -1
- package/dist/Select/Select.d.ts +3 -1
- package/dist/Select/Select.d.ts.map +1 -1
- package/dist/Table/Table.d.ts +1 -0
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/TableBody.d.ts +1 -0
- package/dist/Table/TableBody.d.ts.map +1 -1
- package/dist/Table/TableCell.d.ts +1 -0
- package/dist/Table/TableCell.d.ts.map +1 -1
- package/dist/Table/TableHead.d.ts +1 -0
- package/dist/Table/TableHead.d.ts.map +1 -1
- package/dist/Table/TableHeaderCell.d.ts +1 -0
- package/dist/Table/TableHeaderCell.d.ts.map +1 -1
- package/dist/Table/TableRow.d.ts +1 -0
- package/dist/Table/TableRow.d.ts.map +1 -1
- package/dist/Toolbar/Toolbar.d.ts +3 -1
- package/dist/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +122 -114
- package/dist/manifest.json +133 -0
- package/dist/patterns.json +8 -2
- package/docs/AspectRatio.md +1 -0
- package/docs/Button.md +1 -0
- package/docs/Card.md +1 -0
- package/docs/DescriptionItem.md +1 -0
- package/docs/DescriptionList.md +1 -0
- package/docs/Dialog.md +1 -0
- package/docs/Field.md +1 -0
- package/docs/IconButton.md +1 -0
- package/docs/Menu.md +1 -0
- package/docs/MenuItem.md +1 -0
- package/docs/Panel.md +1 -0
- package/docs/Select.md +1 -0
- package/docs/Table.md +1 -0
- package/docs/TableBody.md +1 -0
- package/docs/TableCell.md +1 -0
- package/docs/TableHead.md +1 -0
- package/docs/TableHeaderCell.md +1 -0
- package/docs/TableRow.md +1 -0
- package/docs/Toolbar.md +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as f, Fragment as X } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as R, useId as H, useRef as k, useEffect as N, useContext as S, useState as _e, useCallback as g, cloneElement as ne, isValidElement as U, useMemo as oe, Children as A, Fragment as ce } from "react";
|
|
3
3
|
const Be = "_button_c94w9_3", $e = "_disabled_c94w9_30", Ne = "_size24_c94w9_44", Le = "_size32_c94w9_54", Se = "_size40_c94w9_64", je = "_size48_c94w9_74", ze = "_accent_c94w9_87", Te = "_accentSubtle_c94w9_99", Ie = "_neutral_c94w9_111", Ee = "_neutralSubtle_c94w9_123", Me = "_ghost_c94w9_135", Ae = "_danger_c94w9_147", Pe = "_dangerSubtle_c94w9_159", We = "_outline_c94w9_171", w = {
|
|
4
4
|
button: Be,
|
|
@@ -159,7 +159,7 @@ function Eo({
|
|
|
159
159
|
i ? I.hoverLift : void 0,
|
|
160
160
|
s
|
|
161
161
|
].filter(Boolean).join(" ");
|
|
162
|
-
return /* @__PURE__ */
|
|
162
|
+
return /* @__PURE__ */ f("div", { ref: r, className: a, ...o, children: [
|
|
163
163
|
t != null && /* @__PURE__ */ n("div", { className: I.media, children: t }),
|
|
164
164
|
/* @__PURE__ */ n("div", { className: I.body, children: c })
|
|
165
165
|
] });
|
|
@@ -199,7 +199,7 @@ function Ao({
|
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
201
|
function Po({ term: e, className: t, children: i, ref: s, ...c }) {
|
|
202
|
-
return /* @__PURE__ */
|
|
202
|
+
return /* @__PURE__ */ f("div", { ref: s, className: [Z.item, t].filter(Boolean).join(" "), ...c, children: [
|
|
203
203
|
/* @__PURE__ */ n("dt", { className: Z.term, children: e }),
|
|
204
204
|
/* @__PURE__ */ n("dd", { className: Z.value, children: i })
|
|
205
205
|
] });
|
|
@@ -213,7 +213,7 @@ const ht = "_navbar_1gyow_1", _t = "_inner_1gyow_12", ft = "_brand_1gyow_19", pt
|
|
|
213
213
|
};
|
|
214
214
|
function Wo({ brand: e, actions: t, children: i, className: s, ref: c, ...r }) {
|
|
215
215
|
const o = [F.navbar, s].filter(Boolean).join(" ");
|
|
216
|
-
return /* @__PURE__ */ n("header", { ref: c, className: o, ...r, children: /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ n("header", { ref: c, className: o, ...r, children: /* @__PURE__ */ f("div", { className: `psi-container ${F.inner}`, children: [
|
|
217
217
|
e != null && /* @__PURE__ */ n("div", { className: F.brand, children: e }),
|
|
218
218
|
/* @__PURE__ */ n("nav", { className: F.links, children: i }),
|
|
219
219
|
t != null && /* @__PURE__ */ n("div", { className: F.actions, children: t })
|
|
@@ -245,10 +245,10 @@ function Ro({
|
|
|
245
245
|
ref: d,
|
|
246
246
|
...l
|
|
247
247
|
}) {
|
|
248
|
-
const u = H(), h = r ?? u, _ = !!i, m = _ ? i : t, y = m != null && m !== !1 ? `${h}-message` : void 0, z = [E.field, _ && E.invalid, o].filter(Boolean).join(" "), C = e != null ? /* @__PURE__ */
|
|
248
|
+
const u = H(), h = r ?? u, _ = !!i, m = _ ? i : t, y = m != null && m !== !1 ? `${h}-message` : void 0, z = [E.field, _ && E.invalid, o].filter(Boolean).join(" "), C = e != null ? /* @__PURE__ */ f(X, { children: [
|
|
249
249
|
e,
|
|
250
250
|
s && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: E.marker, children: " *" })
|
|
251
|
-
] }) : null, b = /* @__PURE__ */
|
|
251
|
+
] }) : null, b = /* @__PURE__ */ f(X, { children: [
|
|
252
252
|
C != null && (c ? /* @__PURE__ */ n("legend", { className: E.label, children: C }) : /* @__PURE__ */ n("label", { className: E.label, htmlFor: h, children: C })),
|
|
253
253
|
/* @__PURE__ */ n(re.Provider, { value: { id: h, describedBy: y, invalid: _, required: s }, children: a }),
|
|
254
254
|
y && /* @__PURE__ */ n("p", { id: y, className: E.message, "aria-live": "polite", children: m })
|
|
@@ -265,7 +265,7 @@ function Ro({
|
|
|
265
265
|
) : /* @__PURE__ */ n("div", { ref: d, className: z, ...l, children: b });
|
|
266
266
|
}
|
|
267
267
|
function Ho({ size: e = 20, ...t }) {
|
|
268
|
-
return /* @__PURE__ */
|
|
268
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
269
269
|
/* @__PURE__ */ n("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
|
270
270
|
/* @__PURE__ */ n("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
|
|
271
271
|
] });
|
|
@@ -274,7 +274,7 @@ function qo({ size: e = 20, ...t }) {
|
|
|
274
274
|
return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) });
|
|
275
275
|
}
|
|
276
276
|
function fe({ size: e = 20, ...t }) {
|
|
277
|
-
return /* @__PURE__ */
|
|
277
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
278
278
|
/* @__PURE__ */ n("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
279
279
|
/* @__PURE__ */ n("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
280
280
|
] });
|
|
@@ -289,56 +289,56 @@ function Fo({ size: e = 20, ...t }) {
|
|
|
289
289
|
return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("polyline", { points: "9 18 15 12 9 6" }) });
|
|
290
290
|
}
|
|
291
291
|
function Ko({ size: e = 20, ...t }) {
|
|
292
|
-
return /* @__PURE__ */
|
|
292
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
293
293
|
/* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
|
|
294
294
|
/* @__PURE__ */ n("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
295
295
|
] });
|
|
296
296
|
}
|
|
297
297
|
function Oo({ size: e = 20, ...t }) {
|
|
298
|
-
return /* @__PURE__ */
|
|
298
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
299
299
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "3" }),
|
|
300
300
|
/* @__PURE__ */ n("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" })
|
|
301
301
|
] });
|
|
302
302
|
}
|
|
303
303
|
function Uo({ size: e = 20, ...t }) {
|
|
304
|
-
return /* @__PURE__ */
|
|
304
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
305
305
|
/* @__PURE__ */ n("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
306
306
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "7", r: "4" })
|
|
307
307
|
] });
|
|
308
308
|
}
|
|
309
309
|
function Yo({ size: e = 20, ...t }) {
|
|
310
|
-
return /* @__PURE__ */
|
|
310
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
311
311
|
/* @__PURE__ */ n("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
312
312
|
/* @__PURE__ */ n("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
313
313
|
] });
|
|
314
314
|
}
|
|
315
315
|
function Zo({ size: e = 20, ...t }) {
|
|
316
|
-
return /* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
317
317
|
/* @__PURE__ */ n("polyline", { points: "3 6 5 6 21 6" }),
|
|
318
318
|
/* @__PURE__ */ n("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" })
|
|
319
319
|
] });
|
|
320
320
|
}
|
|
321
321
|
function Go({ size: e = 20, ...t }) {
|
|
322
|
-
return /* @__PURE__ */
|
|
322
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
323
323
|
/* @__PURE__ */ n("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
324
324
|
/* @__PURE__ */ n("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
325
325
|
] });
|
|
326
326
|
}
|
|
327
327
|
function Xo({ size: e = 20, ...t }) {
|
|
328
|
-
return /* @__PURE__ */
|
|
328
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
329
329
|
/* @__PURE__ */ n("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
330
330
|
/* @__PURE__ */ n("polyline", { points: "15 3 21 3 21 9" }),
|
|
331
331
|
/* @__PURE__ */ n("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
332
332
|
] });
|
|
333
333
|
}
|
|
334
334
|
function Jo({ size: e = 20, ...t }) {
|
|
335
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
336
336
|
/* @__PURE__ */ n("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
|
337
337
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "3" })
|
|
338
338
|
] });
|
|
339
339
|
}
|
|
340
340
|
function Qo({ size: e = 20, ...t }) {
|
|
341
|
-
return /* @__PURE__ */
|
|
341
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
342
342
|
/* @__PURE__ */ n("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" }),
|
|
343
343
|
/* @__PURE__ */ n("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" }),
|
|
344
344
|
/* @__PURE__ */ n("path", { d: "M14.12 14.12a3 3 0 1 1-4.24-4.24" }),
|
|
@@ -346,7 +346,7 @@ function Qo({ size: e = 20, ...t }) {
|
|
|
346
346
|
] });
|
|
347
347
|
}
|
|
348
348
|
function er({ size: e = 20, ...t }) {
|
|
349
|
-
return /* @__PURE__ */
|
|
349
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
350
350
|
/* @__PURE__ */ n("line", { x1: "12", y1: "2", x2: "12", y2: "6" }),
|
|
351
351
|
/* @__PURE__ */ n("line", { x1: "12", y1: "18", x2: "12", y2: "22" }),
|
|
352
352
|
/* @__PURE__ */ n("line", { x1: "4.93", y1: "4.93", x2: "7.76", y2: "7.76" }),
|
|
@@ -358,13 +358,13 @@ function er({ size: e = 20, ...t }) {
|
|
|
358
358
|
] });
|
|
359
359
|
}
|
|
360
360
|
function tr({ size: e = 20, ...t }) {
|
|
361
|
-
return /* @__PURE__ */
|
|
361
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
362
362
|
/* @__PURE__ */ n("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
|
363
363
|
/* @__PURE__ */ n("polyline", { points: "19 12 12 19 5 12" })
|
|
364
364
|
] });
|
|
365
365
|
}
|
|
366
366
|
function nr({ size: e = 20, ...t }) {
|
|
367
|
-
return /* @__PURE__ */
|
|
367
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
368
368
|
/* @__PURE__ */ n("line", { x1: "7", y1: "17", x2: "17", y2: "7" }),
|
|
369
369
|
/* @__PURE__ */ n("polyline", { points: "7 7 17 7 17 17" })
|
|
370
370
|
] });
|
|
@@ -379,33 +379,40 @@ function ir({ size: e = 20, ...t }) {
|
|
|
379
379
|
return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...t, children: /* @__PURE__ */ n("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" }) });
|
|
380
380
|
}
|
|
381
381
|
function sr({ size: e = 20, ...t }) {
|
|
382
|
-
return /* @__PURE__ */
|
|
382
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
383
383
|
/* @__PURE__ */ n("rect", { x: "2", y: "2", width: "20", height: "20", rx: "5", ry: "5" }),
|
|
384
384
|
/* @__PURE__ */ n("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
|
|
385
385
|
/* @__PURE__ */ n("line", { x1: "17.5", y1: "6.5", x2: "17.51", y2: "6.5" })
|
|
386
386
|
] });
|
|
387
387
|
}
|
|
388
388
|
function Bt({ size: e = 20, ...t }) {
|
|
389
|
-
return /* @__PURE__ */
|
|
389
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
390
390
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
|
|
391
391
|
/* @__PURE__ */ n("line", { x1: "12", y1: "11", x2: "12", y2: "16" }),
|
|
392
392
|
/* @__PURE__ */ n("line", { x1: "12", y1: "8", x2: "12", y2: "8" })
|
|
393
393
|
] });
|
|
394
394
|
}
|
|
395
395
|
function $t({ size: e = 20, ...t }) {
|
|
396
|
-
return /* @__PURE__ */
|
|
396
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
397
397
|
/* @__PURE__ */ n("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" }),
|
|
398
398
|
/* @__PURE__ */ n("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
399
399
|
/* @__PURE__ */ n("line", { x1: "12", y1: "17", x2: "12", y2: "17" })
|
|
400
400
|
] });
|
|
401
401
|
}
|
|
402
402
|
function Nt({ size: e = 20, ...t }) {
|
|
403
|
-
return /* @__PURE__ */
|
|
403
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
404
404
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
|
|
405
405
|
/* @__PURE__ */ n("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
|
|
406
406
|
/* @__PURE__ */ n("line", { x1: "12", y1: "16", x2: "12", y2: "16" })
|
|
407
407
|
] });
|
|
408
408
|
}
|
|
409
|
+
function ar({ size: e = 20, ...t }) {
|
|
410
|
+
return /* @__PURE__ */ f("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...t, children: [
|
|
411
|
+
/* @__PURE__ */ n("circle", { cx: "5", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
|
|
412
|
+
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
|
|
413
|
+
/* @__PURE__ */ n("circle", { cx: "19", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" })
|
|
414
|
+
] });
|
|
415
|
+
}
|
|
409
416
|
const Lt = "_dialog_h5f0e_2", St = "_center_h5f0e_32", jt = "_inlineStart_h5f0e_40", zt = "_inlineEnd_h5f0e_41", Tt = "_w400_h5f0e_90", It = "_w560_h5f0e_91", Et = "_w720_h5f0e_92", Mt = "_panel_h5f0e_94", At = "_header_h5f0e_114", Pt = "_title_h5f0e_121", Wt = "_footer_h5f0e_127", L = {
|
|
410
417
|
dialog: Lt,
|
|
411
418
|
center: St,
|
|
@@ -427,7 +434,7 @@ const Lt = "_dialog_h5f0e_2", St = "_center_h5f0e_32", jt = "_inlineStart_h5f0e_
|
|
|
427
434
|
"inline-start": L.inlineStart,
|
|
428
435
|
"inline-end": L.inlineEnd
|
|
429
436
|
};
|
|
430
|
-
function
|
|
437
|
+
function cr({
|
|
431
438
|
open: e,
|
|
432
439
|
onClose: t,
|
|
433
440
|
title: i,
|
|
@@ -468,8 +475,8 @@ function ar({
|
|
|
468
475
|
onCancel: y,
|
|
469
476
|
onClick: z,
|
|
470
477
|
...u,
|
|
471
|
-
children: /* @__PURE__ */
|
|
472
|
-
(i != null || o) && /* @__PURE__ */
|
|
478
|
+
children: /* @__PURE__ */ f("div", { className: L.panel, children: [
|
|
479
|
+
(i != null || o) && /* @__PURE__ */ f("div", { className: L.header, children: [
|
|
473
480
|
i != null && /* @__PURE__ */ n("h2", { id: _, className: L.title, children: i }),
|
|
474
481
|
o && /* @__PURE__ */ n(
|
|
475
482
|
J,
|
|
@@ -501,7 +508,7 @@ const Ht = "_input_hpei8_3", qt = "_size24_hpei8_37", Vt = "_size32_hpei8_43", F
|
|
|
501
508
|
40: P.size40,
|
|
502
509
|
48: P.size48
|
|
503
510
|
};
|
|
504
|
-
function
|
|
511
|
+
function lr({ size: e = 32, error: t = !1, type: i = "text", className: s, ref: c, ...r }) {
|
|
505
512
|
const o = S(re), a = t || ((o == null ? void 0 : o.invalid) ?? !1), d = [o == null ? void 0 : o.describedBy, r["aria-describedby"]].filter(Boolean).join(" ") || void 0, l = [P.input, Ut[e], a && P.error, s].filter(Boolean).join(" ");
|
|
506
513
|
return /* @__PURE__ */ n(
|
|
507
514
|
"input",
|
|
@@ -530,7 +537,7 @@ const Yt = "_select_4x9ck_3", Zt = "_size24_4x9ck_37", Gt = "_size32_4x9ck_45",
|
|
|
530
537
|
40: W.size40,
|
|
531
538
|
48: W.size48
|
|
532
539
|
};
|
|
533
|
-
function
|
|
540
|
+
function dr({
|
|
534
541
|
size: e = 32,
|
|
535
542
|
error: t = !1,
|
|
536
543
|
className: i,
|
|
@@ -573,7 +580,7 @@ function pe({
|
|
|
573
580
|
...c
|
|
574
581
|
}) {
|
|
575
582
|
const r = [K.label, i && K.disabled, t].filter(Boolean).join(" ");
|
|
576
|
-
return /* @__PURE__ */
|
|
583
|
+
return /* @__PURE__ */ f("label", { className: r, children: [
|
|
577
584
|
/* @__PURE__ */ n(
|
|
578
585
|
"input",
|
|
579
586
|
{
|
|
@@ -596,7 +603,7 @@ const an = "_label_jru2c_3", cn = "_disabled_jru2c_13", ln = "_input_jru2c_20",
|
|
|
596
603
|
thumb: un,
|
|
597
604
|
text: hn
|
|
598
605
|
};
|
|
599
|
-
function
|
|
606
|
+
function ur({
|
|
600
607
|
children: e,
|
|
601
608
|
className: t,
|
|
602
609
|
disabled: i,
|
|
@@ -604,7 +611,7 @@ function dr({
|
|
|
604
611
|
...c
|
|
605
612
|
}) {
|
|
606
613
|
const r = [M.label, i && M.disabled, t].filter(Boolean).join(" ");
|
|
607
|
-
return /* @__PURE__ */
|
|
614
|
+
return /* @__PURE__ */ f("label", { className: r, children: [
|
|
608
615
|
/* @__PURE__ */ n(
|
|
609
616
|
"input",
|
|
610
617
|
{
|
|
@@ -646,7 +653,7 @@ const _n = "_tag_3oysa_3", fn = "_dismiss_3oysa_17", pn = "_neutral_3oysa_43", v
|
|
|
646
653
|
warning: B.warningSubtle,
|
|
647
654
|
danger: B.dangerSubtle
|
|
648
655
|
};
|
|
649
|
-
function
|
|
656
|
+
function hr({
|
|
650
657
|
variant: e = "neutral",
|
|
651
658
|
subtle: t = !1,
|
|
652
659
|
onDismiss: i,
|
|
@@ -656,7 +663,7 @@ function ur({
|
|
|
656
663
|
...o
|
|
657
664
|
}) {
|
|
658
665
|
const a = t ? $n : Bn, d = [B.tag, a[e], s].filter(Boolean).join(" ");
|
|
659
|
-
return /* @__PURE__ */
|
|
666
|
+
return /* @__PURE__ */ f("span", { ref: r, className: d, ...o, children: [
|
|
660
667
|
c,
|
|
661
668
|
i && /* @__PURE__ */ n(
|
|
662
669
|
"button",
|
|
@@ -665,7 +672,7 @@ function ur({
|
|
|
665
672
|
className: B.dismiss,
|
|
666
673
|
onClick: i,
|
|
667
674
|
"aria-label": "Dismiss",
|
|
668
|
-
children: /* @__PURE__ */
|
|
675
|
+
children: /* @__PURE__ */ f(
|
|
669
676
|
"svg",
|
|
670
677
|
{
|
|
671
678
|
width: "12",
|
|
@@ -700,7 +707,7 @@ const Nn = "_wrapper_1eu6z_3", Ln = "_tooltip_1eu6z_10", Sn = "_top_1eu6z_24", j
|
|
|
700
707
|
left: D.left,
|
|
701
708
|
right: D.right
|
|
702
709
|
}, En = 150;
|
|
703
|
-
function
|
|
710
|
+
function _r({
|
|
704
711
|
content: e,
|
|
705
712
|
children: t,
|
|
706
713
|
placement: i = "top"
|
|
@@ -738,7 +745,7 @@ function hr({
|
|
|
738
745
|
_ == null || _(h);
|
|
739
746
|
}
|
|
740
747
|
});
|
|
741
|
-
return /* @__PURE__ */
|
|
748
|
+
return /* @__PURE__ */ f("span", { className: D.wrapper, children: [
|
|
742
749
|
u,
|
|
743
750
|
s && /* @__PURE__ */ n(
|
|
744
751
|
"span",
|
|
@@ -757,7 +764,7 @@ const Mn = "_toolbar_1i848_1", An = "_gap8_1i848_7", Pn = "_gap12_1i848_8", Wn =
|
|
|
757
764
|
gap12: Pn,
|
|
758
765
|
gap16: Wn
|
|
759
766
|
}, Dn = { 8: G.gap8, 12: G.gap12, 16: G.gap16 };
|
|
760
|
-
function
|
|
767
|
+
function fr({ gap: e = 8, className: t, children: i, ref: s, ...c }) {
|
|
761
768
|
const r = [G.toolbar, Dn[e], t].filter(Boolean).join(" ");
|
|
762
769
|
return /* @__PURE__ */ n("div", { ref: s, role: c["aria-label"] != null ? "group" : void 0, className: r, ...c, children: i });
|
|
763
770
|
}
|
|
@@ -852,7 +859,7 @@ const ve = R({ close: () => {
|
|
|
852
859
|
function de(e) {
|
|
853
860
|
return e.hasAttribute("data-open") || e.matches(":popover-open");
|
|
854
861
|
}
|
|
855
|
-
function
|
|
862
|
+
function pr({
|
|
856
863
|
open: e,
|
|
857
864
|
onClose: t,
|
|
858
865
|
trigger: i,
|
|
@@ -864,23 +871,23 @@ function fr({
|
|
|
864
871
|
}) {
|
|
865
872
|
const d = k(null), l = k(null), u = k(!1), h = `--psi-menu-${H().replace(/:/g, "")}`;
|
|
866
873
|
Un({ popoverRef: d, triggerRef: l, open: e, placement: s, anchorName: h });
|
|
867
|
-
const _ = (
|
|
868
|
-
d.current =
|
|
874
|
+
const _ = (p) => {
|
|
875
|
+
d.current = p, typeof o == "function" ? o(p) : o && (o.current = p);
|
|
869
876
|
};
|
|
870
877
|
N(() => {
|
|
871
|
-
const
|
|
872
|
-
if (!
|
|
873
|
-
const v = de(
|
|
874
|
-
e && !v ?
|
|
878
|
+
const p = d.current;
|
|
879
|
+
if (!p) return;
|
|
880
|
+
const v = de(p);
|
|
881
|
+
e && !v ? p.showPopover() : !e && v && (u.current = !0, p.hidePopover());
|
|
875
882
|
}, [e]);
|
|
876
883
|
const m = g(() => {
|
|
877
|
-
const
|
|
878
|
-
if (
|
|
884
|
+
const p = d.current;
|
|
885
|
+
if (p) {
|
|
879
886
|
if (u.current) {
|
|
880
887
|
u.current = !1;
|
|
881
888
|
return;
|
|
882
889
|
}
|
|
883
|
-
de(
|
|
890
|
+
de(p) || e && t("outside");
|
|
884
891
|
}
|
|
885
892
|
}, [t, e]), y = Kn({
|
|
886
893
|
popoverRef: d,
|
|
@@ -888,8 +895,8 @@ function fr({
|
|
|
888
895
|
open: e,
|
|
889
896
|
onEsc: () => t("esc")
|
|
890
897
|
}), z = g(
|
|
891
|
-
(
|
|
892
|
-
t(
|
|
898
|
+
(p) => {
|
|
899
|
+
t(p);
|
|
893
900
|
},
|
|
894
901
|
[t]
|
|
895
902
|
), C = U(i);
|
|
@@ -899,7 +906,7 @@ function fr({
|
|
|
899
906
|
);
|
|
900
907
|
}, [C]);
|
|
901
908
|
const b = C ? ne(i, { "aria-haspopup": "menu", "aria-expanded": e }) : i;
|
|
902
|
-
return /* @__PURE__ */
|
|
909
|
+
return /* @__PURE__ */ f(X, { children: [
|
|
903
910
|
/* @__PURE__ */ n("div", { ref: l, className: Q.trigger, "data-psi-menu-trigger": !0, children: b }),
|
|
904
911
|
/* @__PURE__ */ n(
|
|
905
912
|
"div",
|
|
@@ -918,7 +925,7 @@ function fr({
|
|
|
918
925
|
)
|
|
919
926
|
] });
|
|
920
927
|
}
|
|
921
|
-
function
|
|
928
|
+
function vr({ children: e, onSelect: t, variant: i = "neutral", disabled: s = !1 }) {
|
|
922
929
|
const { close: c } = S(ve);
|
|
923
930
|
return /* @__PURE__ */ n(
|
|
924
931
|
"button",
|
|
@@ -937,7 +944,7 @@ function pr({ children: e, onSelect: t, variant: i = "neutral", disabled: s = !1
|
|
|
937
944
|
}
|
|
938
945
|
);
|
|
939
946
|
}
|
|
940
|
-
function
|
|
947
|
+
function br() {
|
|
941
948
|
return /* @__PURE__ */ n("div", { role: "separator", "data-psi-menu-separator": !0, className: Q.separator });
|
|
942
949
|
}
|
|
943
950
|
const Yn = "_table_146hc_3", Zn = "_headerCell_146hc_13", Gn = "_cell_146hc_19", Xn = "_sortButton_146hc_30", Jn = "_sortIndicator_146hc_47", Qn = "_selectCell_146hc_79", eo = "_body_146hc_86", to = "_row_146hc_89", no = "_sticky_146hc_111", x = {
|
|
@@ -984,7 +991,7 @@ function ro(e) {
|
|
|
984
991
|
}
|
|
985
992
|
}), { ids: t, sawBody: i, hasRowWithoutId: s };
|
|
986
993
|
}
|
|
987
|
-
function
|
|
994
|
+
function gr({
|
|
988
995
|
size: e = 40,
|
|
989
996
|
stickyHeader: t,
|
|
990
997
|
sortable: i = !1,
|
|
@@ -1018,7 +1025,7 @@ function so() {
|
|
|
1018
1025
|
};
|
|
1019
1026
|
return /* @__PURE__ */ n("th", { scope: "col", className: `${x.headerCell} ${x.selectCell}`, children: /* @__PURE__ */ n(pe, { ref: s, "aria-label": "Select all rows", checked: c, onChange: o }) });
|
|
1020
1027
|
}
|
|
1021
|
-
function
|
|
1028
|
+
function mr({ children: e, className: t }) {
|
|
1022
1029
|
const { selectable: i } = S(q);
|
|
1023
1030
|
let s = !1;
|
|
1024
1031
|
const c = i ? A.map(e, (r) => {
|
|
@@ -1028,7 +1035,7 @@ function gr({ children: e, className: t }) {
|
|
|
1028
1035
|
return ne(
|
|
1029
1036
|
o,
|
|
1030
1037
|
void 0,
|
|
1031
|
-
/* @__PURE__ */
|
|
1038
|
+
/* @__PURE__ */ f(X, { children: [
|
|
1032
1039
|
/* @__PURE__ */ n(so, {}),
|
|
1033
1040
|
o.props.children
|
|
1034
1041
|
] })
|
|
@@ -1036,9 +1043,9 @@ function gr({ children: e, className: t }) {
|
|
|
1036
1043
|
}) : e;
|
|
1037
1044
|
return /* @__PURE__ */ n("thead", { className: [x.head, t].filter(Boolean).join(" "), children: c });
|
|
1038
1045
|
}
|
|
1039
|
-
function
|
|
1046
|
+
function yr({ rowId: e, selectLabel: t, children: i, className: s }) {
|
|
1040
1047
|
const { selectable: c, selected: r } = S(q), o = e !== void 0 && r.has(e);
|
|
1041
|
-
return /* @__PURE__ */
|
|
1048
|
+
return /* @__PURE__ */ f(
|
|
1042
1049
|
"tr",
|
|
1043
1050
|
{
|
|
1044
1051
|
className: [x.row, s].filter(Boolean).join(" "),
|
|
@@ -1051,7 +1058,7 @@ function mr({ rowId: e, selectLabel: t, children: i, className: s }) {
|
|
|
1051
1058
|
}
|
|
1052
1059
|
);
|
|
1053
1060
|
}
|
|
1054
|
-
function
|
|
1061
|
+
function wr({ sortKey: e, numeric: t, children: i, className: s }) {
|
|
1055
1062
|
const { sortable: c, sort: r, onSortChange: o } = S(q), a = c && e !== void 0, d = a && (r == null ? void 0 : r.key) === e, l = a ? d ? r.direction === "asc" ? "ascending" : "descending" : "none" : void 0, u = () => {
|
|
1056
1063
|
if (!e) return;
|
|
1057
1064
|
const h = d && r.direction === "asc" ? "desc" : "asc";
|
|
@@ -1064,14 +1071,14 @@ function yr({ sortKey: e, numeric: t, children: i, className: s }) {
|
|
|
1064
1071
|
className: [x.headerCell, s].filter(Boolean).join(" "),
|
|
1065
1072
|
"data-numeric": t || void 0,
|
|
1066
1073
|
"aria-sort": l,
|
|
1067
|
-
children: a ? /* @__PURE__ */
|
|
1074
|
+
children: a ? /* @__PURE__ */ f("button", { type: "button", className: x.sortButton, onClick: u, children: [
|
|
1068
1075
|
i,
|
|
1069
1076
|
/* @__PURE__ */ n("span", { className: x.sortIndicator, "aria-hidden": "true", children: d ? r.direction === "asc" ? "↑" : "↓" : "" })
|
|
1070
1077
|
] }) : i
|
|
1071
1078
|
}
|
|
1072
1079
|
);
|
|
1073
1080
|
}
|
|
1074
|
-
function
|
|
1081
|
+
function kr({ numeric: e, children: t, className: i }) {
|
|
1075
1082
|
return /* @__PURE__ */ n("td", { className: [x.cell, i].filter(Boolean).join(" "), "data-numeric": e || void 0, children: t });
|
|
1076
1083
|
}
|
|
1077
1084
|
const ao = "_nav_166vs_6", co = "_ellipsis_166vs_12", ue = {
|
|
@@ -1096,7 +1103,7 @@ function lo(e, t, i) {
|
|
|
1096
1103
|
}
|
|
1097
1104
|
return d && l ? [1, "ellipsis", ...O(o, a), "ellipsis", t] : O(1, t);
|
|
1098
1105
|
}
|
|
1099
|
-
function
|
|
1106
|
+
function xr({
|
|
1100
1107
|
page: e,
|
|
1101
1108
|
pageCount: t,
|
|
1102
1109
|
onPageChange: i,
|
|
@@ -1105,7 +1112,7 @@ function kr({
|
|
|
1105
1112
|
className: r
|
|
1106
1113
|
}) {
|
|
1107
1114
|
const o = lo(e, t, s);
|
|
1108
|
-
return /* @__PURE__ */
|
|
1115
|
+
return /* @__PURE__ */ f("nav", { "aria-label": c, className: [ue.nav, r].filter(Boolean).join(" "), children: [
|
|
1109
1116
|
/* @__PURE__ */ n(
|
|
1110
1117
|
J,
|
|
1111
1118
|
{
|
|
@@ -1180,9 +1187,9 @@ function me({
|
|
|
1180
1187
|
ref: r
|
|
1181
1188
|
}) {
|
|
1182
1189
|
const o = ko[e], a = xo[e], d = [$.toast, c].filter(Boolean).join(" ");
|
|
1183
|
-
return /* @__PURE__ */
|
|
1190
|
+
return /* @__PURE__ */ f("div", { ref: r, className: d, "data-variant": e, "data-psi-toast": !0, children: [
|
|
1184
1191
|
/* @__PURE__ */ n("span", { className: [$.icon, Co[e]].join(" "), children: /* @__PURE__ */ n(o, { size: 20, "aria-hidden": "true" }) }),
|
|
1185
|
-
/* @__PURE__ */
|
|
1192
|
+
/* @__PURE__ */ f("div", { className: $.body, children: [
|
|
1186
1193
|
a && /* @__PURE__ */ n("span", { className: $.srOnly, children: a }),
|
|
1187
1194
|
t
|
|
1188
1195
|
] }),
|
|
@@ -1225,7 +1232,7 @@ function $o({
|
|
|
1225
1232
|
};
|
|
1226
1233
|
}, []);
|
|
1227
1234
|
const a = A.toArray(i), d = a.filter(he), l = a.filter((u) => !he(u));
|
|
1228
|
-
return /* @__PURE__ */
|
|
1235
|
+
return /* @__PURE__ */ f(
|
|
1229
1236
|
"div",
|
|
1230
1237
|
{
|
|
1231
1238
|
ref: o,
|
|
@@ -1242,7 +1249,7 @@ function $o({
|
|
|
1242
1249
|
);
|
|
1243
1250
|
}
|
|
1244
1251
|
const ye = R(null);
|
|
1245
|
-
function
|
|
1252
|
+
function Cr() {
|
|
1246
1253
|
const e = S(ye);
|
|
1247
1254
|
if (!e)
|
|
1248
1255
|
throw new Error(
|
|
@@ -1250,27 +1257,27 @@ function xr() {
|
|
|
1250
1257
|
);
|
|
1251
1258
|
return e;
|
|
1252
1259
|
}
|
|
1253
|
-
function
|
|
1260
|
+
function Br({
|
|
1254
1261
|
limit: e = 3,
|
|
1255
1262
|
duration: t = 5e3,
|
|
1256
1263
|
actionDuration: i = 1e4,
|
|
1257
1264
|
placement: s = "bottom-end",
|
|
1258
1265
|
children: c
|
|
1259
1266
|
}) {
|
|
1260
|
-
const [r, o] = _e([]), a = k(/* @__PURE__ */ new Map()), d = k(!1), l = k(0), u = H(), h = g((
|
|
1261
|
-
const v = a.current.get(
|
|
1262
|
-
(v == null ? void 0 : v.handle) !== void 0 && clearTimeout(v.handle), a.current.delete(
|
|
1267
|
+
const [r, o] = _e([]), a = k(/* @__PURE__ */ new Map()), d = k(!1), l = k(0), u = H(), h = g((p) => {
|
|
1268
|
+
const v = a.current.get(p);
|
|
1269
|
+
(v == null ? void 0 : v.handle) !== void 0 && clearTimeout(v.handle), a.current.delete(p), o((T) => T.filter((V) => V.id !== p));
|
|
1263
1270
|
}, []), _ = g(
|
|
1264
|
-
(
|
|
1265
|
-
const T = d.current ? { handle: void 0, remaining: v, startedAt: void 0 } : { handle: setTimeout(() => h(
|
|
1266
|
-
a.current.set(
|
|
1271
|
+
(p, v) => {
|
|
1272
|
+
const T = d.current ? { handle: void 0, remaining: v, startedAt: void 0 } : { handle: setTimeout(() => h(p), v), remaining: v, startedAt: Date.now() };
|
|
1273
|
+
a.current.set(p, T);
|
|
1267
1274
|
},
|
|
1268
1275
|
[h]
|
|
1269
1276
|
), m = g(
|
|
1270
|
-
({ variant:
|
|
1277
|
+
({ variant: p = "neutral", message: v, action: T }) => {
|
|
1271
1278
|
const V = `${u}-${l.current++}`, se = T != null ? i : t;
|
|
1272
1279
|
return o((Ce) => {
|
|
1273
|
-
const te = [...Ce, { id: V, variant:
|
|
1280
|
+
const te = [...Ce, { id: V, variant: p, message: v, action: T, duration: se }];
|
|
1274
1281
|
for (; te.length > e; ) {
|
|
1275
1282
|
const ae = te.shift(), Y = a.current.get(ae.id);
|
|
1276
1283
|
(Y == null ? void 0 : Y.handle) !== void 0 && clearTimeout(Y.handle), a.current.delete(ae.id);
|
|
@@ -1280,17 +1287,17 @@ function Cr({
|
|
|
1280
1287
|
},
|
|
1281
1288
|
[i, _, t, u, e]
|
|
1282
1289
|
), y = g(() => {
|
|
1283
|
-
for (const
|
|
1284
|
-
|
|
1290
|
+
for (const p of a.current.values())
|
|
1291
|
+
p.handle !== void 0 && clearTimeout(p.handle);
|
|
1285
1292
|
a.current.clear(), o([]);
|
|
1286
1293
|
}, []), z = g(() => {
|
|
1287
1294
|
if (!d.current) {
|
|
1288
1295
|
d.current = !0;
|
|
1289
|
-
for (const [
|
|
1296
|
+
for (const [p, v] of a.current) {
|
|
1290
1297
|
if (v.handle === void 0) continue;
|
|
1291
1298
|
clearTimeout(v.handle);
|
|
1292
1299
|
const T = v.startedAt === void 0 ? 0 : Date.now() - v.startedAt;
|
|
1293
|
-
a.current.set(
|
|
1300
|
+
a.current.set(p, {
|
|
1294
1301
|
handle: void 0,
|
|
1295
1302
|
remaining: Math.max(0, v.remaining - T),
|
|
1296
1303
|
startedAt: void 0
|
|
@@ -1300,27 +1307,27 @@ function Cr({
|
|
|
1300
1307
|
}, []), C = g(() => {
|
|
1301
1308
|
if (d.current) {
|
|
1302
1309
|
d.current = !1;
|
|
1303
|
-
for (const [
|
|
1304
|
-
v.handle === void 0 && a.current.set(
|
|
1305
|
-
handle: setTimeout(() => h(
|
|
1310
|
+
for (const [p, v] of a.current)
|
|
1311
|
+
v.handle === void 0 && a.current.set(p, {
|
|
1312
|
+
handle: setTimeout(() => h(p), v.remaining),
|
|
1306
1313
|
remaining: v.remaining,
|
|
1307
1314
|
startedAt: Date.now()
|
|
1308
1315
|
});
|
|
1309
1316
|
}
|
|
1310
1317
|
}, [h]);
|
|
1311
1318
|
N(() => {
|
|
1312
|
-
const
|
|
1319
|
+
const p = a.current;
|
|
1313
1320
|
return () => {
|
|
1314
|
-
for (const v of
|
|
1321
|
+
for (const v of p.values())
|
|
1315
1322
|
v.handle !== void 0 && clearTimeout(v.handle);
|
|
1316
|
-
|
|
1323
|
+
p.clear();
|
|
1317
1324
|
};
|
|
1318
1325
|
}, []);
|
|
1319
1326
|
const b = oe(
|
|
1320
1327
|
() => ({ show: m, dismiss: h, clear: y }),
|
|
1321
1328
|
[m, h, y]
|
|
1322
1329
|
);
|
|
1323
|
-
return /* @__PURE__ */
|
|
1330
|
+
return /* @__PURE__ */ f(ye.Provider, { value: b, children: [
|
|
1324
1331
|
c,
|
|
1325
1332
|
/* @__PURE__ */ n(
|
|
1326
1333
|
"div",
|
|
@@ -1329,7 +1336,7 @@ function Cr({
|
|
|
1329
1336
|
onPointerLeave: C,
|
|
1330
1337
|
onFocusCapture: z,
|
|
1331
1338
|
onBlurCapture: C,
|
|
1332
|
-
children: /* @__PURE__ */ n($o, { placement: s, children: r.map((
|
|
1339
|
+
children: /* @__PURE__ */ n($o, { placement: s, children: r.map((p) => /* @__PURE__ */ n(me, { variant: p.variant, action: p.action, onDismiss: () => h(p.id), children: p.message }, p.id)) })
|
|
1333
1340
|
}
|
|
1334
1341
|
)
|
|
1335
1342
|
] });
|
|
@@ -1348,7 +1355,7 @@ function ie(e) {
|
|
|
1348
1355
|
);
|
|
1349
1356
|
return t;
|
|
1350
1357
|
}
|
|
1351
|
-
function
|
|
1358
|
+
function $r({
|
|
1352
1359
|
value: e,
|
|
1353
1360
|
onValueChange: t,
|
|
1354
1361
|
orientation: i = "horizontal",
|
|
@@ -1415,7 +1422,7 @@ function zo({ listRef: e, orientation: t, onValueChange: i }) {
|
|
|
1415
1422
|
[c, s, t]
|
|
1416
1423
|
);
|
|
1417
1424
|
}
|
|
1418
|
-
function
|
|
1425
|
+
function Nr({ "aria-label": e, children: t, className: i, ref: s }) {
|
|
1419
1426
|
const { orientation: c, onValueChange: r } = ie("TabList"), o = k(null), a = (l) => {
|
|
1420
1427
|
o.current = l, typeof s == "function" ? s(l) : s && (s.current = l);
|
|
1421
1428
|
}, d = zo({ listRef: o, orientation: c, onValueChange: r });
|
|
@@ -1432,7 +1439,7 @@ function $r({ "aria-label": e, children: t, className: i, ref: s }) {
|
|
|
1432
1439
|
}
|
|
1433
1440
|
);
|
|
1434
1441
|
}
|
|
1435
|
-
function
|
|
1442
|
+
function Lr({ value: e, children: t, disabled: i = !1, className: s, ref: c }) {
|
|
1436
1443
|
const r = ie("Tab"), o = r.value === e;
|
|
1437
1444
|
return /* @__PURE__ */ n(
|
|
1438
1445
|
"button",
|
|
@@ -1455,7 +1462,7 @@ function Nr({ value: e, children: t, disabled: i = !1, className: s, ref: c }) {
|
|
|
1455
1462
|
}
|
|
1456
1463
|
);
|
|
1457
1464
|
}
|
|
1458
|
-
function
|
|
1465
|
+
function Sr({ value: e, children: t, className: i, ref: s }) {
|
|
1459
1466
|
const c = ie("TabPanel"), r = c.value === e;
|
|
1460
1467
|
return /* @__PURE__ */ n(
|
|
1461
1468
|
"div",
|
|
@@ -1478,7 +1485,7 @@ export {
|
|
|
1478
1485
|
pe as Checkbox,
|
|
1479
1486
|
Po as DescriptionItem,
|
|
1480
1487
|
Ao as DescriptionList,
|
|
1481
|
-
|
|
1488
|
+
cr as Dialog,
|
|
1482
1489
|
Ro as Field,
|
|
1483
1490
|
Nt as IconAlertCircle,
|
|
1484
1491
|
$t as IconAlertTriangle,
|
|
@@ -1500,39 +1507,40 @@ export {
|
|
|
1500
1507
|
or as IconLinkedIn,
|
|
1501
1508
|
er as IconLoader,
|
|
1502
1509
|
qo as IconMinus,
|
|
1510
|
+
ar as IconMoreHorizontal,
|
|
1503
1511
|
Ho as IconPlus,
|
|
1504
1512
|
Ko as IconSearch,
|
|
1505
1513
|
Oo as IconSettings,
|
|
1506
1514
|
Zo as IconTrash,
|
|
1507
1515
|
Uo as IconUser,
|
|
1508
1516
|
ir as IconX,
|
|
1509
|
-
|
|
1510
|
-
|
|
1517
|
+
lr as Input,
|
|
1518
|
+
pr as Menu,
|
|
1511
1519
|
ve as MenuContext,
|
|
1512
|
-
|
|
1513
|
-
|
|
1520
|
+
vr as MenuItem,
|
|
1521
|
+
br as MenuSeparator,
|
|
1514
1522
|
Wo as NavBar,
|
|
1515
|
-
|
|
1523
|
+
xr as Pagination,
|
|
1516
1524
|
Mo as Panel,
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1525
|
+
dr as Select,
|
|
1526
|
+
ur as Switch,
|
|
1527
|
+
Lr as Tab,
|
|
1528
|
+
Nr as TabList,
|
|
1529
|
+
Sr as TabPanel,
|
|
1530
|
+
gr as Table,
|
|
1523
1531
|
oo as TableBody,
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1532
|
+
kr as TableCell,
|
|
1533
|
+
mr as TableHead,
|
|
1534
|
+
wr as TableHeaderCell,
|
|
1535
|
+
yr as TableRow,
|
|
1536
|
+
$r as Tabs,
|
|
1529
1537
|
we as TabsContext,
|
|
1530
|
-
|
|
1538
|
+
hr as Tag,
|
|
1531
1539
|
me as Toast,
|
|
1532
1540
|
ye as ToastContext,
|
|
1533
|
-
|
|
1541
|
+
Br as ToastProvider,
|
|
1534
1542
|
$o as ToastRegion,
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1543
|
+
fr as Toolbar,
|
|
1544
|
+
_r as Tooltip,
|
|
1545
|
+
Cr as useToast
|
|
1538
1546
|
};
|