@alfadocs/ui-kit 0.63.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
- package/dist/_chunks/{ai-prompt-input-C6sCr1Vi.js → ai-prompt-input-BwEACCPm.js} +3 -3
- package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-JnlTqfS4.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
- package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
- package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
- package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
- package/dist/_chunks/{audio-recorder-D6OVfNiZ.js → audio-recorder-DjXLP4aF.js} +3 -3
- package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
- package/dist/_chunks/{bishop-score-B9tvgoIq.js → bishop-score-x2fNqbuZ.js} +3 -3
- package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-C3roxbqD.js} +2 -2
- package/dist/_chunks/{booking-BUV9fspj.js → booking-L8-YP8BJ.js} +149 -149
- package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
- package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
- package/dist/_chunks/{care-plan-card-QmNpGggC.js → care-plan-card-D42WD4-T.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-Cnra7vUc.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
- package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
- package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
- package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
- package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-DrVXbIB4.js} +4 -4
- package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
- package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
- package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
- package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
- package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
- package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-D4K1BnE2.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-D5C5tCfu.js → editable-currency-cell-renderer-CFqQc56y.js} +305 -295
- package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
- package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
- package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
- package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-B_pBjlO7.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
- package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
- package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-AkNFfZYs.js → gestational-age-calculator-BETQAVkA.js} +7 -7
- package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-8zXCJgAQ.js} +3 -3
- package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
- package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
- package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
- package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
- package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-DIAG3ltJ.js} +115 -136
- package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
- package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
- package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
- package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
- package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-BXfRMiRk.js} +4 -4
- package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
- package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
- package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
- package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
- package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
- package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
- package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
- package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-CF_qon7C.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
- package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
- package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
- package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
- package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
- package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
- package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
- package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-Dg6dTe1p.js → pregnancy-dating-BuzLTwjy.js} +7 -7
- package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-aicn7qs7.js} +2 -2
- package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
- package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
- package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
- package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +1190 -0
- package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
- package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
- package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
- package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
- package/dist/_chunks/{select-hsCaJSX3.js → select-CEtRcon5.js} +46 -45
- package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
- package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
- package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
- package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
- package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
- package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
- package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
- package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
- package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
- package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
- package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
- package/dist/_chunks/{tabs-BpPYVme_.js → tabs-BIQ0ew1T.js} +2 -2
- package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
- package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
- package/dist/_chunks/tooth-scheme-BIx1O2aJ.js +1257 -0
- package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
- package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
- package/dist/_chunks/type-DZ5OMRA2.js +28 -0
- package/dist/_chunks/{unit-converter-3sINXO3m.js → unit-converter-CHN2cZ4b.js} +3 -3
- package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
- package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-BX3JY1Bu.js} +3 -3
- package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
- package/dist/agent-catalog.json +72 -4
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
- package/dist/components/editor-overlay/index.d.ts +3 -0
- package/dist/components/editor-overlay/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts +9 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -0
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.d.ts +3 -0
- package/dist/components/smart-date/index.js +5 -0
- package/dist/components/smart-date/smart-date.d.ts +32 -0
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.js +22 -15
- package/dist/components/tooth-scheme/tooth-data.d.ts +79 -18
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -0
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +48 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +61 -0
- package/dist/i18n/locales/ar.js +63 -2
- package/dist/i18n/locales/de.d.ts +61 -0
- package/dist/i18n/locales/de.js +63 -2
- package/dist/i18n/locales/el.d.ts +61 -0
- package/dist/i18n/locales/el.js +63 -2
- package/dist/i18n/locales/en.d.ts +61 -0
- package/dist/i18n/locales/en.js +67 -2
- package/dist/i18n/locales/es.d.ts +61 -0
- package/dist/i18n/locales/es.js +63 -2
- package/dist/i18n/locales/fr.d.ts +61 -0
- package/dist/i18n/locales/fr.js +63 -2
- package/dist/i18n/locales/hi.d.ts +61 -0
- package/dist/i18n/locales/hi.js +63 -2
- package/dist/i18n/locales/it.d.ts +61 -0
- package/dist/i18n/locales/it.js +63 -2
- package/dist/i18n/locales/ja.d.ts +61 -0
- package/dist/i18n/locales/ja.js +63 -2
- package/dist/i18n/locales/nl.d.ts +61 -0
- package/dist/i18n/locales/nl.js +63 -2
- package/dist/i18n/locales/pl.d.ts +61 -0
- package/dist/i18n/locales/pl.js +63 -2
- package/dist/i18n/locales/pt.d.ts +61 -0
- package/dist/i18n/locales/pt.js +63 -2
- package/dist/i18n/locales/ro.d.ts +61 -0
- package/dist/i18n/locales/ro.js +63 -2
- package/dist/i18n/locales/ru.d.ts +61 -0
- package/dist/i18n/locales/ru.js +63 -2
- package/dist/i18n/locales/sq.d.ts +61 -0
- package/dist/i18n/locales/sq.js +63 -2
- package/dist/i18n/locales/sv.d.ts +61 -0
- package/dist/i18n/locales/sv.js +63 -2
- package/dist/i18n/locales/tr.d.ts +61 -0
- package/dist/i18n/locales/tr.js +63 -2
- package/dist/i18n/locales/zh.d.ts +61 -0
- package/dist/i18n/locales/zh.js +63 -2
- package/dist/index.js +511 -500
- package/dist/locales/ar.json +63 -2
- package/dist/locales/de.json +63 -2
- package/dist/locales/el.json +63 -2
- package/dist/locales/en.json +63 -2
- package/dist/locales/es.json +63 -2
- package/dist/locales/fr.json +63 -2
- package/dist/locales/hi.json +63 -2
- package/dist/locales/it.json +63 -2
- package/dist/locales/ja.json +63 -2
- package/dist/locales/nl.json +63 -2
- package/dist/locales/pl.json +63 -2
- package/dist/locales/pt.json +63 -2
- package/dist/locales/ro.json +63 -2
- package/dist/locales/ru.json +63 -2
- package/dist/locales/sq.json +63 -2
- package/dist/locales/sv.json +63 -2
- package/dist/locales/tr.json +63 -2
- package/dist/locales/zh.json +63 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +36 -22
- package/package.json +10 -1
- package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
- package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
- package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
- package/dist/_chunks/subDays-Bs00akhK.js +0 -8
- package/dist/_chunks/tooth-scheme-CxlsLjfN.js +0 -753
|
@@ -4,9 +4,10 @@ import { useTranslation as ee } from "react-i18next";
|
|
|
4
4
|
import * as f from "@radix-ui/react-popover";
|
|
5
5
|
import { u as te } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
6
|
import { u as ae } from "./form-field-context-B3APVHKx.js";
|
|
7
|
-
import { b as ne, u as re, g as se, c as oe, e as T, s as W, d as ie, f as de, h as v, j as ce,
|
|
8
|
-
import { s as R } from "./subDays-
|
|
9
|
-
import { u as
|
|
7
|
+
import { b as ne, u as re, g as se, c as oe, e as T, s as W, d as ie, f as de, h as v, j as ce, k as le, t as pe, p as ge, D as ue, C as me, l as fe, m as he } from "./date-picker-variants-DAcSLTua.js";
|
|
8
|
+
import { s as R } from "./subDays-BcYv1Lxi.js";
|
|
9
|
+
import { u as ke } from "./registry-nPAVE19X.js";
|
|
10
|
+
import { C as ye } from "./calendar-B6soK1Yb.js";
|
|
10
11
|
function be(a, s, i) {
|
|
11
12
|
return ne(a, -1, i);
|
|
12
13
|
}
|
|
@@ -92,20 +93,20 @@ const ve = {
|
|
|
92
93
|
mergePresets: K = !1,
|
|
93
94
|
size: D = "md",
|
|
94
95
|
disabled: F,
|
|
95
|
-
placeholder:
|
|
96
|
-
className:
|
|
96
|
+
placeholder: j,
|
|
97
|
+
className: L,
|
|
97
98
|
id: A
|
|
98
99
|
}, B) => {
|
|
99
|
-
const { t: r, i18n:
|
|
100
|
+
const { t: r, i18n: w } = ee(), c = ae(), k = A ?? c.id, P = c.disabled || F, H = c.invalid ? "error" : "default", o = re(w.language), y = se(w.language), _ = j ?? r("inputs.dateRangePicker.placeholder", "Select date range"), [$, C] = te({
|
|
100
101
|
value: a,
|
|
101
102
|
defaultValue: s ?? {},
|
|
102
103
|
onChange: i
|
|
103
|
-
}), t = $ ?? {}, [p, g] = I(!1), [Y,
|
|
104
|
+
}), t = $ ?? {}, [p, g] = I(!1), [Y, x] = I(t.from ?? /* @__PURE__ */ new Date()), q = U(null), d = X(
|
|
104
105
|
(e) => {
|
|
105
106
|
C(e);
|
|
106
107
|
},
|
|
107
108
|
[C]
|
|
108
|
-
), E = oe(l, V),
|
|
109
|
+
), E = oe(l, V), O = [
|
|
109
110
|
{
|
|
110
111
|
label: r("inputs.dateRangePicker.presets.today", "Today"),
|
|
111
112
|
range: () => {
|
|
@@ -158,11 +159,11 @@ const ve = {
|
|
|
158
159
|
to: /* @__PURE__ */ new Date()
|
|
159
160
|
})
|
|
160
161
|
}
|
|
161
|
-
], S = h ? K ? [...
|
|
162
|
+
], S = h ? K ? [...O, ...h] : h : O, G = (e) => {
|
|
162
163
|
d(e ? { from: e.from, to: e.to } : {});
|
|
163
164
|
}, J = (e) => {
|
|
164
165
|
const u = e.range();
|
|
165
|
-
d(u),
|
|
166
|
+
d(u), x(u.from), g(!1);
|
|
166
167
|
}, N = (() => {
|
|
167
168
|
if (t.from && t.to) {
|
|
168
169
|
const e = v(t.from, y, { locale: o }), u = v(t.to, y, { locale: o });
|
|
@@ -188,30 +189,38 @@ const ve = {
|
|
|
188
189
|
}),
|
|
189
190
|
[t, d, p]
|
|
190
191
|
);
|
|
191
|
-
return z(B, () => b, [b]),
|
|
192
|
+
return z(B, () => b, [b]), ke(ve, b, k), /* @__PURE__ */ n(f.Root, { open: p, onOpenChange: g, children: /* @__PURE__ */ m(
|
|
192
193
|
"div",
|
|
193
194
|
{
|
|
194
|
-
className:
|
|
195
|
+
className: L,
|
|
195
196
|
"data-component": "date-range-picker",
|
|
196
197
|
"data-component-id": k,
|
|
197
198
|
children: [
|
|
198
|
-
/* @__PURE__ */ n(f.Trigger, { asChild: !0, disabled:
|
|
199
|
+
/* @__PURE__ */ n(f.Trigger, { asChild: !0, disabled: P, children: /* @__PURE__ */ m(
|
|
199
200
|
"button",
|
|
200
201
|
{
|
|
201
202
|
ref: q,
|
|
202
203
|
id: k,
|
|
203
204
|
type: "button",
|
|
204
|
-
disabled:
|
|
205
|
+
disabled: P,
|
|
205
206
|
"aria-describedby": c.describedBy || void 0,
|
|
206
207
|
"aria-invalid": c.invalid || void 0,
|
|
207
208
|
"aria-haspopup": "dialog",
|
|
208
209
|
"aria-expanded": p,
|
|
209
|
-
className:
|
|
210
|
+
className: pe({ size: D, tone: H }),
|
|
210
211
|
children: [
|
|
211
212
|
/* @__PURE__ */ n(
|
|
212
213
|
"span",
|
|
213
214
|
{
|
|
214
|
-
className:
|
|
215
|
+
className: [
|
|
216
|
+
// Truncate so a long value/placeholder ellipsises instead of
|
|
217
|
+
// running under the absolutely-positioned calendar icon (the
|
|
218
|
+
// trigger reserves the icon's space via `pe-10`). `min-w-0`
|
|
219
|
+
// lets the flex child shrink below its content width so
|
|
220
|
+
// `truncate` engages.
|
|
221
|
+
"ds:min-w-0 ds:flex-1 ds:truncate ds:text-start",
|
|
222
|
+
N ? "ds:text-foreground" : "ds:text-muted-foreground"
|
|
223
|
+
].join(" "),
|
|
215
224
|
children: N || _
|
|
216
225
|
}
|
|
217
226
|
),
|
|
@@ -219,8 +228,8 @@ const ve = {
|
|
|
219
228
|
"span",
|
|
220
229
|
{
|
|
221
230
|
"aria-hidden": "true",
|
|
222
|
-
className:
|
|
223
|
-
children: /* @__PURE__ */ n(
|
|
231
|
+
className: le({ size: D }),
|
|
232
|
+
children: /* @__PURE__ */ n(ye, {})
|
|
224
233
|
}
|
|
225
234
|
)
|
|
226
235
|
]
|
|
@@ -231,35 +240,35 @@ const ve = {
|
|
|
231
240
|
{
|
|
232
241
|
sideOffset: 4,
|
|
233
242
|
align: "start",
|
|
234
|
-
className:
|
|
243
|
+
className: he(),
|
|
235
244
|
children: /* @__PURE__ */ m("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
|
|
236
245
|
S.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: S.map((e) => /* @__PURE__ */ n(
|
|
237
246
|
"button",
|
|
238
247
|
{
|
|
239
248
|
type: "button",
|
|
240
249
|
onClick: () => J(e),
|
|
241
|
-
className:
|
|
250
|
+
className: ge(),
|
|
242
251
|
children: e.label
|
|
243
252
|
},
|
|
244
253
|
e.label
|
|
245
254
|
)) }) : null,
|
|
246
255
|
/* @__PURE__ */ m("div", { children: [
|
|
247
256
|
/* @__PURE__ */ n(
|
|
248
|
-
|
|
257
|
+
ue,
|
|
249
258
|
{
|
|
250
259
|
mode: "range",
|
|
251
260
|
selected: t.from ? { from: t.from, to: t.to } : void 0,
|
|
252
261
|
onSelect: G,
|
|
253
262
|
month: Y,
|
|
254
|
-
onMonthChange:
|
|
263
|
+
onMonthChange: x,
|
|
255
264
|
numberOfMonths: 2,
|
|
256
265
|
disabled: E,
|
|
257
266
|
locale: o,
|
|
258
267
|
showOutsideDays: !0,
|
|
259
268
|
fixedWeeks: !0,
|
|
260
269
|
pagedNavigation: !0,
|
|
261
|
-
classNames:
|
|
262
|
-
components: { Chevron:
|
|
270
|
+
classNames: fe,
|
|
271
|
+
components: { Chevron: me }
|
|
263
272
|
}
|
|
264
273
|
),
|
|
265
274
|
M ? /* @__PURE__ */ n(
|
|
@@ -285,4 +294,4 @@ export {
|
|
|
285
294
|
Re as D,
|
|
286
295
|
ve as d
|
|
287
296
|
};
|
|
288
|
-
//# sourceMappingURL=date-range-picker-
|
|
297
|
+
//# sourceMappingURL=date-range-picker-C5BWfH_T.js.map
|
|
@@ -6,8 +6,9 @@ import * as k from "@radix-ui/react-popover";
|
|
|
6
6
|
import { u as me } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
7
|
import { u as pe } from "./form-field-context-B3APVHKx.js";
|
|
8
8
|
import { T as fe } from "./time-picker-B5umYwfv.js";
|
|
9
|
-
import { u as ge, c as he,
|
|
10
|
-
import { u as
|
|
9
|
+
import { u as ge, c as he, n as ve, i as be, h as ye, k as Te, t as ke, D as we, C as Ce, l as De, m as Pe } from "./date-picker-variants-DAcSLTua.js";
|
|
10
|
+
import { u as xe } from "./registry-nPAVE19X.js";
|
|
11
|
+
import { C as Oe } from "./calendar-B6soK1Yb.js";
|
|
11
12
|
import { t as B } from "./isSameDay-DUEiAT0G.js";
|
|
12
13
|
function K(e, t, r) {
|
|
13
14
|
const i = B(e, r == null ? void 0 : r.in);
|
|
@@ -142,14 +143,14 @@ const Se = ce(
|
|
|
142
143
|
className: E,
|
|
143
144
|
id: U
|
|
144
145
|
}, W) => {
|
|
145
|
-
const { t: l, i18n: N } = ue(), c = pe(),
|
|
146
|
+
const { t: l, i18n: N } = ue(), c = pe(), C = U ?? c.id, M = c.disabled || _, q = c.invalid ? "error" : "default", V = ge(N.language), G = z ?? l("inputs.dateTimePicker.placeholder", "Select date and time"), J = l("inputs.dateTimePicker.apply", "Apply"), Q = l(
|
|
146
147
|
"inputs.dateTimePicker.outOfRange",
|
|
147
148
|
"Date/time is out of allowed range"
|
|
148
149
|
), S = (w !== void 0 ? w : Ve(i)) ? Me(N.language, i) : "", [X, I] = me({
|
|
149
150
|
value: e,
|
|
150
151
|
defaultValue: t,
|
|
151
152
|
onChange: r
|
|
152
|
-
}), n = X, [o, g] = T(n), [h, v] = T(!1), [Y,
|
|
153
|
+
}), n = X, [o, g] = T(n), [h, v] = T(!1), [Y, D] = T(n ?? /* @__PURE__ */ new Date()), [R, u] = T(!1), L = oe(null), b = F(
|
|
153
154
|
(a) => {
|
|
154
155
|
I(a);
|
|
155
156
|
},
|
|
@@ -158,7 +159,7 @@ const Se = ce(
|
|
|
158
159
|
(a) => !(d && ve(a, d) || p && be(a, p)),
|
|
159
160
|
[d, p]
|
|
160
161
|
), ee = (a) => {
|
|
161
|
-
a && (g(n ?? /* @__PURE__ */ new Date()),
|
|
162
|
+
a && (g(n ?? /* @__PURE__ */ new Date()), D(n ?? /* @__PURE__ */ new Date()), u(!1)), v(a);
|
|
162
163
|
}, te = (a) => {
|
|
163
164
|
if (!a) return;
|
|
164
165
|
const O = o ?? /* @__PURE__ */ new Date(), m = A(
|
|
@@ -186,31 +187,31 @@ const Se = ce(
|
|
|
186
187
|
isOpen: () => h,
|
|
187
188
|
// Mirror the trigger's open behaviour so draft state seeds correctly.
|
|
188
189
|
open: () => {
|
|
189
|
-
g(n ?? /* @__PURE__ */ new Date()),
|
|
190
|
+
g(n ?? /* @__PURE__ */ new Date()), D(n ?? /* @__PURE__ */ new Date()), u(!1), v(!0);
|
|
190
191
|
},
|
|
191
192
|
close: () => v(!1)
|
|
192
193
|
}),
|
|
193
194
|
[n, b, h]
|
|
194
195
|
);
|
|
195
|
-
return le(W, () => x, [x]),
|
|
196
|
+
return le(W, () => x, [x]), xe(Ne, x, C), /* @__PURE__ */ s(k.Root, { open: h, onOpenChange: ee, children: /* @__PURE__ */ y(
|
|
196
197
|
"div",
|
|
197
198
|
{
|
|
198
199
|
className: E,
|
|
199
200
|
"data-component": "date-time-picker",
|
|
200
|
-
"data-component-id":
|
|
201
|
+
"data-component-id": C,
|
|
201
202
|
children: [
|
|
202
203
|
/* @__PURE__ */ s(k.Trigger, { asChild: !0, disabled: M, children: /* @__PURE__ */ y(
|
|
203
204
|
"button",
|
|
204
205
|
{
|
|
205
206
|
ref: L,
|
|
206
|
-
id:
|
|
207
|
+
id: C,
|
|
207
208
|
type: "button",
|
|
208
209
|
disabled: M,
|
|
209
210
|
"aria-describedby": c.describedBy || void 0,
|
|
210
211
|
"aria-invalid": c.invalid || void 0,
|
|
211
212
|
"aria-haspopup": "dialog",
|
|
212
213
|
"aria-expanded": h,
|
|
213
|
-
className:
|
|
214
|
+
className: ke({ size: f, tone: q }),
|
|
214
215
|
children: [
|
|
215
216
|
/* @__PURE__ */ s(
|
|
216
217
|
"span",
|
|
@@ -223,8 +224,8 @@ const Se = ce(
|
|
|
223
224
|
"span",
|
|
224
225
|
{
|
|
225
226
|
"aria-hidden": "true",
|
|
226
|
-
className:
|
|
227
|
-
children: /* @__PURE__ */ s(
|
|
227
|
+
className: Te({ size: f }),
|
|
228
|
+
children: /* @__PURE__ */ s(Oe, {})
|
|
228
229
|
}
|
|
229
230
|
)
|
|
230
231
|
]
|
|
@@ -235,21 +236,21 @@ const Se = ce(
|
|
|
235
236
|
{
|
|
236
237
|
sideOffset: 4,
|
|
237
238
|
align: "start",
|
|
238
|
-
className:
|
|
239
|
+
className: Pe(),
|
|
239
240
|
children: /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:sm:flex-row ds:gap-[var(--spacing-md)]", children: [
|
|
240
241
|
/* @__PURE__ */ s("div", { role: "region", "aria-label": re, children: /* @__PURE__ */ s(
|
|
241
|
-
|
|
242
|
+
we,
|
|
242
243
|
{
|
|
243
244
|
mode: "single",
|
|
244
245
|
selected: o,
|
|
245
246
|
onSelect: te,
|
|
246
247
|
month: Y,
|
|
247
|
-
onMonthChange:
|
|
248
|
+
onMonthChange: D,
|
|
248
249
|
disabled: $,
|
|
249
250
|
locale: V,
|
|
250
251
|
showOutsideDays: !0,
|
|
251
252
|
fixedWeeks: !0,
|
|
252
|
-
classNames:
|
|
253
|
+
classNames: De,
|
|
253
254
|
components: { Chevron: Ce }
|
|
254
255
|
}
|
|
255
256
|
) }),
|
|
@@ -308,4 +309,4 @@ export {
|
|
|
308
309
|
Ie as D,
|
|
309
310
|
Ne as d
|
|
310
311
|
};
|
|
311
|
-
//# sourceMappingURL=date-time-picker-
|
|
312
|
+
//# sourceMappingURL=date-time-picker-Ze1My59T.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as s, q as n, r as o, v as u } from "./date-picker-variants-DAcSLTua.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
standalone: {
|
|
@@ -474,4 +474,4 @@ const d = {
|
|
|
474
474
|
export {
|
|
475
475
|
O as de
|
|
476
476
|
};
|
|
477
|
-
//# sourceMappingURL=de-
|
|
477
|
+
//# sourceMappingURL=de-CrJs4ZsX.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as V } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as c, useMemo as x, Children as C, isValidElement as T, useContext as R, useState as b, useCallback as j, createContext as P } from "react";
|
|
3
3
|
import { c as m } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
5
|
-
import { I as A } from "./icon-button-
|
|
5
|
+
import { I as A } from "./icon-button-LqoiKcUN.js";
|
|
6
6
|
import { C as S } from "./check-DPdL_Sm7.js";
|
|
7
7
|
import { C as B } from "./copy-B00HK7tj.js";
|
|
8
8
|
function E(s) {
|
|
@@ -316,4 +316,4 @@ const Z = Object.assign(k, {
|
|
|
316
316
|
export {
|
|
317
317
|
Z as D
|
|
318
318
|
};
|
|
319
|
-
//# sourceMappingURL=description-list-
|
|
319
|
+
//# sourceMappingURL=description-list-gkNGWk5G.js.map
|
|
@@ -5,12 +5,12 @@ import { useTranslation as W } from "react-i18next";
|
|
|
5
5
|
import { R as m } from "./radio-TWf9Q-mp.js";
|
|
6
6
|
import { R as T } from "./radio-group-CLjK-SlK.js";
|
|
7
7
|
import { F as g } from "./form-field-BOm9hK35.js";
|
|
8
|
-
import { D as b } from "./date-picker-
|
|
8
|
+
import { D as b } from "./date-picker-oGg5BnXL.js";
|
|
9
9
|
import { N as S } from "./number-input-Dj5L3pXK.js";
|
|
10
10
|
import { C as k } from "./card-DPmk26CL.js";
|
|
11
11
|
import { B } from "./badge-zsf5i5bH.js";
|
|
12
|
-
import { I as X } from "./insert-result-
|
|
13
|
-
import { D as y, r as Z, c as ee, e as ae, f as te, A as le, h as re, i as se } from "./antenatal-schedule-timeline-
|
|
12
|
+
import { I as X } from "./insert-result-DIAG3ltJ.js";
|
|
13
|
+
import { D as y, r as Z, c as ee, e as ae, f as te, A as le, h as re, i as se } from "./antenatal-schedule-timeline-BfzFjEyb.js";
|
|
14
14
|
const de = Q("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
15
15
|
variants: {
|
|
16
16
|
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
@@ -253,4 +253,4 @@ ce.displayName = "DueDateCalculator";
|
|
|
253
253
|
export {
|
|
254
254
|
ce as D
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=due-date-calculator-
|
|
256
|
+
//# sourceMappingURL=due-date-calculator-D4K1BnE2.js.map
|