@authing/react-ui-components 2.4.54-alpha.0 → 2.4.55-alpha.2

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.
Files changed (66) hide show
  1. package/build/asset-manifest.json +18 -18
  2. package/build/index.html +1 -1
  3. package/build/static/css/{2.40c24d2f.chunk.css → 2.e5f4a1ca.chunk.css} +2 -2
  4. package/build/static/css/2.e5f4a1ca.chunk.css.map +1 -0
  5. package/build/static/css/main.4dd73333.chunk.css +2 -0
  6. package/build/static/css/main.4dd73333.chunk.css.map +1 -0
  7. package/build/static/js/2.b28e1968.chunk.js +3 -0
  8. package/build/static/js/2.b28e1968.chunk.js.LICENSE.txt +70 -0
  9. package/build/static/js/2.b28e1968.chunk.js.map +1 -0
  10. package/build/static/js/{3.edcab7cd.chunk.js → 3.584da164.chunk.js} +2 -2
  11. package/build/static/js/{3.edcab7cd.chunk.js.map → 3.584da164.chunk.js.map} +1 -1
  12. package/build/static/js/main.eeb41586.chunk.js +2 -0
  13. package/build/static/js/main.eeb41586.chunk.js.map +1 -0
  14. package/build/static/js/{runtime-main.1b4b9135.js → runtime-main.6174f3e9.js} +2 -2
  15. package/build/static/js/{runtime-main.1b4b9135.js.map → runtime-main.6174f3e9.js.map} +1 -1
  16. package/lib/index.min.css +1 -2
  17. package/lib/index.min.js +1 -1
  18. package/lib/index.min.js.LICENSE.txt +0 -64
  19. package/package.json +3 -5
  20. package/src/common/AuthingDropdown/index.tsx +20 -58
  21. package/src/common/AuthingDropdown/style.less +8 -33
  22. package/src/components/AuthingGuard/AppMFALayout/index.tsx +15 -30
  23. package/src/components/AuthingGuard/Forms/QrCodeLoginForm/index.tsx +3 -1
  24. package/src/components/AuthingGuard/GuardLayout/index.tsx +16 -32
  25. package/src/components/AuthingGuard/GuardLayout/style.less +0 -4
  26. package/src/components/AuthingGuard/Header/index.tsx +5 -2
  27. package/src/components/AuthingGuard/Header/style.less +23 -11
  28. package/src/components/AuthingGuard/IconFont/iconfont.js +74 -1
  29. package/src/components/AuthingGuard/LoginLayout/index.tsx +53 -22
  30. package/src/components/AuthingGuard/api/appConfig.ts +3 -2
  31. package/src/components/AuthingGuard/api/http.ts +32 -9
  32. package/src/components/AuthingGuard/constants.ts +2 -0
  33. package/src/components/AuthingGuard/hooks/index.tsx +0 -37
  34. package/src/components/AuthingGuard/index.tsx +8 -3
  35. package/src/components/AuthingGuard/locales/en/common.json +1 -2
  36. package/src/components/AuthingGuard/locales/en/login.json +1 -1
  37. package/src/components/AuthingGuard/locales/zh/common.json +1 -16
  38. package/src/components/AuthingGuard/types/Forms.ts +1 -2
  39. package/src/components/AuthingGuard/types/GuardConfig.ts +2 -1
  40. package/src/context/global/reducer.tsx +0 -4
  41. package/src/index.tsx +16 -28
  42. package/src/utils/index.ts +0 -23
  43. package/yarn-error.log +19616 -0
  44. package/build/static/css/2.40c24d2f.chunk.css.map +0 -1
  45. package/build/static/css/main.ee0e3901.chunk.css +0 -2
  46. package/build/static/css/main.ee0e3901.chunk.css.map +0 -1
  47. package/build/static/js/2.354276b9.chunk.js +0 -3
  48. package/build/static/js/2.354276b9.chunk.js.LICENSE.txt +0 -156
  49. package/build/static/js/2.354276b9.chunk.js.map +0 -1
  50. package/build/static/js/main.6c028b56.chunk.js +0 -2
  51. package/build/static/js/main.6c028b56.chunk.js.map +0 -1
  52. package/lib/index.d.ts +0 -1374
  53. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/AppDownload.tsx +0 -198
  54. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/BindSuccess.tsx +0 -48
  55. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/CopyIcon.tsx +0 -52
  56. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/InputSaftyCode.tsx +0 -25
  57. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/SaveSecretKey.tsx +0 -34
  58. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/ScanQrcode.tsx +0 -44
  59. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/index.tsx +0 -40
  60. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/BindTotpForm/styles.less +0 -454
  61. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/MobileSteps/index.tsx +0 -49
  62. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/MobileSteps/style.less +0 -10
  63. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/UserMfa/index.tsx +0 -361
  64. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/UserMfa/style.less +0 -12
  65. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/VerifyTotpForm.tsx +0 -120
  66. package/src/components/AuthingGuard/Forms/TotpMfaVerifyForm/index.tsx +0 -35
@@ -1,454 +0,0 @@
1
- @PSC-mobile-phone: ~'only screen and (max-width: 600px)';
2
-
3
- .mfaWrapper {
4
- position: relative;
5
- .mfaTitle {
6
- color: #333333;
7
- margin-bottom: 0;
8
- font-family: PingFang-SC-Heavy;
9
- }
10
- .mainContent {
11
- text-align: center;
12
- }
13
- .stepContent {
14
- display: flex;
15
- flex-direction: column;
16
- align-items: center;
17
- justify-content: center;
18
- margin-top: 70px;
19
- margin-bottom: 60px;
20
- }
21
- .subtitle {
22
- color: #333;
23
- margin-bottom: 12px;
24
- font-size: 16px;
25
- }
26
- .desc {
27
- color: #666;
28
- margin-bottom: 20px;
29
- font-size: 14px;
30
- }
31
- .qrcode {
32
- width: 187px;
33
- height: 187px;
34
- }
35
- .secretParagraph {
36
- border: 1px solid #ddd;
37
- border-radius: 2px;
38
- padding: 12px 0;
39
- }
40
- .saftyCodeInput {
41
- margin-top: 97px;
42
- }
43
- .saftyCodeTip {
44
- color: #999;
45
- font-size: 14px;
46
- margin-top: 14px;
47
- }
48
- .btnItem {
49
- width: 100px;
50
- &:not(:first-of-type) {
51
- margin-left: 16px;
52
- }
53
- }
54
- }
55
-
56
- .appDownload {
57
- padding-top: 20px;
58
- width: 100%;
59
- display: flex;
60
- justify-content: space-between;
61
- flex-wrap: wrap;
62
-
63
- .item {
64
- width: 370px;
65
- display: flex;
66
- flex-direction: column;
67
- align-items: center;
68
- }
69
-
70
- .logo {
71
- width: 54px;
72
- height: 54px;
73
- border-radius: 8px;
74
- display: flex;
75
- align-items: center;
76
- justify-content: center;
77
- }
78
-
79
- .title {
80
- font-size: 16px;
81
- font-weight: 500;
82
- color: #293350;
83
- line-height: 22px;
84
- margin-top: 12px;
85
- }
86
-
87
- .subtitle {
88
- font-size: 14px;
89
- font-weight: 400;
90
- color: #9fabcb;
91
- line-height: 20px;
92
- margin-top: 8px;
93
- margin-bottom: 0;
94
- }
95
-
96
- .QRCode {
97
- width: 100%;
98
- display: flex;
99
- align-items: center;
100
- justify-content: space-around;
101
- margin-top: 32px;
102
- .QRCodeItem {
103
- display: flex;
104
- flex-direction: column;
105
- align-items: center;
106
- }
107
-
108
- .image {
109
- width: 141px;
110
- height: 141px;
111
- display: flex;
112
- align-items: center;
113
- justify-content: center;
114
- }
115
-
116
- .QRCodeText {
117
- font-size: 14px;
118
- font-weight: 500;
119
- color: #515b78;
120
- line-height: 20px;
121
- margin-top: 3px;
122
- }
123
- }
124
- }
125
-
126
- .ScanQrcode {
127
- .secretInput {
128
- width: 100%;
129
- border-radius: 4px;
130
- border: 1px solid #e7e7e7;
131
-
132
- padding: 9px 16px;
133
-
134
- font-size: 14px;
135
- font-weight: 400;
136
- color: #515b78;
137
- line-height: 20px;
138
-
139
- display: flex;
140
-
141
- align-items: center;
142
-
143
- margin-bottom: 10px;
144
-
145
- &:last-child {
146
- margin-bottom: 0;
147
- }
148
- }
149
-
150
- .iconBox {
151
- width: 24px;
152
- height: 24px;
153
- display: flex;
154
- align-items: center;
155
- justify-content: center;
156
- background-color: #eff2f6;
157
- border-radius: 4px;
158
- margin-right: 8px;
159
-
160
- svg {
161
- font-size: 12px;
162
- color: #515b78;
163
- }
164
- }
165
-
166
- :global {
167
- .ant-typography {
168
- margin: 0 0 0 8px;
169
- }
170
- }
171
- }
172
-
173
- .subtitle {
174
- font-size: 14px;
175
- font-weight: 400;
176
- color: #9fabcb;
177
- line-height: 20px;
178
- margin-top: 8px;
179
- margin-bottom: 0;
180
- }
181
-
182
- .desc {
183
- color: #666;
184
- margin-bottom: 20px;
185
- font-size: 14px;
186
- }
187
- .qrcode {
188
- width: 187px;
189
- height: 187px;
190
- }
191
-
192
- .saftyCodeInput {
193
- margin-top: 97px;
194
- }
195
- .saftyCodeTip {
196
- color: #999;
197
- font-size: 14px;
198
- margin-top: 14px;
199
- }
200
-
201
- .header {
202
- display: flex;
203
- align-items: center;
204
- justify-content: space-between;
205
-
206
- margin-bottom: 5%;
207
-
208
- .btnItem {
209
- font-size: 14px;
210
- font-weight: 400;
211
- color: #e63333;
212
- line-height: 24px;
213
- }
214
- }
215
-
216
- .ScanQrcode {
217
- padding-top: 20px;
218
- .secretInput {
219
- width: 100%;
220
- border-radius: 4px;
221
- border: 1px solid #e7e7e7;
222
-
223
- padding: 9px 16px;
224
-
225
- font-size: 14px;
226
- font-weight: 400;
227
- color: #515b78;
228
- line-height: 20px;
229
-
230
- display: flex;
231
-
232
- align-items: center;
233
-
234
- margin-bottom: 10px;
235
-
236
- &:last-child {
237
- margin-bottom: 0;
238
- }
239
- }
240
-
241
- .iconBox {
242
- width: 24px;
243
- height: 24px;
244
- display: flex;
245
- align-items: center;
246
- justify-content: center;
247
- background-color: #eff2f6;
248
- border-radius: 4px;
249
- margin-right: 8px;
250
-
251
- svg {
252
- font-size: 12px;
253
- color: #515b78;
254
- }
255
- }
256
-
257
- :global {
258
- .ant-typography {
259
- margin: 0 0 0 8px;
260
- }
261
- }
262
- }
263
-
264
- .appDownload {
265
- justify-content: unset;
266
- flex-direction: column;
267
- align-items: center;
268
- margin-top: 0;
269
-
270
- .item:last-child {
271
- margin-top: 60px;
272
- }
273
- }
274
-
275
- .authing-guard-bindTotp-medias {
276
- display: flex;
277
- flex-direction: column;
278
- width: 100%;
279
-
280
- .authing-guard-bindTotp-item-medias {
281
- display: flex;
282
- align-items: center;
283
- justify-content: space-between;
284
- width: 100%;
285
- margin-bottom: 24px;
286
-
287
- &:last-child {
288
- margin-bottom: 0;
289
- }
290
-
291
- .bindTotp-item-header-medias {
292
- display: flex;
293
- align-items: center;
294
- justify-content: center;
295
-
296
- font-size: 16px;
297
- font-weight: 500;
298
- color: #293350;
299
- line-height: 19px;
300
-
301
- img {
302
- width: 60px;
303
- height: 60px;
304
- user-select: none;
305
- margin-right: 8px;
306
- }
307
- }
308
-
309
- .btnItem {
310
- width: unset;
311
- height: 28px;
312
- background: #396aff;
313
- border-radius: 4px;
314
- font-size: 12px;
315
- display: flex;
316
- align-items: center;
317
- justify-content: center;
318
- }
319
- }
320
- }
321
-
322
- .stepContent {
323
- margin-top: 10px !important;
324
-
325
- h4 {
326
- display: none;
327
- }
328
- }
329
-
330
- .appDownload {
331
- width: 100%;
332
- display: flex;
333
- justify-content: space-between;
334
- flex-wrap: wrap;
335
-
336
- .item {
337
- width: 370px;
338
- display: flex;
339
- flex-direction: column;
340
- align-items: center;
341
- }
342
-
343
- .logo {
344
- width: 54px;
345
- height: 54px;
346
- border-radius: 8px;
347
- display: flex;
348
- align-items: center;
349
- justify-content: center;
350
- }
351
-
352
- .title {
353
- font-size: 16px;
354
- font-weight: 500;
355
- color: #293350;
356
- line-height: 22px;
357
- margin-top: 12px;
358
- }
359
-
360
- .subtitle {
361
- font-size: 14px;
362
- font-weight: 400;
363
- color: #9fabcb;
364
- line-height: 20px;
365
- margin-top: 8px;
366
- margin-bottom: 0;
367
- }
368
-
369
- .QRCode {
370
- width: 100%;
371
- display: flex;
372
- align-items: center;
373
- justify-content: space-around;
374
- margin-top: 32px;
375
- .QRCodeItem {
376
- display: flex;
377
- flex-direction: column;
378
- align-items: center;
379
- }
380
-
381
- .image {
382
- width: 141px;
383
- height: 141px;
384
- display: flex;
385
- align-items: center;
386
- justify-content: center;
387
- }
388
-
389
- .QRCodeText {
390
- font-size: 14px;
391
- font-weight: 500;
392
- color: #515b78;
393
- line-height: 20px;
394
- margin-top: 3px;
395
- }
396
- }
397
- }
398
-
399
- @media @PSC-mobile-phone {
400
- .mediaAppDownload {
401
- display: flex;
402
- flex-direction: column;
403
- width: 100%;
404
-
405
- .mediaAppDownloadItem {
406
- display: flex;
407
- align-items: center;
408
- justify-content: space-between;
409
- width: 100%;
410
- margin-bottom: 24px;
411
-
412
- &:last-child {
413
- margin-bottom: 0;
414
- }
415
-
416
- .itemHeader {
417
- display: flex;
418
- align-items: center;
419
- justify-content: center;
420
-
421
- font-size: 16px;
422
- font-weight: 500;
423
- color: #293350;
424
- line-height: 19px;
425
-
426
- img {
427
- width: 60px;
428
- height: 60px;
429
- user-select: none;
430
- margin-right: 8px;
431
- }
432
- }
433
-
434
- .btnItem {
435
- width: unset;
436
- height: 28px;
437
- background: #396aff;
438
- border-radius: 4px;
439
- font-size: 12px;
440
- display: flex;
441
- align-items: center;
442
- justify-content: center;
443
- }
444
- }
445
- }
446
-
447
- .stepContent {
448
- margin-top: 10px !important;
449
-
450
- h4 {
451
- display: none;
452
- }
453
- }
454
- }
@@ -1,49 +0,0 @@
1
- import React, { ReactNode } from 'react'
2
- import { FC } from 'react'
3
- import './style.less'
4
-
5
- export interface MobileStepProps {
6
- title: string
7
- }
8
-
9
- export interface MobileStepsProps {
10
- current: number
11
- data: ReactNode[]
12
- }
13
-
14
- const MobileSteps: FC<MobileStepsProps> = ({ current, data }) => {
15
- return (
16
- <div className="mobileSteps">
17
- <div>
18
- <span
19
- style={{
20
- color: '#396AFF',
21
- fontSize: 28,
22
- }}
23
- >
24
- {current + 1}
25
- </span>
26
- <span
27
- style={{
28
- color: '#9FABCB',
29
- fontSize: 18,
30
- }}
31
- >
32
- {' '}
33
- / {data.length}
34
- </span>
35
- </div>
36
- <div
37
- style={{
38
- fontSize: 14,
39
- color: '#293350',
40
- marginTop: 16,
41
- }}
42
- >
43
- {data[current]}
44
- </div>
45
- </div>
46
- )
47
- }
48
-
49
- export { MobileSteps }
@@ -1,10 +0,0 @@
1
- .mobileSteps {
2
- background-color: #fff;
3
- .title {
4
- font-size: 14px;
5
- font-weight: 500;
6
- color: #293350;
7
- line-height: 20px;
8
- margin-top: 16px;
9
- }
10
- }