reactive-bulma 4.3.15 → 4.3.17

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.
@@ -4,7 +4,7 @@ import { parseClasses as p, parseTestId as u } from "../../../functions/parsers.
4
4
  const T = (s, n) => {
5
5
  const e = n ? `icon-text-${n}` : "icon-text", t = u({
6
6
  tag: "icon-container",
7
- parsedClasses: (n == null ? void 0 : n.toString()) ?? "",
7
+ parsedClasses: n?.toString() ?? "",
8
8
  rules: [
9
9
  {
10
10
  regExp: /has-text/gm,
@@ -28,29 +28,29 @@ const T = (s, n) => {
28
28
  style: g = null,
29
29
  containerStyle: C = null,
30
30
  iconLabel: x,
31
- text: a = null,
31
+ text: l = null,
32
32
  color: r = null,
33
- size: l = null,
34
- colorMode: c = null,
33
+ size: a = null,
34
+ colorMode: o = null,
35
35
  isSpinning: I = !1,
36
36
  position: f = null
37
37
  }) => {
38
38
  const $ = p([
39
39
  "icon",
40
40
  r,
41
- l,
41
+ a,
42
42
  f,
43
43
  t
44
- ]), d = p([
44
+ ]), c = p([
45
45
  "mdi",
46
46
  `mdi-${x}`,
47
- c ? `mdi-${c}` : null,
47
+ o ? `mdi-${o}` : null,
48
48
  I ? "mdi-spin" : null,
49
- l ? `mdi-${N[l]}px` : "mdi-24px",
49
+ a ? `mdi-${N[a]}px` : "mdi-24px",
50
50
  e
51
- ]), o = n ?? u({
51
+ ]), d = n ?? u({
52
52
  tag: "icon",
53
- parsedClasses: d,
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 ?? `${o}-i`, m = /* @__PURE__ */ E(
65
+ }), h = s ?? `${d}-i`, m = /* @__PURE__ */ E(
66
66
  "span",
67
67
  {
68
- "data-testid": o,
68
+ "data-testid": d,
69
69
  className: $,
70
70
  style: C ?? void 0,
71
71
  children: [
@@ -73,15 +73,15 @@ const T = (s, n) => {
73
73
  "i",
74
74
  {
75
75
  "data-testid": h,
76
- className: d,
76
+ className: c,
77
77
  style: g ?? void 0
78
78
  }
79
79
  ),
80
- a ? /* @__PURE__ */ i("span", { children: a }) : null
80
+ l ? /* @__PURE__ */ i("span", { children: l }) : null
81
81
  ]
82
82
  }
83
83
  );
84
- return a ? T(m, r) : m;
84
+ return l ? T(m, r) : m;
85
85
  };
86
86
  export {
87
87
  S as default
@@ -1,25 +1,25 @@
1
- import { jsxs as u, Fragment as m, jsx as x } from "react/jsx-runtime";
2
- import { parseClasses as f } from "../../../functions/parsers.js";
3
- const r = (l) => {
4
- const { type: s, size: t, isSpaced: a, cssClasses: d } = l, e = f([
5
- s,
6
- t ?? null,
7
- s === "title" && a ? "is-spaced" : null,
8
- d
9
- ]), p = (l == null ? void 0 : l.testId) ?? `${l == null ? void 0 : l.type}-test`;
10
- return /* @__PURE__ */ x(
1
+ import { jsxs as i, Fragment as c, jsx as o } from "react/jsx-runtime";
2
+ import { parseClasses as p } from "../../../functions/parsers.js";
3
+ const e = (s) => {
4
+ const { type: t, size: l, isSpaced: r, cssClasses: a } = s, n = p([
5
+ t,
6
+ l ?? null,
7
+ t === "title" && r ? "is-spaced" : null,
8
+ a
9
+ ]), d = s?.testId ?? `${s?.type}-test`;
10
+ return /* @__PURE__ */ o(
11
11
  "p",
12
12
  {
13
- "data-testid": p,
14
- className: e,
15
- style: (l == null ? void 0 : l.style) ?? void 0,
16
- children: l == null ? void 0 : l.text
13
+ "data-testid": d,
14
+ className: n,
15
+ style: s?.style ?? void 0,
16
+ children: s?.text
17
17
  }
18
18
  );
19
- }, T = ({ main: l, secondary: s }) => /* @__PURE__ */ u(m, { children: [
20
- l ? r(l) : null,
21
- s ? r(s) : null
19
+ }, x = ({ main: s, secondary: t }) => /* @__PURE__ */ i(c, { children: [
20
+ s ? e(s) : null,
21
+ t ? e(t) : null
22
22
  ] });
23
23
  export {
24
- T as default
24
+ x as default
25
25
  };
@@ -23,7 +23,7 @@ const x = (r, t) => {
23
23
  input: e
24
24
  }) => {
25
25
  const s = {
26
- testId: (e == null ? void 0 : e.testId) ?? r ?? `test-form-field-${t}`,
26
+ testId: e?.testId ?? r ?? `test-form-field-${t}`,
27
27
  containerTestId: r ?? `test-form-field-container-${t}`
28
28
  };
29
29
  switch (t) {
@@ -88,16 +88,16 @@ const x = (r, t) => {
88
88
  labelText: t,
89
89
  type: e,
90
90
  input: s,
91
- helper: a,
92
- isHorizontal: n
91
+ helper: n,
92
+ isHorizontal: a
93
93
  }) => {
94
94
  const c = m(
95
- () => x(t, n),
96
- [t, n]
95
+ () => x(t, a),
96
+ [t, a]
97
97
  ), d = m(
98
98
  () => F({ testId: r ?? void 0, type: e, input: s }),
99
99
  [r, e, s]
100
- ), i = m(() => N(a), [a]);
100
+ ), i = m(() => N(n), [n]);
101
101
  return /* @__PURE__ */ f(p, { children: [
102
102
  c,
103
103
  d,
@@ -1,30 +1,30 @@
1
- import { jsxs as x, jsx as a } from "react/jsx-runtime";
2
- import { parseClasses as h, parseTestId as v } from "../../../functions/parsers.js";
3
- import I from "../../atoms/Icon/index.js";
4
- import j from "../../atoms/Input/index.js";
1
+ import { jsxs as x, jsx as i } from "react/jsx-runtime";
2
+ import { parseClasses as f, parseTestId as g } from "../../../functions/parsers.js";
3
+ import C from "../../atoms/Icon/index.js";
4
+ import h from "../../atoms/Input/index.js";
5
5
  import "react";
6
- const n = (l) => l ? /* @__PURE__ */ a(I, { ...l }) : null, z = ({
6
+ const e = (l) => l ? /* @__PURE__ */ i(C, { ...l }) : null, y = ({
7
7
  testId: l = null,
8
- cssClasses: p = null,
9
- style: u = null,
10
- inputConfig: s,
11
- leftIcon: r = null,
12
- rightIcon: e = null,
13
- size: o = null,
14
- isLoading: d = null,
15
- isExpanded: i = null
8
+ cssClasses: a = null,
9
+ style: p = null,
10
+ inputConfig: o,
11
+ leftIcon: s = null,
12
+ rightIcon: n = null,
13
+ size: t = null,
14
+ isLoading: u = null,
15
+ isExpanded: d = null
16
16
  }) => {
17
- const t = h([
17
+ const r = f([
18
18
  "control",
19
- o,
20
- r ? "has-icons-left" : null,
21
- e ? "has-icons-right" : null,
22
- d ? "is-loading" : null,
23
- i ? "is-expanded" : null,
24
- p
25
- ]), c = l ?? v({
19
+ t,
20
+ s ? "has-icons-left" : null,
21
+ n ? "has-icons-right" : null,
22
+ u ? "is-loading" : null,
23
+ d ? "is-expanded" : null,
24
+ a
25
+ ]), c = l ?? g({
26
26
  tag: "control",
27
- parsedClasses: t,
27
+ parsedClasses: r,
28
28
  rules: [
29
29
  {
30
30
  regExp: /has-|is-/gm,
@@ -36,25 +36,25 @@ const n = (l) => l ? /* @__PURE__ */ a(I, { ...l }) : null, z = ({
36
36
  }
37
37
  ]
38
38
  }), m = {
39
- ...s,
40
- size: o ?? (s == null ? void 0 : s.size)
39
+ ...o,
40
+ size: t ?? o?.size
41
41
  };
42
42
  return /* @__PURE__ */ x(
43
43
  "section",
44
44
  {
45
45
  "data-testid": c,
46
- className: t,
47
- style: u ?? void 0,
46
+ className: r,
47
+ style: p ?? void 0,
48
48
  children: [
49
- /* @__PURE__ */ a(j, { ...m }),
50
- n(r ? { ...r, position: "is-left" } : void 0),
51
- n(
52
- e ? { ...e, position: "is-right" } : void 0
49
+ /* @__PURE__ */ i(h, { ...m }),
50
+ e(s ? { ...s, position: "is-left" } : void 0),
51
+ e(
52
+ n ? { ...n, position: "is-right" } : void 0
53
53
  )
54
54
  ]
55
55
  }
56
56
  );
57
57
  };
58
58
  export {
59
- z as default
59
+ y as default
60
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "4.3.15",
3
+ "version": "4.3.17",
4
4
  "type": "module",
5
5
  "description": "A component library based on React, Bulma, Typescript and Vite",
6
6
  "keywords": [
@@ -58,61 +58,61 @@
58
58
  "react-dom": "^18.3.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/core": "^7.27.4",
62
- "@babel/preset-env": "^7.27.2",
61
+ "@babel/core": "^7.28.0",
62
+ "@babel/preset-env": "^7.28.0",
63
63
  "@babel/preset-react": "^7.27.1",
64
64
  "@babel/preset-typescript": "^7.27.1",
65
- "@eslint/compat": "^1.2.9",
66
- "@eslint/js": "^9.28.0",
65
+ "@eslint/compat": "^1.3.1",
66
+ "@eslint/js": "^9.31.0",
67
67
  "@mdi/font": "^7.4.47",
68
68
  "@semantic-release/changelog": "^6.0.3",
69
69
  "@semantic-release/commit-analyzer": "^13.0.1",
70
70
  "@semantic-release/exec": "^7.1.0",
71
71
  "@semantic-release/git": "^10.0.1",
72
72
  "@semantic-release/github": "^11.0.3",
73
- "@semantic-release/npm": "^12.0.1",
73
+ "@semantic-release/npm": "^12.0.2",
74
74
  "@semantic-release/release-notes-generator": "^14.0.3",
75
- "@storybook/addon-docs": "^9.0.4",
76
- "@storybook/addon-links": "^9.0.4",
77
- "@storybook/addon-onboarding": "^9.0.4",
78
- "@storybook/react-vite": "^9.0.4",
75
+ "@storybook/addon-docs": "^9.0.17",
76
+ "@storybook/addon-links": "^9.0.17",
77
+ "@storybook/addon-onboarding": "^9.0.17",
78
+ "@storybook/react-vite": "^9.0.17",
79
79
  "@testing-library/jest-dom": "^6.6.3",
80
80
  "@testing-library/react": "^16.3.0",
81
81
  "@testing-library/user-event": "^14.6.1",
82
82
  "@types/css-modules": "^1.0.5",
83
- "@types/jest": "^29.5.14",
84
- "@types/node": "^22.15.29",
85
- "@types/react": "^19.1.6",
83
+ "@types/jest": "^30.0.0",
84
+ "@types/node": "^24.0.15",
85
+ "@types/react": "^19.1.8",
86
86
  "@types/react-dom": "^19.1.6",
87
- "@typescript-eslint/eslint-plugin": "^8.33.1",
88
- "@typescript-eslint/parser": "^8.33.1",
89
- "@vitejs/plugin-react": "^4.5.1",
90
- "babel-jest": "^29.7.0",
87
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
88
+ "@typescript-eslint/parser": "^8.38.0",
89
+ "@vitejs/plugin-react": "^4.7.0",
90
+ "babel-jest": "^30.0.4",
91
91
  "babel-loader": "^10.0.0",
92
92
  "bulma": "^0.9.4",
93
- "eslint": "^9.28.0",
94
- "eslint-config-prettier": "^10.1.5",
93
+ "eslint": "^9.31.0",
94
+ "eslint-config-prettier": "^10.1.8",
95
95
  "eslint-plugin-react": "^7.37.5",
96
96
  "eslint-plugin-react-hooks": "^6.0.0",
97
97
  "eslint-plugin-react-refresh": "^0.4.20",
98
- "eslint-plugin-storybook": "^9.0.4",
99
- "glob": "^11.0.2",
100
- "globals": "^16.2.0",
98
+ "eslint-plugin-storybook": "^9.0.17",
99
+ "glob": "^11.0.3",
100
+ "globals": "^16.3.0",
101
101
  "husky": "^9.1.7",
102
102
  "hygen": "^6.2.11",
103
- "jest": "^29.7.0",
104
- "jest-environment-jsdom": "^29.7.0",
105
- "lint-staged": "^16.1.0",
103
+ "jest": "^30.0.4",
104
+ "jest-environment-jsdom": "^30.0.4",
105
+ "lint-staged": "^16.1.2",
106
106
  "npm-check-updates": "^18.0.1",
107
- "prettier": "^3.5.3",
107
+ "prettier": "^3.6.2",
108
108
  "react": "^18.3.1",
109
109
  "react-dom": "^18.3.1",
110
- "semantic-release": "^24.2.5",
111
- "storybook": "^9.0.4",
110
+ "semantic-release": "^24.2.7",
111
+ "storybook": "^9.0.17",
112
112
  "tslib": "^2.8.1",
113
113
  "typescript": "~5.8.3",
114
- "typescript-eslint": "^8.33.1",
115
- "vite": "^6.3.5",
114
+ "typescript-eslint": "^8.38.0",
115
+ "vite": "^7.0.5",
116
116
  "vite-plugin-dts": "^4.5.4"
117
117
  },
118
118
  "lint-staged": {