@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,14 +1,16 @@
1
- import { jsx as t, jsxs as w } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import { Root as L, Portal as B, Content as k, Viewport as $, Group as P, Item as W, ItemIndicator as X, ItemText as z, Label as E, ScrollDownButton as j, ScrollUpButton as M, Separator as Y, Value as O, Trigger as U, Icon as Z } from "../../vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js";
4
- import { SLOT_ATTR as i, mergeClasses as m, shorthands as d } from "@epilot/zenith-runtime/v1";
5
- import { useAppearanceAttributes as V } from "../appearance-boundary/appearance-boundary.js";
6
- import { useDensity as F } from "../density-provider/density-provider.js";
7
- import { makeZenithStyles as G } from "../../styles/make-styles.js";
8
- import { boxModel as s, nativeControl as H } from "../../styles/host-reset.js";
9
- import { OVERLAY_Z_INDEX as _ } from "../../styles/overlay-layer.js";
10
- import { spacingElement1 as u, graySoft as J, gray11 as K, fontWeightSemibold as Q, leadingXs as tt, textXs as et, spacingElement2 as p, grayA11 as h, accentA3 as y, grayA12 as b, leadingSm as v, textSm as I, selectItemPaddingY as C, selectItemPaddingLeft as ot, body as rt, accentA11 as R, focusRing as q, accentSoft as at, grayA8 as nt, radiusMd as N, radius2xl as it, selectContentGap as lt, selectContentPadding as st, radiusLg as ct } from "../../tokens/index.js";
11
- const dt = (n) => /* @__PURE__ */ t(
1
+ import { jsx as o, jsxs as E, Fragment as D } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { createPortal as st } from "react-dom";
4
+ import { DirectionProvider as at } from "../../_virtual/_zenith-runtime-family_direction-provider.js";
5
+ import { Select as p } from "../../_virtual/_zenith-runtime-family_select.js";
6
+ import { mergeClasses as y, SLOT_ATTR as g, shorthands as v } from "@epilot/zenith-runtime/v1";
7
+ import { useAppearanceAttributes as ct } from "../appearance-boundary/appearance-boundary.js";
8
+ import { useDensity as dt } from "../density-provider/density-provider.js";
9
+ import { makeZenithStyles as ut } from "../../styles/make-styles.js";
10
+ import { boxModel as h, nativeControl as pt } from "../../styles/host-reset.js";
11
+ import { OVERLAY_Z_INDEX as j } from "../../styles/overlay-layer.js";
12
+ import { spacingElement1 as b, graySoft as ft, gray11 as gt, fontWeightSemibold as mt, leadingXs as ht, textXs as wt, spacingElement2 as S, grayA11 as W, accentA3 as G, grayA12 as U, leadingSm as Y, textSm as Z, selectItemPaddingY as H, selectItemPaddingLeft as xt, body as vt, accentA11 as V, focusRing as J, accentSoft as St, grayA8 as yt, radiusMd as K, radius2xl as bt, selectContentGap as It, selectContentPadding as Ct, radiusLg as At } from "../../tokens/index.js";
13
+ const Dt = (i) => /* @__PURE__ */ o(
12
14
  "svg",
13
15
  {
14
16
  xmlns: "http://www.w3.org/2000/svg",
@@ -16,10 +18,10 @@ const dt = (n) => /* @__PURE__ */ t(
16
18
  viewBox: "0 -960 960 960",
17
19
  width: "24px",
18
20
  fill: "currentColor",
19
- ...n,
20
- children: /* @__PURE__ */ t("path", { d: "M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z" })
21
+ ...i,
22
+ children: /* @__PURE__ */ o("path", { d: "M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z" })
21
23
  }
22
- ), pt = (n) => /* @__PURE__ */ t(
24
+ ), Lt = (i) => /* @__PURE__ */ o(
23
25
  "svg",
24
26
  {
25
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -27,10 +29,10 @@ const dt = (n) => /* @__PURE__ */ t(
27
29
  viewBox: "0 -960 960 960",
28
30
  width: "24px",
29
31
  fill: "currentColor",
30
- ...n,
31
- children: /* @__PURE__ */ t("path", { d: "m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z" })
32
+ ...i,
33
+ children: /* @__PURE__ */ o("path", { d: "m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z" })
32
34
  }
33
- ), mt = (n) => /* @__PURE__ */ t(
35
+ ), Rt = (i) => /* @__PURE__ */ o(
34
36
  "svg",
35
37
  {
36
38
  xmlns: "http://www.w3.org/2000/svg",
@@ -38,10 +40,10 @@ const dt = (n) => /* @__PURE__ */ t(
38
40
  viewBox: "0 -960 960 960",
39
41
  width: "24px",
40
42
  fill: "currentColor",
41
- ...n,
42
- children: /* @__PURE__ */ t("path", { d: "M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z" })
43
+ ...i,
44
+ children: /* @__PURE__ */ o("path", { d: "M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z" })
43
45
  }
44
- ), T = (n) => /* @__PURE__ */ t(
46
+ ), et = (i) => /* @__PURE__ */ o(
45
47
  "svg",
46
48
  {
47
49
  xmlns: "http://www.w3.org/2000/svg",
@@ -49,21 +51,21 @@ const dt = (n) => /* @__PURE__ */ t(
49
51
  viewBox: "0 -960 960 960",
50
52
  width: "24px",
51
53
  fill: "currentColor",
52
- ...n,
53
- children: /* @__PURE__ */ t("path", { d: "M480-528 324-372q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q12-12 28-12t28 12l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-528Z" })
54
+ ...i,
55
+ children: /* @__PURE__ */ o("path", { d: "M480-528 324-372q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q12-12 28-12t28 12l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-528Z" })
54
56
  }
55
- ), f = G({
57
+ ), C = ut({
56
58
  trigger: {
57
- ...H,
59
+ ...pt,
58
60
  display: "flex",
59
61
  width: "100%",
60
62
  alignItems: "center",
61
63
  justifyContent: "space-between",
62
- ...d.gap(p),
63
- ...d.borderRadius(ct),
64
+ ...v.gap(S),
65
+ ...v.borderRadius(At),
64
66
  backgroundColor: "transparent",
65
- fontSize: I,
66
- lineHeight: v,
67
+ fontSize: Z,
68
+ lineHeight: Y,
67
69
  outlineStyle: "none",
68
70
  whiteSpace: "normal",
69
71
  textAlign: "left",
@@ -78,39 +80,30 @@ const dt = (n) => /* @__PURE__ */ t(
78
80
  outlineWidth: "2px",
79
81
  outlineStyle: "solid",
80
82
  outlineOffset: "2px",
81
- outlineColor: q
83
+ outlineColor: J
82
84
  },
83
85
  ":disabled": {
84
86
  cursor: "not-allowed",
85
87
  opacity: 0.5
86
88
  },
87
89
  "&[data-placeholder]": {
88
- color: nt
90
+ color: yt
89
91
  },
90
92
  "& svg": {
91
93
  pointerEvents: "none",
92
94
  flexShrink: 0
93
95
  },
94
- [`& [${i}="select-value"]`]: {
96
+ [`& [${g}="select-value"]`]: {
95
97
  display: "flex",
96
98
  alignItems: "center",
97
- ...d.gap(p),
99
+ ...v.gap(S),
98
100
  overflow: "hidden",
99
101
  textOverflow: "ellipsis",
100
102
  whiteSpace: "nowrap"
101
103
  },
102
104
  // The open-state chevron rotation is declared HERE, on the trigger that carries the state
103
105
  // attribute, reaching the icon by SLOT_ATTR.
104
- [`&[data-state='open'] [${i}="select-icon"] svg`]: {
105
- transform: "rotate(180deg)"
106
- },
107
- [`&[data-state='open'] [${i}="select-icon"]`]: {
108
- transform: "rotate(180deg)"
109
- },
110
- [`&[data-open] [${i}="select-icon"] svg`]: {
111
- transform: "rotate(180deg)"
112
- },
113
- [`&[data-popup-open] [${i}="select-icon"] svg`]: {
106
+ [`&[data-popup-open] [${g}="select-icon"]`]: {
114
107
  transform: "rotate(180deg)"
115
108
  }
116
109
  },
@@ -121,10 +114,10 @@ const dt = (n) => /* @__PURE__ */ t(
121
114
  flexShrink: 0
122
115
  },
123
116
  triggerIcon: {
124
- ...s,
117
+ ...h,
125
118
  width: "1.5rem",
126
119
  height: "1.5rem",
127
- color: h,
120
+ color: W,
128
121
  transitionProperty: "transform",
129
122
  transitionDuration: "150ms",
130
123
  transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -133,7 +126,7 @@ const dt = (n) => /* @__PURE__ */ t(
133
126
  }
134
127
  },
135
128
  triggerClear: {
136
- ...s,
129
+ ...h,
137
130
  position: "absolute",
138
131
  right: "2.75rem",
139
132
  paddingTop: "0.125rem",
@@ -144,145 +137,140 @@ const dt = (n) => /* @__PURE__ */ t(
144
137
  alignItems: "center",
145
138
  justifyContent: "center",
146
139
  backgroundColor: "transparent",
147
- color: R,
140
+ color: V,
148
141
  cursor: "pointer",
149
- ...d.borderRadius(N),
142
+ ...v.borderRadius(K),
150
143
  ":hover": {
151
- backgroundColor: at
144
+ backgroundColor: St
152
145
  },
153
146
  ":focus-visible": {
154
- outlineColor: q,
147
+ outlineColor: J,
155
148
  outlineWidth: "2px",
156
149
  outlineStyle: "solid",
157
150
  outlineOffset: "2px"
158
151
  }
159
152
  },
160
153
  triggerClearIcon: {
161
- ...s,
154
+ ...h,
162
155
  width: "1.25rem",
163
156
  height: "1.25rem",
164
- color: R
157
+ color: V
158
+ },
159
+ // The positioner is what stacks against other layers, as Radix's popper wrapper did; it also
160
+ // keeps that wrapper's `max-content` floor so the content sizes the same way.
161
+ positioner: {
162
+ zIndex: j,
163
+ minWidth: "max-content"
164
+ },
165
+ hideWhenDetached: {
166
+ "&[data-anchor-hidden]": {
167
+ visibility: "hidden",
168
+ pointerEvents: "none"
169
+ }
165
170
  },
166
171
  popup: {
167
- ...s,
168
- backgroundColor: rt,
169
- // DENSITY-SPEC.md §2.3 — popup padding/gap only; the slide-in animation offsets a few lines
172
+ ...h,
173
+ // Radix laid its content out as a column: scroll-up arrow, viewport, scroll-down arrow.
174
+ display: "flex",
175
+ flexDirection: "column",
176
+ backgroundColor: vt,
177
+ // DENSITY-SPEC.md §2.3 — popup padding/gap only; the slide-in transition offsets a few lines
170
178
  // below deliberately keep the plain (non-density) `spacingElement2` value: they are not in the
171
179
  // approved matrix, and re-using the same primitive for two unrelated purposes doesn't make the
172
180
  // animation distance a density lever too.
173
- ...d.padding(st),
174
- ...d.gap(lt),
175
- color: b,
181
+ ...v.padding(Ct),
182
+ ...v.gap(It),
183
+ color: U,
176
184
  position: "relative",
177
- zIndex: _,
178
- transformOrigin: "var(--radix-select-content-transform-origin)",
185
+ zIndex: j,
186
+ transformOrigin: "var(--transform-origin)",
179
187
  overflowX: "hidden",
180
188
  overflowY: "auto",
181
- ...d.borderRadius(it),
182
- ...d.border("1px", "solid", "transparent"),
189
+ ...v.borderRadius(bt),
190
+ ...v.border("1px", "solid", "transparent"),
183
191
  // v1 shadow-md
184
192
  boxShadow: "0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a",
185
193
  outlineStyle: "none",
186
- maxHeight: "var(--radix-popper-available-height, 20rem)",
187
- "@media (prefers-reduced-motion: reduce)": {
188
- animationDuration: "0.01ms",
189
- animationIterationCount: "1",
190
- "&[data-state='open']": {
191
- animationDuration: "0.01ms"
192
- },
193
- "&[data-state='closed']": {
194
- animationDuration: "0.01ms"
195
- }
194
+ maxHeight: "var(--available-height, 20rem)",
195
+ transitionProperty: "opacity, transform",
196
+ transitionDuration: "150ms",
197
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
198
+ "&[data-starting-style]": {
199
+ opacity: 0,
200
+ transform: "scale(0.95)"
196
201
  },
197
- "&[data-state='open']": {
198
- animationName: {
199
- from: { opacity: 0, transform: "scale(0.95)" },
200
- to: { opacity: 1, transform: "scale(1)" }
201
- },
202
- animationDuration: "150ms",
203
- animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
202
+ "&[data-starting-style][data-side='bottom']": {
203
+ transform: `translateY(-${S}) scale(0.95)`
204
204
  },
205
- "&[data-state='open'][data-side='bottom']": {
206
- animationName: {
207
- from: {
208
- opacity: 0,
209
- transform: `translateY(-${p}) scale(0.95)`
210
- },
211
- to: { opacity: 1, transform: "translateY(0) scale(1)" }
212
- }
205
+ "&[data-starting-style][data-side='left']": {
206
+ transform: `translateX(${S}) scale(0.95)`
213
207
  },
214
- "&[data-state='open'][data-side='left']": {
215
- animationName: {
216
- from: {
217
- opacity: 0,
218
- transform: `translateX(${p}) scale(0.95)`
219
- },
220
- to: { opacity: 1, transform: "translateX(0) scale(1)" }
221
- }
208
+ "&[data-starting-style][data-side='right']": {
209
+ transform: `translateX(-${S}) scale(0.95)`
222
210
  },
223
- "&[data-state='open'][data-side='right']": {
224
- animationName: {
225
- from: {
226
- opacity: 0,
227
- transform: `translateX(-${p}) scale(0.95)`
228
- },
229
- to: { opacity: 1, transform: "translateX(0) scale(1)" }
230
- }
211
+ "&[data-starting-style][data-side='top']": {
212
+ transform: `translateY(${S}) scale(0.95)`
231
213
  },
232
- "&[data-state='open'][data-side='top']": {
233
- animationName: {
234
- from: {
235
- opacity: 0,
236
- transform: `translateY(${p}) scale(0.95)`
237
- },
238
- to: { opacity: 1, transform: "translateY(0) scale(1)" }
239
- }
214
+ "&[data-ending-style]": {
215
+ opacity: 0,
216
+ transform: "scale(0.95)",
217
+ transitionDuration: "100ms",
218
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
240
219
  },
241
- "&[data-state='closed']": {
242
- animationName: {
243
- from: { opacity: 1, transform: "scale(1)" },
244
- to: { opacity: 0, transform: "scale(0.95)" }
245
- },
246
- animationDuration: "100ms",
247
- animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
220
+ "@media (prefers-reduced-motion: reduce)": {
221
+ transitionDuration: "0.01ms",
222
+ "&[data-ending-style]": {
223
+ transitionDuration: "0.01ms"
224
+ }
248
225
  }
249
226
  },
250
227
  viewport: {
251
- ...s,
228
+ ...h,
229
+ // Radix's viewport: the scroller between the arrows, its scrollbar hidden.
230
+ position: "relative",
231
+ flexGrow: 1,
232
+ flexShrink: 1,
233
+ flexBasis: "0%",
234
+ overflowX: "hidden",
235
+ overflowY: "auto",
236
+ scrollbarWidth: "none",
237
+ "&::-webkit-scrollbar": {
238
+ display: "none"
239
+ },
252
240
  width: "100%",
253
- minWidth: "var(--radix-select-trigger-width)",
254
- scrollMarginTop: u,
255
- scrollMarginBottom: u
241
+ minWidth: "var(--anchor-width)",
242
+ scrollMarginTop: b,
243
+ scrollMarginBottom: b
256
244
  },
257
245
  item: {
258
- ...s,
246
+ ...h,
259
247
  position: "relative",
260
248
  display: "flex",
261
249
  width: "100%",
262
250
  cursor: "default",
263
251
  userSelect: "none",
264
252
  alignItems: "center",
265
- ...d.gap(p),
266
- ...d.borderRadius(N),
253
+ ...v.gap(S),
254
+ ...v.borderRadius(K),
267
255
  // DENSITY-SPEC.md §2.3 — left padding and vertical padding are density levers; right padding
268
256
  // stays a fixed 32px at every tier (reserves the check-indicator's space, not modeled in
269
257
  // density.yaml).
270
- paddingLeft: ot,
258
+ paddingLeft: xt,
271
259
  paddingRight: "2rem",
272
- paddingTop: C,
273
- paddingBottom: C,
274
- fontSize: I,
275
- lineHeight: v,
276
- color: b,
260
+ paddingTop: H,
261
+ paddingBottom: H,
262
+ fontSize: Z,
263
+ lineHeight: Y,
264
+ color: U,
277
265
  outlineStyle: "none",
278
266
  ":not(:first-child)": {
279
267
  marginTop: "0.125rem"
280
268
  },
281
269
  "&[data-highlighted]": {
282
- backgroundColor: y
270
+ backgroundColor: G
283
271
  },
284
- "&[data-state='checked']": {
285
- backgroundColor: y
272
+ "&[data-selected]": {
273
+ backgroundColor: G
286
274
  },
287
275
  "&[data-disabled]": {
288
276
  pointerEvents: "none",
@@ -293,13 +281,13 @@ const dt = (n) => /* @__PURE__ */ t(
293
281
  flexShrink: 0
294
282
  },
295
283
  "& svg:not([class*='text-'])": {
296
- color: h
284
+ color: W
297
285
  }
298
286
  },
299
287
  itemIndicatorWrapper: {
300
- ...s,
288
+ ...h,
301
289
  position: "absolute",
302
- right: p,
290
+ right: S,
303
291
  display: "flex",
304
292
  width: "1rem",
305
293
  height: "1rem",
@@ -307,256 +295,443 @@ const dt = (n) => /* @__PURE__ */ t(
307
295
  justifyContent: "center"
308
296
  },
309
297
  itemIndicatorIcon: {
310
- ...s,
298
+ ...h,
311
299
  // An inline svg sits on the text baseline and grows its wrapper by the line-height gap.
312
300
  display: "block",
313
301
  width: "1rem",
314
302
  height: "1rem",
315
- color: h
303
+ color: W
316
304
  },
317
305
  label: {
318
- ...s,
319
- paddingLeft: p,
320
- paddingRight: p,
306
+ ...h,
307
+ paddingLeft: S,
308
+ paddingRight: S,
321
309
  paddingTop: "0.375rem",
322
310
  paddingBottom: "0.375rem",
323
- fontSize: et,
324
- lineHeight: tt,
325
- fontWeight: Q,
326
- color: K
311
+ fontSize: wt,
312
+ lineHeight: ht,
313
+ fontWeight: mt,
314
+ color: gt
327
315
  },
328
316
  separator: {
329
- ...s,
317
+ ...h,
330
318
  pointerEvents: "none",
331
- marginLeft: `calc(-1 * ${u})`,
332
- marginRight: `calc(-1 * ${u})`,
333
- marginTop: u,
334
- marginBottom: u,
319
+ marginLeft: `calc(-1 * ${b})`,
320
+ marginRight: `calc(-1 * ${b})`,
321
+ marginTop: b,
322
+ marginBottom: b,
335
323
  height: "1px",
336
- backgroundColor: J
324
+ backgroundColor: ft
337
325
  },
338
326
  scrollArrow: {
339
327
  display: "flex",
328
+ flexShrink: 0,
340
329
  cursor: "default",
341
330
  alignItems: "center",
342
331
  justifyContent: "center"
343
332
  },
344
333
  scrollArrowUp: {
345
- ...s,
346
- paddingBottom: u
334
+ ...h,
335
+ paddingBottom: b
347
336
  },
348
337
  scrollArrowDown: {
349
- ...s,
350
- paddingTop: u
338
+ ...h,
339
+ paddingTop: b
351
340
  },
352
341
  scrollArrowIcon: {
353
- ...s,
342
+ ...h,
354
343
  width: "1.5rem",
355
344
  height: "1.5rem"
356
345
  },
357
346
  scrollArrowDownIcon: {
358
347
  transform: "rotate(180deg)"
359
348
  }
360
- }), Ct = c.forwardRef(function(o, e) {
361
- return /* @__PURE__ */ t(L, { "data-slot": "select", ...o });
362
- }), Rt = c.forwardRef(function({ className: o, ...e }, a) {
363
- return /* @__PURE__ */ t(
364
- P,
349
+ });
350
+ function A(i) {
351
+ const t = s.Children.toArray(i).filter(s.isValidElement);
352
+ return t.length === 1 ? t[0] : void 0;
353
+ }
354
+ function L(i, t) {
355
+ const r = i ? A(t) : void 0;
356
+ return r ? { render: r } : { children: t };
357
+ }
358
+ function M(i, t, r) {
359
+ const e = i ? A(t) : void 0;
360
+ if (!e) return { children: r(t) };
361
+ const n = e.props.children;
362
+ return { render: s.cloneElement(e, void 0, r(n)) };
363
+ }
364
+ function Tt(i) {
365
+ if (i)
366
+ return () => {
367
+ const t = new Event("focus", { cancelable: !0 }), r = document.activeElement;
368
+ i(t);
369
+ const e = document.activeElement;
370
+ return e !== r && e instanceof HTMLElement && queueMicrotask(() => e.focus()), !t.defaultPrevented;
371
+ };
372
+ }
373
+ function Nt() {
374
+ const i = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
375
+ let r = 0;
376
+ const e = () => {
377
+ r += 1, t.forEach((n) => n());
378
+ };
379
+ return {
380
+ set(n, a, l) {
381
+ const c = i.get(n);
382
+ (c == null ? void 0 : c.value) === a && c.label === l || (i.set(n, { value: a, label: l }), e());
383
+ },
384
+ delete(n) {
385
+ i.delete(n) && e();
386
+ },
387
+ labelFor(n) {
388
+ for (const a of i.values())
389
+ if (a.value === n) return a.label;
390
+ },
391
+ subscribe(n) {
392
+ return t.add(n), () => {
393
+ t.delete(n);
394
+ };
395
+ },
396
+ version: () => r
397
+ };
398
+ }
399
+ const R = s.createContext(null), I = s.createContext(!1);
400
+ function Q(i) {
401
+ return i === "" ? null : i;
402
+ }
403
+ const Ht = s.forwardRef(function({ children: t, dir: r, value: e, defaultValue: n, onValueChange: a, onOpenChange: l, ...c }, d) {
404
+ const [m] = s.useState(Nt), u = s.useMemo(() => ({ labels: m, dir: r }), [m, r]), x = /* @__PURE__ */ o(
405
+ p.Root,
365
406
  {
366
- ref: a,
367
- "data-slot": "select-group",
368
- [i]: "select-group",
369
- className: o,
370
- ...e
407
+ "data-slot": "select",
408
+ ...e !== void 0 ? { value: Q(e) } : {},
409
+ ...n !== void 0 ? { defaultValue: Q(n) } : {},
410
+ onValueChange: (f) => a == null ? void 0 : a(f ?? ""),
411
+ onOpenChange: (f, w) => {
412
+ if (w.reason === "escape-key" && w.event.defaultPrevented) {
413
+ w.cancel();
414
+ return;
415
+ }
416
+ l == null || l(f, w);
417
+ },
418
+ ...c,
419
+ children: /* @__PURE__ */ o(R.Provider, { value: u, children: t })
371
420
  }
372
421
  );
373
- }), qt = c.forwardRef(function({ className: o, ...e }, a) {
374
- return /* @__PURE__ */ t(
375
- O,
422
+ return r ? /* @__PURE__ */ o(at, { direction: r, children: x }) : x;
423
+ }), Vt = s.forwardRef(
424
+ function({ asChild: t = !1, className: r, children: e, ...n }, a) {
425
+ return s.useContext(I) ? /* @__PURE__ */ o(D, { children: e }) : /* @__PURE__ */ o(
426
+ p.Group,
427
+ {
428
+ ref: a,
429
+ "data-slot": "select-group",
430
+ [g]: "select-group",
431
+ className: r,
432
+ ...n,
433
+ ...L(t, e)
434
+ }
435
+ );
436
+ }
437
+ ), Jt = s.forwardRef(
438
+ function({ asChild: t = !1, className: r, children: e, placeholder: n, style: a, ...l }, c) {
439
+ var f;
440
+ const d = (f = s.useContext(R)) == null ? void 0 : f.labels;
441
+ s.useSyncExternalStore(
442
+ (d == null ? void 0 : d.subscribe) ?? qt,
443
+ (d == null ? void 0 : d.version) ?? tt,
444
+ (d == null ? void 0 : d.version) ?? tt
445
+ );
446
+ const m = t ? A(e) : void 0, u = t ? void 0 : e, x = (w) => w == null ? n : u ?? (d == null ? void 0 : d.labelFor(w)) ?? null;
447
+ return /* @__PURE__ */ o(
448
+ p.Value,
449
+ {
450
+ ref: c,
451
+ "data-slot": "select-value",
452
+ [g]: "select-value",
453
+ className: r,
454
+ style: { pointerEvents: "none", ...a },
455
+ ...l,
456
+ ...m ? { render: m } : {},
457
+ children: x
458
+ }
459
+ );
460
+ }
461
+ );
462
+ function qt() {
463
+ return () => {
464
+ };
465
+ }
466
+ function tt() {
467
+ return 0;
468
+ }
469
+ const Kt = s.forwardRef(function({ asChild: t = !1, className: r, children: e, ...n }, a) {
470
+ var u;
471
+ const l = C(), c = (u = s.useContext(R)) == null ? void 0 : u.dir, d = t ? A(e) : void 0, m = !d || typeof d.type != "string" || d.type === "button";
472
+ return /* @__PURE__ */ o(
473
+ p.Trigger,
376
474
  {
377
475
  ref: a,
378
- "data-slot": "select-value",
379
- [i]: "select-value",
380
- className: o,
381
- ...e
382
- }
383
- );
384
- }), Nt = c.forwardRef(function({ className: o, children: e, ...a }, l) {
385
- const r = f();
386
- return /* @__PURE__ */ w(
387
- U,
388
- {
389
- ref: l,
390
476
  "data-slot": "select-trigger",
391
- [i]: "select-trigger",
392
- className: m(r.trigger, o),
393
- ...a,
394
- children: [
395
- e,
396
- /* @__PURE__ */ t(
397
- Z,
477
+ [g]: "select-trigger",
478
+ nativeButton: m,
479
+ className: y(l.trigger, r),
480
+ ...c ? { dir: c } : {},
481
+ ...n,
482
+ ...M(t, e, (x) => /* @__PURE__ */ E(D, { children: [
483
+ x,
484
+ /* @__PURE__ */ o(
485
+ p.Icon,
398
486
  {
399
- asChild: !0,
400
487
  "data-slot": "select-icon",
401
- [i]: "select-icon",
402
- className: r.triggerIconWrapper,
403
- children: /* @__PURE__ */ t(mt, { className: r.triggerIcon })
488
+ [g]: "select-icon",
489
+ className: l.triggerIconWrapper,
490
+ render: /* @__PURE__ */ o(Rt, { className: l.triggerIcon })
404
491
  }
405
492
  )
406
- ]
493
+ ] }))
407
494
  }
408
495
  );
409
- }), Tt = c.forwardRef(function({ className: o, onClick: e, ...a }, l) {
410
- const r = f();
411
- return /* @__PURE__ */ t(
496
+ }), Qt = s.forwardRef(function({ className: t, onClick: r, ...e }, n) {
497
+ const a = C();
498
+ return /* @__PURE__ */ o(
412
499
  "span",
413
500
  {
414
- ref: l,
501
+ ref: n,
415
502
  role: "button",
416
503
  tabIndex: 0,
417
504
  "data-slot": "select-trigger-clear",
418
- [i]: "select-trigger-clear",
419
- className: m(r.triggerClear, o),
420
- onPointerDown: (g) => {
421
- g.preventDefault(), g.stopPropagation();
505
+ [g]: "select-trigger-clear",
506
+ className: y(a.triggerClear, t),
507
+ onPointerDown: (l) => {
508
+ l.preventDefault(), l.stopPropagation();
422
509
  },
423
- onClick: (g) => {
424
- g.preventDefault(), g.stopPropagation(), e == null || e(g);
510
+ onMouseDown: (l) => {
511
+ l.preventDefault(), l.stopPropagation();
425
512
  },
426
- ...a,
427
- children: /* @__PURE__ */ t(dt, { className: r.triggerClearIcon })
513
+ onClick: (l) => {
514
+ l.preventDefault(), l.stopPropagation(), r == null || r(l);
515
+ },
516
+ ...e,
517
+ children: /* @__PURE__ */ o(Dt, { className: a.triggerClearIcon })
428
518
  }
429
519
  );
430
- }), At = c.forwardRef(function({
431
- className: o,
520
+ }), Et = {
521
+ side: "none",
522
+ align: "none",
523
+ fallbackAxisSide: "none"
524
+ }, Pt = {
525
+ side: "flip",
526
+ align: "flip",
527
+ fallbackAxisSide: "none"
528
+ }, kt = 10, te = s.forwardRef(function({
529
+ asChild: t = !1,
530
+ className: r,
432
531
  children: e,
532
+ container: n,
433
533
  position: a = "popper",
434
- align: l = "center",
435
- container: r,
436
- ...g
437
- }, A) {
438
- const x = f(), S = F(), D = V();
439
- return /* @__PURE__ */ t(B, { container: r, children: /* @__PURE__ */ w(
440
- k,
441
- {
442
- ref: A,
443
- "data-slot": "select-content",
444
- [i]: "select-content",
445
- ...S !== void 0 ? { "data-density": S } : {},
446
- ...D,
447
- position: a,
448
- align: l,
449
- className: m(x.popup, o),
450
- ...g,
451
- children: [
452
- /* @__PURE__ */ t(gt, {}),
453
- /* @__PURE__ */ t(
454
- $,
534
+ side: l = "bottom",
535
+ sideOffset: c = 0,
536
+ align: d = "center",
537
+ alignOffset: m = 0,
538
+ arrowPadding: u = 0,
539
+ avoidCollisions: x = !0,
540
+ collisionBoundary: f = [],
541
+ collisionPadding: w = kt,
542
+ sticky: T = "partial",
543
+ hideWhenDetached: N = !1,
544
+ updatePositionStrategy: P,
545
+ onCloseAutoFocus: k,
546
+ ...ot
547
+ }, rt) {
548
+ var z, X, $;
549
+ const q = C(), F = (z = s.useContext(R)) == null ? void 0 : z.dir, O = dt(), nt = ct(), [_, it] = s.useState(null);
550
+ if (s.useLayoutEffect(() => {
551
+ it(document.createDocumentFragment());
552
+ }, []), s.useContext(I)) return null;
553
+ const lt = t ? ($ = (X = A(e)) == null ? void 0 : X.props) == null ? void 0 : $.children : e;
554
+ return /* @__PURE__ */ E(D, { children: [
555
+ _ && st(
556
+ /* @__PURE__ */ o(I.Provider, { value: !0, children: lt }),
557
+ _
558
+ ),
559
+ /* @__PURE__ */ o(
560
+ p.Portal,
561
+ {
562
+ container: n ?? void 0,
563
+ children: /* @__PURE__ */ o(
564
+ p.Positioner,
455
565
  {
456
- "data-slot": "select-viewport",
457
- [i]: "select-viewport",
458
- className: x.viewport,
459
- children: e
566
+ className: y(
567
+ q.positioner,
568
+ N && q.hideWhenDetached
569
+ ),
570
+ alignItemWithTrigger: a === "item-aligned",
571
+ side: l,
572
+ sideOffset: c,
573
+ align: d,
574
+ alignOffset: m,
575
+ arrowPadding: u,
576
+ collisionBoundary: (Array.isArray(f) ? f : [f]).filter((B) => B !== null),
577
+ collisionPadding: w,
578
+ collisionAvoidance: x ? Pt : Et,
579
+ sticky: T === "always",
580
+ children: /* @__PURE__ */ o(
581
+ p.Popup,
582
+ {
583
+ ref: rt,
584
+ "data-slot": "select-content",
585
+ [g]: "select-content",
586
+ ...O !== void 0 ? { "data-density": O } : {},
587
+ ...nt,
588
+ ...F ? { dir: F } : {},
589
+ finalFocus: Tt(k),
590
+ className: y(q.popup, r),
591
+ ...ot,
592
+ ...M(t, e, (B) => /* @__PURE__ */ E(D, { children: [
593
+ /* @__PURE__ */ o(Bt, {}),
594
+ /* @__PURE__ */ o(
595
+ p.List,
596
+ {
597
+ "data-slot": "select-viewport",
598
+ [g]: "select-viewport",
599
+ className: q.viewport,
600
+ children: B
601
+ }
602
+ ),
603
+ /* @__PURE__ */ o(Wt, {})
604
+ ] }))
605
+ }
606
+ )
460
607
  }
461
- ),
462
- /* @__PURE__ */ t(ut, {})
463
- ]
464
- }
465
- ) });
466
- }), Dt = c.forwardRef(function({ className: o, ...e }, a) {
467
- const l = f();
468
- return /* @__PURE__ */ t(
469
- E,
470
- {
471
- ref: a,
472
- "data-slot": "select-label",
473
- [i]: "select-label",
474
- className: m(l.label, o),
475
- ...e
476
- }
477
- );
478
- }), Lt = c.forwardRef(function({ className: o, children: e, ...a }, l) {
479
- const r = f();
480
- return /* @__PURE__ */ w(
481
- W,
482
- {
483
- ref: l,
484
- "data-slot": "select-item",
485
- [i]: "select-item",
486
- className: m(r.item, o),
487
- ...a,
488
- children: [
489
- /* @__PURE__ */ t("span", { className: r.itemIndicatorWrapper, children: /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(pt, { className: r.itemIndicatorIcon }) }) }),
490
- /* @__PURE__ */ t(z, { children: e })
491
- ]
492
- }
493
- );
494
- }), Bt = c.forwardRef(function({ className: o, ...e }, a) {
495
- const l = f();
496
- return /* @__PURE__ */ t(
497
- Y,
608
+ )
609
+ }
610
+ )
611
+ ] });
612
+ }), ee = s.forwardRef(
613
+ function({ asChild: t = !1, className: r, children: e, ...n }, a) {
614
+ const l = C();
615
+ return s.useContext(I) ? null : /* @__PURE__ */ o(
616
+ p.GroupLabel,
617
+ {
618
+ ref: a,
619
+ "data-slot": "select-label",
620
+ [g]: "select-label",
621
+ className: y(l.label, r),
622
+ ...n,
623
+ ...L(t, e)
624
+ }
625
+ );
626
+ }
627
+ ), oe = s.forwardRef(
628
+ function({
629
+ asChild: t = !1,
630
+ className: r,
631
+ children: e,
632
+ value: n,
633
+ disabled: a,
634
+ textValue: l,
635
+ ...c
636
+ }, d) {
637
+ var T, N, P;
638
+ const m = C(), u = (T = s.useContext(R)) == null ? void 0 : T.labels, x = s.useContext(I), [f] = s.useState(() => ({})), w = t ? (P = (N = A(e)) == null ? void 0 : N.props) == null ? void 0 : P.children : e;
639
+ return s.useLayoutEffect(() => {
640
+ u == null || u.set(f, n, w);
641
+ }), s.useLayoutEffect(() => () => u == null ? void 0 : u.delete(f), [u, f]), x ? null : /* @__PURE__ */ o(
642
+ p.Item,
643
+ {
644
+ ref: d,
645
+ value: n,
646
+ disabled: a,
647
+ ...l !== void 0 ? { label: l } : {},
648
+ "data-slot": "select-item",
649
+ [g]: "select-item",
650
+ className: y(m.item, r),
651
+ ...c,
652
+ ...M(t, e, (k) => /* @__PURE__ */ E(D, { children: [
653
+ /* @__PURE__ */ o("span", { className: m.itemIndicatorWrapper, children: /* @__PURE__ */ o(p.ItemIndicator, { children: /* @__PURE__ */ o(Lt, { className: m.itemIndicatorIcon }) }) }),
654
+ /* @__PURE__ */ o(p.ItemText, { render: /* @__PURE__ */ o("span", {}), children: k })
655
+ ] }))
656
+ }
657
+ );
658
+ }
659
+ ), re = s.forwardRef(function({ asChild: t = !1, className: r, children: e, ...n }, a) {
660
+ const l = C();
661
+ return s.useContext(I) ? null : /* @__PURE__ */ o(
662
+ p.Separator,
498
663
  {
499
664
  ref: a,
665
+ "aria-hidden": !0,
500
666
  "data-slot": "select-separator",
501
- [i]: "select-separator",
502
- className: m(l.separator, o),
503
- ...e
667
+ [g]: "select-separator",
668
+ className: y(l.separator, r),
669
+ ...n,
670
+ ...L(t, e)
504
671
  }
505
672
  );
506
- }), gt = c.forwardRef(function({ className: o, children: e, ...a }, l) {
507
- const r = f();
508
- return /* @__PURE__ */ t(
509
- M,
673
+ }), Bt = s.forwardRef(function({ asChild: t = !1, className: r, children: e, style: n, ...a }, l) {
674
+ const c = C();
675
+ return s.useContext(I) ? null : /* @__PURE__ */ o(
676
+ p.ScrollUpArrow,
510
677
  {
511
678
  ref: l,
512
679
  "data-slot": "select-scroll-up-button",
513
- [i]: "select-scroll-up-button",
514
- className: m(
515
- r.scrollArrow,
516
- r.scrollArrowUp,
517
- o
680
+ [g]: "select-scroll-up-button",
681
+ className: y(
682
+ c.scrollArrow,
683
+ c.scrollArrowUp,
684
+ r
518
685
  ),
686
+ style: { position: "static", ...n },
519
687
  ...a,
520
- children: e ?? /* @__PURE__ */ t(T, { className: r.scrollArrowIcon })
688
+ ...L(
689
+ t,
690
+ e ?? /* @__PURE__ */ o(et, { className: c.scrollArrowIcon })
691
+ )
521
692
  }
522
693
  );
523
- }), ut = c.forwardRef(function({ className: o, children: e, ...a }, l) {
524
- const r = f();
525
- return /* @__PURE__ */ t(
526
- j,
694
+ }), Wt = s.forwardRef(function({ asChild: t = !1, className: r, children: e, style: n, ...a }, l) {
695
+ const c = C();
696
+ return s.useContext(I) ? null : /* @__PURE__ */ o(
697
+ p.ScrollDownArrow,
527
698
  {
528
699
  ref: l,
529
700
  "data-slot": "select-scroll-down-button",
530
- [i]: "select-scroll-down-button",
531
- className: m(
532
- r.scrollArrow,
533
- r.scrollArrowDown,
534
- o
701
+ [g]: "select-scroll-down-button",
702
+ className: y(
703
+ c.scrollArrow,
704
+ c.scrollArrowDown,
705
+ r
535
706
  ),
707
+ style: { position: "static", ...n },
536
708
  ...a,
537
- children: e ?? /* @__PURE__ */ t(
538
- T,
539
- {
540
- className: m(
541
- r.scrollArrowIcon,
542
- r.scrollArrowDownIcon
543
- )
544
- }
709
+ ...L(
710
+ t,
711
+ e ?? /* @__PURE__ */ o(
712
+ et,
713
+ {
714
+ className: y(
715
+ c.scrollArrowIcon,
716
+ c.scrollArrowDownIcon
717
+ )
718
+ }
719
+ )
545
720
  )
546
721
  }
547
722
  );
548
723
  });
549
724
  export {
550
- Ct as Select,
551
- At as SelectContent,
552
- Rt as SelectGroup,
553
- Lt as SelectItem,
554
- Dt as SelectLabel,
555
- ut as SelectScrollDownButton,
556
- gt as SelectScrollUpButton,
557
- Bt as SelectSeparator,
558
- Nt as SelectTrigger,
559
- Tt as SelectTriggerClear,
560
- qt as SelectValue
725
+ Ht as Select,
726
+ te as SelectContent,
727
+ Vt as SelectGroup,
728
+ oe as SelectItem,
729
+ ee as SelectLabel,
730
+ Wt as SelectScrollDownButton,
731
+ Bt as SelectScrollUpButton,
732
+ re as SelectSeparator,
733
+ Kt as SelectTrigger,
734
+ Qt as SelectTriggerClear,
735
+ Jt as SelectValue
561
736
  };
562
737
  //# sourceMappingURL=select.js.map