dynamic-mui 1.0.47 → 1.0.49
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,
|
|
@@ -78,7 +78,7 @@ function Stepper(_ref) {
|
|
|
78
78
|
return () => {
|
|
79
79
|
response[attributes.id] = {}; // Cleanup response on component unmount
|
|
80
80
|
// eslint-disable-next-line no-console
|
|
81
|
-
console.log('Component unmounted');
|
|
81
|
+
// console.log('Component unmounted');
|
|
82
82
|
};
|
|
83
83
|
}, [patch, attributes.id]);
|
|
84
84
|
(0, _react.useEffect)(() => {
|
|
@@ -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.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"author": "Dinakaran S",
|
|
5
5
|
"user": "dinakarans",
|
|
6
6
|
"repository": {
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"@babel/eslint-parser": "^7.23.3",
|
|
18
18
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
19
19
|
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
|
|
20
|
-
"@emotion/react": "^11.11.
|
|
20
|
+
"@emotion/react": "^11.11.3",
|
|
21
21
|
"@emotion/styled": "^11.11.0",
|
|
22
|
-
"@mui/icons-material": "^5.15.
|
|
23
|
-
"@mui/material": "^5.15.
|
|
24
|
-
"@mui/x-charts": "^6.18.
|
|
25
|
-
"@mui/x-data-grid": "^6.18.
|
|
26
|
-
"@mui/x-date-pickers": "^6.18.
|
|
22
|
+
"@mui/icons-material": "^5.15.2",
|
|
23
|
+
"@mui/material": "^5.15.2",
|
|
24
|
+
"@mui/x-charts": "^6.18.4",
|
|
25
|
+
"@mui/x-data-grid": "^6.18.6",
|
|
26
|
+
"@mui/x-date-pickers": "^6.18.6",
|
|
27
27
|
"@testing-library/jest-dom": "^6.1.5",
|
|
28
28
|
"@testing-library/react": "^14.1.2",
|
|
29
29
|
"@testing-library/user-event": "^14.5.1",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"eslint-config-prettier": "^9.1.0",
|
|
83
83
|
"eslint-plugin-import": "^2.29.1",
|
|
84
84
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
85
|
-
"eslint-plugin-prettier": "^5.1.
|
|
85
|
+
"eslint-plugin-prettier": "^5.1.2",
|
|
86
86
|
"eslint-plugin-react": "^7.33.2",
|
|
87
87
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
88
88
|
"prettier": "^3.1.1",
|