@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.
Files changed (416) hide show
  1. package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
  2. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
  3. package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
  4. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-gEXqU5i5.js} +8 -8
  7. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  8. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
  9. package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
  11. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
  12. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  13. package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
  14. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
  15. package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
  16. package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
  17. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  18. package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
  19. package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
  21. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
  22. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
  23. package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.js} +2 -2
  24. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  25. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  26. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  27. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  28. package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
  29. package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
  30. package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
  31. package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
  32. package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
  33. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
  34. package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
  35. package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
  36. package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
  37. package/dist/_chunks/data-table-B47iw2CO.js +1694 -0
  38. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  39. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  40. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  41. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  42. package/dist/_chunks/date-range-panel-B-DUtfw3.js +62 -0
  43. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  44. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  45. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  46. package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
  47. package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
  48. package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
  49. package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
  50. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
  51. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.js} +3 -3
  52. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  53. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  54. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  55. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  56. package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
  57. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
  58. package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
  59. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
  60. package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
  61. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  62. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  63. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  64. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  65. package/dist/_chunks/grid-context-jn9y8tNE.js +46 -0
  66. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
  67. package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
  68. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
  69. package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
  70. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  71. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  72. package/dist/_chunks/icon-button-group-Ca2VkXy5.js +442 -0
  73. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  74. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  75. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  76. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  77. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-BFfLg7c-.js} +7 -7
  78. package/dist/_chunks/link-cell-renderer-D-Io828l.js +800 -0
  79. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CBHNg8x-.js} +5 -5
  81. package/dist/_chunks/match-BATShpSX.js +336 -0
  82. package/dist/_chunks/money-OE6_oDPH.js +138 -0
  83. package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
  84. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  85. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  86. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-DexbfrFo.js} +3 -3
  87. package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
  88. package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
  89. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  90. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  91. package/dist/_chunks/parts-CtcTW1PN.js +869 -0
  92. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
  93. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
  94. package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
  95. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
  96. package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
  97. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  98. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  99. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  100. package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
  101. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
  102. package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
  103. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  104. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  105. package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
  106. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  107. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
  108. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  109. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
  110. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
  111. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  112. package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
  113. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  114. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  115. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  116. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  117. package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
  118. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  119. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  120. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  121. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  122. package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
  123. package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
  124. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  125. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  126. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-DgUjtqpX.js} +386 -410
  127. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  128. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
  129. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
  130. package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
  131. package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
  132. package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
  133. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  134. package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
  135. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  136. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
  137. package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
  138. package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
  139. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
  140. package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
  141. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  142. package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
  143. package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
  144. package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
  145. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
  146. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  147. package/dist/agent-catalog.json +3359 -1569
  148. package/dist/agent-i18n/en.json +100 -2
  149. package/dist/components/_shared/accessible-target.d.ts +12 -0
  150. package/dist/components/_shared/decimal.d.ts +171 -0
  151. package/dist/components/_shared/format-price.d.ts +54 -2
  152. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  153. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  154. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  155. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  156. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  157. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  158. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  159. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  160. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  161. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  162. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  163. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  164. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  165. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  166. package/dist/components/address-fields/index.js +1 -1
  167. package/dist/components/ai-permission-notice/index.js +1 -1
  168. package/dist/components/appointment-card/index.js +2 -2
  169. package/dist/components/appointment-details-panel/index.js +1 -1
  170. package/dist/components/appointment-peek/index.js +1 -1
  171. package/dist/components/appointment-timeline/index.js +1 -1
  172. package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
  173. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
  174. package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
  175. package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
  176. package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
  177. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
  178. package/dist/components/bill-line-table/index.d.ts +6 -0
  179. package/dist/components/bill-line-table/index.js +23 -0
  180. package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
  181. package/dist/components/bill-table/bill-table.d.ts +13 -0
  182. package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
  183. package/dist/components/bill-table/cells.d.ts +89 -0
  184. package/dist/components/bill-table/columns.d.ts +21 -0
  185. package/dist/components/bill-table/default-tabs.d.ts +21 -0
  186. package/dist/components/bill-table/handle.d.ts +19 -0
  187. package/dist/components/bill-table/index.d.ts +7 -0
  188. package/dist/components/bill-table/index.js +19 -0
  189. package/dist/components/bill-table/model.d.ts +103 -0
  190. package/dist/components/bill-table/row-actions.d.ts +27 -0
  191. package/dist/components/bill-table/status-maps.d.ts +225 -0
  192. package/dist/components/bill-table/types.d.ts +542 -0
  193. package/dist/components/bmi-calculator/index.js +1 -1
  194. package/dist/components/booking/index.js +1 -1
  195. package/dist/components/button-group/index.js +1 -1
  196. package/dist/components/calculator-dialog/index.js +1 -1
  197. package/dist/components/care-plan-card/index.js +1 -1
  198. package/dist/components/care-plan-entry-card/index.js +1 -1
  199. package/dist/components/chart/index.js +1 -1
  200. package/dist/components/chat-container/index.js +1 -1
  201. package/dist/components/checkbox/checkbox.d.ts +66 -6
  202. package/dist/components/checkbox/index.js +1 -1
  203. package/dist/components/checkbox-group/index.js +1 -1
  204. package/dist/components/combobox/combobox.d.ts +59 -1
  205. package/dist/components/combobox/index.d.ts +1 -1
  206. package/dist/components/combobox/index.js +1 -1
  207. package/dist/components/contact-profile-card/index.js +1 -1
  208. package/dist/components/country-select/index.js +1 -1
  209. package/dist/components/cycle-calculator/index.js +1 -1
  210. package/dist/components/dashboard-grid/index.js +1 -1
  211. package/dist/components/data-grid/announcer.d.ts +27 -0
  212. package/dist/components/data-grid/body.d.ts +101 -0
  213. package/dist/components/data-grid/columns.d.ts +96 -0
  214. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  215. package/dist/components/data-grid/data-grid.d.ts +11 -27
  216. package/dist/components/data-grid/data-grid.variants.d.ts +110 -0
  217. package/dist/components/data-grid/editors.d.ts +14 -0
  218. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  219. package/dist/components/data-grid/features.d.ts +56 -0
  220. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  221. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  222. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  223. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  224. package/dist/components/data-grid/footer.d.ts +10 -0
  225. package/dist/components/data-grid/grid-context.d.ts +18 -0
  226. package/dist/components/data-grid/handle.d.ts +60 -0
  227. package/dist/components/data-grid/header.d.ts +12 -0
  228. package/dist/components/data-grid/index.d.ts +3 -0
  229. package/dist/components/data-grid/index.js +11 -3
  230. package/dist/components/data-grid/keyboard.d.ts +76 -0
  231. package/dist/components/data-grid/pager.d.ts +18 -0
  232. package/dist/components/data-grid/persistence.d.ts +60 -0
  233. package/dist/components/data-grid/print.d.ts +10 -0
  234. package/dist/components/data-grid/responsive.d.ts +36 -0
  235. package/dist/components/data-grid/selection.d.ts +68 -0
  236. package/dist/components/data-grid/state.d.ts +119 -0
  237. package/dist/components/data-grid/states.d.ts +34 -0
  238. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  239. package/dist/components/data-grid/toolbar.d.ts +41 -0
  240. package/dist/components/data-grid/types.d.ts +1396 -0
  241. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  242. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  243. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  244. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  245. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  246. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  247. package/dist/components/data-grid-tabs/index.js +8 -0
  248. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  249. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  250. package/dist/components/data-table/calendar-day.d.ts +4 -21
  251. package/dist/components/data-table/data-table.d.ts +10 -6
  252. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  253. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  254. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  255. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  256. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  257. package/dist/components/data-table/index.js +4 -4
  258. package/dist/components/data-table/toolbar.d.ts +25 -21
  259. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  260. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  261. package/dist/components/data-table-tabs/index.js +1 -1
  262. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  263. package/dist/components/date-picker/index.js +1 -1
  264. package/dist/components/date-range-picker/index.js +1 -1
  265. package/dist/components/date-time-picker/index.js +1 -1
  266. package/dist/components/dialog/focus-return.d.ts +12 -0
  267. package/dist/components/dialog/index.js +1 -1
  268. package/dist/components/document-preview/index.js +1 -1
  269. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
  270. package/dist/components/dropdown-menu/index.js +1 -1
  271. package/dist/components/due-date-calculator/index.js +2 -2
  272. package/dist/components/face-scheme/index.js +1 -1
  273. package/dist/components/fetal-weight/index.js +1 -1
  274. package/dist/components/file-manager/index.js +1 -1
  275. package/dist/components/gestational-age-calculator/index.js +1 -1
  276. package/dist/components/hcg-doubling/index.js +1 -1
  277. package/dist/components/header-settings/index.js +1 -1
  278. package/dist/components/heatmap/index.js +1 -1
  279. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  280. package/dist/components/icon-button-group/index.d.ts +1 -1
  281. package/dist/components/icon-button-group/index.js +1 -1
  282. package/dist/components/index.d.ts +7 -0
  283. package/dist/components/money/index.js +1 -1
  284. package/dist/components/money/money.d.ts +39 -6
  285. package/dist/components/muscle-scheme/index.js +1 -1
  286. package/dist/components/notes-panel/index.js +1 -1
  287. package/dist/components/number-input/index.d.ts +2 -2
  288. package/dist/components/number-input/index.js +1 -1
  289. package/dist/components/number-input/number-input.d.ts +43 -2
  290. package/dist/components/number-input/use-locale-number.d.ts +67 -3
  291. package/dist/components/optical-prescription/index.js +1 -1
  292. package/dist/components/patient-details/index.js +1 -1
  293. package/dist/components/patient-search/index.js +1 -1
  294. package/dist/components/patient-summary-card/index.js +1 -1
  295. package/dist/components/patient-table/index.js +1 -1
  296. package/dist/components/payment-card/index.js +1 -1
  297. package/dist/components/periodontal-diagnosis/index.js +1 -1
  298. package/dist/components/permission-matrix/index.js +1 -1
  299. package/dist/components/practice-results/index.js +1 -1
  300. package/dist/components/pregnancy-dating/index.js +1 -1
  301. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  302. package/dist/components/province-select/index.js +1 -1
  303. package/dist/components/radiograph-panel/index.js +1 -1
  304. package/dist/components/rich-text-editor/index.js +2 -2
  305. package/dist/components/row-actions/index.d.ts +3 -0
  306. package/dist/components/row-actions/index.js +5 -0
  307. package/dist/components/row-actions/row-actions.d.ts +63 -0
  308. package/dist/components/sidebar/index.js +1 -1
  309. package/dist/components/skeleton-scheme/index.js +1 -1
  310. package/dist/components/slot-grid/index.js +1 -1
  311. package/dist/components/smart-date/smart-date.d.ts +1 -1
  312. package/dist/components/tab-bar/index.js +1 -1
  313. package/dist/components/tabs/index.js +1 -1
  314. package/dist/components/tag/index.js +1 -1
  315. package/dist/components/task-card/index.js +1 -1
  316. package/dist/components/task-editor/index.js +1 -1
  317. package/dist/components/task-tray/index.js +1 -1
  318. package/dist/components/tasks-panel/index.js +1 -1
  319. package/dist/components/theme-toggle/index.js +1 -1
  320. package/dist/components/token-insert-menu/index.js +1 -1
  321. package/dist/components/tooth-scheme/index.js +1 -1
  322. package/dist/components/transaction-chip/index.js +1 -1
  323. package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
  324. package/dist/components/transcript-panel/index.js +1 -1
  325. package/dist/components/treatment-receipt/index.js +1 -1
  326. package/dist/components/unit-converter/index.js +1 -1
  327. package/dist/components/voice-control-panel/index.js +1 -1
  328. package/dist/components/widget-picker/index.js +1 -1
  329. package/dist/components/workflow/index.js +1 -1
  330. package/dist/components/workflow-status/index.js +1 -1
  331. package/dist/core.css +1 -1
  332. package/dist/decimal/index.js +149 -0
  333. package/dist/host-compat.css +36 -2
  334. package/dist/i18n/locales/ar.d.ts +342 -0
  335. package/dist/i18n/locales/ar.js +344 -2
  336. package/dist/i18n/locales/de.d.ts +342 -0
  337. package/dist/i18n/locales/de.js +344 -2
  338. package/dist/i18n/locales/el.d.ts +342 -0
  339. package/dist/i18n/locales/el.js +344 -2
  340. package/dist/i18n/locales/en.d.ts +342 -0
  341. package/dist/i18n/locales/en.js +345 -2
  342. package/dist/i18n/locales/es.d.ts +342 -0
  343. package/dist/i18n/locales/es.js +344 -2
  344. package/dist/i18n/locales/fr.d.ts +342 -0
  345. package/dist/i18n/locales/fr.js +344 -2
  346. package/dist/i18n/locales/hi.d.ts +342 -0
  347. package/dist/i18n/locales/hi.js +344 -2
  348. package/dist/i18n/locales/it.d.ts +342 -0
  349. package/dist/i18n/locales/it.js +344 -2
  350. package/dist/i18n/locales/ja.d.ts +342 -0
  351. package/dist/i18n/locales/ja.js +344 -2
  352. package/dist/i18n/locales/nl.d.ts +342 -0
  353. package/dist/i18n/locales/nl.js +344 -2
  354. package/dist/i18n/locales/pl.d.ts +342 -0
  355. package/dist/i18n/locales/pl.js +344 -2
  356. package/dist/i18n/locales/pt.d.ts +342 -0
  357. package/dist/i18n/locales/pt.js +344 -2
  358. package/dist/i18n/locales/ro.d.ts +342 -0
  359. package/dist/i18n/locales/ro.js +344 -2
  360. package/dist/i18n/locales/ru.d.ts +342 -0
  361. package/dist/i18n/locales/ru.js +344 -2
  362. package/dist/i18n/locales/sq.d.ts +342 -0
  363. package/dist/i18n/locales/sq.js +344 -2
  364. package/dist/i18n/locales/sv.d.ts +342 -0
  365. package/dist/i18n/locales/sv.js +344 -2
  366. package/dist/i18n/locales/tr.d.ts +342 -0
  367. package/dist/i18n/locales/tr.js +344 -2
  368. package/dist/i18n/locales/zh.d.ts +342 -0
  369. package/dist/i18n/locales/zh.js +344 -2
  370. package/dist/index.js +1305 -1241
  371. package/dist/locales/ar.json +344 -2
  372. package/dist/locales/de.json +344 -2
  373. package/dist/locales/el.json +344 -2
  374. package/dist/locales/en.json +344 -2
  375. package/dist/locales/es.json +344 -2
  376. package/dist/locales/fr.json +344 -2
  377. package/dist/locales/hi.json +344 -2
  378. package/dist/locales/it.json +344 -2
  379. package/dist/locales/ja.json +344 -2
  380. package/dist/locales/nl.json +344 -2
  381. package/dist/locales/pl.json +344 -2
  382. package/dist/locales/pt.json +344 -2
  383. package/dist/locales/ro.json +344 -2
  384. package/dist/locales/ru.json +344 -2
  385. package/dist/locales/sq.json +344 -2
  386. package/dist/locales/sv.json +344 -2
  387. package/dist/locales/tr.json +344 -2
  388. package/dist/locales/zh.json +344 -2
  389. package/dist/patterns/alia-assistant/index.js +1 -1
  390. package/dist/patterns/anamnesis/index.js +1 -1
  391. package/dist/patterns/calendar/index.js +1 -1
  392. package/dist/patterns/help-me-write-templates/index.js +1 -1
  393. package/dist/patterns/login-form/index.js +1 -1
  394. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  395. package/dist/patterns/registration-form/index.js +1 -1
  396. package/dist/patterns/send-registration-link-form/index.js +1 -1
  397. package/dist/patterns/signature-request/index.js +1 -1
  398. package/dist/patterns/verify-identity/index.js +1 -1
  399. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  400. package/dist/tokens.css +1 -1
  401. package/package.json +21 -1
  402. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  403. package/dist/_chunks/combobox-duuDRI1t.js +0 -688
  404. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  405. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  406. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  407. package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
  408. package/dist/_chunks/format--x5jypvH.js +0 -1319
  409. package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
  410. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  411. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  412. package/dist/_chunks/money-Tsczpjfz.js +0 -102
  413. package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
  414. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  415. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
  416. package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
@@ -1,52 +0,0 @@
1
- import { n as s } from "./intl-locale-FWh-Y5_3.js";
2
- const n = /* @__PURE__ */ new Set([
3
- "BIF",
4
- "CLP",
5
- "DJF",
6
- "GNF",
7
- "IDR",
8
- "JPY",
9
- "KMF",
10
- "KRW",
11
- "MGA",
12
- "PYG",
13
- "RWF",
14
- "UGX",
15
- "VND",
16
- "VUV",
17
- "XAF",
18
- "XOF",
19
- "XPF"
20
- ]);
21
- function u(r, o, a) {
22
- const t = o.toUpperCase(), e = n.has(t) ? r : r / 100;
23
- try {
24
- return new Intl.NumberFormat(s(a), {
25
- style: "currency",
26
- currency: t
27
- }).format(e);
28
- } catch {
29
- return `${n.has(t) ? String(e) : e.toFixed(2)} ${t}`;
30
- }
31
- }
32
- function F(r, o, a, t) {
33
- return r === 0 ? t : u(r, o, a);
34
- }
35
- function f(r, o, a, t = {}) {
36
- const e = o.toUpperCase(), c = n.has(e) ? r : r / 100;
37
- try {
38
- return new Intl.NumberFormat(s(a), {
39
- style: "currency",
40
- currency: e,
41
- ...t
42
- }).formatToParts(c);
43
- } catch {
44
- return null;
45
- }
46
- }
47
- export {
48
- u as a,
49
- F as b,
50
- f
51
- };
52
- //# sourceMappingURL=format-price-BcFBa-WP.js.map
@@ -1,427 +0,0 @@
1
- import { jsx as l, jsxs as _ } from "react/jsx-runtime";
2
- import { forwardRef as Ge, useState as q, useCallback as F, useRef as P, Children as he, isValidElement as G, useEffect as we, cloneElement as ke } from "react";
3
- import { c as Me } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Oe } from "react-i18next";
5
- import { I as Ie } from "./icon-button-S8_weU3g.js";
6
- import { D as k } from "./dropdown-menu-CqxBthww.js";
7
- import { u as Ue } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
- import { u as $e } from "./use-priority-overflow-Cdmb5EiR.js";
9
- import { E as Re } from "./ellipsis-dRo9ouSU.js";
10
- function Ce(n) {
11
- n && (n.inert = !0);
12
- }
13
- const xe = Me(
14
- [
15
- "ds:inline-flex ds:isolate",
16
- // Hairline border around the group unifies the children into one
17
- // visual unit. Internal child dividers are drawn via the per-child
18
- // class list below.
19
- "ds:border ds:border-border",
20
- "ds:rounded-[var(--radius-md)]",
21
- // Ensure the focus ring of a pressed child sits above its siblings.
22
- "ds:[&>*]:relative ds:[&>*:focus-visible]:z-10"
23
- ].join(" "),
24
- {
25
- variants: {
26
- orientation: {
27
- horizontal: [
28
- "ds:flex-row",
29
- // Flatten internal corners on children so the outer radius owns
30
- // the rounded edges.
31
- "ds:[&>*:not(:first-child)]:rounded-s-none",
32
- "ds:[&>*:not(:last-child)]:rounded-e-none",
33
- // Internal divider — logical so it flips in RTL.
34
- "ds:[&>*:not(:first-child)]:border-s",
35
- "ds:[&>*:not(:first-child)]:border-border",
36
- // The children already own an outer border (from IconButton's
37
- // own border in secondary/outline variants). Collapse the doubled
38
- // border so we don't get a 2px seam.
39
- "ds:[&>*]:border-0"
40
- ].join(" "),
41
- vertical: [
42
- "ds:flex-col",
43
- // Vertical groups flow block-wise. Reading direction doesn't
44
- // invert vertical stacks in any locale this DS targets, so the
45
- // physical `rounded-t/b` is intentional.
46
- "ds:[&>*:not(:first-child)]:rounded-t-none",
47
- "ds:[&>*:not(:last-child)]:rounded-b-none",
48
- "ds:[&>*:not(:first-child)]:border-t",
49
- "ds:[&>*:not(:first-child)]:border-border",
50
- "ds:[&>*]:border-0"
51
- ].join(" ")
52
- }
53
- },
54
- defaultVariants: {
55
- orientation: "horizontal"
56
- }
57
- }
58
- ), Ae = "ds:absolute ds:start-0 ds:top-0 ds:invisible ds:pointer-events-none", Ee = Ge(
59
- (n, y) => {
60
- const {
61
- size: b,
62
- orientation: c = "horizontal",
63
- role: s = "group",
64
- mode: i = "momentary",
65
- disabled: J = !1,
66
- intent: S = "outline",
67
- overflow: Ve = "none",
68
- className: Q,
69
- children: X,
70
- "aria-label": Y,
71
- "aria-labelledby": Z,
72
- // Controlled-value props are consumed via `props as …` below; strip them
73
- // here so they never spread onto the root <div> (React would warn that
74
- // `onValueChange` is an unknown DOM event handler).
75
- value: He,
76
- defaultValue: qe,
77
- onValueChange: Je,
78
- ...ee
79
- } = n, { t: Le } = Oe("ui"), h = Ve === "menu" && c !== "vertical", [re, te] = q(
80
- () => i === "toggle-single" ? n.defaultValue ?? "" : i === "toggle-multi" ? n.defaultValue ?? [] : ""
81
- ), g = (() => {
82
- if (i === "toggle-single") {
83
- const e = n;
84
- return e.value !== void 0 ? e.value : re;
85
- }
86
- if (i === "toggle-multi") {
87
- const e = n;
88
- return e.value !== void 0 ? e.value : re;
89
- }
90
- return "";
91
- })(), I = F(
92
- (e) => {
93
- var r, o;
94
- if (i === "toggle-single") {
95
- const t = n;
96
- t.value === void 0 && te(e), (r = t.onValueChange) == null || r.call(t, e);
97
- } else if (i === "toggle-multi") {
98
- const t = n;
99
- t.value === void 0 && te(e), (o = t.onValueChange) == null || o.call(t, e);
100
- }
101
- },
102
- [i, n]
103
- ), m = s === "toolbar" || s === "radiogroup", x = P([]), [v, A] = q(0), oe = F(
104
- (e, r) => {
105
- x.current[e] = r;
106
- },
107
- []
108
- ), ne = P(null), [M, Ne] = q(!1);
109
- Ue(() => {
110
- if (typeof window > "u") return;
111
- const e = ne.current;
112
- if (!e) return;
113
- const r = window.getComputedStyle(e).direction;
114
- Ne(r === "rtl");
115
- }, []);
116
- const O = F(
117
- (e) => {
118
- var T;
119
- if (!m) return;
120
- const r = x.current.filter(Boolean).length;
121
- if (r === 0) return;
122
- const o = c === "vertical" ? "ArrowDown" : M ? "ArrowLeft" : "ArrowRight", t = c === "vertical" ? "ArrowUp" : M ? "ArrowRight" : "ArrowLeft";
123
- let a = null;
124
- if (e.key === o ? a = (v + 1) % r : e.key === t ? a = (v - 1 + r) % r : e.key === "Home" ? a = 0 : e.key === "End" && (a = r - 1), a === null) return;
125
- const N = r;
126
- let C = 0, u = a;
127
- for (; C < N; ) {
128
- const f = x.current[u];
129
- if (f && f.getAttribute("aria-disabled") !== "true" && !f.disabled)
130
- break;
131
- u = e.key === t || e.key === "End" ? (u - 1 + r) % r : (u + 1) % r, C += 1;
132
- }
133
- if (e.preventDefault(), A(u), (T = x.current[u]) == null || T.focus(), s === "radiogroup" && i === "toggle-single") {
134
- const f = de.current[u];
135
- if (f && typeof f == "object" && "props" in f) {
136
- const j = f.props.value;
137
- j && j !== g && I(j);
138
- }
139
- }
140
- },
141
- [
142
- m,
143
- c,
144
- M,
145
- v,
146
- s,
147
- i,
148
- I,
149
- g
150
- ]
151
- ), D = h ? he.toArray(X).filter(G) : [], B = (e) => {
152
- const r = e.props["aria-label"];
153
- return typeof r == "string" ? r : typeof e.props.tooltip == "string" ? e.props.tooltip : null;
154
- }, U = (e) => e.props.disabled === !0 || e.props.loading === !0 || De(e.props["aria-disabled"]);
155
- P(!1);
156
- const je = D.map((e) => {
157
- const r = e.props["data-overflow-pin"] !== void 0, o = B(e) !== null;
158
- return r || !o;
159
- }), { containerRef: ze, fullRowRef: ie, triggerProbeRef: se, visible: ae, overflowing: V } = $e({
160
- enabled: h,
161
- count: D.length,
162
- pinned: je
163
- }), Fe = F(
164
- (e) => {
165
- Ce(e), ie(e);
166
- },
167
- [ie]
168
- ), Pe = F(
169
- (e) => {
170
- Ce(e), se(e);
171
- },
172
- [se]
173
- ), le = P(null), w = h ? D.filter((e, r) => ae[r]) : he.toArray(X);
174
- h && (x.current.length = w.length + (V ? 1 : 0));
175
- const de = P([]);
176
- de.current = w;
177
- const $ = s === "radiogroup" && i === "toggle-single" ? w.findIndex(
178
- (e) => G(e) && e.props.value === g
179
- ) : -1;
180
- we(() => {
181
- $ >= 0 && A($);
182
- }, [$]);
183
- const R = w.length;
184
- we(() => {
185
- var r;
186
- if (!m || !h) return;
187
- const e = R + (V ? 1 : 0);
188
- e > 0 && v >= e && (A(e - 1), document.activeElement === document.body && ((r = le.current) == null || r.focus()));
189
- }, [
190
- m,
191
- h,
192
- R,
193
- V,
194
- v
195
- ]);
196
- const ce = (e) => G(e) ? e.props.disabled === !0 : !1, ue = w.findIndex((e) => !ce(e)), fe = ce(w[v]) ? ue !== -1 ? ue : (
197
- /* Every visible child is disabled: the overflow trigger is the
198
- only thing left that can hold focus. Without this the group
199
- has no tab stop at all and the menu is unreachable. */
200
- V ? R : v
201
- ) : v, pe = w.map((e, r) => {
202
- if (!G(e))
203
- return e;
204
- const o = e, t = o.props.value, { ariaPressed: a, ariaChecked: N } = We(
205
- i,
206
- s,
207
- t,
208
- g
209
- ), C = J === !0, u = o.props.disabled === !0, T = De(o.props["aria-disabled"]), f = (p) => {
210
- var d, z;
211
- if (C || T) {
212
- p.preventDefault(), p.stopPropagation();
213
- return;
214
- }
215
- if ((z = (d = o.props).onClick) == null || z.call(d, p), !p.defaultPrevented && t) {
216
- if (i === "toggle-single") {
217
- if (g === t) return;
218
- I(t);
219
- } else if (i === "toggle-multi") {
220
- const H = g, Te = H.includes(t) ? H.filter((_e) => _e !== t) : [...H, t];
221
- I(Te);
222
- }
223
- }
224
- }, j = (p) => {
225
- oe(r, p);
226
- const d = o.ref;
227
- typeof d == "function" ? d(p) : d != null && typeof d == "object" && (d.current = p);
228
- }, Se = C && !u ? !0 : o.props["aria-disabled"], Be = i !== "momentary" || C, Ke = {
229
- intent: o.props.intent ?? S,
230
- size: o.props.size ?? b,
231
- disabled: u,
232
- "aria-disabled": Se,
233
- onClick: Be ? f : o.props.onClick,
234
- "aria-pressed": a,
235
- "aria-checked": N,
236
- // When the group is a radiogroup, children must be `role="radio"`
237
- // so screen readers announce them as radio buttons and so
238
- // `getByRole('radio')` works in tests. The button element is
239
- // re-purposed as a radio; `aria-checked` above carries the state.
240
- role: s === "radiogroup" ? "radio" : void 0,
241
- tabIndex: m ? r === fe ? 0 : -1 : void 0,
242
- onFocus: (p) => {
243
- var d, z;
244
- m && A(r), (z = (d = o.props).onFocus) == null || z.call(d, p);
245
- },
246
- ref: j
247
- };
248
- return ke(o, Ke);
249
- }), ge = (e) => {
250
- ne.current = e, typeof y == "function" ? y(e) : y && typeof y == "object" && (y.current = e);
251
- };
252
- if (!h)
253
- return /* @__PURE__ */ l(
254
- "div",
255
- {
256
- ref: ge,
257
- role: s,
258
- "aria-label": Y,
259
- "aria-labelledby": Z,
260
- "aria-orientation": s === "toolbar" ? c : void 0,
261
- onKeyDown: O,
262
- className: xe({ orientation: c, className: Q }),
263
- "data-component": "icon-button-group",
264
- ...ee,
265
- children: pe
266
- }
267
- );
268
- const be = Le("buttonGroup.more", "More options"), L = J === !0, E = D.map((e, r) => ({ childEl: e, i: r })).filter(({ i: e }) => !ae[e]);
269
- let K = null;
270
- i === "toggle-single" ? K = /* @__PURE__ */ l(
271
- k.RadioGroup,
272
- {
273
- value: g,
274
- onValueChange: (e) => {
275
- !L && e !== g && I(e);
276
- },
277
- children: E.map(({ childEl: e, i: r }) => /* @__PURE__ */ l(
278
- k.RadioItem,
279
- {
280
- value: e.props.value ?? "",
281
- disabled: L || U(e),
282
- children: B(e)
283
- },
284
- e.key ?? r
285
- ))
286
- }
287
- ) : i === "toggle-multi" ? K = E.map(({ childEl: e, i: r }) => {
288
- const o = e.props.value, t = g, a = o ? t.includes(o) : !1;
289
- return /* @__PURE__ */ l(
290
- k.CheckboxItem,
291
- {
292
- checked: a,
293
- disabled: L || U(e),
294
- onCheckedChange: () => {
295
- L || !o || I(a ? t.filter((N) => N !== o) : [...t, o]);
296
- },
297
- children: B(e)
298
- },
299
- e.key ?? r
300
- );
301
- }) : K = E.map(({ childEl: e, i: r }) => /* @__PURE__ */ l(
302
- k.Item,
303
- {
304
- startIcon: e.props.icon,
305
- disabled: L || U(e),
306
- onSelect: (o) => {
307
- var t, a;
308
- (a = (t = e.props).onClick) == null || a.call(
309
- t,
310
- o
311
- );
312
- },
313
- children: B(e)
314
- },
315
- e.key ?? r
316
- ));
317
- const me = V ? /* @__PURE__ */ _(k.Root, { children: [
318
- /* @__PURE__ */ l(k.Trigger, { asChild: !0, children: /* @__PURE__ */ l(
319
- Ie,
320
- {
321
- icon: /* @__PURE__ */ l(Re, {}),
322
- intent: S,
323
- size: b,
324
- "aria-label": be,
325
- ref: (e) => {
326
- le.current = e, oe(R, e);
327
- },
328
- tabIndex: m ? fe === R ? 0 : -1 : void 0,
329
- onFocus: m ? () => A(R) : void 0
330
- }
331
- ) }),
332
- /* @__PURE__ */ l(k.Content, { align: "end", children: K })
333
- ] }) : null, ve = xe({ orientation: c }), W = s !== "radiogroup", ye = /* @__PURE__ */ _(
334
- "div",
335
- {
336
- role: s,
337
- "aria-label": Y,
338
- "aria-labelledby": Z,
339
- "aria-orientation": s === "toolbar" ? c : void 0,
340
- onKeyDown: W ? O : void 0,
341
- className: `${ve} ds:max-w-full`,
342
- children: [
343
- pe,
344
- W ? me : null
345
- ]
346
- }
347
- );
348
- return /* @__PURE__ */ l(
349
- "div",
350
- {
351
- ref: ge,
352
- "data-component": "icon-button-group",
353
- className: [
354
- "ds:relative ds:block ds:w-full ds:min-w-0 ds:overflow-x-clip",
355
- Q ?? ""
356
- ].join(" ").trim(),
357
- ...ee,
358
- children: /* @__PURE__ */ _("div", { ref: ze, className: "ds:block ds:w-full ds:min-w-0", children: [
359
- /* @__PURE__ */ l(
360
- "div",
361
- {
362
- ref: Fe,
363
- "aria-hidden": "true",
364
- inert: !0,
365
- className: `${Ae} ${ve}`,
366
- children: D.map(
367
- (e, r) => ke(e, {
368
- key: e.key ?? r,
369
- intent: e.props.intent ?? S,
370
- size: e.props.size ?? b,
371
- tabIndex: -1,
372
- ref: null
373
- })
374
- )
375
- }
376
- ),
377
- /* @__PURE__ */ l(
378
- "span",
379
- {
380
- ref: Pe,
381
- "aria-hidden": "true",
382
- inert: !0,
383
- className: Ae,
384
- children: /* @__PURE__ */ l(
385
- Ie,
386
- {
387
- icon: /* @__PURE__ */ l(Re, {}),
388
- intent: S,
389
- size: b,
390
- "aria-label": be,
391
- tabIndex: -1
392
- }
393
- )
394
- }
395
- ),
396
- W ? ye : (
397
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- non-focusable wrapper; arrow-key roving bubbles up from the focusable IconButtons in the strip and the overflow trigger
398
- /* @__PURE__ */ _(
399
- "div",
400
- {
401
- className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
402
- onKeyDown: O,
403
- children: [
404
- ye,
405
- me
406
- ]
407
- }
408
- )
409
- )
410
- ] })
411
- }
412
- );
413
- }
414
- );
415
- Ee.displayName = "IconButtonGroup";
416
- function We(n, y, b, c) {
417
- if (n === "momentary" || !b) return {};
418
- const s = n === "toggle-multi" ? c.includes(b) : c === b;
419
- return y === "radiogroup" ? { ariaChecked: s } : { ariaPressed: s };
420
- }
421
- function De(n) {
422
- return n === !0 || n === "true";
423
- }
424
- export {
425
- Ee as I
426
- };
427
- //# sourceMappingURL=icon-button-group-mXvYDaba.js.map