componenteshospitais 1.1.5 → 1.1.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 +8 -8
- package/dist/esm/index.js +8 -8
- package/dist/types/components/Button.d.ts +1 -0
- package/dist/types/components/Card.d.ts +1 -0
- package/dist/types/components/InputField.d.ts +1 -0
- package/dist/types/components/SelectField.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Button.tsx +4 -3
- package/src/components/Card.tsx +3 -2
- package/src/components/InputField.tsx +3 -1
- package/src/components/SelectField.tsx +3 -1
package/dist/cjs/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var styles$6 = {"icone":"card-module_icone__8F-jV","item":"card-module_item__YYE
|
|
|
50
50
|
styleInject(css_248z$6);
|
|
51
51
|
|
|
52
52
|
var Card = function (_a) {
|
|
53
|
-
var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa;
|
|
53
|
+
var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa, largura = _a.largura;
|
|
54
54
|
var empresaClass = styles$6["empresa".concat(empresa)];
|
|
55
55
|
var handleClick = function () {
|
|
56
56
|
if (link) {
|
|
@@ -58,7 +58,7 @@ var Card = function (_a) {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
return (React.createElement("div", { className: "".concat(empresaClass), onClick: handleClick, style: { cursor: link ? 'pointer' : 'default' } },
|
|
61
|
-
React.createElement("div", { className: "".concat(styles$6.item, " empresa").concat(empresa) },
|
|
61
|
+
React.createElement("div", { className: "".concat(styles$6.item, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '' } },
|
|
62
62
|
img && (React.createElement("img", { src: img, alt: text, className: styles$6.icone })),
|
|
63
63
|
React.createElement("span", { className: styles$6.texto }, text),
|
|
64
64
|
imgLateral && (React.createElement("img", { src: imgLateral, alt: "Right", className: styles$6.imgLateral })))));
|
|
@@ -82,16 +82,16 @@ var styles$4 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputPadrao":"i
|
|
|
82
82
|
styleInject(css_248z$4);
|
|
83
83
|
|
|
84
84
|
var Button = function (_a) {
|
|
85
|
-
var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto;
|
|
85
|
+
var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto, largura = _a.largura;
|
|
86
86
|
var empresaClass = styles$4["empresa".concat(empresa)];
|
|
87
|
-
return (React.createElement("div", { className: "".concat(empresaClass) }, type === 'submit' ? (React.createElement("input", { type: "submit", className: styles$4.inputSubmit })) : (React.createElement("button", { type: "button", className: styles$4.inputSubmit, onClick: onClick }, texto))));
|
|
87
|
+
return (React.createElement("div", { className: "".concat(empresaClass) }, type === 'submit' ? (React.createElement("input", { type: "submit", className: styles$4.inputSubmit, style: { width: largura ? "".concat(largura) : '' } })) : (React.createElement("button", { type: "button", className: styles$4.inputSubmit, onClick: onClick, style: { width: largura ? "".concat(largura) : '' } }, texto))));
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
var InputField = function (_a) {
|
|
91
|
-
var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label;
|
|
91
|
+
var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura;
|
|
92
92
|
return (React.createElement(React.Fragment, null,
|
|
93
93
|
label && React.createElement("label", { htmlFor: id }, label),
|
|
94
|
-
React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao })));
|
|
94
|
+
React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao, style: { width: largura ? "".concat(largura) : '' } })));
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
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}";
|
|
@@ -131,10 +131,10 @@ var styles$1 = {"selectPadrao":"select-module_selectPadrao__poGiL"};
|
|
|
131
131
|
styleInject(css_248z$1);
|
|
132
132
|
|
|
133
133
|
var SelectField = function (_a) {
|
|
134
|
-
var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault;
|
|
134
|
+
var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault, largura = _a.largura;
|
|
135
135
|
return (React.createElement(React.Fragment, null,
|
|
136
136
|
label && React.createElement("label", { htmlFor: id }, label),
|
|
137
|
-
React.createElement("select", { id: id, name: name, className: styles$1.selectPadrao, value: value, onChange: function (e) { return onChange(e.target.value); } },
|
|
137
|
+
React.createElement("select", { id: id, name: name, className: styles$1.selectPadrao, value: value, onChange: function (e) { return onChange(e.target.value); }, style: { width: largura ? "".concat(largura) : '' } },
|
|
138
138
|
optionDefault === true && (React.createElement("option", { value: "" }, "Selecione...")),
|
|
139
139
|
options.map(function (option) { return (React.createElement("option", { key: option.value, value: option.value }, option.description)); }))));
|
|
140
140
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var styles$6 = {"icone":"card-module_icone__8F-jV","item":"card-module_item__YYE
|
|
|
48
48
|
styleInject(css_248z$6);
|
|
49
49
|
|
|
50
50
|
var Card = function (_a) {
|
|
51
|
-
var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa;
|
|
51
|
+
var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa, largura = _a.largura;
|
|
52
52
|
var empresaClass = styles$6["empresa".concat(empresa)];
|
|
53
53
|
var handleClick = function () {
|
|
54
54
|
if (link) {
|
|
@@ -56,7 +56,7 @@ var Card = function (_a) {
|
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
return (React.createElement("div", { className: "".concat(empresaClass), onClick: handleClick, style: { cursor: link ? 'pointer' : 'default' } },
|
|
59
|
-
React.createElement("div", { className: "".concat(styles$6.item, " empresa").concat(empresa) },
|
|
59
|
+
React.createElement("div", { className: "".concat(styles$6.item, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '' } },
|
|
60
60
|
img && (React.createElement("img", { src: img, alt: text, className: styles$6.icone })),
|
|
61
61
|
React.createElement("span", { className: styles$6.texto }, text),
|
|
62
62
|
imgLateral && (React.createElement("img", { src: imgLateral, alt: "Right", className: styles$6.imgLateral })))));
|
|
@@ -80,16 +80,16 @@ var styles$4 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputPadrao":"i
|
|
|
80
80
|
styleInject(css_248z$4);
|
|
81
81
|
|
|
82
82
|
var Button = function (_a) {
|
|
83
|
-
var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto;
|
|
83
|
+
var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto, largura = _a.largura;
|
|
84
84
|
var empresaClass = styles$4["empresa".concat(empresa)];
|
|
85
|
-
return (React.createElement("div", { className: "".concat(empresaClass) }, type === 'submit' ? (React.createElement("input", { type: "submit", className: styles$4.inputSubmit })) : (React.createElement("button", { type: "button", className: styles$4.inputSubmit, onClick: onClick }, texto))));
|
|
85
|
+
return (React.createElement("div", { className: "".concat(empresaClass) }, type === 'submit' ? (React.createElement("input", { type: "submit", className: styles$4.inputSubmit, style: { width: largura ? "".concat(largura) : '' } })) : (React.createElement("button", { type: "button", className: styles$4.inputSubmit, onClick: onClick, style: { width: largura ? "".concat(largura) : '' } }, texto))));
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
var InputField = function (_a) {
|
|
89
|
-
var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label;
|
|
89
|
+
var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura;
|
|
90
90
|
return (React.createElement(React.Fragment, null,
|
|
91
91
|
label && React.createElement("label", { htmlFor: id }, label),
|
|
92
|
-
React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao })));
|
|
92
|
+
React.createElement("input", { type: type, id: id, name: id, value: value, placeholder: placeholder, onChange: onChange, className: styles$4.inputPadrao, style: { width: largura ? "".concat(largura) : '' } })));
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
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}";
|
|
@@ -129,10 +129,10 @@ var styles$1 = {"selectPadrao":"select-module_selectPadrao__poGiL"};
|
|
|
129
129
|
styleInject(css_248z$1);
|
|
130
130
|
|
|
131
131
|
var SelectField = function (_a) {
|
|
132
|
-
var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault;
|
|
132
|
+
var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault, largura = _a.largura;
|
|
133
133
|
return (React.createElement(React.Fragment, null,
|
|
134
134
|
label && React.createElement("label", { htmlFor: id }, label),
|
|
135
|
-
React.createElement("select", { id: id, name: name, className: styles$1.selectPadrao, value: value, onChange: function (e) { return onChange(e.target.value); } },
|
|
135
|
+
React.createElement("select", { id: id, name: name, className: styles$1.selectPadrao, value: value, onChange: function (e) { return onChange(e.target.value); }, style: { width: largura ? "".concat(largura) : '' } },
|
|
136
136
|
optionDefault === true && (React.createElement("option", { value: "" }, "Selecione...")),
|
|
137
137
|
options.map(function (option) { return (React.createElement("option", { key: option.value, value: option.value }, option.description)); }))));
|
|
138
138
|
};
|
package/package.json
CHANGED
|
@@ -6,17 +6,18 @@ interface ButtonProps {
|
|
|
6
6
|
type?: 'button' | 'submit';
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
texto: string;
|
|
9
|
+
largura?: string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
const Button: React.FC<ButtonProps> = ({ empresa, type = 'submit', onClick, texto }) => {
|
|
12
|
+
const Button: React.FC<ButtonProps> = ({ empresa, type = 'submit', onClick, texto, largura }) => {
|
|
12
13
|
const empresaClass = styles[`empresa${empresa}`];
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
16
|
<div className={`${empresaClass}`}>
|
|
16
17
|
{type === 'submit' ? (
|
|
17
|
-
<input type="submit" className={styles.inputSubmit} />
|
|
18
|
+
<input type="submit" className={styles.inputSubmit} style={{width: largura ? `${largura}` : ''}}/>
|
|
18
19
|
) : (
|
|
19
|
-
<button type="button" className={styles.inputSubmit} onClick={onClick}>
|
|
20
|
+
<button type="button" className={styles.inputSubmit} onClick={onClick} style={{width: largura ? `${largura}` : ''}}>
|
|
20
21
|
{texto}
|
|
21
22
|
</button>
|
|
22
23
|
)}
|
package/src/components/Card.tsx
CHANGED
|
@@ -7,9 +7,10 @@ interface CardProps {
|
|
|
7
7
|
text: string;
|
|
8
8
|
link?: string;
|
|
9
9
|
empresa: '1' | '2' | '3';
|
|
10
|
+
largura?: string;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
const Card: React.FC<CardProps> = ({ img, imgLateral, text, link, empresa }) => {
|
|
13
|
+
const Card: React.FC<CardProps> = ({ img, imgLateral, text, link, empresa, largura }) => {
|
|
13
14
|
const empresaClass = styles[`empresa${empresa}`];
|
|
14
15
|
|
|
15
16
|
const handleClick = () => {
|
|
@@ -20,7 +21,7 @@ const Card: React.FC<CardProps> = ({ img, imgLateral, text, link, empresa }) =>
|
|
|
20
21
|
|
|
21
22
|
return (
|
|
22
23
|
<div className={`${empresaClass}`} onClick={handleClick} style={{ cursor: link ? 'pointer' : 'default' }}>
|
|
23
|
-
<div className={`${styles.item} empresa${empresa}`}>
|
|
24
|
+
<div className={`${styles.item} empresa${empresa}`} style={{width: largura ? `${largura}` : ''}}>
|
|
24
25
|
{ img && (
|
|
25
26
|
<img src={img} alt={text} className={styles.icone} />
|
|
26
27
|
)}
|
|
@@ -8,9 +8,10 @@ interface InputFieldProps {
|
|
|
8
8
|
placeholder: string;
|
|
9
9
|
value: string;
|
|
10
10
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
largura?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const InputField: React.FC<InputFieldProps> = ({ type, id, placeholder, onChange, value, label }) => {
|
|
14
|
+
const InputField: React.FC<InputFieldProps> = ({ type, id, placeholder, onChange, value, label, largura }) => {
|
|
14
15
|
return (
|
|
15
16
|
<>
|
|
16
17
|
{label && <label htmlFor={id}>{label}</label>}
|
|
@@ -22,6 +23,7 @@ const InputField: React.FC<InputFieldProps> = ({ type, id, placeholder, onChange
|
|
|
22
23
|
placeholder={placeholder}
|
|
23
24
|
onChange={onChange}
|
|
24
25
|
className={styles.inputPadrao}
|
|
26
|
+
style={{width: largura ? `${largura}` : ''}}
|
|
25
27
|
/>
|
|
26
28
|
</>
|
|
27
29
|
);
|
|
@@ -14,9 +14,10 @@ interface SelectComponentProps {
|
|
|
14
14
|
onChange: (value: string) => void;
|
|
15
15
|
label?: string;
|
|
16
16
|
optionDefault?: boolean;
|
|
17
|
+
largura?: string
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
const SelectField: React.FC<SelectComponentProps> = ({ id, name, options, value, onChange, label, optionDefault }) => {
|
|
20
|
+
const SelectField: React.FC<SelectComponentProps> = ({ id, name, options, value, onChange, label, optionDefault, largura }) => {
|
|
20
21
|
return (
|
|
21
22
|
<>
|
|
22
23
|
{label && <label htmlFor={id}>{label}</label>}
|
|
@@ -26,6 +27,7 @@ const SelectField: React.FC<SelectComponentProps> = ({ id, name, options, value,
|
|
|
26
27
|
className={styles.selectPadrao}
|
|
27
28
|
value={value}
|
|
28
29
|
onChange={(e) => onChange(e.target.value)}
|
|
30
|
+
style={{width: largura ? `${largura}` : ''}}
|
|
29
31
|
>
|
|
30
32
|
{optionDefault===true && (
|
|
31
33
|
<option value="">Selecione...</option>
|