@alfadocs/ui-kit 1.115.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 (268) hide show
  1. package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
  2. package/dist/_chunks/{actions-cell-renderer-bI27uXXC.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/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-gEXqU5i5.js} +6 -6
  5. package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-BMZoXaGx.js} +3 -3
  6. package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-0k4LxODn.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-DIxpgIXM.js} +2 -2
  9. package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
  10. package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-L7bD0Nsh.js} +6 -6
  11. package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
  12. package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
  13. package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
  14. package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
  15. package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +16 -16
  16. package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-CfV8jiF0.js} +3 -3
  17. package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-Bt01kyTl.js} +3 -3
  18. package/dist/_chunks/{chart-DebrFZ6L.js → chart-BSx8cfMm.js} +2 -2
  19. package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
  20. package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
  21. package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
  22. package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
  23. package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
  24. package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-Brd0PP4U.js} +2 -2
  25. package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
  26. package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-ByhrYGVw.js} +3013 -3106
  27. package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
  28. package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-B47iw2CO.js} +101 -100
  29. package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-B-DUtfw3.js} +7 -7
  30. package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
  31. package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
  32. package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
  33. package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
  34. package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-DzIQXEX5.js} +2 -2
  35. package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-p-Q1UkZS.js} +2 -2
  36. package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
  37. package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-CEjJUnNe.js} +19 -18
  38. package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
  39. package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-DEe51ZDe.js} +5 -5
  40. package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
  41. package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
  42. package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BUZQkSYC.js} +2 -2
  43. package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
  44. package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-tn1WxoMT.js} +3 -3
  45. package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
  46. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  47. package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-Ca2VkXy5.js} +2 -2
  48. package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-BFfLg7c-.js} +6 -6
  49. package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-D-Io828l.js} +4 -4
  50. package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-CBHNg8x-.js} +4 -4
  51. package/dist/_chunks/money-OE6_oDPH.js +138 -0
  52. package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
  53. package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-DexbfrFo.js} +3 -3
  54. package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
  55. package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
  56. package/dist/_chunks/parts-CtcTW1PN.js +869 -0
  57. package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-PJ0Y__7t.js} +2 -2
  58. package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
  59. package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
  60. package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-BOfXDP8a.js} +3 -3
  61. package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
  62. package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
  63. package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-Bg_VUPwl.js} +2 -2
  64. package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
  65. package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
  66. package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
  67. package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-C1zRHaya.js} +4 -4
  68. package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-r80Zw8ll.js} +12 -11
  69. package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
  70. package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
  71. package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
  72. package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
  73. package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-DgUjtqpX.js} +168 -178
  74. package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-B5Nsf10r.js} +2 -2
  75. package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-DfvdEg_V.js} +3 -3
  76. package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
  77. package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
  78. package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
  79. package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
  80. package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
  81. package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
  82. package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
  83. package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-_r7cjTtm.js} +7 -7
  84. package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
  85. package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
  86. package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
  87. package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
  88. package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-DM3W8XZE.js} +2 -2
  89. package/dist/agent-catalog.json +1080 -1
  90. package/dist/agent-i18n/en.json +50 -0
  91. package/dist/components/_shared/accessible-target.d.ts +12 -0
  92. package/dist/components/_shared/decimal.d.ts +171 -0
  93. package/dist/components/_shared/format-price.d.ts +54 -2
  94. package/dist/components/address-fields/index.js +1 -1
  95. package/dist/components/appointment-card/index.js +2 -2
  96. package/dist/components/appointment-details-panel/index.js +1 -1
  97. package/dist/components/appointment-peek/index.js +1 -1
  98. package/dist/components/appointment-timeline/index.js +1 -1
  99. package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
  100. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
  101. package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
  102. package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
  103. package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
  104. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
  105. package/dist/components/bill-line-table/index.d.ts +6 -0
  106. package/dist/components/bill-line-table/index.js +23 -0
  107. package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
  108. package/dist/components/bill-table/bill-table.d.ts +13 -0
  109. package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
  110. package/dist/components/bill-table/cells.d.ts +89 -0
  111. package/dist/components/bill-table/columns.d.ts +21 -0
  112. package/dist/components/bill-table/default-tabs.d.ts +21 -0
  113. package/dist/components/bill-table/handle.d.ts +19 -0
  114. package/dist/components/bill-table/index.d.ts +7 -0
  115. package/dist/components/bill-table/index.js +19 -0
  116. package/dist/components/bill-table/model.d.ts +103 -0
  117. package/dist/components/bill-table/row-actions.d.ts +27 -0
  118. package/dist/components/bill-table/status-maps.d.ts +225 -0
  119. package/dist/components/bill-table/types.d.ts +542 -0
  120. package/dist/components/bmi-calculator/index.js +1 -1
  121. package/dist/components/booking/index.js +1 -1
  122. package/dist/components/button-group/index.js +1 -1
  123. package/dist/components/calculator-dialog/index.js +1 -1
  124. package/dist/components/care-plan-card/index.js +1 -1
  125. package/dist/components/care-plan-entry-card/index.js +1 -1
  126. package/dist/components/chart/index.js +1 -1
  127. package/dist/components/combobox/combobox.d.ts +59 -1
  128. package/dist/components/combobox/index.d.ts +1 -1
  129. package/dist/components/combobox/index.js +1 -1
  130. package/dist/components/contact-profile-card/index.js +1 -1
  131. package/dist/components/country-select/index.js +1 -1
  132. package/dist/components/cycle-calculator/index.js +1 -1
  133. package/dist/components/dashboard-grid/index.js +1 -1
  134. package/dist/components/data-grid/body.d.ts +6 -0
  135. package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
  136. package/dist/components/data-grid/editors.d.ts +7 -1
  137. package/dist/components/data-grid/index.js +9 -8
  138. package/dist/components/data-grid/selection.d.ts +10 -0
  139. package/dist/components/data-grid/types.d.ts +61 -11
  140. package/dist/components/data-grid-tabs/index.js +1 -1
  141. package/dist/components/data-table/index.js +4 -4
  142. package/dist/components/dialog/focus-return.d.ts +12 -0
  143. package/dist/components/dialog/index.js +1 -1
  144. package/dist/components/document-preview/index.js +1 -1
  145. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
  146. package/dist/components/dropdown-menu/index.js +1 -1
  147. package/dist/components/due-date-calculator/index.js +1 -1
  148. package/dist/components/face-scheme/index.js +1 -1
  149. package/dist/components/fetal-weight/index.js +1 -1
  150. package/dist/components/file-manager/index.js +1 -1
  151. package/dist/components/hcg-doubling/index.js +1 -1
  152. package/dist/components/header-settings/index.js +1 -1
  153. package/dist/components/heatmap/index.js +1 -1
  154. package/dist/components/icon-button-group/index.js +1 -1
  155. package/dist/components/index.d.ts +6 -0
  156. package/dist/components/money/index.js +1 -1
  157. package/dist/components/money/money.d.ts +39 -6
  158. package/dist/components/muscle-scheme/index.js +1 -1
  159. package/dist/components/notes-panel/index.js +1 -1
  160. package/dist/components/number-input/index.d.ts +2 -2
  161. package/dist/components/number-input/index.js +1 -1
  162. package/dist/components/number-input/number-input.d.ts +43 -2
  163. package/dist/components/number-input/use-locale-number.d.ts +67 -3
  164. package/dist/components/optical-prescription/index.js +1 -1
  165. package/dist/components/patient-details/index.js +1 -1
  166. package/dist/components/patient-search/index.js +1 -1
  167. package/dist/components/patient-summary-card/index.js +1 -1
  168. package/dist/components/patient-table/index.js +1 -1
  169. package/dist/components/payment-card/index.js +1 -1
  170. package/dist/components/practice-results/index.js +1 -1
  171. package/dist/components/pregnancy-dating/index.js +1 -1
  172. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  173. package/dist/components/province-select/index.js +1 -1
  174. package/dist/components/radiograph-panel/index.js +1 -1
  175. package/dist/components/rich-text-editor/index.js +2 -2
  176. package/dist/components/row-actions/index.d.ts +3 -0
  177. package/dist/components/row-actions/index.js +5 -0
  178. package/dist/components/row-actions/row-actions.d.ts +63 -0
  179. package/dist/components/skeleton-scheme/index.js +1 -1
  180. package/dist/components/smart-date/smart-date.d.ts +1 -1
  181. package/dist/components/tab-bar/index.js +1 -1
  182. package/dist/components/tabs/index.js +1 -1
  183. package/dist/components/task-editor/index.js +1 -1
  184. package/dist/components/tasks-panel/index.js +1 -1
  185. package/dist/components/theme-toggle/index.js +1 -1
  186. package/dist/components/token-insert-menu/index.js +1 -1
  187. package/dist/components/tooth-scheme/index.js +1 -1
  188. package/dist/components/transaction-chip/index.js +1 -1
  189. package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
  190. package/dist/components/treatment-receipt/index.js +1 -1
  191. package/dist/components/unit-converter/index.js +1 -1
  192. package/dist/components/widget-picker/index.js +1 -1
  193. package/dist/components/workflow/index.js +1 -1
  194. package/dist/components/workflow-status/index.js +1 -1
  195. package/dist/core.css +1 -1
  196. package/dist/decimal/index.js +149 -0
  197. package/dist/host-compat.css +4 -1
  198. package/dist/i18n/locales/ar.d.ts +248 -0
  199. package/dist/i18n/locales/ar.js +249 -1
  200. package/dist/i18n/locales/de.d.ts +248 -0
  201. package/dist/i18n/locales/de.js +249 -1
  202. package/dist/i18n/locales/el.d.ts +248 -0
  203. package/dist/i18n/locales/el.js +249 -1
  204. package/dist/i18n/locales/en.d.ts +248 -0
  205. package/dist/i18n/locales/en.js +249 -1
  206. package/dist/i18n/locales/es.d.ts +248 -0
  207. package/dist/i18n/locales/es.js +249 -1
  208. package/dist/i18n/locales/fr.d.ts +248 -0
  209. package/dist/i18n/locales/fr.js +249 -1
  210. package/dist/i18n/locales/hi.d.ts +248 -0
  211. package/dist/i18n/locales/hi.js +249 -1
  212. package/dist/i18n/locales/it.d.ts +248 -0
  213. package/dist/i18n/locales/it.js +249 -1
  214. package/dist/i18n/locales/ja.d.ts +248 -0
  215. package/dist/i18n/locales/ja.js +249 -1
  216. package/dist/i18n/locales/nl.d.ts +248 -0
  217. package/dist/i18n/locales/nl.js +249 -1
  218. package/dist/i18n/locales/pl.d.ts +248 -0
  219. package/dist/i18n/locales/pl.js +249 -1
  220. package/dist/i18n/locales/pt.d.ts +248 -0
  221. package/dist/i18n/locales/pt.js +249 -1
  222. package/dist/i18n/locales/ro.d.ts +248 -0
  223. package/dist/i18n/locales/ro.js +249 -1
  224. package/dist/i18n/locales/ru.d.ts +248 -0
  225. package/dist/i18n/locales/ru.js +249 -1
  226. package/dist/i18n/locales/sq.d.ts +248 -0
  227. package/dist/i18n/locales/sq.js +249 -1
  228. package/dist/i18n/locales/sv.d.ts +248 -0
  229. package/dist/i18n/locales/sv.js +249 -1
  230. package/dist/i18n/locales/tr.d.ts +248 -0
  231. package/dist/i18n/locales/tr.js +249 -1
  232. package/dist/i18n/locales/zh.d.ts +248 -0
  233. package/dist/i18n/locales/zh.js +249 -1
  234. package/dist/index.js +1298 -1246
  235. package/dist/locales/ar.json +249 -1
  236. package/dist/locales/de.json +249 -1
  237. package/dist/locales/el.json +249 -1
  238. package/dist/locales/en.json +249 -1
  239. package/dist/locales/es.json +249 -1
  240. package/dist/locales/fr.json +249 -1
  241. package/dist/locales/hi.json +249 -1
  242. package/dist/locales/it.json +249 -1
  243. package/dist/locales/ja.json +249 -1
  244. package/dist/locales/nl.json +249 -1
  245. package/dist/locales/pl.json +249 -1
  246. package/dist/locales/pt.json +249 -1
  247. package/dist/locales/ro.json +249 -1
  248. package/dist/locales/ru.json +249 -1
  249. package/dist/locales/sq.json +249 -1
  250. package/dist/locales/sv.json +249 -1
  251. package/dist/locales/tr.json +249 -1
  252. package/dist/locales/zh.json +249 -1
  253. package/dist/patterns/anamnesis/index.js +1 -1
  254. package/dist/patterns/calendar/index.js +1 -1
  255. package/dist/patterns/help-me-write-templates/index.js +1 -1
  256. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  257. package/dist/patterns/signature-request/index.js +1 -1
  258. package/dist/patterns/verify-identity/index.js +1 -1
  259. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  260. package/dist/tokens.css +1 -1
  261. package/package.json +17 -1
  262. package/dist/_chunks/combobox-duuDRI1t.js +0 -688
  263. package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
  264. package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
  265. package/dist/_chunks/money-Tsczpjfz.js +0 -102
  266. package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
  267. package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
  268. package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
@@ -0,0 +1,348 @@
1
+ import { jsx as n, jsxs as O } from "react/jsx-runtime";
2
+ import { useRef as m, useEffect as K, useMemo as j, forwardRef as u, useContext as S, createContext as Y } from "react";
3
+ import * as l from "@radix-ui/react-dialog";
4
+ import { c as k } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as G } from "react-i18next";
6
+ import { u as J } from "./use-controllable-state-BiY4xTzM.js";
7
+ import { u as Q } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
+ import { u as W } from "./registry-DvAUVLHh.js";
9
+ import { u as Z } from "./non-modal-tab-exit-j3CPOuE3.js";
10
+ import { c as H } from "./compose-refs-C0k0tdqF.js";
11
+ import { X as ee } from "./x-B5YnXwCz.js";
12
+ const te = 8;
13
+ function h(e) {
14
+ return e instanceof HTMLElement ? e : null;
15
+ }
16
+ function oe(e) {
17
+ var a;
18
+ const t = e.ownerDocument, o = ((a = e.getAttribute("aria-labelledby")) == null ? void 0 : a.split(/\s+/)) ?? [];
19
+ for (const s of o) {
20
+ const r = s ? h(t.getElementById(s)) : null;
21
+ if (r && !e.contains(r)) return r;
22
+ }
23
+ if (e.id) {
24
+ const s = h(
25
+ t.querySelector(`[aria-controls~="${CSS.escape(e.id)}"]`)
26
+ );
27
+ if (s && !e.contains(s)) return s;
28
+ }
29
+ return null;
30
+ }
31
+ function ae(e) {
32
+ const t = [];
33
+ let o = h(e);
34
+ if (!o || o === o.ownerDocument.body) return t;
35
+ for (let a = 0; o && a <= te; a += 1) {
36
+ t.push(o);
37
+ const s = o.closest('[role="menu"]');
38
+ if (!s) break;
39
+ o = oe(s);
40
+ }
41
+ return t;
42
+ }
43
+ function se(e) {
44
+ return e.isConnected && !e.matches(":disabled") && e.closest("[inert]") === null && e.getClientRects().length > 0;
45
+ }
46
+ function ne(e) {
47
+ for (const t of e)
48
+ if (se(t) && (t.focus({ preventScroll: !0 }), t.ownerDocument.activeElement === t))
49
+ return !0;
50
+ return !1;
51
+ }
52
+ const ie = {
53
+ id: "dialog",
54
+ capabilities: ["open", "close", "dismiss"],
55
+ state: {
56
+ isOpen: {
57
+ type: "boolean",
58
+ descriptionKey: "ui.agent.dialog.state.isOpen",
59
+ description: "True when the dialog is currently open.",
60
+ read: (e) => e.getIsOpen()
61
+ }
62
+ },
63
+ actions: {
64
+ open: {
65
+ safety: "read",
66
+ idempotent: !0,
67
+ descriptionKey: "ui.agent.dialog.actions.open",
68
+ description: "Open the dialog.",
69
+ invoke: (e) => {
70
+ e.open();
71
+ }
72
+ },
73
+ close: {
74
+ safety: "read",
75
+ idempotent: !0,
76
+ descriptionKey: "ui.agent.dialog.actions.close",
77
+ description: "Close the dialog. Reversible by reopening.",
78
+ invoke: (e) => {
79
+ e.close();
80
+ }
81
+ },
82
+ dismiss: {
83
+ safety: "destructive",
84
+ idempotent: !0,
85
+ descriptionKey: "ui.agent.dialog.actions.dismiss",
86
+ description: "Dismiss the dialog. Loses any in-progress input that has not been committed.",
87
+ invoke: (e) => {
88
+ e.close();
89
+ }
90
+ }
91
+ },
92
+ domHooks: {
93
+ root: { attr: "data-component", value: "dialog" },
94
+ instanceId: {
95
+ attr: "data-component-id",
96
+ sourceProp: "id",
97
+ description: "Sourced from the id prop on Dialog.Root."
98
+ }
99
+ }
100
+ }, re = [
101
+ "ds-dialog__backdrop",
102
+ "ds:backdrop-blur-sm",
103
+ "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0",
104
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0",
105
+ "ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
106
+ ].join(" "), de = [
107
+ "ds:focus-visible:outline-none",
108
+ "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0 ds:data-[state=open]:zoom-in-95",
109
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
110
+ "ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
111
+ ].join(" "), le = k(`ds-dialog ds-dialog__surface ${de}`, {
112
+ variants: {
113
+ size: {
114
+ sm: "ds-dialog__surface--sm",
115
+ md: "",
116
+ lg: "ds-dialog__surface--lg",
117
+ xl: "ds-dialog__surface--xl",
118
+ fullscreen: "ds-dialog__surface--fullscreen"
119
+ },
120
+ // `body` pins the header and footer and scrolls only `Dialog.Body` once
121
+ // the content passes the height cap. `surface` (default) scrolls the
122
+ // whole panel as one block.
123
+ scroll: {
124
+ surface: "",
125
+ body: "ds-dialog__surface--scroll-body"
126
+ },
127
+ // `flush` drops the surface padding for content that brings its own
128
+ // header, scroll box and footer (a docked panel thrown in a dialog).
129
+ flush: {
130
+ true: "ds-dialog__surface--flush",
131
+ false: ""
132
+ }
133
+ },
134
+ defaultVariants: { size: "md", scroll: "surface", flush: !1 }
135
+ }), N = Y({
136
+ modal: !0,
137
+ triggerRef: { current: null },
138
+ returnFocusRef: { current: [] }
139
+ }), C = ({
140
+ children: e,
141
+ id: t,
142
+ open: o,
143
+ defaultOpen: a,
144
+ onOpenChange: s,
145
+ modal: r = !0,
146
+ ...v
147
+ }) => {
148
+ const [f, c] = J({
149
+ value: o,
150
+ defaultValue: a ?? !1,
151
+ onChange: s
152
+ }), i = f ?? !1, p = m(i);
153
+ K(() => {
154
+ p.current = i;
155
+ }, [i]);
156
+ const b = j(
157
+ () => ({
158
+ getIsOpen: () => p.current,
159
+ open: () => c(!0),
160
+ close: () => c(!1)
161
+ }),
162
+ [c]
163
+ );
164
+ W(ie, b, t);
165
+ const D = m(null), g = m([]);
166
+ Q(() => {
167
+ i && (g.current = ae(document.activeElement));
168
+ }, [i]);
169
+ const y = j(
170
+ () => ({ id: t, modal: r, triggerRef: D, returnFocusRef: g }),
171
+ [t, r]
172
+ );
173
+ return /* @__PURE__ */ n(N.Provider, { value: y, children: /* @__PURE__ */ n(
174
+ l.Root,
175
+ {
176
+ open: i,
177
+ onOpenChange: c,
178
+ modal: r,
179
+ ...v,
180
+ children: e
181
+ }
182
+ ) });
183
+ };
184
+ C.displayName = "Dialog.Root";
185
+ const M = u(({ children: e, ...t }, o) => {
186
+ const { triggerRef: a } = S(N);
187
+ return /* @__PURE__ */ n(l.Trigger, { ref: H(o, a), ...t, children: e });
188
+ });
189
+ M.displayName = "Dialog.Trigger";
190
+ const B = u(({ children: e, ...t }, o) => /* @__PURE__ */ n(l.Close, { ref: o, ...t, children: e }));
191
+ B.displayName = "Dialog.Close";
192
+ const w = u(
193
+ ({
194
+ size: e = "md",
195
+ variant: t = "default",
196
+ scroll: o = "surface",
197
+ flush: a = !1,
198
+ hideCloseButton: s,
199
+ className: r,
200
+ children: v,
201
+ onKeyDown: f,
202
+ onCloseAutoFocus: c,
203
+ onInteractOutside: i,
204
+ ...p
205
+ }, b) => {
206
+ const { t: D } = G("ui"), {
207
+ id: g,
208
+ modal: y,
209
+ triggerRef: A,
210
+ returnFocusRef: I
211
+ } = S(N), x = m(null), _ = m(!1), U = Z(!y), X = t === "alert" ? { role: "alertdialog" } : {}, $ = s ?? t !== "default";
212
+ return /* @__PURE__ */ O(l.Portal, { children: [
213
+ /* @__PURE__ */ n(
214
+ l.Overlay,
215
+ {
216
+ "data-component": "dialog-overlay",
217
+ className: re
218
+ }
219
+ ),
220
+ /* @__PURE__ */ O(
221
+ l.Content,
222
+ {
223
+ ref: H(b, x),
224
+ ...X,
225
+ "data-component": "dialog",
226
+ "data-component-id": g,
227
+ className: le({ size: e, scroll: o, flush: a, className: r }),
228
+ ...p,
229
+ onKeyDown: (d) => {
230
+ f == null || f(d), U(d);
231
+ },
232
+ onInteractOutside: (d) => {
233
+ i == null || i(d), d.defaultPrevented || (_.current = !0);
234
+ },
235
+ onCloseAutoFocus: (d) => {
236
+ var T, E;
237
+ c == null || c(d);
238
+ const q = _.current;
239
+ if (_.current = !1, d.defaultPrevented || (T = A.current) != null && T.isConnected || !y && q) return;
240
+ const R = document.activeElement;
241
+ R !== null && R !== document.body && !((E = x.current) != null && E.contains(R)) || ne(I.current) && d.preventDefault();
242
+ },
243
+ children: [
244
+ v,
245
+ !$ && // The close is a plain button carrying the `ds-dialog__close`
246
+ // contract class — the SAME class a vanilla host renders. The CSS
247
+ // (src/styles.css) owns its position, sizing, glyph size, hover
248
+ // wash, and focus ring from tokens, so the React and non-React
249
+ // close buttons are identical and can't drift.
250
+ /* @__PURE__ */ n(
251
+ l.Close,
252
+ {
253
+ type: "button",
254
+ className: "ds-dialog__close",
255
+ "aria-label": D("common.close", "Close"),
256
+ children: /* @__PURE__ */ n(ee, { "aria-hidden": "true" })
257
+ }
258
+ )
259
+ ]
260
+ }
261
+ )
262
+ ] });
263
+ }
264
+ );
265
+ w.displayName = "Dialog.Content";
266
+ const F = u(
267
+ ({ className: e, ...t }, o) => /* @__PURE__ */ n(
268
+ "div",
269
+ {
270
+ ref: o,
271
+ className: ["ds-dialog__header", e].filter(Boolean).join(" "),
272
+ ...t
273
+ }
274
+ )
275
+ );
276
+ F.displayName = "Dialog.Header";
277
+ const L = u(
278
+ ({ className: e, ...t }, o) => /* @__PURE__ */ n(
279
+ "div",
280
+ {
281
+ ref: o,
282
+ className: ["ds-dialog__body", e].filter(Boolean).join(" "),
283
+ ...t
284
+ }
285
+ )
286
+ );
287
+ L.displayName = "Dialog.Body";
288
+ const P = u(({ className: e, ...t }, o) => /* @__PURE__ */ n(
289
+ l.Title,
290
+ {
291
+ ref: o,
292
+ className: ["ds-dialog__title type-title-card ds:break-words", e].filter(Boolean).join(" "),
293
+ ...t
294
+ }
295
+ ));
296
+ P.displayName = "Dialog.Title";
297
+ const V = u(({ className: e, ...t }, o) => /* @__PURE__ */ n(
298
+ l.Description,
299
+ {
300
+ ref: o,
301
+ className: ["type-body-sm ds:text-[var(--muted-foreground)]", e].filter(Boolean).join(" "),
302
+ ...t
303
+ }
304
+ ));
305
+ V.displayName = "Dialog.Description";
306
+ const ce = k(
307
+ [
308
+ "ds:@container/dialog-footer",
309
+ "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]",
310
+ "ds:@max-[384px]/dialog-footer:[&>*]:w-full",
311
+ "ds:mt-[var(--spacing-md)]"
312
+ ].join(" "),
313
+ {
314
+ variants: {
315
+ divider: {
316
+ true: "ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-md)]",
317
+ false: ""
318
+ }
319
+ },
320
+ defaultVariants: { divider: !1 }
321
+ }
322
+ ), z = u(
323
+ ({ className: e, divider: t = !1, ...o }, a) => /* @__PURE__ */ n(
324
+ "div",
325
+ {
326
+ ref: a,
327
+ className: ce({ divider: t, className: e }),
328
+ ...o
329
+ }
330
+ )
331
+ );
332
+ z.displayName = "Dialog.Footer";
333
+ const he = Object.assign(C, {
334
+ Root: C,
335
+ Trigger: M,
336
+ Content: w,
337
+ Header: F,
338
+ Title: P,
339
+ Description: V,
340
+ Body: L,
341
+ Footer: z,
342
+ Close: B
343
+ });
344
+ export {
345
+ he as D,
346
+ ie as d
347
+ };
348
+ //# sourceMappingURL=dialog-CIUn5oLb.js.map
@@ -7,7 +7,7 @@ import { C as B } from "./card-DVO3x8E-.js";
7
7
  import { E as G } from "./empty-state-DwJ5YNzz.js";
8
8
  import { P as Y } from "./panel-header-CbtlTe85.js";
9
9
  import { P as J } from "./pdf-viewer-BnBKdx0y.js";
10
- import { T as O, b as Q, c as X, a as Z } from "./tabs-CXYjr_8O.js";
10
+ import { T as O, b as Q, c as X, a as Z } from "./tabs-CsmgkiG6.js";
11
11
  import { u as ee } from "./registry-DvAUVLHh.js";
12
12
  import { F as ie } from "./file-image-cDgE-BTy.js";
13
13
  import { F as te } from "./file-text-5yv6r2ls.js";
@@ -288,4 +288,4 @@ export {
288
288
  ue as D,
289
289
  de as d
290
290
  };
291
- //# sourceMappingURL=document-preview-WvJKHJOP.js.map
291
+ //# sourceMappingURL=document-preview-B_JGHsEW.js.map