@rebasepro/ui 0.4.0 → 0.5.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.umd.js CHANGED
@@ -873,9 +873,10 @@
873
873
  "min-h-[64px]": size === "large"
874
874
  }, size === "small" || size === "smallest" ? "pl-2" : "pl-4", size === "small" || size === "smallest" ? "pr-4" : "pr-6", position === "end" ? "flex-row-reverse" : "flex-row", fullWidth ? "w-full" : "", className), onClick: disabled ? void 0 : (e) => {
875
875
  if (props.allowIndeterminate) {
876
- if (value === null || value === void 0) onValueChange?.(true);
877
- else if (value) onValueChange?.(false);
878
- else onValueChange?.(null);
876
+ const onChange = onValueChange;
877
+ if (value === null || value === void 0) onChange?.(true);
878
+ else if (value) onChange?.(false);
879
+ else onChange?.(null);
879
880
  } else {
880
881
  onValueChange?.(!value);
881
882
  }