@lundal/zed-solid 0.0.12 → 0.0.13
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.
- package/dist/IconButton.d.ts +1 -1
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/IconButton.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -684,22 +684,24 @@ var _tmpl$$a = /* @__PURE__ */ template(`<button>`);
|
|
|
684
684
|
function IconButton(props) {
|
|
685
685
|
return (() => {
|
|
686
686
|
var _el$ = _tmpl$$a();
|
|
687
|
-
_el$.$$click = () => !props.busy && props.onClick();
|
|
687
|
+
_el$.$$click = () => props.onClick !== "submit" && !props.busy && props.onClick();
|
|
688
688
|
insert(_el$, () => props.icon);
|
|
689
689
|
createRenderEffect((_p$) => {
|
|
690
|
-
var _v$ = mergeClasses(`z-button z-button--icon z-button--${props.type}`, props.class), _v$2 = props.style, _v$3 = props.busy, _v$4 = props.label, _v$5 = props.label;
|
|
690
|
+
var _v$ = mergeClasses(`z-button z-button--icon z-button--${props.type}`, props.class), _v$2 = props.style, _v$3 = props.busy, _v$4 = props.label, _v$5 = props.label, _v$6 = props.onClick === "submit" ? "submit" : "button";
|
|
691
691
|
_v$ !== _p$.e && className(_el$, _p$.e = _v$);
|
|
692
692
|
_p$.t = style(_el$, _v$2, _p$.t);
|
|
693
693
|
_v$3 !== _p$.a && setAttribute(_el$, "aria-busy", _p$.a = _v$3);
|
|
694
694
|
_v$4 !== _p$.o && setAttribute(_el$, "aria-label", _p$.o = _v$4);
|
|
695
695
|
_v$5 !== _p$.i && setAttribute(_el$, "title", _p$.i = _v$5);
|
|
696
|
+
_v$6 !== _p$.n && setAttribute(_el$, "type", _p$.n = _v$6);
|
|
696
697
|
return _p$;
|
|
697
698
|
}, {
|
|
698
699
|
e: void 0,
|
|
699
700
|
t: void 0,
|
|
700
701
|
a: void 0,
|
|
701
702
|
o: void 0,
|
|
702
|
-
i: void 0
|
|
703
|
+
i: void 0,
|
|
704
|
+
n: void 0
|
|
703
705
|
});
|
|
704
706
|
return _el$;
|
|
705
707
|
})();
|