@incodetech/web 0.0.0-dev-20260217-d3ca2b2 → 0.0.0-dev-20260218-b7223be

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.
@@ -786,7 +786,6 @@
786
786
  --text-body-secondary: var(--primitive-color-gray-300);
787
787
  --text-body-tertiary: var(--primitive-color-gray-500);
788
788
  --text-body-0: var(--primitive-color-gray-1000);
789
- --text-body-0-static: var(--primitive-color-gray-1000);
790
789
 
791
790
  /* Text / Link */
792
791
 
@@ -1,10 +1,10 @@
1
- import { u as t, S as a, B as h, c as m, L as I } from "./incodeModule-SZbHLd1r.js";
1
+ import { u as t, S as a, B as h, c as m, L as I } from "./incodeModule-DPTWfWvu.js";
2
2
  import { g as L, d as R, k as g, A as D, y as T } from "./vendor-preact-CjD4WiuC.js";
3
- import { u as d, S, T as v } from "./spinner-BcMtCrDz.js";
4
- import { S as A } from "./successIcon-_WpNP6Fl.js";
5
- import { P as u } from "./incodeComponent-DWkUggQZ.js";
3
+ import { u as d, S, T as v } from "./spinner-BERSXem_.js";
4
+ import { S as A } from "./successIcon-DV200b2L.js";
5
+ import { P as u } from "./incodeComponent-3T8Qyjnt.js";
6
6
  import "./instance-B-q0ZREN.js";
7
- import { B as M } from "./baseTutorial-u4GTs22Q.js";
7
+ import { B as M } from "./baseTutorial-B9sBivde.js";
8
8
  const O = ({
9
9
  title: i,
10
10
  description: e,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260217-d3ca2b2",
3
+ "version": "0.0.0-dev-20260218-b7223be",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -79,7 +79,7 @@
79
79
  "libphonenumber-js": "^1.11.0",
80
80
  "preact-custom-element": "^4.6.0",
81
81
  "tailwindcss": "^4.1.17",
82
- "@incodetech/core": "0.0.0-dev-20260217-d3ca2b2"
82
+ "@incodetech/core": "0.0.0-dev-20260218-b7223be"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@microsoft/api-extractor": "^7.53.3",
@@ -1,259 +0,0 @@
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(), () => {
18
- a(), o.stop?.();
19
- };
20
- }, [o, t]), [c, o];
21
- }
22
- const h = (...e) => {
23
- const n = [];
24
- for (const t of e)
25
- if (t) {
26
- if (typeof t == "string")
27
- n.push(t);
28
- else if (typeof t == "object")
29
- for (const [o, c] of Object.entries(t))
30
- c && n.push(o);
31
- }
32
- return n.join(" ");
33
- }, L = ({
34
- size: e,
35
- className: n
36
- }) => /* @__PURE__ */ s(
37
- "svg",
38
- {
39
- width: e,
40
- height: e,
41
- viewBox: "0 0 31 31",
42
- fill: "none",
43
- xmlns: "http://www.w3.org/2000/svg",
44
- class: h("IncodeLoadingIconPrimaryIcon", n),
45
- children: [
46
- /* @__PURE__ */ s("title", { children: "Spinner Inner part" }),
47
- /* @__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" })
48
- ]
49
- }
50
- ), k = ({
51
- size: e,
52
- className: n
53
- }) => /* @__PURE__ */ s(
54
- "svg",
55
- {
56
- width: e,
57
- height: e,
58
- viewBox: "0 0 31 31",
59
- fill: "none",
60
- xmlns: "http://www.w3.org/2000/svg",
61
- class: h("IncodeLoadingIconSecondaryIcon", n),
62
- children: [
63
- /* @__PURE__ */ s("title", { children: "Spinner Outer part" }),
64
- /* @__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" })
65
- ]
66
- }
67
- ), x = ({
68
- size: e = 30,
69
- secondaryClass: n,
70
- primaryClass: t
71
- }) => /* @__PURE__ */ s("div", { class: "IncodeLoadingIcon", children: [
72
- /* @__PURE__ */ s(k, { size: e, className: n }),
73
- /* @__PURE__ */ s("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ s(L, { size: e, className: t }) })
74
- ] }), E = {
75
- primary: "IncodeButtonPrimary",
76
- link: "IncodeButtonLink"
77
- }, J = (e) => {
78
- const {
79
- isLoading: n = !1,
80
- variant: t = "primary",
81
- class: o,
82
- type: c = "button",
83
- children: r,
84
- disabled: a,
85
- ...i
86
- } = e;
87
- return /* @__PURE__ */ s(
88
- "button",
89
- {
90
- ...i,
91
- class: h(
92
- "IncodeButton",
93
- n ? "IncodeButtonLoading" : "",
94
- E[t],
95
- o
96
- ),
97
- disabled: a || n,
98
- type: c,
99
- children: n ? /* @__PURE__ */ s(x, { size: 30 }) : r
100
- }
101
- );
102
- }, O = /* @__PURE__ */ new Set([
103
- 0,
104
- 2,
105
- 4,
106
- 8,
107
- 12,
108
- 16,
109
- 20,
110
- 24,
111
- 32,
112
- 40,
113
- 48,
114
- 64,
115
- 80,
116
- 96,
117
- 104,
118
- 120,
119
- 160,
120
- 200
121
- ]), j = (e, n) => n === "horizontal" ? {
122
- 0: "IncodeSpacerHorizontal0",
123
- 2: "IncodeSpacerHorizontal2",
124
- 4: "IncodeSpacerHorizontal4",
125
- 8: "IncodeSpacerHorizontal8",
126
- 12: "IncodeSpacerHorizontal12",
127
- 16: "IncodeSpacerHorizontal16",
128
- 20: "IncodeSpacerHorizontal20",
129
- 24: "IncodeSpacerHorizontal24",
130
- 32: "IncodeSpacerHorizontal32",
131
- 40: "IncodeSpacerHorizontal40",
132
- 48: "IncodeSpacerHorizontal48",
133
- 64: "IncodeSpacerHorizontal64",
134
- 80: "IncodeSpacerHorizontal80",
135
- 96: "IncodeSpacerHorizontal96",
136
- 104: "IncodeSpacerHorizontal104",
137
- 120: "IncodeSpacerHorizontal120",
138
- 160: "IncodeSpacerHorizontal160",
139
- 200: "IncodeSpacerHorizontal200"
140
- }[e] : {
141
- 0: "IncodeSpacerVertical0",
142
- 2: "IncodeSpacerVertical2",
143
- 4: "IncodeSpacerVertical4",
144
- 8: "IncodeSpacerVertical8",
145
- 12: "IncodeSpacerVertical12",
146
- 16: "IncodeSpacerVertical16",
147
- 20: "IncodeSpacerVertical20",
148
- 24: "IncodeSpacerVertical24",
149
- 32: "IncodeSpacerVertical32",
150
- 40: "IncodeSpacerVertical40",
151
- 48: "IncodeSpacerVertical48",
152
- 64: "IncodeSpacerVertical64",
153
- 80: "IncodeSpacerVertical80",
154
- 96: "IncodeSpacerVertical96",
155
- 104: "IncodeSpacerVertical104",
156
- 120: "IncodeSpacerVertical120",
157
- 160: "IncodeSpacerVertical160",
158
- 200: "IncodeSpacerVertical200"
159
- }[e], R = ({
160
- size: e,
161
- className: n,
162
- direction: t = "vertical"
163
- }) => 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 || ""}` });
164
- function u() {
165
- return u = Object.assign ? Object.assign.bind() : function(e) {
166
- for (var n = 1; n < arguments.length; n++) {
167
- var t = arguments[n];
168
- for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
169
- }
170
- return e;
171
- }, u.apply(this, arguments);
172
- }
173
- function b(e, n) {
174
- if (e == null) return {};
175
- var t, o, c = {}, r = Object.keys(e);
176
- for (o = 0; o < r.length; o++) n.indexOf(t = r[o]) >= 0 || (c[t] = e[t]);
177
- return c;
178
- }
179
- var M = ["context", "children"], P = ["useFragment"];
180
- function $(e, n, t, o) {
181
- function c() {
182
- var r, a = Reflect.construct(HTMLElement, [], c);
183
- 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;
184
- }
185
- return (c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = function() {
186
- T.call(this, o);
187
- }, 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) {
188
- Object.defineProperty(c.prototype, r, { get: function() {
189
- return this._vdom ? this._vdom.props[r] : this._props[r];
190
- }, set: function(a) {
191
- this._vdom ? this.attributeChangedCallback(r, null, a) : (this._props || (this._props = {}), this._props[r] = a);
192
- var i = typeof a;
193
- a != null && i !== "string" && i !== "boolean" && i !== "number" || this.setAttribute(r, a);
194
- } });
195
- }), customElements.define(n || e.tagName || e.displayName || e.name, c), c;
196
- }
197
- function B(e) {
198
- this.getChildContext = function() {
199
- return e.context;
200
- };
201
- var n = e.children, t = b(e, M);
202
- return _(n, t);
203
- }
204
- function T(e) {
205
- var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
206
- 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);
207
- }
208
- function g(e) {
209
- return e.replace(/-(\w)/g, function(n, t) {
210
- return t ? t.toUpperCase() : "";
211
- });
212
- }
213
- function A(e, n, t) {
214
- if (this._vdom) {
215
- var o = {};
216
- o[e] = t = t ?? void 0, o[g(e)] = t, this._vdom = _(this._vdom, o), f(this._vdom, this._root);
217
- }
218
- }
219
- function F() {
220
- f(this._vdom = null, this._root);
221
- }
222
- function S(e, n) {
223
- var t = this, o = e.useFragment, c = b(e, P);
224
- return p(o ? V : "slot", u({}, c, { ref: function(r) {
225
- r ? (t.ref = r, t._listener || (t._listener = function(a) {
226
- a.stopPropagation(), a.detail.context = n;
227
- }, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
228
- } }));
229
- }
230
- function y(e, n, t) {
231
- if (e.nodeType === 3) return e.data;
232
- if (e.nodeType !== 1) return null;
233
- var o = [], c = {}, r = 0, a = e.attributes, i = e.childNodes;
234
- for (r = a.length; r--; ) a[r].name !== "slot" && (c[a[r].name] = a[r].value, c[g(a[r].name)] = a[r].value);
235
- for (r = i.length; r--; ) {
236
- var l = y(i[r], null, t), d = i[r].slot;
237
- d ? c[d] = p(S, { name: d }, l) : o[r] = l;
238
- }
239
- var v = !(!t || !t.shadow), C = n ? p(S, { useFragment: !v }, o) : o;
240
- return !v && n && (e.innerHTML = ""), p(n || e.nodeName.toLowerCase(), c, C);
241
- }
242
- function N(e, n, t) {
243
- $(e, n, [...t], {
244
- shadow: !1
245
- });
246
- }
247
- const Z = ["config", "onFinish", "onError"];
248
- function U(e, n) {
249
- N(e, n, Z);
250
- }
251
- export {
252
- J as B,
253
- x as L,
254
- R as S,
255
- G as a,
256
- h as c,
257
- U as r,
258
- s as u
259
- };