@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
@@ -1,17 +1,17 @@
1
- import { jsxs as b, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as m, useContext as P, useRef as M, useEffect as O, useMemo as _, useLayoutEffect as ne, createContext as G } from "react";
3
- import * as o from "@radix-ui/react-dropdown-menu";
4
- import { c as D } from "./index-D2ZczOXr.js";
1
+ import { jsxs as N, jsx as s } from "react/jsx-runtime";
2
+ import { forwardRef as b, useId as re, useContext as G, useRef as S, useEffect as K, useMemo as O, useLayoutEffect as ne, createContext as V } from "react";
3
+ import * as d from "@radix-ui/react-dropdown-menu";
4
+ import { c as j } from "./index-D2ZczOXr.js";
5
5
  import { S as oe } from "./separator-Bdc9bqoJ.js";
6
- import { K } from "./kbd-Bx7eQv9f.js";
7
- import { b as A } from "./menu-row-BAr8bx1I.js";
8
- import { P as E } from "./popup-region-qz_5_A0V.js";
9
- import { u as ae } from "./use-controllable-state-BiY4xTzM.js";
10
- import { u as de } from "./registry-DvAUVLHh.js";
11
- import { C as ie } from "./chevron-right-I9AeSxH2.js";
12
- import { C as ce } from "./check-DrFSN__t.js";
13
- import { a as le } from "./use-direction-Dp8h70PP.js";
14
- const ue = {
6
+ import { K as A } from "./kbd-Bx7eQv9f.js";
7
+ import { b as E } from "./menu-row-BAr8bx1I.js";
8
+ import { P as L } from "./popup-region-qz_5_A0V.js";
9
+ import { u as de } from "./use-controllable-state-BiY4xTzM.js";
10
+ import { u as ie } from "./registry-DvAUVLHh.js";
11
+ import { C as ce } from "./chevron-right-I9AeSxH2.js";
12
+ import { C as le } from "./check-DrFSN__t.js";
13
+ import { a as ue } from "./use-direction-Dp8h70PP.js";
14
+ const pe = {
15
15
  id: "dropdown-menu",
16
16
  capabilities: ["open", "close", "set_value"],
17
17
  state: {
@@ -122,7 +122,7 @@ const ue = {
122
122
  description: "On a ChoiceSub or SwitchItem row given a name: the setting that set_value / set_checked address."
123
123
  }
124
124
  }
125
- }, q = D(
125
+ }, $ = j(
126
126
  [
127
127
  "ds:z-[var(--z-dropdown)]",
128
128
  // Roomier panel: wider floor, larger radius, deeper float and a
@@ -152,17 +152,20 @@ const ue = {
152
152
  "ds:motion-reduce:animate-none",
153
153
  "ds:forced-colors:border-[CanvasText]"
154
154
  ].join(" ")
155
- ), R = D(
155
+ ), M = j(
156
156
  [
157
157
  "ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
158
158
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
159
159
  "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
160
160
  "ds:rounded-[var(--radius-md)]",
161
161
  "ds:min-h-[var(--min-target-size)]",
162
- "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--foreground)]",
162
+ // The ink comes from the variants below, one colour class per state:
163
+ // two text-colour utilities on one element resolve by stylesheet order,
164
+ // not by class order, and --foreground would win over --destructive.
165
+ "ds:text-[length:var(--font-size-sm)]",
163
166
  "ds:cursor-pointer ds:select-none ds:outline-none",
164
167
  // Radix highlights on hover and on keyboard focus alike.
165
- A.highlighted,
168
+ E.highlighted,
166
169
  "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
167
170
  "ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
168
171
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
@@ -170,8 +173,34 @@ const ue = {
170
173
  // Disabled
171
174
  "ds:data-[disabled]:opacity-50 ds:data-[disabled]:cursor-not-allowed",
172
175
  "ds:data-[disabled]:pointer-events-none"
173
- ].join(" ")
174
- ), pe = D(
176
+ ].join(" "),
177
+ {
178
+ variants: {
179
+ /* Item only. A lit row repoints --destructive to the accent ink
180
+ (MENU_ROW_HIGHLIGHT), so the label keeps its contrast there. */
181
+ variant: { default: "", destructive: "" },
182
+ /* An Item that is disabled with a reason: it keeps focus, so it is
183
+ muted rather than faded, and the reason stays readable. */
184
+ unavailable: {
185
+ true: "ds:text-[color:var(--muted-foreground)] ds:cursor-not-allowed",
186
+ false: ""
187
+ }
188
+ },
189
+ compoundVariants: [
190
+ {
191
+ variant: "default",
192
+ unavailable: !1,
193
+ className: "ds:text-[color:var(--foreground)]"
194
+ },
195
+ {
196
+ variant: "destructive",
197
+ unavailable: !1,
198
+ className: "ds:text-[color:var(--destructive)]"
199
+ }
200
+ ],
201
+ defaultVariants: { variant: "default", unavailable: !1 }
202
+ }
203
+ ), me = j(
175
204
  [
176
205
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
177
206
  "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-2xs)]",
@@ -183,189 +212,232 @@ const ue = {
183
212
  "ds:text-[color:var(--muted-foreground)]",
184
213
  "ds:select-none"
185
214
  ].join(" ")
186
- ), L = "ds:inline-flex ds:items-center ds:justify-center ds:size-4 ds:shrink-0", V = G(
215
+ ), q = "ds:inline-flex ds:items-center ds:justify-center ds:size-4 ds:shrink-0", F = V(
187
216
  void 0
188
- ), me = () => new Promise((e) => {
217
+ ), he = () => new Promise((e) => {
189
218
  typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => e()) : setTimeout(e, 16);
190
- }), $ = G(void 0), H = ({
219
+ }), H = V(void 0), B = ({
191
220
  dir: e,
192
221
  id: t,
193
- open: r,
194
- defaultOpen: n,
195
- onOpenChange: a,
196
- ...c
222
+ open: a,
223
+ defaultOpen: r,
224
+ onOpenChange: l,
225
+ ...u
197
226
  }) => {
198
- const h = le(), [p, k] = ae({
199
- value: r,
200
- defaultValue: n ?? !1,
201
- onChange: a
202
- }), l = p ?? !1, d = M(l);
203
- O(() => {
204
- d.current = l;
205
- }, [l]);
206
- const v = M(/* @__PURE__ */ new Map()), S = M(0), te = _(
207
- () => (f, N) => (v.current.set(f, N), () => {
208
- v.current.get(f) === N && v.current.delete(f);
227
+ const g = ue(), [f, w] = de({
228
+ value: a,
229
+ defaultValue: r ?? !1,
230
+ onChange: l
231
+ }), c = f ?? !1, o = S(c);
232
+ K(() => {
233
+ o.current = c;
234
+ }, [c]);
235
+ const m = S(/* @__PURE__ */ new Map()), C = S(0), I = O(
236
+ () => (h, x) => (m.current.set(h, x), () => {
237
+ m.current.get(h) === x && m.current.delete(h);
209
238
  }),
210
239
  []
211
- ), re = _(() => {
212
- const f = (i) => {
213
- d.current = i, k(i);
214
- }, N = async (i, u, g) => {
215
- const x = !d.current;
216
- x && f(!0);
217
- const C = S.current;
240
+ ), T = O(() => {
241
+ const h = (i) => {
242
+ o.current = i, w(i);
243
+ }, x = async (i, n, p) => {
244
+ const y = !o.current;
245
+ y && h(!0);
246
+ const v = C.current;
218
247
  try {
219
- let w = v.current.get(i);
220
- for (let y = 0; !w && y < 30; y += 1)
221
- await me(), w = v.current.get(i);
222
- if (!w || w.kind !== u)
223
- throw new Error(`No ${u} setting named "${i}" in this menu`);
224
- g(w);
248
+ let k = m.current.get(i);
249
+ for (let R = 0; !k && R < 30; R += 1)
250
+ await he(), k = m.current.get(i);
251
+ if (!k || k.kind !== n)
252
+ throw new Error(`No ${n} setting named "${i}" in this menu`);
253
+ p(k);
225
254
  } finally {
226
- x && S.current === C && f(!1);
255
+ y && C.current === v && h(!1);
227
256
  }
228
257
  };
229
258
  return {
230
- getIsOpen: () => d.current,
259
+ getIsOpen: () => o.current,
231
260
  open: () => {
232
- S.current += 1, f(!0);
261
+ C.current += 1, h(!0);
233
262
  },
234
263
  close: () => {
235
- S.current += 1, f(!1);
264
+ C.current += 1, h(!1);
236
265
  },
237
- getSettings: () => [...v.current].map(([i, u]) => {
238
- if (u.kind === "choice") {
239
- const { value: C, options: w, disabled: y } = u.read();
266
+ getSettings: () => [...m.current].map(([i, n]) => {
267
+ if (n.kind === "choice") {
268
+ const { value: v, options: k, disabled: R } = n.read();
240
269
  return {
241
270
  setting: i,
242
271
  kind: "choice",
243
- value: C,
244
- options: w.map((T) => T.value),
245
- disabled: y
272
+ value: v,
273
+ options: k.map((D) => D.value),
274
+ disabled: R
246
275
  };
247
276
  }
248
- const { checked: g, disabled: x } = u.read();
249
- return { setting: i, kind: "switch", checked: g, disabled: x };
277
+ const { checked: p, disabled: y } = n.read();
278
+ return { setting: i, kind: "switch", checked: p, disabled: y };
250
279
  }),
251
- setValue: (i, u) => N(i, "choice", (g) => {
252
- const { options: x, disabled: C, closeOnSelect: w } = g.read(), y = x.find((T) => T.value === u);
253
- if (C || !y || y.disabled)
280
+ setValue: (i, n) => x(i, "choice", (p) => {
281
+ const { options: y, disabled: v, closeOnSelect: k } = p.read(), R = y.find((D) => D.value === n);
282
+ if (v || !R || R.disabled)
254
283
  throw new Error(
255
- `"${u}" is not an option that "${i}" can take now`
284
+ `"${n}" is not an option that "${i}" can take now`
256
285
  );
257
- g.pick(u), w && f(!1);
286
+ p.pick(n), k && h(!1);
258
287
  }),
259
- setChecked: (i, u) => N(i, "switch", (g) => {
260
- if (g.read().disabled)
288
+ setChecked: (i, n) => x(i, "switch", (p) => {
289
+ if (p.read().disabled)
261
290
  throw new Error(`"${i}" is disabled`);
262
- g.pick(u);
291
+ p.pick(n);
263
292
  })
264
293
  };
265
- }, [k]);
266
- return de(ue, re, t), /* @__PURE__ */ s($.Provider, { value: t, children: /* @__PURE__ */ s(V.Provider, { value: te, children: /* @__PURE__ */ s(
267
- o.Root,
294
+ }, [w]);
295
+ return ie(pe, T, t), /* @__PURE__ */ s(H.Provider, { value: t, children: /* @__PURE__ */ s(F.Provider, { value: I, children: /* @__PURE__ */ s(
296
+ d.Root,
268
297
  {
269
- dir: e ?? h,
270
- open: l,
271
- onOpenChange: k,
272
- ...c
298
+ dir: e ?? g,
299
+ open: c,
300
+ onOpenChange: w,
301
+ ...u
273
302
  }
274
303
  ) }) });
275
304
  };
276
- H.displayName = "DropdownMenu.Root";
277
- const he = o.Trigger, fe = o.Portal, ge = o.Group, we = o.RadioGroup, F = m(({ className: e, sideOffset: t = 8, ...r }, n) => {
278
- const a = P($);
279
- return /* @__PURE__ */ s(o.Portal, { children: /* @__PURE__ */ s(E, { popupRef: n, children: (c) => /* @__PURE__ */ s(
280
- o.Content,
305
+ B.displayName = "DropdownMenu.Root";
306
+ const fe = d.Trigger, ge = d.Portal, ve = d.Group, be = d.RadioGroup, U = b(({ className: e, sideOffset: t = 8, ...a }, r) => {
307
+ const l = G(H);
308
+ return /* @__PURE__ */ s(d.Portal, { children: /* @__PURE__ */ s(L, { popupRef: r, children: (u) => /* @__PURE__ */ s(
309
+ d.Content,
281
310
  {
282
- ref: c,
311
+ ref: u,
283
312
  sideOffset: t,
284
- className: q({ className: e }),
313
+ className: $({ className: e }),
285
314
  "data-component": "dropdown-menu",
286
- "data-component-id": a,
287
- ...r
315
+ "data-component-id": l,
316
+ ...a
288
317
  }
289
318
  ) }) });
290
319
  });
291
- F.displayName = "DropdownMenu.Content";
292
- const B = m(
320
+ U.displayName = "DropdownMenu.Content";
321
+ const W = b(
293
322
  ({
294
323
  className: e,
295
324
  startIcon: t,
296
- endIcon: r,
297
- description: n,
298
- shortcut: a,
299
- children: c,
300
- ...h
301
- }, p) => /* @__PURE__ */ b(
302
- o.Item,
303
- {
304
- ref: p,
305
- className: R({ className: e }),
306
- ...h,
307
- children: [
308
- t ? /* @__PURE__ */ s(
309
- "span",
310
- {
311
- "aria-hidden": "true",
312
- className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
313
- children: t
314
- }
315
- ) : null,
316
- /* @__PURE__ */ b("span", { className: "ds:flex-1 ds:flex ds:flex-col ds:min-w-0", children: [
317
- /* @__PURE__ */ s("span", { className: "ds:truncate", children: c }),
318
- n ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:truncate", children: n }) : null
319
- ] }),
320
- a ? /* @__PURE__ */ s("span", { className: "ds:ms-auto", children: /* @__PURE__ */ s(K, { keys: a, size: "sm" }) }) : r ? /* @__PURE__ */ s(
321
- "span",
322
- {
323
- "aria-hidden": "true",
324
- className: "ds:ms-auto ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
325
- children: r
325
+ endIcon: a,
326
+ description: r,
327
+ shortcut: l,
328
+ variant: u,
329
+ disabled: g,
330
+ disabledReason: f,
331
+ textValue: w,
332
+ onSelect: c,
333
+ onClick: o,
334
+ children: m,
335
+ "aria-describedby": C,
336
+ ...I
337
+ }, T) => {
338
+ const h = re(), x = `${h}-reason`, i = `${h}-label`, n = !!(g && f), p = n ? f : r, y = n && !I["aria-label"] && !I["aria-labelledby"];
339
+ return /* @__PURE__ */ N(
340
+ d.Item,
341
+ {
342
+ ref: T,
343
+ className: M({ variant: u, unavailable: n, className: e }),
344
+ disabled: n ? !1 : g,
345
+ textValue: w ?? (n && typeof m == "string" ? m : void 0),
346
+ "aria-describedby": n ? [C, x].filter(Boolean).join(" ") : C,
347
+ onClick: (v) => {
348
+ n || o == null || o(v);
349
+ },
350
+ onSelect: (v) => {
351
+ if (n) {
352
+ v.preventDefault();
353
+ return;
326
354
  }
327
- ) : null
328
- ]
329
- }
330
- )
355
+ c == null || c(v);
356
+ },
357
+ ...I,
358
+ ...n ? { "aria-disabled": !0, "data-unavailable": "" } : void 0,
359
+ ...y ? { "aria-labelledby": i } : void 0,
360
+ children: [
361
+ t ? /* @__PURE__ */ s(
362
+ "span",
363
+ {
364
+ "aria-hidden": "true",
365
+ className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
366
+ children: t
367
+ }
368
+ ) : null,
369
+ /* @__PURE__ */ N("span", { className: "ds:flex-1 ds:flex ds:flex-col ds:min-w-0", children: [
370
+ /* @__PURE__ */ s(
371
+ "span",
372
+ {
373
+ id: y ? i : void 0,
374
+ className: "ds:truncate",
375
+ children: m
376
+ }
377
+ ),
378
+ n ? (
379
+ /* Wraps inside the width the labels set (w-0 + min-w-full),
380
+ rather than widening the menu or being cut off. */
381
+ /* @__PURE__ */ s(
382
+ "span",
383
+ {
384
+ id: x,
385
+ className: "type-meta ds:text-[color:var(--muted-foreground)] ds:w-0 ds:min-w-full ds:whitespace-normal ds:[overflow-wrap:anywhere]",
386
+ children: p
387
+ }
388
+ )
389
+ ) : p ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:truncate", children: p }) : null
390
+ ] }),
391
+ l ? /* @__PURE__ */ s("span", { className: "ds:ms-auto", children: /* @__PURE__ */ s(A, { keys: l, size: "sm" }) }) : a ? /* @__PURE__ */ s(
392
+ "span",
393
+ {
394
+ "aria-hidden": "true",
395
+ className: "ds:ms-auto ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
396
+ children: a
397
+ }
398
+ ) : null
399
+ ]
400
+ }
401
+ );
402
+ }
331
403
  );
332
- B.displayName = "DropdownMenu.Item";
333
- const U = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ b(
334
- o.CheckboxItem,
404
+ W.displayName = "DropdownMenu.Item";
405
+ const J = b(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ N(
406
+ d.CheckboxItem,
335
407
  {
336
- ref: n,
337
- className: R({ className: e }),
338
- ...r,
408
+ ref: r,
409
+ className: M({ className: e }),
410
+ ...a,
339
411
  children: [
340
- /* @__PURE__ */ s("span", { className: L, children: /* @__PURE__ */ s(o.ItemIndicator, { children: /* @__PURE__ */ s(ce, { "aria-hidden": !0, className: "ds:size-4" }) }) }),
412
+ /* @__PURE__ */ s("span", { className: q, children: /* @__PURE__ */ s(d.ItemIndicator, { children: /* @__PURE__ */ s(le, { "aria-hidden": !0, className: "ds:size-4" }) }) }),
341
413
  /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t })
342
414
  ]
343
415
  }
344
416
  ));
345
- U.displayName = "DropdownMenu.CheckboxItem";
346
- function W(e, t) {
347
- const r = P(V), n = M(t);
417
+ J.displayName = "DropdownMenu.CheckboxItem";
418
+ function Q(e, t) {
419
+ const a = G(F), r = S(t);
348
420
  ne(() => {
349
- n.current = t;
350
- }), O(() => {
351
- if (!e || !r) return;
352
- const a = n.current.kind === "choice" ? {
421
+ r.current = t;
422
+ }), K(() => {
423
+ if (!e || !a) return;
424
+ const l = r.current.kind === "choice" ? {
353
425
  kind: "choice",
354
- read: () => n.current.read(),
355
- pick: (c) => n.current.pick(
356
- c
426
+ read: () => r.current.read(),
427
+ pick: (u) => r.current.pick(
428
+ u
357
429
  )
358
430
  } : {
359
431
  kind: "switch",
360
- read: () => n.current.read(),
361
- pick: (c) => n.current.pick(
362
- c
432
+ read: () => r.current.read(),
433
+ pick: (u) => r.current.pick(
434
+ u
363
435
  )
364
436
  };
365
- return r(e, a);
366
- }, [e, r]);
437
+ return a(e, l);
438
+ }, [e, a]);
367
439
  }
368
- const ve = [
440
+ const we = [
369
441
  "ds:ms-auto ds:inline-flex ds:items-center ds:shrink-0",
370
442
  "ds:h-4 ds:w-7 ds:p-[2px]",
371
443
  "ds:rounded-[var(--radius-full)]",
@@ -380,7 +452,7 @@ const ve = [
380
452
  // HCM strips fills — paint the checked track with the system
381
453
  // selection colour so state isn't conveyed by thumb position alone.
382
454
  "ds:forced-colors:[[data-state=checked]_&]:bg-[SelectedItem]"
383
- ].join(" "), be = [
455
+ ].join(" "), ye = [
384
456
  "ds:block ds:size-3",
385
457
  "ds:rounded-[var(--radius-full)]",
386
458
  "ds:bg-[color:var(--background)]",
@@ -388,42 +460,42 @@ const ve = [
388
460
  "ds:[[data-state=checked]_&]:border-transparent",
389
461
  "ds:shadow-[var(--shadow-sm)]",
390
462
  "ds:forced-colors:bg-[CanvasText]"
391
- ].join(" "), J = m(({ className: e, children: t, onSelect: r, name: n, ...a }, c) => {
392
- const { checked: h, onCheckedChange: p, disabled: k } = a;
393
- return W(n, {
463
+ ].join(" "), X = b(({ className: e, children: t, onSelect: a, name: r, ...l }, u) => {
464
+ const { checked: g, onCheckedChange: f, disabled: w } = l;
465
+ return Q(r, {
394
466
  kind: "switch",
395
- read: () => ({ checked: h === !0, disabled: k === !0 }),
467
+ read: () => ({ checked: g === !0, disabled: w === !0 }),
396
468
  // What a click does, and only when it would change something: the
397
469
  // consumer's onSelect, then the new state.
398
- pick: (l) => {
399
- l !== (h === !0) && (r == null || r(new Event("menu.itemSelect", { cancelable: !0 })), p == null || p(l));
470
+ pick: (c) => {
471
+ c !== (g === !0) && (a == null || a(new Event("menu.itemSelect", { cancelable: !0 })), f == null || f(c));
400
472
  }
401
- }), /* @__PURE__ */ b(
402
- o.CheckboxItem,
473
+ }), /* @__PURE__ */ N(
474
+ d.CheckboxItem,
403
475
  {
404
- ref: c,
405
- className: R({ className: e }),
406
- "data-setting": n,
407
- onSelect: (l) => {
408
- l.preventDefault(), r == null || r(l);
476
+ ref: u,
477
+ className: M({ className: e }),
478
+ "data-setting": r,
479
+ onSelect: (c) => {
480
+ c.preventDefault(), a == null || a(c);
409
481
  },
410
- ...a,
482
+ ...l,
411
483
  children: [
412
484
  /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t }),
413
- /* @__PURE__ */ s("span", { "aria-hidden": "true", className: ve, children: /* @__PURE__ */ s("span", { className: be }) })
485
+ /* @__PURE__ */ s("span", { "aria-hidden": "true", className: we, children: /* @__PURE__ */ s("span", { className: ye }) })
414
486
  ]
415
487
  }
416
488
  );
417
489
  });
418
- J.displayName = "DropdownMenu.SwitchItem";
419
- const Q = we, I = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ b(
420
- o.RadioItem,
490
+ X.displayName = "DropdownMenu.SwitchItem";
491
+ const Y = be, z = b(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ N(
492
+ d.RadioItem,
421
493
  {
422
- ref: n,
423
- className: R({ className: e }),
424
- ...r,
494
+ ref: r,
495
+ className: M({ className: e }),
496
+ ...a,
425
497
  children: [
426
- /* @__PURE__ */ s("span", { className: L, "aria-hidden": "true", children: /* @__PURE__ */ s(
498
+ /* @__PURE__ */ s("span", { className: q, "aria-hidden": "true", children: /* @__PURE__ */ s(
427
499
  "span",
428
500
  {
429
501
  className: [
@@ -435,7 +507,7 @@ const Q = we, I = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */
435
507
  "ds:not-forced-colors:[[data-highlighted][data-state=checked]_&]:border-[color:var(--accent-foreground)]",
436
508
  "ds:forced-colors:border-[CanvasText]"
437
509
  ].join(" "),
438
- children: /* @__PURE__ */ s(o.ItemIndicator, { children: /* @__PURE__ */ s(
510
+ children: /* @__PURE__ */ s(d.ItemIndicator, { children: /* @__PURE__ */ s(
439
511
  "span",
440
512
  {
441
513
  className: [
@@ -451,35 +523,35 @@ const Q = we, I = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */
451
523
  ]
452
524
  }
453
525
  ));
454
- I.displayName = "DropdownMenu.RadioItem";
455
- const X = m(({ className: e, ...t }, r) => /* @__PURE__ */ s(
456
- o.Label,
526
+ z.displayName = "DropdownMenu.RadioItem";
527
+ const Z = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(
528
+ d.Label,
457
529
  {
458
- ref: r,
459
- className: pe({ className: e }),
530
+ ref: a,
531
+ className: me({ className: e }),
460
532
  ...t
461
533
  }
462
534
  ));
463
- X.displayName = "DropdownMenu.Label";
464
- const Y = m(({ className: e, ...t }, r) => /* @__PURE__ */ s(o.Separator, { ref: r, asChild: !0, ...t, children: /* @__PURE__ */ s(
535
+ Z.displayName = "DropdownMenu.Label";
536
+ const ee = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(d.Separator, { ref: a, asChild: !0, ...t, children: /* @__PURE__ */ s(
465
537
  oe,
466
538
  {
467
539
  className: ["ds:my-[calc(var(--spacing-xs)/2)]", e ?? ""].filter(Boolean).join(" ")
468
540
  }
469
541
  ) }));
470
- Y.displayName = "DropdownMenu.Separator";
471
- const Z = m(
472
- ({ keys: e, separator: t = "none" }, r) => /* @__PURE__ */ s("span", { ref: r, className: "ds:ms-auto ds:ps-[var(--spacing-sm)]", children: /* @__PURE__ */ s(K, { keys: e, separator: t, size: "sm" }) })
542
+ ee.displayName = "DropdownMenu.Separator";
543
+ const se = b(
544
+ ({ keys: e, separator: t = "none" }, a) => /* @__PURE__ */ s("span", { ref: a, className: "ds:ms-auto ds:ps-[var(--spacing-sm)]", children: /* @__PURE__ */ s(A, { keys: e, separator: t, size: "sm" }) })
473
545
  );
474
- Z.displayName = "DropdownMenu.Shortcut";
475
- const ee = o.Sub, j = m(({ className: e, startIcon: t, children: r, ...n }, a) => /* @__PURE__ */ b(
476
- o.SubTrigger,
546
+ se.displayName = "DropdownMenu.Shortcut";
547
+ const te = d.Sub, _ = b(({ className: e, startIcon: t, children: a, ...r }, l) => /* @__PURE__ */ N(
548
+ d.SubTrigger,
477
549
  {
478
- ref: a,
479
- className: R({
480
- className: [A.open, e].filter(Boolean).join(" ")
550
+ ref: l,
551
+ className: M({
552
+ className: [E.open, e].filter(Boolean).join(" ")
481
553
  }),
482
- ...n,
554
+ ...r,
483
555
  children: [
484
556
  t ? /* @__PURE__ */ s(
485
557
  "span",
@@ -489,9 +561,9 @@ const ee = o.Sub, j = m(({ className: e, startIcon: t, children: r, ...n }, a) =
489
561
  children: t
490
562
  }
491
563
  ) : null,
492
- /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: r }),
564
+ /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: a }),
493
565
  /* @__PURE__ */ s(
494
- ie,
566
+ ce,
495
567
  {
496
568
  "aria-hidden": !0,
497
569
  className: "ds:ms-auto ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
@@ -500,96 +572,96 @@ const ee = o.Sub, j = m(({ className: e, startIcon: t, children: r, ...n }, a) =
500
572
  ]
501
573
  }
502
574
  ));
503
- j.displayName = "DropdownMenu.SubTrigger";
504
- const z = m(({ className: e, ...t }, r) => /* @__PURE__ */ s(o.Portal, { children: /* @__PURE__ */ s(E, { popupRef: r, children: (n) => /* @__PURE__ */ s(
505
- o.SubContent,
575
+ _.displayName = "DropdownMenu.SubTrigger";
576
+ const P = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(d.Portal, { children: /* @__PURE__ */ s(L, { popupRef: a, children: (r) => /* @__PURE__ */ s(
577
+ d.SubContent,
506
578
  {
507
- ref: n,
579
+ ref: r,
508
580
  sideOffset: 8,
509
581
  "data-component": "dropdown-menu-sub-content",
510
- className: q({ className: e }),
582
+ className: $({ className: e }),
511
583
  ...t
512
584
  }
513
585
  ) }) }));
514
- z.displayName = "DropdownMenu.SubContent";
515
- function se({
586
+ P.displayName = "DropdownMenu.SubContent";
587
+ function ae({
516
588
  label: e,
517
589
  value: t,
518
- onValueChange: r,
519
- options: n,
520
- startIcon: a,
521
- disabled: c,
522
- closeOnSelect: h = !1,
523
- name: p,
524
- className: k
590
+ onValueChange: a,
591
+ options: r,
592
+ startIcon: l,
593
+ disabled: u,
594
+ closeOnSelect: g = !1,
595
+ name: f,
596
+ className: w
525
597
  }) {
526
- const l = n.find((d) => d.value === t);
527
- return W(p, {
598
+ const c = r.find((o) => o.value === t);
599
+ return Q(f, {
528
600
  kind: "choice",
529
601
  read: () => ({
530
602
  value: t,
531
- options: n,
532
- disabled: c === !0,
533
- closeOnSelect: h
603
+ options: r,
604
+ disabled: u === !0,
605
+ closeOnSelect: g
534
606
  }),
535
- pick: (d) => r(d)
536
- }), /* @__PURE__ */ b(ee, { children: [
607
+ pick: (o) => a(o)
608
+ }), /* @__PURE__ */ N(te, { children: [
537
609
  /* @__PURE__ */ s(
538
- j,
610
+ _,
539
611
  {
540
- startIcon: a,
541
- disabled: c,
542
- className: k,
612
+ startIcon: l,
613
+ disabled: u,
614
+ className: w,
543
615
  "data-component": "dropdown-menu-choice",
544
616
  "data-value": t,
545
- "data-setting": p,
546
- children: /* @__PURE__ */ b("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
617
+ "data-setting": f,
618
+ children: /* @__PURE__ */ N("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
547
619
  /* @__PURE__ */ s("span", { className: "ds:truncate", children: e }),
548
- l ? /* @__PURE__ */ s("span", { className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current", children: l.label }) : null
620
+ c ? /* @__PURE__ */ s("span", { className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current", children: c.label }) : null
549
621
  ] })
550
622
  }
551
623
  ),
552
- /* @__PURE__ */ s(z, { children: /* @__PURE__ */ s(
553
- Q,
624
+ /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
625
+ Y,
554
626
  {
555
627
  value: t,
556
- onValueChange: (d) => r(d),
557
- children: n.map((d) => /* @__PURE__ */ s(
558
- I,
628
+ onValueChange: (o) => a(o),
629
+ children: r.map((o) => /* @__PURE__ */ s(
630
+ z,
559
631
  {
560
- value: d.value,
561
- disabled: d.disabled,
562
- onSelect: h ? void 0 : (v) => v.preventDefault(),
563
- children: d.label
632
+ value: o.value,
633
+ disabled: o.disabled,
634
+ onSelect: g ? void 0 : (m) => m.preventDefault(),
635
+ children: o.label
564
636
  },
565
- d.value
637
+ o.value
566
638
  ))
567
639
  }
568
640
  ) })
569
641
  ] });
570
642
  }
571
- se.displayName = "DropdownMenu.ChoiceSub";
572
- const ze = {
573
- Root: H,
574
- Trigger: he,
575
- Portal: fe,
576
- Content: F,
577
- Group: ge,
578
- Item: B,
579
- CheckboxItem: U,
580
- SwitchItem: J,
581
- RadioGroup: Q,
582
- RadioItem: I,
583
- Label: X,
584
- Separator: Y,
585
- Shortcut: Z,
586
- Sub: ee,
587
- SubTrigger: j,
588
- SubContent: z,
589
- ChoiceSub: se
643
+ ae.displayName = "DropdownMenu.ChoiceSub";
644
+ const _e = {
645
+ Root: B,
646
+ Trigger: fe,
647
+ Portal: ge,
648
+ Content: U,
649
+ Group: ve,
650
+ Item: W,
651
+ CheckboxItem: J,
652
+ SwitchItem: X,
653
+ RadioGroup: Y,
654
+ RadioItem: z,
655
+ Label: Z,
656
+ Separator: ee,
657
+ Shortcut: se,
658
+ Sub: te,
659
+ SubTrigger: _,
660
+ SubContent: P,
661
+ ChoiceSub: ae
590
662
  };
591
663
  export {
592
- ze as D,
593
- ue as d
664
+ _e as D,
665
+ pe as d
594
666
  };
595
- //# sourceMappingURL=dropdown-menu-CqxBthww.js.map
667
+ //# sourceMappingURL=dropdown-menu-Dmbak7q6.js.map