@neuctra/ui 0.2.4 → 0.2.5
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/index.cjs.js +30 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +228 -188
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/basic/Table.js +30 -11
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/components/avatar/AvatarGroup.d.ts +0 -9
- package/dist/components/avatar/AvatarWithStatus.d.ts +0 -10
- package/dist/src/components/avatar/AvatarGroup.js +0 -9
- package/dist/src/components/avatar/AvatarWithStatus.js +0 -18
- package/dist/types/src/components/avatar/AvatarGroup.d.ts +0 -9
- package/dist/types/src/components/avatar/AvatarWithStatus.d.ts +0 -10
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Ie, { forwardRef as me, createElement as
|
|
2
|
-
var
|
|
1
|
+
import Ie, { forwardRef as me, createElement as ye, useState as L, useEffect as te, useMemo as oe, memo as Me, useRef as ce, useId as Fe, useImperativeHandle as De, useCallback as ve } from "react";
|
|
2
|
+
var be = { exports: {} }, pe = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -150,7 +150,7 @@ function Ve() {
|
|
|
150
150
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
151
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function b(o, T, B, Y, K, se) {
|
|
154
154
|
var M = B.ref;
|
|
155
155
|
return o = {
|
|
156
156
|
$$typeof: g,
|
|
@@ -183,7 +183,7 @@ function Ve() {
|
|
|
183
183
|
value: se
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function y(o, T, B, Y, K, se) {
|
|
187
187
|
var M = T.children;
|
|
188
188
|
if (M !== void 0)
|
|
189
189
|
if (Y)
|
|
@@ -216,13 +216,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
}
|
|
217
217
|
if (M = null, B !== void 0 && (n(B), M = "" + B), p(T) && (n(T.key), M = "" + T.key), "key" in T) {
|
|
218
218
|
B = {};
|
|
219
|
-
for (var
|
|
220
|
-
|
|
219
|
+
for (var q in T)
|
|
220
|
+
q !== "key" && (B[q] = T[q]);
|
|
221
221
|
} else B = T;
|
|
222
222
|
return M && u(
|
|
223
223
|
B,
|
|
224
224
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
|
-
),
|
|
225
|
+
), b(
|
|
226
226
|
o,
|
|
227
227
|
M,
|
|
228
228
|
B,
|
|
@@ -248,33 +248,33 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
var S, V = {}, U = v.react_stack_bottom_frame.bind(
|
|
249
249
|
v,
|
|
250
250
|
l
|
|
251
|
-
)(),
|
|
251
|
+
)(), X = R(s(l)), ne = {};
|
|
252
252
|
xe.Fragment = x, xe.jsx = function(o, T, B) {
|
|
253
253
|
var Y = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
254
|
-
return
|
|
254
|
+
return y(
|
|
255
255
|
o,
|
|
256
256
|
T,
|
|
257
257
|
B,
|
|
258
258
|
!1,
|
|
259
259
|
Y ? Error("react-stack-top-frame") : U,
|
|
260
|
-
Y ? R(s(o)) :
|
|
260
|
+
Y ? R(s(o)) : X
|
|
261
261
|
);
|
|
262
262
|
}, xe.jsxs = function(o, T, B) {
|
|
263
263
|
var Y = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return
|
|
264
|
+
return y(
|
|
265
265
|
o,
|
|
266
266
|
T,
|
|
267
267
|
B,
|
|
268
268
|
!0,
|
|
269
269
|
Y ? Error("react-stack-top-frame") : U,
|
|
270
|
-
Y ? R(s(o)) :
|
|
270
|
+
Y ? R(s(o)) : X
|
|
271
271
|
);
|
|
272
272
|
};
|
|
273
273
|
})()), xe;
|
|
274
274
|
}
|
|
275
275
|
var Re;
|
|
276
276
|
function Ue() {
|
|
277
|
-
return Re || (Re = 1, process.env.NODE_ENV === "production" ?
|
|
277
|
+
return Re || (Re = 1, process.env.NODE_ENV === "production" ? be.exports = He() : be.exports = Ve()), be.exports;
|
|
278
278
|
}
|
|
279
279
|
var e = Ue();
|
|
280
280
|
/**
|
|
@@ -283,11 +283,11 @@ var e = Ue();
|
|
|
283
283
|
* This source code is licensed under the ISC license.
|
|
284
284
|
* See the LICENSE file in the root directory of this source tree.
|
|
285
285
|
*/
|
|
286
|
-
const
|
|
286
|
+
const Xe = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qe = (t) => t.replace(
|
|
287
287
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
288
288
|
(r, n, s) => s ? s.toUpperCase() : n.toLowerCase()
|
|
289
289
|
), Ee = (t) => {
|
|
290
|
-
const r =
|
|
290
|
+
const r = qe(t);
|
|
291
291
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
292
292
|
}, Ae = (...t) => t.filter((r, n, s) => !!r && r.trim() !== "" && s.indexOf(r) === n).join(" ").trim(), Ge = (t) => {
|
|
293
293
|
for (const r in t)
|
|
@@ -327,7 +327,7 @@ const Ze = me(
|
|
|
327
327
|
children: l,
|
|
328
328
|
iconNode: p,
|
|
329
329
|
...u
|
|
330
|
-
}, h) =>
|
|
330
|
+
}, h) => ye(
|
|
331
331
|
"svg",
|
|
332
332
|
{
|
|
333
333
|
ref: h,
|
|
@@ -341,7 +341,7 @@ const Ze = me(
|
|
|
341
341
|
...u
|
|
342
342
|
},
|
|
343
343
|
[
|
|
344
|
-
...p.map(([
|
|
344
|
+
...p.map(([b, y]) => ye(b, y)),
|
|
345
345
|
...Array.isArray(l) ? l : [l]
|
|
346
346
|
]
|
|
347
347
|
)
|
|
@@ -354,11 +354,11 @@ const Ze = me(
|
|
|
354
354
|
*/
|
|
355
355
|
const G = (t, r) => {
|
|
356
356
|
const n = me(
|
|
357
|
-
({ className: s, ...i }, l) =>
|
|
357
|
+
({ className: s, ...i }, l) => ye(Ze, {
|
|
358
358
|
ref: l,
|
|
359
359
|
iconNode: r,
|
|
360
360
|
className: Ae(
|
|
361
|
-
`lucide-${
|
|
361
|
+
`lucide-${Xe(Ee(t))}`,
|
|
362
362
|
`lucide-${t}`,
|
|
363
363
|
s
|
|
364
364
|
),
|
|
@@ -530,13 +530,13 @@ const mt = [
|
|
|
530
530
|
* This source code is licensed under the ISC license.
|
|
531
531
|
* See the LICENSE file in the root directory of this source tree.
|
|
532
532
|
*/
|
|
533
|
-
const
|
|
533
|
+
const bt = [
|
|
534
534
|
["path", { d: "m18 14 4 4-4 4", key: "10pe0f" }],
|
|
535
535
|
["path", { d: "m18 2 4 4-4 4", key: "pucp1d" }],
|
|
536
536
|
["path", { d: "M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22", key: "1ailkh" }],
|
|
537
537
|
["path", { d: "M2 6h1.972a4 4 0 0 1 3.6 2.2", key: "km57vx" }],
|
|
538
538
|
["path", { d: "M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45", key: "os18l9" }]
|
|
539
|
-
],
|
|
539
|
+
], yt = G("shuffle", bt);
|
|
540
540
|
/**
|
|
541
541
|
* @license lucide-react v0.536.0 - ISC
|
|
542
542
|
*
|
|
@@ -695,8 +695,8 @@ const Rt = [
|
|
|
695
695
|
icon: p,
|
|
696
696
|
actionButton: u,
|
|
697
697
|
position: h = "top-right",
|
|
698
|
-
backgroundColor:
|
|
699
|
-
borderColor:
|
|
698
|
+
backgroundColor: b,
|
|
699
|
+
borderColor: y,
|
|
700
700
|
textColor: c = "#111827",
|
|
701
701
|
borderRadius: d = "0.75rem",
|
|
702
702
|
shadow: v = "0 4px 14px rgba(0,0,0,0.1)",
|
|
@@ -726,8 +726,8 @@ const Rt = [
|
|
|
726
726
|
display: "flex",
|
|
727
727
|
alignItems: "flex-start",
|
|
728
728
|
gap: "0.75rem",
|
|
729
|
-
backgroundColor:
|
|
730
|
-
borderLeft: `4px solid ${
|
|
729
|
+
backgroundColor: b ?? I,
|
|
730
|
+
borderLeft: `4px solid ${y ?? D}`,
|
|
731
731
|
borderRadius: d,
|
|
732
732
|
color: c,
|
|
733
733
|
boxShadow: v,
|
|
@@ -746,14 +746,14 @@ const Rt = [
|
|
|
746
746
|
E,
|
|
747
747
|
I,
|
|
748
748
|
D,
|
|
749
|
-
|
|
749
|
+
y,
|
|
750
750
|
d,
|
|
751
751
|
h,
|
|
752
752
|
v,
|
|
753
753
|
g,
|
|
754
754
|
c,
|
|
755
755
|
j,
|
|
756
|
-
|
|
756
|
+
b,
|
|
757
757
|
a,
|
|
758
758
|
k,
|
|
759
759
|
m,
|
|
@@ -825,8 +825,8 @@ const It = Me(
|
|
|
825
825
|
hoverBgColor: p = "#f9fafb",
|
|
826
826
|
hoverTextColor: u = "#111827",
|
|
827
827
|
contentBgColor: h = "#fff",
|
|
828
|
-
contentTextColor:
|
|
829
|
-
paddingY:
|
|
828
|
+
contentTextColor: b = "#374151",
|
|
829
|
+
paddingY: y = "1rem",
|
|
830
830
|
paddingX: c = "1rem",
|
|
831
831
|
marginY: d = "0.75rem",
|
|
832
832
|
borderRadius: v = "0.5rem",
|
|
@@ -879,7 +879,7 @@ const It = Me(
|
|
|
879
879
|
alignItems: "center",
|
|
880
880
|
backgroundColor: i,
|
|
881
881
|
color: l,
|
|
882
|
-
padding: `${
|
|
882
|
+
padding: `${y} ${c}`,
|
|
883
883
|
fontWeight: x,
|
|
884
884
|
fontSize: m,
|
|
885
885
|
cursor: "pointer",
|
|
@@ -916,7 +916,7 @@ const It = Me(
|
|
|
916
916
|
style: {
|
|
917
917
|
borderTop: `1px solid ${s}`,
|
|
918
918
|
backgroundColor: h,
|
|
919
|
-
color:
|
|
919
|
+
color: b,
|
|
920
920
|
padding: g,
|
|
921
921
|
fontSize: f,
|
|
922
922
|
fontWeight: a
|
|
@@ -994,8 +994,8 @@ const Pe = {
|
|
|
994
994
|
className: p = "",
|
|
995
995
|
style: u,
|
|
996
996
|
statusClassName: h = "",
|
|
997
|
-
statusStyle:
|
|
998
|
-
statusPosition:
|
|
997
|
+
statusStyle: b,
|
|
998
|
+
statusPosition: y = "bottom-right",
|
|
999
999
|
fallback: c,
|
|
1000
1000
|
ring: d = !1,
|
|
1001
1001
|
ringColor: v = "#3b82f6",
|
|
@@ -1079,8 +1079,8 @@ const Pe = {
|
|
|
1079
1079
|
backgroundColor: F,
|
|
1080
1080
|
border: "2px solid white",
|
|
1081
1081
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.12)",
|
|
1082
|
-
...Lt(
|
|
1083
|
-
...
|
|
1082
|
+
...Lt(y),
|
|
1083
|
+
...b
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
)
|
|
@@ -1096,7 +1096,7 @@ const Pe = {
|
|
|
1096
1096
|
spacing: l = "normal",
|
|
1097
1097
|
direction: p = "left"
|
|
1098
1098
|
}) => {
|
|
1099
|
-
const u = n === "responsive", h = u ? 40 : Pe[n],
|
|
1099
|
+
const u = n === "responsive", h = u ? 40 : Pe[n], b = u ? "clamp(10px, 2vw, 14px)" : Oe[n], y = Nt(l, h), c = t.slice(0, r), d = t.length - r;
|
|
1100
1100
|
return /* @__PURE__ */ e.jsxs(
|
|
1101
1101
|
"div",
|
|
1102
1102
|
{
|
|
@@ -1117,8 +1117,8 @@ const Pe = {
|
|
|
1117
1117
|
"div",
|
|
1118
1118
|
{
|
|
1119
1119
|
style: {
|
|
1120
|
-
marginLeft: p === "left" && !m ?
|
|
1121
|
-
marginRight: p === "right" && !m ?
|
|
1120
|
+
marginLeft: p === "left" && !m ? y : 0,
|
|
1121
|
+
marginRight: p === "right" && !m ? y : 0,
|
|
1122
1122
|
zIndex: x,
|
|
1123
1123
|
position: "relative",
|
|
1124
1124
|
transition: "transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
@@ -1138,14 +1138,14 @@ const Pe = {
|
|
|
1138
1138
|
"div",
|
|
1139
1139
|
{
|
|
1140
1140
|
style: {
|
|
1141
|
-
marginLeft: p === "left" ?
|
|
1142
|
-
marginRight: p === "right" ?
|
|
1141
|
+
marginLeft: p === "left" ? y : 0,
|
|
1142
|
+
marginRight: p === "right" ? y : 0,
|
|
1143
1143
|
width: h,
|
|
1144
1144
|
height: h,
|
|
1145
1145
|
borderRadius: "50%",
|
|
1146
1146
|
background: "linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)",
|
|
1147
1147
|
color: "#374151",
|
|
1148
|
-
fontSize:
|
|
1148
|
+
fontSize: b,
|
|
1149
1149
|
fontWeight: 600,
|
|
1150
1150
|
display: "flex",
|
|
1151
1151
|
justifyContent: "center",
|
|
@@ -1174,8 +1174,8 @@ const Pe = {
|
|
|
1174
1174
|
secondaryColor: p = "#ffffff",
|
|
1175
1175
|
borderRadius: u = "12px",
|
|
1176
1176
|
padding: h = "16px",
|
|
1177
|
-
width:
|
|
1178
|
-
className:
|
|
1177
|
+
width: b = "100%",
|
|
1178
|
+
className: y
|
|
1179
1179
|
}) => {
|
|
1180
1180
|
const c = ce(null), d = ce(null), [v, g] = L(n), [m, x] = L(0), [f, a] = L(0), [j, $] = L(0.5), [k, z] = L(!1), [A, E] = L(s);
|
|
1181
1181
|
te(() => {
|
|
@@ -1203,10 +1203,10 @@ const Pe = {
|
|
|
1203
1203
|
"div",
|
|
1204
1204
|
{
|
|
1205
1205
|
ref: d,
|
|
1206
|
-
className:
|
|
1206
|
+
className: y,
|
|
1207
1207
|
style: {
|
|
1208
1208
|
position: "relative",
|
|
1209
|
-
width:
|
|
1209
|
+
width: b,
|
|
1210
1210
|
backgroundColor: i,
|
|
1211
1211
|
borderRadius: u,
|
|
1212
1212
|
color: p,
|
|
@@ -1389,8 +1389,8 @@ function Zt({
|
|
|
1389
1389
|
secondaryColor: p = "#1a1a2e",
|
|
1390
1390
|
border: u = 0,
|
|
1391
1391
|
borderColor: h,
|
|
1392
|
-
maxWidth:
|
|
1393
|
-
autoplay:
|
|
1392
|
+
maxWidth: b = 420,
|
|
1393
|
+
autoplay: y = !1,
|
|
1394
1394
|
loop: c = !1
|
|
1395
1395
|
}) {
|
|
1396
1396
|
const [d, v] = L(
|
|
@@ -1403,7 +1403,7 @@ function Zt({
|
|
|
1403
1403
|
}, [E]), te(() => {
|
|
1404
1404
|
d === null && S.current && (S.current.pause(), m(!1), f(0), j(0));
|
|
1405
1405
|
}, [d]);
|
|
1406
|
-
const
|
|
1406
|
+
const X = (C) => {
|
|
1407
1407
|
if (d === C) {
|
|
1408
1408
|
if (!S.current) return;
|
|
1409
1409
|
S.current.paused ? (S.current.play().catch(() => {
|
|
@@ -1430,11 +1430,11 @@ function Zt({
|
|
|
1430
1430
|
}, Y = () => {
|
|
1431
1431
|
if (d === null) return;
|
|
1432
1432
|
let C;
|
|
1433
|
-
I ? C = Math.floor(Math.random() * t.length) : C = (d + 1) % t.length,
|
|
1433
|
+
I ? C = Math.floor(Math.random() * t.length) : C = (d + 1) % t.length, X(C);
|
|
1434
1434
|
}, K = () => {
|
|
1435
1435
|
if (d === null) return;
|
|
1436
1436
|
let C;
|
|
1437
|
-
I ? C = Math.floor(Math.random() * t.length) : C = (d - 1 + t.length) % t.length,
|
|
1437
|
+
I ? C = Math.floor(Math.random() * t.length) : C = (d - 1 + t.length) % t.length, X(C);
|
|
1438
1438
|
}, se = () => {
|
|
1439
1439
|
k((C) => C > 0 ? 0 : 0.7);
|
|
1440
1440
|
}, M = () => {
|
|
@@ -1445,13 +1445,13 @@ function Zt({
|
|
|
1445
1445
|
if (isNaN(C)) return "0:00";
|
|
1446
1446
|
const w = Math.floor(C / 60), _ = Math.floor(C % 60);
|
|
1447
1447
|
return `${w}:${_ < 10 ? "0" : ""}${_}`;
|
|
1448
|
-
},
|
|
1448
|
+
}, q = d !== null ? t[d] : null;
|
|
1449
1449
|
return /* @__PURE__ */ e.jsxs(
|
|
1450
1450
|
"div",
|
|
1451
1451
|
{
|
|
1452
1452
|
className: r,
|
|
1453
1453
|
style: {
|
|
1454
|
-
maxWidth: `${
|
|
1454
|
+
maxWidth: `${b}px`,
|
|
1455
1455
|
margin: "20px auto",
|
|
1456
1456
|
background: `linear-gradient(145deg, ${i}, ${p})`,
|
|
1457
1457
|
color: l,
|
|
@@ -1523,7 +1523,7 @@ function Zt({
|
|
|
1523
1523
|
opacity: I ? 1 : 0.6
|
|
1524
1524
|
},
|
|
1525
1525
|
"aria-label": "Toggle Shuffle",
|
|
1526
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1526
|
+
children: /* @__PURE__ */ e.jsx(yt, { size: 18, color: I ? "white" : l })
|
|
1527
1527
|
}
|
|
1528
1528
|
)
|
|
1529
1529
|
]
|
|
@@ -1546,7 +1546,7 @@ function Zt({
|
|
|
1546
1546
|
return /* @__PURE__ */ e.jsxs(
|
|
1547
1547
|
"div",
|
|
1548
1548
|
{
|
|
1549
|
-
onClick: () =>
|
|
1549
|
+
onClick: () => X(w),
|
|
1550
1550
|
style: {
|
|
1551
1551
|
display: "flex",
|
|
1552
1552
|
alignItems: "center",
|
|
@@ -1682,7 +1682,7 @@ function Zt({
|
|
|
1682
1682
|
})
|
|
1683
1683
|
}
|
|
1684
1684
|
),
|
|
1685
|
-
|
|
1685
|
+
q && /* @__PURE__ */ e.jsxs(
|
|
1686
1686
|
"div",
|
|
1687
1687
|
{
|
|
1688
1688
|
ref: V,
|
|
@@ -1696,7 +1696,7 @@ function Zt({
|
|
|
1696
1696
|
overflow: "hidden"
|
|
1697
1697
|
},
|
|
1698
1698
|
children: [
|
|
1699
|
-
|
|
1699
|
+
q.thumbnail && /* @__PURE__ */ e.jsx(
|
|
1700
1700
|
"div",
|
|
1701
1701
|
{
|
|
1702
1702
|
style: {
|
|
@@ -1705,7 +1705,7 @@ function Zt({
|
|
|
1705
1705
|
left: 0,
|
|
1706
1706
|
right: 0,
|
|
1707
1707
|
bottom: 0,
|
|
1708
|
-
backgroundImage: `url(${
|
|
1708
|
+
backgroundImage: `url(${q.thumbnail})`,
|
|
1709
1709
|
backgroundSize: "cover",
|
|
1710
1710
|
backgroundPosition: "center",
|
|
1711
1711
|
filter: "blur(60px) opacity(0.1)",
|
|
@@ -1724,10 +1724,10 @@ function Zt({
|
|
|
1724
1724
|
fontWeight: "700",
|
|
1725
1725
|
color: s
|
|
1726
1726
|
},
|
|
1727
|
-
children:
|
|
1727
|
+
children: q.title
|
|
1728
1728
|
}
|
|
1729
1729
|
),
|
|
1730
|
-
|
|
1730
|
+
q.artist && /* @__PURE__ */ e.jsx("p", { style: { margin: 0, opacity: 0.7, fontSize: "0.9rem" }, children: q.artist })
|
|
1731
1731
|
] }),
|
|
1732
1732
|
/* @__PURE__ */ e.jsxs(
|
|
1733
1733
|
"div",
|
|
@@ -1955,8 +1955,8 @@ function Zt({
|
|
|
1955
1955
|
"audio",
|
|
1956
1956
|
{
|
|
1957
1957
|
ref: S,
|
|
1958
|
-
src:
|
|
1959
|
-
autoPlay:
|
|
1958
|
+
src: q.src,
|
|
1959
|
+
autoPlay: y,
|
|
1960
1960
|
loop: E,
|
|
1961
1961
|
onTimeUpdate: ne,
|
|
1962
1962
|
onEnded: () => {
|
|
@@ -2025,8 +2025,8 @@ const Kt = Me(
|
|
|
2025
2025
|
iconPosition: p = "left",
|
|
2026
2026
|
rounded: u = !1,
|
|
2027
2027
|
borderRadius: h,
|
|
2028
|
-
fontSize:
|
|
2029
|
-
fontWeight:
|
|
2028
|
+
fontSize: b = "13px",
|
|
2029
|
+
fontWeight: y = 500,
|
|
2030
2030
|
horizontalPadding: c = "10px",
|
|
2031
2031
|
verticalPadding: d = "4px",
|
|
2032
2032
|
margin: v = "0",
|
|
@@ -2048,8 +2048,8 @@ const Kt = Me(
|
|
|
2048
2048
|
border: `${i} solid ${s}`,
|
|
2049
2049
|
borderRadius: h || (u ? "9999px" : "6px"),
|
|
2050
2050
|
padding: `${d} ${c}`,
|
|
2051
|
-
fontSize:
|
|
2052
|
-
fontWeight:
|
|
2051
|
+
fontSize: b,
|
|
2052
|
+
fontWeight: y,
|
|
2053
2053
|
margin: v,
|
|
2054
2054
|
boxShadow: g,
|
|
2055
2055
|
position: "relative",
|
|
@@ -2142,8 +2142,8 @@ const Qt = ({
|
|
|
2142
2142
|
style: p,
|
|
2143
2143
|
fullWidth: u = !1,
|
|
2144
2144
|
disabled: h = !1,
|
|
2145
|
-
loading:
|
|
2146
|
-
loadingText:
|
|
2145
|
+
loading: b = !1,
|
|
2146
|
+
loadingText: y = "Loading...",
|
|
2147
2147
|
darkMode: c = !1,
|
|
2148
2148
|
baseColor: d,
|
|
2149
2149
|
size: v = "md",
|
|
@@ -2195,12 +2195,12 @@ const Qt = ({
|
|
|
2195
2195
|
type: r,
|
|
2196
2196
|
className: l,
|
|
2197
2197
|
style: k,
|
|
2198
|
-
onClick: !h && !
|
|
2198
|
+
onClick: !h && !b ? n : void 0,
|
|
2199
2199
|
onMouseEnter: () => f(!0),
|
|
2200
2200
|
onMouseLeave: () => f(!1),
|
|
2201
2201
|
disabled: h,
|
|
2202
2202
|
children: [
|
|
2203
|
-
|
|
2203
|
+
b ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2204
2204
|
/* @__PURE__ */ e.jsx(
|
|
2205
2205
|
"span",
|
|
2206
2206
|
{
|
|
@@ -2214,7 +2214,7 @@ const Qt = ({
|
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
),
|
|
2217
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
2217
|
+
/* @__PURE__ */ e.jsx("span", { children: y })
|
|
2218
2218
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2219
2219
|
s && /* @__PURE__ */ e.jsx("span", { children: s }),
|
|
2220
2220
|
/* @__PURE__ */ e.jsx("span", { children: t }),
|
|
@@ -2238,8 +2238,8 @@ const Qt = ({
|
|
|
2238
2238
|
borderRadius: p = 12,
|
|
2239
2239
|
border: u,
|
|
2240
2240
|
boxShadow: h,
|
|
2241
|
-
hoverShadow:
|
|
2242
|
-
padding:
|
|
2241
|
+
hoverShadow: b,
|
|
2242
|
+
padding: y = 16,
|
|
2243
2243
|
margin: c,
|
|
2244
2244
|
width: d,
|
|
2245
2245
|
height: v,
|
|
@@ -2265,7 +2265,7 @@ const Qt = ({
|
|
|
2265
2265
|
background: i,
|
|
2266
2266
|
color: l,
|
|
2267
2267
|
borderRadius: p,
|
|
2268
|
-
padding:
|
|
2268
|
+
padding: y,
|
|
2269
2269
|
margin: c,
|
|
2270
2270
|
width: d,
|
|
2271
2271
|
height: v,
|
|
@@ -2278,7 +2278,7 @@ const Qt = ({
|
|
|
2278
2278
|
}, z = (E) => {
|
|
2279
2279
|
Object.assign(
|
|
2280
2280
|
E.currentTarget.style,
|
|
2281
|
-
|
|
2281
|
+
b ? { boxShadow: b } : m
|
|
2282
2282
|
);
|
|
2283
2283
|
}, A = (E) => {
|
|
2284
2284
|
Object.assign(E.currentTarget.style, {
|
|
@@ -2309,8 +2309,8 @@ const Qt = ({
|
|
|
2309
2309
|
required: p = !1,
|
|
2310
2310
|
error: u,
|
|
2311
2311
|
className: h = "",
|
|
2312
|
-
customIcon:
|
|
2313
|
-
style:
|
|
2312
|
+
customIcon: b,
|
|
2313
|
+
style: y,
|
|
2314
2314
|
labelStyle: c,
|
|
2315
2315
|
iconSize: d = 20,
|
|
2316
2316
|
iconCheckedBgColor: v = "#2563eb",
|
|
@@ -2327,7 +2327,7 @@ const Qt = ({
|
|
|
2327
2327
|
"div",
|
|
2328
2328
|
{
|
|
2329
2329
|
className: h,
|
|
2330
|
-
style: { display: "flex", flexDirection: "column", gap: 8, ...
|
|
2330
|
+
style: { display: "flex", flexDirection: "column", gap: 8, ...y },
|
|
2331
2331
|
role: "group",
|
|
2332
2332
|
"aria-disabled": i,
|
|
2333
2333
|
children: [
|
|
@@ -2361,7 +2361,7 @@ const Qt = ({
|
|
|
2361
2361
|
style: { display: "none" }
|
|
2362
2362
|
}
|
|
2363
2363
|
),
|
|
2364
|
-
|
|
2364
|
+
b ? b(j) : /* @__PURE__ */ e.jsx(
|
|
2365
2365
|
"span",
|
|
2366
2366
|
{
|
|
2367
2367
|
style: {
|
|
@@ -2421,8 +2421,8 @@ const Qt = ({
|
|
|
2421
2421
|
required: p = !1,
|
|
2422
2422
|
error: u,
|
|
2423
2423
|
className: h = "",
|
|
2424
|
-
style:
|
|
2425
|
-
labelStyle:
|
|
2424
|
+
style: b,
|
|
2425
|
+
labelStyle: y,
|
|
2426
2426
|
iconSize: c = 20,
|
|
2427
2427
|
iconCheckedBgColor: d = "#2563eb",
|
|
2428
2428
|
iconUncheckedBorderColor: v = "#9ca3af",
|
|
@@ -2432,7 +2432,7 @@ const Qt = ({
|
|
|
2432
2432
|
"div",
|
|
2433
2433
|
{
|
|
2434
2434
|
className: h,
|
|
2435
|
-
style: { display: "flex", flexDirection: "column", gap: 8, ...
|
|
2435
|
+
style: { display: "flex", flexDirection: "column", gap: 8, ...b },
|
|
2436
2436
|
role: "radiogroup",
|
|
2437
2437
|
"aria-disabled": i,
|
|
2438
2438
|
children: [
|
|
@@ -2449,7 +2449,7 @@ const Qt = ({
|
|
|
2449
2449
|
opacity: i ? 0.6 : 1,
|
|
2450
2450
|
gap: 8,
|
|
2451
2451
|
userSelect: "none",
|
|
2452
|
-
...
|
|
2452
|
+
...y
|
|
2453
2453
|
},
|
|
2454
2454
|
children: [
|
|
2455
2455
|
/* @__PURE__ */ e.jsx("span", { style: { color: g, fontSize: 14 }, children: x.label }),
|
|
@@ -2523,8 +2523,8 @@ const Qt = ({
|
|
|
2523
2523
|
required: p = !1,
|
|
2524
2524
|
error: u,
|
|
2525
2525
|
className: h = "",
|
|
2526
|
-
style:
|
|
2527
|
-
labelStyle:
|
|
2526
|
+
style: b,
|
|
2527
|
+
labelStyle: y,
|
|
2528
2528
|
iconSize: c = 20,
|
|
2529
2529
|
iconCheckedBgColor: d = "#2563eb",
|
|
2530
2530
|
switchBgColor: v = "#d1d5db",
|
|
@@ -2540,7 +2540,7 @@ const Qt = ({
|
|
|
2540
2540
|
"div",
|
|
2541
2541
|
{
|
|
2542
2542
|
className: h,
|
|
2543
|
-
style: { display: "flex", flexDirection: "column", gap: 8, ...
|
|
2543
|
+
style: { display: "flex", flexDirection: "column", gap: 8, ...b },
|
|
2544
2544
|
role: "group",
|
|
2545
2545
|
"aria-disabled": i,
|
|
2546
2546
|
children: [
|
|
@@ -2557,7 +2557,7 @@ const Qt = ({
|
|
|
2557
2557
|
opacity: i ? 0.6 : 1,
|
|
2558
2558
|
gap: 8,
|
|
2559
2559
|
userSelect: "none",
|
|
2560
|
-
...
|
|
2560
|
+
...y
|
|
2561
2561
|
},
|
|
2562
2562
|
children: [
|
|
2563
2563
|
/* @__PURE__ */ e.jsx("span", { style: { color: g, fontSize: 14 }, children: f.label }),
|
|
@@ -2642,8 +2642,8 @@ const Qt = ({
|
|
|
2642
2642
|
height: p = "auto",
|
|
2643
2643
|
borderRadius: u = 0,
|
|
2644
2644
|
style: h,
|
|
2645
|
-
className:
|
|
2646
|
-
children:
|
|
2645
|
+
className: b = "",
|
|
2646
|
+
children: y
|
|
2647
2647
|
}) => {
|
|
2648
2648
|
const c = oe(() => {
|
|
2649
2649
|
const d = typeof r == "number" ? `${r}px` : r, v = i && n === "0 auto" ? "0 auto" : n, g = typeof u == "number" ? `${u}px` : u;
|
|
@@ -2669,7 +2669,7 @@ const Qt = ({
|
|
|
2669
2669
|
i,
|
|
2670
2670
|
h
|
|
2671
2671
|
]);
|
|
2672
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
2672
|
+
return /* @__PURE__ */ e.jsx("div", { className: b, style: c, children: y });
|
|
2673
2673
|
}, Dt = (t) => t < 768 ? "sm" : t < 1024 ? "md" : "lg", Q = (t, r, n) => t == null ? n : typeof t != "object" ? t : t[r] ?? n, or = ({
|
|
2674
2674
|
direction: t = { sm: "column", md: "row", lg: "row" },
|
|
2675
2675
|
align: r = "center",
|
|
@@ -2680,8 +2680,8 @@ const Qt = ({
|
|
|
2680
2680
|
margin: p,
|
|
2681
2681
|
backgroundColor: u = "transparent",
|
|
2682
2682
|
width: h = "100%",
|
|
2683
|
-
maxWidth:
|
|
2684
|
-
height:
|
|
2683
|
+
maxWidth: b = "100%",
|
|
2684
|
+
height: y = "auto",
|
|
2685
2685
|
borderRadius: c,
|
|
2686
2686
|
border: d,
|
|
2687
2687
|
boxShadow: v,
|
|
@@ -2708,8 +2708,8 @@ const Qt = ({
|
|
|
2708
2708
|
margin: k(Q(p, a, void 0)),
|
|
2709
2709
|
backgroundColor: Q(u, a, void 0),
|
|
2710
2710
|
width: Q(h, a, "100%"),
|
|
2711
|
-
maxWidth: Q(
|
|
2712
|
-
height: Q(
|
|
2711
|
+
maxWidth: Q(b, a, void 0),
|
|
2712
|
+
height: Q(y, a, void 0),
|
|
2713
2713
|
borderRadius: Q(c, a, void 0),
|
|
2714
2714
|
border: Q(d, a, void 0),
|
|
2715
2715
|
boxShadow: Q(v, a, void 0),
|
|
@@ -2727,8 +2727,8 @@ const Qt = ({
|
|
|
2727
2727
|
p,
|
|
2728
2728
|
u,
|
|
2729
2729
|
h,
|
|
2730
|
-
y,
|
|
2731
2730
|
b,
|
|
2731
|
+
y,
|
|
2732
2732
|
c,
|
|
2733
2733
|
d,
|
|
2734
2734
|
v,
|
|
@@ -2747,8 +2747,8 @@ const Qt = ({
|
|
|
2747
2747
|
margin: p,
|
|
2748
2748
|
width: u = "100%",
|
|
2749
2749
|
maxWidth: h,
|
|
2750
|
-
height:
|
|
2751
|
-
backgroundColor:
|
|
2750
|
+
height: b = "auto",
|
|
2751
|
+
backgroundColor: y = "transparent",
|
|
2752
2752
|
borderRadius: c,
|
|
2753
2753
|
border: d,
|
|
2754
2754
|
boxShadow: v,
|
|
@@ -2775,8 +2775,8 @@ const Qt = ({
|
|
|
2775
2775
|
margin: k(ee(p, a, void 0)),
|
|
2776
2776
|
width: ee(u, a, "100%"),
|
|
2777
2777
|
maxWidth: ee(h, a, void 0),
|
|
2778
|
-
height: ee(
|
|
2779
|
-
backgroundColor: ee(
|
|
2778
|
+
height: ee(b, a, void 0),
|
|
2779
|
+
backgroundColor: ee(y, a, void 0),
|
|
2780
2780
|
borderRadius: ee(c, a, void 0),
|
|
2781
2781
|
border: ee(d, a, void 0),
|
|
2782
2782
|
boxShadow: ee(v, a, void 0),
|
|
@@ -2794,8 +2794,8 @@ const Qt = ({
|
|
|
2794
2794
|
p,
|
|
2795
2795
|
u,
|
|
2796
2796
|
h,
|
|
2797
|
-
y,
|
|
2798
2797
|
b,
|
|
2798
|
+
y,
|
|
2799
2799
|
c,
|
|
2800
2800
|
d,
|
|
2801
2801
|
v,
|
|
@@ -2814,8 +2814,8 @@ const Qt = ({
|
|
|
2814
2814
|
width: p = "100%",
|
|
2815
2815
|
maxWidth: u = "100%",
|
|
2816
2816
|
height: h = "auto",
|
|
2817
|
-
margin:
|
|
2818
|
-
style:
|
|
2817
|
+
margin: b = 0,
|
|
2818
|
+
style: y,
|
|
2819
2819
|
className: c = "",
|
|
2820
2820
|
children: d
|
|
2821
2821
|
}) => {
|
|
@@ -2831,7 +2831,7 @@ const Qt = ({
|
|
|
2831
2831
|
gridTemplateColumns: `repeat(${m}, 1fr)`,
|
|
2832
2832
|
gap: typeof r == "number" ? `${r}px` : r,
|
|
2833
2833
|
padding: typeof n == "number" ? `${n}px` : n,
|
|
2834
|
-
margin: typeof
|
|
2834
|
+
margin: typeof b == "number" ? `${b}px` : b,
|
|
2835
2835
|
alignItems: s,
|
|
2836
2836
|
justifyItems: i,
|
|
2837
2837
|
backgroundColor: l,
|
|
@@ -2839,20 +2839,20 @@ const Qt = ({
|
|
|
2839
2839
|
maxWidth: u,
|
|
2840
2840
|
height: h,
|
|
2841
2841
|
boxSizing: "border-box",
|
|
2842
|
-
...
|
|
2842
|
+
...y
|
|
2843
2843
|
}),
|
|
2844
2844
|
[
|
|
2845
2845
|
m,
|
|
2846
2846
|
r,
|
|
2847
2847
|
n,
|
|
2848
|
-
|
|
2848
|
+
b,
|
|
2849
2849
|
s,
|
|
2850
2850
|
i,
|
|
2851
2851
|
l,
|
|
2852
2852
|
p,
|
|
2853
2853
|
u,
|
|
2854
2854
|
h,
|
|
2855
|
-
|
|
2855
|
+
y
|
|
2856
2856
|
]
|
|
2857
2857
|
);
|
|
2858
2858
|
return /* @__PURE__ */ e.jsx("div", { style: x, className: c, children: d });
|
|
@@ -2866,8 +2866,8 @@ const Qt = ({
|
|
|
2866
2866
|
borderRadius: p = "6px",
|
|
2867
2867
|
padding: u = "10px 16px",
|
|
2868
2868
|
fontSize: h = "14px",
|
|
2869
|
-
gap:
|
|
2870
|
-
style:
|
|
2869
|
+
gap: b = "8px",
|
|
2870
|
+
style: y,
|
|
2871
2871
|
className: c = ""
|
|
2872
2872
|
}) => /* @__PURE__ */ e.jsxs(
|
|
2873
2873
|
"button",
|
|
@@ -2883,12 +2883,12 @@ const Qt = ({
|
|
|
2883
2883
|
borderRadius: p,
|
|
2884
2884
|
padding: u,
|
|
2885
2885
|
fontSize: h,
|
|
2886
|
-
gap:
|
|
2886
|
+
gap: b,
|
|
2887
2887
|
cursor: "pointer",
|
|
2888
2888
|
fontWeight: 500,
|
|
2889
2889
|
transition: "all 0.2s ease",
|
|
2890
2890
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)",
|
|
2891
|
-
...
|
|
2891
|
+
...y
|
|
2892
2892
|
},
|
|
2893
2893
|
className: c,
|
|
2894
2894
|
children: [
|
|
@@ -2907,8 +2907,8 @@ const Qt = ({
|
|
|
2907
2907
|
backdropColor: p = "rgba(0,0,0,0.5)",
|
|
2908
2908
|
transitionDuration: u = 300,
|
|
2909
2909
|
style: h,
|
|
2910
|
-
className:
|
|
2911
|
-
children:
|
|
2910
|
+
className: b = "",
|
|
2911
|
+
children: y,
|
|
2912
2912
|
showCloseButton: c = !0,
|
|
2913
2913
|
closeIconColor: d = "#000",
|
|
2914
2914
|
closeButtonStyle: v
|
|
@@ -2974,7 +2974,7 @@ const Qt = ({
|
|
|
2974
2974
|
pointerEvents: t ? "auto" : "none",
|
|
2975
2975
|
boxShadow: "0 0 20px rgba(0,0,0,0.15)"
|
|
2976
2976
|
},
|
|
2977
|
-
className:
|
|
2977
|
+
className: b,
|
|
2978
2978
|
children: [
|
|
2979
2979
|
c && /* @__PURE__ */ e.jsx(
|
|
2980
2980
|
"button",
|
|
@@ -2994,7 +2994,7 @@ const Qt = ({
|
|
|
2994
2994
|
padding: "16px",
|
|
2995
2995
|
scrollbarWidth: "thin"
|
|
2996
2996
|
},
|
|
2997
|
-
children:
|
|
2997
|
+
children: y
|
|
2998
2998
|
}
|
|
2999
2999
|
)
|
|
3000
3000
|
]
|
|
@@ -3037,8 +3037,8 @@ const Qt = ({
|
|
|
3037
3037
|
defaultValues: p,
|
|
3038
3038
|
onChange: u,
|
|
3039
3039
|
placeholder: h = "Select...",
|
|
3040
|
-
disabled:
|
|
3041
|
-
searchable:
|
|
3040
|
+
disabled: b = !1,
|
|
3041
|
+
searchable: y = !1,
|
|
3042
3042
|
multiSelect: c = !1,
|
|
3043
3043
|
clearable: d = !1,
|
|
3044
3044
|
virtualized: v = !1,
|
|
@@ -3063,7 +3063,7 @@ const Qt = ({
|
|
|
3063
3063
|
menuClassName: S,
|
|
3064
3064
|
optionClassName: V,
|
|
3065
3065
|
style: U,
|
|
3066
|
-
controlStyle:
|
|
3066
|
+
controlStyle: X,
|
|
3067
3067
|
menuStyle: ne,
|
|
3068
3068
|
optionStyle: o,
|
|
3069
3069
|
iconPrefix: T,
|
|
@@ -3085,7 +3085,7 @@ const Qt = ({
|
|
|
3085
3085
|
disabledBg: I ?? M.disabledBg,
|
|
3086
3086
|
disabledTextColor: D ?? M.disabledTextColor,
|
|
3087
3087
|
placeholderColor: N ?? M.placeholderColor
|
|
3088
|
-
}, [
|
|
3088
|
+
}, [q, C] = L(!1), [w, _] = L(
|
|
3089
3089
|
p ?? (l ? [l] : [])
|
|
3090
3090
|
);
|
|
3091
3091
|
te(() => {
|
|
@@ -3094,7 +3094,7 @@ const Qt = ({
|
|
|
3094
3094
|
const J = oe(
|
|
3095
3095
|
() => n.filter((O) => w.includes(O.value)),
|
|
3096
3096
|
[n, w]
|
|
3097
|
-
), Z = () => !
|
|
3097
|
+
), Z = () => !b && C((O) => !O), le = (O) => {
|
|
3098
3098
|
if (c) {
|
|
3099
3099
|
const ie = w.includes(O) ? w.filter((re) => re !== O) : [...w, O];
|
|
3100
3100
|
_(ie), u?.(ie);
|
|
@@ -3129,12 +3129,12 @@ const Qt = ({
|
|
|
3129
3129
|
background: P.controlBg,
|
|
3130
3130
|
color: P.textColor,
|
|
3131
3131
|
padding: "0.5rem 0.75rem",
|
|
3132
|
-
border: `1px solid ${
|
|
3132
|
+
border: `1px solid ${q ? P.accentColor : P.borderColor}`,
|
|
3133
3133
|
borderRadius: x,
|
|
3134
|
-
cursor:
|
|
3135
|
-
boxShadow:
|
|
3134
|
+
cursor: b ? "not-allowed" : "pointer",
|
|
3135
|
+
boxShadow: q ? `0 0 0 3px ${P.accentColor}33` : void 0,
|
|
3136
3136
|
transition: `all ${H} ease`,
|
|
3137
|
-
...
|
|
3137
|
+
...X
|
|
3138
3138
|
},
|
|
3139
3139
|
children: [
|
|
3140
3140
|
/* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -3160,7 +3160,7 @@ const Qt = ({
|
|
|
3160
3160
|
"div",
|
|
3161
3161
|
{
|
|
3162
3162
|
style: {
|
|
3163
|
-
transform:
|
|
3163
|
+
transform: q ? "rotate(180deg)" : "rotate(0deg)",
|
|
3164
3164
|
transition: `transform ${H}`
|
|
3165
3165
|
},
|
|
3166
3166
|
children: K
|
|
@@ -3170,7 +3170,7 @@ const Qt = ({
|
|
|
3170
3170
|
]
|
|
3171
3171
|
}
|
|
3172
3172
|
),
|
|
3173
|
-
|
|
3173
|
+
q && /* @__PURE__ */ e.jsx(
|
|
3174
3174
|
"ul",
|
|
3175
3175
|
{
|
|
3176
3176
|
className: S,
|
|
@@ -3250,8 +3250,8 @@ const Qt = ({
|
|
|
3250
3250
|
value: p,
|
|
3251
3251
|
defaultValue: u,
|
|
3252
3252
|
onChange: h,
|
|
3253
|
-
disabled:
|
|
3254
|
-
readOnly:
|
|
3253
|
+
disabled: b = !1,
|
|
3254
|
+
readOnly: y = !1,
|
|
3255
3255
|
required: c = !1,
|
|
3256
3256
|
error: d,
|
|
3257
3257
|
success: v = !1,
|
|
@@ -3278,13 +3278,13 @@ const Qt = ({
|
|
|
3278
3278
|
rows: S = 4,
|
|
3279
3279
|
cols: V,
|
|
3280
3280
|
maxLength: U,
|
|
3281
|
-
resize:
|
|
3281
|
+
resize: X = !0,
|
|
3282
3282
|
showCharacterCount: ne = !0,
|
|
3283
3283
|
paddingX: o,
|
|
3284
3284
|
paddingY: T,
|
|
3285
3285
|
className: B,
|
|
3286
3286
|
style: Y
|
|
3287
|
-
} = t, K = ce(null), [se, M] = L(u || ""), [P,
|
|
3287
|
+
} = t, K = ce(null), [se, M] = L(u || ""), [P, q] = L(!1);
|
|
3288
3288
|
De(r, () => K.current);
|
|
3289
3289
|
const C = (re) => {
|
|
3290
3290
|
const fe = re.target.value;
|
|
@@ -3306,7 +3306,7 @@ const Qt = ({
|
|
|
3306
3306
|
paddingRight: x || n === "password" ? "40px" : Z,
|
|
3307
3307
|
outline: "none",
|
|
3308
3308
|
transition: "border-color 0.25s ease, box-shadow 0.25s ease",
|
|
3309
|
-
resize: n === "textarea" && !
|
|
3309
|
+
resize: n === "textarea" && !X ? "none" : void 0,
|
|
3310
3310
|
boxShadow: D,
|
|
3311
3311
|
...Y
|
|
3312
3312
|
}, O = {
|
|
@@ -3371,8 +3371,8 @@ const Qt = ({
|
|
|
3371
3371
|
name: l,
|
|
3372
3372
|
value: w,
|
|
3373
3373
|
placeholder: i,
|
|
3374
|
-
disabled:
|
|
3375
|
-
readOnly:
|
|
3374
|
+
disabled: b,
|
|
3375
|
+
readOnly: y,
|
|
3376
3376
|
rows: S,
|
|
3377
3377
|
cols: V,
|
|
3378
3378
|
maxLength: U,
|
|
@@ -3390,8 +3390,8 @@ const Qt = ({
|
|
|
3390
3390
|
name: l,
|
|
3391
3391
|
value: w,
|
|
3392
3392
|
placeholder: i,
|
|
3393
|
-
disabled:
|
|
3394
|
-
readOnly:
|
|
3393
|
+
disabled: b,
|
|
3394
|
+
readOnly: y,
|
|
3395
3395
|
autoFocus: g,
|
|
3396
3396
|
style: { ...de, ...O },
|
|
3397
3397
|
onChange: C,
|
|
@@ -3402,7 +3402,7 @@ const Qt = ({
|
|
|
3402
3402
|
"button",
|
|
3403
3403
|
{
|
|
3404
3404
|
type: "button",
|
|
3405
|
-
onClick: () =>
|
|
3405
|
+
onClick: () => q(!P),
|
|
3406
3406
|
style: {
|
|
3407
3407
|
position: "absolute",
|
|
3408
3408
|
right: 10,
|
|
@@ -3472,8 +3472,8 @@ const Qt = ({
|
|
|
3472
3472
|
borderColor: p = "transparent",
|
|
3473
3473
|
borderStyle: u = "solid",
|
|
3474
3474
|
borderWidth: h = "0px",
|
|
3475
|
-
shadow:
|
|
3476
|
-
boxShadow:
|
|
3475
|
+
shadow: b = !1,
|
|
3476
|
+
boxShadow: y,
|
|
3477
3477
|
opacity: c = 1,
|
|
3478
3478
|
objectFit: d = "cover",
|
|
3479
3479
|
overlayText: v,
|
|
@@ -3503,7 +3503,7 @@ const Qt = ({
|
|
|
3503
3503
|
border: `${h} ${u} ${p}`,
|
|
3504
3504
|
objectFit: d,
|
|
3505
3505
|
opacity: c,
|
|
3506
|
-
boxShadow:
|
|
3506
|
+
boxShadow: b ? y || "0 4px 12px rgba(0,0,0,0.15)" : "none",
|
|
3507
3507
|
transition: `all ${E} ease`,
|
|
3508
3508
|
display: "block"
|
|
3509
3509
|
}),
|
|
@@ -3517,17 +3517,17 @@ const Qt = ({
|
|
|
3517
3517
|
h,
|
|
3518
3518
|
d,
|
|
3519
3519
|
c,
|
|
3520
|
-
y,
|
|
3521
3520
|
b,
|
|
3521
|
+
y,
|
|
3522
3522
|
E
|
|
3523
3523
|
]
|
|
3524
3524
|
), S = ve(
|
|
3525
|
-
(
|
|
3526
|
-
|
|
3525
|
+
(X) => {
|
|
3526
|
+
X.currentTarget.style.opacity = $ !== void 0 ? $.toString() : "1", X.currentTarget.style.boxShadow = k ? "0 8px 20px rgba(0,0,0,0.3)" : R.boxShadow || "none", X.currentTarget.style.transform = `scale(${z}) rotate(${A}deg)`;
|
|
3527
3527
|
},
|
|
3528
3528
|
[$, k, z, A, R.boxShadow]
|
|
3529
|
-
), V = ve((
|
|
3530
|
-
|
|
3529
|
+
), V = ve((X) => {
|
|
3530
|
+
X.currentTarget.style.opacity = R.opacity?.toString() || "1", X.currentTarget.style.boxShadow = R.boxShadow || "none", X.currentTarget.style.transform = "scale(1) rotate(0deg)";
|
|
3531
3531
|
}, [R]), U = oe(() => {
|
|
3532
3532
|
switch (F) {
|
|
3533
3533
|
case "x":
|
|
@@ -3621,13 +3621,13 @@ const Qt = ({
|
|
|
3621
3621
|
fontSize: p = "15px",
|
|
3622
3622
|
fontWeight: u = 500,
|
|
3623
3623
|
spacing: h = "12px",
|
|
3624
|
-
isInline:
|
|
3624
|
+
isInline: b = !1
|
|
3625
3625
|
}) => {
|
|
3626
|
-
const
|
|
3626
|
+
const y = {
|
|
3627
3627
|
display: "flex",
|
|
3628
3628
|
flexDirection: "column",
|
|
3629
3629
|
gap: "6px",
|
|
3630
|
-
marginBottom:
|
|
3630
|
+
marginBottom: b ? "0" : h
|
|
3631
3631
|
}, c = {
|
|
3632
3632
|
display: "flex",
|
|
3633
3633
|
alignItems: "center",
|
|
@@ -3648,7 +3648,7 @@ const Qt = ({
|
|
|
3648
3648
|
paddingLeft: "20px",
|
|
3649
3649
|
margin: 0
|
|
3650
3650
|
};
|
|
3651
|
-
return /* @__PURE__ */ e.jsxs("li", { style:
|
|
3651
|
+
return /* @__PURE__ */ e.jsxs("li", { style: y, children: [
|
|
3652
3652
|
/* @__PURE__ */ e.jsxs(
|
|
3653
3653
|
"div",
|
|
3654
3654
|
{
|
|
@@ -3657,7 +3657,7 @@ const Qt = ({
|
|
|
3657
3657
|
onMouseEnter: (g) => g.currentTarget.style.color = i,
|
|
3658
3658
|
onMouseLeave: (g) => g.currentTarget.style.color = l,
|
|
3659
3659
|
children: [
|
|
3660
|
-
r ? /* @__PURE__ */ e.jsx("span", { style: { fontSize: "16px", color: l }, children: r }) : !
|
|
3660
|
+
r ? /* @__PURE__ */ e.jsx("span", { style: { fontSize: "16px", color: l }, children: r }) : !b && /* @__PURE__ */ e.jsx("span", { style: d }),
|
|
3661
3661
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
3662
3662
|
]
|
|
3663
3663
|
}
|
|
@@ -3686,8 +3686,8 @@ const Qt = ({
|
|
|
3686
3686
|
backgroundColor: p = "#fff",
|
|
3687
3687
|
borderColor: u = "#e5e7eb",
|
|
3688
3688
|
fontSize: h = "15px",
|
|
3689
|
-
fontWeight:
|
|
3690
|
-
borderRadius:
|
|
3689
|
+
fontWeight: b = 500,
|
|
3690
|
+
borderRadius: y = "12px",
|
|
3691
3691
|
padding: c = "16px",
|
|
3692
3692
|
spacing: d = "12px",
|
|
3693
3693
|
className: v,
|
|
@@ -3699,7 +3699,7 @@ const Qt = ({
|
|
|
3699
3699
|
color: l,
|
|
3700
3700
|
borderWidth: u ? "1px" : "0px",
|
|
3701
3701
|
borderStyle: "solid",
|
|
3702
|
-
borderRadius:
|
|
3702
|
+
borderRadius: y,
|
|
3703
3703
|
padding: c,
|
|
3704
3704
|
...g
|
|
3705
3705
|
}, a = x ? {
|
|
@@ -3738,7 +3738,7 @@ const Qt = ({
|
|
|
3738
3738
|
bulletColor: i,
|
|
3739
3739
|
textColor: l,
|
|
3740
3740
|
fontSize: h,
|
|
3741
|
-
fontWeight:
|
|
3741
|
+
fontWeight: b,
|
|
3742
3742
|
spacing: d,
|
|
3743
3743
|
isInline: x
|
|
3744
3744
|
},
|
|
@@ -3755,8 +3755,8 @@ const Qt = ({
|
|
|
3755
3755
|
modalStyle: p,
|
|
3756
3756
|
closeButtonStyle: u,
|
|
3757
3757
|
disableOverlayClose: h = !1,
|
|
3758
|
-
transitionDuration:
|
|
3759
|
-
className:
|
|
3758
|
+
transitionDuration: b = 200,
|
|
3759
|
+
className: y,
|
|
3760
3760
|
darkMode: c = !1
|
|
3761
3761
|
}) => {
|
|
3762
3762
|
const d = ce(null);
|
|
@@ -3786,7 +3786,7 @@ const Qt = ({
|
|
|
3786
3786
|
alignItems: "center",
|
|
3787
3787
|
zIndex: 1e3,
|
|
3788
3788
|
opacity: t ? 1 : 0,
|
|
3789
|
-
transition: `opacity ${
|
|
3789
|
+
transition: `opacity ${b}ms ease`,
|
|
3790
3790
|
...l
|
|
3791
3791
|
}, m = {
|
|
3792
3792
|
position: "relative",
|
|
@@ -3800,7 +3800,7 @@ const Qt = ({
|
|
|
3800
3800
|
padding: 24,
|
|
3801
3801
|
boxShadow: c ? "0 10px 40px rgba(0,0,0,0.7)" : "0 10px 40px rgba(0,0,0,0.25)",
|
|
3802
3802
|
transform: t ? "scale(1)" : "scale(0.95)",
|
|
3803
|
-
transition: `transform ${
|
|
3803
|
+
transition: `transform ${b}ms ease, opacity ${b}ms ease`,
|
|
3804
3804
|
...p
|
|
3805
3805
|
}, x = {
|
|
3806
3806
|
position: "absolute",
|
|
@@ -3822,7 +3822,7 @@ const Qt = ({
|
|
|
3822
3822
|
"aria-label": s || i || "Modal",
|
|
3823
3823
|
style: g,
|
|
3824
3824
|
onClick: v,
|
|
3825
|
-
className:
|
|
3825
|
+
className: y,
|
|
3826
3826
|
children: /* @__PURE__ */ e.jsxs(
|
|
3827
3827
|
"div",
|
|
3828
3828
|
{
|
|
@@ -3863,37 +3863,77 @@ const Qt = ({
|
|
|
3863
3863
|
}
|
|
3864
3864
|
);
|
|
3865
3865
|
}, gr = ({ children: t, style: r, className: n }) => /* @__PURE__ */ e.jsx(
|
|
3866
|
-
"
|
|
3866
|
+
"div",
|
|
3867
|
+
{
|
|
3868
|
+
style: {
|
|
3869
|
+
overflowX: "auto",
|
|
3870
|
+
background: "#ffffff",
|
|
3871
|
+
borderRadius: 12,
|
|
3872
|
+
boxShadow: "0 2px 6px rgba(0,0,0,0.05)",
|
|
3873
|
+
border: "1px solid #e5e7eb",
|
|
3874
|
+
...r
|
|
3875
|
+
},
|
|
3876
|
+
className: n,
|
|
3877
|
+
children: /* @__PURE__ */ e.jsx(
|
|
3878
|
+
"table",
|
|
3879
|
+
{
|
|
3880
|
+
style: {
|
|
3881
|
+
width: "100%",
|
|
3882
|
+
borderCollapse: "collapse",
|
|
3883
|
+
borderSpacing: 0,
|
|
3884
|
+
borderRadius: 12,
|
|
3885
|
+
overflow: "hidden"
|
|
3886
|
+
},
|
|
3887
|
+
children: t
|
|
3888
|
+
}
|
|
3889
|
+
)
|
|
3890
|
+
}
|
|
3891
|
+
), mr = ({
|
|
3892
|
+
children: t,
|
|
3893
|
+
style: r,
|
|
3894
|
+
className: n
|
|
3895
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
3896
|
+
"thead",
|
|
3867
3897
|
{
|
|
3868
3898
|
className: n,
|
|
3869
3899
|
style: {
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3900
|
+
backgroundColor: "#f3f4f6",
|
|
3901
|
+
color: "#111827",
|
|
3902
|
+
fontWeight: 600,
|
|
3873
3903
|
...r
|
|
3874
3904
|
},
|
|
3875
3905
|
children: t
|
|
3876
3906
|
}
|
|
3877
|
-
),
|
|
3878
|
-
|
|
3907
|
+
), br = ({
|
|
3908
|
+
children: t,
|
|
3909
|
+
style: r,
|
|
3910
|
+
className: n
|
|
3911
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
3912
|
+
"tbody",
|
|
3879
3913
|
{
|
|
3880
3914
|
className: n,
|
|
3881
3915
|
style: {
|
|
3882
|
-
backgroundColor: "#
|
|
3883
|
-
borderBottom: "2px solid #e5e7eb",
|
|
3916
|
+
backgroundColor: "#ffffff",
|
|
3884
3917
|
...r
|
|
3885
3918
|
},
|
|
3886
3919
|
children: t
|
|
3887
3920
|
}
|
|
3888
|
-
), yr = ({
|
|
3921
|
+
), yr = ({
|
|
3922
|
+
children: t,
|
|
3923
|
+
style: r,
|
|
3924
|
+
className: n
|
|
3925
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
3889
3926
|
"tr",
|
|
3890
3927
|
{
|
|
3891
3928
|
className: n,
|
|
3892
3929
|
style: {
|
|
3893
3930
|
borderBottom: "1px solid #e5e7eb",
|
|
3894
3931
|
transition: "background 0.2s ease",
|
|
3932
|
+
cursor: "default",
|
|
3895
3933
|
...r
|
|
3896
3934
|
},
|
|
3935
|
+
onMouseEnter: (s) => s.currentTarget.style.backgroundColor = "#f9fafb",
|
|
3936
|
+
onMouseLeave: (s) => s.currentTarget.style.backgroundColor = "transparent",
|
|
3897
3937
|
children: t
|
|
3898
3938
|
}
|
|
3899
3939
|
), vr = ({ children: t, style: r, className: n }) => /* @__PURE__ */ e.jsx(
|
|
@@ -3903,9 +3943,9 @@ const Qt = ({
|
|
|
3903
3943
|
style: {
|
|
3904
3944
|
textAlign: "left",
|
|
3905
3945
|
padding: "12px 16px",
|
|
3906
|
-
fontWeight: 600,
|
|
3907
3946
|
fontSize: "0.875rem",
|
|
3908
3947
|
color: "#374151",
|
|
3948
|
+
borderBottom: "2px solid #e5e7eb",
|
|
3909
3949
|
...r
|
|
3910
3950
|
},
|
|
3911
3951
|
children: t
|
|
@@ -3932,8 +3972,8 @@ const Qt = ({
|
|
|
3932
3972
|
radius: p = 8,
|
|
3933
3973
|
padding: u = "12px 18px",
|
|
3934
3974
|
transitionDuration: h = 200,
|
|
3935
|
-
elevation:
|
|
3936
|
-
bordered:
|
|
3975
|
+
elevation: b = 1,
|
|
3976
|
+
bordered: y = !1,
|
|
3937
3977
|
primaryColor: c = "#2563eb",
|
|
3938
3978
|
backgroundColor: d = "transparent",
|
|
3939
3979
|
textColor: v = "#374151",
|
|
@@ -3953,7 +3993,7 @@ const Qt = ({
|
|
|
3953
3993
|
inactiveTabStyle: D,
|
|
3954
3994
|
contentStyle: N
|
|
3955
3995
|
}) => {
|
|
3956
|
-
const [H, W] = L(r), [R, S] = L(null), [V, U] = L(!1), [
|
|
3996
|
+
const [H, W] = L(r), [R, S] = L(null), [V, U] = L(!1), [X, ne] = L(!1), o = ce(null);
|
|
3957
3997
|
te(() => {
|
|
3958
3998
|
const w = () => U(window.innerWidth <= a);
|
|
3959
3999
|
return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
|
@@ -3982,7 +4022,7 @@ const Qt = ({
|
|
|
3982
4022
|
background: s === "solid" ? c : "transparent",
|
|
3983
4023
|
color: m,
|
|
3984
4024
|
borderBottom: s === "underline" ? `2px solid ${c}` : void 0,
|
|
3985
|
-
boxShadow:
|
|
4025
|
+
boxShadow: b > 0 ? `0 ${b}px ${b * 4}px ${c}33` : void 0,
|
|
3986
4026
|
...I
|
|
3987
4027
|
}, se = {
|
|
3988
4028
|
...s === "outline" ? { borderColor: x } : s === "underline" ? { borderBottomColor: "transparent" } : {},
|
|
@@ -3994,11 +4034,11 @@ const Qt = ({
|
|
|
3994
4034
|
color: f,
|
|
3995
4035
|
cursor: "not-allowed",
|
|
3996
4036
|
opacity: 0.6
|
|
3997
|
-
},
|
|
4037
|
+
}, q = {
|
|
3998
4038
|
flexGrow: 1,
|
|
3999
|
-
borderTop:
|
|
4000
|
-
borderLeft:
|
|
4001
|
-
borderRight:
|
|
4039
|
+
borderTop: y && n === "top" ? `1px solid ${x}` : void 0,
|
|
4040
|
+
borderLeft: y && n === "left" ? `1px solid ${x}` : void 0,
|
|
4041
|
+
borderRight: y && n === "right" ? `1px solid ${x}` : void 0,
|
|
4002
4042
|
borderRadius: p,
|
|
4003
4043
|
...N
|
|
4004
4044
|
}, C = n === "left" || n === "right";
|
|
@@ -4011,7 +4051,7 @@ const Qt = ({
|
|
|
4011
4051
|
display: "flex",
|
|
4012
4052
|
flexDirection: C ? n === "right" ? "row-reverse" : "row" : "column",
|
|
4013
4053
|
background: d,
|
|
4014
|
-
border:
|
|
4054
|
+
border: y ? `1px solid ${x}` : void 0,
|
|
4015
4055
|
borderRadius: p,
|
|
4016
4056
|
overflow: "hidden",
|
|
4017
4057
|
...A
|
|
@@ -4030,7 +4070,7 @@ const Qt = ({
|
|
|
4030
4070
|
/* @__PURE__ */ e.jsxs(
|
|
4031
4071
|
"button",
|
|
4032
4072
|
{
|
|
4033
|
-
onClick: () => ne(!
|
|
4073
|
+
onClick: () => ne(!X),
|
|
4034
4074
|
style: {
|
|
4035
4075
|
...Y,
|
|
4036
4076
|
...K,
|
|
@@ -4044,7 +4084,7 @@ const Qt = ({
|
|
|
4044
4084
|
]
|
|
4045
4085
|
}
|
|
4046
4086
|
),
|
|
4047
|
-
|
|
4087
|
+
X && /* @__PURE__ */ e.jsx(
|
|
4048
4088
|
"div",
|
|
4049
4089
|
{
|
|
4050
4090
|
style: {
|
|
@@ -4123,7 +4163,7 @@ const Qt = ({
|
|
|
4123
4163
|
"div",
|
|
4124
4164
|
{
|
|
4125
4165
|
className: `modern-tabs__content ${F}`,
|
|
4126
|
-
style:
|
|
4166
|
+
style: q,
|
|
4127
4167
|
role: "tabpanel",
|
|
4128
4168
|
children: t[H]?.content
|
|
4129
4169
|
}
|
|
@@ -4138,7 +4178,7 @@ function ge(t, r) {
|
|
|
4138
4178
|
(n) => ("0" + Math.min(255, Math.max(0, parseInt(n, 16) + r)).toString(16)).slice(-2)
|
|
4139
4179
|
);
|
|
4140
4180
|
}
|
|
4141
|
-
const
|
|
4181
|
+
const Xt = {
|
|
4142
4182
|
light: {
|
|
4143
4183
|
default: "#111",
|
|
4144
4184
|
primary: "#2563eb",
|
|
@@ -4168,8 +4208,8 @@ function kr({
|
|
|
4168
4208
|
transform: p = "none",
|
|
4169
4209
|
italic: u = !1,
|
|
4170
4210
|
underline: h = !1,
|
|
4171
|
-
strikethrough:
|
|
4172
|
-
truncate:
|
|
4211
|
+
strikethrough: b = !1,
|
|
4212
|
+
truncate: y = !1,
|
|
4173
4213
|
selectable: c = !0,
|
|
4174
4214
|
hoverable: d = !1,
|
|
4175
4215
|
onClick: v,
|
|
@@ -4180,7 +4220,7 @@ function kr({
|
|
|
4180
4220
|
...a
|
|
4181
4221
|
}) {
|
|
4182
4222
|
const j = t || "p", $ = oe(() => {
|
|
4183
|
-
if (!m) return
|
|
4223
|
+
if (!m) return Xt[g ? "dark" : "light"];
|
|
4184
4224
|
const I = {
|
|
4185
4225
|
default: "#111",
|
|
4186
4226
|
primary: m,
|
|
@@ -4213,11 +4253,11 @@ function kr({
|
|
|
4213
4253
|
textAlign: l,
|
|
4214
4254
|
textTransform: p,
|
|
4215
4255
|
fontStyle: u ? "italic" : "normal",
|
|
4216
|
-
textDecoration: h ? "underline" :
|
|
4256
|
+
textDecoration: h ? "underline" : b ? "line-through" : "none",
|
|
4217
4257
|
userSelect: c ? "text" : "none",
|
|
4218
|
-
overflow:
|
|
4219
|
-
whiteSpace:
|
|
4220
|
-
textOverflow:
|
|
4258
|
+
overflow: y ? "hidden" : void 0,
|
|
4259
|
+
whiteSpace: y ? "nowrap" : void 0,
|
|
4260
|
+
textOverflow: y ? "ellipsis" : void 0,
|
|
4221
4261
|
cursor: v ? "pointer" : "default",
|
|
4222
4262
|
transition: "all 0.25s ease-in-out",
|
|
4223
4263
|
...f
|
|
@@ -4264,11 +4304,11 @@ export {
|
|
|
4264
4304
|
rr as RadioGroup,
|
|
4265
4305
|
We as Stack,
|
|
4266
4306
|
nr as SwitchGroup,
|
|
4267
|
-
|
|
4307
|
+
br as TBody,
|
|
4268
4308
|
jr as TD,
|
|
4269
4309
|
vr as TH,
|
|
4270
4310
|
mr as THead,
|
|
4271
|
-
|
|
4311
|
+
yr as TRow,
|
|
4272
4312
|
gr as Table,
|
|
4273
4313
|
wr as Tabs,
|
|
4274
4314
|
kr as Text,
|