@bluemarble/bm-components 0.0.23 → 0.0.26

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/esm/index.js CHANGED
@@ -14882,9 +14882,13 @@ function FormikAutocomplete(_a) {
14882
14882
  return props.options.find((option) => Object.values(option)[0] === defaultValue);
14883
14883
  }, []);
14884
14884
  const onChange = (_, newValue) => {
14885
+ const value = option === null || option === void 0 ? void 0 : option.value;
14885
14886
  if (getOptionValue) {
14886
14887
  setValue(getOptionValue(newValue));
14887
14888
  }
14889
+ else if (value) {
14890
+ setValue(newValue[value]);
14891
+ }
14888
14892
  else
14889
14893
  setValue(newValue);
14890
14894
  };
@@ -14974,8 +14978,8 @@ const FormikRadio = (_a) => {
14974
14978
  };
14975
14979
 
14976
14980
  const LargeButton = (_a) => {
14977
- var { loading, children, CircularProgressProps } = _a, rest = __rest(_a, ["loading", "children", "CircularProgressProps"]);
14978
- return (React__default.createElement(Button, Object.assign({ variant: "contained", fullWidth: true, sx: Object.assign({ color: "#fff", fontWeight: "bold" }, rest.sx), disabled: rest.disabled || loading }, rest), loading ? (React__default.createElement(CircularProgress, Object.assign({ size: 25, color: "inherit" }, CircularProgressProps))) : (children)));
14981
+ var { loading, children, CircularProgressProps, sx } = _a, rest = __rest(_a, ["loading", "children", "CircularProgressProps", "sx"]);
14982
+ return (React__default.createElement(Button, Object.assign({ variant: "contained", fullWidth: true, sx: Object.assign({ color: "#fff", fontWeight: "bold" }, sx), disabled: rest.disabled || loading }, rest), loading ? (React__default.createElement(CircularProgress, Object.assign({ size: 25, color: "inherit" }, CircularProgressProps))) : (children)));
14979
14983
  };
14980
14984
 
14981
14985
  /* eslint no-undef: "off" */