@authme/identity-verification 2.8.57 → 2.8.59
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 +34 -0
- package/assets/locale/zh_Hant_TW.json +1 -1
- package/assets/styles/_base.scss +759 -0
- package/assets/styles/_liveness.scss +324 -0
- package/assets/styles/_ocr.scss +2422 -0
- package/assets/styles/_theme.scss +144 -0
- package/assets/styles/style.css +20 -1
- package/assets/styles/style.scss +11 -0
- package/index.cjs.js +169 -8
- package/index.esm.js +170 -10
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/support.d.ts +27 -0
- package/src/lib/v2/ui/modal.d.ts +1 -1
- package/src/lib/validate-config.d.ts +11 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Font size */
|
|
3
|
+
--authme-font-small: 12px;
|
|
4
|
+
--authme-font-mid: 16px;
|
|
5
|
+
--authme-font-large: 18px;
|
|
6
|
+
|
|
7
|
+
/* Loading and item size */
|
|
8
|
+
--authme-loading-max-width: 200px;
|
|
9
|
+
--authme-loading-max-height: 75px;
|
|
10
|
+
--authme-item-height: 56px;
|
|
11
|
+
|
|
12
|
+
/** Color theme 變數命名原則 --authme-<figma-color-name>---<description>
|
|
13
|
+
* 如果命名有問題,請 UI 協助調整
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
// Grayscale
|
|
17
|
+
|
|
18
|
+
--authme-white: #ffffff;
|
|
19
|
+
--authme-gray_100: #fafafa;
|
|
20
|
+
--authme-gray_200: #f1f1f1;
|
|
21
|
+
--authme-gray_300: #e8e8e8;
|
|
22
|
+
--authme-gray_400: #d9d9d9;
|
|
23
|
+
--authme-gray_500: #a9a9a9;
|
|
24
|
+
--authme-gray_600: #8a8a8a;
|
|
25
|
+
--authme-gray_700: #6b6b6b;
|
|
26
|
+
--authme-gray_800: #545454;
|
|
27
|
+
--authme-gray_900: #333333;
|
|
28
|
+
--authme-black: #000000;
|
|
29
|
+
|
|
30
|
+
// Primary
|
|
31
|
+
|
|
32
|
+
--authme-primary: #00c1b6;
|
|
33
|
+
--authme-secondary: #25608a;
|
|
34
|
+
|
|
35
|
+
// Other
|
|
36
|
+
|
|
37
|
+
--authme-scanning_color: #7cfff9;
|
|
38
|
+
--authme-close_hint_background: var(--authme-gray_800);
|
|
39
|
+
|
|
40
|
+
// figma 沒有的顏色,但是需要用到的顏色
|
|
41
|
+
|
|
42
|
+
--atuhme-btn-active: #00b1a7; // button_primary_outline hover border 變化的顏色
|
|
43
|
+
--authme-retry-btn-active: #effffe; // button_primary_outline hover 背景 變化的顏色
|
|
44
|
+
--atuhme-btn-shadow: rgb(0 193 182 / 25%); // 按鈕的陰影顏色
|
|
45
|
+
|
|
46
|
+
/* Compoment theme 變數命名原則 --authme__<figma-component-name>__<figma-locale-id(option)>---<description>
|
|
47
|
+
* 如果命名有問題,請 UI 協助調整
|
|
48
|
+
**/
|
|
49
|
+
|
|
50
|
+
// 對外展示變數:
|
|
51
|
+
|
|
52
|
+
--authme__button_primary: var(--authme-primary); // 1
|
|
53
|
+
--authme__button_primary---text: var(--authme-white); // 2
|
|
54
|
+
|
|
55
|
+
--authme__button_primary_outline: var(--authme-primary); // 3
|
|
56
|
+
--authme__button_primary_outline---text: var(--authme-primary); // 4
|
|
57
|
+
|
|
58
|
+
--authme__dialog_button_primary: var(--authme-primary); // 5
|
|
59
|
+
--authme__dialog_button_primary---text: var(--authme-white); // 6
|
|
60
|
+
|
|
61
|
+
--authme__document-menu_fouce: var(--authme-primary); // 7
|
|
62
|
+
--authme__document-menu_fouce---fouce-point: var(--authme-secondary); // 8
|
|
63
|
+
|
|
64
|
+
--authme__scan_frame: var(--authme-white); // 9
|
|
65
|
+
--authme__scan_frame_hint_success: var(--authme-scanning_color); // 10
|
|
66
|
+
--authme__scanning: var(--authme-scanning_color); // 11
|
|
67
|
+
|
|
68
|
+
--authme__card_side_hint: var(--authme-white); // 12,Web 目前尚未實作。
|
|
69
|
+
|
|
70
|
+
--authme__uploading: var(--authme-primary); // 13
|
|
71
|
+
|
|
72
|
+
--authme__upload_success: var(--authme-primary); // 14
|
|
73
|
+
--authme__upload_success---text: var(
|
|
74
|
+
--authme-white
|
|
75
|
+
); // 15,由於 Web 目前 loading 並沒有背景的彈窗,所以顏色預設改為白色。
|
|
76
|
+
|
|
77
|
+
--authme__powered_by_authme: var(--authme-white); // 16
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* 以下是尚未整理的 theme , 會在未來逐步整理,
|
|
81
|
+
* 待 UI 將所有 Component 整理好會逐步整理完畢 , 會用註解盡量標注使用的位置。
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
/* Color variables */
|
|
85
|
+
--authme-header-color: #ffffff;
|
|
86
|
+
--authme-outer: rgba(0, 0, 0, 0.65);
|
|
87
|
+
--authme-menu-footer: #b4b7bd;
|
|
88
|
+
|
|
89
|
+
--authme-divide: #e1e3e5;
|
|
90
|
+
--authme-disable: #dadada;
|
|
91
|
+
|
|
92
|
+
/* Custom and brand colors */
|
|
93
|
+
--authme-custom__primary-1: var(
|
|
94
|
+
--authme-secondary
|
|
95
|
+
); // 使用位置: 選擇國家的下拉選單
|
|
96
|
+
|
|
97
|
+
/* Button and shadow */
|
|
98
|
+
|
|
99
|
+
/* Scanner and camera */
|
|
100
|
+
--authme-liveness-scanner-pass-color: var(
|
|
101
|
+
--authme-scanning_color
|
|
102
|
+
); // 活體成功的顏色。
|
|
103
|
+
--authme-scanner-error-color: var(--authme-white); // 目前 Error 保持初始色調
|
|
104
|
+
--authme-liveness-scanner-error-color: #ff7070; // 活體 error 的顏色。
|
|
105
|
+
|
|
106
|
+
--authme-scanner-fraud-scanning: #7cfff9; // 舊防偽的箭頭顏色,目前未使用
|
|
107
|
+
|
|
108
|
+
/* Loading and animation */
|
|
109
|
+
|
|
110
|
+
--authme-outer-opaque: #ffffff; // Web SDK 初始 loading 的顏色。
|
|
111
|
+
--authme-outer-opaque-text: #000000; // Web SDK 初始 loading 的顏色。
|
|
112
|
+
|
|
113
|
+
// 舊版控制 svg arrow 的方法,目前是直接在 lottie 操作變數使用。
|
|
114
|
+
--authme-lottie-arrow-color: unset;
|
|
115
|
+
--authme-lottie-scan-color: unset;
|
|
116
|
+
--authme-lottie-success-color: unset;
|
|
117
|
+
|
|
118
|
+
/* Layers and z-index */
|
|
119
|
+
--authme-layers-0-z-index: 100;
|
|
120
|
+
--authme-layers-1-z-index: 101;
|
|
121
|
+
--authme-layers-2-z-index: 102;
|
|
122
|
+
--authme-layers-3-z-index: 103;
|
|
123
|
+
--authme-layers-4-z-index: 104;
|
|
124
|
+
--authme-layers-5-z-index: 105;
|
|
125
|
+
--authme-layers-close-z-index: 106;
|
|
126
|
+
/* Country select */
|
|
127
|
+
--authme-country-select-dropdown-transition-duration: 0.3s;
|
|
128
|
+
--authme-country-select-dropdown-animation-duration: 0.5s;
|
|
129
|
+
|
|
130
|
+
/* Container
|
|
131
|
+
* 容器的顏色,暫時不修改,未來需要整理。
|
|
132
|
+
*/
|
|
133
|
+
--authme-container-border-color: #ebebeb;
|
|
134
|
+
--authme-container-bg-color: #ffffff;
|
|
135
|
+
--authme-container-bg-active-color: #f9f9f9;
|
|
136
|
+
|
|
137
|
+
/* Picture button */
|
|
138
|
+
--authme-picture-button: #00c1b6; // showPictureButton = true 的時候的顏色,不確定該功能的 spec
|
|
139
|
+
|
|
140
|
+
/* Tutorial arrow */
|
|
141
|
+
--authme-tutorial-arrow: var(--authme-scanning_color); // 防偽教學的箭頭顏色
|
|
142
|
+
|
|
143
|
+
--authme-rotate-arrow: #00c1b6;
|
|
144
|
+
}
|