reactive-bulma 4.3.24 → 4.3.25

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.
@@ -1,64 +1,91 @@
1
- import { jsx as e, jsxs as y } from "react/jsx-runtime";
2
- import { parseClasses as C, parseTestId as w } from "../../../functions/parsers.js";
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
3
  import "react";
4
4
  import x from "../../atoms/TableHeadCell/index.js";
5
- import { generateKey as i } from "../../../functions/generators.js";
6
- import g from "../../molecules/TableRow/index.js";
7
- const n = (t, a) => /* @__PURE__ */ e("tr", { children: a.map((s) => /* @__PURE__ */ e(
5
+ import { generateKey as b } from "../../../functions/generators.js";
6
+ import y from "../../molecules/TableRow/index.js";
7
+ const m = (l, t) => /* @__PURE__ */ e("tr", { children: t.map((a) => /* @__PURE__ */ e(
8
8
  x,
9
9
  {
10
- ...s
10
+ ...a
11
11
  },
12
- `table-${t}-item-${i()}`
13
- )) }), K = ({
14
- testId: t = null,
15
- cssClasses: a = null,
16
- style: s = null,
17
- head: b,
18
- body: m,
19
- foot: r = null,
20
- isBordered: c = !1,
12
+ `table-${l}-item-${b()}`
13
+ )) }), c = ({
14
+ tableTestId: l,
15
+ tableClasses: t,
16
+ style: a,
17
+ head: r,
18
+ body: n,
19
+ foot: s
20
+ }) => /* @__PURE__ */ C(
21
+ "table",
22
+ {
23
+ "data-testid": l,
24
+ className: t,
25
+ style: a ?? void 0,
26
+ children: [
27
+ /* @__PURE__ */ e("thead", { "data-testid": `${l}-head`, children: m("head", r) }),
28
+ /* @__PURE__ */ e("tbody", { "data-testid": `${l}-body`, children: n.map((i) => /* @__PURE__ */ e(
29
+ y,
30
+ {
31
+ ...i
32
+ },
33
+ `table-body-item-${b()}`
34
+ )) }),
35
+ s ? /* @__PURE__ */ e("tfoot", { "data-testid": `${l}-foot`, children: m("foot", s) }) : null
36
+ ]
37
+ }
38
+ ), K = ({
39
+ testId: l = null,
40
+ cssClasses: t = null,
41
+ style: a = null,
42
+ head: r,
43
+ body: n,
44
+ foot: s = null,
45
+ isBordered: i = !1,
21
46
  isStriped: f = !1,
22
47
  isNarrow: p = !1,
23
48
  isHoverable: u = !1,
24
49
  isFullwidth: h = !1,
25
- isContained: T = !1
50
+ isContained: $ = !1
26
51
  }) => {
27
- const d = C([
52
+ const o = T([
28
53
  "table",
29
- c ? "is-bordered" : null,
54
+ i ? "is-bordered" : null,
30
55
  f ? "is-striped" : null,
31
56
  p ? "is-narrow" : null,
32
57
  u ? "is-hoverable" : null,
33
58
  h ? "is-fullwidth" : null,
34
- a
35
- ]), l = t ?? w({ tag: "table", parsedClasses: d }), o = () => /* @__PURE__ */ y(
36
- "table",
37
- {
38
- "data-testid": l,
39
- className: d,
40
- style: s ?? void 0,
41
- children: [
42
- /* @__PURE__ */ e("thead", { "data-testid": `${l}-head`, children: n("head", b) }),
43
- /* @__PURE__ */ e("tbody", { "data-testid": `${l}-body`, children: m.map(($) => /* @__PURE__ */ e(
44
- g,
45
- {
46
- ...$
47
- },
48
- `table-body-item-${i()}`
49
- )) }),
50
- r ? /* @__PURE__ */ e("tfoot", { "data-testid": `${l}-foot`, children: n("foot", r) }) : null
51
- ]
52
- }
53
- );
54
- return T ? /* @__PURE__ */ e(
59
+ t
60
+ ]), d = l ?? w({ tag: "table", parsedClasses: o });
61
+ return $ ? /* @__PURE__ */ e(
55
62
  "section",
56
63
  {
57
- "data-testid": `${l}-container`,
64
+ "data-testid": `${d}-container`,
58
65
  className: "table-container",
59
- children: /* @__PURE__ */ e(o, {})
66
+ children: /* @__PURE__ */ e(
67
+ c,
68
+ {
69
+ tableTestId: d,
70
+ tableClasses: o,
71
+ style: a,
72
+ head: r,
73
+ body: n,
74
+ foot: s
75
+ }
76
+ )
77
+ }
78
+ ) : /* @__PURE__ */ e(
79
+ c,
80
+ {
81
+ tableTestId: d,
82
+ tableClasses: o,
83
+ style: a,
84
+ head: r,
85
+ body: n,
86
+ foot: s
60
87
  }
61
- ) : /* @__PURE__ */ e(o, {});
88
+ );
62
89
  };
63
90
  export {
64
91
  K as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "4.3.24",
3
+ "version": "4.3.25",
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.28.4",
62
- "@babel/preset-env": "^7.28.3",
63
- "@babel/preset-react": "^7.27.1",
64
- "@babel/preset-typescript": "^7.27.1",
61
+ "@babel/core": "^7.28.5",
62
+ "@babel/preset-env": "^7.28.5",
63
+ "@babel/preset-react": "^7.28.5",
64
+ "@babel/preset-typescript": "^7.28.5",
65
65
  "@eslint/compat": "^1.4.0",
66
- "@eslint/js": "^9.37.0",
66
+ "@eslint/js": "^9.38.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
- "@semantic-release/github": "^11.0.6",
73
- "@semantic-release/npm": "^12.0.2",
72
+ "@semantic-release/github": "^12.0.0",
73
+ "@semantic-release/npm": "^13.1.1",
74
74
  "@semantic-release/release-notes-generator": "^14.1.0",
75
- "@storybook/addon-docs": "^9.1.10",
76
- "@storybook/addon-links": "^9.1.10",
77
- "@storybook/addon-onboarding": "^9.1.10",
78
- "@storybook/react-vite": "^9.1.10",
75
+ "@storybook/addon-docs": "^10.0.0",
76
+ "@storybook/addon-links": "^10.0.0",
77
+ "@storybook/addon-onboarding": "^10.0.0",
78
+ "@storybook/react-vite": "^10.0.0",
79
79
  "@testing-library/jest-dom": "^6.9.1",
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
83
  "@types/jest": "^30.0.0",
84
- "@types/node": "^24.7.2",
84
+ "@types/node": "^24.9.1",
85
85
  "@types/react": "^19.2.2",
86
- "@types/react-dom": "^19.2.1",
87
- "@typescript-eslint/eslint-plugin": "^8.46.0",
88
- "@typescript-eslint/parser": "^8.46.0",
89
- "@vitejs/plugin-react": "^5.0.4",
86
+ "@types/react-dom": "^19.2.2",
87
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
88
+ "@typescript-eslint/parser": "^8.46.2",
89
+ "@vitejs/plugin-react": "^5.1.0",
90
90
  "babel-jest": "^30.2.0",
91
91
  "babel-loader": "^10.0.0",
92
92
  "bulma": "^0.9.4",
93
- "eslint": "^9.37.0",
93
+ "eslint": "^9.38.0",
94
94
  "eslint-config-prettier": "^10.1.8",
95
95
  "eslint-plugin-react": "^7.37.5",
96
- "eslint-plugin-react-hooks": "^6.1.1",
97
- "eslint-plugin-react-refresh": "^0.4.23",
98
- "eslint-plugin-storybook": "^9.1.10",
96
+ "eslint-plugin-react-hooks": "^7.0.1",
97
+ "eslint-plugin-react-refresh": "^0.4.24",
98
+ "eslint-plugin-storybook": "^10.0.0",
99
99
  "glob": "^11.0.3",
100
100
  "globals": "^16.4.0",
101
101
  "husky": "^9.1.7",
102
102
  "hygen": "^6.2.11",
103
103
  "jest": "^30.2.0",
104
104
  "jest-environment-jsdom": "^30.2.0",
105
- "lint-staged": "^16.2.4",
106
- "npm-check-updates": "^19.0.0",
105
+ "lint-staged": "^16.2.6",
106
+ "npm-check-updates": "^19.1.1",
107
107
  "prettier": "^3.6.2",
108
108
  "react": "^18.3.1",
109
109
  "react-dom": "^18.3.1",
110
- "semantic-release": "^24.2.9",
111
- "storybook": "^9.1.10",
110
+ "semantic-release": "^25.0.1",
111
+ "storybook": "^10.0.0",
112
112
  "tslib": "^2.8.1",
113
113
  "typescript": "~5.9.3",
114
- "typescript-eslint": "^8.46.0",
115
- "vite": "^7.1.9",
114
+ "typescript-eslint": "^8.46.2",
115
+ "vite": "^7.1.12",
116
116
  "vite-plugin-dts": "^4.5.4"
117
117
  },
118
118
  "lint-staged": {