@epilot/zenith-react 0.2.0-next.3 → 0.2.0-next.4

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 (269) hide show
  1. package/README.md +25 -0
  2. package/codemods/README.md +168 -0
  3. package/codemods/migrate/base-elements/accordion.ts +132 -0
  4. package/codemods/migrate/base-elements/alert.ts +81 -0
  5. package/codemods/migrate/base-elements/avatar.ts +116 -0
  6. package/codemods/migrate/base-elements/button.ts +188 -0
  7. package/codemods/migrate/base-elements/checkbox.ts +17 -0
  8. package/codemods/migrate/base-elements/chip.ts +87 -0
  9. package/codemods/migrate/base-elements/chip360.ts +162 -0
  10. package/codemods/migrate/base-elements/circular-progress.ts +73 -0
  11. package/codemods/migrate/base-elements/dialog.ts +323 -0
  12. package/codemods/migrate/base-elements/divider.ts +61 -0
  13. package/codemods/migrate/base-elements/feedback-message.ts +95 -0
  14. package/codemods/migrate/base-elements/icon-button.ts +203 -0
  15. package/codemods/migrate/base-elements/index.ts +55 -0
  16. package/codemods/migrate/base-elements/mui-props.ts +29 -0
  17. package/codemods/migrate/base-elements/notification.ts +98 -0
  18. package/codemods/migrate/base-elements/paper.ts +78 -0
  19. package/codemods/migrate/base-elements/select.ts +328 -0
  20. package/codemods/migrate/base-elements/shared.ts +910 -0
  21. package/codemods/migrate/base-elements/skeleton.ts +83 -0
  22. package/codemods/migrate/base-elements/switch.ts +19 -0
  23. package/codemods/migrate/base-elements/tabs.ts +222 -0
  24. package/codemods/migrate/base-elements/text-field.ts +425 -0
  25. package/codemods/migrate/base-elements/toggle-button.ts +185 -0
  26. package/codemods/migrate/base-elements/tooltip.ts +231 -0
  27. package/codemods/migrate/base-elements/typography.ts +247 -0
  28. package/codemods/migrate/base-elements/unsupported.ts +277 -0
  29. package/codemods/migrate/from-base-elements.ts +20 -0
  30. package/codemods/migrate/from-volt.ts +20 -0
  31. package/codemods/migrate/lib/imports.ts +399 -0
  32. package/codemods/migrate/lib/jsx.ts +313 -0
  33. package/codemods/migrate/lib/run-migration.ts +528 -0
  34. package/codemods/migrate/lib/source.ts +6 -0
  35. package/codemods/migrate/lib/todo.ts +107 -0
  36. package/codemods/migrate/lib/types.ts +114 -0
  37. package/codemods/migrate/volt/class-helpers.ts +37 -0
  38. package/codemods/migrate/volt/index.ts +18 -0
  39. package/codemods/migrate/volt/pagination.ts +26 -0
  40. package/codemods/migrate/volt/same-name.ts +293 -0
  41. package/codemods/migrate/volt/stylesheets.ts +18 -0
  42. package/codemods/migrate/volt/tanstack-types.ts +20 -0
  43. package/codemods/radix-to-base-ui.ts +389 -0
  44. package/dist/_virtual/_zenith-runtime-family_accordion.js +7 -0
  45. package/dist/_virtual/_zenith-runtime-family_accordion.js.map +1 -0
  46. package/dist/_virtual/_zenith-runtime-family_alert-dialog.js +7 -0
  47. package/dist/_virtual/_zenith-runtime-family_alert-dialog.js.map +1 -0
  48. package/dist/_virtual/_zenith-runtime-family_avatar.js +7 -0
  49. package/dist/_virtual/_zenith-runtime-family_avatar.js.map +1 -0
  50. package/dist/_virtual/_zenith-runtime-family_button.js +7 -0
  51. package/dist/_virtual/_zenith-runtime-family_button.js.map +1 -0
  52. package/dist/_virtual/_zenith-runtime-family_checkbox.js +7 -0
  53. package/dist/_virtual/_zenith-runtime-family_checkbox.js.map +1 -0
  54. package/dist/_virtual/_zenith-runtime-family_csp-provider.js +7 -0
  55. package/dist/_virtual/_zenith-runtime-family_csp-provider.js.map +1 -0
  56. package/dist/_virtual/_zenith-runtime-family_dialog.js +7 -0
  57. package/dist/_virtual/_zenith-runtime-family_dialog.js.map +1 -0
  58. package/dist/_virtual/_zenith-runtime-family_direction-provider.js +8 -0
  59. package/dist/_virtual/_zenith-runtime-family_direction-provider.js.map +1 -0
  60. package/dist/_virtual/_zenith-runtime-family_menu.js +7 -0
  61. package/dist/_virtual/_zenith-runtime-family_menu.js.map +1 -0
  62. package/dist/_virtual/_zenith-runtime-family_merge-props.js +11 -0
  63. package/dist/_virtual/_zenith-runtime-family_merge-props.js.map +1 -0
  64. package/dist/_virtual/_zenith-runtime-family_popover.js +7 -0
  65. package/dist/_virtual/_zenith-runtime-family_popover.js.map +1 -0
  66. package/dist/_virtual/_zenith-runtime-family_radio-group.js +7 -0
  67. package/dist/_virtual/_zenith-runtime-family_radio-group.js.map +1 -0
  68. package/dist/_virtual/_zenith-runtime-family_radio.js +7 -0
  69. package/dist/_virtual/_zenith-runtime-family_radio.js.map +1 -0
  70. package/dist/_virtual/_zenith-runtime-family_scroll-area.js +7 -0
  71. package/dist/_virtual/_zenith-runtime-family_scroll-area.js.map +1 -0
  72. package/dist/_virtual/_zenith-runtime-family_select.js +7 -0
  73. package/dist/_virtual/_zenith-runtime-family_select.js.map +1 -0
  74. package/dist/_virtual/_zenith-runtime-family_separator.js +7 -0
  75. package/dist/_virtual/_zenith-runtime-family_separator.js.map +1 -0
  76. package/dist/_virtual/_zenith-runtime-family_switch.js +7 -0
  77. package/dist/_virtual/_zenith-runtime-family_switch.js.map +1 -0
  78. package/dist/_virtual/_zenith-runtime-family_tabs.js +7 -0
  79. package/dist/_virtual/_zenith-runtime-family_tabs.js.map +1 -0
  80. package/dist/_virtual/_zenith-runtime-family_toast.js +7 -0
  81. package/dist/_virtual/_zenith-runtime-family_toast.js.map +1 -0
  82. package/dist/_virtual/_zenith-runtime-family_toggle-group.js +7 -0
  83. package/dist/_virtual/_zenith-runtime-family_toggle-group.js.map +1 -0
  84. package/dist/_virtual/_zenith-runtime-family_toggle.js +7 -0
  85. package/dist/_virtual/_zenith-runtime-family_toggle.js.map +1 -0
  86. package/dist/_virtual/_zenith-runtime-family_tooltip.js +7 -0
  87. package/dist/_virtual/_zenith-runtime-family_tooltip.js.map +1 -0
  88. package/dist/_virtual/_zenith-runtime-family_use-render.js +7 -0
  89. package/dist/_virtual/_zenith-runtime-family_use-render.js.map +1 -0
  90. package/dist/components/accordion/accordion.js +179 -96
  91. package/dist/components/accordion/accordion.js.map +1 -1
  92. package/dist/components/alert-dialog/alert-dialog.js +243 -206
  93. package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
  94. package/dist/components/avatar/avatar.js +94 -82
  95. package/dist/components/avatar/avatar.js.map +1 -1
  96. package/dist/components/badge/badge.js +11 -11
  97. package/dist/components/breadcrumb/breadcrumb.js +69 -70
  98. package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
  99. package/dist/components/button/button.js +119 -102
  100. package/dist/components/button/button.js.map +1 -1
  101. package/dist/components/checkbox/checkbox.js +68 -51
  102. package/dist/components/checkbox/checkbox.js.map +1 -1
  103. package/dist/components/date-range-picker/date-range-picker.js +100 -90
  104. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  105. package/dist/components/date-time-picker/date-time-picker-input.js +118 -108
  106. package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
  107. package/dist/components/date-time-picker/date-time-picker-panel.js +91 -94
  108. package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
  109. package/dist/components/dialog/dialog.js +238 -228
  110. package/dist/components/dialog/dialog.js.map +1 -1
  111. package/dist/components/drawer/drawer.js +259 -321
  112. package/dist/components/drawer/drawer.js.map +1 -1
  113. package/dist/components/dropdown-menu/dropdown-menu.js +533 -279
  114. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  115. package/dist/components/field/field-combobox.js +87 -77
  116. package/dist/components/field/field-combobox.js.map +1 -1
  117. package/dist/components/list/list-sortable.js +104 -0
  118. package/dist/components/list/list-sortable.js.map +1 -0
  119. package/dist/components/list/list.js +246 -324
  120. package/dist/components/list/list.js.map +1 -1
  121. package/dist/components/option-card/option-card.js +121 -117
  122. package/dist/components/option-card/option-card.js.map +1 -1
  123. package/dist/components/pill/pill.js +7 -7
  124. package/dist/components/popover/popover.js +223 -127
  125. package/dist/components/popover/popover.js.map +1 -1
  126. package/dist/components/radio/radio-group-base.js +54 -0
  127. package/dist/components/radio/radio-group-base.js.map +1 -0
  128. package/dist/components/radio/radio.js +71 -60
  129. package/dist/components/radio/radio.js.map +1 -1
  130. package/dist/components/scroll-area/scroll-area.js +142 -108
  131. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  132. package/dist/components/scroll-overflow/scroll-overflow.js +156 -127
  133. package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
  134. package/dist/components/segmented-control/segmented-control.js +93 -81
  135. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  136. package/dist/components/select/select.js +485 -310
  137. package/dist/components/select/select.js.map +1 -1
  138. package/dist/components/separator/separator.js.map +1 -1
  139. package/dist/components/slot/compose-as-child.js +15 -12
  140. package/dist/components/slot/compose-as-child.js.map +1 -1
  141. package/dist/components/switch/switch.js +75 -68
  142. package/dist/components/switch/switch.js.map +1 -1
  143. package/dist/components/table/table-pagination.js +212 -175
  144. package/dist/components/table/table-pagination.js.map +1 -1
  145. package/dist/components/tabs/tabs.js +193 -190
  146. package/dist/components/tabs/tabs.js.map +1 -1
  147. package/dist/components/toast/toast.js +610 -148
  148. package/dist/components/toast/toast.js.map +1 -1
  149. package/dist/components/toggle/toggle-group.js +143 -32
  150. package/dist/components/toggle/toggle-group.js.map +1 -1
  151. package/dist/components/toggle/toggle.js +83 -53
  152. package/dist/components/toggle/toggle.js.map +1 -1
  153. package/dist/components/tooltip/tooltip.js +298 -138
  154. package/dist/components/tooltip/tooltip.js.map +1 -1
  155. package/dist/index.d.ts +2335 -2129
  156. package/dist/index.js +24 -23
  157. package/dist/list/sortable/index.d.ts +29 -0
  158. package/dist/list/sortable/index.js +5 -0
  159. package/dist/{_virtual → list/sortable}/index.js.map +1 -1
  160. package/dist/packages/tokens/dist/delivery/index.js +10 -10
  161. package/dist/packages/tokens/dist/delivery/index.js.map +1 -1
  162. package/dist/packages/tokens/dist/generated/core.generated.js +6 -15
  163. package/dist/packages/tokens/dist/generated/core.generated.js.map +1 -1
  164. package/dist/packages/tokens/dist/generated/palette.generated.js +4 -5
  165. package/dist/packages/tokens/dist/generated/palette.generated.js.map +1 -1
  166. package/dist/packages/tokens/dist/generated/palette.meta.generated.js +5 -0
  167. package/dist/packages/tokens/dist/generated/palette.meta.generated.js.map +1 -0
  168. package/dist/packages/tokens/dist/install.js +40 -17
  169. package/dist/packages/tokens/dist/install.js.map +1 -1
  170. package/dist/renderer/runtime-contract.generated.js +8 -0
  171. package/dist/renderer/runtime-contract.generated.js.map +1 -0
  172. package/dist/renderer/served.js +34 -0
  173. package/dist/renderer/served.js.map +1 -0
  174. package/dist/tokens/core.meta.generated.js +2 -2
  175. package/dist/tokens/core.meta.generated.js.map +1 -1
  176. package/dist/tokens/index.d.ts +1028 -1028
  177. package/dist/tokens/index.js +863 -863
  178. package/dist/tokens/index.js.map +1 -1
  179. package/dist/tokens/palette.meta.generated.js +5 -0
  180. package/dist/tokens/palette.meta.generated.js.map +1 -0
  181. package/dist/tokens.json +1 -1
  182. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +57 -62
  183. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +1 -1
  184. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +32 -38
  185. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +1 -1
  186. package/package.json +28 -21
  187. package/scripts/migration-diagnostics-core.mjs +18 -10
  188. package/scripts/migration-diagnostics.mjs +31 -8
  189. package/dist/_virtual/index.js +0 -6
  190. package/dist/_virtual/index2.js +0 -5
  191. package/dist/_virtual/index2.js.map +0 -1
  192. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
  193. package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  194. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
  195. package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  196. package/dist/tokens/palette.generated.js +0 -5
  197. package/dist/tokens/palette.generated.js.map +0 -1
  198. package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js +0 -512
  199. package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  200. package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js +0 -396
  201. package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  202. package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -233
  203. package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  204. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
  205. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  206. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  207. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  208. package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js +0 -7
  209. package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js.map +0 -1
  210. package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js +0 -240
  211. package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js.map +0 -1
  212. package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js +0 -128
  213. package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js.map +0 -1
  214. package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js +0 -25
  215. package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js.map +0 -1
  216. package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js +0 -76
  217. package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js.map +0 -1
  218. package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js +0 -252
  219. package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js.map +0 -1
  220. package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js +0 -121
  221. package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js.map +0 -1
  222. package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js +0 -49
  223. package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js.map +0 -1
  224. package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js +0 -11
  225. package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js.map +0 -1
  226. package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js +0 -228
  227. package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
  228. package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js +0 -653
  229. package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js.map +0 -1
  230. package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js +0 -244
  231. package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js.map +0 -1
  232. package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js +0 -222
  233. package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js.map +0 -1
  234. package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js +0 -239
  235. package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js.map +0 -1
  236. package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js +0 -184
  237. package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  238. package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js +0 -535
  239. package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js.map +0 -1
  240. package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js +0 -863
  241. package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js.map +0 -1
  242. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +0 -63
  243. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +0 -1
  244. package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js +0 -133
  245. package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js.map +0 -1
  246. package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js +0 -164
  247. package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js.map +0 -1
  248. package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js +0 -138
  249. package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js.map +0 -1
  250. package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js +0 -34
  251. package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js.map +0 -1
  252. package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js +0 -340
  253. package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  254. package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
  255. package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js.map +0 -1
  256. package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js +0 -9
  257. package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js.map +0 -1
  258. package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js +0 -28
  259. package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js.map +0 -1
  260. package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js +0 -33
  261. package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  262. package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js +0 -747
  263. package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js.map +0 -1
  264. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -68
  265. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  266. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -56
  267. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  268. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js +0 -11
  269. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js.map +0 -1
@@ -1,14 +1,18 @@
1
- import { jsx as e, jsxs as b } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { Root as v, CheckboxItem as T, ItemIndicator as R, Portal as C, Content as k, Group as N, Item as q, Label as L, RadioGroup as A, RadioItem as G, Separator as X, Sub as z, SubContent as E, SubTrigger as W, Trigger as B } from "../../vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js";
4
- import { mergeClasses as p, SLOT_ATTR as c, shorthands as f } from "@epilot/zenith-runtime/v1";
5
- import { useAppearanceAttributes as S } from "../appearance-boundary/appearance-boundary.js";
6
- import { useDensity as I } from "../density-provider/density-provider.js";
7
- import { makeZenithStyles as _ } from "../../styles/make-styles.js";
8
- import { boxModel as l, nativeControl as $ } from "../../styles/host-reset.js";
9
- import { OVERLAY_Z_INDEX as P } from "../../styles/overlay-layer.js";
10
- import { grayA11 as Y, leadingXs as Z, textXs as j, grayA3 as F, spacingElement1 as g, fontWeightSemibold as H, leadingSm as y, textSm as D, spacingElement2 as m, accentSoft as w, errorSoft as h, errorA8 as O, errorA11 as V, grayA12 as J, body as K, accentA11 as Q, radiusMd as U, radiusXl as oo } from "../../tokens/index.js";
11
- const to = (r) => /* @__PURE__ */ e(
1
+ import { jsx as i, jsxs as F, Fragment as H } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ import { DirectionProvider as ne } from "../../_virtual/_zenith-runtime-family_direction-provider.js";
4
+ import { Menu as f } from "../../_virtual/_zenith-runtime-family_menu.js";
5
+ import { mergeProps as re } from "../../_virtual/_zenith-runtime-family_merge-props.js";
6
+ import { Separator as ie } from "../../_virtual/_zenith-runtime-family_separator.js";
7
+ import { useRender as ae } from "../../_virtual/_zenith-runtime-family_use-render.js";
8
+ import { mergeClasses as w, SLOT_ATTR as g, shorthands as P } from "@epilot/zenith-runtime/v1";
9
+ import { useAppearanceAttributes as V } from "../appearance-boundary/appearance-boundary.js";
10
+ import { useDensity as J } from "../density-provider/density-provider.js";
11
+ import { makeZenithStyles as se } from "../../styles/make-styles.js";
12
+ import { boxModel as b, nativeControl as de } from "../../styles/host-reset.js";
13
+ import { OVERLAY_Z_INDEX as O } from "../../styles/overlay-layer.js";
14
+ import { grayA11 as ce, leadingXs as le, textXs as ue, grayA3 as pe, spacingElement1 as R, fontWeightSemibold as me, leadingSm as Z, textSm as j, spacingElement2 as h, accentSoft as T, errorSoft as N, errorA8 as fe, errorA11 as ge, grayA12 as he, body as we, accentA11 as ve, radiusMd as be, radiusXl as xe } from "../../tokens/index.js";
15
+ const ye = (o) => /* @__PURE__ */ i(
12
16
  "svg",
13
17
  {
14
18
  xmlns: "http://www.w3.org/2000/svg",
@@ -16,10 +20,10 @@ const to = (r) => /* @__PURE__ */ e(
16
20
  viewBox: "0 -960 960 960",
17
21
  width: "16px",
18
22
  fill: "currentColor",
19
- ...r,
20
- children: /* @__PURE__ */ e("path", { d: "m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z" })
23
+ ...o,
24
+ children: /* @__PURE__ */ i("path", { d: "m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z" })
21
25
  }
22
- ), eo = (r) => /* @__PURE__ */ e(
26
+ ), Ce = (o) => /* @__PURE__ */ i(
23
27
  "svg",
24
28
  {
25
29
  xmlns: "http://www.w3.org/2000/svg",
@@ -27,10 +31,10 @@ const to = (r) => /* @__PURE__ */ e(
27
31
  viewBox: "0 -960 960 960",
28
32
  width: "16px",
29
33
  fill: "currentColor",
30
- ...r,
31
- children: /* @__PURE__ */ e("path", { d: "M504-480 348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156Z" })
34
+ ...o,
35
+ children: /* @__PURE__ */ i("path", { d: "M504-480 348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156Z" })
32
36
  }
33
- ), no = (r) => /* @__PURE__ */ e(
37
+ ), Me = (o) => /* @__PURE__ */ i(
34
38
  "svg",
35
39
  {
36
40
  xmlns: "http://www.w3.org/2000/svg",
@@ -38,124 +42,104 @@ const to = (r) => /* @__PURE__ */ e(
38
42
  viewBox: "0 -960 960 960",
39
43
  width: "8px",
40
44
  fill: "currentColor",
41
- ...r,
42
- children: /* @__PURE__ */ e("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })
45
+ ...o,
46
+ children: /* @__PURE__ */ i("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })
43
47
  }
44
- ), u = _({
48
+ ), De = "cubic-bezier(0.4, 0, 0.2, 1)", Re = "cubic-bezier(0.4, 0, 1, 1)", v = se({
45
49
  // For the bare native `<button>` a Trigger/Close renders. Not applied under `asChild`, where the
46
50
  // child owns its own element and two atom sets would race for the same properties.
47
51
  triggerReset: {
48
- ...$
52
+ ...de
49
53
  },
50
54
  trigger: {
51
- color: Q
55
+ color: ve
52
56
  },
53
- portal: {
54
- display: "contents"
57
+ // The positioner is what stacks against other layers, as Radix's popper wrapper did; it also
58
+ // keeps that wrapper's `max-content` floor so the content wraps the same way.
59
+ positioner: {
60
+ zIndex: O,
61
+ minWidth: "max-content",
62
+ outlineStyle: "none"
63
+ },
64
+ // Radix's `hideWhenDetached`: Base UI marks the positioner when its anchor scrolls out of view.
65
+ positionerHideWhenDetached: {
66
+ "&[data-anchor-hidden]": {
67
+ visibility: "hidden",
68
+ pointerEvents: "none"
69
+ }
55
70
  },
56
71
  popup: {
57
- ...l,
58
- backgroundColor: K,
59
- color: J,
72
+ ...b,
73
+ backgroundColor: we,
74
+ color: he,
60
75
  minWidth: "10rem",
61
76
  overflow: "hidden",
62
- ...f.borderRadius(oo),
63
- ...f.padding(g),
77
+ ...P.borderRadius(xe),
78
+ ...P.padding(R),
64
79
  // v1 shadow-lg
65
80
  boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
66
81
  outlineStyle: "none",
67
- zIndex: P,
68
- transformOrigin: "var(--radix-dropdown-menu-content-transform-origin)",
69
- "@media (prefers-reduced-motion: reduce)": {
70
- animationDuration: "0.01ms",
71
- animationIterationCount: "1",
72
- "&[data-state='open']": {
73
- animationDuration: "0.01ms"
74
- },
75
- "&[data-state='closed']": {
76
- animationDuration: "0.01ms"
77
- }
82
+ zIndex: O,
83
+ transformOrigin: "var(--transform-origin)",
84
+ transitionProperty: "opacity, transform",
85
+ transitionDuration: "150ms",
86
+ transitionTimingFunction: De,
87
+ "&[data-starting-style]": {
88
+ opacity: 0,
89
+ transform: "scale(0.95)"
78
90
  },
79
- "&[data-state='open']": {
80
- animationName: {
81
- from: { opacity: 0, transform: "scale(0.95)" },
82
- to: { opacity: 1, transform: "scale(1)" }
83
- },
84
- animationDuration: "150ms",
85
- animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
91
+ "&[data-starting-style][data-side='bottom']": {
92
+ transform: `translateY(-${h}) scale(0.95)`
86
93
  },
87
- "&[data-state='open'][data-side='bottom']": {
88
- animationName: {
89
- from: {
90
- opacity: 0,
91
- transform: `translateY(-${m}) scale(0.95)`
92
- },
93
- to: { opacity: 1, transform: "translateY(0) scale(1)" }
94
- }
94
+ "&[data-starting-style][data-side='left']": {
95
+ transform: `translateX(${h}) scale(0.95)`
95
96
  },
96
- "&[data-state='open'][data-side='left']": {
97
- animationName: {
98
- from: {
99
- opacity: 0,
100
- transform: `translateX(${m}) scale(0.95)`
101
- },
102
- to: { opacity: 1, transform: "translateX(0) scale(1)" }
103
- }
97
+ "&[data-starting-style][data-side='right']": {
98
+ transform: `translateX(-${h}) scale(0.95)`
104
99
  },
105
- "&[data-state='open'][data-side='right']": {
106
- animationName: {
107
- from: {
108
- opacity: 0,
109
- transform: `translateX(-${m}) scale(0.95)`
110
- },
111
- to: { opacity: 1, transform: "translateX(0) scale(1)" }
112
- }
100
+ "&[data-starting-style][data-side='top']": {
101
+ transform: `translateY(${h}) scale(0.95)`
113
102
  },
114
- "&[data-state='open'][data-side='top']": {
115
- animationName: {
116
- from: {
117
- opacity: 0,
118
- transform: `translateY(${m}) scale(0.95)`
119
- },
120
- to: { opacity: 1, transform: "translateY(0) scale(1)" }
121
- }
103
+ "&[data-ending-style]": {
104
+ opacity: 0,
105
+ transform: "scale(0.95)",
106
+ transitionDuration: "100ms",
107
+ transitionTimingFunction: Re
122
108
  },
123
- "&[data-state='closed']": {
124
- animationName: {
125
- from: { opacity: 1, transform: "scale(1)" },
126
- to: { opacity: 0, transform: "scale(0.95)" }
127
- },
128
- animationDuration: "100ms",
129
- animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
109
+ "@media (prefers-reduced-motion: reduce)": {
110
+ transitionDuration: "0.01ms",
111
+ "&[data-ending-style]": {
112
+ transitionDuration: "0.01ms"
113
+ }
130
114
  }
131
115
  },
132
116
  item: {
133
- ...l,
117
+ ...b,
134
118
  position: "relative",
135
119
  display: "flex",
136
120
  cursor: "pointer",
137
121
  userSelect: "none",
138
122
  alignItems: "center",
139
- ...f.gap(m),
140
- ...f.borderRadius(U),
141
- paddingLeft: m,
142
- paddingRight: m,
123
+ ...P.gap(h),
124
+ ...P.borderRadius(be),
125
+ paddingLeft: h,
126
+ paddingRight: h,
143
127
  paddingTop: "0.375rem",
144
128
  paddingBottom: "0.375rem",
145
- fontSize: D,
146
- lineHeight: y,
129
+ fontSize: j,
130
+ lineHeight: Z,
147
131
  outlineStyle: "none",
148
132
  transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
149
133
  transitionDuration: "150ms",
150
134
  transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
151
135
  ":hover": {
152
- backgroundColor: w
136
+ backgroundColor: T
153
137
  },
154
138
  ":focus-visible": {
155
- backgroundColor: w
139
+ backgroundColor: T
156
140
  },
157
141
  "&[data-highlighted]": {
158
- backgroundColor: w
142
+ backgroundColor: T
159
143
  },
160
144
  "&[data-disabled]": {
161
145
  pointerEvents: "none",
@@ -169,33 +153,33 @@ const to = (r) => /* @__PURE__ */ e(
169
153
  }
170
154
  },
171
155
  itemInset: {
172
- ...l,
156
+ ...b,
173
157
  paddingLeft: "2rem"
174
158
  },
175
159
  itemDestructive: {
176
- color: V,
160
+ color: ge,
177
161
  ":hover": {
178
- backgroundColor: h
162
+ backgroundColor: N
179
163
  },
180
164
  ":focus-visible": {
181
- backgroundColor: h,
165
+ backgroundColor: N,
182
166
  outlineWidth: "2px",
183
167
  outlineStyle: "solid",
184
- outlineColor: O
168
+ outlineColor: fe
185
169
  },
186
170
  "&[data-highlighted]": {
187
- backgroundColor: h
171
+ backgroundColor: N
188
172
  }
189
173
  },
190
174
  itemCheckboxRadio: {
191
- ...l,
175
+ ...b,
192
176
  paddingLeft: "2rem",
193
- paddingRight: m
177
+ paddingRight: h
194
178
  },
195
179
  itemIndicatorWrapper: {
196
- ...l,
180
+ ...b,
197
181
  position: "absolute",
198
- left: m,
182
+ left: h,
199
183
  display: "flex",
200
184
  height: "0.875rem",
201
185
  width: "0.875rem",
@@ -208,12 +192,12 @@ const to = (r) => /* @__PURE__ */ e(
208
192
  justifyContent: "center"
209
193
  },
210
194
  subTrigger: {
211
- "&[data-state='open']": {
212
- backgroundColor: w
195
+ "&[data-popup-open]": {
196
+ backgroundColor: T
213
197
  }
214
198
  },
215
199
  subTriggerChevron: {
216
- ...l,
200
+ ...b,
217
201
  marginLeft: "auto",
218
202
  width: "1rem",
219
203
  height: "1rem",
@@ -221,240 +205,510 @@ const to = (r) => /* @__PURE__ */ e(
221
205
  pointerEvents: "none"
222
206
  },
223
207
  label: {
224
- ...l,
225
- paddingLeft: m,
226
- paddingRight: m,
208
+ ...b,
209
+ paddingLeft: h,
210
+ paddingRight: h,
227
211
  paddingTop: "0.375rem",
228
212
  paddingBottom: "0.375rem",
229
- fontSize: D,
230
- lineHeight: y,
231
- fontWeight: H
213
+ fontSize: j,
214
+ lineHeight: Z,
215
+ fontWeight: me
232
216
  },
233
217
  separator: {
234
- ...l,
235
- marginLeft: `calc(-1 * ${g})`,
236
- marginRight: `calc(-1 * ${g})`,
237
- marginTop: g,
238
- marginBottom: g,
218
+ ...b,
219
+ marginLeft: `calc(-1 * ${R})`,
220
+ marginRight: `calc(-1 * ${R})`,
221
+ marginTop: R,
222
+ marginBottom: R,
239
223
  height: "1px",
240
- backgroundColor: F
224
+ backgroundColor: pe
241
225
  },
242
226
  shortcut: {
243
227
  marginLeft: "auto",
244
- fontSize: j,
245
- lineHeight: Z,
228
+ fontSize: ue,
229
+ lineHeight: le,
246
230
  letterSpacing: "0.1em",
247
- color: Y
231
+ color: ce
248
232
  }
249
- }), go = s.forwardRef(
250
- function(o, t) {
251
- return /* @__PURE__ */ e(v, { "data-slot": "dropdown-menu", ...o });
233
+ });
234
+ function S(o) {
235
+ const e = a.Children.toArray(o).filter(a.isValidElement);
236
+ return e.length === 1 ? e[0] : void 0;
237
+ }
238
+ function C(o, e) {
239
+ const n = o ? S(e) : void 0;
240
+ return n ? { render: n } : { children: e };
241
+ }
242
+ function Se(o) {
243
+ if (o)
244
+ return () => {
245
+ const e = new Event("focus", { cancelable: !0 }), n = document.activeElement;
246
+ o(e);
247
+ const t = document.activeElement;
248
+ return t !== n && t instanceof HTMLElement && queueMicrotask(() => t.focus()), !e.defaultPrevented;
249
+ };
250
+ }
251
+ const Y = /* @__PURE__ */ new WeakSet();
252
+ function K(o, { submenu: e = !1 } = {}) {
253
+ return (n, t) => {
254
+ const r = t.reason === "escape-key" ? t.event : void 0;
255
+ if (r != null && r.defaultPrevented && !Y.has(r)) {
256
+ t.cancel();
257
+ return;
258
+ }
259
+ o == null || o(n, t), e && r && !t.isCanceled && Y.add(r);
260
+ };
261
+ }
262
+ const _ = a.createContext(() => {
263
+ }), B = a.createContext(void 0);
264
+ function Q(o) {
265
+ const e = a.useContext(_);
266
+ a.useEffect(() => {
267
+ e(o ?? !1);
268
+ }, [e, o]);
269
+ }
270
+ const _e = a.forwardRef(
271
+ function({ dir: e, onOpenChange: n, children: t, ...r }, s) {
272
+ const [c, l] = a.useState(!1), d = /* @__PURE__ */ i(
273
+ f.Root,
274
+ {
275
+ "data-slot": "dropdown-menu",
276
+ loopFocus: c,
277
+ onOpenChange: K(n),
278
+ ...r,
279
+ children: /* @__PURE__ */ i(_.Provider, { value: l, children: /* @__PURE__ */ i(B.Provider, { value: e, children: t }) })
280
+ }
281
+ );
282
+ return e ? /* @__PURE__ */ i(ne, { direction: e, children: d }) : d;
252
283
  }
253
- ), fo = s.forwardRef(function({ className: o, ...t }, n) {
254
- const a = u();
255
- return /* @__PURE__ */ e(
256
- B,
284
+ ), Be = a.forwardRef(function({ asChild: e = !1, children: n, className: t, ...r }, s) {
285
+ const c = v(), l = e ? S(n) : void 0, d = !l || typeof l.type != "string" || l.type === "button";
286
+ return /* @__PURE__ */ i(
287
+ f.Trigger,
257
288
  {
258
- ref: n,
289
+ ref: s,
259
290
  "data-slot": "dropdown-menu-trigger",
260
- [c]: "dropdown-menu-trigger",
261
- className: p(
262
- !t.asChild && a.triggerReset,
263
- a.trigger,
264
- o
291
+ [g]: "dropdown-menu-trigger",
292
+ nativeButton: d,
293
+ className: w(
294
+ !e && c.triggerReset,
295
+ c.trigger,
296
+ t
265
297
  ),
266
- ...t
298
+ ...r,
299
+ ...l ? { render: l } : { children: n }
267
300
  }
268
301
  );
269
- }), wo = s.forwardRef(function({ className: o, ...t }, n) {
270
- return /* @__PURE__ */ e(
271
- N,
302
+ }), Ge = a.forwardRef(function({ asChild: e = !1, children: n, ...t }, r) {
303
+ return /* @__PURE__ */ i(
304
+ f.Group,
272
305
  {
273
- ref: n,
306
+ ref: r,
274
307
  "data-slot": "dropdown-menu-group",
275
- [c]: "dropdown-menu-group",
276
- className: o,
277
- ...t
308
+ [g]: "dropdown-menu-group",
309
+ ...t,
310
+ ...C(e, n)
278
311
  }
279
312
  );
280
- }), ho = s.forwardRef(function(o, t) {
281
- return /* @__PURE__ */ e(
282
- C,
313
+ }), A = a.createContext(!1), W = a.createContext(void 0);
314
+ function z(o) {
315
+ return o ?? void 0;
316
+ }
317
+ const Xe = a.forwardRef(function({ container: e, forceMount: n, ...t }, r) {
318
+ return /* @__PURE__ */ i(A.Provider, { value: !0, children: /* @__PURE__ */ i(W.Provider, { value: z(e), children: /* @__PURE__ */ i(
319
+ f.Portal,
283
320
  {
321
+ ref: r,
284
322
  "data-slot": "dropdown-menu-portal",
285
- [c]: "dropdown-menu-portal",
286
- ...o
323
+ [g]: "dropdown-menu-portal",
324
+ container: z(e),
325
+ keepMounted: n,
326
+ ...t
327
+ }
328
+ ) }) });
329
+ }), $e = a.forwardRef(function({ onOpenChange: e, children: n, ...t }, r) {
330
+ const [s, c] = a.useState(!1);
331
+ return /* @__PURE__ */ i(
332
+ f.SubmenuRoot,
333
+ {
334
+ "data-slot": "dropdown-menu-sub",
335
+ loopFocus: s,
336
+ closeParentOnEsc: !0,
337
+ onOpenChange: K(e, { submenu: !0 }),
338
+ ...t,
339
+ children: /* @__PURE__ */ i(_.Provider, { value: c, children: n })
287
340
  }
288
341
  );
289
- }), bo = s.forwardRef(function(o, t) {
290
- return /* @__PURE__ */ e(z, { "data-slot": "dropdown-menu-sub", ...o });
291
- }), xo = s.forwardRef(function({ className: o, ...t }, n) {
292
- return /* @__PURE__ */ e(
293
- A,
342
+ });
343
+ function G(o, e) {
344
+ return (n) => {
345
+ o == null || o(n), e == null || e(n.nativeEvent);
346
+ };
347
+ }
348
+ const Oe = a.forwardRef(function({ asChild: e = !1, children: n, onValueChange: t, ...r }, s) {
349
+ return /* @__PURE__ */ i(
350
+ f.RadioGroup,
294
351
  {
295
- ref: n,
352
+ ref: s,
296
353
  "data-slot": "dropdown-menu-radio-group",
297
- [c]: "dropdown-menu-radio-group",
298
- className: o,
299
- ...t
354
+ [g]: "dropdown-menu-radio-group",
355
+ onValueChange: t ? (c) => t(c) : void 0,
356
+ ...r,
357
+ ...C(e, n)
300
358
  }
301
359
  );
302
- }), yo = s.forwardRef(function({ className: o, inset: t, children: n, ...a }, i) {
303
- const d = u();
304
- return /* @__PURE__ */ b(
305
- W,
360
+ }), Ze = a.forwardRef(function({ asChild: e = !1, className: n, inset: t, textValue: r, children: s, ...c }, l) {
361
+ const d = v(), u = /* @__PURE__ */ i(Ce, { className: d.subTriggerChevron }), m = e ? S(s) : void 0, p = m ? {
362
+ render: a.cloneElement(
363
+ m,
364
+ void 0,
365
+ m.props.children,
366
+ u
367
+ )
368
+ } : {
369
+ children: /* @__PURE__ */ F(H, { children: [
370
+ s,
371
+ u
372
+ ] })
373
+ };
374
+ return /* @__PURE__ */ i(
375
+ f.SubmenuTrigger,
306
376
  {
307
- ref: i,
377
+ ref: l,
308
378
  "data-slot": "dropdown-menu-sub-trigger",
309
- [c]: "dropdown-menu-sub-trigger",
310
- className: p(
379
+ [g]: "dropdown-menu-sub-trigger",
380
+ label: r,
381
+ className: w(
311
382
  d.item,
312
383
  d.subTrigger,
313
384
  t && d.itemInset,
314
- o
385
+ n
315
386
  ),
316
- ...a,
317
- children: [
318
- n,
319
- /* @__PURE__ */ e(eo, { className: d.subTriggerChevron })
320
- ]
387
+ ...c,
388
+ ...p
321
389
  }
322
390
  );
323
- }), Do = s.forwardRef(function({ className: o, ...t }, n) {
324
- const a = u(), i = I(), d = S();
325
- return /* @__PURE__ */ e(
326
- E,
391
+ });
392
+ function U({
393
+ side: o,
394
+ sideOffset: e,
395
+ align: n,
396
+ alignOffset: t,
397
+ avoidCollisions: r = !0,
398
+ collisionBoundary: s,
399
+ collisionPadding: c = 0,
400
+ arrowPadding: l,
401
+ sticky: d = "partial"
402
+ }) {
403
+ const u = (Array.isArray(s) ? s : [s]).filter((m) => m != null);
404
+ return {
405
+ side: o,
406
+ sideOffset: e,
407
+ align: n,
408
+ alignOffset: t,
409
+ arrowPadding: l,
410
+ collisionPadding: c,
411
+ sticky: d === "always",
412
+ ...u.length > 0 ? { collisionBoundary: u.length === 1 ? u[0] : u } : {},
413
+ ...r ? {} : {
414
+ collisionAvoidance: {
415
+ side: "none",
416
+ align: "none",
417
+ fallbackAxisSide: "none"
418
+ }
419
+ }
420
+ };
421
+ }
422
+ function ee({
423
+ container: o,
424
+ forceMount: e,
425
+ hideWhenDetached: n,
426
+ placement: t,
427
+ popup: r
428
+ }) {
429
+ const s = v(), c = a.useContext(A), l = a.useContext(W), d = o === void 0 ? l : z(o), u = /* @__PURE__ */ i(
430
+ f.Positioner,
327
431
  {
328
- ref: n,
329
- "data-slot": "dropdown-menu-sub-content",
330
- [c]: "dropdown-menu-sub-content",
331
- ...i !== void 0 ? { "data-density": i } : {},
332
- ...d,
333
- className: p(a.popup, o),
334
- ...t
432
+ className: w(
433
+ s.positioner,
434
+ n && s.positionerHideWhenDetached
435
+ ),
436
+ ...t,
437
+ children: /* @__PURE__ */ i(A.Provider, { value: !1, children: /* @__PURE__ */ i(W.Provider, { value: d, children: r }) })
335
438
  }
336
439
  );
337
- }), Ro = s.forwardRef(function({ className: o, sideOffset: t = 4, container: n, ...a }, i) {
338
- const d = u(), x = I(), M = S();
339
- return /* @__PURE__ */ e(C, { container: n, children: /* @__PURE__ */ e(
340
- k,
440
+ return c && o === void 0 ? u : /* @__PURE__ */ i(f.Portal, { container: d, keepMounted: e, children: u });
441
+ }
442
+ const je = a.forwardRef(function({
443
+ asChild: e = !1,
444
+ className: n,
445
+ children: t,
446
+ forceMount: r,
447
+ loop: s,
448
+ hideWhenDetached: c,
449
+ updatePositionStrategy: l,
450
+ sideOffset: d,
451
+ alignOffset: u,
452
+ avoidCollisions: m,
453
+ collisionBoundary: p,
454
+ collisionPadding: x,
455
+ arrowPadding: M,
456
+ sticky: y,
457
+ ...D
458
+ }, L) {
459
+ const q = v(), k = J(), E = V(), I = a.useContext(B);
460
+ return Q(s), /* @__PURE__ */ i(
461
+ ee,
341
462
  {
342
- ref: i,
343
- "data-slot": "dropdown-menu-content",
344
- [c]: "dropdown-menu-content",
345
- ...x !== void 0 ? { "data-density": x } : {},
346
- ...M,
347
- sideOffset: t,
348
- className: p(d.popup, o),
349
- ...a
463
+ container: void 0,
464
+ forceMount: r,
465
+ hideWhenDetached: c,
466
+ placement: U({
467
+ sideOffset: d,
468
+ alignOffset: u,
469
+ avoidCollisions: m,
470
+ collisionBoundary: p,
471
+ collisionPadding: x,
472
+ arrowPadding: M,
473
+ sticky: y
474
+ }),
475
+ popup: /* @__PURE__ */ i(
476
+ f.Popup,
477
+ {
478
+ ref: L,
479
+ "data-slot": "dropdown-menu-sub-content",
480
+ [g]: "dropdown-menu-sub-content",
481
+ ...k !== void 0 ? { "data-density": k } : {},
482
+ ...E,
483
+ ...I ? { dir: I } : {},
484
+ className: w(q.popup, n),
485
+ ...D,
486
+ ...C(e, t)
487
+ }
488
+ )
350
489
  }
351
- ) });
352
- }), Co = s.forwardRef(function({ className: o, inset: t, destructive: n, ...a }, i) {
353
- const d = u();
354
- return /* @__PURE__ */ e(
355
- q,
490
+ );
491
+ }), Ye = a.forwardRef(function({
492
+ asChild: e = !1,
493
+ className: n,
494
+ children: t,
495
+ container: r,
496
+ forceMount: s,
497
+ loop: c,
498
+ onCloseAutoFocus: l,
499
+ hideWhenDetached: d,
500
+ updatePositionStrategy: u,
501
+ side: m,
502
+ sideOffset: p = 4,
503
+ align: x,
504
+ alignOffset: M,
505
+ avoidCollisions: y,
506
+ collisionBoundary: D,
507
+ collisionPadding: L,
508
+ arrowPadding: q,
509
+ sticky: k,
510
+ ...E
511
+ }, I) {
512
+ const oe = v(), X = J(), te = V(), $ = a.useContext(B);
513
+ return Q(c), /* @__PURE__ */ i(
514
+ ee,
356
515
  {
357
- ref: i,
358
- "data-slot": "dropdown-menu-item",
359
- [c]: "dropdown-menu-item",
360
- className: p(
361
- d.item,
362
- t && d.itemInset,
363
- n && d.itemDestructive,
364
- o
365
- ),
366
- ...a
516
+ container: r,
517
+ forceMount: s,
518
+ hideWhenDetached: d,
519
+ placement: U({
520
+ side: m,
521
+ sideOffset: p,
522
+ align: x,
523
+ alignOffset: M,
524
+ avoidCollisions: y,
525
+ collisionBoundary: D,
526
+ collisionPadding: L,
527
+ arrowPadding: q,
528
+ sticky: k
529
+ }),
530
+ popup: /* @__PURE__ */ i(
531
+ f.Popup,
532
+ {
533
+ ref: I,
534
+ "data-slot": "dropdown-menu-content",
535
+ [g]: "dropdown-menu-content",
536
+ ...X !== void 0 ? { "data-density": X } : {},
537
+ ...te,
538
+ ...$ ? { dir: $ } : {},
539
+ finalFocus: Se(l),
540
+ className: w(oe.popup, n),
541
+ ...E,
542
+ ...C(e, t)
543
+ }
544
+ )
367
545
  }
368
546
  );
369
- }), So = s.forwardRef(function({ className: o, children: t, checked: n, ...a }, i) {
370
- const d = u();
371
- return /* @__PURE__ */ b(
372
- T,
547
+ }), Ve = a.forwardRef(function({
548
+ asChild: e = !1,
549
+ children: n,
550
+ className: t,
551
+ inset: r,
552
+ destructive: s,
553
+ textValue: c,
554
+ onClick: l,
555
+ onSelect: d,
556
+ ...u
557
+ }, m) {
558
+ const p = v();
559
+ return /* @__PURE__ */ i(
560
+ f.Item,
373
561
  {
374
- ref: i,
375
- "data-slot": "dropdown-menu-checkbox-item",
376
- [c]: "dropdown-menu-checkbox-item",
377
- className: p(d.item, d.itemCheckboxRadio, o),
378
- checked: n,
379
- ...a,
380
- children: [
381
- /* @__PURE__ */ e("span", { className: d.itemIndicatorWrapper, children: /* @__PURE__ */ e(R, { className: d.itemIndicator, children: /* @__PURE__ */ e(to, {}) }) }),
562
+ ref: m,
563
+ "data-slot": "dropdown-menu-item",
564
+ [g]: "dropdown-menu-item",
565
+ label: c,
566
+ onClick: G(l, d),
567
+ className: w(
568
+ p.item,
569
+ r && p.itemInset,
570
+ s && p.itemDestructive,
382
571
  t
383
- ]
572
+ ),
573
+ ...u,
574
+ ...C(e, n)
384
575
  }
385
576
  );
386
- }), Io = s.forwardRef(function({ className: o, children: t, ...n }, a) {
387
- const i = u();
388
- return /* @__PURE__ */ b(
389
- G,
577
+ }), Je = a.forwardRef(function({
578
+ asChild: e = !1,
579
+ className: n,
580
+ children: t,
581
+ checked: r,
582
+ onCheckedChange: s,
583
+ textValue: c,
584
+ onClick: l,
585
+ onSelect: d,
586
+ ...u
587
+ }, m) {
588
+ const p = v(), x = r === "indeterminate", M = /* @__PURE__ */ i("span", { className: p.itemIndicatorWrapper, children: /* @__PURE__ */ i(f.CheckboxItemIndicator, { className: p.itemIndicator, children: /* @__PURE__ */ i(ye, {}) }) }), y = e ? S(t) : void 0;
589
+ return /* @__PURE__ */ i(
590
+ f.CheckboxItem,
390
591
  {
391
- ref: a,
392
- "data-slot": "dropdown-menu-radio-item",
393
- [c]: "dropdown-menu-radio-item",
394
- className: p(i.item, i.itemCheckboxRadio, o),
395
- ...n,
396
- children: [
397
- /* @__PURE__ */ e("span", { className: i.itemIndicatorWrapper, children: /* @__PURE__ */ e(R, { className: i.itemIndicator, children: /* @__PURE__ */ e(no, {}) }) }),
398
- t
399
- ]
592
+ ref: m,
593
+ "data-slot": "dropdown-menu-checkbox-item",
594
+ [g]: "dropdown-menu-checkbox-item",
595
+ label: c,
596
+ onClick: G(l, d),
597
+ className: w(p.item, p.itemCheckboxRadio, n),
598
+ checked: x ? !0 : r,
599
+ ...x ? { "aria-checked": "mixed" } : {},
600
+ onCheckedChange: s ? (D) => s(x ? !0 : D) : void 0,
601
+ ...u,
602
+ ...y ? {
603
+ render: a.cloneElement(
604
+ y,
605
+ void 0,
606
+ M,
607
+ y.props.children
608
+ )
609
+ } : {
610
+ children: /* @__PURE__ */ F(H, { children: [
611
+ M,
612
+ t
613
+ ] })
614
+ }
400
615
  }
401
616
  );
402
- }), Mo = s.forwardRef(function({ className: o, inset: t, ...n }, a) {
403
- const i = u();
404
- return /* @__PURE__ */ e(
405
- L,
617
+ }), Ke = a.forwardRef(function({
618
+ asChild: e = !1,
619
+ className: n,
620
+ children: t,
621
+ textValue: r,
622
+ onClick: s,
623
+ onSelect: c,
624
+ ...l
625
+ }, d) {
626
+ const u = v(), m = /* @__PURE__ */ i("span", { className: u.itemIndicatorWrapper, children: /* @__PURE__ */ i(f.RadioItemIndicator, { className: u.itemIndicator, children: /* @__PURE__ */ i(Me, {}) }) }), p = e ? S(t) : void 0;
627
+ return /* @__PURE__ */ i(
628
+ f.RadioItem,
406
629
  {
407
- ref: a,
408
- "data-slot": "dropdown-menu-label",
409
- [c]: "dropdown-menu-label",
410
- className: p(
411
- i.label,
412
- t && i.itemInset,
413
- o
414
- ),
415
- ...n
630
+ ref: d,
631
+ "data-slot": "dropdown-menu-radio-item",
632
+ [g]: "dropdown-menu-radio-item",
633
+ label: r,
634
+ onClick: G(s, c),
635
+ className: w(u.item, u.itemCheckboxRadio, n),
636
+ ...l,
637
+ ...p ? {
638
+ render: a.cloneElement(
639
+ p,
640
+ void 0,
641
+ m,
642
+ p.props.children
643
+ )
644
+ } : {
645
+ children: /* @__PURE__ */ F(H, { children: [
646
+ m,
647
+ t
648
+ ] })
649
+ }
416
650
  }
417
651
  );
418
- }), vo = s.forwardRef(function({ className: o, ...t }, n) {
419
- const a = u();
420
- return /* @__PURE__ */ e(
421
- X,
652
+ }), Qe = a.forwardRef(function({ asChild: e = !1, children: n, className: t, inset: r, ...s }, c) {
653
+ const l = v(), d = C(e, n);
654
+ return ae({
655
+ render: "render" in d ? d.render : /* @__PURE__ */ i("div", {}),
656
+ ref: c,
657
+ props: re(
658
+ {
659
+ "data-slot": "dropdown-menu-label",
660
+ [g]: "dropdown-menu-label",
661
+ className: w(
662
+ l.label,
663
+ r && l.itemInset,
664
+ t
665
+ )
666
+ },
667
+ s,
668
+ "children" in d ? { children: d.children } : {}
669
+ )
670
+ });
671
+ }), Ue = a.forwardRef(function({ asChild: e = !1, children: n, className: t, ...r }, s) {
672
+ const c = v();
673
+ return /* @__PURE__ */ i(
674
+ ie,
422
675
  {
423
- ref: n,
676
+ ref: s,
424
677
  "data-slot": "dropdown-menu-separator",
425
- [c]: "dropdown-menu-separator",
426
- className: p(a.separator, o),
427
- ...t
678
+ [g]: "dropdown-menu-separator",
679
+ className: w(c.separator, t),
680
+ ...r,
681
+ ...C(e, n)
428
682
  }
429
683
  );
430
- }), To = s.forwardRef(function({ className: o, ...t }, n) {
431
- const a = u();
432
- return /* @__PURE__ */ e(
684
+ }), eo = a.forwardRef(function({ className: e, ...n }, t) {
685
+ const r = v();
686
+ return /* @__PURE__ */ i(
433
687
  "span",
434
688
  {
435
- ref: n,
689
+ ref: t,
436
690
  "data-slot": "dropdown-menu-shortcut",
437
- [c]: "dropdown-menu-shortcut",
438
- className: p(a.shortcut, o),
439
- ...t
691
+ [g]: "dropdown-menu-shortcut",
692
+ className: w(r.shortcut, e),
693
+ ...n
440
694
  }
441
695
  );
442
696
  });
443
697
  export {
444
- go as DropdownMenu,
445
- So as DropdownMenuCheckboxItem,
446
- Ro as DropdownMenuContent,
447
- wo as DropdownMenuGroup,
448
- Co as DropdownMenuItem,
449
- Mo as DropdownMenuLabel,
450
- ho as DropdownMenuPortal,
451
- xo as DropdownMenuRadioGroup,
452
- Io as DropdownMenuRadioItem,
453
- vo as DropdownMenuSeparator,
454
- To as DropdownMenuShortcut,
455
- bo as DropdownMenuSub,
456
- Do as DropdownMenuSubContent,
457
- yo as DropdownMenuSubTrigger,
458
- fo as DropdownMenuTrigger
698
+ _e as DropdownMenu,
699
+ Je as DropdownMenuCheckboxItem,
700
+ Ye as DropdownMenuContent,
701
+ Ge as DropdownMenuGroup,
702
+ Ve as DropdownMenuItem,
703
+ Qe as DropdownMenuLabel,
704
+ Xe as DropdownMenuPortal,
705
+ Oe as DropdownMenuRadioGroup,
706
+ Ke as DropdownMenuRadioItem,
707
+ Ue as DropdownMenuSeparator,
708
+ eo as DropdownMenuShortcut,
709
+ $e as DropdownMenuSub,
710
+ je as DropdownMenuSubContent,
711
+ Ze as DropdownMenuSubTrigger,
712
+ Be as DropdownMenuTrigger
459
713
  };
460
714
  //# sourceMappingURL=dropdown-menu.js.map