@alfadocs/ui-kit 1.115.0 → 1.117.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/accessible-target-D3j6F-AG.js +7 -0
- package/dist/_chunks/{actions-cell-renderer-bI27uXXC.js → actions-cell-renderer-DTaIQKp9.js} +3 -3
- package/dist/_chunks/{address-autocomplete-DC-H-MZw.js → address-autocomplete-Bnc9ieKO.js} +2 -2
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-RIaGnpnm.js} +4 -4
- package/dist/_chunks/{anamnesis-card-Ddnrdfx3.js → anamnesis-card-sUFT0dpF.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-S1H_AARG.js → anamnesis-summary-card-BtFPpegp.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-BbAREK-3.js} +7 -7
- package/dist/_chunks/{antenatal-schedule-timeline-va9zx7tJ.js → antenatal-schedule-timeline-86YVlMYJ.js} +2 -2
- package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-0PebvrOS.js} +3 -3
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-DdUhqfEi.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-CC7nmBOH.js} +3 -3
- package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-B04zKY7g.js} +2 -2
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-DPjab0eJ.js} +6 -6
- package/dist/_chunks/bill-line-table-vCnVo7_a.js +1565 -0
- package/dist/_chunks/{bishop-score-QJu-sM1y.js → bishop-score-CKztphVz.js} +2 -2
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-rri5vvMt.js} +3 -3
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-B2MJo0Se.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-BEmBcb61.js} +18 -18
- package/dist/_chunks/{card-DVO3x8E-.js → card-n6W6LW-N.js} +78 -47
- package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-bGTIliXc.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-cdojypxu.js} +3 -3
- package/dist/_chunks/{chart-DebrFZ6L.js → chart-Aue_2dMb.js} +2 -2
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/{clinical-note-card-Zz5_GEz-.js → clinical-note-card-DHn5W_bv.js} +2 -2
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
- package/dist/_chunks/{connection-status-DjarASoU.js → connection-status-DWClakYw.js} +2 -2
- package/dist/_chunks/{contact-card-Cv-Nwvac.js → contact-card-CGpbYuxl.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BubJPyRB.js} +3 -3
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-C8nWAeTk.js} +3 -3
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-CaxgaEgI.js} +2 -2
- package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-DiBSbN2Y.js} +3017 -3106
- package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
- package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-DhYx-hCD.js} +101 -100
- package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-CT6nXjRM.js} +7 -7
- package/dist/_chunks/default-tabs-CD285u0C.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-BWDTCEHI.js} +3 -3
- package/dist/_chunks/dropdown-menu-Dw6sgQwJ.js +679 -0
- package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-c1NJPw9F.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-BlK-8A7b.js} +2 -2
- package/dist/_chunks/{entity-summary-DGCBQDt1.js → entity-summary-BanguTa6.js} +2 -2
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-Bt07zQJU.js} +20 -19
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-D0KofJJw.js} +3 -3
- package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-CV1_GtjC.js} +5 -5
- package/dist/_chunks/{finished-terminal-BKTFUk3S.js → finished-terminal-FR8uc_Ws.js} +2 -2
- package/dist/_chunks/{forgot-password-form-Bc_UPax6.js → forgot-password-form-YvI9vX-G.js} +2 -2
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/{gestational-age-calculator-60y1RyQL.js → gestational-age-calculator-Cg4Gq42R.js} +3 -3
- package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
- package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BjTa_77t.js} +3 -3
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DsvheAOt.js} +160 -147
- package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-BurtKmeu.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-BKtkVZ1W.js} +2 -2
- package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-C3oL0WTp.js} +7 -7
- package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-NFNGdAGt.js} +4 -4
- package/dist/_chunks/{login-dev-card-CPndtWdz.js → login-dev-card-Dz3ezx1o.js} +2 -2
- package/dist/_chunks/map-view-Frj8vE7n.js +1105 -0
- package/dist/_chunks/{maps-core-gate-DkNqGkm3.js → maps-core-gate-Dgs7jXxy.js} +6 -6
- package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-BOBWmzoT.js} +6 -6
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-C9dnSxzw.js} +2 -2
- package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-CHR-Jv6N.js} +5 -5
- package/dist/_chunks/{notification-card-CPW4poUr.js → notification-card-DRMv2_pW.js} +20 -20
- package/dist/_chunks/{notification-tray-CQK3lw87.js → notification-tray-mlCfxNRH.js} +2 -2
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{operator-hero-BWayX73x.js → operator-hero-CnfWckNQ.js} +2 -2
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/parts-CcyRkB8t.js +869 -0
- package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-C4dHR4iu.js} +3 -3
- package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-D_S7joff.js} +3 -3
- package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-x0-AhCyC.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-D7yaD4u1.js → payment-automation-upsell-CGdG2Mwk.js} +2 -2
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-CEIalOtr.js} +15 -14
- package/dist/_chunks/{periodontal-chart-Bjz7O4wT.js → periodontal-chart-DqHrQY4e.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CxEXHl2x.js → periodontal-chart-card-q9WSHRC2.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-DnZuZD14.js → periodontal-diagnosis-CJPWluQU.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-BBPB9wf1.js → periodontal-risk-chart-CKkyOROk.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-Cw4NZp0A.js → practice-profile-hero-BFS6lO2a.js} +2 -2
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CzHWprX4.js} +922 -787
- package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-BO6diQMZ.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-DkGcEc_l.js} +3 -3
- package/dist/_chunks/{privacy-mask-BlJK51MD.js → privacy-mask-DJ1gee4c.js} +2 -2
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
- package/dist/_chunks/{registration-form-DW-0X7S4.js → registration-form-CMXefBnC.js} +2 -2
- package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-TaZfI3yj.js} +5 -5
- package/dist/_chunks/{reset-password-form-C93SH0Tx.js → reset-password-form-D_TePSM1.js} +2 -2
- package/dist/_chunks/{reviews-panel-CfJPEkH7.js → reviews-panel-CdHUSndF.js} +2 -2
- package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-CMPA5Wgy.js} +12 -11
- package/dist/_chunks/row-actions-Dpf9CrCP.js +213 -0
- package/dist/_chunks/{section-card-DFr2wGal.js → section-card-CYfeQ6EQ.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-DWxWa_cJ.js → send-registration-link-form-DuZQuKnI.js} +2 -2
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-Dzs0jZsd.js} +3 -3
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-CF8R38Og.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-P4qFmxk5.js} +2 -2
- package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-WdDCqbIL.js} +168 -178
- package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-DBSm3WjK.js} +2 -2
- package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-CeKl8f_f.js} +3 -3
- package/dist/_chunks/{timeline-AMqE-c2T.js → timeline-DXko0M1t.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BrK5NQIq.js} +2 -2
- package/dist/_chunks/toolbar-z8vXnpXz.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-DHRxV2sE.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-B-SXnszJ.js} +10 -10
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-DCjkRuS_.js} +3 -3
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-D0avpoeS.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-dgUjv9T7.js} +3 -3
- package/dist/agent-catalog.json +1080 -1
- package/dist/agent-i18n/en.json +50 -0
- package/dist/browser-support.js +2 -0
- package/dist/components/_shared/accessible-target.d.ts +19 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/focus-visible.d.ts +8 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +49 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +36 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- 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-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +9 -2
- package/dist/components/card/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/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/body.d.ts +6 -0
- package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
- package/dist/components/data-grid/editors.d.ts +7 -1
- package/dist/components/data-grid/index.js +9 -8
- package/dist/components/data-grid/selection.d.ts +10 -0
- package/dist/components/data-grid/types.d.ts +61 -11
- package/dist/components/data-grid-tabs/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/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-settings/header-settings.d.ts +7 -3
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +48 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +2 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +20 -0
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +262 -0
- package/dist/i18n/locales/ar.js +263 -1
- package/dist/i18n/locales/de.d.ts +262 -0
- package/dist/i18n/locales/de.js +263 -1
- package/dist/i18n/locales/el.d.ts +262 -0
- package/dist/i18n/locales/el.js +263 -1
- package/dist/i18n/locales/en.d.ts +262 -0
- package/dist/i18n/locales/en.js +263 -1
- package/dist/i18n/locales/es.d.ts +262 -0
- package/dist/i18n/locales/es.js +263 -1
- package/dist/i18n/locales/fr.d.ts +262 -0
- package/dist/i18n/locales/fr.js +263 -1
- package/dist/i18n/locales/hi.d.ts +262 -0
- package/dist/i18n/locales/hi.js +263 -1
- package/dist/i18n/locales/it.d.ts +262 -0
- package/dist/i18n/locales/it.js +263 -1
- package/dist/i18n/locales/ja.d.ts +262 -0
- package/dist/i18n/locales/ja.js +263 -1
- package/dist/i18n/locales/nl.d.ts +262 -0
- package/dist/i18n/locales/nl.js +263 -1
- package/dist/i18n/locales/pl.d.ts +262 -0
- package/dist/i18n/locales/pl.js +263 -1
- package/dist/i18n/locales/pt.d.ts +262 -0
- package/dist/i18n/locales/pt.js +263 -1
- package/dist/i18n/locales/ro.d.ts +262 -0
- package/dist/i18n/locales/ro.js +263 -1
- package/dist/i18n/locales/ru.d.ts +262 -0
- package/dist/i18n/locales/ru.js +263 -1
- package/dist/i18n/locales/sq.d.ts +262 -0
- package/dist/i18n/locales/sq.js +263 -1
- package/dist/i18n/locales/sv.d.ts +262 -0
- package/dist/i18n/locales/sv.js +263 -1
- package/dist/i18n/locales/tr.d.ts +262 -0
- package/dist/i18n/locales/tr.js +263 -1
- package/dist/i18n/locales/zh.d.ts +262 -0
- package/dist/i18n/locales/zh.js +263 -1
- package/dist/index.js +1298 -1246
- package/dist/locales/ar.json +263 -1
- package/dist/locales/de.json +263 -1
- package/dist/locales/el.json +263 -1
- package/dist/locales/en.json +263 -1
- package/dist/locales/es.json +263 -1
- package/dist/locales/fr.json +263 -1
- package/dist/locales/hi.json +263 -1
- package/dist/locales/it.json +263 -1
- package/dist/locales/ja.json +263 -1
- package/dist/locales/nl.json +263 -1
- package/dist/locales/pl.json +263 -1
- package/dist/locales/pt.json +263 -1
- package/dist/locales/ro.json +263 -1
- package/dist/locales/ru.json +263 -1
- package/dist/locales/sq.json +263 -1
- package/dist/locales/sv.json +263 -1
- package/dist/locales/tr.json +263 -1
- package/dist/locales/zh.json +263 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +22 -3
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/dropdown-menu-CqxBthww.js +0 -595
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/map-view-Bny79cWa.js +0 -856
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -31,6 +31,27 @@ export interface MapMarker {
|
|
|
31
31
|
/** Optional accessible label — falls back to the id. */
|
|
32
32
|
label?: string;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* A map image shown in place of the interactive map until the host lets it
|
|
36
|
+
* load (HTP-7348). Serve it from the host's own domain, so the browser makes
|
|
37
|
+
* no request to Google before the visitor chooses.
|
|
38
|
+
*/
|
|
39
|
+
export interface MapViewStaticPreview {
|
|
40
|
+
/** Image URL, typically on the host's own domain. */
|
|
41
|
+
src: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optional `srcset` with x descriptors only (`"/map@2x.png 2x"`): the image
|
|
44
|
+
* has no `sizes`, so width descriptors would not work.
|
|
45
|
+
*/
|
|
46
|
+
srcSet?: string;
|
|
47
|
+
/** What the image shows, for example "Map of Studio Rossi". */
|
|
48
|
+
alt: string;
|
|
49
|
+
/** Intrinsic size in CSS pixels, so the image holds its box while loading. */
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
}
|
|
53
|
+
/** What moved onto or off a pin: the pointer, or keyboard-style focus. */
|
|
54
|
+
export type MapMarkerHoverSource = 'pointer' | 'focus';
|
|
34
55
|
export interface MapViewHandle {
|
|
35
56
|
/** Pan the map to a new centre without changing zoom. */
|
|
36
57
|
panTo: (position: MapLatLng) => void;
|
|
@@ -95,6 +116,20 @@ export interface MapViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCl
|
|
|
95
116
|
* inside the map. Nothing renders when the pin is out of view.
|
|
96
117
|
*/
|
|
97
118
|
renderMarkerCard?: (id: string) => ReactNode;
|
|
119
|
+
/**
|
|
120
|
+
* The pointer entered (`hovered` true) or left (false) a pin, or keyboard
|
|
121
|
+
* focus (`:focus-visible`) moved onto one. `source` says which, so a host
|
|
122
|
+
* can follow the pointer only where the device can hover. To show the card
|
|
123
|
+
* for the pin, set `hoveredMarkerId` from it, and clear it only for the id
|
|
124
|
+
* it holds. Focus that a mouse click gives a pin is not reported as "on";
|
|
125
|
+
* a blur, and Escape on a focused pin, is reported as "off". A pointer
|
|
126
|
+
* leave is not reported while the pin keeps keyboard focus, and a blur not
|
|
127
|
+
* while the pointer is on the pin. Focus is
|
|
128
|
+
* reported for `mapId` (advanced) markers only: Google's classic marker
|
|
129
|
+
* sends no focus event. The kit bundles `@vis.gl/react-google-maps` 1.8.x,
|
|
130
|
+
* which has the marker pointer events this needs.
|
|
131
|
+
*/
|
|
132
|
+
onMarkerHover?: (id: string, hovered: boolean, source: MapMarkerHoverSource) => void;
|
|
98
133
|
/**
|
|
99
134
|
* The visible viewport once the map settles, including its first bounds.
|
|
100
135
|
* Fires only when bounds change. `userInteraction` is true after patient
|
|
@@ -110,6 +145,19 @@ export interface MapViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCl
|
|
|
110
145
|
consentGranted?: boolean;
|
|
111
146
|
/** Fires when the consumer clicks the "Load map" CTA in the placeholder. */
|
|
112
147
|
onConsentRequest?: () => void;
|
|
148
|
+
/**
|
|
149
|
+
* A map image to show instead of the text placeholder while
|
|
150
|
+
* `consentGranted` is false (HTP-7348). A "Show interactive map" button on
|
|
151
|
+
* the image calls `onConsentRequest`, as "Load map" does, under the same
|
|
152
|
+
* disclosure (`consentDescription`) and with the "Open in Google Maps"
|
|
153
|
+
* link. They sit on a plate at the top of the map. When consent flips,
|
|
154
|
+
* focus moves from that button to the map region. The image is shown whole
|
|
155
|
+
* (`object-fit: contain`, so Google's logo and copyright stay visible),
|
|
156
|
+
* loads lazily, and stands in until the interactive map can draw. If it
|
|
157
|
+
* fails to load, the text placeholder shows instead. `consentCta`
|
|
158
|
+
* replaces the button.
|
|
159
|
+
*/
|
|
160
|
+
staticPreview?: MapViewStaticPreview;
|
|
113
161
|
/**
|
|
114
162
|
* Optional address string shown in the consent placeholder so the
|
|
115
163
|
* surface is useful before the map loads. Also used to build the
|
|
@@ -2,7 +2,7 @@ import { type HTMLAttributes } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const moneyVariants: (props?: ({
|
|
4
4
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5
|
-
tone?: "default" | "
|
|
5
|
+
tone?: "default" | "negative" | "muted" | "positive" | null | undefined;
|
|
6
6
|
strikethrough?: boolean | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type MoneyDecimals = 'full' | 'muted' | 'hideWhenZero';
|
|
@@ -10,7 +10,15 @@ export interface MoneyProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'child
|
|
|
10
10
|
/**
|
|
11
11
|
* Amount in the SMALLEST currency unit (cents), the kit's price
|
|
12
12
|
* convention — never a pre-formatted string. Zero-decimal currencies
|
|
13
|
-
* (JPY, KRW …) take the major amount, as `formatPrice` expects.
|
|
13
|
+
* (JPY, KRW …) take the major amount, as `formatPrice` expects. With
|
|
14
|
+
* `scale`, it is the amount times 10 to the power of `scale` instead.
|
|
15
|
+
* With `scale`, `minimumFractionDigits` or `maximumFractionDigits` set,
|
|
16
|
+
* exact digits are promised up to `Number.MAX_SAFE_INTEGER` (about 90
|
|
17
|
+
* million EUR at scale 8); beyond it, or for a float, the amount is
|
|
18
|
+
* rounded as a float and a warning is logged in development. Above 15
|
|
19
|
+
* significant digits, exactness needs an engine that formats a decimal
|
|
20
|
+
* string (ES2023); see the Money docs. Without those props the amount is
|
|
21
|
+
* divided by 100 as a float, as before, with no warning.
|
|
14
22
|
*/
|
|
15
23
|
value: number;
|
|
16
24
|
/** ISO-4217 code. Defaults to EUR, the practice currency. */
|
|
@@ -18,20 +26,45 @@ export interface MoneyProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'child
|
|
|
18
26
|
/** BCP 47 locale. Defaults to the active i18n language. */
|
|
19
27
|
locale?: string;
|
|
20
28
|
/**
|
|
21
|
-
* Colour. `auto` follows the sign — a negative amount reads
|
|
22
|
-
* everything else inherits the default
|
|
29
|
+
* Colour. `auto` follows the sign shown — a negative amount reads
|
|
30
|
+
* destructive, everything else inherits the default, and a credit note
|
|
31
|
+
* rounded to 0.00 is not painted as owed. Explicit tones always win.
|
|
23
32
|
*/
|
|
24
33
|
tone?: 'default' | 'muted' | 'positive' | 'negative' | 'auto';
|
|
25
34
|
/**
|
|
26
35
|
* What to do with the fraction:
|
|
27
36
|
* `full` (default) leaves it alone;
|
|
28
37
|
* `muted` de-emphasises it so the whole units read first;
|
|
29
|
-
* `hideWhenZero` drops it ONLY when it is all zeros
|
|
30
|
-
*
|
|
38
|
+
* `hideWhenZero` drops it ONLY when it is all zeros as displayed,
|
|
39
|
+
* after any rounding you asked for with `maximumFractionDigits`.
|
|
40
|
+
* Without that, nothing is rounded, so a real fraction always shows.
|
|
31
41
|
*/
|
|
32
42
|
decimals?: MoneyDecimals;
|
|
33
43
|
/** Force a leading `+` on positive amounts (a credit, a movement). */
|
|
34
44
|
signDisplay?: 'auto' | 'always';
|
|
45
|
+
/**
|
|
46
|
+
* How many decimal places `value` encodes. Defaults to the kit's
|
|
47
|
+
* minor-unit rule (2, or 0 for zero-decimal currencies such as JPY), so
|
|
48
|
+
* existing amounts are unchanged. Set it for a price finer than a cent:
|
|
49
|
+
* an invoice unit price of 12.3456 EUR is `value={123456} scale={4}`,
|
|
50
|
+
* and shows every digit. Whole numbers from 0 to 20; anything else
|
|
51
|
+
* falls back to the default and logs a warning in development.
|
|
52
|
+
*/
|
|
53
|
+
scale?: number;
|
|
54
|
+
/**
|
|
55
|
+
* The fewest fraction digits to show. Defaults to the currency's own
|
|
56
|
+
* (2 for EUR), so zeros beyond them are trimmed: `123400` at scale 4
|
|
57
|
+
* reads 12.34. In a column, set it to the scale so every row shows the
|
|
58
|
+
* same digits and the decimals line up. Don't set it below the
|
|
59
|
+
* currency's digits on a price; use `decimals="hideWhenZero"` instead.
|
|
60
|
+
*/
|
|
61
|
+
minimumFractionDigits?: number;
|
|
62
|
+
/**
|
|
63
|
+
* The most fraction digits to show. Defaults to the larger of `scale` and
|
|
64
|
+
* the currency's own, so nothing is rounded unless you ask. A value below
|
|
65
|
+
* `scale` rounds half away from zero, with integer arithmetic.
|
|
66
|
+
*/
|
|
67
|
+
maximumFractionDigits?: number;
|
|
35
68
|
}
|
|
36
69
|
export declare const Money: import("react").ForwardRefExoticComponent<MoneyProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
37
70
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-
|
|
1
|
+
import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-C9dnSxzw.js";
|
|
2
2
|
export {
|
|
3
3
|
a as DEFAULT_MUSCLE_VIEW,
|
|
4
4
|
i as FINDING_MARKER,
|
|
@@ -49,7 +49,8 @@ export interface NotificationCardProps extends Omit<HTMLAttributes<HTMLDivElemen
|
|
|
49
49
|
onDismiss?: (item: NotificationItem) => void;
|
|
50
50
|
/**
|
|
51
51
|
* Label for the dashboard-variant CTA. Only rendered when `variant` is
|
|
52
|
-
* `'dashboard'` and the item has a `url`.
|
|
52
|
+
* `'dashboard'` and the item has a `url`. With `onActivate` the click calls
|
|
53
|
+
* it instead of navigating; without, the CTA is a plain link to `url`.
|
|
53
54
|
*/
|
|
54
55
|
ctaLabel?: string;
|
|
55
56
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { NumberInput } from './number-input';
|
|
2
|
-
export type { NumberInputProps, NumberInputMode } from './number-input';
|
|
2
|
+
export type { NumberInputProps, NumberInputMode, NumberInputValidity, NumberInputValidityReason, } from './number-input';
|
|
3
3
|
export { useLocaleNumber } from './use-locale-number';
|
|
4
|
-
export type { LocaleNumber } from './use-locale-number';
|
|
4
|
+
export type { FractionDigitOptions, LocaleNumber } from './use-locale-number';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,13 +14,39 @@ declare const numberInputVariants: (props?: ({
|
|
|
14
14
|
inline?: "full" | "sm" | "md" | "lg" | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
16
|
export type { NumberInputMode };
|
|
17
|
+
/** Why the field's own value is invalid. Mirrors `aria-invalid`.
|
|
18
|
+
* - `'format'`: the text on screen is not a number in this locale
|
|
19
|
+
* ("1.5" in it-IT, "1,5" in en-US). Reported on blur, never mid-typing.
|
|
20
|
+
* - `'below-min'` / `'above-max'`: a number outside `min` or `max`. */
|
|
21
|
+
export type NumberInputValidityReason = 'format' | 'below-min' | 'above-max';
|
|
22
|
+
/** What `onValidityChange` reports. */
|
|
23
|
+
export interface NumberInputValidity {
|
|
24
|
+
valid: boolean;
|
|
25
|
+
/** `null` when `valid` is true. */
|
|
26
|
+
reason: NumberInputValidityReason | null;
|
|
27
|
+
}
|
|
17
28
|
export interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'value' | 'defaultValue' | 'size'>, VariantProps<typeof numberInputVariants> {
|
|
18
|
-
/** Current numeric value (controlled).
|
|
29
|
+
/** Current numeric value (controlled). A JavaScript number, exact to 15
|
|
30
|
+
* significant digits. Decimal text (FatturaPA) goes in through
|
|
31
|
+
* `decimalToNumber` and comes back out through `numberToDecimal` from
|
|
32
|
+
* `@alfadocs/ui-kit/decimal`; do the arithmetic on the text. */
|
|
19
33
|
value?: number | null;
|
|
20
34
|
/** Initial value (uncontrolled). */
|
|
21
35
|
defaultValue?: number;
|
|
22
|
-
/** Fires with the parsed number (not a string). `null` when the field is
|
|
36
|
+
/** Fires with the parsed number (not a string). `null` when the field is
|
|
37
|
+
* empty, and as soon as typed text stops being a number ("1.5" in it-IT),
|
|
38
|
+
* so the host never holds a number the screen no longer shows. Text that
|
|
39
|
+
* is not a number also gets the error tone and `aria-invalid` on blur. */
|
|
23
40
|
onChange?: (value: number | null) => void;
|
|
41
|
+
/** Called on mount and whenever the field's own verdict changes: the text
|
|
42
|
+
* is not a number (`'format'`), or the number is below `min` or above `max`.
|
|
43
|
+
* It stays in step with `aria-invalid` and the error tone, so a host can
|
|
44
|
+
* show its message (in a FormField or a table cell) and hold Confirm while
|
|
45
|
+
* `valid` is false. A host's own `aria-invalid` or FormField error is not
|
|
46
|
+
* part of it: the host already knows those. Mid-typing, text that is not a
|
|
47
|
+
* number already makes `onChange` report `null`; `'format'` follows on
|
|
48
|
+
* blur, as the error tone does. */
|
|
49
|
+
onValidityChange?: (validity: NumberInputValidity) => void;
|
|
24
50
|
/** Minimum allowed value. Maps to `aria-valuemin`. */
|
|
25
51
|
min?: number;
|
|
26
52
|
/** Maximum allowed value. Maps to `aria-valuemax`. */
|
|
@@ -29,6 +55,21 @@ export interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
29
55
|
step?: number;
|
|
30
56
|
/** Display/parse mode. Defaults to `'integer'`. */
|
|
31
57
|
mode?: NumberInputMode;
|
|
58
|
+
/** Most digits after the decimal separator, for `mode='decimal'` and
|
|
59
|
+
* `mode='currency'` (ignored by `integer` and `percentage`). Typing past it
|
|
60
|
+
* is refused: the extra digit never reaches the field, and a paste keeps
|
|
61
|
+
* only the first digits. A value the field computes itself (arrow steps,
|
|
62
|
+
* the agent handle) is rounded half away from zero, so `onChange` never
|
|
63
|
+
* reports more digits than this. Display formatting uses it too. Leave it
|
|
64
|
+
* out to keep the mode's default: up to 10 for `decimal`, the currency's
|
|
65
|
+
* own digits for `currency`, with no limit on typing. Whole numbers from 0
|
|
66
|
+
* to 20. */
|
|
67
|
+
maximumFractionDigits?: number;
|
|
68
|
+
/** Fewest digits after the decimal separator in the formatted display (for
|
|
69
|
+
* example `2` shows `12` as `12,00` once the field loses focus). Display
|
|
70
|
+
* only: it never changes the value or what can be typed. Same modes as
|
|
71
|
+
* `maximumFractionDigits`, and never more than it. */
|
|
72
|
+
minimumFractionDigits?: number;
|
|
32
73
|
/** ISO 4217 currency code, required when `mode='currency'`. */
|
|
33
74
|
currency?: string;
|
|
34
75
|
/** BCP 47 locale. Defaults to the app language (`i18n.language`), then
|
|
@@ -2,14 +2,78 @@ export type NumberInputMode = 'integer' | 'decimal' | 'currency' | 'percentage';
|
|
|
2
2
|
export interface LocaleNumber {
|
|
3
3
|
/** Format a JS number for display (e.g. `1234.5` → `1.234,5` in de-DE). */
|
|
4
4
|
format: (value: number) => string;
|
|
5
|
-
/** Parse a locale-formatted string back to a JS number. Returns `NaN` for
|
|
5
|
+
/** Parse a locale-formatted string back to a JS number. Returns `NaN` for
|
|
6
|
+
* invalid input, including misplaced grouping ("1.5" in it-IT, "1,5" in
|
|
7
|
+
* en-US), so a separator never turns 1.5 into 15. */
|
|
6
8
|
parse: (text: string) => number;
|
|
7
9
|
/** The decimal separator for this locale (e.g. `.` or `,`). */
|
|
8
10
|
decimalSeparator: string;
|
|
9
|
-
/** The grouping separator for this locale (e.g. `,` or `.` or
|
|
11
|
+
/** The grouping separator for this locale (e.g. `,` or `.` or U+202F).
|
|
12
|
+
* Never equal to `decimalSeparator`: where the locale shows none, the
|
|
13
|
+
* other of `.` and `,` stands in. */
|
|
10
14
|
groupingSeparator: string;
|
|
11
15
|
/** The correct `inputMode` for the virtual keyboard. */
|
|
12
16
|
inputMode: 'numeric' | 'decimal';
|
|
13
17
|
}
|
|
14
|
-
|
|
18
|
+
/** Fraction-digit limits for `decimal` and `currency` modes. Both optional:
|
|
19
|
+
* leaving them out keeps the mode's own defaults (up to 10 digits for
|
|
20
|
+
* `decimal`, the currency's own digits for `currency`). Ignored by
|
|
21
|
+
* `integer` and `percentage`. */
|
|
22
|
+
export interface FractionDigitOptions {
|
|
23
|
+
minimumFractionDigits?: number;
|
|
24
|
+
maximumFractionDigits?: number;
|
|
25
|
+
}
|
|
26
|
+
/** A whole number in the range `Intl` accepts, or `undefined` for anything
|
|
27
|
+
* that is not a finite number. */
|
|
28
|
+
export declare function sanitiseFractionDigits(n: number | undefined): number | undefined;
|
|
29
|
+
/** Does this mode honour the fraction-digit props? */
|
|
30
|
+
export declare function modeTakesFractionDigits(mode: NumberInputMode): boolean;
|
|
31
|
+
/** Resolve the min/max pair the formatter uses. A minimum above the maximum
|
|
32
|
+
* would make `Intl` throw, so the maximum wins when both are given; a
|
|
33
|
+
* minimum on its own lifts the default maximum to meet it. Returns
|
|
34
|
+
* `undefined` when no prop applies, so the mode's defaults stay untouched. */
|
|
35
|
+
export declare function resolveFractionDigits(locale: string, mode: NumberInputMode, currency: string | undefined, options: FractionDigitOptions | undefined): {
|
|
36
|
+
min: number;
|
|
37
|
+
max: number;
|
|
38
|
+
} | undefined;
|
|
39
|
+
export interface LocaleSeparators {
|
|
40
|
+
/** "," or "." or "٫". */
|
|
41
|
+
decimal: string;
|
|
42
|
+
/** Never equal to `decimal`. */
|
|
43
|
+
group: string;
|
|
44
|
+
/** Digits in the last integer group: 3 everywhere CLDR ships today
|
|
45
|
+
* (hi-IN groups 1,23,45,67,890: 2 then 3). */
|
|
46
|
+
primaryGroupSize: number;
|
|
47
|
+
}
|
|
48
|
+
/** The decimal and grouping separators `Intl` uses for a locale. When the
|
|
49
|
+
* locale shows no grouping separator, or one equal to the decimal, the other
|
|
50
|
+
* of "." and "," stands in, so a decimal separator is never mistaken for a
|
|
51
|
+
* group break. */
|
|
52
|
+
export declare function detectSeparators(locale: string): LocaleSeparators;
|
|
53
|
+
/**
|
|
54
|
+
* Locale text to a number, or `NaN`. Digits (Western and Arabic-Indic) and
|
|
55
|
+
* the decimal separator are kept; currency signs, units and spaces outside
|
|
56
|
+
* the digits are dropped; one minus before the first digit negates. Anything
|
|
57
|
+
* that could glue or shift digits into a different number is `NaN`:
|
|
58
|
+
* - a separator straight before the first digit that is not the decimal
|
|
59
|
+
* (".5" in it-IT, ",5" in en-US), never 5;
|
|
60
|
+
* - a minus after the first digit, or a second one ("5-", "1-234");
|
|
61
|
+
* - between integer digits only spaces and separator marks may stand, so
|
|
62
|
+
* a letter ("1a234") is not a group break;
|
|
63
|
+
* - the digits after the last group break must be a full primary group (3),
|
|
64
|
+
* so "1.5" in it-IT and "1,5" in en-US are not 15;
|
|
65
|
+
* - the digits before the first break may not be longer than that group
|
|
66
|
+
* ("1234,567" in en-US), and the groups between breaks must be 2 or 3
|
|
67
|
+
* digits, so Indian lakh grouping (1,23,456) still parses;
|
|
68
|
+
* - a break among the decimals, or a second decimal separator.
|
|
69
|
+
* A trailing group separator is ignored, so "1." reads as 1 while typing.
|
|
70
|
+
* Percentage mode moves the point two places on the exponent (25 → 0.25).
|
|
71
|
+
*/
|
|
72
|
+
export declare function parseLocaleNumber(text: string, separators: LocaleSeparators, mode: NumberInputMode): number;
|
|
73
|
+
/** Write Western digits in the locale's own digits when `Intl` formats it
|
|
74
|
+
* with Arabic-Indic or extended Arabic-Indic digits (ar-EG shows ١٫٥), so the
|
|
75
|
+
* edit text matches the display. Only those two sets: `parse` reads them
|
|
76
|
+
* back. Any other locale gets the text unchanged. */
|
|
77
|
+
export declare function localiseDigits(text: string, locale: string): string;
|
|
78
|
+
export declare function useLocaleNumber(locale: string, mode: NumberInputMode, currency?: string, fractionDigits?: FractionDigitOptions): LocaleNumber;
|
|
15
79
|
//# sourceMappingURL=use-locale-number.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-
|
|
1
|
+
import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-Da_r8pMr.js";
|
|
2
2
|
export {
|
|
3
3
|
S as ADD_MAX,
|
|
4
4
|
r as ADD_MIN,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-
|
|
1
|
+
import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-DPjab0eJ.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BalanceBadgeCell,
|
|
4
4
|
l as CarePlanStatusCell,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as t, M as s, P as e, a as i, b as E, c as r, d as P, S as _, e as n, f as A, g as d, h as l, p as T, i as p, j as C, k as L, s as N, t as O, l as R } from "../../_chunks/periodontal-chart-
|
|
1
|
+
import { B as t, M as s, P as e, a as i, b as E, c as r, d as P, S as _, e as n, f as A, g as d, h as l, p as T, i as p, j as C, k as L, s as N, t as O, l as R } from "../../_chunks/periodontal-chart-DqHrQY4e.js";
|
|
2
2
|
export {
|
|
3
3
|
t as BLEEDING_WARN_PERCENT,
|
|
4
4
|
s as MODERATE_POCKET_MM,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as i, P as S, a as T, b as o, c as D, S as I, e as E, i as O, p as e } from "../../_chunks/periodontal-diagnosis-
|
|
1
|
+
import { D as i, P as S, a as T, b as o, c as D, S as I, e as E, i as O, p as e } from "../../_chunks/periodontal-diagnosis-CJPWluQU.js";
|
|
2
2
|
export {
|
|
3
3
|
i as DEFAULT_DIAGNOSIS_FACTORS,
|
|
4
4
|
S as PERIODONTITIS_EXTENTS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as o, a as s, c as i, p as t, r as e } from "../../_chunks/periodontal-risk-chart-
|
|
1
|
+
import { P as o, a as s, c as i, p as t, r as e } from "../../_chunks/periodontal-risk-chart-CKkyOROk.js";
|
|
2
2
|
export {
|
|
3
3
|
o as PERIODONTAL_RISK_FACTORS,
|
|
4
4
|
s as PeriodontalRiskChart,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { type MapViewStaticPreview } from '../map-view/map-view';
|
|
3
4
|
export type PracticeResultsVariant = 'split-list-map' | 'map-first' | 'rich-cards';
|
|
4
5
|
/** Heading levels the results title accepts. */
|
|
5
6
|
export type PracticeResultsHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -152,6 +153,17 @@ export interface PracticeResult {
|
|
|
152
153
|
/** Direct deep-link to the kit's Booking with this slot pre-selected. */
|
|
153
154
|
bookingHref: string;
|
|
154
155
|
};
|
|
156
|
+
/**
|
|
157
|
+
* The practice's map thumbnail on rich cards, as an image the host serves
|
|
158
|
+
* from its own domain (HTP-7348). It needs no `googleMapsApiKey` and no
|
|
159
|
+
* consent, because the browser never contacts Google for it. Without it,
|
|
160
|
+
* the card falls back to a Google Static Maps image when a
|
|
161
|
+
* `googleMapsApiKey` is given, else to the address block.
|
|
162
|
+
*/
|
|
163
|
+
mapImage?: {
|
|
164
|
+
src: string;
|
|
165
|
+
srcSet?: string;
|
|
166
|
+
};
|
|
155
167
|
/** Opaque payload echoed back in onResultSelect. */
|
|
156
168
|
__payload?: unknown;
|
|
157
169
|
}
|
|
@@ -255,6 +267,14 @@ export interface PracticeResultsProps extends Omit<ComponentPropsWithoutRef<'div
|
|
|
255
267
|
consentGranted?: boolean;
|
|
256
268
|
/** Fires when the patient clicks the "Load map" CTA in the consent placeholder. */
|
|
257
269
|
onConsentRequest?: () => void;
|
|
270
|
+
/**
|
|
271
|
+
* A map image with the result pins, shown in the map panel while
|
|
272
|
+
* `consentGranted` is false (HTP-7348), with a "Show interactive map"
|
|
273
|
+
* button that calls `onConsentRequest`. See `MapView`'s `staticPreview`.
|
|
274
|
+
* Serve it from your own domain so the browser contacts no third party
|
|
275
|
+
* before the patient chooses. Split-list-map and map-first only.
|
|
276
|
+
*/
|
|
277
|
+
mapPreview?: MapViewStaticPreview;
|
|
258
278
|
/**
|
|
259
279
|
* @default false
|
|
260
280
|
* 0.31.4: bypass the embedded `<MapView>`'s GDPR consent placeholder
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as n, R as s, T as i, a as g, p as r, r as t } from "../../_chunks/pregnancy-weight-gain-
|
|
1
|
+
import { P as n, R as s, T as i, a as g, p as r, r as t } from "../../_chunks/pregnancy-weight-gain-DkGcEc_l.js";
|
|
2
2
|
export {
|
|
3
3
|
n as PregnancyWeightGain,
|
|
4
4
|
s as RATE_BANDS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-
|
|
2
|
-
import { k as s } from "../../_chunks/kit-extensions-
|
|
1
|
+
import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-CMPA5Wgy.js";
|
|
2
|
+
import { k as s } from "../../_chunks/kit-extensions-C3oL0WTp.js";
|
|
3
3
|
export {
|
|
4
4
|
i as RichTextEditor,
|
|
5
5
|
s as kitEditorExtensions,
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type ForwardedRef, type HTMLAttributes, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* One action on a row. A superset of DataTable's `ActionDef`, so an action
|
|
4
|
+
* list written for DataTable works here unchanged.
|
|
5
|
+
*/
|
|
6
|
+
export interface RowActionDef<TRow> {
|
|
7
|
+
/** Developer constant: the React key and the `data-action-id` DOM hook
|
|
8
|
+
* for tests. Never row data. Defaults to the index. */
|
|
9
|
+
id?: string;
|
|
10
|
+
/** A Lucide icon. Decorative (`aria-hidden`); RowActions sizes it. */
|
|
11
|
+
icon: ReactNode;
|
|
12
|
+
/** Translated. The accessible name, the tooltip and the menu text. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Called with the row. Never called while the action is disabled. */
|
|
15
|
+
onClick: (row: TRow) => void;
|
|
16
|
+
/** Pass a predicate for a per-row state. */
|
|
17
|
+
disabled?: boolean | ((row: TRow) => boolean);
|
|
18
|
+
/** Translated. Why the action is disabled. Inline: the tooltip, and the
|
|
19
|
+
* button's description for screen readers (the button stays focusable).
|
|
20
|
+
* In the More menu: the item's second line. */
|
|
21
|
+
disabledReason?: string | ((row: TRow) => string | undefined);
|
|
22
|
+
/** `'destructive'` paints the action in `--destructive`. RowActions never
|
|
23
|
+
* confirms: open an AlertDialog from `onClick`. */
|
|
24
|
+
variant?: 'default' | 'destructive';
|
|
25
|
+
/** Pass a predicate to hide the action on some rows. */
|
|
26
|
+
hidden?: boolean | ((row: TRow) => boolean);
|
|
27
|
+
/** Developer constant naming the action's group in the More menu
|
|
28
|
+
* ("downloads", "delete"). The menu draws a separator where the section
|
|
29
|
+
* changes between two visible items. Keep a section's actions next to
|
|
30
|
+
* each other. Inline buttons ignore it. Never row data. */
|
|
31
|
+
section?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface RowActionsProps<TRow> extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'role' | 'aria-label' | 'aria-labelledby'> {
|
|
34
|
+
/** The row the actions act on. Passed back to each `onClick`. */
|
|
35
|
+
row: TRow;
|
|
36
|
+
actions: readonly RowActionDef<TRow>[];
|
|
37
|
+
/** How many visible actions show as buttons before the rest fold into
|
|
38
|
+
* "More actions". Default: all inline. `0`: only "More actions". */
|
|
39
|
+
maxInline?: number;
|
|
40
|
+
/** Button intent. Default `'ghost'`. */
|
|
41
|
+
intent?: 'ghost' | 'outline';
|
|
42
|
+
/** Render the buttons as one segmented IconButtonGroup. */
|
|
43
|
+
group?: boolean;
|
|
44
|
+
/** Ids of the element(s) naming the actions, such as a table's hidden
|
|
45
|
+
* "Actions, FT 12/2026" span. Keeps row data out of attributes. */
|
|
46
|
+
'aria-labelledby'?: string;
|
|
47
|
+
/** Names the actions when `aria-labelledby` is not given. Translated.
|
|
48
|
+
* Default "Actions". */
|
|
49
|
+
label?: string;
|
|
50
|
+
/** Button size. Default `'sm'`. */
|
|
51
|
+
size?: 'sm' | 'md';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The actions for one row of a table, list or card: icon buttons, with the
|
|
55
|
+
* rest under "More actions". Engine-free, so it works in DataGrid, a list or
|
|
56
|
+
* a card. A disabled action stays focusable and says why.
|
|
57
|
+
*/
|
|
58
|
+
export declare const RowActions: (<TRow>(props: RowActionsProps<TRow> & {
|
|
59
|
+
ref?: ForwardedRef<HTMLDivElement>;
|
|
60
|
+
}) => ReactElement | null) & {
|
|
61
|
+
displayName?: string;
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=row-actions.d.ts.map
|
|
@@ -5,7 +5,7 @@ import { c as T1 } from "../../_chunks/index-D2ZczOXr.js";
|
|
|
5
5
|
import { useTranslation as N1 } from "react-i18next";
|
|
6
6
|
import { u as E1 } from "../../_chunks/registry-DvAUVLHh.js";
|
|
7
7
|
import { m as R1, A as _1 } from "../../_chunks/annotation-marker-D-M7y4R1.js";
|
|
8
|
-
import { T as A } from "../../_chunks/tabs-
|
|
8
|
+
import { T as A } from "../../_chunks/tabs-P4qFmxk5.js";
|
|
9
9
|
import { a as V1, Z as C1 } from "../../_chunks/zoom-out-Dnif4kJx.js";
|
|
10
10
|
import { M as F1 } from "../../_chunks/maximize-2-BYd2Kti7.js";
|
|
11
11
|
const I = {
|