@s_mart/telas-de-acesso 11.0.7 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/templateTelaBase.d.ts +2 -0
- package/dist/components/templateTelaBase.styles.d.ts +5 -0
- package/dist/components/templateTelaBase.types.d.ts +35 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.mjs +595 -95
- package/dist/index.mjs.map +1 -0
- package/dist/screens/telaCadastro/telaCadastro.d.ts +2 -0
- package/dist/screens/telaCadastro/telaCadastro.styles.d.ts +8 -0
- package/dist/screens/telaCadastro/telaCadastro.types.d.ts +43 -0
- package/dist/screens/telaCadastro/telaCadastroRules.d.ts +9 -0
- package/dist/screens/telaCadastro/telaCadastroSlots.d.ts +6 -0
- package/dist/screens/telaCadastro/useTelaCadastro.d.ts +8 -0
- package/dist/screens/telaConviteExpirado/telaConviteExpirado.d.ts +2 -0
- package/dist/screens/telaConviteExpirado/telaConviteExpirado.styles.d.ts +2 -0
- package/dist/screens/telaConviteExpirado/telaConviteExpirado.types.d.ts +16 -0
- package/dist/screens/telaEsqueceuSenha/telaEsqueceuSenha.d.ts +2 -0
- package/dist/screens/telaEsqueceuSenha/telaEsqueceuSenha.styles.d.ts +3 -0
- package/dist/screens/telaEsqueceuSenha/telaEsqueceuSenha.types.d.ts +20 -0
- package/dist/screens/telaInstrucoesEnviadas/telaInstrucoesEnviadas.d.ts +2 -0
- package/dist/screens/telaInstrucoesEnviadas/telaInstrucoesEnviadas.styles.d.ts +2 -0
- package/dist/screens/telaInstrucoesEnviadas/telaInstrucoesEnviadas.types.d.ts +12 -0
- package/dist/screens/telaLogin/telaLogin.d.ts +2 -0
- package/dist/screens/telaLogin/telaLogin.styles.d.ts +3 -0
- package/dist/screens/telaLogin/telaLogin.types.d.ts +39 -0
- package/dist/screens/telaNovaSenha/telaNovaSenha.d.ts +2 -0
- package/dist/screens/telaNovaSenha/telaNovaSenha.helpers.d.ts +3 -0
- package/dist/screens/telaNovaSenha/telaNovaSenha.styles.d.ts +8 -0
- package/dist/screens/telaNovaSenha/telaNovaSenha.types.d.ts +20 -0
- package/package.json +39 -47
- package/dist/index.d.mts +0 -203
package/dist/index.d.mts
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ImgHTMLAttributes, ReactNode } from 'react';
|
|
4
|
-
import { TextFieldProps } from '@s_mart/form';
|
|
5
|
-
import { UseFormReturn, FieldValues } from 'react-hook-form';
|
|
6
|
-
|
|
7
|
-
interface TemplateTelaBaseProps {
|
|
8
|
-
/**
|
|
9
|
-
* @description
|
|
10
|
-
* Conteúdo que será exibido no paper do template
|
|
11
|
-
*/
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* @description
|
|
15
|
-
* Título que será exibido na parte superior esquerda do template
|
|
16
|
-
*
|
|
17
|
-
* Se você passar uma tag <span> dentro do título, ela será estilizada automaticamente para ficar com um fundo preto e bordas arredondadas
|
|
18
|
-
*/
|
|
19
|
-
textoChamativo?: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* @description
|
|
22
|
-
* Número do whatsapp que será exibido a baixo do paper
|
|
23
|
-
*/
|
|
24
|
-
whatsapp?: string;
|
|
25
|
-
/**
|
|
26
|
-
* @description
|
|
27
|
-
* Estilização para o componente inteiro caso seja necessário
|
|
28
|
-
*/
|
|
29
|
-
style?: React.CSSProperties;
|
|
30
|
-
/**
|
|
31
|
-
* @description
|
|
32
|
-
* Estilização para o paper do template caso seja necessário
|
|
33
|
-
*/
|
|
34
|
-
paperStyle?: React.CSSProperties;
|
|
35
|
-
/**
|
|
36
|
-
* @description
|
|
37
|
-
* Ilustração que será exibida a esquerda do template
|
|
38
|
-
* @default undefined
|
|
39
|
-
*/
|
|
40
|
-
ilustracao?: React.ImgHTMLAttributes<HTMLImageElement>['src'] | React.ReactNode;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
declare function TemplateTelaBase({ children, whatsapp, textoChamativo, style, paperStyle, ilustracao, }: TemplateTelaBaseProps): react_jsx_runtime.JSX.Element;
|
|
44
|
-
|
|
45
|
-
interface TelaCadastroProps extends Omit<TemplateTelaBaseProps, 'children'> {
|
|
46
|
-
/**
|
|
47
|
-
* Valores iniciais do formulário
|
|
48
|
-
*/
|
|
49
|
-
defaultValues: Pick<FormTelaCadastroValues, 'nome' | 'email'>;
|
|
50
|
-
/**
|
|
51
|
-
* Nome do sistema que irá ser exibido em uma frase no topo do paper de cadastro
|
|
52
|
-
*/
|
|
53
|
-
nomeSistema: string;
|
|
54
|
-
/**
|
|
55
|
-
* Logo do sistema que será exibido do topo do paper de cadastro
|
|
56
|
-
* @default undefined
|
|
57
|
-
*/
|
|
58
|
-
logo?: React.ReactNode;
|
|
59
|
-
/**
|
|
60
|
-
* Função que será executada quando o formulário for submetido
|
|
61
|
-
*/
|
|
62
|
-
onSubmit: (data: FormTelaCadastroSubmitValues) => void;
|
|
63
|
-
/**
|
|
64
|
-
* Link dos termos de uso do sistema - será exibido no checkbox de aceite dos termos de uso
|
|
65
|
-
* @default undefined
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* <TelaCadastro linkTermosDeUso="https://www.google.com" />
|
|
69
|
-
*/
|
|
70
|
-
linkTermosDeUso?: string;
|
|
71
|
-
slots?: TelaCadastroSlots;
|
|
72
|
-
}
|
|
73
|
-
type TelaCadastroSlots = {
|
|
74
|
-
textFieldEmail?: (props: TextFieldProps) => React.ReactNode;
|
|
75
|
-
textFieldNome?: (props: TextFieldProps) => React.ReactNode;
|
|
76
|
-
textFieldSenha?: (props: TextFieldProps) => React.ReactNode;
|
|
77
|
-
};
|
|
78
|
-
type FormTelaCadastroValues = {
|
|
79
|
-
nome?: string;
|
|
80
|
-
email: string;
|
|
81
|
-
termosDeUso: boolean;
|
|
82
|
-
senha: string;
|
|
83
|
-
confirmarSenha: string;
|
|
84
|
-
};
|
|
85
|
-
type FormTelaCadastroSubmitValues = FormTelaCadastroValues;
|
|
86
|
-
|
|
87
|
-
declare const TelaCadastro: react.MemoExoticComponent<(props: TelaCadastroProps) => react_jsx_runtime.JSX.Element>;
|
|
88
|
-
|
|
89
|
-
interface TelaLoginFormValues {
|
|
90
|
-
email: string;
|
|
91
|
-
senha: string;
|
|
92
|
-
manterConectado: boolean;
|
|
93
|
-
}
|
|
94
|
-
interface TelaLoginProps extends Omit<TemplateTelaBaseProps, 'children'> {
|
|
95
|
-
/**
|
|
96
|
-
* Texto que vai abaixo do campo de senha (quando passado), usado para indicar erros
|
|
97
|
-
* @default undefined
|
|
98
|
-
*/
|
|
99
|
-
errorLabel?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Valores iniciais do formulário de cadastro
|
|
102
|
-
* @default undefined
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* <TelaLogin initialValues={{ email: 'raniellimontagna@hotmail.com' }} />
|
|
106
|
-
*/
|
|
107
|
-
initialValues?: Partial<TelaLoginFormValues>;
|
|
108
|
-
/**
|
|
109
|
-
* Logo do sistema que será exibido do topo do paper de cadastro
|
|
110
|
-
* @default undefined
|
|
111
|
-
*/
|
|
112
|
-
logo?: React.ImgHTMLAttributes<HTMLImageElement>['src'] | React.ReactNode;
|
|
113
|
-
/**
|
|
114
|
-
* Função que será executada quando o formulário for submetido
|
|
115
|
-
*/
|
|
116
|
-
onSubmit: (data: any, methods: UseFormReturn<FieldValues, any>) => void;
|
|
117
|
-
/**
|
|
118
|
-
* Função que será executada quando o usuário clicar no botão de esqueci minha senha
|
|
119
|
-
* @default undefined
|
|
120
|
-
*
|
|
121
|
-
* @example
|
|
122
|
-
* <TelaLogin onEsqueciMinhaSenha={() => alert('Esqueci minha senha')} />
|
|
123
|
-
*/
|
|
124
|
-
onEsqueciMinhaSenha?: () => void;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
declare function TelaLogin({ logo, initialValues, onSubmit, onEsqueciMinhaSenha, errorLabel, ...rest }: TelaLoginProps): react_jsx_runtime.JSX.Element;
|
|
128
|
-
|
|
129
|
-
interface TelaConviteExpiradoProps extends Omit<TemplateTelaBaseProps, 'children' | 'whatsapp'> {
|
|
130
|
-
/**
|
|
131
|
-
* Logo do sistema que será exibido do topo do paper de cadastro
|
|
132
|
-
* @default undefined
|
|
133
|
-
*/
|
|
134
|
-
logo?: React.ImgHTMLAttributes<HTMLImageElement>['src'] | React.ReactNode;
|
|
135
|
-
/**
|
|
136
|
-
* Função que será executado quando o usuário clicar no botão de realizar acesso
|
|
137
|
-
*/
|
|
138
|
-
onRealizarAcesso: () => void;
|
|
139
|
-
/**
|
|
140
|
-
* Função que será executada quando o usuário clicar no botão de preciso de ajuda
|
|
141
|
-
*/
|
|
142
|
-
onPrecisoDeAjuda: () => void;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
declare function TelaConviteExpirado({ logo, onPrecisoDeAjuda, onRealizarAcesso, ...rest }: TelaConviteExpiradoProps): react_jsx_runtime.JSX.Element;
|
|
146
|
-
|
|
147
|
-
interface TelaInstrucoesEnviadasProps extends Omit<TemplateTelaBaseProps, 'children'> {
|
|
148
|
-
/**
|
|
149
|
-
* Logo do sistema que será exibido do topo do paper de cadastro
|
|
150
|
-
* @default undefined
|
|
151
|
-
*/
|
|
152
|
-
logo?: React.ImgHTMLAttributes<HTMLImageElement>['src'] | React.ReactNode;
|
|
153
|
-
/**
|
|
154
|
-
* Função que será executada quando o usuário clicar no botão de voltar para o login
|
|
155
|
-
*/
|
|
156
|
-
onVoltarParaLogin: () => void;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
declare function TelaInstrucoesEnviadas({ logo, onVoltarParaLogin, ...rest }: TelaInstrucoesEnviadasProps): react_jsx_runtime.JSX.Element;
|
|
160
|
-
|
|
161
|
-
interface TelaNovaSenhaFormValues {
|
|
162
|
-
senha: string;
|
|
163
|
-
confirmarSenha: string;
|
|
164
|
-
termosDeUso: boolean;
|
|
165
|
-
}
|
|
166
|
-
interface TelaNovaSenhaFormValuesSubmit extends TelaNovaSenhaFormValues {
|
|
167
|
-
}
|
|
168
|
-
interface TelaNovaSenhaProps extends Omit<TemplateTelaBaseProps, 'children'> {
|
|
169
|
-
/**
|
|
170
|
-
* Logo do sistema que será exibido do topo do paper de cadastro
|
|
171
|
-
* @default undefined
|
|
172
|
-
*/
|
|
173
|
-
logo?: ImgHTMLAttributes<HTMLImageElement>['src'] | ReactNode;
|
|
174
|
-
/**
|
|
175
|
-
* Função que será executado ao clicar no botão trocar minha senha
|
|
176
|
-
*/
|
|
177
|
-
onTrocarMinhaSenha: (data: TelaNovaSenhaFormValuesSubmit) => void;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
declare function TelaNovaSenha({ logo, onTrocarMinhaSenha, ...rest }: TelaNovaSenhaProps): react_jsx_runtime.JSX.Element;
|
|
181
|
-
|
|
182
|
-
interface EsqueceuSenhaFormValues {
|
|
183
|
-
email: string;
|
|
184
|
-
}
|
|
185
|
-
interface TelaEsqueceuSenhaProps extends Omit<TemplateTelaBaseProps, 'children'> {
|
|
186
|
-
/**
|
|
187
|
-
* Logo do sistema que será exibido do topo do paper de cadastro
|
|
188
|
-
* @default undefined
|
|
189
|
-
*/
|
|
190
|
-
logo?: React.ImgHTMLAttributes<HTMLImageElement>['src'] | React.ReactNode;
|
|
191
|
-
/**
|
|
192
|
-
* Função que será executada quando o usuário clicar no botão de confirmar
|
|
193
|
-
**/
|
|
194
|
-
onConfirmar: (values: EsqueceuSenhaFormValues) => void;
|
|
195
|
-
/**
|
|
196
|
-
* Função que será executada quando o usuário clicar no botão de voltar para o login
|
|
197
|
-
*/
|
|
198
|
-
onVoltarParaLogin: () => void;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
declare function TelaEsqueceuSenha({ logo, onVoltarParaLogin, onConfirmar, ...rest }: TelaEsqueceuSenhaProps): react_jsx_runtime.JSX.Element;
|
|
202
|
-
|
|
203
|
-
export { type FormTelaCadastroSubmitValues, type FormTelaCadastroValues, TelaCadastro, type TelaCadastroProps, type TelaCadastroSlots, TelaConviteExpirado, type TelaConviteExpiradoProps, TelaEsqueceuSenha, type TelaEsqueceuSenhaProps, TelaInstrucoesEnviadas, type TelaInstrucoesEnviadasProps, TelaLogin, type TelaLoginProps, TelaNovaSenha, type TelaNovaSenhaFormValuesSubmit, type TelaNovaSenhaProps, TemplateTelaBase, type TemplateTelaBaseProps };
|