@pipelinesolucoes/notification 1.0.2-beta.4 → 1.0.2-beta.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/components/ConfirmMessage.js +19 -22
- package/dist/components/ConfirmMessage.js.map +1 -1
- package/dist/components/TermsAndPrivacyCard.d.ts +1 -0
- package/dist/components/TermsAndPrivacyCard.js +22 -2
- package/dist/components/TermsAndPrivacyCard.js.map +1 -1
- package/dist/style/ButtonFormStyled.js +0 -1
- package/dist/style/ButtonFormStyled.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/TermsAndPrivacyProps.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { styled, useTheme } from '@mui/material/styles';
|
|
4
4
|
import Box from '@mui/material/Box';
|
|
5
5
|
import { ButtonStyled } from '../style/ButtonFormStyled';
|
|
6
|
-
import { fbmargin } from '../constant';
|
|
7
6
|
const StyledRoot = styled(Box, {
|
|
8
7
|
shouldForwardProp: (prop) => ![
|
|
9
8
|
'width',
|
|
@@ -26,7 +25,7 @@ const StyledRoot = styled(Box, {
|
|
|
26
25
|
boxShadow: boxShadow !== null && boxShadow !== void 0 ? boxShadow : 'none',
|
|
27
26
|
display: 'flex',
|
|
28
27
|
flexDirection: 'column',
|
|
29
|
-
alignItems: '
|
|
28
|
+
alignItems: 'flex-start',
|
|
30
29
|
justifyContent: 'space-between',
|
|
31
30
|
gap: '32px',
|
|
32
31
|
}));
|
|
@@ -51,7 +50,7 @@ const ActionsWrapper = styled('div')(() => ({
|
|
|
51
50
|
display: 'flex',
|
|
52
51
|
alignItems: 'center',
|
|
53
52
|
justifyContent: 'flex-end',
|
|
54
|
-
gap:
|
|
53
|
+
gap: '16px',
|
|
55
54
|
width: '100%',
|
|
56
55
|
}));
|
|
57
56
|
export const MessageStyle = styled('div', {
|
|
@@ -101,8 +100,8 @@ export const MessageStyle = styled('div', {
|
|
|
101
100
|
* };
|
|
102
101
|
* ```
|
|
103
102
|
*/
|
|
104
|
-
const ConfirmMessage = ({ width, height, padding, margin, background, color, borderRadius, boxShadow, icon, message, variantMessage, variantButton, backgroundCancelButton, backgroundHoverCancelButton, colorCancelButton, colorHoverCancelButton, borderRadiusCancelButton, borderCancelButton, boxShadowCancelButton, widthCancelButton, heightCancelButton, paddingCancelButton,
|
|
105
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62
|
|
103
|
+
const ConfirmMessage = ({ width, height, padding, margin, background, color, borderRadius, boxShadow, icon, message, variantMessage, variantButton, backgroundCancelButton, backgroundHoverCancelButton, colorCancelButton, colorHoverCancelButton, borderRadiusCancelButton, borderCancelButton, boxShadowCancelButton, widthCancelButton, heightCancelButton, paddingCancelButton, backgroundConfirmButton, backgroundHoverConfirmButton, colorConfirmButton, colorHoverConfirmButton, borderRadiusConfirmButton, borderConfirmButton, boxShadowConfirmButton, widthConfirmButton, heightConfirmButton, paddingConfirmButton, onCancel, onConfirm, cancelLabel = 'Cancelar', confirmLabel = 'OK', }) => {
|
|
104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62;
|
|
106
105
|
const cancelDisabled = !onCancel;
|
|
107
106
|
const confirmDisabled = !onConfirm;
|
|
108
107
|
const theme = useTheme();
|
|
@@ -124,23 +123,21 @@ const ConfirmMessage = ({ width, height, padding, margin, background, color, bor
|
|
|
124
123
|
const bdButtonConfirm = (_12 = borderConfirmButton !== null && borderConfirmButton !== void 0 ? borderConfirmButton : (_11 = (_10 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _10 === void 0 ? void 0 : _10.primary) === null || _11 === void 0 ? void 0 : _11.border) !== null && _12 !== void 0 ? _12 : undefined;
|
|
125
124
|
const bsButtonConfirm = (_15 = boxShadowConfirmButton !== null && boxShadowConfirmButton !== void 0 ? boxShadowConfirmButton : (_14 = (_13 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _13 === void 0 ? void 0 : _13.primary) === null || _14 === void 0 ? void 0 : _14.boxShadow) !== null && _15 !== void 0 ? _15 : undefined;
|
|
126
125
|
const pButtonConfirm = (_18 = paddingConfirmButton !== null && paddingConfirmButton !== void 0 ? paddingConfirmButton : (_17 = (_16 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _16 === void 0 ? void 0 : _16.primary) === null || _17 === void 0 ? void 0 : _17.padding) !== null && _18 !== void 0 ? _18 : undefined;
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
const
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
const
|
|
137
|
-
const
|
|
138
|
-
const
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
const typoCancel = (_68 = (_65 = (variantButton && theme.typography[variantButton])) !== null && _65 !== void 0 ? _65 : (_67 = (_66 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _66 === void 0 ? void 0 : _66.secondary) === null || _67 === void 0 ? void 0 : _67.typography) !== null && _68 !== void 0 ? _68 : theme.typography.body1;
|
|
143
|
-
return (_jsxs(StyledRoot, { width: wnotific, height: hnotific, padding: pnotific, margin: mnotific, background: bnotific, color: clnotific, borderRadius: brnotific, boxShadow: bsnotific, role: "status", "aria-live": "polite", children: [_jsxs(LeftContent, { children: [icon ? _jsx(IconWrapper, { "aria-hidden": "true", children: icon }) : null, _jsx(MessageWrapper, { children: _jsx(MessageStyle, { typo: typoMessage, children: message }) })] }), _jsxs(ActionsWrapper, { children: [_jsx(ButtonStyled, { backgroundButton: bgButtonCancel, backgroundHoverButton: bgHoverButtonCancel, colorButton: cButtonCancel, colorHoverButton: cHoverButtonCancel, borderRadiusButton: brButtonCancel, borderButton: bdButtonCancel, boxShadowButton: bsButtonCancel, widthButton: wButtonCancel, heightButton: hButtonCancel, paddingButton: pButtonCancel, marginButton: mButtonCancel, typo: typoCancel, onClick: onCancel, disabled: cancelDisabled, "aria-disabled": cancelDisabled, children: cancelLabel }), _jsx(ButtonStyled, { backgroundButton: bgButtonConfirm, backgroundHoverButton: bgHoverButtonConfirm, colorButton: cButtonConfirm, colorHoverButton: cHoverButtonConfirm, borderRadiusButton: brButtonConfirm, borderButton: bdButtonConfirm, boxShadowButton: bsButtonConfirm, widthButton: wButtonConfirm, heightButton: hButtonConfirm, paddingButton: pButtonConfirm, marginButton: mButtonConfirm, typo: typoConfirm, onClick: onConfirm, disabled: confirmDisabled, "aria-disabled": confirmDisabled, children: confirmLabel })] })] }));
|
|
126
|
+
const wButtonConfirm = (_21 = widthConfirmButton !== null && widthConfirmButton !== void 0 ? widthConfirmButton : (_20 = (_19 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _19 === void 0 ? void 0 : _19.primary) === null || _20 === void 0 ? void 0 : _20.padding) !== null && _21 !== void 0 ? _21 : undefined;
|
|
127
|
+
const hButtonConfirm = (_24 = heightConfirmButton !== null && heightConfirmButton !== void 0 ? heightConfirmButton : (_23 = (_22 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _22 === void 0 ? void 0 : _22.primary) === null || _23 === void 0 ? void 0 : _23.padding) !== null && _24 !== void 0 ? _24 : undefined;
|
|
128
|
+
const typoConfirm = (_28 = (_25 = (variantButton && theme.typography[variantButton])) !== null && _25 !== void 0 ? _25 : (_27 = (_26 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _26 === void 0 ? void 0 : _26.primary) === null || _27 === void 0 ? void 0 : _27.typography) !== null && _28 !== void 0 ? _28 : theme.typography.body1;
|
|
129
|
+
const bgButtonCancel = (_31 = backgroundCancelButton !== null && backgroundCancelButton !== void 0 ? backgroundCancelButton : (_30 = (_29 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _29 === void 0 ? void 0 : _29.secondary) === null || _30 === void 0 ? void 0 : _30.background) !== null && _31 !== void 0 ? _31 : undefined;
|
|
130
|
+
const bgHoverButtonCancel = (_34 = backgroundHoverCancelButton !== null && backgroundHoverCancelButton !== void 0 ? backgroundHoverCancelButton : (_33 = (_32 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _32 === void 0 ? void 0 : _32.secondary) === null || _33 === void 0 ? void 0 : _33.backgroundHover) !== null && _34 !== void 0 ? _34 : undefined;
|
|
131
|
+
const cButtonCancel = (_37 = colorCancelButton !== null && colorCancelButton !== void 0 ? colorCancelButton : (_36 = (_35 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _35 === void 0 ? void 0 : _35.secondary) === null || _36 === void 0 ? void 0 : _36.color) !== null && _37 !== void 0 ? _37 : undefined;
|
|
132
|
+
const cHoverButtonCancel = (_40 = colorHoverCancelButton !== null && colorHoverCancelButton !== void 0 ? colorHoverCancelButton : (_39 = (_38 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _38 === void 0 ? void 0 : _38.secondary) === null || _39 === void 0 ? void 0 : _39.colorHover) !== null && _40 !== void 0 ? _40 : undefined;
|
|
133
|
+
const brButtonCancel = (_43 = borderRadiusCancelButton !== null && borderRadiusCancelButton !== void 0 ? borderRadiusCancelButton : (_42 = (_41 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _41 === void 0 ? void 0 : _41.secondary) === null || _42 === void 0 ? void 0 : _42.borderRadius) !== null && _43 !== void 0 ? _43 : undefined;
|
|
134
|
+
const bdButtonCancel = (_46 = borderCancelButton !== null && borderCancelButton !== void 0 ? borderCancelButton : (_45 = (_44 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _44 === void 0 ? void 0 : _44.secondary) === null || _45 === void 0 ? void 0 : _45.border) !== null && _46 !== void 0 ? _46 : undefined;
|
|
135
|
+
const bsButtonCancel = (_49 = boxShadowCancelButton !== null && boxShadowCancelButton !== void 0 ? boxShadowCancelButton : (_48 = (_47 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _47 === void 0 ? void 0 : _47.secondary) === null || _48 === void 0 ? void 0 : _48.boxShadow) !== null && _49 !== void 0 ? _49 : undefined;
|
|
136
|
+
const pButtonCancel = (_52 = paddingCancelButton !== null && paddingCancelButton !== void 0 ? paddingCancelButton : (_51 = (_50 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _50 === void 0 ? void 0 : _50.secondary) === null || _51 === void 0 ? void 0 : _51.padding) !== null && _52 !== void 0 ? _52 : undefined;
|
|
137
|
+
const wButtonCancel = (_55 = widthCancelButton !== null && widthCancelButton !== void 0 ? widthCancelButton : (_54 = (_53 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _53 === void 0 ? void 0 : _53.secondary) === null || _54 === void 0 ? void 0 : _54.padding) !== null && _55 !== void 0 ? _55 : undefined;
|
|
138
|
+
const hButtonCancel = (_58 = heightCancelButton !== null && heightCancelButton !== void 0 ? heightCancelButton : (_57 = (_56 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _56 === void 0 ? void 0 : _56.secondary) === null || _57 === void 0 ? void 0 : _57.padding) !== null && _58 !== void 0 ? _58 : undefined;
|
|
139
|
+
const typoCancel = (_62 = (_59 = (variantButton && theme.typography[variantButton])) !== null && _59 !== void 0 ? _59 : (_61 = (_60 = themeNotification === null || themeNotification === void 0 ? void 0 : themeNotification.buttons) === null || _60 === void 0 ? void 0 : _60.secondary) === null || _61 === void 0 ? void 0 : _61.typography) !== null && _62 !== void 0 ? _62 : theme.typography.body1;
|
|
140
|
+
return (_jsxs(StyledRoot, { width: wnotific, height: hnotific, padding: pnotific, margin: mnotific, background: bnotific, color: clnotific, borderRadius: brnotific, boxShadow: bsnotific, role: "status", "aria-live": "polite", children: [_jsxs(LeftContent, { children: [icon ? _jsx(IconWrapper, { "aria-hidden": "true", children: icon }) : null, _jsx(MessageWrapper, { children: _jsx(MessageStyle, { typo: typoMessage, children: message }) })] }), _jsxs(ActionsWrapper, { children: [_jsx(ButtonStyled, { backgroundButton: bgButtonCancel, backgroundHoverButton: bgHoverButtonCancel, colorButton: cButtonCancel, colorHoverButton: cHoverButtonCancel, borderRadiusButton: brButtonCancel, borderButton: bdButtonCancel, boxShadowButton: bsButtonCancel, widthButton: wButtonCancel, heightButton: hButtonCancel, paddingButton: pButtonCancel, marginButton: "0", typo: typoCancel, onClick: onCancel, disabled: cancelDisabled, "aria-disabled": cancelDisabled, children: cancelLabel }), _jsx(ButtonStyled, { backgroundButton: bgButtonConfirm, backgroundHoverButton: bgHoverButtonConfirm, colorButton: cButtonConfirm, colorHoverButton: cHoverButtonConfirm, borderRadiusButton: brButtonConfirm, borderButton: bdButtonConfirm, boxShadowButton: bsButtonConfirm, widthButton: wButtonConfirm, heightButton: hButtonConfirm, paddingButton: pButtonConfirm, marginButton: "0", typo: typoConfirm, onClick: onConfirm, disabled: confirmDisabled, "aria-disabled": confirmDisabled, children: confirmLabel })] })] }));
|
|
144
141
|
};
|
|
145
142
|
ConfirmMessage.displayName = 'ConfirmMessage';
|
|
146
143
|
export default ConfirmMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmMessage.js","sourceRoot":"","sources":["../../src/components/ConfirmMessage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAa,MAAM,EAAqB,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfirmMessage.js","sourceRoot":"","sources":["../../src/components/ConfirmMessage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAa,MAAM,EAAqB,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AA4CzD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,EAAE;IAC7B,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC;QACC,OAAO;QACP,QAAQ;QACR,SAAS;QACT,QAAQ;QACR,YAAY;QACZ,OAAO;QACP,cAAc;QACd,WAAW;KACZ,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC7B,CAAC,CAGC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;IAEtF,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,MAAM;IACtB,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,MAAM;IACxB,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE;IACtB,MAAM,EA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a,EAC5B,YAAY,EAAC,GAAG,EAChB,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,cAAc,mBACT,cAAc,YAE5B,WAAW,GACC,EAEf,KAAC,YAAY,IACX,gBAAgB,EAAE,eAAe,EACjC,qBAAqB,EAAE,oBAAoB,EAC3C,WAAW,EAAE,cAAc,EAC3B,gBAAgB,EAAE,mBAAmB,EACrC,kBAAkB,EAAE,eAAe,EACnC,YAAY,EAAE,eAAe,EAC7B,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,cAAc,EAC3B,YAAY,EAAE,cAAc,EAC5B,aAAa,EAAE,cAAc,EAC7B,YAAY,EAAC,GAAG,EAChB,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,eAAe,mBACV,eAAe,YAE7B,YAAY,GACA,IACA,IAEN,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,eAAe,cAAc,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { TermsAndPrivacyProps } from '../types/TermsAndPrivacyProps';
|
|
|
8
8
|
* e o usuário já rolou a página (scrollTop > 0), evitando sobreposição no banner inicial.
|
|
9
9
|
* Ao clicar em "Ok" ou "Cancelar", o cookie é persistido por 1 ano e o card é ocultado.
|
|
10
10
|
*
|
|
11
|
+
* @param {'pt' | 'en'} [locale = 'pt'] Idioma.
|
|
11
12
|
* @param {string} url_termo_uso URL para a página de Termos de Uso. Obrigatório.
|
|
12
13
|
* @param {string} url_politica_privacidade URL para a página de Política de Privacidade. Obrigatório.
|
|
13
14
|
* @param {string} [background_color='transparent'] Cor de fundo do container do card.
|
|
@@ -4,6 +4,22 @@ import { useEffect, useState } from 'react';
|
|
|
4
4
|
import { styled, Typography } from '@mui/material';
|
|
5
5
|
import { parseCookies, setCookie } from 'nookies';
|
|
6
6
|
import { NotificationButton, NotificationLink } from './NotificationStyled';
|
|
7
|
+
const TEXTS = {
|
|
8
|
+
pt: {
|
|
9
|
+
message: 'Este site usa cookies e dados pessoais de acordo com os nossos',
|
|
10
|
+
terms: 'Termos de Uso',
|
|
11
|
+
privacy: 'Política de Privacidade',
|
|
12
|
+
accept: 'Ok',
|
|
13
|
+
cancel: 'Cancelar',
|
|
14
|
+
},
|
|
15
|
+
en: {
|
|
16
|
+
message: 'This website uses cookies and personal data in accordance with our',
|
|
17
|
+
terms: 'Terms of Use',
|
|
18
|
+
privacy: 'Privacy Policy',
|
|
19
|
+
accept: 'Ok',
|
|
20
|
+
cancel: 'Cancel',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
7
23
|
const Container = styled('div', {
|
|
8
24
|
shouldForwardProp: (prop) => !['show', 'background', 'borderRadius', 'border'].includes(prop),
|
|
9
25
|
})(({ show, background, borderRadius, border }) => ({
|
|
@@ -62,6 +78,7 @@ const readConsentCookie = () => {
|
|
|
62
78
|
* e o usuário já rolou a página (scrollTop > 0), evitando sobreposição no banner inicial.
|
|
63
79
|
* Ao clicar em "Ok" ou "Cancelar", o cookie é persistido por 1 ano e o card é ocultado.
|
|
64
80
|
*
|
|
81
|
+
* @param {'pt' | 'en'} [locale = 'pt'] Idioma.
|
|
65
82
|
* @param {string} url_termo_uso URL para a página de Termos de Uso. Obrigatório.
|
|
66
83
|
* @param {string} url_politica_privacidade URL para a página de Política de Privacidade. Obrigatório.
|
|
67
84
|
* @param {string} [background_color='transparent'] Cor de fundo do container do card.
|
|
@@ -108,7 +125,8 @@ const readConsentCookie = () => {
|
|
|
108
125
|
* ```
|
|
109
126
|
*/
|
|
110
127
|
const TermsAndPrivacyCard = (props) => {
|
|
111
|
-
const { url_termo_uso, url_politica_privacidade, background_color = 'transparent', color = '#000000', border_radius = '0', border = "none", background_color_button_ok = 'transparent', color_button_ok = '#000000', border_radius_button_ok = '0', background_color_button_cancel = 'transparent', color_button_cancel = '#000000', border_radius_button_cancel = '0', background_color_link = 'transparent', color_link = '#000000', background_color_hover_link = 'transparent', color_hover_link = '#000000', variantTexto = 'caption', variantButton = 'caption', } = props;
|
|
128
|
+
const { locale = 'pt', url_termo_uso, url_politica_privacidade, background_color = 'transparent', color = '#000000', border_radius = '0', border = "none", background_color_button_ok = 'transparent', color_button_ok = '#000000', border_radius_button_ok = '0', background_color_button_cancel = 'transparent', color_button_cancel = '#000000', border_radius_button_cancel = '0', background_color_link = 'transparent', color_link = '#000000', background_color_hover_link = 'transparent', color_hover_link = '#000000', variantTexto = 'caption', variantButton = 'caption', } = props;
|
|
129
|
+
const t = TEXTS[locale];
|
|
112
130
|
const [showNotification, setShowNotification] = useState(false);
|
|
113
131
|
const [cookieConsent, setCookieConsent] = useState(null);
|
|
114
132
|
// Lê o cookie assim que o componente monta
|
|
@@ -164,7 +182,9 @@ const TermsAndPrivacyCard = (props) => {
|
|
|
164
182
|
setCookieConsent('false');
|
|
165
183
|
setShowNotification(false);
|
|
166
184
|
};
|
|
167
|
-
return (_jsx(Container, { show: showNotification, background: background_color, borderRadius: border_radius, border: border, children: _jsxs(Content, { children: [_jsxs(Typography, { component: "div", variant: variantTexto, color: color, sx: { width: '100%' }, children: [
|
|
185
|
+
return (_jsx(Container, { show: showNotification, background: background_color, borderRadius: border_radius, border: border, children: _jsxs(Content, { children: [_jsxs(Typography, { component: "div", variant: variantTexto, color: color, sx: { width: '100%' }, children: [t.message, ' ', _jsx(NotificationLink, { href: url_termo_uso, background: background_color_link, backgroundHover: background_color_hover_link, colorText: color_link, colorHover: color_hover_link, children: t.terms }), ' ', "e", ' ', _jsx(NotificationLink, { href: url_politica_privacidade, background: background_color_link, backgroundHover: background_color_hover_link, colorText: color_link, colorHover: color_hover_link, children: t.privacy }), ". ", locale === 'pt'
|
|
186
|
+
? 'Ao continuar navegando neste site, você declara estar ciente dessas condições.'
|
|
187
|
+
: 'By continuing to browse this website, you acknowledge and agree to these conditions.'] }), _jsxs(ContentButton, { children: [_jsx(NotificationButton, { background: background_color_button_cancel, backgroundHover: background_color_button_cancel, colorText: color_button_cancel, colorHover: color_button_cancel, borderRadius: border_radius_button_cancel, onClick: handleReject, children: _jsx(Typography, { variant: variantButton, component: "span", children: t.cancel }) }), _jsx(NotificationButton, { background: background_color_button_ok, backgroundHover: background_color_button_ok, colorText: color_button_ok, colorHover: color_button_ok, borderRadius: border_radius_button_ok, onClick: handleAccept, children: _jsx(Typography, { variant: variantButton, component: "span", children: t.accept }) })] })] }) }));
|
|
168
188
|
};
|
|
169
189
|
TermsAndPrivacyCard.displayName = 'TermsAndPrivacyCard';
|
|
170
190
|
export default TermsAndPrivacyCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TermsAndPrivacyCard.js","sourceRoot":"","sources":["../../src/components/TermsAndPrivacyCard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"TermsAndPrivacyCard.js","sourceRoot":"","sources":["../../src/components/TermsAndPrivacyCard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,MAAM,KAAK,GAMN;IACH,EAAE,EAAE;QACF,OAAO,EACL,gEAAgE;QAClE,KAAK,EAAE,eAAe;QACtB,OAAO,EAAE,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1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonFormStyled.js","sourceRoot":"","sources":["../../src/style/ButtonFormStyled.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,MAAM,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAsB1D,MAAM,0BAA0B,GAAG;IACjC,YAAY;IACZ,
|
|
1
|
+
{"version":3,"file":"ButtonFormStyled.js","sourceRoot":"","sources":["../../src/style/ButtonFormStyled.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,MAAM,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAsB1D,MAAM,0BAA0B,GAAG;IACjC,YAAY;IACZ,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,cAAc;IACd,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,eAAe;IACf,cAAc;IACd,MAAM;CACE,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE;IACvC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,0BAA0B,CAAC,QAAQ,CAAC,IAAyB,CAAC;CAC/F,CAAC,CACA,CAAC,EACC,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,IAAI,GACL,EAAE,EAAE,CAAC,+BAEJ,KAAK,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,OAAO,EAC7B,UAAU,EAAE,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,aAAa,EAC7C,YAAY,EAAE,kBAAkB,aAAlB,kBA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