@ballistix.digital/react-components 9.8.1-rc-384.0 → 9.8.2-rc-387.0
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.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4485,7 +4485,7 @@ const $fa0fc9b7e04a1799$var$List = (props)=>{
|
|
|
4485
4485
|
});
|
|
4486
4486
|
};
|
|
4487
4487
|
const $fa0fc9b7e04a1799$var$Item = (props)=>{
|
|
4488
|
-
const { label: label, icon: icon, as: LinkComponent = 'a', type: type = 'underline', href: href, isCurrent: isCurrent, onClick: onClick, styles: stylesOverrides, isLoading: isLoading, isHidden: isHidden, isDisabled: isDisabled } = props;
|
|
4488
|
+
const { label: label, icon: icon, as: LinkComponent = 'a', type: type = 'underline', href: href, isCurrent: isCurrent, onClick: onClick, styles: stylesOverrides, isLoading: isLoading, isHidden: isHidden, isDisabled: isDisabled = false } = props;
|
|
4489
4489
|
if (isHidden) return null;
|
|
4490
4490
|
const handleGenerateStyle = ()=>{
|
|
4491
4491
|
const result = (0, $b3fc44f26b625a32$export$e2d2075c69d9100d)((0, $579a3cb18d8026e0$export$2e2bcd8739ae039).base);
|
|
@@ -4497,11 +4497,11 @@ const $fa0fc9b7e04a1799$var$Item = (props)=>{
|
|
|
4497
4497
|
};
|
|
4498
4498
|
const styles = handleGenerateStyle();
|
|
4499
4499
|
const handleClickLink = (e)=>{
|
|
4500
|
-
if (isDisabled || isLoading
|
|
4500
|
+
if (isDisabled || isLoading) {
|
|
4501
4501
|
e.preventDefault();
|
|
4502
4502
|
return;
|
|
4503
4503
|
}
|
|
4504
|
-
onClick(e);
|
|
4504
|
+
if (onClick) onClick(e);
|
|
4505
4505
|
};
|
|
4506
4506
|
const handleClick = (e)=>{
|
|
4507
4507
|
if (isDisabled || isLoading || !onClick) return;
|