@pipelinesolucoes/form 1.0.0-beta.6 → 1.2.0-beta.1
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 +2 -2
- package/dist/components/ButtonFormStyled.d.ts +1 -1
- package/dist/components/FormStyled.d.ts +2 -2
- package/dist/components/NotificationSnackbar.js +1 -1
- package/dist/components/NotificationSnackbar.js.map +1 -1
- package/dist/components/TextFieldPassword.js +3 -2
- package/dist/components/TextFieldPassword.js.map +1 -1
- package/dist/components/TextFieldValidate.js +2 -2
- package/dist/components/TextFieldValidate.js.map +1 -1
- package/dist/components/login/{LoginForm.d.ts → FormLogin.d.ts} +9 -9
- package/dist/components/login/{LoginForm.js → FormLogin.js} +17 -7
- package/dist/components/login/FormLogin.js.map +1 -0
- package/dist/components/login/{PasswordRecoveryForm.d.ts → FormPasswordRecovery.d.ts} +3 -3
- package/dist/components/login/{PasswordRecoveryForm.js → FormPasswordRecovery.js} +4 -4
- package/dist/components/login/{PasswordRecoveryForm.js.map → FormPasswordRecovery.js.map} +1 -1
- package/dist/components/login/FormSignUp.d.ts +160 -0
- package/dist/components/login/FormSignUp.js +211 -0
- package/dist/components/login/FormSignUp.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +2 -2
- package/dist/theme.js +20 -21
- package/dist/theme.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -4
- package/dist/components/login/LoginForm.js.map +0 -1
- package/dist/components/login/SignUpForm.d.ts +0 -26
- package/dist/components/login/SignUpForm.js +0 -138
- package/dist/components/login/SignUpForm.js.map +0 -1
- package/dist/mui-theme.d.ts +0 -33
- package/dist/mui-theme.js +0 -2
- package/dist/mui-theme.js.map +0 -1
- package/dist/pages/_app.d.ts +0 -2
- package/dist/pages/_app.js +0 -20
- package/dist/pages/_app.js.map +0 -1
- package/dist/pages/_document.d.ts +0 -9
- package/dist/pages/_document.js +0 -33
- package/dist/pages/_document.js.map +0 -1
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { styled } from '@mui/material/styles';
|
|
5
|
+
import { Box, Divider, Typography } from '@mui/material';
|
|
6
|
+
import { LinkFormStyled } from '../FormStyled';
|
|
7
|
+
import { ButtonFormStyled } from '../ButtonFormStyled';
|
|
8
|
+
import { validateEmailMessage } from '../../utils/validateEmail';
|
|
9
|
+
import TextFieldValidate from '../TextFieldValidate';
|
|
10
|
+
import TextFieldPassword from '../TextFieldPassword';
|
|
11
|
+
const FormContainer = styled('div')(() => ({
|
|
12
|
+
display: 'flex',
|
|
13
|
+
flexDirection: 'column',
|
|
14
|
+
gap: '16px',
|
|
15
|
+
width: '100%',
|
|
16
|
+
margin: 'auto',
|
|
17
|
+
padding: '0px',
|
|
18
|
+
}));
|
|
19
|
+
const DivPassword = styled('div')(() => ({
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'column',
|
|
22
|
+
gap: '8px',
|
|
23
|
+
width: '100%',
|
|
24
|
+
margin: '0',
|
|
25
|
+
padding: '0',
|
|
26
|
+
}));
|
|
27
|
+
const DivTitulo = styled('div')(() => ({
|
|
28
|
+
display: 'flex',
|
|
29
|
+
flexDirection: 'column',
|
|
30
|
+
gap: '8px',
|
|
31
|
+
width: '100%',
|
|
32
|
+
margin: '0',
|
|
33
|
+
padding: '0',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
justifyContent: 'center',
|
|
36
|
+
}));
|
|
37
|
+
const DivLink = styled('div', {
|
|
38
|
+
shouldForwardProp: (prop) => !['text_color', 'align'].includes(prop),
|
|
39
|
+
})(({ text_color, align }) => ({
|
|
40
|
+
display: 'flex',
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: align,
|
|
44
|
+
width: '100%',
|
|
45
|
+
padding: '0',
|
|
46
|
+
flex: '1',
|
|
47
|
+
color: text_color,
|
|
48
|
+
}));
|
|
49
|
+
const DivCampos = styled('div')(() => ({
|
|
50
|
+
display: 'flex',
|
|
51
|
+
flexDirection: 'column',
|
|
52
|
+
gap: '4px',
|
|
53
|
+
width: '100%',
|
|
54
|
+
margin: '0',
|
|
55
|
+
padding: '0',
|
|
56
|
+
alignItems: 'center',
|
|
57
|
+
justifyContent: 'center',
|
|
58
|
+
}));
|
|
59
|
+
/**
|
|
60
|
+
* Componente de formulário de login com suporte a autenticação via Google e login por email/senha.
|
|
61
|
+
* Inclui validação básica de email, exibição de mensagens de erro/sucesso retornadas pelo handler `onClick`
|
|
62
|
+
* e customização visual via props (container, campos, botão e links).
|
|
63
|
+
*
|
|
64
|
+
* @param {string} urlRecuperarConta URL para a página de recuperação de conta/senha. Obrigatório.
|
|
65
|
+
* @param {string} urlCriarConta URL para a página de criação de conta. Obrigatório.
|
|
66
|
+
* @param {React.ElementType<SvgIconProps>} [Icon] Ícone opcional (MUI SvgIcon) exibido no topo do formulário.
|
|
67
|
+
* @param {() => React.ReactElement} [titulo] Função que retorna o conteúdo do título exibido no topo do formulário.
|
|
68
|
+
* @param {() => React.ReactElement} googleButton Função que retorna o botão de login com Google. Obrigatório.
|
|
69
|
+
*
|
|
70
|
+
* @param {string} color Cor usada em alguns textos/containers auxiliares (ex.: wrapper dos links). Obrigatório.
|
|
71
|
+
* @param {string} [background='transparent'] Cor de fundo do container principal.
|
|
72
|
+
* @param {string} [borderRadius='0'] Raio da borda do container principal.
|
|
73
|
+
* @param {string} [border='none'] Borda do container principal.
|
|
74
|
+
* @param {string} [boxShadow='none'] Sombra do container principal.
|
|
75
|
+
*
|
|
76
|
+
* @param {string} [backgroundField='transparent'] Fundo dos campos (email/senha).
|
|
77
|
+
* @param {string} [colorField='#000'] Cor do texto dos campos (email/senha).
|
|
78
|
+
* @param {string} [colorFocusedField] Cor do estado focado do campo (se suportado pelos campos internos).
|
|
79
|
+
* @param {string} [borderRadiusField='0px'] Raio da borda dos campos.
|
|
80
|
+
* @param {string} [boxShadowField='none'] Sombra dos campos.
|
|
81
|
+
* @param {string} [borderColorField='#ccc'] Cor da borda dos campos.
|
|
82
|
+
* @param {string} [paddingField='4px 8px'] Espaçamento interno dos campos.
|
|
83
|
+
*
|
|
84
|
+
* @param {string} [textButton='Enviar'] Texto do botão principal.
|
|
85
|
+
* @param {TypographyVariant} [variantButton='body1'] Variante do Typography usada no texto do botão.
|
|
86
|
+
* @param {string} [backgroundButton='transparent'] Fundo do botão principal.
|
|
87
|
+
* @param {string} [backgroundHoverButton='transparent'] Fundo do botão no hover.
|
|
88
|
+
* @param {string} [colorButton='#000'] Cor do texto do botão.
|
|
89
|
+
* @param {string} [colorHoverButton='#000'] Cor do texto do botão no hover.
|
|
90
|
+
* @param {string} [borderRadiusButton='0'] Raio da borda do botão.
|
|
91
|
+
* @param {string} [borderButton='none'] Borda do botão.
|
|
92
|
+
* @param {string} [boxShadowButton='none'] Sombra do botão.
|
|
93
|
+
* @param {string} [widthButton='auto'] Largura do botão.
|
|
94
|
+
* @param {string} [heightButton='auto'] Altura do botão.
|
|
95
|
+
* @param {string} [paddingButton='4px 24px'] Padding do botão.
|
|
96
|
+
* @param {string} [marginButton='0'] Margem do botão.
|
|
97
|
+
*
|
|
98
|
+
* @param {string} color_message_sucess Cor padrão para mensagem de sucesso (caso `onClick` não retorne `color`). Obrigatório.
|
|
99
|
+
* @param {string} color_message_erro Cor padrão para mensagem de erro (caso `onClick` não retorne `color`). Obrigatório.
|
|
100
|
+
* @param {string} color_link Cor aplicada nos links "Esqueceu sua senha?" e "Criar conta". Obrigatório.
|
|
101
|
+
* @param {string} color_separador Cor da linha separadora (Divider). Obrigatório.
|
|
102
|
+
*
|
|
103
|
+
* @param {(data: { email: string; password: string }) => Promise<ClickResult> | ClickResult} [onClick]
|
|
104
|
+
* Handler chamado ao submeter o formulário. Recebe `{ email, password }` e deve retornar um `ClickResult`.
|
|
105
|
+
* - Se `success` for `true`, exibe `message` com `color_message_sucess` (ou `result.color` se fornecida)
|
|
106
|
+
* - Se `success` for `false`, exibe `message` com `color_message_erro` (ou `result.color` se fornecida)
|
|
107
|
+
* Se não for informado, o componente exibirá a mensagem: "Nenhuma ação foi configurada para o botão.".
|
|
108
|
+
*
|
|
109
|
+
* @param {React.ReactNode} [children] Conteúdo extra renderizado ao final do container (abaixo da mensagem).
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```tsx
|
|
113
|
+
* import FormLogin from '@/components/FormLogin';
|
|
114
|
+
* import LockOutlinedIcon from '@mui/icons-material/LockOutlined';
|
|
115
|
+
* import { Button } from '@mui/material';
|
|
116
|
+
*
|
|
117
|
+
* export default function Example() {
|
|
118
|
+
* return (
|
|
119
|
+
* <FormLogin
|
|
120
|
+
* urlRecuperarConta="/recuperar"
|
|
121
|
+
* urlCriarConta="/cadastro"
|
|
122
|
+
* Icon={LockOutlinedIcon}
|
|
123
|
+
* titulo={() => <h2>Entrar</h2>}
|
|
124
|
+
* googleButton={() => <Button variant="outlined">Continuar com Google</Button>}
|
|
125
|
+
* color="#111"
|
|
126
|
+
* background="#fff"
|
|
127
|
+
* borderRadius="12px"
|
|
128
|
+
* boxShadow="0 10px 30px rgba(0,0,0,0.08)"
|
|
129
|
+
* backgroundField="#fafafa"
|
|
130
|
+
* borderColorField="#e0e0e0"
|
|
131
|
+
* paddingField="10px 12px"
|
|
132
|
+
* textButton="Acessar"
|
|
133
|
+
* backgroundButton="#111"
|
|
134
|
+
* backgroundHoverButton="#000"
|
|
135
|
+
* colorButton="#fff"
|
|
136
|
+
* colorHoverButton="#fff"
|
|
137
|
+
* borderRadiusButton="10px"
|
|
138
|
+
* paddingButton="10px 16px"
|
|
139
|
+
* color_message_sucess="#1b5e20"
|
|
140
|
+
* color_message_erro="#b71c1c"
|
|
141
|
+
* color_link="#1976d2"
|
|
142
|
+
* color_separador="#e0e0e0"
|
|
143
|
+
* onClick={async ({ email, password }) => {
|
|
144
|
+
* if (email === 'teste@exemplo.com' && password === '123') {
|
|
145
|
+
* return { success: true, message: 'Login realizado com sucesso!' };
|
|
146
|
+
* }
|
|
147
|
+
* return { success: false, message: 'Email ou senha inválidos.' };
|
|
148
|
+
* }}
|
|
149
|
+
* />
|
|
150
|
+
* );
|
|
151
|
+
* }
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
const FormSignUp = ({ urlLogin, Icon, titulo, googleButton, color, background = 'transparent', borderRadius = '0', border = 'none', boxShadow = 'none', 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, color_link, color_separador, onClick, children, }) => {
|
|
155
|
+
const [mensagemApi, setMensagemApi] = useState('');
|
|
156
|
+
const [corMensagemApi, setCorMensagemApi] = useState(color_message_erro);
|
|
157
|
+
const [email, setEmail] = useState('');
|
|
158
|
+
const [password, setPassword] = useState('');
|
|
159
|
+
const [confirmPassword, setConfirmPassword] = useState('');
|
|
160
|
+
const [errors, setErrors] = useState({});
|
|
161
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
162
|
+
const validateEmail = (value) => /\S+@\S+\.\S+/.test(value);
|
|
163
|
+
const handleClick = async (e) => {
|
|
164
|
+
var _a, _b, _c;
|
|
165
|
+
e.preventDefault();
|
|
166
|
+
// validação local básica (mantém o comportamento atual)
|
|
167
|
+
const newErrors = {
|
|
168
|
+
email: !validateEmail(email),
|
|
169
|
+
password: !password.trim(),
|
|
170
|
+
confirmPassword: confirmPassword !== password,
|
|
171
|
+
};
|
|
172
|
+
setErrors(newErrors);
|
|
173
|
+
const hasErrors = Object.values(newErrors).some(Boolean);
|
|
174
|
+
if (hasErrors) {
|
|
175
|
+
setCorMensagemApi(color_message_erro);
|
|
176
|
+
setMensagemApi('Alguns dos dados fornecidos estão inválidos. Por favor, revise as informações preenchidas e corrija os campos destacados.');
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
setIsLoading(true);
|
|
180
|
+
setMensagemApi('');
|
|
181
|
+
try {
|
|
182
|
+
if (!onClick) {
|
|
183
|
+
// Se o pai não passou handler, mantém feedback amigável
|
|
184
|
+
setCorMensagemApi(color_message_erro);
|
|
185
|
+
setMensagemApi('Nenhuma ação foi configurada para o botão.');
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
const result = await onClick({ email, password });
|
|
189
|
+
if (result === null || result === void 0 ? void 0 : result.success) {
|
|
190
|
+
setCorMensagemApi((_a = result.color) !== null && _a !== void 0 ? _a : color_message_sucess);
|
|
191
|
+
setMensagemApi(result.message);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
setCorMensagemApi((_b = result.color) !== null && _b !== void 0 ? _b : color_message_erro);
|
|
195
|
+
setMensagemApi((_c = result === null || result === void 0 ? void 0 : result.message) !== null && _c !== void 0 ? _c : 'Falha ao realizar a operação.');
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
catch (err) {
|
|
199
|
+
setCorMensagemApi(color_message_erro);
|
|
200
|
+
setMensagemApi('Erro inesperado ao processar a solicitação.');
|
|
201
|
+
}
|
|
202
|
+
finally {
|
|
203
|
+
setIsLoading(false);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", justifyContent: "center", gap: "24px", flex: 1, sx: { padding: '24px', borderRadius: borderRadius,
|
|
207
|
+
background: background, border: border,
|
|
208
|
+
boxShadow: boxShadow }, children: [(Icon || titulo) && (_jsxs(DivTitulo, { children: [Icon && _jsx(Icon, {}), titulo && titulo()] })), _jsxs(FormContainer, { children: [googleButton && googleButton(), _jsx(Divider, { sx: { borderColor: color_separador }, children: "ou" }), _jsxs(DivCampos, { 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(DivPassword, { children: _jsx(TextFieldPassword, { id: "password", label: "Senha", placeholder: "Senha", required: true, background: backgroundField, color: colorField, borderRadius: borderRadiusField, borderColor: borderColorField, boxShadow: boxShadowField, padding: paddingField, value: password, onPasswordChange: (p) => setPassword(p) }) }), _jsx(DivPassword, { children: _jsx(TextFieldPassword, { id: "passwordconfirmada", label: "Confirmar Senha", placeholder: "Confirmar Senha", required: true, background: backgroundField, color: colorField, borderRadius: borderRadiusField, borderColor: borderColorField, boxShadow: boxShadowField, padding: paddingField, value: confirmPassword, onPasswordChange: (p) => setConfirmPassword(p) }) })] }), _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 ? ('Enviando...') : (_jsx(Typography, { variant: variantButton, component: "span", children: textButton })) }), _jsx(DivLink, { text_color: color, align: "center", children: _jsx(LinkFormStyled, { href: urlLogin, width: "auto", height: "100%", text_color: color_link, margin: "0", children: "Entrar" }) })] }), mensagemApi && (_jsx(Typography, { variant: "body2", sx: { color: corMensagemApi }, children: mensagemApi })), children] }));
|
|
209
|
+
};
|
|
210
|
+
export default FormSignUp;
|
|
211
|
+
//# sourceMappingURL=FormSignUp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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E,SAAS,EAAC,MAAM,YACjD,UAAU,GACA,CACd,GACgB,EAEnB,KAAC,OAAO,IAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAC,QAAQ,YACxC,KAAC,cAAc,IAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAC,GAAG,uBAE5E,GACT,IACI,EAGf,WAAW,IAAI,CACd,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,YACtD,WAAW,GACD,CACd,EAEA,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as LoginForm } from './components/login/LoginForm';
|
|
2
|
-
export { default as SignUpForm } from './components/login/SignUpForm';
|
|
3
1
|
export { default as GoogleButton } from './components/login/GoogleButton';
|
|
4
|
-
export { default as
|
|
2
|
+
export { default as FormLogin } from './components/login/FormLogin';
|
|
3
|
+
export { default as FormSignUp } from './components/login/FormSignUp';
|
|
4
|
+
export { default as FormPasswordRecovery } from './components/login/FormPasswordRecovery';
|
|
5
5
|
export { default as RecaptchaForm } from './components/recaptcha/RecaptchaForm';
|
|
6
6
|
export { default as NotificationSnackbar } from './components/NotificationSnackbar';
|
|
7
7
|
export { default as TextFieldValidate } from './components/TextFieldValidate';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as LoginForm } from './components/login/LoginForm';
|
|
2
|
-
export { default as SignUpForm } from './components/login/SignUpForm';
|
|
3
1
|
export { default as GoogleButton } from './components/login/GoogleButton';
|
|
4
|
-
export { default as
|
|
2
|
+
export { default as FormLogin } from './components/login/FormLogin';
|
|
3
|
+
export { default as FormSignUp } from './components/login/FormSignUp';
|
|
4
|
+
export { default as FormPasswordRecovery } from './components/login/FormPasswordRecovery';
|
|
5
5
|
export { default as RecaptchaForm } from './components/recaptcha/RecaptchaForm';
|
|
6
6
|
export { default as NotificationSnackbar } from './components/NotificationSnackbar';
|
|
7
7
|
export { default as TextFieldValidate } from './components/TextFieldValidate';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAEzF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAC,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAO9E,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { ThemeOptions } from '@mui/material/styles';
|
|
2
|
+
export declare const formThemeOptions: ThemeOptions;
|
package/dist/theme.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { createTheme } from '@mui/material/styles';
|
|
2
1
|
// Definindo o tema personalizado
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
borderColor: "#ccc",
|
|
18
|
-
padding: "4px 8px",
|
|
19
|
-
}
|
|
20
|
-
}
|
|
2
|
+
const forms = {
|
|
3
|
+
notification: {
|
|
4
|
+
background: '#fff',
|
|
5
|
+
},
|
|
6
|
+
field: {
|
|
7
|
+
background: '#fff',
|
|
8
|
+
backgroundDisabled: "#9CA3AF",
|
|
9
|
+
color: "#000",
|
|
10
|
+
colorFocused: "#000",
|
|
11
|
+
colorDisabled: "#9CA3AF",
|
|
12
|
+
borderRadius: "0",
|
|
13
|
+
boxShadow: "none",
|
|
14
|
+
borderColor: "#ccc",
|
|
15
|
+
padding: "4px 8px",
|
|
21
16
|
}
|
|
22
|
-
}
|
|
23
|
-
export
|
|
17
|
+
};
|
|
18
|
+
export const formThemeOptions = {
|
|
19
|
+
pipelinesolucoes: {
|
|
20
|
+
forms,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
24
23
|
//# sourceMappingURL=theme.js.map
|
package/dist/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAGA,iCAAiC;AACjC,MAAM,KAAK,GAA+B;IACtC,YAAY,EAAE;QACZ,UAAU,EAAE,MAAM;KACnB;IAED,KAAK,EAAE;QACH,UAAU,EAAE,MAAM;QAClB,kBAAkB,EAAE,SAAS;QAC7B,KAAK,EAAE,MAAM;QACb,YAAY,EAAE,MAAM;QACpB,aAAa,EAAE,SAAS;QACxB,YAAY,EAAE,GAAG;QACjB,SAAS,EAAE,MAAM;QACjB,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,SAAS;KACrB;CACJ,CAAC;AAGF,MAAM,CAAC,MAAM,gBAAgB,GAAiB;IAC5C,gBAAgB,EAAE;QAChB,KAAK;KACN;CACF,CAAC"}
|