@incodetech/web 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4677d7f
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/AsYouType-DPWqJvFu.js +2482 -0
- package/dist/addressAutocomplete-t809rK3N.js +108 -0
- package/dist/aligndevicelottie-C9xl1spu.js +12757 -0
- package/dist/antifraud/antifraud.es.js +17 -18
- package/dist/antifraud/styles.css +1 -1
- package/dist/authentication/authentication.es.js +28 -50
- package/dist/back-horizontal-hint-Be3dUGk6.js +137 -0
- package/dist/back-tutorial-BNTyW-1N.js +14584 -0
- package/dist/back-vertical-hint-Bz_rnhd-.js +128 -0
- package/dist/backdevicelottie-DBB1YCtW.js +16678 -0
- package/dist/base.css +327 -67
- package/dist/blurdevicelottie-9WvZCZ6C.js +15939 -0
- package/dist/browser-ponyfill-B4Qc6yfW.js +299 -0
- package/dist/button-DrtZRYJX.js +123 -0
- package/dist/checkbox-kZerHUek.js +85 -0
- package/dist/consent/consent.es.js +82 -89
- package/dist/consent/styles.css +1 -1
- package/dist/countries-y2ydYDhN.js +8323 -0
- package/dist/curp-validation/curp-validation.es.js +271 -313
- package/dist/curp-validation/styles.css +1 -1
- package/dist/dateInputComposed-9zbxhNlX.js +94 -0
- package/dist/dateInputComposed-B36DI9FJ.js +2 -0
- package/dist/defineProperty-brqHEHA_.js +39 -0
- package/dist/document-capture/styles.css +1 -1
- package/dist/documentCapture-CY-g1OUT.js +784 -0
- package/dist/dropdownComposed-CWxUwv7E.js +258 -0
- package/dist/ekyb/ekyb.es.js +2 -0
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekybModule-DGOhCY0S.js +286 -0
- package/dist/ekybModule-mBTq_Apn.js +2 -0
- package/dist/ekyc/ekyc.es.js +2 -0
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekycModule-DZlqb6Bc.js +2 -0
- package/dist/ekycModule-rJxf46TS.js +233 -0
- package/dist/email/email.es.js +110 -154
- package/dist/email/styles.css +1 -1
- package/dist/extensibility-CcUfegWj.js +2248 -0
- package/dist/extensibility.es.js +22 -150
- package/dist/face-match/styles.css +147 -73
- package/dist/faceMatch-K9k9f1HF.js +191 -0
- package/dist/flip-animation-DOJzdXB-.js +6983 -0
- package/dist/flow/flow.es.js +2274 -2613
- package/dist/flow/styles.css +432 -73
- package/dist/formField-BBfAFfVZ.js +100 -0
- package/dist/front-horizontal-hint-aGAhadA2.js +380 -0
- package/dist/front-vertical-hint-DZz1VeNp.js +420 -0
- package/dist/frontdevicelottie-DadDp6be.js +17302 -0
- package/dist/geolocation/geolocation.es.js +852 -832
- package/dist/geolocation/styles.css +1 -1
- package/dist/glaredevicelottie-BfI84cPw.js +14466 -0
- package/dist/governmentValidation/governmentValidation.es.js +100 -106
- package/dist/governmentValidation/styles.css +1 -1
- package/dist/i18n-DZOHbK9q.js +1916 -0
- package/dist/icons-BHbofCgJ.js +245 -0
- package/dist/id/id.es.js +53 -59
- package/dist/id/styles.css +1 -1
- package/dist/id-laser-h-BWyU3VgL.js +467 -0
- package/dist/id-laser-v-JiWXUlv0.js +467 -0
- package/dist/id-tutorial-Cc9xg5_J.js +13152 -0
- package/dist/incodeModule-Bf6yJ8RB.js +18 -0
- package/dist/index.es.js +4 -25
- package/dist/inputComposed-rPAh6ptN.js +77 -0
- package/dist/loadingIcon-BDMR5L6z.js +147 -0
- package/dist/mandatoryConsent-ohmxTqe7.js +101 -0
- package/dist/numberedStep-CQVRixRP.js +11 -0
- package/dist/otpInput-DRZiayDi.js +143 -0
- package/dist/page-M9yWRw73.js +61 -0
- package/dist/passport-horizontal-hint-CFsGs7Dp.js +293 -0
- package/dist/passport-tutorial-z0LN7Hsp.js +11688 -0
- package/dist/passport-vertical-hint-BnCpKWeN.js +267 -0
- package/dist/phone/phone.es.js +87 -121
- package/dist/phone/styles.css +1 -1
- package/dist/phoneInput-C9T_8FJt.js +138 -0
- package/dist/phoneInputComposed-CXTXBQ0B.js +407 -0
- package/dist/processing-yJ5QEgaC.js +15 -0
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/richText-Db0PfpkE.js +1973 -0
- package/dist/rolldown-runtime-CjdbFOpI.js +13 -0
- package/dist/selfie/selfie.es.js +29 -50
- package/dist/selfie/styles.css +170 -66
- package/dist/selfieTutorial-B0MIyPrk.js +2676 -0
- package/dist/setup-Dq2bzNKH.js +15 -0
- package/dist/signature/signature.es.js +557 -707
- package/dist/signature/styles.css +1 -1
- package/dist/spacer-DCljE53A.js +59 -0
- package/dist/spinner-BK2pIUzB.js +41 -0
- package/dist/spinner-DjG-sUzI.js +1 -0
- package/dist/successIcon-AHrfmJvv.js +17 -0
- package/dist/tutorial-C2kSUHWe.js +2781 -0
- package/dist/types/ekyb.d.ts +29 -0
- package/dist/types/ekyc.d.ts +29 -0
- package/dist/types/extensibility.d.ts +3 -5
- package/dist/types/flow.d.ts +1 -1
- package/dist/types/index.d.ts +2 -10
- package/dist/typography-BQrJwR60.js +1 -0
- package/dist/typography-BtyuWjzC.js +29 -0
- package/dist/uiConfig-CwpQ-IM6.js +20 -0
- package/dist/vendor-preact-D6SntenC.js +958 -0
- package/dist/warningIcon-Cvj-ayg1.js +17 -0
- package/package.json +8 -11
- package/dist/AsYouType-D1H_js4X.js +0 -2607
- package/dist/Trans-aTzdT_SA.js +0 -55
- package/dist/addressAutocomplete-C8-wL1j_.js +0 -153
- package/dist/aligndevicelottie-DlQCRPfM.js +0 -29
- package/dist/back-horizontal-hint-CSlf9KI1.js +0 -5
- package/dist/back-tutorial-An9AcMSe.js +0 -29
- package/dist/back-vertical-hint-CNieqiCr.js +0 -5
- package/dist/backdevicelottie-B4NgyWmX.js +0 -29
- package/dist/blurdevicelottie-_BZRug1c.js +0 -29
- package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
- package/dist/button-CE9kRlem.js +0 -184
- package/dist/cameraView-C2X7klNb.js +0 -55
- package/dist/captureOverlay-tCb4R4WE.js +0 -592
- package/dist/checkbox-B5X-mfqq.js +0 -137
- package/dist/chevronDown-DSHaPKbi.js +0 -23
- package/dist/closeIcon-9Hc97omv.js +0 -28
- package/dist/countries-DfLkrF0x.js +0 -616
- package/dist/dateInputComposed-C7PCzh-U.js +0 -173
- package/dist/documentCapture-C0mO-RGE.js +0 -692
- package/dist/dropdownComposed-BpinYlrx.js +0 -367
- package/dist/ekybModule-Dr6LJUg-.js +0 -357
- package/dist/ekycModule-C3mswduI.js +0 -291
- package/dist/errorContent-Cb8nmQAE.js +0 -44
- package/dist/errorIcon-DEARBrGx.js +0 -26
- package/dist/faceMatch-DbDp7D3d.js +0 -237
- package/dist/fileIcon-CCSvS10T.js +0 -52
- package/dist/flip-animation-COR596wy.js +0 -29
- package/dist/flipAnimation-BqV462TA.js +0 -2059
- package/dist/formField-CP6wDdfA.js +0 -106
- package/dist/front-horizontal-hint-lRLKd7vY.js +0 -7
- package/dist/front-vertical-hint-qQoJXRE3.js +0 -7
- package/dist/frontdevicelottie-KhKxT5n9.js +0 -29
- package/dist/glaredevicelottie-DLuIStvb.js +0 -29
- package/dist/id-laser-h-BBV3r3rz.js +0 -29
- package/dist/id-laser-v-BTHJaSfx.js +0 -29
- package/dist/id-tutorial-B-F5Q28m.js +0 -29
- package/dist/incodeModule-C4XIllao.js +0 -96
- package/dist/inputComposed-fUbAGrDy.js +0 -103
- package/dist/instance-BWYzq8dk.js +0 -2163
- package/dist/loadingIcon-DmuPXh70.js +0 -195
- package/dist/mandatoryConsent-5xPI0cor.js +0 -94
- package/dist/manualCaptureButton-BvFmTyJe.js +0 -372
- package/dist/numberedStep-DwUB__mh.js +0 -5
- package/dist/otpInput-BFXhqFRT.js +0 -156
- package/dist/page-SrUl0qtN.js +0 -69
- package/dist/passport-horizontal-hint-BCtpMp1Y.js +0 -5
- package/dist/passport-tutorial-CaYBFTqt.js +0 -29
- package/dist/passport-vertical-hint-GaLnzqHP.js +0 -5
- package/dist/permissions-DT4Fz9MR.js +0 -709
- package/dist/phoneInput-CGr8TxOO.js +0 -158
- package/dist/phoneInputComposed-Cm9O2Jba.js +0 -206
- package/dist/processing-szVOCQwZ.js +0 -19
- package/dist/richText-cspvNz2a.js +0 -1807
- package/dist/selfieTutorial-Dm_p0ke9.js +0 -29
- package/dist/spinner-DygONskw.js +0 -60
- package/dist/successIcon-Bjsdc4lF.js +0 -26
- package/dist/tutorial-Cdz1025D.js +0 -473
- package/dist/types/ekyb/styles.d.ts +0 -1
- package/dist/types/ekyc/styles.d.ts +0 -1
- package/dist/typography-BDACYR5i.js +0 -14
- package/dist/uiConfig-Dnt-2YWB.js +0 -23
- package/dist/useMediaQuery-lJdQBmC2.js +0 -18
- package/dist/vendor-preact-BoMmvSgn.js +0 -694
- package/dist/warningIcon-DQq_MrOB.js +0 -26
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
import { u as o, c as U } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
-
import { d as g, A as p, y as C } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
-
import { C as ie } from "./chevronDown-DSHaPKbi.js";
|
|
4
|
-
import { E as le } from "./errorIcon-DEARBrGx.js";
|
|
5
|
-
import { S as pe } from "./successIcon-Bjsdc4lF.js";
|
|
6
|
-
const ue = ({ size: c = 20 }) => /* @__PURE__ */ o(
|
|
7
|
-
"svg",
|
|
8
|
-
{
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
width: c,
|
|
11
|
-
height: c,
|
|
12
|
-
viewBox: "0 0 20 20",
|
|
13
|
-
fill: "none",
|
|
14
|
-
class: "IncodeSearchIcon",
|
|
15
|
-
"aria-hidden": "true",
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ o("title", { children: "Search" }),
|
|
18
|
-
/* @__PURE__ */ o(
|
|
19
|
-
"path",
|
|
20
|
-
{
|
|
21
|
-
d: "M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z",
|
|
22
|
-
stroke: "var(--icon-neutral-300)",
|
|
23
|
-
"stroke-width": "2",
|
|
24
|
-
"stroke-linecap": "round",
|
|
25
|
-
"stroke-linejoin": "round"
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
/* @__PURE__ */ o(
|
|
29
|
-
"path",
|
|
30
|
-
{
|
|
31
|
-
d: "M19 19L14.65 14.65",
|
|
32
|
-
stroke: "var(--icon-neutral-300)",
|
|
33
|
-
"stroke-width": "2",
|
|
34
|
-
"stroke-linecap": "round",
|
|
35
|
-
"stroke-linejoin": "round"
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
), De = ({
|
|
41
|
-
id: c,
|
|
42
|
-
label: u,
|
|
43
|
-
placeholder: W = "Choose an option",
|
|
44
|
-
value: b,
|
|
45
|
-
options: k,
|
|
46
|
-
onChange: V,
|
|
47
|
-
error: l,
|
|
48
|
-
helper: y,
|
|
49
|
-
showErrorIcon: Z,
|
|
50
|
-
showHelperIcon: _,
|
|
51
|
-
suppressMessages: S = !1,
|
|
52
|
-
disabled: f = !1,
|
|
53
|
-
required: $,
|
|
54
|
-
searchable: h = !1,
|
|
55
|
-
searchPlaceholder: H = "Search...",
|
|
56
|
-
noResultsText: K = "No results found",
|
|
57
|
-
name: L,
|
|
58
|
-
tabIndex: G,
|
|
59
|
-
onKeyDown: J,
|
|
60
|
-
onBlur: P,
|
|
61
|
-
renderSelectedLabel: O,
|
|
62
|
-
siblingElement: T,
|
|
63
|
-
enterKeyHint: fe,
|
|
64
|
-
class: X,
|
|
65
|
-
"aria-label": B,
|
|
66
|
-
"data-testid": Y
|
|
67
|
-
}) => {
|
|
68
|
-
const [r, d] = g(!1), [ee, j] = g(!1), [a, t] = g(-1), [w, z] = g(""), N = p(null), m = p(null), q = p(null), x = p([]), R = p(null), A = p(""), v = p(), I = k.find((e) => e.value === b), oe = I ? O ? O(I) : I.label : W, s = h && w ? k.filter(
|
|
69
|
-
(e) => e.label.toLowerCase().includes(w.toLowerCase())
|
|
70
|
-
) : k, E = `${c}-label`, F = `${c}-listbox`, M = `${c}-helper`, Q = `${c}-error`, re = S ? "" : [y ? M : null, l ? Q : null].filter(Boolean).join(" ");
|
|
71
|
-
C(() => {
|
|
72
|
-
if (!r) return;
|
|
73
|
-
const e = requestAnimationFrame(() => {
|
|
74
|
-
h && R.current && R.current.focus(), requestAnimationFrame(() => {
|
|
75
|
-
q.current?.scrollIntoView({
|
|
76
|
-
behavior: "smooth",
|
|
77
|
-
block: "nearest",
|
|
78
|
-
inline: "nearest"
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
return () => cancelAnimationFrame(e);
|
|
83
|
-
}, [r, h]), C(() => {
|
|
84
|
-
r || (t(-1), z(""));
|
|
85
|
-
}, [r]), C(() => {
|
|
86
|
-
a >= 0 && x.current[a] && x.current[a]?.scrollIntoView({
|
|
87
|
-
block: "nearest",
|
|
88
|
-
inline: "nearest"
|
|
89
|
-
});
|
|
90
|
-
}, [a]), C(() => () => {
|
|
91
|
-
v.current && clearTimeout(v.current);
|
|
92
|
-
}, []);
|
|
93
|
-
const ne = () => {
|
|
94
|
-
f || d((e) => !e);
|
|
95
|
-
}, D = (e) => {
|
|
96
|
-
V(e), d(!1), t(-1), m.current?.focus();
|
|
97
|
-
}, te = () => {
|
|
98
|
-
j(!0);
|
|
99
|
-
}, ae = (e) => {
|
|
100
|
-
j(!1), N.current?.contains(e.relatedTarget) || (d(!1), P?.());
|
|
101
|
-
}, se = (e) => {
|
|
102
|
-
if (f) return;
|
|
103
|
-
J?.(e);
|
|
104
|
-
const { key: i } = e;
|
|
105
|
-
if (i.length === 1 && /^[a-zA-Z0-9]$/.test(i)) {
|
|
106
|
-
e.preventDefault(), v.current && clearTimeout(v.current), A.current += i.toLowerCase();
|
|
107
|
-
const n = s.findIndex(
|
|
108
|
-
(de) => de.label.toLowerCase().startsWith(A.current)
|
|
109
|
-
);
|
|
110
|
-
n !== -1 && (r || d(!0), t(n)), v.current = setTimeout(() => {
|
|
111
|
-
A.current = "";
|
|
112
|
-
}, 500);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
switch (i) {
|
|
116
|
-
case "ArrowDown":
|
|
117
|
-
e.preventDefault(), r ? t(
|
|
118
|
-
(n) => n < s.length - 1 ? n + 1 : n
|
|
119
|
-
) : (d(!0), t(0));
|
|
120
|
-
break;
|
|
121
|
-
case "ArrowUp":
|
|
122
|
-
e.preventDefault(), r ? t((n) => n > 0 ? n - 1 : n) : (d(!0), t(s.length - 1));
|
|
123
|
-
break;
|
|
124
|
-
case "Home":
|
|
125
|
-
e.preventDefault(), r && t(0);
|
|
126
|
-
break;
|
|
127
|
-
case "End":
|
|
128
|
-
e.preventDefault(), r && t(s.length - 1);
|
|
129
|
-
break;
|
|
130
|
-
case "Enter":
|
|
131
|
-
e.preventDefault(), r && a >= 0 && s[a] ? D(s[a].value) : r || d(!0);
|
|
132
|
-
break;
|
|
133
|
-
case " ":
|
|
134
|
-
e.preventDefault(), r && a >= 0 && s[a] ? D(s[a].value) : r || (d(!0), t(0));
|
|
135
|
-
break;
|
|
136
|
-
case "Escape":
|
|
137
|
-
e.preventDefault(), r && (d(!1), t(-1), m.current?.focus());
|
|
138
|
-
break;
|
|
139
|
-
case "Tab":
|
|
140
|
-
r && (d(!1), t(-1));
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}, ce = (e) => {
|
|
144
|
-
const { key: i } = e;
|
|
145
|
-
switch (i) {
|
|
146
|
-
case "ArrowDown":
|
|
147
|
-
e.preventDefault(), t(
|
|
148
|
-
(n) => n < s.length - 1 ? n + 1 : n
|
|
149
|
-
);
|
|
150
|
-
break;
|
|
151
|
-
case "ArrowUp":
|
|
152
|
-
e.preventDefault(), t((n) => n > 0 ? n - 1 : n);
|
|
153
|
-
break;
|
|
154
|
-
case "Home":
|
|
155
|
-
e.preventDefault(), t(0);
|
|
156
|
-
break;
|
|
157
|
-
case "End":
|
|
158
|
-
e.preventDefault(), t(s.length - 1);
|
|
159
|
-
break;
|
|
160
|
-
case "Enter":
|
|
161
|
-
e.preventDefault(), a >= 0 && s[a] && D(s[a].value);
|
|
162
|
-
break;
|
|
163
|
-
case "Escape":
|
|
164
|
-
e.preventDefault(), d(!1), t(-1), m.current?.focus();
|
|
165
|
-
break;
|
|
166
|
-
case "Tab":
|
|
167
|
-
d(!1), t(-1);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
return /* @__PURE__ */ o(
|
|
172
|
-
"div",
|
|
173
|
-
{
|
|
174
|
-
class: U("IncodeDropdownComposed", X),
|
|
175
|
-
ref: N,
|
|
176
|
-
onBlur: ae,
|
|
177
|
-
children: [
|
|
178
|
-
L && /* @__PURE__ */ o(
|
|
179
|
-
"input",
|
|
180
|
-
{
|
|
181
|
-
type: "hidden",
|
|
182
|
-
name: L,
|
|
183
|
-
value: b || "",
|
|
184
|
-
disabled: f,
|
|
185
|
-
required: $
|
|
186
|
-
}
|
|
187
|
-
),
|
|
188
|
-
u && /* @__PURE__ */ o(
|
|
189
|
-
"label",
|
|
190
|
-
{
|
|
191
|
-
class: "IncodeDropdownComposedLabel",
|
|
192
|
-
id: E,
|
|
193
|
-
htmlFor: c,
|
|
194
|
-
"data-testid": `${c}-label`,
|
|
195
|
-
children: [
|
|
196
|
-
u,
|
|
197
|
-
$ && /* @__PURE__ */ o("span", { class: "IncodeDropdownComposedRequired", children: " *" })
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
),
|
|
201
|
-
/* @__PURE__ */ o("div", { class: "IncodeDropdownComposedWrapper", children: [
|
|
202
|
-
/* @__PURE__ */ o(
|
|
203
|
-
"div",
|
|
204
|
-
{
|
|
205
|
-
class: U("IncodeDropdownComposedTriggerRow", {
|
|
206
|
-
IncodeDropdownComposedTriggerRowWithSibling: !!T
|
|
207
|
-
}),
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ o(
|
|
210
|
-
"button",
|
|
211
|
-
{
|
|
212
|
-
ref: m,
|
|
213
|
-
type: "button",
|
|
214
|
-
id: c,
|
|
215
|
-
class: "IncodeDropdownComposedTrigger",
|
|
216
|
-
onClick: ne,
|
|
217
|
-
onFocus: te,
|
|
218
|
-
onKeyDown: se,
|
|
219
|
-
tabIndex: f ? -1 : G ?? 0,
|
|
220
|
-
disabled: f,
|
|
221
|
-
"aria-haspopup": "listbox",
|
|
222
|
-
"aria-expanded": r ? "true" : "false",
|
|
223
|
-
"aria-disabled": f ? "true" : void 0,
|
|
224
|
-
"aria-labelledby": u ? E : void 0,
|
|
225
|
-
"aria-label": u ? void 0 : B,
|
|
226
|
-
"aria-controls": r ? F : void 0,
|
|
227
|
-
"aria-activedescendant": r && a >= 0 ? `${c}-option-${a}` : void 0,
|
|
228
|
-
"aria-invalid": l ? "true" : void 0,
|
|
229
|
-
"aria-required": $ ? "true" : void 0,
|
|
230
|
-
"aria-describedby": re || void 0,
|
|
231
|
-
"data-error": l ? "true" : void 0,
|
|
232
|
-
"data-focused": ee || r ? "true" : void 0,
|
|
233
|
-
"data-testid": Y,
|
|
234
|
-
children: [
|
|
235
|
-
/* @__PURE__ */ o(
|
|
236
|
-
"span",
|
|
237
|
-
{
|
|
238
|
-
class: I ? "IncodeDropdownComposedTriggerText" : "IncodeDropdownComposedTriggerPlaceholder",
|
|
239
|
-
children: oe
|
|
240
|
-
}
|
|
241
|
-
),
|
|
242
|
-
/* @__PURE__ */ o(
|
|
243
|
-
"span",
|
|
244
|
-
{
|
|
245
|
-
class: "IncodeDropdownComposedTriggerIcon",
|
|
246
|
-
"aria-hidden": "true",
|
|
247
|
-
"data-open": r,
|
|
248
|
-
children: /* @__PURE__ */ o(ie, {})
|
|
249
|
-
}
|
|
250
|
-
)
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
),
|
|
254
|
-
T && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedSibling", children: T })
|
|
255
|
-
]
|
|
256
|
-
}
|
|
257
|
-
),
|
|
258
|
-
r && /* @__PURE__ */ o(
|
|
259
|
-
"div",
|
|
260
|
-
{
|
|
261
|
-
ref: q,
|
|
262
|
-
class: "IncodeDropdownComposedList",
|
|
263
|
-
"data-error": l ? "true" : void 0,
|
|
264
|
-
children: [
|
|
265
|
-
h && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedSearchWrapper", children: /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedSearchInner", children: [
|
|
266
|
-
/* @__PURE__ */ o(
|
|
267
|
-
"input",
|
|
268
|
-
{
|
|
269
|
-
ref: R,
|
|
270
|
-
type: "text",
|
|
271
|
-
class: "IncodeDropdownComposedSearchInput",
|
|
272
|
-
value: w,
|
|
273
|
-
onInput: (e) => {
|
|
274
|
-
z(e.target.value), t(0);
|
|
275
|
-
},
|
|
276
|
-
onKeyDown: ce,
|
|
277
|
-
placeholder: H,
|
|
278
|
-
role: "combobox",
|
|
279
|
-
"aria-autocomplete": "list",
|
|
280
|
-
"aria-expanded": "true",
|
|
281
|
-
"aria-controls": F,
|
|
282
|
-
"aria-activedescendant": a >= 0 ? `${c}-option-${a}` : void 0,
|
|
283
|
-
"aria-label": H,
|
|
284
|
-
autocomplete: "off"
|
|
285
|
-
}
|
|
286
|
-
),
|
|
287
|
-
/* @__PURE__ */ o(
|
|
288
|
-
"span",
|
|
289
|
-
{
|
|
290
|
-
class: "IncodeDropdownComposedSearchIcon",
|
|
291
|
-
"aria-hidden": "true",
|
|
292
|
-
children: /* @__PURE__ */ o(ue, { size: 20 })
|
|
293
|
-
}
|
|
294
|
-
)
|
|
295
|
-
] }) }),
|
|
296
|
-
/* @__PURE__ */ o(
|
|
297
|
-
"div",
|
|
298
|
-
{
|
|
299
|
-
id: F,
|
|
300
|
-
role: "listbox",
|
|
301
|
-
"aria-labelledby": u ? E : void 0,
|
|
302
|
-
"aria-label": u ? void 0 : B ?? W,
|
|
303
|
-
class: "IncodeDropdownComposedOptionsScroll",
|
|
304
|
-
children: s.length === 0 ? /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedNoResults", children: K }) : s.map((e, i) => /* @__PURE__ */ o(
|
|
305
|
-
"div",
|
|
306
|
-
{
|
|
307
|
-
id: `${c}-option-${i}`,
|
|
308
|
-
role: "option",
|
|
309
|
-
"aria-selected": b === e.value ? "true" : "false",
|
|
310
|
-
class: "IncodeDropdownComposedOption",
|
|
311
|
-
"data-highlighted": a === i,
|
|
312
|
-
ref: (n) => {
|
|
313
|
-
x.current[i] = n;
|
|
314
|
-
},
|
|
315
|
-
onClick: () => D(e.value),
|
|
316
|
-
onMouseDown: (n) => n.preventDefault(),
|
|
317
|
-
onMouseEnter: () => t(i),
|
|
318
|
-
children: e.label
|
|
319
|
-
},
|
|
320
|
-
e.value
|
|
321
|
-
))
|
|
322
|
-
}
|
|
323
|
-
)
|
|
324
|
-
]
|
|
325
|
-
}
|
|
326
|
-
)
|
|
327
|
-
] }),
|
|
328
|
-
h && /* @__PURE__ */ o(
|
|
329
|
-
"div",
|
|
330
|
-
{
|
|
331
|
-
class: "IncodeDropdownComposedLiveRegion",
|
|
332
|
-
role: "status",
|
|
333
|
-
"aria-live": "polite",
|
|
334
|
-
"aria-atomic": "true",
|
|
335
|
-
children: r && w ? s.length === 0 ? K : `${s.length} result${s.length !== 1 ? "s" : ""} available` : ""
|
|
336
|
-
}
|
|
337
|
-
),
|
|
338
|
-
!S && l && /* @__PURE__ */ o(
|
|
339
|
-
"div",
|
|
340
|
-
{
|
|
341
|
-
class: "IncodeDropdownComposedErrorWrapper",
|
|
342
|
-
"data-testid": `${c}-error-wrapper`,
|
|
343
|
-
children: [
|
|
344
|
-
Z && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedIconWrapper", children: /* @__PURE__ */ o(le, { size: 17 }) }),
|
|
345
|
-
/* @__PURE__ */ o("p", { id: Q, class: "IncodeDropdownComposedError", children: l })
|
|
346
|
-
]
|
|
347
|
-
}
|
|
348
|
-
),
|
|
349
|
-
!S && y && !l && /* @__PURE__ */ o(
|
|
350
|
-
"div",
|
|
351
|
-
{
|
|
352
|
-
class: "IncodeDropdownComposedHelperWrapper",
|
|
353
|
-
"data-testid": `${c}-helper-wrapper`,
|
|
354
|
-
children: [
|
|
355
|
-
_ && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedIconWrapper", children: /* @__PURE__ */ o(pe, { size: 17 }) }),
|
|
356
|
-
/* @__PURE__ */ o("p", { id: M, class: "IncodeDropdownComposedHelper", children: y })
|
|
357
|
-
]
|
|
358
|
-
}
|
|
359
|
-
)
|
|
360
|
-
]
|
|
361
|
-
}
|
|
362
|
-
);
|
|
363
|
-
};
|
|
364
|
-
export {
|
|
365
|
-
De as D,
|
|
366
|
-
ue as S
|
|
367
|
-
};
|