@incodetech/web 0.0.0-dev-20260313-547c32f → 0.0.0-dev-20260313-2675d26

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.
@@ -1,107 +1,140 @@
1
1
  /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
2
+ @layer properties {
3
+ @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
+ *, :before, :after, ::backdrop {
5
+ --tw-font-weight: initial;
6
+ --tw-border-style: solid;
7
+ }
8
+ }
9
+ }
10
+
2
11
  .IncodeEkybPage {
3
12
  max-width: 480px;
4
- margin: 0 auto;
13
+ margin-inline: auto;
5
14
  }
6
15
 
7
- .IncodeEkyb__form {
16
+ .IncodeEkybForm {
17
+ margin-top: var(--spacing-32, var(--spacing-32, 32px));
18
+ gap: var(--spacing-16, var(--spacing-16, 16px));
8
19
  flex-direction: column;
9
- gap: 16px;
10
20
  width: 100%;
11
- margin-top: 32px;
12
21
  display: flex;
13
22
  }
14
23
 
24
+ .IncodeEkybForm .IncodeInputComposed, .IncodeEkybForm .IncodeDropdownComposed, .IncodeEkybForm .IncodeFormField {
25
+ margin-inline: auto;
26
+ }
27
+
28
+ .IncodeEkybForm .IncodeFormField {
29
+ margin-bottom: var(--spacing-0, var(--spacing-none, 0px));
30
+ }
31
+
15
32
  @media (min-width: 768px) {
16
33
  .IncodePageContainer.IncodeEkybPage {
34
+ margin-top: var(--spacing-0, var(--spacing-none, 0px));
17
35
  height: 95dvh;
18
36
  max-height: none;
19
- margin-top: 0;
20
37
  }
21
38
 
22
39
  .IncodeEkybPage .IncodePageInner {
23
40
  height: 95%;
24
41
  }
25
42
 
26
- .IncodePageContainer.IncodeEkybPage--scrollable {
43
+ .IncodePageContainer.IncodeEkybPageScrollable {
27
44
  max-width: 500px;
28
45
  }
29
46
 
30
47
  .IncodeEkybPage .IncodePageContent {
31
- min-height: 0;
48
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
32
49
  }
33
50
 
34
- .IncodeEkybPage .IncodeEkyb__form {
51
+ .IncodeEkybPage .IncodeEkybForm {
52
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
53
+ padding-bottom: var(--spacing-8, var(--spacing-8, 8px));
35
54
  flex: 1;
36
- min-height: 0;
37
- padding-bottom: 8px;
38
55
  overflow-y: auto;
39
56
  }
40
57
 
41
- .IncodeEkybPage--scrollable .IncodeEkyb__form {
42
- margin-left: 8px;
58
+ .IncodeEkybPageScrollable .IncodeEkybForm {
59
+ margin-left: var(--spacing-8, var(--spacing-8, 8px));
43
60
  }
44
61
 
45
- .IncodeEkyb__footer {
62
+ .IncodeEkybFooter {
46
63
  flex-shrink: 0;
47
64
  }
48
65
  }
49
66
 
50
- .IncodeEkyb__form .IncodeInputComposed, .IncodeEkyb__form .IncodeDropdownComposed, .IncodeEkyb__form .IncodeFormField {
51
- margin-left: auto;
52
- margin-right: auto;
53
- }
54
-
55
- .IncodeEkyb__form .IncodeFormField {
56
- margin-bottom: 0;
57
- }
58
-
59
- .IncodeEkybPage .IncodeEkyb__sectionHeader {
67
+ .IncodeEkybPage .IncodeEkybSectionHeader {
60
68
  font-family: var(--typography-headline-family);
61
69
  font-size: var(--typography-headline-h3-size);
62
70
  font-weight: var(--typography-headline-h3-weight);
63
71
  line-height: var(--typography-headline-h3-line-height);
64
72
  letter-spacing: var(--typography-headline-h3-letter-spacing);
65
- color: var(--color-text-body-primary, var(--text-body-800-primary));
73
+ --tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
74
+ font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
75
+ color: var(--color-input-text-label-default, var(--input-text-label-default));
76
+ margin-inline: auto;
77
+ margin-top: var(--spacing-16, var(--spacing-16, 16px));
66
78
  width: 100%;
67
79
  max-width: 420px;
68
- margin: 16px auto 0;
69
- padding: 12px 0;
70
- font-weight: 700;
80
+ padding-block: var(--spacing-12, var(--spacing-12, 12px));
71
81
  }
72
82
 
73
- .IncodeEkyb__ubos, .IncodeEkyb__uboEntry {
83
+ .IncodeEkybUbos, .IncodeEkybUboEntry {
84
+ gap: var(--spacing-16, var(--spacing-16, 16px));
74
85
  flex-direction: column;
75
- gap: 16px;
76
86
  display: flex;
77
87
  }
78
88
 
79
- .IncodeEkyb__removeUbo {
80
- color: var(--text-error, #dc2626);
89
+ .IncodeEkybRemoveUbo {
81
90
  cursor: pointer;
82
- background: none;
83
- border: none;
84
- padding: 0;
85
- font-size: .75rem;
91
+ border-style: var(--tw-border-style);
92
+ border-width: var(--border-width-none, var(--primitive-border-width-0));
93
+ --tw-border-style: none;
94
+ padding: var(--spacing-0, var(--spacing-none, 0px));
95
+ font-size: var(--text-12, var(--primitive-typography-size-12));
96
+ color: var(--color-text-status-negative, var(--text-status-negative));
97
+ background-color: #0000;
98
+ border-style: none;
86
99
  }
87
100
 
88
- .IncodeEkyb__addUbo {
89
- color: var(--button-primary-surface-default, #006aff);
101
+ .IncodeEkybAddUbo {
90
102
  cursor: pointer;
103
+ border-style: var(--tw-border-style);
104
+ border-width: var(--border-width-none, var(--primitive-border-width-0));
105
+ --tw-border-style: none;
106
+ padding-block: var(--spacing-8, var(--spacing-8, 8px));
91
107
  text-align: center;
92
- background: none;
93
- border: none;
94
- padding: 8px 0;
95
- font-size: 18px;
96
- font-weight: 500;
97
- line-height: 18px;
98
- text-decoration: underline;
108
+ font-family: var(--typography-button-family);
109
+ font-size: var(--typography-button-m-underlined-size);
110
+ font-weight: var(--typography-button-m-underlined-weight);
111
+ line-height: var(--typography-button-m-underlined-line-height);
112
+ letter-spacing: var(--typography-button-m-underlined-letter-spacing);
113
+ -webkit-text-decoration-skip-ink: none;
114
+ text-decoration-skip-ink: none;
115
+ color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
116
+ background-color: #0000;
117
+ border-style: none;
118
+ text-decoration-line: underline;
119
+ text-decoration-style: solid;
120
+ text-decoration-thickness: auto;
99
121
  }
100
122
 
101
- .IncodeEkyb__addUbo:hover {
123
+ .IncodeEkybAddUbo:hover {
102
124
  opacity: .8;
103
125
  }
104
126
 
105
- .IncodeEkyb__countrySelector {
127
+ .IncodeEkybCountrySelector {
106
128
  width: 100%;
107
129
  }
130
+
131
+ @property --tw-font-weight {
132
+ syntax: "*";
133
+ inherits: false
134
+ }
135
+
136
+ @property --tw-border-style {
137
+ syntax: "*";
138
+ inherits: false;
139
+ initial-value: solid;
140
+ }
@@ -1,11 +1,11 @@
1
- import { b as k, u as t, I as g, a as $, S as U, B as F, r as M } from "./incodeModule-C-yBwl3V.js";
2
- import { SUPPORTED_COUNTRIES as I, DEV_ONLY_COUNTRIES as R, createEkybManager as D } from "@incodetech/core/ekyb";
3
- import { T as w, y as v, A as L, k as A } from "./vendor-preact-DP-hbKuj.js";
1
+ import { b as k, u as t, I as U, a as F, S as $, B as R, r as M } from "./incodeModule-C-yBwl3V.js";
2
+ import { SUPPORTED_COUNTRIES as I, DEV_ONLY_COUNTRIES as D, createEkybManager as w } from "@incodetech/core/ekyb";
3
+ import { T as A, y as v, A as L, k as P } from "./vendor-preact-DP-hbKuj.js";
4
4
  import "./uiConfig-B8PUPgHY.js";
5
5
  import "@incodetech/core";
6
- import { F as P, V as E, u as O } from "./verificationResult-7tUMuDVH.js";
7
- import { P as T } from "./page-DoaUg40Q.js";
8
- import { D as f, I as N } from "./dropdownComposed-DEUeG49j.js";
6
+ import { F as O, V as E, u as T } from "./verificationResult-7tUMuDVH.js";
7
+ import { P as _ } from "./page-DoaUg40Q.js";
8
+ import { D as g, I as S } from "./dropdownComposed-DEUeG49j.js";
9
9
  function B(e) {
10
10
  return [...e.toUpperCase()].map((o) => String.fromCodePoint(127462 + o.charCodeAt(0) - 65)).join("");
11
11
  }
@@ -37,33 +37,33 @@ const K = ({
37
37
  value: e,
38
38
  onChange: o
39
39
  }) => {
40
- const { t: r } = k(), a = w(() => (G() ? [...I, ...R] : [...I]).map(q).sort((u, l) => u.label.localeCompare(l.label)), []);
41
- return /* @__PURE__ */ t("div", { className: "IncodeEkyb__countrySelector", children: /* @__PURE__ */ t(
42
- f,
40
+ const { t: r } = k(), n = A(() => (G() ? [...I, ...D] : [...I]).map(q).sort((u, l) => u.label.localeCompare(l.label)), []);
41
+ return /* @__PURE__ */ t("div", { className: "IncodeEkybCountrySelector", children: /* @__PURE__ */ t(
42
+ g,
43
43
  {
44
44
  id: "ekyb-country",
45
45
  label: r("ekyb.country"),
46
46
  value: e,
47
- options: a,
47
+ options: n,
48
48
  onChange: o,
49
49
  "data-testid": "ekyb-country-selector"
50
50
  }
51
51
  ) });
52
- }, _ = ({
52
+ }, N = ({
53
53
  field: e,
54
54
  value: o,
55
55
  error: r,
56
- country: a,
56
+ country: n,
57
57
  onChange: c
58
58
  }) => {
59
59
  const { t: u } = k(), l = !e.required, m = u(e.label);
60
60
  if (e.type === "dropdown") {
61
- const n = l ? `${m} (${u("common.optional")})` : m, b = e.name === "state" ? u("ekyb.selectState") : void 0;
61
+ const a = l ? `${m} (${u("common.optional")})` : m, b = e.name === "state" ? u("ekyb.selectState") : void 0;
62
62
  return /* @__PURE__ */ t(
63
- f,
63
+ g,
64
64
  {
65
65
  id: `ekyb-${e.name}`,
66
- label: n,
66
+ label: a,
67
67
  placeholder: b,
68
68
  value: o,
69
69
  options: (e.options ?? []).map((i) => ({
@@ -78,7 +78,7 @@ const K = ({
78
78
  );
79
79
  }
80
80
  return /* @__PURE__ */ t(
81
- P,
81
+ O,
82
82
  {
83
83
  name: e.name,
84
84
  label: e.label,
@@ -93,48 +93,48 @@ const K = ({
93
93
  ubos: e,
94
94
  errors: o,
95
95
  canAddUbo: r,
96
- onSetField: a,
96
+ onSetField: n,
97
97
  onAdd: c,
98
98
  onRemove: u
99
99
  }) => {
100
100
  const { t: l } = k();
101
- return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "IncodeEkyb__ubos", children: [
102
- e.map((m, n) => {
103
- const b = n === 0 ? l("ekyb.uboName") : l("ekyb.uboNameWithNumber", { number: n + 1 }), i = n === 0 ? l("ekyb.uboSurname") : l("ekyb.uboSurnameWithNumber", { number: n + 1 }), h = n === 0;
104
- return /* @__PURE__ */ t("div", { className: "IncodeEkyb__uboEntry", children: [
101
+ return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "IncodeEkybUbos", children: [
102
+ e.map((m, a) => {
103
+ const b = a === 0 ? l("ekyb.uboName") : l("ekyb.uboNameWithNumber", { number: a + 1 }), i = a === 0 ? l("ekyb.uboSurname") : l("ekyb.uboSurnameWithNumber", { number: a + 1 }), h = a === 0;
104
+ return /* @__PURE__ */ t("div", { className: "IncodeEkybUboEntry", children: [
105
105
  /* @__PURE__ */ t(
106
- N,
106
+ S,
107
107
  {
108
- id: `ubo-${n}-name`,
108
+ id: `ubo-${a}-name`,
109
109
  label: b,
110
- name: `ubo-${n}-name`,
110
+ name: `ubo-${a}-name`,
111
111
  value: m.name,
112
- error: o[`ubo-${n}-name`] ? l(o[`ubo-${n}-name`]) : void 0,
113
- onInput: (d) => a(n, "name", d.target.value),
114
- "data-testid": `ekyb-ubo-${n}-name`
112
+ error: o[`ubo-${a}-name`] ? l(o[`ubo-${a}-name`]) : void 0,
113
+ onInput: (d) => n(a, "name", d.target.value),
114
+ "data-testid": `ekyb-ubo-${a}-name`
115
115
  }
116
116
  ),
117
117
  /* @__PURE__ */ t(
118
- N,
118
+ S,
119
119
  {
120
- id: `ubo-${n}-surname`,
120
+ id: `ubo-${a}-surname`,
121
121
  label: i,
122
- name: `ubo-${n}-surname`,
122
+ name: `ubo-${a}-surname`,
123
123
  value: m.surname,
124
- error: o[`ubo-${n}-surname`] ? l(o[`ubo-${n}-surname`]) : void 0,
125
- onInput: (d) => a(
126
- n,
124
+ error: o[`ubo-${a}-surname`] ? l(o[`ubo-${a}-surname`]) : void 0,
125
+ onInput: (d) => n(
126
+ a,
127
127
  "surname",
128
128
  d.target.value
129
129
  ),
130
- "data-testid": `ekyb-ubo-${n}-surname`
130
+ "data-testid": `ekyb-ubo-${a}-surname`
131
131
  }
132
132
  ),
133
133
  !h && /* @__PURE__ */ t(
134
134
  "button",
135
135
  {
136
- className: "IncodeEkyb__removeUbo",
137
- onClick: () => u(n),
136
+ className: "IncodeEkybRemoveUbo",
137
+ onClick: () => u(a),
138
138
  type: "button",
139
139
  children: l("common.remove")
140
140
  }
@@ -144,7 +144,7 @@ const K = ({
144
144
  r && /* @__PURE__ */ t(
145
145
  "button",
146
146
  {
147
- className: "IncodeEkyb__addUbo",
147
+ className: "IncodeEkybAddUbo",
148
148
  onClick: c,
149
149
  type: "button",
150
150
  "data-testid": "ekyb-add-ubo",
@@ -153,17 +153,17 @@ const K = ({
153
153
  )
154
154
  ] });
155
155
  }, W = ({ config: e, onFinish: o, onError: r }) => {
156
- const [a, c] = $(() => D({ config: e }), {
156
+ const [n, c] = F(() => w({ config: e }), {
157
157
  autoLoad: !1
158
158
  });
159
159
  v(() => {
160
- (a.status === "finished" || a.status === "closed") && o?.();
161
- }, [a.status, o]);
162
- const u = a.status === "error" ? a.errorMessage : void 0;
160
+ (n.status === "finished" || n.status === "closed") && o?.();
161
+ }, [n.status, o]);
162
+ const u = n.status === "error" ? n.errorMessage : void 0;
163
163
  return v(() => {
164
- a.status === "error" && r?.(u);
165
- }, [a.status, r, u]), a.status === "finished" || a.status === "closed" ? null : a.status === "submitting" ? /* @__PURE__ */ t(E, { status: "submitting" }) : a.status === "success" ? /* @__PURE__ */ t(E, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ t(E, { status: "failure", onRetry: () => c.retry() }) : a.status === "form" ? /* @__PURE__ */ t(Y, { state: a, manager: c }) : null;
166
- }, S = /* @__PURE__ */ new Set([
164
+ n.status === "error" && r?.(u);
165
+ }, [n.status, r, u]), n.status === "finished" || n.status === "closed" ? null : n.status === "submitting" ? /* @__PURE__ */ t(E, { status: "submitting" }) : n.status === "success" ? /* @__PURE__ */ t(E, { status: "success" }) : n.status === "error" ? /* @__PURE__ */ t(E, { status: "failure", onRetry: () => c.retry() }) : n.status === "form" ? /* @__PURE__ */ t(Y, { state: n, manager: c }) : null;
166
+ }, f = /* @__PURE__ */ new Set([
167
167
  "street",
168
168
  "houseNo",
169
169
  "addressLine2",
@@ -171,9 +171,9 @@ const K = ({
171
171
  "state",
172
172
  "postalCode"
173
173
  ]), Y = ({ state: e, manager: o }) => {
174
- const { country: r, fields: a, values: c, displayErrors: u, isValid: l, ubos: m, canAddUbo: n } = e, { t: b } = k(), i = L(null), h = O(i, a.length), d = a.filter((s) => !S.has(s.name)), C = a.filter((s) => S.has(s.name));
175
- return /* @__PURE__ */ t(T, { className: `IncodeEkybPage${h ? " IncodeEkybPage--scrollable" : ""}`, title: b("ekyb.title"), children: [
176
- /* @__PURE__ */ t("div", { ref: i, className: "IncodeEkyb__form", children: [
174
+ const { country: r, fields: n, values: c, displayErrors: u, isValid: l, ubos: m, canAddUbo: a } = e, { t: b } = k(), i = L(null), h = T(i, n.length), d = n.filter((s) => !f.has(s.name)), C = n.filter((s) => f.has(s.name));
175
+ return /* @__PURE__ */ t(_, { className: `IncodeEkybPage${h ? " IncodeEkybPageScrollable" : ""}`, title: b("ekyb.title"), children: [
176
+ /* @__PURE__ */ t("div", { ref: i, className: "IncodeEkybForm", children: [
177
177
  /* @__PURE__ */ t(
178
178
  K,
179
179
  {
@@ -182,7 +182,7 @@ const K = ({
182
182
  }
183
183
  ),
184
184
  d.map((s) => /* @__PURE__ */ t(
185
- _,
185
+ N,
186
186
  {
187
187
  field: s,
188
188
  value: c[s.name] ?? "",
@@ -192,10 +192,10 @@ const K = ({
192
192
  },
193
193
  s.name
194
194
  )),
195
- C.length > 0 && /* @__PURE__ */ t(A, { children: [
196
- /* @__PURE__ */ t("h3", { className: "IncodeEkyb__sectionHeader", children: b("ekyb.addressDetails") }),
195
+ C.length > 0 && /* @__PURE__ */ t(P, { children: [
196
+ /* @__PURE__ */ t("h3", { className: "IncodeEkybSectionHeader", children: b("ekyb.addressDetails") }),
197
197
  C.map((s) => /* @__PURE__ */ t(
198
- _,
198
+ N,
199
199
  {
200
200
  field: s,
201
201
  value: c[s.name] ?? "",
@@ -211,17 +211,17 @@ const K = ({
211
211
  {
212
212
  ubos: m,
213
213
  errors: u,
214
- canAddUbo: n,
214
+ canAddUbo: a,
215
215
  onSetField: (s, y, p) => o.setUboField(s, y, p),
216
216
  onAdd: () => o.addUbo(),
217
217
  onRemove: (s) => o.removeUbo(s)
218
218
  }
219
219
  )
220
220
  ] }),
221
- /* @__PURE__ */ t("div", { className: "IncodeEkyb__footer", children: [
222
- /* @__PURE__ */ t(U, { size: 32 }),
221
+ /* @__PURE__ */ t("div", { className: "IncodeEkybFooter", children: [
222
+ /* @__PURE__ */ t($, { size: 32 }),
223
223
  /* @__PURE__ */ t(
224
- F,
224
+ R,
225
225
  {
226
226
  onClick: () => o.submit(),
227
227
  disabled: !l,
@@ -235,7 +235,7 @@ const K = ({
235
235
  config: e,
236
236
  onFinish: o,
237
237
  onError: r
238
- }) => /* @__PURE__ */ t(g, { children: e ? /* @__PURE__ */ t(W, { config: e, onFinish: o, onError: r }) : null });
238
+ }) => /* @__PURE__ */ t(U, { children: e ? /* @__PURE__ */ t(W, { config: e, onFinish: o, onError: r }) : null });
239
239
  M(j, "incode-ekyb");
240
240
  export {
241
241
  j as EkybModule