@incodetech/web 0.0.0-dev-20260126-4504c5b

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 (48) hide show
  1. package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
  2. package/dist/backdevicelottie-B4NgyWmX.js +29 -0
  3. package/dist/base.css +1634 -0
  4. package/dist/baseTutorial-Be85FuyO.js +383 -0
  5. package/dist/blurdevicelottie-_BZRug1c.js +29 -0
  6. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  7. package/dist/email/email.es.js +137 -0
  8. package/dist/email/styles.css +123 -0
  9. package/dist/flip-animation-COR596wy.js +29 -0
  10. package/dist/flow/flow.es.js +540 -0
  11. package/dist/flow/styles.css +3204 -0
  12. package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
  13. package/dist/glaredevicelottie-DLuIStvb.js +29 -0
  14. package/dist/id/id.es.js +1497 -0
  15. package/dist/id/styles.css +1587 -0
  16. package/dist/id-laser-h-BBV3r3rz.js +29 -0
  17. package/dist/id-laser-v-BTHJaSfx.js +29 -0
  18. package/dist/id-tutorial-B-F5Q28m.js +29 -0
  19. package/dist/incodeModule-DR92HDjR.js +257 -0
  20. package/dist/index.es.js +6 -0
  21. package/dist/instance-B-q0ZREN.js +2140 -0
  22. package/dist/otpInput-Dm1LhnDm.js +151 -0
  23. package/dist/page-CITAo3qf.js +189 -0
  24. package/dist/passport-tutorial-CaYBFTqt.js +29 -0
  25. package/dist/phone/phone.es.js +3442 -0
  26. package/dist/phone/styles.css +305 -0
  27. package/dist/selfie/selfie.es.js +570 -0
  28. package/dist/selfie/styles.css +638 -0
  29. package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
  30. package/dist/setup-BhetRn4n.js +20 -0
  31. package/dist/spinner-CQtj_FFo.js +65 -0
  32. package/dist/themes/dark.css +797 -0
  33. package/dist/themes/light.css +688 -0
  34. package/dist/types/base.d.ts +1 -0
  35. package/dist/types/dark.d.ts +1 -0
  36. package/dist/types/email.d.ts +57 -0
  37. package/dist/types/flow.d.ts +69 -0
  38. package/dist/types/id.d.ts +34 -0
  39. package/dist/types/index.d.ts +38 -0
  40. package/dist/types/light.d.ts +1 -0
  41. package/dist/types/phone.d.ts +58 -0
  42. package/dist/types/selfie.d.ts +31 -0
  43. package/dist/types/styles.d.ts +1 -0
  44. package/dist/types/themes/dark.d.ts +1 -0
  45. package/dist/types/themes/light.d.ts +1 -0
  46. package/dist/uiConfig-DEqynrWx.js +23 -0
  47. package/dist/vendor-preact-CjD4WiuC.js +593 -0
  48. package/package.json +100 -0
@@ -0,0 +1,257 @@
1
+ import { l as m, d as I, y as w, _ as p, J as H, G as f, K as _, k as V } from "./vendor-preact-CjD4WiuC.js";
2
+ var z = 0;
3
+ function s(e, n, t, o, c, r) {
4
+ n || (n = {});
5
+ var a, i, l = n;
6
+ if ("ref" in l) for (i in l = {}, n) i == "ref" ? a = n[i] : l[i] = n[i];
7
+ var d = { type: e, props: l, key: t, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --z, __i: -1, __u: 0, __source: c, __self: r };
8
+ if (typeof e == "function" && (a = e.defaultProps)) for (i in a) l[i] === void 0 && (l[i] = a[i]);
9
+ return m.vnode && m.vnode(d), d;
10
+ }
11
+ function G(e, n = {}) {
12
+ const { autoLoad: t = !0 } = n, [o] = I(e), [c, r] = I(
13
+ () => o.getState()
14
+ );
15
+ return w(() => {
16
+ const a = o.subscribe(r);
17
+ return t && o.load && o.load(), a;
18
+ }, [o, t]), [c, o];
19
+ }
20
+ const h = (...e) => {
21
+ const n = [];
22
+ for (const t of e)
23
+ if (t) {
24
+ if (typeof t == "string")
25
+ n.push(t);
26
+ else if (typeof t == "object")
27
+ for (const [o, c] of Object.entries(t))
28
+ c && n.push(o);
29
+ }
30
+ return n.join(" ");
31
+ }, L = ({
32
+ size: e,
33
+ className: n
34
+ }) => /* @__PURE__ */ s(
35
+ "svg",
36
+ {
37
+ width: e,
38
+ height: e,
39
+ viewBox: "0 0 31 31",
40
+ fill: "none",
41
+ xmlns: "http://www.w3.org/2000/svg",
42
+ class: h("IncodeLoadingIconPrimaryIcon", n),
43
+ children: [
44
+ /* @__PURE__ */ s("title", { children: "Spinner Inner part" }),
45
+ /* @__PURE__ */ s("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
46
+ ]
47
+ }
48
+ ), k = ({
49
+ size: e,
50
+ className: n
51
+ }) => /* @__PURE__ */ s(
52
+ "svg",
53
+ {
54
+ width: e,
55
+ height: e,
56
+ viewBox: "0 0 31 31",
57
+ fill: "none",
58
+ xmlns: "http://www.w3.org/2000/svg",
59
+ class: h("IncodeLoadingIconSecondaryIcon", n),
60
+ children: [
61
+ /* @__PURE__ */ s("title", { children: "Spinner Outer part" }),
62
+ /* @__PURE__ */ s("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })
63
+ ]
64
+ }
65
+ ), x = ({
66
+ size: e = 30,
67
+ secondaryClass: n,
68
+ primaryClass: t
69
+ }) => /* @__PURE__ */ s("div", { class: "IncodeLoadingIcon", children: [
70
+ /* @__PURE__ */ s(k, { size: e, className: n }),
71
+ /* @__PURE__ */ s("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ s(L, { size: e, className: t }) })
72
+ ] }), E = {
73
+ primary: "IncodeButtonPrimary",
74
+ link: "IncodeButtonLink"
75
+ }, J = (e) => {
76
+ const {
77
+ isLoading: n = !1,
78
+ variant: t = "primary",
79
+ class: o,
80
+ type: c = "button",
81
+ children: r,
82
+ disabled: a,
83
+ ...i
84
+ } = e;
85
+ return /* @__PURE__ */ s(
86
+ "button",
87
+ {
88
+ ...i,
89
+ class: h(
90
+ "IncodeButton",
91
+ n ? "IncodeButtonLoading" : "",
92
+ E[t],
93
+ o
94
+ ),
95
+ disabled: a || n,
96
+ type: c,
97
+ children: n ? /* @__PURE__ */ s(x, { size: 30 }) : r
98
+ }
99
+ );
100
+ }, O = /* @__PURE__ */ new Set([
101
+ 0,
102
+ 2,
103
+ 4,
104
+ 8,
105
+ 12,
106
+ 16,
107
+ 20,
108
+ 24,
109
+ 32,
110
+ 40,
111
+ 48,
112
+ 64,
113
+ 80,
114
+ 96,
115
+ 104,
116
+ 120,
117
+ 160,
118
+ 200
119
+ ]), j = (e, n) => n === "horizontal" ? {
120
+ 0: "IncodeSpacerHorizontal0",
121
+ 2: "IncodeSpacerHorizontal2",
122
+ 4: "IncodeSpacerHorizontal4",
123
+ 8: "IncodeSpacerHorizontal8",
124
+ 12: "IncodeSpacerHorizontal12",
125
+ 16: "IncodeSpacerHorizontal16",
126
+ 20: "IncodeSpacerHorizontal20",
127
+ 24: "IncodeSpacerHorizontal24",
128
+ 32: "IncodeSpacerHorizontal32",
129
+ 40: "IncodeSpacerHorizontal40",
130
+ 48: "IncodeSpacerHorizontal48",
131
+ 64: "IncodeSpacerHorizontal64",
132
+ 80: "IncodeSpacerHorizontal80",
133
+ 96: "IncodeSpacerHorizontal96",
134
+ 104: "IncodeSpacerHorizontal104",
135
+ 120: "IncodeSpacerHorizontal120",
136
+ 160: "IncodeSpacerHorizontal160",
137
+ 200: "IncodeSpacerHorizontal200"
138
+ }[e] : {
139
+ 0: "IncodeSpacerVertical0",
140
+ 2: "IncodeSpacerVertical2",
141
+ 4: "IncodeSpacerVertical4",
142
+ 8: "IncodeSpacerVertical8",
143
+ 12: "IncodeSpacerVertical12",
144
+ 16: "IncodeSpacerVertical16",
145
+ 20: "IncodeSpacerVertical20",
146
+ 24: "IncodeSpacerVertical24",
147
+ 32: "IncodeSpacerVertical32",
148
+ 40: "IncodeSpacerVertical40",
149
+ 48: "IncodeSpacerVertical48",
150
+ 64: "IncodeSpacerVertical64",
151
+ 80: "IncodeSpacerVertical80",
152
+ 96: "IncodeSpacerVertical96",
153
+ 104: "IncodeSpacerVertical104",
154
+ 120: "IncodeSpacerVertical120",
155
+ 160: "IncodeSpacerVertical160",
156
+ 200: "IncodeSpacerVertical200"
157
+ }[e], R = ({
158
+ size: e,
159
+ className: n,
160
+ direction: t = "vertical"
161
+ }) => e === void 0 ? /* @__PURE__ */ s("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (t === "horizontal" ? "w" : t === "vertical" ? "h" : void 0) ? typeof e == "number" && O.has(e) ? /* @__PURE__ */ s("div", { class: `${j(e, t)} ${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` });
162
+ function u() {
163
+ return u = Object.assign ? Object.assign.bind() : function(e) {
164
+ for (var n = 1; n < arguments.length; n++) {
165
+ var t = arguments[n];
166
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
167
+ }
168
+ return e;
169
+ }, u.apply(this, arguments);
170
+ }
171
+ function b(e, n) {
172
+ if (e == null) return {};
173
+ var t, o, c = {}, r = Object.keys(e);
174
+ for (o = 0; o < r.length; o++) n.indexOf(t = r[o]) >= 0 || (c[t] = e[t]);
175
+ return c;
176
+ }
177
+ var M = ["context", "children"], P = ["useFragment"];
178
+ function $(e, n, t, o) {
179
+ function c() {
180
+ var r, a = Reflect.construct(HTMLElement, [], c);
181
+ return a._vdomComponent = e, o && o.shadow ? (a._root = a.attachShadow({ mode: o.mode || "open", serializable: (r = o.serializable) != null && r }), o.adoptedStyleSheets && (a._root.adoptedStyleSheets = o.adoptedStyleSheets)) : a._root = a, a;
182
+ }
183
+ return (c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = function() {
184
+ T.call(this, o);
185
+ }, c.prototype.attributeChangedCallback = A, c.prototype.disconnectedCallback = F, t = t || e.observedAttributes || Object.keys(e.propTypes || {}), c.observedAttributes = t, e.formAssociated && (c.formAssociated = !0), t.forEach(function(r) {
186
+ Object.defineProperty(c.prototype, r, { get: function() {
187
+ return this._vdom ? this._vdom.props[r] : this._props[r];
188
+ }, set: function(a) {
189
+ this._vdom ? this.attributeChangedCallback(r, null, a) : (this._props || (this._props = {}), this._props[r] = a);
190
+ var i = typeof a;
191
+ a != null && i !== "string" && i !== "boolean" && i !== "number" || this.setAttribute(r, a);
192
+ } });
193
+ }), customElements.define(n || e.tagName || e.displayName || e.name, c), c;
194
+ }
195
+ function B(e) {
196
+ this.getChildContext = function() {
197
+ return e.context;
198
+ };
199
+ var n = e.children, t = b(e, M);
200
+ return _(n, t);
201
+ }
202
+ function T(e) {
203
+ var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
204
+ this.dispatchEvent(n), this._vdom = p(B, u({}, this._props, { context: n.detail.context }), y(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? H : f)(this._vdom, this._root);
205
+ }
206
+ function g(e) {
207
+ return e.replace(/-(\w)/g, function(n, t) {
208
+ return t ? t.toUpperCase() : "";
209
+ });
210
+ }
211
+ function A(e, n, t) {
212
+ if (this._vdom) {
213
+ var o = {};
214
+ o[e] = t = t ?? void 0, o[g(e)] = t, this._vdom = _(this._vdom, o), f(this._vdom, this._root);
215
+ }
216
+ }
217
+ function F() {
218
+ f(this._vdom = null, this._root);
219
+ }
220
+ function S(e, n) {
221
+ var t = this, o = e.useFragment, c = b(e, P);
222
+ return p(o ? V : "slot", u({}, c, { ref: function(r) {
223
+ r ? (t.ref = r, t._listener || (t._listener = function(a) {
224
+ a.stopPropagation(), a.detail.context = n;
225
+ }, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
226
+ } }));
227
+ }
228
+ function y(e, n, t) {
229
+ if (e.nodeType === 3) return e.data;
230
+ if (e.nodeType !== 1) return null;
231
+ var o = [], c = {}, r = 0, a = e.attributes, i = e.childNodes;
232
+ for (r = a.length; r--; ) a[r].name !== "slot" && (c[a[r].name] = a[r].value, c[g(a[r].name)] = a[r].value);
233
+ for (r = i.length; r--; ) {
234
+ var l = y(i[r], null, t), d = i[r].slot;
235
+ d ? c[d] = p(S, { name: d }, l) : o[r] = l;
236
+ }
237
+ var v = !(!t || !t.shadow), C = n ? p(S, { useFragment: !v }, o) : o;
238
+ return !v && n && (e.innerHTML = ""), p(n || e.nodeName.toLowerCase(), c, C);
239
+ }
240
+ function N(e, n, t) {
241
+ $(e, n, [...t], {
242
+ shadow: !1
243
+ });
244
+ }
245
+ const Z = ["config", "onFinish", "onError"];
246
+ function U(e, n) {
247
+ N(e, n, Z);
248
+ }
249
+ export {
250
+ J as B,
251
+ x as L,
252
+ R as S,
253
+ G as a,
254
+ h as c,
255
+ U as r,
256
+ s as u
257
+ };
@@ -0,0 +1,6 @@
1
+ import { s as e } from "./setup-BhetRn4n.js";
2
+ import { s as t } from "./uiConfig-DEqynrWx.js";
3
+ export {
4
+ t as setUiConfig,
5
+ e as setup
6
+ };