@credithub/harlan-components 1.113.0 → 1.114.0

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.
@@ -90,9 +90,9 @@ var ModalInstrumentoProtestoSP = function (_a) {
90
90
  var footerContent = (React.createElement(Footer, null,
91
91
  React.createElement(Button, { onClick: function () { return onEnviarEmail === null || onEnviarEmail === void 0 ? void 0 : onEnviarEmail(livro, folha); }, disabled: isFormDisabled, isLoading: isEnviandoEmail }, "SOLICITAR INSTRUMENTO"),
92
92
  React.createElement(GhostButton, { onClick: onClose, disabled: isProcessing }, "Cancelar")));
93
- return (React.createElement(Modal, { isOpen: isOpen, onClose: onClose, title: "INSTRUMENTO DE PROTESTO - SP", footer: footerContent },
93
+ return (React.createElement(Modal, { isOpen: isOpen, onClose: onClose, title: "Solicitar instrumento", footer: footerContent },
94
94
  React.createElement(Wrapper, null,
95
- React.createElement(Subtitle, null, "Utilize os dados constantes no cart\u00F3rio para localizar o instrumento de protesto correspondente."),
95
+ React.createElement(Subtitle, null, "Para cart\u00F3rios de SP, informe Livro e Folha. Vamos iniciar o processamento e enviar por e-mail o instrumento e, quando poss\u00EDvel, as informa\u00E7\u00F5es do credor (quem protestou)."),
96
96
  React.createElement(InputsRow, null,
97
97
  React.createElement(InputContainer, null,
98
98
  React.createElement(Label, { htmlFor: "livro" }, "Livro"),
@@ -6,14 +6,11 @@ import Button from '../../../components/common/button';
6
6
  import Modal from '../../../components/common/modal';
7
7
  import React from 'react';
8
8
  import styled from 'styled-components';
9
- var Actions = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 10px;\n flex-wrap: wrap;\n"], ["\n display: flex;\n justify-content: center;\n gap: 10px;\n flex-wrap: wrap;\n"])));
10
- var PrimaryButton = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n && {\n width: auto !important;\n min-width: 190px;\n white-space: nowrap;\n }\n"], ["\n && {\n width: auto !important;\n min-width: 190px;\n white-space: nowrap;\n }\n"])));
11
- var CancelButton = styled.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n all: unset;\n cursor: pointer;\n padding: 10px 14px;\n border-radius: 10px;\n color: ", ";\n ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n text-decoration: none;\n }\n"], ["\n all: unset;\n cursor: pointer;\n padding: 10px 14px;\n border-radius: 10px;\n color: ", ";\n ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n text-decoration: none;\n }\n"])), function (_a) {
9
+ var Actions = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 10px;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 10px;\n"])));
10
+ var PrimaryButton = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n && {\n width: 100% !important;\n }\n"], ["\n && {\n width: 100% !important;\n }\n"])));
11
+ var CancelButton = styled(Button)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n && {\n width: 100% !important;\n background-color: transparent;\n color: ", ";\n\n &:hover:not(:disabled) {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n }\n }\n"], ["\n && {\n width: 100% !important;\n background-color: transparent;\n color: ", ";\n\n &:hover:not(:disabled) {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), function (_a) {
12
12
  var theme = _a.theme;
13
13
  return theme.colors.cinzaMedio;
14
- }, function (_a) {
15
- var theme = _a.theme;
16
- return theme.typography.strong16;
17
14
  }, function (_a) {
18
15
  var theme = _a.theme;
19
16
  return theme.colors.azulCredithub;
@@ -23,7 +20,7 @@ var InstrumentoDiscoveryConfirmModal = function (_a) {
23
20
  return (React.createElement(Modal, { isOpen: isOpen, onClose: onClose, title: "Solicitar instrumento", footer: React.createElement(Actions, null,
24
21
  React.createElement(PrimaryButton, { onClick: onConfirm, isLoading: isLoading }, "Solicitar instrumento"),
25
22
  React.createElement(CancelButton, { onClick: onClose, disabled: isLoading }, "Cancelar")) },
26
- React.createElement("div", { style: { textAlign: 'center' } }, "N\u00E3o encontramos o PDF do instrumento agora. Se voc\u00EA confirmar, vamos iniciar o processamento e enviar o instrumento por e-mail assim que estiver dispon\u00EDvel.")));
23
+ React.createElement("div", { style: { textAlign: 'center' } }, "N\u00E3o encontramos o PDF do instrumento agora. Se voc\u00EA confirmar, vamos iniciar o processamento e enviar por e-mail o instrumento e, quando poss\u00EDvel, as informa\u00E7\u00F5es do credor (quem protestou).")));
27
24
  };
28
25
  export default InstrumentoDiscoveryConfirmModal;
29
26
  var templateObject_1, templateObject_2, templateObject_3;
@@ -81,7 +81,7 @@ export var useInstrumento = function (_a) {
81
81
  res = _a.sent();
82
82
  setEmailTitle('Instrumento solicitado por e-mail');
83
83
  setEmailMessage((res === null || res === void 0 ? void 0 : res.message) ||
84
- 'Solicitação registrada. Em alguns minutos, refaça a consulta de hoje para atualizar os dados e obter o instrumento.');
84
+ 'Solicitação registrada. Vamos processar o instrumento e também agregar as informações do credor quando possível. Em alguns minutos, refaça a consulta de hoje para atualizar os dados.');
85
85
  setIsEmailModalOpen(true);
86
86
  setIsModalSPOpen(false);
87
87
  return [3 /*break*/, 5];
@@ -115,7 +115,7 @@ export var useInstrumento = function (_a) {
115
115
  res = _a.sent();
116
116
  setEmailTitle('Solicitação enviada');
117
117
  setEmailMessage((res === null || res === void 0 ? void 0 : res.message) ||
118
- 'Solicitação registrada. Em alguns minutos, refaça a consulta de hoje para atualizar os dados e obter o instrumento.');
118
+ 'Solicitação registrada. Vamos processar o instrumento e também agregar as informações do credor quando possível. Em alguns minutos, refaça a consulta de hoje para atualizar os dados.');
119
119
  setIsEmailModalOpen(true);
120
120
  return [3 /*break*/, 5];
121
121
  case 3: