@alfadocs/ui-kit 1.73.3 → 1.74.0
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/alia-sidebar-CsTRAxC8.js +1323 -0
- package/dist/_chunks/{anamnesis-summary-rows-BedVmSAB.js → anamnesis-summary-rows-vNDyE5HW.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-DW_qkGo1.js → antenatal-schedule-timeline-BGewPfEX.js} +18 -18
- package/dist/_chunks/{appointment-timeline-CKwMXUid.js → appointment-timeline-1-Za2miy.js} +2 -2
- package/dist/_chunks/{ar-pLopgMbL.js → ar-C4YQVTH6.js} +2 -2
- package/dist/_chunks/{auth-form-parts-DHv6LVV2.js → auth-form-parts-B3GWChvG.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DG5JWB2p.js → balance-badge-cell-B49xgL6H.js} +2 -2
- package/dist/_chunks/{booking-4BCeh7OY.js → booking-sq9sa29d.js} +8 -8
- package/dist/_chunks/brand-mark-DLk9kD8g.js +63 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-Lji2y0qJ.js → calendar-appointment-editor-dialog-CctI6mpd.js} +8 -8
- package/dist/_chunks/{cycle-calculator-Ycp3li61.js → cycle-calculator-HO3s5InI.js} +5 -5
- package/dist/_chunks/{date-picker-KcoNNsM0.js → date-picker-CdhXlgVI.js} +4 -4
- package/dist/_chunks/{date-picker-variants-DN37Oj5-.js → date-picker-variants-Dt6UbonG.js} +25 -25
- package/dist/_chunks/{date-range-picker-CjcjUJLW.js → date-range-picker-B_j4VQlV.js} +5 -5
- package/dist/_chunks/{date-time-picker-BVQNZ4yC.js → date-time-picker-n-yrlMJq.js} +3 -3
- package/dist/_chunks/{de-lVkJRPnh.js → de-B1B3PIgY.js} +2 -2
- package/dist/_chunks/{due-date-calculator-B0gyOijA.js → due-date-calculator-CDWTSblh.js} +6 -6
- package/dist/_chunks/{el-CHzxNWPj.js → el-iLqGpapg.js} +16 -16
- package/dist/_chunks/{en-GB-CwxYmmhU.js → en-GB-CxPRQbD6.js} +6 -6
- package/dist/_chunks/{es-Ck-oxbHW.js → es-Bg1oqwDs.js} +2 -2
- package/dist/_chunks/{forgot-password-form-D6kB72OD.js → forgot-password-form-BSOZVrZG.js} +3 -3
- package/dist/_chunks/{format-D-1gTdHF.js → format--x5jypvH.js} +13 -13
- package/dist/_chunks/{fr-fWRnDcSD.js → fr-DpGxyOGI.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-Bu_a-K9z.js → gestational-age-calculator-CTHeJJdb.js} +7 -7
- package/dist/_chunks/{hcg-doubling-BnopYgd-.js → hcg-doubling-BBk-a33g.js} +11 -11
- package/dist/_chunks/{hi-B5uX0h3V.js → hi-3Dtsksrw.js} +2 -2
- package/dist/_chunks/{isSameWeek-u81Z-J7h.js → isSameWeek-DyVftHWi.js} +2 -2
- package/dist/_chunks/{it-DBoNIelY.js → it-Cp0CA13d.js} +3 -3
- package/dist/_chunks/{ja-Du8gfg8p.js → ja-9FOyR1lb.js} +22 -22
- package/dist/_chunks/{kit-extensions-DgBi3tsK.js → kit-extensions-sNTZWkoo.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-BDxxpfJM.js → link-cell-renderer-B0riA_h_.js} +2 -2
- package/dist/_chunks/{login-dev-card-pnJbVaoQ.js → login-dev-card-DRxTPkE9.js} +3 -3
- package/dist/_chunks/{nl-BCBwxYi8.js → nl-sfx-zJgR.js} +2 -2
- package/dist/_chunks/{notes-panel-C_QshXyI.js → notes-panel-CxjMovCh.js} +2 -2
- package/dist/_chunks/{parse-UB4FJGNA.js → parse-B0s7bY4d.js} +3 -3
- package/dist/_chunks/{parseISO-y3LncvfO.js → parseISO-DZZ5a-zK.js} +2 -2
- package/dist/_chunks/{patient-details-Cd_dCqkg.js → patient-details-Dgd_tocD.js} +2 -2
- package/dist/_chunks/{patient-field-row-D6Ftm46u.js → patient-field-row-BFVlJnS9.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BSOHR4Ol.js → patient-summary-card-BTKvFUmh.js} +2 -2
- package/dist/_chunks/{phone-input-O9camxkq.js → phone-input-EwVuqFik.js} +74 -74
- package/dist/_chunks/{pl-HwLM6gPs.js → pl-BLh7KO-s.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-CvNFirHt.js → pregnancy-dating-JBAUbM40.js} +7 -7
- package/dist/_chunks/{pt-BxhT5ZQH.js → pt-CPKOrOLj.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-ESnkuDfH.js → radiograph-panel.agent-DQh2SX8G.js} +3 -3
- package/dist/_chunks/registration-form-B6qqeXP1.js +1310 -0
- package/dist/_chunks/{rich-text-editor-BXFgcvBW.js → rich-text-editor-BZTyxQBd.js} +1683 -1673
- package/dist/_chunks/{ro-Do9W55ae.js → ro-Dc-oNqbF.js} +2 -2
- package/dist/_chunks/{ru-PDBX5gdf.js → ru-BtNpDZRR.js} +3 -3
- package/dist/_chunks/send-registration-link-form-pO2bGjGa.js +409 -0
- package/dist/_chunks/{slot-grid-uA9j7Nik.js → slot-grid-Bb13H9Rl.js} +3 -3
- package/dist/_chunks/{sq-DnvsgyIh.js → sq-D4c7olaV.js} +2 -2
- package/dist/_chunks/subDays-DKISP2nE.js +8 -0
- package/dist/_chunks/{sv-CpFSK8xS.js → sv-Bf_dHPvh.js} +2 -2
- package/dist/_chunks/{task-editor-BTeUFGUX.js → task-editor-CRhfwP9T.js} +2 -2
- package/dist/_chunks/{tr-DW4oQYHT.js → tr-xqQ6cbGY.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BWbOiLVw.js → use-appointment-details-read-BFslxbRr.js} +2 -2
- package/dist/_chunks/use-field-match-C8ug3sdQ.js +30 -0
- package/dist/_chunks/use-registration-submit-CLGHxwoT.js +112 -0
- package/dist/_chunks/{zh-CN-QGEs29fQ.js → zh-CN-C657DBCO.js} +3 -3
- package/dist/agent-catalog.json +87 -3
- package/dist/agent-i18n/en.json +9 -2
- package/dist/alia-asteroid-icon/index.js +52 -0
- package/dist/aws-transcribe/index.js +320 -0
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/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/patient-table/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-field-match.d.ts +2 -2
- package/dist/i18n/locales/ar.d.ts +36 -0
- package/dist/i18n/locales/ar.js +38 -2
- package/dist/i18n/locales/de.d.ts +36 -0
- package/dist/i18n/locales/de.js +38 -2
- package/dist/i18n/locales/el.d.ts +36 -0
- package/dist/i18n/locales/el.js +38 -2
- package/dist/i18n/locales/en.d.ts +36 -0
- package/dist/i18n/locales/en.js +38 -2
- package/dist/i18n/locales/es.d.ts +36 -0
- package/dist/i18n/locales/es.js +38 -2
- package/dist/i18n/locales/fr.d.ts +36 -0
- package/dist/i18n/locales/fr.js +38 -2
- package/dist/i18n/locales/hi.d.ts +36 -0
- package/dist/i18n/locales/hi.js +38 -2
- package/dist/i18n/locales/it.d.ts +36 -0
- package/dist/i18n/locales/it.js +38 -2
- package/dist/i18n/locales/ja.d.ts +36 -0
- package/dist/i18n/locales/ja.js +38 -2
- package/dist/i18n/locales/nl.d.ts +36 -0
- package/dist/i18n/locales/nl.js +38 -2
- package/dist/i18n/locales/pl.d.ts +36 -0
- package/dist/i18n/locales/pl.js +38 -2
- package/dist/i18n/locales/pt.d.ts +36 -0
- package/dist/i18n/locales/pt.js +38 -2
- package/dist/i18n/locales/ro.d.ts +36 -0
- package/dist/i18n/locales/ro.js +38 -2
- package/dist/i18n/locales/ru.d.ts +36 -0
- package/dist/i18n/locales/ru.js +38 -2
- package/dist/i18n/locales/sq.d.ts +36 -0
- package/dist/i18n/locales/sq.js +38 -2
- package/dist/i18n/locales/sv.d.ts +36 -0
- package/dist/i18n/locales/sv.js +38 -2
- package/dist/i18n/locales/tr.d.ts +36 -0
- package/dist/i18n/locales/tr.js +38 -2
- package/dist/i18n/locales/zh.d.ts +36 -0
- package/dist/i18n/locales/zh.js +38 -2
- package/dist/index.js +296 -292
- package/dist/locales/ar.json +38 -2
- package/dist/locales/de.json +38 -2
- package/dist/locales/el.json +38 -2
- package/dist/locales/en.json +38 -2
- package/dist/locales/es.json +38 -2
- package/dist/locales/fr.json +38 -2
- package/dist/locales/hi.json +38 -2
- package/dist/locales/it.json +38 -2
- package/dist/locales/ja.json +38 -2
- package/dist/locales/nl.json +38 -2
- package/dist/locales/pl.json +38 -2
- package/dist/locales/pt.json +38 -2
- package/dist/locales/ro.json +38 -2
- package/dist/locales/ru.json +38 -2
- package/dist/locales/sq.json +38 -2
- package/dist/locales/sv.json +38 -2
- package/dist/locales/tr.json +38 -2
- package/dist/locales/zh.json +38 -2
- package/dist/patterns/alia-assistant/alia-types.d.ts +22 -0
- package/dist/patterns/alia-assistant/index.js +7 -6
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/registration-form/index.d.ts +1 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/registration-form/registration-form.d.ts +43 -0
- package/dist/patterns/registration-form/registration-verification.d.ts +38 -0
- package/dist/patterns/registration-form/use-contact-verification.d.ts +107 -0
- package/dist/patterns/registration-form/verification-requests.d.ts +9 -0
- package/dist/patterns/send-registration-link-form/index.d.ts +3 -0
- package/dist/patterns/send-registration-link-form/index.js +6 -0
- package/dist/patterns/send-registration-link-form/send-registration-link-form.d.ts +80 -0
- package/dist/speech/aws-transcribe.d.ts +65 -0
- package/dist/speech/event-stream.d.ts +13 -0
- package/dist/tokens.css +1 -1
- package/package.json +13 -1
- package/dist/_chunks/alia-sidebar-DZoyUFW8.js +0 -1290
- package/dist/_chunks/registration-form-BGSVMAga.js +0 -819
- package/dist/_chunks/subDays-xH7cpN6B.js +0 -8
- package/dist/_chunks/use-field-match-pdbEnKvO.js +0 -28
- package/dist/_chunks/use-registration-submit-eWAECgUC.js +0 -171
|
@@ -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 b, 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
|
-
import * as
|
|
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
8
|
import { R as at, _ as w } 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 ut } from "libphonenumber-js/min";
|
|
12
|
+
import { u as lt, 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 ue } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
15
15
|
import { b as mt } from "./menu-row-BAr8bx1I.js";
|
|
16
|
-
import { a as
|
|
16
|
+
import { a as le } 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,7 @@ 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-[:disabled]:cursor-not-allowed ds:has-[:disabled]:opacity-50"
|
|
103
|
+
"ds:has-[input:disabled]:cursor-not-allowed ds:has-[input:disabled]:opacity-50"
|
|
104
104
|
].join(" "),
|
|
105
105
|
{
|
|
106
106
|
variants: {
|
|
@@ -143,7 +143,7 @@ const gt = {
|
|
|
143
143
|
},
|
|
144
144
|
defaultVariants: { size: "md" }
|
|
145
145
|
}
|
|
146
|
-
),
|
|
146
|
+
), bt = pe(
|
|
147
147
|
[
|
|
148
148
|
"ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
149
149
|
"ds:border-0 ds:outline-none",
|
|
@@ -160,7 +160,7 @@ const gt = {
|
|
|
160
160
|
},
|
|
161
161
|
defaultVariants: { size: "md" }
|
|
162
162
|
}
|
|
163
|
-
),
|
|
163
|
+
), yt = [
|
|
164
164
|
"ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-72",
|
|
165
165
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
|
|
166
166
|
"ds:shadow-[var(--shadow-lg)]",
|
|
@@ -212,16 +212,16 @@ function Re(s, a, c, o, f) {
|
|
|
212
212
|
if (c) {
|
|
213
213
|
const C = typeof navigator < "u" ? navigator.language : void 0;
|
|
214
214
|
if (C) {
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
if (d(
|
|
215
|
+
const y = C.match(/-([A-Za-z]{2})/);
|
|
216
|
+
if (y) {
|
|
217
|
+
const I = y[1].toUpperCase();
|
|
218
|
+
if (d(I)) return I;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
try {
|
|
222
|
-
const
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
222
|
+
const y = new Intl.Locale(o).region;
|
|
223
|
+
if (y && d(y.toUpperCase()))
|
|
224
|
+
return y.toUpperCase();
|
|
225
225
|
} catch {
|
|
226
226
|
}
|
|
227
227
|
}
|
|
@@ -237,7 +237,7 @@ function St(s, a) {
|
|
|
237
237
|
const o = a.map((i) => ({
|
|
238
238
|
code: i,
|
|
239
239
|
name: c.of(i) ?? i,
|
|
240
|
-
dialCode:
|
|
240
|
+
dialCode: ut(i)
|
|
241
241
|
})), f = new Intl.Collator(s);
|
|
242
242
|
return o.sort((i, d) => f.compare(i.name, d.name));
|
|
243
243
|
}
|
|
@@ -250,8 +250,8 @@ const Et = Xe(
|
|
|
250
250
|
onChange: i,
|
|
251
251
|
size: d = "md",
|
|
252
252
|
tone: C = "default",
|
|
253
|
-
disabled:
|
|
254
|
-
readOnly:
|
|
253
|
+
disabled: y,
|
|
254
|
+
readOnly: I,
|
|
255
255
|
placeholder: Se,
|
|
256
256
|
popularCountries: V,
|
|
257
257
|
allowedCountries: D,
|
|
@@ -264,7 +264,7 @@ const Et = Xe(
|
|
|
264
264
|
"aria-label": Fe
|
|
265
265
|
}, Te) {
|
|
266
266
|
var Ne;
|
|
267
|
-
const { t:
|
|
267
|
+
const { t: z, i18n: E } = it("ui"), R = lt(), k = et(ct) !== null, h = v(
|
|
268
268
|
() => new Set(dt()),
|
|
269
269
|
[]
|
|
270
270
|
), p = v(() => {
|
|
@@ -294,9 +294,9 @@ const Et = Xe(
|
|
|
294
294
|
} : { country: e, display: t, pinned: !1 };
|
|
295
295
|
}
|
|
296
296
|
return { country: e, display: "", pinned: !1 };
|
|
297
|
-
}, []), [
|
|
297
|
+
}, []), [u, j] = G(J.country), [Q, g] = G(
|
|
298
298
|
J.display
|
|
299
|
-
), [X, A] = G(!1), [De, fe] = G(""), me = a !== void 0, ee =
|
|
299
|
+
), [X, A] = G(!1), [De, fe] = G(""), me = a !== void 0, ee = b(""), B = b(null), $ = b(J.pinned), P = b(null), Le = ft(Te, P), je = st(P, Q), he = b(null), ge = b(null);
|
|
300
300
|
de(() => {
|
|
301
301
|
if ($.current) return;
|
|
302
302
|
const e = Re(
|
|
@@ -330,10 +330,10 @@ const Et = Xe(
|
|
|
330
330
|
const t = P.current;
|
|
331
331
|
t && document.activeElement === t && t.setSelectionRange(e, e);
|
|
332
332
|
});
|
|
333
|
-
const x =
|
|
333
|
+
const x = U(
|
|
334
334
|
(e, t) => {
|
|
335
|
-
const n = T(e, t),
|
|
336
|
-
ee.current =
|
|
335
|
+
const n = T(e, t), l = (n == null ? void 0 : n.number) ?? "";
|
|
336
|
+
ee.current = l, i == null || i(l, {
|
|
337
337
|
country: t,
|
|
338
338
|
isValid: (n == null ? void 0 : n.isValid()) ?? !1,
|
|
339
339
|
isPossible: (n == null ? void 0 : n.isPossible()) ?? !1,
|
|
@@ -341,15 +341,15 @@ const Et = Xe(
|
|
|
341
341
|
});
|
|
342
342
|
},
|
|
343
343
|
[i]
|
|
344
|
-
), Ae = pt(
|
|
344
|
+
), Ae = pt(R, L), Be = L ?? (k ? Ae : void 0), te = (k ? R.disabled : !1) || !!y, $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 = b(Z);
|
|
345
345
|
H.current = Z;
|
|
346
|
-
const ne =
|
|
346
|
+
const ne = b(!1), K = b(!1), M = U(
|
|
347
347
|
(e) => {
|
|
348
348
|
var t, n;
|
|
349
349
|
return e instanceof Node && !!((t = he.current) != null && t.contains(e) || (n = ge.current) != null && n.contains(e));
|
|
350
350
|
},
|
|
351
351
|
[]
|
|
352
|
-
), se =
|
|
352
|
+
), se = U(() => {
|
|
353
353
|
var e;
|
|
354
354
|
ne.current && (ne.current = !1, (e = H.current) == null || e.call(H));
|
|
355
355
|
}, []), _e = () => {
|
|
@@ -357,12 +357,12 @@ const Et = Xe(
|
|
|
357
357
|
}, qe = (e) => {
|
|
358
358
|
const t = e.relatedTarget;
|
|
359
359
|
M(t) || t === null && K.current || se();
|
|
360
|
-
},
|
|
360
|
+
}, be = Z !== void 0;
|
|
361
361
|
de(() => {
|
|
362
|
-
if (!
|
|
362
|
+
if (!be) return;
|
|
363
363
|
let e;
|
|
364
|
-
const t = (
|
|
365
|
-
K.current = M(
|
|
364
|
+
const t = (l) => {
|
|
365
|
+
K.current = M(l.target), !K.current && (e = window.setTimeout(() => {
|
|
366
366
|
M(document.activeElement) || se();
|
|
367
367
|
}, 0));
|
|
368
368
|
}, n = () => {
|
|
@@ -371,50 +371,50 @@ const Et = Xe(
|
|
|
371
371
|
return document.addEventListener("pointerdown", t, !0), document.addEventListener("pointerup", n, !0), document.addEventListener("pointercancel", n, !0), () => {
|
|
372
372
|
window.clearTimeout(e), document.removeEventListener("pointerdown", t, !0), document.removeEventListener("pointerup", n, !0), document.removeEventListener("pointercancel", n, !0);
|
|
373
373
|
};
|
|
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,
|
|
379
|
-
},
|
|
374
|
+
}, [be, M, se]);
|
|
375
|
+
const oe = ke === "e164" && Y !== void 0, Ge = oe ? ((Ne = T(Q, u)) == null ? void 0 : Ne.number) ?? "" : "", Ue = (e) => {
|
|
376
|
+
if (je(), I) return;
|
|
377
|
+
const t = e.target, n = t.value, l = t.selectionStart ?? n.length, S = zt(n, l), ie = new W(u).input(n);
|
|
378
|
+
B.current = Rt(ie, S), g(ie), x(ie, u);
|
|
379
|
+
}, ye = ee, Oe = v(
|
|
380
380
|
() => ({
|
|
381
|
-
getValue: () =>
|
|
381
|
+
getValue: () => ye.current,
|
|
382
382
|
setValue: (e) => {
|
|
383
383
|
if (e === "") {
|
|
384
|
-
g(""), x("",
|
|
384
|
+
g(""), x("", u);
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
387
|
const t = T(e);
|
|
388
388
|
if (t != null && t.country)
|
|
389
389
|
$.current = !0, j(t.country), g(t.formatNational()), x(t.formatNational(), t.country);
|
|
390
390
|
else {
|
|
391
|
-
const
|
|
392
|
-
g(
|
|
391
|
+
const l = new W(u).input(e);
|
|
392
|
+
g(l), x(l, u);
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
395
|
clear: () => {
|
|
396
|
-
g(""), x("",
|
|
396
|
+
g(""), x("", u);
|
|
397
397
|
},
|
|
398
398
|
focus: () => {
|
|
399
399
|
var e;
|
|
400
400
|
return (e = P.current) == null ? void 0 : e.focus();
|
|
401
401
|
}
|
|
402
402
|
}),
|
|
403
|
-
[
|
|
403
|
+
[u, x, ye]
|
|
404
404
|
);
|
|
405
|
-
tt(gt,
|
|
405
|
+
tt(gt, Oe, L);
|
|
406
406
|
const We = ot(!0, {
|
|
407
407
|
getAnchor: rt,
|
|
408
408
|
onReturnToTrigger: () => A(!1)
|
|
409
409
|
}), Ye = (e) => {
|
|
410
|
-
if (e ===
|
|
410
|
+
if (e === u) {
|
|
411
411
|
A(!1);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
const t = Q.replace(/\D/g, ""), n = new W(e),
|
|
415
|
-
$.current = !0, j(e), g(
|
|
416
|
-
var
|
|
417
|
-
(
|
|
414
|
+
const t = Q.replace(/\D/g, ""), n = new W(e), l = t ? n.input(t) : "";
|
|
415
|
+
$.current = !0, j(e), g(l), A(!1), fe(""), x(l, e), requestAnimationFrame(() => {
|
|
416
|
+
var S;
|
|
417
|
+
(S = P.current) == null || S.focus();
|
|
418
418
|
});
|
|
419
419
|
}, N = v(
|
|
420
420
|
() => St(
|
|
@@ -433,14 +433,14 @@ const Et = Xe(
|
|
|
433
433
|
() => re.size > 0 ? N.filter((e) => !re.has(e.code)) : N,
|
|
434
434
|
[N, re]
|
|
435
435
|
), _ = v(
|
|
436
|
-
() => N.find((e) => e.code ===
|
|
437
|
-
[N,
|
|
438
|
-
), ae = _ ? _.dialCode : "", Ce = _ ? _.name :
|
|
436
|
+
() => N.find((e) => e.code === u),
|
|
437
|
+
[N, u]
|
|
438
|
+
), ae = _ ? _.dialCode : "", Ce = _ ? _.name : u, q = z("inputs.phone.countryPickerLabel", "Country"), Je = `${q}: ${Ce}, +${ae}`, Qe = U(
|
|
439
439
|
(e, t, n) => {
|
|
440
|
-
const
|
|
440
|
+
const l = ue(e), S = ue(t), we = n == null ? void 0 : n.map(ue);
|
|
441
441
|
return at(
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
l,
|
|
443
|
+
S,
|
|
444
444
|
we
|
|
445
445
|
);
|
|
446
446
|
},
|
|
@@ -456,7 +456,7 @@ const Et = Xe(
|
|
|
456
456
|
className: Nt,
|
|
457
457
|
"aria-label": t,
|
|
458
458
|
children: [
|
|
459
|
-
/* @__PURE__ */ r(
|
|
459
|
+
/* @__PURE__ */ r(le, { country: e.code, size: ce[d] }),
|
|
460
460
|
/* @__PURE__ */ r("span", { className: "ds:flex-1 ds:truncate", children: e.name }),
|
|
461
461
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:text-muted-foreground ds:tabular-nums", children: [
|
|
462
462
|
"+",
|
|
@@ -489,25 +489,25 @@ const Et = Xe(
|
|
|
489
489
|
className: `${Ie({ size: d })} ds:cursor-default ds:hover:bg-transparent`,
|
|
490
490
|
children: [
|
|
491
491
|
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: `${q}: ${Ce}` }),
|
|
492
|
-
/* @__PURE__ */ r(
|
|
492
|
+
/* @__PURE__ */ r(le, { country: u, size: ce[d] }),
|
|
493
493
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
494
494
|
"+",
|
|
495
495
|
ae
|
|
496
496
|
] })
|
|
497
497
|
]
|
|
498
498
|
}
|
|
499
|
-
) : /* @__PURE__ */ m(
|
|
500
|
-
/* @__PURE__ */ r(
|
|
499
|
+
) : /* @__PURE__ */ m(O.Root, { open: X, onOpenChange: A, children: [
|
|
500
|
+
/* @__PURE__ */ r(O.Trigger, { asChild: !0, children: /* @__PURE__ */ m(
|
|
501
501
|
"button",
|
|
502
502
|
{
|
|
503
503
|
type: "button",
|
|
504
|
-
disabled: te,
|
|
504
|
+
disabled: te || !!I,
|
|
505
505
|
"aria-haspopup": "dialog",
|
|
506
506
|
"aria-expanded": X,
|
|
507
507
|
"aria-label": Je,
|
|
508
508
|
className: Ie({ size: d }),
|
|
509
509
|
children: [
|
|
510
|
-
/* @__PURE__ */ r(
|
|
510
|
+
/* @__PURE__ */ r(le, { country: u, size: ce[d] }),
|
|
511
511
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
512
512
|
"+",
|
|
513
513
|
ae
|
|
@@ -527,15 +527,15 @@ const Et = Xe(
|
|
|
527
527
|
]
|
|
528
528
|
}
|
|
529
529
|
) }),
|
|
530
|
-
/* @__PURE__ */ r(
|
|
531
|
-
|
|
530
|
+
/* @__PURE__ */ r(O.Portal, { children: /* @__PURE__ */ r(
|
|
531
|
+
O.Content,
|
|
532
532
|
{
|
|
533
533
|
ref: ge,
|
|
534
534
|
onKeyDown: We,
|
|
535
535
|
sideOffset: 6,
|
|
536
536
|
align: "start",
|
|
537
537
|
"aria-label": q,
|
|
538
|
-
className:
|
|
538
|
+
className: yt,
|
|
539
539
|
children: /* @__PURE__ */ m(
|
|
540
540
|
w,
|
|
541
541
|
{
|
|
@@ -558,7 +558,7 @@ const Et = Xe(
|
|
|
558
558
|
autoComplete: "off",
|
|
559
559
|
autoCorrect: "off",
|
|
560
560
|
spellCheck: !1,
|
|
561
|
-
placeholder:
|
|
561
|
+
placeholder: z(
|
|
562
562
|
"inputs.phone.searchCountry",
|
|
563
563
|
"Search countries…"
|
|
564
564
|
),
|
|
@@ -568,18 +568,18 @@ const Et = Xe(
|
|
|
568
568
|
}
|
|
569
569
|
),
|
|
570
570
|
/* @__PURE__ */ m(w.List, { className: xt, children: [
|
|
571
|
-
/* @__PURE__ */ r(w.Empty, { className: wt, children:
|
|
571
|
+
/* @__PURE__ */ r(w.Empty, { className: wt, children: z("inputs.phone.noCountryFound", "No country found") }),
|
|
572
572
|
F.length > 0 ? /* @__PURE__ */ r(
|
|
573
573
|
w.Group,
|
|
574
574
|
{
|
|
575
|
-
heading: /* @__PURE__ */ r("span", { className: ze, children:
|
|
575
|
+
heading: /* @__PURE__ */ r("span", { className: ze, children: z("inputs.phone.popularCountries", "Popular") }),
|
|
576
576
|
children: F.map(xe)
|
|
577
577
|
}
|
|
578
578
|
) : null,
|
|
579
579
|
/* @__PURE__ */ r(
|
|
580
580
|
w.Group,
|
|
581
581
|
{
|
|
582
|
-
heading: F.length > 0 ? /* @__PURE__ */ r("span", { className: ze, children:
|
|
582
|
+
heading: F.length > 0 ? /* @__PURE__ */ r("span", { className: ze, children: z("inputs.phone.allCountries", "All countries") }) : void 0,
|
|
583
583
|
children: Ze.map(xe)
|
|
584
584
|
}
|
|
585
585
|
)
|
|
@@ -601,13 +601,13 @@ const Et = Xe(
|
|
|
601
601
|
autoComplete: "tel-national",
|
|
602
602
|
placeholder: Me,
|
|
603
603
|
disabled: te,
|
|
604
|
-
readOnly:
|
|
604
|
+
readOnly: I,
|
|
605
605
|
required: $e,
|
|
606
606
|
"aria-label": Fe,
|
|
607
607
|
"aria-describedby": Ke,
|
|
608
608
|
"aria-invalid": ve || void 0,
|
|
609
|
-
onChange:
|
|
610
|
-
className:
|
|
609
|
+
onChange: Ue,
|
|
610
|
+
className: bt({ size: d })
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
613
|
oe ? /* @__PURE__ */ r(
|
|
@@ -627,8 +627,8 @@ const Et = Xe(
|
|
|
627
627
|
Et.displayName = "PhoneInput";
|
|
628
628
|
export {
|
|
629
629
|
Et as P,
|
|
630
|
-
|
|
630
|
+
bt as a,
|
|
631
631
|
Ie as c,
|
|
632
632
|
vt as p
|
|
633
633
|
};
|
|
634
|
-
//# sourceMappingURL=phone-input-
|
|
634
|
+
//# sourceMappingURL=phone-input-EwVuqFik.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as p } from "./isSameWeek-
|
|
1
|
+
import { e as s, p as a, q as r, r as l } from "./format--x5jypvH.js";
|
|
2
|
+
import { i as p } from "./isSameWeek-DyVftHWi.js";
|
|
3
3
|
const w = {
|
|
4
4
|
lessThanXSeconds: {
|
|
5
5
|
one: {
|
|
@@ -511,4 +511,4 @@ const I = {
|
|
|
511
511
|
export {
|
|
512
512
|
Z as pl
|
|
513
513
|
};
|
|
514
|
-
//# sourceMappingURL=pl-
|
|
514
|
+
//# sourceMappingURL=pl-BLh7KO-s.js.map
|
|
@@ -6,18 +6,18 @@ import { u as Te } from "./registry-DvAUVLHh.js";
|
|
|
6
6
|
import { R as u } from "./radio-BZQs6_36.js";
|
|
7
7
|
import { R as j } from "./radio-group-ChIKyeSJ.js";
|
|
8
8
|
import { F as f } from "./form-field-Ani72sVY.js";
|
|
9
|
-
import { D as V } from "./date-picker-
|
|
9
|
+
import { D as V } from "./date-picker-CdhXlgVI.js";
|
|
10
10
|
import { N as H } from "./number-input-CVwI1ltI.js";
|
|
11
11
|
import { S as Ce } from "./select-4S-eYZUf.js";
|
|
12
12
|
import { S as je } from "./switch-D--x7n6h.js";
|
|
13
13
|
import { C as ie } from "./card-BA4Ig_kn.js";
|
|
14
14
|
import { B as $ } from "./badge-BUk4RjTS.js";
|
|
15
15
|
import { I as Ee } from "./insert-result-CDMMt7q8.js";
|
|
16
|
-
import { D as E, r as Pe, c as Oe, g as _e, e as Ie, f as Fe, A as Ge, h as Ke, i as Ve, j as le, G as He } from "./antenatal-schedule-timeline-
|
|
17
|
-
import { s as P } from "./subDays-
|
|
18
|
-
import {
|
|
19
|
-
import { p as $e } from "./parseISO-
|
|
20
|
-
import { f as qe } from "./format
|
|
16
|
+
import { D as E, r as Pe, c as Oe, g as _e, e as Ie, f as Fe, A as Ge, h as Ke, i as Ve, j as le, G as He } from "./antenatal-schedule-timeline-BGewPfEX.js";
|
|
17
|
+
import { s as P } from "./subDays-DKISP2nE.js";
|
|
18
|
+
import { a as q } from "./date-picker-variants-Dt6UbonG.js";
|
|
19
|
+
import { p as $e } from "./parseISO-DZZ5a-zK.js";
|
|
20
|
+
import { f as qe } from "./format--x5jypvH.js";
|
|
21
21
|
const B = {
|
|
22
22
|
type: "string",
|
|
23
23
|
pattern: "^\\d{4}-\\d{2}-\\d{2}$"
|
|
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
|
|
|
767
767
|
export {
|
|
768
768
|
Ue as P
|
|
769
769
|
};
|
|
770
|
-
//# sourceMappingURL=pregnancy-dating-
|
|
770
|
+
//# sourceMappingURL=pregnancy-dating-JBAUbM40.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as s, p as i, q as r, r as d } from "./format--x5jypvH.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de um segundo",
|
|
@@ -367,4 +367,4 @@ const m = {
|
|
|
367
367
|
export {
|
|
368
368
|
N as pt
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=pt-
|
|
370
|
+
//# sourceMappingURL=pt-CPKOrOLj.js.map
|
package/dist/_chunks/{radiograph-panel.agent-ESnkuDfH.js → radiograph-panel.agent-DQh2SX8G.js}
RENAMED
|
@@ -8,8 +8,8 @@ import { B as L } from "./badge-BUk4RjTS.js";
|
|
|
8
8
|
import { F as V } from "./form-field-Ani72sVY.js";
|
|
9
9
|
import { T as oe } from "./text-area-COMVJ1yE.js";
|
|
10
10
|
import { F as de } from "./file-upload-CxjCs7TX.js";
|
|
11
|
-
import { D as te } from "./date-picker-
|
|
12
|
-
import { D as le } from "./date-range-picker-
|
|
11
|
+
import { D as te } from "./date-picker-CdhXlgVI.js";
|
|
12
|
+
import { D as le } from "./date-range-picker-B_j4VQlV.js";
|
|
13
13
|
import { E } from "./empty-state-DwJ5YNzz.js";
|
|
14
14
|
import { P as ne } from "./panel-header-CbtlTe85.js";
|
|
15
15
|
import { c as $ } from "./createLucideIcon-DhHxpK9K.js";
|
|
@@ -533,4 +533,4 @@ export {
|
|
|
533
533
|
qe as R,
|
|
534
534
|
Ae as r
|
|
535
535
|
};
|
|
536
|
-
//# sourceMappingURL=radiograph-panel.agent-
|
|
536
|
+
//# sourceMappingURL=radiograph-panel.agent-DQh2SX8G.js.map
|