@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.mjs
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { Indicator as e, LIcon as t } from "@s_mart/core";
|
|
2
|
+
import { telefone as n } from "@s_mart/masks";
|
|
3
|
+
import { lineCheck as r, lineWhatsApp as i } from "@s_mart/regular-icons";
|
|
4
|
+
import { Button as a, Link as o, Typography as s, styled as c, useMediaQuery as l } from "@mui/material";
|
|
5
|
+
import { colorPalette as u } from "@s_mart/tokens";
|
|
6
|
+
import { toRem as d } from "@s_mart/utils";
|
|
7
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
import { memo as m, useMemo as h } from "react";
|
|
9
|
+
import { Checkbox as g, Form as _, TextField as v } from "@s_mart/form";
|
|
10
|
+
import { composeValidators as y, email as b, required as x } from "@s_mart/rules";
|
|
11
|
+
import { FormProvider as S, useForm as C, useWatch as w } from "react-hook-form";
|
|
12
|
+
import { useCapsLock as T } from "@s_mart/hooks";
|
|
13
|
+
//#region src/components/templateTelaBase.styles.ts
|
|
14
|
+
var ee = c("div")`
|
|
2
15
|
display: flex;
|
|
3
16
|
flex-direction: column;
|
|
4
17
|
align-items: center;
|
|
@@ -8,17 +21,17 @@ import{LIcon as Ke}from"@s_mart/core";import{Typography as Ye}from"@mui/material
|
|
|
8
21
|
|
|
9
22
|
height: 100vh;
|
|
10
23
|
|
|
11
|
-
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
24
|
+
background-color: ${({ theme: e }) => e.palette.primary.main};
|
|
12
25
|
transition: background-color 0.3s ease-in-out;
|
|
13
26
|
|
|
14
27
|
@media (max-width: 500px) {
|
|
15
|
-
background-color: ${({theme:e})=>e.palette.common.white};
|
|
28
|
+
background-color: ${({ theme: e }) => e.palette.common.white};
|
|
16
29
|
}
|
|
17
30
|
|
|
18
31
|
@media (max-height: 600px) {
|
|
19
32
|
justify-content: flex-start;
|
|
20
33
|
}
|
|
21
|
-
`,
|
|
34
|
+
`, E = c("div")`
|
|
22
35
|
position: absolute;
|
|
23
36
|
left: 0;
|
|
24
37
|
bottom: 32px;
|
|
@@ -27,26 +40,26 @@ import{LIcon as Ke}from"@s_mart/core";import{Typography as Ye}from"@mui/material
|
|
|
27
40
|
@media (max-width: 768px) {
|
|
28
41
|
display: none;
|
|
29
42
|
}
|
|
30
|
-
`,
|
|
43
|
+
`, D = c("h1")`
|
|
31
44
|
position: absolute;
|
|
32
45
|
left: 32px;
|
|
33
46
|
top: 32px;
|
|
34
47
|
|
|
35
|
-
color: ${({theme:e})=>e.palette.common.white};
|
|
36
|
-
font-size: ${
|
|
48
|
+
color: ${({ theme: e }) => e.palette.common.white};
|
|
49
|
+
font-size: ${d(32)};
|
|
37
50
|
line-height: 150%;
|
|
38
51
|
font-weight: normal;
|
|
39
52
|
|
|
40
53
|
@media (max-width: 768px) {
|
|
41
54
|
left: 16px;
|
|
42
55
|
top: 16px;
|
|
43
|
-
font-size: ${
|
|
56
|
+
font-size: ${d(24)};
|
|
44
57
|
}
|
|
45
58
|
|
|
46
59
|
@media (max-height: 830px) {
|
|
47
60
|
left: 16px;
|
|
48
61
|
top: 16px;
|
|
49
|
-
font-size: ${
|
|
62
|
+
font-size: ${d(24)};
|
|
50
63
|
|
|
51
64
|
@media (max-width: 768px) {
|
|
52
65
|
display: none;
|
|
@@ -59,207 +72,694 @@ import{LIcon as Ke}from"@s_mart/core";import{Typography as Ye}from"@mui/material
|
|
|
59
72
|
|
|
60
73
|
span {
|
|
61
74
|
background-color: #262626;
|
|
62
|
-
padding: ${
|
|
63
|
-
border-radius: ${
|
|
75
|
+
padding: ${d(4)} ${d(8)};
|
|
76
|
+
border-radius: ${d(12)};
|
|
64
77
|
}
|
|
65
78
|
|
|
66
79
|
@media (max-width: 500px) {
|
|
67
80
|
display: none;
|
|
68
81
|
}
|
|
69
|
-
`,
|
|
82
|
+
`, O = c("div")`
|
|
70
83
|
position: relative;
|
|
71
84
|
z-index: 2;
|
|
72
85
|
|
|
73
|
-
padding: ${
|
|
74
|
-
border-radius: ${
|
|
75
|
-
margin: ${
|
|
86
|
+
padding: ${d(32)};
|
|
87
|
+
border-radius: ${d(24)};
|
|
88
|
+
margin: ${d(16)};
|
|
76
89
|
|
|
77
|
-
background-color: ${({theme:e})=>e.palette.common.white};
|
|
78
|
-
`,
|
|
90
|
+
background-color: ${({ theme: e }) => e.palette.common.white};
|
|
91
|
+
`, k = c("button")`
|
|
79
92
|
position: relative;
|
|
80
93
|
z-index: 2;
|
|
81
94
|
|
|
82
|
-
background-color: ${({theme:e})=>e.palette.primary.main};
|
|
83
|
-
padding: ${
|
|
95
|
+
background-color: ${({ theme: e }) => e.palette.primary.main};
|
|
96
|
+
padding: ${d(4)} ${d(8)};
|
|
84
97
|
border: none;
|
|
85
|
-
border-radius: ${
|
|
98
|
+
border-radius: ${d(8)};
|
|
86
99
|
cursor: pointer;
|
|
87
100
|
|
|
88
101
|
display: flex;
|
|
89
102
|
align-items: center;
|
|
90
|
-
gap: ${
|
|
103
|
+
gap: ${d(4)};
|
|
91
104
|
|
|
92
|
-
color: ${({theme:e})=>e.palette.common.white};
|
|
105
|
+
color: ${({ theme: e }) => e.palette.common.white};
|
|
93
106
|
|
|
94
107
|
@media (max-width: 500px) {
|
|
95
|
-
color: ${({theme:e})=>e.palette.common.black};
|
|
108
|
+
color: ${({ theme: e }) => e.palette.common.black};
|
|
96
109
|
background-color: transparent;
|
|
97
110
|
|
|
98
111
|
svg {
|
|
99
|
-
color: ${
|
|
112
|
+
color: ${u.green[300]};
|
|
100
113
|
}
|
|
101
114
|
}
|
|
102
|
-
`;
|
|
115
|
+
`;
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/components/templateTelaBase.tsx
|
|
118
|
+
function A({ children: e, whatsapp: r, textoChamativo: a, style: o, paperStyle: c, ilustracao: l }) {
|
|
119
|
+
return /* @__PURE__ */ p(ee, {
|
|
120
|
+
style: o,
|
|
121
|
+
children: [
|
|
122
|
+
a && /* @__PURE__ */ f(D, { children: a }),
|
|
123
|
+
l && /* @__PURE__ */ f(E, { children: typeof l == "string" ? /* @__PURE__ */ f("img", {
|
|
124
|
+
src: l,
|
|
125
|
+
alt: "Logo do sistema"
|
|
126
|
+
}) : l }),
|
|
127
|
+
/* @__PURE__ */ f(O, {
|
|
128
|
+
style: c,
|
|
129
|
+
children: e
|
|
130
|
+
}),
|
|
131
|
+
r && /* @__PURE__ */ p(k, {
|
|
132
|
+
onClick: () => {
|
|
133
|
+
window.open(`https://api.whatsapp.com/send?phone=${r}`);
|
|
134
|
+
},
|
|
135
|
+
style: { marginBottom: 16 },
|
|
136
|
+
children: [/* @__PURE__ */ p(s, {
|
|
137
|
+
variant: "bodyXS",
|
|
138
|
+
children: ["Com dúvidas? ", n.format(r.slice(2))]
|
|
139
|
+
}), /* @__PURE__ */ f(t, {
|
|
140
|
+
icon: i,
|
|
141
|
+
size: "20px",
|
|
142
|
+
removeMargin: !0
|
|
143
|
+
})]
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/screens/telaCadastro/telaCadastro.styles.ts
|
|
150
|
+
var j = c("div")`
|
|
103
151
|
display: grid;
|
|
104
|
-
gap: ${
|
|
105
|
-
`,
|
|
152
|
+
gap: ${d(32)};
|
|
153
|
+
`, M = c("header")`
|
|
106
154
|
display: grid;
|
|
107
155
|
text-align: center;
|
|
108
|
-
gap: ${
|
|
109
|
-
`,
|
|
156
|
+
gap: ${d(16)};
|
|
157
|
+
`, N = c("div")`
|
|
110
158
|
display: grid;
|
|
111
|
-
gap: ${
|
|
112
|
-
`,
|
|
159
|
+
gap: ${d(32)};
|
|
160
|
+
`, P = c("div")`
|
|
113
161
|
display: grid;
|
|
114
|
-
gap: ${
|
|
162
|
+
gap: ${d(4)};
|
|
115
163
|
|
|
116
164
|
> div:first-of-type {
|
|
117
165
|
display: grid;
|
|
118
166
|
grid-template-columns: 1fr 1fr;
|
|
119
|
-
gap: ${
|
|
167
|
+
gap: ${d(16)};
|
|
120
168
|
|
|
121
169
|
@media (max-width: 768px) {
|
|
122
170
|
grid-template-columns: 1fr;
|
|
123
|
-
gap: ${
|
|
171
|
+
gap: ${d(8)};
|
|
124
172
|
}
|
|
125
173
|
}
|
|
126
174
|
|
|
127
175
|
> div:last-of-type {
|
|
128
176
|
display: grid;
|
|
129
|
-
gap: ${
|
|
177
|
+
gap: ${d(4)};
|
|
130
178
|
}
|
|
131
|
-
`,
|
|
179
|
+
`, F = c("div")`
|
|
132
180
|
display: flex;
|
|
133
181
|
flex-wrap: wrap;
|
|
134
|
-
gap: ${
|
|
135
|
-
`,
|
|
182
|
+
gap: ${d(8)};
|
|
183
|
+
`, I = c("div")`
|
|
136
184
|
display: flex;
|
|
137
185
|
align-items: center;
|
|
138
|
-
gap: ${
|
|
186
|
+
gap: ${d(4)};
|
|
139
187
|
|
|
140
|
-
color: ${
|
|
141
|
-
border: 1px solid ${
|
|
142
|
-
border-radius: ${
|
|
143
|
-
padding: ${
|
|
188
|
+
color: ${u.neutral[600]};
|
|
189
|
+
border: 1px solid ${u.neutral[600]};
|
|
190
|
+
border-radius: ${d(4)};
|
|
191
|
+
padding: ${d(3)} ${d(4)};
|
|
144
192
|
|
|
145
193
|
line-height: 1em;
|
|
146
194
|
vertical-align: middle;
|
|
147
195
|
|
|
148
196
|
&[data-checked='true'] {
|
|
149
|
-
color: ${
|
|
150
|
-
border-color: ${
|
|
197
|
+
color: ${u.green[300]};
|
|
198
|
+
border-color: ${u.green[300]};
|
|
151
199
|
}
|
|
152
|
-
|
|
200
|
+
`, L = (e) => e ? e.match(/[a-z]/i) : !1, R = (e) => e ? e.match(/[0-9]/i) : !1, z = (e) => e ? e.length >= 6 : !1, B = { validate: (e) => {
|
|
201
|
+
if (!e) return "Obrigatório";
|
|
202
|
+
if (!L(e)) return "Deve ter pelo menos uma letra";
|
|
203
|
+
if (!R(e)) return "Deve ter pelo menos um número";
|
|
204
|
+
if (!z(e)) return "Deve ter pelo menos 6 caracteres";
|
|
205
|
+
} }, V = (e) => ({ validate: (t) => {
|
|
206
|
+
if (!t) return "Obrigatório";
|
|
207
|
+
if (t !== e) return "As senhas devem ser iguais";
|
|
208
|
+
} }), H = {
|
|
209
|
+
textFieldNome: (e) => /* @__PURE__ */ f(v, { ...e }),
|
|
210
|
+
textFieldEmail: (e) => /* @__PURE__ */ f(v, { ...e }),
|
|
211
|
+
textFieldSenha: (e) => /* @__PURE__ */ f(v, { ...e })
|
|
212
|
+
}, U = {
|
|
213
|
+
type: "text",
|
|
214
|
+
name: "nome",
|
|
215
|
+
label: "Nome completo",
|
|
216
|
+
required: !0,
|
|
217
|
+
rules: x
|
|
218
|
+
}, W = {
|
|
219
|
+
type: "email",
|
|
220
|
+
name: "email",
|
|
221
|
+
label: "E-mail de acesso",
|
|
222
|
+
required: !0,
|
|
223
|
+
disabled: !0
|
|
224
|
+
}, G = {
|
|
225
|
+
type: "password",
|
|
226
|
+
name: "senha",
|
|
227
|
+
label: "Senha de acesso",
|
|
228
|
+
required: !0,
|
|
229
|
+
rules: B
|
|
230
|
+
};
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/screens/telaCadastro/useTelaCadastro.tsx
|
|
233
|
+
function K({ defaultValues: e }) {
|
|
234
|
+
let t = C({
|
|
235
|
+
defaultValues: e,
|
|
236
|
+
mode: "all"
|
|
237
|
+
}), n = w({
|
|
238
|
+
control: t.control,
|
|
239
|
+
name: "senha"
|
|
240
|
+
});
|
|
241
|
+
return {
|
|
242
|
+
form: t,
|
|
243
|
+
senha: n,
|
|
244
|
+
senhaContemLetra: L(n),
|
|
245
|
+
senhaContemNumero: R(n),
|
|
246
|
+
senhaContemMinimoDe6Caracteres: z(n)
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/screens/telaCadastro/telaCadastro.tsx
|
|
251
|
+
var q = m((e) => {
|
|
252
|
+
let { form: n, senha: i, senhaContemLetra: c, senhaContemMinimoDe6Caracteres: l, senhaContemNumero: u } = K(e), d = e.logo, m = e.slots, _ = h(() => typeof d == "string" ? /* @__PURE__ */ f("img", {
|
|
253
|
+
src: d,
|
|
254
|
+
alt: "Logo do sistema"
|
|
255
|
+
}) : d, [d]), y = m?.textFieldNome ?? H.textFieldNome, b = m?.textFieldEmail ?? H.textFieldEmail, C = m?.textFieldSenha ?? H.textFieldSenha;
|
|
256
|
+
return /* @__PURE__ */ f(A, {
|
|
257
|
+
...e,
|
|
258
|
+
children: /* @__PURE__ */ p(j, { children: [/* @__PURE__ */ p(M, { children: [d && /* @__PURE__ */ f("div", { children: _ }), /* @__PURE__ */ p(s, {
|
|
259
|
+
variant: "titleSM",
|
|
260
|
+
children: [
|
|
261
|
+
"Vamos cadastrar uma senha de acesso ao ",
|
|
262
|
+
e.nomeSistema,
|
|
263
|
+
"."
|
|
264
|
+
]
|
|
265
|
+
})] }), /* @__PURE__ */ f(S, {
|
|
266
|
+
...n,
|
|
267
|
+
children: /* @__PURE__ */ f("form", {
|
|
268
|
+
onSubmit: n.handleSubmit(e.onSubmit),
|
|
269
|
+
children: /* @__PURE__ */ p(N, { children: [
|
|
270
|
+
/* @__PURE__ */ f(b, { ...W }),
|
|
271
|
+
/* @__PURE__ */ f(y, { ...U }),
|
|
272
|
+
/* @__PURE__ */ p(P, { children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(C, { ...G }), /* @__PURE__ */ f(v, {
|
|
273
|
+
type: "password",
|
|
274
|
+
name: "confirmarSenha",
|
|
275
|
+
label: "Confirme sua senha",
|
|
276
|
+
required: !0,
|
|
277
|
+
rules: V(i)
|
|
278
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(s, {
|
|
279
|
+
variant: "bodyXS",
|
|
280
|
+
children: "Sua senha precisa conter:"
|
|
281
|
+
}), /* @__PURE__ */ p(F, { children: [
|
|
282
|
+
/* @__PURE__ */ p(I, {
|
|
283
|
+
"data-checked": !!c,
|
|
284
|
+
children: [c && /* @__PURE__ */ f(t, {
|
|
285
|
+
icon: r,
|
|
286
|
+
size: "16px",
|
|
287
|
+
removeMargin: !0
|
|
288
|
+
}), /* @__PURE__ */ f(s, {
|
|
289
|
+
variant: "bodyXS",
|
|
290
|
+
children: "Uma letra"
|
|
291
|
+
})]
|
|
292
|
+
}),
|
|
293
|
+
/* @__PURE__ */ p(I, {
|
|
294
|
+
"data-checked": !!u,
|
|
295
|
+
children: [u && /* @__PURE__ */ f(t, {
|
|
296
|
+
icon: r,
|
|
297
|
+
size: "16px",
|
|
298
|
+
removeMargin: !0
|
|
299
|
+
}), /* @__PURE__ */ f(s, {
|
|
300
|
+
variant: "bodyXS",
|
|
301
|
+
children: "Um número"
|
|
302
|
+
})]
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ p(I, {
|
|
305
|
+
"data-checked": !!l,
|
|
306
|
+
children: [l && /* @__PURE__ */ f(t, {
|
|
307
|
+
icon: r,
|
|
308
|
+
size: "16px",
|
|
309
|
+
removeMargin: !0
|
|
310
|
+
}), /* @__PURE__ */ f(s, {
|
|
311
|
+
variant: "bodyXS",
|
|
312
|
+
children: "Mínimo de 6 caracteres"
|
|
313
|
+
})]
|
|
314
|
+
})
|
|
315
|
+
] })] })] }),
|
|
316
|
+
/* @__PURE__ */ f("div", { children: /* @__PURE__ */ f(g, {
|
|
317
|
+
rules: x,
|
|
318
|
+
name: "termosDeUso",
|
|
319
|
+
label: /* @__PURE__ */ p("div", {
|
|
320
|
+
style: {
|
|
321
|
+
display: "flex",
|
|
322
|
+
gap: 4
|
|
323
|
+
},
|
|
324
|
+
children: [/* @__PURE__ */ f("span", { children: "Li e aceito os" }), /* @__PURE__ */ f(o, {
|
|
325
|
+
href: e.linkTermosDeUso,
|
|
326
|
+
target: "_blank",
|
|
327
|
+
sx: (e) => ({ color: e.palette.primary.main }),
|
|
328
|
+
rel: "noreferrer",
|
|
329
|
+
children: "termos de uso"
|
|
330
|
+
})]
|
|
331
|
+
})
|
|
332
|
+
}) }),
|
|
333
|
+
/* @__PURE__ */ f("div", { children: /* @__PURE__ */ f(a, {
|
|
334
|
+
type: "submit",
|
|
335
|
+
fullWidth: !0,
|
|
336
|
+
children: "Concluir meu cadastro"
|
|
337
|
+
}) })
|
|
338
|
+
] })
|
|
339
|
+
})
|
|
340
|
+
})] })
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
q.displayName = "TelaCadastro";
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region src/screens/telaLogin/telaLogin.styles.ts
|
|
346
|
+
var J = c("div")`
|
|
153
347
|
display: grid;
|
|
154
|
-
gap: ${
|
|
155
|
-
`,
|
|
348
|
+
gap: ${d(32)};
|
|
349
|
+
`, te = c("header")`
|
|
156
350
|
display: grid;
|
|
157
351
|
text-align: center;
|
|
158
|
-
gap: ${
|
|
159
|
-
`,
|
|
352
|
+
gap: ${d(16)};
|
|
353
|
+
`, Y = c("div")`
|
|
160
354
|
display: grid;
|
|
161
|
-
gap: ${
|
|
355
|
+
gap: ${d(16)};
|
|
162
356
|
|
|
163
357
|
> div {
|
|
164
358
|
display: grid;
|
|
165
|
-
gap: ${
|
|
359
|
+
gap: ${d(16)};
|
|
166
360
|
}
|
|
167
361
|
|
|
168
362
|
> div:last-of-type {
|
|
169
|
-
gap: ${
|
|
363
|
+
gap: ${d(8)};
|
|
170
364
|
}
|
|
171
|
-
`;
|
|
365
|
+
`;
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region src/screens/telaLogin/telaLogin.tsx
|
|
368
|
+
function X({ logo: t, initialValues: n, onSubmit: r, onEsqueciMinhaSenha: i, errorLabel: o, ...c }) {
|
|
369
|
+
let d = typeof t == "string" ? /* @__PURE__ */ f("img", {
|
|
370
|
+
src: t,
|
|
371
|
+
alt: "Logo do sistema"
|
|
372
|
+
}) : t, m = T(), S = l("(max-width: 500px)"), C = h(() => ({
|
|
373
|
+
manterConectado: !1,
|
|
374
|
+
...n
|
|
375
|
+
}), [n]);
|
|
376
|
+
return /* @__PURE__ */ f(A, {
|
|
377
|
+
...c,
|
|
378
|
+
paperStyle: {
|
|
379
|
+
minWidth: S ? void 0 : 456,
|
|
380
|
+
width: S ? "90%" : void 0
|
|
381
|
+
},
|
|
382
|
+
children: /* @__PURE__ */ p(J, { children: [/* @__PURE__ */ f(te, { children: t && /* @__PURE__ */ f("div", { children: d }) }), /* @__PURE__ */ f(_, {
|
|
383
|
+
onSubmit: r,
|
|
384
|
+
defaultValues: C,
|
|
385
|
+
children: /* @__PURE__ */ p(Y, { children: [
|
|
386
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(v, {
|
|
387
|
+
name: "email",
|
|
388
|
+
label: "E-mail de acesso",
|
|
389
|
+
required: !0,
|
|
390
|
+
rules: y([x, b]),
|
|
391
|
+
autoComplete: "email",
|
|
392
|
+
type: "email"
|
|
393
|
+
}), /* @__PURE__ */ p("div", { children: [
|
|
394
|
+
/* @__PURE__ */ f(v, {
|
|
395
|
+
name: "senha",
|
|
396
|
+
label: "Senha de acesso",
|
|
397
|
+
type: "password",
|
|
398
|
+
required: !0,
|
|
399
|
+
rules: x
|
|
400
|
+
}),
|
|
401
|
+
m && /* @__PURE__ */ f(e, {
|
|
402
|
+
severity: "warning",
|
|
403
|
+
children: "Capslock ativado"
|
|
404
|
+
}),
|
|
405
|
+
!!o && /* @__PURE__ */ f(s, {
|
|
406
|
+
variant: "titleXXS",
|
|
407
|
+
color: u.red[300],
|
|
408
|
+
children: o
|
|
409
|
+
})
|
|
410
|
+
] })] }),
|
|
411
|
+
/* @__PURE__ */ f(g, {
|
|
412
|
+
name: "manterConectado",
|
|
413
|
+
label: "Manter conectado"
|
|
414
|
+
}),
|
|
415
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(a, {
|
|
416
|
+
type: "submit",
|
|
417
|
+
fullWidth: !0,
|
|
418
|
+
children: "Entrar"
|
|
419
|
+
}), i && /* @__PURE__ */ f(a, {
|
|
420
|
+
type: "button",
|
|
421
|
+
fullWidth: !0,
|
|
422
|
+
variant: "text",
|
|
423
|
+
onClick: i,
|
|
424
|
+
children: "Esqueci minha senha"
|
|
425
|
+
})] })
|
|
426
|
+
] })
|
|
427
|
+
})] })
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region src/screens/telaConviteExpirado/telaConviteExpirado.styles.ts
|
|
432
|
+
var Z = c("div")`
|
|
172
433
|
display: grid;
|
|
173
|
-
gap: ${
|
|
434
|
+
gap: ${d(32)};
|
|
174
435
|
|
|
175
436
|
> div {
|
|
176
437
|
display: grid;
|
|
177
|
-
gap: ${
|
|
438
|
+
gap: ${d(8)};
|
|
178
439
|
}
|
|
179
|
-
|
|
440
|
+
`, Q = c("header")`
|
|
180
441
|
display: grid;
|
|
181
442
|
text-align: center;
|
|
182
|
-
gap: ${
|
|
183
|
-
`;
|
|
443
|
+
gap: ${d(16)};
|
|
444
|
+
`;
|
|
445
|
+
//#endregion
|
|
446
|
+
//#region src/screens/telaConviteExpirado/telaConviteExpirado.tsx
|
|
447
|
+
function ne({ logo: e, onPrecisoDeAjuda: n, onRealizarAcesso: r, ...o }) {
|
|
448
|
+
let c = typeof e == "string" ? /* @__PURE__ */ f("img", {
|
|
449
|
+
src: e,
|
|
450
|
+
alt: "Logo do sistema"
|
|
451
|
+
}) : e, d = l("(max-width: 500px)");
|
|
452
|
+
return /* @__PURE__ */ f(A, {
|
|
453
|
+
...o,
|
|
454
|
+
paperStyle: {
|
|
455
|
+
minWidth: d ? void 0 : 456,
|
|
456
|
+
width: d ? "90%" : void 0
|
|
457
|
+
},
|
|
458
|
+
children: /* @__PURE__ */ p(Z, { children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(Q, { children: e && /* @__PURE__ */ f("div", { children: c }) }), /* @__PURE__ */ p("div", {
|
|
459
|
+
style: {
|
|
460
|
+
display: "flex",
|
|
461
|
+
flexDirection: "column",
|
|
462
|
+
textAlign: "center",
|
|
463
|
+
gap: 8,
|
|
464
|
+
color: u.neutral[800]
|
|
465
|
+
},
|
|
466
|
+
children: [/* @__PURE__ */ f(s, {
|
|
467
|
+
variant: "bodyMD",
|
|
468
|
+
children: "Parece que este convite já foi usado ou expirou."
|
|
469
|
+
}), /* @__PURE__ */ f(s, {
|
|
470
|
+
variant: "bodyMD",
|
|
471
|
+
children: "Já se cadastrou? Realize o login."
|
|
472
|
+
})]
|
|
473
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(a, {
|
|
474
|
+
fullWidth: !0,
|
|
475
|
+
onClick: r,
|
|
476
|
+
children: "Realizar login"
|
|
477
|
+
}), /* @__PURE__ */ p(a, {
|
|
478
|
+
fullWidth: !0,
|
|
479
|
+
variant: "text",
|
|
480
|
+
onClick: n,
|
|
481
|
+
style: {
|
|
482
|
+
display: "flex",
|
|
483
|
+
gap: 4,
|
|
484
|
+
color: u.neutral[900]
|
|
485
|
+
},
|
|
486
|
+
children: [/* @__PURE__ */ f(t, {
|
|
487
|
+
icon: i,
|
|
488
|
+
size: "20px",
|
|
489
|
+
removeMargin: !0,
|
|
490
|
+
color: u.neutral[900]
|
|
491
|
+
}), "Preciso de outro convite"]
|
|
492
|
+
})] })] })
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
//#endregion
|
|
496
|
+
//#region src/screens/telaInstrucoesEnviadas/telaInstrucoesEnviadas.styles.ts
|
|
497
|
+
var re = c("div")`
|
|
184
498
|
display: grid;
|
|
185
|
-
gap: ${
|
|
499
|
+
gap: ${d(32)};
|
|
186
500
|
|
|
187
501
|
> div {
|
|
188
502
|
display: grid;
|
|
189
|
-
gap: ${
|
|
503
|
+
gap: ${d(16)};
|
|
190
504
|
}
|
|
191
|
-
`,
|
|
505
|
+
`, ie = c("header")`
|
|
192
506
|
display: grid;
|
|
193
507
|
text-align: center;
|
|
194
|
-
gap: ${
|
|
195
|
-
`;
|
|
508
|
+
gap: ${d(16)};
|
|
509
|
+
`;
|
|
510
|
+
//#endregion
|
|
511
|
+
//#region src/screens/telaInstrucoesEnviadas/telaInstrucoesEnviadas.tsx
|
|
512
|
+
function ae({ logo: e, onVoltarParaLogin: t, ...n }) {
|
|
513
|
+
let r = typeof e == "string" ? /* @__PURE__ */ f("img", {
|
|
514
|
+
src: e,
|
|
515
|
+
alt: "Logo do sistema"
|
|
516
|
+
}) : e, i = l("(max-width: 500px)");
|
|
517
|
+
return /* @__PURE__ */ f(A, {
|
|
518
|
+
...n,
|
|
519
|
+
paperStyle: {
|
|
520
|
+
maxWidth: i ? void 0 : 456,
|
|
521
|
+
width: i ? "90%" : void 0
|
|
522
|
+
},
|
|
523
|
+
children: /* @__PURE__ */ p(re, { children: [/* @__PURE__ */ p("div", {
|
|
524
|
+
style: {
|
|
525
|
+
display: "flex",
|
|
526
|
+
flexDirection: "column",
|
|
527
|
+
gap: 24
|
|
528
|
+
},
|
|
529
|
+
children: [
|
|
530
|
+
/* @__PURE__ */ f(ie, { children: e && /* @__PURE__ */ f("div", { children: r }) }),
|
|
531
|
+
/* @__PURE__ */ f(s, {
|
|
532
|
+
variant: "titleMD",
|
|
533
|
+
sx: { textAlign: "center" },
|
|
534
|
+
children: "Instruções enviadas"
|
|
535
|
+
}),
|
|
536
|
+
/* @__PURE__ */ f(s, {
|
|
537
|
+
variant: "bodySM",
|
|
538
|
+
sx: { textAlign: "center" },
|
|
539
|
+
children: "Enviamos ao seu e-mail de acesso as instruções para criar uma nova senha. Verifique sua caixa de entrada e de Spam."
|
|
540
|
+
})
|
|
541
|
+
]
|
|
542
|
+
}), /* @__PURE__ */ f(a, {
|
|
543
|
+
fullWidth: !0,
|
|
544
|
+
onClick: t,
|
|
545
|
+
children: "Voltar para login"
|
|
546
|
+
})] })
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region src/screens/telaNovaSenha/telaNovaSenha.helpers.ts
|
|
551
|
+
var oe = (e) => e ? e.match(/[a-z]/i) : !1, se = (e) => e ? e.match(/[0-9]/i) : !1, ce = (e) => e ? e.length >= 6 : !1, le = c("div")`
|
|
196
552
|
display: grid;
|
|
197
|
-
gap: ${
|
|
198
|
-
`,
|
|
553
|
+
gap: ${d(32)};
|
|
554
|
+
`, ue = c("header")`
|
|
199
555
|
display: grid;
|
|
200
556
|
text-align: center;
|
|
201
|
-
gap: ${
|
|
202
|
-
`,
|
|
557
|
+
gap: ${d(16)};
|
|
558
|
+
`, de = c("div")`
|
|
203
559
|
display: grid;
|
|
204
|
-
gap: ${
|
|
205
|
-
`,
|
|
560
|
+
gap: ${d(32)};
|
|
561
|
+
`, fe = c("div")`
|
|
206
562
|
display: grid;
|
|
207
|
-
gap: ${
|
|
563
|
+
gap: ${d(4)};
|
|
208
564
|
|
|
209
565
|
> div:first-of-type {
|
|
210
566
|
display: grid;
|
|
211
567
|
grid-template-columns: 1fr 1fr;
|
|
212
|
-
gap: ${
|
|
568
|
+
gap: ${d(16)};
|
|
213
569
|
|
|
214
570
|
@media (max-width: 768px) {
|
|
215
571
|
grid-template-columns: 1fr;
|
|
216
|
-
gap: ${
|
|
572
|
+
gap: ${d(8)};
|
|
217
573
|
}
|
|
218
574
|
}
|
|
219
575
|
|
|
220
576
|
> div:last-of-type {
|
|
221
577
|
display: grid;
|
|
222
|
-
gap: ${
|
|
578
|
+
gap: ${d(4)};
|
|
223
579
|
}
|
|
224
|
-
`,
|
|
580
|
+
`, pe = c("div")`
|
|
225
581
|
display: flex;
|
|
226
582
|
flex-wrap: wrap;
|
|
227
|
-
gap: ${
|
|
228
|
-
`,
|
|
583
|
+
gap: ${d(8)};
|
|
584
|
+
`, $ = c("div")`
|
|
229
585
|
display: flex;
|
|
230
586
|
align-items: center;
|
|
231
|
-
gap: ${
|
|
587
|
+
gap: ${d(4)};
|
|
232
588
|
|
|
233
|
-
color: ${
|
|
234
|
-
border: 1px solid ${
|
|
235
|
-
border-radius: ${
|
|
236
|
-
padding: ${
|
|
589
|
+
color: ${u.neutral[600]};
|
|
590
|
+
border: 1px solid ${u.neutral[600]};
|
|
591
|
+
border-radius: ${d(4)};
|
|
592
|
+
padding: ${d(3)} ${d(4)};
|
|
237
593
|
|
|
238
594
|
line-height: 1em;
|
|
239
595
|
vertical-align: middle;
|
|
240
596
|
|
|
241
|
-
${({checked:e})=>{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
`;
|
|
597
|
+
${({ checked: e }) => {
|
|
598
|
+
if (e) return `
|
|
599
|
+
color: ${u.green[300]};
|
|
600
|
+
border-color: ${u.green[300]};
|
|
601
|
+
`;
|
|
602
|
+
}}
|
|
603
|
+
`;
|
|
604
|
+
//#endregion
|
|
605
|
+
//#region src/screens/telaNovaSenha/telaNovaSenha.tsx
|
|
606
|
+
function me({ logo: e, onTrocarMinhaSenha: n, ...i }) {
|
|
607
|
+
let o = C(), c = w({
|
|
608
|
+
control: o.control,
|
|
609
|
+
name: "senha"
|
|
610
|
+
}), l = typeof e == "string" ? /* @__PURE__ */ f("img", {
|
|
611
|
+
src: e,
|
|
612
|
+
alt: "Logo do sistema"
|
|
613
|
+
}) : e, u = oe(c), d = se(c), m = ce(c);
|
|
614
|
+
return /* @__PURE__ */ f(A, {
|
|
615
|
+
...i,
|
|
616
|
+
children: /* @__PURE__ */ p(le, { children: [/* @__PURE__ */ p(ue, { children: [e && /* @__PURE__ */ f("div", { children: l }), /* @__PURE__ */ f(s, {
|
|
617
|
+
variant: "titleSM",
|
|
618
|
+
children: "Vamos cadastrar uma nova senha de acesso."
|
|
619
|
+
})] }), /* @__PURE__ */ f(S, {
|
|
620
|
+
...o,
|
|
621
|
+
children: /* @__PURE__ */ f("form", {
|
|
622
|
+
onSubmit: (e) => {
|
|
623
|
+
e.preventDefault(), e.stopPropagation(), o.handleSubmit(n)(e);
|
|
624
|
+
},
|
|
625
|
+
children: /* @__PURE__ */ p(de, { children: [/* @__PURE__ */ p(fe, { children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(v, {
|
|
626
|
+
type: "password",
|
|
627
|
+
name: "senha",
|
|
628
|
+
label: "Senha de acesso",
|
|
629
|
+
required: !0,
|
|
630
|
+
rules: x
|
|
631
|
+
}), /* @__PURE__ */ f(v, {
|
|
632
|
+
type: "password",
|
|
633
|
+
name: "confirmarSenha",
|
|
634
|
+
label: "Confirme sua senha",
|
|
635
|
+
required: !0,
|
|
636
|
+
rules: { validate: (e) => {
|
|
637
|
+
if (!e) return "Campo obrigatório";
|
|
638
|
+
if (e !== c) return "As senhas devem ser iguais";
|
|
639
|
+
} }
|
|
640
|
+
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(s, {
|
|
641
|
+
variant: "bodyXS",
|
|
642
|
+
children: "Sua senha precisa conter:"
|
|
643
|
+
}), /* @__PURE__ */ p(pe, { children: [
|
|
644
|
+
/* @__PURE__ */ p($, {
|
|
645
|
+
checked: !!u,
|
|
646
|
+
children: [u && /* @__PURE__ */ f(t, {
|
|
647
|
+
icon: r,
|
|
648
|
+
size: "16px",
|
|
649
|
+
removeMargin: !0
|
|
650
|
+
}), /* @__PURE__ */ f(s, {
|
|
651
|
+
variant: "bodyXS",
|
|
652
|
+
children: "Uma letra"
|
|
653
|
+
})]
|
|
654
|
+
}),
|
|
655
|
+
/* @__PURE__ */ p($, {
|
|
656
|
+
checked: !!d,
|
|
657
|
+
children: [d && /* @__PURE__ */ f(t, {
|
|
658
|
+
icon: r,
|
|
659
|
+
size: "16px",
|
|
660
|
+
removeMargin: !0
|
|
661
|
+
}), /* @__PURE__ */ f(s, {
|
|
662
|
+
variant: "bodyXS",
|
|
663
|
+
children: "Um número"
|
|
664
|
+
})]
|
|
665
|
+
}),
|
|
666
|
+
/* @__PURE__ */ p($, {
|
|
667
|
+
checked: !!m,
|
|
668
|
+
children: [m && /* @__PURE__ */ f(t, {
|
|
669
|
+
icon: r,
|
|
670
|
+
size: "16px",
|
|
671
|
+
removeMargin: !0
|
|
672
|
+
}), /* @__PURE__ */ f(s, {
|
|
673
|
+
variant: "bodyXS",
|
|
674
|
+
children: "Mínimo de 6 caracteres"
|
|
675
|
+
})]
|
|
676
|
+
})
|
|
677
|
+
] })] })] }), /* @__PURE__ */ f(a, {
|
|
678
|
+
type: "submit",
|
|
679
|
+
fullWidth: !0,
|
|
680
|
+
children: "Trocar minha senha"
|
|
681
|
+
})] })
|
|
682
|
+
})
|
|
683
|
+
})] })
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
//#endregion
|
|
687
|
+
//#region src/screens/telaEsqueceuSenha/telaEsqueceuSenha.styles.ts
|
|
688
|
+
var he = c("div")`
|
|
246
689
|
display: grid;
|
|
247
|
-
gap: ${
|
|
690
|
+
gap: ${d(32)};
|
|
248
691
|
|
|
249
692
|
> div {
|
|
250
693
|
display: grid;
|
|
251
|
-
gap: ${
|
|
694
|
+
gap: ${d(16)};
|
|
252
695
|
}
|
|
253
|
-
`,
|
|
696
|
+
`, ge = c("header")`
|
|
254
697
|
display: grid;
|
|
255
698
|
text-align: center;
|
|
256
|
-
gap: ${
|
|
257
|
-
`,
|
|
699
|
+
gap: ${d(16)};
|
|
700
|
+
`, _e = c("div")`
|
|
258
701
|
display: grid;
|
|
259
|
-
gap: ${
|
|
702
|
+
gap: ${d(32)};
|
|
260
703
|
|
|
261
704
|
> div:last-of-type {
|
|
262
705
|
display: grid;
|
|
263
|
-
gap: ${
|
|
706
|
+
gap: ${d(16)};
|
|
264
707
|
}
|
|
265
|
-
`;
|
|
708
|
+
`;
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region src/screens/telaEsqueceuSenha/telaEsqueceuSenha.tsx
|
|
711
|
+
function ve({ logo: e, onVoltarParaLogin: t, onConfirmar: n, ...r }) {
|
|
712
|
+
let i = typeof e == "string" ? /* @__PURE__ */ f("img", {
|
|
713
|
+
src: e,
|
|
714
|
+
alt: "Logo do sistema"
|
|
715
|
+
}) : e, o = l("(max-width: 500px)");
|
|
716
|
+
return /* @__PURE__ */ f(A, {
|
|
717
|
+
...r,
|
|
718
|
+
paperStyle: {
|
|
719
|
+
minWidth: o ? void 0 : 456,
|
|
720
|
+
width: o ? "90%" : void 0
|
|
721
|
+
},
|
|
722
|
+
children: /* @__PURE__ */ p(he, { children: [/* @__PURE__ */ p("div", {
|
|
723
|
+
style: {
|
|
724
|
+
display: "flex",
|
|
725
|
+
flexDirection: "column",
|
|
726
|
+
gap: 24
|
|
727
|
+
},
|
|
728
|
+
children: [
|
|
729
|
+
/* @__PURE__ */ f(ge, { children: e && /* @__PURE__ */ f("div", { children: i }) }),
|
|
730
|
+
/* @__PURE__ */ f(s, {
|
|
731
|
+
variant: "titleMD",
|
|
732
|
+
sx: { textAlign: "center" },
|
|
733
|
+
children: "Esqueceu a senha?"
|
|
734
|
+
}),
|
|
735
|
+
/* @__PURE__ */ f(s, {
|
|
736
|
+
variant: "bodySM",
|
|
737
|
+
sx: { textAlign: "center" },
|
|
738
|
+
children: "Informe seu e-mail de acesso para receber instruções e criar uma nova senha."
|
|
739
|
+
})
|
|
740
|
+
]
|
|
741
|
+
}), /* @__PURE__ */ f(_, {
|
|
742
|
+
onSubmit: n,
|
|
743
|
+
children: /* @__PURE__ */ p(_e, { children: [/* @__PURE__ */ f("div", { children: /* @__PURE__ */ f(v, {
|
|
744
|
+
name: "email",
|
|
745
|
+
label: "E-mail de acesso",
|
|
746
|
+
required: !0,
|
|
747
|
+
rules: y([x, b]),
|
|
748
|
+
type: "email"
|
|
749
|
+
}) }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(a, {
|
|
750
|
+
fullWidth: !0,
|
|
751
|
+
type: "submit",
|
|
752
|
+
children: "Confirmar"
|
|
753
|
+
}), /* @__PURE__ */ f(a, {
|
|
754
|
+
fullWidth: !0,
|
|
755
|
+
onClick: t,
|
|
756
|
+
variant: "neutral",
|
|
757
|
+
children: "Voltar para login"
|
|
758
|
+
})] })] })
|
|
759
|
+
})] })
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
//#endregion
|
|
763
|
+
export { q as TelaCadastro, ne as TelaConviteExpirado, ve as TelaEsqueceuSenha, ae as TelaInstrucoesEnviadas, X as TelaLogin, me as TelaNovaSenha, A as TemplateTelaBase };
|
|
764
|
+
|
|
765
|
+
//# sourceMappingURL=index.mjs.map
|