@rolster/react-components 18.15.20 → 18.15.22
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +3 -3
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.js +1 -1
- package/dist/esm/components/atoms/InputPassword/InputPassword.js +1 -1
- package/dist/esm/components/atoms/InputPassword/InputPassword.js.map +1 -1
- package/dist/esm/hooks/ListControlHook.js +1 -1
- package/dist/esm/hooks/ListControlHook.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -1435,7 +1435,7 @@ function RlsInput({ children, disabled, formControl, onValue, placeholder, type,
|
|
|
1435
1435
|
}
|
|
1436
1436
|
return (jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-input', {
|
|
1437
1437
|
focused: formControl?.focused ?? focused,
|
|
1438
|
-
disabled: formControl?.disabled
|
|
1438
|
+
disabled: formControl?.disabled || disabled
|
|
1439
1439
|
}), children: [jsxRuntimeExports.jsx("input", { ref: formControl?.elementRef, className: "rls-input__component", autoComplete: "off", type: type ?? 'text', placeholder: placeholder, disabled: formControl?.disabled ?? disabled, onFocus: onFocus, onBlur: onBlur, onChange: onChange, value: formControl?.value ?? value ?? '' }), jsxRuntimeExports.jsx("span", { className: "rls-input__value", children: children })] }));
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
@@ -1473,7 +1473,7 @@ function RlsInputPassword({ disabled, formControl, onValue, placeholder, type })
|
|
|
1473
1473
|
}
|
|
1474
1474
|
return (jsxRuntimeExports.jsx("div", { className: renderClassStatus('rls-input-password', {
|
|
1475
1475
|
focused: formControl?.focused ?? focused,
|
|
1476
|
-
disabled
|
|
1476
|
+
disabled: formControl?.disabled || disabled
|
|
1477
1477
|
}), children: jsxRuntimeExports.jsx("input", { className: "rls-input-password__component", autoComplete: "off", type: type ?? 'password', placeholder: placeholder, disabled: disabled, onFocus: onFocus, onBlur: onBlur, onChange: onChange }) }));
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
@@ -2130,7 +2130,7 @@ function useListControl({ suggestions, formControl }) {
|
|
|
2130
2130
|
return false;
|
|
2131
2131
|
}
|
|
2132
2132
|
function refreshState(state) {
|
|
2133
|
-
setState((currentState) => ({ ...currentState, state }));
|
|
2133
|
+
setState((currentState) => ({ ...currentState, ...state }));
|
|
2134
2134
|
}
|
|
2135
2135
|
function setFormValue(value) {
|
|
2136
2136
|
formControl?.setValue(value);
|