@alfadocs/ui-kit 0.1.9 → 0.2.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 (281) hide show
  1. package/README.md +30 -0
  2. package/dist/_chunks/accordion-DOmxGEWU.js +228 -0
  3. package/dist/_chunks/{agenda-card-DwLIxgi7.js → agenda-card-CalZqycc.js} +12 -3
  4. package/dist/_chunks/{agenda-tray-DUvengGQ.js → agenda-tray-3ffFDQZC.js} +54 -51
  5. package/dist/_chunks/{ai-prompt-input.agent-0NHYLTWD.js → ai-prompt-input-BBiDlEIS.js} +231 -231
  6. package/dist/_chunks/{alert-BlOUMkXj.js → alert-B1sj8Ss0.js} +24 -14
  7. package/dist/_chunks/{apexcharts-theme-BkSShpEy.js → apexcharts-theme-BJigns_V.js} +7 -2
  8. package/dist/_chunks/{app-frame-6d7Lu4ea.js → app-frame-CDJOgPXe.js} +7 -16
  9. package/dist/_chunks/{audio-recorder.agent--VKeykUp.js → audio-recorder-B4U1LuiQ.js} +161 -162
  10. package/dist/_chunks/{audio-visualiser-CeMPCZkd.js → audio-visualiser-ByDEFLNm.js} +25 -19
  11. package/dist/_chunks/autocomplete-D4oUZbsP.js +466 -0
  12. package/dist/_chunks/{badge-mrstWxve.js → badge-DKFbntoa.js} +16 -13
  13. package/dist/_chunks/{balance-cell-renderer-5CA7zpAi.js → balance-cell-renderer-B8zgIM-m.js} +63 -44
  14. package/dist/_chunks/{breadcrumb.agent-GM2hAKFX.js → breadcrumb-D1snXjPb.js} +165 -157
  15. package/dist/_chunks/{button-7mLWcMp_.js → button-DD_0Xdmr.js} +12 -2
  16. package/dist/_chunks/{calendar-nGEgelJs.js → calendar-zy0tUUVG.js} +13 -18
  17. package/dist/_chunks/{card-BEy58ZKp.js → card-CWzuTLYE.js} +40 -34
  18. package/dist/_chunks/{chart.agent-_pRYS17d.js → chart-BLvFl169.js} +147 -131
  19. package/dist/_chunks/chat-container-ClzsWXp2.js +220 -0
  20. package/dist/_chunks/chat-input-DOlsB1fm.js +333 -0
  21. package/dist/_chunks/{chat-message-ByouZpPP.js → chat-message-DoAhgUTj.js} +23 -13
  22. package/dist/_chunks/{collapsible.agent-DkS1jVyn.js → collapsible-CuxUBoHJ.js} +97 -99
  23. package/dist/_chunks/{color-picker-94qcBZqZ.js → color-picker-CTIcHlDF.js} +111 -45
  24. package/dist/_chunks/combobox-DCNXqbC7.js +460 -0
  25. package/dist/_chunks/command-palette-C_vgSgrI.js +441 -0
  26. package/dist/_chunks/{date-picker-BqPTn7bO.js → date-picker-B1PO1ZQP.js} +190 -181
  27. package/dist/_chunks/{date-range-picker-B2hGsffw.js → date-range-picker-mix2nEVC.js} +21 -8
  28. package/dist/_chunks/{date-time-picker-Bzt0S8yO.js → date-time-picker-Dnong_BY.js} +30 -15
  29. package/dist/_chunks/{description-list-DvJbp6Yg.js → description-list-BYA77Yud.js} +26 -23
  30. package/dist/_chunks/dialog-BPD7wlGE.js +211 -0
  31. package/dist/_chunks/dropdown-menu-CpiF6CPz.js +300 -0
  32. package/dist/_chunks/{empty-state-DQPtRp2b.js → empty-state-3CLJIXSj.js} +132 -101
  33. package/dist/_chunks/file-upload-C947ACDK.js +829 -0
  34. package/dist/_chunks/{floating-action-button-Cnw-f6AG.js → floating-action-button-C8OYj8mE.js} +9 -2
  35. package/dist/_chunks/{form-field-BfsPLTSc.js → form-field-Bmkeh7WY.js} +12 -11
  36. package/dist/_chunks/{form-field-context-94LwgYTQ.js → form-field-context-B3APVHKx.js} +4 -2
  37. package/dist/_chunks/{freemium-paywall.agent-_nQqLyRF.js → freemium-paywall-CnvceDav.js} +124 -117
  38. package/dist/_chunks/{header-BGn1mRp8.js → header-D0ULgQl3.js} +69 -68
  39. package/dist/_chunks/{icon-button-Wnnde5lc.js → icon-button-C4CGcYuz.js} +11 -3
  40. package/dist/_chunks/{kbd-8baVw3KU.js → kbd-Cglkd7CY.js} +6 -2
  41. package/dist/_chunks/{key-value-pair-JRFS9Xrh.js → key-value-pair-CgWvAIGb.js} +2 -2
  42. package/dist/_chunks/{leo-sidebar-BwINPdix.js → leo-sidebar-CfEY-xi2.js} +16 -20
  43. package/dist/_chunks/{link-QheANk74.js → link-8QmFjIz2.js} +2 -5
  44. package/dist/_chunks/list-qP6p0NTw.js +434 -0
  45. package/dist/_chunks/{logo-BpFoCL-s.js → logo-_Z-jLq80.js} +155 -26
  46. package/dist/_chunks/{matrix-rain-BEkvux64.js → matrix-rain-CRPMXcVx.js} +8 -2
  47. package/dist/_chunks/{message-card-qhoGv947.js → message-card-ChCX9Iv6.js} +63 -60
  48. package/dist/_chunks/{message-tray-xHUCra-Y.js → message-tray-n8q9ITXI.js} +71 -76
  49. package/dist/_chunks/{multi-select.agent-Do6CeQUT.js → multi-select-wqqrgjUQ.js} +326 -291
  50. package/dist/_chunks/{navigation-menu.agent-D69ND6Qq.js → navigation-menu-ClbHeawy.js} +136 -123
  51. package/dist/_chunks/{notification-card-CsVEYJE-.js → notification-card-hBlPN1-c.js} +3 -3
  52. package/dist/_chunks/{notification-tray-DTXMq42J.js → notification-tray-C5cnXbl9.js} +70 -66
  53. package/dist/_chunks/{number-input-fvGmnRy9.js → number-input-Q7wkHnvQ.js} +7 -3
  54. package/dist/_chunks/{otp-input-EglXOUue.js → otp-input-C9gUByF0.js} +6 -3
  55. package/dist/_chunks/{pagination.agent-BkZQl45y.js → pagination-3AC4zTsi.js} +234 -194
  56. package/dist/_chunks/{password-input-D6kuYXmr.js → password-input-C4LmjIH1.js} +6 -9
  57. package/dist/_chunks/{patient-shell-BRmrrUUW.js → patient-shell-BlsEUKWB.js} +10 -15
  58. package/dist/_chunks/{payment-form-BWaXas8z.js → payment-form-C3vT_npe.js} +195 -186
  59. package/dist/_chunks/{pdf-viewer.agent-BaGEDheA.js → pdf-viewer-CZIfY08H.js} +270 -241
  60. package/dist/_chunks/{phone-input-C8Op4sEc.js → phone-input-CSHJOJ13.js} +4 -9
  61. package/dist/_chunks/popover-DekUKNBk.js +293 -0
  62. package/dist/_chunks/{privacy-lock.agent-C1i1-T58.js → privacy-lock-BKsI6ReN.js} +117 -109
  63. package/dist/_chunks/progress-C11tqhoI.js +298 -0
  64. package/dist/_chunks/{recaptcha-widget.agent-BGHpU5zD.js → recaptcha-widget-NyfOfLII.js} +95 -86
  65. package/dist/_chunks/resizable-mpXXyIsN.js +483 -0
  66. package/dist/_chunks/{rich-text-editor.agent-DnE125Tz.js → rich-text-editor-C7TCIlQO.js} +298 -209
  67. package/dist/_chunks/{scroll-area-DLr5w9Dd.js → scroll-area-DEDU-lp-.js} +67 -54
  68. package/dist/_chunks/{search-bar.agent-DxFAxctc.js → search-bar-BTDfgYtg.js} +291 -268
  69. package/dist/_chunks/{search-input-Xw3cdWXW.js → search-input-CdJIEjFo.js} +116 -107
  70. package/dist/_chunks/{select-DY1Cb2Tg.js → select-y6bXV1f1.js} +84 -83
  71. package/dist/_chunks/{separator-B4wXDLNC.js → separator-CYU_bGFn.js} +2 -5
  72. package/dist/_chunks/{sheet-B9kH9pcI.js → sheet-4tgMFwj0.js} +135 -60
  73. package/dist/_chunks/{sidebar-CHF5xr_P.js → sidebar-Bx3wCDyy.js} +546 -457
  74. package/dist/_chunks/{sign-in-with-alfadocs-button-BN_FPGHT.js → sign-in-with-alfadocs-button-B9UrqOqH.js} +9 -5
  75. package/dist/_chunks/{signature-capture.agent-BpeDwFht.js → signature-capture-DjMlFOzS.js} +210 -212
  76. package/dist/_chunks/{skeleton-dtqyF09N.js → skeleton-CZbwyJAA.js} +9 -3
  77. package/dist/_chunks/{slider-CcsQTZTA.js → slider-BT2bZWsy.js} +138 -134
  78. package/dist/_chunks/{slot-grid-D_l5VsHG.js → slot-grid-CgpYgBkW.js} +105 -95
  79. package/dist/_chunks/{sparkline.agent-56Sj7nOP.js → sparkline-_gy8aJDG.js} +107 -100
  80. package/dist/_chunks/{spinner-GCcv67vh.js → spinner-DLaYfLPl.js} +66 -14
  81. package/dist/_chunks/{stat-DUB6g90R.js → stat-B9PHSPbN.js} +45 -27
  82. package/dist/_chunks/{stepper-calendar.agent-9iT3ClIB.js → stepper-calendar-BLOJUE0-.js} +189 -187
  83. package/dist/_chunks/stepper-progress-jFY8BSf7.js +208 -0
  84. package/dist/_chunks/{suggestion-chip-DhFrkRPj.js → suggestion-chip-C4Jz0LrM.js} +50 -52
  85. package/dist/_chunks/{switch-BYEH8I53.js → switch-C0psfIQF.js} +2 -2
  86. package/dist/_chunks/{tabs.agent-h7NvsTR1.js → tabs-DaFA3Muo.js} +183 -155
  87. package/dist/_chunks/{tag-BqidXKo3.js → tag-DuLMjRbF.js} +90 -32
  88. package/dist/_chunks/{task-card-CY5ztNkU.js → task-card-Dw_ZJDL8.js} +5 -2
  89. package/dist/_chunks/{task-tray-CCoUdorl.js → task-tray-XlIW9ueh.js} +50 -49
  90. package/dist/_chunks/{text-area-C_M8wliK.js → text-area-CO9Dz0qX.js} +2 -2
  91. package/dist/_chunks/{text-input-BX39e6T6.js → text-input-DZwt9L8H.js} +65 -62
  92. package/dist/_chunks/{theme-root-DDb0TJjd.js → theme-root-CSKD5ZRm.js} +9 -2
  93. package/dist/_chunks/{theme-toggle.agent-btmXTWdW.js → theme-toggle-B9zzCnvl.js} +179 -177
  94. package/dist/_chunks/{time-picker-B8AMIrX7.js → time-picker-DvPUmHH-.js} +95 -93
  95. package/dist/_chunks/{timeline.agent-CRPza9wc.js → timeline-BvmnQadS.js} +96 -96
  96. package/dist/_chunks/{toast.agent-BjEGuq1Z.js → toast.agent-BwKXA0km.js} +46 -8
  97. package/dist/_chunks/{tooth-scheme.agent-CWrQBjJM.js → tooth-scheme-3mITSXiZ.js} +146 -162
  98. package/dist/_chunks/{transcript-panel.agent-BXEYP6w-.js → transcript-panel-Bx5ANMsv.js} +110 -101
  99. package/dist/_chunks/{typing-indicator-CbUBf-Dx.js → typing-indicator-BZ5jXZPn.js} +27 -5
  100. package/dist/_chunks/{use-theme-BMUhembX.js → use-theme-B1cwAXJR.js} +2 -5
  101. package/dist/_chunks/{visually-hidden-Bw7vBHLm.js → visually-hidden-BHxEUGyT.js} +11 -2
  102. package/dist/_chunks/{warning-stack-8Pa3pekh.js → warning-stack-VygGHSqC.js} +11 -13
  103. package/dist/_chunks/{workflow-map-D2A7rTEG.js → workflow-map-C-nlogPC.js} +430 -452
  104. package/dist/agent-catalog.json +580 -15
  105. package/dist/components/_shared/index.d.ts +2 -2
  106. package/dist/components/accordion/index.d.ts +1 -1
  107. package/dist/components/accordion/index.js +5 -6
  108. package/dist/components/agenda-card/index.js +1 -1
  109. package/dist/components/agenda-tray/agenda-tray.d.ts +1 -1
  110. package/dist/components/agenda-tray/index.js +1 -1
  111. package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +1 -1
  112. package/dist/components/ai-prompt-input/index.js +1 -1
  113. package/dist/components/alert/index.d.ts +1 -1
  114. package/dist/components/alert/index.js +1 -1
  115. package/dist/components/app-frame/index.js +1 -1
  116. package/dist/components/audio-recorder/index.js +1 -1
  117. package/dist/components/audio-visualiser/index.js +1 -1
  118. package/dist/components/autocomplete/index.js +1 -1
  119. package/dist/components/badge/index.js +1 -1
  120. package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
  121. package/dist/components/breadcrumb/index.js +1 -1
  122. package/dist/components/button/index.js +2 -2
  123. package/dist/components/calendar/index.js +1 -1
  124. package/dist/components/card/index.js +1 -1
  125. package/dist/components/chart/index.d.ts +1 -1
  126. package/dist/components/chart/index.js +1 -1
  127. package/dist/components/chat-container/chat-container.d.ts +1 -1
  128. package/dist/components/chat-container/index.js +2 -3
  129. package/dist/components/chat-input/chat-input.d.ts +1 -1
  130. package/dist/components/chat-input/index.js +3 -4
  131. package/dist/components/chat-message/index.js +1 -1
  132. package/dist/components/checkbox-group/index.d.ts +1 -1
  133. package/dist/components/collapsible/collapsible.d.ts +1 -1
  134. package/dist/components/collapsible/index.d.ts +1 -1
  135. package/dist/components/collapsible/index.js +1 -1
  136. package/dist/components/color-picker/index.js +1 -1
  137. package/dist/components/combobox/index.d.ts +1 -1
  138. package/dist/components/combobox/index.js +1 -1
  139. package/dist/components/command-palette/command-palette.d.ts +46 -13
  140. package/dist/components/command-palette/index.js +1 -1
  141. package/dist/components/data-table/data-table.d.ts +3 -1
  142. package/dist/components/data-table/index.js +1 -1
  143. package/dist/components/data-table/toolbar.d.ts +6 -5
  144. package/dist/components/date-picker/date-picker.d.ts +1 -1
  145. package/dist/components/date-picker/index.d.ts +1 -1
  146. package/dist/components/date-picker/index.js +1 -1
  147. package/dist/components/date-range-picker/index.js +1 -1
  148. package/dist/components/date-time-picker/index.d.ts +1 -1
  149. package/dist/components/date-time-picker/index.js +1 -1
  150. package/dist/components/description-list/description-list.d.ts +1 -2
  151. package/dist/components/description-list/index.js +1 -1
  152. package/dist/components/dialog/dialog.d.ts +2 -2
  153. package/dist/components/dialog/index.js +1 -1
  154. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -16
  155. package/dist/components/dropdown-menu/index.js +3 -4
  156. package/dist/components/empty-state/index.js +1 -1
  157. package/dist/components/file-upload/index.d.ts +1 -1
  158. package/dist/components/file-upload/index.js +1 -1
  159. package/dist/components/floating-action-button/index.js +1 -1
  160. package/dist/components/form-field/index.js +2 -2
  161. package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
  162. package/dist/components/freemium-paywall/index.js +1 -1
  163. package/dist/components/header/index.js +1 -1
  164. package/dist/components/icon-button/index.js +1 -1
  165. package/dist/components/kbd/index.js +1 -1
  166. package/dist/components/key-value-pair/index.js +1 -1
  167. package/dist/components/link/index.js +1 -1
  168. package/dist/components/list/index.js +1 -1
  169. package/dist/components/logo/index.js +1 -1
  170. package/dist/components/matrix-rain/index.js +1 -1
  171. package/dist/components/message-card/index.d.ts +1 -1
  172. package/dist/components/message-card/index.js +1 -1
  173. package/dist/components/message-tray/index.js +1 -1
  174. package/dist/components/message-tray/message-tray.d.ts +1 -1
  175. package/dist/components/multi-select/index.js +1 -1
  176. package/dist/components/navigation-menu/index.js +1 -1
  177. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  178. package/dist/components/notification-card/index.d.ts +1 -1
  179. package/dist/components/notification-card/index.js +1 -1
  180. package/dist/components/notification-tray/index.js +1 -1
  181. package/dist/components/notification-tray/notification-tray.d.ts +1 -1
  182. package/dist/components/number-input/index.js +1 -1
  183. package/dist/components/otp-input/index.js +1 -1
  184. package/dist/components/pagination/index.js +1 -1
  185. package/dist/components/pagination/pagination.d.ts +4 -6
  186. package/dist/components/password-input/index.js +1 -1
  187. package/dist/components/payment-form/index.js +7 -8
  188. package/dist/components/payment-form/payment-form.d.ts +1 -1
  189. package/dist/components/pdf-viewer/index.js +1 -1
  190. package/dist/components/phone-input/index.d.ts +1 -1
  191. package/dist/components/phone-input/index.js +1 -1
  192. package/dist/components/popover/index.js +3 -4
  193. package/dist/components/privacy-lock/index.js +1 -1
  194. package/dist/components/privacy-lock/privacy-lock.d.ts +1 -1
  195. package/dist/components/progress/index.js +3 -4
  196. package/dist/components/recaptcha-widget/index.js +1 -1
  197. package/dist/components/resizable/index.d.ts +1 -1
  198. package/dist/components/resizable/index.js +1 -1
  199. package/dist/components/rich-text-editor/index.js +1 -1
  200. package/dist/components/scroll-area/index.js +1 -1
  201. package/dist/components/search-bar/index.js +1 -1
  202. package/dist/components/search-bar/search-bar.d.ts +1 -1
  203. package/dist/components/search-input/index.js +1 -1
  204. package/dist/components/select/index.js +1 -1
  205. package/dist/components/select/select.d.ts +1 -1
  206. package/dist/components/separator/index.js +1 -1
  207. package/dist/components/sheet/index.js +3 -4
  208. package/dist/components/sheet/sheet.d.ts +2 -2
  209. package/dist/components/sidebar/index.js +7 -8
  210. package/dist/components/sidebar/sidebar.d.ts +0 -2
  211. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  212. package/dist/components/signature-capture/index.js +1 -1
  213. package/dist/components/skeleton/index.js +1 -1
  214. package/dist/components/slider/index.js +1 -1
  215. package/dist/components/slot-grid/index.js +1 -1
  216. package/dist/components/sparkline/index.js +1 -1
  217. package/dist/components/spinner/index.js +1 -1
  218. package/dist/components/stat/index.js +1 -1
  219. package/dist/components/stepper-calendar/index.js +1 -1
  220. package/dist/components/stepper-calendar/stepper-calendar.d.ts +1 -1
  221. package/dist/components/stepper-progress/index.d.ts +1 -1
  222. package/dist/components/stepper-progress/index.js +1 -2
  223. package/dist/components/stepper-progress/stepper-progress.d.ts +1 -1
  224. package/dist/components/suggestion-chip/index.js +1 -1
  225. package/dist/components/switch/index.js +1 -1
  226. package/dist/components/tabs/index.d.ts +1 -1
  227. package/dist/components/tabs/index.js +1 -1
  228. package/dist/components/tag/index.js +1 -1
  229. package/dist/components/task-card/index.js +1 -1
  230. package/dist/components/task-tray/index.js +1 -1
  231. package/dist/components/task-tray/task-tray.d.ts +1 -1
  232. package/dist/components/text-area/index.js +1 -1
  233. package/dist/components/text-input/index.js +1 -1
  234. package/dist/components/theme-root/index.js +1 -1
  235. package/dist/components/theme-toggle/index.js +1 -1
  236. package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
  237. package/dist/components/time-picker/index.js +1 -1
  238. package/dist/components/time-picker/time-picker.d.ts +1 -1
  239. package/dist/components/timeline/index.js +1 -1
  240. package/dist/components/timeline/timeline.d.ts +1 -1
  241. package/dist/components/toast/index.js +1 -1
  242. package/dist/components/tooth-scheme/index.js +1 -1
  243. package/dist/components/tooth-scheme/tooth-scheme.d.ts +1 -1
  244. package/dist/components/transcript-panel/index.js +1 -1
  245. package/dist/components/transcript-panel/transcript-panel.d.ts +1 -1
  246. package/dist/components/typing-indicator/index.js +1 -1
  247. package/dist/components/visually-hidden/index.js +1 -1
  248. package/dist/components/warning-stack/index.js +1 -1
  249. package/dist/components/workflow/index.js +1 -1
  250. package/dist/components/workflow/workflow-editor.d.ts +1 -1
  251. package/dist/hooks/index.js +1 -1
  252. package/dist/index.js +392 -402
  253. package/dist/patterns/leo-assistant/index.js +1 -1
  254. package/dist/patterns/patient-shell/index.js +1 -1
  255. package/dist/safe-html/index.js +20 -3
  256. package/dist/tokens.css +2 -2
  257. package/package.json +12 -2
  258. package/dist/_chunks/accordion-BEnrZmAn.js +0 -120
  259. package/dist/_chunks/accordion.agent-BTjeO1Sx.js +0 -52
  260. package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +0 -432
  261. package/dist/_chunks/chat-container-Dl0Kfy5a.js +0 -175
  262. package/dist/_chunks/chat-container.agent-CM4WModE.js +0 -27
  263. package/dist/_chunks/chat-input-C_tMQv92.js +0 -252
  264. package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +0 -69
  265. package/dist/_chunks/combobox.agent-CAvUkkIe.js +0 -410
  266. package/dist/_chunks/command-palette.agent-HatEt_EM.js +0 -391
  267. package/dist/_chunks/dialog.agent-Daf1TTko.js +0 -179
  268. package/dist/_chunks/dropdown-menu-C7AZipNz.js +0 -219
  269. package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +0 -43
  270. package/dist/_chunks/file-upload.agent-DJaH2dHg.js +0 -681
  271. package/dist/_chunks/list.agent-D0iWt4VI.js +0 -420
  272. package/dist/_chunks/payment-form.agent-kuIfodCj.js +0 -31
  273. package/dist/_chunks/popover-kFN8s84V.js +0 -229
  274. package/dist/_chunks/popover.agent-K_d1cfbj.js +0 -39
  275. package/dist/_chunks/progress-wNsqkw8I.js +0 -253
  276. package/dist/_chunks/progress.agent-C68rDOXL.js +0 -27
  277. package/dist/_chunks/resizable.agent-CMwZzvsi.js +0 -456
  278. package/dist/_chunks/sheet.agent-QAyTOxgk.js +0 -46
  279. package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +0 -49
  280. package/dist/_chunks/stepper-progress-Bmen-YXB.js +0 -149
  281. package/dist/_chunks/stepper-progress.agent-q9InWca4.js +0 -61
@@ -1,22 +1,22 @@
1
1
  import { jsx as r, jsxs as w } from "react/jsx-runtime";
2
2
  import { useMemo as R, forwardRef as x, useState as G, useEffect as X, useCallback as C, createContext as _e, useContext as je, isValidElement as Q, cloneElement as Y, useRef as ee, useImperativeHandle as Le, useLayoutEffect as Me } from "react";
3
- import { S as $e } from "./skeleton-dtqyF09N.js";
4
- import { E as Ke } from "./empty-state-DQPtRp2b.js";
3
+ import { S as $e } from "./skeleton-CZbwyJAA.js";
4
+ import { E as Ke } from "./empty-state-3CLJIXSj.js";
5
5
  import { c as Ve } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as T } from "react-i18next";
7
7
  import { AgGridReact as He } from "ag-grid-react";
8
8
  import { ModuleRegistry as qe, AllCommunityModule as We } from "ag-grid-community";
9
- import { B as Ue } from "./button-7mLWcMp_.js";
10
- import { I as P } from "./icon-button-Wnnde5lc.js";
11
- import { P as E } from "./popover-kFN8s84V.js";
9
+ import { B as Ue } from "./button-DD_0Xdmr.js";
10
+ import { I as P } from "./icon-button-C4CGcYuz.js";
11
+ import { P as E } from "./popover-DekUKNBk.js";
12
12
  import { C as Je } from "./checkbox-CtPM6Rup.js";
13
13
  import { c as te } from "./createLucideIcon-CrFbzy84.js";
14
14
  import { P as Ze } from "./printer-CeVEWfQq.js";
15
15
  import { F as Xe } from "./file-text-DSNuv2B8.js";
16
16
  import { u as Qe } from "./registry-C9nwlNyL.js";
17
- import { B as Ye } from "./badge-mrstWxve.js";
17
+ import { B as Ye } from "./badge-DKFbntoa.js";
18
18
  import { A as et } from "./avatar-Dcr6XuDQ.js";
19
- import { T as q } from "./tag-BqidXKo3.js";
19
+ import { T as q } from "./tag-DuLMjRbF.js";
20
20
  import { T as tt } from "./tooltip-DHik5yRI.js";
21
21
  import { T as W } from "./timestamp-BV2lC-wV.js";
22
22
  import { S as at } from "./square-check-big-Jr-0202D.js";
@@ -190,7 +190,9 @@ const de = ({ label: e }) => {
190
190
  (c, f) => {
191
191
  const y = a();
192
192
  y && (y.setColumnsVisible([c], f), u(
193
- (D) => D.map((S) => S.colId === c ? { ...S, visible: f } : S)
193
+ (D) => D.map(
194
+ (S) => S.colId === c ? { ...S, visible: f } : S
195
+ )
194
196
  ));
195
197
  },
196
198
  [a]
@@ -424,7 +426,6 @@ function ft() {
424
426
  lastPage: e("dataTable.lastPage"),
425
427
  pageSize: e("dataTable.pageSize")
426
428
  }),
427
- // eslint-disable-next-line react-hooks/exhaustive-deps
428
429
  [e]
429
430
  );
430
431
  }
@@ -593,7 +594,10 @@ function yt(e, t) {
593
594
  var i;
594
595
  if (!o || !((i = g.current) != null && i.api)) return;
595
596
  const s = ht(o);
596
- s && g.current.api.applyColumnState({ state: s, applyOrder: !0 });
597
+ s && g.current.api.applyColumnState({
598
+ state: s,
599
+ applyOrder: !0
600
+ });
597
601
  }, [o]), $ = C(() => {
598
602
  var s;
599
603
  o && ((s = g.current) != null && s.api) && vt(o, g.current.api);
@@ -667,39 +671,45 @@ function yt(e, t) {
667
671
  children: Ge
668
672
  }
669
673
  ),
670
- /* @__PURE__ */ r("div", { className: [Be, k ? "" : pe].join(" ").trim(), children: /* @__PURE__ */ r(
671
- He,
674
+ /* @__PURE__ */ r(
675
+ "div",
672
676
  {
673
- ref: g,
674
- theme: "legacy",
675
- columnDefs: a,
676
- rowData: n,
677
- rowModelType: Re,
678
- serverSideDatasource: d,
679
- rowSelection: Ne,
680
- pagination: Oe,
681
- paginationPageSize: u,
682
- animateRows: !xe,
683
- enableRtl: Ce,
684
- ensureDomOrder: !0,
685
- suppressCellFocus: !1,
686
- rowBuffer: 10,
687
- localeText: Te,
688
- noRowsOverlayComponent: Pe,
689
- loadingOverlayComponent: ze,
690
- getRowClass: ge,
691
- pinnedBottomRowData: be,
692
- domLayout: k ? "autoHeight" : void 0,
693
- onGridReady: ke,
694
- onColumnMoved: $,
695
- onColumnResized: $,
696
- onColumnPinned: $,
697
- onSortChanged: De,
698
- onFilterChanged: Ie,
699
- onSelectionChanged: Ae,
700
- ...O
677
+ className: [Be, k ? "" : pe].join(" ").trim(),
678
+ children: /* @__PURE__ */ r(
679
+ He,
680
+ {
681
+ ref: g,
682
+ theme: "legacy",
683
+ columnDefs: a,
684
+ rowData: n,
685
+ rowModelType: Re,
686
+ serverSideDatasource: d,
687
+ rowSelection: Ne,
688
+ pagination: Oe,
689
+ paginationPageSize: u,
690
+ animateRows: !xe,
691
+ enableRtl: Ce,
692
+ ensureDomOrder: !0,
693
+ suppressCellFocus: !1,
694
+ rowBuffer: 10,
695
+ localeText: Te,
696
+ noRowsOverlayComponent: Pe,
697
+ loadingOverlayComponent: ze,
698
+ getRowClass: ge,
699
+ pinnedBottomRowData: be,
700
+ domLayout: k ? "autoHeight" : void 0,
701
+ onGridReady: ke,
702
+ onColumnMoved: $,
703
+ onColumnResized: $,
704
+ onColumnPinned: $,
705
+ onSortChanged: De,
706
+ onFilterChanged: Ie,
707
+ onSelectionChanged: Ae,
708
+ ...O
709
+ }
710
+ )
701
711
  }
702
- ) }),
712
+ ),
703
713
  !k && /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: _ > 0 ? /* @__PURE__ */ r("span", { children: F("dataTable.selected", { count: _ }) }) : /* @__PURE__ */ r("span", {}) }),
704
714
  /* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: j })
705
715
  ]
@@ -782,7 +792,13 @@ function Ct(e) {
782
792
  return Number.isFinite(t) ? t : null;
783
793
  }
784
794
  function ia(e) {
785
- const { value: t, currency: a = "EUR", colorNegative: n, strikethrough: l, options: m } = e, { i18n: u } = T(), d = Ct(t);
795
+ const {
796
+ value: t,
797
+ currency: a = "EUR",
798
+ colorNegative: n,
799
+ strikethrough: l,
800
+ options: m
801
+ } = e, { i18n: u } = T(), d = Ct(t);
786
802
  if (d === null) return null;
787
803
  const o = u.language || "en", c = new Intl.NumberFormat(o, {
788
804
  style: "currency",
@@ -856,7 +872,10 @@ function da(e) {
856
872
  {
857
873
  type: "button",
858
874
  onClick: f,
859
- className: ["ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start", c].join(" "),
875
+ className: [
876
+ "ds:appearance-none ds:bg-transparent ds:p-0 ds:text-start",
877
+ c
878
+ ].join(" "),
860
879
  children: o
861
880
  }
862
881
  ),
@@ -993,4 +1012,4 @@ export {
993
1012
  mt as f,
994
1013
  aa as u
995
1014
  };
996
- //# sourceMappingURL=balance-cell-renderer-5CA7zpAi.js.map
1015
+ //# sourceMappingURL=balance-cell-renderer-B8zgIM-m.js.map
@@ -1,14 +1,53 @@
1
1
  import { jsx as n, jsxs as E } from "react/jsx-runtime";
2
- import { forwardRef as x, useMemo as I, useImperativeHandle as R, Children as g, isValidElement as b, cloneElement as L, useContext as V, createContext as A } from "react";
2
+ import { forwardRef as y, useMemo as I, useRef as H, useImperativeHandle as A, Children as b, isValidElement as x, cloneElement as L, useContext as V, createContext as M } from "react";
3
3
  import * as j from "@radix-ui/react-dropdown-menu";
4
- import { Slot as M } from "@radix-ui/react-slot";
5
- import { c as q } from "./index-D2ZczOXr.js";
4
+ import { Slot as q } from "@radix-ui/react-slot";
5
+ import { c as K } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as B } from "react-i18next";
7
- import { E as K } from "./ellipsis-rgGdiK_9.js";
8
- import { C as O } from "./chevron-right-BrpYejk0.js";
9
- const S = A({
7
+ import { u as O } from "./registry-C9nwlNyL.js";
8
+ import { E as _ } from "./ellipsis-rgGdiK_9.js";
9
+ import { C as D } from "./chevron-right-BrpYejk0.js";
10
+ const G = {
11
+ id: "breadcrumb",
12
+ capabilities: ["navigate"],
13
+ state: {
14
+ items: {
15
+ type: "Array<{ id: string, href?: string }>",
16
+ descriptionKey: "ui.agent.breadcrumb.state.items",
17
+ description: "Ordered list of crumb ids + hrefs in display order. Labels are intentionally excluded — they may contain PHI.",
18
+ read: (r) => r.getItems()
19
+ }
20
+ },
21
+ actions: {
22
+ navigate_to: {
23
+ safety: "read",
24
+ argsType: "{ id: string }",
25
+ descriptionKey: "ui.agent.breadcrumb.actions.navigateTo",
26
+ description: "Activate the crumb with the given id — equivalent to clicking the link.",
27
+ invoke: (r, a) => {
28
+ r.navigateTo(a.id);
29
+ }
30
+ }
31
+ },
32
+ domHooks: {
33
+ root: {
34
+ attr: "data-component",
35
+ value: "breadcrumb",
36
+ description: "Marks the Breadcrumb root `<nav>`."
37
+ },
38
+ instanceId: {
39
+ attr: "data-component-id",
40
+ sourceProp: "id",
41
+ description: "Sourced from the id prop."
42
+ },
43
+ item: {
44
+ attr: "data-crumb-id",
45
+ description: "Stable opaque id of a crumb. Labels are NEVER carried in data-* — they may contain PHI."
46
+ }
47
+ }
48
+ }, R = M({
10
49
  separator: "chevron"
11
- }), _ = x(
50
+ }), F = y(
12
51
  ({
13
52
  children: r,
14
53
  className: a,
@@ -19,31 +58,32 @@ const S = A({
19
58
  itemsAfterCollapse: o = 1,
20
59
  disableCollapse: i = !1,
21
60
  id: d,
22
- ...h
61
+ ...v
23
62
  }, k) => {
24
- const { t: y } = B(), f = I(() => D(r), [r]), u = I(
63
+ const { t: w } = B(), p = I(() => J(r), [r]), m = I(
25
64
  () => ({
26
- getItems: () => f,
27
- navigateTo: (m) => {
28
- const c = f.find((w) => w.id === m);
29
- if (!(c != null && c.href) || typeof window > "u") return;
30
- const p = c.href.trim();
31
- /^\s*javascript:/i.test(p) || window.location.assign(p);
65
+ getItems: () => p,
66
+ navigateTo: (u) => {
67
+ const f = p.find((h) => h.id === u);
68
+ if (!(f != null && f.href) || typeof window > "u") return;
69
+ const g = f.href.trim();
70
+ /^\s*javascript:/i.test(g) || window.location.assign(g);
32
71
  }
33
72
  }),
34
- [f]
35
- );
36
- return R(k, () => u, [u]), /* @__PURE__ */ n(S.Provider, { value: { separator: e }, children: /* @__PURE__ */ n(
73
+ [p]
74
+ ), c = H(null);
75
+ return A(k, () => c.current, []), O(G, m, d), /* @__PURE__ */ n(R.Provider, { value: { separator: e }, children: /* @__PURE__ */ n(
37
76
  "nav",
38
77
  {
78
+ ref: c,
39
79
  id: d,
40
- "aria-label": l ?? y("ui.navigation.breadcrumb.label"),
80
+ "aria-label": l ?? w("ui.navigation.breadcrumb.label"),
41
81
  "data-component": "breadcrumb",
42
82
  "data-component-id": d,
43
83
  className: a,
44
- ...h,
84
+ ...v,
45
85
  children: /* @__PURE__ */ n(
46
- T,
86
+ S,
47
87
  {
48
88
  maxItems: s,
49
89
  itemsBeforeCollapse: t,
@@ -56,16 +96,16 @@ const S = A({
56
96
  ) });
57
97
  }
58
98
  );
59
- _.displayName = "Breadcrumb";
60
- function D(r) {
99
+ F.displayName = "Breadcrumb";
100
+ function J(r) {
61
101
  const a = [];
62
102
  let l = 0;
63
- return g.forEach(r, (e) => {
64
- if (!b(e) || e.type !== N) return;
103
+ return b.forEach(r, (e) => {
104
+ if (!x(e) || e.type !== N) return;
65
105
  const s = e.props;
66
106
  let t;
67
- g.forEach(s.children, (i) => {
68
- if (t || !b(i) || i.type !== C) return;
107
+ b.forEach(s.children, (i) => {
108
+ if (t || !x(i) || i.type !== C) return;
69
109
  const d = i.props;
70
110
  typeof d.href == "string" && (t = d.href);
71
111
  });
@@ -73,13 +113,13 @@ function D(r) {
73
113
  a.push({ id: o, href: t }), l += 1;
74
114
  }), a;
75
115
  }
76
- const G = [
116
+ const Q = [
77
117
  "ds:flex ds:flex-wrap ds:items-center",
78
118
  "ds:gap-[var(--spacing-xs)]",
79
119
  "ds:text-[var(--font-size-sm)] ds:text-[var(--muted-foreground)]",
80
120
  "ds:ps-0 ds:m-0",
81
121
  "ds:list-none"
82
- ].join(" "), T = x(
122
+ ].join(" "), S = y(
83
123
  ({
84
124
  children: r,
85
125
  className: a,
@@ -89,41 +129,50 @@ const G = [
89
129
  disableCollapse: t = !1,
90
130
  ...o
91
131
  }, i) => {
92
- const d = g.toArray(r).filter((m) => b(m)), h = d.length, k = !t && h > l && e + s < h, y = (m, c, p) => L(m, {
93
- isCurrent: m.props.isCurrent ?? c,
94
- key: p
95
- }), f = (m, c) => m ? /* @__PURE__ */ n($, {}, c) : null;
96
- let u = [];
132
+ const d = b.toArray(r).filter(
133
+ (c) => x(c)
134
+ ), v = d.length, k = !t && v > l && e + s < v, w = (c, u, f) => L(c, {
135
+ isCurrent: c.props.isCurrent ?? u,
136
+ key: f
137
+ }), p = (c, u) => c ? /* @__PURE__ */ n(T, {}, u) : null, m = [];
97
138
  if (!k)
98
- d.forEach((m, c) => {
99
- const p = c === h - 1;
100
- u.push(y(m, p, `item-${c}`)), u.push(f(!p, `sep-${c}`));
139
+ d.forEach((c, u) => {
140
+ const f = u === v - 1;
141
+ m.push(w(c, f, `item-${u}`)), m.push(p(!f, `sep-${u}`));
101
142
  });
102
143
  else {
103
- const m = d.slice(0, e), c = d.slice(h - s), p = d.slice(e, h - s);
104
- m.forEach((w, v) => {
105
- u.push(y(w, !1, `b-${v}`)), u.push(f(!0, `b-sep-${v}`));
106
- }), u.push(
107
- /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n(H, { hiddenItems: p }) }, "ellipsis")
108
- ), u.push(f(!0, "ellipsis-sep")), c.forEach((w, v) => {
109
- const z = v === c.length - 1;
110
- u.push(y(w, z, `a-${v}`)), u.push(f(!z, `a-sep-${v}`));
144
+ const c = d.slice(0, e), u = d.slice(v - s), f = d.slice(e, v - s);
145
+ c.forEach((g, h) => {
146
+ m.push(w(g, !1, `b-${h}`)), m.push(p(!0, `b-sep-${h}`));
147
+ }), m.push(
148
+ /* @__PURE__ */ n(N, { children: /* @__PURE__ */ n($, { hiddenItems: f }) }, "ellipsis")
149
+ ), m.push(p(!0, "ellipsis-sep")), u.forEach((g, h) => {
150
+ const z = h === u.length - 1;
151
+ m.push(w(g, z, `a-${h}`)), m.push(p(!z, `a-sep-${h}`));
111
152
  });
112
153
  }
113
- return /* @__PURE__ */ n("ol", { ref: i, className: [G, a].filter(Boolean).join(" "), ...o, children: u });
154
+ return /* @__PURE__ */ n(
155
+ "ol",
156
+ {
157
+ ref: i,
158
+ className: [Q, a].filter(Boolean).join(" "),
159
+ ...o,
160
+ children: m
161
+ }
162
+ );
114
163
  }
115
164
  );
116
- T.displayName = "BreadcrumbList";
117
- const F = [
165
+ S.displayName = "BreadcrumbList";
166
+ const U = [
118
167
  "ds:inline-flex ds:items-center",
119
168
  "ds:max-inline-size-[16rem]",
120
169
  "ds:min-h-[var(--min-target-size)]",
121
170
  "ds:py-[var(--spacing-xs)]"
122
- ].join(" "), N = x(
171
+ ].join(" "), N = y(
123
172
  ({ children: r, className: a, isCurrent: l = !1, id: e, ...s }, t) => {
124
173
  let o = e;
125
- return o || g.forEach(r, (i) => {
126
- if (o || !b(i) || i.type !== C) return;
174
+ return o || b.forEach(r, (i) => {
175
+ if (o || !x(i) || i.type !== C) return;
127
176
  const d = i.props;
128
177
  typeof d.href == "string" && (o = d.href);
129
178
  }), /* @__PURE__ */ n(
@@ -132,13 +181,13 @@ const F = [
132
181
  ref: t,
133
182
  id: e,
134
183
  "data-crumb-id": o,
135
- className: [F, a].filter(Boolean).join(" "),
184
+ className: [U, a].filter(Boolean).join(" "),
136
185
  ...s,
137
- children: g.map(
186
+ children: b.map(
138
187
  r,
139
188
  (i) => {
140
189
  var d;
141
- return b(i) && (i.type === C || (d = i.props) != null && d._link) ? L(i, {
190
+ return x(i) && (i.type === C || (d = i.props) != null && d._link) ? L(i, {
142
191
  isCurrent: l
143
192
  }) : i;
144
193
  }
@@ -160,14 +209,14 @@ const P = [
160
209
  "ds:rounded-[var(--radius-sm)]",
161
210
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
162
211
  "ds:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]"
163
- ].join(" "), J = [
212
+ ].join(" "), W = [
164
213
  "ds:inline-flex ds:items-center",
165
214
  "ds:max-inline-size-[16rem]",
166
215
  "ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap",
167
216
  "ds:break-normal",
168
217
  "ds:text-[var(--foreground)] ds:font-[var(--font-weight-semibold)]",
169
218
  "ds:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]"
170
- ].join(" "), C = x(
219
+ ].join(" "), C = y(
171
220
  ({ asChild: r = !1, isCurrent: a = !1, className: l, children: e, ...s }, t) => {
172
221
  const { t: o } = B();
173
222
  return a ? /* @__PURE__ */ n(
@@ -175,11 +224,11 @@ const P = [
175
224
  {
176
225
  "aria-current": "page",
177
226
  "aria-label": s["aria-label"] ?? o("ui.navigation.breadcrumb.current"),
178
- className: [J, l].filter(Boolean).join(" "),
227
+ className: [W, l].filter(Boolean).join(" "),
179
228
  children: e
180
229
  }
181
230
  ) : r ? /* @__PURE__ */ n(
182
- M,
231
+ q,
183
232
  {
184
233
  ref: t,
185
234
  className: [P, l].filter(Boolean).join(" "),
@@ -198,7 +247,7 @@ const P = [
198
247
  }
199
248
  );
200
249
  C.displayName = "BreadcrumbLink";
201
- const Q = q(
250
+ const X = K(
202
251
  [
203
252
  "ds:inline-flex ds:items-center ds:justify-center",
204
253
  "ds:text-[var(--muted-foreground)]",
@@ -214,10 +263,10 @@ const Q = q(
214
263
  },
215
264
  defaultVariants: { variant: "chevron" }
216
265
  }
217
- ), $ = x(
266
+ ), T = y(
218
267
  ({ className: r, variant: a, children: l, ...e }, s) => {
219
- const t = V(S), o = a ?? t.separator, i = o === "slash" ? /* @__PURE__ */ n("span", { "aria-hidden": "true", children: "/" }) : /* @__PURE__ */ n(
220
- O,
268
+ const t = V(R), o = a ?? t.separator, i = o === "slash" ? /* @__PURE__ */ n("span", { "aria-hidden": "true", children: "/" }) : /* @__PURE__ */ n(
269
+ D,
221
270
  {
222
271
  "aria-hidden": "true",
223
272
  className: "ds:size-4 ds:rtl:-scale-x-100"
@@ -229,15 +278,15 @@ const Q = q(
229
278
  ref: s,
230
279
  "aria-hidden": "true",
231
280
  role: "presentation",
232
- className: Q({ variant: o, className: r }),
281
+ className: X({ variant: o, className: r }),
233
282
  ...e,
234
283
  children: l ?? i
235
284
  }
236
285
  );
237
286
  }
238
287
  );
239
- $.displayName = "BreadcrumbSeparator";
240
- const U = [
288
+ T.displayName = "BreadcrumbSeparator";
289
+ const Y = [
241
290
  "ds:inline-flex ds:items-center ds:justify-center",
242
291
  "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
243
292
  "ds:rounded-[var(--radius-sm)]",
@@ -246,14 +295,14 @@ const U = [
246
295
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
247
296
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
248
297
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
249
- ].join(" "), W = [
298
+ ].join(" "), Z = [
250
299
  "ds:z-[var(--z-dropdown)] ds:min-w-[12rem] ds:overflow-hidden",
251
300
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)]",
252
301
  "ds:bg-[var(--background)] ds:text-[var(--foreground)]",
253
302
  "ds:shadow-[var(--shadow-lg)]",
254
303
  "ds:p-[var(--spacing-xs)]",
255
304
  "ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
256
- ].join(" "), X = [
305
+ ].join(" "), ee = [
257
306
  "ds:flex ds:items-center",
258
307
  "ds:min-h-[var(--min-target-size)]",
259
308
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
@@ -261,53 +310,51 @@ const U = [
261
310
  "ds:text-[var(--foreground)] ds:cursor-pointer ds:select-none",
262
311
  "ds:data-[highlighted]:bg-[var(--muted)] ds:data-[highlighted]:text-[var(--foreground)]",
263
312
  "ds:outline-none"
264
- ].join(" "), H = x(
265
- ({ className: r, hiddenItems: a = [], ...l }, e) => {
266
- const { t: s } = B(), t = s("ui.navigation.breadcrumb.showPath");
267
- return /* @__PURE__ */ E(j.Root, { children: [
268
- /* @__PURE__ */ n(j.Trigger, { asChild: !0, children: /* @__PURE__ */ E(
269
- "button",
270
- {
271
- ref: e,
272
- type: "button",
273
- "aria-label": t,
274
- className: [U, r].filter(Boolean).join(" "),
275
- ...l,
276
- children: [
277
- /* @__PURE__ */ n(K, { "aria-hidden": "true", className: "ds:size-4" }),
278
- /* @__PURE__ */ n("span", { className: "ds:sr-only", children: t })
279
- ]
280
- }
281
- ) }),
282
- /* @__PURE__ */ n(j.Portal, { children: /* @__PURE__ */ n(
283
- j.Content,
284
- {
285
- className: W,
286
- align: "start",
287
- sideOffset: 6,
288
- children: a.map((o, i) => {
289
- const d = Y(o);
290
- return /* @__PURE__ */ n(
291
- j.Item,
292
- {
293
- asChild: !0,
294
- className: X,
295
- children: d ?? /* @__PURE__ */ n("span", { children: o })
296
- },
297
- `hidden-${i}`
298
- );
299
- })
300
- }
301
- ) })
302
- ] });
303
- }
304
- );
305
- H.displayName = "BreadcrumbEllipsis";
306
- function Y(r) {
313
+ ].join(" "), $ = y(({ className: r, hiddenItems: a = [], ...l }, e) => {
314
+ const { t: s } = B(), t = s("ui.navigation.breadcrumb.showPath");
315
+ return /* @__PURE__ */ E(j.Root, { children: [
316
+ /* @__PURE__ */ n(j.Trigger, { asChild: !0, children: /* @__PURE__ */ E(
317
+ "button",
318
+ {
319
+ ref: e,
320
+ type: "button",
321
+ "aria-label": t,
322
+ className: [Y, r].filter(Boolean).join(" "),
323
+ ...l,
324
+ children: [
325
+ /* @__PURE__ */ n(_, { "aria-hidden": "true", className: "ds:size-4" }),
326
+ /* @__PURE__ */ n("span", { className: "ds:sr-only", children: t })
327
+ ]
328
+ }
329
+ ) }),
330
+ /* @__PURE__ */ n(j.Portal, { children: /* @__PURE__ */ n(
331
+ j.Content,
332
+ {
333
+ className: Z,
334
+ align: "start",
335
+ sideOffset: 6,
336
+ children: a.map((o, i) => {
337
+ const d = se(o);
338
+ return /* @__PURE__ */ n(
339
+ j.Item,
340
+ {
341
+ asChild: !0,
342
+ className: ee,
343
+ children: d ?? /* @__PURE__ */ n("span", { children: o })
344
+ },
345
+ `hidden-${i}`
346
+ );
347
+ })
348
+ }
349
+ ) })
350
+ ] });
351
+ });
352
+ $.displayName = "BreadcrumbEllipsis";
353
+ function se(r) {
307
354
  let a = null;
308
355
  const l = r.props.children;
309
- return g.forEach(l, (e) => {
310
- if (!a && b(e) && e.type === C) {
356
+ return b.forEach(l, (e) => {
357
+ if (!a && x(e) && e.type === C) {
311
358
  const s = e.props, t = typeof s.href == "string" ? s.href : void 0, o = t && /^\s*javascript:/i.test(t) ? void 0 : t;
312
359
  a = /* @__PURE__ */ n(
313
360
  "a",
@@ -320,52 +367,13 @@ function Y(r) {
320
367
  }
321
368
  }), a;
322
369
  }
323
- const ae = {
324
- id: "breadcrumb",
325
- capabilities: ["navigate"],
326
- state: {
327
- items: {
328
- type: "Array<{ id: string, href?: string }>",
329
- descriptionKey: "ui.agent.breadcrumb.state.items",
330
- description: "Ordered list of crumb ids + hrefs in display order. Labels are intentionally excluded — they may contain PHI.",
331
- read: (r) => r.getItems()
332
- }
333
- },
334
- actions: {
335
- navigate_to: {
336
- safety: "read",
337
- argsType: "{ id: string }",
338
- descriptionKey: "ui.agent.breadcrumb.actions.navigateTo",
339
- description: "Activate the crumb with the given id — equivalent to clicking the link.",
340
- invoke: (r, a) => {
341
- r.navigateTo(a.id);
342
- }
343
- }
344
- },
345
- domHooks: {
346
- root: {
347
- attr: "data-component",
348
- value: "breadcrumb",
349
- description: "Marks the Breadcrumb root `<nav>`."
350
- },
351
- instanceId: {
352
- attr: "data-component-id",
353
- sourceProp: "id",
354
- description: "Sourced from the id prop."
355
- },
356
- item: {
357
- attr: "data-crumb-id",
358
- description: "Stable opaque id of a crumb. Labels are NEVER carried in data-* — they may contain PHI."
359
- }
360
- }
361
- };
362
370
  export {
363
- _ as B,
364
- H as a,
371
+ F as B,
372
+ $ as a,
365
373
  N as b,
366
374
  C as c,
367
- T as d,
368
- $ as e,
369
- ae as f
375
+ S as d,
376
+ T as e,
377
+ G as f
370
378
  };
371
- //# sourceMappingURL=breadcrumb.agent-GM2hAKFX.js.map
379
+ //# sourceMappingURL=breadcrumb-D1snXjPb.js.map