@pipelinesolucoes/form 1.0.0-beta.3 → 1.0.0-beta.4
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/README.md +3 -0
- package/dist/components/FormStyled.js +66 -106
- package/dist/components/FormStyled.js.map +1 -1
- package/dist/components/NotificationSnackbar.d.ts +56 -0
- package/dist/components/NotificationSnackbar.js +55 -0
- package/dist/components/NotificationSnackbar.js.map +1 -0
- package/dist/components/TextFieldValidate.js +60 -30
- package/dist/components/TextFieldValidate.js.map +1 -1
- package/dist/components/login/GoogleButton.d.ts +4 -4
- package/dist/components/login/GoogleButton.js +4 -4
- package/dist/components/login/GoogleButton.js.map +1 -1
- package/dist/components/login/LoginForm.js +10 -28
- package/dist/components/login/LoginForm.js.map +1 -1
- package/dist/components/login/SignUpForm.js +10 -21
- package/dist/components/login/SignUpForm.js.map +1 -1
- package/dist/components/recaptcha/RecaptchaMessage.js +13 -32
- package/dist/components/recaptcha/RecaptchaMessage.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mui-theme.d.ts +33 -0
- package/dist/theme.d.ts +0 -33
- package/dist/theme.js +17 -135
- package/dist/theme.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -21,6 +21,9 @@ A biblioteca inclui os seguintes componentes:
|
|
|
21
21
|
- **TextFieldValidate**
|
|
22
22
|
Componente de campo de texto com validação, baseado no TextField do Material UI.
|
|
23
23
|
Permite personalização visual via `styled` e suporte a validações comuns (obrigatório, tamanho mínimo, regex) e validação customizada.
|
|
24
|
+
|
|
25
|
+
- **TopSnackbar**
|
|
26
|
+
Componente que exibe uma notificação no topo da tela utilizando o Snackbar e Alert do Material UI.
|
|
24
27
|
---
|
|
25
28
|
|
|
26
29
|
## ✨ Características
|
|
@@ -3,118 +3,78 @@ import { styled } from '@mui/material/styles';
|
|
|
3
3
|
import TextField from '@mui/material/TextField';
|
|
4
4
|
export const TextFieldStyled = styled(TextField, {
|
|
5
5
|
shouldForwardProp: (prop) => !['background_color', 'text_color', 'text_color_error', 'border_radius', 'width'].includes(prop),
|
|
6
|
-
})(({ theme, background_color, text_color, text_color_error, border_radius, error, width = '100%' }) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
fontFamily: theme.typography.fontFamily,
|
|
24
|
-
fontSize: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontSize,
|
|
25
|
-
fontWeight: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontWeight,
|
|
26
|
-
fontStyle: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.fontStyle,
|
|
27
|
-
lineHeight: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.lineHeight,
|
|
28
|
-
letterSpacing: (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.letterSpacing,
|
|
29
|
-
margin: (_f = theme.typography.body1) === null || _f === void 0 ? void 0 : _f.margin,
|
|
30
|
-
width: width,
|
|
31
|
-
});
|
|
32
|
-
});
|
|
6
|
+
})(({ theme, background_color, text_color, text_color_error, border_radius, error, width = '100%' }) => ({
|
|
7
|
+
'& .MuiInputLabel-root': {
|
|
8
|
+
color: error ? text_color_error : text_color, // Label em vermelho em caso de erro
|
|
9
|
+
},
|
|
10
|
+
'& .MuiInputBase-input::placeholder': {
|
|
11
|
+
color: error ? text_color_error : text_color, // Placeholder também em vermelho, opcional
|
|
12
|
+
},
|
|
13
|
+
'& .MuiInputBase-root': {
|
|
14
|
+
backgroundColor: background_color,
|
|
15
|
+
borderRadius: border_radius,
|
|
16
|
+
color: text_color,
|
|
17
|
+
},
|
|
18
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
19
|
+
borderColor: error ? text_color_error : 'transparent', // Borda em vermelho em caso de erro
|
|
20
|
+
},
|
|
21
|
+
width: width,
|
|
22
|
+
}));
|
|
33
23
|
export const TextFieldFixedSizeStyled = styled(TextField, {
|
|
34
24
|
shouldForwardProp: (prop) => !['background_color', 'text_color', 'text_color_error', 'border_radius'].includes(prop),
|
|
35
|
-
})(({ theme, background_color, text_color, text_color_error, border_radius, error }) => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
fontFamily: theme.typography.fontFamily,
|
|
58
|
-
fontSize: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontSize,
|
|
59
|
-
fontWeight: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontWeight,
|
|
60
|
-
fontStyle: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.fontStyle,
|
|
61
|
-
lineHeight: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.lineHeight,
|
|
62
|
-
letterSpacing: (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.letterSpacing,
|
|
63
|
-
margin: (_f = theme.typography.body1) === null || _f === void 0 ? void 0 : _f.margin,
|
|
64
|
-
});
|
|
65
|
-
});
|
|
25
|
+
})(({ theme, background_color, text_color, text_color_error, border_radius, error }) => ({
|
|
26
|
+
'& .MuiInputLabel-root': {
|
|
27
|
+
color: error ? text_color_error : text_color, // Label em vermelho em caso de erro
|
|
28
|
+
},
|
|
29
|
+
'& .MuiInputBase-input::placeholder': {
|
|
30
|
+
color: error ? text_color_error : text_color, // Placeholder também em vermelho, opcional
|
|
31
|
+
},
|
|
32
|
+
'& .MuiInputBase-root': {
|
|
33
|
+
transition: 'none !important',
|
|
34
|
+
alignItems: 'flex-start',
|
|
35
|
+
width: '100%',
|
|
36
|
+
overflowY: 'auto',
|
|
37
|
+
height: '150px',
|
|
38
|
+
backgroundColor: background_color,
|
|
39
|
+
borderRadius: border_radius,
|
|
40
|
+
color: text_color,
|
|
41
|
+
},
|
|
42
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
43
|
+
borderColor: error ? text_color_error : 'transparent', // Borda em vermelho em caso de erro
|
|
44
|
+
},
|
|
45
|
+
}));
|
|
66
46
|
export const ButtonFormStyled = styled(Button, {
|
|
67
47
|
shouldForwardProp: (prop) => !['width', 'height', 'background_color', 'text_color',
|
|
68
48
|
'border_radius', 'border_color', 'margin'].includes(prop),
|
|
69
|
-
})(({ theme, width, height, background_color, text_color, border_radius, border_color = 'transparent', margin = '0' }) => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
49
|
+
})(({ theme, width, height, background_color, text_color, border_radius, border_color = 'transparent', margin = '0' }) => ({
|
|
50
|
+
color: text_color,
|
|
51
|
+
backgroundColor: background_color,
|
|
52
|
+
borderRadius: border_radius,
|
|
53
|
+
textTransform: 'none',
|
|
54
|
+
cursor: 'pointer',
|
|
55
|
+
padding: '8px 24px',
|
|
56
|
+
boxShadow: 'none',
|
|
57
|
+
width: width,
|
|
58
|
+
height: height,
|
|
59
|
+
border: (border_color == "transparent" ? "none" : `1px solid ${border_color}`),
|
|
60
|
+
margin: margin,
|
|
61
|
+
// Hover state (opcional)
|
|
62
|
+
'&:hover': {
|
|
73
63
|
backgroundColor: background_color,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
padding: '8px 24px',
|
|
78
|
-
boxShadow: 'none',
|
|
79
|
-
width: width,
|
|
80
|
-
height: height,
|
|
81
|
-
border: (border_color == "transparent" ? "none" : `1px solid ${border_color}`),
|
|
82
|
-
margin: margin,
|
|
83
|
-
// Tipografia
|
|
84
|
-
fontFamily: theme.typography.fontFamily,
|
|
85
|
-
fontWeight: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontWeight,
|
|
86
|
-
fontStyle: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontStyle,
|
|
87
|
-
lineHeight: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.lineHeight,
|
|
88
|
-
letterSpacing: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.letterSpacing,
|
|
89
|
-
fontSize: (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.fontSize,
|
|
90
|
-
// Hover state (opcional)
|
|
91
|
-
'&:hover': {
|
|
92
|
-
backgroundColor: background_color,
|
|
93
|
-
opacity: 0.9,
|
|
94
|
-
},
|
|
95
|
-
});
|
|
96
|
-
});
|
|
64
|
+
opacity: 0.9,
|
|
65
|
+
},
|
|
66
|
+
}));
|
|
97
67
|
export const LinkFormStyled = styled(Button, {
|
|
98
68
|
shouldForwardProp: (prop) => !['width', 'height', 'text_color', 'margin', 'font_size'].includes(prop),
|
|
99
|
-
})(({ theme, width, height, text_color, margin = 0, font_size }) => {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
margin: margin,
|
|
111
|
-
// Tipografia
|
|
112
|
-
fontFamily: theme.typography.fontFamily,
|
|
113
|
-
fontWeight: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontWeight,
|
|
114
|
-
fontStyle: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontStyle,
|
|
115
|
-
lineHeight: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.lineHeight,
|
|
116
|
-
letterSpacing: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.letterSpacing,
|
|
117
|
-
fontSize: (font_size ? font_size : (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.fontSize),
|
|
118
|
-
});
|
|
119
|
-
});
|
|
69
|
+
})(({ theme, width, height, text_color, margin = 0, font_size }) => ({
|
|
70
|
+
color: text_color,
|
|
71
|
+
width: width,
|
|
72
|
+
height: height,
|
|
73
|
+
textTransform: 'none',
|
|
74
|
+
border: 'none',
|
|
75
|
+
cursor: 'pointer',
|
|
76
|
+
padding: '0',
|
|
77
|
+
boxShadow: 'none',
|
|
78
|
+
margin: margin,
|
|
79
|
+
}));
|
|
120
80
|
//# sourceMappingURL=FormStyled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStyled.js","sourceRoot":"","sources":["../../src/components/FormStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAUhD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,EAAE;IAC/C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,kBAAkB,EAAE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC7G,CAAC,CAAuB,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAC,MAAM,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"FormStyled.js","sourceRoot":"","sources":["../../src/components/FormStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,SAAS,MAAM,yBAAyB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ACd,MAAM,EAAE,CAAC,YAAY,IAAI,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,YAAY,EAAE,CAAC;IAC9E,MAAM,EAAE,MAAM;IAEd,yBAAyB;IACzB,SAAS,EAAE;QACT,eAAe,EAAE,gBAAgB;QACjC,OAAO,EAAE,GAAG;KACb;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE;IAC3C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CACrF,CAAC,CACD,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,EAAE,SAAS,EAAC,EAAE,EAAE,CAAC,CAAC;IAEhE,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,GAAG;IACZ,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE,MAAM;CACf,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ColorProps } from "../types/ColorProps";
|
|
2
|
+
import { TextProps } from "../types/TextProps";
|
|
3
|
+
import { AlertColor, TypographyVariant, SnackbarOrigin } from "@mui/material";
|
|
4
|
+
export interface NotificationSnackbarProps extends TextProps, ColorProps {
|
|
5
|
+
background?: string;
|
|
6
|
+
text: string;
|
|
7
|
+
variant?: TypographyVariant;
|
|
8
|
+
open: boolean;
|
|
9
|
+
severity?: AlertColor;
|
|
10
|
+
anchorOrigin?: SnackbarOrigin;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Componente que exibe uma notificação no topo da tela utilizando o Snackbar
|
|
15
|
+
* e Alert do Material UI.
|
|
16
|
+
*
|
|
17
|
+
* É ideal para feedbacks rápidos de sucesso, erro, aviso ou informação,
|
|
18
|
+
* aparecendo centralizado no topo da viewport e sendo fechado automaticamente
|
|
19
|
+
* após um período ou manualmente.
|
|
20
|
+
*
|
|
21
|
+
* @param {boolean} open Controla se o Snackbar está visível ou não. Obrigatório.
|
|
22
|
+
* @param {string} text Texto exibido dentro do Snackbar. Obrigatório.
|
|
23
|
+
* @param {() => void} onClose Função chamada ao fechar o Snackbar (manual ou automático). Obrigatório.
|
|
24
|
+
* @param {string} [background='#fff'] Cor aplicada ao texto do alerta.
|
|
25
|
+
* @param {TypographyVariant} [variant='body1'] Variante tipográfica do texto exibido.
|
|
26
|
+
* @param {'success' | 'info' | 'warning' | 'error'} [severity='success'] Tipo de severidade do alerta.
|
|
27
|
+
* @param {SnackbarOrigin} [anchorOrigin={ vertical: 'top', horizontal: 'center' }]
|
|
28
|
+
* Define a posição onde o Snackbar será exibido na tela.
|
|
29
|
+
* Permite controlar o alinhamento vertical (`top` ou `bottom`)
|
|
30
|
+
* e horizontal (`left`, `center` ou `right`) dentro da viewport.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* import { NotificationSnackbar } from '@/components/NotificationSnackbar';
|
|
35
|
+
* import { useState } from 'react';
|
|
36
|
+
*
|
|
37
|
+
* const Example = () => {
|
|
38
|
+
* const [open, setOpen] = useState(false);
|
|
39
|
+
*
|
|
40
|
+
* return (
|
|
41
|
+
* <>
|
|
42
|
+
* <button onClick={() => setOpen(true)}>Mostrar Snackbar</button>
|
|
43
|
+
*
|
|
44
|
+
* <NotificationSnackbar
|
|
45
|
+
* open={open}
|
|
46
|
+
* text="Operação realizada com sucesso!"
|
|
47
|
+
* severity="success"
|
|
48
|
+
* onClose={() => setOpen(false)}
|
|
49
|
+
* />
|
|
50
|
+
* </>
|
|
51
|
+
* );
|
|
52
|
+
* };
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare const NotificationSnackbar: React.FC<NotificationSnackbarProps>;
|
|
56
|
+
export default NotificationSnackbar;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Snackbar, Alert, Typography, useTheme } from "@mui/material";
|
|
4
|
+
/**
|
|
5
|
+
* Componente que exibe uma notificação no topo da tela utilizando o Snackbar
|
|
6
|
+
* e Alert do Material UI.
|
|
7
|
+
*
|
|
8
|
+
* É ideal para feedbacks rápidos de sucesso, erro, aviso ou informação,
|
|
9
|
+
* aparecendo centralizado no topo da viewport e sendo fechado automaticamente
|
|
10
|
+
* após um período ou manualmente.
|
|
11
|
+
*
|
|
12
|
+
* @param {boolean} open Controla se o Snackbar está visível ou não. Obrigatório.
|
|
13
|
+
* @param {string} text Texto exibido dentro do Snackbar. Obrigatório.
|
|
14
|
+
* @param {() => void} onClose Função chamada ao fechar o Snackbar (manual ou automático). Obrigatório.
|
|
15
|
+
* @param {string} [background='#fff'] Cor aplicada ao texto do alerta.
|
|
16
|
+
* @param {TypographyVariant} [variant='body1'] Variante tipográfica do texto exibido.
|
|
17
|
+
* @param {'success' | 'info' | 'warning' | 'error'} [severity='success'] Tipo de severidade do alerta.
|
|
18
|
+
* @param {SnackbarOrigin} [anchorOrigin={ vertical: 'top', horizontal: 'center' }]
|
|
19
|
+
* Define a posição onde o Snackbar será exibido na tela.
|
|
20
|
+
* Permite controlar o alinhamento vertical (`top` ou `bottom`)
|
|
21
|
+
* e horizontal (`left`, `center` ou `right`) dentro da viewport.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* import { NotificationSnackbar } from '@/components/NotificationSnackbar';
|
|
26
|
+
* import { useState } from 'react';
|
|
27
|
+
*
|
|
28
|
+
* const Example = () => {
|
|
29
|
+
* const [open, setOpen] = useState(false);
|
|
30
|
+
*
|
|
31
|
+
* return (
|
|
32
|
+
* <>
|
|
33
|
+
* <button onClick={() => setOpen(true)}>Mostrar Snackbar</button>
|
|
34
|
+
*
|
|
35
|
+
* <NotificationSnackbar
|
|
36
|
+
* open={open}
|
|
37
|
+
* text="Operação realizada com sucesso!"
|
|
38
|
+
* severity="success"
|
|
39
|
+
* onClose={() => setOpen(false)}
|
|
40
|
+
* />
|
|
41
|
+
* </>
|
|
42
|
+
* );
|
|
43
|
+
* };
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
const NotificationSnackbar = ({ background = '#fff', open, text, variant = 'body1', severity = "success", anchorOrigin = { vertical: 'top', horizontal: 'center' }, onClose, }) => {
|
|
47
|
+
var _a, _b, _c, _d;
|
|
48
|
+
const theme = useTheme();
|
|
49
|
+
// 1) prop -> 2) token -> 3) fallback
|
|
50
|
+
const resolvedBackground = (_d = background !== null && background !== void 0 ? background : (_c = (_b = (_a = theme.pipesol) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.notification) === null || _c === void 0 ? void 0 : _c.background) !== null && _d !== void 0 ? _d : "#ffffff";
|
|
51
|
+
return (_jsx(Snackbar, { open: open, autoHideDuration: 4000, onClose: onClose, anchorOrigin: anchorOrigin, children: _jsx(Alert, { onClose: onClose, severity: severity, variant: "filled", sx: { color: resolvedBackground }, children: _jsx(Typography, { variant: variant, component: "span", children: text }) }) }));
|
|
52
|
+
};
|
|
53
|
+
NotificationSnackbar.displayName = 'NotificationSnackbar';
|
|
54
|
+
export default NotificationSnackbar;
|
|
55
|
+
//# sourceMappingURL=NotificationSnackbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationSnackbar.js","sourceRoot":"","sources":["../../src/components/NotificationSnackbar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAc,UAAU,EAAqC,QAAQ,EAAE,MAAM,eAAe,CAAC;AAYrH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,oBAAoB,GAAwC,CAAC,EACjE,UAAU,GAAC,MAAM,EACjB,IAAI,EACJ,IAAI,EACJ,OAAO,GAAC,OAAO,EACf,QAAQ,GAAG,SAAS,EACpB,YAAY,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EACxD,OAAO,GACR,EAAE,EAAE;;IAEH,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,qCAAqC;IACrC,MAAM,kBAAkB,GACtB,MAAA,UAAU,aAAV,UAAU,cAAV,UAAU,GACV,MAAA,MAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,IAAI,0CAAE,YAAY,0CAAE,UAAU,mCAC7C,SAAS,CAAC;IAEZ,OAAO,CACL,KAAC,QAAQ,IACP,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,YAE1B,KAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAQ,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,YAC7F,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,YAAE,IAAI,GAAc,GAC5D,GACC,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,eAAe,oBAAoB,CAAC"}
|
|
@@ -3,36 +3,66 @@ 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) => ![
|
|
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
|
-
|
|
6
|
+
shouldForwardProp: (prop) => ![
|
|
7
|
+
"background",
|
|
8
|
+
"borderRadius",
|
|
9
|
+
"boxShadow",
|
|
10
|
+
"borderColor",
|
|
11
|
+
"colorFocused",
|
|
12
|
+
"backgroundDisabled",
|
|
13
|
+
"colorDisabled",
|
|
14
|
+
"padding",
|
|
15
|
+
"colorText",
|
|
16
|
+
].includes(prop),
|
|
17
|
+
})(({ theme, background, backgroundDisabled, colorText, borderRadius, boxShadow, borderColor, colorFocused, colorDisabled, padding, }) => {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
19
|
+
const field = (_b = (_a = theme.pipesol) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.field;
|
|
20
|
+
// props -> tokens -> fallback
|
|
21
|
+
const bg = (_c = background !== null && background !== void 0 ? background : field === null || field === void 0 ? void 0 : field.background) !== null && _c !== void 0 ? _c : "transparent";
|
|
22
|
+
const bgDisabled = (_d = backgroundDisabled !== null && backgroundDisabled !== void 0 ? backgroundDisabled : field === null || field === void 0 ? void 0 : field.backgroundDisabled) !== null && _d !== void 0 ? _d : bg;
|
|
23
|
+
const txt = (_e = colorText !== null && colorText !== void 0 ? colorText : field === null || field === void 0 ? void 0 : field.color) !== null && _e !== void 0 ? _e : theme.palette.text.primary;
|
|
24
|
+
const txtDisabled = (_f = colorDisabled !== null && colorDisabled !== void 0 ? colorDisabled : field === null || field === void 0 ? void 0 : field.colorDisabled) !== null && _f !== void 0 ? _f : theme.palette.text.disabled;
|
|
25
|
+
const br = (_g = borderRadius !== null && borderRadius !== void 0 ? borderRadius : field === null || field === void 0 ? void 0 : field.borderRadius) !== null && _g !== void 0 ? _g : "8px";
|
|
26
|
+
const sh = (_h = boxShadow !== null && boxShadow !== void 0 ? boxShadow : field === null || field === void 0 ? void 0 : field.boxShadow) !== null && _h !== void 0 ? _h : "none";
|
|
27
|
+
const bd = (_j = borderColor !== null && borderColor !== void 0 ? borderColor : field === null || field === void 0 ? void 0 : field.borderColor) !== null && _j !== void 0 ? _j : theme.palette.divider;
|
|
28
|
+
const bdFocused = (_k = colorFocused !== null && colorFocused !== void 0 ? colorFocused : field === null || field === void 0 ? void 0 : field.colorFocused) !== null && _k !== void 0 ? _k : theme.palette.primary.main;
|
|
29
|
+
const pad = padding !== null && padding !== void 0 ? padding : field === null || field === void 0 ? void 0 : field.padding; // pode deixar undefined se quiser respeitar o default do MUI
|
|
30
|
+
return {
|
|
31
|
+
// (opcional) pode manter, mas o mais importante é estilizar os slots internos:
|
|
32
|
+
background: bg,
|
|
33
|
+
borderRadius: br,
|
|
34
|
+
boxShadow: sh,
|
|
35
|
+
"& .MuiInputBase-root": {
|
|
36
|
+
color: txt,
|
|
37
|
+
},
|
|
38
|
+
"& .MuiOutlinedInput-root": Object.assign(Object.assign({ background: bg, borderRadius: br, boxShadow: sh }, (pad ? { padding: pad } : {})), { "& .MuiOutlinedInput-notchedOutline": {
|
|
39
|
+
borderColor: bd,
|
|
40
|
+
}, "&:hover .MuiOutlinedInput-notchedOutline": {
|
|
41
|
+
borderColor: bd,
|
|
42
|
+
}, "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
43
|
+
borderColor: bdFocused,
|
|
44
|
+
}, "&.Mui-disabled": {
|
|
45
|
+
background: bgDisabled,
|
|
46
|
+
color: txtDisabled,
|
|
47
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
48
|
+
borderColor: bd,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
// texto digitado quando disabled
|
|
52
|
+
"& input.Mui-disabled": {
|
|
53
|
+
WebkitTextFillColor: txtDisabled,
|
|
54
|
+
} }),
|
|
55
|
+
"& .MuiInputLabel-root": {
|
|
56
|
+
color: txt,
|
|
57
|
+
},
|
|
58
|
+
"& .MuiInputLabel-root.Mui-focused": {
|
|
59
|
+
color: bdFocused,
|
|
60
|
+
},
|
|
61
|
+
"& .MuiInputLabel-root.Mui-disabled": {
|
|
62
|
+
color: txtDisabled,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
});
|
|
36
66
|
const computeError = (value, { required, requiredMessage, minLength, pattern, patternMessage, validate, }) => {
|
|
37
67
|
const v = value !== null && value !== void 0 ? value : '';
|
|
38
68
|
if (required && v.trim().length === 0)
|
|
@@ -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,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AA4ChD,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,EAAE;IACxC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,
|
|
1
|
+
{"version":3,"file":"TextFieldValidate.js","sourceRoot":"","sources":["../../src/components/TextFieldValidate.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AA4ChD,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,EAAE;IACxC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC;QACC,YAAY;QACZ,cAAc;QACd,WAAW;QACX,aAAa;QACb,cAAc;Q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QAChB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,eAAe,IACd,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,UAAU,EAClB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,KAAK,EAChB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAClC,SAAS,QACT,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAC5B,UAAU,EAAE,YAAY,IAAI,GAAG,EAC/B,SAAS,EAAE;YACT,KAAK,EAAE;gBACL,UAAU,EAAE,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS;aACtE;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAEpD,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { TypographyVariant, SvgIconProps } from '@mui/material';
|
|
3
|
-
import { ColorProps } from '
|
|
4
|
-
import { BorderProps } from '
|
|
5
|
-
import { LayoutProps } from '
|
|
6
|
-
import { TextProps } from '
|
|
3
|
+
import { ColorProps } from '../../types/ColorProps';
|
|
4
|
+
import { BorderProps } from '../../types/BorderProps';
|
|
5
|
+
import { LayoutProps } from '../../types/LayoutProps';
|
|
6
|
+
import { TextProps } from '../../types/TextProps';
|
|
7
7
|
interface GoogleButtonProps extends ColorProps, BorderProps, LayoutProps, TextProps {
|
|
8
8
|
icon: () => ReactElement<HTMLImageElement> | ReactElement<SvgIconProps>;
|
|
9
9
|
text: string;
|
|
@@ -36,11 +36,11 @@ const ButtonFormStyled = styled(Button, {
|
|
|
36
36
|
}));
|
|
37
37
|
const AreaTexto = styled('div')(() => ({
|
|
38
38
|
display: 'flex',
|
|
39
|
-
flexDirection: '
|
|
40
|
-
alignItems: '
|
|
39
|
+
flexDirection: 'row',
|
|
40
|
+
alignItems: 'center',
|
|
41
41
|
justifyContent: 'center',
|
|
42
42
|
width: '100%',
|
|
43
|
-
gap: '
|
|
43
|
+
gap: '8px',
|
|
44
44
|
textAlign: 'left',
|
|
45
45
|
padding: '0',
|
|
46
46
|
margin: '0',
|
|
@@ -105,7 +105,7 @@ const GoogleButton = ({ icon, text, variant = 'body1', endpoint, messageError =
|
|
|
105
105
|
};
|
|
106
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
|
|
107
107
|
? 'Carregando...'
|
|
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 }))] }));
|
|
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 }))] }));
|
|
109
109
|
};
|
|
110
110
|
GoogleButton.displayName = 'GoogleButton';
|
|
111
111
|
export default GoogleButton;
|
|
@@ -1 +1 @@
|
|
|
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,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"GoogleButton.js","sourceRoot":"","sources":["../../../src/components/login/GoogleButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5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,SAAS,YAEnB,OAAO;oBACN,CAAC,CAAC,eAAe;oBACjB,CAAC,CAAC,CAAE,MAAC,SAAS,eACP,IAAI,EAAE,EACR,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YAAG,IAAI,GAAc,IACpD,CAAC,GACF,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"}
|
|
@@ -5,7 +5,6 @@ import { styled } from '@mui/material/styles';
|
|
|
5
5
|
import { Box, Divider, IconButton, InputAdornment, Typography } from '@mui/material';
|
|
6
6
|
import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
|
|
7
7
|
import VisibilityIcon from '@mui/icons-material/Visibility';
|
|
8
|
-
import GoogleIcon from '@mui/icons-material/Google';
|
|
9
8
|
import { ButtonFormStyled, LinkFormStyled, TextFieldStyled } from '../FormStyled';
|
|
10
9
|
const FormContainer = styled('div')(() => ({
|
|
11
10
|
display: 'flex',
|
|
@@ -33,35 +32,18 @@ const DivTitulo = styled('div')(() => ({
|
|
|
33
32
|
alignItems: 'center',
|
|
34
33
|
justifyContent: 'center'
|
|
35
34
|
}));
|
|
36
|
-
const GoogleIconStyle = styled(GoogleIcon, {
|
|
37
|
-
shouldForwardProp: (prop) => !['color_icon'].includes(prop),
|
|
38
|
-
})(({ color_icon }) => ({
|
|
39
|
-
color: color_icon,
|
|
40
|
-
marginRight: '16px'
|
|
41
|
-
}));
|
|
42
35
|
const DivLink = styled("div", {
|
|
43
36
|
shouldForwardProp: (prop) => !['text_color', 'align'].includes(prop),
|
|
44
|
-
})(({ theme, text_color, align }) => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
color: text_color,
|
|
55
|
-
// Tipografia
|
|
56
|
-
fontFamily: theme.typography.fontFamily,
|
|
57
|
-
fontWeight: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontWeight,
|
|
58
|
-
fontStyle: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontStyle,
|
|
59
|
-
lineHeight: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.lineHeight,
|
|
60
|
-
letterSpacing: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.letterSpacing,
|
|
61
|
-
fontSize: (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.fontSize,
|
|
62
|
-
margin: (_f = theme.typography.body1) === null || _f === void 0 ? void 0 : _f.margin,
|
|
63
|
-
});
|
|
64
|
-
});
|
|
37
|
+
})(({ theme, text_color, align }) => ({
|
|
38
|
+
display: 'flex',
|
|
39
|
+
flexDirection: 'row',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: align,
|
|
42
|
+
width: '100%',
|
|
43
|
+
padding: '0',
|
|
44
|
+
flex: '1',
|
|
45
|
+
color: text_color,
|
|
46
|
+
}));
|
|
65
47
|
const LoginForm = ({ Icon, titulo, googleButton, color, background = 'transparent', border_radius = '0px', background_color_field = 'transparent', border_radius_field = '0px', color_button, background_color_button = 'transparent', border_radius_button = '0px', text_button, message_sucess, color_message_sucess, message_erro, color_message_erro, color_link, color_separador, background_color_button_google = 'transparent', color_button_google, urlRecuperarConta, urlCriarConta, children }) => {
|
|
66
48
|
const [mensagemApi, setMensagemApi] = useState('');
|
|
67
49
|
const [corMensagemApi, setCorMensagemApi] = useState(color_message_erro);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.js","sourceRoot":"","sources":["../../../src/components/login/LoginFor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