@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.
- package/dist/ekyb/styles.css +79 -46
- package/dist/{ekybModule-C3Ujm2Yw.js → ekybModule-DY0tTRTg.js} +56 -56
- package/dist/ekyc/styles.css +206 -135
- package/dist/{ekycModule-BSb0VO0K.js → ekycModule-C6M5lSNt.js} +134 -134
- package/dist/flow/flow.es.js +2 -2
- package/dist/flow/styles.css +239 -181
- package/dist/themes/dark.css +11 -0
- package/dist/themes/light.css +11 -0
- package/package.json +2 -2
package/dist/ekyb/styles.css
CHANGED
|
@@ -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:
|
|
13
|
+
margin-inline: auto;
|
|
5
14
|
}
|
|
6
15
|
|
|
7
|
-
.
|
|
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.
|
|
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 .
|
|
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
|
-
.
|
|
42
|
-
margin-left: 8px;
|
|
58
|
+
.IncodeEkybPageScrollable .IncodeEkybForm {
|
|
59
|
+
margin-left: var(--spacing-8, var(--spacing-8, 8px));
|
|
43
60
|
}
|
|
44
61
|
|
|
45
|
-
.
|
|
62
|
+
.IncodeEkybFooter {
|
|
46
63
|
flex-shrink: 0;
|
|
47
64
|
}
|
|
48
65
|
}
|
|
49
66
|
|
|
50
|
-
.
|
|
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
|
-
|
|
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
|
-
|
|
69
|
-
padding: 12px 0;
|
|
70
|
-
font-weight: 700;
|
|
80
|
+
padding-block: var(--spacing-12, var(--spacing-12, 12px));
|
|
71
81
|
}
|
|
72
82
|
|
|
73
|
-
.
|
|
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
|
-
.
|
|
80
|
-
color: var(--text-error, #dc2626);
|
|
89
|
+
.IncodeEkybRemoveUbo {
|
|
81
90
|
cursor: pointer;
|
|
82
|
-
|
|
83
|
-
border: none;
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
.
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
text-decoration:
|
|
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
|
-
.
|
|
123
|
+
.IncodeEkybAddUbo:hover {
|
|
102
124
|
opacity: .8;
|
|
103
125
|
}
|
|
104
126
|
|
|
105
|
-
.
|
|
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
|
|
2
|
-
import { SUPPORTED_COUNTRIES as I, DEV_ONLY_COUNTRIES as
|
|
3
|
-
import { T as
|
|
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
|
|
7
|
-
import { P as
|
|
8
|
-
import { D as
|
|
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(),
|
|
41
|
-
return /* @__PURE__ */ t("div", { className: "
|
|
42
|
-
|
|
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:
|
|
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:
|
|
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
|
|
61
|
+
const a = l ? `${m} (${u("common.optional")})` : m, b = e.name === "state" ? u("ekyb.selectState") : void 0;
|
|
62
62
|
return /* @__PURE__ */ t(
|
|
63
|
-
|
|
63
|
+
g,
|
|
64
64
|
{
|
|
65
65
|
id: `ekyb-${e.name}`,
|
|
66
|
-
label:
|
|
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
|
-
|
|
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:
|
|
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: "
|
|
102
|
-
e.map((m,
|
|
103
|
-
const b =
|
|
104
|
-
return /* @__PURE__ */ t("div", { className: "
|
|
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
|
-
|
|
106
|
+
S,
|
|
107
107
|
{
|
|
108
|
-
id: `ubo-${
|
|
108
|
+
id: `ubo-${a}-name`,
|
|
109
109
|
label: b,
|
|
110
|
-
name: `ubo-${
|
|
110
|
+
name: `ubo-${a}-name`,
|
|
111
111
|
value: m.name,
|
|
112
|
-
error: o[`ubo-${
|
|
113
|
-
onInput: (d) => a
|
|
114
|
-
"data-testid": `ekyb-ubo-${
|
|
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
|
-
|
|
118
|
+
S,
|
|
119
119
|
{
|
|
120
|
-
id: `ubo-${
|
|
120
|
+
id: `ubo-${a}-surname`,
|
|
121
121
|
label: i,
|
|
122
|
-
name: `ubo-${
|
|
122
|
+
name: `ubo-${a}-surname`,
|
|
123
123
|
value: m.surname,
|
|
124
|
-
error: o[`ubo-${
|
|
125
|
-
onInput: (d) =>
|
|
126
|
-
|
|
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-${
|
|
130
|
+
"data-testid": `ekyb-ubo-${a}-surname`
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
133
|
!h && /* @__PURE__ */ t(
|
|
134
134
|
"button",
|
|
135
135
|
{
|
|
136
|
-
className: "
|
|
137
|
-
onClick: () => u(
|
|
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: "
|
|
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 [
|
|
156
|
+
const [n, c] = F(() => w({ config: e }), {
|
|
157
157
|
autoLoad: !1
|
|
158
158
|
});
|
|
159
159
|
v(() => {
|
|
160
|
-
(
|
|
161
|
-
}, [
|
|
162
|
-
const u =
|
|
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
|
-
|
|
165
|
-
}, [
|
|
166
|
-
},
|
|
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:
|
|
175
|
-
return /* @__PURE__ */ t(
|
|
176
|
-
/* @__PURE__ */ t("div", { ref: i, className: "
|
|
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(
|
|
196
|
-
/* @__PURE__ */ t("h3", { className: "
|
|
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:
|
|
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: "
|
|
222
|
-
/* @__PURE__ */ t(
|
|
221
|
+
/* @__PURE__ */ t("div", { className: "IncodeEkybFooter", children: [
|
|
222
|
+
/* @__PURE__ */ t($, { size: 32 }),
|
|
223
223
|
/* @__PURE__ */ t(
|
|
224
|
-
|
|
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(
|
|
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
|