@fabio.caffarello/react-design-system 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{components-D2QpE5zG.cjs → components-B08xLmiA.cjs} +2 -2
- package/dist/{components-D2QpE5zG.cjs.map → components-B08xLmiA.cjs.map} +1 -1
- package/dist/{components-BsS4vmbl.js → components-DEuqI-ld.js} +127 -127
- package/dist/{components-BsS4vmbl.js.map → components-DEuqI-ld.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +346 -353
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.cjs.map +1 -1
- package/dist/primitives/index.js +2 -2
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.cjs.map +1 -1
- package/dist/tokens/index.js +1602 -98
- package/dist/tokens/index.js.map +1 -1
- package/dist/ui/index.d.ts +0 -4
- package/dist/ui/tokens/TokenVisualizations.d.ts +0 -4
- package/dist/ui/tokens/index.d.ts +0 -4
- package/package.json +1 -1
- package/dist/tokens-BCpPv8tI.js +0 -2063
- package/dist/tokens-BCpPv8tI.js.map +0 -1
- package/dist/tokens-BX3lVxER.cjs +0 -2
- package/dist/tokens-BX3lVxER.cjs.map +0 -1
- package/dist/ui/tokens/colors.d.ts +0 -122
- package/dist/ui/tokens/gradients.d.ts +0 -56
- package/dist/ui/tokens/themes/dark.d.ts +0 -42
- package/dist/ui/tokens/themes/light.d.ts +0 -42
- package/dist/ui/tokens/tokens.factory.d.ts +0 -98
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var Vn = Object.defineProperty, Wn = Object.defineProperties;
|
|
2
2
|
var Hn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Dt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var Qs = Object.prototype.hasOwnProperty, Zs = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Js = (e, s, t) => s in e ? Vn(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, I = (e, s) => {
|
|
6
6
|
for (var t in s || (s = {}))
|
|
7
|
-
|
|
7
|
+
Qs.call(s, t) && Js(e, t, s[t]);
|
|
8
8
|
if (Dt)
|
|
9
9
|
for (var t of Dt(s))
|
|
10
|
-
|
|
10
|
+
Zs.call(s, t) && Js(e, t, s[t]);
|
|
11
11
|
return e;
|
|
12
12
|
}, z = (e, s) => Wn(e, Hn(s));
|
|
13
13
|
var W = (e, s) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var n in e)
|
|
16
|
-
|
|
16
|
+
Qs.call(e, n) && s.indexOf(n) < 0 && (t[n] = e[n]);
|
|
17
17
|
if (e != null && Dt)
|
|
18
18
|
for (var n of Dt(e))
|
|
19
|
-
s.indexOf(n) < 0 &&
|
|
19
|
+
s.indexOf(n) < 0 && Zs.call(e, n) && (t[n] = e[n]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
var Mt = (e, s, t) => new Promise((n, a) => {
|
|
@@ -35,9 +35,9 @@ var Mt = (e, s, t) => new Promise((n, a) => {
|
|
|
35
35
|
}, d = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, i);
|
|
36
36
|
d((t = t.apply(e, s)).next());
|
|
37
37
|
});
|
|
38
|
-
import {
|
|
39
|
-
import { Label as Ft, ErrorMessage as Gn, Button as
|
|
40
|
-
import ie, { createContext as xe, useContext as ne, useState as F, useRef as
|
|
38
|
+
import { getSpacingClass as M, getRadiusClass as re, getTypographySizeFromFontSize as ge, getTypographyWeightFromFontWeight as wt, getTypographySize as Ye, getTypographyWeight as Lt, getShadowClass as je, getZIndexClass as me, getAnimationClass as ye, getTypographyClasses as kt, Z_INDEX_TOKENS as er, SIDEBAR_TOKENS as ts } from "./tokens/index.js";
|
|
39
|
+
import { Label as Ft, ErrorMessage as Gn, Button as Z, Text as Ke, Input as Se, Chip as qn, Progress as Bn, NavLink as yr, Checkbox as wr, Skeleton as Yn, Select as jr, Tooltip as Pt, Collapsible as Kn, Separator as Un } from "./primitives/index.js";
|
|
40
|
+
import ie, { createContext as xe, useContext as ne, useState as F, useRef as Q, useEffect as U, forwardRef as Pe, createElement as ms, memo as Xn, useMemo as le, useCallback as K, isValidElement as kr, cloneElement as Nr, useId as Ot } from "react";
|
|
41
41
|
import { createPortal as Oe } from "react-dom";
|
|
42
42
|
function Sr(e) {
|
|
43
43
|
var s, t, n = "";
|
|
@@ -59,14 +59,14 @@ const Jn = (e, s) => {
|
|
|
59
59
|
for (let n = 0; n < s.length; n++)
|
|
60
60
|
t[e.length + n] = s[n];
|
|
61
61
|
return t;
|
|
62
|
-
},
|
|
62
|
+
}, Qn = (e, s) => ({
|
|
63
63
|
classGroupId: e,
|
|
64
64
|
validator: s
|
|
65
65
|
}), Cr = (e = /* @__PURE__ */ new Map(), s = null, t) => ({
|
|
66
66
|
nextPart: e,
|
|
67
67
|
validators: s,
|
|
68
68
|
classGroupId: t
|
|
69
|
-
}), Vt = "-", tr = [],
|
|
69
|
+
}), Vt = "-", tr = [], Zn = "arbitrary..", ea = (e) => {
|
|
70
70
|
const s = sa(e), {
|
|
71
71
|
conflictingClassGroups: t,
|
|
72
72
|
conflictingClassGroupModifiers: n
|
|
@@ -105,7 +105,7 @@ const Jn = (e, s) => {
|
|
|
105
105
|
}
|
|
106
106
|
}, ta = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
107
107
|
const s = e.slice(1, -1), t = s.indexOf(":"), n = s.slice(0, t);
|
|
108
|
-
return n ?
|
|
108
|
+
return n ? Zn + n : void 0;
|
|
109
109
|
})(), sa = (e) => {
|
|
110
110
|
const {
|
|
111
111
|
theme: s,
|
|
@@ -143,7 +143,7 @@ const Jn = (e, s) => {
|
|
|
143
143
|
js(e(n), s, t, n);
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
s.validators === null && (s.validators = []), s.validators.push(
|
|
146
|
+
s.validators === null && (s.validators = []), s.validators.push(Qn(t, e));
|
|
147
147
|
}, ia = (e, s, t, n) => {
|
|
148
148
|
const a = Object.entries(e), o = a.length;
|
|
149
149
|
for (let i = 0; i < o; i++) {
|
|
@@ -3149,7 +3149,7 @@ function Ha({
|
|
|
3149
3149
|
titleId: a,
|
|
3150
3150
|
descriptionId: o
|
|
3151
3151
|
}) {
|
|
3152
|
-
const [i, d] = F(t), l =
|
|
3152
|
+
const [i, d] = F(t), l = Q(null), c = s !== void 0 ? s : i, u = (f) => {
|
|
3153
3153
|
s === void 0 && d(f), n == null || n(f);
|
|
3154
3154
|
};
|
|
3155
3155
|
U(() => {
|
|
@@ -3297,14 +3297,14 @@ const Ja = [
|
|
|
3297
3297
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3298
3298
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3299
3299
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3300
|
-
],
|
|
3300
|
+
], Qa = ae("calendar", Ja);
|
|
3301
3301
|
/**
|
|
3302
3302
|
* @license lucide-react v0.552.0 - ISC
|
|
3303
3303
|
*
|
|
3304
3304
|
* This source code is licensed under the ISC license.
|
|
3305
3305
|
* See the LICENSE file in the root directory of this source tree.
|
|
3306
3306
|
*/
|
|
3307
|
-
const
|
|
3307
|
+
const Za = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], ps = ae("check", Za);
|
|
3308
3308
|
/**
|
|
3309
3309
|
* @license lucide-react v0.552.0 - ISC
|
|
3310
3310
|
*
|
|
@@ -3325,7 +3325,7 @@ const to = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], jt = ae("chevron-
|
|
|
3325
3325
|
* This source code is licensed under the ISC license.
|
|
3326
3326
|
* See the LICENSE file in the root directory of this source tree.
|
|
3327
3327
|
*/
|
|
3328
|
-
const so = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
3328
|
+
const so = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Qe = ae("chevron-right", so);
|
|
3329
3329
|
/**
|
|
3330
3330
|
* @license lucide-react v0.552.0 - ISC
|
|
3331
3331
|
*
|
|
@@ -3944,22 +3944,22 @@ var Ko = (e, s, t, n, a) => s ? z(I({}, t[e]), {
|
|
|
3944
3944
|
const s = e ? e.ownerDocument : 0;
|
|
3945
3945
|
return e instanceof (s && s.defaultView ? s.defaultView.HTMLElement : HTMLElement);
|
|
3946
3946
|
}, Jo = (e) => e.type === "radio";
|
|
3947
|
-
function
|
|
3947
|
+
function Qo(e, s) {
|
|
3948
3948
|
const t = s.slice(0, -1).length;
|
|
3949
3949
|
let n = 0;
|
|
3950
3950
|
for (; n < t; )
|
|
3951
3951
|
e = Te(e) ? n++ : e[s[n++]];
|
|
3952
3952
|
return e;
|
|
3953
3953
|
}
|
|
3954
|
-
function
|
|
3954
|
+
function Zo(e) {
|
|
3955
3955
|
for (const s in e)
|
|
3956
3956
|
if (e.hasOwnProperty(s) && !Te(e[s]))
|
|
3957
3957
|
return !1;
|
|
3958
3958
|
return !0;
|
|
3959
3959
|
}
|
|
3960
3960
|
function Kr(e, s) {
|
|
3961
|
-
const t = Array.isArray(s) ? s : $s(s) ? [s] : Cs(s), n = t.length === 1 ? e :
|
|
3962
|
-
return n && delete n[o], a !== 0 && (Ve(n) && Gt(n) || Array.isArray(n) &&
|
|
3961
|
+
const t = Array.isArray(s) ? s : $s(s) ? [s] : Cs(s), n = t.length === 1 ? e : Qo(e, t), a = t.length - 1, o = t[a];
|
|
3962
|
+
return n && delete n[o], a !== 0 && (Ve(n) && Gt(n) || Array.isArray(n) && Zo(n)) && Kr(e, t.slice(0, -1)), e;
|
|
3963
3963
|
}
|
|
3964
3964
|
var Ur = (e) => e instanceof RegExp, zt = (e) => ({
|
|
3965
3965
|
isOnSubmit: !e || e === it.onSubmit,
|
|
@@ -4339,7 +4339,7 @@ function oi(l) {
|
|
|
4339
4339
|
return /* @__PURE__ */ r.jsxs("nav", z(I({ className: y, "aria-label": "Pagination" }, d), { children: [
|
|
4340
4340
|
/* @__PURE__ */ r.jsxs("div", { className: T("flex", "items-center", M("sm", "gap")), children: [
|
|
4341
4341
|
/* @__PURE__ */ r.jsx(
|
|
4342
|
-
|
|
4342
|
+
Z,
|
|
4343
4343
|
{
|
|
4344
4344
|
variant: "secondary",
|
|
4345
4345
|
onClick: u,
|
|
@@ -4367,7 +4367,7 @@ function oi(l) {
|
|
|
4367
4367
|
);
|
|
4368
4368
|
const N = p, h = N === e;
|
|
4369
4369
|
return /* @__PURE__ */ r.jsx(
|
|
4370
|
-
|
|
4370
|
+
Z,
|
|
4371
4371
|
{
|
|
4372
4372
|
variant: h ? "primary" : "ghost",
|
|
4373
4373
|
onClick: () => f(N),
|
|
@@ -4382,7 +4382,7 @@ function oi(l) {
|
|
|
4382
4382
|
}
|
|
4383
4383
|
),
|
|
4384
4384
|
/* @__PURE__ */ r.jsx(
|
|
4385
|
-
|
|
4385
|
+
Z,
|
|
4386
4386
|
{
|
|
4387
4387
|
variant: "secondary",
|
|
4388
4388
|
onClick: m,
|
|
@@ -4474,7 +4474,7 @@ function ii(l) {
|
|
|
4474
4474
|
children: s
|
|
4475
4475
|
}
|
|
4476
4476
|
),
|
|
4477
|
-
m && t && n && /* @__PURE__ */ r.jsx(
|
|
4477
|
+
m && t && n && /* @__PURE__ */ r.jsx(Z, { variant: "primary", onClick: n, children: t })
|
|
4478
4478
|
]
|
|
4479
4479
|
})
|
|
4480
4480
|
);
|
|
@@ -4495,7 +4495,7 @@ function li(d) {
|
|
|
4495
4495
|
"className",
|
|
4496
4496
|
"aria-label"
|
|
4497
4497
|
]);
|
|
4498
|
-
const [c, u] = F(!1), [m, f] = F(-1), x =
|
|
4498
|
+
const [c, u] = F(!1), [m, f] = F(-1), x = Q(null), b = Q(null), g = Q(null), y = Q([]), p = `dropdown-menu-${Math.random().toString(36).substr(2, 9)}`, v = `dropdown-trigger-${Math.random().toString(36).substr(2, 9)}`;
|
|
4499
4499
|
U(() => {
|
|
4500
4500
|
const w = (S) => {
|
|
4501
4501
|
x.current && !x.current.contains(S.target) && (u(!1), f(-1));
|
|
@@ -4757,7 +4757,7 @@ function pr(e) {
|
|
|
4757
4757
|
}
|
|
4758
4758
|
return null;
|
|
4759
4759
|
}
|
|
4760
|
-
function
|
|
4760
|
+
function Qr(d) {
|
|
4761
4761
|
var l = d, {
|
|
4762
4762
|
placeholder: e = "Select date",
|
|
4763
4763
|
format: s = "yyyy-MM-dd",
|
|
@@ -4773,7 +4773,7 @@ function Zr(d) {
|
|
|
4773
4773
|
"onFocus",
|
|
4774
4774
|
"className"
|
|
4775
4775
|
]);
|
|
4776
|
-
const { selectedDate: c, selectedRange: u, mode: m, onDateChange: f } = Jr(), [x, b] = F(""), [g, y] = F(!1), p =
|
|
4776
|
+
const { selectedDate: c, selectedRange: u, mode: m, onDateChange: f } = Jr(), [x, b] = F(""), [g, y] = F(!1), p = Q(null);
|
|
4777
4777
|
U(() => {
|
|
4778
4778
|
m === "single" && c ? b(vt(c, s)) : m === "range" && u ? u.start && u.end ? b(
|
|
4779
4779
|
`${vt(u.start, s)} - ${vt(u.end, s)}`
|
|
@@ -4808,14 +4808,14 @@ function Zr(d) {
|
|
|
4808
4808
|
placeholder: e,
|
|
4809
4809
|
"aria-label": n || e,
|
|
4810
4810
|
rightIcon: t ? /* @__PURE__ */ r.jsx(
|
|
4811
|
-
|
|
4811
|
+
Z,
|
|
4812
4812
|
{
|
|
4813
4813
|
variant: "iconOnly",
|
|
4814
4814
|
size: "sm",
|
|
4815
4815
|
onClick: h,
|
|
4816
4816
|
"aria-label": "Open calendar",
|
|
4817
4817
|
type: "button",
|
|
4818
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4818
|
+
children: /* @__PURE__ */ r.jsx(Qa, { className: "h-4 w-4" })
|
|
4819
4819
|
}
|
|
4820
4820
|
) : void 0
|
|
4821
4821
|
}
|
|
@@ -4855,7 +4855,7 @@ const mi = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], hi = [
|
|
|
4855
4855
|
"November",
|
|
4856
4856
|
"December"
|
|
4857
4857
|
];
|
|
4858
|
-
function
|
|
4858
|
+
function Zr(a) {
|
|
4859
4859
|
var o = a, {
|
|
4860
4860
|
month: e,
|
|
4861
4861
|
onMonthChange: s,
|
|
@@ -4876,7 +4876,7 @@ function Qr(a) {
|
|
|
4876
4876
|
disabledDates: x
|
|
4877
4877
|
} = Jr(), [b, g] = F(
|
|
4878
4878
|
e || i || (d == null ? void 0 : d.start) || /* @__PURE__ */ new Date()
|
|
4879
|
-
), y =
|
|
4879
|
+
), y = Q(null), [p, v] = F(null);
|
|
4880
4880
|
U(() => {
|
|
4881
4881
|
e && g(e);
|
|
4882
4882
|
}, [e]);
|
|
@@ -4965,7 +4965,7 @@ function Qr(a) {
|
|
|
4965
4965
|
children: [
|
|
4966
4966
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
4967
4967
|
/* @__PURE__ */ r.jsx(
|
|
4968
|
-
|
|
4968
|
+
Z,
|
|
4969
4969
|
{
|
|
4970
4970
|
variant: "iconOnly",
|
|
4971
4971
|
size: "sm",
|
|
@@ -4980,13 +4980,13 @@ function Qr(a) {
|
|
|
4980
4980
|
b.getFullYear()
|
|
4981
4981
|
] }),
|
|
4982
4982
|
/* @__PURE__ */ r.jsx(
|
|
4983
|
-
|
|
4983
|
+
Z,
|
|
4984
4984
|
{
|
|
4985
4985
|
variant: "iconOnly",
|
|
4986
4986
|
size: "sm",
|
|
4987
4987
|
onClick: w,
|
|
4988
4988
|
"aria-label": "Next month",
|
|
4989
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4989
|
+
children: /* @__PURE__ */ r.jsx(Qe, { className: "h-4 w-4" })
|
|
4990
4990
|
}
|
|
4991
4991
|
)
|
|
4992
4992
|
] }),
|
|
@@ -5051,7 +5051,7 @@ function Bt({
|
|
|
5051
5051
|
"aria-label": m,
|
|
5052
5052
|
className: f = ""
|
|
5053
5053
|
}) {
|
|
5054
|
-
const [x, b] = F(!1), g =
|
|
5054
|
+
const [x, b] = F(!1), g = Q(null), y = Q(null);
|
|
5055
5055
|
return U(() => {
|
|
5056
5056
|
if (!x) return;
|
|
5057
5057
|
const p = (v) => {
|
|
@@ -5090,7 +5090,7 @@ function Bt({
|
|
|
5090
5090
|
disabledDates: d,
|
|
5091
5091
|
children: [
|
|
5092
5092
|
/* @__PURE__ */ r.jsx(
|
|
5093
|
-
|
|
5093
|
+
Qr,
|
|
5094
5094
|
{
|
|
5095
5095
|
placeholder: l,
|
|
5096
5096
|
format: c,
|
|
@@ -5099,7 +5099,7 @@ function Bt({
|
|
|
5099
5099
|
onFocus: () => b(!0)
|
|
5100
5100
|
}
|
|
5101
5101
|
),
|
|
5102
|
-
x && /* @__PURE__ */ r.jsx(en, { containerRef: g, popupRef: y, children: /* @__PURE__ */ r.jsx(
|
|
5102
|
+
x && /* @__PURE__ */ r.jsx(en, { containerRef: g, popupRef: y, children: /* @__PURE__ */ r.jsx(Zr, {}) })
|
|
5103
5103
|
]
|
|
5104
5104
|
}
|
|
5105
5105
|
) });
|
|
@@ -5109,7 +5109,7 @@ function en({
|
|
|
5109
5109
|
containerRef: s,
|
|
5110
5110
|
popupRef: t
|
|
5111
5111
|
}) {
|
|
5112
|
-
const n =
|
|
5112
|
+
const n = Q(null), a = t || n, [o, i] = F(null);
|
|
5113
5113
|
if (U(() => {
|
|
5114
5114
|
if (s != null && s.current) {
|
|
5115
5115
|
const l = s.current.getBoundingClientRect();
|
|
@@ -5143,8 +5143,8 @@ function en({
|
|
|
5143
5143
|
);
|
|
5144
5144
|
return typeof window != "undefined" ? Oe(d, document.body) : d;
|
|
5145
5145
|
}
|
|
5146
|
-
Bt.Input =
|
|
5147
|
-
Bt.Calendar =
|
|
5146
|
+
Bt.Input = Qr;
|
|
5147
|
+
Bt.Calendar = Zr;
|
|
5148
5148
|
Bt.Popup = en;
|
|
5149
5149
|
const Fl = Bt, As = xe(void 0);
|
|
5150
5150
|
function Es() {
|
|
@@ -5189,7 +5189,7 @@ function xi(a) {
|
|
|
5189
5189
|
"className",
|
|
5190
5190
|
"variant"
|
|
5191
5191
|
]);
|
|
5192
|
-
const { orientation: i } = Es(), d =
|
|
5192
|
+
const { orientation: i } = Es(), d = Q(null);
|
|
5193
5193
|
U(() => {
|
|
5194
5194
|
const u = d.current;
|
|
5195
5195
|
if (!u) return;
|
|
@@ -5392,7 +5392,7 @@ const Ol = Yt, Is = Pe(
|
|
|
5392
5392
|
onKeyDown: E,
|
|
5393
5393
|
leftIcon: n ? /* @__PURE__ */ r.jsx("div", { className: "animate-spin", children: /* @__PURE__ */ r.jsx(xs, { className: "h-4 w-4" }) }) : /* @__PURE__ */ r.jsx(xs, { className: "h-4 w-4" }),
|
|
5394
5394
|
rightIcon: a && h && !n ? /* @__PURE__ */ r.jsx(
|
|
5395
|
-
|
|
5395
|
+
Z,
|
|
5396
5396
|
{
|
|
5397
5397
|
variant: "ghost",
|
|
5398
5398
|
size: "sm",
|
|
@@ -5563,7 +5563,7 @@ const vi = Pe(
|
|
|
5563
5563
|
}, g) {
|
|
5564
5564
|
const [y, p] = F(
|
|
5565
5565
|
typeof n == "string" ? n : ""
|
|
5566
|
-
), [v, N] = F(!1), [h, j] = F(-1), [k, E] = F(""), w =
|
|
5566
|
+
), [v, N] = F(!1), [h, j] = F(-1), [k, E] = F(""), w = Q(null), S = Q(null), $ = Q(null), C = Q(null), D = t !== void 0, _ = D ? t : y, L = k.trim() ? m ? m(s, k) : s.filter(
|
|
5567
5567
|
(A) => A.label.toLowerCase().includes(k.toLowerCase())
|
|
5568
5568
|
) : s, X = L.length > 0, q = (A) => {
|
|
5569
5569
|
const V = A.target.value;
|
|
@@ -5673,7 +5673,7 @@ const yi = Pe(
|
|
|
5673
5673
|
inputClassName: x = "",
|
|
5674
5674
|
size: b = "md"
|
|
5675
5675
|
}, g) {
|
|
5676
|
-
const [y, p] = F(n), [v, N] = F(!1), [h, j] = F(-1), [k, E] = F(""), w =
|
|
5676
|
+
const [y, p] = F(n), [v, N] = F(!1), [h, j] = F(-1), [k, E] = F(""), w = Q(null), S = Q(null), $ = Q(null), C = t !== void 0, D = C ? t : y, _ = s.filter(
|
|
5677
5677
|
(B) => D.includes(B.value)
|
|
5678
5678
|
), L = (() => {
|
|
5679
5679
|
let B = s;
|
|
@@ -5919,7 +5919,7 @@ function Wl({
|
|
|
5919
5919
|
label: u,
|
|
5920
5920
|
description: m
|
|
5921
5921
|
}) {
|
|
5922
|
-
const [f, x] = F([]), [b, g] = F(!1), y =
|
|
5922
|
+
const [f, x] = F([]), [b, g] = F(!1), y = Q(null), p = (C) => {
|
|
5923
5923
|
if (C === 0) return "0 Bytes";
|
|
5924
5924
|
const D = 1024, _ = ["Bytes", "KB", "MB", "GB"], R = Math.floor(Math.log(C) / Math.log(D));
|
|
5925
5925
|
return Math.round(C / Math.pow(D, R) * 100) / 100 + " " + _[R];
|
|
@@ -6200,7 +6200,7 @@ function Wl({
|
|
|
6200
6200
|
] }),
|
|
6201
6201
|
!C.error && !d && /* @__PURE__ */ r.jsx(Wt, { className: T("h-5", "w-5", "text-fg-success") }),
|
|
6202
6202
|
/* @__PURE__ */ r.jsx(
|
|
6203
|
-
|
|
6203
|
+
Z,
|
|
6204
6204
|
{
|
|
6205
6205
|
variant: "ghost",
|
|
6206
6206
|
size: "sm",
|
|
@@ -6235,7 +6235,7 @@ function sn({
|
|
|
6235
6235
|
triggerClassName: m = "",
|
|
6236
6236
|
contentClassName: f = ""
|
|
6237
6237
|
}) {
|
|
6238
|
-
const [x, b] = F(n), g =
|
|
6238
|
+
const [x, b] = F(n), g = Q(null), y = Q(null), [p, v] = F({ top: 0, left: 0 }), N = t !== void 0, h = N ? t : x, j = K(() => {
|
|
6239
6239
|
if (!g.current || !y.current) return;
|
|
6240
6240
|
const S = g.current.getBoundingClientRect(), $ = y.current.getBoundingClientRect(), C = window.scrollY, D = window.scrollX;
|
|
6241
6241
|
let _ = 0, R = 0;
|
|
@@ -6331,7 +6331,7 @@ function sn({
|
|
|
6331
6331
|
}
|
|
6332
6332
|
),
|
|
6333
6333
|
i && /* @__PURE__ */ r.jsx(
|
|
6334
|
-
|
|
6334
|
+
Z,
|
|
6335
6335
|
{
|
|
6336
6336
|
variant: "ghost",
|
|
6337
6337
|
size: "sm",
|
|
@@ -6455,7 +6455,7 @@ function Hl({
|
|
|
6455
6455
|
}, D = /* @__PURE__ */ r.jsx("div", { className: `${M("base", "p")} min-w-48`, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-center gap-4", children: [
|
|
6456
6456
|
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center gap-2", children: [
|
|
6457
6457
|
/* @__PURE__ */ r.jsx(
|
|
6458
|
-
|
|
6458
|
+
Z,
|
|
6459
6459
|
{
|
|
6460
6460
|
variant: "ghost",
|
|
6461
6461
|
size: "sm",
|
|
@@ -6467,7 +6467,7 @@ function Hl({
|
|
|
6467
6467
|
),
|
|
6468
6468
|
/* @__PURE__ */ r.jsx("div", { className: "text-2xl font-mono font-semibold w-12 text-center", children: String(m).padStart(2, "0") }),
|
|
6469
6469
|
/* @__PURE__ */ r.jsx(
|
|
6470
|
-
|
|
6470
|
+
Z,
|
|
6471
6471
|
{
|
|
6472
6472
|
variant: "ghost",
|
|
6473
6473
|
size: "sm",
|
|
@@ -6481,7 +6481,7 @@ function Hl({
|
|
|
6481
6481
|
/* @__PURE__ */ r.jsx("div", { className: "text-2xl font-semibold", children: ":" }),
|
|
6482
6482
|
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center gap-2", children: [
|
|
6483
6483
|
/* @__PURE__ */ r.jsx(
|
|
6484
|
-
|
|
6484
|
+
Z,
|
|
6485
6485
|
{
|
|
6486
6486
|
variant: "ghost",
|
|
6487
6487
|
size: "sm",
|
|
@@ -6493,7 +6493,7 @@ function Hl({
|
|
|
6493
6493
|
),
|
|
6494
6494
|
/* @__PURE__ */ r.jsx("div", { className: "text-2xl font-mono font-semibold w-12 text-center", children: String(x).padStart(2, "0") }),
|
|
6495
6495
|
/* @__PURE__ */ r.jsx(
|
|
6496
|
-
|
|
6496
|
+
Z,
|
|
6497
6497
|
{
|
|
6498
6498
|
variant: "ghost",
|
|
6499
6499
|
size: "sm",
|
|
@@ -6506,7 +6506,7 @@ function Hl({
|
|
|
6506
6506
|
] }),
|
|
6507
6507
|
t === "12h" && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2 ml-2", children: [
|
|
6508
6508
|
/* @__PURE__ */ r.jsx(
|
|
6509
|
-
|
|
6509
|
+
Z,
|
|
6510
6510
|
{
|
|
6511
6511
|
variant: g === "AM" ? "primary" : "outline",
|
|
6512
6512
|
size: "sm",
|
|
@@ -6516,7 +6516,7 @@ function Hl({
|
|
|
6516
6516
|
}
|
|
6517
6517
|
),
|
|
6518
6518
|
/* @__PURE__ */ r.jsx(
|
|
6519
|
-
|
|
6519
|
+
Z,
|
|
6520
6520
|
{
|
|
6521
6521
|
variant: g === "PM" ? "primary" : "outline",
|
|
6522
6522
|
size: "sm",
|
|
@@ -6843,7 +6843,7 @@ function nn({
|
|
|
6843
6843
|
border-line-default
|
|
6844
6844
|
`,
|
|
6845
6845
|
children: /* @__PURE__ */ r.jsx(
|
|
6846
|
-
|
|
6846
|
+
Z,
|
|
6847
6847
|
{
|
|
6848
6848
|
variant: "ghost",
|
|
6849
6849
|
size: "sm",
|
|
@@ -6982,7 +6982,7 @@ function $i({
|
|
|
6982
6982
|
className: s = "",
|
|
6983
6983
|
align: t = "start"
|
|
6984
6984
|
}) {
|
|
6985
|
-
const { isOpen: n, closeMenu: a, placement: o } = Ms(), i =
|
|
6985
|
+
const { isOpen: n, closeMenu: a, placement: o } = Ms(), i = Q(null), d = Q(null), [l, c] = F({ top: 0, left: 0 });
|
|
6986
6986
|
if (U(() => {
|
|
6987
6987
|
if (n) {
|
|
6988
6988
|
const m = document.querySelector(
|
|
@@ -7112,7 +7112,7 @@ const ln = Pe(function(m, u) {
|
|
|
7112
7112
|
children: [
|
|
7113
7113
|
t && /* @__PURE__ */ r.jsx("span", { className: "shrink-0", children: t }),
|
|
7114
7114
|
/* @__PURE__ */ r.jsx("span", { className: "flex-1", children: s }),
|
|
7115
|
-
d && /* @__PURE__ */ r.jsx(
|
|
7115
|
+
d && /* @__PURE__ */ r.jsx(Qe, { className: "h-4 w-4 text-fg-secondary shrink-0" }),
|
|
7116
7116
|
n && !d && /* @__PURE__ */ r.jsx("span", { className: "shrink-0", children: n })
|
|
7117
7117
|
]
|
|
7118
7118
|
})
|
|
@@ -7345,7 +7345,7 @@ function Di({
|
|
|
7345
7345
|
}) {
|
|
7346
7346
|
const { isMobileMenuOpen: o, toggleMobileMenu: i } = dn(), d = s || /* @__PURE__ */ r.jsx(Co, { className: "h-5 w-5" }), l = t || /* @__PURE__ */ r.jsx($e, { className: "h-5 w-5" });
|
|
7347
7347
|
return /* @__PURE__ */ r.jsx(
|
|
7348
|
-
|
|
7348
|
+
Z,
|
|
7349
7349
|
{
|
|
7350
7350
|
variant: n,
|
|
7351
7351
|
size: a,
|
|
@@ -7719,7 +7719,7 @@ function Kl(n) {
|
|
|
7719
7719
|
] }),
|
|
7720
7720
|
/* @__PURE__ */ r.jsxs("div", { className: "flex justify-between", children: [
|
|
7721
7721
|
/* @__PURE__ */ r.jsx(
|
|
7722
|
-
|
|
7722
|
+
Z,
|
|
7723
7723
|
{
|
|
7724
7724
|
variant: "secondary",
|
|
7725
7725
|
type: "button",
|
|
@@ -7727,7 +7727,7 @@ function Kl(n) {
|
|
|
7727
7727
|
children: "Forgot password?"
|
|
7728
7728
|
}
|
|
7729
7729
|
),
|
|
7730
|
-
/* @__PURE__ */ r.jsx(
|
|
7730
|
+
/* @__PURE__ */ r.jsx(Z, { variant: "regular", type: "submit", children: "Sign in" })
|
|
7731
7731
|
] })
|
|
7732
7732
|
]
|
|
7733
7733
|
})
|
|
@@ -7755,7 +7755,7 @@ function Ul(c) {
|
|
|
7755
7755
|
"footer",
|
|
7756
7756
|
"className"
|
|
7757
7757
|
]);
|
|
7758
|
-
const m =
|
|
7758
|
+
const m = Q(null), f = Q(null);
|
|
7759
7759
|
if (U(() => {
|
|
7760
7760
|
if (!e) return;
|
|
7761
7761
|
f.current = document.activeElement;
|
|
@@ -7902,14 +7902,14 @@ function vr({
|
|
|
7902
7902
|
}) {
|
|
7903
7903
|
const A = le(() => n || (i !== void 0 && d ? "server" : "client"), [n, i, d]), V = a !== void 0, [J, te] = F(1), [B, Y] = F(c), O = V ? a : J, ce = o != null ? o : B, he = le(() => A === "server" ? i != null ? i : 0 : s.length, [A, i, s.length]), be = le(() => Math.ceil(he / ce), [he, ce]), we = m !== void 0, [Re, ht] = F(
|
|
7904
7904
|
b || ""
|
|
7905
|
-
), [Ae, pt] = F(g), Ne = we ? m : Re, $t = we ? f || "asc" : Ae, Jt = p !== void 0, [Tn, Rn] = F(N), Ct = Jt ? p : Tn,
|
|
7905
|
+
), [Ae, pt] = F(g), Ne = we ? m : Re, $t = we ? f || "asc" : Ae, Jt = p !== void 0, [Tn, Rn] = F(N), Ct = Jt ? p : Tn, Qt = j !== void 0, [_n, zn] = F(
|
|
7906
7906
|
[]
|
|
7907
|
-
), Ee =
|
|
7907
|
+
), Ee = Qt ? j : _n, At = le(() => !y || y.length === 0 ? s : s.filter((ee) => y.every((de) => {
|
|
7908
7908
|
const pe = Ct[de.key];
|
|
7909
7909
|
if (!pe || pe === "") return !0;
|
|
7910
7910
|
const It = ee[de.key];
|
|
7911
7911
|
return de.type === "text" ? String(It || "").toLowerCase().includes(String(pe).toLowerCase()) : String(It) === String(pe);
|
|
7912
|
-
})), [s, y, Ct]),
|
|
7912
|
+
})), [s, y, Ct]), Zt = le(() => {
|
|
7913
7913
|
if (we && x || !Ne) return At;
|
|
7914
7914
|
const ee = [...At];
|
|
7915
7915
|
return ee.sort((de, pe) => {
|
|
@@ -7920,10 +7920,10 @@ function vr({
|
|
|
7920
7920
|
}), ee;
|
|
7921
7921
|
}, [At, Ne, $t, x, we]), _e = le(() => {
|
|
7922
7922
|
if (A === "server")
|
|
7923
|
-
return
|
|
7923
|
+
return Zt;
|
|
7924
7924
|
const ee = (O - 1) * ce, de = ee + ce;
|
|
7925
|
-
return
|
|
7926
|
-
}, [
|
|
7925
|
+
return Zt.slice(ee, de);
|
|
7926
|
+
}, [Zt, A, O, ce]), st = K(
|
|
7927
7927
|
(ee, de) => {
|
|
7928
7928
|
var pe;
|
|
7929
7929
|
return E ? E(ee) : ((pe = ee == null ? void 0 : ee.id) == null ? void 0 : pe.toString()) || de.toString();
|
|
@@ -7958,9 +7958,9 @@ function vr({
|
|
|
7958
7958
|
[Jt, v, rt]
|
|
7959
7959
|
), Ue = K(
|
|
7960
7960
|
(ee) => {
|
|
7961
|
-
|
|
7961
|
+
Qt ? k == null || k(ee) : zn(ee);
|
|
7962
7962
|
},
|
|
7963
|
-
[
|
|
7963
|
+
[Qt, k]
|
|
7964
7964
|
), Bs = K(
|
|
7965
7965
|
(ee) => {
|
|
7966
7966
|
const de = Ee.includes(ee) ? Ee.filter((pe) => pe !== ee) : [...Ee, ee];
|
|
@@ -8101,7 +8101,7 @@ function un(l) {
|
|
|
8101
8101
|
"maxWidth",
|
|
8102
8102
|
"className"
|
|
8103
8103
|
]);
|
|
8104
|
-
const { sortState: u, setSorting: m, onSort: f } = We(), x =
|
|
8104
|
+
const { sortState: u, setSorting: m, onSort: f } = We(), x = Q(null), b = Q(null), g = Q(null), y = () => {
|
|
8105
8105
|
if (!e.sortable || !f && !m) return;
|
|
8106
8106
|
const k = u.column === e.key && u.direction === "asc" ? "desc" : "asc";
|
|
8107
8107
|
f ? f(e.key, k) : m(e.key, k);
|
|
@@ -8265,7 +8265,7 @@ function Li(o) {
|
|
|
8265
8265
|
li,
|
|
8266
8266
|
{
|
|
8267
8267
|
trigger: /* @__PURE__ */ r.jsx(
|
|
8268
|
-
|
|
8268
|
+
Z,
|
|
8269
8269
|
{
|
|
8270
8270
|
variant: "ghost",
|
|
8271
8271
|
size: "sm",
|
|
@@ -8373,7 +8373,7 @@ function xn(t) {
|
|
|
8373
8373
|
] })) : /* @__PURE__ */ r.jsx("div", z(I({ className: `text-center text-fg-secondary ${e}` }, s), { children: a || "No data available" }));
|
|
8374
8374
|
}
|
|
8375
8375
|
function Fi(e, s) {
|
|
8376
|
-
const { itemHeight: t, containerHeight: n, overscan: a = 5, enabled: o = !0 } = s, [i, d] = F(0), l =
|
|
8376
|
+
const { itemHeight: t, containerHeight: n, overscan: a = 5, enabled: o = !0 } = s, [i, d] = F(0), l = Q(null), c = le(() => {
|
|
8377
8377
|
if (!o || e.length === 0)
|
|
8378
8378
|
return e.map((g, y) => ({
|
|
8379
8379
|
index: y,
|
|
@@ -8559,7 +8559,7 @@ function Pi(i) {
|
|
|
8559
8559
|
}
|
|
8560
8560
|
),
|
|
8561
8561
|
f && n && /* @__PURE__ */ r.jsx(
|
|
8562
|
-
|
|
8562
|
+
Z,
|
|
8563
8563
|
{
|
|
8564
8564
|
variant: "ghost",
|
|
8565
8565
|
size: "sm",
|
|
@@ -8697,7 +8697,7 @@ function Oi(u) {
|
|
|
8697
8697
|
children: [
|
|
8698
8698
|
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 justify-between sm:hidden", children: [
|
|
8699
8699
|
/* @__PURE__ */ r.jsx(
|
|
8700
|
-
|
|
8700
|
+
Z,
|
|
8701
8701
|
{
|
|
8702
8702
|
variant: "outline",
|
|
8703
8703
|
size: "sm",
|
|
@@ -8707,7 +8707,7 @@ function Oi(u) {
|
|
|
8707
8707
|
}
|
|
8708
8708
|
),
|
|
8709
8709
|
/* @__PURE__ */ r.jsx(
|
|
8710
|
-
|
|
8710
|
+
Z,
|
|
8711
8711
|
{
|
|
8712
8712
|
variant: "outline",
|
|
8713
8713
|
size: "sm",
|
|
@@ -8750,7 +8750,7 @@ function Oi(u) {
|
|
|
8750
8750
|
] }),
|
|
8751
8751
|
/* @__PURE__ */ r.jsxs("nav", { className: "flex items-center gap-1", "aria-label": "Pagination", children: [
|
|
8752
8752
|
/* @__PURE__ */ r.jsxs(
|
|
8753
|
-
|
|
8753
|
+
Z,
|
|
8754
8754
|
{
|
|
8755
8755
|
variant: "ghost",
|
|
8756
8756
|
size: "sm",
|
|
@@ -8764,7 +8764,7 @@ function Oi(u) {
|
|
|
8764
8764
|
}
|
|
8765
8765
|
),
|
|
8766
8766
|
/* @__PURE__ */ r.jsx(
|
|
8767
|
-
|
|
8767
|
+
Z,
|
|
8768
8768
|
{
|
|
8769
8769
|
variant: "ghost",
|
|
8770
8770
|
size: "sm",
|
|
@@ -8777,7 +8777,7 @@ function Oi(u) {
|
|
|
8777
8777
|
/* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-1", children: Array.from({ length: Math.min(5, f) }, (N, h) => {
|
|
8778
8778
|
let j;
|
|
8779
8779
|
return f <= 5 || e <= 3 ? j = h + 1 : e >= f - 2 ? j = f - 4 + h : j = e - 2 + h, /* @__PURE__ */ r.jsx(
|
|
8780
|
-
|
|
8780
|
+
Z,
|
|
8781
8781
|
{
|
|
8782
8782
|
variant: e === j ? "primary" : "ghost",
|
|
8783
8783
|
size: "sm",
|
|
@@ -8791,18 +8791,18 @@ function Oi(u) {
|
|
|
8791
8791
|
);
|
|
8792
8792
|
}) }),
|
|
8793
8793
|
/* @__PURE__ */ r.jsx(
|
|
8794
|
-
|
|
8794
|
+
Z,
|
|
8795
8795
|
{
|
|
8796
8796
|
variant: "ghost",
|
|
8797
8797
|
size: "sm",
|
|
8798
8798
|
onClick: y,
|
|
8799
8799
|
disabled: e >= f,
|
|
8800
8800
|
"aria-label": "Next page",
|
|
8801
|
-
children: /* @__PURE__ */ r.jsx(
|
|
8801
|
+
children: /* @__PURE__ */ r.jsx(Qe, { className: "h-4 w-4" })
|
|
8802
8802
|
}
|
|
8803
8803
|
),
|
|
8804
8804
|
/* @__PURE__ */ r.jsxs(
|
|
8805
|
-
|
|
8805
|
+
Z,
|
|
8806
8806
|
{
|
|
8807
8807
|
variant: "ghost",
|
|
8808
8808
|
size: "sm",
|
|
@@ -8810,8 +8810,8 @@ function Oi(u) {
|
|
|
8810
8810
|
disabled: e >= f,
|
|
8811
8811
|
"aria-label": "Last page",
|
|
8812
8812
|
children: [
|
|
8813
|
-
/* @__PURE__ */ r.jsx(
|
|
8814
|
-
/* @__PURE__ */ r.jsx(
|
|
8813
|
+
/* @__PURE__ */ r.jsx(Qe, { className: "h-4 w-4" }),
|
|
8814
|
+
/* @__PURE__ */ r.jsx(Qe, { className: "h-4 w-4 -ml-2" })
|
|
8815
8815
|
]
|
|
8816
8816
|
}
|
|
8817
8817
|
)
|
|
@@ -8969,7 +8969,7 @@ function Jl(e = {}) {
|
|
|
8969
8969
|
minWidth: t = 50,
|
|
8970
8970
|
maxWidth: n,
|
|
8971
8971
|
resizable: a = !0
|
|
8972
|
-
} = e, [o, i] = F(s), [d, l] = F(!1), [c, u] = F(null), m =
|
|
8972
|
+
} = e, [o, i] = F(s), [d, l] = F(!1), [c, u] = F(null), m = Q(
|
|
8973
8973
|
null
|
|
8974
8974
|
), f = K(
|
|
8975
8975
|
(N, h) => {
|
|
@@ -8998,9 +8998,9 @@ function Jl(e = {}) {
|
|
|
8998
8998
|
[d, c, f]
|
|
8999
8999
|
), y = K(() => {
|
|
9000
9000
|
l(!1), u(null), m.current = null;
|
|
9001
|
-
}, []), p =
|
|
9001
|
+
}, []), p = Q(
|
|
9002
9002
|
void 0
|
|
9003
|
-
), v =
|
|
9003
|
+
), v = Q(void 0);
|
|
9004
9004
|
return typeof window != "undefined" && (p.current = (N) => {
|
|
9005
9005
|
d && g(N.clientX);
|
|
9006
9006
|
}, v.current = () => {
|
|
@@ -9017,10 +9017,10 @@ function Jl(e = {}) {
|
|
|
9017
9017
|
};
|
|
9018
9018
|
}
|
|
9019
9019
|
const Rs = xe(null);
|
|
9020
|
-
function
|
|
9020
|
+
function Ql() {
|
|
9021
9021
|
return ne(Rs);
|
|
9022
9022
|
}
|
|
9023
|
-
function
|
|
9023
|
+
function Ze() {
|
|
9024
9024
|
const e = ne(Rs);
|
|
9025
9025
|
if (!e)
|
|
9026
9026
|
throw new Error(
|
|
@@ -9062,7 +9062,7 @@ function yn({
|
|
|
9062
9062
|
return /* @__PURE__ */ r.jsx(Rs.Provider, { value: i, children: e });
|
|
9063
9063
|
}
|
|
9064
9064
|
const _s = xe(null);
|
|
9065
|
-
function
|
|
9065
|
+
function Zl() {
|
|
9066
9066
|
return ne(_s);
|
|
9067
9067
|
}
|
|
9068
9068
|
function ft() {
|
|
@@ -9233,7 +9233,7 @@ function qi({
|
|
|
9233
9233
|
"[useResize] Invalid bounds: minWidth must be less than maxWidth",
|
|
9234
9234
|
{ minWidth: s, maxWidth: t }
|
|
9235
9235
|
));
|
|
9236
|
-
const d = fs(e, s, t), [l, c] = F(d), [u, m] = F(!1), f =
|
|
9236
|
+
const d = fs(e, s, t), [l, c] = F(d), [u, m] = F(!1), f = Q(0), x = Q(d), b = K(
|
|
9237
9237
|
(v) => {
|
|
9238
9238
|
let N = fs(v, s, t);
|
|
9239
9239
|
if (n && n.length > 0) {
|
|
@@ -9310,7 +9310,7 @@ function Yi({
|
|
|
9310
9310
|
restoreFocus: t = !0,
|
|
9311
9311
|
initialFocusRef: n
|
|
9312
9312
|
}) {
|
|
9313
|
-
const a =
|
|
9313
|
+
const a = Q(null);
|
|
9314
9314
|
U(() => {
|
|
9315
9315
|
if (e) {
|
|
9316
9316
|
if (a.current = document.activeElement, n != null && n.current)
|
|
@@ -9378,7 +9378,7 @@ function jn({
|
|
|
9378
9378
|
onMobileChange: o,
|
|
9379
9379
|
exclusiveGroups: i = !1
|
|
9380
9380
|
}) {
|
|
9381
|
-
const d =
|
|
9381
|
+
const d = Ze(), l = ft(), c = Q(null), u = t !== void 0, m = () => {
|
|
9382
9382
|
if (u) return t;
|
|
9383
9383
|
if (l.storageKey && l.persistState && typeof window != "undefined") {
|
|
9384
9384
|
const R = localStorage.getItem(`${l.storageKey}-collapsed`);
|
|
@@ -9597,7 +9597,7 @@ function Ui({
|
|
|
9597
9597
|
children: e,
|
|
9598
9598
|
defaultSlot: s = null
|
|
9599
9599
|
}) {
|
|
9600
|
-
const [t, n] = F(s), a =
|
|
9600
|
+
const [t, n] = F(s), a = Q(/* @__PURE__ */ new Map()), o = K((l, c) => {
|
|
9601
9601
|
a.current.set(l, c);
|
|
9602
9602
|
}, []), i = K((l) => {
|
|
9603
9603
|
a.current.delete(l);
|
|
@@ -9718,7 +9718,7 @@ function An(o) {
|
|
|
9718
9718
|
"className",
|
|
9719
9719
|
"style"
|
|
9720
9720
|
]);
|
|
9721
|
-
const { collapsed: d, setCollapsed: l, isMobile: c } = et(), { animationDuration: u } =
|
|
9721
|
+
const { collapsed: d, setCollapsed: l, isMobile: c } = et(), { animationDuration: u } = Ze(), { mobileVariant: m, overlayBackdrop: f } = ft(), x = c && m === "overlay", b = e != null ? e : x && f && !d, g = () => {
|
|
9722
9722
|
s ? s() : l(!0);
|
|
9723
9723
|
};
|
|
9724
9724
|
return b ? /* @__PURE__ */ r.jsx(
|
|
@@ -9749,7 +9749,7 @@ const Xi = {
|
|
|
9749
9749
|
sm: "w-4 h-4",
|
|
9750
9750
|
md: "w-5 h-5",
|
|
9751
9751
|
lg: "w-6 h-6"
|
|
9752
|
-
},
|
|
9752
|
+
}, Qi = {
|
|
9753
9753
|
floating: `absolute ${me("fixed")}`,
|
|
9754
9754
|
// Right edge of navbar, vertically centered - position set via style
|
|
9755
9755
|
// micro-z: toggle above adjacent siblings in absolute corner position
|
|
@@ -9762,7 +9762,7 @@ const Xi = {
|
|
|
9762
9762
|
"navigation-top": "relative mt-2 mx-auto z-10",
|
|
9763
9763
|
// micro-z: toggle above sibling content in relative inside position
|
|
9764
9764
|
"navigation-bottom": "relative mt-auto mb-2 mx-auto z-10"
|
|
9765
|
-
},
|
|
9765
|
+
}, Zi = {
|
|
9766
9766
|
default: "bg-surface-raised border border-line-default shadow-sm hover:bg-surface-hover hover:shadow",
|
|
9767
9767
|
ghost: "bg-transparent hover:bg-surface-hover border-0",
|
|
9768
9768
|
outline: "bg-transparent border border-line-default hover:bg-surface-hover"
|
|
@@ -9813,7 +9813,7 @@ function En(g) {
|
|
|
9813
9813
|
navigationWidth: j,
|
|
9814
9814
|
contentWidth: k,
|
|
9815
9815
|
minWidth: E
|
|
9816
|
-
} =
|
|
9816
|
+
} = Ze(), w = ft(), S = c != null ? c : w.keyboardShortcut, $ = u != null ? u : w.enableKeyboardShortcut, C = () => {
|
|
9817
9817
|
if (typeof t == "function")
|
|
9818
9818
|
return t(p);
|
|
9819
9819
|
if (t)
|
|
@@ -9855,12 +9855,12 @@ function En(g) {
|
|
|
9855
9855
|
onClick: v,
|
|
9856
9856
|
className: `
|
|
9857
9857
|
${Xi[o]}
|
|
9858
|
-
${
|
|
9858
|
+
${Zi[i]}
|
|
9859
9859
|
rounded-full
|
|
9860
9860
|
flex items-center justify-center
|
|
9861
9861
|
text-fg-secondary hover:text-fg-primary
|
|
9862
9862
|
focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-1
|
|
9863
|
-
${e === "floating" ? "" :
|
|
9863
|
+
${e === "floating" ? "" : Qi[e]}
|
|
9864
9864
|
${m}
|
|
9865
9865
|
`,
|
|
9866
9866
|
style: I(I(I(I({}, e === "floating" ? {
|
|
@@ -9936,7 +9936,7 @@ function sl(o) {
|
|
|
9936
9936
|
"style",
|
|
9937
9937
|
"aria-label"
|
|
9938
9938
|
]);
|
|
9939
|
-
const d = et(), l =
|
|
9939
|
+
const d = et(), l = Ze(), c = ft(), u = $n(), {
|
|
9940
9940
|
collapsed: m,
|
|
9941
9941
|
setCollapsed: f,
|
|
9942
9942
|
currentWidth: x,
|
|
@@ -10023,7 +10023,7 @@ function ws(o) {
|
|
|
10023
10023
|
const { collapsed: d, toggle: l } = Os(), c = () => {
|
|
10024
10024
|
if (e)
|
|
10025
10025
|
return typeof e == "function" ? e(d) : e;
|
|
10026
|
-
const x = d ?
|
|
10026
|
+
const x = d ? Qe : jt;
|
|
10027
10027
|
return /* @__PURE__ */ r.jsx(
|
|
10028
10028
|
x,
|
|
10029
10029
|
{
|
|
@@ -10374,7 +10374,7 @@ function ll(d) {
|
|
|
10374
10374
|
children: [
|
|
10375
10375
|
" ",
|
|
10376
10376
|
t && /* @__PURE__ */ r.jsx("span", { className: "shrink-0", children: c ? /* @__PURE__ */ r.jsx(
|
|
10377
|
-
|
|
10377
|
+
Qe,
|
|
10378
10378
|
{
|
|
10379
10379
|
className: "w-3 h-3",
|
|
10380
10380
|
style: { transition: "none", transform: "none" }
|
|
@@ -10420,7 +10420,7 @@ function mt(u) {
|
|
|
10420
10420
|
"className",
|
|
10421
10421
|
"style"
|
|
10422
10422
|
]);
|
|
10423
|
-
const f = et(), x =
|
|
10423
|
+
const f = et(), x = Ze(), b = ft(), g = $n(), y = Q(null), [p, v] = F(null), [N, h] = F(!1), j = s != null ? s : g.showMainToggle;
|
|
10424
10424
|
t != null || g.mainTogglePosition;
|
|
10425
10425
|
const k = o === "inline" && !f.collapsed, E = k ? typeof i == "number" ? `${i}px` : i : x.navigationWidth, w = le(
|
|
10426
10426
|
() => ({
|
|
@@ -10697,7 +10697,7 @@ function ml(c) {
|
|
|
10697
10697
|
collapsed: m,
|
|
10698
10698
|
activeGroup: f,
|
|
10699
10699
|
setActiveGroup: x
|
|
10700
|
-
} = Xt(), { groupStates: b, toggleGroup: g, setGroupCollapsed: y } = et(), { animationDuration: p } =
|
|
10700
|
+
} = Xt(), { groupStates: b, toggleGroup: g, setGroupCollapsed: y } = et(), { animationDuration: p } = Ze(), v = Q(!1);
|
|
10701
10701
|
if (U(() => {
|
|
10702
10702
|
!v.current && b[e] === void 0 && (v.current = !0, y(e, o));
|
|
10703
10703
|
}, [e, o, b, y]), m)
|
|
@@ -10778,7 +10778,7 @@ function pl({
|
|
|
10778
10778
|
}
|
|
10779
10779
|
function tt(a) {
|
|
10780
10780
|
var o = a, { children: e, className: s = "", style: t } = o, n = W(o, ["children", "className", "style"]);
|
|
10781
|
-
const i = et(), d =
|
|
10781
|
+
const i = et(), d = Ze(), l = Q(null), [c, u] = F(0), [m, f] = F(!1), [x, b] = F(!1), [g, y] = F(null), p = K(() => f(!0), []), v = K(() => f(!1), []), N = K(() => b(!0), []), h = K(() => b(!1), []), j = le(
|
|
10782
10782
|
() => ({
|
|
10783
10783
|
// Inherited from root
|
|
10784
10784
|
collapsed: i.collapsed,
|
|
@@ -11052,7 +11052,7 @@ function In(i) {
|
|
|
11052
11052
|
"closeOnEscape",
|
|
11053
11053
|
"className"
|
|
11054
11054
|
]);
|
|
11055
|
-
const { isOpen: l, onClose: c, titleId: u, descriptionId: m } = Nt(), f =
|
|
11055
|
+
const { isOpen: l, onClose: c, titleId: u, descriptionId: m } = Nt(), f = Q(null), x = Q(null);
|
|
11056
11056
|
if (U(() => {
|
|
11057
11057
|
if (!l) return;
|
|
11058
11058
|
const p = setTimeout(() => {
|
|
@@ -11219,7 +11219,7 @@ function vl({
|
|
|
11219
11219
|
a(), n.props.onClick && n.props.onClick(o);
|
|
11220
11220
|
}
|
|
11221
11221
|
}) : /* @__PURE__ */ r.jsx(
|
|
11222
|
-
|
|
11222
|
+
Z,
|
|
11223
11223
|
{
|
|
11224
11224
|
variant: "iconOnly",
|
|
11225
11225
|
size: "sm",
|
|
@@ -11275,9 +11275,9 @@ function lc({
|
|
|
11275
11275
|
a && /* @__PURE__ */ r.jsx(Me.Description, { children: a })
|
|
11276
11276
|
] }),
|
|
11277
11277
|
/* @__PURE__ */ r.jsxs(Mn, { children: [
|
|
11278
|
-
/* @__PURE__ */ r.jsx(
|
|
11278
|
+
/* @__PURE__ */ r.jsx(Z, { variant: "outline", onClick: f, children: i }),
|
|
11279
11279
|
/* @__PURE__ */ r.jsx(
|
|
11280
|
-
|
|
11280
|
+
Z,
|
|
11281
11281
|
{
|
|
11282
11282
|
variant: d === "destructive" ? "error" : "primary",
|
|
11283
11283
|
onClick: m,
|
|
@@ -11377,7 +11377,7 @@ function kl(i) {
|
|
|
11377
11377
|
/* @__PURE__ */ r.jsx("div", { className: "font-medium text-fg-primary", children: e.title }),
|
|
11378
11378
|
e.description && /* @__PURE__ */ r.jsx("div", { className: "mt-1 text-sm text-fg-secondary", children: e.description }),
|
|
11379
11379
|
e.action && /* @__PURE__ */ r.jsx("div", { className: "mt-3", children: /* @__PURE__ */ r.jsx(
|
|
11380
|
-
|
|
11380
|
+
Z,
|
|
11381
11381
|
{
|
|
11382
11382
|
variant: "outline",
|
|
11383
11383
|
size: "sm",
|
|
@@ -11390,7 +11390,7 @@ function kl(i) {
|
|
|
11390
11390
|
) })
|
|
11391
11391
|
] }),
|
|
11392
11392
|
/* @__PURE__ */ r.jsx(
|
|
11393
|
-
|
|
11393
|
+
Z,
|
|
11394
11394
|
{
|
|
11395
11395
|
variant: "iconOnly",
|
|
11396
11396
|
size: "sm",
|
|
@@ -11586,7 +11586,7 @@ function Nl({
|
|
|
11586
11586
|
className: `flex justify-between mt-4 ${M("base", "gap")}`,
|
|
11587
11587
|
children: [
|
|
11588
11588
|
/* @__PURE__ */ r.jsx(
|
|
11589
|
-
|
|
11589
|
+
Z,
|
|
11590
11590
|
{
|
|
11591
11591
|
variant: "outline",
|
|
11592
11592
|
onClick: g,
|
|
@@ -11594,7 +11594,7 @@ function Nl({
|
|
|
11594
11594
|
children: "Previous"
|
|
11595
11595
|
}
|
|
11596
11596
|
),
|
|
11597
|
-
/* @__PURE__ */ r.jsx(
|
|
11597
|
+
/* @__PURE__ */ r.jsx(Z, { variant: "primary", onClick: b, children: N ? "Complete" : "Next" })
|
|
11598
11598
|
]
|
|
11599
11599
|
}
|
|
11600
11600
|
)
|
|
@@ -11671,7 +11671,7 @@ function Nl({
|
|
|
11671
11671
|
),
|
|
11672
11672
|
/* @__PURE__ */ r.jsxs("div", { className: `flex justify-between ${M("base", "gap")}`, children: [
|
|
11673
11673
|
/* @__PURE__ */ r.jsx(
|
|
11674
|
-
|
|
11674
|
+
Z,
|
|
11675
11675
|
{
|
|
11676
11676
|
variant: "outline",
|
|
11677
11677
|
onClick: g,
|
|
@@ -11679,7 +11679,7 @@ function Nl({
|
|
|
11679
11679
|
children: "Previous"
|
|
11680
11680
|
}
|
|
11681
11681
|
),
|
|
11682
|
-
/* @__PURE__ */ r.jsx(
|
|
11682
|
+
/* @__PURE__ */ r.jsx(Z, { variant: "primary", onClick: b, children: N ? "Complete" : "Next" })
|
|
11683
11683
|
] })
|
|
11684
11684
|
] });
|
|
11685
11685
|
}
|
|
@@ -11793,7 +11793,7 @@ function fc({
|
|
|
11793
11793
|
emptyMessage: i = "No commands found",
|
|
11794
11794
|
className: d = ""
|
|
11795
11795
|
}) {
|
|
11796
|
-
const [l, c] = F(t), [u, m] = F(""), [f, x] = F(0), b =
|
|
11796
|
+
const [l, c] = F(t), [u, m] = F(""), [f, x] = F(0), b = Q(null), g = Q(null), y = s !== void 0, p = y ? s : l, v = e.filter((w) => {
|
|
11797
11797
|
var _, R;
|
|
11798
11798
|
if (!u) return !0;
|
|
11799
11799
|
const S = u.toLowerCase(), $ = w.label.toLowerCase().includes(S), C = (_ = w.description) == null ? void 0 : _.toLowerCase().includes(S), D = (R = w.keywords) == null ? void 0 : R.some(
|
|
@@ -12109,7 +12109,7 @@ function mc({
|
|
|
12109
12109
|
`,
|
|
12110
12110
|
children: [
|
|
12111
12111
|
/* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-2", children: c && /* @__PURE__ */ r.jsx(
|
|
12112
|
-
|
|
12112
|
+
Z,
|
|
12113
12113
|
{
|
|
12114
12114
|
variant: "outline",
|
|
12115
12115
|
size: "sm",
|
|
@@ -12120,7 +12120,7 @@ function mc({
|
|
|
12120
12120
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
12121
12121
|
S,
|
|
12122
12122
|
N && /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-1", children: j.map((Y) => /* @__PURE__ */ r.jsx(
|
|
12123
|
-
|
|
12123
|
+
Z,
|
|
12124
12124
|
{
|
|
12125
12125
|
variant: "outline",
|
|
12126
12126
|
size: "sm",
|
|
@@ -12291,7 +12291,7 @@ function pc({
|
|
|
12291
12291
|
/* @__PURE__ */ r.jsx("div", { className: "min-h-48", children: x.fields }),
|
|
12292
12292
|
/* @__PURE__ */ r.jsxs("div", { className: "flex justify-between pt-4 border-t", children: [
|
|
12293
12293
|
/* @__PURE__ */ r.jsx(
|
|
12294
|
-
|
|
12294
|
+
Z,
|
|
12295
12295
|
{
|
|
12296
12296
|
variant: "outline",
|
|
12297
12297
|
onClick: m,
|
|
@@ -12299,7 +12299,7 @@ function pc({
|
|
|
12299
12299
|
children: "Back"
|
|
12300
12300
|
}
|
|
12301
12301
|
),
|
|
12302
|
-
/* @__PURE__ */ r.jsx(
|
|
12302
|
+
/* @__PURE__ */ r.jsx(Z, { variant: "primary", onClick: u, children: b ? "Complete" : "Next" })
|
|
12303
12303
|
] })
|
|
12304
12304
|
] }) })
|
|
12305
12305
|
] }) });
|
|
@@ -12371,7 +12371,7 @@ function xc({
|
|
|
12371
12371
|
)
|
|
12372
12372
|
] }, y.id);
|
|
12373
12373
|
}) }),
|
|
12374
|
-
g && /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
|
|
12374
|
+
g && /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(Z, { variant: "outline", size: "sm", onClick: b, children: "Clear Filters" }) })
|
|
12375
12375
|
] }) }),
|
|
12376
12376
|
d && /* @__PURE__ */ r.jsxs("div", { className: "text-sm text-fg-secondary", children: [
|
|
12377
12377
|
"Showing ",
|
|
@@ -12437,8 +12437,8 @@ export {
|
|
|
12437
12437
|
Ll as a2,
|
|
12438
12438
|
Fl as a3,
|
|
12439
12439
|
hr as a4,
|
|
12440
|
-
|
|
12441
|
-
|
|
12440
|
+
Qr as a5,
|
|
12441
|
+
Zr as a6,
|
|
12442
12442
|
Ol as a7,
|
|
12443
12443
|
xi as a8,
|
|
12444
12444
|
bi as a9,
|
|
@@ -12462,11 +12462,11 @@ export {
|
|
|
12462
12462
|
Fi as aR,
|
|
12463
12463
|
Jl as aS,
|
|
12464
12464
|
Rs as aT,
|
|
12465
|
-
|
|
12466
|
-
|
|
12465
|
+
Ql as aU,
|
|
12466
|
+
Ze as aV,
|
|
12467
12467
|
yt as aW,
|
|
12468
12468
|
_s as aX,
|
|
12469
|
-
|
|
12469
|
+
Zl as aY,
|
|
12470
12470
|
ft as aZ,
|
|
12471
12471
|
ve as a_,
|
|
12472
12472
|
gi as aa,
|
|
@@ -12569,4 +12569,4 @@ export {
|
|
|
12569
12569
|
vl as y,
|
|
12570
12570
|
lc as z
|
|
12571
12571
|
};
|
|
12572
|
-
//# sourceMappingURL=components-
|
|
12572
|
+
//# sourceMappingURL=components-DEuqI-ld.js.map
|