@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,37 +1,67 @@
1
- import { jsx as a, jsxs as k } from "react/jsx-runtime";
2
- import { forwardRef as V, useContext as A, useRef as I, useState as B, useEffect as J, useMemo as M, Children as Q, isValidElement as U, useCallback as W, createContext as Y } from "react";
3
- import * as R from "@radix-ui/react-tabs";
4
- import * as N from "@radix-ui/react-dropdown-menu";
5
- import { a as y, c as q } from "./index-D2ZczOXr.js";
1
+ import { jsx as a, jsxs as C } from "react/jsx-runtime";
2
+ import { forwardRef as S, useContext as P, useRef as O, useState as H, useEffect as M, useMemo as _, Children as Q, isValidElement as U, useCallback as W, createContext as Y } from "react";
3
+ import * as V from "@radix-ui/react-tabs";
4
+ import * as k from "@radix-ui/react-dropdown-menu";
5
+ import { a as N, c as q } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as Z } from "react-i18next";
7
7
  import { u as K } from "./use-direction-D6rvvG9G.js";
8
8
  import { c as D } from "./compose-refs-C0k0tdqF.js";
9
- import { S as ee } from "./select-DY1Cb2Tg.js";
9
+ import { S as ee } from "./select-y6bXV1f1.js";
10
10
  import { X as te } from "./x-CCcI3eJp.js";
11
- import { C as se } from "./chevron-down-BX_NP2Yh.js";
12
- const E = q(
13
- "ds:relative ds:flex",
14
- {
15
- variants: {
16
- variant: {
17
- // Shadcn-style segmented control: light container, white active card
18
- default: "ds:flex-1 ds:min-w-0 ds:items-center ds:bg-muted/10 ds:rounded-[var(--radius-md)] ds:p-1",
19
- // Classic underline tabs: bottom border with colored active indicator
20
- underlined: "ds:flex-1 ds:min-w-0 ds:items-end ds:[border-block-end:1px_solid_var(--border)]",
21
- // Segmented control: warm secondary container, content-width
22
- pills: "ds:items-center ds:bg-secondary ds:rounded-[var(--radius-md)] ds:p-1"
23
- },
24
- orientation: {
25
- horizontal: "ds:flex-row ds:overflow-hidden",
26
- vertical: "ds:flex-col"
11
+ import { u as se } from "./registry-C9nwlNyL.js";
12
+ import { C as ae } from "./chevron-down-BX_NP2Yh.js";
13
+ const re = {
14
+ id: "tabs",
15
+ capabilities: ["select_single", "navigate"],
16
+ state: {
17
+ activeTab: {
18
+ type: "string | null",
19
+ description: "Value of the currently-active tab.",
20
+ read: (o) => o.getActiveTab()
21
+ }
22
+ },
23
+ actions: {
24
+ select_tab: {
25
+ safety: "read",
26
+ argsType: "{ value: string }",
27
+ description: "Activate the tab with the given value.",
28
+ invoke: (o, s) => {
29
+ o.selectTab(s.value);
27
30
  }
31
+ }
32
+ },
33
+ domHooks: {
34
+ root: { attr: "data-component", value: "tabs" },
35
+ instanceId: {
36
+ attr: "data-component-id",
37
+ sourceProp: "id",
38
+ description: "Sourced from the id prop on Tabs.Root."
28
39
  },
29
- defaultVariants: {
30
- variant: "default",
31
- orientation: "horizontal"
40
+ item: {
41
+ attr: "data-tab-id",
42
+ description: "Each Tab.Trigger emits its value as data-tab-id."
43
+ }
44
+ }
45
+ }, B = q("ds:relative ds:flex", {
46
+ variants: {
47
+ variant: {
48
+ // Shadcn-style segmented control: light container, white active card
49
+ default: "ds:flex-1 ds:min-w-0 ds:items-center ds:bg-muted/10 ds:rounded-[var(--radius-md)] ds:p-1",
50
+ // Classic underline tabs: bottom border with colored active indicator
51
+ underlined: "ds:flex-1 ds:min-w-0 ds:items-end ds:[border-block-end:1px_solid_var(--border)]",
52
+ // Segmented control: warm secondary container, content-width
53
+ pills: "ds:items-center ds:bg-secondary ds:rounded-[var(--radius-md)] ds:p-1"
54
+ },
55
+ orientation: {
56
+ horizontal: "ds:flex-row ds:overflow-hidden",
57
+ vertical: "ds:flex-col"
32
58
  }
59
+ },
60
+ defaultVariants: {
61
+ variant: "default",
62
+ orientation: "horizontal"
33
63
  }
34
- ), H = q(
64
+ }), X = q(
35
65
  [
36
66
  "ds:relative ds:inline-flex ds:items-center ds:justify-center ds:whitespace-nowrap ds:border-0",
37
67
  "ds:gap-2 ds:font-medium ds:transition-colors",
@@ -79,7 +109,7 @@ const E = q(
79
109
  orientation: "horizontal"
80
110
  }
81
111
  }
82
- ), j = Y({
112
+ ), A = Y({
83
113
  variant: "default",
84
114
  size: "md",
85
115
  orientation: "horizontal",
@@ -87,41 +117,53 @@ const E = q(
87
117
  value: "",
88
118
  setValue: () => {
89
119
  }
90
- }), O = V(
120
+ }), L = S(
91
121
  ({
92
- variant: r = "default",
122
+ variant: o = "default",
93
123
  size: s = "md",
94
124
  orientation: d = "horizontal",
95
125
  overflow: n = "dropdown",
96
126
  className: i,
97
127
  children: u,
98
128
  value: t,
99
- defaultValue: m,
129
+ defaultValue: p,
100
130
  onValueChange: l,
101
- id: p,
131
+ id: f,
102
132
  ...g
103
133
  }, w) => {
104
- const b = I(null), f = D(w, b), T = K(b), v = t !== void 0, [h, z] = B(m ?? ""), o = v ? t ?? "" : h, e = W(
105
- (c) => {
106
- v || z(c), l == null || l(c);
134
+ const b = O(null), v = D(w, b), z = K(b), m = t !== void 0, [h, y] = H(
135
+ p ?? ""
136
+ ), r = m ? t ?? "" : h, e = W(
137
+ (T) => {
138
+ m || y(T), l == null || l(T);
107
139
  },
108
- [v, l]
109
- ), x = M(
110
- () => ({ variant: r, size: s, orientation: d, overflow: n, value: o, setValue: e }),
111
- [r, s, d, n, o, e]
140
+ [m, l]
141
+ ), x = _(
142
+ () => ({ variant: o, size: s, orientation: d, overflow: n, value: r, setValue: e }),
143
+ [o, s, d, n, r, e]
144
+ ), c = O(r);
145
+ M(() => {
146
+ c.current = r;
147
+ }, [r]);
148
+ const R = _(
149
+ () => ({
150
+ getActiveTab: () => c.current || null,
151
+ selectTab: (T) => e(T)
152
+ }),
153
+ [e]
112
154
  );
113
- return /* @__PURE__ */ a(j.Provider, { value: x, children: /* @__PURE__ */ a(
114
- R.Root,
155
+ return se(re, R, f), /* @__PURE__ */ a(A.Provider, { value: x, children: /* @__PURE__ */ a(
156
+ V.Root,
115
157
  {
116
- ref: f,
158
+ ref: v,
117
159
  orientation: d,
118
- dir: T,
119
- value: o,
160
+ dir: z,
161
+ value: r,
120
162
  onValueChange: e,
121
- id: p,
163
+ id: f,
122
164
  "data-component": "tabs",
123
- "data-component-id": p,
124
- className: y(
165
+ "data-component-id": f,
166
+ className: N(
125
167
  "ds:flex",
126
168
  d === "vertical" ? "ds:flex-row ds:gap-[var(--spacing-md)]" : "ds:flex-col",
127
169
  i
@@ -132,41 +174,47 @@ const E = q(
132
174
  ) });
133
175
  }
134
176
  );
135
- O.displayName = "Tabs";
136
- const X = V(
137
- ({ className: r, children: s, "aria-label": d, ...n }, i) => {
138
- const { variant: u, size: t, orientation: m, overflow: l, value: p, setValue: g } = A(j), { t: w } = Z("ui"), b = I(null), [f, T] = B([]), v = m === "horizontal", h = l === "dropdown" && v;
139
- J(() => {
177
+ L.displayName = "Tabs";
178
+ const $ = S(
179
+ ({ className: o, children: s, "aria-label": d, ...n }, i) => {
180
+ const { variant: u, size: t, orientation: p, overflow: l, value: f, setValue: g } = P(A), { t: w } = Z("ui"), b = O(null), [v, z] = H([]), m = p === "horizontal", h = l === "dropdown" && m;
181
+ M(() => {
140
182
  if (!h) {
141
- T([]);
183
+ z([]);
142
184
  return;
143
185
  }
144
186
  const e = b.current;
145
187
  if (!e) return;
146
188
  const x = () => {
147
- const S = e.getBoundingClientRect().right, _ = [];
148
- e.querySelectorAll('[role="tab"]').forEach((C) => {
149
- var L;
150
- if (C.getBoundingClientRect().right > S + 2) {
151
- const P = C.getAttribute("data-value") ?? C.dataset.value ?? "", G = ((L = C.textContent) == null ? void 0 : L.trim()) ?? P;
152
- _.push({ value: P, label: G });
189
+ const R = e.getBoundingClientRect().right, T = [];
190
+ e.querySelectorAll('[role="tab"]').forEach(
191
+ (j) => {
192
+ var E;
193
+ if (j.getBoundingClientRect().right > R + 2) {
194
+ const I = j.getAttribute("data-value") ?? j.dataset.value ?? "", J = ((E = j.textContent) == null ? void 0 : E.trim()) ?? I;
195
+ T.push({ value: I, label: J });
196
+ }
153
197
  }
154
- }), T(_);
198
+ ), z(T);
155
199
  }, c = new ResizeObserver(x);
156
200
  return c.observe(e), x(), () => c.disconnect();
157
201
  }, [h, s]);
158
- const z = (e) => {
202
+ const y = (e) => {
159
203
  b.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
160
- }, o = M(() => l !== "select" ? [] : Q.toArray(s).filter((e) => U(e)).filter((e) => typeof e.props.value == "string" && e.props.value.length > 0).map((e) => {
161
- const x = e.props.value, c = e.props.children, S = typeof c == "string" ? c : typeof c == "number" ? String(c) : x;
162
- return { value: x, label: S };
204
+ }, r = _(() => l !== "select" ? [] : Q.toArray(s).filter(
205
+ (e) => U(e)
206
+ ).filter(
207
+ (e) => typeof e.props.value == "string" && e.props.value.length > 0
208
+ ).map((e) => {
209
+ const x = e.props.value, c = e.props.children, R = typeof c == "string" ? c : typeof c == "number" ? String(c) : x;
210
+ return { value: x, label: R };
163
211
  }), [s, l]);
164
- return l === "select" && v ? /* @__PURE__ */ k("div", { className: "ds:@container/tabs ds:relative ds:w-full", children: [
212
+ return l === "select" && m ? /* @__PURE__ */ C("div", { className: "ds:@container/tabs ds:relative ds:w-full", children: [
165
213
  /* @__PURE__ */ a("div", { className: "ds:block ds:@md/tabs:hidden", children: /* @__PURE__ */ a(
166
214
  ee,
167
215
  {
168
- options: o,
169
- value: p,
216
+ options: r,
217
+ value: f,
170
218
  onValueChange: (e) => {
171
219
  typeof e == "string" && e.length > 0 && g(e);
172
220
  },
@@ -175,63 +223,70 @@ const X = V(
175
223
  }
176
224
  ) }),
177
225
  /* @__PURE__ */ a("div", { className: "ds:hidden ds:@md/tabs:flex ds:relative ds:items-center", children: /* @__PURE__ */ a(
178
- R.List,
226
+ V.List,
179
227
  {
180
- ref: z,
228
+ ref: y,
181
229
  "aria-label": d,
182
- className: E({ variant: u, orientation: m, className: r }),
230
+ className: B({ variant: u, orientation: p, className: o }),
183
231
  ...n,
184
232
  children: s
185
233
  }
186
234
  ) })
187
- ] }) : /* @__PURE__ */ k("div", { className: "ds:relative ds:flex ds:items-center", children: [
235
+ ] }) : /* @__PURE__ */ C("div", { className: "ds:relative ds:flex ds:items-center", children: [
188
236
  /* @__PURE__ */ a(
189
- R.List,
237
+ V.List,
190
238
  {
191
- ref: z,
239
+ ref: y,
192
240
  "aria-label": d,
193
- className: E({ variant: u, orientation: m, className: r }),
241
+ className: B({ variant: u, orientation: p, className: o }),
194
242
  ...n,
195
243
  children: s
196
244
  }
197
245
  ),
198
- h && f.length > 0 && /* @__PURE__ */ a(ae, { tabs: f, label: w("tabs.moreTabs"), size: t })
246
+ h && v.length > 0 && /* @__PURE__ */ a(
247
+ oe,
248
+ {
249
+ tabs: v,
250
+ label: w("tabs.moreTabs"),
251
+ size: t
252
+ }
253
+ )
199
254
  ] });
200
255
  }
201
256
  );
202
- X.displayName = "TabsList";
203
- function ae({ tabs: r, label: s, size: d }) {
204
- const { variant: n } = A(j);
205
- return /* @__PURE__ */ k(N.Root, { children: [
206
- /* @__PURE__ */ k(
207
- N.Trigger,
257
+ $.displayName = "TabsList";
258
+ function oe({ tabs: o, label: s, size: d }) {
259
+ const { variant: n } = P(A);
260
+ return /* @__PURE__ */ C(k.Root, { children: [
261
+ /* @__PURE__ */ C(
262
+ k.Trigger,
208
263
  {
209
- className: y(
210
- H({ variant: n, size: d, orientation: "horizontal" }),
264
+ className: N(
265
+ X({ variant: n, size: d, orientation: "horizontal" }),
211
266
  "ds:shrink-0 ds:ms-1"
212
267
  ),
213
268
  "aria-label": s,
214
269
  children: [
215
270
  s,
216
- /* @__PURE__ */ a(se, { "aria-hidden": "true", className: "ds:size-4" })
271
+ /* @__PURE__ */ a(ae, { "aria-hidden": "true", className: "ds:size-4" })
217
272
  ]
218
273
  }
219
274
  ),
220
- /* @__PURE__ */ a(N.Portal, { children: /* @__PURE__ */ a(
221
- N.Content,
275
+ /* @__PURE__ */ a(k.Portal, { children: /* @__PURE__ */ a(
276
+ k.Content,
222
277
  {
223
278
  sideOffset: 4,
224
- className: y(
279
+ className: N(
225
280
  "ds:z-50 ds:min-w-40 ds:overflow-hidden ds:rounded-[var(--radius-md)]",
226
281
  "ds:border ds:border-border ds:bg-popover ds:p-1 ds:shadow-md",
227
282
  "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
228
283
  "ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
229
284
  "ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95"
230
285
  ),
231
- children: r.map(({ value: i, label: u }) => /* @__PURE__ */ a(
232
- N.Item,
286
+ children: o.map(({ value: i, label: u }) => /* @__PURE__ */ a(
287
+ k.Item,
233
288
  {
234
- className: y(
289
+ className: N(
235
290
  "ds:relative ds:flex ds:cursor-pointer ds:select-none ds:items-center",
236
291
  "ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
237
292
  "ds:text-[var(--font-size-sm)] ds:text-foreground ds:outline-none",
@@ -252,32 +307,37 @@ function ae({ tabs: r, label: s, size: d }) {
252
307
  ) })
253
308
  ] });
254
309
  }
255
- const $ = V(
310
+ const F = S(
256
311
  ({
257
- variant: r,
312
+ variant: o,
258
313
  size: s,
259
314
  orientation: d,
260
315
  icon: n,
261
316
  badge: i,
262
317
  dismissible: u = !1,
263
318
  onDismiss: t,
264
- className: m,
319
+ className: p,
265
320
  children: l,
266
- value: p,
321
+ value: f,
267
322
  onKeyDown: g,
268
323
  ...w
269
324
  }, b) => {
270
- const f = A(j), T = r ?? f.variant, v = s ?? f.size, h = d ?? f.orientation, z = (o) => {
271
- u && (o.key === "Delete" || o.key === "Backspace") && (o.preventDefault(), t == null || t()), g == null || g(o);
325
+ const v = P(A), z = o ?? v.variant, m = s ?? v.size, h = d ?? v.orientation, y = (r) => {
326
+ u && (r.key === "Delete" || r.key === "Backspace") && (r.preventDefault(), t == null || t()), g == null || g(r);
272
327
  };
273
- return /* @__PURE__ */ k(
274
- R.Trigger,
328
+ return /* @__PURE__ */ C(
329
+ V.Trigger,
275
330
  {
276
331
  ref: b,
277
- value: p,
278
- "data-value": p,
279
- className: H({ variant: T, size: v, orientation: h, className: m }),
280
- onKeyDown: z,
332
+ value: f,
333
+ "data-value": f,
334
+ className: X({
335
+ variant: z,
336
+ size: m,
337
+ orientation: h,
338
+ className: p
339
+ }),
340
+ onKeyDown: y,
281
341
  ...w,
282
342
  children: [
283
343
  n && /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "ds:shrink-0 ds:size-4", children: n }),
@@ -289,13 +349,13 @@ const $ = V(
289
349
  "span",
290
350
  {
291
351
  "aria-hidden": "true",
292
- className: y(
352
+ className: N(
293
353
  "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
294
354
  "ds:size-6 ds:rounded-[var(--radius-sm)]",
295
355
  "ds:hover:bg-muted-foreground/20"
296
356
  ),
297
- onPointerDown: (o) => {
298
- o.stopPropagation(), o.preventDefault(), t == null || t();
357
+ onPointerDown: (r) => {
358
+ r.stopPropagation(), r.preventDefault(), t == null || t();
299
359
  },
300
360
  children: /* @__PURE__ */ a(te, { className: "ds:size-3.5" })
301
361
  }
@@ -305,67 +365,35 @@ const $ = V(
305
365
  );
306
366
  }
307
367
  );
308
- $.displayName = "TabsTrigger";
309
- const F = V(
310
- ({ className: r, children: s, ...d }, n) => /* @__PURE__ */ a(
311
- R.Content,
368
+ F.displayName = "TabsTrigger";
369
+ const G = S(
370
+ ({ className: o, children: s, ...d }, n) => /* @__PURE__ */ a(
371
+ V.Content,
312
372
  {
313
373
  ref: n,
314
- className: y(
374
+ className: N(
315
375
  "ds:mt-[var(--spacing-sm)] ds:outline-none",
316
376
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
317
377
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
318
- r
378
+ o
319
379
  ),
320
380
  ...d,
321
381
  children: s
322
382
  }
323
383
  )
324
384
  );
325
- F.displayName = "TabsContent";
326
- const me = Object.assign(O, {
327
- Root: O,
328
- List: X,
329
- Trigger: $,
330
- Content: F
331
- }), pe = {
332
- id: "tabs",
333
- capabilities: ["select_single", "navigate"],
334
- state: {
335
- activeTab: {
336
- type: "string | null",
337
- description: "Value of the currently-active tab.",
338
- read: (r) => r.getActiveTab()
339
- }
340
- },
341
- actions: {
342
- select_tab: {
343
- safety: "read",
344
- argsType: "{ value: string }",
345
- description: "Activate the tab with the given value.",
346
- invoke: (r, s) => {
347
- r.selectTab(s.value);
348
- }
349
- }
350
- },
351
- domHooks: {
352
- root: { attr: "data-component", value: "tabs" },
353
- instanceId: {
354
- attr: "data-component-id",
355
- sourceProp: "id",
356
- description: "Sourced from the id prop on Tabs.Root."
357
- },
358
- item: {
359
- attr: "data-tab-id",
360
- description: "Each Tab.Trigger emits its value as data-tab-id."
361
- }
362
- }
363
- };
385
+ G.displayName = "TabsContent";
386
+ const be = Object.assign(L, {
387
+ Root: L,
388
+ List: $,
389
+ Trigger: F,
390
+ Content: G
391
+ });
364
392
  export {
365
- me as T,
366
- F as a,
367
- X as b,
368
- $ as c,
369
- pe as t
393
+ be as T,
394
+ G as a,
395
+ $ as b,
396
+ F as c,
397
+ re as t
370
398
  };
371
- //# sourceMappingURL=tabs.agent-h7NvsTR1.js.map
399
+ //# sourceMappingURL=tabs-DaFA3Muo.js.map
@@ -40,19 +40,67 @@ const V = B(
40
40
  },
41
41
  compoundVariants: [
42
42
  // Solid fills — foreground tokens adapt per theme
43
- { fill: "solid", variant: "neutral", className: "ds:bg-muted/20 ds:text-muted-foreground" },
44
- { fill: "solid", variant: "info", className: "ds:bg-info ds:text-[color:var(--info-solid-foreground)]" },
45
- { fill: "solid", variant: "success", className: "ds:bg-success ds:text-[color:var(--success-solid-foreground)]" },
46
- { fill: "solid", variant: "warning", className: "ds:bg-warning ds:text-foreground" },
47
- { fill: "solid", variant: "error", className: "ds:bg-destructive ds:text-destructive-foreground" },
48
- { fill: "solid", variant: "brand", className: "ds:bg-primary ds:text-primary-foreground" },
43
+ {
44
+ fill: "solid",
45
+ variant: "neutral",
46
+ className: "ds:bg-muted/20 ds:text-muted-foreground"
47
+ },
48
+ {
49
+ fill: "solid",
50
+ variant: "info",
51
+ className: "ds:bg-info ds:text-[color:var(--info-solid-foreground)]"
52
+ },
53
+ {
54
+ fill: "solid",
55
+ variant: "success",
56
+ className: "ds:bg-success ds:text-[color:var(--success-solid-foreground)]"
57
+ },
58
+ {
59
+ fill: "solid",
60
+ variant: "warning",
61
+ className: "ds:bg-warning ds:text-foreground"
62
+ },
63
+ {
64
+ fill: "solid",
65
+ variant: "error",
66
+ className: "ds:bg-destructive ds:text-destructive-foreground"
67
+ },
68
+ {
69
+ fill: "solid",
70
+ variant: "brand",
71
+ className: "ds:bg-primary ds:text-primary-foreground"
72
+ },
49
73
  // Outline fills
50
- { fill: "outline", variant: "neutral", className: "ds:border-muted ds:text-muted-foreground" },
51
- { fill: "outline", variant: "info", className: "ds:border-info ds:text-[var(--info-foreground)]" },
52
- { fill: "outline", variant: "success", className: "ds:border-success ds:text-[var(--success-foreground)]" },
53
- { fill: "outline", variant: "warning", className: "ds:border-warning ds:text-[var(--warning-foreground)]" },
54
- { fill: "outline", variant: "error", className: "ds:border-destructive ds:text-[var(--error-foreground)]" },
55
- { fill: "outline", variant: "brand", className: "ds:border-primary ds:text-primary" }
74
+ {
75
+ fill: "outline",
76
+ variant: "neutral",
77
+ className: "ds:border-muted ds:text-muted-foreground"
78
+ },
79
+ {
80
+ fill: "outline",
81
+ variant: "info",
82
+ className: "ds:border-info ds:text-[var(--info-foreground)]"
83
+ },
84
+ {
85
+ fill: "outline",
86
+ variant: "success",
87
+ className: "ds:border-success ds:text-[var(--success-foreground)]"
88
+ },
89
+ {
90
+ fill: "outline",
91
+ variant: "warning",
92
+ className: "ds:border-warning ds:text-[var(--warning-foreground)]"
93
+ },
94
+ {
95
+ fill: "outline",
96
+ variant: "error",
97
+ className: "ds:border-destructive ds:text-[var(--error-foreground)]"
98
+ },
99
+ {
100
+ fill: "outline",
101
+ variant: "brand",
102
+ className: "ds:border-primary ds:text-primary"
103
+ }
56
104
  ],
57
105
  defaultVariants: {
58
106
  variant: "neutral",
@@ -115,7 +163,14 @@ const V = B(
115
163
  N && !e ? "ds:hover:brightness-90 ds:cursor-pointer" : "",
116
164
  h ?? ""
117
165
  ].filter(Boolean).join(" ")
118
- }), l = m ? /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "ds:shrink-0 ds:inline-flex ds:items-center ds:[&>svg]:size-3.5", children: m }) : null, c = /* @__PURE__ */ r(
166
+ }), l = m ? /* @__PURE__ */ r(
167
+ "span",
168
+ {
169
+ "aria-hidden": "true",
170
+ className: "ds:shrink-0 ds:inline-flex ds:items-center ds:[&>svg]:size-3.5",
171
+ children: m
172
+ }
173
+ ) : null, c = /* @__PURE__ */ r(
119
174
  "span",
120
175
  {
121
176
  ref: y,
@@ -154,24 +209,27 @@ const V = B(
154
209
  return u ? /* @__PURE__ */ r(v, { label: n, children: s }) : s;
155
210
  }
156
211
  if (d) {
157
- const s = /* @__PURE__ */ f(
158
- "span",
159
- {
160
- ref: i,
161
- role: "group",
162
- "aria-label": n,
163
- tabIndex: e ? -1 : 0,
164
- "aria-disabled": e || void 0,
165
- onKeyDown: W,
166
- "data-component": "tag",
167
- className: T,
168
- children: [
169
- A,
170
- l,
171
- c,
172
- X
173
- ]
174
- }
212
+ const s = (
213
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- removable tag is focusable as a group; Backspace/Delete keyboard removal handled via onKeyDown
214
+ /* @__PURE__ */ f(
215
+ "span",
216
+ {
217
+ ref: i,
218
+ role: "group",
219
+ "aria-label": n,
220
+ tabIndex: e ? -1 : 0,
221
+ "aria-disabled": e || void 0,
222
+ onKeyDown: W,
223
+ "data-component": "tag",
224
+ className: T,
225
+ children: [
226
+ A,
227
+ l,
228
+ c,
229
+ X
230
+ ]
231
+ }
232
+ )
175
233
  );
176
234
  return u ? /* @__PURE__ */ r(v, { label: n, children: s }) : s;
177
235
  }
@@ -194,4 +252,4 @@ M.displayName = "Tag";
194
252
  export {
195
253
  M as T
196
254
  };
197
- //# sourceMappingURL=tag-BqidXKo3.js.map
255
+ //# sourceMappingURL=tag-DuLMjRbF.js.map
@@ -44,7 +44,10 @@ const k = g(
44
44
  function S(s) {
45
45
  return /^(https?:\/\/(?!\/)|\/(?!\/)|#)/.test(s);
46
46
  }
47
- function T({ status: s, priority: a }) {
47
+ function T({
48
+ status: s,
49
+ priority: a
50
+ }) {
48
51
  const r = a === "high" ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]";
49
52
  return s === "done" ? /* @__PURE__ */ e(y, { "aria-hidden": "true", className: `ds:size-4 ${r}` }) : a === "high" ? /* @__PURE__ */ e(C, { "aria-hidden": "true", className: `ds:size-4 ${r}` }) : /* @__PURE__ */ e(N, { "aria-hidden": "true", className: `ds:size-4 ${r}` });
50
53
  }
@@ -111,4 +114,4 @@ export {
111
114
  w as T,
112
115
  S as i
113
116
  };
114
- //# sourceMappingURL=task-card-CY5ztNkU.js.map
117
+ //# sourceMappingURL=task-card-Dw_ZJDL8.js.map