@ballistix.digital/react-components 9.8.1 → 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 +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4553,7 +4553,7 @@ const $06795e94e474e27d$var$List = (props)=>{
|
|
|
4553
4553
|
});
|
|
4554
4554
|
};
|
|
4555
4555
|
const $06795e94e474e27d$var$Item = (props)=>{
|
|
4556
|
-
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;
|
|
4556
|
+
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;
|
|
4557
4557
|
if (isHidden) return null;
|
|
4558
4558
|
const handleGenerateStyle = ()=>{
|
|
4559
4559
|
const result = (0, $f0c671820c340322$export$e2d2075c69d9100d)((0, $9420756208be2d43$export$2e2bcd8739ae039).base);
|
|
@@ -4565,18 +4565,18 @@ const $06795e94e474e27d$var$Item = (props)=>{
|
|
|
4565
4565
|
};
|
|
4566
4566
|
const styles = handleGenerateStyle();
|
|
4567
4567
|
const handleClickLink = (e)=>{
|
|
4568
|
-
if (isDisabled || isLoading
|
|
4568
|
+
if (isDisabled || isLoading) {
|
|
4569
4569
|
e.preventDefault();
|
|
4570
4570
|
return;
|
|
4571
4571
|
}
|
|
4572
|
-
onClick(e);
|
|
4572
|
+
if (onClick) onClick(e);
|
|
4573
4573
|
};
|
|
4574
4574
|
const handleClick = (e)=>{
|
|
4575
4575
|
if (isDisabled || isLoading || !onClick) return;
|
|
4576
4576
|
onClick(e);
|
|
4577
4577
|
};
|
|
4578
4578
|
if (href && LinkComponent) return (0, $iA2ta$reactjsxruntime.jsxs)(LinkComponent, {
|
|
4579
|
-
href:
|
|
4579
|
+
href: href,
|
|
4580
4580
|
"aria-disabled": isDisabled,
|
|
4581
4581
|
className: (0, $622cd2936b18c771$export$4370d69198e9314a)(styles.tab.base, isCurrent ? styles.tab.active : styles.tab.inactive, isLoading && 'opacity-30 text-gray-300! cursor-default!', isLoading && styles.tab.inactive, isDisabled && 'opacity-30 text-gray-300! cursor-not-allowed! pointer-events-none', isDisabled && styles.tab.inactive),
|
|
4582
4582
|
onClick: handleClickLink,
|