componenteshospitais 1.2.0 → 1.2.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
|
@@ -69,12 +69,12 @@ var styles$5 = {"botaoCert":"cardImage-module_botaoCert__Rs0fg","iconeOna":"card
|
|
|
69
69
|
styleInject(css_248z$5);
|
|
70
70
|
|
|
71
71
|
var CardImage = function (_a) {
|
|
72
|
-
var img = _a.img, href = _a.href, texto = _a.texto, empresa = _a.empresa, largura = _a.largura, altura = _a.altura;
|
|
72
|
+
var img = _a.img, href = _a.href, texto = _a.texto, empresa = _a.empresa, largura = _a.largura, altura = _a.altura, externo = _a.externo;
|
|
73
73
|
var empresaClass = styles$5["empresa".concat(empresa)];
|
|
74
74
|
var content = (React.createElement(React.Fragment, null,
|
|
75
75
|
React.createElement("img", { src: img, alt: img, className: styles$5.iconeOna }),
|
|
76
76
|
texto && (React.createElement("span", { className: styles$5.cardText, dangerouslySetInnerHTML: { __html: texto } }))));
|
|
77
|
-
return (React.createElement("div", { className: "".concat(empresaClass) }, href ? (React.createElement("a", { href: href, target: "_blank", rel: "noopener noreferrer", className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), title: href, style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content)) : (React.createElement("div", { className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content))));
|
|
77
|
+
return (React.createElement("div", { className: "".concat(empresaClass) }, href ? (React.createElement("a", { href: href, target: externo ? "_blank" : "_self", rel: externo ? "noopener noreferrer" : undefined, className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), title: href, style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content)) : (React.createElement("div", { className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content))));
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
var css_248z$4 = ".input-module_inputSubmit__21-Pj{align-self:center;border:none;border-radius:20px;color:#fff;cursor:pointer;font-size:15px;padding:10px;width:10rem}.input-module_inputPadrao__jypjY{border:1px solid #ccc;border-radius:.5rem;font-style:italic;padding:.8rem 0 .8rem 1rem;width:100%}.input-module_inputPadrao__jypjY:focus{outline:none}.input-module_empresa1__bxBov .input-module_inputSubmit__21-Pj{background-color:var(--blue)}.input-module_empresa1__bxBov .input-module_inputSubmit__21-Pj:hover{background-color:var(--red)}.input-module_empresa3__RU89A .input-module_inputSubmit__21-Pj{background-color:var(--green)}.input-module_empresa3__RU89A .input-module_inputSubmit__21-Pj:hover{background-color:var(--lightblue)}";
|
package/dist/esm/index.js
CHANGED
|
@@ -67,12 +67,12 @@ var styles$5 = {"botaoCert":"cardImage-module_botaoCert__Rs0fg","iconeOna":"card
|
|
|
67
67
|
styleInject(css_248z$5);
|
|
68
68
|
|
|
69
69
|
var CardImage = function (_a) {
|
|
70
|
-
var img = _a.img, href = _a.href, texto = _a.texto, empresa = _a.empresa, largura = _a.largura, altura = _a.altura;
|
|
70
|
+
var img = _a.img, href = _a.href, texto = _a.texto, empresa = _a.empresa, largura = _a.largura, altura = _a.altura, externo = _a.externo;
|
|
71
71
|
var empresaClass = styles$5["empresa".concat(empresa)];
|
|
72
72
|
var content = (React.createElement(React.Fragment, null,
|
|
73
73
|
React.createElement("img", { src: img, alt: img, className: styles$5.iconeOna }),
|
|
74
74
|
texto && (React.createElement("span", { className: styles$5.cardText, dangerouslySetInnerHTML: { __html: texto } }))));
|
|
75
|
-
return (React.createElement("div", { className: "".concat(empresaClass) }, href ? (React.createElement("a", { href: href, target: "_blank", rel: "noopener noreferrer", className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), title: href, style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content)) : (React.createElement("div", { className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content))));
|
|
75
|
+
return (React.createElement("div", { className: "".concat(empresaClass) }, href ? (React.createElement("a", { href: href, target: externo ? "_blank" : "_self", rel: externo ? "noopener noreferrer" : undefined, className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), title: href, style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content)) : (React.createElement("div", { className: "".concat(styles$5.botaoCert, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '', height: altura ? "".concat(altura) : '' } }, content))));
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
var css_248z$4 = ".input-module_inputSubmit__21-Pj{align-self:center;border:none;border-radius:20px;color:#fff;cursor:pointer;font-size:15px;padding:10px;width:10rem}.input-module_inputPadrao__jypjY{border:1px solid #ccc;border-radius:.5rem;font-style:italic;padding:.8rem 0 .8rem 1rem;width:100%}.input-module_inputPadrao__jypjY:focus{outline:none}.input-module_empresa1__bxBov .input-module_inputSubmit__21-Pj{background-color:var(--blue)}.input-module_empresa1__bxBov .input-module_inputSubmit__21-Pj:hover{background-color:var(--red)}.input-module_empresa3__RU89A .input-module_inputSubmit__21-Pj{background-color:var(--green)}.input-module_empresa3__RU89A .input-module_inputSubmit__21-Pj:hover{background-color:var(--lightblue)}";
|
package/package.json
CHANGED
|
@@ -8,9 +8,10 @@ interface CardImageProps {
|
|
|
8
8
|
empresa: '1' | '2' | '3';
|
|
9
9
|
largura?: string;
|
|
10
10
|
altura?: string;
|
|
11
|
+
externo?: boolean;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const CardImage: React.FC<CardImageProps> = ({ img, href, texto, empresa, largura, altura }) => {
|
|
14
|
+
const CardImage: React.FC<CardImageProps> = ({ img, href, texto, empresa, largura, altura, externo }) => {
|
|
14
15
|
const empresaClass = styles[`empresa${empresa}`];
|
|
15
16
|
|
|
16
17
|
const content = (
|
|
@@ -27,8 +28,8 @@ const CardImage: React.FC<CardImageProps> = ({ img, href, texto, empresa, largur
|
|
|
27
28
|
{href ? (
|
|
28
29
|
<a
|
|
29
30
|
href={href}
|
|
30
|
-
target="_blank"
|
|
31
|
-
rel="noopener noreferrer"
|
|
31
|
+
target={externo ? "_blank" : "_self"}
|
|
32
|
+
rel={externo ? "noopener noreferrer" : undefined}
|
|
32
33
|
className={`${styles.botaoCert} empresa${empresa}`}
|
|
33
34
|
title={href}
|
|
34
35
|
style={{ width: largura ? `${largura}` : '', height: altura ? `${altura}` : '' }}
|