@pnkx-lib/ui 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Steps-tGR8eV70.js → Steps-CQhCURd7.js} +103 -103
- package/dist/index.js +34 -33
- package/dist/types/index.d.ts +18 -11
- package/dist/types/ui.d.ts +18 -11
- package/dist/ui/index.js +24 -23
- package/package.json +1 -1
@@ -18,19 +18,43 @@ const oo = (e) => /* @__PURE__ */ O.jsx(vs, { ...e }), hd = (e) => {
|
|
18
18
|
...o
|
19
19
|
}
|
20
20
|
) });
|
21
|
+
}, Gt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(ta.Input, { size: "small", block: !0, active: !0 }, r)), Ms = ({ type: e, skeletonButtonCount: t }) => e === "table" ? /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
22
|
+
/* @__PURE__ */ O.jsxs(
|
23
|
+
"div",
|
24
|
+
{
|
25
|
+
style: {
|
26
|
+
display: "flex",
|
27
|
+
alignItems: "center",
|
28
|
+
width: "100%",
|
29
|
+
marginBottom: 15
|
30
|
+
},
|
31
|
+
children: [
|
32
|
+
/* @__PURE__ */ O.jsx("div", { children: /* @__PURE__ */ O.jsx(Ot, { children: Gt(1) }) }),
|
33
|
+
t && /* @__PURE__ */ O.jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ O.jsx(Ot, { children: Gt(t) }) })
|
34
|
+
]
|
35
|
+
}
|
36
|
+
),
|
37
|
+
/* @__PURE__ */ O.jsx(to, { children: /* @__PURE__ */ O.jsx(Ot, { direction: "vertical", size: "middle", style: { width: "100%" }, children: Gt(10) }) }),
|
38
|
+
/* @__PURE__ */ O.jsx("div", { style: { ...js.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ O.jsx(ta.Input, { size: "small", active: !0 }) })
|
39
|
+
] }) : /* @__PURE__ */ O.jsx(to, { children: /* @__PURE__ */ O.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Gt(3) }) }), js = {
|
40
|
+
rightAlign: {
|
41
|
+
display: "flex",
|
42
|
+
justifyContent: "flex-end",
|
43
|
+
width: "100%"
|
44
|
+
}
|
21
45
|
};
|
22
|
-
function
|
46
|
+
function Rs(e) {
|
23
47
|
if (e.sheet)
|
24
48
|
return e.sheet;
|
25
49
|
for (var t = 0; t < document.styleSheets.length; t++)
|
26
50
|
if (document.styleSheets[t].ownerNode === e)
|
27
51
|
return document.styleSheets[t];
|
28
52
|
}
|
29
|
-
function
|
53
|
+
function Ns(e) {
|
30
54
|
var t = document.createElement("style");
|
31
55
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
32
56
|
}
|
33
|
-
var
|
57
|
+
var Is = /* @__PURE__ */ function() {
|
34
58
|
function e(r) {
|
35
59
|
var n = this;
|
36
60
|
this._insertTag = function(o) {
|
@@ -42,10 +66,10 @@ var Rs = /* @__PURE__ */ function() {
|
|
42
66
|
return t.hydrate = function(n) {
|
43
67
|
n.forEach(this._insertTag);
|
44
68
|
}, t.insert = function(n) {
|
45
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
69
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ns(this));
|
46
70
|
var o = this.tags[this.tags.length - 1];
|
47
71
|
if (this.isSpeedy) {
|
48
|
-
var a =
|
72
|
+
var a = Rs(o);
|
49
73
|
try {
|
50
74
|
a.insertRule(n, a.cssRules.length);
|
51
75
|
} catch {
|
@@ -59,14 +83,14 @@ var Rs = /* @__PURE__ */ function() {
|
|
59
83
|
return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
|
60
84
|
}), this.tags = [], this.ctr = 0;
|
61
85
|
}, e;
|
62
|
-
}(), ue = "-ms-", fr = "-moz-", L = "-webkit-", aa = "comm", Rn = "rule", Nn = "decl",
|
63
|
-
function
|
86
|
+
}(), ue = "-ms-", fr = "-moz-", L = "-webkit-", aa = "comm", Rn = "rule", Nn = "decl", Ls = "@import", ia = "@keyframes", Hs = "@layer", Ds = Math.abs, br = String.fromCharCode, zs = Object.assign;
|
87
|
+
function Vs(e, t) {
|
64
88
|
return ce(e, 0) ^ 45 ? (((t << 2 ^ ce(e, 0)) << 2 ^ ce(e, 1)) << 2 ^ ce(e, 2)) << 2 ^ ce(e, 3) : 0;
|
65
89
|
}
|
66
90
|
function sa(e) {
|
67
91
|
return e.trim();
|
68
92
|
}
|
69
|
-
function
|
93
|
+
function Bs(e, t) {
|
70
94
|
return (e = t.exec(e)) ? e[0] : e;
|
71
95
|
}
|
72
96
|
function H(e, t, r) {
|
@@ -87,10 +111,10 @@ function ke(e) {
|
|
87
111
|
function In(e) {
|
88
112
|
return e.length;
|
89
113
|
}
|
90
|
-
function
|
114
|
+
function Xt(e, t) {
|
91
115
|
return t.push(e), e;
|
92
116
|
}
|
93
|
-
function
|
117
|
+
function Fs(e, t) {
|
94
118
|
return e.map(t).join("");
|
95
119
|
}
|
96
120
|
var yr = 1, dt = 1, ca = 0, ve = 0, re = 0, pt = "";
|
@@ -98,12 +122,12 @@ function Sr(e, t, r, n, o, a, i) {
|
|
98
122
|
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: yr, column: dt, length: i, return: "" };
|
99
123
|
}
|
100
124
|
function Ct(e, t) {
|
101
|
-
return
|
125
|
+
return zs(Sr("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
102
126
|
}
|
103
|
-
function
|
127
|
+
function Ws() {
|
104
128
|
return re;
|
105
129
|
}
|
106
|
-
function
|
130
|
+
function Gs() {
|
107
131
|
return re = ve > 0 ? ce(pt, --ve) : 0, dt--, re === 10 && (dt = 1, yr--), re;
|
108
132
|
}
|
109
133
|
function me() {
|
@@ -165,12 +189,12 @@ function ua(e) {
|
|
165
189
|
function nr(e) {
|
166
190
|
return sa(Lt(ve - 1, Xr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
167
191
|
}
|
168
|
-
function
|
192
|
+
function Xs(e) {
|
169
193
|
for (; (re = Ae()) && re < 33; )
|
170
194
|
me();
|
171
195
|
return kt(e) > 2 || kt(re) > 3 ? "" : " ";
|
172
196
|
}
|
173
|
-
function
|
197
|
+
function Us(e, t) {
|
174
198
|
for (; --t && me() && !(re < 48 || re > 102 || re > 57 && re < 65 || re > 70 && re < 97); )
|
175
199
|
;
|
176
200
|
return Lt(e, rr() + (t < 6 && Ae() == 32 && me() == 32));
|
@@ -197,18 +221,18 @@ function Xr(e) {
|
|
197
221
|
}
|
198
222
|
return ve;
|
199
223
|
}
|
200
|
-
function
|
224
|
+
function Ks(e, t) {
|
201
225
|
for (; me() && e + re !== 57; )
|
202
226
|
if (e + re === 84 && Ae() === 47)
|
203
227
|
break;
|
204
228
|
return "/*" + Lt(t, ve - 1) + "*" + br(e === 47 ? e : me());
|
205
229
|
}
|
206
|
-
function
|
230
|
+
function qs(e) {
|
207
231
|
for (; !kt(Ae()); )
|
208
232
|
me();
|
209
233
|
return Lt(e, ve);
|
210
234
|
}
|
211
|
-
function
|
235
|
+
function Ys(e) {
|
212
236
|
return ua(or("", null, null, null, [""], e = la(e), 0, [0], e));
|
213
237
|
}
|
214
238
|
function or(e, t, r, n, o, a, i, c, l) {
|
@@ -231,18 +255,18 @@ function or(e, t, r, n, o, a, i, c, l) {
|
|
231
255
|
case 10:
|
232
256
|
case 13:
|
233
257
|
case 32:
|
234
|
-
y +=
|
258
|
+
y += Xs(b);
|
235
259
|
break;
|
236
260
|
// \
|
237
261
|
case 92:
|
238
|
-
y +=
|
262
|
+
y += Us(rr() - 1, 7);
|
239
263
|
continue;
|
240
264
|
// /
|
241
265
|
case 47:
|
242
266
|
switch (Ae()) {
|
243
267
|
case 42:
|
244
268
|
case 47:
|
245
|
-
|
269
|
+
Xt(Qs(Ks(me(), rr()), t, r), l);
|
246
270
|
break;
|
247
271
|
default:
|
248
272
|
y += "/";
|
@@ -262,14 +286,14 @@ function or(e, t, r, n, o, a, i, c, l) {
|
|
262
286
|
h = 0;
|
263
287
|
// ;
|
264
288
|
case 59 + u:
|
265
|
-
S == -1 && (y = H(y, /\f/g, "")), m > 0 && ke(y) - f &&
|
289
|
+
S == -1 && (y = H(y, /\f/g, "")), m > 0 && ke(y) - f && Xt(m > 32 ? io(y + ";", n, r, f - 1) : io(H(y, " ", "") + ";", n, r, f - 2), l);
|
266
290
|
break;
|
267
291
|
// @ ;
|
268
292
|
case 59:
|
269
293
|
y += ";";
|
270
294
|
// { rule/at-rule
|
271
295
|
default:
|
272
|
-
if (
|
296
|
+
if (Xt(E = ao(y, t, r, s, u, o, c, C, w = [], x = [], f), a), p === 123)
|
273
297
|
if (u === 0)
|
274
298
|
or(y, t, E, E, w, a, f, c, x);
|
275
299
|
else
|
@@ -279,7 +303,7 @@ function or(e, t, r, n, o, a, i, c, l) {
|
|
279
303
|
case 108:
|
280
304
|
case 109:
|
281
305
|
case 115:
|
282
|
-
or(e, E, E, n &&
|
306
|
+
or(e, E, E, n && Xt(ao(e, E, E, 0, 0, o, c, C, o, w = [], f), x), o, x, f, c, n ? w : x);
|
283
307
|
break;
|
284
308
|
default:
|
285
309
|
or(y, E, E, E, [""], x, 0, c, x);
|
@@ -294,7 +318,7 @@ function or(e, t, r, n, o, a, i, c, l) {
|
|
294
318
|
if (v < 1) {
|
295
319
|
if (p == 123)
|
296
320
|
--v;
|
297
|
-
else if (p == 125 && v++ == 0 &&
|
321
|
+
else if (p == 125 && v++ == 0 && Gs() == 125)
|
298
322
|
continue;
|
299
323
|
}
|
300
324
|
switch (y += br(p), p * v) {
|
@@ -308,7 +332,7 @@ function or(e, t, r, n, o, a, i, c, l) {
|
|
308
332
|
break;
|
309
333
|
// @
|
310
334
|
case 64:
|
311
|
-
Ae() === 45 && (y += nr(me())), d = Ae(), u = f = ke(C = y +=
|
335
|
+
Ae() === 45 && (y += nr(me())), d = Ae(), u = f = ke(C = y += qs(rr())), p++;
|
312
336
|
break;
|
313
337
|
// -
|
314
338
|
case 45:
|
@@ -319,12 +343,12 @@ function or(e, t, r, n, o, a, i, c, l) {
|
|
319
343
|
}
|
320
344
|
function ao(e, t, r, n, o, a, i, c, l, s, u) {
|
321
345
|
for (var f = o - 1, d = o === 0 ? a : [""], m = In(d), b = 0, v = 0, h = 0; b < n; ++b)
|
322
|
-
for (var S = 0, p = Pt(e, f + 1, f =
|
346
|
+
for (var S = 0, p = Pt(e, f + 1, f = Ds(v = i[b])), C = e; S < m; ++S)
|
323
347
|
(C = sa(v > 0 ? d[S] + " " + p : H(p, /&\f/g, d[S]))) && (l[h++] = C);
|
324
348
|
return Sr(e, t, r, o === 0 ? Rn : c, l, s, u);
|
325
349
|
}
|
326
|
-
function
|
327
|
-
return Sr(e, t, r, aa, br(
|
350
|
+
function Qs(e, t, r) {
|
351
|
+
return Sr(e, t, r, aa, br(Ws()), Pt(e, 2, -2), 0);
|
328
352
|
}
|
329
353
|
function io(e, t, r, n) {
|
330
354
|
return Sr(e, t, r, Nn, Pt(e, 0, n), Pt(e, n + 1, -1), n);
|
@@ -334,11 +358,11 @@ function ct(e, t) {
|
|
334
358
|
r += t(e[o], o, e, t) || "";
|
335
359
|
return r;
|
336
360
|
}
|
337
|
-
function
|
361
|
+
function Zs(e, t, r, n) {
|
338
362
|
switch (e.type) {
|
339
|
-
case
|
363
|
+
case Hs:
|
340
364
|
if (e.children.length) break;
|
341
|
-
case
|
365
|
+
case Ls:
|
342
366
|
case Nn:
|
343
367
|
return e.return = e.return || e.value;
|
344
368
|
case aa:
|
@@ -350,7 +374,7 @@ function Ys(e, t, r, n) {
|
|
350
374
|
}
|
351
375
|
return ke(r = ct(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
352
376
|
}
|
353
|
-
function
|
377
|
+
function Js(e) {
|
354
378
|
var t = In(e);
|
355
379
|
return function(r, n, o, a) {
|
356
380
|
for (var i = "", c = 0; c < t; c++)
|
@@ -358,27 +382,27 @@ function Qs(e) {
|
|
358
382
|
return i;
|
359
383
|
};
|
360
384
|
}
|
361
|
-
function
|
385
|
+
function ec(e) {
|
362
386
|
return function(t) {
|
363
387
|
t.root || (t = t.return) && e(t);
|
364
388
|
};
|
365
389
|
}
|
366
|
-
function
|
390
|
+
function tc(e) {
|
367
391
|
var t = /* @__PURE__ */ Object.create(null);
|
368
392
|
return function(r) {
|
369
393
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
370
394
|
};
|
371
395
|
}
|
372
|
-
var
|
396
|
+
var rc = function(t, r, n) {
|
373
397
|
for (var o = 0, a = 0; o = a, a = Ae(), o === 38 && a === 12 && (r[n] = 1), !kt(a); )
|
374
398
|
me();
|
375
399
|
return Lt(t, ve);
|
376
|
-
},
|
400
|
+
}, nc = function(t, r) {
|
377
401
|
var n = -1, o = 44;
|
378
402
|
do
|
379
403
|
switch (kt(o)) {
|
380
404
|
case 0:
|
381
|
-
o === 38 && Ae() === 12 && (r[n] = 1), t[n] +=
|
405
|
+
o === 38 && Ae() === 12 && (r[n] = 1), t[n] += rc(ve - 1, r, n);
|
382
406
|
break;
|
383
407
|
case 2:
|
384
408
|
t[n] += nr(o);
|
@@ -394,9 +418,9 @@ var ec = function(t, r, n) {
|
|
394
418
|
}
|
395
419
|
while (o = me());
|
396
420
|
return t;
|
397
|
-
},
|
398
|
-
return ua(
|
399
|
-
}, so = /* @__PURE__ */ new WeakMap(),
|
421
|
+
}, oc = function(t, r) {
|
422
|
+
return ua(nc(la(t), r));
|
423
|
+
}, so = /* @__PURE__ */ new WeakMap(), ac = function(t) {
|
400
424
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
401
425
|
// negative .length indicates that this rule has been already prefixed
|
402
426
|
t.length < 1)) {
|
@@ -404,12 +428,12 @@ var ec = function(t, r, n) {
|
|
404
428
|
if (n = n.parent, !n) return;
|
405
429
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !so.get(n)) && !o) {
|
406
430
|
so.set(t, !0);
|
407
|
-
for (var a = [], i =
|
431
|
+
for (var a = [], i = oc(r, a), c = n.props, l = 0, s = 0; l < i.length; l++)
|
408
432
|
for (var u = 0; u < c.length; u++, s++)
|
409
433
|
t.props[s] = a[l] ? i[l].replace(/&\f/g, c[u]) : c[u] + " " + i[l];
|
410
434
|
}
|
411
435
|
}
|
412
|
-
},
|
436
|
+
}, ic = function(t) {
|
413
437
|
if (t.type === "decl") {
|
414
438
|
var r = t.value;
|
415
439
|
// charcode for l
|
@@ -418,7 +442,7 @@ var ec = function(t, r, n) {
|
|
418
442
|
}
|
419
443
|
};
|
420
444
|
function fa(e, t) {
|
421
|
-
switch (
|
445
|
+
switch (Vs(e, t)) {
|
422
446
|
// color-adjust
|
423
447
|
case 5103:
|
424
448
|
return L + "print-" + e + e;
|
@@ -559,7 +583,7 @@ function fa(e, t) {
|
|
559
583
|
}
|
560
584
|
return e;
|
561
585
|
}
|
562
|
-
var
|
586
|
+
var sc = function(t, r, n, o) {
|
563
587
|
if (t.length > -1 && !t.return) switch (t.type) {
|
564
588
|
case Nn:
|
565
589
|
t.return = fa(t.value, t.length);
|
@@ -569,8 +593,8 @@ var ac = function(t, r, n, o) {
|
|
569
593
|
value: H(t.value, "@", "@" + L)
|
570
594
|
})], o);
|
571
595
|
case Rn:
|
572
|
-
if (t.length) return
|
573
|
-
switch (
|
596
|
+
if (t.length) return Fs(t.props, function(a) {
|
597
|
+
switch (Bs(a, /(::plac\w+|:read-\w+)/)) {
|
574
598
|
// :read-(only|write)
|
575
599
|
case ":read-only":
|
576
600
|
case ":read-write":
|
@@ -590,7 +614,7 @@ var ac = function(t, r, n, o) {
|
|
590
614
|
return "";
|
591
615
|
});
|
592
616
|
}
|
593
|
-
},
|
617
|
+
}, cc = [sc], lc = function(t) {
|
594
618
|
var r = t.key;
|
595
619
|
if (r === "css") {
|
596
620
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
@@ -599,7 +623,7 @@ var ac = function(t, r, n, o) {
|
|
599
623
|
h.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
600
624
|
});
|
601
625
|
}
|
602
|
-
var o = t.stylisPlugins ||
|
626
|
+
var o = t.stylisPlugins || cc, a = {}, i, c = [];
|
603
627
|
i = t.container || document.head, Array.prototype.forEach.call(
|
604
628
|
// this means we will ignore elements which don't have a space in them which
|
605
629
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
@@ -610,12 +634,12 @@ var ac = function(t, r, n, o) {
|
|
610
634
|
c.push(v);
|
611
635
|
}
|
612
636
|
);
|
613
|
-
var l, s = [
|
637
|
+
var l, s = [ac, ic];
|
614
638
|
{
|
615
|
-
var u, f = [
|
639
|
+
var u, f = [Zs, ec(function(v) {
|
616
640
|
u.insert(v);
|
617
|
-
})], d =
|
618
|
-
return ct(
|
641
|
+
})], d = Js(s.concat(o, f)), m = function(h) {
|
642
|
+
return ct(Ys(h), d);
|
619
643
|
};
|
620
644
|
l = function(h, S, p, C) {
|
621
645
|
u = p, m(h ? h + "{" + S.styles + "}" : S.styles), C && (b.inserted[S.name] = !0);
|
@@ -623,7 +647,7 @@ var ac = function(t, r, n, o) {
|
|
623
647
|
}
|
624
648
|
var b = {
|
625
649
|
key: r,
|
626
|
-
sheet: new
|
650
|
+
sheet: new Is({
|
627
651
|
key: r,
|
628
652
|
container: i,
|
629
653
|
nonce: t.nonce,
|
@@ -638,7 +662,7 @@ var ac = function(t, r, n, o) {
|
|
638
662
|
};
|
639
663
|
return b.sheet.hydrate(c), b;
|
640
664
|
};
|
641
|
-
function
|
665
|
+
function uc(e) {
|
642
666
|
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
643
667
|
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
644
668
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
@@ -657,7 +681,7 @@ function cc(e) {
|
|
657
681
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
658
682
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
659
683
|
}
|
660
|
-
var
|
684
|
+
var fc = {
|
661
685
|
animationIterationCount: 1,
|
662
686
|
aspectRatio: 1,
|
663
687
|
borderImageOutset: 1,
|
@@ -706,18 +730,18 @@ var lc = {
|
|
706
730
|
strokeMiterlimit: 1,
|
707
731
|
strokeOpacity: 1,
|
708
732
|
strokeWidth: 1
|
709
|
-
},
|
733
|
+
}, dc = /[A-Z]|^ms/g, hc = /_EMO_([^_]+?)_([^]*?)_EMO_/g, da = function(t) {
|
710
734
|
return t.charCodeAt(1) === 45;
|
711
735
|
}, co = function(t) {
|
712
736
|
return t != null && typeof t != "boolean";
|
713
|
-
}, Mr = /* @__PURE__ */
|
714
|
-
return da(e) ? e : e.replace(
|
737
|
+
}, Mr = /* @__PURE__ */ tc(function(e) {
|
738
|
+
return da(e) ? e : e.replace(dc, "-$&").toLowerCase();
|
715
739
|
}), lo = function(t, r) {
|
716
740
|
switch (t) {
|
717
741
|
case "animation":
|
718
742
|
case "animationName":
|
719
743
|
if (typeof r == "string")
|
720
|
-
return r.replace(
|
744
|
+
return r.replace(hc, function(n, o, a) {
|
721
745
|
return We = {
|
722
746
|
name: o,
|
723
747
|
styles: a,
|
@@ -725,7 +749,7 @@ var lc = {
|
|
725
749
|
}, o;
|
726
750
|
});
|
727
751
|
}
|
728
|
-
return
|
752
|
+
return fc[t] !== 1 && !da(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
729
753
|
};
|
730
754
|
function dr(e, t, r) {
|
731
755
|
if (r == null)
|
@@ -757,7 +781,7 @@ function dr(e, t, r) {
|
|
757
781
|
var c = a.styles + ";";
|
758
782
|
return c;
|
759
783
|
}
|
760
|
-
return
|
784
|
+
return vc(e, t, r);
|
761
785
|
}
|
762
786
|
}
|
763
787
|
var l = r;
|
@@ -766,7 +790,7 @@ function dr(e, t, r) {
|
|
766
790
|
var s = t[l];
|
767
791
|
return s !== void 0 ? s : l;
|
768
792
|
}
|
769
|
-
function
|
793
|
+
function vc(e, t, r) {
|
770
794
|
var n = "";
|
771
795
|
if (Array.isArray(r))
|
772
796
|
for (var o = 0; o < r.length; o++)
|
@@ -816,7 +840,7 @@ function jr(e, t, r) {
|
|
816
840
|
uo.lastIndex = 0;
|
817
841
|
for (var s = "", u; (u = uo.exec(o)) !== null; )
|
818
842
|
s += "-" + u[1];
|
819
|
-
var f =
|
843
|
+
var f = uc(o) + s;
|
820
844
|
return {
|
821
845
|
name: f,
|
822
846
|
styles: o,
|
@@ -829,7 +853,7 @@ function ha(e, t, r) {
|
|
829
853
|
e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " ");
|
830
854
|
}), n;
|
831
855
|
}
|
832
|
-
var
|
856
|
+
var gc = function(t, r, n) {
|
833
857
|
var o = t.key + "-" + r.name;
|
834
858
|
// we only need to add the styles to the registered cache if the
|
835
859
|
// class name could be used further down
|
@@ -837,8 +861,8 @@ var hc = function(t, r, n) {
|
|
837
861
|
// so we don't have to add it to registered cache.
|
838
862
|
// this improves memory usage since we can avoid storing the whole style string
|
839
863
|
t.registered[o] === void 0 && (t.registered[o] = r.styles);
|
840
|
-
},
|
841
|
-
|
864
|
+
}, pc = function(t, r, n) {
|
865
|
+
gc(t, r);
|
842
866
|
var o = t.key + "-" + r.name;
|
843
867
|
if (t.inserted[r.name] === void 0) {
|
844
868
|
var a = r;
|
@@ -855,8 +879,8 @@ function ho(e, t, r) {
|
|
855
879
|
var n = [], o = ha(e, n, r);
|
856
880
|
return n.length < 2 ? r : o + t(n);
|
857
881
|
}
|
858
|
-
var
|
859
|
-
var r =
|
882
|
+
var mc = function(t) {
|
883
|
+
var r = lc(t);
|
860
884
|
r.sheet.speedy = function(c) {
|
861
885
|
this.isSpeedy = c;
|
862
886
|
}, r.compat = !0;
|
@@ -864,7 +888,7 @@ var gc = function(t) {
|
|
864
888
|
for (var l = arguments.length, s = new Array(l), u = 0; u < l; u++)
|
865
889
|
s[u] = arguments[u];
|
866
890
|
var f = jr(s, r.registered, void 0);
|
867
|
-
return
|
891
|
+
return pc(r, f), r.key + "-" + f.name;
|
868
892
|
}, o = function() {
|
869
893
|
for (var l = arguments.length, s = new Array(l), u = 0; u < l; u++)
|
870
894
|
s[u] = arguments[u];
|
@@ -881,7 +905,7 @@ var gc = function(t) {
|
|
881
905
|
}, i = function() {
|
882
906
|
for (var l = arguments.length, s = new Array(l), u = 0; u < l; u++)
|
883
907
|
s[u] = arguments[u];
|
884
|
-
return ho(r.registered, n,
|
908
|
+
return ho(r.registered, n, bc(s));
|
885
909
|
};
|
886
910
|
return {
|
887
911
|
css: n,
|
@@ -901,7 +925,7 @@ var gc = function(t) {
|
|
901
925
|
getRegisteredStyles: ha.bind(null, r.registered),
|
902
926
|
merge: ho.bind(null, r.registered, n)
|
903
927
|
};
|
904
|
-
},
|
928
|
+
}, bc = function e(t) {
|
905
929
|
for (var r = "", n = 0; n < t.length; n++) {
|
906
930
|
var o = t[n];
|
907
931
|
if (o != null) {
|
@@ -926,40 +950,16 @@ var gc = function(t) {
|
|
926
950
|
}
|
927
951
|
}
|
928
952
|
return r;
|
929
|
-
}, va =
|
953
|
+
}, va = mc({
|
930
954
|
key: "css"
|
931
|
-
}),
|
932
|
-
const
|
933
|
-
/* @__PURE__ */ O.jsxs(
|
934
|
-
"div",
|
935
|
-
{
|
936
|
-
style: {
|
937
|
-
display: "flex",
|
938
|
-
alignItems: "center",
|
939
|
-
width: "100%",
|
940
|
-
marginBottom: 15
|
941
|
-
},
|
942
|
-
children: [
|
943
|
-
/* @__PURE__ */ O.jsx("div", { children: /* @__PURE__ */ O.jsx(Ot, { children: Xt(1) }) }),
|
944
|
-
t && /* @__PURE__ */ O.jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ O.jsx(Ot, { children: Xt(t) }) })
|
945
|
-
]
|
946
|
-
}
|
947
|
-
),
|
948
|
-
/* @__PURE__ */ O.jsx(to, { children: /* @__PURE__ */ O.jsx(Ot, { direction: "vertical", size: "middle", style: { width: "100%" }, children: Xt(10) }) }),
|
949
|
-
/* @__PURE__ */ O.jsx("div", { style: { ...Sc.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ O.jsx(ta.Input, { size: "small", active: !0 }) })
|
950
|
-
] }) : /* @__PURE__ */ O.jsx(to, { children: /* @__PURE__ */ O.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Xt(3) }) }), Sc = {
|
951
|
-
rightAlign: {
|
952
|
-
display: "flex",
|
953
|
-
justifyContent: "flex-end",
|
954
|
-
width: "100%"
|
955
|
-
}
|
956
|
-
}, xc = bc`
|
955
|
+
}), yc = va.cx, Sc = va.css;
|
956
|
+
const xc = Sc`
|
957
957
|
.ant-table-cell::before {
|
958
958
|
display: none !important;
|
959
959
|
}
|
960
960
|
.ant-table-thead .ant-table-cell {
|
961
961
|
background-color: #a8caff;
|
962
|
-
font-weight:
|
962
|
+
font-weight: 400;
|
963
963
|
}
|
964
964
|
|
965
965
|
.ant-table-thead th.ant-table-column-has-sorters:hover {
|
@@ -1015,7 +1015,7 @@ const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(
|
|
1015
1015
|
x.closest("a") || C == null || C(p);
|
1016
1016
|
};
|
1017
1017
|
}
|
1018
|
-
return r ? /* @__PURE__ */ O.jsx(
|
1018
|
+
return r ? /* @__PURE__ */ O.jsx(Ms, { type: "table" }) : /* @__PURE__ */ O.jsx(
|
1019
1019
|
ps,
|
1020
1020
|
{
|
1021
1021
|
rowKey: f,
|
@@ -1032,7 +1032,7 @@ const Xt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(
|
|
1032
1032
|
emptyText: /* @__PURE__ */ O.jsx(ms, {})
|
1033
1033
|
},
|
1034
1034
|
rowClassName: (p, C) => `table-row-${C % 2 === 0 ? "even" : "odd"}`,
|
1035
|
-
className:
|
1035
|
+
className: yc(xc, d),
|
1036
1036
|
...m
|
1037
1037
|
}
|
1038
1038
|
);
|
@@ -5875,7 +5875,7 @@ export {
|
|
5875
5875
|
gd as M,
|
5876
5876
|
bd as P,
|
5877
5877
|
Ed as R,
|
5878
|
-
|
5878
|
+
Ms as S,
|
5879
5879
|
vd as T,
|
5880
5880
|
pd as a,
|
5881
5881
|
md as b,
|
package/dist/index.js
CHANGED
@@ -1,39 +1,40 @@
|
|
1
|
-
import { e, g as
|
2
|
-
import { E as
|
3
|
-
import
|
1
|
+
import { e as o, g as r, B as t, C as i, f as l, d as p, D as d, F as n, L as F, j as c, M as C, k as S, P as T, R as P, c as b, S as g, h as k, i as m, l as u, T as x, b as M, a as y, t as R } from "./chunks/Steps-CQhCURd7.js";
|
2
|
+
import { E as h, L as B, T as D } from "./chunks/AntdIcon-OM3ycq04.js";
|
3
|
+
import "react";
|
4
|
+
import { C as E, D as w, I, P as j, R as v, a as G, S as q, T as z } from "./chunks/Switch-DKxIhHNw.js";
|
4
5
|
export {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
o as Badge,
|
7
|
+
r as Breadcrumb,
|
8
|
+
t as Button,
|
9
|
+
i as CascaderField,
|
10
|
+
E as CheckboxField,
|
10
11
|
l as Col,
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
12
|
+
p as Container,
|
13
|
+
w as DatePickerField,
|
14
|
+
d as Dropdown,
|
15
|
+
h as ErrorMessage,
|
16
|
+
n as Flex,
|
17
|
+
I as Input,
|
18
|
+
B as Label,
|
19
|
+
F as Layout,
|
20
|
+
c as Menu,
|
21
|
+
C as Modal,
|
22
|
+
S as Pagination,
|
23
|
+
j as PnkxField,
|
24
|
+
T as Popover,
|
25
|
+
v as RadioGroup,
|
26
|
+
G as RangePickerField,
|
27
|
+
P as Row,
|
28
|
+
b as SearchFiltersForm,
|
29
|
+
q as SelectField,
|
30
|
+
g as Skeleton,
|
31
|
+
k as Space,
|
32
|
+
m as Splitter,
|
32
33
|
u as Steps,
|
33
34
|
x as Table,
|
34
35
|
M as Tabs,
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
z as TinyMCE,
|
37
|
+
y as Tooltip,
|
38
|
+
D as Typography,
|
39
|
+
R as typeColorMap
|
39
40
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -9,6 +9,7 @@ import { CascaderProps } from 'antd/es/cascader';
|
|
9
9
|
import { CheckboxProps } from 'antd';
|
10
10
|
import { ColProps as ColProps_2 } from 'antd';
|
11
11
|
import { ColSize as ColSize_2 } from 'antd/es/grid';
|
12
|
+
import { ColumnsType as ColumnsType_2 } from 'antd/es/table';
|
12
13
|
import { Control } from 'react-hook-form';
|
13
14
|
import { ControllerFieldState } from 'react-hook-form';
|
14
15
|
import { ControllerRenderProps } from 'react-hook-form';
|
@@ -57,7 +58,6 @@ import { Steps as Steps_2 } from 'antd';
|
|
57
58
|
import { StepsProps as StepsProps_2 } from 'antd';
|
58
59
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
59
60
|
import { SwitchProps } from 'antd';
|
60
|
-
import { TableColumnsType as TableColumnsType_2 } from 'antd';
|
61
61
|
import { TableProps } from 'antd/lib/table';
|
62
62
|
import { TabsProps as TabsProps_2 } from 'antd';
|
63
63
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
@@ -179,7 +179,7 @@ export declare interface ColSize extends ColSize_2 {
|
|
179
179
|
|
180
180
|
export declare type ColSpanType = number | string;
|
181
181
|
|
182
|
-
declare type
|
182
|
+
export declare type ColumnsType<T> = ColumnsType_2<T>;
|
183
183
|
|
184
184
|
declare type ComponentPropsType<TComponent> = TComponent extends React_2.ComponentType<infer P> ? P : never;
|
185
185
|
|
@@ -419,6 +419,21 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
419
419
|
customStyleContainer?: string;
|
420
420
|
}
|
421
421
|
|
422
|
+
export declare interface SidebarProps {
|
423
|
+
children?: React.ReactNode;
|
424
|
+
menu: Array<{
|
425
|
+
name: string;
|
426
|
+
href: string;
|
427
|
+
icon: React.ReactNode;
|
428
|
+
current: boolean;
|
429
|
+
children?: Array<{
|
430
|
+
name: string;
|
431
|
+
href: string;
|
432
|
+
}>;
|
433
|
+
}>;
|
434
|
+
router: (path: string) => void;
|
435
|
+
}
|
436
|
+
|
422
437
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
423
438
|
multiple?: false;
|
424
439
|
};
|
@@ -478,15 +493,9 @@ declare type TabItem = {
|
|
478
493
|
|
479
494
|
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, ...rest }: TableCommonProps<T>) => JSX.Element;
|
480
495
|
|
481
|
-
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
482
|
-
|
483
|
-
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
484
|
-
editable?: boolean;
|
485
|
-
})[];
|
486
|
-
|
487
496
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
488
497
|
dataSource: T[];
|
489
|
-
columns:
|
498
|
+
columns: ColumnsType<T>;
|
490
499
|
loading?: boolean;
|
491
500
|
totalItems: number;
|
492
501
|
filters: any;
|
@@ -498,8 +507,6 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
498
507
|
onRowClick?: (record: T) => void;
|
499
508
|
rowKey?: string;
|
500
509
|
className?: string;
|
501
|
-
editable?: boolean;
|
502
|
-
onSave?: (data: T[]) => void;
|
503
510
|
}
|
504
511
|
|
505
512
|
export declare const Tabs: default_2.FC<TabsProps>;
|
package/dist/types/ui.d.ts
CHANGED
@@ -8,6 +8,7 @@ import { ButtonProps as ButtonProps_2 } from 'antd';
|
|
8
8
|
import { CascaderProps } from 'antd/es/cascader';
|
9
9
|
import { ColProps as ColProps_2 } from 'antd';
|
10
10
|
import { ColSize as ColSize_2 } from 'antd/es/grid';
|
11
|
+
import { ColumnsType as ColumnsType_2 } from 'antd/es/table';
|
11
12
|
import { Control } from 'react-hook-form';
|
12
13
|
import { default as default_2 } from 'react';
|
13
14
|
import { DefaultOptionType } from 'antd/es/cascader';
|
@@ -44,7 +45,6 @@ import { StepProps as StepProps_2 } from 'antd';
|
|
44
45
|
import { Steps as Steps_2 } from 'antd';
|
45
46
|
import { StepsProps as StepsProps_2 } from 'antd';
|
46
47
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
47
|
-
import { TableColumnsType as TableColumnsType_2 } from 'antd';
|
48
48
|
import { TableProps } from 'antd/lib/table';
|
49
49
|
import { TabsProps as TabsProps_2 } from 'antd';
|
50
50
|
import { TextProps } from 'antd/es/typography/Text';
|
@@ -150,7 +150,7 @@ export declare interface ColSize extends ColSize_2 {
|
|
150
150
|
|
151
151
|
export declare type ColSpanType = number | string;
|
152
152
|
|
153
|
-
declare type
|
153
|
+
export declare type ColumnsType<T> = ColumnsType_2<T>;
|
154
154
|
|
155
155
|
declare type CompoundedMenu = FC<MenuComponentProps> & {
|
156
156
|
Item: typeof MenuItem;
|
@@ -291,6 +291,21 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
291
291
|
onSubmit: (data: T) => void;
|
292
292
|
}
|
293
293
|
|
294
|
+
export declare interface SidebarProps {
|
295
|
+
children?: React.ReactNode;
|
296
|
+
menu: Array<{
|
297
|
+
name: string;
|
298
|
+
href: string;
|
299
|
+
icon: React.ReactNode;
|
300
|
+
current: boolean;
|
301
|
+
children?: Array<{
|
302
|
+
name: string;
|
303
|
+
href: string;
|
304
|
+
}>;
|
305
|
+
}>;
|
306
|
+
router: (path: string) => void;
|
307
|
+
}
|
308
|
+
|
294
309
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
295
310
|
multiple?: false;
|
296
311
|
};
|
@@ -340,15 +355,9 @@ declare type TabItem = {
|
|
340
355
|
|
341
356
|
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, ...rest }: TableCommonProps<T>) => JSX.Element;
|
342
357
|
|
343
|
-
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
344
|
-
|
345
|
-
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
346
|
-
editable?: boolean;
|
347
|
-
})[];
|
348
|
-
|
349
358
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
350
359
|
dataSource: T[];
|
351
|
-
columns:
|
360
|
+
columns: ColumnsType<T>;
|
352
361
|
loading?: boolean;
|
353
362
|
totalItems: number;
|
354
363
|
filters: any;
|
@@ -360,8 +369,6 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
360
369
|
onRowClick?: (record: T) => void;
|
361
370
|
rowKey?: string;
|
362
371
|
className?: string;
|
363
|
-
editable?: boolean;
|
364
|
-
onSave?: (data: T[]) => void;
|
365
372
|
}
|
366
373
|
|
367
374
|
export declare const Tabs: default_2.FC<TabsProps>;
|
package/dist/ui/index.js
CHANGED
@@ -1,30 +1,31 @@
|
|
1
|
-
import { e, g as
|
2
|
-
import { E as
|
1
|
+
import { e, g as r, B as t, C as p, f as l, d as i, D as n, F as d, L as S, j as T, M as b, k as c, P as g, R as m, c as C, S as F, h as M, i as u, l as y, T as B, b as L, a as f, t as h } from "../chunks/Steps-CQhCURd7.js";
|
2
|
+
import { E as P, L as k, T as w } from "../chunks/AntdIcon-OM3ycq04.js";
|
3
|
+
import "react";
|
3
4
|
export {
|
4
5
|
e as Badge,
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
r as Breadcrumb,
|
7
|
+
t as Button,
|
8
|
+
p as CascaderField,
|
8
9
|
l as Col,
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
10
|
+
i as Container,
|
11
|
+
n as Dropdown,
|
12
|
+
P as ErrorMessage,
|
13
|
+
d as Flex,
|
14
|
+
k as Label,
|
15
|
+
S as Layout,
|
16
|
+
T as Menu,
|
17
|
+
b as Modal,
|
18
|
+
c as Pagination,
|
19
|
+
g as Popover,
|
20
|
+
m as Row,
|
20
21
|
C as SearchFiltersForm,
|
21
22
|
F as Skeleton,
|
22
23
|
M as Space,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
u as Splitter,
|
25
|
+
y as Steps,
|
26
|
+
B as Table,
|
27
|
+
L as Tabs,
|
28
|
+
f as Tooltip,
|
29
|
+
w as Typography,
|
30
|
+
h as typeColorMap
|
30
31
|
};
|