reactive-bulma 4.3.28 → 4.4.0
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/README.md +1 -0
- package/dist/assets/reactive-bulma.css +1 -1
- package/dist/components/atoms/BreadcrumbItem/index.js +58 -34
- package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +1 -0
- package/dist/components/atoms/Button/index.js +76 -38
- package/dist/components/atoms/Button/index.stories.d.ts +5 -0
- package/dist/components/atoms/Checkbox/index.js +47 -40
- package/dist/components/atoms/Column/index.js +22 -21
- package/dist/components/atoms/Delete/index.js +22 -17
- package/dist/components/atoms/GridCell/index.d.ts +4 -0
- package/dist/components/atoms/GridCell/index.js +40 -0
- package/dist/components/atoms/GridCell/index.stories.d.ts +5 -0
- package/dist/components/atoms/GridCell/index.test.d.ts +0 -0
- package/dist/components/atoms/Icon/index.js +54 -57
- package/dist/components/atoms/Image/index.js +28 -27
- package/dist/components/atoms/Image/index.stories.d.ts +1 -0
- package/dist/components/atoms/NavBarItem/index.js +7 -7
- package/dist/components/atoms/ProgressBar/index.js +25 -24
- package/dist/components/atoms/RadioButton/index.js +53 -73
- package/dist/components/atoms/Select/index.js +72 -54
- package/dist/components/atoms/TabItem/index.js +34 -30
- package/dist/components/atoms/TableCell/index.js +20 -15
- package/dist/components/atoms/TableCell/index.stories.d.ts +1 -0
- package/dist/components/atoms/TableHeadCell/index.js +22 -14
- package/dist/components/atoms/TableHeadCell/index.stories.d.ts +1 -0
- package/dist/components/atoms/Tag/index.js +36 -69
- package/dist/components/atoms/Tag/index.stories.d.ts +0 -3
- package/dist/components/atoms/TagWithAddon/index.d.ts +4 -0
- package/dist/components/atoms/TagWithAddon/index.js +91 -0
- package/dist/components/atoms/TagWithAddon/index.stories.d.ts +11 -0
- package/dist/components/atoms/TagWithAddon/index.test.d.ts +0 -0
- package/dist/components/atoms/Tile/index.js +31 -29
- package/dist/components/atoms/Title/index.js +28 -16
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/components/atoms/index.js +36 -32
- package/dist/components/molecules/Breadcrumbs/index.js +48 -49
- package/dist/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/dist/components/molecules/CheckboxGroup/index.js +34 -0
- package/dist/components/molecules/CheckboxGroup/index.stories.d.ts +5 -0
- package/dist/components/molecules/CheckboxGroup/index.test.d.ts +0 -0
- package/dist/components/molecules/ColumnGroup/index.js +41 -37
- package/dist/components/molecules/Dropdown/index.js +58 -49
- package/dist/components/molecules/Dropdown/index.stories.d.ts +3 -0
- package/dist/components/molecules/FormFieldInput/index.js +68 -85
- package/dist/components/molecules/FormFieldInput/index.stories.d.ts +1 -3
- package/dist/components/molecules/Grid/index.d.ts +4 -0
- package/dist/components/molecules/Grid/index.js +86 -0
- package/dist/components/molecules/Grid/index.stories.d.ts +12 -0
- package/dist/components/molecules/Grid/index.test.d.ts +0 -0
- package/dist/components/molecules/InputControl/index.js +92 -47
- package/dist/components/molecules/InputControl/index.stories.d.ts +2 -0
- package/dist/components/molecules/Menu/index.js +32 -29
- package/dist/components/molecules/MenuList/index.js +33 -30
- package/dist/components/molecules/Message/index.js +32 -26
- package/dist/components/molecules/NavBarBrand/index.js +1 -1
- package/dist/components/molecules/NavBarDropdown/index.js +55 -57
- package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +2 -0
- package/dist/components/molecules/Notification/index.js +26 -25
- package/dist/components/molecules/Pagination/index.js +91 -81
- package/dist/components/molecules/Pagination/index.stories.d.ts +2 -0
- package/dist/components/molecules/Section/index.js +18 -13
- package/dist/components/molecules/TableRow/index.js +41 -32
- package/dist/components/molecules/TableRow/index.stories.d.ts +1 -0
- package/dist/components/molecules/Tabs/index.js +36 -32
- package/dist/components/molecules/TagList/index.d.ts +4 -0
- package/dist/components/molecules/TagList/index.js +31 -0
- package/dist/components/molecules/TagList/index.stories.d.ts +5 -0
- package/dist/components/molecules/TagList/index.test.d.ts +0 -0
- package/dist/components/molecules/TileBox/index.js +1 -1
- package/dist/components/molecules/index.d.ts +3 -0
- package/dist/components/molecules/index.js +26 -20
- package/dist/components/organisms/Card/index.js +84 -72
- package/dist/components/organisms/FormField/index.js +54 -57
- package/dist/components/organisms/FormField/index.stories.d.ts +2 -0
- package/dist/components/organisms/Hero/index.js +26 -20
- package/dist/components/organisms/Level/index.js +43 -30
- package/dist/components/organisms/NavBar/index.js +65 -57
- package/dist/components/organisms/Panel/index.js +33 -27
- package/dist/components/organisms/Table/index.js +2 -2
- package/dist/components/organisms/Table/index.stories.d.ts +1 -0
- package/dist/components/organisms/TileGroup/index.js +31 -36
- package/dist/constants/classes.d.ts +34 -0
- package/dist/constants/classes.js +37 -0
- package/dist/constants/regExp.d.ts +18 -0
- package/dist/constants/regExp.js +23 -0
- package/dist/functions/parsers.js +5 -4
- package/dist/index.js +104 -94
- package/dist/interfaces/atomProps.d.ts +62 -31
- package/dist/interfaces/commonProps.d.ts +5 -0
- package/dist/interfaces/moleculeProps.d.ts +67 -22
- package/dist/interfaces/moleculeProps.js +1 -1
- package/dist/interfaces/organismProps.d.ts +35 -5
- package/dist/types/domTypes.d.ts +4 -3
- package/dist/types/domTypes.js +2 -2
- package/dist/types/styleTypes.d.ts +28 -18
- package/package.json +18 -17
|
@@ -1,38 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { generateKey as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as n } from "react";
|
|
3
|
+
import { parseClasses as C, parseTestId as L } from "../../../functions/parsers.js";
|
|
4
|
+
import { generateKey as g } from "../../../functions/generators.js";
|
|
5
|
+
import h from "../../molecules/LevelItem/index.js";
|
|
6
|
+
const r = (e, l) => {
|
|
7
|
+
if (e === null) return null;
|
|
8
|
+
const s = e.map((t) => /* @__PURE__ */ i(
|
|
9
|
+
h,
|
|
10
|
+
{
|
|
11
|
+
...t
|
|
12
|
+
},
|
|
13
|
+
`level-item-${g()}`
|
|
14
|
+
));
|
|
15
|
+
return l === "center" ? s : /* @__PURE__ */ i("section", { className: `level-${l}`, children: s });
|
|
16
|
+
}, N = ({
|
|
17
|
+
testId: e = null,
|
|
18
|
+
cssClasses: l = null,
|
|
19
|
+
style: s = null,
|
|
20
|
+
leftSide: t = null,
|
|
21
|
+
centerSide: o = null,
|
|
22
|
+
rightSide: m = null,
|
|
23
|
+
isMobile: c = !1
|
|
20
24
|
}) => {
|
|
21
|
-
const
|
|
25
|
+
const a = C([
|
|
22
26
|
"level",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
]),
|
|
26
|
-
|
|
27
|
+
c ? "is-mobile" : null,
|
|
28
|
+
l
|
|
29
|
+
]), u = e ?? L({ tag: "level", parsedClasses: a }), d = n(
|
|
30
|
+
() => r(t, "left"),
|
|
31
|
+
[t]
|
|
32
|
+
), v = n(
|
|
33
|
+
() => r(o, "center"),
|
|
34
|
+
[o]
|
|
35
|
+
), f = n(
|
|
36
|
+
() => r(m, "right"),
|
|
37
|
+
[m]
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ p(
|
|
27
40
|
"nav",
|
|
28
41
|
{
|
|
29
|
-
"data-testid":
|
|
30
|
-
className:
|
|
31
|
-
style:
|
|
42
|
+
"data-testid": u,
|
|
43
|
+
className: a,
|
|
44
|
+
style: s ?? void 0,
|
|
32
45
|
children: [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
46
|
+
d,
|
|
47
|
+
v,
|
|
48
|
+
f
|
|
36
49
|
]
|
|
37
50
|
}
|
|
38
51
|
);
|
|
@@ -1,83 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as T, useCallback as h } from "react";
|
|
3
|
+
import { COMMON_CLASSES as l } from "../../../constants/classes.js";
|
|
4
|
+
import { parseClasses as x, parseTestId as M } from "../../../functions/parsers.js";
|
|
5
|
+
import { TEST_ID_REGEXP as p } from "../../../constants/regExp.js";
|
|
6
|
+
import { generateKey as u } from "../../../functions/generators.js";
|
|
7
|
+
import D from "../../atoms/NavBarItem/index.js";
|
|
8
|
+
import R from "../../molecules/NavBarBrand/index.js";
|
|
9
|
+
import _ from "../../molecules/NavBarDropdown/index.js";
|
|
10
|
+
const C = (e, r, n) => e ? /* @__PURE__ */ s(
|
|
9
11
|
"section",
|
|
10
12
|
{
|
|
11
|
-
"data-testid": `${
|
|
12
|
-
className: `navbar-${
|
|
13
|
-
children:
|
|
14
|
-
(
|
|
15
|
-
|
|
13
|
+
"data-testid": `${n}-${r}`,
|
|
14
|
+
className: `navbar-${r}`,
|
|
15
|
+
children: e.itemList.map(
|
|
16
|
+
(a) => a.children !== void 0 ? /* @__PURE__ */ s(
|
|
17
|
+
D,
|
|
16
18
|
{
|
|
17
|
-
...
|
|
19
|
+
...a
|
|
18
20
|
},
|
|
19
|
-
`navbar-section
|
|
21
|
+
`navbar-section-${r}-${u()}`
|
|
20
22
|
) : /* @__PURE__ */ s(
|
|
21
|
-
|
|
23
|
+
_,
|
|
22
24
|
{
|
|
23
|
-
...
|
|
25
|
+
...a
|
|
24
26
|
},
|
|
25
|
-
`navbar-section
|
|
27
|
+
`navbar-section-${r}-${u()}`
|
|
26
28
|
)
|
|
27
29
|
)
|
|
28
30
|
}
|
|
29
|
-
) : null,
|
|
30
|
-
testId:
|
|
31
|
-
cssClasses:
|
|
32
|
-
style:
|
|
33
|
-
brandConfig:
|
|
31
|
+
) : null, G = ({
|
|
32
|
+
testId: e = null,
|
|
33
|
+
cssClasses: r = null,
|
|
34
|
+
style: n = null,
|
|
35
|
+
brandConfig: a = null,
|
|
34
36
|
itemsAtStart: v = null,
|
|
35
|
-
itemsAtEnd:
|
|
36
|
-
fixedPosition:
|
|
37
|
-
color:
|
|
38
|
-
isTransparent:
|
|
37
|
+
itemsAtEnd: N = null,
|
|
38
|
+
fixedPosition: B = null,
|
|
39
|
+
color: o = null,
|
|
40
|
+
isTransparent: $ = !1,
|
|
39
41
|
isSpaced: b = !1,
|
|
40
|
-
hasShadow:
|
|
42
|
+
hasShadow: f = !1
|
|
41
43
|
}) => {
|
|
42
|
-
const
|
|
43
|
-
"navbar",
|
|
44
|
-
i,
|
|
44
|
+
const m = "navbar", d = x([
|
|
45
45
|
m,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
B,
|
|
47
|
+
o ? `${l.IS}${o}` : null,
|
|
48
|
+
$ ? l.TRANSPARENT : null,
|
|
49
|
+
b ? l.SPACED : null,
|
|
50
|
+
f ? l.SHADOW : null,
|
|
51
|
+
r
|
|
52
|
+
]), t = e ?? M({
|
|
53
|
+
tag: m,
|
|
54
|
+
parsedClasses: d,
|
|
53
55
|
rules: [
|
|
54
|
-
{ regExp:
|
|
55
|
-
{ regExp:
|
|
56
|
+
{ regExp: p.IS_HAS, replacer: "-" },
|
|
57
|
+
{ regExp: p.NAVBAR, replacer: "" }
|
|
56
58
|
]
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
+
}), A = T(
|
|
60
|
+
() => a ? /* @__PURE__ */ s(
|
|
61
|
+
"section",
|
|
62
|
+
{
|
|
63
|
+
"data-testid": "navbar-brand",
|
|
64
|
+
className: "navbar-brand",
|
|
65
|
+
children: /* @__PURE__ */ s(R, { ...a })
|
|
66
|
+
}
|
|
67
|
+
) : null,
|
|
68
|
+
[a]
|
|
69
|
+
), c = h(
|
|
70
|
+
(E, S, I) => C(E, S, I),
|
|
71
|
+
[]
|
|
72
|
+
);
|
|
73
|
+
return /* @__PURE__ */ i(
|
|
59
74
|
"nav",
|
|
60
75
|
{
|
|
61
|
-
"data-testid":
|
|
62
|
-
className:
|
|
63
|
-
style:
|
|
76
|
+
"data-testid": t,
|
|
77
|
+
className: d,
|
|
78
|
+
style: n ?? void 0,
|
|
64
79
|
children: [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
className: "navbar-brand",
|
|
70
|
-
children: /* @__PURE__ */ s(f, { ...r })
|
|
71
|
-
}
|
|
72
|
-
) : null,
|
|
73
|
-
/* @__PURE__ */ d("section", { className: "navbar-menu", children: [
|
|
74
|
-
p(v, "start", n),
|
|
75
|
-
p(c, "end", n)
|
|
80
|
+
A,
|
|
81
|
+
/* @__PURE__ */ i("section", { className: "navbar-menu", children: [
|
|
82
|
+
c(v, "start", t),
|
|
83
|
+
c(N, "end", t)
|
|
76
84
|
] })
|
|
77
85
|
]
|
|
78
86
|
}
|
|
79
87
|
);
|
|
80
88
|
};
|
|
81
89
|
export {
|
|
82
|
-
|
|
90
|
+
G as default
|
|
83
91
|
};
|
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { generateKey as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
testId:
|
|
9
|
-
cssClasses:
|
|
10
|
-
style:
|
|
11
|
-
headerText:
|
|
12
|
-
panelTabs:
|
|
13
|
-
blockList:
|
|
1
|
+
import { jsx as l, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as o } from "react";
|
|
3
|
+
import { parseClasses as g, parseTestId as h } from "../../../functions/parsers.js";
|
|
4
|
+
import { generateKey as x } from "../../../functions/generators.js";
|
|
5
|
+
import C from "../../molecules/PanelBlock/index.js";
|
|
6
|
+
import P from "../../molecules/PanelTabs/index.js";
|
|
7
|
+
const N = ({
|
|
8
|
+
testId: n = null,
|
|
9
|
+
cssClasses: t = null,
|
|
10
|
+
style: r = null,
|
|
11
|
+
headerText: m,
|
|
12
|
+
panelTabs: e = null,
|
|
13
|
+
blockList: s,
|
|
14
14
|
color: p = null
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const a = g(["panel", p, t]), i = n ?? h({ tag: "panel", parsedClasses: a }), c = o(
|
|
17
|
+
() => e ? /* @__PURE__ */ l(P, { ...e }) : null,
|
|
18
|
+
[e]
|
|
19
|
+
), d = o(
|
|
20
|
+
() => s.map((u) => /* @__PURE__ */ l(
|
|
21
|
+
C,
|
|
22
|
+
{
|
|
23
|
+
...u
|
|
24
|
+
},
|
|
25
|
+
`panel-block-item-${x()}`
|
|
26
|
+
)),
|
|
27
|
+
[s]
|
|
28
|
+
);
|
|
29
|
+
return /* @__PURE__ */ f(
|
|
18
30
|
"article",
|
|
19
31
|
{
|
|
20
|
-
"data-testid":
|
|
21
|
-
className:
|
|
22
|
-
style:
|
|
32
|
+
"data-testid": i,
|
|
33
|
+
className: a,
|
|
34
|
+
style: r ?? void 0,
|
|
23
35
|
children: [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
g,
|
|
28
|
-
{
|
|
29
|
-
...i
|
|
30
|
-
},
|
|
31
|
-
`panel-block-item-${f()}`
|
|
32
|
-
))
|
|
36
|
+
/* @__PURE__ */ l("p", { className: "panel-heading", children: m }),
|
|
37
|
+
c,
|
|
38
|
+
d
|
|
33
39
|
]
|
|
34
40
|
}
|
|
35
41
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { parseClasses as T, parseTestId as w } from "../../../functions/parsers.js";
|
|
3
2
|
import "react";
|
|
4
|
-
import
|
|
3
|
+
import { parseClasses as T, parseTestId as w } from "../../../functions/parsers.js";
|
|
5
4
|
import { generateKey as b } from "../../../functions/generators.js";
|
|
5
|
+
import x from "../../atoms/TableHeadCell/index.js";
|
|
6
6
|
import y from "../../molecules/TableRow/index.js";
|
|
7
7
|
const m = (l, t) => /* @__PURE__ */ e("tr", { children: t.map((a) => /* @__PURE__ */ e(
|
|
8
8
|
x,
|
|
@@ -6,6 +6,7 @@ export default _default;
|
|
|
6
6
|
export declare const BasicExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
|
7
7
|
export declare const FirstRowCellIsHeader: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
|
8
8
|
export declare const LotsOfRows: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
|
9
|
+
export declare const Hoverable: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
|
9
10
|
export declare const SelectedRows: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
|
10
11
|
export declare const Bordered: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
|
11
12
|
export declare const Striped: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TableProps>;
|
|
@@ -1,56 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { parseClasses as d, parseTestId as c } from "../../../functions/parsers.js";
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
2
|
import "react";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { parseClasses as f, parseTestId as T } from "../../../functions/parsers.js";
|
|
4
|
+
import { TEST_ID_REGEXP as i } from "../../../constants/regExp.js";
|
|
5
|
+
import { generateKey as E } from "../../../functions/generators.js";
|
|
6
|
+
import p from "../../atoms/Tile/index.js";
|
|
7
|
+
const _ = ({
|
|
8
|
+
testId: a = null,
|
|
8
9
|
cssClasses: e = null,
|
|
9
|
-
style:
|
|
10
|
+
style: m = null,
|
|
10
11
|
context: r = "is-ancestor",
|
|
11
|
-
size:
|
|
12
|
-
isVertical:
|
|
13
|
-
groupConfig:
|
|
12
|
+
size: s = null,
|
|
13
|
+
isVertical: l = !1,
|
|
14
|
+
groupConfig: n
|
|
14
15
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
|
|
16
|
+
const t = "tile-group", u = f([
|
|
17
|
+
t,
|
|
17
18
|
r,
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
s,
|
|
20
|
+
l ? "is-vertical" : null,
|
|
20
21
|
e
|
|
21
|
-
]),
|
|
22
|
-
tag:
|
|
23
|
-
parsedClasses:
|
|
22
|
+
]), d = a ?? T({
|
|
23
|
+
tag: t,
|
|
24
|
+
parsedClasses: u,
|
|
24
25
|
rules: [
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
replacer: ""
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
regExp: /is-/gm,
|
|
31
|
-
replacer: "-"
|
|
32
|
-
}
|
|
26
|
+
{ regExp: i.TILE_GROUP, replacer: "" },
|
|
27
|
+
{ regExp: i.IS, replacer: "-" }
|
|
33
28
|
]
|
|
34
29
|
});
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
30
|
+
return /* @__PURE__ */ o(
|
|
31
|
+
p,
|
|
37
32
|
{
|
|
38
|
-
testId:
|
|
33
|
+
testId: d,
|
|
39
34
|
cssClasses: e ?? void 0,
|
|
40
|
-
style:
|
|
35
|
+
style: m ?? void 0,
|
|
41
36
|
context: r,
|
|
42
|
-
size:
|
|
43
|
-
isVertical:
|
|
44
|
-
children:
|
|
45
|
-
|
|
37
|
+
size: s ?? void 0,
|
|
38
|
+
isVertical: l,
|
|
39
|
+
children: n.map((c) => /* @__PURE__ */ o(
|
|
40
|
+
p,
|
|
46
41
|
{
|
|
47
|
-
...
|
|
42
|
+
...c
|
|
48
43
|
},
|
|
49
|
-
`tile-item-${
|
|
44
|
+
`tile-item-${E()}`
|
|
50
45
|
))
|
|
51
46
|
}
|
|
52
47
|
);
|
|
53
48
|
};
|
|
54
49
|
export {
|
|
55
|
-
|
|
50
|
+
_ as default
|
|
56
51
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const COMMON_CLASSES: {
|
|
2
|
+
IS: string;
|
|
3
|
+
ARE: string;
|
|
4
|
+
HAS: string;
|
|
5
|
+
HAS_TEXT: string;
|
|
6
|
+
NOTIFICATION: string;
|
|
7
|
+
VERTICAL: string;
|
|
8
|
+
NARROW: string;
|
|
9
|
+
OFFSET: string;
|
|
10
|
+
TRANSPARENT: string;
|
|
11
|
+
SPACED: string;
|
|
12
|
+
SHADOW: string;
|
|
13
|
+
LIGHT: string;
|
|
14
|
+
ROUNDED: string;
|
|
15
|
+
TOGGLE_ROUNDED: string;
|
|
16
|
+
LOADING: string;
|
|
17
|
+
EXPANDED: string;
|
|
18
|
+
ACTIVE: string;
|
|
19
|
+
ICON_LEFT: string;
|
|
20
|
+
ICON_RIGHT: string;
|
|
21
|
+
INVERTED: string;
|
|
22
|
+
OUTLINED: string;
|
|
23
|
+
STATIC: string;
|
|
24
|
+
SELECTED: string;
|
|
25
|
+
FULL_WIDTH: string;
|
|
26
|
+
RESPONSIVE: string;
|
|
27
|
+
DISABLED: string;
|
|
28
|
+
HAS_ADDONS: string;
|
|
29
|
+
GAP: string;
|
|
30
|
+
COLUMN_GAP: string;
|
|
31
|
+
ROW_GAP: string;
|
|
32
|
+
AUTO_COLUMNS_GRID: string;
|
|
33
|
+
COL_MIN_WIDTH: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const s = {
|
|
2
|
+
IS: "is-",
|
|
3
|
+
ARE: "are-",
|
|
4
|
+
HAS: "has-",
|
|
5
|
+
HAS_TEXT: "has-text-",
|
|
6
|
+
NOTIFICATION: "notification",
|
|
7
|
+
VERTICAL: "is-vertical",
|
|
8
|
+
NARROW: "is-narrow",
|
|
9
|
+
OFFSET: "is-offset-",
|
|
10
|
+
TRANSPARENT: "is-transparent",
|
|
11
|
+
SPACED: "is-spaced",
|
|
12
|
+
SHADOW: "has-shadow",
|
|
13
|
+
LIGHT: "is-light",
|
|
14
|
+
ROUNDED: "is-rounded",
|
|
15
|
+
TOGGLE_ROUNDED: "is-toggle-rounded",
|
|
16
|
+
LOADING: "is-loading",
|
|
17
|
+
EXPANDED: "is-expanded",
|
|
18
|
+
ACTIVE: "is-active",
|
|
19
|
+
ICON_LEFT: "has-icons-left",
|
|
20
|
+
ICON_RIGHT: "has-icons-right",
|
|
21
|
+
INVERTED: "is-inverted",
|
|
22
|
+
OUTLINED: "is-outlined",
|
|
23
|
+
STATIC: "is-static",
|
|
24
|
+
SELECTED: "is-selected",
|
|
25
|
+
FULL_WIDTH: "is-fullwidth",
|
|
26
|
+
RESPONSIVE: "is-responsive",
|
|
27
|
+
DISABLED: "is-disabled",
|
|
28
|
+
HAS_ADDONS: "has-addons",
|
|
29
|
+
GAP: "is-gap-",
|
|
30
|
+
COLUMN_GAP: "is-column-gap-",
|
|
31
|
+
ROW_GAP: "is-row-gap-",
|
|
32
|
+
AUTO_COLUMNS_GRID: "has-auto-count",
|
|
33
|
+
COL_MIN_WIDTH: "is-col-min-"
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
s as COMMON_CLASSES
|
|
37
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const TEST_ID_REGEXP: {
|
|
2
|
+
IS: RegExp;
|
|
3
|
+
IS_HAS: RegExp;
|
|
4
|
+
IS_ARE: RegExp;
|
|
5
|
+
HAS_TEXT: RegExp;
|
|
6
|
+
TILE: RegExp;
|
|
7
|
+
NAVBAR: RegExp;
|
|
8
|
+
TILE_GROUP: RegExp;
|
|
9
|
+
MDI: RegExp;
|
|
10
|
+
MDI_EMPTY: RegExp;
|
|
11
|
+
CONTROL: RegExp;
|
|
12
|
+
HELP: RegExp;
|
|
13
|
+
BREADCRUMB: RegExp;
|
|
14
|
+
TAG: RegExp;
|
|
15
|
+
TAGS: RegExp;
|
|
16
|
+
HAS_ADDONS: RegExp;
|
|
17
|
+
FIXED_GRID: RegExp;
|
|
18
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const g = {
|
|
2
|
+
// COMMON BASED
|
|
3
|
+
IS: /is-/gm,
|
|
4
|
+
IS_HAS: /is-|has-/gm,
|
|
5
|
+
IS_ARE: /is-|are-/gm,
|
|
6
|
+
HAS_TEXT: /has-text/gm,
|
|
7
|
+
// COMPONENT BASED
|
|
8
|
+
TILE: /notification |tile/gm,
|
|
9
|
+
NAVBAR: /navbar/gm,
|
|
10
|
+
TILE_GROUP: /tile-group/gm,
|
|
11
|
+
MDI: /mdi-|mdi--/gm,
|
|
12
|
+
MDI_EMPTY: /mdi /gm,
|
|
13
|
+
CONTROL: /control/gm,
|
|
14
|
+
HELP: /help|is/gm,
|
|
15
|
+
BREADCRUMB: /breadcrumb/gm,
|
|
16
|
+
TAG: /tag/gm,
|
|
17
|
+
TAGS: /tags/gm,
|
|
18
|
+
HAS_ADDONS: /has-addons/gm,
|
|
19
|
+
FIXED_GRID: /fixed-grid/gm
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
g as TEST_ID_REGEXP
|
|
23
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { TEST_ID_REGEXP as t } from "../constants/regExp.js";
|
|
2
|
+
const l = (e) => e.filter((r) => r).join(" ").trim(), p = (e) => {
|
|
2
3
|
let r = e.parsedClasses;
|
|
3
4
|
if (e.rules)
|
|
4
5
|
for (const s of e.rules)
|
|
@@ -7,13 +8,13 @@ const a = (e) => e.filter((r) => r).join(" "), l = (e) => {
|
|
|
7
8
|
s.replacer
|
|
8
9
|
);
|
|
9
10
|
else
|
|
10
|
-
r = r.replace(`${e.tag}`, "").replace(
|
|
11
|
+
r = r.replace(`${e.tag}`, "").replace(t.IS, "-");
|
|
11
12
|
return `test-${e.tag}${r.replace(
|
|
12
13
|
/ /gm,
|
|
13
14
|
e.separator ?? ""
|
|
14
15
|
)}`;
|
|
15
16
|
};
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
l as parseClasses,
|
|
19
|
+
p as parseTestId
|
|
19
20
|
};
|