@pnkx-lib/ui 1.2.4 → 1.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.
@@ -18,46 +18,19 @@ const An = (e) => /* @__PURE__ */ k.jsx(ki, { ...e }), df = (e) => {
18
18
  ...o
19
19
  }
20
20
  ) });
21
- }, Bt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ k.jsx(xo.Input, { size: "small", block: !0, active: !0 }, r)), Wi = ({
22
- type: e,
23
- skeletonButtonCount: t
24
- }) => e === "table" ? /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
25
- /* @__PURE__ */ k.jsxs(
26
- "div",
27
- {
28
- style: {
29
- display: "flex",
30
- alignItems: "center",
31
- width: "100%",
32
- marginBottom: 15
33
- },
34
- children: [
35
- /* @__PURE__ */ k.jsx("div", { children: /* @__PURE__ */ k.jsx(Tt, { children: Bt(1) }) }),
36
- t && /* @__PURE__ */ k.jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ k.jsx(Tt, { children: Bt(t) }) })
37
- ]
38
- }
39
- ),
40
- /* @__PURE__ */ k.jsx($n, { children: /* @__PURE__ */ k.jsx(Tt, { direction: "vertical", size: "middle", style: { width: "100%" }, children: Bt(10) }) }),
41
- /* @__PURE__ */ k.jsx("div", { style: { ...Gi.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ k.jsx(xo.Input, { size: "small", active: !0 }) })
42
- ] }) : /* @__PURE__ */ k.jsx($n, { children: /* @__PURE__ */ k.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Bt(3) }) }), Gi = {
43
- rightAlign: {
44
- display: "flex",
45
- justifyContent: "flex-end",
46
- width: "100%"
47
- }
48
21
  };
49
- function Xi(e) {
22
+ function Wi(e) {
50
23
  if (e.sheet)
51
24
  return e.sheet;
52
25
  for (var t = 0; t < document.styleSheets.length; t++)
53
26
  if (document.styleSheets[t].ownerNode === e)
54
27
  return document.styleSheets[t];
55
28
  }
56
- function Ui(e) {
29
+ function Gi(e) {
57
30
  var t = document.createElement("style");
58
31
  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;
59
32
  }
60
- var Ki = /* @__PURE__ */ function() {
33
+ var Xi = /* @__PURE__ */ function() {
61
34
  function e(r) {
62
35
  var n = this;
63
36
  this._insertTag = function(o) {
@@ -69,10 +42,10 @@ var Ki = /* @__PURE__ */ function() {
69
42
  return t.hydrate = function(n) {
70
43
  n.forEach(this._insertTag);
71
44
  }, t.insert = function(n) {
72
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ui(this));
45
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Gi(this));
73
46
  var o = this.tags[this.tags.length - 1];
74
47
  if (this.isSpeedy) {
75
- var a = Xi(o);
48
+ var a = Wi(o);
76
49
  try {
77
50
  a.insertRule(n, a.cssRules.length);
78
51
  } catch {
@@ -86,14 +59,14 @@ var Ki = /* @__PURE__ */ function() {
86
59
  return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
87
60
  }), this.tags = [], this.ctr = 0;
88
61
  }, e;
89
- }(), se = "-ms-", cr = "-moz-", L = "-webkit-", wo = "comm", un = "rule", fn = "decl", Yi = "@import", ko = "@keyframes", Qi = "@layer", qi = Math.abs, gr = String.fromCharCode, Zi = Object.assign;
90
- function Ji(e, t) {
62
+ }(), se = "-ms-", cr = "-moz-", L = "-webkit-", wo = "comm", un = "rule", fn = "decl", Ui = "@import", ko = "@keyframes", Ki = "@layer", Yi = Math.abs, gr = String.fromCharCode, Qi = Object.assign;
63
+ function qi(e, t) {
91
64
  return ae(e, 0) ^ 45 ? (((t << 2 ^ ae(e, 0)) << 2 ^ ae(e, 1)) << 2 ^ ae(e, 2)) << 2 ^ ae(e, 3) : 0;
92
65
  }
93
66
  function $o(e) {
94
67
  return e.trim();
95
68
  }
96
- function es(e, t) {
69
+ function Zi(e, t) {
97
70
  return (e = t.exec(e)) ? e[0] : e;
98
71
  }
99
72
  function z(e, t, r) {
@@ -114,10 +87,10 @@ function Oe(e) {
114
87
  function dn(e) {
115
88
  return e.length;
116
89
  }
117
- function Ft(e, t) {
90
+ function Bt(e, t) {
118
91
  return t.push(e), e;
119
92
  }
120
- function ts(e, t) {
93
+ function Ji(e, t) {
121
94
  return e.map(t).join("");
122
95
  }
123
96
  var mr = 1, ft = 1, Po = 0, de = 0, J = 0, gt = "";
@@ -125,12 +98,12 @@ function hr(e, t, r, n, o, a, i) {
125
98
  return { value: e, root: t, parent: r, type: n, props: o, children: a, line: mr, column: ft, length: i, return: "" };
126
99
  }
127
100
  function xt(e, t) {
128
- return Zi(hr("", null, null, "", null, null, 0), e, { length: -e.length }, t);
101
+ return Qi(hr("", null, null, "", null, null, 0), e, { length: -e.length }, t);
129
102
  }
130
- function rs() {
103
+ function es() {
131
104
  return J;
132
105
  }
133
- function ns() {
106
+ function ts() {
134
107
  return J = de > 0 ? ae(gt, --de) : 0, ft--, J === 10 && (ft = 1, mr--), J;
135
108
  }
136
109
  function ge() {
@@ -192,12 +165,12 @@ function Ao(e) {
192
165
  function Jt(e) {
193
166
  return $o(Rt(de - 1, Vr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
194
167
  }
195
- function os(e) {
168
+ function rs(e) {
196
169
  for (; (J = _e()) && J < 33; )
197
170
  ge();
198
171
  return $t(e) > 2 || $t(J) > 3 ? "" : " ";
199
172
  }
200
- function as(e, t) {
173
+ function ns(e, t) {
201
174
  for (; --t && ge() && !(J < 48 || J > 102 || J > 57 && J < 65 || J > 70 && J < 97); )
202
175
  ;
203
176
  return Rt(e, Zt() + (t < 6 && _e() == 32 && ge() == 32));
@@ -224,18 +197,18 @@ function Vr(e) {
224
197
  }
225
198
  return de;
226
199
  }
227
- function is(e, t) {
200
+ function os(e, t) {
228
201
  for (; ge() && e + J !== 57; )
229
202
  if (e + J === 84 && _e() === 47)
230
203
  break;
231
204
  return "/*" + Rt(t, de - 1) + "*" + gr(e === 47 ? e : ge());
232
205
  }
233
- function ss(e) {
206
+ function as(e) {
234
207
  for (; !$t(_e()); )
235
208
  ge();
236
209
  return Rt(e, de);
237
210
  }
238
- function cs(e) {
211
+ function is(e) {
239
212
  return Ao(er("", null, null, null, [""], e = Oo(e), 0, [0], e));
240
213
  }
241
214
  function er(e, t, r, n, o, a, i, s, l) {
@@ -258,18 +231,18 @@ function er(e, t, r, n, o, a, i, s, l) {
258
231
  case 10:
259
232
  case 13:
260
233
  case 32:
261
- b += os(h);
234
+ b += rs(h);
262
235
  break;
263
236
  // \
264
237
  case 92:
265
- b += as(Zt() - 1, 7);
238
+ b += ns(Zt() - 1, 7);
266
239
  continue;
267
240
  // /
268
241
  case 47:
269
242
  switch (_e()) {
270
243
  case 42:
271
244
  case 47:
272
- Ft(ls(is(ge(), Zt()), t, r), l);
245
+ Bt(ss(os(ge(), Zt()), t, r), l);
273
246
  break;
274
247
  default:
275
248
  b += "/";
@@ -289,14 +262,14 @@ function er(e, t, r, n, o, a, i, s, l) {
289
262
  v = 0;
290
263
  // ;
291
264
  case 59 + u:
292
- S == -1 && (b = z(b, /\f/g, "")), y > 0 && Oe(b) - f && Ft(y > 32 ? Mn(b + ";", n, r, f - 1) : Mn(z(b, " ", "") + ";", n, r, f - 2), l);
265
+ S == -1 && (b = z(b, /\f/g, "")), y > 0 && Oe(b) - f && Bt(y > 32 ? Mn(b + ";", n, r, f - 1) : Mn(z(b, " ", "") + ";", n, r, f - 2), l);
293
266
  break;
294
267
  // @ ;
295
268
  case 59:
296
269
  b += ";";
297
270
  // { rule/at-rule
298
271
  default:
299
- if (Ft(E = _n(b, t, r, c, u, o, s, C, T = [], x = [], f), a), m === 123)
272
+ if (Bt(E = _n(b, t, r, c, u, o, s, C, T = [], x = [], f), a), m === 123)
300
273
  if (u === 0)
301
274
  er(b, t, E, E, T, a, f, s, x);
302
275
  else
@@ -306,7 +279,7 @@ function er(e, t, r, n, o, a, i, s, l) {
306
279
  case 108:
307
280
  case 109:
308
281
  case 115:
309
- er(e, E, E, n && Ft(_n(e, E, E, 0, 0, o, s, C, o, T = [], f), x), o, x, f, s, n ? T : x);
282
+ er(e, E, E, n && Bt(_n(e, E, E, 0, 0, o, s, C, o, T = [], f), x), o, x, f, s, n ? T : x);
310
283
  break;
311
284
  default:
312
285
  er(b, E, E, E, [""], x, 0, s, x);
@@ -321,7 +294,7 @@ function er(e, t, r, n, o, a, i, s, l) {
321
294
  if (p < 1) {
322
295
  if (m == 123)
323
296
  --p;
324
- else if (m == 125 && p++ == 0 && ns() == 125)
297
+ else if (m == 125 && p++ == 0 && ts() == 125)
325
298
  continue;
326
299
  }
327
300
  switch (b += gr(m), m * p) {
@@ -335,7 +308,7 @@ function er(e, t, r, n, o, a, i, s, l) {
335
308
  break;
336
309
  // @
337
310
  case 64:
338
- _e() === 45 && (b += Jt(ge())), d = _e(), u = f = Oe(C = b += ss(Zt())), m++;
311
+ _e() === 45 && (b += Jt(ge())), d = _e(), u = f = Oe(C = b += as(Zt())), m++;
339
312
  break;
340
313
  // -
341
314
  case 45:
@@ -346,12 +319,12 @@ function er(e, t, r, n, o, a, i, s, l) {
346
319
  }
347
320
  function _n(e, t, r, n, o, a, i, s, l, c, u) {
348
321
  for (var f = o - 1, d = o === 0 ? a : [""], y = dn(d), h = 0, p = 0, v = 0; h < n; ++h)
349
- for (var S = 0, m = kt(e, f + 1, f = qi(p = i[h])), C = e; S < y; ++S)
322
+ for (var S = 0, m = kt(e, f + 1, f = Yi(p = i[h])), C = e; S < y; ++S)
350
323
  (C = $o(p > 0 ? d[S] + " " + m : z(m, /&\f/g, d[S]))) && (l[v++] = C);
351
324
  return hr(e, t, r, o === 0 ? un : s, l, c, u);
352
325
  }
353
- function ls(e, t, r) {
354
- return hr(e, t, r, wo, gr(rs()), kt(e, 2, -2), 0);
326
+ function ss(e, t, r) {
327
+ return hr(e, t, r, wo, gr(es()), kt(e, 2, -2), 0);
355
328
  }
356
329
  function Mn(e, t, r, n) {
357
330
  return hr(e, t, r, fn, kt(e, 0, n), kt(e, n + 1, -1), n);
@@ -361,11 +334,11 @@ function ct(e, t) {
361
334
  r += t(e[o], o, e, t) || "";
362
335
  return r;
363
336
  }
364
- function us(e, t, r, n) {
337
+ function cs(e, t, r, n) {
365
338
  switch (e.type) {
366
- case Qi:
339
+ case Ki:
367
340
  if (e.children.length) break;
368
- case Yi:
341
+ case Ui:
369
342
  case fn:
370
343
  return e.return = e.return || e.value;
371
344
  case wo:
@@ -377,7 +350,7 @@ function us(e, t, r, n) {
377
350
  }
378
351
  return Oe(r = ct(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
379
352
  }
380
- function fs(e) {
353
+ function ls(e) {
381
354
  var t = dn(e);
382
355
  return function(r, n, o, a) {
383
356
  for (var i = "", s = 0; s < t; s++)
@@ -385,27 +358,27 @@ function fs(e) {
385
358
  return i;
386
359
  };
387
360
  }
388
- function ds(e) {
361
+ function us(e) {
389
362
  return function(t) {
390
363
  t.root || (t = t.return) && e(t);
391
364
  };
392
365
  }
393
- function vs(e) {
366
+ function fs(e) {
394
367
  var t = /* @__PURE__ */ Object.create(null);
395
368
  return function(r) {
396
369
  return t[r] === void 0 && (t[r] = e(r)), t[r];
397
370
  };
398
371
  }
399
- var ps = function(t, r, n) {
372
+ var ds = function(t, r, n) {
400
373
  for (var o = 0, a = 0; o = a, a = _e(), o === 38 && a === 12 && (r[n] = 1), !$t(a); )
401
374
  ge();
402
375
  return Rt(t, de);
403
- }, gs = function(t, r) {
376
+ }, vs = function(t, r) {
404
377
  var n = -1, o = 44;
405
378
  do
406
379
  switch ($t(o)) {
407
380
  case 0:
408
- o === 38 && _e() === 12 && (r[n] = 1), t[n] += ps(de - 1, r, n);
381
+ o === 38 && _e() === 12 && (r[n] = 1), t[n] += ds(de - 1, r, n);
409
382
  break;
410
383
  case 2:
411
384
  t[n] += Jt(o);
@@ -421,9 +394,9 @@ var ps = function(t, r, n) {
421
394
  }
422
395
  while (o = ge());
423
396
  return t;
424
- }, ms = function(t, r) {
425
- return Ao(gs(Oo(t), r));
426
- }, jn = /* @__PURE__ */ new WeakMap(), hs = function(t) {
397
+ }, ps = function(t, r) {
398
+ return Ao(vs(Oo(t), r));
399
+ }, jn = /* @__PURE__ */ new WeakMap(), gs = function(t) {
427
400
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
428
401
  // negative .length indicates that this rule has been already prefixed
429
402
  t.length < 1)) {
@@ -431,12 +404,12 @@ var ps = function(t, r, n) {
431
404
  if (n = n.parent, !n) return;
432
405
  if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !jn.get(n)) && !o) {
433
406
  jn.set(t, !0);
434
- for (var a = [], i = ms(r, a), s = n.props, l = 0, c = 0; l < i.length; l++)
407
+ for (var a = [], i = ps(r, a), s = n.props, l = 0, c = 0; l < i.length; l++)
435
408
  for (var u = 0; u < s.length; u++, c++)
436
409
  t.props[c] = a[l] ? i[l].replace(/&\f/g, s[u]) : s[u] + " " + i[l];
437
410
  }
438
411
  }
439
- }, ys = function(t) {
412
+ }, ms = function(t) {
440
413
  if (t.type === "decl") {
441
414
  var r = t.value;
442
415
  // charcode for l
@@ -445,7 +418,7 @@ var ps = function(t, r, n) {
445
418
  }
446
419
  };
447
420
  function _o(e, t) {
448
- switch (Ji(e, t)) {
421
+ switch (qi(e, t)) {
449
422
  // color-adjust
450
423
  case 5103:
451
424
  return L + "print-" + e + e;
@@ -586,7 +559,7 @@ function _o(e, t) {
586
559
  }
587
560
  return e;
588
561
  }
589
- var bs = function(t, r, n, o) {
562
+ var hs = function(t, r, n, o) {
590
563
  if (t.length > -1 && !t.return) switch (t.type) {
591
564
  case fn:
592
565
  t.return = _o(t.value, t.length);
@@ -596,8 +569,8 @@ var bs = function(t, r, n, o) {
596
569
  value: z(t.value, "@", "@" + L)
597
570
  })], o);
598
571
  case un:
599
- if (t.length) return ts(t.props, function(a) {
600
- switch (es(a, /(::plac\w+|:read-\w+)/)) {
572
+ if (t.length) return Ji(t.props, function(a) {
573
+ switch (Zi(a, /(::plac\w+|:read-\w+)/)) {
601
574
  // :read-(only|write)
602
575
  case ":read-only":
603
576
  case ":read-write":
@@ -617,7 +590,7 @@ var bs = function(t, r, n, o) {
617
590
  return "";
618
591
  });
619
592
  }
620
- }, Ss = [bs], xs = function(t) {
593
+ }, ys = [hs], bs = function(t) {
621
594
  var r = t.key;
622
595
  if (r === "css") {
623
596
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
@@ -626,7 +599,7 @@ var bs = function(t, r, n, o) {
626
599
  v.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
627
600
  });
628
601
  }
629
- var o = t.stylisPlugins || Ss, a = {}, i, s = [];
602
+ var o = t.stylisPlugins || ys, a = {}, i, s = [];
630
603
  i = t.container || document.head, Array.prototype.forEach.call(
631
604
  // this means we will ignore elements which don't have a space in them which
632
605
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -637,12 +610,12 @@ var bs = function(t, r, n, o) {
637
610
  s.push(p);
638
611
  }
639
612
  );
640
- var l, c = [hs, ys];
613
+ var l, c = [gs, ms];
641
614
  {
642
- var u, f = [us, ds(function(p) {
615
+ var u, f = [cs, us(function(p) {
643
616
  u.insert(p);
644
- })], d = fs(c.concat(o, f)), y = function(v) {
645
- return ct(cs(v), d);
617
+ })], d = ls(c.concat(o, f)), y = function(v) {
618
+ return ct(is(v), d);
646
619
  };
647
620
  l = function(v, S, m, C) {
648
621
  u = m, y(v ? v + "{" + S.styles + "}" : S.styles), C && (h.inserted[S.name] = !0);
@@ -650,7 +623,7 @@ var bs = function(t, r, n, o) {
650
623
  }
651
624
  var h = {
652
625
  key: r,
653
- sheet: new Ki({
626
+ sheet: new Xi({
654
627
  key: r,
655
628
  container: i,
656
629
  nonce: t.nonce,
@@ -665,7 +638,7 @@ var bs = function(t, r, n, o) {
665
638
  };
666
639
  return h.sheet.hydrate(s), h;
667
640
  };
668
- function Cs(e) {
641
+ function Ss(e) {
669
642
  for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
670
643
  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): */
671
644
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -684,7 +657,7 @@ function Cs(e) {
684
657
  return t ^= t >>> 13, t = /* Math.imul(h, m): */
685
658
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
686
659
  }
687
- var Es = {
660
+ var xs = {
688
661
  animationIterationCount: 1,
689
662
  aspectRatio: 1,
690
663
  borderImageOutset: 1,
@@ -733,18 +706,18 @@ var Es = {
733
706
  strokeMiterlimit: 1,
734
707
  strokeOpacity: 1,
735
708
  strokeWidth: 1
736
- }, Ts = /[A-Z]|^ms/g, ws = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Mo = function(t) {
709
+ }, Cs = /[A-Z]|^ms/g, Es = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Mo = function(t) {
737
710
  return t.charCodeAt(1) === 45;
738
711
  }, Rn = function(t) {
739
712
  return t != null && typeof t != "boolean";
740
- }, Pr = /* @__PURE__ */ vs(function(e) {
741
- return Mo(e) ? e : e.replace(Ts, "-$&").toLowerCase();
713
+ }, Pr = /* @__PURE__ */ fs(function(e) {
714
+ return Mo(e) ? e : e.replace(Cs, "-$&").toLowerCase();
742
715
  }), Nn = function(t, r) {
743
716
  switch (t) {
744
717
  case "animation":
745
718
  case "animationName":
746
719
  if (typeof r == "string")
747
- return r.replace(ws, function(n, o, a) {
720
+ return r.replace(Es, function(n, o, a) {
748
721
  return Be = {
749
722
  name: o,
750
723
  styles: a,
@@ -752,7 +725,7 @@ var Es = {
752
725
  }, o;
753
726
  });
754
727
  }
755
- return Es[t] !== 1 && !Mo(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
728
+ return xs[t] !== 1 && !Mo(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
756
729
  };
757
730
  function lr(e, t, r) {
758
731
  if (r == null)
@@ -784,7 +757,7 @@ function lr(e, t, r) {
784
757
  var s = a.styles + ";";
785
758
  return s;
786
759
  }
787
- return ks(e, t, r);
760
+ return Ts(e, t, r);
788
761
  }
789
762
  }
790
763
  var l = r;
@@ -793,7 +766,7 @@ function lr(e, t, r) {
793
766
  var c = t[l];
794
767
  return c !== void 0 ? c : l;
795
768
  }
796
- function ks(e, t, r) {
769
+ function Ts(e, t, r) {
797
770
  var n = "";
798
771
  if (Array.isArray(r))
799
772
  for (var o = 0; o < r.length; o++)
@@ -843,7 +816,7 @@ function Or(e, t, r) {
843
816
  In.lastIndex = 0;
844
817
  for (var c = "", u; (u = In.exec(o)) !== null; )
845
818
  c += "-" + u[1];
846
- var f = Cs(o) + c;
819
+ var f = Ss(o) + c;
847
820
  return {
848
821
  name: f,
849
822
  styles: o,
@@ -856,7 +829,7 @@ function jo(e, t, r) {
856
829
  e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " ");
857
830
  }), n;
858
831
  }
859
- var $s = function(t, r, n) {
832
+ var ws = function(t, r, n) {
860
833
  var o = t.key + "-" + r.name;
861
834
  // we only need to add the styles to the registered cache if the
862
835
  // class name could be used further down
@@ -864,8 +837,8 @@ var $s = function(t, r, n) {
864
837
  // so we don't have to add it to registered cache.
865
838
  // this improves memory usage since we can avoid storing the whole style string
866
839
  t.registered[o] === void 0 && (t.registered[o] = r.styles);
867
- }, Ps = function(t, r, n) {
868
- $s(t, r);
840
+ }, ks = function(t, r, n) {
841
+ ws(t, r);
869
842
  var o = t.key + "-" + r.name;
870
843
  if (t.inserted[r.name] === void 0) {
871
844
  var a = r;
@@ -882,8 +855,8 @@ function zn(e, t, r) {
882
855
  var n = [], o = jo(e, n, r);
883
856
  return n.length < 2 ? r : o + t(n);
884
857
  }
885
- var Os = function(t) {
886
- var r = xs(t);
858
+ var $s = function(t) {
859
+ var r = bs(t);
887
860
  r.sheet.speedy = function(s) {
888
861
  this.isSpeedy = s;
889
862
  }, r.compat = !0;
@@ -891,7 +864,7 @@ var Os = function(t) {
891
864
  for (var l = arguments.length, c = new Array(l), u = 0; u < l; u++)
892
865
  c[u] = arguments[u];
893
866
  var f = Or(c, r.registered, void 0);
894
- return Ps(r, f), r.key + "-" + f.name;
867
+ return ks(r, f), r.key + "-" + f.name;
895
868
  }, o = function() {
896
869
  for (var l = arguments.length, c = new Array(l), u = 0; u < l; u++)
897
870
  c[u] = arguments[u];
@@ -908,7 +881,7 @@ var Os = function(t) {
908
881
  }, i = function() {
909
882
  for (var l = arguments.length, c = new Array(l), u = 0; u < l; u++)
910
883
  c[u] = arguments[u];
911
- return zn(r.registered, n, As(c));
884
+ return zn(r.registered, n, Ps(c));
912
885
  };
913
886
  return {
914
887
  css: n,
@@ -928,7 +901,7 @@ var Os = function(t) {
928
901
  getRegisteredStyles: jo.bind(null, r.registered),
929
902
  merge: zn.bind(null, r.registered, n)
930
903
  };
931
- }, As = function e(t) {
904
+ }, Ps = function e(t) {
932
905
  for (var r = "", n = 0; n < t.length; n++) {
933
906
  var o = t[n];
934
907
  if (o != null) {
@@ -953,10 +926,34 @@ var Os = function(t) {
953
926
  }
954
927
  }
955
928
  return r;
956
- }, Ro = Os({
929
+ }, Ro = $s({
957
930
  key: "css"
958
- }), _s = Ro.cx, Ms = Ro.css;
959
- const js = Ms`
931
+ }), Os = Ro.cx, As = Ro.css;
932
+ const Ft = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ k.jsx(xo.Input, { size: "small", block: !0, active: !0 }, r)), _s = ({ type: e, skeletonButtonCount: t }) => e === "table" ? /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
933
+ /* @__PURE__ */ k.jsxs(
934
+ "div",
935
+ {
936
+ style: {
937
+ display: "flex",
938
+ alignItems: "center",
939
+ width: "100%",
940
+ marginBottom: 15
941
+ },
942
+ children: [
943
+ /* @__PURE__ */ k.jsx("div", { children: /* @__PURE__ */ k.jsx(Tt, { children: Ft(1) }) }),
944
+ t && /* @__PURE__ */ k.jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ k.jsx(Tt, { children: Ft(t) }) })
945
+ ]
946
+ }
947
+ ),
948
+ /* @__PURE__ */ k.jsx($n, { children: /* @__PURE__ */ k.jsx(Tt, { direction: "vertical", size: "middle", style: { width: "100%" }, children: Ft(10) }) }),
949
+ /* @__PURE__ */ k.jsx("div", { style: { ...Ms.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ k.jsx(xo.Input, { size: "small", active: !0 }) })
950
+ ] }) : /* @__PURE__ */ k.jsx($n, { children: /* @__PURE__ */ k.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Ft(3) }) }), Ms = {
951
+ rightAlign: {
952
+ display: "flex",
953
+ justifyContent: "flex-end",
954
+ width: "100%"
955
+ }
956
+ }, js = As`
960
957
  .ant-table-cell::before {
961
958
  display: none !important;
962
959
  }
@@ -1018,7 +1015,7 @@ const js = Ms`
1018
1015
  x.closest("a") || C == null || C(m);
1019
1016
  };
1020
1017
  }
1021
- return r ? /* @__PURE__ */ k.jsx(Wi, { type: "table" }) : /* @__PURE__ */ k.jsx(
1018
+ return r ? /* @__PURE__ */ k.jsx(_s, { type: "table" }) : /* @__PURE__ */ k.jsx(
1022
1019
  Pi,
1023
1020
  {
1024
1021
  rowKey: f,
@@ -1035,7 +1032,7 @@ const js = Ms`
1035
1032
  emptyText: /* @__PURE__ */ k.jsx(Oi, {})
1036
1033
  },
1037
1034
  rowClassName: (m, C) => `table-row-${C % 2 === 0 ? "even" : "odd"}`,
1038
- className: _s(js, d),
1035
+ className: Os(js, d),
1039
1036
  ...y
1040
1037
  }
1041
1038
  );
@@ -5102,13 +5099,13 @@ export {
5102
5099
  wf as F,
5103
5100
  $f as L,
5104
5101
  pf as M,
5105
- Wi as P,
5102
+ hf as P,
5106
5103
  Cf as R,
5107
- yf as S,
5104
+ _s as S,
5108
5105
  vf as T,
5109
5106
  gf as a,
5110
5107
  mf as b,
5111
- hf as c,
5108
+ yf as c,
5112
5109
  bf as d,
5113
5110
  Sf as e,
5114
5111
  xf as f,
package/dist/index.js CHANGED
@@ -1,36 +1,36 @@
1
- import { g as e, B as o, C as r, f as t, D as l, F as i, L as n, j as p, M as d, k as F, e as P, d as c, P as k, c as x, R as C, S, h as T, i as b, l as g, T as u, b as M, a as m, t as y } from "./chunks/Steps-D8ZS3rYE.js";
1
+ import { e, g as o, B as r, C as t, f as l, d as i, D as p, F as d, L as n, j as F, M as c, k as C, P as S, R as T, c as P, S as b, h as g, i as k, l as u, T as x, b as M, a as m, t as y } from "./chunks/Steps-yOOLwM59.js";
2
2
  import { E as f, L as h, T as B } from "./chunks/createSuper-DBIhZ50y.js";
3
3
  import { C as L, D as E, I as w, P as I, R as j, a as v, S as G, T as q } from "./chunks/Switch-CzMyITg3.js";
4
4
  export {
5
- e as Breadcrumb,
6
- o as Button,
7
- r as CascaderField,
5
+ e as Badge,
6
+ o as Breadcrumb,
7
+ r as Button,
8
+ t as CascaderField,
8
9
  L as CheckboxField,
9
- t as Col,
10
+ l as Col,
11
+ i as Container,
10
12
  E as DatePickerField,
11
- l as Dropdown,
13
+ p as Dropdown,
12
14
  f as ErrorMessage,
13
- i as Flex,
15
+ d as Flex,
14
16
  w as Input,
15
17
  h as Label,
16
18
  n as Layout,
17
- p as Menu,
18
- d as Modal,
19
- F as Pagination,
20
- P as PnkxBadge,
21
- c as PnkxContainer,
19
+ F as Menu,
20
+ c as Modal,
21
+ C as Pagination,
22
22
  I as PnkxField,
23
- k as PnkxSkeleton,
24
- x as Popover,
23
+ S as Popover,
25
24
  j as RadioGroup,
26
25
  v as RangePickerField,
27
- C as Row,
28
- S as SearchFiltersForm,
26
+ T as Row,
27
+ P as SearchFiltersForm,
29
28
  G as SelectField,
30
- T as Space,
31
- b as Splitter,
32
- g as Steps,
33
- u as Table,
29
+ b as Skeleton,
30
+ g as Space,
31
+ k as Splitter,
32
+ u as Steps,
33
+ x as Table,
34
34
  M as Tabs,
35
35
  q as TinyMCE,
36
36
  m as Tooltip,
@@ -1,4 +1,4 @@
1
- import { BadgeProps } from 'antd';
1
+ import { BadgeProps as BadgeProps_2 } from 'antd';
2
2
  import { BasicProps } from 'antd/es/layout/layout';
3
3
  import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
4
4
  import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd';
@@ -47,7 +47,7 @@ import { RowProps as RowProps_2 } from 'antd';
47
47
  import { SelectProps } from 'antd';
48
48
  import { SiderContextProps } from 'antd/es/layout/Sider';
49
49
  import { SiderProps } from 'antd/es/layout/Sider';
50
- import { SkeletonProps } from 'antd';
50
+ import { SkeletonProps as SkeletonProps_2 } from 'antd';
51
51
  import { Space as Space_2 } from 'antd';
52
52
  import { SpaceProps as SpaceProps_2 } from 'antd';
53
53
  import { Splitter as Splitter_2 } from 'antd';
@@ -57,7 +57,7 @@ import { Steps as Steps_2 } from 'antd';
57
57
  import { StepsProps as StepsProps_2 } from 'antd';
58
58
  import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
59
59
  import { SwitchProps } from 'antd';
60
- import { TableColumnsType } 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';
@@ -71,6 +71,13 @@ import { UseFormReturn } from 'react-hook-form';
71
71
  import { UseFormSetValue } from 'react-hook-form';
72
72
  import { UseFormStateReturn } from 'react-hook-form';
73
73
 
74
+ export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
75
+
76
+ export declare interface BadgeProps extends BadgeProps_2 {
77
+ type?: "error" | "info" | "success" | "warning";
78
+ children?: React.ReactNode;
79
+ }
80
+
74
81
  declare type BaseProps = {
75
82
  customStyleContainer?: string;
76
83
  customStyleCascader?: string;
@@ -183,6 +190,8 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
183
190
  ItemGroup: typeof ItemGroup;
184
191
  };
185
192
 
193
+ export declare const Container: default_2.FC<ContainerProps>;
194
+
186
195
  export declare interface ContainerProps {
187
196
  children: default_2.ReactNode;
188
197
  size?: TailwindMaxWidth;
@@ -317,15 +326,6 @@ export declare interface PaginationProps extends PaginationProps_2 {
317
326
 
318
327
  export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
319
328
 
320
- export declare const PnkxBadge: ({ type, children, ...rest }: PnkxBadgeProps) => JSX.Element;
321
-
322
- export declare interface PnkxBadgeProps extends BadgeProps {
323
- type?: "error" | "info" | "success" | "warning";
324
- children?: React.ReactNode;
325
- }
326
-
327
- export declare const PnkxContainer: default_2.FC<ContainerProps>;
328
-
329
329
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
330
330
  render(): JSX.Element;
331
331
  }
@@ -336,13 +336,6 @@ export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>
336
336
  component: TComponent;
337
337
  } & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
338
338
 
339
- export declare const PnkxSkeleton: ({ type, skeletonButtonCount, }: PnkxSkeletonProps) => JSX.Element;
340
-
341
- export declare interface PnkxSkeletonProps extends SkeletonProps {
342
- type?: "table" | "form";
343
- skeletonButtonCount?: number;
344
- }
345
-
346
339
  export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
347
340
 
348
341
  export declare type PopoverProps = PopoverProps_2;
@@ -430,6 +423,13 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
430
423
  multiple?: false;
431
424
  };
432
425
 
426
+ export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
427
+
428
+ export declare interface SkeletonProps extends SkeletonProps_2 {
429
+ type?: "table" | "form";
430
+ skeletonButtonCount?: number;
431
+ }
432
+
433
433
  export declare const Space: typeof Space_2;
434
434
 
435
435
  export declare interface SpaceProps extends SpaceProps_2 {
@@ -479,6 +479,8 @@ declare type TabItem = {
479
479
 
480
480
  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;
481
481
 
482
+ export declare type TableColumnsType<T> = TableColumnsType_2<T>;
483
+
482
484
  export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
483
485
  editable?: boolean;
484
486
  })[];
@@ -550,7 +552,7 @@ declare type TPositionRadio = "before" | "after";
550
552
 
551
553
  declare type TSize = "small" | "medium" | "large";
552
554
 
553
- export declare const typeColorMap: Record<NonNullable<PnkxBadgeProps["type"]>, string>;
555
+ export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
554
556
 
555
557
  export declare const Typography: {
556
558
  Title: (props: TitleProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { BadgeProps } from 'antd';
1
+ import { BadgeProps as BadgeProps_2 } from 'antd';
2
2
  import { BasicProps } from 'antd/es/layout/layout';
3
3
  import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
4
4
  import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd';
@@ -35,7 +35,7 @@ import { RefAttributes } from 'react';
35
35
  import { RowProps as RowProps_2 } from 'antd';
36
36
  import { SiderContextProps } from 'antd/es/layout/Sider';
37
37
  import { SiderProps } from 'antd/es/layout/Sider';
38
- import { SkeletonProps } from 'antd';
38
+ import { SkeletonProps as SkeletonProps_2 } from 'antd';
39
39
  import { Space as Space_2 } from 'antd';
40
40
  import { SpaceProps as SpaceProps_2 } from 'antd';
41
41
  import { Splitter as Splitter_2 } from 'antd';
@@ -44,7 +44,7 @@ import { StepProps as StepProps_2 } from 'antd';
44
44
  import { Steps as Steps_2 } from 'antd';
45
45
  import { StepsProps as StepsProps_2 } from 'antd';
46
46
  import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
47
- import { TableColumnsType } from 'antd';
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';
@@ -54,6 +54,13 @@ import { UseFormHandleSubmit } from 'react-hook-form';
54
54
  import { UseFormReturn } from 'react-hook-form';
55
55
  import { UseFormSetValue } from 'react-hook-form';
56
56
 
57
+ export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
58
+
59
+ export declare interface BadgeProps extends BadgeProps_2 {
60
+ type?: "error" | "info" | "success" | "warning";
61
+ children?: React.ReactNode;
62
+ }
63
+
57
64
  declare type BaseProps = {
58
65
  customStyleContainer?: string;
59
66
  customStyleCascader?: string;
@@ -152,6 +159,8 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
152
159
  ItemGroup: typeof ItemGroup;
153
160
  };
154
161
 
162
+ export declare const Container: default_2.FC<ContainerProps>;
163
+
155
164
  export declare interface ContainerProps {
156
165
  children: default_2.ReactNode;
157
166
  size?: TailwindMaxWidth;
@@ -248,22 +257,6 @@ export declare interface PaginationProps extends PaginationProps_2 {
248
257
 
249
258
  export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
250
259
 
251
- export declare const PnkxBadge: ({ type, children, ...rest }: PnkxBadgeProps) => JSX.Element;
252
-
253
- export declare interface PnkxBadgeProps extends BadgeProps {
254
- type?: "error" | "info" | "success" | "warning";
255
- children?: React.ReactNode;
256
- }
257
-
258
- export declare const PnkxContainer: default_2.FC<ContainerProps>;
259
-
260
- export declare const PnkxSkeleton: ({ type, skeletonButtonCount, }: PnkxSkeletonProps) => JSX.Element;
261
-
262
- export declare interface PnkxSkeletonProps extends SkeletonProps {
263
- type?: "table" | "form";
264
- skeletonButtonCount?: number;
265
- }
266
-
267
260
  export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
268
261
 
269
262
  export declare type PopoverProps = PopoverProps_2;
@@ -302,6 +295,13 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
302
295
  multiple?: false;
303
296
  };
304
297
 
298
+ export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
299
+
300
+ export declare interface SkeletonProps extends SkeletonProps_2 {
301
+ type?: "table" | "form";
302
+ skeletonButtonCount?: number;
303
+ }
304
+
305
305
  export declare const Space: typeof Space_2;
306
306
 
307
307
  export declare interface SpaceProps extends SpaceProps_2 {
@@ -341,6 +341,8 @@ declare type TabItem = {
341
341
 
342
342
  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;
343
343
 
344
+ export declare type TableColumnsType<T> = TableColumnsType_2<T>;
345
+
344
346
  export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
345
347
  editable?: boolean;
346
348
  })[];
@@ -376,7 +378,7 @@ export declare const Tooltip: default_2.FC<TooltipProps>;
376
378
 
377
379
  export declare type TooltipProps = TooltipProps_2;
378
380
 
379
- export declare const typeColorMap: Record<NonNullable<PnkxBadgeProps["type"]>, string>;
381
+ export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
380
382
 
381
383
  export declare const Typography: {
382
384
  Title: (props: TitleProps) => JSX.Element;
package/dist/ui/index.js CHANGED
@@ -1,30 +1,30 @@
1
- import { g as e, B as o, C as r, f as t, D as l, F as p, L as n, j as i, M as d, k as x, e as P, d as S, P as T, c as b, R as c, S as g, h as k, i as C, l as F, T as M, b as m, a as u, t as y } from "../chunks/Steps-D8ZS3rYE.js";
2
- import { E as L, L as f, T as h } from "../chunks/createSuper-DBIhZ50y.js";
1
+ import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as n, L as d, j as S, M as T, k as b, P as c, R as g, c as C, S as F, h as M, i as m, l as u, T as y, b as B, a as L, t as f } from "../chunks/Steps-yOOLwM59.js";
2
+ import { E as x, L as P, T as k } from "../chunks/createSuper-DBIhZ50y.js";
3
3
  export {
4
- e as Breadcrumb,
5
- o as Button,
6
- r as CascaderField,
7
- t as Col,
8
- l as Dropdown,
9
- L as ErrorMessage,
10
- p as Flex,
11
- f as Label,
12
- n as Layout,
13
- i as Menu,
14
- d as Modal,
15
- x as Pagination,
16
- P as PnkxBadge,
17
- S as PnkxContainer,
18
- T as PnkxSkeleton,
19
- b as Popover,
20
- c as Row,
21
- g as SearchFiltersForm,
22
- k as Space,
23
- C as Splitter,
24
- F as Steps,
25
- M as Table,
26
- m as Tabs,
27
- u as Tooltip,
28
- h as Typography,
29
- y as typeColorMap
4
+ e as Badge,
5
+ o as Breadcrumb,
6
+ r as Button,
7
+ t as CascaderField,
8
+ l as Col,
9
+ p as Container,
10
+ i as Dropdown,
11
+ x as ErrorMessage,
12
+ n as Flex,
13
+ P as Label,
14
+ d as Layout,
15
+ S as Menu,
16
+ T as Modal,
17
+ b as Pagination,
18
+ c as Popover,
19
+ g as Row,
20
+ C as SearchFiltersForm,
21
+ F as Skeleton,
22
+ M as Space,
23
+ m as Splitter,
24
+ u as Steps,
25
+ y as Table,
26
+ B as Tabs,
27
+ L as Tooltip,
28
+ k as Typography,
29
+ f as typeColorMap
30
30
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "exports": {