@alfadocs/ui-kit 0.63.0 → 0.65.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/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
- package/dist/_chunks/{ai-prompt-input-C6sCr1Vi.js → ai-prompt-input-BwEACCPm.js} +3 -3
- package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-JnlTqfS4.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
- package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
- package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
- package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
- package/dist/_chunks/{audio-recorder-D6OVfNiZ.js → audio-recorder-DjXLP4aF.js} +3 -3
- package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
- package/dist/_chunks/{bishop-score-B9tvgoIq.js → bishop-score-x2fNqbuZ.js} +3 -3
- package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-C3roxbqD.js} +2 -2
- package/dist/_chunks/{booking-BUV9fspj.js → booking-L8-YP8BJ.js} +149 -149
- package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
- package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
- package/dist/_chunks/{care-plan-card-QmNpGggC.js → care-plan-card-D42WD4-T.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-Cnra7vUc.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
- package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
- package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
- package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
- package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-DrVXbIB4.js} +4 -4
- package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
- package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
- package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
- package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
- package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
- package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-D4K1BnE2.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-D5C5tCfu.js → editable-currency-cell-renderer-CFqQc56y.js} +305 -295
- package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
- package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
- package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
- package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-B_pBjlO7.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
- package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
- package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-AkNFfZYs.js → gestational-age-calculator-BETQAVkA.js} +7 -7
- package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-8zXCJgAQ.js} +3 -3
- package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
- package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
- package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
- package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
- package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-DIAG3ltJ.js} +115 -136
- package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
- package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
- package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
- package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
- package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-BXfRMiRk.js} +4 -4
- package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
- package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
- package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
- package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
- package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
- package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
- package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
- package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-CF_qon7C.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
- package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
- package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
- package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
- package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
- package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
- package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
- package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-Dg6dTe1p.js → pregnancy-dating-BuzLTwjy.js} +7 -7
- package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-aicn7qs7.js} +2 -2
- package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
- package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
- package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
- package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +1190 -0
- package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
- package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
- package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
- package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
- package/dist/_chunks/{select-hsCaJSX3.js → select-CEtRcon5.js} +46 -45
- package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
- package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
- package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
- package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
- package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
- package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
- package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
- package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
- package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
- package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
- package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
- package/dist/_chunks/{tabs-BpPYVme_.js → tabs-BIQ0ew1T.js} +2 -2
- package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
- package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
- package/dist/_chunks/tooth-scheme-BIx1O2aJ.js +1257 -0
- package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
- package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
- package/dist/_chunks/type-DZ5OMRA2.js +28 -0
- package/dist/_chunks/{unit-converter-3sINXO3m.js → unit-converter-CHN2cZ4b.js} +3 -3
- package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
- package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-BX3JY1Bu.js} +3 -3
- package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
- package/dist/agent-catalog.json +72 -4
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/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/description-list/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
- package/dist/components/editor-overlay/index.d.ts +3 -0
- package/dist/components/editor-overlay/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts +9 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -0
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.d.ts +3 -0
- package/dist/components/smart-date/index.js +5 -0
- package/dist/components/smart-date/smart-date.d.ts +32 -0
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.js +22 -15
- package/dist/components/tooth-scheme/tooth-data.d.ts +79 -18
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -0
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +48 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +61 -0
- package/dist/i18n/locales/ar.js +63 -2
- package/dist/i18n/locales/de.d.ts +61 -0
- package/dist/i18n/locales/de.js +63 -2
- package/dist/i18n/locales/el.d.ts +61 -0
- package/dist/i18n/locales/el.js +63 -2
- package/dist/i18n/locales/en.d.ts +61 -0
- package/dist/i18n/locales/en.js +67 -2
- package/dist/i18n/locales/es.d.ts +61 -0
- package/dist/i18n/locales/es.js +63 -2
- package/dist/i18n/locales/fr.d.ts +61 -0
- package/dist/i18n/locales/fr.js +63 -2
- package/dist/i18n/locales/hi.d.ts +61 -0
- package/dist/i18n/locales/hi.js +63 -2
- package/dist/i18n/locales/it.d.ts +61 -0
- package/dist/i18n/locales/it.js +63 -2
- package/dist/i18n/locales/ja.d.ts +61 -0
- package/dist/i18n/locales/ja.js +63 -2
- package/dist/i18n/locales/nl.d.ts +61 -0
- package/dist/i18n/locales/nl.js +63 -2
- package/dist/i18n/locales/pl.d.ts +61 -0
- package/dist/i18n/locales/pl.js +63 -2
- package/dist/i18n/locales/pt.d.ts +61 -0
- package/dist/i18n/locales/pt.js +63 -2
- package/dist/i18n/locales/ro.d.ts +61 -0
- package/dist/i18n/locales/ro.js +63 -2
- package/dist/i18n/locales/ru.d.ts +61 -0
- package/dist/i18n/locales/ru.js +63 -2
- package/dist/i18n/locales/sq.d.ts +61 -0
- package/dist/i18n/locales/sq.js +63 -2
- package/dist/i18n/locales/sv.d.ts +61 -0
- package/dist/i18n/locales/sv.js +63 -2
- package/dist/i18n/locales/tr.d.ts +61 -0
- package/dist/i18n/locales/tr.js +63 -2
- package/dist/i18n/locales/zh.d.ts +61 -0
- package/dist/i18n/locales/zh.js +63 -2
- package/dist/index.js +511 -500
- package/dist/locales/ar.json +63 -2
- package/dist/locales/de.json +63 -2
- package/dist/locales/el.json +63 -2
- package/dist/locales/en.json +63 -2
- package/dist/locales/es.json +63 -2
- package/dist/locales/fr.json +63 -2
- package/dist/locales/hi.json +63 -2
- package/dist/locales/it.json +63 -2
- package/dist/locales/ja.json +63 -2
- package/dist/locales/nl.json +63 -2
- package/dist/locales/pl.json +63 -2
- package/dist/locales/pt.json +63 -2
- package/dist/locales/ro.json +63 -2
- package/dist/locales/ru.json +63 -2
- package/dist/locales/sq.json +63 -2
- package/dist/locales/sv.json +63 -2
- package/dist/locales/tr.json +63 -2
- package/dist/locales/zh.json +63 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +36 -22
- package/package.json +10 -1
- package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
- package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
- package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
- package/dist/_chunks/subDays-Bs00akhK.js +0 -8
- package/dist/_chunks/tooth-scheme-CxlsLjfN.js +0 -753
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as u, Fragment as ie } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as de, useState as _, useEffect as D, useRef as G, useMemo as H, useImperativeHandle as ce, useId as le, useCallback as me } from "react";
|
|
3
3
|
import { c as A } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as W } from "react-i18next";
|
|
5
|
-
import { S as te } from "./spinner-
|
|
5
|
+
import { S as te } from "./spinner-hbwuKwMf.js";
|
|
6
6
|
import { A as ee } from "./alert-_mUKLmwA.js";
|
|
7
7
|
import { loadStripe as ue } from "@stripe/stripe-js";
|
|
8
8
|
import { Elements as pe, useStripe as fe, useElements as be, PaymentElement as ye, AddressElement as ge } from "@stripe/react-stripe-js";
|
|
@@ -416,7 +416,14 @@ function Ne(r) {
|
|
|
416
416
|
className: se(),
|
|
417
417
|
"data-testid": "payment-submit",
|
|
418
418
|
children: p ? /* @__PURE__ */ u(ie, { children: [
|
|
419
|
-
/* @__PURE__ */ t(
|
|
419
|
+
/* @__PURE__ */ t(
|
|
420
|
+
te,
|
|
421
|
+
{
|
|
422
|
+
variant: "pulse",
|
|
423
|
+
size: "sm",
|
|
424
|
+
label: i("payment.processing")
|
|
425
|
+
}
|
|
426
|
+
),
|
|
420
427
|
/* @__PURE__ */ t("span", { children: i("payment.processing") })
|
|
421
428
|
] }) : /* @__PURE__ */ t("span", { children: i("payment.submit", {
|
|
422
429
|
amount: K(n, a, e)
|
|
@@ -650,7 +657,7 @@ function ze(r) {
|
|
|
650
657
|
className: se(),
|
|
651
658
|
disabled: !0,
|
|
652
659
|
children: [
|
|
653
|
-
/* @__PURE__ */ t(te, { size: "sm", label: s("payment.processing") }),
|
|
660
|
+
/* @__PURE__ */ t(te, { variant: "pulse", size: "sm", label: s("payment.processing") }),
|
|
654
661
|
/* @__PURE__ */ t("span", { children: s("payment.processing") })
|
|
655
662
|
]
|
|
656
663
|
}
|
|
@@ -668,4 +675,4 @@ export {
|
|
|
668
675
|
we as p,
|
|
669
676
|
se as s
|
|
670
677
|
};
|
|
671
|
-
//# sourceMappingURL=payment-form-
|
|
678
|
+
//# sourceMappingURL=payment-form-nXocS_MX.js.map
|
|
@@ -4,8 +4,8 @@ import { c as H } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as K } from "react-i18next";
|
|
5
5
|
import { B as O } from "./badge-zsf5i5bH.js";
|
|
6
6
|
import { C as R } from "./card-DPmk26CL.js";
|
|
7
|
-
import { D as d } from "./description-list-
|
|
8
|
-
import { K as Y, a as j } from "./key-value-pair-
|
|
7
|
+
import { D as d } from "./description-list-gkNGWk5G.js";
|
|
8
|
+
import { K as Y, a as j } from "./key-value-pair-BrgbMfbF.js";
|
|
9
9
|
import { T as W, A as te, a as re } from "./transaction-chip-BZCa6XDn.js";
|
|
10
10
|
import { u as J } from "./registry-nPAVE19X.js";
|
|
11
11
|
import { c as F } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -475,4 +475,4 @@ export {
|
|
|
475
475
|
Pe as b,
|
|
476
476
|
he as p
|
|
477
477
|
};
|
|
478
|
-
//# sourceMappingURL=payment-request-card-
|
|
478
|
+
//# sourceMappingURL=payment-request-card-DBz3hVDz.js.map
|
|
@@ -5,7 +5,7 @@ import { c as X } from "./index-D2ZczOXr.js";
|
|
|
5
5
|
import { useTranslation as me } from "react-i18next";
|
|
6
6
|
import * as re from "@radix-ui/react-popover";
|
|
7
7
|
import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
8
|
-
import { S as Be } from "./spinner-
|
|
8
|
+
import { S as Be } from "./spinner-hbwuKwMf.js";
|
|
9
9
|
import { A as ze } from "./alert-_mUKLmwA.js";
|
|
10
10
|
import { u as He } from "./registry-nPAVE19X.js";
|
|
11
11
|
import { X as Qe } from "./x-CCcI3eJp.js";
|
|
@@ -505,7 +505,7 @@ const ot = Le(
|
|
|
505
505
|
e
|
|
506
506
|
)
|
|
507
507
|
) : /* @__PURE__ */ _("div", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[var(--muted-foreground)] ds:p-[var(--spacing-lg)]", children: [
|
|
508
|
-
/* @__PURE__ */ a(Be, { size: "sm", label: l("pdf.loading") }),
|
|
508
|
+
/* @__PURE__ */ a(Be, { variant: "pulse", size: "sm", label: l("pdf.loading") }),
|
|
509
509
|
/* @__PURE__ */ a("span", { children: l("pdf.loading") })
|
|
510
510
|
] })
|
|
511
511
|
}
|
|
@@ -976,4 +976,4 @@ export {
|
|
|
976
976
|
ot as P,
|
|
977
977
|
et as p
|
|
978
978
|
};
|
|
979
|
-
//# sourceMappingURL=pdf-viewer-
|
|
979
|
+
//# sourceMappingURL=pdf-viewer-GsfNqeeT.js.map
|
package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { c as R } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as ae } from "react-i18next";
|
|
5
5
|
import { B as re } from "./badge-zsf5i5bH.js";
|
|
6
6
|
import { C as S } from "./card-DPmk26CL.js";
|
|
7
|
-
import { K as ne, a as se } from "./key-value-pair-
|
|
7
|
+
import { K as ne, a as se } from "./key-value-pair-BrgbMfbF.js";
|
|
8
8
|
import { u as oe } from "./registry-nPAVE19X.js";
|
|
9
9
|
const de = {
|
|
10
10
|
id: "periodontal-chart-card",
|
|
@@ -452,4 +452,4 @@ export {
|
|
|
452
452
|
he as a,
|
|
453
453
|
de as p
|
|
454
454
|
};
|
|
455
|
-
//# sourceMappingURL=periodontal-chart-card-
|
|
455
|
+
//# sourceMappingURL=periodontal-chart-card-AYyHtU9K.js.map
|
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Te, useContext as Ae, useMemo as b, useState as $, useRef as B, useEffect as ce, useCallback as ue } from "react";
|
|
3
|
+
import { u as $e } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
4
|
+
import * as K from "@radix-ui/react-popover";
|
|
5
|
+
import { R as Be, _ as N } from "./index-4xgbg-sn.js";
|
|
6
|
+
import { c as ee } from "./index-D2ZczOXr.js";
|
|
7
|
+
import { useTranslation as Ke } from "react-i18next";
|
|
8
|
+
import { getCountries as Le, parsePhoneNumberFromString as L, AsYouType as M, getCountryCallingCode as Me } from "libphonenumber-js/min";
|
|
9
|
+
import { u as qe, F as He } from "./form-field-context-B3APVHKx.js";
|
|
10
|
+
import { c as _e } from "./compose-refs-C0k0tdqF.js";
|
|
11
|
+
import { n as J } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
12
|
+
import { a as Q } from "./flag-DZ6V7-hU.js";
|
|
13
|
+
import { u as Ge } from "./registry-nPAVE19X.js";
|
|
14
|
+
import { C as Oe } from "./chevron-down-BX_NP2Yh.js";
|
|
15
|
+
const Ue = {
|
|
16
|
+
id: "phone-input",
|
|
17
|
+
capabilities: ["edit_inline"],
|
|
18
|
+
state: {
|
|
19
|
+
value: {
|
|
20
|
+
type: "string",
|
|
21
|
+
descriptionKey: "ui.agent.phoneInput.state.value",
|
|
22
|
+
description: "Current E.164 phone number, or empty string when not yet valid.",
|
|
23
|
+
read: (s) => s.getValue()
|
|
24
|
+
},
|
|
25
|
+
isEmpty: {
|
|
26
|
+
type: "boolean",
|
|
27
|
+
descriptionKey: "ui.agent.phoneInput.state.isEmpty",
|
|
28
|
+
description: "Whether the input has no value.",
|
|
29
|
+
read: (s) => s.getValue() === ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
actions: {
|
|
33
|
+
set_value: {
|
|
34
|
+
safety: "write",
|
|
35
|
+
argsType: "{ value: string }",
|
|
36
|
+
descriptionKey: "ui.agent.phoneInput.actions.setValue",
|
|
37
|
+
description: "Replace the phone number (E.164 or national format; parser will infer country).",
|
|
38
|
+
invoke: (s, a) => {
|
|
39
|
+
s.setValue(a.value);
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
clear: {
|
|
43
|
+
safety: "destructive",
|
|
44
|
+
descriptionKey: "ui.agent.phoneInput.actions.clear",
|
|
45
|
+
description: "Empty the input. Loses any typed value.",
|
|
46
|
+
invoke: (s) => {
|
|
47
|
+
s.clear();
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
focus: {
|
|
51
|
+
safety: "read",
|
|
52
|
+
descriptionKey: "ui.agent.phoneInput.actions.focus",
|
|
53
|
+
description: "Move keyboard focus to the phone-number input.",
|
|
54
|
+
invoke: (s) => {
|
|
55
|
+
s.focus();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
domHooks: {
|
|
60
|
+
root: {
|
|
61
|
+
attr: "data-component",
|
|
62
|
+
value: "phone-input",
|
|
63
|
+
description: "Marks the PhoneInput wrapper."
|
|
64
|
+
},
|
|
65
|
+
instanceId: {
|
|
66
|
+
attr: "data-component-id",
|
|
67
|
+
sourceProp: "id",
|
|
68
|
+
description: "Sourced from the id prop."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, We = ee(
|
|
72
|
+
[
|
|
73
|
+
"ds:group ds:relative ds:inline-flex ds:items-stretch ds:w-full",
|
|
74
|
+
"ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input",
|
|
75
|
+
"ds:shadow-[var(--shadow-input)]",
|
|
76
|
+
"ds:text-foreground",
|
|
77
|
+
"ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
78
|
+
"ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
|
|
79
|
+
"ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
|
|
80
|
+
"ds:forced-colors:focus-within:outline-[CanvasText]",
|
|
81
|
+
"ds:has-[:disabled]:cursor-not-allowed ds:has-[:disabled]:opacity-50"
|
|
82
|
+
].join(" "),
|
|
83
|
+
{
|
|
84
|
+
variants: {
|
|
85
|
+
size: {
|
|
86
|
+
sm: "ds:h-8 ds:text-[length:var(--font-size-sm)]",
|
|
87
|
+
md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
|
|
88
|
+
lg: "ds:h-12 ds:text-[length:var(--font-size-lg)]"
|
|
89
|
+
},
|
|
90
|
+
tone: {
|
|
91
|
+
default: "",
|
|
92
|
+
error: "ds:border-destructive ds:focus-within:outline-destructive"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
defaultVariants: {
|
|
96
|
+
size: "md",
|
|
97
|
+
tone: "default"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
), pe = ee(
|
|
101
|
+
[
|
|
102
|
+
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
103
|
+
"ds:bg-transparent ds:text-foreground",
|
|
104
|
+
"ds:border-0 ds:border-e ds:border-e-border",
|
|
105
|
+
"ds:rounded-s-[var(--radius-sm)]",
|
|
106
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
107
|
+
"ds:hover:bg-muted",
|
|
108
|
+
"ds:focus:outline-none",
|
|
109
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
110
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
111
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
112
|
+
"ds:disabled:cursor-not-allowed"
|
|
113
|
+
].join(" "),
|
|
114
|
+
{
|
|
115
|
+
variants: {
|
|
116
|
+
size: {
|
|
117
|
+
sm: "ds:ps-3 ds:pe-2",
|
|
118
|
+
md: "ds:ps-3 ds:pe-2",
|
|
119
|
+
lg: "ds:ps-4 ds:pe-3"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
defaultVariants: { size: "md" }
|
|
123
|
+
}
|
|
124
|
+
), Ye = ee(
|
|
125
|
+
[
|
|
126
|
+
"ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
127
|
+
"ds:border-0 ds:outline-none",
|
|
128
|
+
"ds:disabled:cursor-not-allowed",
|
|
129
|
+
"ds:read-only:cursor-default"
|
|
130
|
+
].join(" "),
|
|
131
|
+
{
|
|
132
|
+
variants: {
|
|
133
|
+
size: {
|
|
134
|
+
sm: "ds:ps-2 ds:pe-3 ds:text-[length:var(--font-size-sm)]",
|
|
135
|
+
md: "ds:ps-2 ds:pe-3 ds:text-[length:var(--font-size-base)]",
|
|
136
|
+
lg: "ds:ps-3 ds:pe-4 ds:text-[length:var(--font-size-lg)]"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
defaultVariants: { size: "md" }
|
|
140
|
+
}
|
|
141
|
+
), Ze = [
|
|
142
|
+
"ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-72",
|
|
143
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
|
|
144
|
+
"ds:shadow-[var(--shadow-lg)]",
|
|
145
|
+
"ds:animate-in ds:fade-in ds:zoom-in-95",
|
|
146
|
+
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out",
|
|
147
|
+
"ds:data-[state=closed]:zoom-out-95",
|
|
148
|
+
"ds:data-[side=bottom]:slide-in-from-top-2",
|
|
149
|
+
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
150
|
+
"ds:motion-reduce:animate-none"
|
|
151
|
+
].join(" "), Je = [
|
|
152
|
+
"ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
153
|
+
"ds:border-0 ds:border-b ds:border-b-border ds:outline-none",
|
|
154
|
+
"ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
|
|
155
|
+
"ds:focus:outline-none"
|
|
156
|
+
].join(" "), Qe = "ds:max-h-72 ds:overflow-y-auto ds:p-[var(--spacing-xs)]", Xe = [
|
|
157
|
+
"ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
158
|
+
"ds:rounded-[var(--radius-sm)] ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
|
|
159
|
+
"ds:text-foreground ds:outline-none ds:select-none",
|
|
160
|
+
"ds:data-[highlighted]:bg-muted ds:data-[highlighted]:text-foreground",
|
|
161
|
+
"ds:data-[highlighted]:border-s-2 ds:data-[highlighted]:border-s-primary",
|
|
162
|
+
"ds:aria-selected:bg-muted"
|
|
163
|
+
].join(" "), fe = [
|
|
164
|
+
"ds:ps-3 ds:pe-3 ds:py-1.5",
|
|
165
|
+
"type-eyebrow ds:text-muted-foreground"
|
|
166
|
+
].join(" "), et = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", tt = {
|
|
167
|
+
sm: "ds:size-3.5",
|
|
168
|
+
md: "ds:size-4",
|
|
169
|
+
lg: "ds:size-5"
|
|
170
|
+
}, X = {
|
|
171
|
+
sm: "sm",
|
|
172
|
+
md: "md",
|
|
173
|
+
lg: "lg"
|
|
174
|
+
};
|
|
175
|
+
function nt(s, a) {
|
|
176
|
+
let l = 0;
|
|
177
|
+
for (let o = 0; o < a && o < s.length; o++)
|
|
178
|
+
s[o] >= "0" && s[o] <= "9" && l++;
|
|
179
|
+
return l;
|
|
180
|
+
}
|
|
181
|
+
function st(s, a) {
|
|
182
|
+
if (a === 0) return 0;
|
|
183
|
+
let l = 0;
|
|
184
|
+
for (let o = 0; o < s.length; o++)
|
|
185
|
+
if (s[o] >= "0" && s[o] <= "9" && (l++, l === a))
|
|
186
|
+
return o + 1;
|
|
187
|
+
return s.length;
|
|
188
|
+
}
|
|
189
|
+
function me(s, a, l, o, f) {
|
|
190
|
+
const i = f && f.length ? new Set(f) : null, d = (v) => a.has(v) && (!i || i.has(v));
|
|
191
|
+
if (s && d(s)) return s;
|
|
192
|
+
if (l) {
|
|
193
|
+
const v = typeof navigator < "u" ? navigator.language : void 0;
|
|
194
|
+
if (v) {
|
|
195
|
+
const y = v.match(/-([A-Za-z]{2})/);
|
|
196
|
+
if (y) {
|
|
197
|
+
const S = y[1].toUpperCase();
|
|
198
|
+
if (d(S)) return S;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
try {
|
|
202
|
+
const y = new Intl.Locale(o).region;
|
|
203
|
+
if (y && d(y.toUpperCase()))
|
|
204
|
+
return y.toUpperCase();
|
|
205
|
+
} catch {
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return i ? f[0] : "IT";
|
|
209
|
+
}
|
|
210
|
+
function ot(s, a) {
|
|
211
|
+
let l;
|
|
212
|
+
try {
|
|
213
|
+
l = new Intl.DisplayNames([s], { type: "region" });
|
|
214
|
+
} catch {
|
|
215
|
+
l = new Intl.DisplayNames(["en"], { type: "region" });
|
|
216
|
+
}
|
|
217
|
+
const o = a.map((i) => ({
|
|
218
|
+
code: i,
|
|
219
|
+
name: l.of(i) ?? i,
|
|
220
|
+
dialCode: Me(i)
|
|
221
|
+
})), f = new Intl.Collator(s);
|
|
222
|
+
return o.sort((i, d) => f.compare(i.name, d.name));
|
|
223
|
+
}
|
|
224
|
+
const rt = Te(
|
|
225
|
+
function({
|
|
226
|
+
value: a,
|
|
227
|
+
defaultValue: l,
|
|
228
|
+
defaultCountry: o,
|
|
229
|
+
detectBrowserCountry: f = !1,
|
|
230
|
+
onChange: i,
|
|
231
|
+
size: d = "md",
|
|
232
|
+
tone: v = "default",
|
|
233
|
+
disabled: y,
|
|
234
|
+
readOnly: S,
|
|
235
|
+
placeholder: he,
|
|
236
|
+
popularCountries: V,
|
|
237
|
+
allowedCountries: F,
|
|
238
|
+
className: ge,
|
|
239
|
+
id: q,
|
|
240
|
+
name: be,
|
|
241
|
+
required: ye,
|
|
242
|
+
"aria-label": ve
|
|
243
|
+
}, Ce) {
|
|
244
|
+
const { t: w, i18n: R } = Ke(), z = qe(), k = Ae(He) !== null, h = b(
|
|
245
|
+
() => new Set(Le()),
|
|
246
|
+
[]
|
|
247
|
+
), u = b(() => {
|
|
248
|
+
if (!F || F.length === 0) return null;
|
|
249
|
+
const e = /* @__PURE__ */ new Set(), t = F.filter((n) => !h.has(n) || e.has(n) ? !1 : (e.add(n), !0));
|
|
250
|
+
return t.length > 0 ? t : null;
|
|
251
|
+
}, [F, h]), xe = u !== null && u.length === 1, H = b(() => {
|
|
252
|
+
const e = me(
|
|
253
|
+
o,
|
|
254
|
+
h,
|
|
255
|
+
f,
|
|
256
|
+
R.language,
|
|
257
|
+
u
|
|
258
|
+
), t = a ?? l;
|
|
259
|
+
if (t) {
|
|
260
|
+
const n = L(t);
|
|
261
|
+
return n != null && n.country ? !u || u.includes(n.country) ? {
|
|
262
|
+
country: n.country,
|
|
263
|
+
display: n.formatNational(),
|
|
264
|
+
pinned: !0
|
|
265
|
+
} : {
|
|
266
|
+
country: e,
|
|
267
|
+
display: new M(e).input(
|
|
268
|
+
n.nationalNumber
|
|
269
|
+
),
|
|
270
|
+
pinned: !0
|
|
271
|
+
} : { country: e, display: t, pinned: !1 };
|
|
272
|
+
}
|
|
273
|
+
return { country: e, display: "", pinned: !1 };
|
|
274
|
+
}, []), [c, E] = $(H.country), [te, g] = $(
|
|
275
|
+
H.display
|
|
276
|
+
), [_, G] = $(!1), [Ne, ne] = $(""), se = a !== void 0, O = B(""), j = B(null), D = B(H.pinned), T = B(null), we = _e(Ce, T);
|
|
277
|
+
ce(() => {
|
|
278
|
+
if (D.current) return;
|
|
279
|
+
const e = me(
|
|
280
|
+
o,
|
|
281
|
+
h,
|
|
282
|
+
f,
|
|
283
|
+
R.language,
|
|
284
|
+
u
|
|
285
|
+
);
|
|
286
|
+
E((t) => t === e ? t : e);
|
|
287
|
+
}, [
|
|
288
|
+
R.language,
|
|
289
|
+
o,
|
|
290
|
+
h,
|
|
291
|
+
f,
|
|
292
|
+
u
|
|
293
|
+
]), ce(() => {
|
|
294
|
+
if (!se) return;
|
|
295
|
+
const e = a ?? "";
|
|
296
|
+
if (e === O.current) return;
|
|
297
|
+
if (e === "") {
|
|
298
|
+
g("");
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
const t = L(e);
|
|
302
|
+
t != null && t.country && (!u || u.includes(t.country)) ? (D.current = !0, E(t.country), g(t.formatNational())) : g(t ? t.formatNational() : e);
|
|
303
|
+
}, [a, se, u]), $e(() => {
|
|
304
|
+
if (j.current == null) return;
|
|
305
|
+
const e = j.current;
|
|
306
|
+
j.current = null;
|
|
307
|
+
const t = T.current;
|
|
308
|
+
t && document.activeElement === t && t.setSelectionRange(e, e);
|
|
309
|
+
});
|
|
310
|
+
const C = ue(
|
|
311
|
+
(e, t) => {
|
|
312
|
+
const n = L(e, t), p = (n == null ? void 0 : n.number) ?? "";
|
|
313
|
+
O.current = p, i == null || i(p, {
|
|
314
|
+
country: t,
|
|
315
|
+
isValid: (n == null ? void 0 : n.isValid()) ?? !1,
|
|
316
|
+
isPossible: (n == null ? void 0 : n.isPossible()) ?? !1,
|
|
317
|
+
type: n == null ? void 0 : n.getType()
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
[i]
|
|
321
|
+
), ze = q ?? (k ? z.id : void 0), oe = (k ? z.disabled : !1) || !!y, Ie = (k ? z.required : !1) || !!ye, re = k ? z.invalid : !1, Se = re ? "error" : v, Re = k && z.describedBy ? z.describedBy : void 0, ke = he ?? w("inputs.phone.placeholder", "Phone number"), Pe = (e) => {
|
|
322
|
+
if (S) return;
|
|
323
|
+
const t = e.target, n = t.value, p = t.selectionStart ?? n.length, I = nt(n, p), Z = new M(c).input(n);
|
|
324
|
+
j.current = st(Z, I), g(Z), C(Z, c);
|
|
325
|
+
}, ae = O, Ve = b(
|
|
326
|
+
() => ({
|
|
327
|
+
getValue: () => ae.current,
|
|
328
|
+
setValue: (e) => {
|
|
329
|
+
if (e === "") {
|
|
330
|
+
g(""), C("", c);
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
const t = L(e);
|
|
334
|
+
if (t != null && t.country)
|
|
335
|
+
D.current = !0, E(t.country), g(t.formatNational()), C(t.formatNational(), t.country);
|
|
336
|
+
else {
|
|
337
|
+
const p = new M(c).input(e);
|
|
338
|
+
g(p), C(p, c);
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
clear: () => {
|
|
342
|
+
g(""), C("", c);
|
|
343
|
+
},
|
|
344
|
+
focus: () => {
|
|
345
|
+
var e;
|
|
346
|
+
return (e = T.current) == null ? void 0 : e.focus();
|
|
347
|
+
}
|
|
348
|
+
}),
|
|
349
|
+
[c, C, ae]
|
|
350
|
+
);
|
|
351
|
+
Ge(Ue, Ve, q);
|
|
352
|
+
const Fe = (e) => {
|
|
353
|
+
if (e === c) {
|
|
354
|
+
G(!1);
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
const t = te.replace(/\D/g, ""), n = new M(e), p = t ? n.input(t) : "";
|
|
358
|
+
D.current = !0, E(e), g(p), G(!1), ne(""), C(p, e), requestAnimationFrame(() => {
|
|
359
|
+
var I;
|
|
360
|
+
(I = T.current) == null || I.focus();
|
|
361
|
+
});
|
|
362
|
+
}, x = b(
|
|
363
|
+
() => ot(
|
|
364
|
+
R.language,
|
|
365
|
+
u ?? Array.from(h)
|
|
366
|
+
),
|
|
367
|
+
[R.language, h, u]
|
|
368
|
+
), P = b(() => {
|
|
369
|
+
if (!V || V.length === 0) return [];
|
|
370
|
+
const e = new Map(x.map((t) => [t.code, t]));
|
|
371
|
+
return V.filter((t) => h.has(t)).map((t) => e.get(t)).filter((t) => !!t);
|
|
372
|
+
}, [V, x, h]), U = b(
|
|
373
|
+
() => new Set(P.map((e) => e.code)),
|
|
374
|
+
[P]
|
|
375
|
+
), Ee = b(
|
|
376
|
+
() => U.size > 0 ? x.filter((e) => !U.has(e.code)) : x,
|
|
377
|
+
[x, U]
|
|
378
|
+
), A = b(
|
|
379
|
+
() => x.find((e) => e.code === c),
|
|
380
|
+
[x, c]
|
|
381
|
+
), W = A ? A.dialCode : "", ie = A ? A.name : c, Y = w("inputs.phone.countryPickerLabel", "Country"), je = `${Y}: ${ie}, +${W}`, De = ue(
|
|
382
|
+
(e, t, n) => {
|
|
383
|
+
const p = J(e), I = J(t), le = n == null ? void 0 : n.map(J);
|
|
384
|
+
return Be(
|
|
385
|
+
p,
|
|
386
|
+
I,
|
|
387
|
+
le
|
|
388
|
+
);
|
|
389
|
+
},
|
|
390
|
+
[]
|
|
391
|
+
), de = (e) => {
|
|
392
|
+
const t = `${e.name}, +${e.dialCode}`;
|
|
393
|
+
return /* @__PURE__ */ m(
|
|
394
|
+
N.Item,
|
|
395
|
+
{
|
|
396
|
+
value: e.code,
|
|
397
|
+
keywords: [e.name, e.dialCode, `+${e.dialCode}`],
|
|
398
|
+
onSelect: () => Fe(e.code),
|
|
399
|
+
className: Xe,
|
|
400
|
+
"aria-label": t,
|
|
401
|
+
children: [
|
|
402
|
+
/* @__PURE__ */ r(Q, { country: e.code, size: X[d] }),
|
|
403
|
+
/* @__PURE__ */ r("span", { className: "ds:flex-1 ds:truncate", children: e.name }),
|
|
404
|
+
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:text-muted-foreground ds:tabular-nums", children: [
|
|
405
|
+
"+",
|
|
406
|
+
e.dialCode
|
|
407
|
+
] })
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
e.code
|
|
411
|
+
);
|
|
412
|
+
};
|
|
413
|
+
return /* @__PURE__ */ m(
|
|
414
|
+
"div",
|
|
415
|
+
{
|
|
416
|
+
"data-component": "phone-input",
|
|
417
|
+
"data-component-id": q,
|
|
418
|
+
"data-slot": "phone-input",
|
|
419
|
+
className: We({
|
|
420
|
+
size: d,
|
|
421
|
+
tone: Se,
|
|
422
|
+
className: ge
|
|
423
|
+
}),
|
|
424
|
+
children: [
|
|
425
|
+
xe ? /* @__PURE__ */ m(
|
|
426
|
+
"span",
|
|
427
|
+
{
|
|
428
|
+
"data-slot": "phone-country-fixed",
|
|
429
|
+
className: `${pe({ size: d })} ds:cursor-default ds:hover:bg-transparent`,
|
|
430
|
+
children: [
|
|
431
|
+
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: `${Y}: ${ie}` }),
|
|
432
|
+
/* @__PURE__ */ r(Q, { country: c, size: X[d] }),
|
|
433
|
+
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
434
|
+
"+",
|
|
435
|
+
W
|
|
436
|
+
] })
|
|
437
|
+
]
|
|
438
|
+
}
|
|
439
|
+
) : /* @__PURE__ */ m(K.Root, { open: _, onOpenChange: G, children: [
|
|
440
|
+
/* @__PURE__ */ r(K.Trigger, { asChild: !0, children: /* @__PURE__ */ m(
|
|
441
|
+
"button",
|
|
442
|
+
{
|
|
443
|
+
type: "button",
|
|
444
|
+
disabled: oe,
|
|
445
|
+
"aria-haspopup": "listbox",
|
|
446
|
+
"aria-expanded": _,
|
|
447
|
+
"aria-label": je,
|
|
448
|
+
className: pe({ size: d }),
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ r(Q, { country: c, size: X[d] }),
|
|
451
|
+
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
452
|
+
"+",
|
|
453
|
+
W
|
|
454
|
+
] }),
|
|
455
|
+
/* @__PURE__ */ r(
|
|
456
|
+
Oe,
|
|
457
|
+
{
|
|
458
|
+
"aria-hidden": "true",
|
|
459
|
+
className: [
|
|
460
|
+
tt[d],
|
|
461
|
+
"ds:shrink-0 ds:text-muted-foreground",
|
|
462
|
+
"ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
463
|
+
_ ? "ds:rotate-180" : ""
|
|
464
|
+
].join(" ")
|
|
465
|
+
}
|
|
466
|
+
)
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
) }),
|
|
470
|
+
/* @__PURE__ */ r(K.Portal, { children: /* @__PURE__ */ r(
|
|
471
|
+
K.Content,
|
|
472
|
+
{
|
|
473
|
+
sideOffset: 6,
|
|
474
|
+
align: "start",
|
|
475
|
+
className: Ze,
|
|
476
|
+
children: /* @__PURE__ */ m(
|
|
477
|
+
N,
|
|
478
|
+
{
|
|
479
|
+
filter: De,
|
|
480
|
+
shouldFilter: !0,
|
|
481
|
+
loop: !0,
|
|
482
|
+
label: Y,
|
|
483
|
+
children: [
|
|
484
|
+
/* @__PURE__ */ r(
|
|
485
|
+
N.Input,
|
|
486
|
+
{
|
|
487
|
+
asChild: !0,
|
|
488
|
+
value: Ne,
|
|
489
|
+
onValueChange: ne,
|
|
490
|
+
children: /* @__PURE__ */ r(
|
|
491
|
+
"input",
|
|
492
|
+
{
|
|
493
|
+
"data-phone-country-search": "true",
|
|
494
|
+
type: "text",
|
|
495
|
+
autoComplete: "off",
|
|
496
|
+
autoCorrect: "off",
|
|
497
|
+
spellCheck: !1,
|
|
498
|
+
placeholder: w(
|
|
499
|
+
"inputs.phone.searchCountry",
|
|
500
|
+
"Search countries…"
|
|
501
|
+
),
|
|
502
|
+
className: Je
|
|
503
|
+
}
|
|
504
|
+
)
|
|
505
|
+
}
|
|
506
|
+
),
|
|
507
|
+
/* @__PURE__ */ m(N.List, { className: Qe, children: [
|
|
508
|
+
/* @__PURE__ */ r(N.Empty, { className: et, children: w("inputs.phone.noCountryFound", "No country found") }),
|
|
509
|
+
P.length > 0 ? /* @__PURE__ */ r(
|
|
510
|
+
N.Group,
|
|
511
|
+
{
|
|
512
|
+
heading: /* @__PURE__ */ r("span", { className: fe, children: w("inputs.phone.popularCountries", "Popular") }),
|
|
513
|
+
children: P.map(de)
|
|
514
|
+
}
|
|
515
|
+
) : null,
|
|
516
|
+
/* @__PURE__ */ r(
|
|
517
|
+
N.Group,
|
|
518
|
+
{
|
|
519
|
+
heading: P.length > 0 ? /* @__PURE__ */ r("span", { className: fe, children: w("inputs.phone.allCountries", "All countries") }) : void 0,
|
|
520
|
+
children: Ee.map(de)
|
|
521
|
+
}
|
|
522
|
+
)
|
|
523
|
+
] })
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
)
|
|
527
|
+
}
|
|
528
|
+
) })
|
|
529
|
+
] }),
|
|
530
|
+
/* @__PURE__ */ r(
|
|
531
|
+
"input",
|
|
532
|
+
{
|
|
533
|
+
ref: we,
|
|
534
|
+
id: ze,
|
|
535
|
+
name: be,
|
|
536
|
+
type: "tel",
|
|
537
|
+
inputMode: "tel",
|
|
538
|
+
autoComplete: "tel-national",
|
|
539
|
+
value: te,
|
|
540
|
+
placeholder: ke,
|
|
541
|
+
disabled: oe,
|
|
542
|
+
readOnly: S,
|
|
543
|
+
required: Ie,
|
|
544
|
+
"aria-label": ve,
|
|
545
|
+
"aria-describedby": Re,
|
|
546
|
+
"aria-invalid": re || void 0,
|
|
547
|
+
onChange: Pe,
|
|
548
|
+
className: Ye({ size: d })
|
|
549
|
+
}
|
|
550
|
+
)
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
);
|
|
556
|
+
rt.displayName = "PhoneInput";
|
|
557
|
+
export {
|
|
558
|
+
rt as P,
|
|
559
|
+
Ye as a,
|
|
560
|
+
pe as c,
|
|
561
|
+
We as p
|
|
562
|
+
};
|
|
563
|
+
//# sourceMappingURL=phone-input-DVXhNlIl.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as p } from "./isSameWeek-
|
|
1
|
+
import { o as s, q as a, r, v as l } from "./date-picker-variants-DAcSLTua.js";
|
|
2
|
+
import { i as p } from "./isSameWeek-I3DfXUp1.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-YAn5z2wR.js.map
|
|
@@ -3,7 +3,7 @@ import { useState as C, useCallback as g, useRef as R, useEffect as h, useMemo a
|
|
|
3
3
|
import * as v from "@radix-ui/react-popover";
|
|
4
4
|
import { c as G } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as J } from "react-i18next";
|
|
6
|
-
import { I as K } from "./icon-button-
|
|
6
|
+
import { I as K } from "./icon-button-LqoiKcUN.js";
|
|
7
7
|
import { u as Q } from "./registry-nPAVE19X.js";
|
|
8
8
|
import { X as U } from "./x-CCcI3eJp.js";
|
|
9
9
|
const Y = {
|
|
@@ -294,4 +294,4 @@ export {
|
|
|
294
294
|
ae as P,
|
|
295
295
|
Y as p
|
|
296
296
|
};
|
|
297
|
-
//# sourceMappingURL=popover-
|
|
297
|
+
//# sourceMappingURL=popover-DTbfAuR0.js.map
|