@alfadocs/ui-kit 0.47.0 → 0.49.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-autocomplete-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
- package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/ai-consent-banner-F2md5JD3.js +169 -0
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +280 -0
- package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
- package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
- package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-DljH0JkS.js} +294 -306
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
- package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
- package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
- package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
- package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
- package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
- package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
- package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
- package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
- package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
- package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
- package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
- package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
- package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
- package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-q1D3Uion.js} +4 -4
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-Cq1y8JFD.js} +4 -3
- package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
- package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
- package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
- package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
- package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-CZkAf28g.js} +2 -2
- package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
- package/dist/_chunks/subDays-Bs00akhK.js +8 -0
- package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
- package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-DzX_LI4y.js} +139 -157
- package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
- package/dist/agent-catalog.json +367 -1
- package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
- package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/index.d.ts +5 -0
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/_shared/obstetrics.d.ts +138 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bishop-score/bishop-score.d.ts +27 -0
- package/dist/components/bishop-score/bishop.d.ts +30 -0
- package/dist/components/bishop-score/index.d.ts +4 -0
- package/dist/components/bishop-score/index.js +10 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle.d.ts +5 -0
- 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/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
- package/dist/components/due-date-calculator/gestation.d.ts +1 -59
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +16 -10
- package/dist/components/fetal-weight/efw.d.ts +25 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
- package/dist/components/fetal-weight/index.d.ts +4 -0
- package/dist/components/fetal-weight/index.js +6 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
- package/dist/components/hcg-doubling/hcg.d.ts +33 -0
- package/dist/components/hcg-doubling/index.d.ts +4 -0
- package/dist/components/hcg-doubling/index.js +7 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- 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.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
- package/dist/components/product-hub-tray/index.d.ts +8 -0
- package/dist/components/product-hub-tray/index.js +10 -0
- package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
- package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar/index.js +12 -11
- package/dist/components/sidebar/sidebar.d.ts +14 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +561 -1
- package/dist/i18n/locales/ar.js +560 -2
- package/dist/i18n/locales/de.d.ts +561 -1
- package/dist/i18n/locales/de.js +560 -2
- package/dist/i18n/locales/el.d.ts +561 -1
- package/dist/i18n/locales/el.js +560 -2
- package/dist/i18n/locales/en.d.ts +561 -1
- package/dist/i18n/locales/en.js +560 -2
- package/dist/i18n/locales/es.d.ts +561 -1
- package/dist/i18n/locales/es.js +560 -2
- package/dist/i18n/locales/fr.d.ts +561 -1
- package/dist/i18n/locales/fr.js +560 -2
- package/dist/i18n/locales/hi.d.ts +561 -1
- package/dist/i18n/locales/hi.js +560 -2
- package/dist/i18n/locales/it.d.ts +561 -1
- package/dist/i18n/locales/it.js +560 -2
- package/dist/i18n/locales/ja.d.ts +561 -1
- package/dist/i18n/locales/ja.js +560 -2
- package/dist/i18n/locales/nl.d.ts +561 -1
- package/dist/i18n/locales/nl.js +560 -2
- package/dist/i18n/locales/pl.d.ts +561 -1
- package/dist/i18n/locales/pl.js +560 -2
- package/dist/i18n/locales/pt.d.ts +561 -1
- package/dist/i18n/locales/pt.js +560 -2
- package/dist/i18n/locales/ro.d.ts +561 -1
- package/dist/i18n/locales/ro.js +560 -2
- package/dist/i18n/locales/ru.d.ts +561 -1
- package/dist/i18n/locales/ru.js +560 -2
- package/dist/i18n/locales/sq.d.ts +561 -1
- package/dist/i18n/locales/sq.js +560 -2
- package/dist/i18n/locales/sv.d.ts +561 -1
- package/dist/i18n/locales/sv.js +560 -2
- package/dist/i18n/locales/tr.d.ts +561 -1
- package/dist/i18n/locales/tr.js +560 -2
- package/dist/i18n/locales/zh.d.ts +561 -1
- package/dist/i18n/locales/zh.js +560 -2
- package/dist/index.js +663 -600
- package/dist/locales/ar.json +562 -2
- package/dist/locales/de.json +562 -2
- package/dist/locales/el.json +562 -2
- package/dist/locales/en.json +562 -2
- package/dist/locales/es.json +562 -2
- package/dist/locales/fr.json +562 -2
- package/dist/locales/hi.json +562 -2
- package/dist/locales/it.json +562 -2
- package/dist/locales/ja.json +562 -2
- package/dist/locales/nl.json +562 -2
- package/dist/locales/pl.json +562 -2
- package/dist/locales/pt.json +562 -2
- package/dist/locales/ro.json +562 -2
- package/dist/locales/ru.json +562 -2
- package/dist/locales/sq.json +562 -2
- package/dist/locales/sv.json +562 -2
- package/dist/locales/tr.json +562 -2
- package/dist/locales/zh.json +562 -2
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- 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 +1 -1
- package/package.json +58 -1
- package/dist/_chunks/cycle-calculator-KxA8dqDf.js +0 -211
- package/dist/_chunks/due-date-calculator-mFxpHLml.js +0 -216
- package/dist/_chunks/gestation-mWF4AXea.js +0 -50
- package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +0 -203
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js +0 -246
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
- package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
- package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as E, useState as h, useMemo as g, useEffect as L } from "react";
|
|
3
|
-
import { c as I } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as S } from "react-i18next";
|
|
5
|
-
import { R as x } from "./radio-TWf9Q-mp.js";
|
|
6
|
-
import { R as B } from "./radio-group-CLjK-SlK.js";
|
|
7
|
-
import { F } from "./form-field-BOm9hK35.js";
|
|
8
|
-
import { D as M } from "./date-picker-Bq7xhMA-.js";
|
|
9
|
-
import { C as A } from "./card-DPmk26CL.js";
|
|
10
|
-
import { B as v } from "./badge-zsf5i5bH.js";
|
|
11
|
-
import { I as R } from "./insert-result-C5ABnzDl.js";
|
|
12
|
-
import { c as H, g as _, G as j } from "./gestation-mWF4AXea.js";
|
|
13
|
-
import { s as z } from "./subDays-Dv7q9S7u.js";
|
|
14
|
-
import { i as O } from "./date-picker-variants-DLi1Va_e.js";
|
|
15
|
-
const V = I("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
16
|
-
variants: {
|
|
17
|
-
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
18
|
-
},
|
|
19
|
-
defaultVariants: { width: "full" }
|
|
20
|
-
}), K = {
|
|
21
|
-
preconception: "neutral",
|
|
22
|
-
first: "info",
|
|
23
|
-
second: "success",
|
|
24
|
-
third: "warning",
|
|
25
|
-
postterm: "error"
|
|
26
|
-
}, P = {
|
|
27
|
-
preconception: "--muted",
|
|
28
|
-
first: "--info",
|
|
29
|
-
second: "--success",
|
|
30
|
-
third: "--warning-readable",
|
|
31
|
-
postterm: "--destructive"
|
|
32
|
-
};
|
|
33
|
-
function Y(c) {
|
|
34
|
-
return P[c];
|
|
35
|
-
}
|
|
36
|
-
const q = E(
|
|
37
|
-
({
|
|
38
|
-
defaultMethod: c = "lmp",
|
|
39
|
-
onResultChange: d,
|
|
40
|
-
onInsert: u,
|
|
41
|
-
insertVariant: p = "insert",
|
|
42
|
-
onCopy: b,
|
|
43
|
-
onError: y,
|
|
44
|
-
insertBrand: C,
|
|
45
|
-
id: N,
|
|
46
|
-
width: D,
|
|
47
|
-
className: T
|
|
48
|
-
}, w) => {
|
|
49
|
-
const { t: e, i18n: f } = S(), [o, G] = h(c), [i, $] = h(void 0), n = g(() => /* @__PURE__ */ new Date(), []), a = g(() => {
|
|
50
|
-
if (!i) return null;
|
|
51
|
-
const s = o === "lmp" ? i : z(i, j), r = H({ method: "lmp", date: s }, n);
|
|
52
|
-
return {
|
|
53
|
-
result: {
|
|
54
|
-
gestationalAge: r.gestationalAge,
|
|
55
|
-
trimester: r.trimester,
|
|
56
|
-
dueDate: r.dueDate
|
|
57
|
-
},
|
|
58
|
-
milestones: _(r.gestationalStart)
|
|
59
|
-
};
|
|
60
|
-
}, [o, i, n]), k = g(
|
|
61
|
-
() => new Intl.DateTimeFormat(f.language, { dateStyle: "medium" }),
|
|
62
|
-
[f.language]
|
|
63
|
-
);
|
|
64
|
-
L(() => {
|
|
65
|
-
d == null || d((a == null ? void 0 : a.result) ?? null);
|
|
66
|
-
}, [a, d]);
|
|
67
|
-
const m = (s) => s ? e("gestationalAgeCalculator.gestation", {
|
|
68
|
-
weeks: s.weeks,
|
|
69
|
-
days: s.days
|
|
70
|
-
}) : "—";
|
|
71
|
-
return /* @__PURE__ */ l(
|
|
72
|
-
"div",
|
|
73
|
-
{
|
|
74
|
-
ref: w,
|
|
75
|
-
"data-component": "gestational-age-calculator",
|
|
76
|
-
"data-component-id": N,
|
|
77
|
-
className: V({ width: D, className: T }),
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ l(
|
|
80
|
-
B,
|
|
81
|
-
{
|
|
82
|
-
label: e("gestationalAgeCalculator.method.label"),
|
|
83
|
-
variant: "horizontal",
|
|
84
|
-
value: o,
|
|
85
|
-
onValueChange: (s) => G(s),
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ t(x, { label: e("gestationalAgeCalculator.method.lmp"), value: "lmp" }),
|
|
88
|
-
/* @__PURE__ */ t(x, { label: e("gestationalAgeCalculator.method.edd"), value: "edd" })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
),
|
|
92
|
-
/* @__PURE__ */ t(
|
|
93
|
-
F,
|
|
94
|
-
{
|
|
95
|
-
label: e(
|
|
96
|
-
o === "lmp" ? "gestationalAgeCalculator.lmpDate" : "gestationalAgeCalculator.eddDate"
|
|
97
|
-
),
|
|
98
|
-
children: /* @__PURE__ */ t(
|
|
99
|
-
M,
|
|
100
|
-
{
|
|
101
|
-
value: i,
|
|
102
|
-
onChange: $,
|
|
103
|
-
maxDate: o === "lmp" ? n : void 0
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
/* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${e("gestationalAgeCalculator.gestationLabel")}: ${m(
|
|
109
|
-
a.result.gestationalAge
|
|
110
|
-
)}. ${e("gestationalAgeCalculator.trimesterLabel")}: ${e(
|
|
111
|
-
`gestationalAgeCalculator.trimester.${a.result.trimester}`
|
|
112
|
-
)}.` : "" }),
|
|
113
|
-
a ? /* @__PURE__ */ t(A, { variant: "elevated", children: /* @__PURE__ */ l(A.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
114
|
-
/* @__PURE__ */ l("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
115
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
116
|
-
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.trimesterLabel") }),
|
|
117
|
-
/* @__PURE__ */ t("dd", { children: /* @__PURE__ */ t(
|
|
118
|
-
v,
|
|
119
|
-
{
|
|
120
|
-
variant: K[a.result.trimester],
|
|
121
|
-
size: "lg",
|
|
122
|
-
children: e(
|
|
123
|
-
`gestationalAgeCalculator.trimester.${a.result.trimester}`
|
|
124
|
-
)
|
|
125
|
-
}
|
|
126
|
-
) })
|
|
127
|
-
] }),
|
|
128
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-end ds:gap-[var(--spacing-xs)] ds:text-end", children: [
|
|
129
|
-
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.gestationLabel") }),
|
|
130
|
-
/* @__PURE__ */ t("dd", { className: "type-metric ds:text-foreground", children: m(a.result.gestationalAge) })
|
|
131
|
-
] })
|
|
132
|
-
] }),
|
|
133
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
134
|
-
/* @__PURE__ */ t("span", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.milestonesLabel") }),
|
|
135
|
-
/* @__PURE__ */ t("ul", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: a.milestones.map((s) => {
|
|
136
|
-
const r = O(n, s.date);
|
|
137
|
-
return /* @__PURE__ */ l(
|
|
138
|
-
"li",
|
|
139
|
-
{
|
|
140
|
-
className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]",
|
|
141
|
-
children: [
|
|
142
|
-
/* @__PURE__ */ t("span", { className: "type-body ds:text-foreground", children: e(`gestationalAgeCalculator.milestone.${s.key}`) }),
|
|
143
|
-
/* @__PURE__ */ l("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
144
|
-
/* @__PURE__ */ t("span", { className: "type-body ds:text-muted-foreground", children: k.format(s.date) }),
|
|
145
|
-
r ? /* @__PURE__ */ t(v, { variant: "success", children: e("gestationalAgeCalculator.reached") }) : null
|
|
146
|
-
] })
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
s.key
|
|
150
|
-
);
|
|
151
|
-
}) })
|
|
152
|
-
] }),
|
|
153
|
-
p === "copy" || u ? /* @__PURE__ */ t(
|
|
154
|
-
R,
|
|
155
|
-
{
|
|
156
|
-
onInsert: u,
|
|
157
|
-
variant: p,
|
|
158
|
-
onCopy: b,
|
|
159
|
-
onError: y,
|
|
160
|
-
card: {
|
|
161
|
-
title: e("insert.title.gestationalAge"),
|
|
162
|
-
icon: "baby",
|
|
163
|
-
highlight: e(
|
|
164
|
-
`gestationalAgeCalculator.trimester.${a.result.trimester}`
|
|
165
|
-
),
|
|
166
|
-
// Chip shares the trimester's semantic token so the
|
|
167
|
-
// inserted PNG chip matches the on-screen trimester badge —
|
|
168
|
-
// with the contrast-safe orange override for the
|
|
169
|
-
// `--warning` third trimester.
|
|
170
|
-
highlightToken: Y(
|
|
171
|
-
a.result.trimester
|
|
172
|
-
),
|
|
173
|
-
brand: C,
|
|
174
|
-
fields: [
|
|
175
|
-
{
|
|
176
|
-
// Gestational age is an elapsed duration → clock glyph.
|
|
177
|
-
icon: "clock",
|
|
178
|
-
label: e("gestationalAgeCalculator.gestationLabel"),
|
|
179
|
-
value: m(a.result.gestationalAge)
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
// Trimester is a clinical-stage classification → tag.
|
|
183
|
-
icon: "tag",
|
|
184
|
-
label: e("gestationalAgeCalculator.trimesterLabel"),
|
|
185
|
-
value: e(
|
|
186
|
-
`gestationalAgeCalculator.trimester.${a.result.trimester}`
|
|
187
|
-
)
|
|
188
|
-
}
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
) : null
|
|
193
|
-
] }) }) : /* @__PURE__ */ t("p", { className: "type-body ds:text-muted-foreground", children: e("gestationalAgeCalculator.empty") })
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
q.displayName = "GestationalAgeCalculator";
|
|
200
|
-
export {
|
|
201
|
-
q as G
|
|
202
|
-
};
|
|
203
|
-
//# sourceMappingURL=gestational-age-calculator-gWI_uRA1.js.map
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as k, useId as A } from "react";
|
|
3
|
-
import { c as O } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as C } from "react-i18next";
|
|
5
|
-
import { A as L } from "./avatar-BNQNhoyL.js";
|
|
6
|
-
import { B as R } from "./badge-zsf5i5bH.js";
|
|
7
|
-
import { C as j } from "./card-DPmk26CL.js";
|
|
8
|
-
import { R as z } from "./rating-BRD7O74e.js";
|
|
9
|
-
import { u as I } from "./registry-nPAVE19X.js";
|
|
10
|
-
const B = {
|
|
11
|
-
id: "operator-hero",
|
|
12
|
-
capabilities: ["view_change"],
|
|
13
|
-
state: {
|
|
14
|
-
name: {
|
|
15
|
-
type: "string",
|
|
16
|
-
descriptionKey: "ui.agent.operatorHero.state.name",
|
|
17
|
-
description: "Operator display name currently rendered.",
|
|
18
|
-
read: (s) => s.getName()
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
actions: {},
|
|
22
|
-
domHooks: {
|
|
23
|
-
root: {
|
|
24
|
-
attr: "data-component",
|
|
25
|
-
value: "operator-hero",
|
|
26
|
-
description: "Marks the OperatorHero root region."
|
|
27
|
-
},
|
|
28
|
-
instanceId: {
|
|
29
|
-
attr: "data-component-id",
|
|
30
|
-
sourceProp: "id",
|
|
31
|
-
description: "Sourced from the id prop."
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}, F = O("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
35
|
-
variants: {
|
|
36
|
-
// Density toggle. Default `comfortable` matches the practice hero's
|
|
37
|
-
// visual weight minus the cover strip. `compact` is for embedded
|
|
38
|
-
// surfaces (booking aside, ROI Dashboard practice panel) where the
|
|
39
|
-
// hero needs to fit in <12rem vertical.
|
|
40
|
-
density: {
|
|
41
|
-
comfortable: "",
|
|
42
|
-
compact: ""
|
|
43
|
-
},
|
|
44
|
-
// Matches the kit's other `surface` props (Booking, ReviewsPanel,
|
|
45
|
-
// ContactProfileCard). `'elevated'` wraps in `<Card>`.
|
|
46
|
-
surface: {
|
|
47
|
-
flat: "",
|
|
48
|
-
elevated: ""
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
defaultVariants: {
|
|
52
|
-
density: "comfortable",
|
|
53
|
-
surface: "elevated"
|
|
54
|
-
}
|
|
55
|
-
}), P = k(
|
|
56
|
-
({
|
|
57
|
-
name: s,
|
|
58
|
-
tagline: i,
|
|
59
|
-
imageUrl: f,
|
|
60
|
-
rating: a,
|
|
61
|
-
badges: t,
|
|
62
|
-
actionSlot: n,
|
|
63
|
-
density: r = "comfortable",
|
|
64
|
-
surface: c = "elevated",
|
|
65
|
-
"aria-label": g,
|
|
66
|
-
id: d,
|
|
67
|
-
className: u,
|
|
68
|
-
...x
|
|
69
|
-
}, h) => {
|
|
70
|
-
const { t: p } = C(), m = A(), b = g ?? p("operatorHero.regionLabel");
|
|
71
|
-
I(B, { getName: () => s }, d);
|
|
72
|
-
const N = a ? p("operatorHero.ratingLabel", {
|
|
73
|
-
value: a.value.toFixed(1),
|
|
74
|
-
count: a.count
|
|
75
|
-
}) : void 0, y = r === "comfortable" ? "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]" : "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", H = r === "comfortable" ? "2xl" : "xl", w = r === "comfortable" ? "type-title-page" : "type-title-card", v = /* @__PURE__ */ o(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
className: [
|
|
79
|
-
"ds:flex ds:items-start ds:gap-[var(--spacing-lg)]",
|
|
80
|
-
y,
|
|
81
|
-
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
|
|
82
|
-
].join(" "),
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ e(
|
|
85
|
-
L,
|
|
86
|
-
{
|
|
87
|
-
size: H,
|
|
88
|
-
name: s,
|
|
89
|
-
src: f,
|
|
90
|
-
className: "ds:shrink-0"
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
/* @__PURE__ */ o("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
94
|
-
/* @__PURE__ */ o("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
|
|
95
|
-
/* @__PURE__ */ e(
|
|
96
|
-
"h1",
|
|
97
|
-
{
|
|
98
|
-
id: m,
|
|
99
|
-
className: `${w} ds:m-0 ds:text-[color:var(--foreground)]`,
|
|
100
|
-
children: s
|
|
101
|
-
}
|
|
102
|
-
),
|
|
103
|
-
n ? /* @__PURE__ */ e("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: n }) : null
|
|
104
|
-
] }),
|
|
105
|
-
i ? /* @__PURE__ */ e("p", { className: "type-body ds:m-0 ds:text-[color:var(--foreground)]", children: i }) : null,
|
|
106
|
-
a ? /* @__PURE__ */ o(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
110
|
-
"aria-label": N,
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ e(
|
|
113
|
-
z,
|
|
114
|
-
{
|
|
115
|
-
value: a.value,
|
|
116
|
-
max: 5,
|
|
117
|
-
size: r === "comfortable" ? "md" : "sm"
|
|
118
|
-
}
|
|
119
|
-
),
|
|
120
|
-
/* @__PURE__ */ o("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
|
|
121
|
-
a.value.toFixed(1),
|
|
122
|
-
" · ",
|
|
123
|
-
a.count
|
|
124
|
-
] })
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
) : null,
|
|
128
|
-
t && t.length > 0 ? /* @__PURE__ */ e(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
role: "list",
|
|
132
|
-
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)] ds:mt-[var(--spacing-2xs)]",
|
|
133
|
-
children: t.map((l) => /* @__PURE__ */ e(
|
|
134
|
-
R,
|
|
135
|
-
{
|
|
136
|
-
variant: l.variant ?? "neutral",
|
|
137
|
-
role: "listitem",
|
|
138
|
-
children: l.label
|
|
139
|
-
},
|
|
140
|
-
l.key
|
|
141
|
-
))
|
|
142
|
-
}
|
|
143
|
-
) : null
|
|
144
|
-
] })
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
return /* @__PURE__ */ e(
|
|
149
|
-
"div",
|
|
150
|
-
{
|
|
151
|
-
ref: h,
|
|
152
|
-
role: "region",
|
|
153
|
-
"aria-label": b,
|
|
154
|
-
"aria-labelledby": m,
|
|
155
|
-
"data-component": "operator-hero",
|
|
156
|
-
"data-component-id": d,
|
|
157
|
-
"data-density": r,
|
|
158
|
-
id: d,
|
|
159
|
-
className: F({ surface: c, density: r, className: u }),
|
|
160
|
-
...x,
|
|
161
|
-
children: c === "elevated" ? /* @__PURE__ */ e(j, { variant: "elevated", children: v }) : v
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
P.displayName = "OperatorHero";
|
|
167
|
-
export {
|
|
168
|
-
P as O,
|
|
169
|
-
B as o
|
|
170
|
-
};
|
|
171
|
-
//# sourceMappingURL=operator-hero-7LiiP7zi.js.map
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as A, useState as f, useMemo as w, useEffect as F } from "react";
|
|
3
|
-
import { c as k } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as R } from "react-i18next";
|
|
5
|
-
import { F as y } from "./form-field-BOm9hK35.js";
|
|
6
|
-
import { N as x } from "./number-input-Dj5L3pXK.js";
|
|
7
|
-
import { C as $ } from "./card-DPmk26CL.js";
|
|
8
|
-
import { B as C } from "./badge-zsf5i5bH.js";
|
|
9
|
-
import { I as H } from "./insert-result-C5ABnzDl.js";
|
|
10
|
-
import { b as M, e as j } from "./bmi-BxD-tFzU.js";
|
|
11
|
-
const L = {
|
|
12
|
-
underweight: { min: 12.5, max: 18 },
|
|
13
|
-
normal: { min: 11.5, max: 16 },
|
|
14
|
-
overweight: { min: 7, max: 11.5 },
|
|
15
|
-
obese: { min: 5, max: 9 }
|
|
16
|
-
}, O = {
|
|
17
|
-
underweight: { min: 0.44, max: 0.58 },
|
|
18
|
-
normal: { min: 0.35, max: 0.5 },
|
|
19
|
-
overweight: { min: 0.23, max: 0.33 },
|
|
20
|
-
obese: { min: 0.17, max: 0.27 }
|
|
21
|
-
}, G = { min: 0.5, max: 2 }, v = 13;
|
|
22
|
-
function U(t, i) {
|
|
23
|
-
if (i <= 0) return { min: 0, max: 0 };
|
|
24
|
-
if (i <= v) {
|
|
25
|
-
const c = i / v;
|
|
26
|
-
return {
|
|
27
|
-
min: G.min * c,
|
|
28
|
-
max: G.max * c
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
const l = Math.min(i, 40) - v, r = O[t];
|
|
32
|
-
return {
|
|
33
|
-
min: G.min + r.min * l,
|
|
34
|
-
max: G.max + r.max * l
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function z(t) {
|
|
38
|
-
const i = M(t.prePregnancyBmi), l = L[i], r = U(
|
|
39
|
-
i,
|
|
40
|
-
t.gestationalWeeks
|
|
41
|
-
), c = t.currentWeightKg - t.prePregnancyWeightKg, W = c < r.min ? "below" : c > r.max ? "above" : "within";
|
|
42
|
-
return { category: i, totalRange: l, recommendedToDate: r, actualGainKg: c, status: W };
|
|
43
|
-
}
|
|
44
|
-
const V = k("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
45
|
-
variants: {
|
|
46
|
-
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
47
|
-
},
|
|
48
|
-
defaultVariants: { width: "full" }
|
|
49
|
-
}), q = {
|
|
50
|
-
below: "warning",
|
|
51
|
-
within: "success",
|
|
52
|
-
above: "warning"
|
|
53
|
-
}, J = {
|
|
54
|
-
below: "--warning-readable",
|
|
55
|
-
within: "--success",
|
|
56
|
-
above: "--warning-readable"
|
|
57
|
-
};
|
|
58
|
-
function Q(t) {
|
|
59
|
-
return J[t];
|
|
60
|
-
}
|
|
61
|
-
const X = A(
|
|
62
|
-
({
|
|
63
|
-
onResultChange: t,
|
|
64
|
-
onInsert: i,
|
|
65
|
-
insertVariant: l = "insert",
|
|
66
|
-
onCopy: r,
|
|
67
|
-
onError: c,
|
|
68
|
-
insertBrand: W,
|
|
69
|
-
id: K,
|
|
70
|
-
width: P,
|
|
71
|
-
className: S
|
|
72
|
-
}, B) => {
|
|
73
|
-
const { t: e, i18n: b } = R(), [N, D] = f(null), [m, I] = f(null), [g, E] = f(null), [u, _] = f(null), p = j(m, N), n = w(() => p === null || m === null || g === null || u === null ? null : z({
|
|
74
|
-
prePregnancyBmi: p,
|
|
75
|
-
prePregnancyWeightKg: m,
|
|
76
|
-
currentWeightKg: g,
|
|
77
|
-
gestationalWeeks: u
|
|
78
|
-
}), [p, m, g, u]), d = w(
|
|
79
|
-
() => new Intl.NumberFormat(b.language, {
|
|
80
|
-
minimumFractionDigits: 1,
|
|
81
|
-
maximumFractionDigits: 1
|
|
82
|
-
}),
|
|
83
|
-
[b.language]
|
|
84
|
-
);
|
|
85
|
-
F(() => {
|
|
86
|
-
t == null || t(n);
|
|
87
|
-
}, [n, t]);
|
|
88
|
-
const o = e("pregnancyWeightGain.units.kg"), h = (T) => `${d.format(T.min)} – ${d.format(T.max)} ${o}`;
|
|
89
|
-
return /* @__PURE__ */ s(
|
|
90
|
-
"div",
|
|
91
|
-
{
|
|
92
|
-
ref: B,
|
|
93
|
-
"data-component": "pregnancy-weight-gain",
|
|
94
|
-
"data-component-id": K,
|
|
95
|
-
className: V({ width: P, className: S }),
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
98
|
-
/* @__PURE__ */ a(
|
|
99
|
-
y,
|
|
100
|
-
{
|
|
101
|
-
label: `${e("pregnancyWeightGain.height")} (${e("pregnancyWeightGain.units.cm")})`,
|
|
102
|
-
children: /* @__PURE__ */ a(
|
|
103
|
-
x,
|
|
104
|
-
{
|
|
105
|
-
mode: "decimal",
|
|
106
|
-
min: 0,
|
|
107
|
-
step: 0.5,
|
|
108
|
-
value: N,
|
|
109
|
-
onChange: D
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
/* @__PURE__ */ a(
|
|
115
|
-
y,
|
|
116
|
-
{
|
|
117
|
-
label: `${e("pregnancyWeightGain.prePregnancyWeight")} (${o})`,
|
|
118
|
-
children: /* @__PURE__ */ a(
|
|
119
|
-
x,
|
|
120
|
-
{
|
|
121
|
-
mode: "decimal",
|
|
122
|
-
min: 0,
|
|
123
|
-
step: 0.1,
|
|
124
|
-
value: m,
|
|
125
|
-
onChange: I
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ a(
|
|
131
|
-
y,
|
|
132
|
-
{
|
|
133
|
-
label: `${e("pregnancyWeightGain.currentWeight")} (${o})`,
|
|
134
|
-
children: /* @__PURE__ */ a(
|
|
135
|
-
x,
|
|
136
|
-
{
|
|
137
|
-
mode: "decimal",
|
|
138
|
-
min: 0,
|
|
139
|
-
step: 0.1,
|
|
140
|
-
value: g,
|
|
141
|
-
onChange: E
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
}
|
|
145
|
-
),
|
|
146
|
-
/* @__PURE__ */ a(y, { label: e("pregnancyWeightGain.gestationalWeeks"), children: /* @__PURE__ */ a(
|
|
147
|
-
x,
|
|
148
|
-
{
|
|
149
|
-
mode: "integer",
|
|
150
|
-
min: 0,
|
|
151
|
-
max: 42,
|
|
152
|
-
value: u,
|
|
153
|
-
onChange: _
|
|
154
|
-
}
|
|
155
|
-
) })
|
|
156
|
-
] }),
|
|
157
|
-
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: n ? `${e("pregnancyWeightGain.actualGain")}: ${d.format(
|
|
158
|
-
n.actualGainKg
|
|
159
|
-
)} ${o}. ${e(`pregnancyWeightGain.status.${n.status}`)}.` : "" }),
|
|
160
|
-
n ? /* @__PURE__ */ a($, { variant: "elevated", children: /* @__PURE__ */ s($.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
161
|
-
/* @__PURE__ */ s("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
162
|
-
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
163
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.prePregnancyBmi") }),
|
|
164
|
-
/* @__PURE__ */ s("dd", { className: "type-body ds:text-foreground", children: [
|
|
165
|
-
d.format(p ?? 0),
|
|
166
|
-
" ·",
|
|
167
|
-
" ",
|
|
168
|
-
e(`pregnancyWeightGain.category.${n.category}`)
|
|
169
|
-
] })
|
|
170
|
-
] }),
|
|
171
|
-
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
172
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.actualGain") }),
|
|
173
|
-
/* @__PURE__ */ s("dd", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
174
|
-
/* @__PURE__ */ s("span", { className: "type-metric ds:text-foreground", children: [
|
|
175
|
-
d.format(n.actualGainKg),
|
|
176
|
-
" ",
|
|
177
|
-
o
|
|
178
|
-
] }),
|
|
179
|
-
/* @__PURE__ */ a(C, { variant: q[n.status], size: "lg", children: e(`pregnancyWeightGain.status.${n.status}`) })
|
|
180
|
-
] })
|
|
181
|
-
] }),
|
|
182
|
-
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
183
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedToDate") }),
|
|
184
|
-
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: h(n.recommendedToDate) })
|
|
185
|
-
] }),
|
|
186
|
-
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
187
|
-
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.recommendedTotal") }),
|
|
188
|
-
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: h(n.totalRange) })
|
|
189
|
-
] })
|
|
190
|
-
] }),
|
|
191
|
-
/* @__PURE__ */ a("p", { className: "type-body-sm ds:text-muted-foreground", children: e("pregnancyWeightGain.disclaimer") }),
|
|
192
|
-
l === "copy" || i ? /* @__PURE__ */ a(
|
|
193
|
-
H,
|
|
194
|
-
{
|
|
195
|
-
onInsert: i,
|
|
196
|
-
variant: l,
|
|
197
|
-
onCopy: r,
|
|
198
|
-
onError: c,
|
|
199
|
-
card: {
|
|
200
|
-
title: e("insert.title.weightGain"),
|
|
201
|
-
icon: "baby",
|
|
202
|
-
highlight: e(`pregnancyWeightGain.status.${n.status}`),
|
|
203
|
-
// Chip shares the gain-status semantic token so the
|
|
204
|
-
// inserted PNG chip matches the on-screen status badge —
|
|
205
|
-
// with the contrast-safe orange override for the
|
|
206
|
-
// `--warning` below/above statuses.
|
|
207
|
-
highlightToken: Q(n.status),
|
|
208
|
-
brand: W,
|
|
209
|
-
fields: [
|
|
210
|
-
{
|
|
211
|
-
// Actual gain is the headline trend → trending-up glyph.
|
|
212
|
-
icon: "trending-up",
|
|
213
|
-
label: e("pregnancyWeightGain.actualGain"),
|
|
214
|
-
value: `${d.format(n.actualGainKg)} ${o}`
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
// Recommended weight band → scale glyph.
|
|
218
|
-
icon: "scale",
|
|
219
|
-
label: e("pregnancyWeightGain.recommendedToDate"),
|
|
220
|
-
value: h(n.recommendedToDate)
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
// Recommended total weight band → scale glyph.
|
|
224
|
-
icon: "scale",
|
|
225
|
-
label: e("pregnancyWeightGain.recommendedTotal"),
|
|
226
|
-
value: h(n.totalRange)
|
|
227
|
-
}
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
) : null
|
|
232
|
-
] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyWeightGain.empty") })
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
);
|
|
238
|
-
X.displayName = "PregnancyWeightGain";
|
|
239
|
-
export {
|
|
240
|
-
X as P,
|
|
241
|
-
O as R,
|
|
242
|
-
L as T,
|
|
243
|
-
z as a,
|
|
244
|
-
U as r
|
|
245
|
-
};
|
|
246
|
-
//# sourceMappingURL=pregnancy-weight-gain-BtEHaSqy.js.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { c as e } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v1.8.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const a = [
|
|
9
|
-
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
10
|
-
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
11
|
-
["path", { d: "M2 5h12", key: "or177f" }],
|
|
12
|
-
["path", { d: "M7 2h1", key: "1t2jsx" }],
|
|
13
|
-
["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
|
|
14
|
-
["path", { d: "M14 18h6", key: "1m8k6r" }]
|
|
15
|
-
], t = e("languages", a);
|
|
16
|
-
/**
|
|
17
|
-
* @license lucide-react v1.8.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/
|
|
22
|
-
const d = [
|
|
23
|
-
[
|
|
24
|
-
"path",
|
|
25
|
-
{
|
|
26
|
-
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
27
|
-
key: "oel41y"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
31
|
-
], c = e("shield-check", d);
|
|
32
|
-
export {
|
|
33
|
-
t as L,
|
|
34
|
-
c as S
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=shield-check-C73ma9Cs.js.map
|