@epilot/zenith-react 0.2.0-next.1 → 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 (273) 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/data-table/data-table-header.js +113 -99
  104. package/dist/components/data-table/data-table-header.js.map +1 -1
  105. package/dist/components/data-table/data-table-row.js +49 -40
  106. package/dist/components/data-table/data-table-row.js.map +1 -1
  107. package/dist/components/date-range-picker/date-range-picker.js +100 -90
  108. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  109. package/dist/components/date-time-picker/date-time-picker-input.js +118 -108
  110. package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
  111. package/dist/components/date-time-picker/date-time-picker-panel.js +91 -94
  112. package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
  113. package/dist/components/dialog/dialog.js +238 -228
  114. package/dist/components/dialog/dialog.js.map +1 -1
  115. package/dist/components/drawer/drawer.js +260 -322
  116. package/dist/components/drawer/drawer.js.map +1 -1
  117. package/dist/components/dropdown-menu/dropdown-menu.js +533 -279
  118. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  119. package/dist/components/field/field-combobox.js +87 -77
  120. package/dist/components/field/field-combobox.js.map +1 -1
  121. package/dist/components/list/list-sortable.js +104 -0
  122. package/dist/components/list/list-sortable.js.map +1 -0
  123. package/dist/components/list/list.js +246 -324
  124. package/dist/components/list/list.js.map +1 -1
  125. package/dist/components/option-card/option-card.js +121 -117
  126. package/dist/components/option-card/option-card.js.map +1 -1
  127. package/dist/components/pill/pill.js +7 -7
  128. package/dist/components/popover/popover.js +223 -127
  129. package/dist/components/popover/popover.js.map +1 -1
  130. package/dist/components/radio/radio-group-base.js +54 -0
  131. package/dist/components/radio/radio-group-base.js.map +1 -0
  132. package/dist/components/radio/radio.js +71 -60
  133. package/dist/components/radio/radio.js.map +1 -1
  134. package/dist/components/scroll-area/scroll-area.js +142 -108
  135. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  136. package/dist/components/scroll-overflow/scroll-overflow.js +156 -127
  137. package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
  138. package/dist/components/segmented-control/segmented-control.js +93 -81
  139. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  140. package/dist/components/select/select.js +485 -310
  141. package/dist/components/select/select.js.map +1 -1
  142. package/dist/components/separator/separator.js.map +1 -1
  143. package/dist/components/slot/compose-as-child.js +15 -12
  144. package/dist/components/slot/compose-as-child.js.map +1 -1
  145. package/dist/components/switch/switch.js +75 -68
  146. package/dist/components/switch/switch.js.map +1 -1
  147. package/dist/components/table/table-pagination.js +212 -175
  148. package/dist/components/table/table-pagination.js.map +1 -1
  149. package/dist/components/tabs/tabs.js +193 -190
  150. package/dist/components/tabs/tabs.js.map +1 -1
  151. package/dist/components/toast/toast.js +610 -148
  152. package/dist/components/toast/toast.js.map +1 -1
  153. package/dist/components/toggle/toggle-group.js +143 -32
  154. package/dist/components/toggle/toggle-group.js.map +1 -1
  155. package/dist/components/toggle/toggle.js +83 -53
  156. package/dist/components/toggle/toggle.js.map +1 -1
  157. package/dist/components/tooltip/tooltip.js +298 -138
  158. package/dist/components/tooltip/tooltip.js.map +1 -1
  159. package/dist/index.d.ts +2335 -2129
  160. package/dist/index.js +24 -23
  161. package/dist/list/sortable/index.d.ts +29 -0
  162. package/dist/list/sortable/index.js +5 -0
  163. package/dist/{_virtual → list/sortable}/index.js.map +1 -1
  164. package/dist/packages/tokens/dist/delivery/index.js +10 -10
  165. package/dist/packages/tokens/dist/delivery/index.js.map +1 -1
  166. package/dist/packages/tokens/dist/generated/core.generated.js +6 -15
  167. package/dist/packages/tokens/dist/generated/core.generated.js.map +1 -1
  168. package/dist/packages/tokens/dist/generated/palette.generated.js +4 -5
  169. package/dist/packages/tokens/dist/generated/palette.generated.js.map +1 -1
  170. package/dist/packages/tokens/dist/generated/palette.meta.generated.js +5 -0
  171. package/dist/packages/tokens/dist/generated/palette.meta.generated.js.map +1 -0
  172. package/dist/packages/tokens/dist/install.js +40 -17
  173. package/dist/packages/tokens/dist/install.js.map +1 -1
  174. package/dist/renderer/runtime-contract.generated.js +8 -0
  175. package/dist/renderer/runtime-contract.generated.js.map +1 -0
  176. package/dist/renderer/served.js +34 -0
  177. package/dist/renderer/served.js.map +1 -0
  178. package/dist/tokens/core.meta.generated.js +2 -2
  179. package/dist/tokens/core.meta.generated.js.map +1 -1
  180. package/dist/tokens/index.d.ts +1028 -1028
  181. package/dist/tokens/index.js +863 -863
  182. package/dist/tokens/index.js.map +1 -1
  183. package/dist/tokens/palette.meta.generated.js +5 -0
  184. package/dist/tokens/palette.meta.generated.js.map +1 -0
  185. package/dist/tokens.json +1 -1
  186. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +57 -62
  187. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +1 -1
  188. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +32 -38
  189. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +1 -1
  190. package/package.json +29 -21
  191. package/scripts/migration-diagnostics-core.mjs +18 -10
  192. package/scripts/migration-diagnostics.mjs +31 -8
  193. package/dist/_virtual/index.js +0 -6
  194. package/dist/_virtual/index2.js +0 -5
  195. package/dist/_virtual/index2.js.map +0 -1
  196. package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
  197. package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  198. package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
  199. package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  200. package/dist/tokens/palette.generated.js +0 -5
  201. package/dist/tokens/palette.generated.js.map +0 -1
  202. package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js +0 -512
  203. package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  204. package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js +0 -396
  205. package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  206. 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
  207. 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
  208. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
  209. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  210. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  211. package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  212. package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js +0 -7
  213. package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js.map +0 -1
  214. package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js +0 -240
  215. package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js.map +0 -1
  216. package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js +0 -128
  217. 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
  218. package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js +0 -25
  219. package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js.map +0 -1
  220. package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js +0 -76
  221. package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js.map +0 -1
  222. package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js +0 -252
  223. package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js.map +0 -1
  224. package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js +0 -121
  225. package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js.map +0 -1
  226. package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js +0 -49
  227. package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js.map +0 -1
  228. package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js +0 -11
  229. package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js.map +0 -1
  230. package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js +0 -228
  231. 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
  232. package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js +0 -653
  233. package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js.map +0 -1
  234. package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js +0 -244
  235. package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js.map +0 -1
  236. package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js +0 -222
  237. package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js.map +0 -1
  238. package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js +0 -239
  239. 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
  240. package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js +0 -184
  241. 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
  242. package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js +0 -535
  243. 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
  244. package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js +0 -863
  245. package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js.map +0 -1
  246. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +0 -63
  247. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +0 -1
  248. package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js +0 -133
  249. package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js.map +0 -1
  250. package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js +0 -164
  251. package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js.map +0 -1
  252. package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js +0 -138
  253. 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
  254. package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js +0 -34
  255. package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js.map +0 -1
  256. package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js +0 -340
  257. package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js.map +0 -1
  258. 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
  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.map +0 -1
  260. package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js +0 -9
  261. 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
  262. package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js +0 -28
  263. 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
  264. package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js +0 -33
  265. 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
  266. package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js +0 -747
  267. package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js.map +0 -1
  268. 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
  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.map +0 -1
  270. 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
  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.map +0 -1
  272. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js +0 -11
  273. package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js.map +0 -1
@@ -1,12 +1,10 @@
1
- import { jsx as t, jsxs as T } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { useSensors as tt, useSensor as F, DndContext as et, closestCenter as ot, DragOverlay as rt, KeyboardSensor as nt, PointerSensor as it } from "../../vendor/.bun/@dnd-kit_core@6.3.1_6f4b9a1cfb20c0ae/vendor/@dnd-kit/core/dist/core.esm.js";
4
- import { SortableContext as st, verticalListSortingStrategy as at, arrayMove as lt, useSortable as ct } from "../../vendor/.bun/@dnd-kit_sortable@10.0.0_1d291640e1250bbe/vendor/@dnd-kit/sortable/dist/sortable.esm.js";
5
- import { mergeClasses as h, SLOT_ATTR as f, shorthands as g } from "@epilot/zenith-runtime/v1";
6
- import { makeZenithStyles as dt } from "../../styles/make-styles.js";
7
- import { boxModel as u } from "../../styles/host-reset.js";
8
- import { successLight as ut, warningLight as pt, errorLight as gt, spacingGroup2 as V, grayA12 as X, fontWeightSemibold as mt, leadingSm as $, textSm as K, grayA10 as ft, fontWeightMedium as ht, accentSolid as xt, accentA8 as vt, grayA11 as B, grayA8 as yt, leadingXs as bt, textXs as wt, listIndexPaddingX as Z, listItemPaddingX as _, listItemPaddingY as P, listIndexMinWidth as It, grayA2 as q, radiusMd as R, successSoftHover as St, warningSoftHover as Lt, errorSoftHover as kt, accentSoft as Ct, successDefault as Dt, successSoft as Tt, warningDefault as Wt, warningSoft as Nt, errorDefault as Et, errorSoft as Ot, listItemMinHeight as At, spacingElement3 as Gt, grayA5 as Bt, spacingElement1 as Pt, spacingElement2 as Rt, listItemGap as Ht } from "../../tokens/index.js";
9
- const zt = (n) => /* @__PURE__ */ T(
1
+ import { jsx as t, jsxs as I } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { mergeClasses as g, SLOT_ATTR as u, shorthands as p } from "@epilot/zenith-runtime/v1";
4
+ import { makeZenithStyles as Y } from "../../styles/make-styles.js";
5
+ import { boxModel as d } from "../../styles/host-reset.js";
6
+ import { successLight as _, warningLight as q, errorLight as J, spacingGroup2 as B, grayA12 as G, fontWeightSemibold as Q, leadingSm as R, textSm as E, grayA10 as tt, fontWeightMedium as et, accentSolid as ot, accentA8 as rt, grayA11 as C, grayA8 as nt, leadingXs as it, textXs as st, listIndexPaddingX as O, listItemPaddingX as H, listItemPaddingY as T, listIndexMinWidth as at, grayA2 as P, radiusMd as D, successSoftHover as lt, warningSoftHover as ct, errorSoftHover as dt, accentSoft as pt, successDefault as ut, successSoft as gt, warningDefault as mt, warningSoft as ft, errorDefault as ht, errorSoft as xt, listItemMinHeight as wt, spacingElement3 as vt, grayA5 as yt, spacingElement1 as bt, spacingElement2 as It, listItemGap as St } from "../../tokens/index.js";
7
+ const kt = (r) => /* @__PURE__ */ I(
10
8
  "svg",
11
9
  {
12
10
  xmlns: "http://www.w3.org/2000/svg",
@@ -15,7 +13,7 @@ const zt = (n) => /* @__PURE__ */ T(
15
13
  viewBox: "0 0 24 24",
16
14
  fill: "currentColor",
17
15
  "aria-hidden": "true",
18
- ...n,
16
+ ...r,
19
17
  children: [
20
18
  /* @__PURE__ */ t("circle", { cx: "9", cy: "5", r: "1.5" }),
21
19
  /* @__PURE__ */ t("circle", { cx: "15", cy: "5", r: "1.5" }),
@@ -25,7 +23,7 @@ const zt = (n) => /* @__PURE__ */ T(
25
23
  /* @__PURE__ */ t("circle", { cx: "15", cy: "19", r: "1.5" })
26
24
  ]
27
25
  }
28
- ), U = (n) => /* @__PURE__ */ T(
26
+ ), z = (r) => /* @__PURE__ */ I(
29
27
  "svg",
30
28
  {
31
29
  xmlns: "http://www.w3.org/2000/svg",
@@ -36,14 +34,14 @@ const zt = (n) => /* @__PURE__ */ T(
36
34
  strokeLinecap: "round",
37
35
  strokeLinejoin: "round",
38
36
  "aria-hidden": "true",
39
- ...n,
37
+ ...r,
40
38
  children: [
41
39
  /* @__PURE__ */ t("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
42
40
  /* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
43
41
  /* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
44
42
  ]
45
43
  }
46
- ), Mt = (n) => /* @__PURE__ */ T(
44
+ ), Lt = (r) => /* @__PURE__ */ I(
47
45
  "svg",
48
46
  {
49
47
  xmlns: "http://www.w3.org/2000/svg",
@@ -54,13 +52,13 @@ const zt = (n) => /* @__PURE__ */ T(
54
52
  strokeLinecap: "round",
55
53
  strokeLinejoin: "round",
56
54
  "aria-hidden": "true",
57
- ...n,
55
+ ...r,
58
56
  children: [
59
57
  /* @__PURE__ */ t("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
60
58
  /* @__PURE__ */ t("polyline", { points: "22 4 12 14.01 9 11.01" })
61
59
  ]
62
60
  }
63
- ), jt = (n) => /* @__PURE__ */ t(
61
+ ), Ct = (r) => /* @__PURE__ */ t(
64
62
  "svg",
65
63
  {
66
64
  xmlns: "http://www.w3.org/2000/svg",
@@ -71,37 +69,37 @@ const zt = (n) => /* @__PURE__ */ T(
71
69
  strokeLinecap: "round",
72
70
  strokeLinejoin: "round",
73
71
  "aria-hidden": "true",
74
- ...n,
72
+ ...r,
75
73
  children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" })
76
74
  }
77
- ), b = dt({
75
+ ), h = Y({
78
76
  list: {
79
- ...u,
77
+ ...d,
80
78
  display: "flex",
81
79
  width: "100%",
82
80
  listStyleType: "none",
83
81
  flexDirection: "column",
84
- ...g.gap(0),
85
- ...g.padding(0),
86
- ...g.margin(0)
82
+ ...p.gap(0),
83
+ ...p.padding(0),
84
+ ...p.margin(0)
87
85
  },
88
86
  // ListItem base — density-bound (DENSITY-SPEC.md §2.2, WP9B2A-ACCEPTANCE-LIST).
89
87
  item: {
90
- ...u,
88
+ ...d,
91
89
  position: "relative",
92
90
  display: "flex",
93
91
  width: "100%",
94
92
  alignItems: "center",
95
- ...g.borderRadius(R),
96
- color: X,
93
+ ...p.borderRadius(D),
94
+ color: G,
97
95
  transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
98
96
  transitionDuration: "150ms",
99
97
  transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
100
- minHeight: At,
101
- ...g.gap(Ht),
102
- ...g.padding(P, _),
103
- fontSize: K,
104
- lineHeight: $,
98
+ minHeight: wt,
99
+ ...p.gap(St),
100
+ ...p.padding(T, H),
101
+ fontSize: E,
102
+ lineHeight: R,
105
103
  "& > svg": {
106
104
  flexShrink: 0,
107
105
  width: "1rem",
@@ -111,42 +109,42 @@ const zt = (n) => /* @__PURE__ */ T(
111
109
  // Status variants
112
110
  statusDefault: {},
113
111
  statusError: {
114
- backgroundColor: Ot,
115
- color: Et
112
+ backgroundColor: xt,
113
+ color: ht
116
114
  },
117
115
  statusWarning: {
118
- backgroundColor: Nt,
119
- color: Wt
116
+ backgroundColor: ft,
117
+ color: mt
120
118
  },
121
119
  statusSuccess: {
122
- backgroundColor: Tt,
123
- color: Dt
120
+ backgroundColor: gt,
121
+ color: ut
124
122
  },
125
123
  // Striped variant (only neutral rows)
126
124
  stripedEven: {
127
125
  "&:nth-child(even)": {
128
- backgroundColor: q
126
+ backgroundColor: P
129
127
  }
130
128
  },
131
129
  // Interactive hovers
132
130
  interactiveDefault: {
133
131
  ":hover": {
134
- backgroundColor: Ct
132
+ backgroundColor: pt
135
133
  }
136
134
  },
137
135
  interactiveError: {
138
136
  ":hover": {
139
- backgroundColor: kt
137
+ backgroundColor: dt
140
138
  }
141
139
  },
142
140
  interactiveWarning: {
143
141
  ":hover": {
144
- backgroundColor: Lt
142
+ backgroundColor: ct
145
143
  }
146
144
  },
147
145
  interactiveSuccess: {
148
146
  ":hover": {
149
- backgroundColor: St
147
+ backgroundColor: lt
150
148
  }
151
149
  },
152
150
  // Sortable modifiers
@@ -162,36 +160,36 @@ const zt = (n) => /* @__PURE__ */ T(
162
160
  },
163
161
  // Index gutter — density-bound.
164
162
  indexBase: {
165
- ...u,
163
+ ...d,
166
164
  display: "flex",
167
165
  flexShrink: 0,
168
166
  userSelect: "none",
169
167
  alignItems: "center",
170
168
  justifyContent: "center",
171
169
  alignSelf: "stretch",
172
- borderTopLeftRadius: R,
173
- borderBottomLeftRadius: R,
174
- backgroundColor: q,
170
+ borderTopLeftRadius: D,
171
+ borderBottomLeftRadius: D,
172
+ backgroundColor: P,
175
173
  textAlign: "center",
176
- color: B,
174
+ color: C,
177
175
  fontVariantNumeric: "tabular-nums",
178
- minWidth: It,
179
- marginTop: `calc(-1 * ${P})`,
180
- marginBottom: `calc(-1 * ${P})`,
181
- marginLeft: `calc(-1 * ${_})`,
182
- paddingLeft: Z,
183
- paddingRight: Z
176
+ minWidth: at,
177
+ marginTop: `calc(-1 * ${T})`,
178
+ marginBottom: `calc(-1 * ${T})`,
179
+ marginLeft: `calc(-1 * ${H})`,
180
+ paddingLeft: O,
181
+ paddingRight: O
184
182
  },
185
183
  // Content
186
184
  content: {
187
- ...u,
185
+ ...d,
188
186
  display: "flex",
189
187
  minWidth: 0,
190
188
  flexGrow: 1,
191
189
  flexShrink: 1,
192
190
  flexBasis: "0%",
193
191
  alignItems: "center",
194
- ...g.gap(Rt),
192
+ ...p.gap(It),
195
193
  overflow: "hidden",
196
194
  textOverflow: "ellipsis",
197
195
  whiteSpace: "nowrap",
@@ -208,43 +206,43 @@ const zt = (n) => /* @__PURE__ */ T(
208
206
  display: "flex",
209
207
  flexShrink: 0,
210
208
  alignItems: "center",
211
- ...g.gap(Pt)
209
+ ...p.gap(bt)
212
210
  },
213
211
  // Text
214
212
  text: {
215
- ...u,
213
+ ...d,
216
214
  display: "flex",
217
215
  minWidth: 0,
218
216
  flexGrow: 1,
219
217
  flexShrink: 1,
220
218
  flexBasis: "0%",
221
219
  flexDirection: "column",
222
- ...g.gap("0.125rem")
220
+ ...p.gap("0.125rem")
223
221
  },
224
222
  // Description
225
223
  description: {
226
224
  overflow: "hidden",
227
225
  textOverflow: "ellipsis",
228
226
  whiteSpace: "nowrap",
229
- fontSize: wt,
230
- lineHeight: bt,
231
- color: B
227
+ fontSize: st,
228
+ lineHeight: it,
229
+ color: C
232
230
  },
233
231
  // Drag handle button
234
232
  dragHandle: {
235
- ...u,
233
+ ...d,
236
234
  position: "relative",
237
235
  zIndex: 10,
238
236
  display: "inline-flex",
239
237
  flexShrink: 0,
240
238
  cursor: "grab",
241
239
  alignItems: "center",
242
- color: yt,
240
+ color: nt,
243
241
  backgroundColor: "transparent",
244
- ...g.border("0"),
245
- ...g.padding(0),
242
+ ...p.border("0"),
243
+ ...p.padding(0),
246
244
  ":hover": {
247
- color: B
245
+ color: C
248
246
  },
249
247
  ":active": {
250
248
  cursor: "grabbing"
@@ -253,7 +251,7 @@ const zt = (n) => /* @__PURE__ */ T(
253
251
  outlineWidth: "2px",
254
252
  outlineStyle: "solid",
255
253
  outlineOffset: "2px",
256
- outlineColor: vt
254
+ outlineColor: rt
257
255
  },
258
256
  "& svg": {
259
257
  width: "1rem",
@@ -262,7 +260,7 @@ const zt = (n) => /* @__PURE__ */ T(
262
260
  },
263
261
  // Drop indicator line
264
262
  dropIndicator: {
265
- ...u,
263
+ ...d,
266
264
  pointerEvents: "none",
267
265
  position: "absolute",
268
266
  left: 0,
@@ -270,8 +268,8 @@ const zt = (n) => /* @__PURE__ */ T(
270
268
  zIndex: 10,
271
269
  height: "0.125rem",
272
270
  transformOrigin: "center",
273
- ...g.borderRadius("9999px"),
274
- backgroundColor: xt,
271
+ ...p.borderRadius("9999px"),
272
+ backgroundColor: ot,
275
273
  animationName: {
276
274
  from: {
277
275
  transform: "scaleX(0)",
@@ -293,11 +291,11 @@ const zt = (n) => /* @__PURE__ */ T(
293
291
  },
294
292
  // DragOverlay ghost
295
293
  dragOverlayItem: {
296
- ...u,
294
+ ...d,
297
295
  transformOrigin: "center",
298
296
  transform: "scale(0.95)",
299
297
  cursor: "grabbing",
300
- ...g.border("1px", "solid", Bt),
298
+ ...p.border("1px", "solid", yt),
301
299
  backgroundColor: "rgb(255 255 255 / 55%)",
302
300
  boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
303
301
  backdropFilter: "blur(12px)",
@@ -316,19 +314,19 @@ const zt = (n) => /* @__PURE__ */ T(
316
314
  listStyleType: "none"
317
315
  },
318
316
  groupTrigger: {
319
- ...u,
317
+ ...d,
320
318
  cursor: "pointer",
321
319
  textAlign: "left",
322
- fontWeight: ht,
320
+ fontWeight: et,
323
321
  backgroundColor: "transparent",
324
- ...g.border("0")
322
+ ...p.border("0")
325
323
  },
326
324
  groupChevron: {
327
- ...u,
325
+ ...d,
328
326
  width: "1rem",
329
327
  height: "1rem",
330
328
  flexShrink: 0,
331
- color: ft,
329
+ color: tt,
332
330
  transitionProperty: "transform",
333
331
  transitionDuration: "150ms",
334
332
  transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
@@ -337,7 +335,7 @@ const zt = (n) => /* @__PURE__ */ T(
337
335
  transform: "rotate(90deg)"
338
336
  },
339
337
  groupTriggerText: {
340
- ...u,
338
+ ...d,
341
339
  minWidth: 0,
342
340
  flexGrow: 1,
343
341
  flexShrink: 1,
@@ -347,22 +345,22 @@ const zt = (n) => /* @__PURE__ */ T(
347
345
  whiteSpace: "nowrap"
348
346
  },
349
347
  standaloneGroupLabel: {
350
- ...u,
351
- marginTop: V,
348
+ ...d,
349
+ marginTop: B,
352
350
  display: "block",
353
351
  listStyleType: "none",
354
- ...g.padding("0.375rem", Gt),
355
- fontSize: K,
356
- lineHeight: $,
357
- fontWeight: mt,
358
- color: X,
352
+ ...p.padding("0.375rem", vt),
353
+ fontSize: E,
354
+ lineHeight: R,
355
+ fontWeight: Q,
356
+ color: G,
359
357
  "&:first-child": {
360
358
  marginTop: 0
361
359
  }
362
360
  },
363
361
  groupContentList: {
364
- ...u,
365
- paddingLeft: V
362
+ ...d,
363
+ paddingLeft: B
366
364
  },
367
365
  collapseWrapper: {
368
366
  display: "grid",
@@ -378,377 +376,301 @@ const zt = (n) => /* @__PURE__ */ T(
378
376
  gridTemplateRows: "1fr"
379
377
  },
380
378
  collapseInner: {
381
- ...u,
379
+ ...d,
382
380
  minHeight: 0,
383
381
  overflow: "hidden"
384
382
  },
385
383
  // Status icons
386
384
  statusIconError: {
387
- ...u,
385
+ ...d,
388
386
  width: "1rem",
389
387
  height: "1rem",
390
388
  flexShrink: 0,
391
- color: gt
389
+ color: J
392
390
  },
393
391
  statusIconWarning: {
394
- ...u,
392
+ ...d,
395
393
  width: "1rem",
396
394
  height: "1rem",
397
395
  flexShrink: 0,
398
- color: pt
396
+ color: q
399
397
  },
400
398
  statusIconSuccess: {
401
- ...u,
399
+ ...d,
402
400
  width: "1rem",
403
401
  height: "1rem",
404
402
  flexShrink: 0,
405
- color: ut
403
+ color: _
406
404
  }
407
- }), Ft = ({ status: n }) => {
408
- const o = b();
409
- return n === "error" ? /* @__PURE__ */ t(U, { className: o.statusIconError }) : n === "warning" ? /* @__PURE__ */ t(U, { className: o.statusIconWarning }) : n === "success" ? /* @__PURE__ */ t(Mt, { className: o.statusIconSuccess }) : null;
410
- }, J = i.createContext({
405
+ }), Tt = ({ status: r }) => {
406
+ const o = h();
407
+ return r === "error" ? /* @__PURE__ */ t(z, { className: o.statusIconError }) : r === "warning" ? /* @__PURE__ */ t(z, { className: o.statusIconWarning }) : r === "success" ? /* @__PURE__ */ t(Lt, { className: o.statusIconSuccess }) : null;
408
+ }, M = n.createContext({
411
409
  striped: !1,
412
410
  showIndex: !1,
413
411
  sortable: !1
414
- }), Q = () => i.useContext(J), Vt = (n) => n === void 0 ? void 0 : n === "relaxed" ? "normal" : n, Qt = i.forwardRef(function({
415
- className: o,
416
- density: l,
417
- striped: e = !1,
418
- showIndex: c = !1,
419
- sortable: s = !1,
420
- onReorder: r,
421
- children: v,
422
- ...w
423
- }, I) {
424
- const y = b(), p = Vt(l), S = i.Children.toArray(v).filter(
425
- i.isValidElement
426
- ), W = S.map(
427
- (d, D) => d.type === Y ? i.cloneElement(d, { index: D }) : d
428
- ), x = S.filter((d) => d.type === Y), a = x.map((d) => d.props.value).filter((d) => typeof d == "string"), [L, N] = i.useState(null), k = L ? a.indexOf(L) : -1, C = L != null ? x.find((d) => d.props.value === L) : void 0, E = tt(
429
- F(it, { activationConstraint: { distance: 3 } }),
430
- F(nt)
431
- ), O = (d) => {
432
- N(d.active.id);
433
- }, G = (d) => {
434
- N(null);
435
- const { active: D, over: m } = d;
436
- if (!m || D.id === m.id) return;
437
- const M = a.indexOf(D.id), j = a.indexOf(m.id);
438
- M === -1 || j === -1 || r == null || r(lt(a, M, j));
439
- }, A = /* @__PURE__ */ t(
412
+ }), j = () => n.useContext(M), Dt = (r) => r === void 0 ? void 0 : r === "relaxed" ? "normal" : r, Wt = n.forwardRef(function({ className: o, density: i, children: e, ...l }, a) {
413
+ const s = h(), m = Dt(i), b = n.Children.toArray(e).filter(n.isValidElement).map(
414
+ (x, y) => x.type === Bt ? n.cloneElement(x, {
415
+ index: y
416
+ }) : x
417
+ );
418
+ return /* @__PURE__ */ t(
440
419
  "ol",
441
420
  {
442
- ref: I,
421
+ ref: a,
443
422
  "data-slot": "list",
444
- [f]: "list",
445
- ...p !== void 0 ? { "data-density": p } : {},
446
- className: h(y.list, o),
447
- ...w,
448
- children: W
423
+ [u]: "list",
424
+ ...m !== void 0 ? { "data-density": m } : {},
425
+ className: g(s.list, o),
426
+ ...l,
427
+ children: b
449
428
  }
450
429
  );
451
- return /* @__PURE__ */ t(J.Provider, { value: { striped: e, showIndex: c, sortable: s }, children: s ? /* @__PURE__ */ T(
452
- et,
453
- {
454
- sensors: E,
455
- collisionDetection: ot,
456
- onDragStart: O,
457
- onDragEnd: G,
458
- onDragCancel: () => N(null),
459
- children: [
460
- /* @__PURE__ */ t(
461
- st,
462
- {
463
- items: a,
464
- strategy: at,
465
- children: A
466
- }
467
- ),
468
- /* @__PURE__ */ t(rt, { children: C ? /* @__PURE__ */ t(
469
- H,
470
- {
471
- value: C.props.value,
472
- status: C.props.status,
473
- index: k,
474
- className: y.dragOverlayItem,
475
- ...p !== void 0 ? { "data-density": p } : {},
476
- children: C.props.children
477
- }
478
- ) : null })
479
- ]
480
- }
481
- ) : A });
482
- }), Xt = i.forwardRef(function({ className: o, children: l, ...e }, c) {
483
- const s = b();
430
+ }), Pt = n.forwardRef(function({ striped: o = !1, showIndex: i = !1, ...e }, l) {
431
+ return /* @__PURE__ */ t(M.Provider, { value: { striped: o, showIndex: i, sortable: !1 }, children: /* @__PURE__ */ t(Wt, { ref: l, ...e }) });
432
+ }), Nt = n.forwardRef(function({ className: o, children: i, ...e }, l) {
433
+ const a = h();
484
434
  return /* @__PURE__ */ t(
485
435
  "span",
486
436
  {
487
- ref: c,
437
+ ref: l,
488
438
  "data-slot": "list-item-actions",
489
- [f]: "list-item-actions",
490
- onPointerDown: (r) => r.stopPropagation(),
491
- className: h(s.actions, o),
439
+ [u]: "list-item-actions",
440
+ onPointerDown: (s) => s.stopPropagation(),
441
+ className: g(a.actions, o),
492
442
  ...e,
493
- children: l
443
+ children: i
494
444
  }
495
445
  );
496
- }), te = i.forwardRef(function({ className: o, ...l }, e) {
497
- const c = b();
446
+ }), zt = n.forwardRef(function({ className: o, ...i }, e) {
447
+ const l = h();
498
448
  return /* @__PURE__ */ t(
499
449
  "span",
500
450
  {
501
451
  ref: e,
502
452
  "data-slot": "list-item-text",
503
- [f]: "list-item-text",
504
- className: h(c.text, o),
505
- ...l
453
+ [u]: "list-item-text",
454
+ className: g(l.text, o),
455
+ ...i
506
456
  }
507
457
  );
508
- }), ee = i.forwardRef(function({ className: o, ...l }, e) {
509
- const c = b();
458
+ }), Mt = n.forwardRef(function({ className: o, ...i }, e) {
459
+ const l = h();
510
460
  return /* @__PURE__ */ t(
511
461
  "span",
512
462
  {
513
463
  ref: e,
514
464
  "data-slot": "list-item-description",
515
- [f]: "list-item-description",
516
- className: h(c.description, o),
517
- ...l
465
+ [u]: "list-item-description",
466
+ className: g(l.description, o),
467
+ ...i
518
468
  }
519
469
  );
520
- }), H = i.forwardRef(
470
+ }), At = n.forwardRef(
521
471
  function({
522
472
  className: o,
523
- value: l,
473
+ value: i,
524
474
  status: e = "default",
525
- index: c,
526
- children: s,
527
- setNodeRef: r,
528
- setActivatorNodeRef: v,
529
- style: w,
530
- isDragging: I,
475
+ index: l,
476
+ children: a,
477
+ setNodeRef: s,
478
+ setActivatorNodeRef: m,
479
+ style: b,
480
+ isDragging: x,
531
481
  dropEdge: y,
532
- listeners: p,
533
- attributes: S,
534
- ...W
535
- }, x) {
536
- const a = b(), { striped: L, showIndex: N, sortable: k } = Q(), C = k && !I, E = i.Children.toArray(s), O = E.find(
537
- (m) => i.isValidElement(m) && m.type === Xt
538
- ), G = E.filter((m) => m !== O), A = i.useCallback(
539
- (m) => {
540
- r == null || r(m), typeof x == "function" ? x(m) : x && (x.current = m);
482
+ listeners: f,
483
+ attributes: k,
484
+ ...L
485
+ }, w) {
486
+ const c = h(), { striped: F, showIndex: X, sortable: S } = j(), V = S && !x, N = n.Children.toArray(a), A = N.find(
487
+ (v) => n.isValidElement(v) && v.type === Nt
488
+ ), $ = N.filter((v) => v !== A), K = n.useCallback(
489
+ (v) => {
490
+ s == null || s(v), typeof w == "function" ? w(v) : w && (w.current = v);
541
491
  },
542
- [r, x]
543
- ), d = e === "error" ? a.statusError : e === "warning" ? a.statusWarning : e === "success" ? a.statusSuccess : a.statusDefault, D = C ? e === "error" ? a.interactiveError : e === "warning" ? a.interactiveWarning : e === "success" ? a.interactiveSuccess : a.interactiveDefault : void 0;
544
- return /* @__PURE__ */ T(
492
+ [s, w]
493
+ ), Z = e === "error" ? c.statusError : e === "warning" ? c.statusWarning : e === "success" ? c.statusSuccess : c.statusDefault, U = V ? e === "error" ? c.interactiveError : e === "warning" ? c.interactiveWarning : e === "success" ? c.interactiveSuccess : c.interactiveDefault : void 0;
494
+ return /* @__PURE__ */ I(
545
495
  "li",
546
496
  {
547
- ref: A,
548
- style: w,
497
+ ref: K,
498
+ style: b,
549
499
  "data-slot": "list-item",
550
- [f]: "list-item",
500
+ [u]: "list-item",
551
501
  "data-status": e,
552
- "data-value": l,
553
- onPointerDown: k ? p == null ? void 0 : p.onPointerDown : void 0,
554
- className: h(
555
- a.item,
556
- d,
557
- L && e === "default" && a.stripedEven,
558
- D,
559
- k && a.sortableItem,
560
- I && a.itemDragging,
502
+ "data-value": i,
503
+ onPointerDown: S ? f == null ? void 0 : f.onPointerDown : void 0,
504
+ className: g(
505
+ c.item,
506
+ Z,
507
+ F && e === "default" && c.stripedEven,
508
+ U,
509
+ S && c.sortableItem,
510
+ x && c.itemDragging,
561
511
  o
562
512
  ),
563
- ...W,
513
+ ...L,
564
514
  children: [
565
515
  y && /* @__PURE__ */ t(
566
516
  "span",
567
517
  {
568
518
  "data-slot": "list-drop-indicator",
569
- [f]: "list-drop-indicator",
519
+ [u]: "list-drop-indicator",
570
520
  "aria-hidden": "true",
571
- className: h(
572
- a.dropIndicator,
573
- y === "top" ? a.dropIndicatorTop : a.dropIndicatorBottom
521
+ className: g(
522
+ c.dropIndicator,
523
+ y === "top" ? c.dropIndicatorTop : c.dropIndicatorBottom
574
524
  )
575
525
  }
576
526
  ),
577
- N && /* @__PURE__ */ t(
527
+ X && /* @__PURE__ */ t(
578
528
  "span",
579
529
  {
580
530
  "data-slot": "list-item-index",
581
- [f]: "list-item-index",
531
+ [u]: "list-item-index",
582
532
  "aria-hidden": "true",
583
- className: a.indexBase,
584
- children: (c ?? 0) + 1
533
+ className: c.indexBase,
534
+ children: (l ?? 0) + 1
585
535
  }
586
536
  ),
587
537
  /* @__PURE__ */ t(
588
538
  "span",
589
539
  {
590
540
  "data-slot": "list-item-content",
591
- [f]: "list-item-content",
592
- className: a.content,
593
- children: G
541
+ [u]: "list-item-content",
542
+ className: c.content,
543
+ children: $
594
544
  }
595
545
  ),
596
- /* @__PURE__ */ t(Ft, { status: e }),
597
- O,
598
- k && /* @__PURE__ */ t(
546
+ /* @__PURE__ */ t(Tt, { status: e }),
547
+ A,
548
+ S && /* @__PURE__ */ t(
599
549
  "button",
600
550
  {
601
- ref: v,
551
+ ref: m,
602
552
  type: "button",
603
- "aria-label": `Drag to reorder ${l ?? "item"}`,
604
- className: a.dragHandle,
605
- ...S,
606
- onKeyDown: p == null ? void 0 : p.onKeyDown,
607
- children: /* @__PURE__ */ t(zt, {})
553
+ "aria-label": `Drag to reorder ${i ?? "item"}`,
554
+ className: c.dragHandle,
555
+ ...k,
556
+ onKeyDown: f == null ? void 0 : f.onKeyDown,
557
+ children: /* @__PURE__ */ t(kt, {})
608
558
  }
609
559
  )
610
560
  ]
611
561
  }
612
562
  );
613
563
  }
614
- ), $t = i.forwardRef(
615
- function(o, l) {
616
- const e = i.useId();
617
- process.env.NODE_ENV !== "production" && o.value === void 0 && console.warn(
618
- "List: a sortable `ListItem` is missing a `value`. Give each sortable item a unique `value` so it can be reordered — items without one are excluded from `onReorder`."
619
- );
620
- const {
621
- attributes: c,
622
- listeners: s,
623
- setNodeRef: r,
624
- setActivatorNodeRef: v,
625
- isDragging: w,
626
- isOver: I,
627
- activeIndex: y,
628
- overIndex: p
629
- } = ct({
630
- id: o.value ?? e,
631
- animateLayoutChanges: () => !1
632
- }), S = I && !w && y !== -1 ? y < p ? "bottom" : "top" : null;
633
- return /* @__PURE__ */ t(
634
- H,
635
- {
636
- ref: l,
637
- ...o,
638
- setNodeRef: r,
639
- setActivatorNodeRef: v,
640
- isDragging: w,
641
- dropEdge: S,
642
- listeners: s,
643
- attributes: c
644
- }
645
- );
646
- }
647
- ), Y = i.forwardRef(
648
- function(o, l) {
649
- const { sortable: e } = Q();
650
- return e ? /* @__PURE__ */ t($t, { ref: l, ...o }) : /* @__PURE__ */ t(H, { ref: l, ...o });
564
+ ), Bt = n.forwardRef(
565
+ function(o, i) {
566
+ const { SortableItem: e } = j();
567
+ return e ? /* @__PURE__ */ t(e, { ref: i, ...o }) : /* @__PURE__ */ t(At, { ref: i, ...o });
651
568
  }
652
- ), z = i.createContext(null), oe = i.forwardRef(
569
+ ), W = n.createContext(null), jt = n.forwardRef(
653
570
  function({
654
571
  open: o,
655
- defaultOpen: l = !1,
572
+ defaultOpen: i = !1,
656
573
  onOpenChange: e,
657
- className: c,
658
- children: s,
659
- ...r
660
- }, v) {
661
- const w = b(), [I, y] = i.useState(l), p = o ?? I, S = i.useId(), W = (x) => {
662
- o === void 0 && y(x), e == null || e(x);
574
+ className: l,
575
+ children: a,
576
+ ...s
577
+ }, m) {
578
+ const b = h(), [x, y] = n.useState(i), f = o ?? x, k = n.useId(), L = (w) => {
579
+ o === void 0 && y(w), e == null || e(w);
663
580
  };
664
- return /* @__PURE__ */ t(z.Provider, { value: { open: p, setOpen: W, contentId: S }, children: /* @__PURE__ */ t(
581
+ return /* @__PURE__ */ t(W.Provider, { value: { open: f, setOpen: L, contentId: k }, children: /* @__PURE__ */ t(
665
582
  "li",
666
583
  {
667
- ref: v,
584
+ ref: m,
668
585
  "data-slot": "list-group",
669
- [f]: "list-group",
670
- "data-state": p ? "open" : "closed",
671
- className: h(w.group, c),
672
- ...r,
673
- children: s
586
+ [u]: "list-group",
587
+ "data-state": f ? "open" : "closed",
588
+ className: g(b.group, l),
589
+ ...s,
590
+ children: a
674
591
  }
675
592
  ) });
676
593
  }
677
- ), re = i.forwardRef(function({ className: o, children: l, ...e }, c) {
678
- const s = b(), r = i.useContext(z);
679
- return r ? /* @__PURE__ */ T(
594
+ ), Ft = n.forwardRef(function({ className: o, children: i, ...e }, l) {
595
+ const a = h(), s = n.useContext(W);
596
+ return s ? /* @__PURE__ */ I(
680
597
  "button",
681
598
  {
682
- ref: c,
599
+ ref: l,
683
600
  type: "button",
684
601
  "data-slot": "list-group-trigger",
685
- [f]: "list-group-trigger",
686
- "aria-expanded": r.open,
687
- "aria-controls": r.contentId,
688
- onClick: () => r.setOpen(!r.open),
689
- className: h(
690
- s.item,
691
- s.interactiveDefault,
692
- s.groupTrigger,
602
+ [u]: "list-group-trigger",
603
+ "aria-expanded": s.open,
604
+ "aria-controls": s.contentId,
605
+ onClick: () => s.setOpen(!s.open),
606
+ className: g(
607
+ a.item,
608
+ a.interactiveDefault,
609
+ a.groupTrigger,
693
610
  o
694
611
  ),
695
612
  ...e,
696
613
  children: [
697
614
  /* @__PURE__ */ t(
698
- jt,
615
+ Ct,
699
616
  {
700
- className: h(
701
- s.groupChevron,
702
- r.open && s.groupChevronOpen
617
+ className: g(
618
+ a.groupChevron,
619
+ s.open && a.groupChevronOpen
703
620
  )
704
621
  }
705
622
  ),
706
- /* @__PURE__ */ t("span", { className: s.groupTriggerText, children: l })
623
+ /* @__PURE__ */ t("span", { className: a.groupTriggerText, children: i })
707
624
  ]
708
625
  }
709
626
  ) : /* @__PURE__ */ t(
710
627
  "li",
711
628
  {
712
- ref: c,
629
+ ref: l,
713
630
  "data-slot": "list-group-label",
714
- [f]: "list-group-label",
715
- className: h(s.standaloneGroupLabel, o),
716
- children: l
631
+ [u]: "list-group-label",
632
+ className: g(a.standaloneGroupLabel, o),
633
+ children: i
717
634
  }
718
635
  );
719
- }), ne = i.forwardRef(function({ className: o, children: l, ...e }, c) {
720
- const s = b(), r = i.useContext(z), v = /* @__PURE__ */ t(
636
+ }), Xt = n.forwardRef(function({ className: o, children: i, ...e }, l) {
637
+ const a = h(), s = n.useContext(W), m = /* @__PURE__ */ t(
721
638
  "ul",
722
639
  {
723
- ref: c,
640
+ ref: l,
724
641
  "data-slot": "list-group-content",
725
- [f]: "list-group-content",
726
- className: h(s.list, s.groupContentList, o),
642
+ [u]: "list-group-content",
643
+ className: g(a.list, a.groupContentList, o),
727
644
  ...e,
728
- children: l
645
+ children: i
729
646
  }
730
647
  );
731
- return r ? /* @__PURE__ */ t(
648
+ return s ? /* @__PURE__ */ t(
732
649
  "div",
733
650
  {
734
- id: r.contentId,
735
- "data-state": r.open ? "open" : "closed",
736
- className: h(
737
- s.collapseWrapper,
738
- r.open && s.collapseWrapperOpen
651
+ id: s.contentId,
652
+ "data-state": s.open ? "open" : "closed",
653
+ className: g(
654
+ a.collapseWrapper,
655
+ s.open && a.collapseWrapperOpen
739
656
  ),
740
- children: /* @__PURE__ */ t("div", { className: s.collapseInner, children: v })
657
+ children: /* @__PURE__ */ t("div", { className: a.collapseInner, children: m })
741
658
  }
742
- ) : v;
659
+ ) : m;
743
660
  });
744
661
  export {
745
- Qt as List,
746
- oe as ListGroup,
747
- ne as ListGroupContent,
748
- re as ListGroupLabel,
749
- Y as ListItem,
750
- Xt as ListItemActions,
751
- ee as ListItemDescription,
752
- te as ListItemText
662
+ Pt as List,
663
+ jt as ListGroup,
664
+ Xt as ListGroupContent,
665
+ Ft as ListGroupLabel,
666
+ Bt as ListItem,
667
+ Nt as ListItemActions,
668
+ At as ListItemBody,
669
+ Mt as ListItemDescription,
670
+ zt as ListItemText,
671
+ Wt as ListRoot,
672
+ Dt as canonicalDomDensity,
673
+ M as listContext,
674
+ h as useListStyles
753
675
  };
754
676
  //# sourceMappingURL=list.js.map