componenteshospitais 1.3.1 → 1.3.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
@@ -103,10 +103,10 @@ var Button = function (_a) {
103
103
  };
104
104
 
105
105
  var InputField = function (_a) {
106
- var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura;
106
+ var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura, readonly = _a.readonly, disabled = _a.disabled, required = _a.required;
107
107
  return (React.createElement(React.Fragment, null,
108
108
  label && React.createElement("label", { htmlFor: id }, label),
109
- React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao, style: { width: largura ? "".concat(largura) : '' } })));
109
+ React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao, style: { width: largura ? "".concat(largura) : '' }, readOnly: readonly, disabled: disabled, required: required })));
110
110
  };
111
111
 
112
112
  var css_248z$3 = ".textPage-module_container__GBEF6{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:20px}.textPage-module_content__CpD68{display:flex;text-align:justify}.textPage-module_imageCabecalho__J6YFH{border-radius:8px}.textPage-module_imageCabecalho__J6YFH img{border-radius:8px;height:100%;object-fit:cover;width:100%}.textPage-module_contentWithLateralImage__-f5pQ{flex-direction:row}.textPage-module_imageLateral__Dy9Kx{align-self:flex-start;height:230px;margin-right:20px;margin-top:15px;width:300px}.textPage-module_imageLateral__Dy9Kx img{border-radius:8px;height:100%;object-fit:cover;width:100%}.textPage-module_text__3pwuU{color:#5d5d5d;flex:2;line-height:1.8;text-align:justify}.textPage-module_text__3pwuU p{line-height:1.6;margin:10px 0}.textPage-module_text__3pwuU .textPage-module_coordenacao__UypV-,.textPage-module_text__3pwuU .textPage-module_direcao__x5psb{font-weight:700;margin-top:20px}";
package/dist/esm/index.js CHANGED
@@ -101,10 +101,10 @@ var Button = function (_a) {
101
101
  };
102
102
 
103
103
  var InputField = function (_a) {
104
- var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura;
104
+ var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura, readonly = _a.readonly, disabled = _a.disabled, required = _a.required;
105
105
  return (React.createElement(React.Fragment, null,
106
106
  label && React.createElement("label", { htmlFor: id }, label),
107
- React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao, style: { width: largura ? "".concat(largura) : '' } })));
107
+ React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao, style: { width: largura ? "".concat(largura) : '' }, readOnly: readonly, disabled: disabled, required: required })));
108
108
  };
109
109
 
110
110
  var css_248z$3 = ".textPage-module_container__GBEF6{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:20px}.textPage-module_content__CpD68{display:flex;text-align:justify}.textPage-module_imageCabecalho__J6YFH{border-radius:8px}.textPage-module_imageCabecalho__J6YFH img{border-radius:8px;height:100%;object-fit:cover;width:100%}.textPage-module_contentWithLateralImage__-f5pQ{flex-direction:row}.textPage-module_imageLateral__Dy9Kx{align-self:flex-start;height:230px;margin-right:20px;margin-top:15px;width:300px}.textPage-module_imageLateral__Dy9Kx img{border-radius:8px;height:100%;object-fit:cover;width:100%}.textPage-module_text__3pwuU{color:#5d5d5d;flex:2;line-height:1.8;text-align:justify}.textPage-module_text__3pwuU p{line-height:1.6;margin:10px 0}.textPage-module_text__3pwuU .textPage-module_coordenacao__UypV-,.textPage-module_text__3pwuU .textPage-module_direcao__x5psb{font-weight:700;margin-top:20px}";
@@ -7,6 +7,9 @@ interface InputFieldProps {
7
7
  value: string;
8
8
  onChange: (e: ChangeEvent<HTMLInputElement>) => void;
9
9
  largura?: string;
10
+ readonly?: boolean;
11
+ disabled?: boolean;
12
+ required?: boolean;
10
13
  }
11
14
  declare const InputField: React.FC<InputFieldProps>;
12
15
  export default InputField;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componenteshospitais",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -9,22 +9,28 @@ interface InputFieldProps {
9
9
  value: string;
10
10
  onChange: (e: ChangeEvent<HTMLInputElement>) => void;
11
11
  largura?: string;
12
+ readonly?: boolean;
13
+ disabled?: boolean;
14
+ required?: boolean;
12
15
  }
13
16
 
14
- const InputField: React.FC<InputFieldProps> = ({ type, id, placeholder, onChange, value, label, largura }) => {
17
+ const InputField: React.FC<InputFieldProps> = ({ type, id, placeholder, onChange, value, label, largura, readonly, disabled, required }) => {
15
18
  return (
16
19
  <>
17
- {label && <label htmlFor={id}>{label}</label>}
18
- <input
19
- type={type}
20
- id={id}
21
- name={id}
22
- value={value}
23
- placeholder={placeholder}
24
- onChange={onChange}
25
- className={styles.inputPadrao}
26
- style={{width: largura ? `${largura}` : ''}}
27
- />
20
+ {label && <label htmlFor={id}>{label}</label>}
21
+ <input
22
+ type={type}
23
+ id={id}
24
+ name={id}
25
+ value={value}
26
+ placeholder={placeholder}
27
+ onChange={onChange}
28
+ className={styles.inputPadrao}
29
+ style={{ width: largura ? `${largura}` : '' }}
30
+ readOnly={readonly}
31
+ disabled={disabled}
32
+ required={required}
33
+ />
28
34
  </>
29
35
  );
30
36
  };