loon-bulma-react 2026.0.27 → 2026.0.29

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.
@@ -189,14 +189,16 @@ declare namespace DataTable {
189
189
  children: React.ReactNode;
190
190
  }): import("react/jsx-runtime").JSX.Element;
191
191
  Divider(): import("react/jsx-runtime").JSX.Element;
192
- Item({ children, onClick, onItemClick, ...props }: {
192
+ Item({ children, onClick, onItemClick, disabled, ...props }: {
193
193
  children: React.ReactNode;
194
+ disabled?: boolean;
194
195
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
195
196
  onItemClick?: (isClickable: boolean) => void;
196
197
  } & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
197
- Link({ children, onItemClick, ...props }: {
198
+ Link({ children, onItemClick, disabled, ...props }: {
198
199
  children: React.ReactNode;
199
200
  onItemClick?: (isClickable: boolean) => void;
201
+ disabled?: boolean;
200
202
  } & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
201
203
  };
202
204
  var Container: typeof DataTableContainer;
@@ -15,6 +15,7 @@ type DataTableDropdownProps = {
15
15
  * DataTable.Dropdown - A specialized dropdown component for use within DataTable.
16
16
  * This component always uses a portal to render outside the table-container,
17
17
  * preventing clipping issues caused by overflow properties on the table container.
18
+ * WIEHOE
18
19
  */
19
20
  declare const DataTableDropdown: {
20
21
  ({ onHover, id, children: childrenProp, trigger: triggerProp, disabled, alignment, dropUp, startOpen, className: classNameProp, keepOpenAfterClick, }: DataTableDropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -22,14 +23,16 @@ declare const DataTableDropdown: {
22
23
  children: React.ReactNode;
23
24
  }): import("react/jsx-runtime").JSX.Element;
24
25
  Divider(): import("react/jsx-runtime").JSX.Element;
25
- Item({ children, onClick, onItemClick, ...props }: {
26
+ Item({ children, onClick, onItemClick, disabled, ...props }: {
26
27
  children: React.ReactNode;
28
+ disabled?: boolean;
27
29
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
28
30
  onItemClick?: (isClickable: boolean) => void;
29
31
  } & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
30
- Link({ children, onItemClick, ...props }: {
32
+ Link({ children, onItemClick, disabled, ...props }: {
31
33
  children: React.ReactNode;
32
34
  onItemClick?: (isClickable: boolean) => void;
35
+ disabled?: boolean;
33
36
  } & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
34
37
  };
35
38
  export { DataTableDropdown };
@@ -26,14 +26,16 @@ declare const Dropdown: {
26
26
  children: React.ReactNode;
27
27
  }): import("react/jsx-runtime").JSX.Element;
28
28
  Divider(): import("react/jsx-runtime").JSX.Element;
29
- Item({ children, onClick, onItemClick, ...props }: {
29
+ Item({ children, onClick, onItemClick, disabled, ...props }: {
30
30
  children: React.ReactNode;
31
31
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
32
32
  onItemClick?: (isClickable: boolean) => void;
33
+ disabled?: boolean;
33
34
  } & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
34
- Link({ children, onItemClick, ...props }: {
35
+ Link({ children, onItemClick, disabled, ...props }: {
35
36
  children: React.ReactNode;
36
37
  onItemClick?: (isClickable: boolean) => void;
38
+ disabled?: boolean;
37
39
  } & React.AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
38
40
  };
39
41
  export { Dropdown };
package/dist/index.js CHANGED
@@ -12665,8 +12665,8 @@ Tn.OptGroup = ({ label: t, children: e, disabled: n }) => /* @__PURE__ */ y("opt
12665
12665
  Tn.Divider = ({ dividerChar: t = "-", repeat: e = 15 }) => /* @__PURE__ */ y("option", { disabled: !0, children: Array(e).join(t) });
12666
12666
  function SM(t) {
12667
12667
  let [e, n] = b.useState("0px"), [r, i] = b.useState("0px"), [o, s] = b.useState(!1), a = b.useCallback(
12668
- function(u) {
12669
- t && t.current?.contains(u.target) ? (u.preventDefault(), n(`${u.clientX}px`), i(`${u.clientY}px`), s(!0)) : s(!1);
12668
+ function(f) {
12669
+ t && t.current?.contains(f.target) ? (f.preventDefault(), n(`${f.clientX}px`), i(`${f.clientY}px`), s(!0)) : s(!1);
12670
12670
  },
12671
12671
  [t, s, n, i]
12672
12672
  ), l = b.useCallback(
@@ -12674,10 +12674,15 @@ function SM(t) {
12674
12674
  s(!1);
12675
12675
  },
12676
12676
  [s]
12677
+ ), c = b.useCallback(
12678
+ function() {
12679
+ s(!1);
12680
+ },
12681
+ [s]
12677
12682
  );
12678
- return b.useEffect(() => (document.addEventListener("click", l), document.addEventListener("contextmenu", a), document.addEventListener("scroll", l), () => {
12679
- document.removeEventListener("click", l), document.removeEventListener("contextmenu", a), document.removeEventListener("scroll", l);
12680
- }), [l, a]), { x: e, y: r, show: o };
12683
+ return b.useEffect(() => (document.addEventListener("click", l), document.addEventListener("mousedown", c, !0), document.addEventListener("touchstart", c, !0), document.addEventListener("contextmenu", a), document.addEventListener("scroll", l), () => {
12684
+ document.removeEventListener("click", l), document.removeEventListener("mousedown", c, !0), document.removeEventListener("touchstart", c, !0), document.removeEventListener("contextmenu", a), document.removeEventListener("scroll", l);
12685
+ }), [l, a, c]), { x: e, y: r, show: o };
12681
12686
  }
12682
12687
  function EM({ outerRef: t, children: e }) {
12683
12688
  let { x: n, y: r, show: i } = SM(t);
@@ -15161,12 +15166,18 @@ Nr.Item = ({
15161
15166
  children: t,
15162
15167
  onClick: e,
15163
15168
  onItemClick: n,
15169
+ disabled: r = !1,
15170
+ ...i
15171
+ }) => /* @__PURE__ */ y("div", { className: `dt-dropdown-item ${e ? "is-clickable" : ""} ${r ? "is-disabled" : ""}`, onClick: (s) => {
15172
+ s.stopPropagation(), e?.(s), n?.(!!e);
15173
+ }, ...i, children: t });
15174
+ Nr.Link = ({
15175
+ children: t,
15176
+ onItemClick: e,
15177
+ disabled: n = !1,
15164
15178
  ...r
15165
- }) => /* @__PURE__ */ y("div", { className: `dt-dropdown-item ${e ? "is-clickable" : ""}`, onClick: (o) => {
15166
- o.stopPropagation(), e?.(o), n?.(!!e);
15167
- }, ...r, children: t });
15168
- Nr.Link = ({ children: t, onItemClick: e, ...n }) => /* @__PURE__ */ y("a", { className: "dt-dropdown-item", ...n, onClick: (i) => {
15169
- i.stopPropagation(), n.onClick?.(i), e?.(!0);
15179
+ }) => /* @__PURE__ */ y("a", { className: `dt-dropdown-item ${n ? "is-disabled" : ""}`, ...r, onClick: (o) => {
15180
+ o.stopPropagation(), r.onClick?.(o), e?.(!0);
15170
15181
  }, children: t });
15171
15182
  function c4(t, e, n, r, i) {
15172
15183
  let o, s;
@@ -15730,12 +15741,18 @@ ti.Item = ({
15730
15741
  children: t,
15731
15742
  onClick: e,
15732
15743
  onItemClick: n,
15744
+ disabled: r = !1,
15745
+ ...i
15746
+ }) => /* @__PURE__ */ y("div", { className: `dropdown-item ${e ? "is-clickable" : ""} ${r ? "is-disabled" : ""}`, onClick: (s) => {
15747
+ s.stopPropagation(), e?.(s), n?.(!!e);
15748
+ }, ...i, children: t });
15749
+ ti.Link = ({
15750
+ children: t,
15751
+ onItemClick: e,
15752
+ disabled: n = !1,
15733
15753
  ...r
15734
- }) => /* @__PURE__ */ y("div", { className: `dropdown-item ${e ? "is-clickable" : ""}`, onClick: (o) => {
15735
- o.stopPropagation(), e?.(o), n?.(!!e);
15736
- }, ...r, children: t });
15737
- ti.Link = ({ children: t, onItemClick: e, ...n }) => /* @__PURE__ */ y("a", { className: "dropdown-item", ...n, onClick: (i) => {
15738
- i.stopPropagation(), n.onClick?.(i), e?.(!0);
15754
+ }) => /* @__PURE__ */ y("a", { className: `dropdown-item ${n ? "is-disabled" : ""}`, ...r, onClick: (o) => {
15755
+ o.stopPropagation(), r.onClick?.(o), e?.(!0);
15739
15756
  }, children: t });
15740
15757
  function y4(t, e, n, r, i) {
15741
15758
  let o, s;
@@ -29506,7 +29523,7 @@ function hu(t, {
29506
29523
  if (t.type.name === "hardBreak")
29507
29524
  return !0;
29508
29525
  if (t.isText)
29509
- return /^\s*$/m.test((r = t.text) != null ? r : "");
29526
+ return !/\S/.test((r = t.text) != null ? r : "");
29510
29527
  }
29511
29528
  if (t.isText)
29512
29529
  return !t.text;
@@ -33505,6 +33522,12 @@ var HP = tn.create({
33505
33522
  },
33506
33523
  markdownTokenName: "strong",
33507
33524
  parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
33525
+ markdownOptions: {
33526
+ htmlReopen: {
33527
+ open: "<strong>",
33528
+ close: "</strong>"
33529
+ }
33530
+ },
33508
33531
  renderMarkdown: (t, e) => `**${e.renderChildren(t)}**`,
33509
33532
  addCommands() {
33510
33533
  return {
@@ -33580,6 +33603,12 @@ var HP = tn.create({
33580
33603
  },
33581
33604
  markdownTokenName: "em",
33582
33605
  parseMarkdown: (t, e) => e.applyMark("italic", e.parseInline(t.tokens || [])),
33606
+ markdownOptions: {
33607
+ htmlReopen: {
33608
+ open: "<em>",
33609
+ close: "</em>"
33610
+ }
33611
+ },
33583
33612
  renderMarkdown: (t, e) => `*${e.renderChildren(t)}*`,
33584
33613
  addKeyboardShortcuts() {
33585
33614
  return {
@@ -35275,6 +35304,8 @@ Ze.create({
35275
35304
  const s = this.editor.isEmpty;
35276
35305
  return e.descendants((a, l) => {
35277
35306
  const c = i >= l && i <= l + a.nodeSize, u = !a.isLeaf && hu(a);
35307
+ if (!a.type.isTextblock)
35308
+ return this.options.includeChildren;
35278
35309
  if ((c || !this.options.showOnlyCurrent) && u) {
35279
35310
  const f = [this.options.emptyNodeClass];
35280
35311
  s && f.push(this.options.emptyEditorClass);
@@ -385,7 +385,7 @@ body::webkit-scrollbar-thumb {
385
385
  div.context-menu {
386
386
  @extend .bulma-box;
387
387
  z-index: 9999;
388
- padding: 8px;
388
+ padding: 0;
389
389
  position: fixed;
390
390
  }
391
391
 
@@ -171,6 +171,11 @@ $dt-dropdown-divider-background-color: cv.getVar('border-weak') !default;
171
171
  );
172
172
  }
173
173
 
174
+ &.is-disabled {
175
+ cursor: not-allowed !important;
176
+ opacity: 0.5;
177
+ }
178
+
174
179
  &.#{iv.$class-prefix}is-active,
175
180
  &.#{iv.$class-prefix}is-selected {
176
181
  @include cv.register-vars(
@@ -149,6 +149,11 @@ button.#{iv.$class-prefix}dropdown-item {
149
149
  );
150
150
  }
151
151
 
152
+ &.is-disabled {
153
+ cursor: not-allowed !important;
154
+ opacity: 0.5;
155
+ }
156
+
152
157
  &.#{iv.$class-prefix}is-active,
153
158
  &.#{iv.$class-prefix}is-selected {
154
159
  @include cv.register-vars(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "loon-bulma-react",
3
3
  "private": false,
4
- "version": "2026.0.27",
4
+ "version": "2026.0.29",
5
5
  "description": "Bulma &amp; React componenten voor Loon Salarissoftware",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -29,33 +29,33 @@
29
29
  "@fortawesome/fontawesome-svg-core": "^7.2.0",
30
30
  "@fortawesome/free-solid-svg-icons": "^7.2.0",
31
31
  "@fortawesome/react-fontawesome": "^3.2.0",
32
- "@tiptap/extension-bold": "^3.20.2",
33
- "@tiptap/extension-bullet-list": "^3.20.2",
34
- "@tiptap/extension-color": "^3.20.2",
35
- "@tiptap/extension-document": "^3.20.2",
36
- "@tiptap/extension-hard-break": "^3.20.2",
37
- "@tiptap/extension-heading": "^3.20.2",
38
- "@tiptap/extension-highlight": "^3.20.2",
39
- "@tiptap/extension-history": "^3.20.2",
40
- "@tiptap/extension-horizontal-rule": "^3.20.2",
41
- "@tiptap/extension-image": "^3.20.2",
42
- "@tiptap/extension-italic": "^3.20.2",
43
- "@tiptap/extension-link": "^3.20.2",
44
- "@tiptap/extension-list-item": "^3.20.2",
45
- "@tiptap/extension-ordered-list": "^3.20.2",
46
- "@tiptap/extension-paragraph": "^3.20.2",
47
- "@tiptap/extension-strike": "^3.20.2",
48
- "@tiptap/extension-subscript": "^3.20.2",
49
- "@tiptap/extension-superscript": "^3.20.2",
50
- "@tiptap/extension-table": "^3.20.2",
51
- "@tiptap/extension-table-cell": "^3.20.2",
52
- "@tiptap/extension-table-header": "^3.20.2",
53
- "@tiptap/extension-table-row": "^3.20.2",
54
- "@tiptap/extension-text": "^3.20.2",
55
- "@tiptap/extension-text-align": "^3.20.2",
56
- "@tiptap/extension-text-style": "^3.20.2",
57
- "@tiptap/extension-underline": "^3.20.2",
58
- "@tiptap/react": "^3.20.2",
32
+ "@tiptap/extension-bold": "^3.20.4",
33
+ "@tiptap/extension-bullet-list": "^3.20.4",
34
+ "@tiptap/extension-color": "^3.20.4",
35
+ "@tiptap/extension-document": "^3.20.4",
36
+ "@tiptap/extension-hard-break": "^3.20.4",
37
+ "@tiptap/extension-heading": "^3.20.4",
38
+ "@tiptap/extension-highlight": "^3.20.4",
39
+ "@tiptap/extension-history": "^3.20.4",
40
+ "@tiptap/extension-horizontal-rule": "^3.20.4",
41
+ "@tiptap/extension-image": "^3.20.4",
42
+ "@tiptap/extension-italic": "^3.20.4",
43
+ "@tiptap/extension-link": "^3.20.4",
44
+ "@tiptap/extension-list-item": "^3.20.4",
45
+ "@tiptap/extension-ordered-list": "^3.20.4",
46
+ "@tiptap/extension-paragraph": "^3.20.4",
47
+ "@tiptap/extension-strike": "^3.20.4",
48
+ "@tiptap/extension-subscript": "^3.20.4",
49
+ "@tiptap/extension-superscript": "^3.20.4",
50
+ "@tiptap/extension-table": "^3.20.4",
51
+ "@tiptap/extension-table-cell": "^3.20.4",
52
+ "@tiptap/extension-table-header": "^3.20.4",
53
+ "@tiptap/extension-table-row": "^3.20.4",
54
+ "@tiptap/extension-text": "^3.20.4",
55
+ "@tiptap/extension-text-align": "^3.20.4",
56
+ "@tiptap/extension-text-style": "^3.20.4",
57
+ "@tiptap/extension-underline": "^3.20.4",
58
+ "@tiptap/react": "^3.20.4",
59
59
  "bulma": "^1.0.4",
60
60
  "date-fns": "^4.1.0",
61
61
  "npm": "^11.11.1",
@@ -97,7 +97,7 @@
97
97
  "rollup-plugin-copy": "^3.5.0",
98
98
  "sass": "^1.98.0",
99
99
  "typescript": "^5.9.3",
100
- "typescript-eslint": "^8.57.0",
100
+ "typescript-eslint": "^8.57.1",
101
101
  "vite": "^7.3.1",
102
102
  "vite-plugin-lib-inject-css": "^2.2.2",
103
103
  "vite-tsconfig-paths": "^6.1.1",