@pipelinesolucoes/form 1.0.0-beta.5 → 1.0.0-beta.7
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 +13 -16
- package/dist/components/TextFieldPassword.d.ts +115 -0
- package/dist/components/TextFieldPassword.js +177 -0
- package/dist/components/TextFieldPassword.js.map +1 -0
- package/dist/components/login/LoginForm.d.ts +144 -12
- package/dist/components/login/LoginForm.js +137 -64
- package/dist/components/login/LoginForm.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/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -3
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
|
-
import { Box, Divider,
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
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';
|
|
9
11
|
const FormContainer = styled('div')(() => ({
|
|
10
12
|
display: 'flex',
|
|
11
13
|
flexDirection: 'column',
|
|
@@ -30,11 +32,11 @@ const DivTitulo = styled('div')(() => ({
|
|
|
30
32
|
margin: '0',
|
|
31
33
|
padding: '0',
|
|
32
34
|
alignItems: 'center',
|
|
33
|
-
justifyContent: 'center'
|
|
35
|
+
justifyContent: 'center',
|
|
34
36
|
}));
|
|
35
|
-
const DivLink = styled(
|
|
37
|
+
const DivLink = styled('div', {
|
|
36
38
|
shouldForwardProp: (prop) => !['text_color', 'align'].includes(prop),
|
|
37
|
-
})(({
|
|
39
|
+
})(({ text_color, align }) => ({
|
|
38
40
|
display: 'flex',
|
|
39
41
|
flexDirection: 'row',
|
|
40
42
|
alignItems: 'center',
|
|
@@ -44,28 +46,113 @@ const DivLink = styled("div", {
|
|
|
44
46
|
flex: '1',
|
|
45
47
|
color: text_color,
|
|
46
48
|
}));
|
|
47
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Componente de formulário de login com suporte a autenticação via Google e login por email/senha.
|
|
51
|
+
* Inclui validação básica de email, exibição de mensagens de erro/sucesso retornadas pelo handler `onClick`
|
|
52
|
+
* e customização visual via props (container, campos, botão e links).
|
|
53
|
+
*
|
|
54
|
+
* @param {string} urlRecuperarConta URL para a página de recuperação de conta/senha. Obrigatório.
|
|
55
|
+
* @param {string} urlCriarConta URL para a página de criação de conta. Obrigatório.
|
|
56
|
+
* @param {React.ElementType<SvgIconProps>} [Icon] Ícone opcional (MUI SvgIcon) exibido no topo do formulário.
|
|
57
|
+
* @param {() => React.ReactElement} [titulo] Função que retorna o conteúdo do título exibido no topo do formulário.
|
|
58
|
+
* @param {() => React.ReactElement} googleButton Função que retorna o botão de login com Google. Obrigatório.
|
|
59
|
+
*
|
|
60
|
+
* @param {string} color Cor usada em alguns textos/containers auxiliares (ex.: wrapper dos links). Obrigatório.
|
|
61
|
+
* @param {string} [background='transparent'] Cor de fundo do container principal.
|
|
62
|
+
* @param {string} [borderRadius='0'] Raio da borda do container principal.
|
|
63
|
+
* @param {string} [border='none'] Borda do container principal.
|
|
64
|
+
* @param {string} [boxShadow='none'] Sombra do container principal.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} [backgroundField='transparent'] Fundo dos campos (email/senha).
|
|
67
|
+
* @param {string} [colorField='#000'] Cor do texto dos campos (email/senha).
|
|
68
|
+
* @param {string} [colorFocusedField] Cor do estado focado do campo (se suportado pelos campos internos).
|
|
69
|
+
* @param {string} [borderRadiusField='0px'] Raio da borda dos campos.
|
|
70
|
+
* @param {string} [boxShadowField='none'] Sombra dos campos.
|
|
71
|
+
* @param {string} [borderColorField='#ccc'] Cor da borda dos campos.
|
|
72
|
+
* @param {string} [paddingField='4px 8px'] Espaçamento interno dos campos.
|
|
73
|
+
*
|
|
74
|
+
* @param {string} [textButton='Enviar'] Texto do botão principal.
|
|
75
|
+
* @param {TypographyVariant} [variantButton='body1'] Variante do Typography usada no texto do botão.
|
|
76
|
+
* @param {string} [backgroundButton='transparent'] Fundo do botão principal.
|
|
77
|
+
* @param {string} [backgroundHoverButton='transparent'] Fundo do botão no hover.
|
|
78
|
+
* @param {string} [colorButton='#000'] Cor do texto do botão.
|
|
79
|
+
* @param {string} [colorHoverButton='#000'] Cor do texto do botão no hover.
|
|
80
|
+
* @param {string} [borderRadiusButton='0'] Raio da borda do botão.
|
|
81
|
+
* @param {string} [borderButton='none'] Borda do botão.
|
|
82
|
+
* @param {string} [boxShadowButton='none'] Sombra do botão.
|
|
83
|
+
* @param {string} [widthButton='auto'] Largura do botão.
|
|
84
|
+
* @param {string} [heightButton='auto'] Altura do botão.
|
|
85
|
+
* @param {string} [paddingButton='4px 24px'] Padding do botão.
|
|
86
|
+
* @param {string} [marginButton='0'] Margem do botão.
|
|
87
|
+
*
|
|
88
|
+
* @param {string} color_message_sucess Cor padrão para mensagem de sucesso (caso `onClick` não retorne `color`). Obrigatório.
|
|
89
|
+
* @param {string} color_message_erro Cor padrão para mensagem de erro (caso `onClick` não retorne `color`). Obrigatório.
|
|
90
|
+
* @param {string} color_link Cor aplicada nos links "Esqueceu sua senha?" e "Criar conta". Obrigatório.
|
|
91
|
+
* @param {string} color_separador Cor da linha separadora (Divider). Obrigatório.
|
|
92
|
+
*
|
|
93
|
+
* @param {(data: { email: string; password: string }) => Promise<ClickResult> | ClickResult} [onClick]
|
|
94
|
+
* Handler chamado ao submeter o formulário. Recebe `{ email, password }` e deve retornar um `ClickResult`.
|
|
95
|
+
* - Se `success` for `true`, exibe `message` com `color_message_sucess` (ou `result.color` se fornecida)
|
|
96
|
+
* - Se `success` for `false`, exibe `message` com `color_message_erro` (ou `result.color` se fornecida)
|
|
97
|
+
* Se não for informado, o componente exibirá a mensagem: "Nenhuma ação foi configurada para o botão.".
|
|
98
|
+
*
|
|
99
|
+
* @param {React.ReactNode} [children] Conteúdo extra renderizado ao final do container (abaixo da mensagem).
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```tsx
|
|
103
|
+
* import LoginForm from '@/components/LoginForm';
|
|
104
|
+
* import LockOutlinedIcon from '@mui/icons-material/LockOutlined';
|
|
105
|
+
* import { Button } from '@mui/material';
|
|
106
|
+
*
|
|
107
|
+
* export default function Example() {
|
|
108
|
+
* return (
|
|
109
|
+
* <LoginForm
|
|
110
|
+
* urlRecuperarConta="/recuperar"
|
|
111
|
+
* urlCriarConta="/cadastro"
|
|
112
|
+
* Icon={LockOutlinedIcon}
|
|
113
|
+
* titulo={() => <h2>Entrar</h2>}
|
|
114
|
+
* googleButton={() => <Button variant="outlined">Continuar com Google</Button>}
|
|
115
|
+
* color="#111"
|
|
116
|
+
* background="#fff"
|
|
117
|
+
* borderRadius="12px"
|
|
118
|
+
* boxShadow="0 10px 30px rgba(0,0,0,0.08)"
|
|
119
|
+
* backgroundField="#fafafa"
|
|
120
|
+
* borderColorField="#e0e0e0"
|
|
121
|
+
* paddingField="10px 12px"
|
|
122
|
+
* textButton="Acessar"
|
|
123
|
+
* backgroundButton="#111"
|
|
124
|
+
* backgroundHoverButton="#000"
|
|
125
|
+
* colorButton="#fff"
|
|
126
|
+
* colorHoverButton="#fff"
|
|
127
|
+
* borderRadiusButton="10px"
|
|
128
|
+
* paddingButton="10px 16px"
|
|
129
|
+
* color_message_sucess="#1b5e20"
|
|
130
|
+
* color_message_erro="#b71c1c"
|
|
131
|
+
* color_link="#1976d2"
|
|
132
|
+
* color_separador="#e0e0e0"
|
|
133
|
+
* onClick={async ({ email, password }) => {
|
|
134
|
+
* if (email === 'teste@exemplo.com' && password === '123') {
|
|
135
|
+
* return { success: true, message: 'Login realizado com sucesso!' };
|
|
136
|
+
* }
|
|
137
|
+
* return { success: false, message: 'Email ou senha inválidos.' };
|
|
138
|
+
* }}
|
|
139
|
+
* />
|
|
140
|
+
* );
|
|
141
|
+
* }
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
const LoginForm = ({ urlRecuperarConta, urlCriarConta, 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, }) => {
|
|
48
145
|
const [mensagemApi, setMensagemApi] = useState('');
|
|
49
146
|
const [corMensagemApi, setCorMensagemApi] = useState(color_message_erro);
|
|
50
147
|
const [email, setEmail] = useState('');
|
|
51
148
|
const [password, setPassword] = useState('');
|
|
52
149
|
const [errors, setErrors] = useState({});
|
|
53
150
|
const [isLoading, setIsLoading] = useState(false);
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
switch (field) {
|
|
58
|
-
case 'email':
|
|
59
|
-
setErrors((prevErrors) => (Object.assign(Object.assign({}, prevErrors), { email: !validateEmail(email) })));
|
|
60
|
-
break;
|
|
61
|
-
default:
|
|
62
|
-
setErrors((prevErrors) => (Object.assign(Object.assign({}, prevErrors), { [field]: !password.trim() })));
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const handleSubmit = async (e) => {
|
|
151
|
+
const validateEmail = (value) => /\S+@\S+\.\S+/.test(value);
|
|
152
|
+
const handleClick = async (e) => {
|
|
153
|
+
var _a, _b, _c;
|
|
67
154
|
e.preventDefault();
|
|
68
|
-
//
|
|
155
|
+
// validação local básica (mantém o comportamento atual)
|
|
69
156
|
const newErrors = {
|
|
70
157
|
email: !validateEmail(email),
|
|
71
158
|
};
|
|
@@ -73,53 +160,39 @@ const LoginForm = ({ Icon, titulo, googleButton, color, background = 'transparen
|
|
|
73
160
|
const hasErrors = Object.values(newErrors).some(Boolean);
|
|
74
161
|
if (hasErrors) {
|
|
75
162
|
setCorMensagemApi(color_message_erro);
|
|
76
|
-
setMensagemApi(
|
|
163
|
+
setMensagemApi('Alguns dos dados fornecidos estão inválidos. Por favor, revise as informações preenchidas e corrija os campos destacados.');
|
|
77
164
|
return;
|
|
78
165
|
}
|
|
79
166
|
setIsLoading(true);
|
|
80
167
|
setMensagemApi('');
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
// }
|
|
106
|
-
// } catch (error) {
|
|
107
|
-
// setCorMensagemApi(color_message_erro);
|
|
108
|
-
// setMensagemApi(
|
|
109
|
-
// message_erro ??
|
|
110
|
-
// `Houve um problema ao enviar sua mensagem. Por favor, verifique sua conexão e tente novamente mais tarde.`
|
|
111
|
-
// );
|
|
112
|
-
// console.error('Erro na solicitação:', error);
|
|
113
|
-
// } finally {
|
|
114
|
-
// setIsLoading(false);
|
|
115
|
-
// }
|
|
168
|
+
try {
|
|
169
|
+
if (!onClick) {
|
|
170
|
+
// Se o pai não passou handler, mantém feedback amigável
|
|
171
|
+
setCorMensagemApi(color_message_erro);
|
|
172
|
+
setMensagemApi('Nenhuma ação foi configurada para o botão.');
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
const result = await onClick({ email, password });
|
|
176
|
+
if (result === null || result === void 0 ? void 0 : result.success) {
|
|
177
|
+
setCorMensagemApi((_a = result.color) !== null && _a !== void 0 ? _a : color_message_sucess);
|
|
178
|
+
setMensagemApi(result.message);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
setCorMensagemApi((_b = result.color) !== null && _b !== void 0 ? _b : color_message_erro);
|
|
182
|
+
setMensagemApi((_c = result === null || result === void 0 ? void 0 : result.message) !== null && _c !== void 0 ? _c : 'Falha ao realizar a operação.');
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
catch (err) {
|
|
186
|
+
setCorMensagemApi(color_message_erro);
|
|
187
|
+
setMensagemApi('Erro inesperado ao processar a solicitação.');
|
|
188
|
+
}
|
|
189
|
+
finally {
|
|
190
|
+
setIsLoading(false);
|
|
191
|
+
}
|
|
116
192
|
};
|
|
117
|
-
return (_jsxs(Box, { display: "flex", flexDirection:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
endAdornment: (_jsx(InputAdornment, { position: "end", children: _jsx(IconButton, { onClick: () => setShowPassword((prev) => !prev), edge: "end", children: showPassword ? _jsx(VisibilityOffIcon, {}) : _jsx(VisibilityIcon, {}) }) })),
|
|
121
|
-
},
|
|
122
|
-
} }), _jsx(DivLink, { text_color: color, align: "flex-start", children: _jsx(LinkFormStyled, { href: urlRecuperarConta, width: "auto", height: "auto", text_color: color_link, font_size: '0.8rem', children: "Esqueceu sua senha?" }) })] }), _jsx(ButtonFormStyled, { width: "100%", height: "100%", onClick: handleSubmit, background_color: background_color_button, text_color: color_button, border_radius: border_radius_button, disabled: isLoading, margin: '16px 0 0 0', children: isLoading ? 'Enviando...' : text_button }), mensagemApi && (_jsx(Typography, { variant: "body1", component: "span", color: corMensagemApi, children: mensagemApi })), _jsx(DivLink, { text_color: color, align: "center", children: _jsx(LinkFormStyled, { href: urlCriarConta, width: "auto", height: "100%", text_color: color_link, margin: '0', children: "Criar conta" }) })] }), children] }));
|
|
193
|
+
return (_jsxs(Box, { display: "flex", flexDirection: "column", justifyContent: "center", gap: "24px", flex: 1, sx: { padding: '24px', borderRadius: borderRadius,
|
|
194
|
+
background: background, border: border,
|
|
195
|
+
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" }), _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" }), _jsxs(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(DivLink, { text_color: color, align: "flex-start", children: _jsx(LinkFormStyled, { href: urlRecuperarConta, width: "auto", height: "auto", text_color: color_link, font_size: "0.8rem", children: "Esqueceu sua senha?" }) })] }), _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: urlCriarConta, width: "auto", height: "100%", text_color: color_link, margin: "0", children: "Criar conta" }) })] }), mensagemApi && (_jsx(Typography, { variant: "body2", sx: { color: corMensagemApi }, children: mensagemApi })), children] }));
|
|
123
196
|
};
|
|
124
197
|
export default LoginForm;
|
|
125
198
|
//# sourceMappingURL=LoginForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.js","sourceRoot":"","sources":["../../../src/components/login/LoginForm.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LoginForm.js","sourceRoot":"","sources":["../../../src/components/login/LoginForm.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,EAAE,OAAO,EAAgB,UAAU,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AAIrD,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,KAAK;CACf,CAAC,CAAC,CAAC;AAEJ,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,KAAK;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AO,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,YACtD,WAAW,GACD,CACd,EAEA,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { default as PasswordRecoveryForm } from './components/login/PasswordReco
|
|
|
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';
|
|
8
|
+
export { default as TextFieldPassword } from './components/TextFieldPassword';
|
|
8
9
|
export type { BorderProps } from "./types/BorderProps";
|
|
9
10
|
export type { ColorProps } from "./types/ColorProps";
|
|
10
11
|
export type { LayoutProps } from "./types/LayoutProps";
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { default as PasswordRecoveryForm } from './components/login/PasswordReco
|
|
|
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';
|
|
8
|
+
export { default as TextFieldPassword } from './components/TextFieldPassword';
|
|
8
9
|
export * from './utils/validateTelefone';
|
|
9
10
|
export * from './utils/validateEmail';
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
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,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC1E,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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC1E,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;AAQ9E,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}
|