@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.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,11 +4565,11 @@ const $06795e94e474e27d$var$Item = (props)=>{
4565
4565
  };
4566
4566
  const styles = handleGenerateStyle();
4567
4567
  const handleClickLink = (e)=>{
4568
- if (isDisabled || isLoading || !onClick) {
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;