@alfadocs/ui-kit 0.64.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
- package/dist/_chunks/{ai-prompt-input-Dx8eXoPm.js → ai-prompt-input-BwEACCPm.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-JnlTqfS4.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
- package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
- package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
- package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
- package/dist/_chunks/{audio-recorder-CdXuT9ln.js → audio-recorder-DjXLP4aF.js} +2 -2
- package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
- package/dist/_chunks/{bishop-score-CzjSx-dm.js → bishop-score-x2fNqbuZ.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-C3roxbqD.js} +2 -2
- package/dist/_chunks/{booking-ChfvWy3P.js → booking-L8-YP8BJ.js} +148 -148
- package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
- package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
- package/dist/_chunks/{care-plan-card-DhZNoXs4.js → care-plan-card-D42WD4-T.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DW70yBOD.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
- package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
- package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
- package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
- package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-DrVXbIB4.js} +4 -4
- package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
- package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
- package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
- package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
- package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
- package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-D4K1BnE2.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-BQgaKFCz.js → editable-currency-cell-renderer-CFqQc56y.js} +304 -294
- package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
- package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
- package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
- package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-B_pBjlO7.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
- package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
- package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-D85E8lGN.js → gestational-age-calculator-BETQAVkA.js} +6 -6
- package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-8zXCJgAQ.js} +3 -3
- package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
- package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
- package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
- package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
- package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-DIAG3ltJ.js} +115 -136
- package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
- package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
- package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
- package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
- package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-BXfRMiRk.js} +4 -4
- package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
- package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
- package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
- package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
- package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
- package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
- package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
- package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-CF_qon7C.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
- package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
- package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
- package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
- package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
- package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
- package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
- package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-7NUaAfob.js → pregnancy-dating-BuzLTwjy.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-aicn7qs7.js} +2 -2
- package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
- package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
- package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
- package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +1190 -0
- package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
- package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
- package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
- package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
- package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
- package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
- package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
- package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
- package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
- package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
- package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
- package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
- package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
- package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
- package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
- package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
- package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
- package/dist/_chunks/{tooth-scheme-CiphQaON.js → tooth-scheme-BIx1O2aJ.js} +3 -3
- package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
- package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
- package/dist/_chunks/type-DZ5OMRA2.js +28 -0
- package/dist/_chunks/{unit-converter-BIbXHIQA.js → unit-converter-CHN2cZ4b.js} +2 -2
- package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
- package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-BX3JY1Bu.js} +3 -3
- package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
- package/dist/agent-catalog.json +32 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
- package/dist/components/editor-overlay/index.d.ts +3 -0
- package/dist/components/editor-overlay/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts +9 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -0
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.d.ts +3 -0
- package/dist/components/smart-date/index.js +5 -0
- package/dist/components/smart-date/smart-date.d.ts +32 -0
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +44 -0
- package/dist/i18n/locales/ar.js +45 -1
- package/dist/i18n/locales/de.d.ts +44 -0
- package/dist/i18n/locales/de.js +45 -1
- package/dist/i18n/locales/el.d.ts +44 -0
- package/dist/i18n/locales/el.js +45 -1
- package/dist/i18n/locales/en.d.ts +44 -0
- package/dist/i18n/locales/en.js +49 -1
- package/dist/i18n/locales/es.d.ts +44 -0
- package/dist/i18n/locales/es.js +45 -1
- package/dist/i18n/locales/fr.d.ts +44 -0
- package/dist/i18n/locales/fr.js +45 -1
- package/dist/i18n/locales/hi.d.ts +44 -0
- package/dist/i18n/locales/hi.js +45 -1
- package/dist/i18n/locales/it.d.ts +44 -0
- package/dist/i18n/locales/it.js +45 -1
- package/dist/i18n/locales/ja.d.ts +44 -0
- package/dist/i18n/locales/ja.js +45 -1
- package/dist/i18n/locales/nl.d.ts +44 -0
- package/dist/i18n/locales/nl.js +45 -1
- package/dist/i18n/locales/pl.d.ts +44 -0
- package/dist/i18n/locales/pl.js +45 -1
- package/dist/i18n/locales/pt.d.ts +44 -0
- package/dist/i18n/locales/pt.js +45 -1
- package/dist/i18n/locales/ro.d.ts +44 -0
- package/dist/i18n/locales/ro.js +45 -1
- package/dist/i18n/locales/ru.d.ts +44 -0
- package/dist/i18n/locales/ru.js +45 -1
- package/dist/i18n/locales/sq.d.ts +44 -0
- package/dist/i18n/locales/sq.js +45 -1
- package/dist/i18n/locales/sv.d.ts +44 -0
- package/dist/i18n/locales/sv.js +45 -1
- package/dist/i18n/locales/tr.d.ts +44 -0
- package/dist/i18n/locales/tr.js +45 -1
- package/dist/i18n/locales/zh.d.ts +44 -0
- package/dist/i18n/locales/zh.js +45 -1
- package/dist/index.js +494 -490
- package/dist/locales/ar.json +45 -1
- package/dist/locales/de.json +45 -1
- package/dist/locales/el.json +45 -1
- package/dist/locales/en.json +45 -1
- package/dist/locales/es.json +45 -1
- package/dist/locales/fr.json +45 -1
- package/dist/locales/hi.json +45 -1
- package/dist/locales/it.json +45 -1
- package/dist/locales/ja.json +45 -1
- package/dist/locales/nl.json +45 -1
- package/dist/locales/pl.json +45 -1
- package/dist/locales/pt.json +45 -1
- package/dist/locales/ro.json +45 -1
- package/dist/locales/ru.json +45 -1
- package/dist/locales/sq.json +45 -1
- package/dist/locales/sv.json +45 -1
- package/dist/locales/tr.json +45 -1
- package/dist/locales/zh.json +45 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +36 -22
- package/package.json +10 -1
- package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
- package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
- package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
- package/dist/_chunks/subDays-Bs00akhK.js +0 -8
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as s, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as p, useId as h, useCallback as w, useEffect as y } from "react";
|
|
3
|
+
import { useTranslation as k } from "react-i18next";
|
|
4
|
+
import { c as E } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { I as j } from "./icon-button-LqoiKcUN.js";
|
|
6
|
+
import { X as I } from "./x-CCcI3eJp.js";
|
|
7
|
+
const N = E(
|
|
8
|
+
[
|
|
9
|
+
// Spans the editor's block-end edge (a docked bar) and expands from the pill.
|
|
10
|
+
"ds:absolute ds:z-20",
|
|
11
|
+
"ds:[inset-inline-start:var(--spacing-md)] ds:[inset-inline-end:var(--spacing-md)]",
|
|
12
|
+
"ds:[inset-block-end:var(--spacing-md)]",
|
|
13
|
+
// Slim docked bar — compact but with a little breathing room.
|
|
14
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
15
|
+
"ds:p-[var(--spacing-md)]",
|
|
16
|
+
"ds:rounded-[var(--radius-lg)]",
|
|
17
|
+
// Apple "Liquid Glass": a translucent base + backdrop blur/saturate so the
|
|
18
|
+
// editor shows through, a specular top "rim" + inner hairline ring, and a
|
|
19
|
+
// soft drop shadow for a floating slab. --card-border is theme-aware (dark
|
|
20
|
+
// hairline on light themes, bright on dark), so the rim reads in all four.
|
|
21
|
+
"ds:bg-[color-mix(in_srgb,var(--popover)_64%,transparent)]",
|
|
22
|
+
"ds:backdrop-blur-xl ds:backdrop-saturate-150",
|
|
23
|
+
"ds:border ds:border-[color-mix(in_srgb,var(--card-border)_70%,transparent)]",
|
|
24
|
+
"ds:shadow-[inset_0_1px_0_0_var(--card-border),inset_0_0_0_1px_color-mix(in_srgb,var(--card-border)_35%,transparent),var(--shadow-lg)]",
|
|
25
|
+
// Liquid-glass grow out of the pill (bottom-inline-end origin).
|
|
26
|
+
"ds:origin-bottom-right ds:animate-in ds:fade-in-0 ds:zoom-in-95",
|
|
27
|
+
"ds:motion-reduce:animate-none"
|
|
28
|
+
].join(" ")
|
|
29
|
+
), z = "ds:text-[length:var(--font-size-base)] ds:font-medium ds:text-[color:var(--foreground)]";
|
|
30
|
+
function L({
|
|
31
|
+
open: n,
|
|
32
|
+
onClose: t,
|
|
33
|
+
title: a,
|
|
34
|
+
ariaLabel: v,
|
|
35
|
+
children: b,
|
|
36
|
+
footer: i,
|
|
37
|
+
className: g
|
|
38
|
+
}) {
|
|
39
|
+
const { t: x } = k(), o = p(null), c = p(null), l = h(), d = w(() => t(), [t]);
|
|
40
|
+
return y(() => {
|
|
41
|
+
if (!n) return;
|
|
42
|
+
c.current = document.activeElement;
|
|
43
|
+
const _ = window.requestAnimationFrame(() => {
|
|
44
|
+
var r, u;
|
|
45
|
+
(u = ((r = o.current) == null ? void 0 : r.querySelector(
|
|
46
|
+
'input, textarea, button, [tabindex]:not([tabindex="-1"])'
|
|
47
|
+
)) ?? o.current) == null || u.focus();
|
|
48
|
+
}), m = (e) => {
|
|
49
|
+
e.key === "Escape" && (e.stopPropagation(), d());
|
|
50
|
+
};
|
|
51
|
+
return document.addEventListener("keydown", m), () => {
|
|
52
|
+
var e, r;
|
|
53
|
+
window.cancelAnimationFrame(_), document.removeEventListener("keydown", m), (r = (e = c.current) == null ? void 0 : e.focus) == null || r.call(e);
|
|
54
|
+
};
|
|
55
|
+
}, [n, d]), n ? /* @__PURE__ */ s("div", { "data-component": "editor-overlay", children: /* @__PURE__ */ f(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
ref: o,
|
|
59
|
+
role: "dialog",
|
|
60
|
+
"aria-modal": "false",
|
|
61
|
+
"aria-labelledby": a ? l : void 0,
|
|
62
|
+
"aria-label": a ? void 0 : v,
|
|
63
|
+
tabIndex: -1,
|
|
64
|
+
className: [N(), g].filter(Boolean).join(" "),
|
|
65
|
+
children: [
|
|
66
|
+
a ? /* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
67
|
+
/* @__PURE__ */ s("div", { id: l, className: z, children: a }),
|
|
68
|
+
/* @__PURE__ */ s(
|
|
69
|
+
j,
|
|
70
|
+
{
|
|
71
|
+
size: "sm",
|
|
72
|
+
intent: "ghost",
|
|
73
|
+
icon: /* @__PURE__ */ s(I, {}),
|
|
74
|
+
"aria-label": x("common.close"),
|
|
75
|
+
onClick: d
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] }) : null,
|
|
79
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: b }),
|
|
80
|
+
i ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]", children: i }) : null
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
) }) : null;
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
L as E
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=editor-overlay-wYm22wZK.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as s, q as i, r as o, v as d } from "./date-picker-variants-DAcSLTua.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "λιγότερο από ένα δευτερόλεπτο",
|
|
@@ -93,7 +93,7 @@ const u = {
|
|
|
93
93
|
formats: m,
|
|
94
94
|
defaultWidth: "full"
|
|
95
95
|
})
|
|
96
|
-
},
|
|
96
|
+
}, b = {
|
|
97
97
|
lastWeek: (e) => {
|
|
98
98
|
switch (e.getDay()) {
|
|
99
99
|
case 6:
|
|
@@ -107,8 +107,8 @@ const u = {
|
|
|
107
107
|
tomorrow: "'αύριο στις' p",
|
|
108
108
|
nextWeek: "eeee 'στις' p",
|
|
109
109
|
other: "P"
|
|
110
|
-
},
|
|
111
|
-
const a =
|
|
110
|
+
}, w = (e, r) => {
|
|
111
|
+
const a = b[e];
|
|
112
112
|
return typeof a == "function" ? a(r) : a;
|
|
113
113
|
}, y = {
|
|
114
114
|
narrow: ["πΧ", "μΧ"],
|
|
@@ -359,7 +359,7 @@ const u = {
|
|
|
359
359
|
code: "el",
|
|
360
360
|
formatDistance: c,
|
|
361
361
|
formatLong: f,
|
|
362
|
-
formatRelative:
|
|
362
|
+
formatRelative: w,
|
|
363
363
|
localize: k,
|
|
364
364
|
match: q,
|
|
365
365
|
options: {
|
|
@@ -370,4 +370,4 @@ const u = {
|
|
|
370
370
|
export {
|
|
371
371
|
O as el
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=el-
|
|
373
|
+
//# sourceMappingURL=el-DHdMOIhL.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as d, q as o, r, v as s } from "./date-picker-variants-DAcSLTua.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de un segundo",
|
|
@@ -370,4 +370,4 @@ const m = {
|
|
|
370
370
|
export {
|
|
371
371
|
q as es
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=es-
|
|
373
|
+
//# sourceMappingURL=es-DCATCfqo.js.map
|
|
@@ -6,7 +6,7 @@ import { F as D } from "./form-field-BOm9hK35.js";
|
|
|
6
6
|
import { N as E } from "./number-input-Dj5L3pXK.js";
|
|
7
7
|
import { C as N } from "./card-DPmk26CL.js";
|
|
8
8
|
import { B as H } from "./badge-zsf5i5bH.js";
|
|
9
|
-
import { I as S } from "./insert-result-
|
|
9
|
+
import { I as S } from "./insert-result-DIAG3ltJ.js";
|
|
10
10
|
function h(l) {
|
|
11
11
|
return typeof l == "number" && Number.isFinite(l) && l > 0 ? l / 10 : null;
|
|
12
12
|
}
|
|
@@ -119,4 +119,4 @@ export {
|
|
|
119
119
|
G as F,
|
|
120
120
|
q as e
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=fetal-weight-
|
|
122
|
+
//# sourceMappingURL=fetal-weight-B_pBjlO7.js.map
|
|
@@ -6,7 +6,7 @@ import { u as We, F as Ye } from "./form-field-context-B3APVHKx.js";
|
|
|
6
6
|
import { I as ie, c as qe, a as L, b as Z } from "./input-surface-xyERuLU_.js";
|
|
7
7
|
import { c as Je } from "./compose-refs-C0k0tdqF.js";
|
|
8
8
|
import { u as Qe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
9
|
-
import { I as et } from "./icon-button-
|
|
9
|
+
import { I as et } from "./icon-button-LqoiKcUN.js";
|
|
10
10
|
import { u as tt } from "./registry-nPAVE19X.js";
|
|
11
11
|
import { c as st } from "./createLucideIcon-CrFbzy84.js";
|
|
12
12
|
import { C as ce } from "./circle-alert-ChA9opNA.js";
|
|
@@ -537,4 +537,4 @@ export {
|
|
|
537
537
|
Ut as i,
|
|
538
538
|
vt as w
|
|
539
539
|
};
|
|
540
|
-
//# sourceMappingURL=fiscal-code-input-
|
|
540
|
+
//# sourceMappingURL=fiscal-code-input-DPtqluVb.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as m, q as r, r as o, v as d } from "./date-picker-variants-DAcSLTua.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "moins d’une seconde",
|
|
@@ -335,4 +335,4 @@ const u = {
|
|
|
335
335
|
export {
|
|
336
336
|
q as fr
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=fr-
|
|
338
|
+
//# sourceMappingURL=fr-BfGEMshF.js.map
|
|
@@ -8,7 +8,7 @@ import { u as X } from "./use-controllable-state-BiY4xTzM.js";
|
|
|
8
8
|
import { u as Y } from "./registry-nPAVE19X.js";
|
|
9
9
|
import { B as I } from "./button-DD_0Xdmr.js";
|
|
10
10
|
import { P as Z } from "./progress-kzIRcdaq.js";
|
|
11
|
-
import { f as $ } from "./payment-form-
|
|
11
|
+
import { f as $ } from "./payment-form-nXocS_MX.js";
|
|
12
12
|
import { T as ee } from "./triangle-alert-CBPUIzQo.js";
|
|
13
13
|
import { C as se } from "./check-DPdL_Sm7.js";
|
|
14
14
|
const ae = {
|
|
@@ -265,4 +265,4 @@ export {
|
|
|
265
265
|
te as F,
|
|
266
266
|
ae as f
|
|
267
267
|
};
|
|
268
|
-
//# sourceMappingURL=freemium-paywall-
|
|
268
|
+
//# sourceMappingURL=freemium-paywall-CkWjv3o6.js.map
|
|
@@ -5,15 +5,15 @@ import { useTranslation as te } from "react-i18next";
|
|
|
5
5
|
import { R as i } from "./radio-TWf9Q-mp.js";
|
|
6
6
|
import { R as y } from "./radio-group-CLjK-SlK.js";
|
|
7
7
|
import { F as x } from "./form-field-BOm9hK35.js";
|
|
8
|
-
import { D as w } from "./date-picker-
|
|
8
|
+
import { D as w } from "./date-picker-oGg5BnXL.js";
|
|
9
9
|
import { S as le } from "./select-CEtRcon5.js";
|
|
10
10
|
import { S as se } from "./switch-BJ6HD3Mn.js";
|
|
11
11
|
import { C as R } from "./card-DPmk26CL.js";
|
|
12
12
|
import { B as T } from "./badge-zsf5i5bH.js";
|
|
13
|
-
import { I as ie } from "./insert-result-
|
|
14
|
-
import { c as ne, g as oe, e as re, f as de, A as ce, h as me, i as ge, G as ue } from "./antenatal-schedule-timeline-
|
|
15
|
-
import { s as he } from "./subDays-
|
|
16
|
-
import { i as pe } from "./date-picker-variants-
|
|
13
|
+
import { I as ie } from "./insert-result-DIAG3ltJ.js";
|
|
14
|
+
import { c as ne, g as oe, e as re, f as de, A as ce, h as me, i as ge, G as ue } from "./antenatal-schedule-timeline-BfzFjEyb.js";
|
|
15
|
+
import { s as he } from "./subDays-BcYv1Lxi.js";
|
|
16
|
+
import { i as pe } from "./date-picker-variants-DAcSLTua.js";
|
|
17
17
|
const fe = ae("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
18
18
|
variants: {
|
|
19
19
|
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
@@ -308,4 +308,4 @@ ve.displayName = "GestationalAgeCalculator";
|
|
|
308
308
|
export {
|
|
309
309
|
ve as G
|
|
310
310
|
};
|
|
311
|
-
//# sourceMappingURL=gestational-age-calculator-
|
|
311
|
+
//# sourceMappingURL=gestational-age-calculator-BETQAVkA.js.map
|
|
@@ -4,10 +4,10 @@ import { c as V } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as j } from "react-i18next";
|
|
5
5
|
import { F as f } from "./form-field-BOm9hK35.js";
|
|
6
6
|
import { N as L } from "./number-input-Dj5L3pXK.js";
|
|
7
|
-
import { D as M } from "./date-time-picker-
|
|
7
|
+
import { D as M } from "./date-time-picker-Ze1My59T.js";
|
|
8
8
|
import { C as _ } from "./card-DPmk26CL.js";
|
|
9
9
|
import { B as A } from "./badge-zsf5i5bH.js";
|
|
10
|
-
import { I as C } from "./insert-result-
|
|
10
|
+
import { I as C } from "./insert-result-DIAG3ltJ.js";
|
|
11
11
|
const O = 1e3 * 60 * 60, z = 35;
|
|
12
12
|
function G(D) {
|
|
13
13
|
const { hcg1: r, hcg2: s, date1: d, date2: o } = D;
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
z as M,
|
|
168
168
|
G as a
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=hcg-doubling-
|
|
170
|
+
//# sourceMappingURL=hcg-doubling-8zXCJgAQ.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as t, useRef as N, useState as k, useEffect as j } from "rea
|
|
|
3
3
|
import { c as o } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { Slot as H } from "@radix-ui/react-slot";
|
|
5
5
|
import { useTranslation as u } from "react-i18next";
|
|
6
|
-
import { I as w } from "./icon-button-
|
|
6
|
+
import { I as w } from "./icon-button-LqoiKcUN.js";
|
|
7
7
|
import { M as B } from "./menu-XRhW3_99.js";
|
|
8
8
|
const C = o(
|
|
9
9
|
[
|
|
@@ -294,4 +294,4 @@ export {
|
|
|
294
294
|
q as f,
|
|
295
295
|
D as g
|
|
296
296
|
};
|
|
297
|
-
//# sourceMappingURL=header-
|
|
297
|
+
//# sourceMappingURL=header-CNszv2WQ.js.map
|
|
@@ -2,11 +2,11 @@ import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as A, useRef as p, useImperativeHandle as C, useCallback as x, useMemo as I } from "react";
|
|
3
3
|
import { c as N } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as E } from "react-i18next";
|
|
5
|
-
import { I as o } from "./icon-button-
|
|
5
|
+
import { I as o } from "./icon-button-LqoiKcUN.js";
|
|
6
6
|
import { I as M } from "./icon-button-group-C48khLE0.js";
|
|
7
7
|
import { D as r } from "./dropdown-menu-DwwPovMZ.js";
|
|
8
8
|
import { S as R } from "./switch-BJ6HD3Mn.js";
|
|
9
|
-
import { c as v, a as H, L as _ } from "./locale-picker-
|
|
9
|
+
import { c as v, a as H, L as _ } from "./locale-picker-C9JmBht3.js";
|
|
10
10
|
import { u as O } from "./use-locale-BkCIHujH.js";
|
|
11
11
|
import { u as P } from "./use-theme-CAuo6EYT.js";
|
|
12
12
|
import { u as j } from "./registry-nPAVE19X.js";
|
|
@@ -241,4 +241,4 @@ Y.displayName = "HeaderSettings";
|
|
|
241
241
|
export {
|
|
242
242
|
Y as H
|
|
243
243
|
};
|
|
244
|
-
//# sourceMappingURL=header-settings-
|
|
244
|
+
//# sourceMappingURL=header-settings-CNOqIhoW.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as o, o as s, r, v as u } from "./date-picker-variants-DAcSLTua.js";
|
|
2
2
|
const d = {
|
|
3
3
|
locale: {
|
|
4
4
|
1: "१",
|
|
@@ -430,4 +430,4 @@ const y = {
|
|
|
430
430
|
export {
|
|
431
431
|
H as hi
|
|
432
432
|
};
|
|
433
|
-
//# sourceMappingURL=hi-
|
|
433
|
+
//# sourceMappingURL=hi-CBFRXEIm.js.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b } from "react";
|
|
3
|
+
import { B as u } from "./button-DD_0Xdmr.js";
|
|
4
|
+
import { c as p } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { T as h } from "./tooltip-DvmfrNvB.js";
|
|
6
|
+
const g = p(
|
|
7
|
+
[
|
|
8
|
+
"ds:p-0",
|
|
9
|
+
// Active-state styling when an IconButton participates in an
|
|
10
|
+
// IconButtonGroup's `toggle-single` / `toggle-multi` mode. The
|
|
11
|
+
// group sets `aria-checked="true"` (radiogroup) or
|
|
12
|
+
// `aria-pressed="true"` (toolbar/group) on the selected child;
|
|
13
|
+
// without these utility classes the selection wouldn't read at a
|
|
14
|
+
// glance — see HeaderSettings' Appearance row + ThemeToggle's
|
|
15
|
+
// split variant.
|
|
16
|
+
"ds:aria-checked:bg-muted ds:aria-checked:text-foreground",
|
|
17
|
+
"ds:aria-checked:border-primary",
|
|
18
|
+
"ds:aria-pressed:bg-muted ds:aria-pressed:text-foreground",
|
|
19
|
+
"ds:aria-pressed:border-primary"
|
|
20
|
+
].join(" "),
|
|
21
|
+
{
|
|
22
|
+
variants: {
|
|
23
|
+
size: {
|
|
24
|
+
// `sm` (32px) and `md` (40px) sit below `--min-target-size` (44/48px).
|
|
25
|
+
// IconButton overrides Button's `size` variant, so it doesn't inherit
|
|
26
|
+
// Button's touch-target `::before`. Re-add it here for the under-target
|
|
27
|
+
// sizes: a transparent pseudo-element expands the *hit area* to
|
|
28
|
+
// `--min-target-size` on touch / small screens, then is hidden from the
|
|
29
|
+
// `sm:` breakpoint up (desktop pointer input keeps the compact box, so
|
|
30
|
+
// there's no visual/layout change on the desktop Chromatic baselines).
|
|
31
|
+
// `lg` (48px) already clears the target, so it needs no expansion.
|
|
32
|
+
sm: 'ds:w-8 ds:h-8 ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:hidden',
|
|
33
|
+
md: 'ds:w-10 ds:h-10 ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:hidden',
|
|
34
|
+
lg: "ds:w-12 ds:h-12"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
size: "md"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
), x = b(
|
|
42
|
+
({
|
|
43
|
+
icon: d,
|
|
44
|
+
size: e,
|
|
45
|
+
intent: i = "outline",
|
|
46
|
+
className: n,
|
|
47
|
+
tooltip: s,
|
|
48
|
+
flipIconInRtl: o = !1,
|
|
49
|
+
...a
|
|
50
|
+
}, c) => {
|
|
51
|
+
const m = a["aria-label"] || s, l = e === "sm" ? "ds:size-4" : e === "lg" ? "ds:size-5" : "ds:size-[18px]", f = o ? "ds:rtl:rotate-180" : "", t = /* @__PURE__ */ r(
|
|
52
|
+
u,
|
|
53
|
+
{
|
|
54
|
+
ref: c,
|
|
55
|
+
size: e,
|
|
56
|
+
intent: i,
|
|
57
|
+
className: g({ size: e, className: n }),
|
|
58
|
+
"aria-label": m,
|
|
59
|
+
"data-component": "icon-button",
|
|
60
|
+
...a,
|
|
61
|
+
children: /* @__PURE__ */ r(
|
|
62
|
+
"span",
|
|
63
|
+
{
|
|
64
|
+
"aria-hidden": "true",
|
|
65
|
+
className: `ds:inline-flex ds:items-center ds:justify-center ${l} ${f}`.trim(),
|
|
66
|
+
children: d
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
return s ? /* @__PURE__ */ r(h, { label: s, children: t }) : t;
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
x.displayName = "IconButton";
|
|
75
|
+
export {
|
|
76
|
+
x as I
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=icon-button-LqoiKcUN.js.map
|