@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
|
@@ -9,20 +9,80 @@ export interface CheckboxHandle {
|
|
|
9
9
|
}
|
|
10
10
|
declare const checkboxVariants: (props?: ({
|
|
11
11
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
12
|
+
labelled?: boolean | null | undefined;
|
|
12
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
14
|
type RadixRootProps = ComponentPropsWithoutRef<typeof RadixCheckbox.Root>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
label: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Every Checkbox prop except the three that name it. Type your own wrapper
|
|
17
|
+
* as `CheckboxBaseProps & CheckboxNaming` to make TypeScript require a name.
|
|
18
|
+
*/
|
|
19
|
+
export interface CheckboxBaseProps extends Omit<RadixRootProps, 'checked' | 'onCheckedChange' | 'children' | 'aria-label' | 'aria-labelledby'>, Omit<VariantProps<typeof checkboxVariants>, 'labelled'> {
|
|
20
20
|
checked?: boolean | 'indeterminate';
|
|
21
21
|
onCheckedChange?: (checked: boolean | 'indeterminate') => void;
|
|
22
22
|
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
/**
|
|
24
|
+
* Why the box is disabled. Only used while disabled. The box then stays
|
|
25
|
+
* focusable (`aria-disabled`, no native `disabled`) and cannot change, a
|
|
26
|
+
* Tooltip shows the reason on hover and on keyboard focus, and the reason
|
|
27
|
+
* is visually hidden text linked with `aria-describedby`.
|
|
28
|
+
*/
|
|
23
29
|
disabledReason?: string;
|
|
24
30
|
value?: string;
|
|
25
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* The three ways to name the box, as a strict union: a visible `label`, or
|
|
34
|
+
* (for a table cell or another place where the name is already on screen)
|
|
35
|
+
* `aria-label` or `aria-labelledby`. `CheckboxProps` keeps all three
|
|
36
|
+
* optional so 1.x consumer types still compile; use this union in your own
|
|
37
|
+
* types to have TypeScript require one.
|
|
38
|
+
*/
|
|
39
|
+
export type CheckboxNaming = {
|
|
40
|
+
/**
|
|
41
|
+
* Visible label rendered next to the box. Accepts a string or any
|
|
42
|
+
* React node, useful for consent labels that embed a privacy or T&C
|
|
43
|
+
* link. Never `undefined`, `null` or a boolean: they name nothing.
|
|
44
|
+
*/
|
|
45
|
+
label: Exclude<ReactNode, null | undefined | boolean>;
|
|
46
|
+
'aria-label'?: string;
|
|
47
|
+
'aria-labelledby'?: string;
|
|
48
|
+
} | {
|
|
49
|
+
/** Omit in label-less mode: no `<label>` element renders. */
|
|
50
|
+
label?: undefined;
|
|
51
|
+
/** Accessible name when there is no visible label. */
|
|
52
|
+
'aria-label': string;
|
|
53
|
+
'aria-labelledby'?: string;
|
|
54
|
+
} | {
|
|
55
|
+
/** Omit in label-less mode: no `<label>` element renders. */
|
|
56
|
+
label?: undefined;
|
|
57
|
+
'aria-label'?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Id (or space-separated ids) of the element(s) whose text names the
|
|
60
|
+
* box, such as a table row's header cell.
|
|
61
|
+
*/
|
|
62
|
+
'aria-labelledby': string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Checkbox props. Pass a visible `label`, or `aria-label` or
|
|
66
|
+
* `aria-labelledby` for a box without one. All three are optional here so
|
|
67
|
+
* the 1.x interface stays extendable; a box with none of them gets a
|
|
68
|
+
* development warning and fails the axe check.
|
|
69
|
+
*/
|
|
70
|
+
export interface CheckboxProps extends CheckboxBaseProps {
|
|
71
|
+
/**
|
|
72
|
+
* Visible label rendered next to the box. Accepts a string or any React
|
|
73
|
+
* node, useful for consent labels that embed a privacy or T&C link. Leave
|
|
74
|
+
* it out (or pass `''`, `null` or `false`) for a box without a visible
|
|
75
|
+
* label, and name it with `aria-label` or `aria-labelledby`.
|
|
76
|
+
*/
|
|
77
|
+
label?: ReactNode;
|
|
78
|
+
/** Accessible name when there is no visible label. */
|
|
79
|
+
'aria-label'?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Id (or space-separated ids) of the element(s) whose text names the box,
|
|
82
|
+
* such as a hidden "Select {row}" span in a table row.
|
|
83
|
+
*/
|
|
84
|
+
'aria-labelledby'?: string;
|
|
85
|
+
}
|
|
26
86
|
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
87
|
export {};
|
|
28
88
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -11,6 +11,19 @@ export interface ComboboxHandle {
|
|
|
11
11
|
open: () => void;
|
|
12
12
|
close: () => void;
|
|
13
13
|
}
|
|
14
|
+
/** A fixed row pinned under the options, such as "Create new item". */
|
|
15
|
+
export interface ComboboxAction {
|
|
16
|
+
/** Visible text of the row, already translated by the host. */
|
|
17
|
+
label: string;
|
|
18
|
+
/** Decorative icon before the label, expected: Lucide `Plus` for create.
|
|
19
|
+
* With the rule above the row, it marks the row as a command rather than
|
|
20
|
+
* an option. Hidden from assistive tech: the label names the row. */
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
/** Runs when the row is chosen. Receives the text the user typed since
|
|
23
|
+
* the list opened, or '' when they have not typed (the field still shows
|
|
24
|
+
* the chosen label, or nothing). */
|
|
25
|
+
onSelect: (query: string) => void;
|
|
26
|
+
}
|
|
14
27
|
export interface ComboboxProps<T extends string = string> {
|
|
15
28
|
options: ComboboxOption<T>[];
|
|
16
29
|
value?: T | '';
|
|
@@ -41,6 +54,14 @@ export interface ComboboxProps<T extends string = string> {
|
|
|
41
54
|
onQueryChange?: (query: string) => void;
|
|
42
55
|
emptyMessage?: ReactNode;
|
|
43
56
|
'aria-label'?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Ids of the elements that name the field, space-separated, as a
|
|
59
|
+
* DataGrid editor's `labelledBy` ("Matched item" plus a hidden row name).
|
|
60
|
+
* Wins over `aria-label`, a FormField label and the placeholder. It also
|
|
61
|
+
* names the list and its popover, so the row name stays in text and
|
|
62
|
+
* never becomes an attribute. The elements may be hidden.
|
|
63
|
+
*/
|
|
64
|
+
'aria-labelledby'?: string;
|
|
44
65
|
/**
|
|
45
66
|
* Invalid-state fallback for use OUTSIDE a `<FormField>` (e.g. an inline
|
|
46
67
|
* editor). Inside a FormField the context wins. Drives the error border and
|
|
@@ -71,6 +92,41 @@ export interface ComboboxProps<T extends string = string> {
|
|
|
71
92
|
* An option's `description` always sits on its own line under the label.
|
|
72
93
|
*/
|
|
73
94
|
wrapOptionLabels?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* A row pinned under the options, for example "Create new item". It shows
|
|
97
|
+
* whatever the query, with or without matches, stays in view while the
|
|
98
|
+
* options scroll, and is reached with the arrow keys or the pointer like an
|
|
99
|
+
* option. It is never the active row until the user reaches it, and Enter
|
|
100
|
+
* never chooses it before then: with nothing else listed, Enter does
|
|
101
|
+
* nothing and the list stays open. Choosing it calls
|
|
102
|
+
* `action.onSelect(query)`, closes the list and restores the field's text;
|
|
103
|
+
* it never changes the value or calls `onValueChange`. Independent of
|
|
104
|
+
* `allowCreate`.
|
|
105
|
+
*/
|
|
106
|
+
action?: ComboboxAction;
|
|
107
|
+
/**
|
|
108
|
+
* Open the list when the input gains focus. Default `true`. Set `false`
|
|
109
|
+
* where users Tab through many fields, such as a table column of
|
|
110
|
+
* comboboxes: focus then leaves the list shut, and typing, ArrowDown /
|
|
111
|
+
* ArrowUp (with or without Alt) or a pointer press on the input opens it.
|
|
112
|
+
*/
|
|
113
|
+
openOnFocus?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Width of the list. `'trigger'` (default) matches the field. `'sm'`,
|
|
116
|
+
* `'md'` and `'lg'` make it `--popover-size-sm` / `-md` / `-lg` wide, or
|
|
117
|
+
* the field's width when the field is wider, so a narrow field (a table
|
|
118
|
+
* cell) can open a readable list. Never wider than the screen allows.
|
|
119
|
+
*/
|
|
120
|
+
popoverSize?: 'trigger' | 'sm' | 'md' | 'lg';
|
|
121
|
+
/**
|
|
122
|
+
* Host results are on their way. The list carries `aria-busy`, shows a
|
|
123
|
+
* loading row while no option is listed, and holds back the empty message
|
|
124
|
+
* and the create row until the results arrive. A polite status outside
|
|
125
|
+
* the list says it is loading, then the outcome (the number of results, or
|
|
126
|
+
* the empty message). Pass a boolean from the start (not `undefined`) so
|
|
127
|
+
* that status is in place before it changes.
|
|
128
|
+
*/
|
|
129
|
+
loading?: boolean;
|
|
74
130
|
className?: string;
|
|
75
131
|
}
|
|
76
132
|
declare const comboboxInputVariants: (props?: ({
|
|
@@ -80,7 +136,9 @@ declare const comboboxWrapperVariants: (props?: ({
|
|
|
80
136
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
81
137
|
tone?: "default" | "error" | null | undefined;
|
|
82
138
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
83
|
-
declare const comboboxContentVariants: (props?:
|
|
139
|
+
declare const comboboxContentVariants: (props?: ({
|
|
140
|
+
popoverSize?: "sm" | "md" | "lg" | "trigger" | null | undefined;
|
|
141
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
84
142
|
declare const comboboxItemVariants: (props?: ({
|
|
85
143
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
86
144
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Combobox, comboboxInputVariants, comboboxWrapperVariants, comboboxContentVariants, comboboxItemVariants, } from './combobox';
|
|
2
|
-
export type { ComboboxProps, ComboboxOption } from './combobox';
|
|
2
|
+
export type { ComboboxProps, ComboboxOption, ComboboxAction } from './combobox';
|
|
3
3
|
export { comboboxAgent } from './combobox.agent';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-
|
|
1
|
+
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-BRCHbQ3-.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as CONTACT_PROFILE_CARD_ROW_ICONS,
|
|
4
4
|
O as CONTACT_PROFILE_CARD_ROW_KEYS,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DataGridHandle } from './types';
|
|
2
|
+
/** Delay before a settled filter or a slow load is announced. */
|
|
3
|
+
export declare const DATA_GRID_ANNOUNCE_SETTLE_MS = 500;
|
|
4
|
+
/** A message leaves the region after this long, so a row name never sits
|
|
5
|
+
* in the DOM once it has been read. */
|
|
6
|
+
export declare const DATA_GRID_ANNOUNCE_CLEAR_MS = 5000;
|
|
7
|
+
export interface DataGridAnnouncerOptions {
|
|
8
|
+
handle: DataGridHandle;
|
|
9
|
+
/** Plain or privacy-safe row name by id (table meta). */
|
|
10
|
+
getRowLabel: (rowId: string) => string;
|
|
11
|
+
status: 'ready' | 'loading' | 'error';
|
|
12
|
+
/** Translated error title (host copy or the default). */
|
|
13
|
+
errorTitle: string;
|
|
14
|
+
selectionMode: 'none' | 'single' | 'multiple';
|
|
15
|
+
/** Locked ids: never "cleared" by `clearSelectionOnFilterChange`. */
|
|
16
|
+
clearSelectionOnFilterChange: boolean;
|
|
17
|
+
/** The region is emptied whenever this changes: a message written before
|
|
18
|
+
* privacy mode turned on may name a row. */
|
|
19
|
+
privacyMode?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Builds the current message. The region renders it. */
|
|
22
|
+
export declare function useDataGridAnnouncer({ handle, getRowLabel, status, errorTitle, selectionMode, clearSelectionOnFilterChange, privacyMode, }: DataGridAnnouncerOptions): string;
|
|
23
|
+
/** The polite region. Rendered once per grid. */
|
|
24
|
+
export declare function DataGridAnnouncer({ message }: {
|
|
25
|
+
message: string;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=announcer.d.ts.map
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { type CSSProperties, type KeyboardEvent as ReactKeyboardEvent, type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import type { Cell, Column, Row, Table } from '@tanstack/react-table';
|
|
3
|
+
import type { DataGridFeatures } from './features';
|
|
4
|
+
import type { DataGridColumn, DataGridColumnGroup, DataGridSelectionApi, DataGridStore, DataGridTableMeta } from './types';
|
|
5
|
+
export type DgTable<TData extends object> = Table<DataGridFeatures, TData>;
|
|
6
|
+
export type DgRow<TData extends object> = Row<DataGridFeatures, TData>;
|
|
7
|
+
export type DgColumn<TData extends object> = Column<DataGridFeatures, TData, unknown>;
|
|
8
|
+
export type DgCell<TData extends object> = Cell<DataGridFeatures, TData, unknown>;
|
|
9
|
+
/** How a pinned column sticks: the first on a side at the edge, later ones
|
|
10
|
+
* at an offset; the divider on the boundary column. */
|
|
11
|
+
export interface DataGridPinPresentation {
|
|
12
|
+
pin: 'none' | 'start' | 'end' | 'startOffset' | 'endOffset';
|
|
13
|
+
divider: 'none' | 'start' | 'end';
|
|
14
|
+
/** px from the edge for `startOffset` / `endOffset` (measured). */
|
|
15
|
+
offset: number | null;
|
|
16
|
+
}
|
|
17
|
+
export declare const NO_PIN: DataGridPinPresentation;
|
|
18
|
+
/** Everything the header, body and footer read. Built once per render by
|
|
19
|
+
* `data-grid.tsx` from the engine. */
|
|
20
|
+
export interface DataGridRenderModel<TData extends object> {
|
|
21
|
+
table: DgTable<TData>;
|
|
22
|
+
store: DataGridStore;
|
|
23
|
+
kitColumns: ReadonlyMap<string, DataGridColumn<TData>>;
|
|
24
|
+
kitGroups: ReadonlyMap<string, DataGridColumnGroup>;
|
|
25
|
+
selection: DataGridSelectionApi;
|
|
26
|
+
meta: DataGridTableMeta;
|
|
27
|
+
/** `useId()` of the grid: prefix of every generated id. */
|
|
28
|
+
idBase: string;
|
|
29
|
+
density: 'default' | 'compact';
|
|
30
|
+
dataMode: 'client' | 'server';
|
|
31
|
+
direction: 'ltr' | 'rtl';
|
|
32
|
+
privacyMode: boolean;
|
|
33
|
+
/** `DataGridProps.hostTextPrivacySafe`: host errors, descriptions and
|
|
34
|
+
* reasons show as written on a masked row. */
|
|
35
|
+
hostTextPrivacySafe: boolean;
|
|
36
|
+
pins: ReadonlyMap<string, DataGridPinPresentation>;
|
|
37
|
+
/** Visible leaf columns in DOM order (start-pinned, centre, end-pinned),
|
|
38
|
+
* the order `row.getVisibleCells()` uses. */
|
|
39
|
+
visibleColumns: readonly DgColumn<TData>[];
|
|
40
|
+
/** Their ids joined: a memoised body row compares this, not the array. */
|
|
41
|
+
visibleColumnsKey: string;
|
|
42
|
+
/** The model of the last committed render. Event handlers in a memoised
|
|
43
|
+
* row read it, so a row that did not re-render never acts on a stale
|
|
44
|
+
* selection or table state. */
|
|
45
|
+
latest: {
|
|
46
|
+
readonly current: DataGridRenderModel<TData> | null;
|
|
47
|
+
};
|
|
48
|
+
/** The data column whose cells are `<th scope="row">`. */
|
|
49
|
+
rowHeaderColumnId: string | null;
|
|
50
|
+
renderDetail?: (row: TData) => ReactNode;
|
|
51
|
+
/** `DataGridProps.readOnly`: the reason every selectable box gives while
|
|
52
|
+
* the whole grid is read-only, or `null`. */
|
|
53
|
+
readOnlyReason: string | null;
|
|
54
|
+
}
|
|
55
|
+
/** One body item: a row, or the detail panel under an expanded row. */
|
|
56
|
+
export type DataGridBodyItem<TData extends object> = {
|
|
57
|
+
kind: 'row';
|
|
58
|
+
key: string;
|
|
59
|
+
row: DgRow<TData>;
|
|
60
|
+
} | {
|
|
61
|
+
kind: 'detail';
|
|
62
|
+
key: string;
|
|
63
|
+
row: DgRow<TData>;
|
|
64
|
+
};
|
|
65
|
+
/** Utility column kinds from the v9 column meta. */
|
|
66
|
+
export declare function columnKind<TData extends object>(column: DgColumn<TData>): 'data' | 'group' | 'select' | 'expand';
|
|
67
|
+
/** The CSS custom property a pinned cell needs, if any. Inline style only
|
|
68
|
+
* under 23-constraints §Runtime-computed dimensions (case 1 setter, case 2
|
|
69
|
+
* value: measured from the pinned header cells). */
|
|
70
|
+
export declare function pinStyle(presentation: DataGridPinPresentation): CSSProperties | undefined;
|
|
71
|
+
/** Is this kit column printed? Utility columns never are. */
|
|
72
|
+
export declare function isPrintable<TData>(kind: 'data' | 'group' | 'select' | 'expand', kit: DataGridColumn<TData> | undefined): boolean;
|
|
73
|
+
export declare const nameId: (idBase: string, itemIndex: number, cellIndex: number) => string;
|
|
74
|
+
export declare const detailId: (idBase: string, itemIndex: number) => string;
|
|
75
|
+
/** A data column's header cell. Encoded, since a column id is host text
|
|
76
|
+
* and an id reference list splits on white space. */
|
|
77
|
+
export declare const headerNameId: (idBase: string, columnId: string) => string;
|
|
78
|
+
export interface DataGridBodyProps<TData extends object> {
|
|
79
|
+
model: DataGridRenderModel<TData>;
|
|
80
|
+
bodyRef: RefObject<HTMLTableSectionElement | null>;
|
|
81
|
+
/** Every body item on this page, in display order. */
|
|
82
|
+
items: readonly DataGridBodyItem<TData>[];
|
|
83
|
+
/** Mounted item indexes and gaps (all of them when not virtualised). */
|
|
84
|
+
mounted: readonly {
|
|
85
|
+
index: number;
|
|
86
|
+
gapBefore: number;
|
|
87
|
+
}[];
|
|
88
|
+
virtualised: boolean;
|
|
89
|
+
padStart: number;
|
|
90
|
+
padEnd: number;
|
|
91
|
+
measureElement: (node: HTMLTableRowElement | null) => void;
|
|
92
|
+
columnCount: number;
|
|
93
|
+
/** `aria-rowindex` of an item, or `undefined` when every row is in the
|
|
94
|
+
* DOM. */
|
|
95
|
+
ariaRowIndexOf: (itemIndex: number) => number | undefined;
|
|
96
|
+
onKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
|
|
97
|
+
/** Replaces the rows (states: skeleton, empty, error). */
|
|
98
|
+
stateRows?: ReactNode;
|
|
99
|
+
}
|
|
100
|
+
export declare function DataGridBody<TData extends object>({ model, bodyRef, items, mounted, virtualised, padStart, padEnd, measureElement, columnCount, ariaRowIndexOf, onKeyDown, stateRows, }: DataGridBodyProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { type DataGridFeatures, type DataGridSortFnName } from './features';
|
|
3
|
+
import type { DataGridFilterFnName } from './filter-fns';
|
|
4
|
+
import type { DataGridColumn, DataGridColumnFilter, DataGridColumnGroup, DataGridColumnPinning, DataGridOption } from './types';
|
|
5
|
+
/** A v9 column def over the kit feature set. */
|
|
6
|
+
export type DataGridColumnDef<TData extends object> = ColumnDef<DataGridFeatures, TData, unknown>;
|
|
7
|
+
/** Ids starting with this are reserved for utility columns. */
|
|
8
|
+
export declare const DATA_GRID_RESERVED_PREFIX = "__";
|
|
9
|
+
/** Utility column ids in their fixed start-pinned order. */
|
|
10
|
+
export declare const DATA_GRID_UTILITY_IDS: readonly string[];
|
|
11
|
+
export declare function isUtilityColumnId(id: string): boolean;
|
|
12
|
+
/** Plain column name: `headerLabel`, a string or number `header`, else the
|
|
13
|
+
* id (with a DEV warning, because the id is a developer constant). */
|
|
14
|
+
export declare function getDataGridColumnLabel<TData>(column: Pick<DataGridColumn<TData>, 'id' | 'header' | 'headerLabel'>): string;
|
|
15
|
+
/** Whole-column rule (types.ts `DataGridColumnPrivacy`): under privacy
|
|
16
|
+
* mode, a column with any `privacy` leaves sorting, filtering, quick
|
|
17
|
+
* search and facets for every row. */
|
|
18
|
+
export declare function isDataGridColumnMasked<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, privacyMode: boolean): boolean;
|
|
19
|
+
/** Is this one cell masked (shows the mask instead of `cell`)? */
|
|
20
|
+
export declare function isDataGridCellMasked<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, row: TData, privacyMode: boolean): boolean;
|
|
21
|
+
/** The host mask text for a masked cell, or `undefined` (bullets). */
|
|
22
|
+
export declare function getDataGridHostMask<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, row: TData): string | undefined;
|
|
23
|
+
/** `privacy: 'hide'` under privacy mode: hidden and cannot be shown. */
|
|
24
|
+
export declare function isDataGridColumnPrivacyHidden<TData>(column: Pick<DataGridColumn<TData>, 'privacy'>, privacyMode: boolean): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* A select filter's options: the column's own, else (client mode) the
|
|
27
|
+
* distinct values of every core row, sorted for `locale`, so other filters
|
|
28
|
+
* do not shrink the list. Shared by the header panel and the toolbar seam.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getDataGridSelectOptions<TData>(column: Pick<DataGridColumn<TData>, 'filter' | 'value'>, coreRows: ReadonlyArray<{
|
|
31
|
+
original: TData;
|
|
32
|
+
}>, dataMode: 'client' | 'server', locale: string | undefined): readonly DataGridOption[];
|
|
33
|
+
export declare function resolveDataGridSortFn<TData>(sort: DataGridColumn<TData>['sort']): DataGridSortFnName | ((a: TData, b: TData) => number) | null;
|
|
34
|
+
export declare function resolveDataGridFilterFn(filter: DataGridColumnFilter): DataGridFilterFnName;
|
|
35
|
+
/** Is the column sortable in principle (ignoring privacy)? */
|
|
36
|
+
export declare function isDataGridColumnSortable<TData>(column: DataGridColumn<TData>): boolean;
|
|
37
|
+
/** Does the column filter in principle (ignoring privacy)? */
|
|
38
|
+
export declare function isDataGridColumnFilterable<TData>(column: DataGridColumn<TData>): boolean;
|
|
39
|
+
/** Does the column join quick search in principle (ignoring privacy)? */
|
|
40
|
+
export declare function isDataGridColumnSearchable<TData>(column: DataGridColumn<TData>): boolean;
|
|
41
|
+
export interface DataGridColumnRules {
|
|
42
|
+
canHide: boolean;
|
|
43
|
+
canMove: boolean;
|
|
44
|
+
canPin: boolean;
|
|
45
|
+
minSize: number;
|
|
46
|
+
maxSize: number;
|
|
47
|
+
}
|
|
48
|
+
/** Hide, move, pin and size defaults (types.ts `DataGridColumn`). */
|
|
49
|
+
export declare function getDataGridColumnRules<TData>(column: DataGridColumn<TData>, defaultRowHeaderId: string | null, privacyMode: boolean): DataGridColumnRules;
|
|
50
|
+
/** Clamps a width to the column's bounds; `null` for a non-finite value. */
|
|
51
|
+
export declare function clampDataGridColumnSize<TData>(column: DataGridColumn<TData>, px: number): number | null;
|
|
52
|
+
/**
|
|
53
|
+
* The row-header column: the first visible column with `rowHeader`, else
|
|
54
|
+
* the first visible data column (today's rule), wherever it moved.
|
|
55
|
+
*/
|
|
56
|
+
export declare function resolveDataGridRowHeaderId<TData>(kitColumns: ReadonlyMap<string, DataGridColumn<TData>>, visibleOrderedIds: readonly string[]): string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Completes a (possibly partial or stale) leaf order: unknown ids are
|
|
59
|
+
* dropped, and declared columns missing from it keep their declared
|
|
60
|
+
* position (each goes straight after its declared predecessor).
|
|
61
|
+
*/
|
|
62
|
+
export declare function resolveDataGridColumnOrder(order: readonly string[], declared: readonly string[]): string[];
|
|
63
|
+
export interface BuildDataGridColumnsInput<TData> {
|
|
64
|
+
columns: readonly DataGridColumn<TData>[];
|
|
65
|
+
columnGroups?: readonly DataGridColumnGroup[];
|
|
66
|
+
selectionMode: 'none' | 'single' | 'multiple';
|
|
67
|
+
/** Sub-rows or a detail panel: adds `__expand`. */
|
|
68
|
+
expandable: boolean;
|
|
69
|
+
privacyMode: boolean;
|
|
70
|
+
/** The grid's `columnResizing` (each column's default). */
|
|
71
|
+
columnResizing: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface DataGridColumnModel<TData extends object> {
|
|
74
|
+
/** v9 defs: utility columns first, then data columns and groups. */
|
|
75
|
+
defs: DataGridColumnDef<TData>[];
|
|
76
|
+
/** Valid data columns by id. */
|
|
77
|
+
kitColumns: Map<string, DataGridColumn<TData>>;
|
|
78
|
+
/** Valid groups (at least one known leaf) by id. */
|
|
79
|
+
kitGroups: Map<string, DataGridColumnGroup>;
|
|
80
|
+
/** Leaf id to group id. */
|
|
81
|
+
groupOf: Map<string, string>;
|
|
82
|
+
/** Data leaf ids in declared order (group members pulled together). */
|
|
83
|
+
declaredOrder: string[];
|
|
84
|
+
/** Utility ids present, in their pinned order. */
|
|
85
|
+
utilityIds: string[];
|
|
86
|
+
/** `rowHeader` column, else the first declared data column. */
|
|
87
|
+
defaultRowHeaderId: string | null;
|
|
88
|
+
/** From each column's `pin`, minus pins that would split a group. */
|
|
89
|
+
declaredPinning: DataGridColumnPinning;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Builds the column model. Memoise on `columns`, `columnGroups`,
|
|
93
|
+
* `selectionMode`, `expandable`, `privacyMode` and `columnResizing`.
|
|
94
|
+
*/
|
|
95
|
+
export declare function buildDataGridColumns<TData extends object>(input: BuildDataGridColumnsInput<TData>): DataGridColumnModel<TData>;
|
|
96
|
+
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* has a footer. */
|
|
13
|
-
footer?: ReactNode;
|
|
14
|
-
/** Amounts go `end`, so a column lines up on the decimal. */
|
|
15
|
-
align?: 'start' | 'end';
|
|
16
|
-
/** Keeps the column in view while the others scroll sideways. */
|
|
17
|
-
pin?: 'start' | 'end';
|
|
18
|
-
}
|
|
19
|
-
export interface DataGridProps<TData> extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dir'> {
|
|
20
|
-
columns: DataGridColumn<TData>[];
|
|
21
|
-
rows: TData[];
|
|
22
|
-
getRowId: (row: TData) => string;
|
|
23
|
-
/** Names the table for screen readers. Pass a translated string. */
|
|
24
|
-
caption: string;
|
|
25
|
-
}
|
|
26
|
-
/** The first column is the row header, so name each row with it. */
|
|
27
|
-
export declare function DataGrid<TData extends object>({ columns, rows, getRowId, caption, className, ...rest }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { type ReactElement, type Ref } from 'react';
|
|
2
|
+
import { type DataGridHandle, type DataGridProps } from './types';
|
|
3
|
+
export type { DataGridColumn, DataGridProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* The kit's TanStack table. Pass `ref` for the curated `DataGridHandle`.
|
|
6
|
+
* `forwardRef` with the generic cast DataTable uses (`data-table.tsx:1146`),
|
|
7
|
+
* keeping `TData extends object` because v9 needs `RowData`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DataGrid: <TData extends object>(props: DataGridProps<TData> & {
|
|
10
|
+
ref?: Ref<DataGridHandle>;
|
|
11
|
+
}) => ReactElement;
|
|
28
12
|
//# sourceMappingURL=data-grid.d.ts.map
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/** Frame shape root (toolbar or pagination): a flex column holding the
|
|
2
|
+
* toolbar slot, the scroll region and the pager slot. */
|
|
3
|
+
export declare const frameVariants: (props?: ({
|
|
4
|
+
height?: "auto" | "fill" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/** The scroll region. In the no-chrome shape it is also the root, so it
|
|
7
|
+
* carries the card surface. */
|
|
8
|
+
export declare const scrollerVariants: (props?: ({
|
|
9
|
+
chrome?: boolean | null | undefined;
|
|
10
|
+
pinned?: boolean | null | undefined;
|
|
11
|
+
height?: "auto" | "fill" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
/** Toolbar and pager slots in the frame shape. Never printed. */
|
|
14
|
+
export declare const slotVariants: (props?: ({
|
|
15
|
+
slot?: "toolbar" | "pager" | null | undefined;
|
|
16
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
|
+
/** Range text beside the pager ("Rows 26 to 50 of 312"). */
|
|
18
|
+
export declare const pagerRangeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
19
|
+
/** Spinner holder in the no-chrome shape while loading with rows. */
|
|
20
|
+
export declare const busyVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
21
|
+
export declare const tableVariants: (props?: ({
|
|
22
|
+
fixed?: boolean | null | undefined;
|
|
23
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
24
|
+
/** `<col>` widths in fixed layout. */
|
|
25
|
+
export declare const colVariants: (props?: ({
|
|
26
|
+
kind?: "number" | "text" | "date" | "utility" | "sized" | null | undefined;
|
|
27
|
+
printable?: boolean | null | undefined;
|
|
28
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
|
+
/** Spacer rows of the virtual window: one cell spanning every column. */
|
|
30
|
+
export declare const spacerVariants: (props?: ({
|
|
31
|
+
edge?: "end" | "start" | "gap" | null | undefined;
|
|
32
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
33
|
+
/** Every grid cell. */
|
|
34
|
+
export declare const cellVariants: (props?: ({
|
|
35
|
+
section?: "body" | "head" | "group" | "foot" | "detail" | null | undefined;
|
|
36
|
+
density?: "default" | "compact" | null | undefined;
|
|
37
|
+
stick?: "top" | "none" | "below" | null | undefined;
|
|
38
|
+
align?: "end" | "start" | null | undefined;
|
|
39
|
+
pin?: "end" | "start" | "none" | "startOffset" | "endOffset" | null | undefined;
|
|
40
|
+
divider?: "end" | "start" | "none" | null | undefined;
|
|
41
|
+
utility?: boolean | null | undefined;
|
|
42
|
+
editable?: boolean | null | undefined;
|
|
43
|
+
selected?: boolean | null | undefined;
|
|
44
|
+
wrap?: boolean | null | undefined;
|
|
45
|
+
printable?: boolean | null | undefined;
|
|
46
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
47
|
+
/** Sub-row indent on the row-header cell (`--dg-depth` set per cell). */
|
|
48
|
+
export declare const depthVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
49
|
+
/** Label, tip, filter and separator inside a leaf header. */
|
|
50
|
+
export declare const headerContentVariants: (props?: ({
|
|
51
|
+
align?: "end" | "start" | null | undefined;
|
|
52
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
53
|
+
export { accessibleTargetBlockClass, accessibleTargetSquareClass, } from '../_shared/accessible-target';
|
|
54
|
+
/** The sort button: the header label and the direction glyph. */
|
|
55
|
+
export declare const sortButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
56
|
+
/** The direction glyph; muted while the column is unsorted. */
|
|
57
|
+
export declare const sortIconVariants: (props?: ({
|
|
58
|
+
active?: boolean | null | undefined;
|
|
59
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
60
|
+
/** Sort level number from the second level on. */
|
|
61
|
+
export declare const sortPriorityVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
62
|
+
/** The resize separator at the header's inline-end edge (WCAG 2.5.8 and
|
|
63
|
+
* the kit's 05:9 rule, as `accessibleTargetSquareClass`):
|
|
64
|
+
* - hit area `--spacing-lg` (24 px) wide by the header's full block size
|
|
65
|
+
* (`--min-target-size`), raised to `--min-target-size` on both axes in
|
|
66
|
+
* the accessible themes through `--accessible-target-floor`;
|
|
67
|
+
* - it sits inside its own header cell (`end-0`), never over the next
|
|
68
|
+
* column, and `resizableHeadCellClass` reserves exactly its width as the
|
|
69
|
+
* cell's inline-end padding in every theme, so the sort button and
|
|
70
|
+
* filter trigger never sit under it;
|
|
71
|
+
* - not wider in the default theme: centring a 44 px area on the column
|
|
72
|
+
* edge would cover the next header's sort button, and a 44 px padding
|
|
73
|
+
* would leave a 64 px column no room for its label. */
|
|
74
|
+
export declare const separatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
75
|
+
/** A resizable leaf header cell: its inline-end padding is the
|
|
76
|
+
* separator's width in every theme (24 px, or `--min-target-size` in the
|
|
77
|
+
* accessible themes), so the sort button and filter trigger never sit
|
|
78
|
+
* under the separator. */
|
|
79
|
+
export declare const resizableHeadCellClass = "ds:pe-[var(--accessible-target-floor,var(--spacing-lg))]";
|
|
80
|
+
/** The expander chevron: rotates when open, flips in RTL while closed. */
|
|
81
|
+
export declare const expanderIconVariants: (props?: ({
|
|
82
|
+
expanded?: boolean | null | undefined;
|
|
83
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
84
|
+
/** The muted dash for a row that cannot be selected. */
|
|
85
|
+
export declare const noneMarkVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
86
|
+
/** The detail panel cell stays in view when scrolled sideways. */
|
|
87
|
+
export declare const detailContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
88
|
+
/** A skeleton row's placeholder bar. */
|
|
89
|
+
export declare const skeletonBarVariants: (props?: ({
|
|
90
|
+
width?: "long" | "medium" | "short" | null | undefined;
|
|
91
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
92
|
+
/** The EmptyState holder row: one cell over every column. */
|
|
93
|
+
export declare const stateCellVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
94
|
+
/** Built-in editors fill their cell. */
|
|
95
|
+
export declare const editorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
96
|
+
/** Wraps a built-in editor: the kit's compact field exception (32 px,
|
|
97
|
+
* raised to `--min-target-size` under the accessible themes and on touch
|
|
98
|
+
* widths) instead of `size="sm"`, so a Select's menu keeps the target. */
|
|
99
|
+
export declare const editorFieldVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
100
|
+
/** An editor's error text under the input. */
|
|
101
|
+
export declare const editorErrorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
102
|
+
/** Text read as part of its cell's name but not shown, kept inline: the
|
|
103
|
+
* name algorithm adds no space around an inline span (it does around the
|
|
104
|
+
* block-level `sr-only` box), and font size 0 gives it no width. Used for
|
|
105
|
+
* a sub-row's ", level 2" so the row header reads "Alginate 500 g,
|
|
106
|
+
* level 2". `print:hidden` keeps it off paper. */
|
|
107
|
+
export declare const inlineHiddenTextClass = "ds:inline ds:[font-size:0] ds:leading-none ds:print:hidden";
|
|
108
|
+
/** Visually hidden level text and similar inline extras. */
|
|
109
|
+
export declare const maskVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
110
|
+
//# sourceMappingURL=data-grid.variants.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type NumberInputValidity } from '../number-input';
|
|
2
|
+
import type { DataGridColumnEdit, DataGridEditContext } from './types';
|
|
3
|
+
export interface DataGridEditorProps<TData> {
|
|
4
|
+
edit: DataGridColumnEdit<TData>;
|
|
5
|
+
row: TData;
|
|
6
|
+
context: DataGridEditContext;
|
|
7
|
+
/** Id of the cell's hidden host hint (number editor only). */
|
|
8
|
+
descriptionId?: string;
|
|
9
|
+
/** The number editor's own verdict, so the cell can show kit copy when
|
|
10
|
+
* the host's `error` says nothing. */
|
|
11
|
+
onNumberValidityChange?: (validity: NumberInputValidity) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function DataGridEditor<TData>({ edit, row, context, descriptionId, onNumberValidityChange, }: DataGridEditorProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=editors.d.ts.map
|