@alfadocs/ui-kit 1.138.0 → 1.140.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/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-YJGs2uWD.js} +5 -5
- package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
- package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
- package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRStPNDd.js} +4 -4
- package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DTqXdBED.js} +3 -3
- package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
- package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-SxSkOTnO.js → calendar-appointment-editor-dialog-BBrJlmyd.js} +7 -7
- package/dist/_chunks/{calendar-editor-discard-host-DjUhoFr2.js → calendar-editor-discard-host-BcMEgVEq.js} +2 -2
- package/dist/_chunks/{calendar-waiting-list-panel-331vzAdl.js → calendar-waiting-list-panel-Cdg9YssA.js} +3 -3
- package/dist/_chunks/{calendar.sheets-aodjllWd.js → calendar.sheets-DbMOO7YV.js} +113 -112
- package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
- package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
- package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
- package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
- package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
- package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
- package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-CRUSZcVT.js} +16 -8
- package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
- package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-CRbVCDSU.js} +3 -3
- package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
- package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
- package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
- package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
- package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
- package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
- package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-BR6vycF7.js} +3 -3
- package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-QddOSnIq.js} +7 -7
- package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-hAJplRFF.js} +6 -6
- package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
- package/dist/_chunks/medication-I6QvOq6k.js +21 -0
- package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
- package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
- package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
- package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
- package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
- package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
- package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
- package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-GzeK_2cf.js} +3 -3
- package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
- package/dist/_chunks/{patient-account-settings-Cs9y-pVA.js → patient-account-settings-DfEPHmCh.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-4qi_klQV.js → patient-check-in-resume-TWs8CPQr.js} +3 -3
- package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-D0PjzALT.js} +2 -2
- package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-DlpIModg.js} +7 -7
- package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
- package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-BP_K7g_q.js} +2 -2
- package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
- package/dist/_chunks/{portal-details-BGc_FLQk.js → portal-details-VfeOI4PB.js} +2 -2
- package/dist/_chunks/{portal-documents-BSI1U5lI.js → portal-documents-hGHlwmbv.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-a6WIg4oy.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
- package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
- package/dist/_chunks/print-sheet-gaxObGcm.js +328 -0
- package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
- package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
- package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
- package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
- package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
- package/dist/_chunks/save-Dn8uje3f.js +22 -0
- package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
- package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
- package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
- package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
- package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
- package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
- package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
- package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
- package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-B7UHCMSr.js} +2 -2
- package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-OBhSDXee.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
- package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
- package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
- package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
- package/dist/agent-catalog.json +449 -1
- package/dist/agent-i18n/en.json +53 -0
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/medication.d.ts +28 -0
- package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
- package/dist/components/_shared/patient-picker.d.ts +7 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +50 -0
- package/dist/components/autocomplete/index.d.ts +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/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/calls-panel/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/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/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.d.ts +6 -0
- package/dist/components/medication-line/index.js +7 -0
- package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
- package/dist/components/medication-line/medication-line.d.ts +46 -0
- package/dist/components/medication-search/index.d.ts +6 -0
- package/dist/components/medication-search/index.js +10 -0
- package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
- package/dist/components/medication-search/medication-search.d.ts +49 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/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/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/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/print-sheet/index.d.ts +5 -0
- package/dist/components/print-sheet/index.js +6 -0
- package/dist/components/print-sheet/print-isolation.d.ts +17 -0
- package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
- package/dist/components/print-sheet/print-sheet.d.ts +61 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/sync-tray/index.d.ts +4 -0
- package/dist/components/sync-tray/index.js +7 -0
- package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
- package/dist/components/sync-tray/sync-tray.d.ts +77 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +18 -1
- package/dist/i18n/locales/ar.d.ts +151 -0
- package/dist/i18n/locales/ar.js +151 -0
- package/dist/i18n/locales/de.d.ts +151 -0
- package/dist/i18n/locales/de.js +151 -0
- package/dist/i18n/locales/el.d.ts +151 -0
- package/dist/i18n/locales/el.js +151 -0
- package/dist/i18n/locales/en.d.ts +151 -0
- package/dist/i18n/locales/en.js +151 -0
- package/dist/i18n/locales/es.d.ts +151 -0
- package/dist/i18n/locales/es.js +151 -0
- package/dist/i18n/locales/fr.d.ts +151 -0
- package/dist/i18n/locales/fr.js +151 -0
- package/dist/i18n/locales/hi.d.ts +151 -0
- package/dist/i18n/locales/hi.js +151 -0
- package/dist/i18n/locales/it.d.ts +151 -0
- package/dist/i18n/locales/it.js +151 -0
- package/dist/i18n/locales/ja.d.ts +151 -0
- package/dist/i18n/locales/ja.js +151 -0
- package/dist/i18n/locales/nl.d.ts +151 -0
- package/dist/i18n/locales/nl.js +151 -0
- package/dist/i18n/locales/pl.d.ts +151 -0
- package/dist/i18n/locales/pl.js +151 -0
- package/dist/i18n/locales/pt.d.ts +151 -0
- package/dist/i18n/locales/pt.js +151 -0
- package/dist/i18n/locales/ro.d.ts +151 -0
- package/dist/i18n/locales/ro.js +151 -0
- package/dist/i18n/locales/ru.d.ts +151 -0
- package/dist/i18n/locales/ru.js +151 -0
- package/dist/i18n/locales/sq.d.ts +151 -0
- package/dist/i18n/locales/sq.js +151 -0
- package/dist/i18n/locales/sv.d.ts +151 -0
- package/dist/i18n/locales/sv.js +151 -0
- package/dist/i18n/locales/tr.d.ts +151 -0
- package/dist/i18n/locales/tr.js +151 -0
- package/dist/i18n/locales/zh.d.ts +151 -0
- package/dist/i18n/locales/zh.js +151 -0
- package/dist/index.js +1006 -978
- package/dist/locales/ar.json +151 -0
- package/dist/locales/de.json +151 -0
- package/dist/locales/el.json +151 -0
- package/dist/locales/en.json +151 -0
- package/dist/locales/es.json +151 -0
- package/dist/locales/fr.json +151 -0
- package/dist/locales/hi.json +151 -0
- package/dist/locales/it.json +151 -0
- package/dist/locales/ja.json +151 -0
- package/dist/locales/nl.json +151 -0
- package/dist/locales/pl.json +151 -0
- package/dist/locales/pt.json +151 -0
- package/dist/locales/ro.json +151 -0
- package/dist/locales/ru.json +151 -0
- package/dist/locales/sq.json +151 -0
- package/dist/locales/sv.json +151 -0
- package/dist/locales/tr.json +151 -0
- package/dist/locales/zh.json +151 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +3 -3
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +11 -0
- package/dist/patterns/prescription/index.js +13 -0
- package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
- package/dist/patterns/prescription/prescription-composer-item.d.ts +41 -0
- package/dist/patterns/prescription/prescription-composer.d.ts +94 -0
- package/dist/patterns/prescription/prescription-history.d.ts +48 -0
- package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
- package/dist/patterns/prescription/prescription-sheet.d.ts +71 -0
- package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
- package/dist/patterns/prescription/prescription-types.d.ts +122 -0
- package/dist/patterns/prescription/prescription-validation.d.ts +46 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +21 -1
- package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
- package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
- package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
- package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
- package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
|
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-DVPM46bq.js";
|
|
|
8
8
|
import { D as ae } from "./description-list-BxzDN9o2.js";
|
|
9
9
|
import { P as de } from "./panel-header-CbtlTe85.js";
|
|
10
10
|
import { u as re } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-
|
|
11
|
+
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-DlpIModg.js";
|
|
12
12
|
import { C as pe } from "./clipboard-list-rSzfIYZB.js";
|
|
13
13
|
const me = {
|
|
14
14
|
id: "patient-details",
|
|
@@ -368,4 +368,4 @@ export {
|
|
|
368
368
|
ue as P,
|
|
369
369
|
me as p
|
|
370
370
|
};
|
|
371
|
-
//# sourceMappingURL=patient-details-
|
|
371
|
+
//# sourceMappingURL=patient-details-D0PjzALT.js.map
|
|
@@ -18,16 +18,16 @@ import { C as oe } from "./calendar-days-BGWklvE-.js";
|
|
|
18
18
|
import { H as le } from "./hourglass-BEAzW1wE.js";
|
|
19
19
|
import { c as G } from "./createLucideIcon-DhHxpK9K.js";
|
|
20
20
|
import { U as ce } from "./user-B12p7bVF.js";
|
|
21
|
-
import { C as de } from "./city-input-
|
|
22
|
-
import { C as ue } from "./country-select-
|
|
21
|
+
import { C as de } from "./city-input-DARVDJhH.js";
|
|
22
|
+
import { C as ue } from "./country-select-BPISkYVU.js";
|
|
23
23
|
import { D as me } from "./date-picker-BmVBVpVu.js";
|
|
24
24
|
import { E as pe } from "./email-input-DxwbREpx.js";
|
|
25
25
|
import { F as fe } from "./fiscal-code-input-DZlpaMGg.js";
|
|
26
|
-
import { N as ge } from "./number-input-
|
|
27
|
-
import { P as he } from "./phone-input-
|
|
26
|
+
import { N as ge } from "./number-input-Bi5Yk6PX.js";
|
|
27
|
+
import { P as he } from "./phone-input-DRKcJUi4.js";
|
|
28
28
|
import { P as ye } from "./postal-code-input-dJdSAVkP.js";
|
|
29
|
-
import { P as be } from "./province-select-
|
|
30
|
-
import { S as ve } from "./select-
|
|
29
|
+
import { P as be } from "./province-select-D-iY9bQG.js";
|
|
30
|
+
import { S as ve } from "./select-Bm8s3q-X.js";
|
|
31
31
|
import { S as xe } from "./switch-DO6uC4HJ.js";
|
|
32
32
|
import { T as Ce } from "./text-area-COMVJ1yE.js";
|
|
33
33
|
import { T as ke } from "./text-input-B6iAgCr3.js";
|
|
@@ -805,4 +805,4 @@ export {
|
|
|
805
805
|
Dt as r,
|
|
806
806
|
St as u
|
|
807
807
|
};
|
|
808
|
-
//# sourceMappingURL=patient-field-row-
|
|
808
|
+
//# sourceMappingURL=patient-field-row-DlpIModg.js.map
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { jsx as r, jsxs as j } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useRef as B, useEffect as G } from "react";
|
|
3
|
+
import { useTranslation as H } from "react-i18next";
|
|
4
|
+
import { C as k } from "./combobox-BYl6mY4c.js";
|
|
5
|
+
import { B as w } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { n as I } from "./normalize-diacritics-DhJjQ3Bp.js";
|
|
7
|
+
function D({
|
|
8
|
+
action: e,
|
|
9
|
+
typedRef: s
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ r(
|
|
12
|
+
w,
|
|
13
|
+
{
|
|
14
|
+
type: "button",
|
|
15
|
+
size: "sm",
|
|
16
|
+
intent: "outline",
|
|
17
|
+
className: "ds:self-start",
|
|
18
|
+
loading: e.loading,
|
|
19
|
+
"data-action": "create-patient",
|
|
20
|
+
onClick: () => e.onCreate(s.current),
|
|
21
|
+
children: e.label
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
function $({
|
|
26
|
+
patients: e = [],
|
|
27
|
+
searchPatients: s,
|
|
28
|
+
...a
|
|
29
|
+
}) {
|
|
30
|
+
return s ? /* @__PURE__ */ r(K, { ...a, searchPatients: s }) : /* @__PURE__ */ r(J, { ...a, patients: e });
|
|
31
|
+
}
|
|
32
|
+
function J({
|
|
33
|
+
value: e,
|
|
34
|
+
onValueChange: s,
|
|
35
|
+
patients: a,
|
|
36
|
+
selectedLabel: p,
|
|
37
|
+
placeholder: P,
|
|
38
|
+
size: b,
|
|
39
|
+
disabled: y,
|
|
40
|
+
id: f,
|
|
41
|
+
privacyMask: i,
|
|
42
|
+
createAction: d
|
|
43
|
+
}) {
|
|
44
|
+
const l = B(""), C = /* @__PURE__ */ r(
|
|
45
|
+
k,
|
|
46
|
+
{
|
|
47
|
+
value: e,
|
|
48
|
+
onValueChange: s,
|
|
49
|
+
onQueryChange: (o) => {
|
|
50
|
+
l.current = o;
|
|
51
|
+
},
|
|
52
|
+
options: [
|
|
53
|
+
...e && !a.some((o) => o.id === e) ? [{ value: e, label: i ?? p ?? "" }] : [],
|
|
54
|
+
...a.map((o) => ({
|
|
55
|
+
value: o.id,
|
|
56
|
+
label: i !== void 0 && o.id === e ? i : o.name
|
|
57
|
+
}))
|
|
58
|
+
],
|
|
59
|
+
id: f,
|
|
60
|
+
placeholder: P,
|
|
61
|
+
size: b,
|
|
62
|
+
disabled: y,
|
|
63
|
+
clearable: !0
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
return d ? /* @__PURE__ */ j("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
67
|
+
C,
|
|
68
|
+
e || y ? null : /* @__PURE__ */ r(D, { action: d, typedRef: l })
|
|
69
|
+
] }) : C;
|
|
70
|
+
}
|
|
71
|
+
function K({
|
|
72
|
+
value: e,
|
|
73
|
+
onValueChange: s,
|
|
74
|
+
selectedLabel: a,
|
|
75
|
+
placeholder: p,
|
|
76
|
+
size: P,
|
|
77
|
+
disabled: b,
|
|
78
|
+
id: y,
|
|
79
|
+
privacyMask: f,
|
|
80
|
+
searchPatients: i,
|
|
81
|
+
createAction: d
|
|
82
|
+
}) {
|
|
83
|
+
const { t: l } = H("ui"), [C, o] = x(""), [E, L] = x(0), [h, O] = x(), [m, R] = x(), N = B(null), Q = B(""), c = C.trim();
|
|
84
|
+
G(() => {
|
|
85
|
+
if (!c) return;
|
|
86
|
+
const t = new AbortController(), n = { query: c, source: i };
|
|
87
|
+
R({ ...n, status: "loading", patients: [] });
|
|
88
|
+
const S = setTimeout(() => {
|
|
89
|
+
Promise.resolve().then(() => i(c, { signal: t.signal })).then(
|
|
90
|
+
(F) => {
|
|
91
|
+
t.signal.aborted || R({ ...n, status: "ready", patients: F });
|
|
92
|
+
},
|
|
93
|
+
() => {
|
|
94
|
+
t.signal.aborted || R({ ...n, status: "error", patients: [] });
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}, 250);
|
|
98
|
+
return () => {
|
|
99
|
+
clearTimeout(S), t.abort();
|
|
100
|
+
};
|
|
101
|
+
}, [c, i, E]);
|
|
102
|
+
const q = (m == null ? void 0 : m.query) === c && m.source === i, u = c ? q ? m.status : "loading" : "idle", g = q && u === "ready" ? m.patients : [], z = u === "loading" ? l("inputs.search.loading") : u === "error" ? l("emptyState.error.description") : u === "idle" ? p : g.length === 0 ? l("inputs.combobox.empty") : "", V = !!d && !e && !b, T = g.map((t) => ({
|
|
103
|
+
value: t.id,
|
|
104
|
+
label: f !== void 0 && t.id === e ? f : t.name
|
|
105
|
+
}));
|
|
106
|
+
return e && !g.some((t) => t.id === e) && T.push({
|
|
107
|
+
value: e,
|
|
108
|
+
label: f ?? ((h == null ? void 0 : h.id) === e ? h.name : a ?? "")
|
|
109
|
+
}), /* @__PURE__ */ j(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
113
|
+
"data-component": "patient-picker",
|
|
114
|
+
"data-status": u,
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ r(
|
|
117
|
+
k,
|
|
118
|
+
{
|
|
119
|
+
ref: N,
|
|
120
|
+
options: T,
|
|
121
|
+
value: e,
|
|
122
|
+
onValueChange: (t) => {
|
|
123
|
+
O(
|
|
124
|
+
(n) => g.find((S) => S.id === t) ?? ((n == null ? void 0 : n.id) === t ? n : void 0)
|
|
125
|
+
), s(t);
|
|
126
|
+
},
|
|
127
|
+
onQueryChange: (t) => {
|
|
128
|
+
Q.current = t, o(t);
|
|
129
|
+
},
|
|
130
|
+
onOpenChange: (t) => {
|
|
131
|
+
!t && u !== "error" && o("");
|
|
132
|
+
},
|
|
133
|
+
filter: (t) => !c || g.some((n) => I(n.id) === t) ? 1 : 0,
|
|
134
|
+
size: P,
|
|
135
|
+
disabled: b,
|
|
136
|
+
id: y,
|
|
137
|
+
placeholder: p,
|
|
138
|
+
emptyMessage: z || void 0,
|
|
139
|
+
clearable: !0
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
/* @__PURE__ */ r("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: z }),
|
|
143
|
+
V && d ? /* @__PURE__ */ r(D, { action: d, typedRef: Q }) : null,
|
|
144
|
+
u === "error" ? /* @__PURE__ */ r(
|
|
145
|
+
w,
|
|
146
|
+
{
|
|
147
|
+
size: "sm",
|
|
148
|
+
intent: "ghost",
|
|
149
|
+
onClick: () => {
|
|
150
|
+
var t;
|
|
151
|
+
L((n) => n + 1), (t = N.current) == null || t.focus();
|
|
152
|
+
},
|
|
153
|
+
children: l("emptyState.error.cta")
|
|
154
|
+
}
|
|
155
|
+
) : null
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
$ as P
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=patient-picker-CQNsqYn2.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as Te, useRef as R, useState as J, useEffect as H, useLayoutEffect as Ae, useMemo as ue, useImperativeHandle as We, createContext as Pe, useCallback as Z, useId as _e, useContext as Qe } from "react";
|
|
3
3
|
import { c as ee } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as D } from "react-i18next";
|
|
5
|
-
import { A as Se } from "./autocomplete-
|
|
5
|
+
import { A as Se } from "./autocomplete-HZNW7_Pa.js";
|
|
6
6
|
import { B as Fe } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { C as te } from "./card-n6W6LW-N.js";
|
|
8
8
|
import { S as Ie } from "./slider-pZ95bEm7.js";
|
|
@@ -1273,4 +1273,4 @@ export {
|
|
|
1273
1273
|
nt as P,
|
|
1274
1274
|
He as p
|
|
1275
1275
|
};
|
|
1276
|
-
//# sourceMappingURL=patient-search-
|
|
1276
|
+
//# sourceMappingURL=patient-search-aTFd7p9s.js.map
|
|
@@ -14,7 +14,7 @@ import { T as Ke } from "./transaction-chip-CkYd-3ky.js";
|
|
|
14
14
|
import { T as je } from "./tooltip-uEBdD1-5.js";
|
|
15
15
|
import { H as G } from "./hover-card-CuRIA4wN.js";
|
|
16
16
|
import { i as de } from "./is-safe-url-CEy9CEml.js";
|
|
17
|
-
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-
|
|
17
|
+
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-DlpIModg.js";
|
|
18
18
|
import { u as Oe } from "./registry-DvAUVLHh.js";
|
|
19
19
|
import { M as ea } from "./mail-BqXVF2zH.js";
|
|
20
20
|
import { P as aa } from "./phone-FceYcIFQ.js";
|
|
@@ -548,4 +548,4 @@ export {
|
|
|
548
548
|
Ca as P,
|
|
549
549
|
ma as p
|
|
550
550
|
};
|
|
551
|
-
//# sourceMappingURL=patient-summary-card-
|
|
551
|
+
//# sourceMappingURL=patient-summary-card-BP_K7g_q.js.map
|
|
@@ -11,7 +11,7 @@ import { useTranslation as it } from "react-i18next";
|
|
|
11
11
|
import { getCountries as dt, parsePhoneNumberFromString as V, AsYouType as W, getCountryCallingCode as lt } from "libphonenumber-js/min";
|
|
12
12
|
import { u as ut, F as ct, a as pt } from "./form-field-context-DtiROUJV.js";
|
|
13
13
|
import { c as ft } from "./compose-refs-C0k0tdqF.js";
|
|
14
|
-
import { n as le } from "./normalize-diacritics-
|
|
14
|
+
import { n as le } from "./normalize-diacritics-DhJjQ3Bp.js";
|
|
15
15
|
import { b as mt } from "./menu-row-BAr8bx1I.js";
|
|
16
16
|
import { a as ue } from "./flag-DVBE6DnB.js";
|
|
17
17
|
import { C as ht } from "./chevron-down-DWE7GSq9.js";
|
|
@@ -643,4 +643,4 @@ export {
|
|
|
643
643
|
Ie as c,
|
|
644
644
|
vt as p
|
|
645
645
|
};
|
|
646
|
-
//# sourceMappingURL=phone-input-
|
|
646
|
+
//# sourceMappingURL=phone-input-DRKcJUi4.js.map
|
|
@@ -4,7 +4,7 @@ import { useTranslation as z } from "react-i18next";
|
|
|
4
4
|
import { A as Q } from "./alert-C4WKViaS.js";
|
|
5
5
|
import { B as I } from "./button-DohK_Ak_.js";
|
|
6
6
|
import { C as st } from "./checkbox-DV4sNDeB.js";
|
|
7
|
-
import { C as ot } from "./country-select-
|
|
7
|
+
import { C as ot } from "./country-select-BPISkYVU.js";
|
|
8
8
|
import { D as P } from "./description-list-BxzDN9o2.js";
|
|
9
9
|
import { E as rt } from "./error-summary-DxNhwf_G.js";
|
|
10
10
|
import { E as ct } from "./email-input-DxwbREpx.js";
|
|
@@ -475,4 +475,4 @@ export {
|
|
|
475
475
|
Ct as b,
|
|
476
476
|
Z as p
|
|
477
477
|
};
|
|
478
|
-
//# sourceMappingURL=portal-details-
|
|
478
|
+
//# sourceMappingURL=portal-details-VfeOI4PB.js.map
|
|
@@ -18,7 +18,7 @@ import { D as H } from "./dialog-CVTxyR0v.js";
|
|
|
18
18
|
import { V as ye } from "./visually-hidden-BHxEUGyT.js";
|
|
19
19
|
import { u as ve } from "./use-controllable-state-BiY4xTzM.js";
|
|
20
20
|
import { A as ee } from "./alert-C4WKViaS.js";
|
|
21
|
-
import { D as xe } from "./document-preview-
|
|
21
|
+
import { D as xe } from "./document-preview-FTCHXYhk.js";
|
|
22
22
|
import { D as ke } from "./download-CfYKJO_j.js";
|
|
23
23
|
function _e({
|
|
24
24
|
activeTab: p,
|
|
@@ -899,4 +899,4 @@ export {
|
|
|
899
899
|
we as c,
|
|
900
900
|
_e as d
|
|
901
901
|
};
|
|
902
|
-
//# sourceMappingURL=portal-documents-
|
|
902
|
+
//# sourceMappingURL=portal-documents-hGHlwmbv.js.map
|
|
@@ -7,8 +7,8 @@ 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-CyHfOVKF.js";
|
|
9
9
|
import { D as V } from "./date-picker-BmVBVpVu.js";
|
|
10
|
-
import { N as H } from "./number-input-
|
|
11
|
-
import { S as Ce } from "./select-
|
|
10
|
+
import { N as H } from "./number-input-Bi5Yk6PX.js";
|
|
11
|
+
import { S as Ce } from "./select-Bm8s3q-X.js";
|
|
12
12
|
import { S as je } from "./switch-DO6uC4HJ.js";
|
|
13
13
|
import { C as ie } from "./card-n6W6LW-N.js";
|
|
14
14
|
import { B as $ } from "./badge-BUk4RjTS.js";
|
|
@@ -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-a6WIg4oy.js.map
|
package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js}
RENAMED
|
@@ -6,7 +6,7 @@ import { u as Z } from "./registry-DvAUVLHh.js";
|
|
|
6
6
|
import { R as M } from "./radio-BZQs6_36.js";
|
|
7
7
|
import { R as ee } from "./radio-group-ChIKyeSJ.js";
|
|
8
8
|
import { F as P } from "./form-field-CyHfOVKF.js";
|
|
9
|
-
import { N as I } from "./number-input-
|
|
9
|
+
import { N as I } from "./number-input-Bi5Yk6PX.js";
|
|
10
10
|
import { C as B } from "./card-n6W6LW-N.js";
|
|
11
11
|
import { B as E } from "./badge-BUk4RjTS.js";
|
|
12
12
|
import { I as te } from "./insert-result-CDMMt7q8.js";
|
|
@@ -550,4 +550,4 @@ export {
|
|
|
550
550
|
ie as p,
|
|
551
551
|
oe as r
|
|
552
552
|
};
|
|
553
|
-
//# sourceMappingURL=pregnancy-weight-gain-
|
|
553
|
+
//# sourceMappingURL=pregnancy-weight-gain-DmrVHk9y.js.map
|