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

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 (274) hide show
  1. package/README.md +37 -1
  2. package/codemods/README.md +182 -0
  3. package/codemods/format.ts +86 -0
  4. package/codemods/migrate/base-elements/accordion.ts +132 -0
  5. package/codemods/migrate/base-elements/alert.ts +81 -0
  6. package/codemods/migrate/base-elements/avatar.ts +116 -0
  7. package/codemods/migrate/base-elements/button.ts +188 -0
  8. package/codemods/migrate/base-elements/checkbox.ts +17 -0
  9. package/codemods/migrate/base-elements/chip.ts +87 -0
  10. package/codemods/migrate/base-elements/chip360.ts +162 -0
  11. package/codemods/migrate/base-elements/circular-progress.ts +73 -0
  12. package/codemods/migrate/base-elements/dialog.ts +323 -0
  13. package/codemods/migrate/base-elements/divider.ts +61 -0
  14. package/codemods/migrate/base-elements/feedback-message.ts +95 -0
  15. package/codemods/migrate/base-elements/icon-button.ts +203 -0
  16. package/codemods/migrate/base-elements/index.ts +55 -0
  17. package/codemods/migrate/base-elements/mui-props.ts +29 -0
  18. package/codemods/migrate/base-elements/notification.ts +98 -0
  19. package/codemods/migrate/base-elements/paper.ts +78 -0
  20. package/codemods/migrate/base-elements/select.ts +328 -0
  21. package/codemods/migrate/base-elements/shared.ts +910 -0
  22. package/codemods/migrate/base-elements/skeleton.ts +83 -0
  23. package/codemods/migrate/base-elements/switch.ts +19 -0
  24. package/codemods/migrate/base-elements/tabs.ts +222 -0
  25. package/codemods/migrate/base-elements/text-field.ts +425 -0
  26. package/codemods/migrate/base-elements/toggle-button.ts +185 -0
  27. package/codemods/migrate/base-elements/tooltip.ts +231 -0
  28. package/codemods/migrate/base-elements/typography.ts +247 -0
  29. package/codemods/migrate/base-elements/unsupported.ts +277 -0
  30. package/codemods/migrate/from-base-elements.ts +26 -0
  31. package/codemods/migrate/from-volt.ts +26 -0
  32. package/codemods/migrate/lib/imports.ts +399 -0
  33. package/codemods/migrate/lib/jsx.ts +313 -0
  34. package/codemods/migrate/lib/run-migration.ts +528 -0
  35. package/codemods/migrate/lib/source.ts +6 -0
  36. package/codemods/migrate/lib/todo.ts +107 -0
  37. package/codemods/migrate/lib/types.ts +114 -0
  38. package/codemods/migrate/volt/class-helpers.ts +37 -0
  39. package/codemods/migrate/volt/index.ts +18 -0
  40. package/codemods/migrate/volt/pagination.ts +26 -0
  41. package/codemods/migrate/volt/same-name.ts +293 -0
  42. package/codemods/migrate/volt/stylesheets.ts +18 -0
  43. package/codemods/migrate/volt/tanstack-types.ts +20 -0
  44. package/codemods/radix-to-base-ui.ts +677 -0
  45. package/dist/_virtual/_zenith-runtime-family_accordion.js +7 -0
  46. package/dist/_virtual/_zenith-runtime-family_accordion.js.map +1 -0
  47. package/dist/_virtual/_zenith-runtime-family_alert-dialog.js +7 -0
  48. package/dist/_virtual/_zenith-runtime-family_alert-dialog.js.map +1 -0
  49. package/dist/_virtual/_zenith-runtime-family_avatar.js +7 -0
  50. package/dist/_virtual/_zenith-runtime-family_avatar.js.map +1 -0
  51. package/dist/_virtual/_zenith-runtime-family_button.js +7 -0
  52. package/dist/_virtual/_zenith-runtime-family_button.js.map +1 -0
  53. package/dist/_virtual/_zenith-runtime-family_checkbox.js +7 -0
  54. package/dist/_virtual/_zenith-runtime-family_checkbox.js.map +1 -0
  55. package/dist/_virtual/_zenith-runtime-family_csp-provider.js +7 -0
  56. package/dist/_virtual/_zenith-runtime-family_csp-provider.js.map +1 -0
  57. package/dist/_virtual/_zenith-runtime-family_dialog.js +7 -0
  58. package/dist/_virtual/_zenith-runtime-family_dialog.js.map +1 -0
  59. package/dist/_virtual/_zenith-runtime-family_direction-provider.js +8 -0
  60. package/dist/_virtual/_zenith-runtime-family_direction-provider.js.map +1 -0
  61. package/dist/_virtual/_zenith-runtime-family_menu.js +7 -0
  62. package/dist/_virtual/_zenith-runtime-family_menu.js.map +1 -0
  63. package/dist/_virtual/_zenith-runtime-family_merge-props.js +11 -0
  64. package/dist/_virtual/_zenith-runtime-family_merge-props.js.map +1 -0
  65. package/dist/_virtual/_zenith-runtime-family_popover.js +7 -0
  66. package/dist/_virtual/_zenith-runtime-family_popover.js.map +1 -0
  67. package/dist/_virtual/_zenith-runtime-family_radio-group.js +7 -0
  68. package/dist/_virtual/_zenith-runtime-family_radio-group.js.map +1 -0
  69. package/dist/_virtual/_zenith-runtime-family_radio.js +7 -0
  70. package/dist/_virtual/_zenith-runtime-family_radio.js.map +1 -0
  71. package/dist/_virtual/_zenith-runtime-family_scroll-area.js +7 -0
  72. package/dist/_virtual/_zenith-runtime-family_scroll-area.js.map +1 -0
  73. package/dist/_virtual/_zenith-runtime-family_select.js +7 -0
  74. package/dist/_virtual/_zenith-runtime-family_select.js.map +1 -0
  75. package/dist/_virtual/_zenith-runtime-family_separator.js +7 -0
  76. package/dist/_virtual/_zenith-runtime-family_separator.js.map +1 -0
  77. package/dist/_virtual/_zenith-runtime-family_switch.js +7 -0
  78. package/dist/_virtual/_zenith-runtime-family_switch.js.map +1 -0
  79. package/dist/_virtual/_zenith-runtime-family_tabs.js +7 -0
  80. package/dist/_virtual/_zenith-runtime-family_tabs.js.map +1 -0
  81. package/dist/_virtual/_zenith-runtime-family_toast.js +7 -0
  82. package/dist/_virtual/_zenith-runtime-family_toast.js.map +1 -0
  83. package/dist/_virtual/_zenith-runtime-family_toggle-group.js +7 -0
  84. package/dist/_virtual/_zenith-runtime-family_toggle-group.js.map +1 -0
  85. package/dist/_virtual/_zenith-runtime-family_toggle.js +7 -0
  86. package/dist/_virtual/_zenith-runtime-family_toggle.js.map +1 -0
  87. package/dist/_virtual/_zenith-runtime-family_tooltip.js +7 -0
  88. package/dist/_virtual/_zenith-runtime-family_tooltip.js.map +1 -0
  89. package/dist/_virtual/_zenith-runtime-family_use-render.js +7 -0
  90. package/dist/_virtual/_zenith-runtime-family_use-render.js.map +1 -0
  91. package/dist/components/accordion/accordion.js +179 -96
  92. package/dist/components/accordion/accordion.js.map +1 -1
  93. package/dist/components/alert-dialog/alert-dialog.js +243 -206
  94. package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
  95. package/dist/components/avatar/avatar.js +94 -82
  96. package/dist/components/avatar/avatar.js.map +1 -1
  97. package/dist/components/badge/badge.js +11 -11
  98. package/dist/components/breadcrumb/breadcrumb.js +69 -70
  99. package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
  100. package/dist/components/button/button.js +119 -102
  101. package/dist/components/button/button.js.map +1 -1
  102. package/dist/components/checkbox/checkbox.js +68 -51
  103. package/dist/components/checkbox/checkbox.js.map +1 -1
  104. package/dist/components/date-range-picker/date-range-picker.js +100 -90
  105. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  106. package/dist/components/date-time-picker/date-time-picker-input.js +118 -108
  107. package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
  108. package/dist/components/date-time-picker/date-time-picker-panel.js +91 -94
  109. package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
  110. package/dist/components/dialog/dialog.js +238 -228
  111. package/dist/components/dialog/dialog.js.map +1 -1
  112. package/dist/components/drawer/drawer.js +259 -321
  113. package/dist/components/drawer/drawer.js.map +1 -1
  114. package/dist/components/dropdown-menu/dropdown-menu.js +533 -279
  115. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  116. package/dist/components/field/field-combobox.js +205 -186
  117. package/dist/components/field/field-combobox.js.map +1 -1
  118. package/dist/components/field/field-select.js +37 -22
  119. package/dist/components/field/field-select.js.map +1 -1
  120. package/dist/components/list/list-sortable.js +104 -0
  121. package/dist/components/list/list-sortable.js.map +1 -0
  122. package/dist/components/list/list.js +246 -324
  123. package/dist/components/list/list.js.map +1 -1
  124. package/dist/components/option-card/option-card.js +121 -117
  125. package/dist/components/option-card/option-card.js.map +1 -1
  126. package/dist/components/pill/pill.js +7 -7
  127. package/dist/components/popover/popover.js +223 -127
  128. package/dist/components/popover/popover.js.map +1 -1
  129. package/dist/components/radio/radio-group-base.js +54 -0
  130. package/dist/components/radio/radio-group-base.js.map +1 -0
  131. package/dist/components/radio/radio.js +71 -60
  132. package/dist/components/radio/radio.js.map +1 -1
  133. package/dist/components/scroll-area/scroll-area.js +142 -108
  134. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  135. package/dist/components/scroll-overflow/scroll-overflow.js +156 -127
  136. package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
  137. package/dist/components/segmented-control/segmented-control.js +93 -81
  138. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  139. package/dist/components/select/select.js +485 -310
  140. package/dist/components/select/select.js.map +1 -1
  141. package/dist/components/separator/separator.js.map +1 -1
  142. package/dist/components/slot/compose-as-child.js +15 -12
  143. package/dist/components/slot/compose-as-child.js.map +1 -1
  144. package/dist/components/switch/switch.js +75 -68
  145. package/dist/components/switch/switch.js.map +1 -1
  146. package/dist/components/table/table-pagination.js +212 -175
  147. package/dist/components/table/table-pagination.js.map +1 -1
  148. package/dist/components/tabs/tabs.js +193 -190
  149. package/dist/components/tabs/tabs.js.map +1 -1
  150. package/dist/components/toast/toast.js +610 -148
  151. package/dist/components/toast/toast.js.map +1 -1
  152. package/dist/components/toggle/toggle-group.js +143 -32
  153. package/dist/components/toggle/toggle-group.js.map +1 -1
  154. package/dist/components/toggle/toggle.js +82 -49
  155. package/dist/components/toggle/toggle.js.map +1 -1
  156. package/dist/components/tooltip/tooltip.js +298 -138
  157. package/dist/components/tooltip/tooltip.js.map +1 -1
  158. package/dist/index.d.ts +2336 -2130
  159. package/dist/index.js +24 -23
  160. package/dist/list/sortable/index.d.ts +29 -0
  161. package/dist/list/sortable/index.js +5 -0
  162. package/dist/{_virtual → list/sortable}/index.js.map +1 -1
  163. package/dist/packages/tokens/dist/delivery/index.js +10 -10
  164. package/dist/packages/tokens/dist/delivery/index.js.map +1 -1
  165. package/dist/packages/tokens/dist/generated/core.generated.js +6 -15
  166. package/dist/packages/tokens/dist/generated/core.generated.js.map +1 -1
  167. package/dist/packages/tokens/dist/generated/palette.generated.js +4 -5
  168. package/dist/packages/tokens/dist/generated/palette.generated.js.map +1 -1
  169. package/dist/packages/tokens/dist/generated/palette.meta.generated.js +5 -0
  170. package/dist/packages/tokens/dist/generated/palette.meta.generated.js.map +1 -0
  171. package/dist/packages/tokens/dist/install.js +40 -17
  172. package/dist/packages/tokens/dist/install.js.map +1 -1
  173. package/dist/renderer/runtime-contract.generated.js +8 -0
  174. package/dist/renderer/runtime-contract.generated.js.map +1 -0
  175. package/dist/renderer/served.js +39 -0
  176. package/dist/renderer/served.js.map +1 -0
  177. package/dist/tokens/core.meta.generated.js +2 -2
  178. package/dist/tokens/core.meta.generated.js.map +1 -1
  179. package/dist/tokens/index.d.ts +1028 -1028
  180. package/dist/tokens/index.js +863 -863
  181. package/dist/tokens/index.js.map +1 -1
  182. package/dist/tokens/palette.meta.generated.js +5 -0
  183. package/dist/tokens/palette.meta.generated.js.map +1 -0
  184. package/dist/tokens.json +1 -1
  185. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +57 -62
  186. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +1 -1
  187. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +32 -38
  188. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +1 -1
  189. package/package.json +29 -21
  190. package/scripts/migration-diagnostics-core.mjs +302 -10
  191. package/scripts/migration-diagnostics.mjs +31 -8
  192. package/scripts/migration-sweep.mjs +10 -10
  193. package/testing/setup.cjs +87 -0
  194. package/dist/_virtual/index.js +0 -6
  195. package/dist/_virtual/index2.js +0 -5
  196. package/dist/_virtual/index2.js.map +0 -1
  197. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
  198. package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  199. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
  200. package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  201. package/dist/tokens/palette.generated.js +0 -5
  202. package/dist/tokens/palette.generated.js.map +0 -1
  203. package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js +0 -512
  204. package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  205. package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js +0 -396
  206. package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  207. 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
  208. 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
  209. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
  210. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  211. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  212. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  213. package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js +0 -7
  214. package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js.map +0 -1
  215. package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js +0 -240
  216. package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js.map +0 -1
  217. package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js +0 -128
  218. 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
  219. package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js +0 -25
  220. package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js.map +0 -1
  221. package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js +0 -76
  222. package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js.map +0 -1
  223. package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js +0 -252
  224. package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js.map +0 -1
  225. package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js +0 -121
  226. package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js.map +0 -1
  227. package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js +0 -49
  228. package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js.map +0 -1
  229. package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js +0 -11
  230. package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js.map +0 -1
  231. package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js +0 -228
  232. 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
  233. package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js +0 -653
  234. package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js.map +0 -1
  235. package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js +0 -244
  236. package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js.map +0 -1
  237. package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js +0 -222
  238. package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js.map +0 -1
  239. package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js +0 -239
  240. 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
  241. package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js +0 -184
  242. 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
  243. package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js +0 -535
  244. 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
  245. package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js +0 -863
  246. package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js.map +0 -1
  247. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +0 -63
  248. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +0 -1
  249. package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js +0 -133
  250. package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js.map +0 -1
  251. package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js +0 -164
  252. package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js.map +0 -1
  253. package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js +0 -138
  254. 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
  255. package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js +0 -34
  256. package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js.map +0 -1
  257. package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js +0 -340
  258. package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  259. 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
  260. 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
  261. package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js +0 -9
  262. 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
  263. package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js +0 -28
  264. 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
  265. package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js +0 -33
  266. 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
  267. package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js +0 -747
  268. package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js.map +0 -1
  269. 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
  270. 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
  271. 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
  272. 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
  273. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js +0 -11
  274. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js.map +0 -1
@@ -0,0 +1,277 @@
1
+ /**
2
+ * base-elements exports with no Zenith counterpart, or whose Zenith namesake has a different
3
+ * API. Each stays on its legacy import with its replacement in one line; nothing here is a
4
+ * syntactic rewrite. Names that other rules migrate structurally are not listed.
5
+ */
6
+ import type { MigrateContext } from "../lib/types"
7
+
8
+ const ICON =
9
+ "no icon component in Zenith: import the glyph from your icon package (lucide-react) sized 1rem; name= strings have no equivalent"
10
+ const THEME =
11
+ "no theme object: colours and spacing are tokens.* from @epilot/zenith-react; AppearanceBoundary at the surface root replaces ThemeProvider"
12
+ const STYLES =
13
+ "makeZenithStyles({ slot: { …tokens.* } }) + mergeClasses(styles.slot, className); theme.spacing(n) → tokens.spacingGroup{n}, theme.palette.* → tokens.*"
14
+ const SPACING =
15
+ "no spacing components: padding via makeZenithStyles (scale n → tokens.spacingElement{n} / spacingGroup{n})"
16
+ const TEXT_FIELD =
17
+ "Field + FieldLabel + FieldInput; apply the mask with rifm on FieldInput's value/onChange; errors go in FieldError"
18
+ const DRAWER =
19
+ 'Drawer + DrawerContent side="right" (DrawerHeader/DrawerTitle, DrawerFooter with the save/discard Buttons); width via makeZenithStyles; open/onClose → open/onOpenChange'
20
+ const DND =
21
+ "react-beautiful-dnd is not re-exported: import it from react-beautiful-dnd (add the dependency), or move to @dnd-kit like DataTableHeaderDraggable"
22
+ const TABLE =
23
+ "Table + TableHeader/TableBody/TableRow/TableHead/TableCell from @epilot/zenith-react (same tags, no MUI props; TableContainer → a div, TableSortLabel → DataTableColumnHeader)"
24
+ const PICKERS =
25
+ "DateTimePicker / DateRangePicker / TimePicker from @epilot/zenith-react (value/onChange with Date; no utils provider)"
26
+ const LIST =
27
+ "List + ListItem + ListItemText/ListItemDescription/ListItemActions from @epilot/zenith-react (prefix/suffix become children)"
28
+ const CARD =
29
+ "Card + CardHeader/CardTitle/CardDescription/CardContent/CardFooter from @epilot/zenith-react (title/subheader props become children; CardMedia → an <img>)"
30
+ const MENU =
31
+ "DropdownMenu + DropdownMenuTrigger + DropdownMenuContent + DropdownMenuItem (anchorEl/open/onClose → open/onOpenChange)"
32
+ const STEPPER =
33
+ "no Stepper in Zenith: an ordered list via makeZenithStyles, or Tabs for step navigation"
34
+ const TRANSITION =
35
+ "no transition primitive: a CSS transition via makeZenithStyles (Accordion for disclosure, Drawer for slide-in panels)"
36
+
37
+ export const HINTS: Record<string, string> = {
38
+ // Layout
39
+ Grid: 'no Grid: a flex or CSS-grid wrapper via makeZenithStyles (display: "grid", gap: tokens.spacingGroup2); container/item/xs become columns in that style',
40
+ GridProps: "no Grid (see Grid)",
41
+ Box: "no Box: a <div> with makeZenithStyles; p/m/display props become style atoms with tokens.spacing*",
42
+ BoxProps: "no Box (see Box)",
43
+ InsetSpacing: SPACING,
44
+ InsetSquishSpacing: SPACING,
45
+ InsetStretchSpacing: SPACING,
46
+ StackSpacing:
47
+ 'a flex column via makeZenithStyles (display: "flex", flexDirection: "column", gap: tokens.spacingElement{scale})',
48
+ InlineSpacing:
49
+ 'a flex row via makeZenithStyles (display: "flex", gap: tokens.spacingElement{scale})',
50
+ SpacingProps: SPACING,
51
+ Hidden:
52
+ "no Hidden: a media query in makeZenithStyles ('@media (max-width: …)': { display: \"none\" })",
53
+ HiddenProps: "no Hidden (see Hidden)",
54
+ AppBar:
55
+ 'no AppBar: a header band via makeZenithStyles (Surface kind="section" for the background)',
56
+ AppBarProps: "no AppBar (see AppBar)",
57
+ Toolbar: "no Toolbar: a flex row via makeZenithStyles",
58
+ ToolbarProps: "no Toolbar (see Toolbar)",
59
+ // Icons
60
+ Icon: ICON,
61
+ EIcon: ICON,
62
+ SvgIcon: ICON,
63
+ IconProps: ICON,
64
+ EIconProps: ICON,
65
+ SvgIconProps: ICON,
66
+ IconName: ICON,
67
+ IconsId: ICON,
68
+ FontSize: ICON,
69
+ // Theme and styling
70
+ useTheme: THEME,
71
+ Theme: THEME,
72
+ EpilotTheme: THEME,
73
+ DefaultEpilotTheme: THEME,
74
+ DefaultEpilotThemeValue: THEME,
75
+ ThemeProvider: THEME,
76
+ makeStyles: STYLES,
77
+ withStyles: STYLES,
78
+ createStyles: STYLES,
79
+ getContrastRatio:
80
+ "MUI colour helper: not in Zenith; inline a small helper or use tokens' semantic colours",
81
+ rgbToHex: "MUI colour helper: not in Zenith; inline it",
82
+ hexToRgb: "MUI colour helper: not in Zenith; inline it",
83
+ classNames:
84
+ "mergeClasses from @epilot/zenith-react (strings and falsy values only; object syntax becomes cond && cls)",
85
+ clsx: "mergeClasses from @epilot/zenith-react (strings and falsy values only; object syntax becomes cond && cls)",
86
+ CssBaseline:
87
+ "drop it: AppearanceBoundary at the surface root carries Zenith's reset",
88
+ ScopedCssBaseline:
89
+ "drop it: AppearanceBoundary at the surface root carries Zenith's reset",
90
+ // Components without an equivalent
91
+ Badge:
92
+ "MUI count/dot badge has no equivalent (Zenith's Badge is a status label): an absolutely positioned span via makeZenithStyles, or Pill for a count",
93
+ BadgeProps: "no count badge (see Badge)",
94
+ LinearProgress:
95
+ "no progress bar in Zenith yet: a two-div bar via makeZenithStyles (track tokens.gray4, fill tokens.accentSolid), or Spinner when indeterminate",
96
+ LinearProgressProps: "no progress bar (see LinearProgress)",
97
+ MaskedTextField: TEXT_FIELD,
98
+ MaskedTextFieldProps: TEXT_FIELD,
99
+ CurrencyTextField: TEXT_FIELD,
100
+ CurrencyTextFieldProps: TEXT_FIELD,
101
+ ValidatedTextField:
102
+ "Field + FieldLabel + FieldInput with your own validation; the message goes in FieldError",
103
+ ValidatedTextFieldProps: "Field + FieldInput (see ValidatedTextField)",
104
+ InlineTextField:
105
+ "Field + FieldInput variant styled inline via makeZenithStyles",
106
+ InlineTextFieldProps: "Field + FieldInput (see InlineTextField)",
107
+ Drawer360: DRAWER,
108
+ Drawer360WithContext: DRAWER,
109
+ Drawer360Props: DRAWER,
110
+ Drawer360Provider:
111
+ "no drawer context: hold `open` in useState and pass open/onOpenChange to Drawer",
112
+ useDrawer360Context:
113
+ "no drawer context: hold `open` in useState and pass open/onOpenChange to Drawer",
114
+ Drawer360Locales:
115
+ "no drawer locales: the Buttons in DrawerFooter take their own labels",
116
+ ClickAwayListener:
117
+ "no ClickAwayListener: Popover/DropdownMenu dismiss on outside press themselves; otherwise a document pointerdown listener in useEffect",
118
+ Collapse: TRANSITION,
119
+ CollapseProps: TRANSITION,
120
+ Slide: TRANSITION,
121
+ SlideProps: TRANSITION,
122
+ Zoom: TRANSITION,
123
+ ZoomProps: TRANSITION,
124
+ Rating: "no Rating in Zenith: a ToggleGroup of star icons",
125
+ RatingProps: "no Rating (see Rating)",
126
+ FeedbackRating: "no Rating in Zenith: a ToggleGroup of star icons",
127
+ FeedbackRatingProps: "no Rating (see FeedbackRating)",
128
+ Stepper: STEPPER,
129
+ StepperProps: STEPPER,
130
+ Step: STEPPER,
131
+ StepProps: STEPPER,
132
+ StepLabel: STEPPER,
133
+ StepLabelProps: STEPPER,
134
+ StepContent: STEPPER,
135
+ StepContentProps: STEPPER,
136
+ StepConnector: STEPPER,
137
+ StepConnectorProps: STEPPER,
138
+ StepIconProps: STEPPER,
139
+ MobileStepper: STEPPER,
140
+ MobileStepperProps: STEPPER,
141
+ TreeView: "no Tree in Zenith yet: nested List/ListGroup, or Accordion",
142
+ TreeItem: "no Tree in Zenith yet: nested List/ListGroup, or Accordion",
143
+ Image: "an <img> (object-fit via makeZenithStyles)",
144
+ ImageProps: "an <img> (see Image)",
145
+ Link: 'no Link: an <a> styled via makeZenithStyles (color: tokens.accentText), or Button variant="ghost" asChild around a router link',
146
+ LinkProps: "no Link (see Link)",
147
+ // react-beautiful-dnd re-exports
148
+ DragDropContext: DND,
149
+ Droppable: DND,
150
+ Draggable: DND,
151
+ resetServerContext: DND,
152
+ useMouseSensor: DND,
153
+ useKeyboardSensor: DND,
154
+ useTouchSensor: DND,
155
+ DropResult: DND,
156
+ DragStart: DND,
157
+ DragUpdate: DND,
158
+ DraggableLocation: DND,
159
+ DraggableProvided: DND,
160
+ DroppableProvided: DND,
161
+ DraggableStateSnapshot: DND,
162
+ DroppableStateSnapshot: DND,
163
+ DraggableProps: DND,
164
+ DroppableProps: DND,
165
+ ResponderProvided: DND,
166
+ DraggableProvidedDragHandleProps: DND,
167
+ DraggableProvidedDraggableProps: DND,
168
+ DroppableProvidedProps: DND,
169
+ DraggableRubric: DND,
170
+ DraggableChildrenFn: DND,
171
+ OnDragEndResponder: DND,
172
+ OnDragStartResponder: DND,
173
+ OnDragUpdateResponder: DND,
174
+ DragDropContextProps: DND,
175
+ // Same name, different API, or a different Zenith family
176
+ Breadcrumb:
177
+ "Breadcrumb + BreadcrumbItem href= from @epilot/zenith-react (children become BreadcrumbItem; the last gets isCurrent)",
178
+ BreadcrumbsProps: "Breadcrumb + BreadcrumbItem (see Breadcrumb)",
179
+ Card: CARD,
180
+ CardProps: CARD,
181
+ CardHeader: CARD,
182
+ CardHeaderProps: CARD,
183
+ CardContent: CARD,
184
+ CardContentProps: CARD,
185
+ CardActions: CARD,
186
+ CardActionsProps: CARD,
187
+ CardActionArea:
188
+ 'Button variant="ghost" asChild around the card body, or an onClick on Card',
189
+ CardActionAreaProps: "see CardActionArea",
190
+ CardMedia: "an <img> inside CardContent (object-fit via makeZenithStyles)",
191
+ CardMediaProps: "see CardMedia",
192
+ Menu: MENU,
193
+ MenuProps: MENU,
194
+ MenuList: MENU,
195
+ MenuListProps: MENU,
196
+ ListItemIcon:
197
+ "the icon is a plain child of DropdownMenuItem or ListItem (1rem)",
198
+ Popover:
199
+ "Popover + PopoverTrigger + PopoverContent from @epilot/zenith-react (open/anchorEl/onClose → open/onOpenChange + PopoverAnchor; anchorOrigin → side/align)",
200
+ PopoverProps: "Popover + PopoverContent (see Popover)",
201
+ PopoverOrigin: "PopoverContent side/align (see Popover)",
202
+ Radio:
203
+ "RadioGroup + RadioGroupItem value= from @epilot/zenith-react, labelled by a Label htmlFor the item (onChange(e) → onValueChange(value))",
204
+ RadioProps: "RadioGroupItem (see Radio)",
205
+ RadioGroup:
206
+ "RadioGroup from @epilot/zenith-react takes value/onValueChange and RadioGroupItem children (not name/onChange with Radio)",
207
+ RadioGroupProps: "RadioGroup (see RadioGroup)",
208
+ Snackbar:
209
+ "toast() from @epilot/zenith-react, with one <Toaster /> mounted at the surface root",
210
+ SnackbarProps: "toast() (see Snackbar)",
211
+ Table: TABLE,
212
+ TableProps: TABLE,
213
+ TableBody: TABLE,
214
+ TableBodyProps: TABLE,
215
+ TableCell: TABLE,
216
+ TableCellProps: TABLE,
217
+ TableContainer: TABLE,
218
+ TableContainerProps: TABLE,
219
+ TableHead: TABLE,
220
+ TableHeadProps: TABLE,
221
+ TableRow: TABLE,
222
+ TableRowProps: TABLE,
223
+ TableSortLabel: TABLE,
224
+ TablePagination:
225
+ "TablePagination from @epilot/zenith-react takes page/pageSize/totalItems/onPageChange/onPageSizeChange (not count/rowsPerPage/onChangePage)",
226
+ TableColumnSettings:
227
+ "DataTableColumnVisibility + DataTableColumnOrder from @epilot/zenith-react",
228
+ TableColumnSettingsProps: "see TableColumnSettings",
229
+ TableColumnSetting: "see TableColumnSettings",
230
+ TableColumnSettingsLocale: "see TableColumnSettings",
231
+ TableSettingsColumn: "see TableColumnSettings",
232
+ Autocomplete:
233
+ "FieldCombobox (FieldComboboxTrigger/Input/Content/List/Item) from @epilot/zenith-react; options → FieldComboboxItem children",
234
+ AutocompleteProps: "FieldCombobox (see Autocomplete)",
235
+ useAutocompleteStyles: "FieldCombobox styles itself (see Autocomplete)",
236
+ AutocompleteX: "FieldCombobox (see Autocomplete)",
237
+ AutocompleteXProps: "FieldCombobox (see Autocomplete)",
238
+ Pagination:
239
+ "TablePagination from @epilot/zenith-react, or getPageNumbers + Buttons for a bare pager",
240
+ PaginationProps: "TablePagination (see Pagination)",
241
+ PaginationLocale: "TablePagination labels= (see Pagination)",
242
+ getPage: "calculatePagination / clampPage from @epilot/zenith-react",
243
+ useLocale: "TablePagination labels= (see Pagination)",
244
+ DatePicker: PICKERS,
245
+ DatePickerProps: PICKERS,
246
+ DateTimePicker: PICKERS,
247
+ DateTimePickerProps: PICKERS,
248
+ TimePicker: PICKERS,
249
+ TimePickerProps: PICKERS,
250
+ KeyboardDatePicker: PICKERS,
251
+ KeyboardDatePickerProps: PICKERS,
252
+ KeyboardDateTimePicker: PICKERS,
253
+ KeyboardDateTimePickerProps: PICKERS,
254
+ KeyboardTimePicker: PICKERS,
255
+ MuiPickersUtilsProvider: "drop it: Zenith's pickers need no utils provider",
256
+ DateFnsUtils: "drop it: Zenith's pickers need no utils provider",
257
+ getClientDateWithIgnoredTZ: "not in Zenith: inline the helper",
258
+ List: LIST,
259
+ ListProps: LIST,
260
+ MuiListProps: LIST,
261
+ ListItem: LIST,
262
+ ListItemProps: LIST,
263
+ ListItemContent: LIST,
264
+ ListItemContentProps: LIST,
265
+ ListItemPrefix: LIST,
266
+ ListItemPrefixProps: LIST,
267
+ ListItemSufix: LIST,
268
+ ListItemSufixProps: LIST,
269
+ ListSubheader: "ListGroup + ListGroupLabel from @epilot/zenith-react",
270
+ ListSubheaderProps: "ListGroupLabel (see ListSubheader)",
271
+ }
272
+
273
+ export const handles = Object.keys(HINTS)
274
+
275
+ export function migrate(ctx: MigrateContext): void {
276
+ for (const name of handles) ctx.keep(name, HINTS[name])
277
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @epilot/base-elements (MUI v4) → @epilot/zenith-react consumer codemod.
3
+ *
4
+ * bunx jscodeshift@17.3.0 --parser=tsx -t node_modules/@epilot/zenith-react/codemods/migrate/from-base-elements.ts src/
5
+ *
6
+ * One rule per component in `./base-elements/`; the registry is `./base-elements/index.ts` and
7
+ * the contract is `./lib/types.ts`. The run's output is the TODO list: one ` REP <file> <line>
8
+ * <Component>: <fix>` line per place a human has to look.
9
+ */
10
+ import type { API, FileInfo, Options } from "jscodeshift"
11
+ import { rules } from "./base-elements"
12
+ import { runMigration } from "./lib/run-migration"
13
+ import { formatOutput } from "../format"
14
+
15
+ export const parser = "tsx"
16
+
17
+ export const SOURCE = "@epilot/base-elements"
18
+
19
+ export default async function transform(
20
+ file: FileInfo,
21
+ api: API,
22
+ options: Options
23
+ ): Promise<string | undefined> {
24
+ const output = runMigration({ file, api, options, source: SOURCE, rules })
25
+ return output === undefined ? undefined : formatOutput(output, file.path)
26
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @epilot/volt-ui-react 1.7 → @epilot/zenith-react consumer codemod.
3
+ *
4
+ * bunx jscodeshift@17.3.0 --parser=tsx -t node_modules/@epilot/zenith-react/codemods/migrate/from-volt.ts src/
5
+ *
6
+ * Zenith keeps Volt's names, so most of this is an import swap; the rules in `./volt/` cover the
7
+ * stylesheets, the TanStack type re-exports and the few helpers Zenith does not ship. Run the
8
+ * `radix-to-base-ui.ts` transform next (not chained here): the Volt API is the Radix-era one.
9
+ */
10
+ import type { API, FileInfo, Options } from "jscodeshift"
11
+ import { runMigration } from "./lib/run-migration"
12
+ import { rules } from "./volt"
13
+ import { formatOutput } from "../format"
14
+
15
+ export const parser = "tsx"
16
+
17
+ export const SOURCE = "@epilot/volt-ui-react"
18
+
19
+ export default async function transform(
20
+ file: FileInfo,
21
+ api: API,
22
+ options: Options
23
+ ): Promise<string | undefined> {
24
+ const output = runMigration({ file, api, options, source: SOURCE, rules })
25
+ return output === undefined ? undefined : formatOutput(output, file.path)
26
+ }