reactive-bulma 4.3.6 → 4.3.8
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 +15 -15
- 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 +29 -29
@@ -1,18 +1,18 @@
|
|
1
|
-
import { jsx as
|
2
|
-
const
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
2
|
+
const n = ({
|
3
3
|
testId: t = "test-block",
|
4
|
-
cssClasses:
|
5
|
-
style:
|
4
|
+
cssClasses: s = "block",
|
5
|
+
style: e = null,
|
6
6
|
children: l = null
|
7
|
-
}) => l ? /* @__PURE__ */
|
7
|
+
}) => l ? /* @__PURE__ */ o(
|
8
8
|
"section",
|
9
9
|
{
|
10
10
|
"data-testid": t,
|
11
|
-
className:
|
12
|
-
style:
|
11
|
+
className: s,
|
12
|
+
style: e ?? void 0,
|
13
13
|
children: l
|
14
14
|
}
|
15
15
|
) : null;
|
16
16
|
export {
|
17
|
-
|
17
|
+
n as default
|
18
18
|
};
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import { jsx as
|
2
|
-
const
|
3
|
-
testId:
|
4
|
-
cssClasses:
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
2
|
+
const n = ({
|
3
|
+
testId: s = "test-box",
|
4
|
+
cssClasses: e = "box",
|
5
5
|
style: l = null,
|
6
6
|
children: t = null
|
7
|
-
}) => t ? /* @__PURE__ */
|
7
|
+
}) => t ? /* @__PURE__ */ o(
|
8
8
|
"section",
|
9
9
|
{
|
10
|
-
"data-testid":
|
11
|
-
className:
|
10
|
+
"data-testid": s,
|
11
|
+
className: e,
|
12
12
|
style: l ?? void 0,
|
13
13
|
children: t
|
14
14
|
}
|
15
15
|
) : null;
|
16
16
|
export {
|
17
|
-
|
17
|
+
n 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 h = ({
|
4
4
|
testId: l = null,
|
5
|
-
containerTestId:
|
6
|
-
cssClasses:
|
5
|
+
containerTestId: n = null,
|
6
|
+
cssClasses: d = null,
|
7
7
|
containerCssClasses: e = null,
|
8
8
|
style: m = null,
|
9
|
-
containerStyle:
|
10
|
-
text:
|
9
|
+
containerStyle: u = null,
|
10
|
+
text: c,
|
11
11
|
isActiveItem: i = null,
|
12
12
|
onClick: b = null
|
13
13
|
}) => {
|
@@ -15,7 +15,7 @@ const f = ({
|
|
15
15
|
"breadcrumb-item-container",
|
16
16
|
i ? "is-active" : null,
|
17
17
|
e
|
18
|
-
]), t = r(["breadcrumbItem",
|
18
|
+
]), t = r(["breadcrumbItem", d]), I = n ?? 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 f = ({
|
|
24
24
|
{
|
25
25
|
"data-testid": I,
|
26
26
|
className: o,
|
27
|
-
style:
|
27
|
+
style: u ?? void 0,
|
28
28
|
children: /* @__PURE__ */ a(
|
29
29
|
"a",
|
30
30
|
{
|
@@ -33,12 +33,12 @@ const f = ({
|
|
33
33
|
style: m ?? void 0,
|
34
34
|
"aria-hidden": "true",
|
35
35
|
onClick: b ?? void 0,
|
36
|
-
children:
|
36
|
+
children: c
|
37
37
|
}
|
38
38
|
)
|
39
39
|
}
|
40
40
|
);
|
41
41
|
};
|
42
42
|
export {
|
43
|
-
|
43
|
+
h as default
|
44
44
|
};
|
@@ -1,49 +1,49 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { parseClasses as
|
3
|
-
const
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as x, parseTestId as I } from "../../../functions/parsers.js";
|
3
|
+
const k = ({
|
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: e = null,
|
6
|
+
style: n = null,
|
7
|
+
type: t = "button",
|
8
|
+
text: u = null,
|
9
|
+
isDisabled: a = !1,
|
10
|
+
color: i = null,
|
11
|
+
isLightColor: d = !1,
|
12
|
+
isInvertedColor: o = !1,
|
13
|
+
isOutlined: f = !1,
|
14
|
+
isRounded: r = !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 = x([
|
22
22
|
"button",
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
i,
|
24
|
+
d ? "is-light" : null,
|
25
|
+
o ? "is-inverted" : null,
|
26
|
+
f ? "is-outlined" : null,
|
27
|
+
r ? "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
|
+
e
|
33
|
+
]), g = s ?? I({ tag: "button", parsedClasses: l });
|
34
|
+
return /* @__PURE__ */ h(
|
35
35
|
"button",
|
36
36
|
{
|
37
37
|
"data-testid": g,
|
38
|
-
type:
|
38
|
+
type: t,
|
39
39
|
className: l,
|
40
|
-
style:
|
41
|
-
disabled:
|
40
|
+
style: n ?? void 0,
|
41
|
+
disabled: a ?? !1,
|
42
42
|
onClick: C ?? void 0,
|
43
|
-
children:
|
43
|
+
children: u
|
44
44
|
}
|
45
45
|
);
|
46
46
|
};
|
47
47
|
export {
|
48
|
-
|
48
|
+
k as default
|
49
49
|
};
|
@@ -1,50 +1,50 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { parseClasses as
|
3
|
-
const
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as y, parseTestId as n } from "../../../functions/parsers.js";
|
3
|
+
const c = (e) => e ? "-with-component" : "", j = ({
|
4
4
|
testId: e = null,
|
5
|
-
containerTestId:
|
5
|
+
containerTestId: l = null,
|
6
6
|
cssClasses: a = null,
|
7
|
-
containerCssClasses:
|
7
|
+
containerCssClasses: o = 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: u,
|
15
|
+
onChange: x,
|
16
|
+
onBlur: k
|
17
17
|
}) => {
|
18
|
-
const
|
18
|
+
const b = y([
|
19
19
|
"checkbox",
|
20
|
-
|
21
|
-
]),
|
20
|
+
o
|
21
|
+
]), f = l ?? n({
|
22
22
|
tag: "checkbox-container",
|
23
|
-
parsedClasses:
|
24
|
-
}),
|
23
|
+
parsedClasses: c(s)
|
24
|
+
}), C = e ?? n({
|
25
25
|
tag: "checkbox",
|
26
|
-
parsedClasses:
|
26
|
+
parsedClasses: c(s)
|
27
27
|
});
|
28
|
-
return /* @__PURE__ */
|
28
|
+
return /* @__PURE__ */ m(
|
29
29
|
"label",
|
30
30
|
{
|
31
|
-
"data-testid":
|
32
|
-
className:
|
31
|
+
"data-testid": f,
|
32
|
+
className: b,
|
33
33
|
style: i ?? void 0,
|
34
34
|
children: [
|
35
35
|
/* @__PURE__ */ t(
|
36
36
|
"input",
|
37
37
|
{
|
38
|
-
"data-testid":
|
38
|
+
"data-testid": C,
|
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: u,
|
46
|
+
onChange: x,
|
47
|
+
onBlur: k
|
48
48
|
}
|
49
49
|
),
|
50
50
|
/* @__PURE__ */ t("p", { style: {
|
@@ -56,5 +56,5 @@ const l = (e) => e ? "-with-component" : "", v = ({
|
|
56
56
|
);
|
57
57
|
};
|
58
58
|
export {
|
59
|
-
|
59
|
+
j 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: t = null,
|
8
|
+
size: a = null,
|
9
|
+
offset: o = null,
|
10
10
|
isNarrow: u = !1
|
11
11
|
}) => {
|
12
12
|
const l = c([
|
13
13
|
"column",
|
14
|
-
t,
|
15
14
|
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: t
|
26
26
|
}
|
27
27
|
);
|
28
28
|
};
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { jsx as
|
1
|
+
import { jsx as o } 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: n = null,
|
8
8
|
onClick: d = null
|
9
9
|
}) => {
|
10
|
-
const e = r(["delete",
|
10
|
+
const e = r(["delete", n, l]), a = s ?? u({
|
11
11
|
tag: "delete",
|
12
12
|
parsedClasses: e
|
13
13
|
});
|
14
|
-
return /* @__PURE__ */
|
14
|
+
return /* @__PURE__ */ o(
|
15
15
|
"button",
|
16
16
|
{
|
17
|
-
"data-testid":
|
17
|
+
"data-testid": a,
|
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 e } from "react/jsx-runtime";
|
2
|
+
import { parseClasses as m, parseTestId as p } from "../../../functions/parsers.js";
|
3
3
|
const w = ({
|
4
|
-
testId:
|
5
|
-
cssClasses:
|
4
|
+
testId: t = null,
|
5
|
+
cssClasses: o = null,
|
6
6
|
style: a = null,
|
7
|
-
itemText:
|
8
|
-
type:
|
7
|
+
itemText: n,
|
8
|
+
type: s = "item",
|
9
9
|
isActiveItem: c = !1,
|
10
|
-
onClick:
|
10
|
+
onClick: u = null
|
11
11
|
}) => {
|
12
|
-
const
|
13
|
-
|
14
|
-
c && !
|
15
|
-
|
12
|
+
const i = s === "divider", r = i ? "dropdown-divider" : "dropdown-item", l = m([
|
13
|
+
r,
|
14
|
+
c && !i ? "is-active" : null,
|
15
|
+
o
|
16
16
|
]), d = {
|
17
|
-
"data-testid":
|
18
|
-
tag:
|
19
|
-
parsedClasses: `${
|
17
|
+
"data-testid": t ?? p({
|
18
|
+
tag: r,
|
19
|
+
parsedClasses: `${l}-${s}`
|
20
20
|
}),
|
21
|
-
className:
|
21
|
+
className: l,
|
22
22
|
style: a ?? void 0,
|
23
|
-
onClick:
|
23
|
+
onClick: u ?? void 0
|
24
24
|
};
|
25
|
-
switch (
|
25
|
+
switch (s) {
|
26
26
|
case "item":
|
27
|
-
return /* @__PURE__ */
|
27
|
+
return /* @__PURE__ */ e("div", { ...d, children: /* @__PURE__ */ e("p", { children: n }) });
|
28
28
|
case "divider":
|
29
|
-
return /* @__PURE__ */
|
29
|
+
return /* @__PURE__ */ e("hr", { ...d });
|
30
30
|
case "link":
|
31
31
|
default:
|
32
|
-
return /* @__PURE__ */
|
32
|
+
return /* @__PURE__ */ e("a", { ...d, children: n });
|
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 r, parseTestId as d } from "../../../functions/parsers.js";
|
3
|
+
const f = ({
|
4
|
+
testId: o = null,
|
5
|
+
containerTestId: a = 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: u,
|
11
|
+
dropdownPointer: c = "dropdown-menu",
|
12
|
+
onClick: g = null
|
13
13
|
}) => {
|
14
|
-
const
|
14
|
+
const e = r([
|
15
15
|
"dropdown-trigger",
|
16
16
|
l
|
17
|
-
]), m =
|
17
|
+
]), m = a ?? d({
|
18
18
|
tag: "dropdown-trigger",
|
19
|
-
parsedClasses:
|
20
|
-
}),
|
19
|
+
parsedClasses: e
|
20
|
+
}), n = r(["button", t]), w = o ?? d({ tag: "button", parsedClasses: n });
|
21
21
|
return /* @__PURE__ */ s(
|
22
22
|
"section",
|
23
23
|
{
|
24
24
|
"data-testid": m,
|
25
|
-
className:
|
25
|
+
className: e,
|
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: n,
|
32
32
|
style: i ?? void 0,
|
33
33
|
"aria-haspopup": "true",
|
34
|
-
"aria-controls":
|
35
|
-
onClick:
|
34
|
+
"aria-controls": c,
|
35
|
+
onClick: g ?? void 0,
|
36
36
|
children: [
|
37
|
-
/* @__PURE__ */ s("span", { children:
|
37
|
+
/* @__PURE__ */ s("span", { children: u }),
|
38
38
|
/* @__PURE__ */ s("span", { className: "icon is-small", children: /* @__PURE__ */ s(
|
39
39
|
"i",
|
40
40
|
{
|
@@ -49,5 +49,5 @@ const v = ({
|
|
49
49
|
);
|
50
50
|
};
|
51
51
|
export {
|
52
|
-
|
52
|
+
f 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 E, parseTestId as w } from "../../../functions/parsers.js";
|
4
|
+
const k = ({
|
5
5
|
testId: t = null,
|
6
6
|
containerTestId: r = null,
|
7
7
|
cssClasses: u = null,
|
8
|
-
containerCssClasses:
|
9
|
-
style:
|
10
|
-
containerStyle:
|
8
|
+
containerCssClasses: f = null,
|
9
|
+
style: c = null,
|
10
|
+
containerStyle: d = null,
|
11
11
|
fileName: e = null,
|
12
12
|
name: p,
|
13
13
|
uploadIcon: s = { iconLabel: "upload" },
|
14
|
-
uploadText:
|
14
|
+
uploadText: o = "Choose a file…",
|
15
15
|
buttonOnRight: m = !1,
|
16
16
|
isFullWidth: h = !1,
|
17
17
|
isBoxed: C = !1,
|
@@ -21,7 +21,7 @@ const $ = ({
|
|
21
21
|
onChange: I,
|
22
22
|
onBlur: N
|
23
23
|
}) => {
|
24
|
-
const
|
24
|
+
const n = E([
|
25
25
|
"file",
|
26
26
|
e ? "has-name" : null,
|
27
27
|
m ? "is-right" : null,
|
@@ -29,10 +29,10 @@ const $ = ({
|
|
29
29
|
C ? "is-boxed" : null,
|
30
30
|
g,
|
31
31
|
x,
|
32
|
-
|
33
|
-
]),
|
32
|
+
f
|
33
|
+
]), a = r ?? w({
|
34
34
|
tag: "file",
|
35
|
-
parsedClasses:
|
35
|
+
parsedClasses: n,
|
36
36
|
rules: [
|
37
37
|
{
|
38
38
|
regExp: /has/gm,
|
@@ -43,13 +43,13 @@ const $ = ({
|
|
43
43
|
replacer: ""
|
44
44
|
}
|
45
45
|
]
|
46
|
-
}), y = u ?? "file-input", T = t ?? `${
|
46
|
+
}), y = u ?? "file-input", T = t ?? `${a}-input`;
|
47
47
|
return /* @__PURE__ */ l(
|
48
48
|
"section",
|
49
49
|
{
|
50
|
-
"data-testid":
|
51
|
-
className:
|
52
|
-
style:
|
50
|
+
"data-testid": a,
|
51
|
+
className: n,
|
52
|
+
style: d ?? void 0,
|
53
53
|
children: /* @__PURE__ */ i("label", { className: "file-label", children: [
|
54
54
|
/* @__PURE__ */ l(
|
55
55
|
"input",
|
@@ -58,7 +58,7 @@ const $ = ({
|
|
58
58
|
type: "file",
|
59
59
|
name: p,
|
60
60
|
className: y,
|
61
|
-
style:
|
61
|
+
style: c ?? void 0,
|
62
62
|
onClick: b,
|
63
63
|
onChange: I,
|
64
64
|
onBlur: N
|
@@ -66,7 +66,7 @@ const $ = ({
|
|
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: o })
|
70
70
|
] }),
|
71
71
|
e ? /* @__PURE__ */ l("span", { className: "file-name", children: e }) : null
|
72
72
|
] })
|
@@ -74,5 +74,5 @@ const $ = ({
|
|
74
74
|
);
|
75
75
|
};
|
76
76
|
export {
|
77
|
-
|
77
|
+
k as default
|
78
78
|
};
|
@@ -20,7 +20,7 @@ const T = (s, n) => {
|
|
20
20
|
children: s
|
21
21
|
}
|
22
22
|
);
|
23
|
-
},
|
23
|
+
}, b = ({
|
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: d = null,
|
35
|
+
isSpinning: f = !1,
|
36
|
+
position: I = null
|
37
37
|
}) => {
|
38
38
|
const $ = p([
|
39
39
|
"icon",
|
40
40
|
r,
|
41
41
|
l,
|
42
|
-
|
42
|
+
I,
|
43
43
|
t
|
44
|
-
]),
|
44
|
+
]), c = p([
|
45
45
|
"mdi",
|
46
46
|
`mdi-${x}`,
|
47
|
-
|
48
|
-
|
47
|
+
d ? `mdi-${d}` : null,
|
48
|
+
f ? "mdi-spin" : null,
|
49
49
|
l ? `mdi-${N[l]}px` : "mdi-24px",
|
50
50
|
e
|
51
|
-
]),
|
51
|
+
]), m = n ?? u({
|
52
52
|
tag: "icon",
|
53
|
-
parsedClasses:
|
53
|
+
parsedClasses: c,
|
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 ?? `${m}-i`, o = /* @__PURE__ */ E(
|
66
66
|
"span",
|
67
67
|
{
|
68
|
-
"data-testid":
|
68
|
+
"data-testid": m,
|
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: c,
|
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(o, r) : o;
|
85
85
|
};
|
86
86
|
export {
|
87
|
-
|
87
|
+
b 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 C } from "../../../functions/parsers.js";
|
3
|
+
const x = ({
|
4
|
+
testId: n = null,
|
5
|
+
containerTestId: t = null,
|
6
6
|
cssClasses: i = null,
|
7
|
-
containerCssClasses:
|
8
|
-
style:
|
7
|
+
containerCssClasses: d = null,
|
8
|
+
style: u = null,
|
9
9
|
containerStyle: m = null,
|
10
10
|
src: r,
|
11
|
-
alt:
|
11
|
+
alt: o = null,
|
12
12
|
fixedSize: g = null,
|
13
13
|
isRounded: c = !1
|
14
14
|
}) => {
|
15
|
-
const
|
15
|
+
const e = a([
|
16
16
|
"image",
|
17
17
|
g,
|
18
|
-
|
19
|
-
]),
|
18
|
+
d
|
19
|
+
]), f = a([
|
20
20
|
c ? "is-rounded" : null,
|
21
21
|
i
|
22
|
-
]),
|
22
|
+
]), s = t ?? C({ tag: "image", parsedClasses: e }), p = n ?? `${s}-img`;
|
23
23
|
return /* @__PURE__ */ l(
|
24
24
|
"figure",
|
25
25
|
{
|
26
|
-
"data-testid":
|
27
|
-
className:
|
26
|
+
"data-testid": s,
|
27
|
+
className: e,
|
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": p,
|
33
|
+
className: f,
|
34
|
+
style: u ?? void 0,
|
35
35
|
src: r,
|
36
|
-
alt:
|
36
|
+
alt: o ?? void 0
|
37
37
|
}
|
38
38
|
)
|
39
39
|
}
|
40
40
|
);
|
41
41
|
};
|
42
42
|
export {
|
43
|
-
|
43
|
+
x as default
|
44
44
|
};
|