componenteshospitais 3.0.8 → 3.0.9
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 +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- package/src/components/InputField.tsx +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -297,7 +297,7 @@ var InputField = function (_a) {
|
|
|
297
297
|
return (React.createElement(React.Fragment, null,
|
|
298
298
|
label && React.createElement("label", { htmlFor: id, style: { color: corLabel ? corLabel : '' } }, label),
|
|
299
299
|
React.createElement("div", { className: styles$5.inputWrapper },
|
|
300
|
-
React.createElement("input", { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: name, value: value, placeholder: placeholder, onChange: handleChange, className: styles$5.inputPadrao, style: {
|
|
300
|
+
React.createElement("input", { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: name, value: value, placeholder: placeholder, onChange: onChange !== null && onChange !== void 0 ? onChange : handleChange, className: styles$5.inputPadrao, style: {
|
|
301
301
|
width: largura ? "".concat(largura) : '',
|
|
302
302
|
backgroundColor: disabled ? '#e5e5e5' : (corFundo ? corFundo : ''),
|
|
303
303
|
borderRadius: borderRadius ? "".concat(borderRadius, "px") : '',
|
package/dist/esm/index.js
CHANGED
|
@@ -295,7 +295,7 @@ var InputField = function (_a) {
|
|
|
295
295
|
return (React.createElement(React.Fragment, null,
|
|
296
296
|
label && React.createElement("label", { htmlFor: id, style: { color: corLabel ? corLabel : '' } }, label),
|
|
297
297
|
React.createElement("div", { className: styles$5.inputWrapper },
|
|
298
|
-
React.createElement("input", { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: name, value: value, placeholder: placeholder, onChange: handleChange, className: styles$5.inputPadrao, style: {
|
|
298
|
+
React.createElement("input", { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: name, value: value, placeholder: placeholder, onChange: onChange !== null && onChange !== void 0 ? onChange : handleChange, className: styles$5.inputPadrao, style: {
|
|
299
299
|
width: largura ? "".concat(largura) : '',
|
|
300
300
|
backgroundColor: disabled ? '#e5e5e5' : (corFundo ? corFundo : ''),
|
|
301
301
|
borderRadius: borderRadius ? "".concat(borderRadius, "px") : '',
|
package/package.json
CHANGED
|
@@ -127,7 +127,7 @@ const InputField: React.FC<InputFieldProps> = ({
|
|
|
127
127
|
name={name}
|
|
128
128
|
value={value}
|
|
129
129
|
placeholder={placeholder}
|
|
130
|
-
onChange={handleChange}
|
|
130
|
+
onChange={onChange ?? handleChange}
|
|
131
131
|
className={styles.inputPadrao}
|
|
132
132
|
style={{
|
|
133
133
|
width: largura ? `${largura}` : '',
|