loon-bulma-react 2026.0.44 → 2026.0.46

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.
@@ -26,13 +26,13 @@ declare const Dropdown: {
26
26
  children: React.ReactNode;
27
27
  }): React.JSX.Element;
28
28
  Divider(): React.JSX.Element;
29
- Item({ children, onClick, onItemClick, disabled, ...props }: {
29
+ Item({ children, onClick, onItemClick, disabled, className, ...props }: {
30
30
  children: React.ReactNode;
31
31
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
32
32
  onItemClick?: (isClickable: boolean) => void;
33
33
  disabled?: boolean;
34
34
  } & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
35
- Link({ children, onItemClick, disabled, ...props }: {
35
+ Link({ children, onItemClick, disabled, className, ...props }: {
36
36
  children: React.ReactNode;
37
37
  onItemClick?: (isClickable: boolean) => void;
38
38
  disabled?: boolean;
package/dist/index.js CHANGED
@@ -13592,19 +13592,19 @@ function g_({ children: e = void 0, searchValue: t, filterCount: n, dataCount: r
13592
13592
  if (e.hidden) return null;
13593
13593
  let n = e.sort !== void 0, r = Math.abs(s) - 1 === t, i;
13594
13594
  i = e.header || e.header === "" ? e.header : typeof e.value == "string" ? e.value : e.value.toString();
13595
- let a = Zd(e.alignment ?? "l"), o = ss;
13595
+ let a = `${Zd(e.alignment ?? "l")} mx-0 px-1`, o = ss;
13596
13596
  return r && s > 0 ? o = Lo : r && s < 0 && (o = Ns), /* @__PURE__ */ x("th", {
13597
13597
  role: "sort-col",
13598
13598
  style: { cursor: n ? "pointer" : void 0 },
13599
13599
  className: a,
13600
13600
  onClick: (e) => g(e, t),
13601
13601
  children: [n && /* @__PURE__ */ x("span", {
13602
- className: "icon-text",
13602
+ className: "icon-text mx-0 px-0",
13603
13603
  role: "icon-with-text",
13604
13604
  style: { flexWrap: "nowrap" },
13605
13605
  children: [/* @__PURE__ */ b(t_, {
13606
13606
  icon: o,
13607
- className: "is-hidden-mobile"
13607
+ className: "is-hidden-mobile mx-0 px-0"
13608
13608
  }), /* @__PURE__ */ b("span", { children: i })]
13609
13609
  }), !n && /* @__PURE__ */ b("span", { children: i })]
13610
13610
  }, t);
@@ -14032,21 +14032,21 @@ var T_ = ({ onHover: e = !1, id: n, children: r, trigger: i, disabled: a = !1, a
14032
14032
  }), d && f ? C(D, document.body) : D]
14033
14033
  });
14034
14034
  };
14035
- T_.Trigger = ({ children: e }) => /* @__PURE__ */ b(y, { children: e }), T_.Divider = () => /* @__PURE__ */ b("hr", { className: "dropdown-divider" }), T_.Item = ({ children: e, onClick: t, onItemClick: n, disabled: r = !1, ...i }) => /* @__PURE__ */ b("div", {
14036
- className: `dropdown-item ${t ? "is-clickable" : ""} ${r ? "is-disabled" : ""}`,
14035
+ T_.Trigger = ({ children: e }) => /* @__PURE__ */ b(y, { children: e }), T_.Divider = () => /* @__PURE__ */ b("hr", { className: "dropdown-divider" }), T_.Item = ({ children: e, onClick: t, onItemClick: n, disabled: r = !1, className: i = "", ...a }) => /* @__PURE__ */ b("div", {
14036
+ className: `dropdown-item ${t ? "is-clickable" : ""} ${r ? "is-disabled" : ""} ${i}`,
14037
14037
  onClick: (e) => {
14038
14038
  e.stopPropagation(), t?.(e), n?.(!!t);
14039
14039
  },
14040
- ...i,
14040
+ ...a,
14041
14041
  children: e
14042
- }), T_.Link = ({ children: e, onItemClick: t, disabled: n = !1, ...r }) => {
14043
- let i = (e) => {
14044
- e.stopPropagation(), r.onClick?.(e), t?.(!0);
14042
+ }), T_.Link = ({ children: e, onItemClick: t, disabled: n = !1, className: r = "", ...i }) => {
14043
+ let a = (e) => {
14044
+ e.stopPropagation(), i.onClick?.(e), t?.(!0);
14045
14045
  };
14046
14046
  return /* @__PURE__ */ b("a", {
14047
- className: `dropdown-item ${n ? "is-disabled" : ""}`,
14048
- ...r,
14049
- onClick: i,
14047
+ className: `dropdown-item ${n ? "is-disabled" : ""} ${r}`,
14048
+ ...i,
14049
+ onClick: a,
14050
14050
  children: e
14051
14051
  });
14052
14052
  };
@@ -85,10 +85,10 @@ $table-striped-row-even-hover-background-color: #f0f0f0 !default;
85
85
  // @forward 'bulma/sass/elements/box.scss'; // renamed naar bulma-box, wordt vaak al gebruikt door andere libs
86
86
  @forward 'bulma-box.scss';
87
87
  @forward 'bulma/sass/elements/block.scss';
88
- //@forward 'bulma/sass/elements/button.scss';
89
- @forward 'button.scss';
88
+
89
+ @forward 'button.scss'; // @forward 'bulma/sass/elements/button.scss';
90
90
  @forward 'bulma/sass/elements/content.scss';
91
- @forward 'bulma/sass/elements/icon.scss';
91
+ @forward 'icon.scss'; // @forward 'bulma/sass/elements/icon.scss';
92
92
  @forward 'bulma/sass/elements/image.scss';
93
93
  @forward 'bulma/sass/elements/notification.scss';
94
94
  @forward 'bulma/sass/elements/progress.scss';
@@ -0,0 +1,72 @@
1
+ @use 'bulma/sass/utilities/css-variables' as cv;
2
+ @use 'bulma/sass/utilities/initial-variables' as iv;
3
+
4
+ $icon-dimensions: 1.5rem !default;
5
+ $icon-dimensions-small: 1rem !default;
6
+ $icon-dimensions-medium: 2rem !default;
7
+ $icon-dimensions-large: 3rem !default;
8
+ $icon-text-spacing: 0.25em !default;
9
+
10
+ .#{iv.$class-prefix}icon,
11
+ .#{iv.$class-prefix}icon-text {
12
+ @include cv.register-vars(
13
+ (
14
+ 'icon-dimensions': #{$icon-dimensions},
15
+ 'icon-dimensions-small': #{$icon-dimensions-small},
16
+ 'icon-dimensions-medium': #{$icon-dimensions-medium},
17
+ 'icon-dimensions-large': #{$icon-dimensions-large},
18
+ 'icon-text-spacing': #{$icon-text-spacing},
19
+ )
20
+ );
21
+ }
22
+
23
+ .#{iv.$class-prefix}icon {
24
+ align-items: center;
25
+ display: inline-flex;
26
+ flex-shrink: 0;
27
+ justify-content: center;
28
+ height: cv.getVar('icon-dimensions');
29
+ transition-duration: cv.getVar('duration');
30
+ transition-property: color;
31
+ width: cv.getVar('icon-dimensions');
32
+
33
+ // Sizes
34
+ &.#{iv.$class-prefix}is-small {
35
+ height: cv.getVar('icon-dimensions-small');
36
+ width: cv.getVar('icon-dimensions-small');
37
+ }
38
+
39
+ &.#{iv.$class-prefix}is-medium {
40
+ height: cv.getVar('icon-dimensions-medium');
41
+ width: cv.getVar('icon-dimensions-medium');
42
+ }
43
+
44
+ &.#{iv.$class-prefix}is-large {
45
+ height: cv.getVar('icon-dimensions-large');
46
+ width: cv.getVar('icon-dimensions-large');
47
+ }
48
+ }
49
+
50
+ td .#{iv.$class-prefix}icon &:first-child,
51
+ td .#{iv.$class-prefix}icon-text &:first-child {
52
+ margin-left: -0.5em;
53
+ }
54
+
55
+ .#{iv.$class-prefix}icon-text {
56
+ align-items: flex-start;
57
+ color: inherit;
58
+ display: inline-flex;
59
+ flex-wrap: wrap;
60
+ gap: cv.getVar('icon-text-spacing');
61
+ line-height: cv.getVar('icon-dimensions');
62
+ vertical-align: top;
63
+
64
+ .#{iv.$class-prefix}icon {
65
+ flex-grow: 0;
66
+ flex-shrink: 0;
67
+ }
68
+ }
69
+
70
+ div.#{iv.$class-prefix}icon-text {
71
+ display: flex;
72
+ }
@@ -158,6 +158,11 @@ $table-colors: dv.$colors !default;
158
158
  border-width: cv.getVar('table-head-cell-border-width');
159
159
  color: cv.getVar('table-head-cell-color');
160
160
  }
161
+
162
+ // header moet op 1 regel blijven!
163
+ th span {
164
+ text-wrap: nowrap;
165
+ }
161
166
  }
162
167
 
163
168
  tfoot {
@@ -51,7 +51,7 @@ export type DutchBankCode = {
51
51
  * @example
52
52
  * cleanIBAN('NL91 ABNA 0417 1643 00'); // 'NL91ABNA0417164300'
53
53
  * cleanIBAN('NL91-ABNA-0417-1643-00'); // 'NL91ABNA0417164300'
54
- * cleanIBAN('nl91abna0417164300'); // 'NL91ABNA0417164300'
54
+ * cleanIBAN('nl91abna0417164300'); // 'NL91ABNA0417164300'
55
55
  */
56
56
  export declare function cleanIBAN(iban: string | null | undefined): string;
57
57
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "loon-bulma-react",
3
3
  "private": false,
4
- "version": "2026.0.44",
4
+ "version": "2026.0.46",
5
5
  "description": "Bulma &amp; React componenten voor Loon Salarissoftware",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -71,8 +71,8 @@
71
71
  "@testing-library/jest-dom": "^6.9.1",
72
72
  "@testing-library/react": "^16.3.2",
73
73
  "@testing-library/user-event": "^14.6.1",
74
- "@types/node": "^25.9.1",
75
- "@types/react": "^19.2.16",
74
+ "@types/node": "^25.9.2",
75
+ "@types/react": "^19.2.17",
76
76
  "@types/react-dom": "^19.2.3",
77
77
  "@types/react-is": "^19.2.0",
78
78
  "@types/react-syntax-highlighter": "^15.5.13",
@@ -92,14 +92,14 @@
92
92
  "eslint-plugin-standard": "^5.0.0",
93
93
  "eslint-plugin-testing-library": "^7.16.0",
94
94
  "globals": "^17.6.0",
95
- "happy-dom": "^20.10.1",
95
+ "happy-dom": "^20.10.2",
96
96
  "prettier": "^3.8.3",
97
97
  "react": "^19.2.7",
98
98
  "react-dom": "^19.2.7",
99
99
  "rollup-plugin-copy": "^3.5.0",
100
100
  "sass": "^1.100.0",
101
101
  "typescript": "^6.0.3",
102
- "typescript-eslint": "^8.60.1",
102
+ "typescript-eslint": "^8.61.0",
103
103
  "vite": "^8.0.16",
104
104
  "vite-plugin-lib-inject-css": "^2.2.2",
105
105
  "vite-tsconfig-paths": "^6.1.1",