componenteshospitais 3.2.2 → 3.2.3

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
@@ -125,7 +125,7 @@ var Button = function (_a) {
125
125
  var empresaClass = styles$5["empresa".concat(empresa)];
126
126
  return (React.createElement("div", { className: "".concat(empresaClass) },
127
127
  React.createElement("div", { className: "".concat(styles$5.inputWrapper) },
128
- icon && (React.createElement("div", { className: "".concat(icon, " ").concat(styles$5.iconButton, " ").concat(styles$5.iconInput) })),
128
+ icon && (React.createElement("span", { className: "".concat(icon, " ").concat(styles$5.iconButton, " ").concat(styles$5.iconInput) })),
129
129
  type === 'submit' ? (React.createElement("input", { type: "submit", className: styles$5.inputSubmit, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, value: texto, disabled: disabled })) : (React.createElement("button", { type: "button", className: styles$5.inputSubmit, onClick: onClick, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, dangerouslySetInnerHTML: { __html: texto }, disabled: disabled })))));
130
130
  };
131
131
 
@@ -249,7 +249,7 @@ var InputField = function (_a) {
249
249
  label && React.createElement("label", { htmlFor: id, style: { color: corLabel ? corLabel : '' } }, label),
250
250
  React.createElement("div", { className: "".concat(styles$5.inputWrapper, " ").concat(empresa ? empresaClass : '') },
251
251
  maskType ? (React.createElement(React.Fragment, null,
252
- icon && (React.createElement("div", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
252
+ icon && (React.createElement("span", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
253
253
  React.createElement(MaskedInput, { mask: mask, value: value, onChange: handleChange, disabled: disabled, id: id, name: id, placeholder: placeholder, className: styles$5.inputPadrao, style: {
254
254
  width: largura ? "".concat(largura) : '',
255
255
  backgroundColor: (disabled ? '#e5e5e5' : (corFundo ? corFundo : '')),
@@ -257,7 +257,7 @@ var InputField = function (_a) {
257
257
  border: (border ? border : ''),
258
258
  paddingLeft: (icon ? '30px' : '')
259
259
  }, readOnly: readonly, required: required, checked: checked, onKeyPress: onKeyPress }))) : (React.createElement(React.Fragment, null,
260
- icon && (React.createElement("div", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
260
+ icon && (React.createElement("span", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
261
261
  React.createElement("input", { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: id, value: value, placeholder: placeholder, onChange: handleChange, className: styles$5.inputPadrao, style: {
262
262
  width: largura ? "".concat(largura) : '',
263
263
  backgroundColor: (disabled ? '#e5e5e5' : (corFundo ? corFundo : '')),
package/dist/esm/index.js CHANGED
@@ -123,7 +123,7 @@ var Button = function (_a) {
123
123
  var empresaClass = styles$5["empresa".concat(empresa)];
124
124
  return (React.createElement("div", { className: "".concat(empresaClass) },
125
125
  React.createElement("div", { className: "".concat(styles$5.inputWrapper) },
126
- icon && (React.createElement("div", { className: "".concat(icon, " ").concat(styles$5.iconButton, " ").concat(styles$5.iconInput) })),
126
+ icon && (React.createElement("span", { className: "".concat(icon, " ").concat(styles$5.iconButton, " ").concat(styles$5.iconInput) })),
127
127
  type === 'submit' ? (React.createElement("input", { type: "submit", className: styles$5.inputSubmit, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, value: texto, disabled: disabled })) : (React.createElement("button", { type: "button", className: styles$5.inputSubmit, onClick: onClick, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, dangerouslySetInnerHTML: { __html: texto }, disabled: disabled })))));
128
128
  };
129
129
 
@@ -247,7 +247,7 @@ var InputField = function (_a) {
247
247
  label && React.createElement("label", { htmlFor: id, style: { color: corLabel ? corLabel : '' } }, label),
248
248
  React.createElement("div", { className: "".concat(styles$5.inputWrapper, " ").concat(empresa ? empresaClass : '') },
249
249
  maskType ? (React.createElement(React.Fragment, null,
250
- icon && (React.createElement("div", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
250
+ icon && (React.createElement("span", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
251
251
  React.createElement(MaskedInput, { mask: mask, value: value, onChange: handleChange, disabled: disabled, id: id, name: id, placeholder: placeholder, className: styles$5.inputPadrao, style: {
252
252
  width: largura ? "".concat(largura) : '',
253
253
  backgroundColor: (disabled ? '#e5e5e5' : (corFundo ? corFundo : '')),
@@ -255,7 +255,7 @@ var InputField = function (_a) {
255
255
  border: (border ? border : ''),
256
256
  paddingLeft: (icon ? '30px' : '')
257
257
  }, readOnly: readonly, required: required, checked: checked, onKeyPress: onKeyPress }))) : (React.createElement(React.Fragment, null,
258
- icon && (React.createElement("div", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
258
+ icon && (React.createElement("span", { className: "".concat(icon, " ").concat(styles$5.iconInput) })),
259
259
  React.createElement("input", { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: id, value: value, placeholder: placeholder, onChange: handleChange, className: styles$5.inputPadrao, style: {
260
260
  width: largura ? "".concat(largura) : '',
261
261
  backgroundColor: (disabled ? '#e5e5e5' : (corFundo ? corFundo : '')),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componenteshospitais",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@ const Button: React.FC<ButtonProps> = ({ empresa, type = 'submit', onClick, text
18
18
  return (
19
19
  <div className={`${empresaClass}`}>
20
20
  <div className={`${styles.inputWrapper}`}>
21
- {icon && (<div className={`${icon} ${styles.iconButton} ${styles.iconInput}`}></div>)}
21
+ {icon && (<span className={`${icon} ${styles.iconButton} ${styles.iconInput}`}></span>)}
22
22
  {type === 'submit' ? (
23
23
  <input type="submit" className={styles.inputSubmit} style={{width: largura ? `${largura}` : '', borderRadius: borderRadius ? `${borderRadius}px` : '' }} value={texto} disabled={disabled}/>
24
24
  ) : (
@@ -90,7 +90,7 @@ const InputField: React.FC<InputFieldProps> = ({
90
90
  <div className={`${styles.inputWrapper} ${empresa ? empresaClass : ''}`}>
91
91
  {maskType ? (
92
92
  <>
93
- {icon && (<div className={`${icon} ${styles.iconInput}`}></div>)}
93
+ {icon && (<span className={`${icon} ${styles.iconInput}`}></span>)}
94
94
  <MaskedInput
95
95
  mask={mask}
96
96
  value={value}
@@ -115,7 +115,7 @@ const InputField: React.FC<InputFieldProps> = ({
115
115
  </>
116
116
  ) : (
117
117
  <>
118
- {icon && (<div className={`${icon} ${styles.iconInput}`}></div>)}
118
+ {icon && (<span className={`${icon} ${styles.iconInput}`}></span>)}
119
119
  <input
120
120
  type={type === 'password' && isPasswordVisible ? 'text' : type}
121
121
  id={id}