@alfadocs/ui-kit-debug 1.75.0 → 1.75.1
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/_chunks/{booking-ojunD_Y_.js → booking-D2r19Lia.js} +2 -2
- package/dist/_chunks/{booking-ojunD_Y_.js.map → booking-D2r19Lia.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-CctI6mpd.js → calendar-appointment-editor-dialog-B4My4eiB.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-CctI6mpd.js.map → calendar-appointment-editor-dialog-B4My4eiB.js.map} +1 -1
- package/dist/_chunks/{patient-details-Dgd_tocD.js → patient-details-B-I9Xkh9.js} +2 -2
- package/dist/_chunks/{patient-details-Dgd_tocD.js.map → patient-details-B-I9Xkh9.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-BFVlJnS9.js → patient-field-row-Bn0z6lAZ.js} +2 -2
- package/dist/_chunks/{patient-field-row-BFVlJnS9.js.map → patient-field-row-Bn0z6lAZ.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-BTKvFUmh.js → patient-summary-card-bhDo0gVX.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BTKvFUmh.js.map → patient-summary-card-bhDo0gVX.js.map} +1 -1
- package/dist/_chunks/{phone-input-EwVuqFik.js → phone-input-C3NrD-nl.js} +78 -73
- package/dist/_chunks/phone-input-C3NrD-nl.js.map +1 -0
- package/dist/_chunks/{registration-form-B6qqeXP1.js → registration-form-DeK2QiJu.js} +2 -2
- package/dist/_chunks/{registration-form-B6qqeXP1.js.map → registration-form-DeK2QiJu.js.map} +1 -1
- package/dist/_chunks/{send-registration-link-form-pO2bGjGa.js → send-registration-link-form-__DWY62q.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-pO2bGjGa.js.map → send-registration-link-form-__DWY62q.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-BFslxbRr.js → use-appointment-details-read-lFUL4kkd.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BFslxbRr.js.map → use-appointment-details-read-lFUL4kkd.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/phone-input-EwVuqFik.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Xe, useContext as et, useMemo as v, useState as G, useRef as
|
|
2
|
+
import { forwardRef as Xe, useContext as et, useMemo as v, useState as G, useRef as y, useEffect as de, useCallback as U } from "react";
|
|
3
3
|
import { u as tt } from "./registry-DvAUVLHh.js";
|
|
4
4
|
import { u as nt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
5
5
|
import { u as st } from "./use-dom-value-DTxHhQAN.js";
|
|
6
6
|
import * as O from "@radix-ui/react-popover";
|
|
7
7
|
import { u as ot, f as rt } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
8
|
-
import { R as at, _ as
|
|
8
|
+
import { R as at, _ as I } from "./index-4xgbg-sn.js";
|
|
9
9
|
import { c as pe } from "./index-D2ZczOXr.js";
|
|
10
10
|
import { useTranslation as it } from "react-i18next";
|
|
11
|
-
import { getCountries as dt, parsePhoneNumberFromString as T, AsYouType as W, getCountryCallingCode as
|
|
12
|
-
import { u as
|
|
11
|
+
import { getCountries as dt, parsePhoneNumberFromString as T, AsYouType as W, getCountryCallingCode as lt } from "libphonenumber-js/min";
|
|
12
|
+
import { u as ut, F as ct, a as pt } from "./form-field-context-DtiROUJV.js";
|
|
13
13
|
import { c as ft } from "./compose-refs-C0k0tdqF.js";
|
|
14
|
-
import { n as
|
|
14
|
+
import { n as le } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
15
15
|
import { b as mt } from "./menu-row-BAr8bx1I.js";
|
|
16
|
-
import { a as
|
|
16
|
+
import { a as ue } from "./flag-DVBE6DnB.js";
|
|
17
17
|
import { C as ht } from "./chevron-down-DWE7GSq9.js";
|
|
18
18
|
const gt = {
|
|
19
19
|
id: "phone-input",
|
|
@@ -100,7 +100,11 @@ const gt = {
|
|
|
100
100
|
"ds:has-[input:focus]:outline-[length:var(--focus-ring-width)] ds:has-[input:focus]:outline-solid",
|
|
101
101
|
"ds:has-[input:focus]:outline-ring ds:has-[input:focus]:outline-offset-[length:var(--focus-ring-offset)]",
|
|
102
102
|
"ds:forced-colors:has-[input:focus]:outline-[CanvasText]",
|
|
103
|
-
"ds:has-[input:disabled]:cursor-not-allowed ds:has-[input:disabled]:opacity-50"
|
|
103
|
+
"ds:has-[input:disabled]:cursor-not-allowed ds:has-[input:disabled]:opacity-50",
|
|
104
|
+
/* A locked number looks like a locked TextInput: muted, flat, no dimming.
|
|
105
|
+
Keyed on an explicit attribute, not `has-[input:read-only]`, which also
|
|
106
|
+
matches hidden inputs inside the wrapper. */
|
|
107
|
+
"ds:data-[read-only]:bg-muted ds:data-[read-only]:shadow-none ds:data-[read-only]:cursor-default"
|
|
104
108
|
].join(" "),
|
|
105
109
|
{
|
|
106
110
|
variants: {
|
|
@@ -143,7 +147,7 @@ const gt = {
|
|
|
143
147
|
},
|
|
144
148
|
defaultVariants: { size: "md" }
|
|
145
149
|
}
|
|
146
|
-
),
|
|
150
|
+
), yt = pe(
|
|
147
151
|
[
|
|
148
152
|
"ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
149
153
|
"ds:border-0 ds:outline-none",
|
|
@@ -160,7 +164,7 @@ const gt = {
|
|
|
160
164
|
},
|
|
161
165
|
defaultVariants: { size: "md" }
|
|
162
166
|
}
|
|
163
|
-
),
|
|
167
|
+
), bt = [
|
|
164
168
|
"ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-72",
|
|
165
169
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
|
|
166
170
|
"ds:shadow-[var(--shadow-lg)]",
|
|
@@ -212,16 +216,16 @@ function Re(s, a, c, o, f) {
|
|
|
212
216
|
if (c) {
|
|
213
217
|
const C = typeof navigator < "u" ? navigator.language : void 0;
|
|
214
218
|
if (C) {
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
if (d(
|
|
219
|
+
const b = C.match(/-([A-Za-z]{2})/);
|
|
220
|
+
if (b) {
|
|
221
|
+
const x = b[1].toUpperCase();
|
|
222
|
+
if (d(x)) return x;
|
|
219
223
|
}
|
|
220
224
|
}
|
|
221
225
|
try {
|
|
222
|
-
const
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
226
|
+
const b = new Intl.Locale(o).region;
|
|
227
|
+
if (b && d(b.toUpperCase()))
|
|
228
|
+
return b.toUpperCase();
|
|
225
229
|
} catch {
|
|
226
230
|
}
|
|
227
231
|
}
|
|
@@ -237,7 +241,7 @@ function St(s, a) {
|
|
|
237
241
|
const o = a.map((i) => ({
|
|
238
242
|
code: i,
|
|
239
243
|
name: c.of(i) ?? i,
|
|
240
|
-
dialCode:
|
|
244
|
+
dialCode: lt(i)
|
|
241
245
|
})), f = new Intl.Collator(s);
|
|
242
246
|
return o.sort((i, d) => f.compare(i.name, d.name));
|
|
243
247
|
}
|
|
@@ -250,8 +254,8 @@ const Et = Xe(
|
|
|
250
254
|
onChange: i,
|
|
251
255
|
size: d = "md",
|
|
252
256
|
tone: C = "default",
|
|
253
|
-
disabled:
|
|
254
|
-
readOnly:
|
|
257
|
+
disabled: b,
|
|
258
|
+
readOnly: x,
|
|
255
259
|
placeholder: Se,
|
|
256
260
|
popularCountries: V,
|
|
257
261
|
allowedCountries: D,
|
|
@@ -264,7 +268,7 @@ const Et = Xe(
|
|
|
264
268
|
"aria-label": Fe
|
|
265
269
|
}, Te) {
|
|
266
270
|
var Ne;
|
|
267
|
-
const { t: z, i18n: E } = it("ui"), R =
|
|
271
|
+
const { t: z, i18n: E } = it("ui"), R = ut(), k = et(ct) !== null, h = v(
|
|
268
272
|
() => new Set(dt()),
|
|
269
273
|
[]
|
|
270
274
|
), p = v(() => {
|
|
@@ -294,9 +298,9 @@ const Et = Xe(
|
|
|
294
298
|
} : { country: e, display: t, pinned: !1 };
|
|
295
299
|
}
|
|
296
300
|
return { country: e, display: "", pinned: !1 };
|
|
297
|
-
}, []), [
|
|
301
|
+
}, []), [l, j] = G(J.country), [Q, g] = G(
|
|
298
302
|
J.display
|
|
299
|
-
), [X, A] = G(!1), [De, fe] = G(""), me = a !== void 0, ee =
|
|
303
|
+
), [X, A] = G(!1), [De, fe] = G(""), me = a !== void 0, ee = y(""), B = y(null), $ = y(J.pinned), P = y(null), Le = ft(Te, P), je = st(P, Q), he = y(null), ge = y(null);
|
|
300
304
|
de(() => {
|
|
301
305
|
if ($.current) return;
|
|
302
306
|
const e = Re(
|
|
@@ -330,10 +334,10 @@ const Et = Xe(
|
|
|
330
334
|
const t = P.current;
|
|
331
335
|
t && document.activeElement === t && t.setSelectionRange(e, e);
|
|
332
336
|
});
|
|
333
|
-
const
|
|
337
|
+
const N = U(
|
|
334
338
|
(e, t) => {
|
|
335
|
-
const n = T(e, t),
|
|
336
|
-
ee.current =
|
|
339
|
+
const n = T(e, t), u = (n == null ? void 0 : n.number) ?? "";
|
|
340
|
+
ee.current = u, i == null || i(u, {
|
|
337
341
|
country: t,
|
|
338
342
|
isValid: (n == null ? void 0 : n.isValid()) ?? !1,
|
|
339
343
|
isPossible: (n == null ? void 0 : n.isPossible()) ?? !1,
|
|
@@ -341,9 +345,9 @@ const Et = Xe(
|
|
|
341
345
|
});
|
|
342
346
|
},
|
|
343
347
|
[i]
|
|
344
|
-
), Ae = pt(R, L), Be = L ?? (k ? Ae : void 0), te = (k ? R.disabled : !1) || !!
|
|
348
|
+
), Ae = pt(R, L), Be = L ?? (k ? Ae : void 0), te = (k ? R.disabled : !1) || !!b, $e = (k ? R.required : !1) || !!Pe, ve = k ? R.invalid : !1, He = ve ? "error" : C, Ke = k && R.describedBy ? R.describedBy : void 0, Me = Se ?? z("inputs.phone.placeholder", "Phone number"), H = y(Z);
|
|
345
349
|
H.current = Z;
|
|
346
|
-
const ne =
|
|
350
|
+
const ne = y(!1), K = y(!1), M = U(
|
|
347
351
|
(e) => {
|
|
348
352
|
var t, n;
|
|
349
353
|
return e instanceof Node && !!((t = he.current) != null && t.contains(e) || (n = ge.current) != null && n.contains(e));
|
|
@@ -357,12 +361,12 @@ const Et = Xe(
|
|
|
357
361
|
}, qe = (e) => {
|
|
358
362
|
const t = e.relatedTarget;
|
|
359
363
|
M(t) || t === null && K.current || se();
|
|
360
|
-
},
|
|
364
|
+
}, ye = Z !== void 0;
|
|
361
365
|
de(() => {
|
|
362
|
-
if (!
|
|
366
|
+
if (!ye) return;
|
|
363
367
|
let e;
|
|
364
|
-
const t = (
|
|
365
|
-
K.current = M(
|
|
368
|
+
const t = (u) => {
|
|
369
|
+
K.current = M(u.target), !K.current && (e = window.setTimeout(() => {
|
|
366
370
|
M(document.activeElement) || se();
|
|
367
371
|
}, 0));
|
|
368
372
|
}, n = () => {
|
|
@@ -371,52 +375,52 @@ const Et = Xe(
|
|
|
371
375
|
return document.addEventListener("pointerdown", t, !0), document.addEventListener("pointerup", n, !0), document.addEventListener("pointercancel", n, !0), () => {
|
|
372
376
|
window.clearTimeout(e), document.removeEventListener("pointerdown", t, !0), document.removeEventListener("pointerup", n, !0), document.removeEventListener("pointercancel", n, !0);
|
|
373
377
|
};
|
|
374
|
-
}, [
|
|
375
|
-
const oe = ke === "e164" && Y !== void 0, Ge = oe ? ((Ne = T(Q,
|
|
376
|
-
if (je(),
|
|
377
|
-
const t = e.target, n = t.value,
|
|
378
|
-
B.current = Rt(ie, S), g(ie),
|
|
379
|
-
},
|
|
378
|
+
}, [ye, M, se]);
|
|
379
|
+
const oe = ke === "e164" && Y !== void 0, Ge = oe ? ((Ne = T(Q, l)) == null ? void 0 : Ne.number) ?? "" : "", Ue = (e) => {
|
|
380
|
+
if (je(), x) return;
|
|
381
|
+
const t = e.target, n = t.value, u = t.selectionStart ?? n.length, S = zt(n, u), ie = new W(l).input(n);
|
|
382
|
+
B.current = Rt(ie, S), g(ie), N(ie, l);
|
|
383
|
+
}, be = ee, Oe = v(
|
|
380
384
|
() => ({
|
|
381
|
-
getValue: () =>
|
|
385
|
+
getValue: () => be.current,
|
|
382
386
|
setValue: (e) => {
|
|
383
387
|
if (e === "") {
|
|
384
|
-
g(""),
|
|
388
|
+
g(""), N("", l);
|
|
385
389
|
return;
|
|
386
390
|
}
|
|
387
391
|
const t = T(e);
|
|
388
392
|
if (t != null && t.country)
|
|
389
|
-
$.current = !0, j(t.country), g(t.formatNational()),
|
|
393
|
+
$.current = !0, j(t.country), g(t.formatNational()), N(t.formatNational(), t.country);
|
|
390
394
|
else {
|
|
391
|
-
const
|
|
392
|
-
g(
|
|
395
|
+
const u = new W(l).input(e);
|
|
396
|
+
g(u), N(u, l);
|
|
393
397
|
}
|
|
394
398
|
},
|
|
395
399
|
clear: () => {
|
|
396
|
-
g(""),
|
|
400
|
+
g(""), N("", l);
|
|
397
401
|
},
|
|
398
402
|
focus: () => {
|
|
399
403
|
var e;
|
|
400
404
|
return (e = P.current) == null ? void 0 : e.focus();
|
|
401
405
|
}
|
|
402
406
|
}),
|
|
403
|
-
[
|
|
407
|
+
[l, N, be]
|
|
404
408
|
);
|
|
405
409
|
tt(gt, Oe, L);
|
|
406
410
|
const We = ot(!0, {
|
|
407
411
|
getAnchor: rt,
|
|
408
412
|
onReturnToTrigger: () => A(!1)
|
|
409
413
|
}), Ye = (e) => {
|
|
410
|
-
if (e ===
|
|
414
|
+
if (e === l) {
|
|
411
415
|
A(!1);
|
|
412
416
|
return;
|
|
413
417
|
}
|
|
414
|
-
const t = Q.replace(/\D/g, ""), n = new W(e),
|
|
415
|
-
$.current = !0, j(e), g(
|
|
418
|
+
const t = Q.replace(/\D/g, ""), n = new W(e), u = t ? n.input(t) : "";
|
|
419
|
+
$.current = !0, j(e), g(u), A(!1), fe(""), N(u, e), requestAnimationFrame(() => {
|
|
416
420
|
var S;
|
|
417
421
|
(S = P.current) == null || S.focus();
|
|
418
422
|
});
|
|
419
|
-
},
|
|
423
|
+
}, w = v(
|
|
420
424
|
() => St(
|
|
421
425
|
E.language,
|
|
422
426
|
p ?? Array.from(h)
|
|
@@ -424,22 +428,22 @@ const Et = Xe(
|
|
|
424
428
|
[E.language, h, p]
|
|
425
429
|
), F = v(() => {
|
|
426
430
|
if (!V || V.length === 0) return [];
|
|
427
|
-
const e = new Map(
|
|
431
|
+
const e = new Map(w.map((t) => [t.code, t]));
|
|
428
432
|
return V.filter((t) => h.has(t)).map((t) => e.get(t)).filter((t) => !!t);
|
|
429
|
-
}, [V,
|
|
433
|
+
}, [V, w, h]), re = v(
|
|
430
434
|
() => new Set(F.map((e) => e.code)),
|
|
431
435
|
[F]
|
|
432
436
|
), Ze = v(
|
|
433
|
-
() => re.size > 0 ?
|
|
434
|
-
[
|
|
437
|
+
() => re.size > 0 ? w.filter((e) => !re.has(e.code)) : w,
|
|
438
|
+
[w, re]
|
|
435
439
|
), _ = v(
|
|
436
|
-
() =>
|
|
437
|
-
[
|
|
438
|
-
), ae = _ ? _.dialCode : "", Ce = _ ? _.name :
|
|
440
|
+
() => w.find((e) => e.code === l),
|
|
441
|
+
[w, l]
|
|
442
|
+
), ae = _ ? _.dialCode : "", Ce = _ ? _.name : l, q = z("inputs.phone.countryPickerLabel", "Country"), Je = `${q}: ${Ce}, +${ae}`, Qe = U(
|
|
439
443
|
(e, t, n) => {
|
|
440
|
-
const
|
|
444
|
+
const u = le(e), S = le(t), we = n == null ? void 0 : n.map(le);
|
|
441
445
|
return at(
|
|
442
|
-
|
|
446
|
+
u,
|
|
443
447
|
S,
|
|
444
448
|
we
|
|
445
449
|
);
|
|
@@ -448,7 +452,7 @@ const Et = Xe(
|
|
|
448
452
|
), xe = (e) => {
|
|
449
453
|
const t = `${e.name}, +${e.dialCode}`;
|
|
450
454
|
return /* @__PURE__ */ m(
|
|
451
|
-
|
|
455
|
+
I.Item,
|
|
452
456
|
{
|
|
453
457
|
value: e.code,
|
|
454
458
|
keywords: [e.name, e.dialCode, `+${e.dialCode}`],
|
|
@@ -456,7 +460,7 @@ const Et = Xe(
|
|
|
456
460
|
className: Nt,
|
|
457
461
|
"aria-label": t,
|
|
458
462
|
children: [
|
|
459
|
-
/* @__PURE__ */ r(
|
|
463
|
+
/* @__PURE__ */ r(ue, { country: e.code, size: ce[d] }),
|
|
460
464
|
/* @__PURE__ */ r("span", { className: "ds:flex-1 ds:truncate", children: e.name }),
|
|
461
465
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:text-muted-foreground ds:tabular-nums", children: [
|
|
462
466
|
"+",
|
|
@@ -476,6 +480,7 @@ const Et = Xe(
|
|
|
476
480
|
"data-component": "phone-input",
|
|
477
481
|
"data-component-id": L,
|
|
478
482
|
"data-slot": "phone-input",
|
|
483
|
+
"data-read-only": x ? "" : void 0,
|
|
479
484
|
className: vt({
|
|
480
485
|
size: d,
|
|
481
486
|
tone: He,
|
|
@@ -489,7 +494,7 @@ const Et = Xe(
|
|
|
489
494
|
className: `${Ie({ size: d })} ds:cursor-default ds:hover:bg-transparent`,
|
|
490
495
|
children: [
|
|
491
496
|
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: `${q}: ${Ce}` }),
|
|
492
|
-
/* @__PURE__ */ r(
|
|
497
|
+
/* @__PURE__ */ r(ue, { country: l, size: ce[d] }),
|
|
493
498
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
494
499
|
"+",
|
|
495
500
|
ae
|
|
@@ -501,13 +506,13 @@ const Et = Xe(
|
|
|
501
506
|
"button",
|
|
502
507
|
{
|
|
503
508
|
type: "button",
|
|
504
|
-
disabled: te || !!
|
|
509
|
+
disabled: te || !!x,
|
|
505
510
|
"aria-haspopup": "dialog",
|
|
506
511
|
"aria-expanded": X,
|
|
507
512
|
"aria-label": Je,
|
|
508
513
|
className: Ie({ size: d }),
|
|
509
514
|
children: [
|
|
510
|
-
/* @__PURE__ */ r(
|
|
515
|
+
/* @__PURE__ */ r(ue, { country: l, size: ce[d] }),
|
|
511
516
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
512
517
|
"+",
|
|
513
518
|
ae
|
|
@@ -535,9 +540,9 @@ const Et = Xe(
|
|
|
535
540
|
sideOffset: 6,
|
|
536
541
|
align: "start",
|
|
537
542
|
"aria-label": q,
|
|
538
|
-
className:
|
|
543
|
+
className: bt,
|
|
539
544
|
children: /* @__PURE__ */ m(
|
|
540
|
-
|
|
545
|
+
I,
|
|
541
546
|
{
|
|
542
547
|
filter: Qe,
|
|
543
548
|
shouldFilter: !0,
|
|
@@ -545,7 +550,7 @@ const Et = Xe(
|
|
|
545
550
|
label: q,
|
|
546
551
|
children: [
|
|
547
552
|
/* @__PURE__ */ r(
|
|
548
|
-
|
|
553
|
+
I.Input,
|
|
549
554
|
{
|
|
550
555
|
asChild: !0,
|
|
551
556
|
value: De,
|
|
@@ -567,17 +572,17 @@ const Et = Xe(
|
|
|
567
572
|
)
|
|
568
573
|
}
|
|
569
574
|
),
|
|
570
|
-
/* @__PURE__ */ m(
|
|
571
|
-
/* @__PURE__ */ r(
|
|
575
|
+
/* @__PURE__ */ m(I.List, { className: xt, children: [
|
|
576
|
+
/* @__PURE__ */ r(I.Empty, { className: wt, children: z("inputs.phone.noCountryFound", "No country found") }),
|
|
572
577
|
F.length > 0 ? /* @__PURE__ */ r(
|
|
573
|
-
|
|
578
|
+
I.Group,
|
|
574
579
|
{
|
|
575
580
|
heading: /* @__PURE__ */ r("span", { className: ze, children: z("inputs.phone.popularCountries", "Popular") }),
|
|
576
581
|
children: F.map(xe)
|
|
577
582
|
}
|
|
578
583
|
) : null,
|
|
579
584
|
/* @__PURE__ */ r(
|
|
580
|
-
|
|
585
|
+
I.Group,
|
|
581
586
|
{
|
|
582
587
|
heading: F.length > 0 ? /* @__PURE__ */ r("span", { className: ze, children: z("inputs.phone.allCountries", "All countries") }) : void 0,
|
|
583
588
|
children: Ze.map(xe)
|
|
@@ -601,13 +606,13 @@ const Et = Xe(
|
|
|
601
606
|
autoComplete: "tel-national",
|
|
602
607
|
placeholder: Me,
|
|
603
608
|
disabled: te,
|
|
604
|
-
readOnly:
|
|
609
|
+
readOnly: x,
|
|
605
610
|
required: $e,
|
|
606
611
|
"aria-label": Fe,
|
|
607
612
|
"aria-describedby": Ke,
|
|
608
613
|
"aria-invalid": ve || void 0,
|
|
609
614
|
onChange: Ue,
|
|
610
|
-
className:
|
|
615
|
+
className: yt({ size: d })
|
|
611
616
|
}
|
|
612
617
|
),
|
|
613
618
|
oe ? /* @__PURE__ */ r(
|
|
@@ -627,8 +632,8 @@ const Et = Xe(
|
|
|
627
632
|
Et.displayName = "PhoneInput";
|
|
628
633
|
export {
|
|
629
634
|
Et as P,
|
|
630
|
-
|
|
635
|
+
yt as a,
|
|
631
636
|
Ie as c,
|
|
632
637
|
vt as p
|
|
633
638
|
};
|
|
634
|
-
//# sourceMappingURL=phone-input-
|
|
639
|
+
//# sourceMappingURL=phone-input-C3NrD-nl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-input-C3NrD-nl.js","sources":["../../src/components/phone-input/phone-input.agent.ts","../../src/components/phone-input/phone-input.tsx"],"sourcesContent":["/* -------------------------------------------------------------------- */\n/* Agent adapter — PhoneInput. */\n/* */\n/* See `src/docs/26-agent-readiness.mdx` for the contract. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\nimport type { PhoneInputHandle } from './phone-input';\n\nexport const phoneInputAgent: AgentAdapter<PhoneInputHandle> = {\n id: 'phone-input',\n // A phone number is a single form value, not free-form rich text — `set_value`\n // (not `edit_inline`, which is reserved for in-place rich/cell editing).\n capabilities: ['set_value'],\n state: {\n value: {\n type: 'string',\n descriptionKey: 'ui.agent.phoneInput.state.value',\n description:\n 'Current E.164 phone number, or empty string when not yet valid.',\n read: (handle) => handle.getValue(),\n },\n isEmpty: {\n type: 'boolean',\n descriptionKey: 'ui.agent.phoneInput.state.isEmpty',\n description: 'Whether the input has no value.',\n read: (handle) => handle.getValue() === '',\n },\n },\n actions: {\n set_value: {\n safety: 'write',\n argsType: '{ value: string }',\n argsSchema: {\n type: 'object',\n properties: {\n value: {\n type: 'string',\n description:\n 'Phone number in E.164 or national format; the parser infers the country.',\n },\n },\n required: ['value'],\n },\n idempotent: true,\n descriptionKey: 'ui.agent.phoneInput.actions.setValue',\n description:\n 'Replace the phone number (E.164 or national format; parser will infer country).',\n examples: [\n { args: { value: '+393331234567' }, note: 'Set an Italian mobile.' },\n ],\n invoke: (handle, args: { value: string }) => {\n handle.setValue(args.value);\n },\n },\n clear: {\n safety: 'destructive',\n idempotent: true,\n descriptionKey: 'ui.agent.phoneInput.actions.clear',\n description: 'Empty the input. Loses any typed value.',\n invoke: (handle) => {\n handle.clear();\n },\n },\n focus: {\n safety: 'read',\n descriptionKey: 'ui.agent.phoneInput.actions.focus',\n description: 'Move keyboard focus to the phone-number input.',\n invoke: (handle) => {\n handle.focus();\n },\n },\n },\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'phone-input',\n description: 'Marks the PhoneInput wrapper.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop.',\n },\n },\n};\n","import {\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ChangeEvent,\n type FocusEvent,\n} from 'react';\nimport { useAgentRegistration } from '../../agent';\nimport { phoneInputAgent } from './phone-input.agent';\nimport { useIsomorphicLayoutEffect } from '../../hooks/use-isomorphic-layout-effect';\nimport { useDomValue } from '../_shared/use-dom-value';\n\n/** Agent-readiness curated handle for PhoneInput. */\nexport interface PhoneInputHandle {\n getValue: () => string;\n setValue: (value: string) => void;\n clear: () => void;\n focus: () => void;\n}\nimport * as Popover from '@radix-ui/react-popover';\nimport {\n findPopoverTrigger,\n useNonModalTabExit,\n} from '../_shared/non-modal-tab-exit';\nimport { Command, defaultFilter } from 'cmdk';\nimport { cva } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { ChevronDown } from 'lucide-react';\nimport {\n AsYouType,\n getCountries,\n getCountryCallingCode,\n parsePhoneNumberFromString,\n type CountryCode,\n} from 'libphonenumber-js/min';\nimport {\n FormFieldContext,\n useFormField,\n useFormFieldControlId,\n} from '../form-field/form-field-context';\nimport { composeRefs } from '../_shared/compose-refs';\nimport { normalizeDiacritics } from '../_shared/normalize-diacritics';\nimport { MENU_ROW_HIGHLIGHT } from '../_shared/menu-row';\nimport { Flag } from '../flag';\n\nexport interface PhoneInputChangeMeta {\n country: CountryCode;\n isValid: boolean;\n isPossible: boolean;\n type?: string;\n}\n\nexport interface PhoneInputProps {\n value?: string;\n defaultValue?: string;\n /**\n * Country pre-selected when no value is supplied. Defaults to `IT`\n * (AlfaDocs's dominant user base is Italian). Pass a different\n * `CountryCode` to override, or enable `detectBrowserCountry` to\n * derive it from the browser locale.\n */\n defaultCountry?: CountryCode;\n /**\n * When true, infer the default country from `navigator.language` /\n * `Intl.Locale` before falling back to `defaultCountry` (or `IT`).\n * Off by default — most AlfaDocs flows should stay on IT regardless\n * of the visitor's browser locale.\n */\n detectBrowserCountry?: boolean;\n onChange?: (e164: string, meta: PhoneInputChangeMeta) => void;\n size?: 'sm' | 'md' | 'lg';\n tone?: 'default' | 'error';\n disabled?: boolean;\n readOnly?: boolean;\n placeholder?: string;\n popularCountries?: CountryCode[];\n /**\n * Restrict the country picker to this set (ISO 3166-1 alpha-2 codes), in\n * the order given. Unsupported or duplicate codes are dropped; an empty /\n * all-invalid list is ignored (every country stays selectable).\n * `popularCountries` is intersected with this set. When the list resolves\n * to a single country the picker collapses to a fixed, non-interactive\n * dial code — only the national-number field stays editable.\n */\n allowedCountries?: CountryCode[];\n className?: string;\n id?: string;\n name?: string;\n /**\n * What `name` posts in a native form. `national` (the default) posts the\n * number field's own text, e.g. `333 123 4567`. `e164` posts the full\n * number from a hidden field instead, e.g. `+393331234567`: the string\n * `onChange` reports, so it is empty while the text is not yet a number.\n */\n nameFormat?: 'national' | 'e164';\n required?: boolean;\n /**\n * Fires once when focus has left the whole control. Moving between the\n * country picker and the number field does not fire it. It takes no\n * event: the control has several parts, so there is no single target.\n */\n onBlur?: () => void;\n 'aria-label'?: string;\n}\n\nconst phoneInputWrapperVariants = cva(\n [\n 'ds:group ds:relative ds:inline-flex ds:items-stretch ds:w-full',\n 'ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-input',\n 'ds:shadow-[var(--shadow-input)]',\n 'ds:text-foreground',\n 'ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none',\n /* The ring is for the number field only. The country button draws its\n own, and `focus-within` here would draw a second one around it. */\n 'ds:has-[input:focus]:outline-[length:var(--focus-ring-width)] ds:has-[input:focus]:outline-solid',\n 'ds:has-[input:focus]:outline-ring ds:has-[input:focus]:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:forced-colors:has-[input:focus]:outline-[CanvasText]',\n 'ds:has-[input:disabled]:cursor-not-allowed ds:has-[input:disabled]:opacity-50',\n /* A locked number looks like a locked TextInput: muted, flat, no dimming.\n Keyed on an explicit attribute, not `has-[input:read-only]`, which also\n matches hidden inputs inside the wrapper. */\n 'ds:data-[read-only]:bg-muted ds:data-[read-only]:shadow-none ds:data-[read-only]:cursor-default',\n ].join(' '),\n {\n variants: {\n size: {\n sm: 'ds:h-8 ds:text-[length:var(--font-size-sm)]',\n md: 'ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]',\n lg: 'ds:h-12 ds:text-[length:var(--font-size-lg)]',\n },\n tone: {\n default: '',\n error: 'ds:border-destructive ds:has-[input:focus]:outline-destructive',\n },\n },\n defaultVariants: {\n size: 'md',\n tone: 'default',\n },\n },\n);\n\nconst countryTriggerVariants = cva(\n [\n 'ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]',\n 'ds:bg-transparent ds:text-foreground',\n 'ds:border-0 ds:border-e ds:border-e-border',\n 'ds:rounded-s-[var(--radius-sm)]',\n 'ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none',\n 'ds:hover:bg-muted',\n 'ds:focus:outline-none',\n 'ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid',\n 'ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:forced-colors:focus-visible:outline-[CanvasText]',\n 'ds:disabled:cursor-not-allowed',\n ].join(' '),\n {\n variants: {\n size: {\n sm: 'ds:ps-3 ds:pe-2',\n md: 'ds:ps-3 ds:pe-2',\n lg: 'ds:ps-4 ds:pe-3',\n },\n },\n defaultVariants: { size: 'md' },\n },\n);\n\nconst phoneNumberInputVariants = cva(\n [\n 'ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground',\n 'ds:border-0 ds:outline-none',\n 'ds:disabled:cursor-not-allowed',\n 'ds:read-only:cursor-default',\n ].join(' '),\n {\n variants: {\n size: {\n sm: 'ds:ps-2 ds:pe-3 ds:text-[length:var(--font-size-sm)]',\n md: 'ds:ps-2 ds:pe-3 ds:text-[length:var(--font-size-base)]',\n lg: 'ds:ps-3 ds:pe-4 ds:text-[length:var(--font-size-lg)]',\n },\n },\n defaultVariants: { size: 'md' },\n },\n);\n\nconst pickerContentClasses = [\n 'ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-72',\n 'ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground',\n 'ds:shadow-[var(--shadow-lg)]',\n 'ds:animate-in ds:fade-in ds:zoom-in-95',\n 'ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out',\n 'ds:data-[state=closed]:zoom-out-95',\n 'ds:data-[side=bottom]:slide-in-from-top-2',\n 'ds:data-[side=top]:slide-in-from-bottom-2',\n 'ds:motion-reduce:animate-none',\n].join(' ');\n\nconst pickerSearchClasses = [\n 'ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground',\n 'ds:border-0 ds:border-b ds:border-b-border ds:outline-none',\n 'ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]',\n 'ds:focus:outline-none',\n].join(' ');\n\nconst pickerListClasses =\n 'ds:max-h-72 ds:overflow-y-auto ds:p-[var(--spacing-xs)]';\n\nconst pickerItemClasses = [\n 'ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]',\n 'ds:rounded-[var(--radius-sm)] ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]',\n 'ds:text-foreground ds:outline-none ds:select-none',\n MENU_ROW_HIGHLIGHT.selected,\n].join(' ');\n\nconst pickerGroupHeadingClasses = [\n 'ds:ps-3 ds:pe-3 ds:py-1.5',\n 'type-eyebrow ds:text-muted-foreground',\n].join(' ');\n\nconst pickerEmptyClasses =\n 'ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground';\n\nconst chevronSizeBySize = {\n sm: 'ds:size-3.5',\n md: 'ds:size-4',\n lg: 'ds:size-5',\n} as const;\n\nconst flagSizeBySize = {\n sm: 'sm',\n md: 'md',\n lg: 'lg',\n} as const satisfies Record<'sm' | 'md' | 'lg', 'sm' | 'md' | 'lg'>;\n\nfunction countDigitsBefore(str: string, position: number): number {\n let digits = 0;\n for (let i = 0; i < position && i < str.length; i++) {\n if (str[i] >= '0' && str[i] <= '9') digits++;\n }\n return digits;\n}\n\nfunction positionAfterDigits(str: string, targetDigits: number): number {\n if (targetDigits === 0) return 0;\n let count = 0;\n for (let i = 0; i < str.length; i++) {\n if (str[i] >= '0' && str[i] <= '9') {\n count++;\n if (count === targetDigits) return i + 1;\n }\n }\n return str.length;\n}\n\nfunction resolveDefaultCountry(\n explicit: CountryCode | undefined,\n supported: Set<string>,\n detectBrowser: boolean,\n locale: string,\n allowedList: CountryCode[] | null,\n): CountryCode {\n const allowed =\n allowedList && allowedList.length ? new Set<string>(allowedList) : null;\n const ok = (code: string) =>\n supported.has(code) && (!allowed || allowed.has(code));\n\n if (explicit && ok(explicit)) return explicit;\n\n if (detectBrowser) {\n const fromNavigator =\n typeof navigator !== 'undefined' ? navigator.language : undefined;\n if (fromNavigator) {\n const match = fromNavigator.match(/-([A-Za-z]{2})/);\n if (match) {\n const candidate = match[1].toUpperCase();\n if (ok(candidate)) return candidate as CountryCode;\n }\n }\n\n try {\n const region = new Intl.Locale(locale).region;\n if (region && ok(region.toUpperCase())) {\n return region.toUpperCase() as CountryCode;\n }\n } catch {\n // Intl.Locale may throw on malformed BCP-47 — fall through.\n }\n }\n\n // A restricted list with no explicit / detected hit defaults to the\n // consumer's first listed country; otherwise AlfaDocs's Italian-first\n // fallback.\n if (allowed) return allowedList![0];\n return 'IT';\n}\n\ninterface CountryRow {\n code: CountryCode;\n name: string;\n dialCode: string;\n}\n\nfunction buildCountryRows(\n locale: string,\n countries: CountryCode[],\n): CountryRow[] {\n let displayNames: Intl.DisplayNames;\n try {\n displayNames = new Intl.DisplayNames([locale], { type: 'region' });\n } catch {\n displayNames = new Intl.DisplayNames(['en'], { type: 'region' });\n }\n const rows = countries.map<CountryRow>((code) => ({\n code,\n name: displayNames.of(code) ?? code,\n dialCode: getCountryCallingCode(code),\n }));\n const collator = new Intl.Collator(locale);\n return rows.sort((a, b) => collator.compare(a.name, b.name));\n}\n\nexport const PhoneInput = forwardRef<HTMLInputElement, PhoneInputProps>(\n function PhoneInput(\n {\n value,\n defaultValue,\n defaultCountry,\n detectBrowserCountry = false,\n onChange,\n size = 'md',\n tone = 'default',\n disabled,\n readOnly,\n placeholder,\n popularCountries,\n allowedCountries,\n className,\n id,\n name,\n nameFormat = 'national',\n required,\n onBlur,\n 'aria-label': ariaLabel,\n },\n ref,\n ) {\n const { t, i18n } = useTranslation('ui');\n const ctx = useFormField();\n const inFormField = useContext(FormFieldContext) !== null;\n\n const supportedCountries = useMemo(\n () => new Set(getCountries() as string[]),\n [],\n );\n\n // Consumer-restricted country set, filtered to supported + deduped with\n // order preserved. `null` means \"no restriction\" (every country shown).\n const allowedList = useMemo<CountryCode[] | null>(() => {\n if (!allowedCountries || allowedCountries.length === 0) return null;\n const seen = new Set<string>();\n const filtered = allowedCountries.filter((code) => {\n if (!supportedCountries.has(code) || seen.has(code)) return false;\n seen.add(code);\n return true;\n });\n return filtered.length > 0 ? filtered : null;\n }, [allowedCountries, supportedCountries]);\n\n // A single allowed country has nothing to pick — render the dial code as a\n // fixed, non-interactive prefix instead of a one-item picker.\n const isCountryFixed = allowedList !== null && allowedList.length === 1;\n\n const initialState = useMemo(() => {\n const resolvedCountry = resolveDefaultCountry(\n defaultCountry,\n supportedCountries,\n detectBrowserCountry,\n i18n.language,\n allowedList,\n );\n const raw = value ?? defaultValue;\n if (raw) {\n const parsed = parsePhoneNumberFromString(raw);\n if (parsed?.country) {\n // Clamp the parsed country to `allowedCountries` so the rendered dial\n // code can never leave the allowed set — a single-country lock stays\n // on its country even when handed an off-set value.\n if (!allowedList || allowedList.includes(parsed.country)) {\n return {\n country: parsed.country,\n display: parsed.formatNational(),\n pinned: true,\n };\n }\n return {\n country: resolvedCountry,\n display: new AsYouType(resolvedCountry).input(\n parsed.nationalNumber,\n ),\n pinned: true,\n };\n }\n return { country: resolvedCountry, display: raw, pinned: false };\n }\n return { country: resolvedCountry, display: '', pinned: false };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const [country, setCountry] = useState<CountryCode>(initialState.country);\n const [displayValue, setDisplayValue] = useState<string>(\n initialState.display,\n );\n const [pickerOpen, setPickerOpen] = useState(false);\n const [pickerSearch, setPickerSearch] = useState('');\n\n const isControlled = value !== undefined;\n const lastEmittedRef = useRef<string>('');\n const pendingCaretRef = useRef<number | null>(null);\n // Pins the country once the user (or an incoming value) selects one,\n // so the locale-flip effect below stops re-resolving.\n const userSelectedCountryRef = useRef(initialState.pinned);\n\n const inputRef = useRef<HTMLInputElement | null>(null);\n const composedInputRef = composeRefs(ref, inputRef);\n // The number is written to the input's DOM property, never to its\n // `value` attribute, where a copied outerHTML or a session replay\n // could read it. Declared before the caret effect below, which places\n // the caret in the text this one writes.\n const syncDisplay = useDomValue(inputRef, displayValue);\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n const pickerContentRef = useRef<HTMLDivElement | null>(null);\n\n // Re-resolve the country when i18n.language flips from the bootstrap\n // fallback to the real locale on first paint, unless the user has\n // already pinned a country.\n useEffect(() => {\n if (userSelectedCountryRef.current) return;\n const next = resolveDefaultCountry(\n defaultCountry,\n supportedCountries,\n detectBrowserCountry,\n i18n.language,\n allowedList,\n );\n setCountry((prev) => (prev === next ? prev : next));\n }, [\n i18n.language,\n defaultCountry,\n supportedCountries,\n detectBrowserCountry,\n allowedList,\n ]);\n\n // Sync state back from a controlled `value` prop change that did not\n // originate from this component (e.g. parent reset). Skip the sync when\n // the incoming value matches what we just emitted.\n useEffect(() => {\n if (!isControlled) return;\n const current = value ?? '';\n if (current === lastEmittedRef.current) return;\n if (current === '') {\n setDisplayValue('');\n return;\n }\n const parsed = parsePhoneNumberFromString(current);\n if (\n parsed?.country &&\n (!allowedList || allowedList.includes(parsed.country))\n ) {\n userSelectedCountryRef.current = true;\n setCountry(parsed.country);\n setDisplayValue(parsed.formatNational());\n } else {\n // Off-set or unparseable controlled value — keep the country within the\n // allowed set; only sync the displayed digits.\n setDisplayValue(parsed ? parsed.formatNational() : current);\n }\n }, [value, isControlled, allowedList]);\n\n useIsomorphicLayoutEffect(() => {\n if (pendingCaretRef.current == null) return;\n const pos = pendingCaretRef.current;\n pendingCaretRef.current = null;\n const node = inputRef.current;\n if (node && document.activeElement === node) {\n node.setSelectionRange(pos, pos);\n }\n });\n\n const emit = useCallback(\n (nextDisplay: string, nextCountry: CountryCode) => {\n const parsed = parsePhoneNumberFromString(nextDisplay, nextCountry);\n const e164 = parsed?.number ?? '';\n lastEmittedRef.current = e164;\n onChange?.(e164, {\n country: nextCountry,\n isValid: parsed?.isValid() ?? false,\n isPossible: parsed?.isPossible() ?? false,\n type: parsed?.getType(),\n });\n },\n [onChange],\n );\n\n const controlId = useFormFieldControlId(ctx, id);\n const inputId = id ?? (inFormField ? controlId : undefined);\n const effectiveDisabled =\n (inFormField ? ctx.disabled : false) || Boolean(disabled);\n const effectiveRequired =\n (inFormField ? ctx.required : false) || Boolean(required);\n const effectiveInvalid = inFormField ? ctx.invalid : false;\n const effectiveTone = effectiveInvalid ? 'error' : tone;\n const describedBy =\n inFormField && ctx.describedBy ? ctx.describedBy : undefined;\n\n const resolvedPlaceholder =\n placeholder ?? t('inputs.phone.placeholder', 'Phone number');\n\n /* Focus leaving the whole control. The picker is portalled, so it is\n outside the wrapper in the DOM but still part of the control. */\n const onBlurRef = useRef(onBlur);\n onBlurRef.current = onBlur;\n const focusInsideRef = useRef(false);\n const pressInsideRef = useRef(false);\n const isInside = useCallback(\n (node: EventTarget | null) =>\n node instanceof Node &&\n Boolean(\n wrapperRef.current?.contains(node) ||\n pickerContentRef.current?.contains(node),\n ),\n [],\n );\n const leave = useCallback(() => {\n if (!focusInsideRef.current) return;\n focusInsideRef.current = false;\n onBlurRef.current?.();\n }, []);\n const handleFocus = () => {\n focusInsideRef.current = true;\n };\n const handleBlur = (event: FocusEvent<HTMLDivElement>) => {\n const next = event.relatedTarget;\n if (isInside(next)) return;\n /* Safari does not focus a button on click: pressing the country\n button blurs the number field to nowhere. */\n if (next === null && pressInsideRef.current) return;\n leave();\n };\n const listensForBlur = onBlur !== undefined;\n useEffect(() => {\n if (!listensForBlur) return;\n let check: number | undefined;\n const onPointerDown = (event: PointerEvent) => {\n pressInsideRef.current = isInside(event.target);\n if (pressInsideRef.current) return;\n /* A press outside closes the picker, and its focused search box\n can unmount without a blur event. */\n check = window.setTimeout(() => {\n if (!isInside(document.activeElement)) leave();\n }, 0);\n };\n const onPointerUp = () => {\n pressInsideRef.current = false;\n };\n document.addEventListener('pointerdown', onPointerDown, true);\n document.addEventListener('pointerup', onPointerUp, true);\n document.addEventListener('pointercancel', onPointerUp, true);\n return () => {\n window.clearTimeout(check);\n document.removeEventListener('pointerdown', onPointerDown, true);\n document.removeEventListener('pointerup', onPointerUp, true);\n document.removeEventListener('pointercancel', onPointerUp, true);\n };\n }, [listensForBlur, isInside, leave]);\n\n const postsE164 = nameFormat === 'e164' && name !== undefined;\n const e164Value = postsE164\n ? (parsePhoneNumberFromString(displayValue, country)?.number ?? '')\n : '';\n\n const handleInputChange = (event: ChangeEvent<HTMLInputElement>) => {\n // A keystroke the formatter drops (or a read-only field refuses)\n // leaves the text as it was, so no render follows: ask for one, to\n // take the refused character out.\n syncDisplay();\n if (readOnly) return;\n const target = event.target;\n const raw = target.value;\n const caret = target.selectionStart ?? raw.length;\n const digitsBefore = countDigitsBefore(raw, caret);\n\n const formatter = new AsYouType(country);\n const formatted = formatter.input(raw);\n\n pendingCaretRef.current = positionAfterDigits(formatted, digitsBefore);\n setDisplayValue(formatted);\n emit(formatted, country);\n };\n\n const lastEmittedRefForHandle = lastEmittedRef;\n const agentHandle = useMemo<PhoneInputHandle>(\n () => ({\n getValue: () => lastEmittedRefForHandle.current,\n setValue: (next) => {\n if (next === '') {\n setDisplayValue('');\n emit('', country);\n return;\n }\n const parsed = parsePhoneNumberFromString(next);\n if (parsed?.country) {\n userSelectedCountryRef.current = true;\n setCountry(parsed.country);\n setDisplayValue(parsed.formatNational());\n emit(parsed.formatNational(), parsed.country);\n } else {\n const formatter = new AsYouType(country);\n const formatted = formatter.input(next);\n setDisplayValue(formatted);\n emit(formatted, country);\n }\n },\n clear: () => {\n setDisplayValue('');\n emit('', country);\n },\n focus: () => inputRef.current?.focus(),\n }),\n [country, emit, lastEmittedRefForHandle],\n );\n useAgentRegistration(phoneInputAgent, agentHandle, id);\n const exitOnTab = useNonModalTabExit(true, {\n getAnchor: findPopoverTrigger,\n onReturnToTrigger: () => setPickerOpen(false),\n });\n\n const handleCountrySelect = (nextCountry: CountryCode) => {\n if (nextCountry === country) {\n setPickerOpen(false);\n return;\n }\n const digits = displayValue.replace(/\\D/g, '');\n const formatter = new AsYouType(nextCountry);\n const reformatted = digits ? formatter.input(digits) : '';\n userSelectedCountryRef.current = true;\n setCountry(nextCountry);\n setDisplayValue(reformatted);\n setPickerOpen(false);\n setPickerSearch('');\n emit(reformatted, nextCountry);\n requestAnimationFrame(() => {\n inputRef.current?.focus();\n });\n };\n\n const countryRows = useMemo(\n () =>\n buildCountryRows(\n i18n.language,\n allowedList ?? (Array.from(supportedCountries) as CountryCode[]),\n ),\n [i18n.language, supportedCountries, allowedList],\n );\n\n const popularRows = useMemo(() => {\n if (!popularCountries || popularCountries.length === 0) return [];\n const byCode = new Map(countryRows.map((row) => [row.code, row]));\n return popularCountries\n .filter((code): code is CountryCode => supportedCountries.has(code))\n .map((code) => byCode.get(code))\n .filter((row): row is CountryRow => Boolean(row));\n }, [popularCountries, countryRows, supportedCountries]);\n\n const popularCodes = useMemo(\n () => new Set(popularRows.map((row) => row.code)),\n [popularRows],\n );\n\n const remainingRows = useMemo(\n () =>\n popularCodes.size > 0\n ? countryRows.filter((row) => !popularCodes.has(row.code))\n : countryRows,\n [countryRows, popularCodes],\n );\n\n const selected = useMemo(\n () => countryRows.find((row) => row.code === country),\n [countryRows, country],\n );\n const selectedDialCode = selected ? selected.dialCode : '';\n const selectedName = selected ? selected.name : country;\n\n const triggerLabel = t('inputs.phone.countryPickerLabel', 'Country');\n const triggerAccessibleName = `${triggerLabel}: ${selectedName}, +${selectedDialCode}`;\n\n const filterFn = useCallback(\n (candidate: string, searchStr: string, keywords?: string[]) => {\n const normalizedCandidate = normalizeDiacritics(candidate);\n const normalizedSearch = normalizeDiacritics(searchStr);\n const normalizedKeywords = keywords?.map(normalizeDiacritics);\n return defaultFilter(\n normalizedCandidate,\n normalizedSearch,\n normalizedKeywords,\n );\n },\n [],\n );\n\n const renderRow = (row: CountryRow) => {\n const accessibleLabel = `${row.name}, +${row.dialCode}`;\n return (\n <Command.Item\n key={row.code}\n value={row.code}\n keywords={[row.name, row.dialCode, `+${row.dialCode}`]}\n onSelect={() => handleCountrySelect(row.code)}\n className={pickerItemClasses}\n aria-label={accessibleLabel}\n >\n <Flag country={row.code} size={flagSizeBySize[size]} />\n <span className=\"ds:flex-1 ds:truncate\">{row.name}</span>\n <bdi dir=\"ltr\" className=\"ds:text-muted-foreground ds:tabular-nums\">\n +{row.dialCode}\n </bdi>\n </Command.Item>\n );\n };\n\n return (\n <div\n ref={wrapperRef}\n onFocus={handleFocus}\n onBlur={handleBlur}\n data-component=\"phone-input\"\n data-component-id={id}\n data-slot=\"phone-input\"\n data-read-only={readOnly ? '' : undefined}\n className={phoneInputWrapperVariants({\n size,\n tone: effectiveTone,\n className,\n })}\n >\n {isCountryFixed ? (\n <span\n data-slot=\"phone-country-fixed\"\n className={`${countryTriggerVariants({ size })} ds:cursor-default ds:hover:bg-transparent`}\n >\n <span className=\"ds:sr-only\">{`${triggerLabel}: ${selectedName}`}</span>\n <Flag country={country} size={flagSizeBySize[size]} />\n <bdi dir=\"ltr\" className=\"ds:tabular-nums\">\n +{selectedDialCode}\n </bdi>\n </span>\n ) : (\n <Popover.Root open={pickerOpen} onOpenChange={setPickerOpen}>\n <Popover.Trigger asChild>\n <button\n type=\"button\"\n // A read-only number keeps its country too. The wrapper dims only for\n // a disabled number field, so a locked number stays legible.\n disabled={effectiveDisabled || Boolean(readOnly)}\n // What opens is a dialog: a search box over the list.\n aria-haspopup=\"dialog\"\n aria-expanded={pickerOpen}\n aria-label={triggerAccessibleName}\n className={countryTriggerVariants({ size })}\n >\n <Flag country={country} size={flagSizeBySize[size]} />\n <bdi dir=\"ltr\" className=\"ds:tabular-nums\">\n +{selectedDialCode}\n </bdi>\n <ChevronDown\n aria-hidden=\"true\"\n className={[\n chevronSizeBySize[size],\n 'ds:shrink-0 ds:text-muted-foreground',\n 'ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none',\n pickerOpen ? 'ds:rotate-180' : '',\n ].join(' ')}\n />\n </button>\n </Popover.Trigger>\n <Popover.Portal>\n <Popover.Content\n ref={pickerContentRef}\n onKeyDown={exitOnTab}\n sideOffset={6}\n align=\"start\"\n // Radix gives the content role=\"dialog\" with no name.\n aria-label={triggerLabel}\n className={pickerContentClasses}\n >\n <Command\n filter={filterFn}\n shouldFilter\n loop\n label={triggerLabel}\n >\n <Command.Input\n asChild\n value={pickerSearch}\n onValueChange={setPickerSearch}\n >\n <input\n data-phone-country-search=\"true\"\n type=\"text\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n spellCheck={false}\n placeholder={t(\n 'inputs.phone.searchCountry',\n 'Search countries…',\n )}\n className={pickerSearchClasses}\n />\n </Command.Input>\n <Command.List className={pickerListClasses}>\n <Command.Empty className={pickerEmptyClasses}>\n {t('inputs.phone.noCountryFound', 'No country found')}\n </Command.Empty>\n {popularRows.length > 0 ? (\n <Command.Group\n heading={\n <span className={pickerGroupHeadingClasses}>\n {t('inputs.phone.popularCountries', 'Popular')}\n </span>\n }\n >\n {popularRows.map(renderRow)}\n </Command.Group>\n ) : null}\n <Command.Group\n heading={\n popularRows.length > 0 ? (\n <span className={pickerGroupHeadingClasses}>\n {t('inputs.phone.allCountries', 'All countries')}\n </span>\n ) : undefined\n }\n >\n {remainingRows.map(renderRow)}\n </Command.Group>\n </Command.List>\n </Command>\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n )}\n <input\n ref={composedInputRef}\n id={inputId}\n name={postsE164 ? undefined : name}\n type=\"tel\"\n inputMode=\"tel\"\n autoComplete=\"tel-national\"\n placeholder={resolvedPlaceholder}\n disabled={effectiveDisabled}\n readOnly={readOnly}\n required={effectiveRequired}\n aria-label={ariaLabel}\n aria-describedby={describedBy}\n aria-invalid={effectiveInvalid || undefined}\n onChange={handleInputChange}\n className={phoneNumberInputVariants({ size })}\n />\n {postsE164 ? (\n <input\n type=\"hidden\"\n name={name}\n value={e164Value}\n disabled={effectiveDisabled}\n />\n ) : null}\n </div>\n );\n },\n);\n\nPhoneInput.displayName = 'PhoneInput';\n\nexport {\n phoneInputWrapperVariants,\n countryTriggerVariants,\n phoneNumberInputVariants,\n};\n"],"names":["phoneInputAgent","handle","args","phoneInputWrapperVariants","cva","countryTriggerVariants","phoneNumberInputVariants","pickerContentClasses","pickerSearchClasses","pickerListClasses","pickerItemClasses","MENU_ROW_HIGHLIGHT","pickerGroupHeadingClasses","pickerEmptyClasses","chevronSizeBySize","flagSizeBySize","countDigitsBefore","str","position","digits","i","positionAfterDigits","targetDigits","count","resolveDefaultCountry","explicit","supported","detectBrowser","locale","allowedList","allowed","ok","code","fromNavigator","match","candidate","region","buildCountryRows","countries","displayNames","rows","getCountryCallingCode","collator","a","b","PhoneInput","forwardRef","value","defaultValue","defaultCountry","detectBrowserCountry","onChange","size","tone","disabled","readOnly","placeholder","popularCountries","allowedCountries","className","id","name","nameFormat","required","onBlur","ariaLabel","ref","t","i18n","useTranslation","ctx","useFormField","inFormField","useContext","FormFieldContext","supportedCountries","useMemo","getCountries","seen","filtered","isCountryFixed","initialState","resolvedCountry","raw","parsed","parsePhoneNumberFromString","AsYouType","country","setCountry","useState","displayValue","setDisplayValue","pickerOpen","setPickerOpen","pickerSearch","setPickerSearch","isControlled","lastEmittedRef","useRef","pendingCaretRef","userSelectedCountryRef","inputRef","composedInputRef","composeRefs","syncDisplay","useDomValue","wrapperRef","pickerContentRef","useEffect","next","prev","current","useIsomorphicLayoutEffect","pos","node","emit","useCallback","nextDisplay","nextCountry","e164","controlId","useFormFieldControlId","inputId","effectiveDisabled","effectiveRequired","effectiveInvalid","effectiveTone","describedBy","resolvedPlaceholder","onBlurRef","focusInsideRef","pressInsideRef","isInside","_a","_b","leave","handleFocus","handleBlur","event","listensForBlur","check","onPointerDown","onPointerUp","postsE164","e164Value","handleInputChange","target","caret","digitsBefore","formatted","lastEmittedRefForHandle","agentHandle","useAgentRegistration","exitOnTab","useNonModalTabExit","findPopoverTrigger","handleCountrySelect","formatter","reformatted","countryRows","popularRows","byCode","row","popularCodes","remainingRows","selected","selectedDialCode","selectedName","triggerLabel","triggerAccessibleName","filterFn","searchStr","keywords","normalizedCandidate","normalizeDiacritics","normalizedSearch","normalizedKeywords","defaultFilter","renderRow","accessibleLabel","jsxs","Command","jsx","Flag","Popover","ChevronDown"],"mappings":";;;;;;;;;;;;;;;;;AASO,MAAMA,KAAkD;AAAA,EAC7D,IAAI;AAAA;AAAA;AAAA,EAGJ,cAAc,CAAC,WAAW;AAAA,EAC1B,OAAO;AAAA,IACL,OAAO;AAAA,MACL,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,MAAM,CAACC,MAAWA,EAAO,SAAA;AAAA,IAAS;AAAA,IAEpC,SAAS;AAAA,MACP,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,MAAM,CAACA,MAAWA,EAAO,eAAe;AAAA,IAAA;AAAA,EAC1C;AAAA,EAEF,SAAS;AAAA,IACP,WAAW;AAAA,MACT,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,YAAY;AAAA,QACV,MAAM;AAAA,QACN,YAAY;AAAA,UACV,OAAO;AAAA,YACL,MAAM;AAAA,YACN,aACE;AAAA,UAAA;AAAA,QACJ;AAAA,QAEF,UAAU,CAAC,OAAO;AAAA,MAAA;AAAA,MAEpB,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,UAAU;AAAA,QACR,EAAE,MAAM,EAAE,OAAO,gBAAA,GAAmB,MAAM,y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,7 @@ import { F as z } from "./form-field-Ani72sVY.js";
|
|
|
14
14
|
import { L as Ir } from "./list-CNnn7DOD.js";
|
|
15
15
|
import { P as Rr } from "./password-input-BokZ_rnT.js";
|
|
16
16
|
import { u as yn } from "./use-password-requirements-C8DdwPEy.js";
|
|
17
|
-
import { P as Fn } from "./phone-input-
|
|
17
|
+
import { P as Fn } from "./phone-input-C3NrD-nl.js";
|
|
18
18
|
import { R as xn } from "./recaptcha-widget-CsvwlYTE.js";
|
|
19
19
|
import { S as Sn } from "./select-4S-eYZUf.js";
|
|
20
20
|
import { S as Ar } from "./state-backed-text-input-Cgh4ms3p.js";
|
|
@@ -1307,4 +1307,4 @@ export {
|
|
|
1307
1307
|
$r as R,
|
|
1308
1308
|
es as a
|
|
1309
1309
|
};
|
|
1310
|
-
//# sourceMappingURL=registration-form-
|
|
1310
|
+
//# sourceMappingURL=registration-form-DeK2QiJu.js.map
|