componenteshospitais 1.2.1 → 1.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
@@ -1,7 +1,7 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
5
  function styleInject(css, ref) {
6
6
  if ( ref === void 0 ) ref = {};
7
7
  var insertAt = ref.insertAt;
@@ -27,15 +27,15 @@ function styleInject(css, ref) {
27
27
  } else {
28
28
  style.appendChild(document.createTextNode(css));
29
29
  }
30
- }
31
-
32
- var css_248z$8 = ":root{--blue:#1e2057;--blueHover:#242881;--red:#eb313d;--redHover:#9e0f18;--gray:#5d5d5d;--greyHover:#e4e2e2;--lightGray:#ededed;--green:#00984b;--greenHover:#14a857;--lightblue:#006cb7;--lightblueHover:#187bb2}html{font-family:Amelia,sans-serif;margin:0;padding:0;width:100%}";
33
- styleInject(css_248z$8);
34
-
35
- var css_248z$7 = ".tituloPagina-module_header__GtitI{align-items:center;border-radius:8px 8px 0 0;color:#fff;display:flex;font-size:23px;justify-content:space-between;padding:10px 20px;position:relative}.tituloPagina-module_title__pb7Iz{font-size:24px;font-weight:700;margin-left:5rem}.tituloPagina-module_backButton__QlSV1{align-items:center;background-color:#fff;border:none;border-radius:20px;cursor:pointer;display:flex;font-size:14px;font-weight:700;height:auto;margin:0 5rem 0 0;padding:10px 50px}.tituloPagina-module_backButton__QlSV1:hover{background-color:var(--greyHover)}@media (max-width:768px){.tituloPagina-module_title__pb7Iz{font-size:16px;margin-left:1rem}}@media (max-width:500px){.tituloPagina-module_backButton__QlSV1{margin-right:0;padding:10px 30px}}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_header__GtitI{background-color:var(--blue)}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_backButton__QlSV1{color:var(--blue)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_header__GtitI{background-color:var(--green)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_backButton__QlSV1{color:var(--green)}";
36
- var styles$7 = {"header":"tituloPagina-module_header__GtitI","title":"tituloPagina-module_title__pb7Iz","backButton":"tituloPagina-module_backButton__QlSV1","empresa1":"tituloPagina-module_empresa1__sInrz","empresa3":"tituloPagina-module_empresa3__sn4GV"};
37
- styleInject(css_248z$7);
38
-
30
+ }
31
+
32
+ var css_248z$8 = ":root{--blue:#1e2057;--blueHover:#242881;--red:#eb313d;--redHover:#9e0f18;--gray:#5d5d5d;--greyHover:#e4e2e2;--lightGray:#ededed;--green:#00984b;--greenHover:#14a857;--lightblue:#006cb7;--lightblueHover:#187bb2}html{font-family:Amelia,sans-serif;margin:0;padding:0;width:100%}";
33
+ styleInject(css_248z$8);
34
+
35
+ var css_248z$7 = ".tituloPagina-module_header__GtitI{align-items:center;border-radius:8px 8px 0 0;color:#fff;display:flex;font-size:23px;justify-content:space-between;padding:10px 20px;position:relative}.tituloPagina-module_title__pb7Iz{font-size:24px;font-weight:700;margin-left:5rem}.tituloPagina-module_backButton__QlSV1{align-items:center;background-color:#fff;border:none;border-radius:20px;cursor:pointer;display:flex;font-size:14px;font-weight:700;height:auto;margin:0 5rem 0 0;padding:10px 50px}.tituloPagina-module_backButton__QlSV1:hover{background-color:var(--greyHover)}@media (max-width:768px){.tituloPagina-module_title__pb7Iz{font-size:16px;margin-left:1rem}}@media (max-width:500px){.tituloPagina-module_backButton__QlSV1{margin-right:0;padding:10px 30px}}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_header__GtitI{background-color:var(--blue)}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_backButton__QlSV1{color:var(--blue)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_header__GtitI{background-color:var(--green)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_backButton__QlSV1{color:var(--green)}";
36
+ var styles$7 = {"header":"tituloPagina-module_header__GtitI","title":"tituloPagina-module_title__pb7Iz","backButton":"tituloPagina-module_backButton__QlSV1","empresa1":"tituloPagina-module_empresa1__sInrz","empresa3":"tituloPagina-module_empresa3__sn4GV"};
37
+ styleInject(css_248z$7);
38
+
39
39
  var TituloPagina = function (_a) {
40
40
  var titulo = _a.titulo, onClick = _a.onClick, empresa = _a.empresa;
41
41
  var empresaClass = styles$7["empresa".concat(empresa)];
@@ -43,31 +43,33 @@ var TituloPagina = function (_a) {
43
43
  React.createElement("div", { className: styles$7.header },
44
44
  React.createElement("p", { className: styles$7.title }, titulo),
45
45
  React.createElement("button", { onClick: onClick, className: styles$7.backButton }, "Voltar"))));
46
- };
47
-
48
- var css_248z$6 = ".card-module_icone__8F-jV{height:55px;width:55px}.card-module_item__YYEzi{align-items:center;border-radius:10px;color:#fff;display:flex;font-size:18px;margin-bottom:1rem;padding:15px}.card-module_imgLateral__zCZz5{height:55px;margin-left:auto;margin-right:10px;width:55px}.card-module_empresa1__Jl5OB .card-module_item__YYEzi{background-color:var(--blue)}.card-module_empresa1__Jl5OB .card-module_item__YYEzi:hover{background-color:var(--red)}.card-module_empresa3__TCJpW .card-module_item__YYEzi{background-color:var(--green)}.card-module_empresa3__TCJpW .card-module_item__YYEzi:hover{background-color:var(--lightblue)}";
49
- var styles$6 = {"icone":"card-module_icone__8F-jV","item":"card-module_item__YYEzi","imgLateral":"card-module_imgLateral__zCZz5","empresa1":"card-module_empresa1__Jl5OB","empresa3":"card-module_empresa3__TCJpW"};
50
- styleInject(css_248z$6);
51
-
46
+ };
47
+
48
+ var css_248z$6 = ".card-module_icone__8F-jV{height:55px;width:55px}.card-module_item__YYEzi{align-items:center;border-radius:10px;color:#fff;display:flex;font-size:18px;margin-bottom:1rem;padding:15px}.card-module_imgLateral__zCZz5{height:55px;margin-left:auto;margin-right:10px;width:55px}.card-module_empresa1__Jl5OB .card-module_item__YYEzi{background-color:var(--blue)}.card-module_empresa1__Jl5OB .card-module_item__YYEzi:hover{background-color:var(--red)}.card-module_empresa3__TCJpW .card-module_item__YYEzi{background-color:var(--green)}.card-module_empresa3__TCJpW .card-module_item__YYEzi:hover{background-color:var(--lightblue)}";
49
+ var styles$6 = {"icone":"card-module_icone__8F-jV","item":"card-module_item__YYEzi","imgLateral":"card-module_imgLateral__zCZz5","empresa1":"card-module_empresa1__Jl5OB","empresa3":"card-module_empresa3__TCJpW"};
50
+ styleInject(css_248z$6);
51
+
52
52
  var Card = function (_a) {
53
- var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa, largura = _a.largura;
53
+ var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa, largura = _a.largura, funcao = _a.funcao;
54
54
  var empresaClass = styles$6["empresa".concat(empresa)];
55
+ var handleActionClick = function () {
56
+ };
55
57
  var handleClick = function () {
56
58
  if (link) {
57
59
  window.location.href = link;
58
60
  }
59
61
  };
60
- return (React.createElement("div", { className: "".concat(empresaClass), onClick: handleClick, style: { cursor: link ? 'pointer' : 'default' } },
62
+ return (React.createElement("div", { className: "".concat(empresaClass), onClick: funcao ? function () { return handleActionClick; } : handleClick, style: { cursor: link ? 'pointer' : 'default' } },
61
63
  React.createElement("div", { className: "".concat(styles$6.item, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '' } },
62
64
  img && (React.createElement("img", { src: img, alt: text, className: styles$6.icone })),
63
65
  React.createElement("span", { className: styles$6.texto, dangerouslySetInnerHTML: { __html: text } }),
64
66
  imgLateral && (React.createElement("img", { src: imgLateral, alt: "Right", className: styles$6.imgLateral })))));
65
- };
66
-
67
- var css_248z$5 = ".cardImage-module_botaoCert__Rs0fg{align-items:center;border-color:transparent;border-radius:1rem;box-sizing:border-box;color:#fff;display:flex;flex-direction:column;height:300px;justify-content:center;padding:.8rem;text-decoration:none;width:250px}.cardImage-module_iconeOna__WQil5{height:150px;margin-bottom:10px}.cardImage-module_cardText__NfgFE{bottom:.5rem;font-size:18px;overflow:hidden;position:relative;text-align:center}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg{background-color:var(--blue)}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--red)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg{background-color:var(--green)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--lightblue)}";
68
- var styles$5 = {"botaoCert":"cardImage-module_botaoCert__Rs0fg","iconeOna":"cardImage-module_iconeOna__WQil5","cardText":"cardImage-module_cardText__NfgFE","empresa1":"cardImage-module_empresa1__SnbEU","empresa3":"cardImage-module_empresa3__ItFp0"};
69
- styleInject(css_248z$5);
70
-
67
+ };
68
+
69
+ var css_248z$5 = ".cardImage-module_botaoCert__Rs0fg{align-items:center;border-color:transparent;border-radius:1rem;box-sizing:border-box;color:#fff;display:flex;flex-direction:column;height:300px;justify-content:center;padding:.8rem;text-decoration:none;width:250px}.cardImage-module_iconeOna__WQil5{height:150px;margin-bottom:10px}.cardImage-module_cardText__NfgFE{bottom:.5rem;font-size:18px;overflow:hidden;position:relative;text-align:center}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg{background-color:var(--blue)}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--red)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg{background-color:var(--green)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--lightblue)}";
70
+ var styles$5 = {"botaoCert":"cardImage-module_botaoCert__Rs0fg","iconeOna":"cardImage-module_iconeOna__WQil5","cardText":"cardImage-module_cardText__NfgFE","empresa1":"cardImage-module_empresa1__SnbEU","empresa3":"cardImage-module_empresa3__ItFp0"};
71
+ styleInject(css_248z$5);
72
+
71
73
  var CardImage = function (_a) {
72
74
  var img = _a.img, href = _a.href, texto = _a.texto, empresa = _a.empresa, largura = _a.largura, altura = _a.altura;
73
75
  var empresaClass = styles$5["empresa".concat(empresa)];
@@ -75,29 +77,29 @@ var CardImage = function (_a) {
75
77
  React.createElement("img", { src: img, alt: img, className: styles$5.iconeOna }),
76
78
  texto && (React.createElement("span", { className: styles$5.cardText, dangerouslySetInnerHTML: { __html: texto } }))));
77
79
  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))));
78
- };
79
-
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)}";
81
- var styles$4 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputPadrao":"input-module_inputPadrao__jypjY","empresa1":"input-module_empresa1__bxBov","empresa3":"input-module_empresa3__RU89A"};
82
- styleInject(css_248z$4);
83
-
80
+ };
81
+
82
+ 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)}";
83
+ var styles$4 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputPadrao":"input-module_inputPadrao__jypjY","empresa1":"input-module_empresa1__bxBov","empresa3":"input-module_empresa3__RU89A"};
84
+ styleInject(css_248z$4);
85
+
84
86
  var Button = function (_a) {
85
87
  var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto, largura = _a.largura;
86
88
  var empresaClass = styles$4["empresa".concat(empresa)];
87
89
  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
- };
89
-
90
+ };
91
+
90
92
  var InputField = function (_a) {
91
93
  var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura;
92
94
  return (React.createElement(React.Fragment, null,
93
95
  label && React.createElement("label", { htmlFor: id }, label),
94
96
  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
- };
96
-
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}";
98
- var styles$3 = {"container":"textPage-module_container__GBEF6","content":"textPage-module_content__CpD68","imageCabecalho":"textPage-module_imageCabecalho__J6YFH","contentWithLateralImage":"textPage-module_contentWithLateralImage__-f5pQ","imageLateral":"textPage-module_imageLateral__Dy9Kx","text":"textPage-module_text__3pwuU","coordenacao":"textPage-module_coordenacao__UypV-","direcao":"textPage-module_direcao__x5psb"};
99
- styleInject(css_248z$3);
100
-
97
+ };
98
+
99
+ 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}";
100
+ var styles$3 = {"container":"textPage-module_container__GBEF6","content":"textPage-module_content__CpD68","imageCabecalho":"textPage-module_imageCabecalho__J6YFH","contentWithLateralImage":"textPage-module_contentWithLateralImage__-f5pQ","imageLateral":"textPage-module_imageLateral__Dy9Kx","text":"textPage-module_text__3pwuU","coordenacao":"textPage-module_coordenacao__UypV-","direcao":"textPage-module_direcao__x5psb"};
101
+ styleInject(css_248z$3);
102
+
101
103
  var TextPage = function (_a) {
102
104
  var imgLateral = _a.imgLateral, imgCabecalho = _a.imgCabecalho, texto = _a.texto;
103
105
  return (React.createElement(React.Fragment, null,
@@ -108,12 +110,12 @@ var TextPage = function (_a) {
108
110
  imgLateral && (React.createElement("div", { className: styles$3.imageLateral },
109
111
  React.createElement("img", { src: imgLateral, alt: imgLateral }))),
110
112
  React.createElement("div", { className: styles$3.text, dangerouslySetInnerHTML: { __html: texto } })))));
111
- };
112
-
113
- var css_248z$2 = ".menuPage-module_container__grjEI{color:#000;display:flex;height:100%}.menuPage-module_sidebar__7Kg1S{background-color:#fff;border-right:1px solid var(--greyHover);height:500px;max-height:500px;overflow-y:auto;padding-bottom:15px;width:250px}.menuPage-module_sidebar__7Kg1S ul{list-style:none;margin:0;padding:0}.menuPage-module_sidebar__7Kg1S ul li{margin:10px 0}.menuPage-module_sidebar__7Kg1S ul li button{background:none;border:none;cursor:pointer;font-weight:700;padding:10px;text-align:left;text-decoration:none;width:100%}.menuPage-module_content__g2T-d{background-color:#fff;flex:1;max-height:475px;overflow-y:auto;padding:20px}@media (max-width:800px){.menuPage-module_sidebar__7Kg1S{width:160px}}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button{color:var(--blue)}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--blue)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button{color:var(--green)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--green)}";
114
- var styles$2 = {"container":"menuPage-module_container__grjEI","sidebar":"menuPage-module_sidebar__7Kg1S","content":"menuPage-module_content__g2T-d","empresa1":"menuPage-module_empresa1__tLASf","active":"menuPage-module_active__Mfy4T","empresa3":"menuPage-module_empresa3__xkxls"};
115
- styleInject(css_248z$2);
116
-
113
+ };
114
+
115
+ var css_248z$2 = ".menuPage-module_container__grjEI{color:#000;display:flex;height:100%}.menuPage-module_sidebar__7Kg1S{background-color:#fff;border-right:1px solid var(--greyHover);height:500px;max-height:500px;overflow-y:auto;padding-bottom:15px;width:250px}.menuPage-module_sidebar__7Kg1S ul{list-style:none;margin:0;padding:0}.menuPage-module_sidebar__7Kg1S ul li{margin:10px 0}.menuPage-module_sidebar__7Kg1S ul li button{background:none;border:none;cursor:pointer;font-weight:700;padding:10px;text-align:left;text-decoration:none;width:100%}.menuPage-module_content__g2T-d{background-color:#fff;flex:1;max-height:475px;overflow-y:auto;padding:20px}@media (max-width:800px){.menuPage-module_sidebar__7Kg1S{width:160px}}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button{color:var(--blue)}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--blue)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button{color:var(--green)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--green)}";
116
+ var styles$2 = {"container":"menuPage-module_container__grjEI","sidebar":"menuPage-module_sidebar__7Kg1S","content":"menuPage-module_content__g2T-d","empresa1":"menuPage-module_empresa1__tLASf","active":"menuPage-module_active__Mfy4T","empresa3":"menuPage-module_empresa3__xkxls"};
117
+ styleInject(css_248z$2);
118
+
117
119
  var MenuPage = function (_a) {
118
120
  var menus = _a.menus, contents = _a.contents, empresa = _a.empresa;
119
121
  var empresaClass = styles$2["empresa".concat(empresa)];
@@ -124,12 +126,12 @@ var MenuPage = function (_a) {
124
126
  React.createElement("ul", null, menus.map(function (menu) { return (React.createElement("li", { key: menu.key },
125
127
  React.createElement("button", { className: selectedSection === menu.key ? styles$2.active : '', onClick: function () { return setSelectedSection(menu.key); } }, menu.label))); }))),
126
128
  React.createElement("main", { className: styles$2.content }, contents[selectedSection]))));
127
- };
128
-
129
- var css_248z$1 = ".select-module_selectPadrao__poGiL{border:1px solid #ccc;border-radius:.5rem;font-style:italic;padding:.8rem 0 .8rem 1rem;width:100%}.select-module_selectPadrao__poGiL:focus{outline:none}";
130
- var styles$1 = {"selectPadrao":"select-module_selectPadrao__poGiL"};
131
- styleInject(css_248z$1);
132
-
129
+ };
130
+
131
+ var css_248z$1 = ".select-module_selectPadrao__poGiL{border:1px solid #ccc;border-radius:.5rem;font-style:italic;padding:.8rem 0 .8rem 1rem;width:100%}.select-module_selectPadrao__poGiL:focus{outline:none}";
132
+ var styles$1 = {"selectPadrao":"select-module_selectPadrao__poGiL"};
133
+ styleInject(css_248z$1);
134
+
133
135
  var SelectField = function (_a) {
134
136
  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
137
  return (React.createElement(React.Fragment, null,
@@ -137,12 +139,12 @@ var SelectField = function (_a) {
137
139
  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
140
  optionDefault === true && (React.createElement("option", { value: "" }, "Selecione...")),
139
141
  options.map(function (option) { return (React.createElement("option", { key: option.value, value: option.value }, option.description)); }))));
140
- };
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);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
- 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
- styleInject(css_248z);
145
-
142
+ };
143
+
144
+ 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%}}";
145
+ 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"};
146
+ styleInject(css_248z);
147
+
146
148
  var Busca = function (_a) {
147
149
  var allItems = _a.allItems; _a.placeholder; var onItemClick = _a.onItemClick;
148
150
  var _c = React.useState(''), searchValue = _c[0], setSearchValue = _c[1];
@@ -172,15 +174,15 @@ var Busca = function (_a) {
172
174
  React.createElement("input", { type: "text", className: styles.searchInput, placeholder: "Pesquisar...", value: searchValue, onChange: handleSearchChange, onFocus: handleInputFocus, onBlur: handleInputBlur })),
173
175
  isInputFocused && filteredItems.length > 0 && (React.createElement("div", { className: styles.suggestionsWrapper },
174
176
  React.createElement("div", { className: styles.suggestions }, filteredItems.map(function (item, index) { return (React.createElement("div", { key: index, className: styles.suggestion, onClick: function () { return onItemClick(item.path); } }, item.id)); }))))));
175
- };
176
-
177
- exports.Busca = Busca;
178
- exports.Button = Button;
179
- exports.Card = Card;
180
- exports.CardImage = CardImage;
181
- exports.InputField = InputField;
182
- exports.MenuPage = MenuPage;
183
- exports.SelectField = SelectField;
184
- exports.TextPage = TextPage;
185
- exports.TituloPagina = TituloPagina;
186
- //# sourceMappingURL=index.js.map
177
+ };
178
+
179
+ exports.Busca = Busca;
180
+ exports.Button = Button;
181
+ exports.Card = Card;
182
+ exports.CardImage = CardImage;
183
+ exports.InputField = InputField;
184
+ exports.MenuPage = MenuPage;
185
+ exports.SelectField = SelectField;
186
+ exports.TextPage = TextPage;
187
+ exports.TituloPagina = TituloPagina;
188
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\r\n if ( ref === void 0 ) ref = {};\r\n var insertAt = ref.insertAt;\r\n\r\n if (!css || typeof document === 'undefined') { return; }\r\n\r\n var head = document.head || document.getElementsByTagName('head')[0];\r\n var style = document.createElement('style');\r\n style.type = 'text/css';\r\n\r\n if (insertAt === 'top') {\r\n if (head.firstChild) {\r\n head.insertBefore(style, head.firstChild);\r\n } else {\r\n head.appendChild(style);\r\n }\r\n } else {\r\n head.appendChild(style);\r\n }\r\n\r\n if (style.styleSheet) {\r\n style.styleSheet.cssText = css;\r\n } else {\r\n style.appendChild(document.createTextNode(css));\r\n }\r\n}\r\n\r\nexport default styleInject;\r\n"],"names":[],"mappings":";;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\r\n if ( ref === void 0 ) ref = {};\r\n var insertAt = ref.insertAt;\r\n\r\n if (!css || typeof document === 'undefined') { return; }\r\n\r\n var head = document.head || document.getElementsByTagName('head')[0];\r\n var style = document.createElement('style');\r\n style.type = 'text/css';\r\n\r\n if (insertAt === 'top') {\r\n if (head.firstChild) {\r\n head.insertBefore(style, head.firstChild);\r\n } else {\r\n head.appendChild(style);\r\n }\r\n } else {\r\n head.appendChild(style);\r\n }\r\n\r\n if (style.styleSheet) {\r\n style.styleSheet.cssText = css;\r\n } else {\r\n style.appendChild(document.createTextNode(css));\r\n }\r\n}\r\n\r\nexport default styleInject;\r\n"],"names":[],"mappings":";;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import React, { useState } from 'react';
2
-
1
+ import React, { useState } from 'react';
2
+
3
3
  function styleInject(css, ref) {
4
4
  if ( ref === void 0 ) ref = {};
5
5
  var insertAt = ref.insertAt;
@@ -25,15 +25,15 @@ function styleInject(css, ref) {
25
25
  } else {
26
26
  style.appendChild(document.createTextNode(css));
27
27
  }
28
- }
29
-
30
- var css_248z$8 = ":root{--blue:#1e2057;--blueHover:#242881;--red:#eb313d;--redHover:#9e0f18;--gray:#5d5d5d;--greyHover:#e4e2e2;--lightGray:#ededed;--green:#00984b;--greenHover:#14a857;--lightblue:#006cb7;--lightblueHover:#187bb2}html{font-family:Amelia,sans-serif;margin:0;padding:0;width:100%}";
31
- styleInject(css_248z$8);
32
-
33
- var css_248z$7 = ".tituloPagina-module_header__GtitI{align-items:center;border-radius:8px 8px 0 0;color:#fff;display:flex;font-size:23px;justify-content:space-between;padding:10px 20px;position:relative}.tituloPagina-module_title__pb7Iz{font-size:24px;font-weight:700;margin-left:5rem}.tituloPagina-module_backButton__QlSV1{align-items:center;background-color:#fff;border:none;border-radius:20px;cursor:pointer;display:flex;font-size:14px;font-weight:700;height:auto;margin:0 5rem 0 0;padding:10px 50px}.tituloPagina-module_backButton__QlSV1:hover{background-color:var(--greyHover)}@media (max-width:768px){.tituloPagina-module_title__pb7Iz{font-size:16px;margin-left:1rem}}@media (max-width:500px){.tituloPagina-module_backButton__QlSV1{margin-right:0;padding:10px 30px}}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_header__GtitI{background-color:var(--blue)}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_backButton__QlSV1{color:var(--blue)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_header__GtitI{background-color:var(--green)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_backButton__QlSV1{color:var(--green)}";
34
- var styles$7 = {"header":"tituloPagina-module_header__GtitI","title":"tituloPagina-module_title__pb7Iz","backButton":"tituloPagina-module_backButton__QlSV1","empresa1":"tituloPagina-module_empresa1__sInrz","empresa3":"tituloPagina-module_empresa3__sn4GV"};
35
- styleInject(css_248z$7);
36
-
28
+ }
29
+
30
+ var css_248z$8 = ":root{--blue:#1e2057;--blueHover:#242881;--red:#eb313d;--redHover:#9e0f18;--gray:#5d5d5d;--greyHover:#e4e2e2;--lightGray:#ededed;--green:#00984b;--greenHover:#14a857;--lightblue:#006cb7;--lightblueHover:#187bb2}html{font-family:Amelia,sans-serif;margin:0;padding:0;width:100%}";
31
+ styleInject(css_248z$8);
32
+
33
+ var css_248z$7 = ".tituloPagina-module_header__GtitI{align-items:center;border-radius:8px 8px 0 0;color:#fff;display:flex;font-size:23px;justify-content:space-between;padding:10px 20px;position:relative}.tituloPagina-module_title__pb7Iz{font-size:24px;font-weight:700;margin-left:5rem}.tituloPagina-module_backButton__QlSV1{align-items:center;background-color:#fff;border:none;border-radius:20px;cursor:pointer;display:flex;font-size:14px;font-weight:700;height:auto;margin:0 5rem 0 0;padding:10px 50px}.tituloPagina-module_backButton__QlSV1:hover{background-color:var(--greyHover)}@media (max-width:768px){.tituloPagina-module_title__pb7Iz{font-size:16px;margin-left:1rem}}@media (max-width:500px){.tituloPagina-module_backButton__QlSV1{margin-right:0;padding:10px 30px}}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_header__GtitI{background-color:var(--blue)}.tituloPagina-module_empresa1__sInrz .tituloPagina-module_backButton__QlSV1{color:var(--blue)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_header__GtitI{background-color:var(--green)}.tituloPagina-module_empresa3__sn4GV .tituloPagina-module_backButton__QlSV1{color:var(--green)}";
34
+ var styles$7 = {"header":"tituloPagina-module_header__GtitI","title":"tituloPagina-module_title__pb7Iz","backButton":"tituloPagina-module_backButton__QlSV1","empresa1":"tituloPagina-module_empresa1__sInrz","empresa3":"tituloPagina-module_empresa3__sn4GV"};
35
+ styleInject(css_248z$7);
36
+
37
37
  var TituloPagina = function (_a) {
38
38
  var titulo = _a.titulo, onClick = _a.onClick, empresa = _a.empresa;
39
39
  var empresaClass = styles$7["empresa".concat(empresa)];
@@ -41,31 +41,33 @@ var TituloPagina = function (_a) {
41
41
  React.createElement("div", { className: styles$7.header },
42
42
  React.createElement("p", { className: styles$7.title }, titulo),
43
43
  React.createElement("button", { onClick: onClick, className: styles$7.backButton }, "Voltar"))));
44
- };
45
-
46
- var css_248z$6 = ".card-module_icone__8F-jV{height:55px;width:55px}.card-module_item__YYEzi{align-items:center;border-radius:10px;color:#fff;display:flex;font-size:18px;margin-bottom:1rem;padding:15px}.card-module_imgLateral__zCZz5{height:55px;margin-left:auto;margin-right:10px;width:55px}.card-module_empresa1__Jl5OB .card-module_item__YYEzi{background-color:var(--blue)}.card-module_empresa1__Jl5OB .card-module_item__YYEzi:hover{background-color:var(--red)}.card-module_empresa3__TCJpW .card-module_item__YYEzi{background-color:var(--green)}.card-module_empresa3__TCJpW .card-module_item__YYEzi:hover{background-color:var(--lightblue)}";
47
- var styles$6 = {"icone":"card-module_icone__8F-jV","item":"card-module_item__YYEzi","imgLateral":"card-module_imgLateral__zCZz5","empresa1":"card-module_empresa1__Jl5OB","empresa3":"card-module_empresa3__TCJpW"};
48
- styleInject(css_248z$6);
49
-
44
+ };
45
+
46
+ var css_248z$6 = ".card-module_icone__8F-jV{height:55px;width:55px}.card-module_item__YYEzi{align-items:center;border-radius:10px;color:#fff;display:flex;font-size:18px;margin-bottom:1rem;padding:15px}.card-module_imgLateral__zCZz5{height:55px;margin-left:auto;margin-right:10px;width:55px}.card-module_empresa1__Jl5OB .card-module_item__YYEzi{background-color:var(--blue)}.card-module_empresa1__Jl5OB .card-module_item__YYEzi:hover{background-color:var(--red)}.card-module_empresa3__TCJpW .card-module_item__YYEzi{background-color:var(--green)}.card-module_empresa3__TCJpW .card-module_item__YYEzi:hover{background-color:var(--lightblue)}";
47
+ var styles$6 = {"icone":"card-module_icone__8F-jV","item":"card-module_item__YYEzi","imgLateral":"card-module_imgLateral__zCZz5","empresa1":"card-module_empresa1__Jl5OB","empresa3":"card-module_empresa3__TCJpW"};
48
+ styleInject(css_248z$6);
49
+
50
50
  var Card = function (_a) {
51
- var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa, largura = _a.largura;
51
+ var img = _a.img, imgLateral = _a.imgLateral, text = _a.text, link = _a.link, empresa = _a.empresa, largura = _a.largura, funcao = _a.funcao;
52
52
  var empresaClass = styles$6["empresa".concat(empresa)];
53
+ var handleActionClick = function () {
54
+ };
53
55
  var handleClick = function () {
54
56
  if (link) {
55
57
  window.location.href = link;
56
58
  }
57
59
  };
58
- return (React.createElement("div", { className: "".concat(empresaClass), onClick: handleClick, style: { cursor: link ? 'pointer' : 'default' } },
60
+ return (React.createElement("div", { className: "".concat(empresaClass), onClick: funcao ? function () { return handleActionClick; } : handleClick, style: { cursor: link ? 'pointer' : 'default' } },
59
61
  React.createElement("div", { className: "".concat(styles$6.item, " empresa").concat(empresa), style: { width: largura ? "".concat(largura) : '' } },
60
62
  img && (React.createElement("img", { src: img, alt: text, className: styles$6.icone })),
61
63
  React.createElement("span", { className: styles$6.texto, dangerouslySetInnerHTML: { __html: text } }),
62
64
  imgLateral && (React.createElement("img", { src: imgLateral, alt: "Right", className: styles$6.imgLateral })))));
63
- };
64
-
65
- var css_248z$5 = ".cardImage-module_botaoCert__Rs0fg{align-items:center;border-color:transparent;border-radius:1rem;box-sizing:border-box;color:#fff;display:flex;flex-direction:column;height:300px;justify-content:center;padding:.8rem;text-decoration:none;width:250px}.cardImage-module_iconeOna__WQil5{height:150px;margin-bottom:10px}.cardImage-module_cardText__NfgFE{bottom:.5rem;font-size:18px;overflow:hidden;position:relative;text-align:center}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg{background-color:var(--blue)}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--red)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg{background-color:var(--green)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--lightblue)}";
66
- var styles$5 = {"botaoCert":"cardImage-module_botaoCert__Rs0fg","iconeOna":"cardImage-module_iconeOna__WQil5","cardText":"cardImage-module_cardText__NfgFE","empresa1":"cardImage-module_empresa1__SnbEU","empresa3":"cardImage-module_empresa3__ItFp0"};
67
- styleInject(css_248z$5);
68
-
65
+ };
66
+
67
+ var css_248z$5 = ".cardImage-module_botaoCert__Rs0fg{align-items:center;border-color:transparent;border-radius:1rem;box-sizing:border-box;color:#fff;display:flex;flex-direction:column;height:300px;justify-content:center;padding:.8rem;text-decoration:none;width:250px}.cardImage-module_iconeOna__WQil5{height:150px;margin-bottom:10px}.cardImage-module_cardText__NfgFE{bottom:.5rem;font-size:18px;overflow:hidden;position:relative;text-align:center}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg{background-color:var(--blue)}.cardImage-module_empresa1__SnbEU .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--red)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg{background-color:var(--green)}.cardImage-module_empresa3__ItFp0 .cardImage-module_botaoCert__Rs0fg:hover{background-color:var(--lightblue)}";
68
+ var styles$5 = {"botaoCert":"cardImage-module_botaoCert__Rs0fg","iconeOna":"cardImage-module_iconeOna__WQil5","cardText":"cardImage-module_cardText__NfgFE","empresa1":"cardImage-module_empresa1__SnbEU","empresa3":"cardImage-module_empresa3__ItFp0"};
69
+ styleInject(css_248z$5);
70
+
69
71
  var CardImage = function (_a) {
70
72
  var img = _a.img, href = _a.href, texto = _a.texto, empresa = _a.empresa, largura = _a.largura, altura = _a.altura;
71
73
  var empresaClass = styles$5["empresa".concat(empresa)];
@@ -73,29 +75,29 @@ var CardImage = function (_a) {
73
75
  React.createElement("img", { src: img, alt: img, className: styles$5.iconeOna }),
74
76
  texto && (React.createElement("span", { className: styles$5.cardText, dangerouslySetInnerHTML: { __html: texto } }))));
75
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))));
76
- };
77
-
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)}";
79
- var styles$4 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputPadrao":"input-module_inputPadrao__jypjY","empresa1":"input-module_empresa1__bxBov","empresa3":"input-module_empresa3__RU89A"};
80
- styleInject(css_248z$4);
81
-
78
+ };
79
+
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)}";
81
+ var styles$4 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputPadrao":"input-module_inputPadrao__jypjY","empresa1":"input-module_empresa1__bxBov","empresa3":"input-module_empresa3__RU89A"};
82
+ styleInject(css_248z$4);
83
+
82
84
  var Button = function (_a) {
83
85
  var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto, largura = _a.largura;
84
86
  var empresaClass = styles$4["empresa".concat(empresa)];
85
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))));
86
- };
87
-
88
+ };
89
+
88
90
  var InputField = function (_a) {
89
91
  var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura;
90
92
  return (React.createElement(React.Fragment, null,
91
93
  label && React.createElement("label", { htmlFor: id }, label),
92
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) : '' } })));
93
- };
94
-
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}";
96
- var styles$3 = {"container":"textPage-module_container__GBEF6","content":"textPage-module_content__CpD68","imageCabecalho":"textPage-module_imageCabecalho__J6YFH","contentWithLateralImage":"textPage-module_contentWithLateralImage__-f5pQ","imageLateral":"textPage-module_imageLateral__Dy9Kx","text":"textPage-module_text__3pwuU","coordenacao":"textPage-module_coordenacao__UypV-","direcao":"textPage-module_direcao__x5psb"};
97
- styleInject(css_248z$3);
98
-
95
+ };
96
+
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}";
98
+ var styles$3 = {"container":"textPage-module_container__GBEF6","content":"textPage-module_content__CpD68","imageCabecalho":"textPage-module_imageCabecalho__J6YFH","contentWithLateralImage":"textPage-module_contentWithLateralImage__-f5pQ","imageLateral":"textPage-module_imageLateral__Dy9Kx","text":"textPage-module_text__3pwuU","coordenacao":"textPage-module_coordenacao__UypV-","direcao":"textPage-module_direcao__x5psb"};
99
+ styleInject(css_248z$3);
100
+
99
101
  var TextPage = function (_a) {
100
102
  var imgLateral = _a.imgLateral, imgCabecalho = _a.imgCabecalho, texto = _a.texto;
101
103
  return (React.createElement(React.Fragment, null,
@@ -106,12 +108,12 @@ var TextPage = function (_a) {
106
108
  imgLateral && (React.createElement("div", { className: styles$3.imageLateral },
107
109
  React.createElement("img", { src: imgLateral, alt: imgLateral }))),
108
110
  React.createElement("div", { className: styles$3.text, dangerouslySetInnerHTML: { __html: texto } })))));
109
- };
110
-
111
- var css_248z$2 = ".menuPage-module_container__grjEI{color:#000;display:flex;height:100%}.menuPage-module_sidebar__7Kg1S{background-color:#fff;border-right:1px solid var(--greyHover);height:500px;max-height:500px;overflow-y:auto;padding-bottom:15px;width:250px}.menuPage-module_sidebar__7Kg1S ul{list-style:none;margin:0;padding:0}.menuPage-module_sidebar__7Kg1S ul li{margin:10px 0}.menuPage-module_sidebar__7Kg1S ul li button{background:none;border:none;cursor:pointer;font-weight:700;padding:10px;text-align:left;text-decoration:none;width:100%}.menuPage-module_content__g2T-d{background-color:#fff;flex:1;max-height:475px;overflow-y:auto;padding:20px}@media (max-width:800px){.menuPage-module_sidebar__7Kg1S{width:160px}}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button{color:var(--blue)}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--blue)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button{color:var(--green)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--green)}";
112
- var styles$2 = {"container":"menuPage-module_container__grjEI","sidebar":"menuPage-module_sidebar__7Kg1S","content":"menuPage-module_content__g2T-d","empresa1":"menuPage-module_empresa1__tLASf","active":"menuPage-module_active__Mfy4T","empresa3":"menuPage-module_empresa3__xkxls"};
113
- styleInject(css_248z$2);
114
-
111
+ };
112
+
113
+ var css_248z$2 = ".menuPage-module_container__grjEI{color:#000;display:flex;height:100%}.menuPage-module_sidebar__7Kg1S{background-color:#fff;border-right:1px solid var(--greyHover);height:500px;max-height:500px;overflow-y:auto;padding-bottom:15px;width:250px}.menuPage-module_sidebar__7Kg1S ul{list-style:none;margin:0;padding:0}.menuPage-module_sidebar__7Kg1S ul li{margin:10px 0}.menuPage-module_sidebar__7Kg1S ul li button{background:none;border:none;cursor:pointer;font-weight:700;padding:10px;text-align:left;text-decoration:none;width:100%}.menuPage-module_content__g2T-d{background-color:#fff;flex:1;max-height:475px;overflow-y:auto;padding:20px}@media (max-width:800px){.menuPage-module_sidebar__7Kg1S{width:160px}}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button{color:var(--blue)}.menuPage-module_empresa1__tLASf .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--blue)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button{color:var(--green)}.menuPage-module_empresa3__xkxls .menuPage-module_sidebar__7Kg1S ul li button.menuPage-module_active__Mfy4T{background-color:var(--lightGray);border-left:4px solid var(--green)}";
114
+ var styles$2 = {"container":"menuPage-module_container__grjEI","sidebar":"menuPage-module_sidebar__7Kg1S","content":"menuPage-module_content__g2T-d","empresa1":"menuPage-module_empresa1__tLASf","active":"menuPage-module_active__Mfy4T","empresa3":"menuPage-module_empresa3__xkxls"};
115
+ styleInject(css_248z$2);
116
+
115
117
  var MenuPage = function (_a) {
116
118
  var menus = _a.menus, contents = _a.contents, empresa = _a.empresa;
117
119
  var empresaClass = styles$2["empresa".concat(empresa)];
@@ -122,12 +124,12 @@ var MenuPage = function (_a) {
122
124
  React.createElement("ul", null, menus.map(function (menu) { return (React.createElement("li", { key: menu.key },
123
125
  React.createElement("button", { className: selectedSection === menu.key ? styles$2.active : '', onClick: function () { return setSelectedSection(menu.key); } }, menu.label))); }))),
124
126
  React.createElement("main", { className: styles$2.content }, contents[selectedSection]))));
125
- };
126
-
127
- var css_248z$1 = ".select-module_selectPadrao__poGiL{border:1px solid #ccc;border-radius:.5rem;font-style:italic;padding:.8rem 0 .8rem 1rem;width:100%}.select-module_selectPadrao__poGiL:focus{outline:none}";
128
- var styles$1 = {"selectPadrao":"select-module_selectPadrao__poGiL"};
129
- styleInject(css_248z$1);
130
-
127
+ };
128
+
129
+ var css_248z$1 = ".select-module_selectPadrao__poGiL{border:1px solid #ccc;border-radius:.5rem;font-style:italic;padding:.8rem 0 .8rem 1rem;width:100%}.select-module_selectPadrao__poGiL:focus{outline:none}";
130
+ var styles$1 = {"selectPadrao":"select-module_selectPadrao__poGiL"};
131
+ styleInject(css_248z$1);
132
+
131
133
  var SelectField = function (_a) {
132
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;
133
135
  return (React.createElement(React.Fragment, null,
@@ -135,12 +137,12 @@ var SelectField = function (_a) {
135
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) : '' } },
136
138
  optionDefault === true && (React.createElement("option", { value: "" }, "Selecione...")),
137
139
  options.map(function (option) { return (React.createElement("option", { key: option.value, value: option.value }, option.description)); }))));
138
- };
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);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
- 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
- styleInject(css_248z);
143
-
140
+ };
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);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
+ 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
+ styleInject(css_248z);
145
+
144
146
  var Busca = function (_a) {
145
147
  var allItems = _a.allItems; _a.placeholder; var onItemClick = _a.onItemClick;
146
148
  var _c = useState(''), searchValue = _c[0], setSearchValue = _c[1];
@@ -170,7 +172,7 @@ var Busca = function (_a) {
170
172
  React.createElement("input", { type: "text", className: styles.searchInput, placeholder: "Pesquisar...", value: searchValue, onChange: handleSearchChange, onFocus: handleInputFocus, onBlur: handleInputBlur })),
171
173
  isInputFocused && filteredItems.length > 0 && (React.createElement("div", { className: styles.suggestionsWrapper },
172
174
  React.createElement("div", { className: styles.suggestions }, filteredItems.map(function (item, index) { return (React.createElement("div", { key: index, className: styles.suggestion, onClick: function () { return onItemClick(item.path); } }, item.id)); }))))));
173
- };
174
-
175
- export { Busca, Button, Card, CardImage, InputField, MenuPage, SelectField, TextPage, TituloPagina };
176
- //# sourceMappingURL=index.js.map
175
+ };
176
+
177
+ export { Busca, Button, Card, CardImage, InputField, MenuPage, SelectField, TextPage, TituloPagina };
178
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\r\n if ( ref === void 0 ) ref = {};\r\n var insertAt = ref.insertAt;\r\n\r\n if (!css || typeof document === 'undefined') { return; }\r\n\r\n var head = document.head || document.getElementsByTagName('head')[0];\r\n var style = document.createElement('style');\r\n style.type = 'text/css';\r\n\r\n if (insertAt === 'top') {\r\n if (head.firstChild) {\r\n head.insertBefore(style, head.firstChild);\r\n } else {\r\n head.appendChild(style);\r\n }\r\n } else {\r\n head.appendChild(style);\r\n }\r\n\r\n if (style.styleSheet) {\r\n style.styleSheet.cssText = css;\r\n } else {\r\n style.appendChild(document.createTextNode(css));\r\n }\r\n}\r\n\r\nexport default styleInject;\r\n"],"names":[],"mappings":";;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\r\n if ( ref === void 0 ) ref = {};\r\n var insertAt = ref.insertAt;\r\n\r\n if (!css || typeof document === 'undefined') { return; }\r\n\r\n var head = document.head || document.getElementsByTagName('head')[0];\r\n var style = document.createElement('style');\r\n style.type = 'text/css';\r\n\r\n if (insertAt === 'top') {\r\n if (head.firstChild) {\r\n head.insertBefore(style, head.firstChild);\r\n } else {\r\n head.appendChild(style);\r\n }\r\n } else {\r\n head.appendChild(style);\r\n }\r\n\r\n if (style.styleSheet) {\r\n style.styleSheet.cssText = css;\r\n } else {\r\n style.appendChild(document.createTextNode(css));\r\n }\r\n}\r\n\r\nexport default styleInject;\r\n"],"names":[],"mappings":";;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -6,6 +6,7 @@ interface CardProps {
6
6
  link?: string;
7
7
  empresa: '1' | '2' | '3';
8
8
  largura?: string;
9
+ funcao?: () => void;
9
10
  }
10
11
  declare const Card: React.FC<CardProps>;
11
12
  export default Card;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componenteshospitais",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -8,11 +8,18 @@ interface CardProps {
8
8
  link?: string;
9
9
  empresa: '1' | '2' | '3';
10
10
  largura?: string;
11
+ funcao?: () => void;
11
12
  }
12
13
 
13
- const Card: React.FC<CardProps> = ({ img, imgLateral, text, link, empresa, largura }) => {
14
+ const Card: React.FC<CardProps> = ({ img, imgLateral, text, link, empresa, largura, funcao }) => {
14
15
  const empresaClass = styles[`empresa${empresa}`];
15
16
 
17
+ const handleActionClick = () => {
18
+ if (funcao) {
19
+ funcao;
20
+ }
21
+ }
22
+
16
23
  const handleClick = () => {
17
24
  if (link) {
18
25
  window.location.href = link;
@@ -20,7 +27,7 @@ const Card: React.FC<CardProps> = ({ img, imgLateral, text, link, empresa, largu
20
27
  };
21
28
 
22
29
  return (
23
- <div className={`${empresaClass}`} onClick={handleClick} style={{ cursor: link ? 'pointer' : 'default' }}>
30
+ <div className={`${empresaClass}`} onClick={funcao ? () => handleActionClick : handleClick} style={{ cursor: link ? 'pointer' : 'default' }}>
24
31
  <div className={`${styles.item} empresa${empresa}`} style={{width: largura ? `${largura}` : ''}}>
25
32
  { img && (
26
33
  <img src={img} alt={text} className={styles.icone} />
@@ -8,10 +8,9 @@ interface CardImageProps {
8
8
  empresa: '1' | '2' | '3';
9
9
  largura?: string;
10
10
  altura?: string;
11
- externo?: boolean;
12
11
  }
13
12
 
14
- const CardImage: React.FC<CardImageProps> = ({ img, href, texto, empresa, largura, altura, externo }) => {
13
+ const CardImage: React.FC<CardImageProps> = ({ img, href, texto, empresa, largura, altura }) => {
15
14
  const empresaClass = styles[`empresa${empresa}`];
16
15
 
17
16
  const content = (
@@ -28,8 +27,8 @@ const CardImage: React.FC<CardImageProps> = ({ img, href, texto, empresa, largur
28
27
  {href ? (
29
28
  <a
30
29
  href={href}
31
- target={externo ? "_blank" : "_self"}
32
- rel={externo ? "noopener noreferrer" : undefined}
30
+ target="_blank"
31
+ rel="noopener noreferrer"
33
32
  className={`${styles.botaoCert} empresa${empresa}`}
34
33
  title={href}
35
34
  style={{ width: largura ? `${largura}` : '', height: altura ? `${altura}` : '' }}