@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,102 +0,0 @@
1
- import { jsxs as V, jsx as p } from "react/jsx-runtime";
2
- import { forwardRef as z, useMemo as N } from "react";
3
- import { c as Z } from "./index-D2ZczOXr.js";
4
- import { useTranslation as $ } from "react-i18next";
5
- import { V as O } from "./visually-hidden-BHxEUGyT.js";
6
- import { f as R, a as T } from "./format-price-BcFBa-WP.js";
7
- const U = Z(
8
- [
9
- "ds:inline-flex ds:items-baseline ds:whitespace-nowrap",
10
- // Lining, fixed-width figures: without these a column of amounts
11
- // wanders because glyph widths differ between digits.
12
- "ds:tabular-nums"
13
- ].join(" "),
14
- {
15
- variants: {
16
- size: {
17
- sm: "type-body-sm",
18
- md: "type-body",
19
- lg: "type-title-item"
20
- },
21
- tone: {
22
- default: "ds:text-[color:var(--foreground)]",
23
- muted: "ds:text-[color:var(--muted-foreground)]",
24
- positive: "ds:text-[color:var(--success-foreground)]",
25
- negative: "ds:text-[color:var(--destructive)]"
26
- },
27
- strikethrough: {
28
- true: "ds:line-through ds:decoration-from-font",
29
- false: ""
30
- }
31
- },
32
- defaultVariants: { size: "md", tone: "default", strikethrough: !1 }
33
- }
34
- ), C = z(
35
- ({
36
- value: o,
37
- currency: s = "EUR",
38
- locale: v,
39
- size: x,
40
- tone: l = "default",
41
- decimals: a = "full",
42
- signDisplay: m = "auto",
43
- strikethrough: y,
44
- className: g,
45
- ...h
46
- }, j) => {
47
- const { i18n: b } = $("ui"), n = v ?? b.language, { nodes: k, full: w } = N(() => {
48
- const e = R(
49
- o,
50
- s,
51
- n,
52
- m === "always" ? { signDisplay: "exceptZero" } : {}
53
- ), f = T(o, s, n);
54
- if (!e)
55
- return { nodes: [{ text: f, muted: !1 }], full: f };
56
- const i = e.map((t) => t.value).join(""), P = e.filter((t) => t.type === "fraction").every((t) => /^0+$/.test(t.value)), u = (t) => t === "decimal" || t === "fraction";
57
- if (a === "hideWhenZero" && P) {
58
- const c = e.filter((d) => !u(d.type)).map((d) => d.value).join("").trim();
59
- return { nodes: [{ text: c, muted: !1 }], full: c };
60
- }
61
- return a === "muted" ? {
62
- nodes: e.map((t) => ({
63
- text: t.value,
64
- muted: u(t.type)
65
- })),
66
- full: i
67
- } : { nodes: [{ text: i, muted: !1 }], full: i };
68
- }, [o, s, n, a, m]), M = l === "auto" ? o < 0 ? "negative" : "default" : l;
69
- return /* @__PURE__ */ V(
70
- "span",
71
- {
72
- ref: j,
73
- "data-component": "money",
74
- "data-currency": s.toUpperCase(),
75
- className: U({
76
- size: x,
77
- tone: M,
78
- strikethrough: y,
79
- className: g
80
- }),
81
- ...h,
82
- children: [
83
- k.map((r, e) => /* @__PURE__ */ p(
84
- "span",
85
- {
86
- "aria-hidden": "true",
87
- className: r.muted ? "ds:opacity-70 ds:[font-size:0.85em]" : void 0,
88
- children: r.text
89
- },
90
- `${e}-${r.text}`
91
- )),
92
- /* @__PURE__ */ p(O, { children: w })
93
- ]
94
- }
95
- );
96
- }
97
- );
98
- C.displayName = "Money";
99
- export {
100
- C as M
101
- };
102
- //# sourceMappingURL=money-Tsczpjfz.js.map
@@ -1,423 +0,0 @@
1
- import { jsxs as Se, jsx as x } from "react/jsx-runtime";
2
- import { useMemo as te, forwardRef as ke, useId as ze, useRef as q, useCallback as T, useState as H, useEffect as Me } from "react";
3
- import { c as W } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Ue } from "react-i18next";
5
- import { u as Te } from "./use-controllable-state-BiY4xTzM.js";
6
- import { u as Pe, a as Be } from "./form-field-context-DtiROUJV.js";
7
- import { c as Re } from "./compose-refs-C0k0tdqF.js";
8
- import { u as Ae } from "./registry-DvAUVLHh.js";
9
- import { C as je } from "./chevron-down-DWE7GSq9.js";
10
- import { C as Ee } from "./chevron-up-umRGgtJA.js";
11
- const Le = {
12
- id: "number-input",
13
- capabilities: ["set_value"],
14
- state: {
15
- value: {
16
- type: "number | null",
17
- descriptionKey: "ui.agent.numberInput.state.value",
18
- description: "Current numeric value, or null when empty.",
19
- read: (n) => n.getValue()
20
- },
21
- isEmpty: {
22
- type: "boolean",
23
- descriptionKey: "ui.agent.numberInput.state.isEmpty",
24
- description: "Whether the input has no value.",
25
- read: (n) => n.getValue() === null
26
- }
27
- },
28
- actions: {
29
- set_value: {
30
- safety: "write",
31
- argsType: "{ value: number | null }",
32
- argsSchema: {
33
- type: "object",
34
- properties: { value: { type: ["number", "null"] } },
35
- required: ["value"]
36
- },
37
- idempotent: !0,
38
- examples: [{ args: { value: 42 } }, { args: { value: null } }],
39
- descriptionKey: "ui.agent.numberInput.actions.setValue",
40
- description: "Replace the numeric value, or pass null to clear.",
41
- invoke: (n, s) => {
42
- n.setValue(s.value);
43
- }
44
- },
45
- clear: {
46
- safety: "destructive",
47
- idempotent: !0,
48
- descriptionKey: "ui.agent.numberInput.actions.clear",
49
- description: "Empty the input. Loses any typed value.",
50
- invoke: (n) => {
51
- n.clear();
52
- }
53
- },
54
- focus: {
55
- safety: "read",
56
- idempotent: !0,
57
- descriptionKey: "ui.agent.numberInput.actions.focus",
58
- description: "Move keyboard focus to the input.",
59
- invoke: (n) => {
60
- n.focus();
61
- }
62
- }
63
- },
64
- domHooks: {
65
- root: {
66
- attr: "data-component",
67
- value: "number-input",
68
- description: "Marks the NumberInput wrapper."
69
- },
70
- instanceId: {
71
- attr: "data-component-id",
72
- sourceProp: "id",
73
- description: "Sourced from the id prop."
74
- }
75
- }
76
- };
77
- function Ke(n) {
78
- let s = "";
79
- for (const l of n) {
80
- const r = l.codePointAt(0);
81
- r !== void 0 && (r >= 1632 && r <= 1641 ? s += String.fromCodePoint(48 + (r - 1632)) : r >= 1776 && r <= 1785 ? s += String.fromCodePoint(48 + (r - 1776)) : s += l);
82
- }
83
- return s;
84
- }
85
- function qe(n, s, l) {
86
- return te(() => {
87
- var k, m;
88
- const r = new Intl.NumberFormat(n).formatToParts(1234.5), u = ((k = r.find((o) => o.type === "decimal")) == null ? void 0 : k.value) ?? ".", S = ((m = r.find((o) => o.type === "group")) == null ? void 0 : m.value) ?? ",", p = s === "currency" ? new Intl.NumberFormat(n, {
89
- style: "currency",
90
- currency: l ?? "USD"
91
- }) : s === "percentage" ? new Intl.NumberFormat(n, {
92
- style: "percent",
93
- maximumFractionDigits: 4
94
- }) : s === "integer" ? new Intl.NumberFormat(n, { maximumFractionDigits: 0 }) : new Intl.NumberFormat(n, { maximumFractionDigits: 10 }), P = (o) => Number.isFinite(o) ? p.format(o) : "", B = (o) => {
95
- if (!o) return NaN;
96
- const y = Ke(o), z = y.trim(), D = z.startsWith("-") || z.startsWith("−");
97
- let g = "";
98
- for (const v of y)
99
- v >= "0" && v <= "9" ? g += v : v === u && (g += ".");
100
- if (!g || g === ".") return NaN;
101
- let d = Number(g);
102
- return Number.isFinite(d) ? (D && (d = -d), s === "percentage" && (d = d / 100), d) : NaN;
103
- };
104
- let N = "decimal";
105
- if (s === "integer")
106
- N = "numeric";
107
- else if (s === "currency")
108
- try {
109
- const { maximumFractionDigits: o } = new Intl.NumberFormat(n, {
110
- style: "currency",
111
- currency: l ?? "USD"
112
- }).resolvedOptions();
113
- N = o === 0 ? "numeric" : "decimal";
114
- } catch {
115
- N = "decimal";
116
- }
117
- return {
118
- format: P,
119
- parse: B,
120
- decimalSeparator: u,
121
- groupingSeparator: S,
122
- inputMode: N
123
- };
124
- }, [n, s, l]);
125
- }
126
- const He = W(
127
- [
128
- "ds:flex ds:items-center ds:rounded-[var(--radius-sm)]",
129
- "ds:border ds:bg-input ds:text-foreground",
130
- "ds:shadow-[var(--shadow-input)]",
131
- "ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
132
- "ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
133
- "ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
134
- "ds:has-[:disabled]:cursor-not-allowed ds:has-[:disabled]:opacity-50"
135
- ].join(" "),
136
- {
137
- variants: {
138
- size: {
139
- sm: "ds:h-8 ds:text-[length:var(--font-size-sm)]",
140
- md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
141
- lg: "ds:h-12 ds:text-[length:var(--font-size-lg)]"
142
- },
143
- tone: {
144
- default: "ds:border-[color:var(--control-border)]",
145
- error: "ds:border-destructive ds:focus-within:outline-destructive"
146
- },
147
- // Intrinsic sizes shrink-wrap the frame around field, unit and paddings;
148
- // the floor keeps a bare 'sm' field a valid tap target.
149
- inline: {
150
- full: "ds:w-full",
151
- sm: "ds:w-fit ds:min-w-[var(--min-target-size)]",
152
- md: "ds:w-fit ds:min-w-[var(--min-target-size)]",
153
- lg: "ds:w-fit ds:min-w-[var(--min-target-size)]"
154
- }
155
- },
156
- defaultVariants: { size: "md", tone: "default", inline: "full" }
157
- }
158
- ), We = W(
159
- "ds:min-w-0 ds:bg-transparent ds:outline-none ds:tabular-nums ds:disabled:cursor-not-allowed",
160
- {
161
- variants: {
162
- variant: { stepper: "ds:ps-2", plain: "ds:ps-3" },
163
- hasUnit: { true: "ds:pe-1", false: "" },
164
- // `ch` is the advance of "0", so with tabular numerals N digits fit
165
- // exactly; box-content keeps the paddings outside that count.
166
- inline: {
167
- full: "ds:flex-1 ds:w-full",
168
- sm: "ds:box-content ds:w-[8ch]",
169
- md: "ds:box-content ds:w-[12ch]",
170
- lg: "ds:box-content ds:w-[16ch]"
171
- }
172
- },
173
- compoundVariants: [
174
- { variant: "stepper", hasUnit: !1, class: "ds:pe-2" },
175
- { variant: "plain", hasUnit: !1, class: "ds:pe-3" },
176
- // Alignment: exactly one of these matches, because two text-align
177
- // utilities in one class list resolve by stylesheet order, not by the
178
- // order they were written.
179
- // A unit or an answer-sized box means the number is read AGAINST
180
- // something — stranding it at the far start left a gap wide enough to
181
- // read as two separate controls.
182
- { inline: "full", hasUnit: !1, class: "ds:text-start" },
183
- { inline: "full", hasUnit: !0, class: "ds:text-end" },
184
- { inline: ["sm", "md", "lg"], class: "ds:text-end" }
185
- ],
186
- defaultVariants: { variant: "stepper", hasUnit: !1, inline: "full" }
187
- }
188
- ), Oe = W(
189
- "ds:shrink-0 ds:select-none ds:whitespace-nowrap ds:text-muted-foreground",
190
- {
191
- variants: {
192
- variant: { stepper: "ds:pe-1", plain: "ds:pe-3" }
193
- },
194
- defaultVariants: { variant: "stepper" }
195
- }
196
- ), ee = [
197
- "ds:inline-flex ds:items-center ds:justify-center",
198
- "ds:h-full ds:shrink-0",
199
- "ds:text-muted-foreground ds:hover:text-foreground",
200
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
201
- "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
202
- ].join(" "), _e = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US", $e = (n) => typeof n == "string" && n.trim() !== "" ? n : void 0;
203
- function Ge(n) {
204
- if (!Number.isFinite(n)) return 0;
205
- const s = String(n), l = s.indexOf(".");
206
- return l === -1 ? 0 : s.length - l - 1;
207
- }
208
- function Je(n, s) {
209
- if (s <= 0 || !Number.isFinite(s)) return n;
210
- const r = 10 ** Ge(s);
211
- return Math.round(n * r) / r;
212
- }
213
- const Qe = ke(
214
- ({
215
- value: n,
216
- defaultValue: s,
217
- onChange: l,
218
- min: r,
219
- max: u,
220
- step: S = 1,
221
- mode: p = "integer",
222
- currency: P,
223
- locale: B,
224
- size: N = "md",
225
- tone: k,
226
- variant: m = "stepper",
227
- unit: o,
228
- inline: y = "full",
229
- className: z,
230
- id: D,
231
- disabled: g,
232
- onFocus: d,
233
- onBlur: v,
234
- onKeyDown: R,
235
- ...ne
236
- }, re) => {
237
- const { t: O, i18n: se } = Ue("ui"), F = Pe(), ie = Be(F, D), M = !!(F.disabled || g), _ = ze(), ae = [F.describedBy, o ? _ : void 0].filter(Boolean).join(" ") || void 0, oe = B ?? $e(se.language) ?? _e(), A = qe(oe, p, P), {
238
- decimalSeparator: U,
239
- groupingSeparator: $,
240
- format: j,
241
- parse: G
242
- } = A, J = q(null), ue = Re(re, J), [le, de] = Te({
243
- value: n,
244
- defaultValue: s ?? null,
245
- onChange: l
246
- }), a = le ?? null, Q = q(a);
247
- Q.current = a;
248
- const C = T(
249
- (e) => {
250
- const t = p === "percentage" ? e * 100 : e;
251
- return (Number.isInteger(t) ? String(t) : t.toString()).replace(".", U);
252
- },
253
- [p, U]
254
- ), b = T(
255
- (e) => e == null || Number.isNaN(e) ? "" : j(e),
256
- [j]
257
- ), [E, c] = H(
258
- () => b(a)
259
- ), w = q(!1), [ce, h] = H(!1), [L, V] = H(!1), K = T(
260
- (e) => {
261
- if (e >= "0" && e <= "9") return !0;
262
- const t = e.codePointAt(0) ?? 0;
263
- return t >= 1632 && t <= 1641 || t >= 1776 && t <= 1785 ? !0 : e === U || e === $ || e === "-" || e === "−";
264
- },
265
- [U, $]
266
- ), fe = T(
267
- (e) => {
268
- let t = "";
269
- for (const i of e)
270
- K(i) && (t += i);
271
- return t;
272
- },
273
- [K]
274
- );
275
- Me(() => {
276
- !w.current && !L && c(b(a));
277
- }, [a, b, L]);
278
- const pe = ce || L || a !== null && (r !== void 0 && a < r || u !== void 0 && a > u), X = F.invalid || pe, me = X ? "error" : k ?? "default", f = (e) => {
279
- de(e);
280
- }, I = (e) => {
281
- let i = (a ?? 0) + S * e;
282
- r !== void 0 && (i = Math.max(r, i)), u !== void 0 && (i = Math.min(u, i)), i = Je(i, S), f(i), h(!1), c(
283
- w.current ? C(i) : b(i)
284
- );
285
- }, Y = (e) => {
286
- f(e), h(!1), c(
287
- w.current ? C(e) : b(e)
288
- );
289
- }, ve = (e) => {
290
- if (R == null || R(e), e.defaultPrevented || M) return;
291
- const { key: t, shiftKey: i } = e;
292
- t === "ArrowUp" ? (e.preventDefault(), I(i ? 10 : 1)) : t === "ArrowDown" ? (e.preventDefault(), I(i ? -10 : -1)) : t === "PageUp" ? (e.preventDefault(), I(100)) : t === "PageDown" ? (e.preventDefault(), I(-100)) : t === "Home" && r !== void 0 ? (e.preventDefault(), Y(r)) : t === "End" && u !== void 0 && (e.preventDefault(), Y(u));
293
- }, be = (e) => {
294
- const t = fe(e.target.value);
295
- if (c(t), t.trim() === "") {
296
- f(null), h(!1), V(!1);
297
- return;
298
- }
299
- const i = G(t);
300
- Number.isNaN(i) || (f(i), V(!1));
301
- }, ge = (e) => {
302
- const { data: t } = e.nativeEvent;
303
- typeof t != "string" || t.length !== 1 || K(t) || e.preventDefault();
304
- }, he = (e) => {
305
- d == null || d(e), w.current = !0, a != null && c(C(a));
306
- }, Ne = (e) => {
307
- if (v == null || v(e), w.current = !1, E.trim() === "") {
308
- f(null), h(!1), V(!1), c("");
309
- return;
310
- }
311
- const t = G(E);
312
- if (Number.isNaN(t)) {
313
- V(!0), h(!1), f(null);
314
- return;
315
- }
316
- const i = r !== void 0 && t < r || u !== void 0 && t > u;
317
- h(i), V(!1), f(t), c(b(t));
318
- }, Z = (e) => {
319
- e.preventDefault();
320
- }, ye = () => I(1), we = () => I(-1), Ie = te(
321
- () => ({
322
- getValue: () => Q.current,
323
- setValue: (e) => {
324
- f(e), c(
325
- e === null ? "" : w.current ? C(e) : b(e)
326
- );
327
- },
328
- clear: () => {
329
- f(null), c(""), h(!1);
330
- },
331
- focus: () => {
332
- var e;
333
- return (e = J.current) == null ? void 0 : e.focus();
334
- }
335
- }),
336
- // The handle is reconstructed per render; consumers (the agent runtime)
337
- // re-register only when the identity changes, which is a cheap no-op.
338
- // eslint-disable-next-line react-hooks/exhaustive-deps
339
- [C, b]
340
- );
341
- Ae(Le, Ie, D);
342
- const xe = M || r !== void 0 && a !== null && a <= r, De = M || u !== void 0 && a !== null && a >= u, Fe = a ?? void 0, Ce = (p === "currency" || p === "percentage") && a !== null && a !== null ? j(a) : void 0, Ve = A.inputMode === "numeric" ? "[0-9]*" : void 0;
343
- return /* @__PURE__ */ Se(
344
- "div",
345
- {
346
- className: He({
347
- size: N,
348
- tone: me,
349
- inline: y,
350
- className: z
351
- }),
352
- "data-component": "number-input",
353
- "data-component-id": D,
354
- "data-mode": p,
355
- "data-variant": m,
356
- "data-inline": y,
357
- children: [
358
- m === "stepper" ? /* @__PURE__ */ x(
359
- "button",
360
- {
361
- type: "button",
362
- tabIndex: -1,
363
- "aria-label": O("inputs.number.decrement", "Decrement"),
364
- onClick: we,
365
- onMouseDown: Z,
366
- disabled: xe,
367
- className: `${ee} ds:ps-2 ds:pe-1`,
368
- children: /* @__PURE__ */ x(je, { "aria-hidden": "true", className: "ds:size-4" })
369
- }
370
- ) : null,
371
- /* @__PURE__ */ x(
372
- "input",
373
- {
374
- ref: ue,
375
- id: ie,
376
- type: "text",
377
- role: "spinbutton",
378
- inputMode: A.inputMode,
379
- pattern: Ve,
380
- autoComplete: "off",
381
- value: E,
382
- disabled: M,
383
- "aria-valuemin": r,
384
- "aria-valuemax": u,
385
- "aria-valuenow": Fe,
386
- "aria-valuetext": Ce,
387
- "aria-invalid": X || void 0,
388
- "aria-required": F.required || void 0,
389
- "aria-describedby": ae,
390
- onBeforeInput: ge,
391
- onChange: be,
392
- onFocus: he,
393
- onBlur: Ne,
394
- onKeyDown: ve,
395
- className: We({ variant: m, hasUnit: !!o, inline: y }),
396
- ...ne
397
- }
398
- ),
399
- o ? /* @__PURE__ */ x("span", { id: _, className: Oe({ variant: m }), children: o }) : null,
400
- m === "stepper" ? /* @__PURE__ */ x(
401
- "button",
402
- {
403
- type: "button",
404
- tabIndex: -1,
405
- "aria-label": O("inputs.number.increment", "Increment"),
406
- onClick: ye,
407
- onMouseDown: Z,
408
- disabled: De,
409
- className: `${ee} ds:ps-1 ds:pe-2`,
410
- children: /* @__PURE__ */ x(Ee, { "aria-hidden": "true", className: "ds:size-4" })
411
- }
412
- ) : null
413
- ]
414
- }
415
- );
416
- }
417
- );
418
- Qe.displayName = "NumberInput";
419
- export {
420
- Qe as N,
421
- qe as u
422
- };
423
- //# sourceMappingURL=number-input-CVwI1ltI.js.map
@@ -1,81 +0,0 @@
1
- import { jsx as i, jsxs as t } from "react/jsx-runtime";
2
- import { useTranslation as n } from "react-i18next";
3
- import { E as c } from "./empty-state-DwJ5YNzz.js";
4
- import { P as o } from "./panel-header-CbtlTe85.js";
5
- import { S as l } from "./section-card-DFr2wGal.js";
6
- import { V as p } from "./visually-hidden-BHxEUGyT.js";
7
- import { E as s } from "./eye-off-C_4xkbRP.js";
8
- const r = (e) => `calendarWorkspace.privacy.${e}`;
9
- function m(e) {
10
- return e !== void 0 && e.trim() !== "" ? e : "•••";
11
- }
12
- function u({ block: e }) {
13
- const { t: a } = n("ui");
14
- return /* @__PURE__ */ t(
15
- "p",
16
- {
17
- "data-privacy": "hidden",
18
- "data-block": e,
19
- className: "ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[color:var(--muted-foreground)]",
20
- children: [
21
- /* @__PURE__ */ i(s, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
22
- a(r("hidden"))
23
- ]
24
- }
25
- );
26
- }
27
- function k({ mask: e }) {
28
- const { t: a } = n("ui");
29
- return /* @__PURE__ */ i(
30
- l,
31
- {
32
- "data-card": "patient",
33
- "data-privacy": "masked",
34
- headingLevel: 3,
35
- title: /* @__PURE__ */ t("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
36
- /* @__PURE__ */ i(s, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
37
- /* @__PURE__ */ i(p, { children: a("appointmentPeek.hiddenName") }),
38
- /* @__PURE__ */ i("span", { "aria-hidden": "true", children: m(e) })
39
- ] }),
40
- children: /* @__PURE__ */ i(u, {})
41
- }
42
- );
43
- }
44
- function v({ onTurnOff: e }) {
45
- const { t: a } = n("ui");
46
- return /* @__PURE__ */ i("div", { "data-component": "privacy-notice", className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ i(
47
- c,
48
- {
49
- variant: "first-use",
50
- size: "sm",
51
- title: a(r("hidden")),
52
- description: a(r("noticeBody")),
53
- primaryAction: e ? { label: a(r("turnOff")), onClick: e } : void 0
54
- }
55
- ) });
56
- }
57
- function b({
58
- title: e,
59
- icon: a,
60
- onTurnOff: d
61
- }) {
62
- return /* @__PURE__ */ t(
63
- "div",
64
- {
65
- "data-component": "privacy-notice-panel",
66
- className: "ds:flex ds:h-full ds:flex-col",
67
- children: [
68
- /* @__PURE__ */ i(o, { title: e, icon: a, sticky: !0, divider: !0 }),
69
- /* @__PURE__ */ i(v, { onTurnOff: d })
70
- ]
71
- }
72
- );
73
- }
74
- export {
75
- v as P,
76
- k as a,
77
- u as b,
78
- b as c,
79
- m as p
80
- };
81
- //# sourceMappingURL=privacy-mask-Dc3kdkCR.js.map
@@ -1,8 +0,0 @@
1
- import { b as o } from "./date-picker-variants-Dt6UbonG.js";
2
- function n(s, a, r) {
3
- return o(s, -a, r);
4
- }
5
- export {
6
- n as s
7
- };
8
- //# sourceMappingURL=subDays-DKISP2nE.js.map
@@ -1,26 +0,0 @@
1
- import { c as a } from "./createLucideIcon-DhHxpK9K.js";
2
- /**
3
- * @license lucide-react v1.22.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */
8
- const o = [
9
- ["path", { d: "m9 11-6 6v3h9l3-3", key: "1a3l36" }],
10
- ["path", { d: "m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4", key: "14a9rk" }]
11
- ], h = a("highlighter", o);
12
- /**
13
- * @license lucide-react v1.22.0 - ISC
14
- *
15
- * This source code is licensed under the ISC license.
16
- * See the LICENSE file in the root directory of this source tree.
17
- */
18
- const t = [
19
- ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
20
- ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11", key: "f3b9sd" }]
21
- ], c = a("undo-2", t);
22
- export {
23
- h as H,
24
- c as U
25
- };
26
- //# sourceMappingURL=undo-2-CYNAzclj.js.map