@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,240 +1,127 @@
1
- import { jsx as n, jsxs as b } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as P, Fragment as j } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
- import { Root as L, Close as v, Content as F, Description as X, Overlay as A, Portal as O, Title as Y, Trigger as k } from "../../vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js";
4
- import { mergeClasses as m, SLOT_ATTR as l, shorthands as e } from "@epilot/zenith-runtime/v1";
5
- import { useAppearanceAttributes as T } from "../appearance-boundary/appearance-boundary.js";
6
- import { useDensity as E } from "../density-provider/density-provider.js";
7
- import { makeZenithStyles as I } from "../../styles/make-styles.js";
8
- import { boxModel as p, nativeControl as x } from "../../styles/host-reset.js";
9
- import { OVERLAY_Z_INDEX as D } from "../../styles/overlay-layer.js";
10
- import { leadingSm as P, textSm as _, grayA11 as B, grayA12 as H, fontWeightSemibold as W, leadingLg as j, textLg as Z, accentA8 as C, accentSoft as M, accentA11 as V, spacingLayout1 as g, spacingElement1 as i, gray2 as q, spacingElement2 as y, grayA1 as w, radius2xl as G } from "../../tokens/index.js";
11
- const d = I({
3
+ import { Dialog as f } from "../../_virtual/_zenith-runtime-family_dialog.js";
4
+ import { mergeClasses as p, SLOT_ATTR as u, shorthands as c } from "@epilot/zenith-runtime/v1";
5
+ import { useAppearanceAttributes as M } from "../appearance-boundary/appearance-boundary.js";
6
+ import { useDensity as Z } from "../density-provider/density-provider.js";
7
+ import { makeZenithStyles as V } from "../../styles/make-styles.js";
8
+ import { boxModel as g, nativeControl as L } from "../../styles/host-reset.js";
9
+ import { OVERLAY_Z_INDEX as k } from "../../styles/overlay-layer.js";
10
+ import { leadingSm as q, textSm as G, grayA11 as J, grayA12 as K, fontWeightSemibold as Q, leadingLg as U, textLg as $, accentA8 as E, accentSoft as tt, accentA11 as et, spacingLayout1 as h, spacingElement1 as d, gray2 as rt, spacingElement2 as D, grayA1 as x, radius2xl as ot } from "../../tokens/index.js";
11
+ const A = "cubic-bezier(0.4, 0, 0.2, 1)", N = "cubic-bezier(0.4, 0, 1, 1)", m = V({
12
12
  // For the bare native `<button>` a Trigger/Close renders. Not applied under `asChild`, where the
13
13
  // child owns its own element and two atom sets would race for the same properties.
14
14
  nativeTrigger: {
15
- ...x
15
+ ...L
16
16
  },
17
17
  overlay: {
18
18
  position: "fixed",
19
- ...e.inset(0),
20
- zIndex: D,
19
+ ...c.inset(0),
20
+ zIndex: k,
21
21
  backgroundColor: "rgb(0 0 0 / 50%)",
22
- "&[data-state='open']": {
23
- animationName: {
24
- from: { opacity: 0 },
25
- to: { opacity: 1 }
26
- },
27
- animationDuration: "150ms",
28
- animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
29
- },
30
- "&[data-state='closed']": {
31
- animationName: {
32
- from: { opacity: 1 },
33
- to: { opacity: 0 }
34
- },
35
- animationDuration: "150ms",
36
- animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
22
+ transitionProperty: "opacity",
23
+ transitionDuration: "150ms",
24
+ transitionTimingFunction: A,
25
+ "&[data-starting-style]": { opacity: 0 },
26
+ "&[data-ending-style]": { opacity: 0, transitionTimingFunction: N },
27
+ "@media (prefers-reduced-motion: reduce)": {
28
+ transitionDuration: "0.01ms"
37
29
  }
38
30
  },
39
31
  content: {
40
- ...p,
41
- backgroundColor: q,
32
+ ...g,
33
+ backgroundColor: rt,
42
34
  position: "fixed",
43
- zIndex: D,
35
+ zIndex: k,
44
36
  display: "flex",
45
37
  flexDirection: "column",
46
- ...e.gap(g),
47
- ...e.borderRadius(G),
38
+ ...c.gap(h),
39
+ ...c.borderRadius(ot),
48
40
  // v1 shadow-lg; elevation has no token in this package.
49
41
  boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
50
- // Collapses the side slots' slide too: media rules sort after them at equal specificity.
42
+ // The fade lives here, the slide's distance in each side's slot below.
43
+ transitionProperty: "opacity, transform",
44
+ transitionDuration: "150ms",
45
+ transitionTimingFunction: A,
46
+ "&[data-starting-style]": { opacity: 0 },
47
+ "&[data-ending-style]": { opacity: 0, transitionTimingFunction: N },
48
+ // Collapses the side slots' slide too: they set only where it starts and ends.
51
49
  "@media (prefers-reduced-motion: reduce)": {
52
- animationDuration: "0.01ms",
53
- animationIterationCount: "1",
54
- "&[data-state='open']": {
55
- animationDuration: "0.01ms"
56
- },
57
- "&[data-state='closed']": {
58
- animationDuration: "0.01ms"
59
- }
50
+ transitionDuration: "0.01ms"
60
51
  }
61
52
  },
62
53
  contentPadding: {
63
- ...p,
54
+ ...g,
64
55
  // Layout tier, unlike Dialog, AlertDialog and Popover: a drawer holds sections, not one group.
65
- ...e.padding(g)
56
+ ...c.padding(h)
66
57
  },
67
58
  right: {
68
- ...p,
69
- top: i,
70
- bottom: i,
71
- right: i,
59
+ ...g,
60
+ top: d,
61
+ bottom: d,
62
+ right: d,
72
63
  height: "calc(100% - 0.5rem)",
73
- ...e.borderLeft("1px", "solid", w),
74
- "&[data-state='open']": {
75
- animationName: {
76
- from: {
77
- opacity: 0,
78
- transform: "translateX(100%)"
79
- },
80
- to: {
81
- opacity: 1,
82
- transform: "translateX(0)"
83
- }
84
- },
85
- animationDuration: "150ms",
86
- animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
87
- },
88
- "&[data-state='closed']": {
89
- animationName: {
90
- from: {
91
- opacity: 1,
92
- transform: "translateX(0)"
93
- },
94
- to: {
95
- opacity: 0,
96
- transform: "translateX(100%)"
97
- }
98
- },
99
- animationDuration: "150ms",
100
- animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
101
- }
64
+ ...c.borderLeft("1px", "solid", x),
65
+ "&[data-starting-style]": { transform: "translateX(100%)" },
66
+ "&[data-ending-style]": { transform: "translateX(100%)" }
102
67
  },
103
68
  left: {
104
- ...p,
105
- top: i,
106
- bottom: i,
107
- left: i,
69
+ ...g,
70
+ top: d,
71
+ bottom: d,
72
+ left: d,
108
73
  height: "calc(100% - 0.5rem)",
109
- ...e.borderRight("1px", "solid", w),
110
- "&[data-state='open']": {
111
- animationName: {
112
- from: {
113
- opacity: 0,
114
- transform: "translateX(-100%)"
115
- },
116
- to: {
117
- opacity: 1,
118
- transform: "translateX(0)"
119
- }
120
- },
121
- animationDuration: "150ms",
122
- animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
123
- },
124
- "&[data-state='closed']": {
125
- animationName: {
126
- from: {
127
- opacity: 1,
128
- transform: "translateX(0)"
129
- },
130
- to: {
131
- opacity: 0,
132
- transform: "translateX(-100%)"
133
- }
134
- },
135
- animationDuration: "150ms",
136
- animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
137
- }
74
+ ...c.borderRight("1px", "solid", x),
75
+ "&[data-starting-style]": { transform: "translateX(-100%)" },
76
+ "&[data-ending-style]": { transform: "translateX(-100%)" }
138
77
  },
139
78
  top: {
140
- ...p,
141
- left: i,
142
- right: i,
143
- top: i,
79
+ ...g,
80
+ left: d,
81
+ right: d,
82
+ top: d,
144
83
  width: "calc(100% - 0.5rem)",
145
- ...e.borderBottom("1px", "solid", w),
146
- "&[data-state='open']": {
147
- animationName: {
148
- from: {
149
- opacity: 0,
150
- transform: "translateY(-100%)"
151
- },
152
- to: {
153
- opacity: 1,
154
- transform: "translateY(0)"
155
- }
156
- },
157
- animationDuration: "150ms",
158
- animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
159
- },
160
- "&[data-state='closed']": {
161
- animationName: {
162
- from: {
163
- opacity: 1,
164
- transform: "translateY(0)"
165
- },
166
- to: {
167
- opacity: 0,
168
- transform: "translateY(-100%)"
169
- }
170
- },
171
- animationDuration: "150ms",
172
- animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
173
- }
84
+ ...c.borderBottom("1px", "solid", x),
85
+ "&[data-starting-style]": { transform: "translateY(-100%)" },
86
+ "&[data-ending-style]": { transform: "translateY(-100%)" }
174
87
  },
175
88
  bottom: {
176
- ...p,
177
- left: i,
178
- right: i,
179
- bottom: i,
89
+ ...g,
90
+ left: d,
91
+ right: d,
92
+ bottom: d,
180
93
  width: "calc(100% - 0.5rem)",
181
- ...e.borderTop("1px", "solid", w),
182
- "&[data-state='open']": {
183
- animationName: {
184
- from: {
185
- opacity: 0,
186
- transform: "translateY(100%)"
187
- },
188
- to: {
189
- opacity: 1,
190
- transform: "translateY(0)"
191
- }
192
- },
193
- animationDuration: "150ms",
194
- animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
195
- },
196
- "&[data-state='closed']": {
197
- animationName: {
198
- from: {
199
- opacity: 1,
200
- transform: "translateY(0)"
201
- },
202
- to: {
203
- opacity: 0,
204
- transform: "translateY(100%)"
205
- }
206
- },
207
- animationDuration: "150ms",
208
- animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
209
- }
94
+ ...c.borderTop("1px", "solid", x),
95
+ "&[data-starting-style]": { transform: "translateY(100%)" },
96
+ "&[data-ending-style]": { transform: "translateY(100%)" }
210
97
  },
211
98
  close: {
212
99
  ":focus-visible": {
213
100
  outlineWidth: "2px",
214
101
  outlineStyle: "solid",
215
102
  outlineOffset: "2px",
216
- outlineColor: C
103
+ outlineColor: E
217
104
  }
218
105
  },
219
106
  closeButton: {
220
- ...x,
107
+ ...L,
221
108
  position: "absolute",
222
109
  // Inset by the content padding so it lines up with the padded header.
223
- top: g,
224
- right: g,
225
- ...e.padding(y),
110
+ top: h,
111
+ right: h,
112
+ ...c.padding(D),
226
113
  // v1 rounded-full; no full-radius token exists in this package.
227
114
  borderRadius: "9999px",
228
115
  cursor: "pointer",
229
- color: V,
116
+ color: et,
230
117
  ":hover": {
231
- backgroundColor: M
118
+ backgroundColor: tt
232
119
  },
233
120
  ":focus-visible": {
234
121
  outlineWidth: "2px",
235
122
  outlineStyle: "solid",
236
123
  outlineOffset: "2px",
237
- outlineColor: C
124
+ outlineColor: E
238
125
  },
239
126
  ":disabled": {
240
127
  pointerEvents: "none"
@@ -251,31 +138,31 @@ const d = I({
251
138
  display: "flex",
252
139
  flexShrink: 0,
253
140
  flexDirection: "column",
254
- ...e.gap(y),
141
+ ...c.gap(D),
255
142
  textAlign: "left"
256
143
  },
257
144
  footer: {
258
145
  marginTop: "auto",
259
146
  display: "flex",
260
147
  flexShrink: 0,
261
- ...e.gap(y),
148
+ ...c.gap(D),
262
149
  justifyContent: "flex-end"
263
150
  },
264
151
  title: {
265
- ...e.margin(0),
266
- fontSize: Z,
267
- lineHeight: j,
268
- fontWeight: W,
269
- color: H
152
+ ...c.margin(0),
153
+ fontSize: $,
154
+ lineHeight: U,
155
+ fontWeight: Q,
156
+ color: K
270
157
  },
271
158
  description: {
272
- ...e.margin(0),
273
- color: B,
274
- fontSize: _,
275
- lineHeight: P
159
+ ...c.margin(0),
160
+ color: J,
161
+ fontSize: G,
162
+ lineHeight: q
276
163
  },
277
164
  srOnly: {
278
- ...p,
165
+ ...g,
279
166
  position: "absolute",
280
167
  width: "1px",
281
168
  height: "1px",
@@ -285,19 +172,19 @@ const d = I({
285
172
  clip: "rect(0, 0, 0, 0)",
286
173
  whiteSpace: "nowrap"
287
174
  }
288
- }), J = s.forwardRef(
289
- function(t, a) {
290
- return /* @__PURE__ */ n(
175
+ }), nt = s.forwardRef(
176
+ function(t, e) {
177
+ return /* @__PURE__ */ i(
291
178
  "svg",
292
179
  {
293
- ref: a,
180
+ ref: e,
294
181
  width: "12",
295
182
  height: "12",
296
183
  viewBox: "0 0 9 9",
297
184
  fill: "none",
298
185
  xmlns: "http://www.w3.org/2000/svg",
299
186
  ...t,
300
- children: /* @__PURE__ */ n(
187
+ children: /* @__PURE__ */ i(
301
188
  "path",
302
189
  {
303
190
  d: "M4.38333 5.31667L1.11667 8.58333C0.994445 8.70556 0.838889 8.76667 0.65 8.76667C0.461111 8.76667 0.305556 8.70556 0.183333 8.58333C0.0611111 8.46111 0 8.30556 0 8.11667C0 7.92778 0.0611111 7.77222 0.183333 7.65L3.45 4.38333L0.183333 1.11667C0.0611111 0.994445 0 0.838889 0 0.65C0 0.461111 0.0611111 0.305556 0.183333 0.183333C0.305556 0.0611111 0.461111 0 0.65 0C0.838889 0 0.994445 0.0611111 1.11667 0.183333L4.38333 3.45L7.65 0.183333C7.77222 0.0611111 7.92778 0 8.11667 0C8.30556 0 8.46111 0.0611111 8.58333 0.183333C8.70556 0.305556 8.76667 0.461111 8.76667 0.65C8.76667 0.838889 8.70556 0.994445 8.58333 1.11667L5.31667 4.38333L8.58333 7.65C8.70556 7.77222 8.76667 7.92778 8.76667 8.11667C8.76667 8.30556 8.70556 8.46111 8.58333 8.58333C8.46111 8.70556 8.30556 8.76667 8.11667 8.76667C7.92778 8.76667 7.77222 8.70556 7.65 8.58333L4.38333 5.31667Z",
@@ -307,172 +194,223 @@ const d = I({
307
194
  }
308
195
  );
309
196
  }
310
- ), nt = s.forwardRef(
311
- function(t, a) {
312
- return /* @__PURE__ */ n(L, { "data-slot": "drawer", ...t });
197
+ );
198
+ function X(n) {
199
+ const t = s.Children.toArray(n).filter(s.isValidElement);
200
+ return t.length === 1 ? t[0] : void 0;
201
+ }
202
+ function y(n, t) {
203
+ const e = n ? X(t) : void 0;
204
+ return e ? { render: e } : { children: t };
205
+ }
206
+ function F(n) {
207
+ if (n)
208
+ return () => {
209
+ const t = new Event("focus", { cancelable: !0 }), e = document.activeElement;
210
+ n(t);
211
+ const r = document.activeElement;
212
+ return r !== e && r instanceof HTMLElement && queueMicrotask(() => r.focus()), !t.defaultPrevented;
213
+ };
214
+ }
215
+ const mt = s.forwardRef(
216
+ function({ onOpenChange: t, ...e }, r) {
217
+ return /* @__PURE__ */ i(
218
+ f.Root,
219
+ {
220
+ "data-slot": "drawer",
221
+ onOpenChange: (o, a) => {
222
+ if (a.reason === "escape-key" && a.event.defaultPrevented) {
223
+ a.cancel();
224
+ return;
225
+ }
226
+ t == null || t(o, a);
227
+ },
228
+ ...e
229
+ }
230
+ );
313
231
  }
314
- ), it = s.forwardRef(function({ className: t, ...a }, o) {
315
- const r = d();
316
- return /* @__PURE__ */ n(
317
- k,
232
+ ), gt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, ...o }, a) {
233
+ const l = m();
234
+ return /* @__PURE__ */ i(
235
+ f.Trigger,
318
236
  {
319
- ref: o,
237
+ ref: a,
320
238
  "data-slot": "drawer-trigger",
321
- [l]: "drawer-trigger",
322
- className: m(
323
- !a.asChild && r.nativeTrigger,
324
- t
325
- ),
326
- ...a
239
+ [u]: "drawer-trigger",
240
+ className: p(!t && l.nativeTrigger, r),
241
+ ...o,
242
+ ...y(t, e)
327
243
  }
328
244
  );
329
- }), st = s.forwardRef(
330
- function(t, a) {
331
- return /* @__PURE__ */ n(
332
- O,
245
+ }), z = s.createContext(!1), wt = s.forwardRef(
246
+ function({ container: t, forceMount: e, ...r }, o) {
247
+ return /* @__PURE__ */ i(z.Provider, { value: !0, children: /* @__PURE__ */ i(
248
+ f.Portal,
333
249
  {
250
+ ref: o,
334
251
  "data-slot": "drawer-portal",
335
- [l]: "drawer-portal",
336
- ...t
252
+ [u]: "drawer-portal",
253
+ container: t ?? void 0,
254
+ keepMounted: e,
255
+ ...r
337
256
  }
338
- );
257
+ ) });
339
258
  }
340
- ), ct = s.forwardRef(function({ className: t, ...a }, o) {
341
- const r = d(), f = T();
342
- return /* @__PURE__ */ n(
343
- A,
259
+ ), yt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, forceMount: o, ...a }, l) {
260
+ const v = m(), C = M();
261
+ return /* @__PURE__ */ i(
262
+ f.Backdrop,
344
263
  {
345
- ref: o,
264
+ ref: l,
265
+ forceRender: !0,
346
266
  "data-slot": "drawer-overlay",
347
- [l]: "drawer-overlay",
348
- ...f,
349
- className: m(r.overlay, t),
350
- ...a
267
+ [u]: "drawer-overlay",
268
+ ...C,
269
+ className: p(v.overlay, r),
270
+ ...a,
271
+ ...y(t, e)
351
272
  }
352
273
  );
353
- }), lt = s.forwardRef(function({
354
- className: t,
355
- children: a,
274
+ }), ht = s.forwardRef(function({
275
+ asChild: t = !1,
276
+ className: e,
277
+ children: r,
356
278
  showCloseButton: o = !0,
357
- closeButtonLabel: r = "Close",
358
- side: f = "right",
359
- flush: N = !1,
360
- ...R
361
- }, S) {
362
- const u = d(), h = E(), z = T();
363
- return /* @__PURE__ */ b(
364
- F,
279
+ closeButtonLabel: a = "Close",
280
+ side: l = "right",
281
+ flush: v = !1,
282
+ forceMount: C,
283
+ onOpenAutoFocus: B,
284
+ onCloseAutoFocus: I,
285
+ ...O
286
+ }, H) {
287
+ const w = m(), Y = s.useContext(z), R = Z(), _ = M(), T = o && /* @__PURE__ */ P(
288
+ f.Close,
365
289
  {
366
- ref: S,
367
- "data-slot": "drawer-content",
368
- [l]: "drawer-content",
369
- ...h !== void 0 ? { "data-density": h } : {},
370
- ...z,
371
- "data-side": f,
372
- className: m(
373
- u.content,
374
- u[f],
375
- !N && u.contentPadding,
376
- t
377
- ),
378
- ...R,
290
+ "data-slot": "drawer-close",
291
+ [u]: "drawer-close",
292
+ className: w.closeButton,
379
293
  children: [
380
- a,
381
- o && /* @__PURE__ */ b(
382
- v,
383
- {
384
- "data-slot": "drawer-close",
385
- [l]: "drawer-close",
386
- className: u.closeButton,
387
- children: [
388
- /* @__PURE__ */ n(J, {}),
389
- /* @__PURE__ */ n("span", { className: u.srOnly, children: r })
390
- ]
391
- }
392
- )
294
+ /* @__PURE__ */ i(nt, {}),
295
+ /* @__PURE__ */ i("span", { className: w.srOnly, children: a })
393
296
  ]
394
297
  }
298
+ ), b = t ? X(r) : void 0, W = b ? {
299
+ render: s.cloneElement(
300
+ b,
301
+ void 0,
302
+ b.props.children,
303
+ T
304
+ )
305
+ } : {
306
+ children: /* @__PURE__ */ P(j, { children: [
307
+ r,
308
+ T
309
+ ] })
310
+ }, S = /* @__PURE__ */ i(
311
+ f.Popup,
312
+ {
313
+ ref: H,
314
+ "data-slot": "drawer-content",
315
+ [u]: "drawer-content",
316
+ ...R !== void 0 ? { "data-density": R } : {},
317
+ ..._,
318
+ "data-side": l,
319
+ initialFocus: F(B),
320
+ finalFocus: F(I),
321
+ className: p(
322
+ w.content,
323
+ w[l],
324
+ !v && w.contentPadding,
325
+ e
326
+ ),
327
+ ...O,
328
+ ...W
329
+ }
395
330
  );
396
- }), mt = s.forwardRef(function({ className: t, children: a, ...o }, r) {
397
- const f = d();
398
- return /* @__PURE__ */ n(
399
- v,
331
+ return Y ? S : /* @__PURE__ */ i(f.Portal, { keepMounted: C, children: S });
332
+ }), xt = s.forwardRef(function({ asChild: t = !1, className: e, children: r, ...o }, a) {
333
+ const l = m();
334
+ return /* @__PURE__ */ i(
335
+ f.Close,
400
336
  {
401
- ref: r,
337
+ ref: a,
402
338
  "data-slot": "drawer-close",
403
- [l]: "drawer-close",
404
- className: m(
405
- !o.asChild && f.nativeTrigger,
406
- f.close,
407
- t
339
+ [u]: "drawer-close",
340
+ className: p(
341
+ !t && l.nativeTrigger,
342
+ l.close,
343
+ e
408
344
  ),
409
345
  ...o,
410
- children: a
346
+ ...y(t, r)
411
347
  }
412
348
  );
413
- }), dt = s.forwardRef(
414
- function({ className: t, ...a }, o) {
415
- const r = d();
416
- return /* @__PURE__ */ n(
349
+ }), vt = s.forwardRef(
350
+ function({ className: t, ...e }, r) {
351
+ const o = m();
352
+ return /* @__PURE__ */ i(
417
353
  "div",
418
354
  {
419
- ref: o,
355
+ ref: r,
420
356
  "data-slot": "drawer-header",
421
- [l]: "drawer-header",
422
- className: m(r.header, t),
423
- ...a
357
+ [u]: "drawer-header",
358
+ className: p(o.header, t),
359
+ ...e
424
360
  }
425
361
  );
426
362
  }
427
- ), ft = s.forwardRef(
428
- function({ className: t, ...a }, o) {
429
- const r = d();
430
- return /* @__PURE__ */ n(
363
+ ), Ct = s.forwardRef(
364
+ function({ className: t, ...e }, r) {
365
+ const o = m();
366
+ return /* @__PURE__ */ i(
431
367
  "div",
432
368
  {
433
- ref: o,
369
+ ref: r,
434
370
  "data-slot": "drawer-footer",
435
- [l]: "drawer-footer",
436
- className: m(r.footer, t),
437
- ...a
371
+ [u]: "drawer-footer",
372
+ className: p(o.footer, t),
373
+ ...e
438
374
  }
439
375
  );
440
376
  }
441
- ), pt = s.forwardRef(function({ className: t, ...a }, o) {
442
- const r = d();
443
- return /* @__PURE__ */ n(
444
- Y,
377
+ ), bt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, ...o }, a) {
378
+ const l = m();
379
+ return /* @__PURE__ */ i(
380
+ f.Title,
445
381
  {
446
- ref: o,
382
+ ref: a,
447
383
  "data-slot": "drawer-title",
448
- [l]: "drawer-title",
449
- className: m(r.title, t),
450
- ...a
384
+ [u]: "drawer-title",
385
+ className: p(l.title, r),
386
+ ...o,
387
+ ...y(t, e)
451
388
  }
452
389
  );
453
- }), ut = s.forwardRef(function({ className: t, ...a }, o) {
454
- const r = d();
455
- return /* @__PURE__ */ n(
456
- X,
390
+ }), Dt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, ...o }, a) {
391
+ const l = m();
392
+ return /* @__PURE__ */ i(
393
+ f.Description,
457
394
  {
458
- ref: o,
395
+ ref: a,
459
396
  "data-slot": "drawer-description",
460
- [l]: "drawer-description",
461
- className: m(r.description, t),
462
- ...a
397
+ [u]: "drawer-description",
398
+ className: p(l.description, r),
399
+ ...o,
400
+ ...y(t, e)
463
401
  }
464
402
  );
465
403
  });
466
404
  export {
467
- nt as Drawer,
468
- mt as DrawerClose,
469
- lt as DrawerContent,
470
- ut as DrawerDescription,
471
- ft as DrawerFooter,
472
- dt as DrawerHeader,
473
- ct as DrawerOverlay,
474
- st as DrawerPortal,
475
- pt as DrawerTitle,
476
- it as DrawerTrigger
405
+ mt as Drawer,
406
+ xt as DrawerClose,
407
+ ht as DrawerContent,
408
+ Dt as DrawerDescription,
409
+ Ct as DrawerFooter,
410
+ vt as DrawerHeader,
411
+ yt as DrawerOverlay,
412
+ wt as DrawerPortal,
413
+ bt as DrawerTitle,
414
+ gt as DrawerTrigger
477
415
  };
478
416
  //# sourceMappingURL=drawer.js.map