@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
|
@@ -1,595 +0,0 @@
|
|
|
1
|
-
import { jsxs as b, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as m, useContext as P, useRef as M, useEffect as O, useMemo as _, useLayoutEffect as ne, createContext as G } from "react";
|
|
3
|
-
import * as o from "@radix-ui/react-dropdown-menu";
|
|
4
|
-
import { c as D } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { S as oe } from "./separator-Bdc9bqoJ.js";
|
|
6
|
-
import { K } 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 ae } from "./use-controllable-state-BiY4xTzM.js";
|
|
10
|
-
import { u as de } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { C as ie } from "./chevron-right-I9AeSxH2.js";
|
|
12
|
-
import { C as ce } from "./check-DrFSN__t.js";
|
|
13
|
-
import { a as le } from "./use-direction-Dp8h70PP.js";
|
|
14
|
-
const ue = {
|
|
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
|
-
}, q = 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
|
-
), R = 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
|
-
"ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--foreground)]",
|
|
163
|
-
"ds:cursor-pointer ds:select-none ds:outline-none",
|
|
164
|
-
// Radix highlights on hover and on keyboard focus alike.
|
|
165
|
-
A.highlighted,
|
|
166
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
167
|
-
"ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
|
|
168
|
-
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
169
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
170
|
-
// Disabled
|
|
171
|
-
"ds:data-[disabled]:opacity-50 ds:data-[disabled]:cursor-not-allowed",
|
|
172
|
-
"ds:data-[disabled]:pointer-events-none"
|
|
173
|
-
].join(" ")
|
|
174
|
-
), pe = D(
|
|
175
|
-
[
|
|
176
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
177
|
-
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-2xs)]",
|
|
178
|
-
// Quiet sentence-case caption — the shouty uppercase eyebrow made
|
|
179
|
-
// every menu read as a form. Groups should lean on separators first
|
|
180
|
-
// and reach for a Label only when the grouping is genuinely unclear.
|
|
181
|
-
"ds:text-[length:var(--font-size-xs)]",
|
|
182
|
-
"ds:font-[var(--font-weight-medium)]",
|
|
183
|
-
"ds:text-[color:var(--muted-foreground)]",
|
|
184
|
-
"ds:select-none"
|
|
185
|
-
].join(" ")
|
|
186
|
-
), L = "ds:inline-flex ds:items-center ds:justify-center ds:size-4 ds:shrink-0", V = G(
|
|
187
|
-
void 0
|
|
188
|
-
), me = () => new Promise((e) => {
|
|
189
|
-
typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => e()) : setTimeout(e, 16);
|
|
190
|
-
}), $ = G(void 0), H = ({
|
|
191
|
-
dir: e,
|
|
192
|
-
id: t,
|
|
193
|
-
open: r,
|
|
194
|
-
defaultOpen: n,
|
|
195
|
-
onOpenChange: a,
|
|
196
|
-
...c
|
|
197
|
-
}) => {
|
|
198
|
-
const h = le(), [p, k] = ae({
|
|
199
|
-
value: r,
|
|
200
|
-
defaultValue: n ?? !1,
|
|
201
|
-
onChange: a
|
|
202
|
-
}), l = p ?? !1, d = M(l);
|
|
203
|
-
O(() => {
|
|
204
|
-
d.current = l;
|
|
205
|
-
}, [l]);
|
|
206
|
-
const v = M(/* @__PURE__ */ new Map()), S = M(0), te = _(
|
|
207
|
-
() => (f, N) => (v.current.set(f, N), () => {
|
|
208
|
-
v.current.get(f) === N && v.current.delete(f);
|
|
209
|
-
}),
|
|
210
|
-
[]
|
|
211
|
-
), re = _(() => {
|
|
212
|
-
const f = (i) => {
|
|
213
|
-
d.current = i, k(i);
|
|
214
|
-
}, N = async (i, u, g) => {
|
|
215
|
-
const x = !d.current;
|
|
216
|
-
x && f(!0);
|
|
217
|
-
const C = S.current;
|
|
218
|
-
try {
|
|
219
|
-
let w = v.current.get(i);
|
|
220
|
-
for (let y = 0; !w && y < 30; y += 1)
|
|
221
|
-
await me(), w = v.current.get(i);
|
|
222
|
-
if (!w || w.kind !== u)
|
|
223
|
-
throw new Error(`No ${u} setting named "${i}" in this menu`);
|
|
224
|
-
g(w);
|
|
225
|
-
} finally {
|
|
226
|
-
x && S.current === C && f(!1);
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
return {
|
|
230
|
-
getIsOpen: () => d.current,
|
|
231
|
-
open: () => {
|
|
232
|
-
S.current += 1, f(!0);
|
|
233
|
-
},
|
|
234
|
-
close: () => {
|
|
235
|
-
S.current += 1, f(!1);
|
|
236
|
-
},
|
|
237
|
-
getSettings: () => [...v.current].map(([i, u]) => {
|
|
238
|
-
if (u.kind === "choice") {
|
|
239
|
-
const { value: C, options: w, disabled: y } = u.read();
|
|
240
|
-
return {
|
|
241
|
-
setting: i,
|
|
242
|
-
kind: "choice",
|
|
243
|
-
value: C,
|
|
244
|
-
options: w.map((T) => T.value),
|
|
245
|
-
disabled: y
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
const { checked: g, disabled: x } = u.read();
|
|
249
|
-
return { setting: i, kind: "switch", checked: g, disabled: x };
|
|
250
|
-
}),
|
|
251
|
-
setValue: (i, u) => N(i, "choice", (g) => {
|
|
252
|
-
const { options: x, disabled: C, closeOnSelect: w } = g.read(), y = x.find((T) => T.value === u);
|
|
253
|
-
if (C || !y || y.disabled)
|
|
254
|
-
throw new Error(
|
|
255
|
-
`"${u}" is not an option that "${i}" can take now`
|
|
256
|
-
);
|
|
257
|
-
g.pick(u), w && f(!1);
|
|
258
|
-
}),
|
|
259
|
-
setChecked: (i, u) => N(i, "switch", (g) => {
|
|
260
|
-
if (g.read().disabled)
|
|
261
|
-
throw new Error(`"${i}" is disabled`);
|
|
262
|
-
g.pick(u);
|
|
263
|
-
})
|
|
264
|
-
};
|
|
265
|
-
}, [k]);
|
|
266
|
-
return de(ue, re, t), /* @__PURE__ */ s($.Provider, { value: t, children: /* @__PURE__ */ s(V.Provider, { value: te, children: /* @__PURE__ */ s(
|
|
267
|
-
o.Root,
|
|
268
|
-
{
|
|
269
|
-
dir: e ?? h,
|
|
270
|
-
open: l,
|
|
271
|
-
onOpenChange: k,
|
|
272
|
-
...c
|
|
273
|
-
}
|
|
274
|
-
) }) });
|
|
275
|
-
};
|
|
276
|
-
H.displayName = "DropdownMenu.Root";
|
|
277
|
-
const he = o.Trigger, fe = o.Portal, ge = o.Group, we = o.RadioGroup, F = m(({ className: e, sideOffset: t = 8, ...r }, n) => {
|
|
278
|
-
const a = P($);
|
|
279
|
-
return /* @__PURE__ */ s(o.Portal, { children: /* @__PURE__ */ s(E, { popupRef: n, children: (c) => /* @__PURE__ */ s(
|
|
280
|
-
o.Content,
|
|
281
|
-
{
|
|
282
|
-
ref: c,
|
|
283
|
-
sideOffset: t,
|
|
284
|
-
className: q({ className: e }),
|
|
285
|
-
"data-component": "dropdown-menu",
|
|
286
|
-
"data-component-id": a,
|
|
287
|
-
...r
|
|
288
|
-
}
|
|
289
|
-
) }) });
|
|
290
|
-
});
|
|
291
|
-
F.displayName = "DropdownMenu.Content";
|
|
292
|
-
const B = m(
|
|
293
|
-
({
|
|
294
|
-
className: e,
|
|
295
|
-
startIcon: t,
|
|
296
|
-
endIcon: r,
|
|
297
|
-
description: n,
|
|
298
|
-
shortcut: a,
|
|
299
|
-
children: c,
|
|
300
|
-
...h
|
|
301
|
-
}, p) => /* @__PURE__ */ b(
|
|
302
|
-
o.Item,
|
|
303
|
-
{
|
|
304
|
-
ref: p,
|
|
305
|
-
className: R({ className: e }),
|
|
306
|
-
...h,
|
|
307
|
-
children: [
|
|
308
|
-
t ? /* @__PURE__ */ s(
|
|
309
|
-
"span",
|
|
310
|
-
{
|
|
311
|
-
"aria-hidden": "true",
|
|
312
|
-
className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
313
|
-
children: t
|
|
314
|
-
}
|
|
315
|
-
) : null,
|
|
316
|
-
/* @__PURE__ */ b("span", { className: "ds:flex-1 ds:flex ds:flex-col ds:min-w-0", children: [
|
|
317
|
-
/* @__PURE__ */ s("span", { className: "ds:truncate", children: c }),
|
|
318
|
-
n ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:truncate", children: n }) : null
|
|
319
|
-
] }),
|
|
320
|
-
a ? /* @__PURE__ */ s("span", { className: "ds:ms-auto", children: /* @__PURE__ */ s(K, { keys: a, size: "sm" }) }) : r ? /* @__PURE__ */ s(
|
|
321
|
-
"span",
|
|
322
|
-
{
|
|
323
|
-
"aria-hidden": "true",
|
|
324
|
-
className: "ds:ms-auto ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
325
|
-
children: r
|
|
326
|
-
}
|
|
327
|
-
) : null
|
|
328
|
-
]
|
|
329
|
-
}
|
|
330
|
-
)
|
|
331
|
-
);
|
|
332
|
-
B.displayName = "DropdownMenu.Item";
|
|
333
|
-
const U = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ b(
|
|
334
|
-
o.CheckboxItem,
|
|
335
|
-
{
|
|
336
|
-
ref: n,
|
|
337
|
-
className: R({ className: e }),
|
|
338
|
-
...r,
|
|
339
|
-
children: [
|
|
340
|
-
/* @__PURE__ */ s("span", { className: L, children: /* @__PURE__ */ s(o.ItemIndicator, { children: /* @__PURE__ */ s(ce, { "aria-hidden": !0, className: "ds:size-4" }) }) }),
|
|
341
|
-
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t })
|
|
342
|
-
]
|
|
343
|
-
}
|
|
344
|
-
));
|
|
345
|
-
U.displayName = "DropdownMenu.CheckboxItem";
|
|
346
|
-
function W(e, t) {
|
|
347
|
-
const r = P(V), n = M(t);
|
|
348
|
-
ne(() => {
|
|
349
|
-
n.current = t;
|
|
350
|
-
}), O(() => {
|
|
351
|
-
if (!e || !r) return;
|
|
352
|
-
const a = n.current.kind === "choice" ? {
|
|
353
|
-
kind: "choice",
|
|
354
|
-
read: () => n.current.read(),
|
|
355
|
-
pick: (c) => n.current.pick(
|
|
356
|
-
c
|
|
357
|
-
)
|
|
358
|
-
} : {
|
|
359
|
-
kind: "switch",
|
|
360
|
-
read: () => n.current.read(),
|
|
361
|
-
pick: (c) => n.current.pick(
|
|
362
|
-
c
|
|
363
|
-
)
|
|
364
|
-
};
|
|
365
|
-
return r(e, a);
|
|
366
|
-
}, [e, r]);
|
|
367
|
-
}
|
|
368
|
-
const ve = [
|
|
369
|
-
"ds:ms-auto ds:inline-flex ds:items-center ds:shrink-0",
|
|
370
|
-
"ds:h-4 ds:w-7 ds:p-[2px]",
|
|
371
|
-
"ds:rounded-[var(--radius-full)]",
|
|
372
|
-
"ds:border ds:border-[length:var(--border-width-sm)] ds:border-[color:var(--muted-foreground)]",
|
|
373
|
-
"ds:bg-[color:var(--muted)]",
|
|
374
|
-
"ds:[[data-state=checked]_&]:bg-[color:var(--primary)]",
|
|
375
|
-
"ds:[[data-state=checked]_&]:border-[color:var(--primary)]",
|
|
376
|
-
// Thumb slides via justify swap — logical-direction safe, no
|
|
377
|
-
// transform to fight under prefers-reduced-motion.
|
|
378
|
-
"ds:justify-start ds:[[data-state=checked]_&]:justify-end",
|
|
379
|
-
"ds:forced-colors:border-[CanvasText]",
|
|
380
|
-
// HCM strips fills — paint the checked track with the system
|
|
381
|
-
// selection colour so state isn't conveyed by thumb position alone.
|
|
382
|
-
"ds:forced-colors:[[data-state=checked]_&]:bg-[SelectedItem]"
|
|
383
|
-
].join(" "), be = [
|
|
384
|
-
"ds:block ds:size-3",
|
|
385
|
-
"ds:rounded-[var(--radius-full)]",
|
|
386
|
-
"ds:bg-[color:var(--background)]",
|
|
387
|
-
"ds:border ds:border-[length:var(--border-width-sm)] ds:border-[color:var(--muted-foreground)]",
|
|
388
|
-
"ds:[[data-state=checked]_&]:border-transparent",
|
|
389
|
-
"ds:shadow-[var(--shadow-sm)]",
|
|
390
|
-
"ds:forced-colors:bg-[CanvasText]"
|
|
391
|
-
].join(" "), J = m(({ className: e, children: t, onSelect: r, name: n, ...a }, c) => {
|
|
392
|
-
const { checked: h, onCheckedChange: p, disabled: k } = a;
|
|
393
|
-
return W(n, {
|
|
394
|
-
kind: "switch",
|
|
395
|
-
read: () => ({ checked: h === !0, disabled: k === !0 }),
|
|
396
|
-
// What a click does, and only when it would change something: the
|
|
397
|
-
// consumer's onSelect, then the new state.
|
|
398
|
-
pick: (l) => {
|
|
399
|
-
l !== (h === !0) && (r == null || r(new Event("menu.itemSelect", { cancelable: !0 })), p == null || p(l));
|
|
400
|
-
}
|
|
401
|
-
}), /* @__PURE__ */ b(
|
|
402
|
-
o.CheckboxItem,
|
|
403
|
-
{
|
|
404
|
-
ref: c,
|
|
405
|
-
className: R({ className: e }),
|
|
406
|
-
"data-setting": n,
|
|
407
|
-
onSelect: (l) => {
|
|
408
|
-
l.preventDefault(), r == null || r(l);
|
|
409
|
-
},
|
|
410
|
-
...a,
|
|
411
|
-
children: [
|
|
412
|
-
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t }),
|
|
413
|
-
/* @__PURE__ */ s("span", { "aria-hidden": "true", className: ve, children: /* @__PURE__ */ s("span", { className: be }) })
|
|
414
|
-
]
|
|
415
|
-
}
|
|
416
|
-
);
|
|
417
|
-
});
|
|
418
|
-
J.displayName = "DropdownMenu.SwitchItem";
|
|
419
|
-
const Q = we, I = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ b(
|
|
420
|
-
o.RadioItem,
|
|
421
|
-
{
|
|
422
|
-
ref: n,
|
|
423
|
-
className: R({ className: e }),
|
|
424
|
-
...r,
|
|
425
|
-
children: [
|
|
426
|
-
/* @__PURE__ */ s("span", { className: L, "aria-hidden": "true", children: /* @__PURE__ */ s(
|
|
427
|
-
"span",
|
|
428
|
-
{
|
|
429
|
-
className: [
|
|
430
|
-
"ds:inline-flex ds:size-4 ds:items-center ds:justify-center ds:shrink-0",
|
|
431
|
-
"ds:rounded-[var(--radius-full)]",
|
|
432
|
-
"ds:border ds:border-[length:var(--border-width-sm)] ds:border-[color:var(--muted-foreground)]",
|
|
433
|
-
"ds:[[data-state=checked]_&]:border-[color:var(--accent)]",
|
|
434
|
-
// Accent on the lit row would vanish, so ring and dot take its ink.
|
|
435
|
-
"ds:not-forced-colors:[[data-highlighted][data-state=checked]_&]:border-[color:var(--accent-foreground)]",
|
|
436
|
-
"ds:forced-colors:border-[CanvasText]"
|
|
437
|
-
].join(" "),
|
|
438
|
-
children: /* @__PURE__ */ s(o.ItemIndicator, { children: /* @__PURE__ */ s(
|
|
439
|
-
"span",
|
|
440
|
-
{
|
|
441
|
-
className: [
|
|
442
|
-
"ds:block ds:size-2 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--accent)]",
|
|
443
|
-
"ds:not-forced-colors:group-data-[highlighted]/menu-row:bg-[color:var(--accent-foreground)]",
|
|
444
|
-
"ds:forced-colors:bg-[CanvasText]"
|
|
445
|
-
].join(" ")
|
|
446
|
-
}
|
|
447
|
-
) })
|
|
448
|
-
}
|
|
449
|
-
) }),
|
|
450
|
-
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t })
|
|
451
|
-
]
|
|
452
|
-
}
|
|
453
|
-
));
|
|
454
|
-
I.displayName = "DropdownMenu.RadioItem";
|
|
455
|
-
const X = m(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
456
|
-
o.Label,
|
|
457
|
-
{
|
|
458
|
-
ref: r,
|
|
459
|
-
className: pe({ className: e }),
|
|
460
|
-
...t
|
|
461
|
-
}
|
|
462
|
-
));
|
|
463
|
-
X.displayName = "DropdownMenu.Label";
|
|
464
|
-
const Y = m(({ className: e, ...t }, r) => /* @__PURE__ */ s(o.Separator, { ref: r, asChild: !0, ...t, children: /* @__PURE__ */ s(
|
|
465
|
-
oe,
|
|
466
|
-
{
|
|
467
|
-
className: ["ds:my-[calc(var(--spacing-xs)/2)]", e ?? ""].filter(Boolean).join(" ")
|
|
468
|
-
}
|
|
469
|
-
) }));
|
|
470
|
-
Y.displayName = "DropdownMenu.Separator";
|
|
471
|
-
const Z = m(
|
|
472
|
-
({ keys: e, separator: t = "none" }, r) => /* @__PURE__ */ s("span", { ref: r, className: "ds:ms-auto ds:ps-[var(--spacing-sm)]", children: /* @__PURE__ */ s(K, { keys: e, separator: t, size: "sm" }) })
|
|
473
|
-
);
|
|
474
|
-
Z.displayName = "DropdownMenu.Shortcut";
|
|
475
|
-
const ee = o.Sub, j = m(({ className: e, startIcon: t, children: r, ...n }, a) => /* @__PURE__ */ b(
|
|
476
|
-
o.SubTrigger,
|
|
477
|
-
{
|
|
478
|
-
ref: a,
|
|
479
|
-
className: R({
|
|
480
|
-
className: [A.open, e].filter(Boolean).join(" ")
|
|
481
|
-
}),
|
|
482
|
-
...n,
|
|
483
|
-
children: [
|
|
484
|
-
t ? /* @__PURE__ */ s(
|
|
485
|
-
"span",
|
|
486
|
-
{
|
|
487
|
-
"aria-hidden": "true",
|
|
488
|
-
className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
489
|
-
children: t
|
|
490
|
-
}
|
|
491
|
-
) : null,
|
|
492
|
-
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: r }),
|
|
493
|
-
/* @__PURE__ */ s(
|
|
494
|
-
ie,
|
|
495
|
-
{
|
|
496
|
-
"aria-hidden": !0,
|
|
497
|
-
className: "ds:ms-auto ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
|
|
498
|
-
}
|
|
499
|
-
)
|
|
500
|
-
]
|
|
501
|
-
}
|
|
502
|
-
));
|
|
503
|
-
j.displayName = "DropdownMenu.SubTrigger";
|
|
504
|
-
const z = m(({ className: e, ...t }, r) => /* @__PURE__ */ s(o.Portal, { children: /* @__PURE__ */ s(E, { popupRef: r, children: (n) => /* @__PURE__ */ s(
|
|
505
|
-
o.SubContent,
|
|
506
|
-
{
|
|
507
|
-
ref: n,
|
|
508
|
-
sideOffset: 8,
|
|
509
|
-
"data-component": "dropdown-menu-sub-content",
|
|
510
|
-
className: q({ className: e }),
|
|
511
|
-
...t
|
|
512
|
-
}
|
|
513
|
-
) }) }));
|
|
514
|
-
z.displayName = "DropdownMenu.SubContent";
|
|
515
|
-
function se({
|
|
516
|
-
label: e,
|
|
517
|
-
value: t,
|
|
518
|
-
onValueChange: r,
|
|
519
|
-
options: n,
|
|
520
|
-
startIcon: a,
|
|
521
|
-
disabled: c,
|
|
522
|
-
closeOnSelect: h = !1,
|
|
523
|
-
name: p,
|
|
524
|
-
className: k
|
|
525
|
-
}) {
|
|
526
|
-
const l = n.find((d) => d.value === t);
|
|
527
|
-
return W(p, {
|
|
528
|
-
kind: "choice",
|
|
529
|
-
read: () => ({
|
|
530
|
-
value: t,
|
|
531
|
-
options: n,
|
|
532
|
-
disabled: c === !0,
|
|
533
|
-
closeOnSelect: h
|
|
534
|
-
}),
|
|
535
|
-
pick: (d) => r(d)
|
|
536
|
-
}), /* @__PURE__ */ b(ee, { children: [
|
|
537
|
-
/* @__PURE__ */ s(
|
|
538
|
-
j,
|
|
539
|
-
{
|
|
540
|
-
startIcon: a,
|
|
541
|
-
disabled: c,
|
|
542
|
-
className: k,
|
|
543
|
-
"data-component": "dropdown-menu-choice",
|
|
544
|
-
"data-value": t,
|
|
545
|
-
"data-setting": p,
|
|
546
|
-
children: /* @__PURE__ */ b("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
547
|
-
/* @__PURE__ */ s("span", { className: "ds:truncate", children: e }),
|
|
548
|
-
l ? /* @__PURE__ */ s("span", { className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current", children: l.label }) : null
|
|
549
|
-
] })
|
|
550
|
-
}
|
|
551
|
-
),
|
|
552
|
-
/* @__PURE__ */ s(z, { children: /* @__PURE__ */ s(
|
|
553
|
-
Q,
|
|
554
|
-
{
|
|
555
|
-
value: t,
|
|
556
|
-
onValueChange: (d) => r(d),
|
|
557
|
-
children: n.map((d) => /* @__PURE__ */ s(
|
|
558
|
-
I,
|
|
559
|
-
{
|
|
560
|
-
value: d.value,
|
|
561
|
-
disabled: d.disabled,
|
|
562
|
-
onSelect: h ? void 0 : (v) => v.preventDefault(),
|
|
563
|
-
children: d.label
|
|
564
|
-
},
|
|
565
|
-
d.value
|
|
566
|
-
))
|
|
567
|
-
}
|
|
568
|
-
) })
|
|
569
|
-
] });
|
|
570
|
-
}
|
|
571
|
-
se.displayName = "DropdownMenu.ChoiceSub";
|
|
572
|
-
const ze = {
|
|
573
|
-
Root: H,
|
|
574
|
-
Trigger: he,
|
|
575
|
-
Portal: fe,
|
|
576
|
-
Content: F,
|
|
577
|
-
Group: ge,
|
|
578
|
-
Item: B,
|
|
579
|
-
CheckboxItem: U,
|
|
580
|
-
SwitchItem: J,
|
|
581
|
-
RadioGroup: Q,
|
|
582
|
-
RadioItem: I,
|
|
583
|
-
Label: X,
|
|
584
|
-
Separator: Y,
|
|
585
|
-
Shortcut: Z,
|
|
586
|
-
Sub: ee,
|
|
587
|
-
SubTrigger: j,
|
|
588
|
-
SubContent: z,
|
|
589
|
-
ChoiceSub: se
|
|
590
|
-
};
|
|
591
|
-
export {
|
|
592
|
-
ze as D,
|
|
593
|
-
ue as d
|
|
594
|
-
};
|
|
595
|
-
//# sourceMappingURL=dropdown-menu-CqxBthww.js.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { n as s } from "./intl-locale-FWh-Y5_3.js";
|
|
2
|
-
const n = /* @__PURE__ */ new Set([
|
|
3
|
-
"BIF",
|
|
4
|
-
"CLP",
|
|
5
|
-
"DJF",
|
|
6
|
-
"GNF",
|
|
7
|
-
"IDR",
|
|
8
|
-
"JPY",
|
|
9
|
-
"KMF",
|
|
10
|
-
"KRW",
|
|
11
|
-
"MGA",
|
|
12
|
-
"PYG",
|
|
13
|
-
"RWF",
|
|
14
|
-
"UGX",
|
|
15
|
-
"VND",
|
|
16
|
-
"VUV",
|
|
17
|
-
"XAF",
|
|
18
|
-
"XOF",
|
|
19
|
-
"XPF"
|
|
20
|
-
]);
|
|
21
|
-
function u(r, o, a) {
|
|
22
|
-
const t = o.toUpperCase(), e = n.has(t) ? r : r / 100;
|
|
23
|
-
try {
|
|
24
|
-
return new Intl.NumberFormat(s(a), {
|
|
25
|
-
style: "currency",
|
|
26
|
-
currency: t
|
|
27
|
-
}).format(e);
|
|
28
|
-
} catch {
|
|
29
|
-
return `${n.has(t) ? String(e) : e.toFixed(2)} ${t}`;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function F(r, o, a, t) {
|
|
33
|
-
return r === 0 ? t : u(r, o, a);
|
|
34
|
-
}
|
|
35
|
-
function f(r, o, a, t = {}) {
|
|
36
|
-
const e = o.toUpperCase(), c = n.has(e) ? r : r / 100;
|
|
37
|
-
try {
|
|
38
|
-
return new Intl.NumberFormat(s(a), {
|
|
39
|
-
style: "currency",
|
|
40
|
-
currency: e,
|
|
41
|
-
...t
|
|
42
|
-
}).formatToParts(c);
|
|
43
|
-
} catch {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
u as a,
|
|
49
|
-
F as b,
|
|
50
|
-
f
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=format-price-BcFBa-WP.js.map
|