@rolster/react-components 18.15.21 → 18.15.23

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 CHANGED
@@ -1437,8 +1437,8 @@ function RlsInput({ children, disabled, formControl, onValue, placeholder, type,
1437
1437
  }
1438
1438
  return (jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-input', {
1439
1439
  focused: formControl?.focused ?? focused,
1440
- disabled: formControl?.disabled ?? disabled
1441
- }), 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
+ disabled: formControl?.disabled || disabled
1441
+ }), 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 })] }));
1442
1442
  }
1443
1443
 
1444
1444
  function RlsInputMoney({ decimals, disabled, formControl, onValue, placeholder, symbol, value }) {
@@ -1475,7 +1475,7 @@ function RlsInputPassword({ disabled, formControl, onValue, placeholder, type })
1475
1475
  }
1476
1476
  return (jsxRuntimeExports.jsx("div", { className: renderClassStatus('rls-input-password', {
1477
1477
  focused: formControl?.focused ?? focused,
1478
- disabled
1478
+ disabled: formControl?.disabled || disabled
1479
1479
  }), children: jsxRuntimeExports.jsx("input", { className: "rls-input-password__component", autoComplete: "off", type: type ?? 'password', placeholder: placeholder, disabled: disabled, onFocus: onFocus, onBlur: onBlur, onChange: onChange }) }));
1480
1480
  }
1481
1481