@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
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
import { jsxs as N, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useId as re, useContext as G, useRef as T, useEffect as K, useMemo as O, useLayoutEffect as oe, createContext as V } from "react";
|
|
3
|
+
import * as d from "@radix-ui/react-dropdown-menu";
|
|
4
|
+
import { c as D } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { S as ne } from "./separator-Bdc9bqoJ.js";
|
|
6
|
+
import { K as $ } from "./kbd-Bx7eQv9f.js";
|
|
7
|
+
import { b as A } from "./menu-row-BAr8bx1I.js";
|
|
8
|
+
import { P as E } from "./popup-region-qz_5_A0V.js";
|
|
9
|
+
import { u as de } from "./use-controllable-state-BiY4xTzM.js";
|
|
10
|
+
import { u as ie } from "./registry-DvAUVLHh.js";
|
|
11
|
+
import { C as ce } from "./chevron-right-I9AeSxH2.js";
|
|
12
|
+
import { C as le } from "./check-DrFSN__t.js";
|
|
13
|
+
import { a as ue } from "./use-direction-Dp8h70PP.js";
|
|
14
|
+
const pe = {
|
|
15
|
+
id: "dropdown-menu",
|
|
16
|
+
capabilities: ["open", "close", "set_value"],
|
|
17
|
+
state: {
|
|
18
|
+
isOpen: {
|
|
19
|
+
type: "boolean",
|
|
20
|
+
descriptionKey: "ui.agent.dropdownMenu.state.isOpen",
|
|
21
|
+
description: "True when the menu is currently open.",
|
|
22
|
+
read: (e) => e.getIsOpen()
|
|
23
|
+
},
|
|
24
|
+
settings: {
|
|
25
|
+
type: 'Array<{ setting: string; kind: "choice" | "switch"; value?: string; options?: string[]; checked?: boolean; disabled: boolean }>',
|
|
26
|
+
descriptionKey: "ui.agent.dropdownMenu.state.settings",
|
|
27
|
+
description: "The menu's named settings rows and their current values: choice rows with the selected value and every option's value, switch rows with whether they are on. Rows are listed only while the menu is open; open it first to read them.",
|
|
28
|
+
read: (e) => e.getSettings()
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
actions: {
|
|
32
|
+
open: {
|
|
33
|
+
safety: "read",
|
|
34
|
+
idempotent: !0,
|
|
35
|
+
descriptionKey: "ui.agent.dropdownMenu.actions.open",
|
|
36
|
+
description: "Open the menu.",
|
|
37
|
+
invoke: (e) => {
|
|
38
|
+
e.open();
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
close: {
|
|
42
|
+
safety: "read",
|
|
43
|
+
idempotent: !0,
|
|
44
|
+
descriptionKey: "ui.agent.dropdownMenu.actions.close",
|
|
45
|
+
description: "Close the menu.",
|
|
46
|
+
invoke: (e) => {
|
|
47
|
+
e.close();
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
set_value: {
|
|
51
|
+
safety: "write",
|
|
52
|
+
argsType: "{ setting: string; value: string }",
|
|
53
|
+
argsSchema: {
|
|
54
|
+
type: "object",
|
|
55
|
+
properties: {
|
|
56
|
+
setting: {
|
|
57
|
+
type: "string",
|
|
58
|
+
description: "The row's name (its data-setting attribute)."
|
|
59
|
+
},
|
|
60
|
+
value: {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "One of the row's option values."
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
required: ["setting", "value"]
|
|
66
|
+
},
|
|
67
|
+
idempotent: !0,
|
|
68
|
+
errors: [
|
|
69
|
+
"No choice row with that name in this menu",
|
|
70
|
+
"The value is not one of the options, or it or the row is disabled"
|
|
71
|
+
],
|
|
72
|
+
examples: [
|
|
73
|
+
{
|
|
74
|
+
args: { setting: "slotDensity", value: "comfortable" },
|
|
75
|
+
note: "Calendar display settings: switch to comfortable rows."
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
descriptionKey: "ui.agent.dropdownMenu.actions.setValue",
|
|
79
|
+
description: "Pick an option on a named choice row (ChoiceSub), as clicking it would. A closed menu opens for the moment and closes again.",
|
|
80
|
+
invoke: (e, t) => e.setValue(t.setting, t.value)
|
|
81
|
+
},
|
|
82
|
+
set_checked: {
|
|
83
|
+
safety: "write",
|
|
84
|
+
argsType: "{ setting: string; checked: boolean }",
|
|
85
|
+
argsSchema: {
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: {
|
|
88
|
+
setting: {
|
|
89
|
+
type: "string",
|
|
90
|
+
description: "The row's name (its data-setting attribute)."
|
|
91
|
+
},
|
|
92
|
+
checked: { type: "boolean" }
|
|
93
|
+
},
|
|
94
|
+
required: ["setting", "checked"]
|
|
95
|
+
},
|
|
96
|
+
idempotent: !0,
|
|
97
|
+
errors: [
|
|
98
|
+
"No switch row with that name in this menu",
|
|
99
|
+
"The row is disabled"
|
|
100
|
+
],
|
|
101
|
+
examples: [
|
|
102
|
+
{
|
|
103
|
+
args: { setting: "zebraRows", checked: !0 },
|
|
104
|
+
note: "Calendar display settings: turn zebra rows on."
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
descriptionKey: "ui.agent.dropdownMenu.actions.setChecked",
|
|
108
|
+
description: "Turn a named switch row (SwitchItem) on or off, as clicking it would. A closed menu opens for the moment and closes again.",
|
|
109
|
+
invoke: (e, t) => e.setChecked(t.setting, t.checked)
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
domHooks: {
|
|
113
|
+
root: { attr: "data-component", value: "dropdown-menu" },
|
|
114
|
+
instanceId: {
|
|
115
|
+
attr: "data-component-id",
|
|
116
|
+
sourceProp: "id",
|
|
117
|
+
description: "Sourced from the id prop on DropdownMenu.Root."
|
|
118
|
+
},
|
|
119
|
+
item: {
|
|
120
|
+
attr: "data-setting",
|
|
121
|
+
sourceProp: "name",
|
|
122
|
+
description: "On a ChoiceSub or SwitchItem row given a name: the setting that set_value / set_checked address."
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, L = D(
|
|
126
|
+
[
|
|
127
|
+
"ds:z-[var(--z-dropdown)]",
|
|
128
|
+
// Roomier panel: wider floor, larger radius, deeper float and a
|
|
129
|
+
// breath more padding so menus read as elevated surfaces rather
|
|
130
|
+
// than flat lists hugging their trigger.
|
|
131
|
+
"ds:min-w-[14rem]",
|
|
132
|
+
"ds:rounded-[var(--radius-lg)]",
|
|
133
|
+
// Border kept (transparent) so the forced-colors override below can
|
|
134
|
+
// repaint a visible edge in HCM. In normal modes the soft drop-shadow
|
|
135
|
+
// carries the edge cue; the heavy `--border` (grey-800 since WCAG
|
|
136
|
+
// 1.4.11 bump in 67fef8c) made the menu read as a charcoal box.
|
|
137
|
+
"ds:border ds:border-transparent",
|
|
138
|
+
"ds:bg-[var(--popover)] ds:text-[color:var(--popover-foreground)]",
|
|
139
|
+
"ds:shadow-[var(--shadow-xl)]",
|
|
140
|
+
"ds:p-[var(--spacing-sm)]",
|
|
141
|
+
// Never taller than the room Radix measures beside the trigger: a long
|
|
142
|
+
// menu scrolls instead of running off the screen. Submenus portal out,
|
|
143
|
+
// so the scroll never clips them. Radix sets the same variable on
|
|
144
|
+
// Content and SubContent.
|
|
145
|
+
"ds:max-h-[var(--radix-dropdown-menu-content-available-height)] ds:overflow-y-auto",
|
|
146
|
+
// Motion — gated on --animation-duration via Tailwind's animate-in
|
|
147
|
+
// preset. motion-reduce disables via the no-preference query.
|
|
148
|
+
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
149
|
+
"ds:data-[state=open]:fade-in ds:data-[state=closed]:fade-out",
|
|
150
|
+
"ds:data-[state=open]:zoom-in-95 ds:data-[state=closed]:zoom-out-95",
|
|
151
|
+
"ds:data-[state=open]:slide-in-from-top-1",
|
|
152
|
+
"ds:motion-reduce:animate-none",
|
|
153
|
+
"ds:forced-colors:border-[CanvasText]"
|
|
154
|
+
].join(" ")
|
|
155
|
+
), M = D(
|
|
156
|
+
[
|
|
157
|
+
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
158
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
159
|
+
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
160
|
+
"ds:rounded-[var(--radius-md)]",
|
|
161
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
162
|
+
// The ink comes from the variants below, one colour class per state:
|
|
163
|
+
// two text-colour utilities on one element resolve by stylesheet order,
|
|
164
|
+
// not by class order, and --foreground would win over --destructive.
|
|
165
|
+
"ds:text-[length:var(--font-size-sm)]",
|
|
166
|
+
"ds:select-none ds:outline-none",
|
|
167
|
+
// Radix highlights on hover and on keyboard focus alike. The highlight
|
|
168
|
+
// itself comes from the `unavailable` variant below.
|
|
169
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
170
|
+
"ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
|
|
171
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
172
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
173
|
+
// Disabled
|
|
174
|
+
"ds:data-[disabled]:opacity-50 ds:data-[disabled]:cursor-not-allowed",
|
|
175
|
+
"ds:data-[disabled]:pointer-events-none"
|
|
176
|
+
].join(" "),
|
|
177
|
+
{
|
|
178
|
+
variants: {
|
|
179
|
+
/* Item only. A lit row repoints --destructive to the accent ink
|
|
180
|
+
(MENU_ROW_HIGHLIGHT), so the label keeps its contrast there. */
|
|
181
|
+
variant: { default: "", destructive: "" },
|
|
182
|
+
/* An Item that is disabled with a reason: it keeps focus, so it is
|
|
183
|
+
muted rather than faded, and the reason stays readable. */
|
|
184
|
+
unavailable: {
|
|
185
|
+
/* Lit, it stays neutral: the accent fill reads as "ready to
|
|
186
|
+
choose", and it would turn the muted reason into accent ink. */
|
|
187
|
+
true: [
|
|
188
|
+
"ds:text-[color:var(--muted-foreground)] ds:cursor-not-allowed",
|
|
189
|
+
"ds:forced-colors:text-[GrayText]",
|
|
190
|
+
"ds:data-[highlighted]:bg-[var(--muted)]",
|
|
191
|
+
"ds:forced-colors:data-[highlighted]:outline-solid",
|
|
192
|
+
"ds:forced-colors:data-[highlighted]:outline-[length:var(--focus-ring-width)]",
|
|
193
|
+
"ds:forced-colors:data-[highlighted]:outline-[GrayText]",
|
|
194
|
+
"ds:forced-colors:data-[highlighted]:[outline-offset:calc(var(--focus-ring-width)*-1)]"
|
|
195
|
+
].join(" "),
|
|
196
|
+
/* The pointer lives here, not in the base: two cursor utilities on
|
|
197
|
+
one element resolve by stylesheet order, and it would win. */
|
|
198
|
+
false: `ds:cursor-pointer ${A.highlighted}`
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
compoundVariants: [
|
|
202
|
+
{
|
|
203
|
+
variant: "default",
|
|
204
|
+
unavailable: !1,
|
|
205
|
+
className: "ds:text-[color:var(--foreground)]"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
variant: "destructive",
|
|
209
|
+
unavailable: !1,
|
|
210
|
+
className: "ds:text-[color:var(--destructive)]"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
defaultVariants: { variant: "default", unavailable: !1 }
|
|
214
|
+
}
|
|
215
|
+
), me = D(
|
|
216
|
+
[
|
|
217
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
218
|
+
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-2xs)]",
|
|
219
|
+
// Quiet sentence-case caption — the shouty uppercase eyebrow made
|
|
220
|
+
// every menu read as a form. Groups should lean on separators first
|
|
221
|
+
// and reach for a Label only when the grouping is genuinely unclear.
|
|
222
|
+
"ds:text-[length:var(--font-size-xs)]",
|
|
223
|
+
"ds:font-[var(--font-weight-medium)]",
|
|
224
|
+
"ds:text-[color:var(--muted-foreground)]",
|
|
225
|
+
"ds:select-none"
|
|
226
|
+
].join(" ")
|
|
227
|
+
), q = "ds:inline-flex ds:items-center ds:justify-center ds:size-4 ds:shrink-0", F = V(
|
|
228
|
+
void 0
|
|
229
|
+
), he = () => new Promise((e) => {
|
|
230
|
+
typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => e()) : setTimeout(e, 16);
|
|
231
|
+
}), H = V(void 0), B = ({
|
|
232
|
+
dir: e,
|
|
233
|
+
id: t,
|
|
234
|
+
open: a,
|
|
235
|
+
defaultOpen: r,
|
|
236
|
+
onOpenChange: l,
|
|
237
|
+
...u
|
|
238
|
+
}) => {
|
|
239
|
+
const g = ue(), [f, w] = de({
|
|
240
|
+
value: a,
|
|
241
|
+
defaultValue: r ?? !1,
|
|
242
|
+
onChange: l
|
|
243
|
+
}), c = f ?? !1, n = T(c);
|
|
244
|
+
K(() => {
|
|
245
|
+
n.current = c;
|
|
246
|
+
}, [c]);
|
|
247
|
+
const m = T(/* @__PURE__ */ new Map()), C = T(0), I = O(
|
|
248
|
+
() => (h, k) => (m.current.set(h, k), () => {
|
|
249
|
+
m.current.get(h) === k && m.current.delete(h);
|
|
250
|
+
}),
|
|
251
|
+
[]
|
|
252
|
+
), S = O(() => {
|
|
253
|
+
const h = (i) => {
|
|
254
|
+
n.current = i, w(i);
|
|
255
|
+
}, k = async (i, o, p) => {
|
|
256
|
+
const y = !n.current;
|
|
257
|
+
y && h(!0);
|
|
258
|
+
const v = C.current;
|
|
259
|
+
try {
|
|
260
|
+
let x = m.current.get(i);
|
|
261
|
+
for (let R = 0; !x && R < 30; R += 1)
|
|
262
|
+
await he(), x = m.current.get(i);
|
|
263
|
+
if (!x || x.kind !== o)
|
|
264
|
+
throw new Error(`No ${o} setting named "${i}" in this menu`);
|
|
265
|
+
p(x);
|
|
266
|
+
} finally {
|
|
267
|
+
y && C.current === v && h(!1);
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
return {
|
|
271
|
+
getIsOpen: () => n.current,
|
|
272
|
+
open: () => {
|
|
273
|
+
C.current += 1, h(!0);
|
|
274
|
+
},
|
|
275
|
+
close: () => {
|
|
276
|
+
C.current += 1, h(!1);
|
|
277
|
+
},
|
|
278
|
+
getSettings: () => [...m.current].map(([i, o]) => {
|
|
279
|
+
if (o.kind === "choice") {
|
|
280
|
+
const { value: v, options: x, disabled: R } = o.read();
|
|
281
|
+
return {
|
|
282
|
+
setting: i,
|
|
283
|
+
kind: "choice",
|
|
284
|
+
value: v,
|
|
285
|
+
options: x.map((j) => j.value),
|
|
286
|
+
disabled: R
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
const { checked: p, disabled: y } = o.read();
|
|
290
|
+
return { setting: i, kind: "switch", checked: p, disabled: y };
|
|
291
|
+
}),
|
|
292
|
+
setValue: (i, o) => k(i, "choice", (p) => {
|
|
293
|
+
const { options: y, disabled: v, closeOnSelect: x } = p.read(), R = y.find((j) => j.value === o);
|
|
294
|
+
if (v || !R || R.disabled)
|
|
295
|
+
throw new Error(
|
|
296
|
+
`"${o}" is not an option that "${i}" can take now`
|
|
297
|
+
);
|
|
298
|
+
p.pick(o), x && h(!1);
|
|
299
|
+
}),
|
|
300
|
+
setChecked: (i, o) => k(i, "switch", (p) => {
|
|
301
|
+
if (p.read().disabled)
|
|
302
|
+
throw new Error(`"${i}" is disabled`);
|
|
303
|
+
p.pick(o);
|
|
304
|
+
})
|
|
305
|
+
};
|
|
306
|
+
}, [w]);
|
|
307
|
+
return ie(pe, S, t), /* @__PURE__ */ s(H.Provider, { value: t, children: /* @__PURE__ */ s(F.Provider, { value: I, children: /* @__PURE__ */ s(
|
|
308
|
+
d.Root,
|
|
309
|
+
{
|
|
310
|
+
dir: e ?? g,
|
|
311
|
+
open: c,
|
|
312
|
+
onOpenChange: w,
|
|
313
|
+
...u
|
|
314
|
+
}
|
|
315
|
+
) }) });
|
|
316
|
+
};
|
|
317
|
+
B.displayName = "DropdownMenu.Root";
|
|
318
|
+
const fe = d.Trigger, ge = d.Portal, ve = d.Group, be = d.RadioGroup, U = b(({ className: e, sideOffset: t = 8, ...a }, r) => {
|
|
319
|
+
const l = G(H);
|
|
320
|
+
return /* @__PURE__ */ s(d.Portal, { children: /* @__PURE__ */ s(E, { popupRef: r, children: (u) => /* @__PURE__ */ s(
|
|
321
|
+
d.Content,
|
|
322
|
+
{
|
|
323
|
+
ref: u,
|
|
324
|
+
sideOffset: t,
|
|
325
|
+
className: L({ className: e }),
|
|
326
|
+
"data-component": "dropdown-menu",
|
|
327
|
+
"data-component-id": l,
|
|
328
|
+
...a
|
|
329
|
+
}
|
|
330
|
+
) }) });
|
|
331
|
+
});
|
|
332
|
+
U.displayName = "DropdownMenu.Content";
|
|
333
|
+
const W = b(
|
|
334
|
+
({
|
|
335
|
+
className: e,
|
|
336
|
+
startIcon: t,
|
|
337
|
+
endIcon: a,
|
|
338
|
+
description: r,
|
|
339
|
+
shortcut: l,
|
|
340
|
+
variant: u,
|
|
341
|
+
disabled: g,
|
|
342
|
+
disabledReason: f,
|
|
343
|
+
textValue: w,
|
|
344
|
+
onSelect: c,
|
|
345
|
+
onClick: n,
|
|
346
|
+
children: m,
|
|
347
|
+
"aria-describedby": C,
|
|
348
|
+
...I
|
|
349
|
+
}, S) => {
|
|
350
|
+
const h = re(), k = `${h}-reason`, i = `${h}-label`, o = !!(g && f), p = o ? f : r, y = o && !I["aria-label"] && !I["aria-labelledby"];
|
|
351
|
+
return /* @__PURE__ */ N(
|
|
352
|
+
d.Item,
|
|
353
|
+
{
|
|
354
|
+
ref: S,
|
|
355
|
+
className: M({ variant: u, unavailable: o, className: e }),
|
|
356
|
+
disabled: o ? !1 : g,
|
|
357
|
+
textValue: w ?? (o && typeof m == "string" ? m : void 0),
|
|
358
|
+
"aria-describedby": o ? [C, k].filter(Boolean).join(" ") : C,
|
|
359
|
+
onClick: (v) => {
|
|
360
|
+
o || n == null || n(v);
|
|
361
|
+
},
|
|
362
|
+
onSelect: (v) => {
|
|
363
|
+
if (o) {
|
|
364
|
+
v.preventDefault();
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
c == null || c(v);
|
|
368
|
+
},
|
|
369
|
+
...I,
|
|
370
|
+
...o ? { "aria-disabled": !0, "data-unavailable": "" } : void 0,
|
|
371
|
+
...y ? { "aria-labelledby": i } : void 0,
|
|
372
|
+
children: [
|
|
373
|
+
t ? /* @__PURE__ */ s(
|
|
374
|
+
"span",
|
|
375
|
+
{
|
|
376
|
+
"aria-hidden": "true",
|
|
377
|
+
className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
378
|
+
children: t
|
|
379
|
+
}
|
|
380
|
+
) : null,
|
|
381
|
+
/* @__PURE__ */ N("span", { className: "ds:flex-1 ds:flex ds:flex-col ds:min-w-0", children: [
|
|
382
|
+
/* @__PURE__ */ s(
|
|
383
|
+
"span",
|
|
384
|
+
{
|
|
385
|
+
id: y ? i : void 0,
|
|
386
|
+
className: "ds:truncate",
|
|
387
|
+
children: m
|
|
388
|
+
}
|
|
389
|
+
),
|
|
390
|
+
o ? (
|
|
391
|
+
/* Wraps inside the width the labels set (w-0 + min-w-full),
|
|
392
|
+
rather than widening the menu or being cut off. */
|
|
393
|
+
/* @__PURE__ */ s(
|
|
394
|
+
"span",
|
|
395
|
+
{
|
|
396
|
+
id: k,
|
|
397
|
+
className: "type-meta ds:text-[color:var(--muted-foreground)] ds:w-0 ds:min-w-full ds:whitespace-normal ds:[overflow-wrap:anywhere]",
|
|
398
|
+
children: p
|
|
399
|
+
}
|
|
400
|
+
)
|
|
401
|
+
) : p ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:truncate", children: p }) : null
|
|
402
|
+
] }),
|
|
403
|
+
l ? /* @__PURE__ */ s("span", { className: "ds:ms-auto", children: /* @__PURE__ */ s($, { keys: l, size: "sm" }) }) : a ? /* @__PURE__ */ s(
|
|
404
|
+
"span",
|
|
405
|
+
{
|
|
406
|
+
"aria-hidden": "true",
|
|
407
|
+
className: "ds:ms-auto ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
408
|
+
children: a
|
|
409
|
+
}
|
|
410
|
+
) : null
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
);
|
|
416
|
+
W.displayName = "DropdownMenu.Item";
|
|
417
|
+
const J = b(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ N(
|
|
418
|
+
d.CheckboxItem,
|
|
419
|
+
{
|
|
420
|
+
ref: r,
|
|
421
|
+
className: M({ className: e }),
|
|
422
|
+
...a,
|
|
423
|
+
children: [
|
|
424
|
+
/* @__PURE__ */ s("span", { className: q, children: /* @__PURE__ */ s(d.ItemIndicator, { children: /* @__PURE__ */ s(le, { "aria-hidden": !0, className: "ds:size-4" }) }) }),
|
|
425
|
+
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t })
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
));
|
|
429
|
+
J.displayName = "DropdownMenu.CheckboxItem";
|
|
430
|
+
function Q(e, t) {
|
|
431
|
+
const a = G(F), r = T(t);
|
|
432
|
+
oe(() => {
|
|
433
|
+
r.current = t;
|
|
434
|
+
}), K(() => {
|
|
435
|
+
if (!e || !a) return;
|
|
436
|
+
const l = r.current.kind === "choice" ? {
|
|
437
|
+
kind: "choice",
|
|
438
|
+
read: () => r.current.read(),
|
|
439
|
+
pick: (u) => r.current.pick(
|
|
440
|
+
u
|
|
441
|
+
)
|
|
442
|
+
} : {
|
|
443
|
+
kind: "switch",
|
|
444
|
+
read: () => r.current.read(),
|
|
445
|
+
pick: (u) => r.current.pick(
|
|
446
|
+
u
|
|
447
|
+
)
|
|
448
|
+
};
|
|
449
|
+
return a(e, l);
|
|
450
|
+
}, [e, a]);
|
|
451
|
+
}
|
|
452
|
+
const we = [
|
|
453
|
+
"ds:ms-auto ds:inline-flex ds:items-center ds:shrink-0",
|
|
454
|
+
"ds:h-4 ds:w-7 ds:p-[2px]",
|
|
455
|
+
"ds:rounded-[var(--radius-full)]",
|
|
456
|
+
"ds:border ds:border-[length:var(--border-width-sm)] ds:border-[color:var(--muted-foreground)]",
|
|
457
|
+
"ds:bg-[color:var(--muted)]",
|
|
458
|
+
"ds:[[data-state=checked]_&]:bg-[color:var(--primary)]",
|
|
459
|
+
"ds:[[data-state=checked]_&]:border-[color:var(--primary)]",
|
|
460
|
+
// Thumb slides via justify swap — logical-direction safe, no
|
|
461
|
+
// transform to fight under prefers-reduced-motion.
|
|
462
|
+
"ds:justify-start ds:[[data-state=checked]_&]:justify-end",
|
|
463
|
+
"ds:forced-colors:border-[CanvasText]",
|
|
464
|
+
// HCM strips fills — paint the checked track with the system
|
|
465
|
+
// selection colour so state isn't conveyed by thumb position alone.
|
|
466
|
+
"ds:forced-colors:[[data-state=checked]_&]:bg-[SelectedItem]"
|
|
467
|
+
].join(" "), ye = [
|
|
468
|
+
"ds:block ds:size-3",
|
|
469
|
+
"ds:rounded-[var(--radius-full)]",
|
|
470
|
+
"ds:bg-[color:var(--background)]",
|
|
471
|
+
"ds:border ds:border-[length:var(--border-width-sm)] ds:border-[color:var(--muted-foreground)]",
|
|
472
|
+
"ds:[[data-state=checked]_&]:border-transparent",
|
|
473
|
+
"ds:shadow-[var(--shadow-sm)]",
|
|
474
|
+
"ds:forced-colors:bg-[CanvasText]"
|
|
475
|
+
].join(" "), X = b(({ className: e, children: t, onSelect: a, name: r, ...l }, u) => {
|
|
476
|
+
const { checked: g, onCheckedChange: f, disabled: w } = l;
|
|
477
|
+
return Q(r, {
|
|
478
|
+
kind: "switch",
|
|
479
|
+
read: () => ({ checked: g === !0, disabled: w === !0 }),
|
|
480
|
+
// What a click does, and only when it would change something: the
|
|
481
|
+
// consumer's onSelect, then the new state.
|
|
482
|
+
pick: (c) => {
|
|
483
|
+
c !== (g === !0) && (a == null || a(new Event("menu.itemSelect", { cancelable: !0 })), f == null || f(c));
|
|
484
|
+
}
|
|
485
|
+
}), /* @__PURE__ */ N(
|
|
486
|
+
d.CheckboxItem,
|
|
487
|
+
{
|
|
488
|
+
ref: u,
|
|
489
|
+
className: M({ className: e }),
|
|
490
|
+
"data-setting": r,
|
|
491
|
+
onSelect: (c) => {
|
|
492
|
+
c.preventDefault(), a == null || a(c);
|
|
493
|
+
},
|
|
494
|
+
...l,
|
|
495
|
+
children: [
|
|
496
|
+
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t }),
|
|
497
|
+
/* @__PURE__ */ s("span", { "aria-hidden": "true", className: we, children: /* @__PURE__ */ s("span", { className: ye }) })
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
);
|
|
501
|
+
});
|
|
502
|
+
X.displayName = "DropdownMenu.SwitchItem";
|
|
503
|
+
const Y = be, z = b(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ N(
|
|
504
|
+
d.RadioItem,
|
|
505
|
+
{
|
|
506
|
+
ref: r,
|
|
507
|
+
className: M({ className: e }),
|
|
508
|
+
...a,
|
|
509
|
+
children: [
|
|
510
|
+
/* @__PURE__ */ s("span", { className: q, "aria-hidden": "true", children: /* @__PURE__ */ s(
|
|
511
|
+
"span",
|
|
512
|
+
{
|
|
513
|
+
className: [
|
|
514
|
+
"ds:inline-flex ds:size-4 ds:items-center ds:justify-center ds:shrink-0",
|
|
515
|
+
"ds:rounded-[var(--radius-full)]",
|
|
516
|
+
"ds:border ds:border-[length:var(--border-width-sm)] ds:border-[color:var(--muted-foreground)]",
|
|
517
|
+
"ds:[[data-state=checked]_&]:border-[color:var(--accent)]",
|
|
518
|
+
// Accent on the lit row would vanish, so ring and dot take its ink.
|
|
519
|
+
"ds:not-forced-colors:[[data-highlighted][data-state=checked]_&]:border-[color:var(--accent-foreground)]",
|
|
520
|
+
"ds:forced-colors:border-[CanvasText]"
|
|
521
|
+
].join(" "),
|
|
522
|
+
children: /* @__PURE__ */ s(d.ItemIndicator, { children: /* @__PURE__ */ s(
|
|
523
|
+
"span",
|
|
524
|
+
{
|
|
525
|
+
className: [
|
|
526
|
+
"ds:block ds:size-2 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--accent)]",
|
|
527
|
+
"ds:not-forced-colors:group-data-[highlighted]/menu-row:bg-[color:var(--accent-foreground)]",
|
|
528
|
+
"ds:forced-colors:bg-[CanvasText]"
|
|
529
|
+
].join(" ")
|
|
530
|
+
}
|
|
531
|
+
) })
|
|
532
|
+
}
|
|
533
|
+
) }),
|
|
534
|
+
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t })
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
));
|
|
538
|
+
z.displayName = "DropdownMenu.RadioItem";
|
|
539
|
+
const Z = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
540
|
+
d.Label,
|
|
541
|
+
{
|
|
542
|
+
ref: a,
|
|
543
|
+
className: me({ className: e }),
|
|
544
|
+
...t
|
|
545
|
+
}
|
|
546
|
+
));
|
|
547
|
+
Z.displayName = "DropdownMenu.Label";
|
|
548
|
+
const ee = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(d.Separator, { ref: a, asChild: !0, ...t, children: /* @__PURE__ */ s(
|
|
549
|
+
ne,
|
|
550
|
+
{
|
|
551
|
+
className: ["ds:my-[calc(var(--spacing-xs)/2)]", e ?? ""].filter(Boolean).join(" ")
|
|
552
|
+
}
|
|
553
|
+
) }));
|
|
554
|
+
ee.displayName = "DropdownMenu.Separator";
|
|
555
|
+
const se = b(
|
|
556
|
+
({ keys: e, separator: t = "none" }, a) => /* @__PURE__ */ s("span", { ref: a, className: "ds:ms-auto ds:ps-[var(--spacing-sm)]", children: /* @__PURE__ */ s($, { keys: e, separator: t, size: "sm" }) })
|
|
557
|
+
);
|
|
558
|
+
se.displayName = "DropdownMenu.Shortcut";
|
|
559
|
+
const te = d.Sub, _ = b(({ className: e, startIcon: t, children: a, ...r }, l) => /* @__PURE__ */ N(
|
|
560
|
+
d.SubTrigger,
|
|
561
|
+
{
|
|
562
|
+
ref: l,
|
|
563
|
+
className: M({
|
|
564
|
+
className: [A.open, e].filter(Boolean).join(" ")
|
|
565
|
+
}),
|
|
566
|
+
...r,
|
|
567
|
+
children: [
|
|
568
|
+
t ? /* @__PURE__ */ s(
|
|
569
|
+
"span",
|
|
570
|
+
{
|
|
571
|
+
"aria-hidden": "true",
|
|
572
|
+
className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
573
|
+
children: t
|
|
574
|
+
}
|
|
575
|
+
) : null,
|
|
576
|
+
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: a }),
|
|
577
|
+
/* @__PURE__ */ s(
|
|
578
|
+
ce,
|
|
579
|
+
{
|
|
580
|
+
"aria-hidden": !0,
|
|
581
|
+
className: "ds:ms-auto ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
|
|
582
|
+
}
|
|
583
|
+
)
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
));
|
|
587
|
+
_.displayName = "DropdownMenu.SubTrigger";
|
|
588
|
+
const P = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(d.Portal, { children: /* @__PURE__ */ s(E, { popupRef: a, children: (r) => /* @__PURE__ */ s(
|
|
589
|
+
d.SubContent,
|
|
590
|
+
{
|
|
591
|
+
ref: r,
|
|
592
|
+
sideOffset: 8,
|
|
593
|
+
"data-component": "dropdown-menu-sub-content",
|
|
594
|
+
className: L({ className: e }),
|
|
595
|
+
...t
|
|
596
|
+
}
|
|
597
|
+
) }) }));
|
|
598
|
+
P.displayName = "DropdownMenu.SubContent";
|
|
599
|
+
function ae({
|
|
600
|
+
label: e,
|
|
601
|
+
value: t,
|
|
602
|
+
onValueChange: a,
|
|
603
|
+
options: r,
|
|
604
|
+
startIcon: l,
|
|
605
|
+
disabled: u,
|
|
606
|
+
closeOnSelect: g = !1,
|
|
607
|
+
name: f,
|
|
608
|
+
className: w
|
|
609
|
+
}) {
|
|
610
|
+
const c = r.find((n) => n.value === t);
|
|
611
|
+
return Q(f, {
|
|
612
|
+
kind: "choice",
|
|
613
|
+
read: () => ({
|
|
614
|
+
value: t,
|
|
615
|
+
options: r,
|
|
616
|
+
disabled: u === !0,
|
|
617
|
+
closeOnSelect: g
|
|
618
|
+
}),
|
|
619
|
+
pick: (n) => a(n)
|
|
620
|
+
}), /* @__PURE__ */ N(te, { children: [
|
|
621
|
+
/* @__PURE__ */ s(
|
|
622
|
+
_,
|
|
623
|
+
{
|
|
624
|
+
startIcon: l,
|
|
625
|
+
disabled: u,
|
|
626
|
+
className: w,
|
|
627
|
+
"data-component": "dropdown-menu-choice",
|
|
628
|
+
"data-value": t,
|
|
629
|
+
"data-setting": f,
|
|
630
|
+
children: /* @__PURE__ */ N("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
631
|
+
/* @__PURE__ */ s("span", { className: "ds:truncate", children: e }),
|
|
632
|
+
c ? /* @__PURE__ */ s("span", { className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current", children: c.label }) : null
|
|
633
|
+
] })
|
|
634
|
+
}
|
|
635
|
+
),
|
|
636
|
+
/* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
637
|
+
Y,
|
|
638
|
+
{
|
|
639
|
+
value: t,
|
|
640
|
+
onValueChange: (n) => a(n),
|
|
641
|
+
children: r.map((n) => /* @__PURE__ */ s(
|
|
642
|
+
z,
|
|
643
|
+
{
|
|
644
|
+
value: n.value,
|
|
645
|
+
disabled: n.disabled,
|
|
646
|
+
onSelect: g ? void 0 : (m) => m.preventDefault(),
|
|
647
|
+
children: n.label
|
|
648
|
+
},
|
|
649
|
+
n.value
|
|
650
|
+
))
|
|
651
|
+
}
|
|
652
|
+
) })
|
|
653
|
+
] });
|
|
654
|
+
}
|
|
655
|
+
ae.displayName = "DropdownMenu.ChoiceSub";
|
|
656
|
+
const _e = {
|
|
657
|
+
Root: B,
|
|
658
|
+
Trigger: fe,
|
|
659
|
+
Portal: ge,
|
|
660
|
+
Content: U,
|
|
661
|
+
Group: ve,
|
|
662
|
+
Item: W,
|
|
663
|
+
CheckboxItem: J,
|
|
664
|
+
SwitchItem: X,
|
|
665
|
+
RadioGroup: Y,
|
|
666
|
+
RadioItem: z,
|
|
667
|
+
Label: Z,
|
|
668
|
+
Separator: ee,
|
|
669
|
+
Shortcut: se,
|
|
670
|
+
Sub: te,
|
|
671
|
+
SubTrigger: _,
|
|
672
|
+
SubContent: P,
|
|
673
|
+
ChoiceSub: ae
|
|
674
|
+
};
|
|
675
|
+
export {
|
|
676
|
+
_e as D,
|
|
677
|
+
pe as d
|
|
678
|
+
};
|
|
679
|
+
//# sourceMappingURL=dropdown-menu-Dw6sgQwJ.js.map
|
|
@@ -7,11 +7,11 @@ import { R as C } from "./radio-BZQs6_36.js";
|
|
|
7
7
|
import { R as z } from "./radio-group-ChIKyeSJ.js";
|
|
8
8
|
import { F as w } from "./form-field-CyHfOVKF.js";
|
|
9
9
|
import { D as T } from "./date-picker-DBVTj6lO.js";
|
|
10
|
-
import { N as Y } from "./number-input-
|
|
11
|
-
import { C as U } from "./card-
|
|
10
|
+
import { N as Y } from "./number-input-DUSvP7Dq.js";
|
|
11
|
+
import { C as U } from "./card-n6W6LW-N.js";
|
|
12
12
|
import { B as W } from "./badge-BUk4RjTS.js";
|
|
13
13
|
import { I as ce } from "./insert-result-CDMMt7q8.js";
|
|
14
|
-
import { D as x, r as ue, c as me, e as pe, f as he, A as ge, h as fe, i as ye } from "./antenatal-schedule-timeline-
|
|
14
|
+
import { D as x, r as ue, c as me, e as pe, f as he, A as ge, h as fe, i as ye } from "./antenatal-schedule-timeline-86YVlMYJ.js";
|
|
15
15
|
import { a as J } from "./date-picker-variants-J1EeAhIH.js";
|
|
16
16
|
import { p as De } from "./parseISO-Dl4T9peU.js";
|
|
17
17
|
import { f as be } from "./format-ql5WTsYT.js";
|
|
@@ -568,4 +568,4 @@ Ae.displayName = "DueDateCalculator";
|
|
|
568
568
|
export {
|
|
569
569
|
Ae as D
|
|
570
570
|
};
|
|
571
|
-
//# sourceMappingURL=due-date-calculator-
|
|
571
|
+
//# sourceMappingURL=due-date-calculator-c1NJPw9F.js.map
|