@landtrustinc/design-system 1.2.15 → 1.2.16
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/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3393,7 +3393,7 @@ var styles = {
|
|
|
3393
3393
|
`,
|
|
3394
3394
|
disabled: import_react4.css`
|
|
3395
3395
|
opacity: ${opacity["50"]};
|
|
3396
|
-
|
|
3396
|
+
cursor: not-allowed;
|
|
3397
3397
|
`,
|
|
3398
3398
|
withIcon: import_react4.css`
|
|
3399
3399
|
gap: var(--spacing-2);
|
|
@@ -3460,6 +3460,14 @@ var Button = import_react6.default.forwardRef(
|
|
|
3460
3460
|
icon && children && styles.withIcon
|
|
3461
3461
|
],
|
|
3462
3462
|
...props,
|
|
3463
|
+
onClick: (e) => {
|
|
3464
|
+
var _a;
|
|
3465
|
+
if (disabled) {
|
|
3466
|
+
e.preventDefault();
|
|
3467
|
+
return;
|
|
3468
|
+
}
|
|
3469
|
+
(_a = props.onClick) == null ? void 0 : _a.call(props, e);
|
|
3470
|
+
},
|
|
3463
3471
|
children: [
|
|
3464
3472
|
icon,
|
|
3465
3473
|
children && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("span", { css: [labelStyles(!isLoading), labelStyleOverrides], children }),
|