@alfadocs/ui-kit 1.114.0 → 1.116.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-Bs9ELM3l.js +6 -0
- package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-gEXqU5i5.js} +8 -8
- package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
- package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
- package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
- package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
- package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
- package/dist/_chunks/data-table-B47iw2CO.js +1694 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-B-DUtfw3.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
- package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
- package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
- package/dist/_chunks/grid-context-jn9y8tNE.js +46 -0
- package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
- package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/icon-button-group-Ca2VkXy5.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-BFfLg7c-.js} +7 -7
- package/dist/_chunks/link-cell-renderer-D-Io828l.js +800 -0
- package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CBHNg8x-.js} +5 -5
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-DexbfrFo.js} +3 -3
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-CtcTW1PN.js +869 -0
- package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
- package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
- package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
- package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-DgUjtqpX.js} +386 -410
- package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
- package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
- 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-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.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-D-u8_YSr.js} +2 -2
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +3359 -1569
- package/dist/agent-i18n/en.json +100 -2
- package/dist/components/_shared/accessible-target.d.ts +12 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-permission-notice/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 +47 -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 +34 -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/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/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/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/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/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/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +101 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +110 -0
- package/dist/components/data-grid/editors.d.ts +14 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +11 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +68 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1396 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/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/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/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +7 -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/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/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-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-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/sidebar/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/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/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/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/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/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/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 +36 -2
- package/dist/i18n/locales/ar.d.ts +342 -0
- package/dist/i18n/locales/ar.js +344 -2
- package/dist/i18n/locales/de.d.ts +342 -0
- package/dist/i18n/locales/de.js +344 -2
- package/dist/i18n/locales/el.d.ts +342 -0
- package/dist/i18n/locales/el.js +344 -2
- package/dist/i18n/locales/en.d.ts +342 -0
- package/dist/i18n/locales/en.js +345 -2
- package/dist/i18n/locales/es.d.ts +342 -0
- package/dist/i18n/locales/es.js +344 -2
- package/dist/i18n/locales/fr.d.ts +342 -0
- package/dist/i18n/locales/fr.js +344 -2
- package/dist/i18n/locales/hi.d.ts +342 -0
- package/dist/i18n/locales/hi.js +344 -2
- package/dist/i18n/locales/it.d.ts +342 -0
- package/dist/i18n/locales/it.js +344 -2
- package/dist/i18n/locales/ja.d.ts +342 -0
- package/dist/i18n/locales/ja.js +344 -2
- package/dist/i18n/locales/nl.d.ts +342 -0
- package/dist/i18n/locales/nl.js +344 -2
- package/dist/i18n/locales/pl.d.ts +342 -0
- package/dist/i18n/locales/pl.js +344 -2
- package/dist/i18n/locales/pt.d.ts +342 -0
- package/dist/i18n/locales/pt.js +344 -2
- package/dist/i18n/locales/ro.d.ts +342 -0
- package/dist/i18n/locales/ro.js +344 -2
- package/dist/i18n/locales/ru.d.ts +342 -0
- package/dist/i18n/locales/ru.js +344 -2
- package/dist/i18n/locales/sq.d.ts +342 -0
- package/dist/i18n/locales/sq.js +344 -2
- package/dist/i18n/locales/sv.d.ts +342 -0
- package/dist/i18n/locales/sv.js +344 -2
- package/dist/i18n/locales/tr.d.ts +342 -0
- package/dist/i18n/locales/tr.js +344 -2
- package/dist/i18n/locales/zh.d.ts +342 -0
- package/dist/i18n/locales/zh.js +344 -2
- package/dist/index.js +1305 -1241
- package/dist/locales/ar.json +344 -2
- package/dist/locales/de.json +344 -2
- package/dist/locales/el.json +344 -2
- package/dist/locales/en.json +344 -2
- package/dist/locales/es.json +344 -2
- package/dist/locales/fr.json +344 -2
- package/dist/locales/hi.json +344 -2
- package/dist/locales/it.json +344 -2
- package/dist/locales/ja.json +344 -2
- package/dist/locales/nl.json +344 -2
- package/dist/locales/pl.json +344 -2
- package/dist/locales/pt.json +344 -2
- package/dist/locales/ro.json +344 -2
- package/dist/locales/ru.json +344 -2
- package/dist/locales/sq.json +344 -2
- package/dist/locales/sv.json +344 -2
- package/dist/locales/tr.json +344 -2
- package/dist/locales/zh.json +344 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/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/registration-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 +21 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
import { jsxs as ot, jsx as U } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as ce, forwardRef as ut, useId as lt, useRef as q, useCallback as E, useState as ue, useEffect as le } from "react";
|
|
3
|
+
import { c as fe } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as ct } from "react-i18next";
|
|
5
|
+
import { u as dt } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
+
import { u as ft, a as mt } from "./form-field-context-DtiROUJV.js";
|
|
7
|
+
import { c as pt } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { shiftDecimal as J, toPlainString as Ce } from "../decimal/index.js";
|
|
9
|
+
import { n as vt, c as gt } from "./intl-locale-FWh-Y5_3.js";
|
|
10
|
+
import { u as bt } from "./registry-DvAUVLHh.js";
|
|
11
|
+
import { C as ht } from "./chevron-down-DWE7GSq9.js";
|
|
12
|
+
import { C as Nt } from "./chevron-up-umRGgtJA.js";
|
|
13
|
+
const yt = {
|
|
14
|
+
id: "number-input",
|
|
15
|
+
capabilities: ["set_value"],
|
|
16
|
+
state: {
|
|
17
|
+
value: {
|
|
18
|
+
type: "number | null",
|
|
19
|
+
descriptionKey: "ui.agent.numberInput.state.value",
|
|
20
|
+
description: "Current numeric value, or null when empty.",
|
|
21
|
+
read: (e) => e.getValue()
|
|
22
|
+
},
|
|
23
|
+
isEmpty: {
|
|
24
|
+
type: "boolean",
|
|
25
|
+
descriptionKey: "ui.agent.numberInput.state.isEmpty",
|
|
26
|
+
description: "Whether the input has no value.",
|
|
27
|
+
read: (e) => e.getValue() === null
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
actions: {
|
|
31
|
+
set_value: {
|
|
32
|
+
safety: "write",
|
|
33
|
+
argsType: "{ value: number | null }",
|
|
34
|
+
argsSchema: {
|
|
35
|
+
type: "object",
|
|
36
|
+
properties: { value: { type: ["number", "null"] } },
|
|
37
|
+
required: ["value"]
|
|
38
|
+
},
|
|
39
|
+
idempotent: !0,
|
|
40
|
+
examples: [{ args: { value: 42 } }, { args: { value: null } }],
|
|
41
|
+
descriptionKey: "ui.agent.numberInput.actions.setValue",
|
|
42
|
+
description: "Replace the numeric value, or pass null to clear.",
|
|
43
|
+
invoke: (e, n) => {
|
|
44
|
+
e.setValue(n.value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
clear: {
|
|
48
|
+
safety: "destructive",
|
|
49
|
+
idempotent: !0,
|
|
50
|
+
descriptionKey: "ui.agent.numberInput.actions.clear",
|
|
51
|
+
description: "Empty the input. Loses any typed value.",
|
|
52
|
+
invoke: (e) => {
|
|
53
|
+
e.clear();
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
focus: {
|
|
57
|
+
safety: "read",
|
|
58
|
+
idempotent: !0,
|
|
59
|
+
descriptionKey: "ui.agent.numberInput.actions.focus",
|
|
60
|
+
description: "Move keyboard focus to the input.",
|
|
61
|
+
invoke: (e) => {
|
|
62
|
+
e.focus();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
domHooks: {
|
|
67
|
+
root: {
|
|
68
|
+
attr: "data-component",
|
|
69
|
+
value: "number-input",
|
|
70
|
+
description: "Marks the NumberInput wrapper."
|
|
71
|
+
},
|
|
72
|
+
instanceId: {
|
|
73
|
+
attr: "data-component-id",
|
|
74
|
+
sourceProp: "id",
|
|
75
|
+
description: "Sourced from the id prop."
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, wt = 20;
|
|
79
|
+
function de(e) {
|
|
80
|
+
if (!(e === void 0 || !Number.isFinite(e)))
|
|
81
|
+
return Math.min(wt, Math.max(0, Math.floor(e)));
|
|
82
|
+
}
|
|
83
|
+
function ke(e) {
|
|
84
|
+
return e === "decimal" || e === "currency";
|
|
85
|
+
}
|
|
86
|
+
function xt(e, n, i) {
|
|
87
|
+
if (n === "currency")
|
|
88
|
+
try {
|
|
89
|
+
const s = new Intl.NumberFormat(e, {
|
|
90
|
+
style: "currency",
|
|
91
|
+
currency: i ?? "USD"
|
|
92
|
+
}).resolvedOptions();
|
|
93
|
+
return {
|
|
94
|
+
min: s.minimumFractionDigits ?? 2,
|
|
95
|
+
max: s.maximumFractionDigits ?? 2
|
|
96
|
+
};
|
|
97
|
+
} catch {
|
|
98
|
+
return { min: 2, max: 2 };
|
|
99
|
+
}
|
|
100
|
+
return { min: 0, max: 10 };
|
|
101
|
+
}
|
|
102
|
+
function Dt(e, n, i, s) {
|
|
103
|
+
if (!ke(n)) return;
|
|
104
|
+
const o = de(s == null ? void 0 : s.minimumFractionDigits), c = de(s == null ? void 0 : s.maximumFractionDigits);
|
|
105
|
+
if (o === void 0 && c === void 0) return;
|
|
106
|
+
const m = xt(e, n, i);
|
|
107
|
+
if (c !== void 0)
|
|
108
|
+
return { min: Math.min(o ?? Math.min(m.min, c), c), max: c };
|
|
109
|
+
const d = o ?? m.min;
|
|
110
|
+
return { min: d, max: Math.max(m.max, d) };
|
|
111
|
+
}
|
|
112
|
+
const Ft = 12345678905e-1;
|
|
113
|
+
function It(e) {
|
|
114
|
+
var d, g, D;
|
|
115
|
+
const n = new Intl.NumberFormat(e).formatToParts(Ft), i = ((d = n.find((p) => p.type === "decimal")) == null ? void 0 : d.value) ?? ".", s = (g = n.find((p) => p.type === "group")) == null ? void 0 : g.value, o = s !== void 0 && s !== i ? s : i === "," ? "." : ",", m = ((D = n.filter((p) => p.type === "integer").at(-1)) == null ? void 0 : D.value.length) ?? 3;
|
|
116
|
+
return { decimal: i, group: o, primaryGroupSize: m };
|
|
117
|
+
}
|
|
118
|
+
const St = /[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g;
|
|
119
|
+
function Mt(e) {
|
|
120
|
+
if (e >= "0" && e <= "9") return e;
|
|
121
|
+
const n = e.codePointAt(0) ?? 0;
|
|
122
|
+
return n >= 1632 && n <= 1641 ? String(n - 1632) : n >= 1776 && n <= 1785 ? String(n - 1776) : null;
|
|
123
|
+
}
|
|
124
|
+
const Se = /* @__PURE__ */ new Set([".", ",", "'", "’", "٫", "٬"]), Tt = (e) => e === "-" || e === "−", Me = (e) => /\s/.test(e);
|
|
125
|
+
function Rt(e, n, i) {
|
|
126
|
+
if (!e) return NaN;
|
|
127
|
+
const { decimal: s, group: o, primaryGroupSize: c } = n, m = (f) => Me(f) || f === o || Se.has(f) && f !== s, d = (f) => f !== s && (Se.has(f) || f === o);
|
|
128
|
+
let g = "", D = !1, p = !1, T = !1, h = "", y = !1, b = !1, v = 0, R = 0;
|
|
129
|
+
for (const f of e.replace(St, "")) {
|
|
130
|
+
const k = Mt(f);
|
|
131
|
+
if (k !== null) {
|
|
132
|
+
if (!T && d(h)) return NaN;
|
|
133
|
+
if (y) {
|
|
134
|
+
if (b || p) return NaN;
|
|
135
|
+
if (R === 0 ? v > c : v < 2 || v > c)
|
|
136
|
+
return NaN;
|
|
137
|
+
R += 1, v = 0;
|
|
138
|
+
}
|
|
139
|
+
y = !1, b = !1, T = !0, g += k, p || (v += 1);
|
|
140
|
+
} else if (f === s) {
|
|
141
|
+
if (p || y) return NaN;
|
|
142
|
+
if (R > 0 && v !== c) return NaN;
|
|
143
|
+
p = !0, g += ".";
|
|
144
|
+
} else if (Tt(f)) {
|
|
145
|
+
if (T || p || D || d(h))
|
|
146
|
+
return NaN;
|
|
147
|
+
D = !0, h = f;
|
|
148
|
+
} else T ? (y = !0, m(f) || (b = !0)) : Me(f) || (h = f);
|
|
149
|
+
}
|
|
150
|
+
if (!p && R > 0 && v !== c) return NaN;
|
|
151
|
+
if (!g || g === ".") return NaN;
|
|
152
|
+
let A = Number(g);
|
|
153
|
+
return Number.isFinite(A) ? (D && (A = -A), i === "percentage" && (A = J(A, -2)), A) : NaN;
|
|
154
|
+
}
|
|
155
|
+
function At(e, n) {
|
|
156
|
+
let i;
|
|
157
|
+
try {
|
|
158
|
+
i = new Intl.NumberFormat(n).format(0).codePointAt(0) ?? 48;
|
|
159
|
+
} catch {
|
|
160
|
+
return e;
|
|
161
|
+
}
|
|
162
|
+
if (i !== 1632 && i !== 1776) return e;
|
|
163
|
+
let s = "";
|
|
164
|
+
for (const o of e)
|
|
165
|
+
s += o >= "0" && o <= "9" ? String.fromCodePoint(i + (o.charCodeAt(0) - 48)) : o;
|
|
166
|
+
return s;
|
|
167
|
+
}
|
|
168
|
+
function Ct(e, n, i, s) {
|
|
169
|
+
const o = s == null ? void 0 : s.minimumFractionDigits, c = s == null ? void 0 : s.maximumFractionDigits;
|
|
170
|
+
return ce(() => {
|
|
171
|
+
const m = Dt(e, n, i, {
|
|
172
|
+
minimumFractionDigits: o,
|
|
173
|
+
maximumFractionDigits: c
|
|
174
|
+
}), d = m ? {
|
|
175
|
+
minimumFractionDigits: m.min,
|
|
176
|
+
maximumFractionDigits: m.max
|
|
177
|
+
} : {}, g = It(e), D = g.decimal, p = g.group, T = n === "currency" ? new Intl.NumberFormat(e, {
|
|
178
|
+
style: "currency",
|
|
179
|
+
currency: i ?? "USD",
|
|
180
|
+
...d
|
|
181
|
+
}) : n === "percentage" ? new Intl.NumberFormat(e, {
|
|
182
|
+
style: "percent",
|
|
183
|
+
maximumFractionDigits: 4
|
|
184
|
+
}) : n === "integer" ? new Intl.NumberFormat(e, { maximumFractionDigits: 0 }) : new Intl.NumberFormat(e, {
|
|
185
|
+
maximumFractionDigits: 10,
|
|
186
|
+
...d
|
|
187
|
+
}), h = (v) => Number.isFinite(v) ? T.format(v) : "", y = (v) => Rt(v, g, n);
|
|
188
|
+
let b = "decimal";
|
|
189
|
+
if (n === "integer")
|
|
190
|
+
b = "numeric";
|
|
191
|
+
else if (n === "currency" && m)
|
|
192
|
+
b = m.max === 0 ? "numeric" : "decimal";
|
|
193
|
+
else if (n === "currency")
|
|
194
|
+
try {
|
|
195
|
+
const { maximumFractionDigits: v } = new Intl.NumberFormat(e, {
|
|
196
|
+
style: "currency",
|
|
197
|
+
currency: i ?? "USD"
|
|
198
|
+
}).resolvedOptions();
|
|
199
|
+
b = v === 0 ? "numeric" : "decimal";
|
|
200
|
+
} catch {
|
|
201
|
+
b = "decimal";
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
format: h,
|
|
205
|
+
parse: y,
|
|
206
|
+
decimalSeparator: D,
|
|
207
|
+
groupingSeparator: p,
|
|
208
|
+
inputMode: b
|
|
209
|
+
};
|
|
210
|
+
}, [e, n, i, o, c]);
|
|
211
|
+
}
|
|
212
|
+
const kt = fe(
|
|
213
|
+
[
|
|
214
|
+
"ds:flex ds:items-center ds:rounded-[var(--radius-sm)]",
|
|
215
|
+
"ds:border ds:bg-input ds:text-foreground",
|
|
216
|
+
"ds:shadow-[var(--shadow-input)]",
|
|
217
|
+
"ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
218
|
+
"ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
|
|
219
|
+
"ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
|
|
220
|
+
// Only a disabled field dims the frame. A chevron disabled at min, at max
|
|
221
|
+
// or under readOnly keeps its own dimming, so the value stays legible.
|
|
222
|
+
"ds:has-[input:disabled]:cursor-not-allowed ds:has-[input:disabled]:opacity-50",
|
|
223
|
+
// A locked value looks like a locked TextInput: muted, flat, no dimming.
|
|
224
|
+
// Keyed on an explicit attribute, as PhoneInput does.
|
|
225
|
+
"ds:data-[read-only]:bg-muted ds:data-[read-only]:shadow-none ds:data-[read-only]:cursor-default"
|
|
226
|
+
].join(" "),
|
|
227
|
+
{
|
|
228
|
+
variants: {
|
|
229
|
+
size: {
|
|
230
|
+
// 'sm' (32px) is a dense opt-in below the 44px target, for tables and
|
|
231
|
+
// toolbars; it still clears the WCAG 2.5.8 minimum of 24px.
|
|
232
|
+
sm: "ds:h-8 ds:text-[length:var(--font-size-sm)]",
|
|
233
|
+
md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
|
|
234
|
+
lg: "ds:h-12 ds:text-[length:var(--font-size-lg)]"
|
|
235
|
+
},
|
|
236
|
+
tone: {
|
|
237
|
+
default: "ds:border-[color:var(--control-border)]",
|
|
238
|
+
error: "ds:border-destructive ds:focus-within:outline-destructive"
|
|
239
|
+
},
|
|
240
|
+
// Intrinsic sizes shrink-wrap the frame around field, unit and paddings;
|
|
241
|
+
// the floor keeps a bare 'sm' field a valid tap target.
|
|
242
|
+
inline: {
|
|
243
|
+
full: "ds:w-full",
|
|
244
|
+
sm: "ds:w-fit ds:min-w-[var(--min-target-size)]",
|
|
245
|
+
md: "ds:w-fit ds:min-w-[var(--min-target-size)]",
|
|
246
|
+
lg: "ds:w-fit ds:min-w-[var(--min-target-size)]"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
defaultVariants: { size: "md", tone: "default", inline: "full" }
|
|
250
|
+
}
|
|
251
|
+
), Bt = fe(
|
|
252
|
+
"ds:min-w-0 ds:bg-transparent ds:outline-none ds:tabular-nums ds:disabled:cursor-not-allowed ds:read-only:cursor-default",
|
|
253
|
+
{
|
|
254
|
+
variants: {
|
|
255
|
+
variant: { stepper: "ds:ps-2", plain: "ds:ps-3" },
|
|
256
|
+
hasUnit: { true: "ds:pe-1", false: "" },
|
|
257
|
+
// `ch` is the advance of "0", so with tabular numerals N digits fit
|
|
258
|
+
// exactly; box-content keeps the paddings outside that count.
|
|
259
|
+
inline: {
|
|
260
|
+
full: "ds:flex-1 ds:w-full",
|
|
261
|
+
sm: "ds:box-content ds:w-[8ch]",
|
|
262
|
+
md: "ds:box-content ds:w-[12ch]",
|
|
263
|
+
lg: "ds:box-content ds:w-[16ch]"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
compoundVariants: [
|
|
267
|
+
{ variant: "stepper", hasUnit: !1, class: "ds:pe-2" },
|
|
268
|
+
{ variant: "plain", hasUnit: !1, class: "ds:pe-3" },
|
|
269
|
+
// Alignment: exactly one of these matches, because two text-align
|
|
270
|
+
// utilities in one class list resolve by stylesheet order, not by the
|
|
271
|
+
// order they were written.
|
|
272
|
+
// A unit or an answer-sized box means the number is read AGAINST
|
|
273
|
+
// something — stranding it at the far start left a gap wide enough to
|
|
274
|
+
// read as two separate controls.
|
|
275
|
+
{ inline: "full", hasUnit: !1, class: "ds:text-start" },
|
|
276
|
+
{ inline: "full", hasUnit: !0, class: "ds:text-end" },
|
|
277
|
+
{ inline: ["sm", "md", "lg"], class: "ds:text-end" }
|
|
278
|
+
],
|
|
279
|
+
defaultVariants: { variant: "stepper", hasUnit: !1, inline: "full" }
|
|
280
|
+
}
|
|
281
|
+
), Vt = fe(
|
|
282
|
+
"ds:shrink-0 ds:select-none ds:whitespace-nowrap ds:text-muted-foreground",
|
|
283
|
+
{
|
|
284
|
+
variants: {
|
|
285
|
+
variant: { stepper: "ds:pe-1", plain: "ds:pe-3" }
|
|
286
|
+
},
|
|
287
|
+
defaultVariants: { variant: "stepper" }
|
|
288
|
+
}
|
|
289
|
+
), Te = [
|
|
290
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
291
|
+
"ds:h-full ds:shrink-0",
|
|
292
|
+
"ds:text-muted-foreground ds:hover:text-foreground",
|
|
293
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
294
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
295
|
+
].join(" "), Pt = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US", zt = (e) => typeof e == "string" && e.trim() !== "" ? e : void 0;
|
|
296
|
+
function Re(e) {
|
|
297
|
+
if (e >= "0" && e <= "9") return !0;
|
|
298
|
+
const n = e.codePointAt(0) ?? 0;
|
|
299
|
+
return n >= 1632 && n <= 1641 || n >= 1776 && n <= 1785;
|
|
300
|
+
}
|
|
301
|
+
function Ae(e) {
|
|
302
|
+
if (!Number.isFinite(e)) return 0;
|
|
303
|
+
const n = Ce(e), i = n.indexOf(".");
|
|
304
|
+
return i === -1 ? 0 : n.length - i - 1;
|
|
305
|
+
}
|
|
306
|
+
function S(e, n) {
|
|
307
|
+
if (!Number.isFinite(e)) return e;
|
|
308
|
+
const i = e < 0 ? -1 : 1, s = Math.abs(e), o = J(s, n);
|
|
309
|
+
return Number.isFinite(o) ? i * J(Math.round(o), -n) || 0 : e;
|
|
310
|
+
}
|
|
311
|
+
function Ut(e, n) {
|
|
312
|
+
const i = S(e, n);
|
|
313
|
+
return i > e ? S(i - 10 ** -n, n) : i;
|
|
314
|
+
}
|
|
315
|
+
function Et(e, n) {
|
|
316
|
+
const i = S(e, n);
|
|
317
|
+
return i < e ? S(i + 10 ** -n, n) : i;
|
|
318
|
+
}
|
|
319
|
+
function Lt(e, n, i) {
|
|
320
|
+
return i <= 0 || !Number.isFinite(i) ? e : S(
|
|
321
|
+
e,
|
|
322
|
+
Math.max(Ae(i), Ae(n))
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
const Ot = ut(
|
|
326
|
+
({
|
|
327
|
+
value: e,
|
|
328
|
+
defaultValue: n,
|
|
329
|
+
onChange: i,
|
|
330
|
+
onValidityChange: s,
|
|
331
|
+
min: o,
|
|
332
|
+
max: c,
|
|
333
|
+
step: m = 1,
|
|
334
|
+
mode: d = "integer",
|
|
335
|
+
currency: g,
|
|
336
|
+
locale: D,
|
|
337
|
+
size: p = "md",
|
|
338
|
+
tone: T,
|
|
339
|
+
variant: h = "stepper",
|
|
340
|
+
unit: y,
|
|
341
|
+
inline: b = "full",
|
|
342
|
+
className: v,
|
|
343
|
+
id: R,
|
|
344
|
+
disabled: A,
|
|
345
|
+
readOnly: f,
|
|
346
|
+
maximumFractionDigits: k,
|
|
347
|
+
minimumFractionDigits: me,
|
|
348
|
+
onFocus: Q,
|
|
349
|
+
onBlur: Y,
|
|
350
|
+
onKeyDown: Z,
|
|
351
|
+
"aria-invalid": pe,
|
|
352
|
+
"aria-describedby": Be,
|
|
353
|
+
...Ve
|
|
354
|
+
}, Pe) => {
|
|
355
|
+
const { t: ve, i18n: ze } = ct("ui"), L = ft(), Ue = mt(L, R), O = !!(L.disabled || A), ge = lt(), Ee = [Be, L.describedBy, y ? ge : void 0].filter(Boolean).join(" ") || void 0, ee = zt(ze.language), Le = ce(
|
|
356
|
+
() => ee ? vt(gt(ee)) : void 0,
|
|
357
|
+
[ee]
|
|
358
|
+
), te = D ?? Le ?? Pt(), ne = Ct(te, d, g, {
|
|
359
|
+
minimumFractionDigits: me,
|
|
360
|
+
maximumFractionDigits: k
|
|
361
|
+
}), u = ke(d) ? de(k) : void 0, N = !!f, {
|
|
362
|
+
decimalSeparator: w,
|
|
363
|
+
groupingSeparator: be,
|
|
364
|
+
format: re,
|
|
365
|
+
parse: he
|
|
366
|
+
} = ne, Ne = q(null), Oe = pt(Pe, Ne), [je, _e] = dt({
|
|
367
|
+
value: e,
|
|
368
|
+
defaultValue: n ?? null,
|
|
369
|
+
onChange: i
|
|
370
|
+
}), l = je ?? null, ie = q(l);
|
|
371
|
+
ie.current = l;
|
|
372
|
+
const j = E(
|
|
373
|
+
(t) => {
|
|
374
|
+
let r = d === "percentage" ? J(t, 2) : t;
|
|
375
|
+
return u !== void 0 && (r = S(r, u)), At(
|
|
376
|
+
Ce(r).replace(".", w),
|
|
377
|
+
te
|
|
378
|
+
);
|
|
379
|
+
},
|
|
380
|
+
[d, w, u, te]
|
|
381
|
+
), F = E(
|
|
382
|
+
(t) => t == null || Number.isNaN(t) ? "" : re(t),
|
|
383
|
+
[re]
|
|
384
|
+
), [_, x] = ue(
|
|
385
|
+
() => F(l)
|
|
386
|
+
), B = q(!1), H = q(null), [Ke, C] = ue(!1), [se, K] = ue(!1), ae = E(
|
|
387
|
+
(t) => {
|
|
388
|
+
if (t >= "0" && t <= "9") return !0;
|
|
389
|
+
const r = t.codePointAt(0) ?? 0;
|
|
390
|
+
return r >= 1632 && r <= 1641 || r >= 1776 && r <= 1785 ? !0 : t === w || t === be || t === "-" || t === "−";
|
|
391
|
+
},
|
|
392
|
+
[w, be]
|
|
393
|
+
), Ge = E(
|
|
394
|
+
(t) => {
|
|
395
|
+
let r = "";
|
|
396
|
+
for (const a of t)
|
|
397
|
+
ae(a) && (r += a);
|
|
398
|
+
return r;
|
|
399
|
+
},
|
|
400
|
+
[ae]
|
|
401
|
+
), oe = E(
|
|
402
|
+
(t) => {
|
|
403
|
+
const r = t.indexOf(w);
|
|
404
|
+
if (r === -1) return 0;
|
|
405
|
+
let a = 0;
|
|
406
|
+
for (const M of t.slice(r + w.length))
|
|
407
|
+
Re(M) && (a += 1);
|
|
408
|
+
return a;
|
|
409
|
+
},
|
|
410
|
+
[w]
|
|
411
|
+
), qe = E(
|
|
412
|
+
(t) => {
|
|
413
|
+
if (u === void 0) return t;
|
|
414
|
+
const r = t.indexOf(w);
|
|
415
|
+
if (r === -1) return t;
|
|
416
|
+
const a = t.slice(0, r + w.length);
|
|
417
|
+
let M = 0, G = "";
|
|
418
|
+
for (const X of t.slice(r + w.length)) {
|
|
419
|
+
if (Re(X)) {
|
|
420
|
+
if (M >= u) continue;
|
|
421
|
+
M += 1;
|
|
422
|
+
}
|
|
423
|
+
G += X;
|
|
424
|
+
}
|
|
425
|
+
return a + G;
|
|
426
|
+
},
|
|
427
|
+
[w, u]
|
|
428
|
+
);
|
|
429
|
+
le(() => {
|
|
430
|
+
!B.current && !se && x(F(l));
|
|
431
|
+
}, [l, F, se]);
|
|
432
|
+
const ye = (t) => t === null ? !1 : o !== void 0 && t < o ? "below-min" : c !== void 0 && t > c ? "above-max" : !1, $ = se ? "format" : ye(l) || Ke || null, He = $ !== null, W = q(s);
|
|
433
|
+
le(() => {
|
|
434
|
+
W.current = s;
|
|
435
|
+
}, [s]), le(() => {
|
|
436
|
+
var t;
|
|
437
|
+
(t = W.current) == null || t.call(W, {
|
|
438
|
+
valid: $ === null,
|
|
439
|
+
reason: $
|
|
440
|
+
});
|
|
441
|
+
}, [$]);
|
|
442
|
+
const we = L.invalid || He || pe === !0 || pe === "true", $e = we ? "error" : T ?? "default", I = (t) => {
|
|
443
|
+
_e(
|
|
444
|
+
t !== null && u !== void 0 ? S(t, u) : t
|
|
445
|
+
);
|
|
446
|
+
}, V = o !== void 0 && u !== void 0 ? Et(o, u) : o, P = c !== void 0 && u !== void 0 ? Ut(c, u) : c, xe = u !== void 0 ? Math.max(m, 10 ** -u) : m, z = (t) => {
|
|
447
|
+
if (O || N) return;
|
|
448
|
+
const r = l === null ? 0 : u !== void 0 ? S(l, u) : l;
|
|
449
|
+
let a = Lt(
|
|
450
|
+
r + xe * t,
|
|
451
|
+
r,
|
|
452
|
+
xe
|
|
453
|
+
);
|
|
454
|
+
V !== void 0 && (a = Math.max(V, a)), P !== void 0 && (a = Math.min(P, a)), u !== void 0 && (a = S(a, u)), I(a), C(!1), x(
|
|
455
|
+
B.current ? j(a) : F(a)
|
|
456
|
+
);
|
|
457
|
+
}, De = (t) => {
|
|
458
|
+
const r = u === void 0 ? t : S(t, u);
|
|
459
|
+
I(r), C(!1), x(
|
|
460
|
+
B.current ? j(r) : F(r)
|
|
461
|
+
);
|
|
462
|
+
}, We = (t) => {
|
|
463
|
+
if (Z == null || Z(t), t.defaultPrevented || O || N) return;
|
|
464
|
+
const { key: r, shiftKey: a } = t;
|
|
465
|
+
r === "ArrowUp" ? (t.preventDefault(), z(a ? 10 : 1)) : r === "ArrowDown" ? (t.preventDefault(), z(a ? -10 : -1)) : r === "PageUp" ? (t.preventDefault(), z(100)) : r === "PageDown" ? (t.preventDefault(), z(-100)) : r === "Home" && V !== void 0 ? (t.preventDefault(), De(V)) : r === "End" && P !== void 0 && (t.preventDefault(), De(P));
|
|
466
|
+
}, Xe = (t) => {
|
|
467
|
+
if (N) return;
|
|
468
|
+
const r = qe(Ge(t.target.value));
|
|
469
|
+
if (x(r), r.trim() === "") {
|
|
470
|
+
I(null), C(!1), K(!1);
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
const a = he(r);
|
|
474
|
+
if (Number.isNaN(a)) {
|
|
475
|
+
ie.current !== null && I(null);
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
I(a), K(!1);
|
|
479
|
+
}, Je = (t) => {
|
|
480
|
+
const { data: r } = t;
|
|
481
|
+
if (typeof r != "string" || r.length !== 1 || r < " " || r === "") return;
|
|
482
|
+
if (!ae(r)) {
|
|
483
|
+
t.preventDefault();
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
if (u === void 0) return;
|
|
487
|
+
const a = t.currentTarget, M = a.value, G = a.selectionStart ?? M.length, X = a.selectionEnd ?? G, Ie = M.slice(0, G) + r + M.slice(X);
|
|
488
|
+
oe(Ie) > u && oe(Ie) > oe(M) && t.preventDefault();
|
|
489
|
+
}, Qe = (t) => {
|
|
490
|
+
if (Q == null || Q(t), B.current = !0, !N)
|
|
491
|
+
if (l != null) {
|
|
492
|
+
const r = j(l);
|
|
493
|
+
H.current = r, x(r);
|
|
494
|
+
} else
|
|
495
|
+
H.current = _;
|
|
496
|
+
}, Ye = (t) => {
|
|
497
|
+
if (Y == null || Y(t), B.current = !1, N) {
|
|
498
|
+
x(F(l));
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
const r = H.current;
|
|
502
|
+
if (H.current = null, u !== void 0 && r !== null && _ === r) {
|
|
503
|
+
l !== null && x(F(l));
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
if (_.trim() === "") {
|
|
507
|
+
I(null), C(!1), K(!1), x("");
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
const a = he(_);
|
|
511
|
+
if (Number.isNaN(a)) {
|
|
512
|
+
K(!0), C(!1), I(null);
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
C(ye(a)), K(!1), I(a), x(F(a));
|
|
516
|
+
}, Fe = (t) => {
|
|
517
|
+
t.preventDefault();
|
|
518
|
+
}, Ze = () => z(1), et = () => z(-1), tt = ce(
|
|
519
|
+
() => ({
|
|
520
|
+
getValue: () => ie.current,
|
|
521
|
+
// Read-only binds the agent too: it is the host's lock on the value.
|
|
522
|
+
setValue: (t) => {
|
|
523
|
+
N || (I(t), x(
|
|
524
|
+
t === null ? "" : B.current ? j(t) : F(t)
|
|
525
|
+
));
|
|
526
|
+
},
|
|
527
|
+
clear: () => {
|
|
528
|
+
N || (I(null), x(""), C(!1));
|
|
529
|
+
},
|
|
530
|
+
focus: () => {
|
|
531
|
+
var t;
|
|
532
|
+
return (t = Ne.current) == null ? void 0 : t.focus();
|
|
533
|
+
}
|
|
534
|
+
}),
|
|
535
|
+
// The handle is reconstructed per render; consumers (the agent runtime)
|
|
536
|
+
// re-register only when the identity changes, which is a cheap no-op.
|
|
537
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
538
|
+
[j, F, N]
|
|
539
|
+
);
|
|
540
|
+
bt(yt, tt, R);
|
|
541
|
+
const nt = O || N || V !== void 0 && l !== null && l <= V, rt = O || N || P !== void 0 && l !== null && l >= P, it = l ?? void 0, st = (d === "currency" || d === "percentage" || d === "decimal" && (k !== void 0 || me !== void 0)) && l !== null && l !== null ? re(l) : void 0, at = ne.inputMode === "numeric" ? "[0-9]*" : void 0;
|
|
542
|
+
return /* @__PURE__ */ ot(
|
|
543
|
+
"div",
|
|
544
|
+
{
|
|
545
|
+
className: kt({
|
|
546
|
+
size: p,
|
|
547
|
+
tone: $e,
|
|
548
|
+
inline: b,
|
|
549
|
+
className: v
|
|
550
|
+
}),
|
|
551
|
+
"data-component": "number-input",
|
|
552
|
+
"data-component-id": R,
|
|
553
|
+
"data-mode": d,
|
|
554
|
+
"data-variant": h,
|
|
555
|
+
"data-inline": b,
|
|
556
|
+
"data-read-only": N ? "" : void 0,
|
|
557
|
+
children: [
|
|
558
|
+
h === "stepper" ? /* @__PURE__ */ U(
|
|
559
|
+
"button",
|
|
560
|
+
{
|
|
561
|
+
type: "button",
|
|
562
|
+
tabIndex: -1,
|
|
563
|
+
"aria-label": ve("inputs.number.decrement", "Decrement"),
|
|
564
|
+
onClick: et,
|
|
565
|
+
onMouseDown: Fe,
|
|
566
|
+
disabled: nt,
|
|
567
|
+
className: `${Te} ds:ps-2 ds:pe-1`,
|
|
568
|
+
children: /* @__PURE__ */ U(ht, { "aria-hidden": "true", className: "ds:size-4" })
|
|
569
|
+
}
|
|
570
|
+
) : null,
|
|
571
|
+
/* @__PURE__ */ U(
|
|
572
|
+
"input",
|
|
573
|
+
{
|
|
574
|
+
ref: Oe,
|
|
575
|
+
id: Ue,
|
|
576
|
+
type: "text",
|
|
577
|
+
role: "spinbutton",
|
|
578
|
+
inputMode: ne.inputMode,
|
|
579
|
+
pattern: at,
|
|
580
|
+
autoComplete: "off",
|
|
581
|
+
value: _,
|
|
582
|
+
disabled: O,
|
|
583
|
+
readOnly: f,
|
|
584
|
+
"aria-readonly": N || void 0,
|
|
585
|
+
"aria-valuemin": o,
|
|
586
|
+
"aria-valuemax": c,
|
|
587
|
+
"aria-valuenow": it,
|
|
588
|
+
"aria-valuetext": st,
|
|
589
|
+
"aria-invalid": we || void 0,
|
|
590
|
+
"aria-required": L.required || void 0,
|
|
591
|
+
"aria-describedby": Ee,
|
|
592
|
+
onBeforeInput: Je,
|
|
593
|
+
onChange: Xe,
|
|
594
|
+
onFocus: Qe,
|
|
595
|
+
onBlur: Ye,
|
|
596
|
+
onKeyDown: We,
|
|
597
|
+
className: Bt({ variant: h, hasUnit: !!y, inline: b }),
|
|
598
|
+
...Ve
|
|
599
|
+
}
|
|
600
|
+
),
|
|
601
|
+
y ? /* @__PURE__ */ U("span", { id: ge, className: Vt({ variant: h }), children: y }) : null,
|
|
602
|
+
h === "stepper" ? /* @__PURE__ */ U(
|
|
603
|
+
"button",
|
|
604
|
+
{
|
|
605
|
+
type: "button",
|
|
606
|
+
tabIndex: -1,
|
|
607
|
+
"aria-label": ve("inputs.number.increment", "Increment"),
|
|
608
|
+
onClick: Ze,
|
|
609
|
+
onMouseDown: Fe,
|
|
610
|
+
disabled: rt,
|
|
611
|
+
className: `${Te} ds:ps-1 ds:pe-2`,
|
|
612
|
+
children: /* @__PURE__ */ U(Nt, { "aria-hidden": "true", className: "ds:size-4" })
|
|
613
|
+
}
|
|
614
|
+
) : null
|
|
615
|
+
]
|
|
616
|
+
}
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
);
|
|
620
|
+
Ot.displayName = "NumberInput";
|
|
621
|
+
export {
|
|
622
|
+
Ot as N,
|
|
623
|
+
Ct as u
|
|
624
|
+
};
|
|
625
|
+
//# sourceMappingURL=number-input-DUSvP7Dq.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as Ye, useId as He, useRef as fe, useState as qe, useCallbac
|
|
|
3
3
|
import { c as Ke } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as Ge } from "react-i18next";
|
|
5
5
|
import { u as Ue } from "./registry-DvAUVLHh.js";
|
|
6
|
-
import { N as ae } from "./number-input-
|
|
6
|
+
import { N as ae } from "./number-input-DUSvP7Dq.js";
|
|
7
7
|
import { S as ye } from "./select-uESzXTX6.js";
|
|
8
8
|
import { T as Je } from "./text-area-COMVJ1yE.js";
|
|
9
9
|
import { D as v } from "./description-list-BxzDN9o2.js";
|
|
@@ -1273,4 +1273,4 @@ export {
|
|
|
1273
1273
|
gt as y,
|
|
1274
1274
|
_e as z
|
|
1275
1275
|
};
|
|
1276
|
-
//# sourceMappingURL=optical-prescription-
|
|
1276
|
+
//# sourceMappingURL=optical-prescription-Da_r8pMr.js.map
|