@incodetech/web 2.0.0-alpha.3 → 2.0.0-alpha.5

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.
@@ -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;
@@ -1,11 +1,11 @@
1
- import { u as e, S as c, B as C, b as _, L as O, a as w } from "../button-DeMZ_34N.js";
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 x, I as B } from "../incodeModule-BF5MX9GT.js";
5
- import { getBrowser as N, getDeviceClass as b } from "@incodetech/core";
4
+ import { P as u, g as A, r as P, a as b, I as x } from "../incodeModule-DFQUQvfY.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/ui/2.0.0-alpha.1/assets/permissions-img-83924a96.svg", V = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/android-dots-icon-846d605c.svg", k = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/android-settings-icon-8bd49c8d.svg", H = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/android-toggle-icon-03e22d7a.svg", U = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/chrome-icon-4c3b130c.svg", z = () => /* @__PURE__ */ e(
8
+ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permissions-img-83924a96.svg", V = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/android-dots-icon-846d605c.svg", k = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/android-settings-icon-8bd49c8d.svg", H = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/android-toggle-icon-03e22d7a.svg", U = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/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 = N(), t = Q(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/ui/2.0.0-alpha.1/assets/camera-ios-9eac3be1.svg", R = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/safari-icon-7823d73d.svg", q = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/settings-icon-9743cbda.svg", X = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/toggle-icon-351f86ce.svg", J = () => {
93
+ }, j = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/camera-ios-9eac3be1.svg", R = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/safari-icon-7823d73d.svg", q = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/settings-icon-9743cbda.svg", X = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/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 = b();
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/ui/2.0.0-alpha.1/assets/bank-card-icon-6af62350.svg", te = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/camera-icon-b2fc4c1c.svg", se = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/check-icon-b1d1ddd8.svg", oe = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/password-icon-f5257b0b.svg", re = "https://assets.incode.com/@incodetech/ui/2.0.0-alpha.1/assets/warning-icon-f3eadd0b.svg", ce = [
155
+ }, ne = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/bank-card-icon-6af62350.svg", te = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/camera-icon-b2fc4c1c.svg", se = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/check-icon-b1d1ddd8.svg", oe = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/password-icon-f5257b0b.svg", re = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/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(O, { size: 64 }) }),
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 Oe() {
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 we({
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 Oe().then((m) => {
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
- we,
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] = w(() => M({ config: i }));
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(B, { children: i ? /* @__PURE__ */ e(Ae, { config: i, onFinish: n, onError: t }) : null });
890
- x(Pe, "incode-selfie");
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
  };
@@ -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