reactive-bulma 5.1.30 → 5.1.32
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/components/atoms/Block/index.js +1 -2
- package/dist/components/atoms/Box/index.js +1 -2
- package/dist/components/atoms/BreadcrumbItem/index.js +1 -2
- package/dist/components/atoms/Button/index.js +1 -2
- package/dist/components/atoms/Checkbox/index.js +1 -2
- package/dist/components/atoms/Column/index.js +1 -2
- package/dist/components/atoms/Delete/index.js +1 -2
- package/dist/components/atoms/DropdownItem/index.js +1 -2
- package/dist/components/atoms/DropdownTrigger/index.js +1 -2
- package/dist/components/atoms/File/index.js +6 -7
- package/dist/components/atoms/GridCell/index.js +1 -2
- package/dist/components/atoms/Icon/index.js +21 -22
- package/dist/components/atoms/Image/index.js +7 -8
- package/dist/components/atoms/Input/index.js +9 -10
- package/dist/components/atoms/LevelHeader/index.js +1 -2
- package/dist/components/atoms/MenuItem/index.js +1 -2
- package/dist/components/atoms/NavBarItem/index.js +1 -2
- package/dist/components/atoms/PaginationItem/index.js +1 -2
- package/dist/components/atoms/ProgressBar/index.js +1 -2
- package/dist/components/atoms/RadioButton/index.js +1 -2
- package/dist/components/atoms/Select/index.js +9 -10
- package/dist/components/atoms/Skeleton/index.js +1 -2
- package/dist/components/atoms/TabItem/index.js +6 -7
- package/dist/components/atoms/TableCell/index.js +1 -2
- package/dist/components/atoms/TableHeadCell/index.js +1 -2
- package/dist/components/atoms/Tag/index.js +1 -2
- package/dist/components/atoms/TagWithAddon/index.js +1 -2
- package/dist/components/atoms/TextArea/index.js +8 -9
- package/dist/components/atoms/Tile/index.js +1 -2
- package/dist/components/atoms/Title/index.js +1 -2
- package/dist/components/molecules/Breadcrumbs/index.js +13 -14
- package/dist/components/molecules/ButtonGroup/index.js +11 -12
- package/dist/components/molecules/CheckboxGroup/index.js +2 -3
- package/dist/components/molecules/ColumnGroup/index.js +7 -8
- package/dist/components/molecules/Dropdown/index.js +8 -9
- package/dist/components/molecules/Footer/index.js +1 -2
- package/dist/components/molecules/FormFieldInput/index.js +1 -2
- package/dist/components/molecules/Grid/index.js +5 -6
- package/dist/components/molecules/InputControl/index.js +21 -22
- package/dist/components/molecules/LevelItem/index.js +1 -2
- package/dist/components/molecules/Media/index.js +1 -2
- package/dist/components/molecules/Menu/index.js +8 -9
- package/dist/components/molecules/MenuList/index.js +5 -6
- package/dist/components/molecules/Message/index.js +7 -8
- package/dist/components/molecules/Modal/index.js +1 -2
- package/dist/components/molecules/NavBarBrand/index.js +6 -7
- package/dist/components/molecules/NavBarDropdown/index.js +5 -6
- package/dist/components/molecules/Notification/index.js +7 -8
- package/dist/components/molecules/Pagination/index.js +8 -9
- package/dist/components/molecules/PanelBlock/index.js +16 -17
- package/dist/components/molecules/PanelTabs/index.js +1 -2
- package/dist/components/molecules/Section/index.js +1 -2
- package/dist/components/molecules/TableRow/index.js +6 -7
- package/dist/components/molecules/Tabs/index.js +6 -7
- package/dist/components/molecules/TagList/index.js +6 -7
- package/dist/components/molecules/TileBox/index.js +6 -7
- package/dist/components/molecules/index.js +3 -3
- package/dist/components/organisms/Card/index.js +7 -8
- package/dist/components/organisms/FormField/index.js +16 -17
- package/dist/components/organisms/Hero/index.js +1 -2
- package/dist/components/organisms/Level/index.js +5 -6
- package/dist/components/organisms/NavBar/index.js +16 -17
- package/dist/components/organisms/Panel/index.js +6 -7
- package/dist/components/organisms/Table/index.js +11 -12
- package/dist/components/organisms/TileGroup/index.js +6 -7
- package/dist/constants/classes.js +1 -2
- package/dist/constants/regExp.js +1 -2
- package/dist/functions/generators.js +1 -2
- package/dist/functions/parsers.js +1 -2
- package/dist/interfaces/moleculeProps.js +1 -2
- package/dist/types/domTypes.js +1 -2
- package/package.json +24 -24
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import "../../atoms/index.js";
|
|
1
2
|
import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
2
3
|
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
5
|
-
import "../../atoms/index.js";
|
|
4
|
+
import r from "../../atoms/PaginationItem/index.js";
|
|
5
|
+
import { generateKey as i } from "../../../functions/generators.js";
|
|
6
6
|
import a, { useCallback as o, useMemo as s } from "react";
|
|
7
7
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/molecules/Pagination/index.tsx
|
|
9
9
|
var u = "pagination", d = "pagination-list", f = (n) => {
|
|
10
10
|
if (!n) return null;
|
|
11
11
|
let r = t([n.cssClasses, n.isDisabled ? e.DISABLED : null]);
|
|
@@ -41,10 +41,10 @@ var u = "pagination", d = "pagination-list", f = (n) => {
|
|
|
41
41
|
children: "…"
|
|
42
42
|
}) }) : null;
|
|
43
43
|
return y.map((t, n, { length: o }) => {
|
|
44
|
-
let s = o - b - 1, d = /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
|
|
45
|
-
if (n === 0) return /* @__PURE__ */ l(a.Fragment, { children: [d, e] }, `first-pagination-item-${
|
|
46
|
-
if (!C || n > b && n < s) return /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
|
|
47
|
-
if (n === o - 1) return /* @__PURE__ */ l(a.Fragment, { children: [e, d] }, `last-${u}-item-${
|
|
44
|
+
let s = o - b - 1, d = /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(r, { ...t }) });
|
|
45
|
+
if (n === 0) return /* @__PURE__ */ l(a.Fragment, { children: [d, e] }, `first-pagination-item-${i()}`);
|
|
46
|
+
if (!C || n > b && n < s) return /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(r, { ...t }) }, `${u}-item-${i()}`);
|
|
47
|
+
if (n === o - 1) return /* @__PURE__ */ l(a.Fragment, { children: [e, d] }, `last-${u}-item-${i()}`);
|
|
48
48
|
});
|
|
49
49
|
}, [
|
|
50
50
|
y,
|
|
@@ -69,5 +69,4 @@ var u = "pagination", d = "pagination-list", f = (n) => {
|
|
|
69
69
|
]
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
//#endregion
|
|
73
72
|
export { p as default };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import e from "../InputControl/index.js";
|
|
2
|
+
import t from "../../atoms/Button/index.js";
|
|
3
|
+
import n from "../../atoms/Icon/index.js";
|
|
4
4
|
import "../../atoms/index.js";
|
|
5
|
-
import i from "
|
|
5
|
+
import { parseClasses as r, parseTestId as i } from "../../../functions/parsers.js";
|
|
6
6
|
import a from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/molecules/PanelBlock/index.tsx
|
|
9
9
|
var c = ({ type: c, props: l }, u, d, f, p) => {
|
|
10
10
|
switch (c) {
|
|
11
11
|
case "icon": {
|
|
12
|
-
let
|
|
12
|
+
let e = r(["panel-icon", d]), t = u ?? i({
|
|
13
13
|
tag: "panel-icon",
|
|
14
|
-
parsedClasses:
|
|
14
|
+
parsedClasses: e
|
|
15
15
|
});
|
|
16
16
|
return /* @__PURE__ */ s(a.Fragment, { children: [/* @__PURE__ */ o("span", {
|
|
17
|
-
"data-testid":
|
|
18
|
-
className:
|
|
17
|
+
"data-testid": t,
|
|
18
|
+
className: e,
|
|
19
19
|
style: f ?? void 0,
|
|
20
|
-
children: /* @__PURE__ */ o(
|
|
20
|
+
children: /* @__PURE__ */ o(n, { ...l })
|
|
21
21
|
}), p] });
|
|
22
22
|
}
|
|
23
|
-
case "control": return /* @__PURE__ */ o(
|
|
24
|
-
case "button": return /* @__PURE__ */ o(
|
|
23
|
+
case "control": return /* @__PURE__ */ o(e, { ...l });
|
|
24
|
+
case "button": return /* @__PURE__ */ o(t, { ...l });
|
|
25
25
|
}
|
|
26
|
-
}, l = ({ testId:
|
|
27
|
-
let m =
|
|
26
|
+
}, l = ({ testId: e = null, containerTestId: t = null, cssClasses: n = null, containerCssClasses: a = null, style: s = null, containerStyle: l = null, config: u, blockText: d = null, isActive: f = !1, onClick: p }) => {
|
|
27
|
+
let m = r([
|
|
28
28
|
"panel-block",
|
|
29
29
|
f ? "is-active" : null,
|
|
30
30
|
a
|
|
31
|
-
]), h =
|
|
31
|
+
]), h = t ?? i({
|
|
32
32
|
tag: "panel-block",
|
|
33
33
|
parsedClasses: m
|
|
34
34
|
});
|
|
@@ -38,8 +38,7 @@ var c = ({ type: c, props: l }, u, d, f, p) => {
|
|
|
38
38
|
style: l ?? void 0,
|
|
39
39
|
"aria-hidden": "true",
|
|
40
40
|
onClick: p ?? void 0,
|
|
41
|
-
children: c(u,
|
|
41
|
+
children: c(u, e, n, s, d)
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
//#endregion
|
|
45
44
|
export { l as default };
|
|
@@ -2,7 +2,7 @@ import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.
|
|
|
2
2
|
import { generateKey as n } from "../../../functions/generators.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/molecules/PanelTabs/index.tsx
|
|
6
6
|
var i = ({ testId: i = null, cssClasses: a = null, style: o = null, tabList: s }) => {
|
|
7
7
|
let c = e(["panel-tabs", a]), l = i ?? t({
|
|
8
8
|
tag: "panel-tabs",
|
|
@@ -20,5 +20,4 @@ var i = ({ testId: i = null, cssClasses: a = null, style: o = null, tabList: s }
|
|
|
20
20
|
}, `tab-item-${n()}`))
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
//#endregion
|
|
24
23
|
export { i as default };
|
|
@@ -2,7 +2,7 @@ import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
|
2
2
|
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/molecules/Section/index.tsx
|
|
6
6
|
var i = ({ testId: i = null, cssClasses: a = null, style: o = null, content: s, size: c = null }) => {
|
|
7
7
|
let l = "section", u = t([
|
|
8
8
|
l,
|
|
@@ -19,5 +19,4 @@ var i = ({ testId: i = null, cssClasses: a = null, style: o = null, content: s,
|
|
|
19
19
|
children: s
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { i as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import "../../atoms/index.js";
|
|
1
2
|
import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
2
3
|
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
3
|
-
import
|
|
4
|
-
import i from "../../atoms/
|
|
5
|
-
import a from "
|
|
6
|
-
import "../../atoms/index.js";
|
|
4
|
+
import r from "../../atoms/TableHeadCell/index.js";
|
|
5
|
+
import i from "../../atoms/TableCell/index.js";
|
|
6
|
+
import { generateKey as a } from "../../../functions/generators.js";
|
|
7
7
|
import { useMemo as o } from "react";
|
|
8
8
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/molecules/TableRow/index.tsx
|
|
10
10
|
var l = ({ testId: l = null, cssClasses: u = null, style: d = null, color: f = null, headCell: p = null, listOfCells: m, isSelected: h = !1, onClick: g = null }) => {
|
|
11
11
|
let _ = t([
|
|
12
12
|
h ? "is-selected" : null,
|
|
@@ -15,7 +15,7 @@ var l = ({ testId: l = null, cssClasses: u = null, style: d = null, color: f = n
|
|
|
15
15
|
]), v = l ?? n({
|
|
16
16
|
tag: "table-row",
|
|
17
17
|
parsedClasses: _
|
|
18
|
-
}), y = o(() => p ? /* @__PURE__ */ s(
|
|
18
|
+
}), y = o(() => p ? /* @__PURE__ */ s(r, { ...p }) : null, [p]), b = o(() => m.map((e) => /* @__PURE__ */ s(i, { ...e }, `table-row-${a()}`)), [m]);
|
|
19
19
|
return /* @__PURE__ */ c("tr", {
|
|
20
20
|
"data-testid": v,
|
|
21
21
|
className: _,
|
|
@@ -24,5 +24,4 @@ var l = ({ testId: l = null, cssClasses: u = null, style: d = null, color: f = n
|
|
|
24
24
|
children: [y, b]
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { l as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import "../../atoms/index.js";
|
|
1
2
|
import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
2
3
|
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
5
|
-
import "../../atoms/index.js";
|
|
4
|
+
import r from "../../atoms/TabItem/index.js";
|
|
5
|
+
import { generateKey as i } from "../../../functions/generators.js";
|
|
6
6
|
import { useMemo as a } from "react";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/molecules/Tabs/index.tsx
|
|
9
9
|
var s = ({ testId: s = null, cssClasses: c = null, style: l = null, tabs: u, alignment: d = null, size: f = null, format: p = null, isRounded: m = null, isFullWidth: h = null }) => {
|
|
10
10
|
let g = t([
|
|
11
11
|
"tabs",
|
|
@@ -20,8 +20,8 @@ var s = ({ testId: s = null, cssClasses: c = null, style: l = null, tabs: u, ali
|
|
|
20
20
|
parsedClasses: g
|
|
21
21
|
}), v = a(() => u.map((t) => /* @__PURE__ */ o("li", {
|
|
22
22
|
className: t.isActive ? e.ACTIVE : void 0,
|
|
23
|
-
children: /* @__PURE__ */ o(
|
|
24
|
-
}, `tab-item-${
|
|
23
|
+
children: /* @__PURE__ */ o(r, { ...t })
|
|
24
|
+
}, `tab-item-${i()}`)), [u]);
|
|
25
25
|
return /* @__PURE__ */ o("section", {
|
|
26
26
|
"data-testid": _,
|
|
27
27
|
className: g,
|
|
@@ -29,5 +29,4 @@ var s = ({ testId: s = null, cssClasses: c = null, style: l = null, tabs: u, ali
|
|
|
29
29
|
children: /* @__PURE__ */ o("ul", { children: v })
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { s as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
2
|
-
import n from "../../atoms/Tag/index.js";
|
|
3
|
-
import { generateKey as r } from "../../../functions/generators.js";
|
|
4
1
|
import "../../atoms/index.js";
|
|
2
|
+
import e from "../../atoms/Tag/index.js";
|
|
3
|
+
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
4
|
+
import { generateKey as r } from "../../../functions/generators.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/molecules/TagList/index.tsx
|
|
8
8
|
var a = ({ testId: a = null, cssClasses: o = null, style: s = null, listOfTags: c }) => {
|
|
9
|
-
let l =
|
|
9
|
+
let l = t(["tags", o]), u = a ?? n({
|
|
10
10
|
tag: "tags",
|
|
11
11
|
parsedClasses: l
|
|
12
12
|
});
|
|
@@ -14,8 +14,7 @@ var a = ({ testId: a = null, cssClasses: o = null, style: s = null, listOfTags:
|
|
|
14
14
|
"data-testid": u,
|
|
15
15
|
className: l,
|
|
16
16
|
style: s ?? void 0,
|
|
17
|
-
children: c.map((
|
|
17
|
+
children: c.map((t) => /* @__PURE__ */ i(e, { ...t }, `tag-list-item-${r()}`))
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { a as default };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
2
|
-
import n from "../../atoms/Tile/index.js";
|
|
3
1
|
import "../../atoms/index.js";
|
|
2
|
+
import e from "../../atoms/Tile/index.js";
|
|
3
|
+
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/molecules/TileBox/index.tsx
|
|
7
7
|
var i = ({ testId: i = null, cssClasses: a = "box", style: o = null, children: s = null, context: c = "is-child", size: l, color: u, isVertical: d }) => {
|
|
8
|
-
let f =
|
|
8
|
+
let f = t([
|
|
9
9
|
"tileBox",
|
|
10
10
|
c,
|
|
11
11
|
l,
|
|
12
12
|
u ? `notification ${u}` : null,
|
|
13
13
|
d ? "is-vertical" : null,
|
|
14
14
|
a
|
|
15
|
-
]), p = i ??
|
|
15
|
+
]), p = i ?? n({
|
|
16
16
|
tag: "tileBox",
|
|
17
17
|
parsedClasses: f,
|
|
18
18
|
rules: [{
|
|
@@ -23,7 +23,7 @@ var i = ({ testId: i = null, cssClasses: a = "box", style: o = null, children: s
|
|
|
23
23
|
replacer: "-"
|
|
24
24
|
}]
|
|
25
25
|
});
|
|
26
|
-
return /* @__PURE__ */ r(
|
|
26
|
+
return /* @__PURE__ */ r(e, {
|
|
27
27
|
testId: p,
|
|
28
28
|
cssClasses: a,
|
|
29
29
|
style: o ?? void 0,
|
|
@@ -34,5 +34,4 @@ var i = ({ testId: i = null, cssClasses: a = "box", style: o = null, children: s
|
|
|
34
34
|
children: s ?? void 0
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { i as default };
|
|
@@ -4,8 +4,8 @@ import n from "./Notification/index.js";
|
|
|
4
4
|
import r from "./Breadcrumbs/index.js";
|
|
5
5
|
import i from "./Dropdown/index.js";
|
|
6
6
|
import a from "./Message/index.js";
|
|
7
|
-
import o from "./
|
|
8
|
-
import s from "./
|
|
7
|
+
import o from "./Menu/index.js";
|
|
8
|
+
import s from "./MenuList/index.js";
|
|
9
9
|
import c from "./Pagination/index.js";
|
|
10
10
|
import l from "./Modal/index.js";
|
|
11
11
|
import u from "./Tabs/index.js";
|
|
@@ -24,4 +24,4 @@ import S from "./FormFieldInput/index.js";
|
|
|
24
24
|
import C from "./TagList/index.js";
|
|
25
25
|
import w from "./CheckboxGroup/index.js";
|
|
26
26
|
import T from "./Grid/index.js";
|
|
27
|
-
export { r as Breadcrumbs, e as ButtonGroup, w as CheckboxGroup, t as ColumnGroup, i as Dropdown, g as Footer, S as FormFieldInput, T as Grid, d as InputControl, m as LevelItem, _ as Media,
|
|
27
|
+
export { r as Breadcrumbs, e as ButtonGroup, w as CheckboxGroup, t as ColumnGroup, i as Dropdown, g as Footer, S as FormFieldInput, T as Grid, d as InputControl, m as LevelItem, _ as Media, o as Menu, s as MenuList, a as Message, l as Modal, y as NavBarBrand, b as NavBarDropdown, n as Notification, c as Pagination, f as PanelBlock, p as PanelTabs, v as Section, x as TableRow, u as Tabs, C as TagList, h as TileBox };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
2
|
-
import { generateKey as n } from "../../../functions/generators.js";
|
|
3
|
-
import r from "../../atoms/Image/index.js";
|
|
4
1
|
import "../../atoms/index.js";
|
|
2
|
+
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
3
|
+
import n from "../../atoms/Image/index.js";
|
|
4
|
+
import { generateKey as r } from "../../../functions/generators.js";
|
|
5
5
|
import { useMemo as i } from "react";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/organisms/Card/index.tsx
|
|
8
8
|
var s = ({ testId: s = null, cssClasses: c = null, style: l = null, headerText: u = null, image: d = null, content: f, footerLinks: p = null }) => {
|
|
9
9
|
let m = e(["card", c]), h = s ?? t({
|
|
10
10
|
tag: "card",
|
|
@@ -29,7 +29,7 @@ var s = ({ testId: s = null, cssClasses: c = null, style: l = null, headerText:
|
|
|
29
29
|
}) : null, [u, h]), _ = i(() => d ? /* @__PURE__ */ a("section", {
|
|
30
30
|
"data-testid": `${h}-image`,
|
|
31
31
|
className: "card-image",
|
|
32
|
-
children: /* @__PURE__ */ a(
|
|
32
|
+
children: /* @__PURE__ */ a(n, { ...d })
|
|
33
33
|
}) : null, [d, h]), v = i(() => /* @__PURE__ */ a("section", {
|
|
34
34
|
"data-testid": `${h}-content`,
|
|
35
35
|
className: "card-content",
|
|
@@ -37,7 +37,7 @@ var s = ({ testId: s = null, cssClasses: c = null, style: l = null, headerText:
|
|
|
37
37
|
"data-testid": `${h}-content-item-${t}`,
|
|
38
38
|
className: "content",
|
|
39
39
|
children: e
|
|
40
|
-
}, `card-content-item-${
|
|
40
|
+
}, `card-content-item-${r()}`)) : /* @__PURE__ */ a("section", {
|
|
41
41
|
className: "content",
|
|
42
42
|
children: f
|
|
43
43
|
})
|
|
@@ -49,7 +49,7 @@ var s = ({ testId: s = null, cssClasses: c = null, style: l = null, headerText:
|
|
|
49
49
|
"aria-hidden": "true",
|
|
50
50
|
onClick: e.onClick ?? void 0,
|
|
51
51
|
children: e.text
|
|
52
|
-
}, `card-footer-item-${
|
|
52
|
+
}, `card-footer-item-${r()}`))
|
|
53
53
|
}) : null, [p, h]);
|
|
54
54
|
return /* @__PURE__ */ o("section", {
|
|
55
55
|
"data-testid": h,
|
|
@@ -63,5 +63,4 @@ var s = ({ testId: s = null, cssClasses: c = null, style: l = null, headerText:
|
|
|
63
63
|
]
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
-
//#endregion
|
|
67
66
|
export { s as default };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import r from "
|
|
1
|
+
import e from "../../molecules/FormFieldInput/index.js";
|
|
2
|
+
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
3
|
+
import { generateKey as r } from "../../../functions/generators.js";
|
|
4
4
|
import { useMemo as i } from "react";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/organisms/FormField/index.tsx
|
|
7
7
|
var o = ({ testId: o = null, cssClasses: s = null, style: c = null, inputsConfig: l, isHorizontal: u = !1, isGrouped: d = !1, withAddons: f = !1 }) => {
|
|
8
|
-
let p =
|
|
8
|
+
let p = t([
|
|
9
9
|
"field",
|
|
10
10
|
u ? "is-horizontal" : null,
|
|
11
11
|
d ? "is-grouped" : null,
|
|
12
12
|
f ? "has-addons" : null,
|
|
13
13
|
s
|
|
14
|
-
]), m = o ??
|
|
14
|
+
]), m = o ?? n({
|
|
15
15
|
tag: "field",
|
|
16
16
|
parsedClasses: p
|
|
17
17
|
}), h = i(() => {
|
|
18
|
-
if (d) return Array.isArray(l) ? l.map((
|
|
19
|
-
let i = `grouped-input-control-body-${
|
|
20
|
-
return /* @__PURE__ */ a(
|
|
21
|
-
...
|
|
22
|
-
isHorizontal:
|
|
23
|
-
testId:
|
|
18
|
+
if (d) return Array.isArray(l) ? l.map((t, n) => {
|
|
19
|
+
let i = `grouped-input-control-body-${r()}`;
|
|
20
|
+
return /* @__PURE__ */ a(e, {
|
|
21
|
+
...t,
|
|
22
|
+
isHorizontal: t.isHorizontal ?? u,
|
|
23
|
+
testId: t.testId ?? `test-grouped-input-control-${n}`
|
|
24
24
|
}, i);
|
|
25
|
-
}) : /* @__PURE__ */ a(
|
|
25
|
+
}) : /* @__PURE__ */ a(e, {
|
|
26
26
|
...l,
|
|
27
27
|
isHorizontal: l.isHorizontal ?? u
|
|
28
|
-
}, `input-control-body-${
|
|
28
|
+
}, `input-control-body-${r()}`);
|
|
29
29
|
{
|
|
30
|
-
let
|
|
30
|
+
let t = Array.isArray(l) ? null : {
|
|
31
31
|
...l,
|
|
32
32
|
isHorizontal: l.isHorizontal ?? u
|
|
33
33
|
};
|
|
34
|
-
return
|
|
34
|
+
return t === null ? null : /* @__PURE__ */ a(e, { ...t });
|
|
35
35
|
}
|
|
36
36
|
}, [
|
|
37
37
|
l,
|
|
@@ -48,5 +48,4 @@ var o = ({ testId: o = null, cssClasses: s = null, style: c = null, inputsConfig
|
|
|
48
48
|
}) : h
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { o as default };
|
|
@@ -2,7 +2,7 @@ import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
|
2
2
|
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/organisms/Hero/index.tsx
|
|
6
6
|
var a = "hero", o = (e, t, n, i) => t === "body" || i === "fullheight" ? /* @__PURE__ */ r("section", {
|
|
7
7
|
"data-testid": `${n}-${t}`,
|
|
8
8
|
className: `${a}-${t}`,
|
|
@@ -28,5 +28,4 @@ var a = "hero", o = (e, t, n, i) => t === "body" || i === "fullheight" ? /* @__P
|
|
|
28
28
|
]
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { s as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
2
|
-
import { generateKey as n } from "../../../functions/generators.js";
|
|
3
|
-
import r from "../../molecules/LevelItem/index.js";
|
|
4
1
|
import "../../molecules/index.js";
|
|
2
|
+
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
3
|
+
import n from "../../molecules/LevelItem/index.js";
|
|
4
|
+
import { generateKey as r } from "../../../functions/generators.js";
|
|
5
5
|
import { useMemo as i } from "react";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/organisms/Level/index.tsx
|
|
8
8
|
var s = (e, t) => {
|
|
9
9
|
if (e === null) return null;
|
|
10
|
-
let i = e.map((e) => /* @__PURE__ */ a(
|
|
10
|
+
let i = e.map((e) => /* @__PURE__ */ a(n, { ...e }, `level-item-${r()}`));
|
|
11
11
|
return t === "center" ? i : /* @__PURE__ */ a("section", {
|
|
12
12
|
className: `level-${t}`,
|
|
13
13
|
children: i
|
|
@@ -32,5 +32,4 @@ var s = (e, t) => {
|
|
|
32
32
|
]
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
//#endregion
|
|
36
35
|
export { c as default };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
2
|
-
import { TEST_ID_REGEXP as t } from "../../../constants/regExp.js";
|
|
3
|
-
import { parseClasses as n, parseTestId as r } from "../../../functions/parsers.js";
|
|
4
|
-
import { generateKey as i } from "../../../functions/generators.js";
|
|
5
|
-
import a from "../../atoms/NavBarItem/index.js";
|
|
6
1
|
import "../../atoms/index.js";
|
|
7
|
-
import o from "../../molecules/NavBarBrand/index.js";
|
|
8
|
-
import s from "../../molecules/NavBarDropdown/index.js";
|
|
9
2
|
import "../../molecules/index.js";
|
|
3
|
+
import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
4
|
+
import { TEST_ID_REGEXP as t } from "../../../constants/regExp.js";
|
|
5
|
+
import n from "../../atoms/NavBarItem/index.js";
|
|
6
|
+
import { parseClasses as r, parseTestId as i } from "../../../functions/parsers.js";
|
|
7
|
+
import a from "../../molecules/NavBarBrand/index.js";
|
|
8
|
+
import o from "../../molecules/NavBarDropdown/index.js";
|
|
9
|
+
import { generateKey as s } from "../../../functions/generators.js";
|
|
10
10
|
import { useCallback as c, useMemo as l } from "react";
|
|
11
11
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
|
-
var f = (e, t,
|
|
14
|
-
"data-testid": `${
|
|
12
|
+
// src/components/organisms/NavBar/index.tsx
|
|
13
|
+
var f = (e, t, r) => e ? /* @__PURE__ */ u("section", {
|
|
14
|
+
"data-testid": `${r}-${t}`,
|
|
15
15
|
className: `navbar-${t}`,
|
|
16
|
-
children: e.itemList.map((e) => e.children === void 0 ? /* @__PURE__ */ u(
|
|
17
|
-
}) : null, p = ({ testId:
|
|
18
|
-
let x = "navbar", S =
|
|
16
|
+
children: e.itemList.map((e) => e.children === void 0 ? /* @__PURE__ */ u(o, { ...e }, `navbar-section-${t}-${s()}`) : /* @__PURE__ */ u(n, { ...e }, `navbar-section-${t}-${s()}`))
|
|
17
|
+
}) : null, p = ({ testId: n = null, cssClasses: o = null, style: s = null, brandConfig: p = null, itemsAtStart: m = null, itemsAtEnd: h = null, fixedPosition: g = null, color: _ = null, isTransparent: v = !1, isSpaced: y = !1, hasShadow: b = !1 }) => {
|
|
18
|
+
let x = "navbar", S = r([
|
|
19
19
|
x,
|
|
20
20
|
g,
|
|
21
21
|
_ ? `${e.IS}${_}` : null,
|
|
22
22
|
v ? e.TRANSPARENT : null,
|
|
23
23
|
y ? e.SPACED : null,
|
|
24
24
|
b ? e.SHADOW : null,
|
|
25
|
-
|
|
26
|
-
]), C =
|
|
25
|
+
o
|
|
26
|
+
]), C = n ?? i({
|
|
27
27
|
tag: x,
|
|
28
28
|
parsedClasses: S,
|
|
29
29
|
rules: [{
|
|
@@ -36,7 +36,7 @@ var f = (e, t, n) => e ? /* @__PURE__ */ u("section", {
|
|
|
36
36
|
}), w = l(() => p ? /* @__PURE__ */ u("section", {
|
|
37
37
|
"data-testid": "navbar-brand",
|
|
38
38
|
className: "navbar-brand",
|
|
39
|
-
children: /* @__PURE__ */ u(
|
|
39
|
+
children: /* @__PURE__ */ u(a, { ...p })
|
|
40
40
|
}) : null, [p]), T = c((e, t, n) => f(e, t, n), []);
|
|
41
41
|
return /* @__PURE__ */ d("nav", {
|
|
42
42
|
"data-testid": C,
|
|
@@ -48,5 +48,4 @@ var f = (e, t, n) => e ? /* @__PURE__ */ u("section", {
|
|
|
48
48
|
})]
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { p as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
2
|
-
import { generateKey as n } from "../../../functions/generators.js";
|
|
3
|
-
import r from "../../molecules/PanelBlock/index.js";
|
|
4
|
-
import i from "../../molecules/PanelTabs/index.js";
|
|
5
1
|
import "../../molecules/index.js";
|
|
2
|
+
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
3
|
+
import n from "../../molecules/PanelBlock/index.js";
|
|
4
|
+
import r from "../../molecules/PanelTabs/index.js";
|
|
5
|
+
import { generateKey as i } from "../../../functions/generators.js";
|
|
6
6
|
import { useMemo as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/organisms/Panel/index.tsx
|
|
9
9
|
var c = ({ testId: c = null, cssClasses: l = null, style: u = null, headerText: d, panelTabs: f = null, blockList: p, color: m = null }) => {
|
|
10
10
|
let h = e([
|
|
11
11
|
"panel",
|
|
@@ -14,7 +14,7 @@ var c = ({ testId: c = null, cssClasses: l = null, style: u = null, headerText:
|
|
|
14
14
|
]), g = c ?? t({
|
|
15
15
|
tag: "panel",
|
|
16
16
|
parsedClasses: h
|
|
17
|
-
}), _ = a(() => f ? /* @__PURE__ */ o(
|
|
17
|
+
}), _ = a(() => f ? /* @__PURE__ */ o(r, { ...f }) : null, [f]), v = a(() => p.map((e) => /* @__PURE__ */ o(n, { ...e }, `panel-block-item-${i()}`)), [p]);
|
|
18
18
|
return /* @__PURE__ */ s("article", {
|
|
19
19
|
"data-testid": g,
|
|
20
20
|
className: h,
|
|
@@ -29,5 +29,4 @@ var c = ({ testId: c = null, cssClasses: l = null, style: u = null, headerText:
|
|
|
29
29
|
]
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { c as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { parseClasses as e, parseTestId as t } from "../../../functions/parsers.js";
|
|
2
|
-
import { generateKey as n } from "../../../functions/generators.js";
|
|
3
|
-
import r from "../../atoms/TableHeadCell/index.js";
|
|
4
1
|
import "../../atoms/index.js";
|
|
5
|
-
import i from "../../molecules/TableRow/index.js";
|
|
6
2
|
import "../../molecules/index.js";
|
|
3
|
+
import e from "../../atoms/TableHeadCell/index.js";
|
|
4
|
+
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
5
|
+
import r from "../../molecules/TableRow/index.js";
|
|
6
|
+
import { generateKey as i } from "../../../functions/generators.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
var s = (
|
|
9
|
+
// src/components/organisms/Table/index.tsx
|
|
10
|
+
var s = (t, n) => /* @__PURE__ */ a("tr", { children: n.map((n) => /* @__PURE__ */ a(e, { ...n }, `table-${t}-item-${i()}`)) }), c = ({ tableTestId: e, tableClasses: t, style: n, head: c, body: l, foot: u }) => /* @__PURE__ */ o("table", {
|
|
11
11
|
"data-testid": e,
|
|
12
12
|
className: t,
|
|
13
|
-
style:
|
|
13
|
+
style: n ?? void 0,
|
|
14
14
|
children: [
|
|
15
15
|
/* @__PURE__ */ a("thead", {
|
|
16
16
|
"data-testid": `${e}-head`,
|
|
@@ -18,15 +18,15 @@ var s = (e, t) => /* @__PURE__ */ a("tr", { children: t.map((t) => /* @__PURE__
|
|
|
18
18
|
}),
|
|
19
19
|
/* @__PURE__ */ a("tbody", {
|
|
20
20
|
"data-testid": `${e}-body`,
|
|
21
|
-
children: l.map((e) => /* @__PURE__ */ a(
|
|
21
|
+
children: l.map((e) => /* @__PURE__ */ a(r, { ...e }, `table-body-item-${i()}`))
|
|
22
22
|
}),
|
|
23
23
|
u ? /* @__PURE__ */ a("tfoot", {
|
|
24
24
|
"data-testid": `${e}-foot`,
|
|
25
25
|
children: s("foot", u)
|
|
26
26
|
}) : null
|
|
27
27
|
]
|
|
28
|
-
}), l = ({ testId:
|
|
29
|
-
let g =
|
|
28
|
+
}), l = ({ testId: e = null, cssClasses: r = null, style: i = null, head: o, body: s, foot: l = null, isBordered: u = !1, isStriped: d = !1, isNarrow: f = !1, isHoverable: p = !1, isFullwidth: m = !1, isContained: h = !1 }) => {
|
|
29
|
+
let g = t([
|
|
30
30
|
"table",
|
|
31
31
|
u ? "is-bordered" : null,
|
|
32
32
|
d ? "is-striped" : null,
|
|
@@ -34,7 +34,7 @@ var s = (e, t) => /* @__PURE__ */ a("tr", { children: t.map((t) => /* @__PURE__
|
|
|
34
34
|
p ? "is-hoverable" : null,
|
|
35
35
|
m ? "is-fullwidth" : null,
|
|
36
36
|
r
|
|
37
|
-
]), _ =
|
|
37
|
+
]), _ = e ?? n({
|
|
38
38
|
tag: "table",
|
|
39
39
|
parsedClasses: g
|
|
40
40
|
});
|
|
@@ -58,5 +58,4 @@ var s = (e, t) => /* @__PURE__ */ a("tr", { children: t.map((t) => /* @__PURE__
|
|
|
58
58
|
foot: l
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
//#endregion
|
|
62
61
|
export { l as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import "../../atoms/index.js";
|
|
1
2
|
import { TEST_ID_REGEXP as e } from "../../../constants/regExp.js";
|
|
2
3
|
import { parseClasses as t, parseTestId as n } from "../../../functions/parsers.js";
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
5
|
-
import "../../atoms/index.js";
|
|
4
|
+
import r from "../../atoms/Tile/index.js";
|
|
5
|
+
import { generateKey as i } from "../../../functions/generators.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as a } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/organisms/TileGroup/index.tsx
|
|
9
9
|
var o = ({ testId: o = null, cssClasses: s = null, style: c = null, context: l = "is-ancestor", size: u = null, isVertical: d = !1, groupConfig: f }) => {
|
|
10
10
|
let p = "tile-group", m = t([
|
|
11
11
|
p,
|
|
@@ -24,15 +24,14 @@ var o = ({ testId: o = null, cssClasses: s = null, style: c = null, context: l =
|
|
|
24
24
|
replacer: "-"
|
|
25
25
|
}]
|
|
26
26
|
});
|
|
27
|
-
return /* @__PURE__ */ a(
|
|
27
|
+
return /* @__PURE__ */ a(r, {
|
|
28
28
|
testId: h,
|
|
29
29
|
cssClasses: s ?? void 0,
|
|
30
30
|
style: c ?? void 0,
|
|
31
31
|
context: l,
|
|
32
32
|
size: u ?? void 0,
|
|
33
33
|
isVertical: d,
|
|
34
|
-
children: f.map((e) => /* @__PURE__ */ a(
|
|
34
|
+
children: f.map((e) => /* @__PURE__ */ a(r, { ...e }, `tile-item-${i()}`))
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { o as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/constants/classes.ts
|
|
2
2
|
var e = {
|
|
3
3
|
IS: "is-",
|
|
4
4
|
ARE: "are-",
|
|
@@ -37,5 +37,4 @@ var e = {
|
|
|
37
37
|
AUTO_COLUMNS_GRID: "has-auto-count",
|
|
38
38
|
COL_MIN_WIDTH: "is-col-min-"
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
export { e as COMMON_CLASSES };
|
package/dist/constants/regExp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/constants/regExp.ts
|
|
2
2
|
var e = {
|
|
3
3
|
IS: /is-/gm,
|
|
4
4
|
IS_HAS: /is-|has-/gm,
|
|
@@ -17,5 +17,4 @@ var e = {
|
|
|
17
17
|
HAS_ADDONS: /has-addons/gm,
|
|
18
18
|
FIXED_GRID: /fixed-grid/gm
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { e as TEST_ID_REGEXP };
|