componenteshospitais 4.7.5 → 4.7.6
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 +2 -2
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
- package/src/components/InputField.tsx +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -304,7 +304,7 @@ var InputField = function (_a) {
|
|
|
304
304
|
borderRadius: (borderRadius ? "".concat(borderRadius, "px") : ''),
|
|
305
305
|
border: (border ? border : ''),
|
|
306
306
|
paddingLeft: (icon && (alignIcon === 'left' || !alignIcon) ? '30px' : '')
|
|
307
|
-
}, readOnly: readonly, required: required, checked: checked, onKeyPress: onKeyPress, onKeyDown: onKeyDown, onBlur: onBlur, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRefMasked, title: value, accept: accept }),
|
|
307
|
+
}, readOnly: readonly, required: required, checked: checked, onKeyPress: onKeyPress, onKeyDown: onKeyDown, onBlur: onBlur, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRefMasked, title: type === 'password' ? 'password' : value, accept: accept }),
|
|
308
308
|
((icon && alignIcon === 'right') || busca) &&
|
|
309
309
|
(React.createElement("span", { className: "".concat(busca ? 'fa fa-search' : icon, " ").concat(styles$8.iconInputRight), style: { cursor: functionIcon ? 'pointer' : '', color: colorIcon ? colorIcon : '' }, onClick: disabled ? function () { } : handleActionClick })))) : (React.createElement(React.Fragment, null,
|
|
310
310
|
icon && (alignIcon === 'left' || !alignIcon) &&
|
|
@@ -315,7 +315,7 @@ var InputField = function (_a) {
|
|
|
315
315
|
borderRadius: (borderRadius ? "".concat(borderRadius, "px") : ''),
|
|
316
316
|
border: (border ? border : ''),
|
|
317
317
|
paddingLeft: (icon && (alignIcon === 'left' || !alignIcon) ? '30px' : '')
|
|
318
|
-
}, readOnly: readonly, disabled: disabled, required: required, checked: checked, maxLength: type === 'text' ? appliedMaxLength : undefined, onKeyPress: onKeyPress, onBlur: onBlur, onKeyDown: onKeyDown, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRef, title: value, accept: accept }),
|
|
318
|
+
}, readOnly: readonly, disabled: disabled, required: required, checked: checked, maxLength: type === 'text' ? appliedMaxLength : undefined, onKeyPress: onKeyPress, onBlur: onBlur, onKeyDown: onKeyDown, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRef, title: type === 'password' ? 'password' : value, accept: accept }),
|
|
319
319
|
((icon && alignIcon === 'right') || busca) &&
|
|
320
320
|
(React.createElement("span", { className: "".concat(busca ? 'fa fa-search' : icon, " ").concat(styles$8.iconInputRight), style: { cursor: functionIcon ? 'pointer' : '', color: colorIcon ? colorIcon : '' }, onClick: disabled ? function () { } : handleActionClick })))),
|
|
321
321
|
type === 'password' && (React.createElement("div", { className: styles$8.passwordToggleIcon, onClick: togglePasswordVisibility }, isPasswordVisible ? React.createElement(FaEyeSlash, { style: { color: colorIcon ? colorIcon : '' } }) : React.createElement(FaEye, { style: { color: colorIcon ? colorIcon : '' } }))))));
|
package/dist/esm/index.js
CHANGED
|
@@ -302,7 +302,7 @@ var InputField = function (_a) {
|
|
|
302
302
|
borderRadius: (borderRadius ? "".concat(borderRadius, "px") : ''),
|
|
303
303
|
border: (border ? border : ''),
|
|
304
304
|
paddingLeft: (icon && (alignIcon === 'left' || !alignIcon) ? '30px' : '')
|
|
305
|
-
}, readOnly: readonly, required: required, checked: checked, onKeyPress: onKeyPress, onKeyDown: onKeyDown, onBlur: onBlur, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRefMasked, title: value, accept: accept }),
|
|
305
|
+
}, readOnly: readonly, required: required, checked: checked, onKeyPress: onKeyPress, onKeyDown: onKeyDown, onBlur: onBlur, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRefMasked, title: type === 'password' ? 'password' : value, accept: accept }),
|
|
306
306
|
((icon && alignIcon === 'right') || busca) &&
|
|
307
307
|
(React.createElement("span", { className: "".concat(busca ? 'fa fa-search' : icon, " ").concat(styles$8.iconInputRight), style: { cursor: functionIcon ? 'pointer' : '', color: colorIcon ? colorIcon : '' }, onClick: disabled ? function () { } : handleActionClick })))) : (React.createElement(React.Fragment, null,
|
|
308
308
|
icon && (alignIcon === 'left' || !alignIcon) &&
|
|
@@ -313,7 +313,7 @@ var InputField = function (_a) {
|
|
|
313
313
|
borderRadius: (borderRadius ? "".concat(borderRadius, "px") : ''),
|
|
314
314
|
border: (border ? border : ''),
|
|
315
315
|
paddingLeft: (icon && (alignIcon === 'left' || !alignIcon) ? '30px' : '')
|
|
316
|
-
}, readOnly: readonly, disabled: disabled, required: required, checked: checked, maxLength: type === 'text' ? appliedMaxLength : undefined, onKeyPress: onKeyPress, onBlur: onBlur, onKeyDown: onKeyDown, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRef, title: value, accept: accept }),
|
|
316
|
+
}, readOnly: readonly, disabled: disabled, required: required, checked: checked, maxLength: type === 'text' ? appliedMaxLength : undefined, onKeyPress: onKeyPress, onBlur: onBlur, onKeyDown: onKeyDown, "data-chave": chave, "data-auto-incremento": autoIncremento, "data-inativo": inativo, ref: inputRef, title: type === 'password' ? 'password' : value, accept: accept }),
|
|
317
317
|
((icon && alignIcon === 'right') || busca) &&
|
|
318
318
|
(React.createElement("span", { className: "".concat(busca ? 'fa fa-search' : icon, " ").concat(styles$8.iconInputRight), style: { cursor: functionIcon ? 'pointer' : '', color: colorIcon ? colorIcon : '' }, onClick: disabled ? function () { } : handleActionClick })))),
|
|
319
319
|
type === 'password' && (React.createElement("div", { className: styles$8.passwordToggleIcon, onClick: togglePasswordVisibility }, isPasswordVisible ? React.createElement(FaEyeSlash, { style: { color: colorIcon ? colorIcon : '' } }) : React.createElement(FaEye, { style: { color: colorIcon ? colorIcon : '' } }))))));
|
package/package.json
CHANGED
|
@@ -203,7 +203,7 @@ const InputField: React.FC<InputFieldProps> = ({
|
|
|
203
203
|
data-auto-incremento={autoIncremento}
|
|
204
204
|
data-inativo={inativo}
|
|
205
205
|
ref={inputRefMasked}
|
|
206
|
-
title={value}
|
|
206
|
+
title={type === 'password' ? 'password' : value}
|
|
207
207
|
accept={accept}
|
|
208
208
|
/>
|
|
209
209
|
{((icon && alignIcon === 'right') || busca) &&
|
|
@@ -242,7 +242,7 @@ const InputField: React.FC<InputFieldProps> = ({
|
|
|
242
242
|
data-auto-incremento={autoIncremento}
|
|
243
243
|
data-inativo={inativo}
|
|
244
244
|
ref={inputRef}
|
|
245
|
-
title={value}
|
|
245
|
+
title={type === 'password' ? 'password' : value}
|
|
246
246
|
accept={accept}
|
|
247
247
|
/>
|
|
248
248
|
{((icon && alignIcon === 'right') || busca) &&
|