@alfadocs/ui-kit-debug 1.56.0 → 1.57.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/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js.map → anamnesis-summary-rows-CCQ62mMN.js.map} +1 -1
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js.map → balance-badge-cell-CII3SDmR.js.map} +1 -1
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js.map → booking-81WnKDsH.js.map} +1 -1
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js.map → calendar-workspace-D5-k_9zE.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
- package/dist/_chunks/chart-DQ5GxqgT.js.map +1 -0
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
- package/dist/_chunks/{data-table-D8fuhqO1.js.map → data-table-fAMTeAjM.js.map} +1 -1
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{dialog-CUzbnKLw.js.map → dialog-Dn-iQ0Jp.js.map} +1 -1
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
- package/dist/_chunks/{file-manager-Cc_uO8r2.js.map → file-manager-CFsL1KVt.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js.map → heatmap-BEeOThkW.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js.map → help-me-write-templates-BUoYGo6f.js.map} +1 -1
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
- package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-C86lQTIA.js.map} +1 -1
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js.map → link-cell-renderer-CxW_oLa5.js.map} +1 -1
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
- package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js.map +1 -0
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
- package/dist/_chunks/message-tray-QKQutwxj.js.map +1 -0
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
- package/dist/_chunks/{notes-panel-DceRhthG.js.map → notes-panel-Cm4pttpl.js.map} +1 -1
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
- package/dist/_chunks/notification-tray-C5VtbGjd.js.map +1 -0
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
- package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-99kEdtc5.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-DkxY13T6.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js.map → patient-summary-card-opdyfeW2.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
- package/dist/_chunks/{practice-results-Dhbo-fc_.js.map → practice-results-CfRkjzsI.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
- package/dist/_chunks/product-hub-panel-DlVRK7Ue.js.map +1 -0
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js.map → public-header.agent-BctevbuY.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
- package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-BlTzYywa.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
- package/dist/_chunks/rich-text-editor-DTnNZ4Ff.js.map +1 -0
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
- package/dist/_chunks/{sheet-C7SwIxwB.js.map → sheet-8qsiMoUI.js.map} +1 -1
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js.map → signature-request-DRuYAG5I.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-AhMsNW1r.js.map} +1 -1
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
- package/dist/_chunks/{task-editor-ByyRu29Y.js.map → task-editor-NkcopDna.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js.map → use-appointment-details-read-CfFQNOF_.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-BKbgb7FM.js.map} +1 -1
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
- package/dist/_chunks/{widget-picker-DXYBMTfe.js.map → widget-picker-rBA7MR5P.js.map} +1 -1
- package/dist/agent-catalog.json +2 -2
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/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 +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/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-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts.map +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts.map +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/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +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/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +14 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +15 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +14 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +15 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +14 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +15 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +14 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +15 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +14 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +15 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +14 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +15 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +14 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +15 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +14 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +15 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +14 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +15 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +14 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +15 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +14 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +15 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +14 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +15 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +14 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +15 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +14 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +15 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +14 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +15 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +14 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +15 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +14 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +15 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +14 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +15 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +194 -193
- package/dist/locales/ar.json +15 -1
- package/dist/locales/de.json +15 -1
- package/dist/locales/el.json +15 -1
- package/dist/locales/en.json +15 -1
- package/dist/locales/es.json +15 -1
- package/dist/locales/fr.json +15 -1
- package/dist/locales/hi.json +15 -1
- package/dist/locales/it.json +15 -1
- package/dist/locales/ja.json +15 -1
- package/dist/locales/nl.json +15 -1
- package/dist/locales/pl.json +15 -1
- package/dist/locales/pt.json +15 -1
- package/dist/locales/ro.json +15 -1
- package/dist/locales/ru.json +15 -1
- package/dist/locales/sq.json +15 -1
- package/dist/locales/sv.json +15 -1
- package/dist/locales/tr.json +15 -1
- package/dist/locales/zh.json +15 -1
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js.map +0 -1
- package/dist/_chunks/chart-HsF1KHbx.js.map +0 -1
- package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
- package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
- package/dist/_chunks/date-range-picker-CtUOI38x.js.map +0 -1
- package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
- package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/link-2HokYuIi.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
- package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js.map +0 -1
- package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
- package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
- package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
- package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
- package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
- package/dist/_chunks/rich-text-editor-CkFfmA3v.js.map +0 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
2
|
+
import { forwardRef as Xe, useContext as et, useMemo as v, useState as G, useRef as y, useEffect as de, useCallback as O } from "react";
|
|
3
|
+
import { u as tt } from "./registry-DvAUVLHh.js";
|
|
4
|
+
import { u as nt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
5
|
+
import { u as st } from "./use-dom-value-DTxHhQAN.js";
|
|
6
6
|
import * as U from "@radix-ui/react-popover";
|
|
7
|
-
import {
|
|
7
|
+
import { u as ot, f as rt } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
8
|
+
import { R as at, _ as w } from "./index-4xgbg-sn.js";
|
|
8
9
|
import { c as pe } from "./index-D2ZczOXr.js";
|
|
9
|
-
import { useTranslation as
|
|
10
|
-
import { getCountries as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as
|
|
10
|
+
import { useTranslation as it } from "react-i18next";
|
|
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
|
+
import { c as ft } from "./compose-refs-C0k0tdqF.js";
|
|
13
14
|
import { n as le } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
14
|
-
import { b as
|
|
15
|
-
import { a as
|
|
16
|
-
import { C as
|
|
17
|
-
const
|
|
15
|
+
import { b as mt } from "./menu-row-BAr8bx1I.js";
|
|
16
|
+
import { a as ue } from "./flag-DVBE6DnB.js";
|
|
17
|
+
import { C as ht } from "./chevron-down-DWE7GSq9.js";
|
|
18
|
+
const gt = {
|
|
18
19
|
id: "phone-input",
|
|
19
20
|
// A phone number is a single form value, not free-form rich text — `set_value`
|
|
20
21
|
// (not `edit_inline`, which is reserved for in-place rich/cell editing).
|
|
@@ -87,7 +88,7 @@ const ft = {
|
|
|
87
88
|
description: "Sourced from the id prop."
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
|
-
},
|
|
91
|
+
}, vt = pe(
|
|
91
92
|
[
|
|
92
93
|
"ds:group ds:relative ds:inline-flex ds:items-stretch ds:w-full",
|
|
93
94
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-input",
|
|
@@ -118,7 +119,7 @@ const ft = {
|
|
|
118
119
|
tone: "default"
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
|
-
),
|
|
122
|
+
), Ie = pe(
|
|
122
123
|
[
|
|
123
124
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
124
125
|
"ds:bg-transparent ds:text-foreground",
|
|
@@ -142,7 +143,7 @@ const ft = {
|
|
|
142
143
|
},
|
|
143
144
|
defaultVariants: { size: "md" }
|
|
144
145
|
}
|
|
145
|
-
),
|
|
146
|
+
), yt = pe(
|
|
146
147
|
[
|
|
147
148
|
"ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
148
149
|
"ds:border-0 ds:outline-none",
|
|
@@ -159,7 +160,7 @@ const ft = {
|
|
|
159
160
|
},
|
|
160
161
|
defaultVariants: { size: "md" }
|
|
161
162
|
}
|
|
162
|
-
),
|
|
163
|
+
), bt = [
|
|
163
164
|
"ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-72",
|
|
164
165
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
|
|
165
166
|
"ds:shadow-[var(--shadow-lg)]",
|
|
@@ -169,46 +170,46 @@ const ft = {
|
|
|
169
170
|
"ds:data-[side=bottom]:slide-in-from-top-2",
|
|
170
171
|
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
171
172
|
"ds:motion-reduce:animate-none"
|
|
172
|
-
].join(" "),
|
|
173
|
+
].join(" "), Ct = [
|
|
173
174
|
"ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
174
175
|
"ds:border-0 ds:border-b ds:border-b-border ds:outline-none",
|
|
175
176
|
"ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
|
|
176
177
|
"ds:focus:outline-none"
|
|
177
|
-
].join(" "),
|
|
178
|
+
].join(" "), xt = "ds:max-h-72 ds:overflow-y-auto ds:p-[var(--spacing-xs)]", Nt = [
|
|
178
179
|
"ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
179
180
|
"ds:rounded-[var(--radius-sm)] ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
|
|
180
181
|
"ds:text-foreground ds:outline-none ds:select-none",
|
|
181
|
-
|
|
182
|
+
mt.selected
|
|
182
183
|
].join(" "), ze = [
|
|
183
184
|
"ds:ps-3 ds:pe-3 ds:py-1.5",
|
|
184
185
|
"type-eyebrow ds:text-muted-foreground"
|
|
185
|
-
].join(" "),
|
|
186
|
+
].join(" "), wt = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", It = {
|
|
186
187
|
sm: "ds:size-3.5",
|
|
187
188
|
md: "ds:size-4",
|
|
188
189
|
lg: "ds:size-5"
|
|
189
|
-
},
|
|
190
|
+
}, ce = {
|
|
190
191
|
sm: "sm",
|
|
191
192
|
md: "md",
|
|
192
193
|
lg: "lg"
|
|
193
194
|
};
|
|
194
|
-
function
|
|
195
|
-
let
|
|
195
|
+
function zt(s, a) {
|
|
196
|
+
let c = 0;
|
|
196
197
|
for (let o = 0; o < a && o < s.length; o++)
|
|
197
|
-
s[o] >= "0" && s[o] <= "9" &&
|
|
198
|
-
return
|
|
198
|
+
s[o] >= "0" && s[o] <= "9" && c++;
|
|
199
|
+
return c;
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
+
function Rt(s, a) {
|
|
201
202
|
if (a === 0) return 0;
|
|
202
|
-
let
|
|
203
|
+
let c = 0;
|
|
203
204
|
for (let o = 0; o < s.length; o++)
|
|
204
|
-
if (s[o] >= "0" && s[o] <= "9" && (
|
|
205
|
+
if (s[o] >= "0" && s[o] <= "9" && (c++, c === a))
|
|
205
206
|
return o + 1;
|
|
206
207
|
return s.length;
|
|
207
208
|
}
|
|
208
|
-
function Re(s, a,
|
|
209
|
+
function Re(s, a, c, o, f) {
|
|
209
210
|
const i = f && f.length ? new Set(f) : null, d = (C) => a.has(C) && (!i || i.has(C));
|
|
210
211
|
if (s && d(s)) return s;
|
|
211
|
-
if (
|
|
212
|
+
if (c) {
|
|
212
213
|
const C = typeof navigator < "u" ? navigator.language : void 0;
|
|
213
214
|
if (C) {
|
|
214
215
|
const b = C.match(/-([A-Za-z]{2})/);
|
|
@@ -226,24 +227,24 @@ function Re(s, a, u, o, f) {
|
|
|
226
227
|
}
|
|
227
228
|
return i ? f[0] : "IT";
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
-
let
|
|
230
|
+
function St(s, a) {
|
|
231
|
+
let c;
|
|
231
232
|
try {
|
|
232
|
-
|
|
233
|
+
c = new Intl.DisplayNames([s], { type: "region" });
|
|
233
234
|
} catch {
|
|
234
|
-
|
|
235
|
+
c = new Intl.DisplayNames(["en"], { type: "region" });
|
|
235
236
|
}
|
|
236
237
|
const o = a.map((i) => ({
|
|
237
238
|
code: i,
|
|
238
|
-
name:
|
|
239
|
-
dialCode:
|
|
239
|
+
name: c.of(i) ?? i,
|
|
240
|
+
dialCode: lt(i)
|
|
240
241
|
})), f = new Intl.Collator(s);
|
|
241
242
|
return o.sort((i, d) => f.compare(i.name, d.name));
|
|
242
243
|
}
|
|
243
|
-
const
|
|
244
|
+
const Et = Xe(
|
|
244
245
|
function({
|
|
245
246
|
value: a,
|
|
246
|
-
defaultValue:
|
|
247
|
+
defaultValue: c,
|
|
247
248
|
defaultCountry: o,
|
|
248
249
|
detectBrowserCountry: f = !1,
|
|
249
250
|
onChange: i,
|
|
@@ -252,52 +253,52 @@ const zt = Qe(
|
|
|
252
253
|
disabled: b,
|
|
253
254
|
readOnly: S,
|
|
254
255
|
placeholder: Se,
|
|
255
|
-
popularCountries:
|
|
256
|
+
popularCountries: V,
|
|
256
257
|
allowedCountries: D,
|
|
257
258
|
className: Ee,
|
|
258
259
|
id: L,
|
|
259
|
-
name:
|
|
260
|
+
name: Y,
|
|
260
261
|
nameFormat: ke = "national",
|
|
261
|
-
required:
|
|
262
|
-
onBlur:
|
|
263
|
-
"aria-label":
|
|
264
|
-
},
|
|
262
|
+
required: Pe,
|
|
263
|
+
onBlur: Z,
|
|
264
|
+
"aria-label": Fe
|
|
265
|
+
}, Te) {
|
|
265
266
|
var Ne;
|
|
266
|
-
const { t:
|
|
267
|
-
() => new Set(
|
|
267
|
+
const { t: I, i18n: E } = it("ui"), z = ut(), k = et(ct) !== null, h = v(
|
|
268
|
+
() => new Set(dt()),
|
|
268
269
|
[]
|
|
269
270
|
), p = v(() => {
|
|
270
271
|
if (!D || D.length === 0) return null;
|
|
271
272
|
const e = /* @__PURE__ */ new Set(), t = D.filter((n) => !h.has(n) || e.has(n) ? !1 : (e.add(n), !0));
|
|
272
273
|
return t.length > 0 ? t : null;
|
|
273
|
-
}, [D, h]),
|
|
274
|
+
}, [D, h]), Ve = p !== null && p.length === 1, J = v(() => {
|
|
274
275
|
const e = Re(
|
|
275
276
|
o,
|
|
276
277
|
h,
|
|
277
278
|
f,
|
|
278
279
|
E.language,
|
|
279
280
|
p
|
|
280
|
-
), t = a ??
|
|
281
|
+
), t = a ?? c;
|
|
281
282
|
if (t) {
|
|
282
|
-
const n =
|
|
283
|
+
const n = T(t);
|
|
283
284
|
return n != null && n.country ? !p || p.includes(n.country) ? {
|
|
284
285
|
country: n.country,
|
|
285
286
|
display: n.formatNational(),
|
|
286
287
|
pinned: !0
|
|
287
288
|
} : {
|
|
288
289
|
country: e,
|
|
289
|
-
display: new
|
|
290
|
+
display: new W(e).input(
|
|
290
291
|
n.nationalNumber
|
|
291
292
|
),
|
|
292
293
|
pinned: !0
|
|
293
294
|
} : { country: e, display: t, pinned: !1 };
|
|
294
295
|
}
|
|
295
296
|
return { country: e, display: "", pinned: !1 };
|
|
296
|
-
}, []), [l, j] =
|
|
297
|
-
|
|
298
|
-
), [
|
|
297
|
+
}, []), [l, j] = G(J.country), [Q, g] = G(
|
|
298
|
+
J.display
|
|
299
|
+
), [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);
|
|
299
300
|
de(() => {
|
|
300
|
-
if (
|
|
301
|
+
if ($.current) return;
|
|
301
302
|
const e = Re(
|
|
302
303
|
o,
|
|
303
304
|
h,
|
|
@@ -320,19 +321,19 @@ const zt = Qe(
|
|
|
320
321
|
g("");
|
|
321
322
|
return;
|
|
322
323
|
}
|
|
323
|
-
const t =
|
|
324
|
-
t != null && t.country && (!p || p.includes(t.country)) ? (
|
|
325
|
-
}, [a, me, p]),
|
|
326
|
-
if (
|
|
327
|
-
const e =
|
|
328
|
-
|
|
329
|
-
const t =
|
|
324
|
+
const t = T(e);
|
|
325
|
+
t != null && t.country && (!p || p.includes(t.country)) ? ($.current = !0, j(t.country), g(t.formatNational())) : g(t ? t.formatNational() : e);
|
|
326
|
+
}, [a, me, p]), nt(() => {
|
|
327
|
+
if (B.current == null) return;
|
|
328
|
+
const e = B.current;
|
|
329
|
+
B.current = null;
|
|
330
|
+
const t = P.current;
|
|
330
331
|
t && document.activeElement === t && t.setSelectionRange(e, e);
|
|
331
332
|
});
|
|
332
|
-
const x =
|
|
333
|
+
const x = O(
|
|
333
334
|
(e, t) => {
|
|
334
|
-
const n =
|
|
335
|
-
ee.current =
|
|
335
|
+
const n = T(e, t), u = (n == null ? void 0 : n.number) ?? "";
|
|
336
|
+
ee.current = u, i == null || i(u, {
|
|
336
337
|
country: t,
|
|
337
338
|
isValid: (n == null ? void 0 : n.isValid()) ?? !1,
|
|
338
339
|
isPossible: (n == null ? void 0 : n.isPossible()) ?? !1,
|
|
@@ -340,42 +341,42 @@ const zt = Qe(
|
|
|
340
341
|
});
|
|
341
342
|
},
|
|
342
343
|
[i]
|
|
343
|
-
), Ae =
|
|
344
|
-
|
|
345
|
-
const ne = y(!1),
|
|
344
|
+
), Ae = pt(z, L), Be = L ?? (k ? Ae : void 0), te = (k ? z.disabled : !1) || !!b, $e = (k ? z.required : !1) || !!Pe, ve = k ? z.invalid : !1, He = ve ? "error" : C, Ke = k && z.describedBy ? z.describedBy : void 0, Me = Se ?? I("inputs.phone.placeholder", "Phone number"), H = y(Z);
|
|
345
|
+
H.current = Z;
|
|
346
|
+
const ne = y(!1), K = y(!1), M = O(
|
|
346
347
|
(e) => {
|
|
347
348
|
var t, n;
|
|
348
349
|
return e instanceof Node && !!((t = he.current) != null && t.contains(e) || (n = ge.current) != null && n.contains(e));
|
|
349
350
|
},
|
|
350
351
|
[]
|
|
351
|
-
), se =
|
|
352
|
+
), se = O(() => {
|
|
352
353
|
var e;
|
|
353
|
-
ne.current && (ne.current = !1, (e =
|
|
354
|
+
ne.current && (ne.current = !1, (e = H.current) == null || e.call(H));
|
|
354
355
|
}, []), _e = () => {
|
|
355
356
|
ne.current = !0;
|
|
356
357
|
}, qe = (e) => {
|
|
357
358
|
const t = e.relatedTarget;
|
|
358
|
-
|
|
359
|
-
}, ye =
|
|
359
|
+
M(t) || t === null && K.current || se();
|
|
360
|
+
}, ye = Z !== void 0;
|
|
360
361
|
de(() => {
|
|
361
362
|
if (!ye) return;
|
|
362
363
|
let e;
|
|
363
|
-
const t = (
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
const t = (u) => {
|
|
365
|
+
K.current = M(u.target), !K.current && (e = window.setTimeout(() => {
|
|
366
|
+
M(document.activeElement) || se();
|
|
366
367
|
}, 0));
|
|
367
368
|
}, n = () => {
|
|
368
|
-
|
|
369
|
+
K.current = !1;
|
|
369
370
|
};
|
|
370
371
|
return document.addEventListener("pointerdown", t, !0), document.addEventListener("pointerup", n, !0), document.addEventListener("pointercancel", n, !0), () => {
|
|
371
372
|
window.clearTimeout(e), document.removeEventListener("pointerdown", t, !0), document.removeEventListener("pointerup", n, !0), document.removeEventListener("pointercancel", n, !0);
|
|
372
373
|
};
|
|
373
|
-
}, [ye,
|
|
374
|
-
const oe = ke === "e164" &&
|
|
374
|
+
}, [ye, M, se]);
|
|
375
|
+
const oe = ke === "e164" && Y !== void 0, Ge = oe ? ((Ne = T(Q, l)) == null ? void 0 : Ne.number) ?? "" : "", Oe = (e) => {
|
|
375
376
|
if (je(), S) return;
|
|
376
|
-
const t = e.target, n = t.value,
|
|
377
|
-
|
|
378
|
-
}, be = ee,
|
|
377
|
+
const t = e.target, n = t.value, u = t.selectionStart ?? n.length, R = zt(n, u), ie = new W(l).input(n);
|
|
378
|
+
B.current = Rt(ie, R), g(ie), x(ie, l);
|
|
379
|
+
}, be = ee, Ue = v(
|
|
379
380
|
() => ({
|
|
380
381
|
getValue: () => be.current,
|
|
381
382
|
setValue: (e) => {
|
|
@@ -383,12 +384,12 @@ const zt = Qe(
|
|
|
383
384
|
g(""), x("", l);
|
|
384
385
|
return;
|
|
385
386
|
}
|
|
386
|
-
const t =
|
|
387
|
+
const t = T(e);
|
|
387
388
|
if (t != null && t.country)
|
|
388
|
-
|
|
389
|
+
$.current = !0, j(t.country), g(t.formatNational()), x(t.formatNational(), t.country);
|
|
389
390
|
else {
|
|
390
|
-
const
|
|
391
|
-
g(
|
|
391
|
+
const u = new W(l).input(e);
|
|
392
|
+
g(u), x(u, l);
|
|
392
393
|
}
|
|
393
394
|
},
|
|
394
395
|
clear: () => {
|
|
@@ -396,63 +397,66 @@ const zt = Qe(
|
|
|
396
397
|
},
|
|
397
398
|
focus: () => {
|
|
398
399
|
var e;
|
|
399
|
-
return (e =
|
|
400
|
+
return (e = P.current) == null ? void 0 : e.focus();
|
|
400
401
|
}
|
|
401
402
|
}),
|
|
402
403
|
[l, x, be]
|
|
403
404
|
);
|
|
404
|
-
|
|
405
|
-
const We = (
|
|
405
|
+
tt(gt, Ue, L);
|
|
406
|
+
const We = ot(!0, {
|
|
407
|
+
getAnchor: rt,
|
|
408
|
+
onReturnToTrigger: () => A(!1)
|
|
409
|
+
}), Ye = (e) => {
|
|
406
410
|
if (e === l) {
|
|
407
|
-
|
|
411
|
+
A(!1);
|
|
408
412
|
return;
|
|
409
413
|
}
|
|
410
|
-
const t =
|
|
411
|
-
|
|
414
|
+
const t = Q.replace(/\D/g, ""), n = new W(e), u = t ? n.input(t) : "";
|
|
415
|
+
$.current = !0, j(e), g(u), A(!1), fe(""), x(u, e), requestAnimationFrame(() => {
|
|
412
416
|
var R;
|
|
413
|
-
(R =
|
|
417
|
+
(R = P.current) == null || R.focus();
|
|
414
418
|
});
|
|
415
419
|
}, N = v(
|
|
416
|
-
() =>
|
|
420
|
+
() => St(
|
|
417
421
|
E.language,
|
|
418
422
|
p ?? Array.from(h)
|
|
419
423
|
),
|
|
420
424
|
[E.language, h, p]
|
|
421
|
-
),
|
|
422
|
-
if (!
|
|
425
|
+
), F = v(() => {
|
|
426
|
+
if (!V || V.length === 0) return [];
|
|
423
427
|
const e = new Map(N.map((t) => [t.code, t]));
|
|
424
|
-
return
|
|
425
|
-
}, [
|
|
426
|
-
() => new Set(
|
|
427
|
-
[
|
|
428
|
-
),
|
|
428
|
+
return V.filter((t) => h.has(t)).map((t) => e.get(t)).filter((t) => !!t);
|
|
429
|
+
}, [V, N, h]), re = v(
|
|
430
|
+
() => new Set(F.map((e) => e.code)),
|
|
431
|
+
[F]
|
|
432
|
+
), Ze = v(
|
|
429
433
|
() => re.size > 0 ? N.filter((e) => !re.has(e.code)) : N,
|
|
430
434
|
[N, re]
|
|
431
|
-
),
|
|
435
|
+
), _ = v(
|
|
432
436
|
() => N.find((e) => e.code === l),
|
|
433
437
|
[N, l]
|
|
434
|
-
), ae =
|
|
438
|
+
), ae = _ ? _.dialCode : "", Ce = _ ? _.name : l, q = I("inputs.phone.countryPickerLabel", "Country"), Je = `${q}: ${Ce}, +${ae}`, Qe = O(
|
|
435
439
|
(e, t, n) => {
|
|
436
|
-
const
|
|
437
|
-
return
|
|
438
|
-
|
|
440
|
+
const u = le(e), R = le(t), we = n == null ? void 0 : n.map(le);
|
|
441
|
+
return at(
|
|
442
|
+
u,
|
|
439
443
|
R,
|
|
440
|
-
|
|
444
|
+
we
|
|
441
445
|
);
|
|
442
446
|
},
|
|
443
447
|
[]
|
|
444
448
|
), xe = (e) => {
|
|
445
449
|
const t = `${e.name}, +${e.dialCode}`;
|
|
446
450
|
return /* @__PURE__ */ m(
|
|
447
|
-
|
|
451
|
+
w.Item,
|
|
448
452
|
{
|
|
449
453
|
value: e.code,
|
|
450
454
|
keywords: [e.name, e.dialCode, `+${e.dialCode}`],
|
|
451
|
-
onSelect: () =>
|
|
452
|
-
className:
|
|
455
|
+
onSelect: () => Ye(e.code),
|
|
456
|
+
className: Nt,
|
|
453
457
|
"aria-label": t,
|
|
454
458
|
children: [
|
|
455
|
-
/* @__PURE__ */ r(
|
|
459
|
+
/* @__PURE__ */ r(ue, { country: e.code, size: ce[d] }),
|
|
456
460
|
/* @__PURE__ */ r("span", { className: "ds:flex-1 ds:truncate", children: e.name }),
|
|
457
461
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:text-muted-foreground ds:tabular-nums", children: [
|
|
458
462
|
"+",
|
|
@@ -472,51 +476,51 @@ const zt = Qe(
|
|
|
472
476
|
"data-component": "phone-input",
|
|
473
477
|
"data-component-id": L,
|
|
474
478
|
"data-slot": "phone-input",
|
|
475
|
-
className:
|
|
479
|
+
className: vt({
|
|
476
480
|
size: d,
|
|
477
481
|
tone: He,
|
|
478
482
|
className: Ee
|
|
479
483
|
}),
|
|
480
484
|
children: [
|
|
481
|
-
|
|
485
|
+
Ve ? /* @__PURE__ */ m(
|
|
482
486
|
"span",
|
|
483
487
|
{
|
|
484
488
|
"data-slot": "phone-country-fixed",
|
|
485
|
-
className: `${
|
|
489
|
+
className: `${Ie({ size: d })} ds:cursor-default ds:hover:bg-transparent`,
|
|
486
490
|
children: [
|
|
487
|
-
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: `${
|
|
488
|
-
/* @__PURE__ */ r(
|
|
491
|
+
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: `${q}: ${Ce}` }),
|
|
492
|
+
/* @__PURE__ */ r(ue, { country: l, size: ce[d] }),
|
|
489
493
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
490
494
|
"+",
|
|
491
495
|
ae
|
|
492
496
|
] })
|
|
493
497
|
]
|
|
494
498
|
}
|
|
495
|
-
) : /* @__PURE__ */ m(U.Root, { open:
|
|
499
|
+
) : /* @__PURE__ */ m(U.Root, { open: X, onOpenChange: A, children: [
|
|
496
500
|
/* @__PURE__ */ r(U.Trigger, { asChild: !0, children: /* @__PURE__ */ m(
|
|
497
501
|
"button",
|
|
498
502
|
{
|
|
499
503
|
type: "button",
|
|
500
504
|
disabled: te,
|
|
501
505
|
"aria-haspopup": "dialog",
|
|
502
|
-
"aria-expanded":
|
|
503
|
-
"aria-label":
|
|
504
|
-
className:
|
|
506
|
+
"aria-expanded": X,
|
|
507
|
+
"aria-label": Je,
|
|
508
|
+
className: Ie({ size: d }),
|
|
505
509
|
children: [
|
|
506
|
-
/* @__PURE__ */ r(
|
|
510
|
+
/* @__PURE__ */ r(ue, { country: l, size: ce[d] }),
|
|
507
511
|
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
508
512
|
"+",
|
|
509
513
|
ae
|
|
510
514
|
] }),
|
|
511
515
|
/* @__PURE__ */ r(
|
|
512
|
-
|
|
516
|
+
ht,
|
|
513
517
|
{
|
|
514
518
|
"aria-hidden": "true",
|
|
515
519
|
className: [
|
|
516
|
-
|
|
520
|
+
It[d],
|
|
517
521
|
"ds:shrink-0 ds:text-muted-foreground",
|
|
518
522
|
"ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
519
|
-
|
|
523
|
+
X ? "ds:rotate-180" : ""
|
|
520
524
|
].join(" ")
|
|
521
525
|
}
|
|
522
526
|
)
|
|
@@ -527,20 +531,21 @@ const zt = Qe(
|
|
|
527
531
|
U.Content,
|
|
528
532
|
{
|
|
529
533
|
ref: ge,
|
|
534
|
+
onKeyDown: We,
|
|
530
535
|
sideOffset: 6,
|
|
531
536
|
align: "start",
|
|
532
|
-
"aria-label":
|
|
533
|
-
className:
|
|
537
|
+
"aria-label": q,
|
|
538
|
+
className: bt,
|
|
534
539
|
children: /* @__PURE__ */ m(
|
|
535
|
-
|
|
540
|
+
w,
|
|
536
541
|
{
|
|
537
|
-
filter:
|
|
542
|
+
filter: Qe,
|
|
538
543
|
shouldFilter: !0,
|
|
539
544
|
loop: !0,
|
|
540
|
-
label:
|
|
545
|
+
label: q,
|
|
541
546
|
children: [
|
|
542
547
|
/* @__PURE__ */ r(
|
|
543
|
-
|
|
548
|
+
w.Input,
|
|
544
549
|
{
|
|
545
550
|
asChild: !0,
|
|
546
551
|
value: De,
|
|
@@ -553,29 +558,29 @@ const zt = Qe(
|
|
|
553
558
|
autoComplete: "off",
|
|
554
559
|
autoCorrect: "off",
|
|
555
560
|
spellCheck: !1,
|
|
556
|
-
placeholder:
|
|
561
|
+
placeholder: I(
|
|
557
562
|
"inputs.phone.searchCountry",
|
|
558
563
|
"Search countries…"
|
|
559
564
|
),
|
|
560
|
-
className:
|
|
565
|
+
className: Ct
|
|
561
566
|
}
|
|
562
567
|
)
|
|
563
568
|
}
|
|
564
569
|
),
|
|
565
|
-
/* @__PURE__ */ m(
|
|
566
|
-
/* @__PURE__ */ r(
|
|
567
|
-
|
|
568
|
-
|
|
570
|
+
/* @__PURE__ */ m(w.List, { className: xt, children: [
|
|
571
|
+
/* @__PURE__ */ r(w.Empty, { className: wt, children: I("inputs.phone.noCountryFound", "No country found") }),
|
|
572
|
+
F.length > 0 ? /* @__PURE__ */ r(
|
|
573
|
+
w.Group,
|
|
569
574
|
{
|
|
570
|
-
heading: /* @__PURE__ */ r("span", { className: ze, children:
|
|
571
|
-
children:
|
|
575
|
+
heading: /* @__PURE__ */ r("span", { className: ze, children: I("inputs.phone.popularCountries", "Popular") }),
|
|
576
|
+
children: F.map(xe)
|
|
572
577
|
}
|
|
573
578
|
) : null,
|
|
574
579
|
/* @__PURE__ */ r(
|
|
575
|
-
|
|
580
|
+
w.Group,
|
|
576
581
|
{
|
|
577
|
-
heading:
|
|
578
|
-
children:
|
|
582
|
+
heading: F.length > 0 ? /* @__PURE__ */ r("span", { className: ze, children: I("inputs.phone.allCountries", "All countries") }) : void 0,
|
|
583
|
+
children: Ze.map(xe)
|
|
579
584
|
}
|
|
580
585
|
)
|
|
581
586
|
] })
|
|
@@ -590,7 +595,7 @@ const zt = Qe(
|
|
|
590
595
|
{
|
|
591
596
|
ref: Le,
|
|
592
597
|
id: Be,
|
|
593
|
-
name: oe ? void 0 :
|
|
598
|
+
name: oe ? void 0 : Y,
|
|
594
599
|
type: "tel",
|
|
595
600
|
inputMode: "tel",
|
|
596
601
|
autoComplete: "tel-national",
|
|
@@ -598,18 +603,18 @@ const zt = Qe(
|
|
|
598
603
|
disabled: te,
|
|
599
604
|
readOnly: S,
|
|
600
605
|
required: $e,
|
|
601
|
-
"aria-label":
|
|
606
|
+
"aria-label": Fe,
|
|
602
607
|
"aria-describedby": Ke,
|
|
603
608
|
"aria-invalid": ve || void 0,
|
|
604
|
-
onChange:
|
|
605
|
-
className:
|
|
609
|
+
onChange: Oe,
|
|
610
|
+
className: yt({ size: d })
|
|
606
611
|
}
|
|
607
612
|
),
|
|
608
613
|
oe ? /* @__PURE__ */ r(
|
|
609
614
|
"input",
|
|
610
615
|
{
|
|
611
616
|
type: "hidden",
|
|
612
|
-
name:
|
|
617
|
+
name: Y,
|
|
613
618
|
value: Ge,
|
|
614
619
|
disabled: te
|
|
615
620
|
}
|
|
@@ -619,11 +624,11 @@ const zt = Qe(
|
|
|
619
624
|
);
|
|
620
625
|
}
|
|
621
626
|
);
|
|
622
|
-
|
|
627
|
+
Et.displayName = "PhoneInput";
|
|
623
628
|
export {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
629
|
+
Et as P,
|
|
630
|
+
yt as a,
|
|
631
|
+
Ie as c,
|
|
632
|
+
vt as p
|
|
628
633
|
};
|
|
629
|
-
//# sourceMappingURL=phone-input-
|
|
634
|
+
//# sourceMappingURL=phone-input-O9camxkq.js.map
|