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.
Files changed (96) hide show
  1. package/README.md +1 -0
  2. package/dist/assets/reactive-bulma.css +1 -1
  3. package/dist/components/atoms/BreadcrumbItem/index.js +58 -34
  4. package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +1 -0
  5. package/dist/components/atoms/Button/index.js +76 -38
  6. package/dist/components/atoms/Button/index.stories.d.ts +5 -0
  7. package/dist/components/atoms/Checkbox/index.js +47 -40
  8. package/dist/components/atoms/Column/index.js +22 -21
  9. package/dist/components/atoms/Delete/index.js +22 -17
  10. package/dist/components/atoms/GridCell/index.d.ts +4 -0
  11. package/dist/components/atoms/GridCell/index.js +40 -0
  12. package/dist/components/atoms/GridCell/index.stories.d.ts +5 -0
  13. package/dist/components/atoms/GridCell/index.test.d.ts +0 -0
  14. package/dist/components/atoms/Icon/index.js +54 -57
  15. package/dist/components/atoms/Image/index.js +28 -27
  16. package/dist/components/atoms/Image/index.stories.d.ts +1 -0
  17. package/dist/components/atoms/NavBarItem/index.js +7 -7
  18. package/dist/components/atoms/ProgressBar/index.js +25 -24
  19. package/dist/components/atoms/RadioButton/index.js +53 -73
  20. package/dist/components/atoms/Select/index.js +72 -54
  21. package/dist/components/atoms/TabItem/index.js +34 -30
  22. package/dist/components/atoms/TableCell/index.js +20 -15
  23. package/dist/components/atoms/TableCell/index.stories.d.ts +1 -0
  24. package/dist/components/atoms/TableHeadCell/index.js +22 -14
  25. package/dist/components/atoms/TableHeadCell/index.stories.d.ts +1 -0
  26. package/dist/components/atoms/Tag/index.js +36 -69
  27. package/dist/components/atoms/Tag/index.stories.d.ts +0 -3
  28. package/dist/components/atoms/TagWithAddon/index.d.ts +4 -0
  29. package/dist/components/atoms/TagWithAddon/index.js +91 -0
  30. package/dist/components/atoms/TagWithAddon/index.stories.d.ts +11 -0
  31. package/dist/components/atoms/TagWithAddon/index.test.d.ts +0 -0
  32. package/dist/components/atoms/Tile/index.js +31 -29
  33. package/dist/components/atoms/Title/index.js +28 -16
  34. package/dist/components/atoms/index.d.ts +2 -0
  35. package/dist/components/atoms/index.js +36 -32
  36. package/dist/components/molecules/Breadcrumbs/index.js +48 -49
  37. package/dist/components/molecules/CheckboxGroup/index.d.ts +4 -0
  38. package/dist/components/molecules/CheckboxGroup/index.js +34 -0
  39. package/dist/components/molecules/CheckboxGroup/index.stories.d.ts +5 -0
  40. package/dist/components/molecules/CheckboxGroup/index.test.d.ts +0 -0
  41. package/dist/components/molecules/ColumnGroup/index.js +41 -37
  42. package/dist/components/molecules/Dropdown/index.js +58 -49
  43. package/dist/components/molecules/Dropdown/index.stories.d.ts +3 -0
  44. package/dist/components/molecules/FormFieldInput/index.js +68 -85
  45. package/dist/components/molecules/FormFieldInput/index.stories.d.ts +1 -3
  46. package/dist/components/molecules/Grid/index.d.ts +4 -0
  47. package/dist/components/molecules/Grid/index.js +86 -0
  48. package/dist/components/molecules/Grid/index.stories.d.ts +12 -0
  49. package/dist/components/molecules/Grid/index.test.d.ts +0 -0
  50. package/dist/components/molecules/InputControl/index.js +92 -47
  51. package/dist/components/molecules/InputControl/index.stories.d.ts +2 -0
  52. package/dist/components/molecules/Menu/index.js +32 -29
  53. package/dist/components/molecules/MenuList/index.js +33 -30
  54. package/dist/components/molecules/Message/index.js +32 -26
  55. package/dist/components/molecules/NavBarBrand/index.js +1 -1
  56. package/dist/components/molecules/NavBarDropdown/index.js +55 -57
  57. package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +2 -0
  58. package/dist/components/molecules/Notification/index.js +26 -25
  59. package/dist/components/molecules/Pagination/index.js +91 -81
  60. package/dist/components/molecules/Pagination/index.stories.d.ts +2 -0
  61. package/dist/components/molecules/Section/index.js +18 -13
  62. package/dist/components/molecules/TableRow/index.js +41 -32
  63. package/dist/components/molecules/TableRow/index.stories.d.ts +1 -0
  64. package/dist/components/molecules/Tabs/index.js +36 -32
  65. package/dist/components/molecules/TagList/index.d.ts +4 -0
  66. package/dist/components/molecules/TagList/index.js +31 -0
  67. package/dist/components/molecules/TagList/index.stories.d.ts +5 -0
  68. package/dist/components/molecules/TagList/index.test.d.ts +0 -0
  69. package/dist/components/molecules/TileBox/index.js +1 -1
  70. package/dist/components/molecules/index.d.ts +3 -0
  71. package/dist/components/molecules/index.js +26 -20
  72. package/dist/components/organisms/Card/index.js +84 -72
  73. package/dist/components/organisms/FormField/index.js +54 -57
  74. package/dist/components/organisms/FormField/index.stories.d.ts +2 -0
  75. package/dist/components/organisms/Hero/index.js +26 -20
  76. package/dist/components/organisms/Level/index.js +43 -30
  77. package/dist/components/organisms/NavBar/index.js +65 -57
  78. package/dist/components/organisms/Panel/index.js +33 -27
  79. package/dist/components/organisms/Table/index.js +2 -2
  80. package/dist/components/organisms/Table/index.stories.d.ts +1 -0
  81. package/dist/components/organisms/TileGroup/index.js +31 -36
  82. package/dist/constants/classes.d.ts +34 -0
  83. package/dist/constants/classes.js +37 -0
  84. package/dist/constants/regExp.d.ts +18 -0
  85. package/dist/constants/regExp.js +23 -0
  86. package/dist/functions/parsers.js +5 -4
  87. package/dist/index.js +104 -94
  88. package/dist/interfaces/atomProps.d.ts +62 -31
  89. package/dist/interfaces/commonProps.d.ts +5 -0
  90. package/dist/interfaces/moleculeProps.d.ts +67 -22
  91. package/dist/interfaces/moleculeProps.js +1 -1
  92. package/dist/interfaces/organismProps.d.ts +35 -5
  93. package/dist/types/domTypes.d.ts +4 -3
  94. package/dist/types/domTypes.js +2 -2
  95. package/dist/types/styleTypes.d.ts +28 -18
  96. package/package.json +18 -17
@@ -1,38 +1,51 @@
1
- import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
- import { parseClasses as v, parseTestId as p } from "../../../functions/parsers.js";
3
- import "react";
4
- import { generateKey as d } from "../../../functions/generators.js";
5
- import f from "../../molecules/LevelItem/index.js";
6
- const s = (l) => l.map((e) => /* @__PURE__ */ t(
7
- f,
8
- {
9
- ...e
10
- },
11
- `level-item-${d()}`
12
- )), N = ({
13
- testId: l = null,
14
- cssClasses: e = null,
15
- style: m = null,
16
- leftSide: n = null,
17
- centerSide: a = null,
18
- rightSide: r = null,
19
- isMobile: i = !1
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 o = v([
25
+ const a = C([
22
26
  "level",
23
- i ? "is-mobile" : null,
24
- e
25
- ]), c = l ?? p({ tag: "level", parsedClasses: o });
26
- return /* @__PURE__ */ u(
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": c,
30
- className: o,
31
- style: m ?? void 0,
42
+ "data-testid": u,
43
+ className: a,
44
+ style: s ?? void 0,
32
45
  children: [
33
- n ? /* @__PURE__ */ t("section", { className: "level-left", children: s(n) }) : null,
34
- a ? s(a) : null,
35
- r ? /* @__PURE__ */ t("section", { className: "level-right", children: s(r) }) : null
46
+ d,
47
+ v,
48
+ f
36
49
  ]
37
50
  }
38
51
  );
@@ -1,83 +1,91 @@
1
- import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
- import { parseClasses as h, parseTestId as B } from "../../../functions/parsers.js";
3
- import "react";
4
- import $ from "../../atoms/NavBarItem/index.js";
5
- import { generateKey as o } from "../../../functions/generators.js";
6
- import f from "../../molecules/NavBarBrand/index.js";
7
- import x from "../../molecules/NavBarDropdown/index.js";
8
- const p = (l, a, e) => l ? /* @__PURE__ */ s(
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": `${e}-${a}`,
12
- className: `navbar-${a}`,
13
- children: l.itemList.map(
14
- (r) => r.children !== void 0 ? /* @__PURE__ */ s(
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
- ...r
19
+ ...a
18
20
  },
19
- `navbar-section${a}-${o()}`
21
+ `navbar-section-${r}-${u()}`
20
22
  ) : /* @__PURE__ */ s(
21
- x,
23
+ _,
22
24
  {
23
- ...r
25
+ ...a
24
26
  },
25
- `navbar-section${a}-${o()}`
27
+ `navbar-section-${r}-${u()}`
26
28
  )
27
29
  )
28
30
  }
29
- ) : null, D = ({
30
- testId: l = null,
31
- cssClasses: a = null,
32
- style: e = null,
33
- brandConfig: r = null,
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: c = null,
36
- fixedPosition: i = null,
37
- color: m = null,
38
- isTransparent: u = !1,
37
+ itemsAtEnd: N = null,
38
+ fixedPosition: B = null,
39
+ color: o = null,
40
+ isTransparent: $ = !1,
39
41
  isSpaced: b = !1,
40
- hasShadow: N = !1
42
+ hasShadow: f = !1
41
43
  }) => {
42
- const t = h([
43
- "navbar",
44
- i,
44
+ const m = "navbar", d = x([
45
45
  m,
46
- u ? "is-transparent" : null,
47
- b ? "is-spaced" : null,
48
- N ? "has-shadow" : null,
49
- a
50
- ]), n = l ?? B({
51
- tag: "navbar",
52
- parsedClasses: t,
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: /is-|has-/gm, replacer: "-" },
55
- { regExp: /navbar/gm, replacer: "" }
56
+ { regExp: p.IS_HAS, replacer: "-" },
57
+ { regExp: p.NAVBAR, replacer: "" }
56
58
  ]
57
- });
58
- return /* @__PURE__ */ d(
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": n,
62
- className: t,
63
- style: e ?? void 0,
76
+ "data-testid": t,
77
+ className: d,
78
+ style: n ?? void 0,
64
79
  children: [
65
- r ? /* @__PURE__ */ s(
66
- "section",
67
- {
68
- "data-testid": "navbar-brand",
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
- D as default
90
+ G as default
83
91
  };
@@ -1,35 +1,41 @@
1
- import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
- import { parseClasses as d, parseTestId as u } from "../../../functions/parsers.js";
3
- import "react";
4
- import { generateKey as f } from "../../../functions/generators.js";
5
- import g from "../../molecules/PanelBlock/index.js";
6
- import h from "../../molecules/PanelTabs/index.js";
7
- const x = (e) => /* @__PURE__ */ l("p", { className: "panel-heading", children: e }), N = ({
8
- testId: e = null,
9
- cssClasses: n = null,
10
- style: t = null,
11
- headerText: r,
12
- panelTabs: a = null,
13
- blockList: o,
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 s = d(["panel", p, n]), m = e ?? u({ tag: "panel", parsedClasses: s });
17
- return /* @__PURE__ */ c(
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": m,
21
- className: s,
22
- style: t ?? void 0,
32
+ "data-testid": i,
33
+ className: a,
34
+ style: r ?? void 0,
23
35
  children: [
24
- x(r),
25
- a ? /* @__PURE__ */ l(h, { ...a }) : null,
26
- o.map((i) => /* @__PURE__ */ l(
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 x from "../../atoms/TableHeadCell/index.js";
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 t } from "react/jsx-runtime";
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 o from "../../atoms/Tile/index.js";
5
- import { generateKey as f } from "../../../functions/generators.js";
6
- const C = ({
7
- testId: i = null,
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: p = null,
10
+ style: m = null,
10
11
  context: r = "is-ancestor",
11
- size: l = null,
12
- isVertical: s = !1,
13
- groupConfig: a
12
+ size: s = null,
13
+ isVertical: l = !1,
14
+ groupConfig: n
14
15
  }) => {
15
- const m = d([
16
- "tileGroup",
16
+ const t = "tile-group", u = f([
17
+ t,
17
18
  r,
18
- l,
19
- s ? "is-vertical" : null,
19
+ s,
20
+ l ? "is-vertical" : null,
20
21
  e
21
- ]), u = i ?? c({
22
- tag: "tileGroup",
23
- parsedClasses: m,
22
+ ]), d = a ?? T({
23
+ tag: t,
24
+ parsedClasses: u,
24
25
  rules: [
25
- {
26
- regExp: /tileGroup/gm,
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__ */ t(
36
- o,
30
+ return /* @__PURE__ */ o(
31
+ p,
37
32
  {
38
- testId: u,
33
+ testId: d,
39
34
  cssClasses: e ?? void 0,
40
- style: p ?? void 0,
35
+ style: m ?? void 0,
41
36
  context: r,
42
- size: l ?? void 0,
43
- isVertical: s,
44
- children: a.map((n) => /* @__PURE__ */ t(
45
- o,
37
+ size: s ?? void 0,
38
+ isVertical: l,
39
+ children: n.map((c) => /* @__PURE__ */ o(
40
+ p,
46
41
  {
47
- ...n
42
+ ...c
48
43
  },
49
- `tile-item-${f()}`
44
+ `tile-item-${E()}`
50
45
  ))
51
46
  }
52
47
  );
53
48
  };
54
49
  export {
55
- C as default
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
- const a = (e) => e.filter((r) => r).join(" "), l = (e) => {
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(/is-/gm, "-");
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
- a as parseClasses,
18
- l as parseTestId
18
+ l as parseClasses,
19
+ p as parseTestId
19
20
  };