@alfadocs/ui-kit-debug 0.25.1 → 0.30.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-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
- package/dist/_chunks/{agenda-card-BmpaUG1h.js.map → agenda-card-CznB7K8e.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
- package/dist/_chunks/{agenda-tray-DiInnVqk.js.map → agenda-tray-C_bha7oK.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-B5MdixzR.js.map → ai-prompt-input-Bka3jX3i.js.map} +1 -1
- package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
- package/dist/_chunks/alia-sidebar-CnvXq95r.js.map +1 -0
- package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
- package/dist/_chunks/{audio-recorder-D4xM3H5i.js.map → audio-recorder-OB6IV9B1.js.map} +1 -1
- package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
- package/dist/_chunks/{autocomplete-C7xq06bP.js.map → autocomplete-CUh0f7Dj.js.map} +1 -1
- package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
- package/dist/_chunks/avatar-D_H4emLo.js.map +1 -0
- package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
- package/dist/_chunks/benefit-card-CjYM8vNr.js.map +1 -0
- package/dist/_chunks/booking-BYuc_8HV.js +2250 -0
- package/dist/_chunks/booking-BYuc_8HV.js.map +1 -0
- package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-WWNx448i.js} +114 -142
- package/dist/_chunks/calendar-WWNx448i.js.map +1 -0
- package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
- package/dist/_chunks/card-DKTMLVrw.js.map +1 -0
- package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
- package/dist/_chunks/{carousel.agent-DnPiqijR.js.map → carousel.agent-C9swH-Uf.js.map} +1 -1
- package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
- package/dist/_chunks/{chat-input-B3XmFGDw.js.map → chat-input-BfDcz1Yi.js.map} +1 -1
- package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
- package/dist/_chunks/{chat-message-W3k8rLOA.js.map → chat-message-fg221-yx.js.map} +1 -1
- package/dist/_chunks/checkbox-mwbrPZDY.js.map +1 -1
- package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
- package/dist/_chunks/{command-palette-DkL-aW4O.js.map → command-palette-11BieSNq.js.map} +1 -1
- package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-DYbp--s-.js} +3 -3
- package/dist/_chunks/{contact-card-CjG7c-1q.js.map → contact-card-DYbp--s-.js.map} +1 -1
- package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
- package/dist/_chunks/{date-picker-BIoSLRly.js.map → date-picker-D0Ry1dMz.js.map} +1 -1
- package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
- package/dist/_chunks/{date-range-picker-9gANFNG9.js.map → date-range-picker-DYgHzMOo.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
- package/dist/_chunks/{date-time-picker-DG7BiGdb.js.map → date-time-picker-CGmGtcyc.js.map} +1 -1
- package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
- package/dist/_chunks/description-list-yl3y3QKg.js.map +1 -0
- package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
- package/dist/_chunks/{dialog-DUomPCRS.js.map → dialog-BBXqpZIt.js.map} +1 -1
- package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js.map → editable-currency-cell-renderer-DSReCae7.js.map} +1 -1
- package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
- package/dist/_chunks/empty-state-BLy7tigq.js.map +1 -0
- package/dist/_chunks/eye-LHlSU38h.js +21 -0
- package/dist/_chunks/eye-LHlSU38h.js.map +1 -0
- package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
- package/dist/_chunks/{freemium-paywall-CM6V1zNf.js.map → freemium-paywall-B9c8Ylww.js.map} +1 -1
- package/dist/_chunks/{header-DqmKROIY.js → header-CkMb1TZS.js} +24 -24
- package/dist/_chunks/header-CkMb1TZS.js.map +1 -0
- package/dist/_chunks/heart-pulse-CvuyFKHB.js +21 -0
- package/dist/_chunks/heart-pulse-CvuyFKHB.js.map +1 -0
- package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
- package/dist/_chunks/icon-button-BRHSSFmZ.js.map +1 -0
- package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
- package/dist/_chunks/{isSameDay-ecuM8PBB.js.map → isSameDay-DHG8Xade.js.map} +1 -1
- package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
- package/dist/_chunks/{key-value-pair-DBuOCtIc.js.map → key-value-pair-CqeKiP__.js.map} +1 -1
- package/dist/_chunks/{link-DmM5IevO.js → link-DrD_cRUg.js} +50 -45
- package/dist/_chunks/link-DrD_cRUg.js.map +1 -0
- package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
- package/dist/_chunks/locale-picker-BHxbTNmR.js.map +1 -0
- package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
- package/dist/_chunks/{map-view-CcwycFQX.js.map → map-view-DyB8tr6c.js.map} +1 -1
- package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
- package/dist/_chunks/matrix-rain-sDOUUwZp.js.map +1 -0
- package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
- package/dist/_chunks/{message-card-i61k1TGc.js.map → message-card-DjRtA8GG.js.map} +1 -1
- package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
- package/dist/_chunks/{message-tray-DrV7G-wR.js.map → message-tray-DfsAMncP.js.map} +1 -1
- package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
- package/dist/_chunks/monitor-D-SFdbrU.js.map +1 -0
- package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
- package/dist/_chunks/notification-card-B_847w5g.js.map +1 -0
- package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
- package/dist/_chunks/notification-tray-6f7smmT1.js.map +1 -0
- package/dist/_chunks/parseISO-Dk4xa7q6.js +120 -0
- package/dist/_chunks/parseISO-Dk4xa7q6.js.map +1 -0
- package/dist/_chunks/patient-search-BhlxYAI3.js +1102 -0
- package/dist/_chunks/patient-search-BhlxYAI3.js.map +1 -0
- package/dist/_chunks/patient-shell-CAXYzbRw.js +173 -0
- package/dist/_chunks/{patient-shell-B164drIa.js.map → patient-shell-CAXYzbRw.js.map} +1 -1
- package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
- package/dist/_chunks/{payment-form-F7uh0Rqr.js.map → payment-form-Ds3rxvad.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CuYaVR1I.js.map → pdf-viewer-CIuaocnq.js.map} +1 -1
- package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
- package/dist/_chunks/popover-D0slaBB9.js.map +1 -0
- package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
- package/dist/_chunks/{privacy-lock-BKsI6ReN.js.map → privacy-lock-BI4vi9Ud.js.map} +1 -1
- package/dist/_chunks/public-footer.agent-CA29gxHJ.js +516 -0
- package/dist/_chunks/public-footer.agent-CA29gxHJ.js.map +1 -0
- package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
- package/dist/_chunks/public-header.agent-5U3S9QiC.js.map +1 -0
- package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
- package/dist/_chunks/react-day-picker-D3yzgvDB.js.map +1 -0
- package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
- package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js.map → recaptcha-widget-BtBNb6tB.js.map} +1 -1
- package/dist/_chunks/reviews-panel-CFttsfuC.js +513 -0
- package/dist/_chunks/reviews-panel-CFttsfuC.js.map +1 -0
- package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
- package/dist/_chunks/{search-bar-DORSAzNt.js.map → search-bar-BRMW1-WG.js.map} +1 -1
- package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
- package/dist/_chunks/{search-input-BtEJAJHa.js.map → search-input-CIA6pPfn.js.map} +1 -1
- package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
- package/dist/_chunks/{sheet-BT0izeoI.js.map → sheet-D8M8hf8B.js.map} +1 -1
- package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js.map → sign-in-with-alfadocs-button-BI0fVonM.js.map} +1 -1
- package/dist/_chunks/slot-grid-B2zprPcv.js +387 -0
- package/dist/_chunks/slot-grid-B2zprPcv.js.map +1 -0
- package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
- package/dist/_chunks/sparkles-CuYXqQLg.js.map +1 -0
- package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
- package/dist/_chunks/spinner-CCByyvcb.js.map +1 -0
- package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
- package/dist/_chunks/stepper-accordion-BfS6lUB9.js.map +1 -0
- package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
- package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js.map +1 -0
- package/dist/_chunks/stethoscope-DT5qCW8Y.js +18 -0
- package/dist/_chunks/stethoscope-DT5qCW8Y.js.map +1 -0
- package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
- package/dist/_chunks/sun-BuXE0xUS.js.map +1 -0
- package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
- package/dist/_chunks/{task-tray-B3A2fRGR.js.map → task-tray-Bcmrrs8m.js.map} +1 -1
- package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
- package/dist/_chunks/{theme-toggle-FrotC2VI.js.map → theme-toggle-nPzb378f.js.map} +1 -1
- package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
- package/dist/_chunks/{timeline-jmd7lfDf.js.map → timeline-CR7HjZCK.js.map} +1 -1
- package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
- package/dist/_chunks/{toast.agent-32WNQ-_x.js.map → toast.agent-CTF6nIj5.js.map} +1 -1
- package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
- package/dist/_chunks/{transcript-panel-DUrjx5sa.js.map → transcript-panel-QUQ9XJmf.js.map} +1 -1
- package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
- package/dist/_chunks/use-password-requirements-E0sSfx5X.js.map +1 -0
- package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
- package/dist/_chunks/use-theme-C2dHKUAN.js.map +1 -0
- package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
- package/dist/_chunks/{workflow-map-BR6txfFX.js.map → workflow-map-BKsKdYvZ.js.map} +1 -1
- package/dist/agent-catalog.json +151 -51
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/benefit-card/benefit-card.d.ts.map +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +145 -0
- package/dist/components/booking/booking-types.d.ts.map +1 -0
- package/dist/components/booking/booking.agent.d.ts +4 -0
- package/dist/components/booking/booking.agent.d.ts.map +1 -0
- package/dist/components/booking/booking.d.ts +6 -0
- package/dist/components/booking/booking.d.ts.map +1 -0
- package/dist/components/booking/cascade.d.ts +96 -0
- package/dist/components/booking/cascade.d.ts.map +1 -0
- package/dist/components/booking/details-form.d.ts +32 -0
- package/dist/components/booking/details-form.d.ts.map +1 -0
- package/dist/components/booking/index.d.ts +5 -0
- package/dist/components/booking/index.d.ts.map +1 -0
- package/dist/components/booking/index.js +8 -0
- package/dist/components/button/icon-button.d.ts.map +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/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/checkbox/checkbox.d.ts +6 -2
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-card/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/description-list.d.ts.map +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/empty-state/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +16 -15
- package/dist/components/header-settings/index.js.map +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +7 -0
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/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/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-search/index.d.ts +4 -0
- package/dist/components/patient-search/index.d.ts.map +1 -0
- package/dist/components/patient-search/index.js +6 -0
- package/dist/components/patient-search/index.js.map +1 -0
- package/dist/components/patient-search/patient-search.agent.d.ts +4 -0
- package/dist/components/patient-search/patient-search.agent.d.ts.map +1 -0
- package/dist/components/patient-search/patient-search.d.ts +103 -0
- package/dist/components/patient-search/patient-search.d.ts.map +1 -0
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-footer/index.d.ts +6 -0
- package/dist/components/public-footer/index.d.ts.map +1 -0
- package/dist/components/public-footer/index.js +10 -0
- package/dist/components/public-footer/index.js.map +1 -0
- package/dist/components/public-footer/legal-urls.d.ts +18 -0
- package/dist/components/public-footer/legal-urls.d.ts.map +1 -0
- package/dist/components/public-footer/public-footer.agent.d.ts +4 -0
- package/dist/components/public-footer/public-footer.agent.d.ts.map +1 -0
- package/dist/components/public-footer/public-footer.d.ts +51 -0
- package/dist/components/public-footer/public-footer.d.ts.map +1 -0
- package/dist/components/public-footer/socials.d.ts +9 -0
- package/dist/components/public-footer/socials.d.ts.map +1 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts.map +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/reviews-panel/index.d.ts +4 -0
- package/dist/components/reviews-panel/index.d.ts.map +1 -0
- package/dist/components/reviews-panel/index.js +6 -0
- package/dist/components/reviews-panel/index.js.map +1 -0
- package/dist/components/reviews-panel/reviews-panel.agent.d.ts +4 -0
- package/dist/components/reviews-panel/reviews-panel.agent.d.ts.map +1 -0
- package/dist/components/reviews-panel/reviews-panel.d.ts +76 -0
- package/dist/components/reviews-panel/reviews-panel.d.ts.map +1 -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-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +4 -3
- package/dist/components/stepper-accordion/index.js.map +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-theme.d.ts.map +1 -1
- package/dist/i18n/config.js +4923 -49
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/locales/ar.d.ts +272 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/de.d.ts +272 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/el.d.ts +272 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/es.d.ts +272 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/fr.d.ts +272 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/hi.d.ts +272 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/ja.d.ts +272 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/nl.d.ts +272 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.d.ts +272 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pt.d.ts +272 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/ro.d.ts +272 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ru.d.ts +272 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/sq.d.ts +272 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sv.d.ts +272 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/tr.d.ts +272 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/zh.d.ts +272 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/resources.d.ts +544 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/index.js +364 -348
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +273 -1
- package/dist/locales/de.json +273 -1
- package/dist/locales/el.json +273 -1
- package/dist/locales/en.json +273 -1
- package/dist/locales/es.json +273 -1
- package/dist/locales/fr.json +273 -1
- package/dist/locales/hi.json +273 -1
- package/dist/locales/it.json +273 -1
- package/dist/locales/ja.json +273 -1
- package/dist/locales/nl.json +273 -1
- package/dist/locales/pl.json +273 -1
- package/dist/locales/pt.json +273 -1
- package/dist/locales/ro.json +273 -1
- package/dist/locales/ru.json +273 -1
- package/dist/locales/sq.json +273 -1
- package/dist/locales/sv.json +273 -1
- package/dist/locales/tr.json +273 -1
- package/dist/locales/zh.json +273 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/patterns/patient-shell/patient-shell.d.ts.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/alia-sidebar-CUi2UCbY.js.map +0 -1
- package/dist/_chunks/avatar-BpFohgWG.js.map +0 -1
- package/dist/_chunks/benefit-card-DXmrAyfn.js.map +0 -1
- package/dist/_chunks/calendar-zy0tUUVG.js.map +0 -1
- package/dist/_chunks/card-C353dU-H.js.map +0 -1
- package/dist/_chunks/description-list-Bsga4IW8.js.map +0 -1
- package/dist/_chunks/empty-state-3CLJIXSj.js.map +0 -1
- package/dist/_chunks/header-DqmKROIY.js.map +0 -1
- package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
- package/dist/_chunks/icon-button-C4CGcYuz.js.map +0 -1
- package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
- package/dist/_chunks/isSameMonth-5wNF2f4I.js.map +0 -1
- package/dist/_chunks/link-DmM5IevO.js.map +0 -1
- package/dist/_chunks/locale-picker-BxEUUPW7.js.map +0 -1
- package/dist/_chunks/matrix-rain-CRPMXcVx.js.map +0 -1
- package/dist/_chunks/notification-card-ejOw5g6g.js.map +0 -1
- package/dist/_chunks/notification-tray-D_69dXFY.js.map +0 -1
- package/dist/_chunks/patient-shell-B164drIa.js +0 -173
- package/dist/_chunks/popover--derJ_wq.js.map +0 -1
- package/dist/_chunks/public-header.agent-BQ3r6Hgq.js.map +0 -1
- package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
- package/dist/_chunks/react-day-picker-C5F3-TTX.js.map +0 -1
- package/dist/_chunks/slot-grid-CgpYgBkW.js +0 -502
- package/dist/_chunks/slot-grid-CgpYgBkW.js.map +0 -1
- package/dist/_chunks/spinner-DirtWZNG.js.map +0 -1
- package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
- package/dist/_chunks/stepper-C-sIpRRU.js.map +0 -1
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js.map +0 -1
- package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
- package/dist/_chunks/stepper-calendar-BLOJUE0-.js.map +0 -1
- package/dist/_chunks/sun-Eweh5fvi.js.map +0 -1
- package/dist/_chunks/use-password-requirements-C9vKBSVn.js.map +0 -1
- package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
- package/dist/_chunks/use-theme-B1cwAXJR.js.map +0 -1
- package/dist/components/stepper-calendar/index.d.ts +0 -4
- package/dist/components/stepper-calendar/index.d.ts.map +0 -1
- package/dist/components/stepper-calendar/index.js +0 -6
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts.map +0 -1
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
- package/dist/components/stepper-calendar/stepper-calendar.d.ts.map +0 -1
- /package/dist/components/{stepper-calendar → booking}/index.js.map +0 -0
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "0.
|
|
3
|
+
"packageVersion": "0.30.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -401,6 +401,46 @@
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
},
|
|
404
|
+
{
|
|
405
|
+
"kind": "component",
|
|
406
|
+
"id": "booking",
|
|
407
|
+
"capabilities": [
|
|
408
|
+
"navigate",
|
|
409
|
+
"view_change"
|
|
410
|
+
],
|
|
411
|
+
"state": [
|
|
412
|
+
{
|
|
413
|
+
"name": "variant",
|
|
414
|
+
"type": "string",
|
|
415
|
+
"description": "Active variant — one of `inline-list`, `accordion`, `calendar`, `flexible`, `progress`."
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"actions": [
|
|
419
|
+
{
|
|
420
|
+
"name": "reset",
|
|
421
|
+
"safety": "write",
|
|
422
|
+
"description": "Clear the booking value back to an empty state. Use to abandon an in-progress flow."
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"name": "goto_step",
|
|
426
|
+
"safety": "read",
|
|
427
|
+
"argsType": "{ step: 1 | 2 | 3 | 4 | 5 | 6 | 7 }",
|
|
428
|
+
"description": "Jump to the given step. Implementations may clamp to the first incomplete step if the requested one is not reachable yet."
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"domHooks": {
|
|
432
|
+
"root": {
|
|
433
|
+
"attr": "data-component",
|
|
434
|
+
"value": "booking",
|
|
435
|
+
"description": "Marks the Booking root region."
|
|
436
|
+
},
|
|
437
|
+
"instanceId": {
|
|
438
|
+
"attr": "data-component-id",
|
|
439
|
+
"sourceProp": "id",
|
|
440
|
+
"description": "Sourced from the id prop."
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
},
|
|
404
444
|
{
|
|
405
445
|
"kind": "component",
|
|
406
446
|
"id": "breadcrumb",
|
|
@@ -2394,6 +2434,45 @@
|
|
|
2394
2434
|
}
|
|
2395
2435
|
}
|
|
2396
2436
|
},
|
|
2437
|
+
{
|
|
2438
|
+
"kind": "component",
|
|
2439
|
+
"id": "patient-search",
|
|
2440
|
+
"capabilities": [
|
|
2441
|
+
"navigate",
|
|
2442
|
+
"view_change"
|
|
2443
|
+
],
|
|
2444
|
+
"state": [
|
|
2445
|
+
{
|
|
2446
|
+
"name": "variant",
|
|
2447
|
+
"type": "string",
|
|
2448
|
+
"description": "Active variant — one of `who-where`, `who-where-when`, `faceted`, `discovery`."
|
|
2449
|
+
}
|
|
2450
|
+
],
|
|
2451
|
+
"actions": [
|
|
2452
|
+
{
|
|
2453
|
+
"name": "reset",
|
|
2454
|
+
"safety": "write",
|
|
2455
|
+
"description": "Clear the current selection (WHO, WHERE, WHEN, facets, geo) via the consumer-owned onChange."
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
"name": "focus_primary",
|
|
2459
|
+
"safety": "read",
|
|
2460
|
+
"description": "Move keyboard focus to the most-relevant field for the current variant."
|
|
2461
|
+
}
|
|
2462
|
+
],
|
|
2463
|
+
"domHooks": {
|
|
2464
|
+
"root": {
|
|
2465
|
+
"attr": "data-component",
|
|
2466
|
+
"value": "patient-search",
|
|
2467
|
+
"description": "Marks the PatientSearch root region."
|
|
2468
|
+
},
|
|
2469
|
+
"instanceId": {
|
|
2470
|
+
"attr": "data-component-id",
|
|
2471
|
+
"sourceProp": "id",
|
|
2472
|
+
"description": "Sourced from the id prop."
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2397
2476
|
{
|
|
2398
2477
|
"kind": "component",
|
|
2399
2478
|
"id": "payment-form",
|
|
@@ -2622,6 +2701,38 @@
|
|
|
2622
2701
|
}
|
|
2623
2702
|
}
|
|
2624
2703
|
},
|
|
2704
|
+
{
|
|
2705
|
+
"kind": "component",
|
|
2706
|
+
"id": "public-footer",
|
|
2707
|
+
"capabilities": [
|
|
2708
|
+
"navigate"
|
|
2709
|
+
],
|
|
2710
|
+
"state": [
|
|
2711
|
+
{
|
|
2712
|
+
"name": "variant",
|
|
2713
|
+
"type": "string",
|
|
2714
|
+
"description": "Active variant — one of `minimal`, `compact`, `full`."
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"name": "legalUrls",
|
|
2718
|
+
"type": "object",
|
|
2719
|
+
"description": "Resolved legal URLs for the active locale + marketingBaseUrl + overrides: `{ privacy, terms, contacts }`."
|
|
2720
|
+
}
|
|
2721
|
+
],
|
|
2722
|
+
"actions": [],
|
|
2723
|
+
"domHooks": {
|
|
2724
|
+
"root": {
|
|
2725
|
+
"attr": "data-component",
|
|
2726
|
+
"value": "public-footer",
|
|
2727
|
+
"description": "Marks the PublicFooter root region. The root also carries `data-variant=\"minimal|compact|full\"` for CSS + agent selectors."
|
|
2728
|
+
},
|
|
2729
|
+
"instanceId": {
|
|
2730
|
+
"attr": "id",
|
|
2731
|
+
"sourceProp": "id",
|
|
2732
|
+
"description": "Sourced from the `id` prop when provided."
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2625
2736
|
{
|
|
2626
2737
|
"kind": "component",
|
|
2627
2738
|
"id": "public-header",
|
|
@@ -2801,6 +2912,45 @@
|
|
|
2801
2912
|
}
|
|
2802
2913
|
}
|
|
2803
2914
|
},
|
|
2915
|
+
{
|
|
2916
|
+
"kind": "component",
|
|
2917
|
+
"id": "reviews-panel",
|
|
2918
|
+
"capabilities": [
|
|
2919
|
+
"filter"
|
|
2920
|
+
],
|
|
2921
|
+
"state": [
|
|
2922
|
+
{
|
|
2923
|
+
"name": "filter",
|
|
2924
|
+
"type": "string",
|
|
2925
|
+
"description": "Active star-bucket filter — `\"all\"` or an integer 1..5. Reads the controlled `filter` prop."
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
"name": "visibleCount",
|
|
2929
|
+
"type": "number",
|
|
2930
|
+
"description": "Number of reviews currently rendered after the filter is applied."
|
|
2931
|
+
}
|
|
2932
|
+
],
|
|
2933
|
+
"actions": [
|
|
2934
|
+
{
|
|
2935
|
+
"name": "set_filter",
|
|
2936
|
+
"safety": "read",
|
|
2937
|
+
"argsType": "{ filter: \"all\" | 1 | 2 | 3 | 4 | 5 }",
|
|
2938
|
+
"description": "Narrow the visible review list to a star bucket, or `\"all\"` to clear the filter."
|
|
2939
|
+
}
|
|
2940
|
+
],
|
|
2941
|
+
"domHooks": {
|
|
2942
|
+
"root": {
|
|
2943
|
+
"attr": "data-component",
|
|
2944
|
+
"value": "reviews-panel",
|
|
2945
|
+
"description": "Marks the ReviewsPanel root region."
|
|
2946
|
+
},
|
|
2947
|
+
"instanceId": {
|
|
2948
|
+
"attr": "data-component-id",
|
|
2949
|
+
"sourceProp": "id",
|
|
2950
|
+
"description": "Sourced from the id prop."
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
},
|
|
2804
2954
|
{
|
|
2805
2955
|
"kind": "component",
|
|
2806
2956
|
"id": "rich-text-editor",
|
|
@@ -3396,56 +3546,6 @@
|
|
|
3396
3546
|
}
|
|
3397
3547
|
}
|
|
3398
3548
|
},
|
|
3399
|
-
{
|
|
3400
|
-
"kind": "component",
|
|
3401
|
-
"id": "stepper-calendar",
|
|
3402
|
-
"capabilities": [
|
|
3403
|
-
"navigate",
|
|
3404
|
-
"view_change"
|
|
3405
|
-
],
|
|
3406
|
-
"state": [
|
|
3407
|
-
{
|
|
3408
|
-
"name": "currentStep",
|
|
3409
|
-
"type": "number",
|
|
3410
|
-
"description": "Zero-indexed active step (0 = service, 1 = date, 2 = time, 3 = details)."
|
|
3411
|
-
},
|
|
3412
|
-
{
|
|
3413
|
-
"name": "totalSteps",
|
|
3414
|
-
"type": "number",
|
|
3415
|
-
"description": "Total number of steps in the booking flow (always 4)."
|
|
3416
|
-
}
|
|
3417
|
-
],
|
|
3418
|
-
"actions": [
|
|
3419
|
-
{
|
|
3420
|
-
"name": "goto_step",
|
|
3421
|
-
"safety": "read",
|
|
3422
|
-
"argsType": "{ step: number }",
|
|
3423
|
-
"description": "Jump to the given step. Steps beyond the first-incomplete are gated internally."
|
|
3424
|
-
},
|
|
3425
|
-
{
|
|
3426
|
-
"name": "next",
|
|
3427
|
-
"safety": "read",
|
|
3428
|
-
"description": "Advance to the next step when the current step has a valid value."
|
|
3429
|
-
},
|
|
3430
|
-
{
|
|
3431
|
-
"name": "previous",
|
|
3432
|
-
"safety": "read",
|
|
3433
|
-
"description": "Return to the previous step."
|
|
3434
|
-
}
|
|
3435
|
-
],
|
|
3436
|
-
"domHooks": {
|
|
3437
|
-
"root": {
|
|
3438
|
-
"attr": "data-component",
|
|
3439
|
-
"value": "stepper-calendar",
|
|
3440
|
-
"description": "Marks the StepperCalendar root region."
|
|
3441
|
-
},
|
|
3442
|
-
"instanceId": {
|
|
3443
|
-
"attr": "data-component-id",
|
|
3444
|
-
"sourceProp": "id",
|
|
3445
|
-
"description": "Sourced from the id prop."
|
|
3446
|
-
}
|
|
3447
|
-
}
|
|
3448
|
-
},
|
|
3449
3549
|
{
|
|
3450
3550
|
"kind": "component",
|
|
3451
3551
|
"id": "stepper-progress",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA6DlE,8HAA8H;AAC9H,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKhD;AAID,QAAA,MAAM,cAAc;;8EAiCnB,CAAC;AAIF,MAAM,WAAW,WACf,SACE,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,EAC9C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,sFAAsF;IACtF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,eAAO,MAAM,MAAM,yGAwGlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-card.d.ts","sourceRoot":"","sources":["../../../src/components/benefit-card/benefit-card.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAOf,QAAA,MAAM,YAAY,kEAOR,CAAC;AAEX,KAAK,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACjD,KAAK,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5E,KAAK,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"benefit-card.d.ts","sourceRoot":"","sources":["../../../src/components/benefit-card/benefit-card.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAOf,QAAA,MAAM,YAAY,kEAOR,CAAC;AAEX,KAAK,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACjD,KAAK,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5E,KAAK,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;AA0OxD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,cAAc,CAAC,WAAW,CAAC,EAC3B,OAAO,CACR;IACC,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,KAAK,EAAE,SAAS,CAAC;IACjB,oGAAoG;IACpG,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,yBAAyB;IACzB,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAC/C,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,uEAAuE;IACvE,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAmID,eAAO,MAAM,WAAW;;CAEtB,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type BookingVariant = 'inline-list' | 'accordion' | 'calendar' | 'flexible' | 'progress';
|
|
3
|
+
export type InsuranceType = 'private' | 'public';
|
|
4
|
+
/** Channels the patient can pick to receive the confirmation link. */
|
|
5
|
+
export type ConfirmationChannel = 'email' | 'whatsapp' | 'sms';
|
|
6
|
+
/** Fixed order — email first, then WhatsApp, then SMS. */
|
|
7
|
+
export declare const CONFIRMATION_CHANNEL_ORDER: readonly ConfirmationChannel[];
|
|
8
|
+
export interface BookingSpecialty {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
/** Optional ordering hint; falls back to array order. */
|
|
12
|
+
sequenceNumber?: number;
|
|
13
|
+
/** Restrict to operators-on-page when lockedOperatorId is set. */
|
|
14
|
+
operatorIds?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface BookingService {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
/** Minutes — required for slot fetching. */
|
|
20
|
+
durationMin: number;
|
|
21
|
+
/** Required when useSpecialties is true. */
|
|
22
|
+
specialtyId?: string;
|
|
23
|
+
/** Operators who can perform this service. */
|
|
24
|
+
operatorIds?: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface BookingOperator {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
specialtyIds?: string[];
|
|
30
|
+
appointmentBookingReasonIds?: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface BookingSlot {
|
|
33
|
+
/** Opaque unique key within `availableSlots[date]`. */
|
|
34
|
+
key: string;
|
|
35
|
+
/** HH:mm 24h — used for display. */
|
|
36
|
+
time: string;
|
|
37
|
+
available: boolean;
|
|
38
|
+
/** Opaque passthrough so the consumer can resolve operatorId / chairId
|
|
39
|
+
* / dateTime when `onSubmit` fires. */
|
|
40
|
+
meta?: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
export interface BookingDetails {
|
|
43
|
+
firstName: string;
|
|
44
|
+
lastName: string;
|
|
45
|
+
email: string;
|
|
46
|
+
mobilePhone: string;
|
|
47
|
+
privacyConsent: boolean;
|
|
48
|
+
termsConsent: boolean;
|
|
49
|
+
codiceFiscale?: string;
|
|
50
|
+
dateOfBirth?: string;
|
|
51
|
+
insuranceNumber?: string;
|
|
52
|
+
note?: string;
|
|
53
|
+
returningPatient?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Channels the patient picked for the confirmation link. Guaranteed to
|
|
56
|
+
* be a non-empty subset of the practice's enabled `confirmationChannels`
|
|
57
|
+
* when present. Omitted when only one channel is enabled (implicit —
|
|
58
|
+
* backend infers from the practice config).
|
|
59
|
+
*/
|
|
60
|
+
confirmationChannels?: ConfirmationChannel[];
|
|
61
|
+
}
|
|
62
|
+
export interface BookingValue {
|
|
63
|
+
insuranceType?: InsuranceType;
|
|
64
|
+
specialtyId?: string;
|
|
65
|
+
serviceId?: string;
|
|
66
|
+
/** May be the literal `'all'` sentinel to mean "no operator preference". */
|
|
67
|
+
operatorId?: string;
|
|
68
|
+
/** YYYY-MM-DD. */
|
|
69
|
+
date?: string;
|
|
70
|
+
/** Opaque key from `availableSlots[date]`. */
|
|
71
|
+
slotKey?: string;
|
|
72
|
+
/** Partial details — fully populated when the user is ready to submit. */
|
|
73
|
+
details?: Partial<BookingDetails>;
|
|
74
|
+
}
|
|
75
|
+
export interface BookingSubmitPayload {
|
|
76
|
+
slot: BookingSlot;
|
|
77
|
+
value: BookingValue;
|
|
78
|
+
/** Fully populated + validated (privacy + terms ticked, required fields filled). */
|
|
79
|
+
details: BookingDetails;
|
|
80
|
+
}
|
|
81
|
+
export interface BookingValidationResult {
|
|
82
|
+
valid: boolean;
|
|
83
|
+
/** Optional localised hint shown next to the field on failure. */
|
|
84
|
+
hint?: string;
|
|
85
|
+
}
|
|
86
|
+
export type BookingValidator = (value: string) => Promise<BookingValidationResult>;
|
|
87
|
+
export interface BookingHandle {
|
|
88
|
+
getVariant: () => BookingVariant;
|
|
89
|
+
/** Clear `value` back to an empty state via `onChange`. */
|
|
90
|
+
reset: () => void;
|
|
91
|
+
/**
|
|
92
|
+
* Jump to a specific step. Implementations may clamp to the first
|
|
93
|
+
* incomplete step if the requested one isn't reachable yet.
|
|
94
|
+
*/
|
|
95
|
+
goToStep: (step: 1 | 2 | 3 | 4 | 5 | 6 | 7) => void;
|
|
96
|
+
}
|
|
97
|
+
export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'aria-label' | 'onChange' | 'onSubmit'> {
|
|
98
|
+
variant?: BookingVariant;
|
|
99
|
+
country?: string;
|
|
100
|
+
useSpecialties?: boolean;
|
|
101
|
+
allowOperatorSelection?: boolean;
|
|
102
|
+
/** Pins step 4 to this operator. */
|
|
103
|
+
lockedOperatorId?: string;
|
|
104
|
+
specialties?: BookingSpecialty[];
|
|
105
|
+
services: BookingService[];
|
|
106
|
+
operators?: BookingOperator[];
|
|
107
|
+
availableDates: string[];
|
|
108
|
+
availableSlots: Record<string, BookingSlot[]>;
|
|
109
|
+
/** Server-side hint of the next free date when the current window is empty. */
|
|
110
|
+
nextAvailableDate?: string;
|
|
111
|
+
requireCodiceFiscale?: boolean;
|
|
112
|
+
requireDateOfBirth?: boolean;
|
|
113
|
+
requireInsuranceNumber?: boolean;
|
|
114
|
+
showNote?: boolean;
|
|
115
|
+
showReturningPatientFlag?: boolean;
|
|
116
|
+
privacyPolicyUrl?: string;
|
|
117
|
+
termsUrl?: string;
|
|
118
|
+
validateCodiceFiscale?: BookingValidator;
|
|
119
|
+
validateInsuranceNumber?: BookingValidator;
|
|
120
|
+
/** Default: false. Specialty auto-select on length=1 is always on. */
|
|
121
|
+
autoSelectSingleService?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Channels the practice has enabled. The picker renders one checkbox
|
|
124
|
+
* per channel; when length === 1, the picker is hidden and the single
|
|
125
|
+
* channel is implicit. Defaults to `['email']` when omitted.
|
|
126
|
+
*/
|
|
127
|
+
confirmationChannels?: ConfirmationChannel[];
|
|
128
|
+
/**
|
|
129
|
+
* Pre-checked channels. Intersected with `confirmationChannels` for
|
|
130
|
+
* safety. When omitted, the kit applies a smart default (always email;
|
|
131
|
+
* +whatsapp when mobile is plausibly filled; +sms when whatsapp isn't
|
|
132
|
+
* available).
|
|
133
|
+
*/
|
|
134
|
+
defaultConfirmationChannels?: ConfirmationChannel[];
|
|
135
|
+
value: BookingValue;
|
|
136
|
+
onChange: (next: BookingValue) => void;
|
|
137
|
+
onSubmit: (payload: BookingSubmitPayload) => void | Promise<void>;
|
|
138
|
+
loadingSlots?: boolean;
|
|
139
|
+
submitting?: boolean;
|
|
140
|
+
emptyServicesSlot?: ReactNode;
|
|
141
|
+
onboardingIncompleteSlot?: ReactNode;
|
|
142
|
+
'aria-label'?: string;
|
|
143
|
+
id?: string;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=booking-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking-types.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking.agent.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking.agent.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,aAAa,CA6CpD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BookingProps } from './booking-types';
|
|
2
|
+
export type { BookingDetails, BookingHandle, BookingOperator, BookingProps, BookingService, BookingSlot, BookingSpecialty, BookingSubmitPayload, BookingValidationResult, BookingValidator, BookingValue, BookingVariant, ConfirmationChannel, InsuranceType, } from './booking-types';
|
|
3
|
+
export { CONFIRMATION_CHANNEL_ORDER } from './booking-types';
|
|
4
|
+
export { OPERATORS_ALL } from './cascade';
|
|
5
|
+
export declare const Booking: import("react").ForwardRefExoticComponent<BookingProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//# sourceMappingURL=booking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking.d.ts","sourceRoot":"","sources":["../../../src/components/booking/booking.tsx"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EAIV,YAAY,EAOb,MAAM,iBAAiB,CAAC;AAkBzB,YAAY,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAmkD1C,eAAO,MAAM,OAAO,yGAsUnB,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { BookingOperator, BookingService, BookingSlot, BookingSpecialty, BookingValue, ConfirmationChannel, InsuranceType } from './booking-types';
|
|
2
|
+
/**
|
|
3
|
+
* Sentinel for the operator filter's "All operators" pseudo-option. Mirrors
|
|
4
|
+
* `OPERATORS_ALL = '0'` in the legacy `useBookingState.js`, but the kit
|
|
5
|
+
* uses `'all'` as the well-known string so consumers can't accidentally
|
|
6
|
+
* collide with a real operator id of `'0'`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OPERATORS_ALL: "all";
|
|
9
|
+
export interface CascadePolicy {
|
|
10
|
+
/** ISO 3166-1 alpha-2 country code. Currently only `'de'` toggles a gate. */
|
|
11
|
+
country?: string;
|
|
12
|
+
useSpecialties?: boolean;
|
|
13
|
+
allowOperatorSelection?: boolean;
|
|
14
|
+
/** When set, locks step 4 to this operator id and hides the picker. */
|
|
15
|
+
lockedOperatorId?: string;
|
|
16
|
+
/** Defaults to `false`. When true, single-service lists auto-pre-fill. */
|
|
17
|
+
autoSelectSingleService?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface CascadeInputs extends CascadePolicy {
|
|
20
|
+
specialties: BookingSpecialty[];
|
|
21
|
+
services: BookingService[];
|
|
22
|
+
operators: BookingOperator[];
|
|
23
|
+
availableDates: string[];
|
|
24
|
+
availableSlots: Record<string, BookingSlot[]>;
|
|
25
|
+
value: BookingValue;
|
|
26
|
+
}
|
|
27
|
+
export interface CascadeGates {
|
|
28
|
+
insurance: boolean;
|
|
29
|
+
specialty: boolean;
|
|
30
|
+
service: boolean;
|
|
31
|
+
operator: boolean;
|
|
32
|
+
date: boolean;
|
|
33
|
+
slot: boolean;
|
|
34
|
+
details: boolean;
|
|
35
|
+
/** True when a service is picked but no eligible operators can perform it. */
|
|
36
|
+
onboardingIncomplete: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface CascadeFiltered {
|
|
39
|
+
specialties: BookingSpecialty[];
|
|
40
|
+
services: BookingService[];
|
|
41
|
+
/**
|
|
42
|
+
* Eligible operators for the active specialty (when `useSpecialties=true`)
|
|
43
|
+
* OR the active service. Excludes the "All operators" sentinel — that's
|
|
44
|
+
* always prepended in the UI layer.
|
|
45
|
+
*/
|
|
46
|
+
operators: BookingOperator[];
|
|
47
|
+
}
|
|
48
|
+
/** Step number — 1-indexed, matches the docs / a11y order. */
|
|
49
|
+
export type CascadeStep = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
50
|
+
export interface CascadeOutputs {
|
|
51
|
+
gates: CascadeGates;
|
|
52
|
+
filtered: CascadeFiltered;
|
|
53
|
+
/** Current step: the first visible step that has an unfulfilled requirement. */
|
|
54
|
+
currentStep: CascadeStep;
|
|
55
|
+
/** Total visible steps (1..7 minus any auto-skipped). */
|
|
56
|
+
totalSteps: number;
|
|
57
|
+
/** Ordered list of the visible step indices, used by variants that show a stepper. */
|
|
58
|
+
visibleSteps: CascadeStep[];
|
|
59
|
+
/** Whether every required step is satisfied — the submit button is gated on this. */
|
|
60
|
+
isReadyToSubmit: boolean;
|
|
61
|
+
/** Selected service's duration, if any — needed for slot fetching. */
|
|
62
|
+
durationMin?: number;
|
|
63
|
+
/** Selected slot resolved from `value.date` + `value.slotKey`. */
|
|
64
|
+
selectedSlot?: BookingSlot;
|
|
65
|
+
}
|
|
66
|
+
export declare function deriveCascade(inputs: CascadeInputs): CascadeOutputs;
|
|
67
|
+
export declare function resetOnInsuranceChange(value: BookingValue, next: InsuranceType | undefined): BookingValue;
|
|
68
|
+
export declare function resetOnSpecialtyChange(value: BookingValue, next: string | undefined): BookingValue;
|
|
69
|
+
export declare function resetOnServiceChange(value: BookingValue, next: string | undefined): BookingValue;
|
|
70
|
+
export declare function resetOnOperatorChange(value: BookingValue, next: string | undefined): BookingValue;
|
|
71
|
+
export declare function resetOnDateChange(value: BookingValue, next: string | undefined): BookingValue;
|
|
72
|
+
export declare function resetOnSlotChange(value: BookingValue, next: string | undefined): BookingValue;
|
|
73
|
+
export declare function applyAutoSelects(value: BookingValue, inputs: CascadePolicy & {
|
|
74
|
+
specialties: BookingSpecialty[];
|
|
75
|
+
services: BookingService[];
|
|
76
|
+
}): BookingValue;
|
|
77
|
+
/** Resolve the active operator id, treating the `'all'` sentinel as `undefined`. */
|
|
78
|
+
export declare function resolveOperatorId(value: BookingValue): string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Resolve the effective list of enabled channels. Falls back to `['email']`
|
|
81
|
+
* when the consumer omits the prop, preserving the pre-amendment behaviour.
|
|
82
|
+
*/
|
|
83
|
+
export declare function resolveConfirmationChannels(enabled: ConfirmationChannel[] | undefined): ConfirmationChannel[];
|
|
84
|
+
/**
|
|
85
|
+
* Compute the channels to pre-check. Result is intersected with `enabled`
|
|
86
|
+
* for safety so a channel the practice didn't enable never gets ticked.
|
|
87
|
+
*
|
|
88
|
+
* Rules (per spec):
|
|
89
|
+
* 1. Always include 'email'.
|
|
90
|
+
* 2. Include 'whatsapp' if enabled AND mobile looks plausible.
|
|
91
|
+
* 3. Include 'sms' ONLY when whatsapp is NOT in `enabled`.
|
|
92
|
+
* 4. If the consumer passes `override`, honour it verbatim (still
|
|
93
|
+
* intersected with `enabled` for safety).
|
|
94
|
+
*/
|
|
95
|
+
export declare function defaultConfirmationSelection(enabled: ConfirmationChannel[] | undefined, mobile: string | undefined, override?: ConfirmationChannel[]): ConfirmationChannel[];
|
|
96
|
+
//# sourceMappingURL=cascade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cascade.d.ts","sourceRoot":"","sources":["../../../src/components/booking/cascade.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { BookingDetails, BookingValidator, ConfirmationChannel } from './booking-types';
|
|
3
|
+
export interface BookingDetailsFormProps {
|
|
4
|
+
value: Partial<BookingDetails>;
|
|
5
|
+
onChange: (next: Partial<BookingDetails>) => void;
|
|
6
|
+
onSubmit: (details: BookingDetails) => void | Promise<void>;
|
|
7
|
+
requireCodiceFiscale?: boolean;
|
|
8
|
+
requireDateOfBirth?: boolean;
|
|
9
|
+
/** When `true` AND `insuranceType === 'public'`, render the Versichertennummer field. */
|
|
10
|
+
requireInsuranceNumber?: boolean;
|
|
11
|
+
insuranceType?: 'private' | 'public';
|
|
12
|
+
showNote?: boolean;
|
|
13
|
+
showReturningPatientFlag?: boolean;
|
|
14
|
+
privacyPolicyUrl?: string;
|
|
15
|
+
termsUrl?: string;
|
|
16
|
+
validateCodiceFiscale?: BookingValidator;
|
|
17
|
+
validateInsuranceNumber?: BookingValidator;
|
|
18
|
+
submitting?: boolean;
|
|
19
|
+
/** Optional summary node rendered above the form (e.g. confirm-time chip). */
|
|
20
|
+
summarySlot?: ReactNode;
|
|
21
|
+
defaultPhoneCountry?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Channels the practice has enabled. When omitted, defaults to
|
|
24
|
+
* `['email']` (picker hidden — single implicit channel). When the
|
|
25
|
+
* resolved list has length 1 the picker stays hidden.
|
|
26
|
+
*/
|
|
27
|
+
confirmationChannels?: ConfirmationChannel[];
|
|
28
|
+
/** Pre-checked channels override; falls back to a smart default. */
|
|
29
|
+
defaultConfirmationChannels?: ConfirmationChannel[];
|
|
30
|
+
}
|
|
31
|
+
export declare const BookingDetailsForm: import("react").ForwardRefExoticComponent<BookingDetailsFormProps & import("react").RefAttributes<HTMLFormElement>>;
|
|
32
|
+
//# sourceMappingURL=details-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-form.d.ts","sourceRoot":"","sources":["../../../src/components/booking/details-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAiBf,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAqBzB,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAClD,QAAQ,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAG5D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,yFAAyF;IACzF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAGnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,qBAAqB,CAAC,EAAE,gBAAgB,CAAC;IACzC,uBAAuB,CAAC,EAAE,gBAAgB,CAAC;IAG3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,SAAS,CAAC;IAIxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAG7B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,oEAAoE;IACpE,2BAA2B,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACrD;AAaD,eAAO,MAAM,kBAAkB,qHAwjB9B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Booking } from './booking';
|
|
2
|
+
export type { BookingProps, BookingHandle, BookingVariant, BookingValue, BookingService, BookingSpecialty, BookingSlot, BookingOperator, BookingDetails, BookingSubmitPayload, BookingValidator, BookingValidationResult, ConfirmationChannel, InsuranceType, } from './booking';
|
|
3
|
+
export { CONFIRMATION_CHANNEL_ORDER, OPERATORS_ALL } from './booking';
|
|
4
|
+
export { bookingAgent } from './booking.agent';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/booking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/icon-button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/icon-button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,kBAAkB;;8EA2BvB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,WAAW,EACX,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,eAAe,CAChE,GACC,YAAY,CAAC,OAAO,kBAAkB,CAAC,GAAG;IACxC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEJ,eAAO,MAAM,UAAU;;;UAVb,KAAK,CAAC,SAAS;cACX,MAAM;mBACD,MAAM;IACrB;;;OAGG;oBACa,OAAO;qDAyD1B,CAAC"}
|