dynamic-mui 1.0.47 → 1.0.48

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.
@@ -68,18 +68,6 @@ function Select(_ref2) {
68
68
  }
69
69
  return MuiAttributes;
70
70
  };
71
-
72
- // useUpdateEffect(() => {
73
- // const newValue = MuiAttributes.multiple
74
- // ? (value || []).map((option) => option.title || option.label || option.value)
75
- // : inputValue;
76
- // onChange({ id, value: newValue, option: value });
77
- // }, [value, inputValue]);
78
-
79
- // const onInputChange = useCallback((event, newInputValue) => {
80
- // setInputValue(newInputValue);
81
- // }, []);
82
-
83
71
  const onChangeEvent = (0, _react.useCallback)((event, newValue) => {
84
72
  setValue(newValue);
85
73
  if (newValue) {
@@ -99,10 +87,7 @@ function Select(_ref2) {
99
87
  disablePortal: true,
100
88
  options: options,
101
89
  value: value,
102
- onChange: onChangeEvent
103
- // inputValue={inputValue}
104
- // onInputChange={onInputChange}
105
- ,
90
+ onChange: onChangeEvent,
106
91
  renderInput: params => /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({}, params, MuiBoxAttributes, {
107
92
  inputProps: {
108
93
  ...params.inputProps,
@@ -92,7 +92,7 @@ function Stepper(_ref) {
92
92
  type: stepChange
93
93
  });
94
94
  const newStep = activeStep + (stepChange === 'NEXT_STEP' ? 1 : -1);
95
- onStepUpdate === null || onStepUpdate === void 0 || onStepUpdate(newStep, isScreenChange, isLastStep);
95
+ onStepUpdate === null || onStepUpdate === void 0 || onStepUpdate(newStep, isScreenChange && stepChange === 'NEXT_STEP', isLastStep);
96
96
  if (isLastStep) {
97
97
  onChange === null || onChange === void 0 || onChange({
98
98
  id: attributes.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-mui",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "author": "Dinakaran S",
5
5
  "user": "dinakarans",
6
6
  "repository": {