@cfx-dev/ui-components 2.1.22 → 2.1.24

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.
@@ -170,7 +170,7 @@ function Sr(e, r) {
170
170
  case 0:
171
171
  return e.items ? (t = Ee(e.items).filter(function(a) {
172
172
  return a.kind === "file";
173
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(zr))]) : [3, 2];
173
+ }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(kr))]) : [3, 2];
174
174
  case 1:
175
175
  return n = i.sent(), [2, Ge(nr(n))];
176
176
  case 2:
@@ -195,7 +195,7 @@ function Ee(e) {
195
195
  }
196
196
  return r;
197
197
  }
198
- function zr(e) {
198
+ function kr(e) {
199
199
  if (typeof e.webkitGetAsEntry != "function")
200
200
  return qe(e);
201
201
  var r = e.webkitGetAsEntry();
@@ -213,7 +213,7 @@ function qe(e) {
213
213
  var t = q(r);
214
214
  return Promise.resolve(t);
215
215
  }
216
- function kr(e) {
216
+ function zr(e) {
217
217
  return M(this, void 0, void 0, function() {
218
218
  return $(this, function(r) {
219
219
  return [2, e.isDirectory ? or(e) : Lr(e)];
@@ -243,7 +243,7 @@ function or(e) {
243
243
  case 4:
244
244
  return [3, 6];
245
245
  case 5:
246
- O = Promise.all(u.map(kr)), i.push(O), a(), g.label = 6;
246
+ O = Promise.all(u.map(zr)), i.push(O), a(), g.label = 6;
247
247
  case 6:
248
248
  return [
249
249
  2
@@ -809,12 +809,12 @@ function dr() {
809
809
  window.removeEventListener("focus", Se, !1);
810
810
  };
811
811
  }, [D, Re, X, Z]);
812
- var R = ie([]), ze = function(c) {
812
+ var R = ie([]), ke = function(c) {
813
813
  v.current && v.current.contains(c.target) || (c.preventDefault(), R.current = []);
814
814
  };
815
815
  Oe(function() {
816
- return N && (document.addEventListener("dragover", er, !1), document.addEventListener("drop", ze, !1)), function() {
817
- N && (document.removeEventListener("dragover", er), document.removeEventListener("drop", ze));
816
+ return N && (document.addEventListener("dragover", er, !1), document.addEventListener("drop", ke, !1)), function() {
817
+ N && (document.removeEventListener("dragover", er), document.removeEventListener("drop", ke));
818
818
  };
819
819
  }, [v, N]), Oe(function() {
820
820
  return !n && V && v.current && v.current.focus(), function() {
@@ -822,7 +822,7 @@ function dr() {
822
822
  }, [v, V, n]);
823
823
  var C = A(function(o) {
824
824
  fe ? fe(o) : console.error(o);
825
- }, [fe]), ke = A(function(o) {
825
+ }, [fe]), ze = A(function(o) {
826
826
  o.preventDefault(), o.persist(), ne(o), R.current = [].concat(lt(R.current), [o.target]), ae(o) && Promise.resolve(i(o)).then(function(c) {
827
827
  if (!(se(o) && !I)) {
828
828
  var d = c.length, m = d > 0 && Qr({
@@ -867,7 +867,7 @@ function dr() {
867
867
  }, [v, O, I]), ee = A(function(o, c) {
868
868
  var d = [], m = [];
869
869
  o.forEach(function(b) {
870
- var U = cr(b, B), k = Fe(U, 2), ge = k[0], ve = k[1], ye = ur(b, s, a), oe = Fe(ye, 2), be = oe[0], he = oe[1], De = W ? W(b) : null;
870
+ var U = cr(b, B), z = Fe(U, 2), ge = z[0], ve = z[1], ye = ur(b, s, a), oe = Fe(ye, 2), be = oe[0], he = oe[1], De = W ? W(b) : null;
871
871
  if (ge && be && !De)
872
872
  d.push(b);
873
873
  else {
@@ -934,23 +934,23 @@ function dr() {
934
934
  });
935
935
  }, []), He = A(function() {
936
936
  Q || (et() ? setTimeout(S, 0) : S());
937
- }, [Q, S]), z = function(c) {
937
+ }, [Q, S]), k = function(c) {
938
938
  return n ? null : c;
939
939
  }, me = function(c) {
940
- return H ? null : z(c);
940
+ return H ? null : k(c);
941
941
  }, te = function(c) {
942
- return h ? null : z(c);
942
+ return h ? null : k(c);
943
943
  }, ne = function(c) {
944
944
  I && c.stopPropagation();
945
945
  }, vr = L(function() {
946
946
  return function() {
947
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, U = o.onFocus, k = o.onBlur, ge = o.onClick, ve = o.onDragEnter, ye = o.onDragOver, oe = o.onDragLeave, be = o.onDrop, he = le(o, ut);
947
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, U = o.onFocus, z = o.onBlur, ge = o.onClick, ve = o.onDragEnter, ye = o.onDragOver, oe = o.onDragLeave, be = o.onDrop, he = le(o, ut);
948
948
  return f(f(je({
949
949
  onKeyDown: me(F(b, $e)),
950
950
  onFocus: me(F(U, Ke)),
951
- onBlur: me(F(k, Ne)),
952
- onClick: z(F(ge, He)),
953
- onDragEnter: te(F(ve, ke)),
951
+ onBlur: me(F(z, Ne)),
952
+ onClick: k(F(ge, He)),
953
+ onDragEnter: te(F(ve, ze)),
954
954
  onDragOver: te(F(ye, Le)),
955
955
  onDragLeave: te(F(oe, Me)),
956
956
  onDrop: te(F(be, re)),
@@ -959,22 +959,22 @@ function dr() {
959
959
  tabIndex: 0
960
960
  } : {}), he);
961
961
  };
962
- }, [v, $e, Ke, Ne, He, ke, Le, Me, re, H, h, n]), yr = A(function(o) {
962
+ }, [v, $e, Ke, Ne, He, ze, Le, Me, re, H, h, n]), yr = A(function(o) {
963
963
  o.stopPropagation();
964
964
  }, []), br = L(function() {
965
965
  return function() {
966
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, U = le(o, st), k = je({
966
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, U = le(o, st), z = je({
967
967
  accept: B,
968
968
  multiple: u,
969
969
  type: "file",
970
970
  style: {
971
971
  display: "none"
972
972
  },
973
- onChange: z(F(m, re)),
974
- onClick: z(F(b, yr)),
973
+ onChange: k(F(m, re)),
974
+ onClick: k(F(b, yr)),
975
975
  tabIndex: -1
976
976
  }, d, D);
977
- return f(f({}, k), U);
977
+ return f(f({}, z), U);
978
978
  };
979
979
  }, [D, t, u, re, n]);
980
980
  return f(f({}, de), {}, {
@@ -983,7 +983,7 @@ function dr() {
983
983
  getInputProps: br,
984
984
  rootRef: v,
985
985
  inputRef: D,
986
- open: z(S)
986
+ open: k(S)
987
987
  });
988
988
  }
989
989
  function bt(e, r) {
@@ -1023,7 +1023,7 @@ function bt(e, r) {
1023
1023
  }
1024
1024
  function tr() {
1025
1025
  }
1026
- const ht = "_dropzone_1253u_1", Dt = "_text_1253u_18", At = "_disabled_1253u_24", wt = "_focused_1253u_38", Ot = "_dragActive_1253u_38", E = {
1026
+ const ht = "_dropzone_1kj2k_1", Dt = "_text_1kj2k_18", At = "_disabled_1kj2k_24", wt = "_focused_1kj2k_38", Ot = "_dragActive_1kj2k_38", E = {
1027
1027
  dropzone: ht,
1028
1028
  text: Dt,
1029
1029
  disabled: At,
@@ -7,6 +7,7 @@ export interface BoxProps extends MPProps {
7
7
  grow?: boolean;
8
8
  fullWidth?: boolean;
9
9
  fullHeight?: boolean;
10
+ fitContentWidth?: boolean;
10
11
  /**
11
12
  * Number values is treated like quant multiplier
12
13
  * String value used as is
@@ -1,104 +1,107 @@
1
1
  import { jsx as P } from "react/jsx-runtime";
2
- import m from "react";
3
- import { useContextualStyle as j } from "../../Style/Style.js";
4
- import { ui as d } from "../../ui.js";
2
+ import c from "react";
3
+ import { useContextualStyle as W } from "../../Style/Style.js";
4
+ import { ui as a } from "../../ui.js";
5
5
  import { clsx as H } from "../../../utils/clsx.js";
6
- import '../../../assets/Box.css';const W = "_root_1bvck_1", z = "_grow_1bvck_13", o = {
7
- root: W,
8
- "full-width": "_full-width_1bvck_1",
9
- "full-height": "_full-height_1bvck_4",
10
- "no-overflow": "_no-overflow_1bvck_7",
11
- "no-shrink": "_no-shrink_1bvck_10",
12
- grow: z,
13
- "no-grow": "_no-grow_1bvck_16"
6
+ import '../../../assets/Box.css';const z = "_root_1rhjm_1", D = "_grow_1rhjm_16", t = {
7
+ root: z,
8
+ "full-width": "_full-width_1rhjm_1",
9
+ "fit-content-width": "_fit-content-width_1rhjm_4",
10
+ "full-height": "_full-height_1rhjm_7",
11
+ "no-overflow": "_no-overflow_1rhjm_10",
12
+ "no-shrink": "_no-shrink_1rhjm_13",
13
+ grow: D,
14
+ "no-grow": "_no-grow_1rhjm_19"
14
15
  };
15
- function b(r) {
16
- return typeof r == "string" ? r : d.q(r);
16
+ function y(r) {
17
+ return typeof r == "string" ? r : a.q(r);
17
18
  }
18
- const J = m.forwardRef(function(x, y) {
19
+ const K = c.forwardRef(function(S, M) {
19
20
  const {
20
- noOverflow: S = !1,
21
- noShrink: M = !1,
21
+ noOverflow: k = !1,
22
+ noShrink: v = !1,
22
23
  grow: e = void 0,
23
- width: g,
24
- height: a,
24
+ width: d,
25
+ height: g,
25
26
  children: A,
26
- className: N,
27
- fullWidth: R,
28
- fullHeight: q,
27
+ className: C,
28
+ fullWidth: N,
29
+ fullHeight: R,
30
+ fitContentWidth: b,
29
31
  style: p,
30
32
  // --- MPProps
31
- m: l,
32
- mt: s,
33
- mr: n,
34
- mb: f,
35
- ml: i,
36
- p: c,
37
- pt: h,
38
- pr: u,
39
- pb: _,
40
- pl: w
41
- } = x, k = j(), B = H(o.root, N, {
42
- [o["full-width"]]: R,
43
- [o["full-height"]]: q,
44
- [o["no-overflow"]]: S,
45
- [o["no-shrink"]]: M,
46
- [o["no-grow"]]: e === !1,
47
- [o.grow]: e === !0
48
- }), C = m.useMemo(() => d.getAllMPAttrs({
49
- m: l,
50
- mt: s,
51
- mr: n,
52
- mb: f,
53
- ml: i,
54
- p: c,
55
- pt: h,
56
- pr: u,
57
- pb: _,
58
- pl: w
33
+ m: n,
34
+ mt: i,
35
+ mr: l,
36
+ mb: s,
37
+ ml: f,
38
+ p: h,
39
+ pt: m,
40
+ pr: _,
41
+ pb: w,
42
+ pl: u
43
+ } = S, j = W(), q = H(t.root, C, {
44
+ [t["full-width"]]: N,
45
+ [t["full-height"]]: R,
46
+ [t["fit-content-width"]]: b,
47
+ [t["no-overflow"]]: k,
48
+ [t["no-shrink"]]: v,
49
+ [t["no-grow"]]: e === !1,
50
+ [t.grow]: e === !0
51
+ }), B = c.useMemo(() => a.getAllMPAttrs({
52
+ m: n,
53
+ mt: i,
54
+ mr: l,
55
+ mb: s,
56
+ ml: f,
57
+ p: h,
58
+ pt: m,
59
+ pr: _,
60
+ pb: w,
61
+ pl: u
59
62
  }), [
63
+ n,
64
+ i,
60
65
  l,
61
66
  s,
62
- n,
63
67
  f,
64
- i,
65
- c,
66
68
  h,
67
- u,
69
+ m,
68
70
  _,
69
- w
70
- ]), v = m.useMemo(() => d.getAllMPStyles({
71
- m: l,
72
- mt: s,
73
- mr: n,
74
- mb: f,
75
- ml: i,
76
- p: c,
77
- pt: h,
78
- pr: u,
79
- pb: _,
80
- pl: w
71
+ w,
72
+ u
73
+ ]), x = c.useMemo(() => a.getAllMPStyles({
74
+ m: n,
75
+ mt: i,
76
+ mr: l,
77
+ mb: s,
78
+ ml: f,
79
+ p: h,
80
+ pt: m,
81
+ pr: _,
82
+ pb: w,
83
+ pl: u
81
84
  }), [
85
+ n,
86
+ i,
82
87
  l,
83
88
  s,
84
- n,
85
89
  f,
86
- i,
87
- c,
88
90
  h,
89
- u,
91
+ m,
90
92
  _,
91
- w
92
- ]), O = m.useMemo(() => {
93
- const t = {
94
- ...v,
95
- ...k,
93
+ w,
94
+ u
95
+ ]), O = c.useMemo(() => {
96
+ const o = {
97
+ ...x,
98
+ ...j,
96
99
  ...p || {}
97
100
  };
98
- return g && (t.width = b(g)), a && (t.height = b(a)), !t.width && e === !0 && (t.width = "1px"), t;
99
- }, [e, a, v, p, g, k]);
100
- return /* @__PURE__ */ P("div", { ...C, ref: y, className: B, style: O, children: A });
101
+ return d && (o.width = y(d)), g && (o.height = y(g)), !o.width && e === !0 && (o.width = "1px"), o;
102
+ }, [e, g, x, p, d, j]);
103
+ return /* @__PURE__ */ P("div", { ...B, ref: M, className: q, style: O, children: A });
101
104
  });
102
105
  export {
103
- J as Box
106
+ K as Box
104
107
  };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { LinkBaseProps } from './Link';
3
+
4
+ export type LinkProps = React.ButtonHTMLAttributes<HTMLButtonElement> & LinkBaseProps & {
5
+ type?: HTMLButtonElement['type'];
6
+ };
7
+ declare function ButtonLink(props: LinkProps): import("react/jsx-runtime").JSX.Element;
8
+ declare const _default: React.MemoExoticComponent<typeof ButtonLink>;
9
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { getLinkClassName as i } from "./Link.js";
4
+ function l(t) {
5
+ const {
6
+ className: c,
7
+ children: o,
8
+ type: a = "button",
9
+ disabled: e = !1,
10
+ ...s
11
+ } = t, n = i(t);
12
+ return /* @__PURE__ */ r(
13
+ "button",
14
+ {
15
+ ...s,
16
+ className: n,
17
+ type: a,
18
+ "aria-disabled": e,
19
+ children: o
20
+ }
21
+ );
22
+ }
23
+ const b = m.memo(l);
24
+ export {
25
+ b as default
26
+ };
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface LinkBaseProps {
4
+ className?: string;
5
+ disabled?: boolean;
6
+ unstyled?: boolean;
7
+ theme?: 'default' | 'secondary';
8
+ }
9
+ export declare function getLinkClassName(props: LinkBaseProps): string;
10
+ export type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkBaseProps;
11
+ declare function Link(props: LinkProps): import("react/jsx-runtime").JSX.Element;
12
+ declare const _default: React.MemoExoticComponent<typeof Link>;
13
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import c from "react";
3
+ import { clsx as d } from "../../utils/clsx.js";
4
+ import '../../assets/Link.css';const u = "_unsetAll_6pbf7_1", f = "_root_6pbf7_5", i = "_unstyled_6pbf7_30", m = "_secondary_6pbf7_33", s = {
5
+ unsetAll: u,
6
+ root: f,
7
+ unstyled: i,
8
+ secondary: m
9
+ };
10
+ function _(t) {
11
+ const {
12
+ className: n,
13
+ disabled: e = !1,
14
+ unstyled: o = !1,
15
+ theme: l = "default"
16
+ } = t;
17
+ return d(s.unsetAll, s.root, s[l], {
18
+ [s.disabled]: e,
19
+ [s.unstyled]: o
20
+ }, n);
21
+ }
22
+ function y(t) {
23
+ const {
24
+ className: n,
25
+ children: e,
26
+ disabled: o = !1,
27
+ ...l
28
+ } = t, a = _(t);
29
+ return /* @__PURE__ */ r("a", { ...l, "aria-disabled": o, className: a, children: e });
30
+ }
31
+ const A = c.memo(y);
32
+ export {
33
+ A as default,
34
+ _ as getLinkClassName
35
+ };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare function LinkShowcase(): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof LinkShowcase>;
5
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import d from "react";
3
+ import { Flex as n } from "../Layout/Flex/Flex.js";
4
+ import { Text as r } from "../Text/Text.js";
5
+ import l from "./ButtonLink.js";
6
+ import t from "./Link.js";
7
+ function c() {
8
+ return /* @__PURE__ */ i(n, { gap: "large", vertical: !0, children: [
9
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
10
+ /* @__PURE__ */ e(r, { children: "Theme Default" }),
11
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", children: "Link active" }) }),
12
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", disabled: !0, children: "Link disable" }) }),
13
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", unstyled: !0, children: "Link unstyled" }) })
14
+ ] }),
15
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
16
+ /* @__PURE__ */ e(r, { children: "Theme secondary" }),
17
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", theme: "secondary", children: "Link active" }) }),
18
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", theme: "secondary", disabled: !0, children: "Link disable" }) })
19
+ ] }),
20
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
21
+ /* @__PURE__ */ e(r, { children: "ButtonLink - look like link but its button" }),
22
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { children: "Link active" }) }),
23
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { disabled: !0, children: "Link disable" }) })
24
+ ] }),
25
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
26
+ /* @__PURE__ */ e(r, { children: "Inside text" }),
27
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
28
+ "Out of link text. ",
29
+ /* @__PURE__ */ e(t, { href: "/", children: "Link text" })
30
+ ] }) })
31
+ ] }),
32
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
33
+ /* @__PURE__ */ e(r, { children: "Inside typographic text" }),
34
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
35
+ "Out of link text. ",
36
+ /* @__PURE__ */ e(t, { href: "/", children: "Link text" })
37
+ ] }) })
38
+ ] }),
39
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
40
+ /* @__PURE__ */ e(r, { children: "Row a tag" }),
41
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("a", { href: "/", children: "Link text" }) })
42
+ ] }),
43
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
44
+ /* @__PURE__ */ e(r, { children: "Row a in text" }),
45
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
46
+ "Out of link text. ",
47
+ /* @__PURE__ */ e("a", { href: "/", children: "Link text" })
48
+ ] }) })
49
+ ] }),
50
+ /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
51
+ /* @__PURE__ */ e(r, { children: "Row a in typographic text" }),
52
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
53
+ "Out of link text. ",
54
+ /* @__PURE__ */ e("a", { href: "/", children: "Link text" })
55
+ ] }) })
56
+ ] })
57
+ ] });
58
+ }
59
+ const f = d.memo(c);
60
+ export {
61
+ f as default
62
+ };
@@ -0,0 +1,3 @@
1
+ export { default as Link, getLinkClassName } from './Link';
2
+ export { default as ButtonLink } from './ButtonLink';
3
+ export type { LinkBaseProps, LinkProps } from './Link';
@@ -0,0 +1,7 @@
1
+ import { default as e, getLinkClassName as o } from "./Link.js";
2
+ import { default as n } from "./ButtonLink.js";
3
+ export {
4
+ n as ButtonLink,
5
+ e as Link,
6
+ o as getLinkClassName
7
+ };
@@ -1,60 +1,60 @@
1
- import { jsxs as i, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
2
  import N from "react";
3
3
  import "../Button/Button.js";
4
4
  import { ButtonBar as k } from "../Button/ButtonBar.js";
5
5
  import "../Button/LinkButton.js";
6
6
  import y from "../IconButton/IconButton.js";
7
7
  import { Overlay as c } from "../Overlay/Overlay.js";
8
- import { Text as d } from "../Text/Text.js";
9
- import { clsx as s } from "../../utils/clsx.js";
8
+ import { Text as m } from "../Text/Text.js";
9
+ import { clsx as l } from "../../utils/clsx.js";
10
10
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
11
- import { useKeyboardClose as w } from "../../utils/hooks/useKeyboardClose.js";
11
+ import { useKeyboardClose as z } from "../../utils/hooks/useKeyboardClose.js";
12
12
  import "../../index-2hJuj4UN.js";
13
- import '../../assets/Modal.css';const B = "_root_lmrwf_1", v = "_close_lmrwf_36", x = "_header_lmrwf_42", g = "_footer_lmrwf_52", r = {
13
+ import '../../assets/Modal.css';const B = "_root_zn44h_1", v = "_close_zn44h_37", x = "_header_zn44h_43", g = "_footer_zn44h_53", r = {
14
14
  root: B,
15
- "modal-appearance": "_modal-appearance_lmrwf_1",
15
+ "modal-appearance": "_modal-appearance_zn44h_1",
16
16
  close: v,
17
17
  header: x,
18
18
  footer: g
19
19
  };
20
- function f(t) {
20
+ function p(t) {
21
21
  const {
22
22
  onClose: e,
23
- children: l,
23
+ children: s,
24
24
  className: o,
25
- overlayClassName: p,
26
- backdropClassName: _,
27
- contentClassName: b,
28
- ariaDescribedby: h,
25
+ overlayClassName: f,
26
+ backdropClassName: h,
27
+ contentClassName: _,
28
+ ariaDescribedby: b,
29
29
  ariaLabelledby: u,
30
- disableBackdropClose: n = !1,
30
+ disableBackdropClose: i = !1,
31
31
  disableFocusLock: C = !1
32
- } = t, m = N.useCallback(() => {
33
- n || !e || e();
34
- }, [e, n]);
35
- return w(m), /* @__PURE__ */ i(c, { className: s(r.overlay, p), children: [
32
+ } = t, d = N.useCallback(() => {
33
+ i || !e || e();
34
+ }, [e, i]);
35
+ return z(d), /* @__PURE__ */ n(c, { className: l(r.overlay, f), children: [
36
36
  /* @__PURE__ */ a(
37
37
  c.Backdrop,
38
38
  {
39
- onClick: m,
40
- className: s(r.backdrop, _)
39
+ onClick: d,
40
+ className: l(r.backdrop, h)
41
41
  }
42
42
  ),
43
43
  /* @__PURE__ */ a(
44
44
  c.Content,
45
45
  {
46
- className: b,
46
+ className: _,
47
47
  disableFocusLock: C,
48
- children: /* @__PURE__ */ i(
48
+ children: /* @__PURE__ */ n(
49
49
  "div",
50
50
  {
51
51
  role: "dialog",
52
- "aria-describedby": h,
52
+ "aria-describedby": b,
53
53
  "aria-labelledby": u,
54
- className: s(r.root, o),
54
+ className: l(r.root, o),
55
55
  children: [
56
56
  !!e && /* @__PURE__ */ a(y, { areaSize: "large", className: r.close, name: "Close", onClick: e }),
57
- l
57
+ s
58
58
  ]
59
59
  }
60
60
  )
@@ -62,22 +62,22 @@ function f(t) {
62
62
  )
63
63
  ] });
64
64
  }
65
- f.Header = function(e) {
65
+ p.Header = function(e) {
66
66
  const {
67
- title: l,
67
+ title: s,
68
68
  description: o
69
69
  } = e;
70
- return /* @__PURE__ */ i("div", { className: r.header, children: [
70
+ return /* @__PURE__ */ n("div", { className: r.header, children: [
71
71
  /* @__PURE__ */ a(
72
- d,
72
+ m,
73
73
  {
74
74
  weight: "bold",
75
75
  size: "large",
76
- children: l
76
+ children: s
77
77
  }
78
78
  ),
79
79
  o && /* @__PURE__ */ a(
80
- d,
80
+ m,
81
81
  {
82
82
  size: "small",
83
83
  color: "secondary",
@@ -86,13 +86,13 @@ f.Header = function(e) {
86
86
  )
87
87
  ] });
88
88
  };
89
- f.Footer = function(e) {
89
+ p.Footer = function(e) {
90
90
  const {
91
- className: l,
91
+ className: s,
92
92
  ...o
93
93
  } = e;
94
- return /* @__PURE__ */ a(k, { ...o, className: s(r.footer, l) });
94
+ return /* @__PURE__ */ a(k, { ...o, className: l(r.footer, s) });
95
95
  };
96
96
  export {
97
- f as Modal
97
+ p as Modal
98
98
  };
@@ -27,6 +27,7 @@ export interface TableProps {
27
27
  sortBy?: string;
28
28
  sortOrder?: 'asc' | 'desc';
29
29
  onSortChange?: (sortBy: string, sortOrder: 'asc' | 'desc') => void;
30
+ className?: string;
30
31
  }
31
- export declare function Table({ headers, data, includeRadio, loading, onSelectChange, dataContainer, selectedRow: outerSelectedRow, sortBy: outerSortBy, sortOrder: outerSortOrder, onSortChange, }: TableProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare function Table({ headers, data, includeRadio, loading, onSelectChange, dataContainer, selectedRow: outerSelectedRow, sortBy: outerSortBy, sortOrder: outerSortOrder, onSortChange, className, }: TableProps): import("react/jsx-runtime").JSX.Element;
32
33
  export {};