componenteshospitais 1.1.0 → 1.1.2
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
|
@@ -82,9 +82,9 @@ 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;
|
|
85
|
+
var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto;
|
|
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 },
|
|
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))));
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
var InputField = function (_a) {
|
|
@@ -139,7 +139,7 @@ var SelectField = function (_a) {
|
|
|
139
139
|
options.map(function (option) { return (React.createElement("option", { key: option.value, value: option.value }, option.description)); }))));
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
var css_248z = ".busca-module_search__xf4qJ{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:2rem 0;width:100%}.busca-module_searchContainer__jhcnm{align-items:center;display:flex;max-width:600px;position:relative;width:100%}.busca-module_searchIcon__FPl1-{height:20px;left:10px;position:absolute;width:20px}.busca-module_searchInput__GjG8B{background-color:var(--lightGray);border:none;border-radius:50px;box-sizing:border-box;color:var(--gray);height:100%;outline:none;padding:10px 15px 10px 35px;width:100%;z-index:1001}.busca-module_suggestionsWrapper__vbmxG{background:#fff;border-bottom-left-radius:20px;border-bottom-right-radius:20px;box-shadow:0 4px 6px rgba(0,0,0,.1);color:var(--blue);
|
|
142
|
+
var css_248z = ".busca-module_search__xf4qJ{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:2rem 0;width:100%}.busca-module_searchContainer__jhcnm{align-items:center;display:flex;max-width:600px;position:relative;width:100%}.busca-module_searchIcon__FPl1-{height:20px;left:10px;position:absolute;width:20px}.busca-module_searchInput__GjG8B{background-color:var(--lightGray);border:none;border-radius:50px;box-sizing:border-box;color:var(--gray);height:100%;outline:none;padding:10px 15px 10px 35px;width:100%;z-index:1001}.busca-module_suggestionsWrapper__vbmxG{background:#fff;border-bottom-left-radius:20px;border-bottom-right-radius:20px;box-shadow:0 4px 6px rgba(0,0,0,.1);color:var(--blue);width:45%;z-index:1000}.busca-module_suggestions__pYBV1{border-bottom-left-radius:20px;border-bottom-right-radius:20px;max-height:500px;overflow-y:auto}.busca-module_suggestion__V-d8T{cursor:pointer;padding:10px}.busca-module_suggestion__V-d8T:hover{background-color:var(--blue);color:#fff}.busca-module_suggestion__V-d8T:not(:first-child){border-top:1px solid var(--lightGray);padding-top:8px}@media (max-width:768px){.busca-module_searchInput__GjG8B{padding:10px 15px 10px 30px}.busca-module_suggestionsWrapper__vbmxG{top:35px}}@media (max-width:500px){.busca-module_searchContainer__jhcnm{width:90%}.busca-module_searchInput__GjG8B{padding:10px;width:100%}}";
|
|
143
143
|
var styles = {"search":"busca-module_search__xf4qJ","searchContainer":"busca-module_searchContainer__jhcnm","searchIcon":"busca-module_searchIcon__FPl1-","searchInput":"busca-module_searchInput__GjG8B","suggestionsWrapper":"busca-module_suggestionsWrapper__vbmxG","suggestions":"busca-module_suggestions__pYBV1","suggestion":"busca-module_suggestion__V-d8T"};
|
|
144
144
|
styleInject(css_248z);
|
|
145
145
|
|
package/dist/esm/index.js
CHANGED
|
@@ -80,9 +80,9 @@ 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;
|
|
83
|
+
var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto;
|
|
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 },
|
|
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))));
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
var InputField = function (_a) {
|
|
@@ -137,7 +137,7 @@ var SelectField = function (_a) {
|
|
|
137
137
|
options.map(function (option) { return (React.createElement("option", { key: option.value, value: option.value }, option.description)); }))));
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
var css_248z = ".busca-module_search__xf4qJ{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:2rem 0;width:100%}.busca-module_searchContainer__jhcnm{align-items:center;display:flex;max-width:600px;position:relative;width:100%}.busca-module_searchIcon__FPl1-{height:20px;left:10px;position:absolute;width:20px}.busca-module_searchInput__GjG8B{background-color:var(--lightGray);border:none;border-radius:50px;box-sizing:border-box;color:var(--gray);height:100%;outline:none;padding:10px 15px 10px 35px;width:100%;z-index:1001}.busca-module_suggestionsWrapper__vbmxG{background:#fff;border-bottom-left-radius:20px;border-bottom-right-radius:20px;box-shadow:0 4px 6px rgba(0,0,0,.1);color:var(--blue);
|
|
140
|
+
var css_248z = ".busca-module_search__xf4qJ{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:2rem 0;width:100%}.busca-module_searchContainer__jhcnm{align-items:center;display:flex;max-width:600px;position:relative;width:100%}.busca-module_searchIcon__FPl1-{height:20px;left:10px;position:absolute;width:20px}.busca-module_searchInput__GjG8B{background-color:var(--lightGray);border:none;border-radius:50px;box-sizing:border-box;color:var(--gray);height:100%;outline:none;padding:10px 15px 10px 35px;width:100%;z-index:1001}.busca-module_suggestionsWrapper__vbmxG{background:#fff;border-bottom-left-radius:20px;border-bottom-right-radius:20px;box-shadow:0 4px 6px rgba(0,0,0,.1);color:var(--blue);width:45%;z-index:1000}.busca-module_suggestions__pYBV1{border-bottom-left-radius:20px;border-bottom-right-radius:20px;max-height:500px;overflow-y:auto}.busca-module_suggestion__V-d8T{cursor:pointer;padding:10px}.busca-module_suggestion__V-d8T:hover{background-color:var(--blue);color:#fff}.busca-module_suggestion__V-d8T:not(:first-child){border-top:1px solid var(--lightGray);padding-top:8px}@media (max-width:768px){.busca-module_searchInput__GjG8B{padding:10px 15px 10px 30px}.busca-module_suggestionsWrapper__vbmxG{top:35px}}@media (max-width:500px){.busca-module_searchContainer__jhcnm{width:90%}.busca-module_searchInput__GjG8B{padding:10px;width:100%}}";
|
|
141
141
|
var styles = {"search":"busca-module_search__xf4qJ","searchContainer":"busca-module_searchContainer__jhcnm","searchIcon":"busca-module_searchIcon__FPl1-","searchInput":"busca-module_searchInput__GjG8B","suggestionsWrapper":"busca-module_suggestionsWrapper__vbmxG","suggestions":"busca-module_suggestions__pYBV1","suggestion":"busca-module_suggestion__V-d8T"};
|
|
142
142
|
styleInject(css_248z);
|
|
143
143
|
|
package/package.json
CHANGED
|
@@ -5,9 +5,10 @@ interface ButtonProps {
|
|
|
5
5
|
empresa: '1' | '2' | '3';
|
|
6
6
|
type?: 'button' | 'submit';
|
|
7
7
|
onClick?: () => void;
|
|
8
|
+
texto: string;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
const Button: React.FC<ButtonProps> = ({ empresa, type = 'submit', onClick }) => {
|
|
11
|
+
const Button: React.FC<ButtonProps> = ({ empresa, type = 'submit', onClick, texto }) => {
|
|
11
12
|
const empresaClass = styles[`empresa${empresa}`];
|
|
12
13
|
|
|
13
14
|
return (
|
|
@@ -16,7 +17,7 @@ const Button: React.FC<ButtonProps> = ({ empresa, type = 'submit', onClick }) =>
|
|
|
16
17
|
<input type="submit" className={styles.inputSubmit} />
|
|
17
18
|
) : (
|
|
18
19
|
<button type="button" className={styles.inputSubmit} onClick={onClick}>
|
|
19
|
-
|
|
20
|
+
{texto}
|
|
20
21
|
</button>
|
|
21
22
|
)}
|
|
22
23
|
</div>
|