@pipelinesolucoes/form 1.0.0-beta.1 → 1.0.0-beta.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.
@@ -2,8 +2,8 @@ import { BUTTON_STYLE_FORWARD_PROPS } from "../types/ButtonProps";
2
2
  import { Button, styled } from "@mui/material";
3
3
  export const ButtonFormStyled = styled(Button, {
4
4
  shouldForwardProp: (prop) => !BUTTON_STYLE_FORWARD_PROPS.includes(prop),
5
- })(({ backgroundButton, backgroundHoverButton, colorTextButton, colorTextHoverButton, borderRadiusButton, borderButton, boxShadowButton, widthButton, heightButton, paddingButton, marginButton, }) => ({
6
- color: colorTextButton,
5
+ })(({ backgroundButton, backgroundHoverButton, colorButton, colorHoverButton, borderRadiusButton, borderButton, boxShadowButton, widthButton, heightButton, paddingButton, marginButton, }) => ({
6
+ color: colorButton,
7
7
  background: backgroundButton,
8
8
  borderRadius: borderRadiusButton,
9
9
  textTransform: "none",
@@ -16,7 +16,7 @@ export const ButtonFormStyled = styled(Button, {
16
16
  margin: marginButton,
17
17
  "&:hover": {
18
18
  background: backgroundHoverButton,
19
- color: colorTextHoverButton,
19
+ color: colorHoverButton,
20
20
  },
21
21
  }));
22
22
  //# sourceMappingURL=ButtonFormStyled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonFormStyled.js","sourceRoot":"","sources":["../../src/components/ButtonFormStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE;IAC3C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,0BAA0B,CAAC,QAAQ,CAAC,IAAyB,CAAC;CAC/F,CAAC,CACA,CAAC,EACC,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,EAAE,EAAE,CAAC,CAAC;IACL,KAAK,EAAE,eAAe;IACtB,UAAU,EAAE,gBAAgB;IAC5B,YAAY,EAAE,kBAAkB;IAChC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,SAAS;IAEjB,OAAO,EAAE,aAAa;IACtB,SAAS,EAAE,eAAe;IAC1B,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IAEpB,SAAS,EAAE;QACT,UAAU,EAAE,qBAAqB;QACjC,KAAK,EAAE,oBAAoB;KAC5B;CACF,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"ButtonFormStyled.js","sourceRoot":"","sources":["../../src/components/ButtonFormStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE;IAC3C,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,GACb,EAAE,EAAE,CAAC,CAAC;IACL,KAAK,EAAE,WAAW;IAClB,UAAU,EAAE,gBAAgB;IAC5B,YAAY,EAAE,kBAAkB;IAChC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,SAAS;IAEjB,OAAO,EAAE,aAAa;IACtB,SAAS,EAAE,eAAe;IAC1B,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IAEpB,SAAS,EAAE;QACT,UAAU,EAAE,qBAAqB;QACjC,KAAK,EAAE,gBAAgB;KACxB;CACF,CAAC,CACH,CAAC"}
@@ -8,8 +8,10 @@ interface TextFieldValidateProps extends BorderProps, ColorProps, LayoutProps {
8
8
  placeholder?: string;
9
9
  value?: string;
10
10
  background?: string;
11
- colorText?: string;
11
+ backgroundDisabled?: string;
12
+ color?: string;
12
13
  colorFocused?: string;
14
+ colorDisabled?: string;
13
15
  borderRadius?: string;
14
16
  boxShadow?: string;
15
17
  borderColor?: string;
@@ -42,8 +44,10 @@ interface TextFieldValidateProps extends BorderProps, ColorProps, LayoutProps {
42
44
  * @param {boolean} [disabled=false] Define se o campo está desabilitado.
43
45
  *
44
46
  * @param {string} [background='#fff'] Cor de fundo do campo.
45
- * @param {string} [colorText='#000'] Cor do texto e do label.
47
+ * @param {string} [backgroundDisabled='#E5E7EB'] Cor de fundo do campo quando o campo está desabilitado.
48
+ * @param {string} [color='#000'] Cor do texto e do label.
46
49
  * @param {string} [colorFocused='#1976d2'] Cor da borda quando o campo está focado.
50
+ * @param {string} [colorDisabled='#9CA3AF'] Cor do texto e do label quando o campo está focado.
47
51
  * @param {string} [borderColor='#ccc'] Cor da borda no estado normal e hover.
48
52
  * @param {string} [borderRadius='0'] Raio da borda do campo.
49
53
  * @param {string} [boxShadow='none'] Sombra aplicada ao campo.
@@ -3,8 +3,8 @@ import React from 'react';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import TextField from '@mui/material/TextField';
5
5
  const StyledTextField = styled(TextField, {
6
- shouldForwardProp: (prop) => !['background', 'colorText', 'borderRadius', 'boxShadow', 'borderColor', 'colorFocused', 'padding'].includes(prop),
7
- })(({ background, colorText, borderRadius, boxShadow, borderColor, colorFocused, padding }) => ({
6
+ shouldForwardProp: (prop) => !['background', 'borderRadius', 'boxShadow', 'borderColor', 'colorFocused', 'backgroundDisabled', 'colorDisabled', 'padding'].includes(prop),
7
+ })(({ background, backgroundDisabled, colorText, borderRadius, boxShadow, borderColor, colorFocused, colorDisabled, padding }) => ({
8
8
  background: background,
9
9
  color: colorText,
10
10
  borderRadius: borderRadius,
@@ -28,6 +28,10 @@ const StyledTextField = styled(TextField, {
28
28
  '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
29
29
  borderColor: colorFocused,
30
30
  },
31
+ "&.Mui-disabled": {
32
+ backgroundColor: backgroundDisabled,
33
+ color: colorDisabled,
34
+ },
31
35
  }));
32
36
  const computeError = (value, { required, requiredMessage, minLength, pattern, patternMessage, validate, }) => {
33
37
  const v = value !== null && value !== void 0 ? value : '';
@@ -61,8 +65,10 @@ const computeError = (value, { required, requiredMessage, minLength, pattern, pa
61
65
  * @param {boolean} [disabled=false] Define se o campo está desabilitado.
62
66
  *
63
67
  * @param {string} [background='#fff'] Cor de fundo do campo.
64
- * @param {string} [colorText='#000'] Cor do texto e do label.
68
+ * @param {string} [backgroundDisabled='#E5E7EB'] Cor de fundo do campo quando o campo está desabilitado.
69
+ * @param {string} [color='#000'] Cor do texto e do label.
65
70
  * @param {string} [colorFocused='#1976d2'] Cor da borda quando o campo está focado.
71
+ * @param {string} [colorDisabled='#9CA3AF'] Cor do texto e do label quando o campo está focado.
66
72
  * @param {string} [borderColor='#ccc'] Cor da borda no estado normal e hover.
67
73
  * @param {string} [borderRadius='0'] Raio da borda do campo.
68
74
  * @param {string} [boxShadow='none'] Sombra aplicada ao campo.
@@ -108,7 +114,7 @@ const computeError = (value, { required, requiredMessage, minLength, pattern, pa
108
114
  * };
109
115
  * ```
110
116
  */
111
- const TextFieldValidate = ({ id, label, background = '#fff', colorText = '#000', colorFocused = '#1976d2', borderRadius = '0', boxShadow = 'none', borderColor = '#ccc', placeholder, disabled = false, value = '', onChange, onBlur, multiline = false, rows = 3, required = false, requiredMessage = 'Campo obrigatório', minLength, pattern, patternMessage = 'Formato inválido', validate, showErrorOn = 'blur', maxLength, padding = '4px 8px' }) => {
117
+ const TextFieldValidate = ({ id, label, background = '#fff', backgroundDisabled = "#E5E7EB", color = '#000', colorFocused = '#1976d2', colorDisabled = "#9CA3AF", borderRadius = '0', boxShadow = 'none', borderColor = '#ccc', placeholder, disabled = false, value = '', onChange, onBlur, multiline = false, rows = 3, required = false, requiredMessage = 'Campo obrigatório', minLength, pattern, patternMessage = 'Formato inválido', validate, showErrorOn = 'blur', maxLength, padding = '4px 8px' }) => {
112
118
  const [touched, setTouched] = React.useState(false);
113
119
  const errorMessage = React.useMemo(() => {
114
120
  if (showErrorOn === 'change') {
@@ -150,7 +156,7 @@ const TextFieldValidate = ({ id, label, background = '#fff', colorText = '#000',
150
156
  onBlur(event);
151
157
  }
152
158
  };
153
- return (_jsx(StyledTextField, { id: id, label: label, placeholder: placeholder, value: value, onChange: onChange, onBlur: handleBlur, background: background, colorText: colorText, colorFocused: colorFocused, borderRadius: borderRadius, boxShadow: boxShadow, borderColor: borderColor, padding: padding, disabled: disabled, multiline: multiline, required: required, rows: multiline ? rows : undefined, fullWidth: true, error: Boolean(errorMessage), helperText: errorMessage || ' ', slotProps: {
159
+ return (_jsx(StyledTextField, { id: id, label: label, placeholder: placeholder, value: value, onChange: onChange, onBlur: handleBlur, background: background, backgroundDisabled: backgroundDisabled, colorText: color, colorFocused: colorFocused, colorDisabled: colorDisabled, borderRadius: borderRadius, boxShadow: boxShadow, borderColor: borderColor, padding: padding, disabled: disabled, multiline: multiline, required: required, rows: multiline ? rows : undefined, fullWidth: true, error: Boolean(errorMessage), helperText: errorMessage || ' ', slotProps: {
154
160
  input: {
155
161
  inputProps: typeof maxLength === 'number' ? { maxLength } : undefined,
156
162
  },
@@ -1 +1 @@
1
- {"version":3,"file":"TextFieldValidate.js","sourceRoot":"","sources":["../../src/components/TextFieldValidate.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM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AAe,iBAAiB,CAAC"}
@@ -1,16 +1,18 @@
1
- import React from 'react';
2
- import { TypographyVariant } from '@mui/material';
1
+ import React, { ReactElement } from 'react';
2
+ import { TypographyVariant, SvgIconProps } from '@mui/material';
3
3
  import { ColorProps } from '@/types/ColorProps';
4
4
  import { BorderProps } from '@/types/BorderProps';
5
5
  import { LayoutProps } from '@/types/LayoutProps';
6
6
  import { TextProps } from '@/types/TextProps';
7
7
  interface GoogleButtonProps extends ColorProps, BorderProps, LayoutProps, TextProps {
8
+ icon: () => ReactElement<HTMLImageElement> | ReactElement<SvgIconProps>;
8
9
  text: string;
9
10
  variant?: TypographyVariant;
10
11
  endpoint: string;
11
12
  messageError?: string;
12
13
  errorColor?: string;
13
14
  background?: string;
15
+ color?: string;
14
16
  width?: string;
15
17
  height?: string;
16
18
  padding?: string;
@@ -24,6 +26,7 @@ interface GoogleButtonProps extends ColorProps, BorderProps, LayoutProps, TextPr
24
26
  * (ex: autenticação com Google). Durante o clique, o botão entra em estado
25
27
  * de loading e, caso ocorra algum erro, exibe uma mensagem abaixo do botão.
26
28
  *
29
+ * @param {ReactElement<HTMLImageElement> | ReactElement<SvgIconProps>} icon Icone exibido dentro do botão.
27
30
  * @param {string} text Texto exibido dentro do botão.
28
31
  * @param {TypographyVariant} [variant='body1'] Variante do Typography usada no texto do botão.
29
32
  * @param {string} endpoint URL para a qual o usuário será redirecionado ao clicar no botão.
@@ -34,11 +34,23 @@ const ButtonFormStyled = styled(Button, {
34
34
  cursor: 'not-allowed',
35
35
  },
36
36
  }));
37
+ const AreaTexto = styled('div')(() => ({
38
+ display: 'flex',
39
+ flexDirection: 'column',
40
+ alignItems: 'flex-start',
41
+ justifyContent: 'center',
42
+ width: '100%',
43
+ gap: '16px',
44
+ textAlign: 'left',
45
+ padding: '0',
46
+ margin: '0',
47
+ }));
37
48
  /**
38
49
  * Componente de botão que redireciona o usuário para um endpoint externo
39
50
  * (ex: autenticação com Google). Durante o clique, o botão entra em estado
40
51
  * de loading e, caso ocorra algum erro, exibe uma mensagem abaixo do botão.
41
52
  *
53
+ * @param {ReactElement<HTMLImageElement> | ReactElement<SvgIconProps>} icon Icone exibido dentro do botão.
42
54
  * @param {string} text Texto exibido dentro do botão.
43
55
  * @param {TypographyVariant} [variant='body1'] Variante do Typography usada no texto do botão.
44
56
  * @param {string} endpoint URL para a qual o usuário será redirecionado ao clicar no botão.
@@ -75,7 +87,7 @@ const ButtonFormStyled = styled(Button, {
75
87
  * };
76
88
  * ```
77
89
  */
78
- const GoogleButton = ({ text, variant = 'body1', endpoint, messageError = 'Ocorreu um erro ao processar sua solicitação.', errorColor = '#d32f2f', boxShadow = 'none', width = 'auto', height = 'auto', padding = '8px 24px', margin = '0', background = "transparent", border = 'none', borderRadius, }) => {
90
+ const GoogleButton = ({ icon, text, variant = 'body1', endpoint, messageError = 'Ocorreu um erro ao processar sua solicitação.', errorColor = '#d32f2f', boxShadow = 'none', width = 'auto', height = 'auto', padding = '8px 24px', margin = '0', background = "transparent", color = "#000", border = 'none', borderRadius, }) => {
79
91
  const [loading, setLoading] = React.useState(false);
80
92
  const [errorMsg, setErrorMsg] = React.useState(null);
81
93
  const handleClick = async () => {
@@ -93,7 +105,7 @@ const GoogleButton = ({ text, variant = 'body1', endpoint, messageError = 'Ocorr
93
105
  };
94
106
  return (_jsxs(Box, { children: [_jsx(ButtonFormStyled, { onClick: handleClick, disabled: loading, width: width, height: height, padding: padding, margin: margin, background: background, border: border, borderRadius: borderRadius, boxShadow: boxShadow, children: loading
95
107
  ? 'Carregando...'
96
- : _jsx(Typography, { variant: variant, children: text }) }), errorMsg && (_jsx(Typography, { role: "alert", variant: "body2", sx: { mt: 1 }, color: errorColor, children: errorMsg }))] }));
108
+ : _jsxs(AreaTexto, { children: [icon(), _jsx(Typography, { variant: variant, color: color, children: text })] }) }), errorMsg && (_jsx(Typography, { role: "alert", variant: "body1", sx: { mt: 1 }, color: errorColor, children: errorMsg }))] }));
97
109
  };
98
110
  GoogleButton.displayName = 'GoogleButton';
99
111
  export default GoogleButton;
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleButton.js","sourceRoot":"","sources":["../../../src/components/login/GoogleButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;AAOnF,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE;IACtC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC;QACC,OAAO;QACP,QAAQ;QACR,SAAS;QACT,QAAQ;QACR,YAAY;QACZ,QAAQ;QACR,cAAc;QACd,WAAW;KACZ,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC7B,CAAC,CAUA,CAAC,EACC,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,EACV,MAAM,EACN,YAAY,EACZ,SAAS,GACV,EAAE,EAAE,CAAC,CAAC;IACL,SAAS;IACT,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM;IAEd,SAAS;IACT,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,SAAS;IAEjB,SAAS,EAAE;QACT,OAAO,EAAE,GAAG;QACZ,SAAS,EAAE,SAAS,IAAI,MAAM;KAC/B;IAED,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,aAAa;KACtB;CACF,CAAC,CACH,CAAC;AAyBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,YAAY,GAAgC,CAAC,EACjD,IAAI,EACJ,OAAO,GAAG,OAAO,EACjB,QAAQ,EACR,YAAY,GAAG,+CAA+C,EA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AO,EAAC,OAAO,EACf,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EACb,KAAK,EAAE,UAAU,YAEhB,QAAQ,GACE,CACd,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAC1C,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"GoogleButton.js","sourceRoot":"","sources":["../../../src/components/login/GoogleButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAmC,MAAM,eAAe,CAAC;AAOjG,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE;IACtC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC;QACC,OAAO;QACP,QAAQ;QACR,SAAS;QACT,QAAQ;QACR,YAAY;QACZ,QAAQ;QACR,cAAc;QACd,WAAW;KACZ,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC7B,CAAC,CAUA,CAAC,EACC,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,EACV,MAAM,EACN,YAAY,EACZ,SAAS,GACV,EAAE,EAAE,CAAC,CAAC;IACL,SAAS;IACT,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM;IAEd,SAAS;IACT,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,SAAS;IAEjB,SAAS,EAAE;QACT,OAAO,EAAE,GAAG;QACZ,SAAS,EAAE,SAAS,IAAI,MAAM;KAC/B;IAED,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,aAAa;KACtB;CACF,CAAC,CACH,C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AU,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,GAAG,eACF,KAAC,gBAAgB,IAChB,OAAO,EAAE,WAAW,EACnB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,YAEnB,OAAO;oBACN,CAAC,CAAC,eAAe;oBACjB,CAAC,CAAC,MAAC,SAAS,eACN,IAAI,EAAE,EACR,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YAAG,IAAI,GAAc,IACrD,GACC,EAElB,QAAQ,IAAI,CACX,KAAC,UAAU,IACT,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,OAAO,EACf,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EACb,KAAK,EAAE,UAAU,YAEhB,QAAQ,GACE,CACd,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAC1C,eAAe,YAAY,CAAC"}
@@ -16,7 +16,7 @@ interface PasswordRecoveryFormProps extends ButtonProps, ColorProps, BorderProps
16
16
  background?: string;
17
17
  borderRadius?: string;
18
18
  backgroundField?: string;
19
- colorTextField?: string;
19
+ colorField?: string;
20
20
  colorFocusedField?: string;
21
21
  borderRadiusField?: string;
22
22
  boxShadowField?: string;
@@ -26,8 +26,8 @@ interface PasswordRecoveryFormProps extends ButtonProps, ColorProps, BorderProps
26
26
  variantButton?: TypographyVariant;
27
27
  backgroundButton?: string;
28
28
  backgroundHoverButton?: string;
29
- colorTextButton?: string;
30
- colorTextHoverButton?: string;
29
+ colorButton?: string;
30
+ colorHoverButton?: string;
31
31
  borderRadiusButton?: string;
32
32
  borderButton?: string;
33
33
  boxShadowButton?: string;
@@ -60,7 +60,7 @@ interface PasswordRecoveryFormProps extends ButtonProps, ColorProps, BorderProps
60
60
  * @param {string} [borderRadius='0px'] Borda arredondada do container externo.
61
61
  *
62
62
  * @param {string} [backgroundField='transparent'] Cor/estilo de fundo do campo de e-mail.
63
- * @param {string} [colorTextField='#000'] Cor do texto do campo de e-mail.
63
+ * @param {string} [colorField='#000'] Cor do texto do campo de e-mail.
64
64
  * @param {string} [borderRadiusField='0px'] Borda arredondada do campo de e-mail.
65
65
  * @param {string} [boxShadowField='none'] Sombra do campo de e-mail.
66
66
  * @param {string} [borderColorField='#ccc'] Cor da borda do campo de e-mail.
@@ -70,8 +70,8 @@ interface PasswordRecoveryFormProps extends ButtonProps, ColorProps, BorderProps
70
70
  * @param {TypographyVariant} [variantButton='body1'] Variant do Typography usado dentro do botão.
71
71
  * @param {string} [backgroundButton='transparent'] Cor/estilo de fundo do botão.
72
72
  * @param {string} [backgroundHoverButton='transparent'] Cor/estilo de fundo do botão no hover.
73
- * @param {string} [colorTextButton='#000'] Cor do texto do botão.
74
- * @param {string} [colorTextHoverButton='#000'] Cor do texto do botão no hover.
73
+ * @param {string} [colorButton='#000'] Cor do texto do botão.
74
+ * @param {string} [colorHoverButton='#000'] Cor do texto do botão no hover.
75
75
  * @param {string} [borderRadiusButton='0'] Borda arredondada do botão.
76
76
  * @param {string} [borderButton='none'] Borda do botão.
77
77
  * @param {string} [boxShadowButton='none'] Sombra do botão.
@@ -111,8 +111,8 @@ interface PasswordRecoveryFormProps extends ButtonProps, ColorProps, BorderProps
111
111
  * variantButton="button"
112
112
  * backgroundButton="#1976d2"
113
113
  * backgroundHoverButton="#1565c0"
114
- * colorTextButton="#fff"
115
- * colorTextHoverButton="#fff"
114
+ * colorButton="#fff"
115
+ * colorHoverButton="#fff"
116
116
  * borderRadiusButton="10px"
117
117
  * widthButton="100%"
118
118
  * color_message_sucess="green"
@@ -50,7 +50,7 @@ const StyledRoot = styled(Box, {
50
50
  * @param {string} [borderRadius='0px'] Borda arredondada do container externo.
51
51
  *
52
52
  * @param {string} [backgroundField='transparent'] Cor/estilo de fundo do campo de e-mail.
53
- * @param {string} [colorTextField='#000'] Cor do texto do campo de e-mail.
53
+ * @param {string} [colorField='#000'] Cor do texto do campo de e-mail.
54
54
  * @param {string} [borderRadiusField='0px'] Borda arredondada do campo de e-mail.
55
55
  * @param {string} [boxShadowField='none'] Sombra do campo de e-mail.
56
56
  * @param {string} [borderColorField='#ccc'] Cor da borda do campo de e-mail.
@@ -60,8 +60,8 @@ const StyledRoot = styled(Box, {
60
60
  * @param {TypographyVariant} [variantButton='body1'] Variant do Typography usado dentro do botão.
61
61
  * @param {string} [backgroundButton='transparent'] Cor/estilo de fundo do botão.
62
62
  * @param {string} [backgroundHoverButton='transparent'] Cor/estilo de fundo do botão no hover.
63
- * @param {string} [colorTextButton='#000'] Cor do texto do botão.
64
- * @param {string} [colorTextHoverButton='#000'] Cor do texto do botão no hover.
63
+ * @param {string} [colorButton='#000'] Cor do texto do botão.
64
+ * @param {string} [colorHoverButton='#000'] Cor do texto do botão no hover.
65
65
  * @param {string} [borderRadiusButton='0'] Borda arredondada do botão.
66
66
  * @param {string} [borderButton='none'] Borda do botão.
67
67
  * @param {string} [boxShadowButton='none'] Sombra do botão.
@@ -101,8 +101,8 @@ const StyledRoot = styled(Box, {
101
101
  * variantButton="button"
102
102
  * backgroundButton="#1976d2"
103
103
  * backgroundHoverButton="#1565c0"
104
- * colorTextButton="#fff"
105
- * colorTextHoverButton="#fff"
104
+ * colorButton="#fff"
105
+ * colorHoverButton="#fff"
106
106
  * borderRadiusButton="10px"
107
107
  * widthButton="100%"
108
108
  * color_message_sucess="green"
@@ -128,7 +128,7 @@ const StyledRoot = styled(Box, {
128
128
  * };
129
129
  * ```
130
130
  */
131
- const PasswordRecoveryForm = ({ Icon, titulo, subTitulo, background = 'transparent', borderRadius = '0px', backgroundField = 'transparent', colorTextField = '#000', borderRadiusField = '0px', boxShadowField = 'none', borderColorField = "#ccc", paddingField = '4px 8px', textButton = "Enviar", variantButton = "body1", backgroundButton = 'transparent', backgroundHoverButton = 'transparent', colorTextButton = '#000', colorTextHoverButton = '#000', borderRadiusButton = '0', borderButton = 'none', boxShadowButton = 'none', widthButton = 'auto', heightButton = 'auto', paddingButton = '4px 24px', marginButton = '0', color_message_sucess, color_message_erro, onSubmit, onResult, children, }) => {
131
+ const PasswordRecoveryForm = ({ Icon, titulo, subTitulo, background = 'transparent', borderRadius = '0px', backgroundField = 'transparent', colorField = '#000', borderRadiusField = '0px', boxShadowField = 'none', borderColorField = "#ccc", paddingField = '4px 8px', textButton = "Enviar", variantButton = "body1", backgroundButton = 'transparent', backgroundHoverButton = 'transparent', colorButton = '#000', colorHoverButton = '#000', borderRadiusButton = '0', borderButton = 'none', boxShadowButton = 'none', widthButton = 'auto', heightButton = 'auto', paddingButton = '4px 24px', marginButton = '0', color_message_sucess, color_message_erro, onSubmit, onResult, children, }) => {
132
132
  const [mensagemApi, setMensagemApi] = useState('');
133
133
  const [corMensagemApi, setCorMensagemApi] = useState(color_message_erro);
134
134
  const [email, setEmail] = useState('');
@@ -160,7 +160,7 @@ const PasswordRecoveryForm = ({ Icon, titulo, subTitulo, background = 'transpare
160
160
  setIsLoading(false);
161
161
  }
162
162
  };
163
- return (_jsxs(StyledRoot, { background: background, border_radius: borderRadius, children: [(Icon || titulo) && (_jsxs(DivTitulo, { children: [Icon && _jsx(Icon, {}), titulo && titulo(), subTitulo && subTitulo()] })), _jsxs(FormContainer, { children: [_jsx(TextFieldValidate, { id: "email", label: "Email", placeholder: "Email", background: backgroundField, colorText: colorTextField, borderRadius: borderRadiusField, borderColor: borderColorField, boxShadow: boxShadowField, padding: paddingField, value: email, onChange: (e) => setEmail(e.target.value), required: true, requiredMessage: "Campo obrigat\u00F3rio", validate: validateEmailMessage, showErrorOn: "blur" }), _jsx(ButtonFormStyled, { backgroundButton: backgroundButton, backgroundHoverButton: backgroundHoverButton, colorTextButton: colorTextButton, colorTextHoverButton: colorTextHoverButton, borderRadiusButton: borderRadiusButton, borderButton: borderButton, boxShadowButton: boxShadowButton, widthButton: widthButton, heightButton: heightButton, paddingButton: paddingButton, marginButton: marginButton, disabled: isLoading, onClick: handleClick, children: isLoading
163
+ return (_jsxs(StyledRoot, { background: background, border_radius: borderRadius, children: [(Icon || titulo) && (_jsxs(DivTitulo, { children: [Icon && _jsx(Icon, {}), titulo && titulo(), subTitulo && subTitulo()] })), _jsxs(FormContainer, { children: [_jsx(TextFieldValidate, { id: "email", label: "Email", placeholder: "Email", background: backgroundField, color: colorField, borderRadius: borderRadiusField, borderColor: borderColorField, boxShadow: boxShadowField, padding: paddingField, value: email, onChange: (e) => setEmail(e.target.value), required: true, requiredMessage: "Campo obrigat\u00F3rio", validate: validateEmailMessage, showErrorOn: "blur" }), _jsx(ButtonFormStyled, { backgroundButton: backgroundButton, backgroundHoverButton: backgroundHoverButton, colorButton: colorButton, colorHoverButton: colorHoverButton, borderRadiusButton: borderRadiusButton, borderButton: borderButton, boxShadowButton: boxShadowButton, widthButton: widthButton, heightButton: heightButton, paddingButton: paddingButton, marginButton: marginButton, disabled: isLoading, onClick: handleClick, children: isLoading
164
164
  ? 'Enviando...'
165
165
  : _jsx(Typography, { variant: variantButton, component: "span", children: textButton }) }), mensagemApi && (_jsx(Typography, { variant: "body1", component: "span", color: corMensagemApi, children: mensagemApi }))] }), children] }));
166
166
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordRecoveryForm.js","sourceRoot":"","sources":["../../../src/components/login/PasswordRecoveryForm.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAqB,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,GAAG,EAAgB,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAA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