@incodetech/web 2.0.0-alpha.2 → 2.0.0-alpha.4
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/{styles/core.css → base.css} +53 -57
- package/dist/email/email.es.js +1 -1
- package/dist/email/styles.css +11 -11
- package/dist/flow/styles.css +688 -1
- package/dist/{incodeModule-BF5MX9GT.js → incodeModule-Ct9jp5k6.js} +22 -19
- package/dist/index.es.js +18 -18
- package/dist/phone/phone.es.js +1 -1
- package/dist/phone/styles.css +31 -31
- package/dist/selfie/selfie.es.js +16 -16
- package/dist/selfie/styles.css +0 -51
- package/dist/themes/dark.css +652 -0
- package/dist/types/dark.d.ts +1 -0
- package/dist/types/light.d.ts +1 -0
- package/dist/types/themes/light.d.ts +1 -0
- package/package.json +12 -6
- package/.turbo/turbo-build.log +0 -58
- package/.turbo/turbo-coverage.log +0 -23
- package/.turbo/turbo-format.log +0 -6
- package/.turbo/turbo-lint$colon$fix.log +0 -6
- package/.turbo/turbo-lint.log +0 -6
- package/.turbo/turbo-test.log +0 -1033
- package/.turbo/turbo-typecheck.log +0 -5
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/email/email.tsx.html +0 -850
- package/coverage/email/emailInput.tsx.html +0 -340
- package/coverage/email/index.html +0 -131
- package/coverage/favicon.png +0 -0
- package/coverage/flow/flow.tsx.html +0 -961
- package/coverage/flow/flowCompleted.tsx.html +0 -448
- package/coverage/flow/flowInit.ts.html +0 -367
- package/coverage/flow/flowStart.tsx.html +0 -208
- package/coverage/flow/index.html +0 -221
- package/coverage/flow/preloadFlow.ts.html +0 -598
- package/coverage/flow/unsupportedModule.tsx.html +0 -202
- package/coverage/flow/useFlowInitialization.ts.html +0 -469
- package/coverage/flow/useModuleLoader.ts.html +0 -361
- package/coverage/hooks/index.html +0 -116
- package/coverage/hooks/useManager.ts.html +0 -205
- package/coverage/index.html +0 -401
- package/coverage/permissions/boldWithArrow.tsx.html +0 -208
- package/coverage/permissions/denied.tsx.html +0 -172
- package/coverage/permissions/deniedAndroid.tsx.html +0 -253
- package/coverage/permissions/deniedDesktop.tsx.html +0 -277
- package/coverage/permissions/deniedIOS.tsx.html +0 -304
- package/coverage/permissions/deniedInstructions.tsx.html +0 -142
- package/coverage/permissions/iconWrapper.tsx.html +0 -130
- package/coverage/permissions/index.html +0 -251
- package/coverage/permissions/learnMore.tsx.html +0 -340
- package/coverage/permissions/numberedStep.tsx.html +0 -127
- package/coverage/permissions/permissions.tsx.html +0 -289
- package/coverage/phone/index.html +0 -116
- package/coverage/phone/phoneInput.tsx.html +0 -832
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/selfie/index.html +0 -131
- package/coverage/selfie/selfie.tsx.html +0 -334
- package/coverage/selfie/tutorial.tsx.html +0 -214
- package/coverage/shared/baseTutorial/baseTutorial.tsx.html +0 -250
- package/coverage/shared/baseTutorial/index.html +0 -131
- package/coverage/shared/baseTutorial/replaceBaseTutorial.ts.html +0 -289
- package/coverage/shared/button/button.tsx.html +0 -226
- package/coverage/shared/button/index.html +0 -116
- package/coverage/shared/componentRoot/incodeComponent.tsx.html +0 -121
- package/coverage/shared/componentRoot/index.html +0 -116
- package/coverage/shared/countries/countries.ts.html +0 -502
- package/coverage/shared/countries/index.html +0 -116
- package/coverage/shared/icons/chevronDown.tsx.html +0 -151
- package/coverage/shared/icons/index.html +0 -131
- package/coverage/shared/icons/successIcon.tsx.html +0 -163
- package/coverage/shared/loader/index.html +0 -116
- package/coverage/shared/loader/loadingIcon.tsx.html +0 -286
- package/coverage/shared/otpInput/index.html +0 -116
- package/coverage/shared/otpInput/otpInput.tsx.html +0 -808
- package/coverage/shared/page/index.html +0 -146
- package/coverage/shared/page/page.tsx.html +0 -358
- package/coverage/shared/page/pageUiConfig.ts.html +0 -277
- package/coverage/shared/page/verifiedByIncode.tsx.html +0 -310
- package/coverage/shared/spacer/index.html +0 -116
- package/coverage/shared/spacer/spacer.tsx.html +0 -349
- package/coverage/shared/spinner/index.html +0 -116
- package/coverage/shared/spinner/spinner.tsx.html +0 -280
- package/coverage/shared/title/index.html +0 -116
- package/coverage/shared/title/title.tsx.html +0 -121
- package/coverage/shared/uiConfig/index.html +0 -116
- package/coverage/shared/uiConfig/uiConfig.ts.html +0 -193
- package/coverage/shared/webComponent/incodeModule.ts.html +0 -172
- package/coverage/shared/webComponent/index.html +0 -131
- package/coverage/shared/webComponent/registerIncodeElement.ts.html +0 -130
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/styles/cn.tsx.html +0 -148
- package/coverage/styles/fetchTheme.ts.html +0 -349
- package/coverage/styles/index.html +0 -131
- package/dev/README.md +0 -163
- package/dev/getToken.ts +0 -36
- package/dev/headless.html +0 -875
- package/dev/index.html +0 -366
- package/dev/main-headless.tsx +0 -1332
- package/dev/main-orchestrated-flow.tsx +0 -1158
- package/dev/main-preact.tsx +0 -323
- package/dev/main-simplified.tsx +0 -123
- package/dev/main-web-component.tsx +0 -256
- package/dev/main.tsx +0 -332
- package/dev/manual.html +0 -27
- package/dev/orchestrated-flow.html +0 -64
- package/dev/simplified.html +0 -64
- package/dev/tiktok-logo.svg +0 -7
- package/dist/asset-manifest.json +0 -18
- package/src/defineCustomElement.tsx +0 -30
- package/src/email/email.test.tsx +0 -368
- package/src/email/email.tsx +0 -255
- package/src/email/emailInput.test.tsx +0 -264
- package/src/email/emailInput.tsx +0 -85
- package/src/email/styles.css +0 -59
- package/src/flow/flow.test.tsx +0 -796
- package/src/flow/flow.tsx +0 -292
- package/src/flow/flowCompleted.css +0 -30
- package/src/flow/flowCompleted.test.tsx +0 -331
- package/src/flow/flowCompleted.tsx +0 -121
- package/src/flow/flowInit.test.ts +0 -264
- package/src/flow/flowInit.ts +0 -94
- package/src/flow/flowStart.css +0 -58
- package/src/flow/flowStart.test.tsx +0 -49
- package/src/flow/flowStart.tsx +0 -41
- package/src/flow/incode-logo.svg +0 -8
- package/src/flow/index.ts +0 -7
- package/src/flow/preloadFlow.test.ts +0 -421
- package/src/flow/preloadFlow.ts +0 -171
- package/src/flow/styles.css +0 -9
- package/src/flow/unsupportedModule.css +0 -21
- package/src/flow/unsupportedModule.tsx +0 -39
- package/src/flow/useFlowInitialization.test.tsx +0 -292
- package/src/flow/useFlowInitialization.ts +0 -128
- package/src/flow/useModuleLoader.test.tsx +0 -212
- package/src/flow/useModuleLoader.ts +0 -92
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useManager.test.ts +0 -91
- package/src/hooks/useManager.ts +0 -40
- package/src/i18n/index.ts +0 -3
- package/src/i18n/instance.ts +0 -16
- package/src/i18n/setup.ts +0 -184
- package/src/i18n/useTranslation.ts +0 -42
- package/src/index.ts +0 -27
- package/src/permissions/assets/android-dots-icon.svg +0 -7
- package/src/permissions/assets/android-settings-icon.svg +0 -16
- package/src/permissions/assets/android-toggle-icon.svg +0 -20
- package/src/permissions/assets/bank-card-icon.svg +0 -14
- package/src/permissions/assets/camera-icon.svg +0 -12
- package/src/permissions/assets/camera-ios.svg +0 -53
- package/src/permissions/assets/check-icon.svg +0 -8
- package/src/permissions/assets/chrome-icon.svg +0 -43
- package/src/permissions/assets/password-icon.svg +0 -11
- package/src/permissions/assets/permissions-img.svg +0 -51
- package/src/permissions/assets/safari-icon.svg +0 -37
- package/src/permissions/assets/settings-icon.svg +0 -33
- package/src/permissions/assets/toggle-icon.svg +0 -19
- package/src/permissions/assets/warning-icon.svg +0 -6
- package/src/permissions/boldWithArrow.css +0 -9
- package/src/permissions/boldWithArrow.tsx +0 -41
- package/src/permissions/denied.css +0 -37
- package/src/permissions/denied.tsx +0 -29
- package/src/permissions/deniedAndroid.tsx +0 -56
- package/src/permissions/deniedDesktop.css +0 -9
- package/src/permissions/deniedDesktop.tsx +0 -64
- package/src/permissions/deniedIOS.tsx +0 -73
- package/src/permissions/deniedInstructions.tsx +0 -19
- package/src/permissions/iconWrapper.css +0 -9
- package/src/permissions/iconWrapper.tsx +0 -15
- package/src/permissions/learnMore.css +0 -37
- package/src/permissions/learnMore.tsx +0 -85
- package/src/permissions/numberedStep.css +0 -13
- package/src/permissions/numberedStep.tsx +0 -14
- package/src/permissions/permissions.css +0 -13
- package/src/permissions/permissions.tsx +0 -68
- package/src/phone/phone.tsx +0 -246
- package/src/phone/phoneInput.test.tsx +0 -275
- package/src/phone/phoneInput.tsx +0 -249
- package/src/phone/styles.css +0 -158
- package/src/selfie/cameraButton.css +0 -13
- package/src/selfie/cameraButton.tsx +0 -35
- package/src/selfie/capture.css +0 -57
- package/src/selfie/capture.tsx +0 -232
- package/src/selfie/errorModal.tsx +0 -218
- package/src/selfie/errorModalContent.css +0 -33
- package/src/selfie/errorModalContent.tsx +0 -44
- package/src/selfie/faceOutline.css +0 -5
- package/src/selfie/faceOutline.tsx +0 -22
- package/src/selfie/loadingBorder.css +0 -12
- package/src/selfie/loadingBorder.tsx +0 -77
- package/src/selfie/manualCaptureButton.css +0 -13
- package/src/selfie/manualCaptureButton.tsx +0 -35
- package/src/selfie/noMoreAttemptsModal.tsx +0 -44
- package/src/selfie/notification.css +0 -9
- package/src/selfie/notification.tsx +0 -36
- package/src/selfie/retryErrorModal.tsx +0 -56
- package/src/selfie/selfie.test.tsx +0 -458
- package/src/selfie/selfie.tsx +0 -83
- package/src/selfie/selfieTutorial.json +0 -2626
- package/src/selfie/styles.css +0 -1
- package/src/selfie/tutorial.test.tsx +0 -200
- package/src/selfie/tutorial.tsx +0 -43
- package/src/setup.ts +0 -33
- package/src/shared/baseTutorial/baseTutorial.css +0 -21
- package/src/shared/baseTutorial/baseTutorial.test.tsx +0 -184
- package/src/shared/baseTutorial/baseTutorial.tsx +0 -55
- package/src/shared/baseTutorial/replaceBaseTutorial.test.ts +0 -267
- package/src/shared/baseTutorial/replaceBaseTutorial.ts +0 -68
- package/src/shared/button/button.css +0 -55
- package/src/shared/button/button.test.tsx +0 -101
- package/src/shared/button/button.tsx +0 -47
- package/src/shared/componentRoot/incodeComponent.tsx +0 -12
- package/src/shared/countries/countries.test.ts +0 -75
- package/src/shared/countries/countries.ts +0 -139
- package/src/shared/countries/index.ts +0 -6
- package/src/shared/icons/chevronDown.tsx +0 -22
- package/src/shared/icons/index.ts +0 -2
- package/src/shared/icons/successIcon.css +0 -5
- package/src/shared/icons/successIcon.test.tsx +0 -40
- package/src/shared/icons/successIcon.tsx +0 -26
- package/src/shared/loader/loadingIcon.css +0 -28
- package/src/shared/loader/loadingIcon.tsx +0 -67
- package/src/shared/lottie/lottie.tsx +0 -108
- package/src/shared/otpInput/otpInput.css +0 -85
- package/src/shared/otpInput/otpInput.test.tsx +0 -356
- package/src/shared/otpInput/otpInput.tsx +0 -241
- package/src/shared/page/incode-logo.svg +0 -3
- package/src/shared/page/page.css +0 -47
- package/src/shared/page/page.test.tsx +0 -97
- package/src/shared/page/page.tsx +0 -91
- package/src/shared/page/pageUiConfig.test.ts +0 -112
- package/src/shared/page/pageUiConfig.ts +0 -64
- package/src/shared/page/verifiedByIncode.css +0 -5
- package/src/shared/page/verifiedByIncode.tsx +0 -75
- package/src/shared/spacer/spacer.css +0 -149
- package/src/shared/spacer/spacer.test.tsx +0 -143
- package/src/shared/spacer/spacer.tsx +0 -88
- package/src/shared/spinner/index.ts +0 -2
- package/src/shared/spinner/spinner.css +0 -28
- package/src/shared/spinner/spinner.test.tsx +0 -82
- package/src/shared/spinner/spinner.tsx +0 -65
- package/src/shared/title/title.css +0 -7
- package/src/shared/title/title.tsx +0 -12
- package/src/shared/uiConfig/uiConfig.ts +0 -36
- package/src/shared/webComponent/incodeModule.ts +0 -29
- package/src/shared/webComponent/registerIncodeElement.ts +0 -15
- package/src/styles/__mocks__/fetchTheme.ts +0 -19
- package/src/styles/applyTheme.ts +0 -37
- package/src/styles/cn.test.tsx +0 -57
- package/src/styles/cn.tsx +0 -21
- package/src/styles/core.css +0 -12
- package/src/styles/fetchTheme.test.ts +0 -390
- package/src/styles/fetchTheme.ts +0 -88
- package/src/styles/generatePalette.ts +0 -111
- package/src/styles/reset.css +0 -65
- package/src/styles/resolveCssVariableToHex.ts +0 -28
- package/src/styles/tailwind.css +0 -291
- package/src/styles/themeTypes.ts +0 -18
- package/src/styles/tokens/colors.css +0 -190
- package/src/styles/tokens/components.css +0 -174
- package/src/styles/tokens/index.css +0 -4
- package/src/styles/tokens/primitives.css +0 -129
- package/src/styles/tokens/semantic.css +0 -51
- package/src/svg.d.ts +0 -4
- package/src/types/assets.d.ts +0 -1
- package/src/types/custom-elements.d.ts +0 -104
- package/tsconfig.json +0 -22
- package/vite.config.ts +0 -260
- package/vitest.config.ts +0 -40
- package/vitest.setup.ts +0 -16
- /package/dist/{styles/tokens.css → themes/light.css} +0 -0
- /package/dist/types/{core.d.ts → base.d.ts} +0 -0
- /package/dist/types/{styles/core.d.ts → themes/dark.d.ts} +0 -0
package/dist/phone/styles.css
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.IncodePhoneInput, .IncodePhoneInputContainer {
|
|
18
|
+
.IncodePhonePage .IncodePhoneInput, .IncodePhonePage .IncodePhoneInputContainer {
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
align-items: center;
|
|
21
21
|
width: 100%;
|
|
22
22
|
display: flex;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.IncodePhoneInputRow {
|
|
25
|
+
.IncodePhonePage .IncodePhoneInputRow {
|
|
26
26
|
align-items: stretch;
|
|
27
27
|
gap: var(--spacing-8, var(--spacing-8, 8px));
|
|
28
28
|
width: 100%;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
position: relative;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.IncodePhoneInputWrapper {
|
|
34
|
+
.IncodePhonePage .IncodePhoneInputWrapper {
|
|
35
35
|
border-radius: var(--radius-small, var(--border-radius-small));
|
|
36
36
|
border-style: var(--tw-border-style);
|
|
37
37
|
border-width: 1px;
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.IncodePhoneInputWrapper:focus-within {
|
|
50
|
+
.IncodePhonePage .IncodePhoneInputWrapper:focus-within {
|
|
51
51
|
border-color: var(--color-input-border-active, var(--input-border-active));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.IncodePhoneInputWrapper.IncodePhoneInputWrapperError {
|
|
54
|
+
.IncodePhonePage .IncodePhoneInputWrapper.IncodePhoneInputWrapperError {
|
|
55
55
|
border-color: var(--color-input-border-negative, var(--input-border-negative));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.IncodePhoneInputWrapper.IncodePhoneInputWrapperDisabled {
|
|
58
|
+
.IncodePhonePage .IncodePhoneInputWrapper.IncodePhoneInputWrapperDisabled {
|
|
59
59
|
border-color: var(--color-input-border-disabled, var(--input-border-disabled));
|
|
60
60
|
background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.IncodePhoneCountrySelector {
|
|
63
|
+
.IncodePhonePage .IncodePhoneCountrySelector {
|
|
64
64
|
border-radius: var(--radius-small, var(--border-radius-small));
|
|
65
65
|
border-style: var(--tw-border-style);
|
|
66
66
|
border-width: 1px;
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
position: static;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.IncodePhoneCountrySelector.IncodePhoneCountrySelectorOpen {
|
|
79
|
+
.IncodePhonePage .IncodePhoneCountrySelector.IncodePhoneCountrySelectorOpen {
|
|
80
80
|
border-color: var(--color-input-border-active, var(--input-border-active));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.IncodePhoneCountrySelector.IncodePhoneCountrySelectorDisabled {
|
|
83
|
+
.IncodePhonePage .IncodePhoneCountrySelector.IncodePhoneCountrySelectorDisabled {
|
|
84
84
|
border-color: var(--color-input-border-disabled, var(--input-border-disabled));
|
|
85
85
|
background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.IncodePhoneCountryButton {
|
|
88
|
+
.IncodePhonePage .IncodePhoneCountryButton {
|
|
89
89
|
width: 100%;
|
|
90
90
|
height: 100%;
|
|
91
91
|
padding: var(--spacing-8, var(--spacing-8, 8px));
|
|
@@ -107,23 +107,23 @@
|
|
|
107
107
|
display: flex;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.IncodePhoneCountryButton:disabled {
|
|
110
|
+
.IncodePhonePage .IncodePhoneCountryButton:disabled {
|
|
111
111
|
cursor: not-allowed;
|
|
112
112
|
color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.IncodePhoneCountryButton:focus {
|
|
115
|
+
.IncodePhonePage .IncodePhoneCountryButton:focus {
|
|
116
116
|
--tw-outline-style: none;
|
|
117
117
|
outline-style: none;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.IncodePhoneCountryFlag {
|
|
120
|
+
.IncodePhonePage .IncodePhoneCountryFlag {
|
|
121
121
|
font-size: var(--text-24, var(--primitive-typography-size-24));
|
|
122
122
|
--tw-leading: 1;
|
|
123
123
|
line-height: 1;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.IncodePhoneCountryCode {
|
|
126
|
+
.IncodePhonePage .IncodePhoneCountryCode {
|
|
127
127
|
margin-left: var(--spacing-4, var(--spacing-4, 4px));
|
|
128
128
|
font-size: var(--text-18, var(--primitive-typography-size-18));
|
|
129
129
|
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
color: var(--color-text-body-primary, var(--text-body-primary));
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.IncodePhoneCountryArrow {
|
|
135
|
+
.IncodePhonePage .IncodePhoneCountryArrow {
|
|
136
136
|
margin-left: var(--spacing-8, var(--spacing-8, 8px));
|
|
137
137
|
height: var(--spacing-24, var(--spacing-24, 24px));
|
|
138
138
|
width: var(--spacing-24, var(--spacing-24, 24px));
|
|
@@ -144,15 +144,15 @@
|
|
|
144
144
|
transition-duration: .2s;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.IncodePhoneCountryArrowUp {
|
|
147
|
+
.IncodePhonePage .IncodePhoneCountryArrowUp {
|
|
148
148
|
rotate: 180deg;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
.IncodePhoneCountryButton:disabled .IncodePhoneCountryArrow {
|
|
151
|
+
.IncodePhonePage .IncodePhoneCountryButton:disabled .IncodePhoneCountryArrow {
|
|
152
152
|
color: var(--color-icon-neutral-300, var(--icon-neutral-300));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.IncodePhoneCountryDropdown {
|
|
155
|
+
.IncodePhonePage .IncodePhoneCountryDropdown {
|
|
156
156
|
top: 100%;
|
|
157
157
|
right: var(--spacing-0, var(--spacing-none, 0px));
|
|
158
158
|
left: var(--spacing-0, var(--spacing-none, 0px));
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
box-shadow: 0 4px 16px #0000001f;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.IncodePhoneCountryOption {
|
|
173
|
+
.IncodePhonePage .IncodePhoneCountryOption {
|
|
174
174
|
cursor: pointer;
|
|
175
175
|
align-items: center;
|
|
176
176
|
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
@@ -192,27 +192,27 @@
|
|
|
192
192
|
display: flex;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.IncodePhoneCountryOption:hover {
|
|
195
|
+
.IncodePhonePage .IncodePhoneCountryOption:hover {
|
|
196
196
|
background-color: var(--color-surface-neutral-100, var(--surface-neutral-100));
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.IncodePhoneCountryOption:focus {
|
|
199
|
+
.IncodePhonePage .IncodePhoneCountryOption:focus {
|
|
200
200
|
background-color: var(--color-surface-neutral-100, var(--surface-neutral-100));
|
|
201
201
|
--tw-outline-style: none;
|
|
202
202
|
outline-style: none;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
.IncodePhoneCountryOptionSelected, .IncodePhoneCountryOptionSelected:hover {
|
|
205
|
+
.IncodePhonePage .IncodePhoneCountryOptionSelected, .IncodePhonePage .IncodePhoneCountryOptionSelected:hover {
|
|
206
206
|
background-color: var(--color-surface-brand-50, var(--surface-brand-50));
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
.IncodePhoneCountryOptionCode {
|
|
209
|
+
.IncodePhonePage .IncodePhoneCountryOptionCode {
|
|
210
210
|
min-width: 52px;
|
|
211
211
|
font-size: var(--text-16, var(--primitive-typography-size-16));
|
|
212
212
|
color: var(--color-text-body-secondary, var(--text-body-secondary));
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
.IncodePhoneCountryOptionName {
|
|
215
|
+
.IncodePhonePage .IncodePhoneCountryOptionName {
|
|
216
216
|
text-overflow: ellipsis;
|
|
217
217
|
white-space: nowrap;
|
|
218
218
|
font-size: var(--text-16, var(--primitive-typography-size-16));
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
overflow: hidden;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.IncodePhoneInputField {
|
|
224
|
+
.IncodePhonePage .IncodePhoneInputField {
|
|
225
225
|
border-style: var(--tw-border-style);
|
|
226
226
|
border-width: var(--border-width-none, var(--border-none));
|
|
227
227
|
--tw-border-style: none;
|
|
@@ -239,18 +239,18 @@
|
|
|
239
239
|
outline-style: none;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
.IncodePhoneInputField::placeholder {
|
|
242
|
+
.IncodePhonePage .IncodePhoneInputField::placeholder {
|
|
243
243
|
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
244
244
|
font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
245
245
|
color: var(--color-input-text-field-placeholder, var(--input-text-field-placeholder));
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
.IncodePhoneInputField:disabled {
|
|
248
|
+
.IncodePhonePage .IncodePhoneInputField:disabled {
|
|
249
249
|
cursor: not-allowed;
|
|
250
250
|
color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
.IncodePhoneInputError {
|
|
253
|
+
.IncodePhonePage .IncodePhoneInputError {
|
|
254
254
|
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
255
255
|
text-align: center;
|
|
256
256
|
font-size: var(--text-14, var(--primitive-typography-size-14));
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
.IncodePhoneInputOptIn {
|
|
262
|
+
.IncodePhonePage .IncodePhoneInputOptIn {
|
|
263
263
|
cursor: pointer;
|
|
264
264
|
align-items: center;
|
|
265
265
|
gap: var(--spacing-8, var(--spacing-8, 8px));
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
display: flex;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
.IncodePhoneInputOptIn input[type="checkbox"] {
|
|
271
|
+
.IncodePhonePage .IncodePhoneInputOptIn input[type="checkbox"] {
|
|
272
272
|
cursor: pointer;
|
|
273
273
|
border-radius: var(--radius-checkbox, var(--checkbox-border-radius));
|
|
274
274
|
width: 18px;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
accent-color: var(--color-checkbox-surface-selected, var(--checkbox-surface-selected));
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
.IncodePhoneInputOptIn span {
|
|
279
|
+
.IncodePhonePage .IncodePhoneInputOptIn span {
|
|
280
280
|
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
281
281
|
font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
282
282
|
-webkit-user-select: none;
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as e, S as c, B as C, b as _, L as
|
|
1
|
+
import { u as e, S as c, B as C, b as _, L as w, a as O } from "../button-DeMZ_34N.js";
|
|
2
2
|
import { createSelfieManager as M } from "@incodetech/core/selfie";
|
|
3
3
|
import { u as d, T as y } from "../title-ng7q7YDh.js";
|
|
4
|
-
import { P as u, g as A, r as P, a as
|
|
5
|
-
import { getBrowser as
|
|
4
|
+
import { P as u, g as A, r as P, a as b, I as x } from "../incodeModule-Ct9jp5k6.js";
|
|
5
|
+
import { getBrowser as B, getDeviceClass as N } from "@incodetech/core";
|
|
6
6
|
import { k as E, g as K, d as v, A as T, y as I } from "../vendor-preact-CK0WeTOR.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
const F = "https://assets.incode.com/@incodetech/
|
|
8
|
+
const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/permissions-img-83924a96.svg", V = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/android-dots-icon-846d605c.svg", k = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/android-settings-icon-8bd49c8d.svg", H = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/android-toggle-icon-03e22d7a.svg", U = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/chrome-icon-4c3b130c.svg", z = () => /* @__PURE__ */ e(
|
|
9
9
|
"svg",
|
|
10
10
|
{
|
|
11
11
|
class: "IncodeBoldWithArrowIcon",
|
|
@@ -82,7 +82,7 @@ const F = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/permiss
|
|
|
82
82
|
}
|
|
83
83
|
return o;
|
|
84
84
|
}), G = () => {
|
|
85
|
-
const { t: i } = d(), n =
|
|
85
|
+
const { t: i } = d(), n = B(), t = Q(n);
|
|
86
86
|
return /* @__PURE__ */ e("div", { class: "IncodeDeniedInstructionsContainer", children: /* @__PURE__ */ e("div", { class: "IncodeDeniedDesktopContainer", children: t.map((s, o) => /* @__PURE__ */ e(E, { children: [
|
|
87
87
|
/* @__PURE__ */ e("div", { class: "IncodeDeniedDesktopStep", children: [
|
|
88
88
|
/* @__PURE__ */ e($, { number: o + 1 }),
|
|
@@ -90,7 +90,7 @@ const F = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/permiss
|
|
|
90
90
|
] }),
|
|
91
91
|
o < t.length - 1 ? /* @__PURE__ */ e("div", { class: "IncodeNumberedStepConnector" }) : null
|
|
92
92
|
] }, s)) }) });
|
|
93
|
-
}, j = "https://assets.incode.com/@incodetech/
|
|
93
|
+
}, j = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/camera-ios-9eac3be1.svg", R = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/safari-icon-7823d73d.svg", q = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/settings-icon-9743cbda.svg", X = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/toggle-icon-351f86ce.svg", J = () => {
|
|
94
94
|
const { t: i } = d(), n = [
|
|
95
95
|
{
|
|
96
96
|
icon: q,
|
|
@@ -141,7 +141,7 @@ const F = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/permiss
|
|
|
141
141
|
] })
|
|
142
142
|
] }, t.boldKey)) }) });
|
|
143
143
|
}, ee = () => {
|
|
144
|
-
const i =
|
|
144
|
+
const i = N();
|
|
145
145
|
return i === "ios" ? /* @__PURE__ */ e(J, {}) : i === "android" ? /* @__PURE__ */ e(W, {}) : /* @__PURE__ */ e(G, {});
|
|
146
146
|
}, ie = ({ onRefresh: i }) => {
|
|
147
147
|
const { t: n } = d();
|
|
@@ -152,7 +152,7 @@ const F = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/permiss
|
|
|
152
152
|
/* @__PURE__ */ e(ee, {}),
|
|
153
153
|
/* @__PURE__ */ e("div", { class: "IncodeDeniedActions", children: /* @__PURE__ */ e(C, { onClick: i, children: n("idv2.permissions.denied.refreshPage") }) })
|
|
154
154
|
] });
|
|
155
|
-
}, ne = "https://assets.incode.com/@incodetech/
|
|
155
|
+
}, ne = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/bank-card-icon-6af62350.svg", te = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/camera-icon-b2fc4c1c.svg", se = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/check-icon-b1d1ddd8.svg", oe = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/password-icon-f5257b0b.svg", re = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.4/assets/warning-icon-f3eadd0b.svg", ce = [
|
|
156
156
|
{
|
|
157
157
|
icon: te,
|
|
158
158
|
textKey: "idv2.permissions.learnMorePage.instructions.1"
|
|
@@ -772,19 +772,19 @@ const F = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/permiss
|
|
|
772
772
|
const { t: i } = d();
|
|
773
773
|
return /* @__PURE__ */ e(u, { className: "IncodeCaptureUploadingPage", children: /* @__PURE__ */ e("div", { class: "IncodeCaptureUploadingContainer", children: [
|
|
774
774
|
/* @__PURE__ */ e(c, { size: 160 }),
|
|
775
|
-
/* @__PURE__ */ e("div", { class: "IncodeCaptureUploadingIconContainer", children: /* @__PURE__ */ e(
|
|
775
|
+
/* @__PURE__ */ e("div", { class: "IncodeCaptureUploadingIconContainer", children: /* @__PURE__ */ e(w, { size: 64 }) }),
|
|
776
776
|
/* @__PURE__ */ e(c, { size: 16 }),
|
|
777
777
|
/* @__PURE__ */ e("h2", { class: "IncodeCaptureUploadingTitle", children: i("idv2.capture.processing.uploading") })
|
|
778
778
|
] }) });
|
|
779
779
|
};
|
|
780
780
|
let g = null;
|
|
781
|
-
function
|
|
781
|
+
function we() {
|
|
782
782
|
return g || (g = new Promise((i, n) => {
|
|
783
783
|
const t = document.createElement("script");
|
|
784
784
|
t.src = "https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js", t.onload = () => i(window.lottie), t.onerror = n, document.head.appendChild(t);
|
|
785
785
|
}), g);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Oe({
|
|
788
788
|
animationData: i,
|
|
789
789
|
loop: n = !0,
|
|
790
790
|
autoplay: t = !0,
|
|
@@ -810,7 +810,7 @@ function we({
|
|
|
810
810
|
}, [i, n, t]), I(() => {
|
|
811
811
|
if (!a.current) return;
|
|
812
812
|
let p;
|
|
813
|
-
return
|
|
813
|
+
return we().then((m) => {
|
|
814
814
|
p = m.loadAnimation(l.current), r && p.addEventListener("complete", r);
|
|
815
815
|
}), () => {
|
|
816
816
|
p && (r && p.removeEventListener("complete", r), p.destroy());
|
|
@@ -829,7 +829,7 @@ const Me = ({
|
|
|
829
829
|
const l = A("--surface-brand-500");
|
|
830
830
|
return /* @__PURE__ */ e(u, { className: "IncodeTutorialPage", title: n, subtitle: t, children: [
|
|
831
831
|
/* @__PURE__ */ e("div", { class: "IncodeBaseTutorialContainer", children: /* @__PURE__ */ e("div", { class: "IncodeBaseTutorialAnimationContainer", children: /* @__PURE__ */ e(
|
|
832
|
-
|
|
832
|
+
Oe,
|
|
833
833
|
{
|
|
834
834
|
animationData: P(
|
|
835
835
|
i,
|
|
@@ -878,7 +878,7 @@ const Me = ({
|
|
|
878
878
|
onFinish: n,
|
|
879
879
|
onError: t
|
|
880
880
|
}) => {
|
|
881
|
-
const [s, o] =
|
|
881
|
+
const [s, o] = O(() => M({ config: i }));
|
|
882
882
|
return s.status === "idle" || s.status === "loading" ? null : s.status === "tutorial" ? /* @__PURE__ */ e(ye, { manager: o }) : s.status === "permissions" ? /* @__PURE__ */ e(
|
|
883
883
|
de,
|
|
884
884
|
{
|
|
@@ -886,8 +886,8 @@ const Me = ({
|
|
|
886
886
|
permissionStatus: s.permissionStatus
|
|
887
887
|
}
|
|
888
888
|
) : s.status === "capture" ? /* @__PURE__ */ e(De, { manager: o, state: s, onFinish: () => n?.() }) : s.status === "finished" ? (n?.(), null) : s.status === "closed" ? (t?.(void 0), null) : (s.status === "error" && t?.(s.error), null);
|
|
889
|
-
}, Pe = ({ config: i, onFinish: n, onError: t }) => /* @__PURE__ */ e(
|
|
890
|
-
|
|
889
|
+
}, Pe = ({ config: i, onFinish: n, onError: t }) => /* @__PURE__ */ e(x, { children: i ? /* @__PURE__ */ e(Ae, { config: i, onFinish: n, onError: t }) : null });
|
|
890
|
+
b(Pe, "incode-selfie");
|
|
891
891
|
export {
|
|
892
892
|
Pe as Selfie
|
|
893
893
|
};
|
package/dist/selfie/styles.css
CHANGED
|
@@ -180,57 +180,6 @@
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.IncodeComponent, .IncodeComponent * {
|
|
184
|
-
box-sizing: border-box;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.IncodeComponent {
|
|
188
|
-
font-family: var(--primitive-typography-family-dm-sans), sans-serif;
|
|
189
|
-
-webkit-font-smoothing: antialiased;
|
|
190
|
-
-moz-osx-font-smoothing: grayscale;
|
|
191
|
-
text-rendering: optimizeLegibility;
|
|
192
|
-
color: var(--text-body-primary);
|
|
193
|
-
width: 100%;
|
|
194
|
-
height: 100%;
|
|
195
|
-
margin: 0;
|
|
196
|
-
padding: 0;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.IncodeComponent *, .IncodeComponent :after, .IncodeComponent :before, .IncodeComponent ::backdrop {
|
|
200
|
-
box-sizing: border-box;
|
|
201
|
-
border: 0 solid;
|
|
202
|
-
margin: 0;
|
|
203
|
-
padding: 0;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.IncodeComponent ::file-selector-button {
|
|
207
|
-
box-sizing: border-box;
|
|
208
|
-
border: 0 solid;
|
|
209
|
-
margin: 0;
|
|
210
|
-
padding: 0;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.IncodeComponent h1, .IncodeComponent h2, .IncodeComponent h3, .IncodeComponent h4, .IncodeComponent h5, .IncodeComponent h6 {
|
|
214
|
-
font-size: inherit;
|
|
215
|
-
font-weight: inherit;
|
|
216
|
-
margin: 0;
|
|
217
|
-
padding: 0;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.IncodeComponent ol, .IncodeComponent ul, .IncodeComponent menu {
|
|
221
|
-
list-style: none;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.IncodeComponent img, .IncodeComponent svg, .IncodeComponent video, .IncodeComponent canvas, .IncodeComponent audio, .IncodeComponent iframe, .IncodeComponent embed, .IncodeComponent object {
|
|
225
|
-
vertical-align: middle;
|
|
226
|
-
display: block;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.IncodeComponent img, .IncodeComponent video {
|
|
230
|
-
max-width: 100%;
|
|
231
|
-
height: auto;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
183
|
@property --tw-rotate-x {
|
|
235
184
|
syntax: "*";
|
|
236
185
|
inherits: false
|