@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.
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/Box.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/InputDropzone.css +1 -1
- package/dist/assets/Link.css +1 -0
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Text.css +1 -1
- package/dist/assets/global.css +1 -1
- package/dist/components/Accordion/Accordion.js +63 -63
- package/dist/components/Accordion/AccordionShowcase.js +9 -5
- package/dist/components/Button/Button.js +78 -77
- package/dist/components/Button/ButtonShowcase.js +46 -33
- package/dist/components/InputDropzone/InputDropzone.js +23 -23
- package/dist/components/Layout/Box/Box.d.ts +1 -0
- package/dist/components/Layout/Box/Box.js +81 -78
- package/dist/components/Link/ButtonLink.d.ts +9 -0
- package/dist/components/Link/ButtonLink.js +26 -0
- package/dist/components/Link/Link.d.ts +13 -0
- package/dist/components/Link/Link.js +35 -0
- package/dist/components/Link/LinkShowcase.d.ts +5 -0
- package/dist/components/Link/LinkShowcase.js +62 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/Link/index.js +7 -0
- package/dist/components/Modal/Modal.js +34 -34
- package/dist/components/Table/Table.d.ts +2 -1
- package/dist/components/Table/Table.js +72 -71
- package/dist/components/Text/Text.js +5 -5
- package/dist/main.d.ts +3 -0
- package/dist/main.js +137 -132
- package/dist/styles-scss/global.scss +16 -8
- package/dist/styles-scss/tokens.scss +7 -0
- package/package.json +1 -1
|
@@ -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(
|
|
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
|
|
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
|
|
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(
|
|
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([]),
|
|
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",
|
|
817
|
-
N && (document.removeEventListener("dragover", er), document.removeEventListener("drop",
|
|
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]),
|
|
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),
|
|
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]),
|
|
937
|
+
}, [Q, S]), k = function(c) {
|
|
938
938
|
return n ? null : c;
|
|
939
939
|
}, me = function(c) {
|
|
940
|
-
return H ? null :
|
|
940
|
+
return H ? null : k(c);
|
|
941
941
|
}, te = function(c) {
|
|
942
|
-
return h ? null :
|
|
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,
|
|
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(
|
|
952
|
-
onClick:
|
|
953
|
-
onDragEnter: te(F(ve,
|
|
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,
|
|
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),
|
|
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:
|
|
974
|
-
onClick:
|
|
973
|
+
onChange: k(F(m, re)),
|
|
974
|
+
onClick: k(F(b, yr)),
|
|
975
975
|
tabIndex: -1
|
|
976
976
|
}, d, D);
|
|
977
|
-
return f(f({},
|
|
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:
|
|
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 = "
|
|
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,
|
|
@@ -1,104 +1,107 @@
|
|
|
1
1
|
import { jsx as P } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useContextualStyle as
|
|
4
|
-
import { ui as
|
|
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
|
|
7
|
-
root:
|
|
8
|
-
"full-width": "_full-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"no-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
16
|
-
return typeof r == "string" ? r :
|
|
16
|
+
function y(r) {
|
|
17
|
+
return typeof r == "string" ? r : a.q(r);
|
|
17
18
|
}
|
|
18
|
-
const
|
|
19
|
+
const K = c.forwardRef(function(S, M) {
|
|
19
20
|
const {
|
|
20
|
-
noOverflow:
|
|
21
|
-
noShrink:
|
|
21
|
+
noOverflow: k = !1,
|
|
22
|
+
noShrink: v = !1,
|
|
22
23
|
grow: e = void 0,
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
24
|
+
width: d,
|
|
25
|
+
height: g,
|
|
25
26
|
children: A,
|
|
26
|
-
className:
|
|
27
|
-
fullWidth:
|
|
28
|
-
fullHeight:
|
|
27
|
+
className: C,
|
|
28
|
+
fullWidth: N,
|
|
29
|
+
fullHeight: R,
|
|
30
|
+
fitContentWidth: b,
|
|
29
31
|
style: p,
|
|
30
32
|
// --- MPProps
|
|
31
|
-
m:
|
|
32
|
-
mt:
|
|
33
|
-
mr:
|
|
34
|
-
mb:
|
|
35
|
-
ml:
|
|
36
|
-
p:
|
|
37
|
-
pt:
|
|
38
|
-
pr:
|
|
39
|
-
pb:
|
|
40
|
-
pl:
|
|
41
|
-
} =
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
69
|
+
m,
|
|
68
70
|
_,
|
|
69
|
-
w
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
91
|
+
m,
|
|
90
92
|
_,
|
|
91
|
-
w
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
...
|
|
93
|
+
w,
|
|
94
|
+
u
|
|
95
|
+
]), O = c.useMemo(() => {
|
|
96
|
+
const o = {
|
|
97
|
+
...x,
|
|
98
|
+
...j,
|
|
96
99
|
...p || {}
|
|
97
100
|
};
|
|
98
|
-
return
|
|
99
|
-
}, [e,
|
|
100
|
-
return /* @__PURE__ */ P("div", { ...
|
|
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
|
-
|
|
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,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
|
+
};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
9
|
-
import { clsx as
|
|
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
|
|
11
|
+
import { useKeyboardClose as z } from "../../utils/hooks/useKeyboardClose.js";
|
|
12
12
|
import "../../index-2hJuj4UN.js";
|
|
13
|
-
import '../../assets/Modal.css';const B = "
|
|
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-
|
|
15
|
+
"modal-appearance": "_modal-appearance_zn44h_1",
|
|
16
16
|
close: v,
|
|
17
17
|
header: x,
|
|
18
18
|
footer: g
|
|
19
19
|
};
|
|
20
|
-
function
|
|
20
|
+
function p(t) {
|
|
21
21
|
const {
|
|
22
22
|
onClose: e,
|
|
23
|
-
children:
|
|
23
|
+
children: s,
|
|
24
24
|
className: o,
|
|
25
|
-
overlayClassName:
|
|
26
|
-
backdropClassName:
|
|
27
|
-
contentClassName:
|
|
28
|
-
ariaDescribedby:
|
|
25
|
+
overlayClassName: f,
|
|
26
|
+
backdropClassName: h,
|
|
27
|
+
contentClassName: _,
|
|
28
|
+
ariaDescribedby: b,
|
|
29
29
|
ariaLabelledby: u,
|
|
30
|
-
disableBackdropClose:
|
|
30
|
+
disableBackdropClose: i = !1,
|
|
31
31
|
disableFocusLock: C = !1
|
|
32
|
-
} = t,
|
|
33
|
-
|
|
34
|
-
}, [e,
|
|
35
|
-
return
|
|
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:
|
|
40
|
-
className:
|
|
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:
|
|
46
|
+
className: _,
|
|
47
47
|
disableFocusLock: C,
|
|
48
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ n(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
role: "dialog",
|
|
52
|
-
"aria-describedby":
|
|
52
|
+
"aria-describedby": b,
|
|
53
53
|
"aria-labelledby": u,
|
|
54
|
-
className:
|
|
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
|
-
|
|
57
|
+
s
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
)
|
|
@@ -62,22 +62,22 @@ function f(t) {
|
|
|
62
62
|
)
|
|
63
63
|
] });
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
p.Header = function(e) {
|
|
66
66
|
const {
|
|
67
|
-
title:
|
|
67
|
+
title: s,
|
|
68
68
|
description: o
|
|
69
69
|
} = e;
|
|
70
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ n("div", { className: r.header, children: [
|
|
71
71
|
/* @__PURE__ */ a(
|
|
72
|
-
|
|
72
|
+
m,
|
|
73
73
|
{
|
|
74
74
|
weight: "bold",
|
|
75
75
|
size: "large",
|
|
76
|
-
children:
|
|
76
|
+
children: s
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
79
|
o && /* @__PURE__ */ a(
|
|
80
|
-
|
|
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
|
-
|
|
89
|
+
p.Footer = function(e) {
|
|
90
90
|
const {
|
|
91
|
-
className:
|
|
91
|
+
className: s,
|
|
92
92
|
...o
|
|
93
93
|
} = e;
|
|
94
|
-
return /* @__PURE__ */ a(k, { ...o, className:
|
|
94
|
+
return /* @__PURE__ */ a(k, { ...o, className: l(r.footer, s) });
|
|
95
95
|
};
|
|
96
96
|
export {
|
|
97
|
-
|
|
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 {};
|