loon-bulma-react 2026.0.45 → 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
|
@@ -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,
|
|
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
|
-
...
|
|
14040
|
+
...a,
|
|
14041
14041
|
children: e
|
|
14042
|
-
}), T_.Link = ({ children: e, onItemClick: t, disabled: n = !1,
|
|
14043
|
-
let
|
|
14044
|
-
e.stopPropagation(),
|
|
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
|
-
...
|
|
14049
|
-
onClick:
|
|
14047
|
+
className: `dropdown-item ${n ? "is-disabled" : ""} ${r}`,
|
|
14048
|
+
...i,
|
|
14049
|
+
onClick: a,
|
|
14050
14050
|
children: e
|
|
14051
14051
|
});
|
|
14052
14052
|
};
|