@shlinkio/shlink-frontend-kit 0.8.6 → 0.8.7

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.
@@ -23,6 +23,7 @@ export declare type ButtonProps = PropsWithChildren<{
23
23
  disabled?: boolean;
24
24
  className?: string;
25
25
  variant?: 'primary' | 'secondary' | 'danger';
26
+ type?: HTMLButtonElement['type'];
26
27
  size?: Size;
27
28
  inline?: boolean;
28
29
  solid?: boolean;
@@ -209,7 +210,7 @@ export declare const prettifyPageNumber: (pageNumber: NumberOrEllipsis) => strin
209
210
 
210
211
  export declare const progressivePagination: (currentPage: number, pageCount: number) => NumberOrEllipsis[];
211
212
 
212
- declare type RegularButtonProps = Omit<HTMLProps<HTMLButtonElement>, 'size'>;
213
+ declare type RegularButtonProps = Omit<HTMLProps<HTMLButtonElement>, 'size' | 'type'>;
213
214
 
214
215
  declare type RegularCardModalProps = CommonCardModalProps & {
215
216
  /** Danger dialogs use danger variants in title and confirm button */
package/dist/tailwind.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { jsx as o, jsxs as i, Fragment as S } from "react/jsx-runtime";
2
2
  import w, { clsx as p } from "clsx";
3
- import { createContext as M, useContext as f, forwardRef as b, useCallback as C, useId as j, useMemo as J, useRef as E, useEffect as F, useState as rt } from "react";
4
- import { Link as K, NavLink as ot } from "react-router";
5
- import { faClose as nt, faEyeSlash as at, faEye as dt, faSearch as lt, faChevronLeft as U, faChevronRight as W, faCircleNotch as st } from "@fortawesome/free-solid-svg-icons";
6
- import { FontAwesomeIcon as u } from "@fortawesome/react-fontawesome";
3
+ import { createContext as j, useContext as x, forwardRef as b, useCallback as C, useId as H, useMemo as K, useRef as E, useEffect as F, useState as rt } from "react";
4
+ import { Link as _, NavLink as ot } from "react-router";
5
+ import { faClose as nt, faEyeSlash as at, faEye as dt, faSearch as lt, faChevronLeft as W, faChevronRight as q, faCircleNotch as st } from "@fortawesome/free-solid-svg-icons";
6
+ import { FontAwesomeIcon as h } from "@fortawesome/react-fontawesome";
7
7
  import { a as wt, b as it, u as ct } from "./use-toggle-DlYE68B3.js";
8
8
  import { createPortal as mt } from "react-dom";
9
- const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className: r }) => {
10
- const { responsive: e } = f(v);
9
+ const I = j(void 0), N = j({ responsive: !0 }), gt = ({ children: t, className: r }) => {
10
+ const { responsive: e } = x(N);
11
11
  return /* @__PURE__ */ o(I.Provider, { value: { section: "head" }, children: /* @__PURE__ */ o(
12
12
  "thead",
13
13
  {
@@ -19,7 +19,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
19
19
  }
20
20
  ) });
21
21
  }, bt = ({ children: t, className: r }) => {
22
- const { responsive: e } = f(v);
22
+ const { responsive: e } = x(N);
23
23
  return /* @__PURE__ */ o(I.Provider, { value: { section: "body" }, children: /* @__PURE__ */ o(
24
24
  "tbody",
25
25
  {
@@ -31,7 +31,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
31
31
  }
32
32
  ) });
33
33
  }, pt = ({ children: t, className: r }) => {
34
- const { responsive: e } = f(v);
34
+ const { responsive: e } = x(N);
35
35
  return /* @__PURE__ */ o(I.Provider, { value: { section: "footer" }, children: /* @__PURE__ */ o(
36
36
  "tfoot",
37
37
  {
@@ -43,7 +43,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
43
43
  }
44
44
  ) });
45
45
  }, ut = ({ children: t, className: r, ...e }) => {
46
- const n = f(I), a = (n == null ? void 0 : n.section) === "body", { responsive: l } = f(v);
46
+ const n = x(I), a = (n == null ? void 0 : n.section) === "body", { responsive: l } = x(N);
47
47
  return /* @__PURE__ */ o(
48
48
  "tr",
49
49
  {
@@ -63,7 +63,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
63
63
  }
64
64
  );
65
65
  }, ht = ({ children: t, className: r, columnName: e, type: n, ...a }) => {
66
- const l = f(I), d = n ?? ((l == null ? void 0 : l.section) !== "body" ? "th" : "td"), { responsive: s } = f(v);
66
+ const l = x(I), d = n ?? ((l == null ? void 0 : l.section) !== "body" ? "th" : "td"), { responsive: s } = x(N);
67
67
  return /* @__PURE__ */ o(
68
68
  d,
69
69
  {
@@ -82,7 +82,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
82
82
  children: t
83
83
  }
84
84
  );
85
- }, ft = ({ header: t, footer: r, children: e, responsive: n = !0, ...a }) => /* @__PURE__ */ o(v.Provider, { value: { responsive: n }, children: /* @__PURE__ */ i("table", { className: "tw:w-full", ...a, children: [
85
+ }, ft = ({ header: t, footer: r, children: e, responsive: n = !0, ...a }) => /* @__PURE__ */ o(N.Provider, { value: { responsive: n }, children: /* @__PURE__ */ i("table", { className: "tw:w-full", ...a, children: [
86
86
  /* @__PURE__ */ o(gt, { children: t }),
87
87
  /* @__PURE__ */ o(bt, { children: e }),
88
88
  r && /* @__PURE__ */ o(pt, { children: r })
@@ -94,13 +94,14 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
94
94
  size: a = "md",
95
95
  inline: l = !1,
96
96
  solid: d = !1,
97
- ...s
97
+ type: s = "button",
98
+ ...c
98
99
  }) => {
99
- const c = "to" in s ? K : "button";
100
+ const m = "to" in c ? _ : "button", u = m === _ ? void 0 : s;
100
101
  return (
101
102
  // @ts-expect-error We are explicitly checking for the `to` prop before using Link
102
103
  /* @__PURE__ */ o(
103
- c,
104
+ m,
104
105
  {
105
106
  className: w(
106
107
  {
@@ -147,7 +148,8 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
147
148
  r
148
149
  ),
149
150
  disabled: e,
150
- ...s,
151
+ type: u,
152
+ ...c,
151
153
  children: t
152
154
  }
153
155
  )
@@ -178,18 +180,19 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
178
180
  className: p("tw:rounded-sm tw:w-4 tw:h-4 tw:checked:bg-(image:--tick) tw:bg-center", t),
179
181
  ...r
180
182
  }
181
- )), q = ({ onClick: t, label: r = "Close" }) => /* @__PURE__ */ o(
183
+ )), G = ({ onClick: t, label: r = "Close" }) => /* @__PURE__ */ o(
182
184
  "button",
183
185
  {
186
+ type: "button",
184
187
  onClick: t,
185
188
  className: w(
186
189
  "tw:opacity-50 tw:highlight:opacity-80 tw:transition-opacity",
187
190
  "tw:rounded-md tw:focus-ring"
188
191
  ),
189
192
  "aria-label": r,
190
- children: /* @__PURE__ */ o(u, { icon: nt, size: "xl" })
193
+ children: /* @__PURE__ */ o(h, { icon: nt, size: "xl" })
191
194
  }
192
- ), H = b(({
195
+ ), D = b(({
193
196
  borderless: t = !1,
194
197
  size: r = "md",
195
198
  feedback: e,
@@ -230,15 +233,15 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
230
233
  ...d
231
234
  }
232
235
  );
233
- }), D = ({ required: t, children: r, ...e }) => /* @__PURE__ */ i("label", { ...e, children: [
236
+ }), O = ({ required: t, children: r, ...e }) => /* @__PURE__ */ i("label", { ...e, children: [
234
237
  r,
235
238
  t && /* @__PURE__ */ o("span", { className: "tw:text-danger tw:ml-1", "data-testid": "required-indicator", children: "*" })
236
239
  ] }), Vt = b(({ label: t, inputClassName: r, required: e, hiddenRequired: n, error: a, ...l }, d) => {
237
- const s = j();
240
+ const s = H();
238
241
  return /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:gap-1", children: [
239
- /* @__PURE__ */ o(D, { htmlFor: s, required: e, children: t }),
242
+ /* @__PURE__ */ o(O, { htmlFor: s, required: e, children: t }),
240
243
  /* @__PURE__ */ o(
241
- H,
244
+ D,
242
245
  {
243
246
  ref: d,
244
247
  id: s,
@@ -251,9 +254,9 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
251
254
  a && /* @__PURE__ */ o("span", { className: "tw:text-danger", children: a })
252
255
  ] });
253
256
  }), yt = b(({ containerClassName: t, className: r, size: e, ...n }, a) => {
254
- const [l, d, , s] = wt(!1), c = it(), m = C(({ relatedTarget: y }) => {
257
+ const [l, d, , s] = wt(!1), c = it(), m = C(({ relatedTarget: u }) => {
255
258
  var g;
256
- (g = c.current) != null && g.contains(y) || s();
259
+ (g = c.current) != null && g.contains(u) || s();
257
260
  }, [c, s]);
258
261
  return /* @__PURE__ */ i(
259
262
  "div",
@@ -263,7 +266,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
263
266
  onBlurCapture: m,
264
267
  children: [
265
268
  /* @__PURE__ */ o(
266
- H,
269
+ D,
267
270
  {
268
271
  ref: a,
269
272
  type: l ? "text" : "password",
@@ -282,6 +285,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
282
285
  /* @__PURE__ */ o(
283
286
  "button",
284
287
  {
288
+ type: "button",
285
289
  onClick: d,
286
290
  title: l ? "Hide password" : "Show password",
287
291
  "aria-label": l ? "Hide password" : "Show password",
@@ -294,16 +298,16 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
294
298
  }
295
299
  ),
296
300
  tabIndex: -1,
297
- children: /* @__PURE__ */ o(u, { fixedWidth: !0, icon: l ? at : dt })
301
+ children: /* @__PURE__ */ o(h, { fixedWidth: !0, icon: l ? at : dt })
298
302
  }
299
303
  )
300
304
  ]
301
305
  }
302
306
  );
303
307
  }), Xt = b(({ label: t, inputClassName: r, required: e, hiddenRequired: n, error: a, ...l }, d) => {
304
- const s = j();
308
+ const s = H();
305
309
  return /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:gap-1", children: [
306
- /* @__PURE__ */ o(D, { htmlFor: s, required: e, children: t }),
310
+ /* @__PURE__ */ o(O, { htmlFor: s, required: e, children: t }),
307
311
  /* @__PURE__ */ o(
308
312
  yt,
309
313
  {
@@ -358,9 +362,9 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
358
362
  ...l
359
363
  }
360
364
  )), Yt = b(({ selectClassName: t, label: r, required: e, hiddenRequired: n, ...a }, l) => {
361
- const d = j();
365
+ const d = H();
362
366
  return /* @__PURE__ */ i("div", { className: "tw:flex tw:flex-col tw:gap-1", children: [
363
- /* @__PURE__ */ o(D, { htmlFor: d, required: e, children: r }),
367
+ /* @__PURE__ */ o(O, { htmlFor: d, required: e, children: r }),
364
368
  /* @__PURE__ */ o(kt, { ref: l, id: d, className: t, required: e || n, ...a })
365
369
  ] });
366
370
  }), Zt = b(({
@@ -376,7 +380,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
376
380
  }, [s, t, d]);
377
381
  return /* @__PURE__ */ i("div", { className: w("tw:group tw:relative tw:focus-within:z-10", r), children: [
378
382
  /* @__PURE__ */ o(
379
- u,
383
+ h,
380
384
  {
381
385
  icon: lt,
382
386
  className: w(
@@ -390,7 +394,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
390
394
  }
391
395
  ),
392
396
  /* @__PURE__ */ o(
393
- H,
397
+ D,
394
398
  {
395
399
  ref: l,
396
400
  type: "search",
@@ -421,7 +425,7 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
421
425
  ),
422
426
  ...r
423
427
  }
424
- )), Nt = ({ className: t, disabled: r, size: e = "md", ...n }) => /* @__PURE__ */ o(
428
+ )), vt = ({ className: t, disabled: r, size: e = "md", type: n = "button", ...a }) => /* @__PURE__ */ o(
425
429
  "button",
426
430
  {
427
431
  className: w(
@@ -436,9 +440,10 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
436
440
  t
437
441
  ),
438
442
  disabled: r,
439
- ...n
443
+ type: n,
444
+ ...a
440
445
  }
441
- ), vt = ({ className: t, ...r }) => /* @__PURE__ */ o(
446
+ ), Nt = ({ className: t, ...r }) => /* @__PURE__ */ o(
442
447
  "div",
443
448
  {
444
449
  className: w(
@@ -478,22 +483,22 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
478
483
  ),
479
484
  ...r
480
485
  }
481
- ), h = Object.assign(It, { Body: Pt, Header: vt, Footer: Ct }), Rt = ({ bodyClassName: t, children: r, ...e }) => {
486
+ ), f = Object.assign(It, { Body: Pt, Header: Nt, Footer: Ct }), Rt = ({ bodyClassName: t, children: r, ...e }) => {
482
487
  const { title: n, titleSize: a = "md", ...l } = "title" in e ? e : {
483
488
  ...e,
484
489
  title: void 0,
485
490
  titleSize: void 0
486
491
  };
487
- return /* @__PURE__ */ i(h, { ...l, children: [
488
- n && /* @__PURE__ */ i(h.Header, { children: [
492
+ return /* @__PURE__ */ i(f, { ...l, children: [
493
+ n && /* @__PURE__ */ i(f.Header, { children: [
489
494
  a === "lg" && /* @__PURE__ */ o("h4", { children: n }),
490
495
  a === "md" && /* @__PURE__ */ o("h5", { children: n }),
491
496
  a === "sm" && /* @__PURE__ */ o("h6", { children: n })
492
497
  ] }),
493
- /* @__PURE__ */ o(h.Body, { className: t, children: r })
498
+ /* @__PURE__ */ o(f.Body, { className: t, children: r })
494
499
  ] });
495
- }, V = M(null), Tt = ({ className: t, to: r, ...e }) => {
496
- const n = f(V);
500
+ }, V = j(null), Tt = ({ className: t, to: r, ...e }) => {
501
+ const n = x(V);
497
502
  return /* @__PURE__ */ o(
498
503
  ot,
499
504
  {
@@ -513,12 +518,12 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
513
518
  ...e
514
519
  }
515
520
  );
516
- }, Bt = ({ children: t, className: r, fill: e }) => /* @__PURE__ */ o(V.Provider, { value: { fill: e }, children: /* @__PURE__ */ o(h, { role: "menubar", className: w("tw:flex tw:overflow-hidden", r), children: t }) }), te = Object.assign(Bt, { Pill: Tt }), Lt = new Intl.NumberFormat("en-US"), St = (t) => Lt.format(Number(t)), G = 10, ee = (t) => Math.ceil(t / G) * G, N = 2, B = "...", Et = (t, r) => Array.from({ length: r - t }, (e, n) => t + n), Ft = (t, r) => {
521
+ }, Bt = ({ children: t, className: r, fill: e }) => /* @__PURE__ */ o(V.Provider, { value: { fill: e }, children: /* @__PURE__ */ o(f, { role: "menubar", className: w("tw:flex tw:overflow-hidden", r), children: t }) }), te = Object.assign(Bt, { Pill: Tt }), Lt = new Intl.NumberFormat("en-US"), St = (t) => Lt.format(Number(t)), J = 10, ee = (t) => Math.ceil(t / J) * J, v = 2, B = "...", Et = (t, r) => Array.from({ length: r - t }, (e, n) => t + n), Ft = (t, r) => {
517
522
  const e = Et(
518
- Math.max(N, t - N),
519
- Math.min(r - 1, t + N) + 1
523
+ Math.max(v, t - v),
524
+ Math.min(r - 1, t + v) + 1
520
525
  );
521
- return t - N > N && e.unshift(B), t + N < r - 1 && e.push(B), e.unshift(1), e.push(r), e;
526
+ return t - v > v && e.unshift(B), t + v < r - 1 && e.push(B), e.unshift(1), e.push(r), e;
522
527
  }, P = (t) => t === B, _t = (t) => P(t) ? t : St(t), Mt = (t, r) => P(t) ? `${t}_${r}` : `${t}`, X = [
523
528
  "tw:border tw:border-r-0 tw:last:border-r tw:border-lm-border tw:dark:border-dm-border",
524
529
  "tw:rounded-none tw:first:rounded-l tw:last:rounded-r"
@@ -530,13 +535,13 @@ const I = M(void 0), v = M({ responsive: !0 }), gt = ({ children: t, className:
530
535
  "tw:highlight:bg-lm-secondary tw:dark:highlight:bg-dm-secondary tw:text-brand": !t,
531
536
  "tw:bg-lm-brand tw:dark:bg-dm-brand tw:text-white": t
532
537
  }
533
- ), _ = ({ children: t }) => /* @__PURE__ */ o("span", { "aria-hidden": !0, className: w(X, "tw:px-3 py-2 tw:text-gray-400"), children: t }), Z = () => /* @__PURE__ */ o(_, { children: B });
538
+ ), M = ({ children: t }) => /* @__PURE__ */ o("span", { "aria-hidden": !0, className: w(X, "tw:px-3 py-2 tw:text-gray-400"), children: t }), Z = () => /* @__PURE__ */ o(M, { children: B });
534
539
  function jt({ children: t, active: r, isEllipsis: e, href: n, ...a }) {
535
- const l = J(() => Y(r), [r]);
536
- return e ? /* @__PURE__ */ o(Z, {}) : /* @__PURE__ */ o(K, { className: l, to: n, ...a, children: t });
540
+ const l = K(() => Y(r), [r]);
541
+ return e ? /* @__PURE__ */ o(Z, {}) : /* @__PURE__ */ o(_, { className: l, to: n, ...a, children: t });
537
542
  }
538
543
  function Ht({ children: t, active: r, isEllipsis: e, ...n }) {
539
- const a = J(() => Y(r), [r]);
544
+ const a = K(() => Y(r), [r]);
540
545
  return e ? /* @__PURE__ */ o(Z, {}) : /* @__PURE__ */ o("button", { type: "button", className: a, ...n, children: t });
541
546
  }
542
547
  const re = ({ currentPage: t, pagesCount: r, ...e }) => {
@@ -545,7 +550,7 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
545
550
  [n, e]
546
551
  );
547
552
  return r < 2 ? null : /* @__PURE__ */ i("div", { className: "tw:select-none tw:flex", "data-testid": "paginator", children: [
548
- t === 1 ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(u, { size: "xs", icon: U }) }) : /* @__PURE__ */ o(a, { ...l(Math.max(1, t - 1)), "aria-label": "Previous", children: /* @__PURE__ */ o(u, { size: "xs", icon: U }) }),
553
+ t === 1 ? /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(h, { size: "xs", icon: W }) }) : /* @__PURE__ */ o(a, { ...l(Math.max(1, t - 1)), "aria-label": "Previous", children: /* @__PURE__ */ o(h, { size: "xs", icon: W }) }),
549
554
  Ft(t, r).map((d, s) => /* @__PURE__ */ o(
550
555
  a,
551
556
  {
@@ -556,7 +561,7 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
556
561
  },
557
562
  Mt(d, s)
558
563
  )),
559
- t === r ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(u, { size: "xs", icon: W }) }) : /* @__PURE__ */ o(a, { ...l(Math.min(r, t + 1)), "aria-label": "Next", children: /* @__PURE__ */ o(u, { size: "xs", icon: W }) })
564
+ t === r ? /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(h, { size: "xs", icon: q }) }) : /* @__PURE__ */ o(a, { ...l(Math.min(r, t + 1)), "aria-label": "Next", children: /* @__PURE__ */ o(h, { size: "xs", icon: q }) })
560
565
  ] });
561
566
  }, Dt = ({
562
567
  open: t,
@@ -567,13 +572,13 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
567
572
  }) => {
568
573
  const l = E(null);
569
574
  return F(() => {
570
- var m, y;
575
+ var m, u;
571
576
  const d = document.body, s = d.style.overflow, c = d.style.paddingRight;
572
577
  if (t) {
573
578
  const g = window.outerWidth - d.clientWidth, k = d.scrollHeight > d.clientHeight;
574
579
  d.style.overflow = "hidden", k && (d.style.paddingRight = `${g}px`), (m = l.current) == null || m.showModal();
575
580
  } else
576
- (y = l.current) == null || y.close();
581
+ (u = l.current) == null || u.close();
577
582
  return () => {
578
583
  d.style.overflow = s, d.style.paddingRight = c;
579
584
  };
@@ -605,32 +610,32 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
605
610
  size: s = "md",
606
611
  confirmText: c = "Confirm",
607
612
  cancelText: m = "Cancel",
608
- confirmDisabled: y,
613
+ confirmDisabled: u,
609
614
  onConfirm: g,
610
615
  onClosed: k,
611
616
  ...z
612
- } = "onConfirm" in d ? d : { ...d }, [R, O] = rt(t), T = E(null), L = E("cancel"), tt = C(() => {
617
+ } = "onConfirm" in d ? d : { ...d }, [R, $] = rt(t), T = E(null), L = E("cancel"), tt = C(() => {
613
618
  L.current = "confirm", g == null || g();
614
619
  }, [g]);
615
620
  return F(() => {
616
621
  if (t) {
617
- L.current = "cancel", O(!0);
622
+ L.current = "cancel", $(!0);
618
623
  return;
619
624
  }
620
- const x = T.current;
621
- if (x) {
625
+ const y = T.current;
626
+ if (y) {
622
627
  delete T.current.dataset.open;
623
- let $ = !1;
624
- const A = (et) => {
625
- $ || et.target !== x || ($ = !0, O(!1), k == null || k(L.current));
628
+ let A = !1;
629
+ const U = (et) => {
630
+ A || et.target !== y || (A = !0, $(!1), k == null || k(L.current));
626
631
  };
627
- return x.addEventListener("transitionend", A), () => {
628
- x.removeEventListener("transitionend", A);
632
+ return y.addEventListener("transitionend", U), () => {
633
+ y.removeEventListener("transitionend", U);
629
634
  };
630
635
  }
631
636
  }, [k, t]), F(() => {
632
- const x = T.current;
633
- R && x && (x.dataset.open = "");
637
+ const y = T.current;
638
+ R && y && (y.dataset.open = "");
634
639
  }, [R]), /* @__PURE__ */ o(
635
640
  Dt,
636
641
  {
@@ -663,7 +668,7 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
663
668
  },
664
669
  { "tw:h-full": e === "cover" }
665
670
  ),
666
- children: /* @__PURE__ */ o(h, { className: w(
671
+ children: /* @__PURE__ */ o(f, { className: w(
667
672
  "tw:w-full",
668
673
  { "tw:h-full tw:relative tw:overflow-auto": e === "cover" }
669
674
  ), children: e === "cover" ? /* @__PURE__ */ i(S, { children: [
@@ -678,22 +683,22 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
678
683
  ),
679
684
  children: [
680
685
  /* @__PURE__ */ o("h5", { children: n }),
681
- /* @__PURE__ */ o(q, { onClick: r, label: "Close dialog" })
686
+ /* @__PURE__ */ o(G, { onClick: r, label: "Close dialog" })
682
687
  ]
683
688
  }
684
689
  ),
685
690
  /* @__PURE__ */ o("div", { children: a })
686
691
  ] }) : /* @__PURE__ */ i(S, { children: [
687
- /* @__PURE__ */ i(h.Header, { className: w(
692
+ /* @__PURE__ */ i(f.Header, { className: w(
688
693
  "tw:sticky tw:top-0",
689
694
  "tw:flex tw:items-center tw:justify-between tw:gap-x-2"
690
695
  ), children: [
691
696
  /* @__PURE__ */ o("h5", { className: w({ "tw:text-danger": e === "danger" }), children: n }),
692
- /* @__PURE__ */ o(q, { onClick: r, label: "Close dialog" })
697
+ /* @__PURE__ */ o(G, { onClick: r, label: "Close dialog" })
693
698
  ] }),
694
- /* @__PURE__ */ o(h.Body, { children: a }),
699
+ /* @__PURE__ */ o(f.Body, { children: a }),
695
700
  g && /* @__PURE__ */ i(
696
- h.Footer,
701
+ f.Footer,
697
702
  {
698
703
  "data-testid": "footer",
699
704
  className: w(
@@ -701,13 +706,13 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
701
706
  "tw:[&]:px-3 tw:sticky tw:bottom-0"
702
707
  ),
703
708
  children: [
704
- /* @__PURE__ */ o(Nt, { onClick: r, children: m }),
709
+ /* @__PURE__ */ o(vt, { onClick: r, children: m }),
705
710
  /* @__PURE__ */ o(
706
711
  xt,
707
712
  {
708
713
  solid: !0,
709
714
  variant: e === "danger" ? "danger" : "primary",
710
- disabled: y,
715
+ disabled: u,
711
716
  onClick: tt,
712
717
  children: c
713
718
  }
@@ -725,7 +730,7 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
725
730
  "tw:text-danger": n === "error"
726
731
  }), children: [
727
732
  e && /* @__PURE__ */ i(S, { children: [
728
- /* @__PURE__ */ o(u, { icon: st, spin: !0 }),
733
+ /* @__PURE__ */ o(h, { icon: st, spin: !0 }),
729
734
  /* @__PURE__ */ o("span", { className: "tw:ml-2", children: r ?? "Loading..." })
730
735
  ] }),
731
736
  !e && r
@@ -750,17 +755,17 @@ const re = ({ currentPage: t, pagesCount: r, ...e }) => {
750
755
  );
751
756
  export {
752
757
  xt as Button,
753
- h as Card,
758
+ f as Card,
754
759
  oe as CardModal,
755
760
  Qt as Checkbox,
756
- q as CloseButton,
761
+ G as CloseButton,
757
762
  B as ELLIPSIS,
758
- H as Input,
759
- D as Label,
763
+ D as Input,
764
+ O as Label,
760
765
  Vt as LabelledInput,
761
766
  Xt as LabelledRevealablePasswordInput,
762
767
  Yt as LabelledSelect,
763
- Nt as LinkButton,
768
+ vt as LinkButton,
764
769
  ne as Message,
765
770
  Dt as ModalDialog,
766
771
  te as NavPills,
package/package.json CHANGED
@@ -89,5 +89,5 @@
89
89
  "not ie <= 11",
90
90
  "not op_mini all"
91
91
  ],
92
- "version": "0.8.6"
92
+ "version": "0.8.7"
93
93
  }