reactive-bulma 4.3.9 → 4.3.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/atoms/Block/index.js +8 -8
- package/dist/components/atoms/Box/index.js +8 -8
- package/dist/components/atoms/BreadcrumbItem/index.js +9 -9
- package/dist/components/atoms/Button/index.js +27 -27
- package/dist/components/atoms/Checkbox/index.js +22 -22
- package/dist/components/atoms/Column/index.js +5 -5
- package/dist/components/atoms/Delete/index.js +5 -5
- package/dist/components/atoms/DropdownItem/index.js +20 -20
- package/dist/components/atoms/DropdownTrigger/index.js +17 -17
- package/dist/components/atoms/File/index.js +17 -17
- package/dist/components/atoms/Icon/index.js +16 -16
- package/dist/components/atoms/Image/index.js +18 -18
- package/dist/components/atoms/Input/index.js +26 -26
- package/dist/components/atoms/LevelHeader/index.js +11 -11
- package/dist/components/atoms/MenuItem/index.js +14 -14
- package/dist/components/atoms/NavBarItem/index.js +17 -17
- package/dist/components/atoms/PaginationItem/index.js +10 -10
- package/dist/components/atoms/ProgressBar/index.js +19 -19
- package/dist/components/atoms/RadioButton/index.js +13 -13
- package/dist/components/atoms/Select/index.js +30 -30
- package/dist/components/atoms/TabItem/index.js +22 -22
- package/dist/components/atoms/TableCell/index.js +9 -9
- package/dist/components/atoms/TableHeadCell/index.js +11 -11
- package/dist/components/atoms/Tag/index.js +40 -40
- package/dist/components/atoms/TextArea/index.js +31 -31
- package/dist/components/atoms/Tile/index.js +9 -9
- package/dist/components/atoms/Title/index.js +11 -11
- package/dist/components/molecules/Breadcrumbs/index.js +22 -22
- package/dist/components/molecules/ButtonGroup/index.js +18 -18
- package/dist/components/molecules/ColumnGroup/index.js +18 -18
- package/dist/components/molecules/Dropdown/index.js +10 -10
- package/dist/components/molecules/Footer/index.js +8 -8
- package/dist/components/molecules/FormFieldInput/index.js +8 -8
- package/dist/components/molecules/InputControl/index.js +21 -21
- package/dist/components/molecules/LevelItem/index.js +5 -5
- package/dist/components/molecules/Media/index.js +6 -6
- package/dist/components/molecules/Menu/index.js +11 -11
- package/dist/components/molecules/MenuList/index.js +7 -7
- package/dist/components/molecules/Message/index.js +7 -7
- package/dist/components/molecules/Modal/index.js +9 -9
- package/dist/components/molecules/NavBarBrand/index.js +9 -9
- package/dist/components/molecules/NavBarDropdown/index.js +18 -18
- package/dist/components/molecules/Notification/index.js +4 -4
- package/dist/components/molecules/Pagination/index.js +28 -28
- package/dist/components/molecules/PanelBlock/index.js +22 -22
- package/dist/components/molecules/PanelTabs/index.js +13 -13
- package/dist/components/molecules/Section/index.js +6 -6
- package/dist/components/molecules/TableRow/index.js +19 -19
- package/dist/components/molecules/Tabs/index.js +17 -17
- package/dist/components/molecules/TileBox/index.js +15 -15
- package/dist/components/organisms/Card/index.js +24 -24
- package/dist/components/organisms/Hero/index.js +13 -13
- package/dist/components/organisms/Level/index.js +8 -8
- package/dist/components/organisms/NavBar/index.js +20 -20
- package/dist/components/organisms/Panel/index.js +4 -4
- package/dist/components/organisms/Table/index.js +10 -10
- package/dist/components/organisms/TileGroup/index.js +16 -16
- package/package.json +27 -27
@@ -1,18 +1,18 @@
|
|
1
|
-
import { jsx as
|
2
|
-
const
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
const c = ({
|
3
3
|
testId: t = "test-block",
|
4
|
-
cssClasses:
|
5
|
-
style:
|
4
|
+
cssClasses: o = "block",
|
5
|
+
style: s = null,
|
6
6
|
children: l = null
|
7
|
-
}) => l ? /* @__PURE__ */
|
7
|
+
}) => l ? /* @__PURE__ */ a(
|
8
8
|
"section",
|
9
9
|
{
|
10
10
|
"data-testid": t,
|
11
|
-
className:
|
12
|
-
style:
|
11
|
+
className: o,
|
12
|
+
style: s ?? void 0,
|
13
13
|
children: l
|
14
14
|
}
|
15
15
|
) : null;
|
16
16
|
export {
|
17
|
-
|
17
|
+
c as default
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import { jsx as
|
2
|
-
const
|
3
|
-
testId:
|
4
|
-
cssClasses:
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
const x = ({
|
3
|
+
testId: o = "test-box",
|
4
|
+
cssClasses: s = "box",
|
5
5
|
style: l = null,
|
6
6
|
children: t = null
|
7
|
-
}) => t ? /* @__PURE__ */
|
7
|
+
}) => t ? /* @__PURE__ */ a(
|
8
8
|
"section",
|
9
9
|
{
|
10
|
-
"data-testid":
|
11
|
-
className:
|
10
|
+
"data-testid": o,
|
11
|
+
className: s,
|
12
12
|
style: l ?? void 0,
|
13
13
|
children: t
|
14
14
|
}
|
15
15
|
) : null;
|
16
16
|
export {
|
17
|
-
|
17
|
+
x as default
|
18
18
|
};
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
2
2
|
import { parseClasses as r, parseTestId as s } from "../../../functions/parsers.js";
|
3
|
-
const
|
3
|
+
const f = ({
|
4
4
|
testId: l = null,
|
5
|
-
containerTestId:
|
6
|
-
cssClasses:
|
5
|
+
containerTestId: d = null,
|
6
|
+
cssClasses: n = null,
|
7
7
|
containerCssClasses: e = null,
|
8
8
|
style: m = null,
|
9
|
-
containerStyle:
|
10
|
-
text:
|
9
|
+
containerStyle: c = null,
|
10
|
+
text: u,
|
11
11
|
isActiveItem: i = null,
|
12
12
|
onClick: b = null
|
13
13
|
}) => {
|
@@ -15,7 +15,7 @@ const h = ({
|
|
15
15
|
"breadcrumb-item-container",
|
16
16
|
i ? "is-active" : null,
|
17
17
|
e
|
18
|
-
]), t = r(["breadcrumbItem",
|
18
|
+
]), t = r(["breadcrumbItem", n]), I = d ?? s({
|
19
19
|
tag: "breadcrumb-item-container",
|
20
20
|
parsedClasses: e ?? ""
|
21
21
|
}), p = l ?? s({ tag: "breadcrumbItem", parsedClasses: t });
|
@@ -24,7 +24,7 @@ const h = ({
|
|
24
24
|
{
|
25
25
|
"data-testid": I,
|
26
26
|
className: o,
|
27
|
-
style:
|
27
|
+
style: c ?? void 0,
|
28
28
|
children: /* @__PURE__ */ a(
|
29
29
|
"a",
|
30
30
|
{
|
@@ -33,12 +33,12 @@ const h = ({
|
|
33
33
|
style: m ?? void 0,
|
34
34
|
"aria-hidden": "true",
|
35
35
|
onClick: b ?? void 0,
|
36
|
-
children:
|
36
|
+
children: u
|
37
37
|
}
|
38
38
|
)
|
39
39
|
}
|
40
40
|
);
|
41
41
|
};
|
42
42
|
export {
|
43
|
-
|
43
|
+
f as default
|
44
44
|
};
|
@@ -1,49 +1,49 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { parseClasses as
|
3
|
-
const
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as h, parseTestId as x } from "../../../functions/parsers.js";
|
3
|
+
const j = ({
|
4
4
|
testId: s = null,
|
5
|
-
cssClasses:
|
6
|
-
style:
|
7
|
-
type:
|
8
|
-
text:
|
9
|
-
isDisabled:
|
10
|
-
color:
|
11
|
-
isLightColor:
|
12
|
-
isInvertedColor:
|
13
|
-
isOutlined:
|
14
|
-
isRounded:
|
5
|
+
cssClasses: t = null,
|
6
|
+
style: e = null,
|
7
|
+
type: n = "button",
|
8
|
+
text: a = null,
|
9
|
+
isDisabled: u = !1,
|
10
|
+
color: o = null,
|
11
|
+
isLightColor: i = !1,
|
12
|
+
isInvertedColor: d = !1,
|
13
|
+
isOutlined: r = !1,
|
14
|
+
isRounded: f = !1,
|
15
15
|
isLoading: c = !1,
|
16
16
|
isStatic: b = !1,
|
17
17
|
isSelected: p = !1,
|
18
18
|
size: m = null,
|
19
19
|
onClick: C = null
|
20
20
|
}) => {
|
21
|
-
const l =
|
21
|
+
const l = h([
|
22
22
|
"button",
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
o,
|
24
|
+
i ? "is-light" : null,
|
25
|
+
d ? "is-inverted" : null,
|
26
|
+
r ? "is-outlined" : null,
|
27
|
+
f ? "is-rounded" : null,
|
28
28
|
c ? "is-loading" : null,
|
29
29
|
b ? "is-static" : null,
|
30
30
|
p ? "is-selected" : null,
|
31
31
|
m,
|
32
|
-
|
33
|
-
]), g = s ??
|
34
|
-
return /* @__PURE__ */
|
32
|
+
t
|
33
|
+
]), g = s ?? x({ tag: "button", parsedClasses: l });
|
34
|
+
return /* @__PURE__ */ v(
|
35
35
|
"button",
|
36
36
|
{
|
37
37
|
"data-testid": g,
|
38
|
-
type:
|
38
|
+
type: n,
|
39
39
|
className: l,
|
40
|
-
style:
|
41
|
-
disabled:
|
40
|
+
style: e ?? void 0,
|
41
|
+
disabled: u ?? !1,
|
42
42
|
onClick: C ?? void 0,
|
43
|
-
children:
|
43
|
+
children: a
|
44
44
|
}
|
45
45
|
);
|
46
46
|
};
|
47
47
|
export {
|
48
|
-
|
48
|
+
j as default
|
49
49
|
};
|
@@ -1,50 +1,50 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { parseClasses as
|
3
|
-
const
|
1
|
+
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as f, parseTestId as c } from "../../../functions/parsers.js";
|
3
|
+
const l = (e) => e ? "-with-component" : "", v = ({
|
4
4
|
testId: e = null,
|
5
|
-
containerTestId:
|
5
|
+
containerTestId: o = null,
|
6
6
|
cssClasses: a = null,
|
7
|
-
containerCssClasses:
|
7
|
+
containerCssClasses: n = null,
|
8
8
|
style: d = null,
|
9
9
|
containerStyle: i = null,
|
10
10
|
label: s = null,
|
11
11
|
isChecked: r,
|
12
12
|
name: h,
|
13
13
|
isDisabled: p = !1,
|
14
|
-
onClick:
|
15
|
-
onChange:
|
16
|
-
onBlur:
|
14
|
+
onClick: x,
|
15
|
+
onChange: k,
|
16
|
+
onBlur: b
|
17
17
|
}) => {
|
18
|
-
const
|
18
|
+
const u = f([
|
19
19
|
"checkbox",
|
20
|
-
|
21
|
-
]),
|
20
|
+
n
|
21
|
+
]), C = o ?? c({
|
22
22
|
tag: "checkbox-container",
|
23
|
-
parsedClasses:
|
24
|
-
}),
|
23
|
+
parsedClasses: l(s)
|
24
|
+
}), m = e ?? c({
|
25
25
|
tag: "checkbox",
|
26
|
-
parsedClasses:
|
26
|
+
parsedClasses: l(s)
|
27
27
|
});
|
28
|
-
return /* @__PURE__ */
|
28
|
+
return /* @__PURE__ */ y(
|
29
29
|
"label",
|
30
30
|
{
|
31
|
-
"data-testid":
|
32
|
-
className:
|
31
|
+
"data-testid": C,
|
32
|
+
className: u,
|
33
33
|
style: i ?? void 0,
|
34
34
|
children: [
|
35
35
|
/* @__PURE__ */ t(
|
36
36
|
"input",
|
37
37
|
{
|
38
|
-
"data-testid":
|
38
|
+
"data-testid": m,
|
39
39
|
type: "checkbox",
|
40
40
|
name: h,
|
41
41
|
className: a ?? void 0,
|
42
42
|
style: d ?? void 0,
|
43
43
|
defaultChecked: r,
|
44
44
|
disabled: p,
|
45
|
-
onClick:
|
46
|
-
onChange:
|
47
|
-
onBlur:
|
45
|
+
onClick: x,
|
46
|
+
onChange: k,
|
47
|
+
onBlur: b
|
48
48
|
}
|
49
49
|
),
|
50
50
|
/* @__PURE__ */ t("p", { style: {
|
@@ -56,5 +56,5 @@ const c = (e) => e ? "-with-component" : "", j = ({
|
|
56
56
|
);
|
57
57
|
};
|
58
58
|
export {
|
59
|
-
|
59
|
+
v as default
|
60
60
|
};
|
@@ -4,15 +4,15 @@ const f = ({
|
|
4
4
|
testId: s = null,
|
5
5
|
cssClasses: n = null,
|
6
6
|
style: e = null,
|
7
|
-
children:
|
8
|
-
size:
|
9
|
-
offset:
|
7
|
+
children: o = null,
|
8
|
+
size: t = null,
|
9
|
+
offset: a = null,
|
10
10
|
isNarrow: u = !1
|
11
11
|
}) => {
|
12
12
|
const l = c([
|
13
13
|
"column",
|
14
|
+
t,
|
14
15
|
a,
|
15
|
-
o,
|
16
16
|
u ? "is-narrow" : null,
|
17
17
|
n
|
18
18
|
]), r = s ?? d({ tag: "column", parsedClasses: l });
|
@@ -22,7 +22,7 @@ const f = ({
|
|
22
22
|
"data-testid": r,
|
23
23
|
className: l,
|
24
24
|
style: e ?? void 0,
|
25
|
-
children:
|
25
|
+
children: o
|
26
26
|
}
|
27
27
|
);
|
28
28
|
};
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { jsx as
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
2
2
|
import { parseClasses as r, parseTestId as u } from "../../../functions/parsers.js";
|
3
3
|
const c = ({
|
4
4
|
testId: s = null,
|
5
5
|
cssClasses: l = null,
|
6
6
|
style: t = null,
|
7
|
-
size:
|
7
|
+
size: a = null,
|
8
8
|
onClick: d = null
|
9
9
|
}) => {
|
10
|
-
const e = r(["delete",
|
10
|
+
const e = r(["delete", a, l]), o = s ?? u({
|
11
11
|
tag: "delete",
|
12
12
|
parsedClasses: e
|
13
13
|
});
|
14
|
-
return /* @__PURE__ */
|
14
|
+
return /* @__PURE__ */ n(
|
15
15
|
"button",
|
16
16
|
{
|
17
|
-
"data-testid":
|
17
|
+
"data-testid": o,
|
18
18
|
className: e,
|
19
19
|
style: t ?? void 0,
|
20
20
|
onClick: d ?? void 0
|
@@ -1,35 +1,35 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { parseClasses as
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as p, parseTestId as u } from "../../../functions/parsers.js";
|
3
3
|
const w = ({
|
4
|
-
testId:
|
5
|
-
cssClasses:
|
4
|
+
testId: o = null,
|
5
|
+
cssClasses: t = null,
|
6
6
|
style: a = null,
|
7
|
-
itemText:
|
8
|
-
type:
|
7
|
+
itemText: i,
|
8
|
+
type: e = "item",
|
9
9
|
isActiveItem: c = !1,
|
10
|
-
onClick:
|
10
|
+
onClick: m = null
|
11
11
|
}) => {
|
12
|
-
const
|
13
|
-
|
14
|
-
c && !
|
15
|
-
|
12
|
+
const r = e === "divider", l = r ? "dropdown-divider" : "dropdown-item", n = p([
|
13
|
+
l,
|
14
|
+
c && !r ? "is-active" : null,
|
15
|
+
t
|
16
16
|
]), d = {
|
17
|
-
"data-testid":
|
18
|
-
tag:
|
19
|
-
parsedClasses: `${
|
17
|
+
"data-testid": o ?? u({
|
18
|
+
tag: l,
|
19
|
+
parsedClasses: `${n}-${e}`
|
20
20
|
}),
|
21
|
-
className:
|
21
|
+
className: n,
|
22
22
|
style: a ?? void 0,
|
23
|
-
onClick:
|
23
|
+
onClick: m ?? void 0
|
24
24
|
};
|
25
|
-
switch (
|
25
|
+
switch (e) {
|
26
26
|
case "item":
|
27
|
-
return /* @__PURE__ */
|
27
|
+
return /* @__PURE__ */ s("div", { ...d, children: /* @__PURE__ */ s("p", { children: i }) });
|
28
28
|
case "divider":
|
29
|
-
return /* @__PURE__ */
|
29
|
+
return /* @__PURE__ */ s("hr", { ...d });
|
30
30
|
case "link":
|
31
31
|
default:
|
32
|
-
return /* @__PURE__ */
|
32
|
+
return /* @__PURE__ */ s("a", { ...d, children: i });
|
33
33
|
}
|
34
34
|
};
|
35
35
|
export {
|
@@ -1,40 +1,40 @@
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
2
|
-
import { parseClasses as
|
3
|
-
const
|
4
|
-
testId:
|
5
|
-
containerTestId:
|
2
|
+
import { parseClasses as n, parseTestId as o } from "../../../functions/parsers.js";
|
3
|
+
const v = ({
|
4
|
+
testId: a = null,
|
5
|
+
containerTestId: d = null,
|
6
6
|
cssClasses: t = null,
|
7
7
|
containerCssClasses: l = null,
|
8
8
|
style: i = null,
|
9
9
|
containerStyle: p = null,
|
10
|
-
menuText:
|
11
|
-
dropdownPointer:
|
12
|
-
onClick:
|
10
|
+
menuText: c,
|
11
|
+
dropdownPointer: g = "dropdown-menu",
|
12
|
+
onClick: u = null
|
13
13
|
}) => {
|
14
|
-
const
|
14
|
+
const r = n([
|
15
15
|
"dropdown-trigger",
|
16
16
|
l
|
17
|
-
]), m =
|
17
|
+
]), m = d ?? o({
|
18
18
|
tag: "dropdown-trigger",
|
19
|
-
parsedClasses:
|
20
|
-
}),
|
19
|
+
parsedClasses: r
|
20
|
+
}), e = n(["button", t]), w = a ?? o({ tag: "button", parsedClasses: e });
|
21
21
|
return /* @__PURE__ */ s(
|
22
22
|
"section",
|
23
23
|
{
|
24
24
|
"data-testid": m,
|
25
|
-
className:
|
25
|
+
className: r,
|
26
26
|
style: p ?? void 0,
|
27
27
|
children: /* @__PURE__ */ C(
|
28
28
|
"button",
|
29
29
|
{
|
30
30
|
"data-testid": w,
|
31
|
-
className:
|
31
|
+
className: e,
|
32
32
|
style: i ?? void 0,
|
33
33
|
"aria-haspopup": "true",
|
34
|
-
"aria-controls":
|
35
|
-
onClick:
|
34
|
+
"aria-controls": g,
|
35
|
+
onClick: u ?? void 0,
|
36
36
|
children: [
|
37
|
-
/* @__PURE__ */ s("span", { children:
|
37
|
+
/* @__PURE__ */ s("span", { children: c }),
|
38
38
|
/* @__PURE__ */ s("span", { className: "icon is-small", children: /* @__PURE__ */ s(
|
39
39
|
"i",
|
40
40
|
{
|
@@ -49,5 +49,5 @@ const f = ({
|
|
49
49
|
);
|
50
50
|
};
|
51
51
|
export {
|
52
|
-
|
52
|
+
v as default
|
53
53
|
};
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { jsx as l, jsxs as i } from "react/jsx-runtime";
|
2
2
|
import j from "../Icon/index.js";
|
3
|
-
import { parseClasses as
|
4
|
-
const
|
3
|
+
import { parseClasses as v, parseTestId as E } from "../../../functions/parsers.js";
|
4
|
+
const $ = ({
|
5
5
|
testId: t = null,
|
6
6
|
containerTestId: r = null,
|
7
7
|
cssClasses: u = null,
|
8
|
-
containerCssClasses:
|
9
|
-
style:
|
10
|
-
containerStyle:
|
8
|
+
containerCssClasses: c = null,
|
9
|
+
style: o = null,
|
10
|
+
containerStyle: f = null,
|
11
11
|
fileName: e = null,
|
12
12
|
name: p,
|
13
13
|
uploadIcon: s = { iconLabel: "upload" },
|
14
|
-
uploadText:
|
14
|
+
uploadText: d = "Choose a file…",
|
15
15
|
buttonOnRight: m = !1,
|
16
16
|
isFullWidth: h = !1,
|
17
17
|
isBoxed: C = !1,
|
@@ -21,7 +21,7 @@ const k = ({
|
|
21
21
|
onChange: I,
|
22
22
|
onBlur: N
|
23
23
|
}) => {
|
24
|
-
const
|
24
|
+
const a = v([
|
25
25
|
"file",
|
26
26
|
e ? "has-name" : null,
|
27
27
|
m ? "is-right" : null,
|
@@ -29,10 +29,10 @@ const k = ({
|
|
29
29
|
C ? "is-boxed" : null,
|
30
30
|
g,
|
31
31
|
x,
|
32
|
-
|
33
|
-
]),
|
32
|
+
c
|
33
|
+
]), n = r ?? E({
|
34
34
|
tag: "file",
|
35
|
-
parsedClasses:
|
35
|
+
parsedClasses: a,
|
36
36
|
rules: [
|
37
37
|
{
|
38
38
|
regExp: /has/gm,
|
@@ -43,13 +43,13 @@ const k = ({
|
|
43
43
|
replacer: ""
|
44
44
|
}
|
45
45
|
]
|
46
|
-
}), y = u ?? "file-input", T = t ?? `${
|
46
|
+
}), y = u ?? "file-input", T = t ?? `${n}-input`;
|
47
47
|
return /* @__PURE__ */ l(
|
48
48
|
"section",
|
49
49
|
{
|
50
|
-
"data-testid":
|
51
|
-
className:
|
52
|
-
style:
|
50
|
+
"data-testid": n,
|
51
|
+
className: a,
|
52
|
+
style: f ?? void 0,
|
53
53
|
children: /* @__PURE__ */ i("label", { className: "file-label", children: [
|
54
54
|
/* @__PURE__ */ l(
|
55
55
|
"input",
|
@@ -58,7 +58,7 @@ const k = ({
|
|
58
58
|
type: "file",
|
59
59
|
name: p,
|
60
60
|
className: y,
|
61
|
-
style:
|
61
|
+
style: o ?? void 0,
|
62
62
|
onClick: b,
|
63
63
|
onChange: I,
|
64
64
|
onBlur: N
|
@@ -66,7 +66,7 @@ const k = ({
|
|
66
66
|
),
|
67
67
|
/* @__PURE__ */ i("span", { className: "file-cta", children: [
|
68
68
|
s ? /* @__PURE__ */ l(j, { ...s }) : null,
|
69
|
-
/* @__PURE__ */ l("span", { className: "file-label", children:
|
69
|
+
/* @__PURE__ */ l("span", { className: "file-label", children: d })
|
70
70
|
] }),
|
71
71
|
e ? /* @__PURE__ */ l("span", { className: "file-name", children: e }) : null
|
72
72
|
] })
|
@@ -74,5 +74,5 @@ const k = ({
|
|
74
74
|
);
|
75
75
|
};
|
76
76
|
export {
|
77
|
-
|
77
|
+
$ as default
|
78
78
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxs as E, jsx as i } from "react/jsx-runtime";
|
2
2
|
import { IconSizeEnum as N } from "../../../types/domTypes.js";
|
3
3
|
import { parseClasses as p, parseTestId as u } from "../../../functions/parsers.js";
|
4
4
|
const T = (s, n) => {
|
@@ -20,7 +20,7 @@ const T = (s, n) => {
|
|
20
20
|
children: s
|
21
21
|
}
|
22
22
|
);
|
23
|
-
},
|
23
|
+
}, S = ({
|
24
24
|
testId: s = null,
|
25
25
|
containerTestId: n = null,
|
26
26
|
cssClasses: e = null,
|
@@ -31,26 +31,26 @@ const T = (s, n) => {
|
|
31
31
|
text: a = null,
|
32
32
|
color: r = null,
|
33
33
|
size: l = null,
|
34
|
-
colorMode:
|
35
|
-
isSpinning:
|
36
|
-
position:
|
34
|
+
colorMode: c = null,
|
35
|
+
isSpinning: I = !1,
|
36
|
+
position: f = null
|
37
37
|
}) => {
|
38
38
|
const $ = p([
|
39
39
|
"icon",
|
40
40
|
r,
|
41
41
|
l,
|
42
|
-
|
42
|
+
f,
|
43
43
|
t
|
44
|
-
]),
|
44
|
+
]), d = p([
|
45
45
|
"mdi",
|
46
46
|
`mdi-${x}`,
|
47
|
-
|
48
|
-
|
47
|
+
c ? `mdi-${c}` : null,
|
48
|
+
I ? "mdi-spin" : null,
|
49
49
|
l ? `mdi-${N[l]}px` : "mdi-24px",
|
50
50
|
e
|
51
|
-
]),
|
51
|
+
]), o = n ?? u({
|
52
52
|
tag: "icon",
|
53
|
-
parsedClasses:
|
53
|
+
parsedClasses: d,
|
54
54
|
rules: [
|
55
55
|
{
|
56
56
|
regExp: /mdi-|mdi--/gm,
|
@@ -62,10 +62,10 @@ const T = (s, n) => {
|
|
62
62
|
}
|
63
63
|
],
|
64
64
|
separator: "-"
|
65
|
-
}), h = s ?? `${
|
65
|
+
}), h = s ?? `${o}-i`, m = /* @__PURE__ */ E(
|
66
66
|
"span",
|
67
67
|
{
|
68
|
-
"data-testid":
|
68
|
+
"data-testid": o,
|
69
69
|
className: $,
|
70
70
|
style: C ?? void 0,
|
71
71
|
children: [
|
@@ -73,7 +73,7 @@ const T = (s, n) => {
|
|
73
73
|
"i",
|
74
74
|
{
|
75
75
|
"data-testid": h,
|
76
|
-
className:
|
76
|
+
className: d,
|
77
77
|
style: g ?? void 0
|
78
78
|
}
|
79
79
|
),
|
@@ -81,8 +81,8 @@ const T = (s, n) => {
|
|
81
81
|
]
|
82
82
|
}
|
83
83
|
);
|
84
|
-
return a ? T(
|
84
|
+
return a ? T(m, r) : m;
|
85
85
|
};
|
86
86
|
export {
|
87
|
-
|
87
|
+
S as default
|
88
88
|
};
|
@@ -1,44 +1,44 @@
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
2
|
-
import { parseClasses as a, parseTestId as
|
3
|
-
const
|
4
|
-
testId:
|
5
|
-
containerTestId:
|
2
|
+
import { parseClasses as a, parseTestId as f } from "../../../functions/parsers.js";
|
3
|
+
const T = ({
|
4
|
+
testId: t = null,
|
5
|
+
containerTestId: n = null,
|
6
6
|
cssClasses: i = null,
|
7
|
-
containerCssClasses:
|
8
|
-
style:
|
7
|
+
containerCssClasses: o = null,
|
8
|
+
style: d = null,
|
9
9
|
containerStyle: m = null,
|
10
10
|
src: r,
|
11
|
-
alt:
|
11
|
+
alt: u = null,
|
12
12
|
fixedSize: g = null,
|
13
13
|
isRounded: c = !1
|
14
14
|
}) => {
|
15
|
-
const
|
15
|
+
const s = a([
|
16
16
|
"image",
|
17
17
|
g,
|
18
|
-
|
19
|
-
]),
|
18
|
+
o
|
19
|
+
]), p = a([
|
20
20
|
c ? "is-rounded" : null,
|
21
21
|
i
|
22
|
-
]),
|
22
|
+
]), e = n ?? f({ tag: "image", parsedClasses: s }), C = t ?? `${e}-img`;
|
23
23
|
return /* @__PURE__ */ l(
|
24
24
|
"figure",
|
25
25
|
{
|
26
|
-
"data-testid":
|
27
|
-
className:
|
26
|
+
"data-testid": e,
|
27
|
+
className: s,
|
28
28
|
style: m ?? void 0,
|
29
29
|
children: /* @__PURE__ */ l(
|
30
30
|
"img",
|
31
31
|
{
|
32
|
-
"data-testid":
|
33
|
-
className:
|
34
|
-
style:
|
32
|
+
"data-testid": C,
|
33
|
+
className: p,
|
34
|
+
style: d ?? void 0,
|
35
35
|
src: r,
|
36
|
-
alt:
|
36
|
+
alt: u ?? void 0
|
37
37
|
}
|
38
38
|
)
|
39
39
|
}
|
40
40
|
);
|
41
41
|
};
|
42
42
|
export {
|
43
|
-
|
43
|
+
T as default
|
44
44
|
};
|