@constructive-io/ui 0.11.0 → 0.13.0

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 (487) hide show
  1. package/README.md +1 -1
  2. package/dist/{ai-CiaH2sfF.js → ai-B7XNnqYL.js} +1674 -228
  3. package/dist/ai-B7XNnqYL.js.map +1 -0
  4. package/dist/{ai-lAkichk8.cjs → ai-DJ-YPj8c.cjs} +1768 -226
  5. package/dist/ai-DJ-YPj8c.cjs.map +1 -0
  6. package/dist/{alert-BXuP0ayz.d.ts → alert-CJ4Qyk6W.d.cts} +4 -2
  7. package/dist/{alert-BXuP0ayz.d.cts → alert-CJ4Qyk6W.d.ts} +4 -2
  8. package/dist/components/accordion.cjs +60 -0
  9. package/dist/components/accordion.cjs.map +1 -0
  10. package/dist/components/accordion.d.cts +14 -0
  11. package/dist/components/accordion.d.ts +14 -0
  12. package/dist/components/accordion.js +54 -0
  13. package/dist/components/accordion.js.map +1 -0
  14. package/dist/components/ai/index.cjs +17 -1
  15. package/dist/components/ai/index.d.cts +2 -2
  16. package/dist/components/ai/index.d.ts +2 -2
  17. package/dist/components/ai/index.js +2 -2
  18. package/dist/components/alert-dialog.cjs +17 -8
  19. package/dist/components/alert-dialog.cjs.map +1 -1
  20. package/dist/components/alert-dialog.d.cts +1 -1
  21. package/dist/components/alert-dialog.d.ts +1 -1
  22. package/dist/components/alert-dialog.js +17 -8
  23. package/dist/components/alert-dialog.js.map +1 -1
  24. package/dist/components/alert.cjs +18 -8
  25. package/dist/components/alert.cjs.map +1 -1
  26. package/dist/components/alert.d.cts +2 -2
  27. package/dist/components/alert.d.ts +2 -2
  28. package/dist/components/alert.js +18 -9
  29. package/dist/components/alert.js.map +1 -1
  30. package/dist/components/autocomplete.cjs +9 -5
  31. package/dist/components/autocomplete.cjs.map +1 -1
  32. package/dist/components/autocomplete.js +9 -5
  33. package/dist/components/autocomplete.js.map +1 -1
  34. package/dist/components/avatar.cjs +9 -3
  35. package/dist/components/avatar.cjs.map +1 -1
  36. package/dist/components/avatar.d.cts +6 -0
  37. package/dist/components/avatar.d.ts +6 -0
  38. package/dist/components/avatar.js +9 -3
  39. package/dist/components/avatar.js.map +1 -1
  40. package/dist/components/badge.cjs +25 -18
  41. package/dist/components/badge.cjs.map +1 -1
  42. package/dist/components/badge.js +25 -18
  43. package/dist/components/badge.js.map +1 -1
  44. package/dist/components/breadcrumb.cjs +9 -6
  45. package/dist/components/breadcrumb.cjs.map +1 -1
  46. package/dist/components/breadcrumb.js +9 -6
  47. package/dist/components/breadcrumb.js.map +1 -1
  48. package/dist/components/button-group.cjs +57 -0
  49. package/dist/components/button-group.cjs.map +1 -0
  50. package/dist/components/button-group.d.cts +16 -0
  51. package/dist/components/button-group.d.ts +16 -0
  52. package/dist/components/button-group.js +51 -0
  53. package/dist/components/button-group.js.map +1 -0
  54. package/dist/components/button.cjs +59 -15
  55. package/dist/components/button.cjs.map +1 -1
  56. package/dist/components/button.d.cts +32 -2
  57. package/dist/components/button.d.ts +32 -2
  58. package/dist/components/button.js +59 -15
  59. package/dist/components/button.js.map +1 -1
  60. package/dist/components/calendar-rac.cjs +14 -8
  61. package/dist/components/calendar-rac.cjs.map +1 -1
  62. package/dist/components/calendar-rac.js +14 -8
  63. package/dist/components/calendar-rac.js.map +1 -1
  64. package/dist/components/card.cjs +35 -23
  65. package/dist/components/card.cjs.map +1 -1
  66. package/dist/components/card.d.cts +3 -2
  67. package/dist/components/card.d.ts +3 -2
  68. package/dist/components/card.js +35 -23
  69. package/dist/components/card.js.map +1 -1
  70. package/dist/components/checkbox.cjs +5 -5
  71. package/dist/components/checkbox.cjs.map +1 -1
  72. package/dist/components/checkbox.js +5 -5
  73. package/dist/components/checkbox.js.map +1 -1
  74. package/dist/components/collapsible.cjs +3 -3
  75. package/dist/components/collapsible.cjs.map +1 -1
  76. package/dist/components/collapsible.js +3 -3
  77. package/dist/components/collapsible.js.map +1 -1
  78. package/dist/components/combobox.cjs +24 -12
  79. package/dist/components/combobox.cjs.map +1 -1
  80. package/dist/components/combobox.d.cts +2 -1
  81. package/dist/components/combobox.d.ts +2 -1
  82. package/dist/components/combobox.js +24 -12
  83. package/dist/components/combobox.js.map +1 -1
  84. package/dist/components/command.cjs +25 -14
  85. package/dist/components/command.cjs.map +1 -1
  86. package/dist/components/command.d.cts +6 -2
  87. package/dist/components/command.d.ts +6 -2
  88. package/dist/components/command.js +25 -14
  89. package/dist/components/command.js.map +1 -1
  90. package/dist/components/dialog.cjs +22 -12
  91. package/dist/components/dialog.cjs.map +1 -1
  92. package/dist/components/dialog.d.cts +5 -2
  93. package/dist/components/dialog.d.ts +5 -2
  94. package/dist/components/dialog.js +22 -12
  95. package/dist/components/dialog.js.map +1 -1
  96. package/dist/components/dock.cjs +50 -27
  97. package/dist/components/dock.cjs.map +1 -1
  98. package/dist/components/dock.d.cts +1 -1
  99. package/dist/components/dock.d.ts +1 -1
  100. package/dist/components/dock.js +51 -28
  101. package/dist/components/dock.js.map +1 -1
  102. package/dist/components/drawer.cjs +22 -14
  103. package/dist/components/drawer.cjs.map +1 -1
  104. package/dist/components/drawer.js +22 -14
  105. package/dist/components/drawer.js.map +1 -1
  106. package/dist/components/dropdown-menu.cjs +34 -28
  107. package/dist/components/dropdown-menu.cjs.map +1 -1
  108. package/dist/components/dropdown-menu.d.cts +2 -2
  109. package/dist/components/dropdown-menu.d.ts +2 -2
  110. package/dist/components/dropdown-menu.js +52 -46
  111. package/dist/components/dropdown-menu.js.map +1 -1
  112. package/dist/components/empty.cjs +4 -4
  113. package/dist/components/empty.cjs.map +1 -1
  114. package/dist/components/empty.js +4 -4
  115. package/dist/components/empty.js.map +1 -1
  116. package/dist/components/field.cjs +33 -33
  117. package/dist/components/field.cjs.map +1 -1
  118. package/dist/components/field.d.cts +1 -1
  119. package/dist/components/field.d.ts +1 -1
  120. package/dist/components/field.js +34 -34
  121. package/dist/components/field.js.map +1 -1
  122. package/dist/components/flickering-grid.cjs +1 -1
  123. package/dist/components/flickering-grid.cjs.map +1 -1
  124. package/dist/components/flickering-grid.js +1 -1
  125. package/dist/components/flickering-grid.js.map +1 -1
  126. package/dist/components/flow-zoom-panel.cjs +10 -5
  127. package/dist/components/flow-zoom-panel.cjs.map +1 -1
  128. package/dist/components/flow-zoom-panel.d.cts +8 -1
  129. package/dist/components/flow-zoom-panel.d.ts +8 -1
  130. package/dist/components/flow-zoom-panel.js +10 -5
  131. package/dist/components/flow-zoom-panel.js.map +1 -1
  132. package/dist/components/form-control.cjs +12 -8
  133. package/dist/components/form-control.cjs.map +1 -1
  134. package/dist/components/form-control.js +12 -8
  135. package/dist/components/form-control.js.map +1 -1
  136. package/dist/components/form.cjs +5 -5
  137. package/dist/components/form.cjs.map +1 -1
  138. package/dist/components/form.js +5 -5
  139. package/dist/components/form.js.map +1 -1
  140. package/dist/components/input-group.cjs +13 -7
  141. package/dist/components/input-group.cjs.map +1 -1
  142. package/dist/components/input-group.d.cts +2 -2
  143. package/dist/components/input-group.d.ts +2 -2
  144. package/dist/components/input-group.js +11 -7
  145. package/dist/components/input-group.js.map +1 -1
  146. package/dist/components/input-otp.cjs +252 -0
  147. package/dist/components/input-otp.cjs.map +1 -0
  148. package/dist/components/input-otp.d.cts +44 -0
  149. package/dist/components/input-otp.d.ts +44 -0
  150. package/dist/components/input-otp.js +251 -0
  151. package/dist/components/input-otp.js.map +1 -0
  152. package/dist/components/input.cjs +10 -4
  153. package/dist/components/input.cjs.map +1 -1
  154. package/dist/components/input.d.cts +11 -2
  155. package/dist/components/input.d.ts +11 -2
  156. package/dist/components/input.js +10 -4
  157. package/dist/components/input.js.map +1 -1
  158. package/dist/components/item.cjs +151 -0
  159. package/dist/components/item.cjs.map +1 -0
  160. package/dist/components/item.d.cts +37 -0
  161. package/dist/components/item.d.ts +37 -0
  162. package/dist/components/item.js +137 -0
  163. package/dist/components/item.js.map +1 -0
  164. package/dist/components/json-input.cjs +4 -143
  165. package/dist/components/json-input.d.cts +6 -4
  166. package/dist/components/json-input.d.ts +6 -4
  167. package/dist/components/json-input.js +2 -140
  168. package/dist/components/kbd.cjs +35 -0
  169. package/dist/components/kbd.cjs.map +1 -0
  170. package/dist/components/kbd.d.cts +16 -0
  171. package/dist/components/kbd.d.ts +16 -0
  172. package/dist/components/kbd.js +31 -0
  173. package/dist/components/kbd.js.map +1 -0
  174. package/dist/components/label.cjs +3 -3
  175. package/dist/components/label.cjs.map +1 -1
  176. package/dist/components/label.js +3 -3
  177. package/dist/components/label.js.map +1 -1
  178. package/dist/components/motion-grid.cjs +20 -8
  179. package/dist/components/motion-grid.cjs.map +1 -1
  180. package/dist/components/motion-grid.js +20 -8
  181. package/dist/components/motion-grid.js.map +1 -1
  182. package/dist/components/multi-select.cjs +77 -67
  183. package/dist/components/multi-select.cjs.map +1 -1
  184. package/dist/components/multi-select.js +77 -67
  185. package/dist/components/multi-select.js.map +1 -1
  186. package/dist/components/page-header.cjs +12 -9
  187. package/dist/components/page-header.cjs.map +1 -1
  188. package/dist/components/page-header.js +12 -9
  189. package/dist/components/page-header.js.map +1 -1
  190. package/dist/components/pagination.cjs +10 -4
  191. package/dist/components/pagination.cjs.map +1 -1
  192. package/dist/components/pagination.d.cts +1 -1
  193. package/dist/components/pagination.d.ts +1 -1
  194. package/dist/components/pagination.js +10 -4
  195. package/dist/components/pagination.js.map +1 -1
  196. package/dist/components/phone-input.cjs +228 -0
  197. package/dist/components/phone-input.cjs.map +1 -0
  198. package/dist/components/phone-input.d.cts +42 -0
  199. package/dist/components/phone-input.d.ts +42 -0
  200. package/dist/components/phone-input.js +220 -0
  201. package/dist/components/phone-input.js.map +1 -0
  202. package/dist/components/popover.cjs +5 -4
  203. package/dist/components/popover.cjs.map +1 -1
  204. package/dist/components/popover.js +5 -4
  205. package/dist/components/popover.js.map +1 -1
  206. package/dist/components/progress.cjs +20 -3
  207. package/dist/components/progress.cjs.map +1 -1
  208. package/dist/components/progress.d.cts +1 -1
  209. package/dist/components/progress.d.ts +1 -1
  210. package/dist/components/progress.js +20 -3
  211. package/dist/components/progress.js.map +1 -1
  212. package/dist/components/progressive-blur-scroll-container.cjs +2 -2
  213. package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
  214. package/dist/components/progressive-blur-scroll-container.d.cts +1 -1
  215. package/dist/components/progressive-blur-scroll-container.d.ts +1 -1
  216. package/dist/components/progressive-blur-scroll-container.js +2 -2
  217. package/dist/components/progressive-blur-scroll-container.js.map +1 -1
  218. package/dist/components/progressive-blur.cjs +3 -2
  219. package/dist/components/progressive-blur.cjs.map +1 -1
  220. package/dist/components/progressive-blur.js +3 -2
  221. package/dist/components/progressive-blur.js.map +1 -1
  222. package/dist/components/radio-group.cjs +2 -2
  223. package/dist/components/radio-group.cjs.map +1 -1
  224. package/dist/components/radio-group.js +2 -2
  225. package/dist/components/radio-group.js.map +1 -1
  226. package/dist/components/record-picker.cjs +1 -1
  227. package/dist/components/record-picker.js +1 -1
  228. package/dist/components/resizable.cjs +2 -2
  229. package/dist/components/resizable.cjs.map +1 -1
  230. package/dist/components/resizable.js +2 -2
  231. package/dist/components/resizable.js.map +1 -1
  232. package/dist/components/responsive-diagram.cjs +43 -21
  233. package/dist/components/responsive-diagram.cjs.map +1 -1
  234. package/dist/components/responsive-diagram.d.cts +7 -1
  235. package/dist/components/responsive-diagram.d.ts +7 -1
  236. package/dist/components/responsive-diagram.js +43 -21
  237. package/dist/components/responsive-diagram.js.map +1 -1
  238. package/dist/components/scroll-area.cjs +2 -2
  239. package/dist/components/scroll-area.cjs.map +1 -1
  240. package/dist/components/scroll-area.js +2 -2
  241. package/dist/components/scroll-area.js.map +1 -1
  242. package/dist/components/select.cjs +84 -20
  243. package/dist/components/select.cjs.map +1 -1
  244. package/dist/components/select.d.cts +12 -7
  245. package/dist/components/select.d.ts +12 -7
  246. package/dist/components/select.js +84 -20
  247. package/dist/components/select.js.map +1 -1
  248. package/dist/components/separator.cjs +1 -1
  249. package/dist/components/separator.cjs.map +1 -1
  250. package/dist/components/separator.d.cts +11 -2
  251. package/dist/components/separator.d.ts +11 -2
  252. package/dist/components/separator.js +1 -1
  253. package/dist/components/separator.js.map +1 -1
  254. package/dist/components/sheet.cjs +1 -1
  255. package/dist/components/sheet.d.cts +11 -5
  256. package/dist/components/sheet.d.ts +12 -6
  257. package/dist/components/sheet.js +1 -1
  258. package/dist/components/sidebar.cjs +2 -1
  259. package/dist/components/sidebar.d.cts +7 -6
  260. package/dist/components/sidebar.d.ts +7 -6
  261. package/dist/components/sidebar.js +2 -1
  262. package/dist/components/slider.cjs +47 -0
  263. package/dist/components/slider.cjs.map +1 -0
  264. package/dist/components/slider.d.cts +8 -0
  265. package/dist/components/slider.d.ts +8 -0
  266. package/dist/components/slider.js +44 -0
  267. package/dist/components/slider.js.map +1 -0
  268. package/dist/components/sonner.cjs +15 -4
  269. package/dist/components/sonner.cjs.map +1 -1
  270. package/dist/components/sonner.d.cts +10 -1
  271. package/dist/components/sonner.d.ts +10 -1
  272. package/dist/components/sonner.js +16 -5
  273. package/dist/components/sonner.js.map +1 -1
  274. package/dist/components/spinner.cjs +25 -0
  275. package/dist/components/spinner.cjs.map +1 -0
  276. package/dist/components/spinner.d.cts +16 -0
  277. package/dist/components/spinner.d.ts +16 -0
  278. package/dist/components/spinner.js +22 -0
  279. package/dist/components/spinner.js.map +1 -0
  280. package/dist/components/stack/index.cjs +1 -1
  281. package/dist/components/stack/index.js +1 -1
  282. package/dist/components/stepper.cjs +23 -17
  283. package/dist/components/stepper.cjs.map +1 -1
  284. package/dist/components/stepper.d.cts +2 -2
  285. package/dist/components/stepper.d.ts +2 -2
  286. package/dist/components/stepper.js +23 -17
  287. package/dist/components/stepper.js.map +1 -1
  288. package/dist/components/switch.cjs +5 -5
  289. package/dist/components/switch.cjs.map +1 -1
  290. package/dist/components/switch.js +5 -5
  291. package/dist/components/switch.js.map +1 -1
  292. package/dist/components/table.cjs +26 -7
  293. package/dist/components/table.cjs.map +1 -1
  294. package/dist/components/table.d.cts +20 -2
  295. package/dist/components/table.d.ts +20 -2
  296. package/dist/components/table.js +26 -8
  297. package/dist/components/table.js.map +1 -1
  298. package/dist/components/tabs.cjs +61 -8
  299. package/dist/components/tabs.cjs.map +1 -1
  300. package/dist/components/tabs.d.cts +13 -2
  301. package/dist/components/tabs.d.ts +13 -2
  302. package/dist/components/tabs.js +63 -11
  303. package/dist/components/tabs.js.map +1 -1
  304. package/dist/components/tags.cjs +10 -5
  305. package/dist/components/tags.cjs.map +1 -1
  306. package/dist/components/tags.d.cts +1 -1
  307. package/dist/components/tags.d.ts +1 -1
  308. package/dist/components/tags.js +10 -5
  309. package/dist/components/tags.js.map +1 -1
  310. package/dist/components/textarea.cjs +5 -4
  311. package/dist/components/textarea.cjs.map +1 -1
  312. package/dist/components/textarea.js +5 -4
  313. package/dist/components/textarea.js.map +1 -1
  314. package/dist/components/toast/index.cjs +1 -1
  315. package/dist/components/toast/index.d.cts +2 -2
  316. package/dist/components/toast/index.d.ts +2 -2
  317. package/dist/components/toast/index.js +1 -1
  318. package/dist/components/toggle-group.cjs +69 -0
  319. package/dist/components/toggle-group.cjs.map +1 -0
  320. package/dist/components/toggle-group.d.cts +27 -0
  321. package/dist/components/toggle-group.d.ts +27 -0
  322. package/dist/components/toggle-group.js +65 -0
  323. package/dist/components/toggle-group.js.map +1 -0
  324. package/dist/components/toggle.cjs +54 -0
  325. package/dist/components/toggle.cjs.map +1 -0
  326. package/dist/components/toggle.d.cts +13 -0
  327. package/dist/components/toggle.d.ts +13 -0
  328. package/dist/components/toggle.js +50 -0
  329. package/dist/components/toggle.js.map +1 -0
  330. package/dist/components/tooltip.cjs +18 -6
  331. package/dist/components/tooltip.cjs.map +1 -1
  332. package/dist/components/tooltip.d.cts +1 -1
  333. package/dist/components/tooltip.d.ts +1 -1
  334. package/dist/components/tooltip.js +18 -6
  335. package/dist/components/tooltip.js.map +1 -1
  336. package/dist/components/unlink-button.cjs +2 -2
  337. package/dist/components/unlink-button.cjs.map +1 -1
  338. package/dist/components/unlink-button.d.cts +1 -0
  339. package/dist/components/unlink-button.d.ts +1 -0
  340. package/dist/components/unlink-button.js +2 -2
  341. package/dist/components/unlink-button.js.map +1 -1
  342. package/dist/components/workspace-kit/index.cjs +1477 -0
  343. package/dist/components/workspace-kit/index.cjs.map +1 -0
  344. package/dist/components/workspace-kit/index.d.cts +716 -0
  345. package/dist/components/workspace-kit/index.d.ts +716 -0
  346. package/dist/components/workspace-kit/index.js +1410 -0
  347. package/dist/components/workspace-kit/index.js.map +1 -0
  348. package/dist/compose-refs-Mbma1O3M.js +47 -0
  349. package/dist/compose-refs-Mbma1O3M.js.map +1 -0
  350. package/dist/compose-refs-uPrvNoiU.cjs +52 -0
  351. package/dist/compose-refs-uPrvNoiU.cjs.map +1 -0
  352. package/dist/fluid-highlight-AW-OITqJ.cjs +124 -0
  353. package/dist/fluid-highlight-AW-OITqJ.cjs.map +1 -0
  354. package/dist/fluid-highlight-DxWeZ7iu.js +119 -0
  355. package/dist/fluid-highlight-DxWeZ7iu.js.map +1 -0
  356. package/dist/{index-UnM04j0t.d.ts → index-BQZxmMpw.d.cts} +11 -31
  357. package/dist/{index-UnM04j0t.d.cts → index-BQZxmMpw.d.ts} +11 -31
  358. package/dist/{index-CyaFaZe2.d.cts → index-CiO-3M_X.d.cts} +334 -18
  359. package/dist/{index-B0wXxIAb.d.ts → index-z3LqQ5L5.d.ts} +334 -18
  360. package/dist/index.cjs +107 -17
  361. package/dist/index.d.cts +63 -13
  362. package/dist/index.d.ts +63 -13
  363. package/dist/index.js +27 -14
  364. package/dist/initial-focus-B8RLtyOZ.cjs +67 -0
  365. package/dist/initial-focus-B8RLtyOZ.cjs.map +1 -0
  366. package/dist/initial-focus-j2E0EnIx.js +61 -0
  367. package/dist/initial-focus-j2E0EnIx.js.map +1 -0
  368. package/dist/initials-DSkWTOb0.cjs +127 -0
  369. package/dist/initials-DSkWTOb0.cjs.map +1 -0
  370. package/dist/initials-kCcHgrSy.js +97 -0
  371. package/dist/initials-kCcHgrSy.js.map +1 -0
  372. package/dist/json-input-CH5aEmoA.js +293 -0
  373. package/dist/json-input-CH5aEmoA.js.map +1 -0
  374. package/dist/json-input-D8yM578l.cjs +311 -0
  375. package/dist/json-input-D8yM578l.cjs.map +1 -0
  376. package/dist/{motion-config-COCFHq1L.cjs → motion-config-DZ7w5Uhq.cjs} +32 -2
  377. package/dist/motion-config-DZ7w5Uhq.cjs.map +1 -0
  378. package/dist/{motion-config-COsZ6azM.js → motion-config-DoFp4I8f.js} +21 -3
  379. package/dist/motion-config-DoFp4I8f.js.map +1 -0
  380. package/dist/{record-picker-Bz4FApxD.cjs → record-picker-BQ1-Vx0g.cjs} +23 -8
  381. package/dist/record-picker-BQ1-Vx0g.cjs.map +1 -0
  382. package/dist/{record-picker-BbxngCeV.js → record-picker-DSRo4RXV.js} +23 -8
  383. package/dist/record-picker-DSRo4RXV.js.map +1 -0
  384. package/dist/{sheet-BdA0rfIz.cjs → sheet-OxWlnT_G.cjs} +25 -32
  385. package/dist/sheet-OxWlnT_G.cjs.map +1 -0
  386. package/dist/{sheet-BLHnhLRH.js → sheet-wPF_l9Cn.js} +25 -32
  387. package/dist/sheet-wPF_l9Cn.js.map +1 -0
  388. package/dist/{sidebar-BavjjJp0.cjs → sidebar-BEEWmJwC.cjs} +74 -57
  389. package/dist/sidebar-BEEWmJwC.cjs.map +1 -0
  390. package/dist/{sidebar-DeoL2ttp.js → sidebar-DWl1Azyv.js} +74 -57
  391. package/dist/sidebar-DWl1Azyv.js.map +1 -0
  392. package/dist/{stack-ci2lkfkr.cjs → stack-CEvmUSwF.cjs} +12 -10
  393. package/dist/stack-CEvmUSwF.cjs.map +1 -0
  394. package/dist/{stack-C9GROTGA.js → stack-Kqu7YaR0.js} +12 -10
  395. package/dist/stack-Kqu7YaR0.js.map +1 -0
  396. package/dist/text-runs-CdmlS5C7.cjs +52 -0
  397. package/dist/text-runs-CdmlS5C7.cjs.map +1 -0
  398. package/dist/text-runs-DqcEO8L_.js +45 -0
  399. package/dist/text-runs-DqcEO8L_.js.map +1 -0
  400. package/dist/theme-DTTTlylA.d.cts +520 -0
  401. package/dist/theme-DTTTlylA.d.ts +520 -0
  402. package/dist/theme-dials-config.cjs +273 -0
  403. package/dist/theme-dials-config.cjs.map +1 -0
  404. package/dist/theme-dials-config.d.cts +95 -0
  405. package/dist/theme-dials-config.d.ts +95 -0
  406. package/dist/theme-dials-config.js +269 -0
  407. package/dist/theme-dials-config.js.map +1 -0
  408. package/dist/theme-presets.cjs +922 -0
  409. package/dist/theme-presets.cjs.map +1 -0
  410. package/dist/theme-presets.d.cts +89 -0
  411. package/dist/theme-presets.d.ts +89 -0
  412. package/dist/theme-presets.js +912 -0
  413. package/dist/theme-presets.js.map +1 -0
  414. package/dist/theme-tuning-DjgDvV8V.d.ts +158 -0
  415. package/dist/theme-tuning-TJ76tnxZ.d.cts +158 -0
  416. package/dist/theme-tuning.cjs +349 -0
  417. package/dist/theme-tuning.cjs.map +1 -0
  418. package/dist/theme-tuning.d.cts +2 -0
  419. package/dist/theme-tuning.d.ts +2 -0
  420. package/dist/theme-tuning.js +333 -0
  421. package/dist/theme-tuning.js.map +1 -0
  422. package/dist/theme.cjs +432 -0
  423. package/dist/theme.cjs.map +1 -0
  424. package/dist/theme.d.cts +2 -0
  425. package/dist/theme.d.ts +2 -0
  426. package/dist/theme.js +430 -0
  427. package/dist/theme.js.map +1 -0
  428. package/dist/toast-08jF1DBQ.cjs +193 -0
  429. package/dist/toast-08jF1DBQ.cjs.map +1 -0
  430. package/dist/toast-CVW5XY4u.js +164 -0
  431. package/dist/toast-CVW5XY4u.js.map +1 -0
  432. package/dist/toast-details-BdxxSLlN.cjs +209 -0
  433. package/dist/toast-details-BdxxSLlN.cjs.map +1 -0
  434. package/dist/toast-details-CfsB1Vxb.js +198 -0
  435. package/dist/toast-details-CfsB1Vxb.js.map +1 -0
  436. package/dist/{tooltip-CTRQoN1A.d.ts → tooltip-Fqb4JK-g.d.cts} +2 -2
  437. package/dist/{tooltip-CTRQoN1A.d.cts → tooltip-Fqb4JK-g.d.ts} +2 -2
  438. package/dist/tuning-BKVFsxLr.js +48 -0
  439. package/dist/tuning-BKVFsxLr.js.map +1 -0
  440. package/dist/tuning-BRPG7U1U.cjs +71 -0
  441. package/dist/tuning-BRPG7U1U.cjs.map +1 -0
  442. package/dist/use-document-theme-BSEuNsEE.cjs +43 -0
  443. package/dist/use-document-theme-BSEuNsEE.cjs.map +1 -0
  444. package/dist/use-document-theme-Ch_PqxZz.js +38 -0
  445. package/dist/use-document-theme-Ch_PqxZz.js.map +1 -0
  446. package/dist/use-scroll-fade-CaHp52u4.cjs +79 -0
  447. package/dist/use-scroll-fade-CaHp52u4.cjs.map +1 -0
  448. package/dist/use-scroll-fade-ilq-o00-.js +72 -0
  449. package/dist/use-scroll-fade-ilq-o00-.js.map +1 -0
  450. package/package.json +163 -27
  451. package/src/styles/globals.css +176 -97
  452. package/dist/ai-CiaH2sfF.js.map +0 -1
  453. package/dist/ai-lAkichk8.cjs.map +0 -1
  454. package/dist/button-DBRYW_AI.d.cts +0 -20
  455. package/dist/button-DBRYW_AI.d.ts +0 -20
  456. package/dist/components/app-bar.cjs +0 -81
  457. package/dist/components/app-bar.cjs.map +0 -1
  458. package/dist/components/app-bar.d.cts +0 -27
  459. package/dist/components/app-bar.d.ts +0 -27
  460. package/dist/components/app-bar.js +0 -77
  461. package/dist/components/app-bar.js.map +0 -1
  462. package/dist/components/app-shell.cjs +0 -267
  463. package/dist/components/app-shell.cjs.map +0 -1
  464. package/dist/components/app-shell.d.cts +0 -98
  465. package/dist/components/app-shell.d.ts +0 -98
  466. package/dist/components/app-shell.js +0 -264
  467. package/dist/components/app-shell.js.map +0 -1
  468. package/dist/components/json-input.cjs.map +0 -1
  469. package/dist/components/json-input.js.map +0 -1
  470. package/dist/input-CBrCuMH8.d.cts +0 -11
  471. package/dist/input-CBrCuMH8.d.ts +0 -11
  472. package/dist/motion-config-COCFHq1L.cjs.map +0 -1
  473. package/dist/motion-config-COsZ6azM.js.map +0 -1
  474. package/dist/record-picker-BbxngCeV.js.map +0 -1
  475. package/dist/record-picker-Bz4FApxD.cjs.map +0 -1
  476. package/dist/separator-BQEsr0Rc.d.cts +0 -11
  477. package/dist/separator-BQEsr0Rc.d.ts +0 -11
  478. package/dist/sheet-BLHnhLRH.js.map +0 -1
  479. package/dist/sheet-BdA0rfIz.cjs.map +0 -1
  480. package/dist/sidebar-BavjjJp0.cjs.map +0 -1
  481. package/dist/sidebar-DeoL2ttp.js.map +0 -1
  482. package/dist/stack-C9GROTGA.js.map +0 -1
  483. package/dist/stack-ci2lkfkr.cjs.map +0 -1
  484. package/dist/toast-D6MqijT2.cjs +0 -316
  485. package/dist/toast-D6MqijT2.cjs.map +0 -1
  486. package/dist/toast-D_BOLzm3.js +0 -287
  487. package/dist/toast-D_BOLzm3.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dock.cjs","names":["React","motion","cn","springs"],"sources":["../../src/components/dock.tsx"],"sourcesContent":["'use client';\n\nimport React, { PropsWithChildren, useRef } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n\tmotion,\n\tMotionProps,\n\tMotionValue,\n\tuseMotionValue,\n\tuseReducedMotion,\n\tuseSpring,\n\tuseTransform,\n} from 'motion/react';\n\nimport { springs } from '../lib/motion/motion-config';\nimport { cn } from '../lib/utils';\n\nexport interface DockProps extends VariantProps<typeof dockVariants> {\n\tclassName?: string;\n\ticonSize?: number;\n\ticonMagnification?: number;\n\ticonDistance?: number;\n\tdirection?: 'top' | 'middle' | 'bottom';\n\tchildren: React.ReactNode;\n}\n\nconst DEFAULT_SIZE = 40;\nconst DEFAULT_MAGNIFICATION = 60;\nconst DEFAULT_DISTANCE = 140;\n\nconst dockVariants = cva(\n\t// Solid themed surface (no glass/blur)\n\t'mx-auto mt-8 flex h-[58px] w-max items-center justify-center gap-2 rounded-2xl bg-card p-2 shadow-card',\n);\n\nconst Dock = React.forwardRef<HTMLDivElement, DockProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tchildren,\n\t\t\ticonSize = DEFAULT_SIZE,\n\t\t\ticonMagnification = DEFAULT_MAGNIFICATION,\n\t\t\ticonDistance = DEFAULT_DISTANCE,\n\t\t\tdirection = 'middle',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst mouseX = useMotionValue(Infinity);\n\t\tconst prefersReducedMotion = useReducedMotion();\n\n\t\tconst renderChildren = () => {\n\t\t\treturn React.Children.map(children, (child) => {\n\t\t\t\tif (React.isValidElement<DockIconProps>(child) && child.type === DockIcon) {\n\t\t\t\t\treturn React.cloneElement(child, {\n\t\t\t\t\t\t...child.props,\n\t\t\t\t\t\tmouseX: mouseX,\n\t\t\t\t\t\tsize: iconSize,\n\t\t\t\t\t\tmagnification: iconMagnification,\n\t\t\t\t\t\tdistance: iconDistance,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn child;\n\t\t\t});\n\t\t};\n\n\t\treturn (\n\t\t\t<motion.div\n\t\t\t\tref={ref}\n\t\t\t\tonMouseMove={prefersReducedMotion ? undefined : (event) => mouseX.set(event.pageX)}\n\t\t\t\tonMouseLeave={prefersReducedMotion ? undefined : () => mouseX.set(Infinity)}\n\t\t\t\t{...props}\n\t\t\t\tclassName={cn(dockVariants({ className }), {\n\t\t\t\t\t'items-start': direction === 'top',\n\t\t\t\t\t'items-center': direction === 'middle',\n\t\t\t\t\t'items-end': direction === 'bottom',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{renderChildren()}\n\t\t\t</motion.div>\n\t\t);\n\t},\n);\n\nDock.displayName = 'Dock';\n\nexport interface DockIconProps extends Omit<MotionProps & React.HTMLAttributes<HTMLDivElement>, 'children'> {\n\tsize?: number;\n\tmagnification?: number;\n\tdistance?: number;\n\tmouseX?: MotionValue<number>;\n\tclassName?: string;\n\tchildren?: React.ReactNode;\n\tprops?: PropsWithChildren;\n}\n\nconst DockIcon = ({\n\tsize = DEFAULT_SIZE,\n\tmagnification = DEFAULT_MAGNIFICATION,\n\tdistance = DEFAULT_DISTANCE,\n\tmouseX,\n\tclassName,\n\tchildren,\n\t...props\n}: DockIconProps) => {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst prefersReducedMotion = useReducedMotion();\n\tconst padding = Math.max(6, size * 0.2);\n\tconst defaultMouseX = useMotionValue(Infinity);\n\n\tconst distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {\n\t\tconst bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };\n\t\treturn val - bounds.x - bounds.width / 2;\n\t});\n\n\tconst sizeTransform = useTransform(distanceCalc, [-distance, 0, distance], [size, magnification, size]);\n\n\tconst scaleSize = useSpring(sizeTransform, {\n\t\tmass: springs.gentle.mass,\n\t\tstiffness: springs.gentle.stiffness,\n\t\tdamping: 12,\n\t});\n\n\treturn (\n\t\t<motion.div\n\t\t\tref={ref}\n\t\t\tstyle={{ width: prefersReducedMotion ? size : scaleSize, height: prefersReducedMotion ? size : scaleSize, padding }}\n\t\t\tclassName={cn(\n\t\t\t\t// Solid hover target with theme-aware colors\n\t\t\t\t'flex aspect-square cursor-pointer items-center justify-center rounded-full bg-transparent',\n\t\t\t\t`hover:bg-muted focus-visible:bg-muted/80 focus-visible:outline-ring transition-colors duration-200\n\t\t\t\tfocus-visible:outline`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</motion.div>\n\t);\n};\n\nDockIcon.displayName = 'DockIcon';\n\nexport { Dock, DockIcon, dockVariants };\n"],"mappings":";;;;;;;;;;;;;AA0BA,MAAM,eAAe;AACrB,MAAM,wBAAwB;AAC9B,MAAM,mBAAmB;AAEzB,MAAM,iDAEL,wGACD;AAEA,MAAM,OAAOA,cAAM,YAEjB,EACC,WACA,UACA,WAAW,cACX,oBAAoB,uBACpB,eAAe,kBACf,YAAY,UACZ,GAAG,SAEJ,QACI;CACJ,MAAM,0CAAwB,QAAQ;CACtC,MAAM,0DAAwC;CAE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AAWC,iBAEV,6FACA;4BAEA,SACD;EACA,GAAI;EAEH;CACU;AAEd;AAEA,SAAS,cAAc"}
1
+ {"version":3,"file":"dock.cjs","names":["React","motion","cn","springs"],"sources":["../../src/components/dock.tsx"],"sourcesContent":["'use client';\n\nimport React, { createContext, PropsWithChildren, useContext, useRef } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n\tmotion,\n\tMotionProps,\n\tMotionValue,\n\tuseMotionValue,\n\tuseReducedMotion,\n\tuseSpring,\n\tuseTransform,\n} from 'motion/react';\n\nimport { springs } from '../lib/motion/motion-config';\nimport { cn } from '../lib/utils';\n\nexport interface DockProps extends VariantProps<typeof dockVariants> {\n\tclassName?: string;\n\ticonSize?: number;\n\ticonMagnification?: number;\n\ticonDistance?: number;\n\tdirection?: 'top' | 'middle' | 'bottom';\n\tchildren: React.ReactNode;\n}\n\nconst DEFAULT_SIZE = 40;\nconst DEFAULT_MAGNIFICATION = 60;\nconst DEFAULT_DISTANCE = 140;\n\nconst dockVariants = cva(\n\t// Solid themed surface (no glass/blur). Icons wrap onto another row rather than push the page wide.\n\t'mx-auto mt-8 flex min-h-[58px] w-max max-w-full flex-wrap items-center justify-center gap-2 rounded-xl bg-card p-2 shadow-card empty:hidden',\n);\n\n/** What the dock hands every icon, however deeply the icons are nested (fragments, wrappers). */\nconst DockContext = createContext<{\n\tmouseX: MotionValue<number>;\n\tsize: number;\n\tmagnification: number;\n\tdistance: number;\n} | null>(null);\n\nconst Dock = React.forwardRef<HTMLDivElement, DockProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tchildren,\n\t\t\ticonSize = DEFAULT_SIZE,\n\t\t\ticonMagnification = DEFAULT_MAGNIFICATION,\n\t\t\ticonDistance = DEFAULT_DISTANCE,\n\t\t\tdirection = 'middle',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst mouseX = useMotionValue(Infinity);\n\t\tconst prefersReducedMotion = useReducedMotion();\n\t\tconst context = React.useMemo(\n\t\t\t() => ({ mouseX, size: iconSize, magnification: iconMagnification, distance: iconDistance }),\n\t\t\t[mouseX, iconSize, iconMagnification, iconDistance],\n\t\t);\n\n\t\treturn (\n\t\t\t<DockContext.Provider value={context}>\n\t\t\t\t<motion.div\n\t\t\t\t\tref={ref}\n\t\t\t\t\t// `clientX`: the icons' rects are viewport-relative, `pageX` drifts by the scroll offset.\n\t\t\t\t\tonMouseMove={prefersReducedMotion ? undefined : (event) => mouseX.set(event.clientX)}\n\t\t\t\t\tonMouseLeave={prefersReducedMotion ? undefined : () => mouseX.set(Infinity)}\n\t\t\t\t\t{...props}\n\t\t\t\t\tclassName={cn(dockVariants({ className }), {\n\t\t\t\t\t\t'items-start': direction === 'top',\n\t\t\t\t\t\t'items-center': direction === 'middle',\n\t\t\t\t\t\t'items-end': direction === 'bottom',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</motion.div>\n\t\t\t</DockContext.Provider>\n\t\t);\n\t},\n);\n\nDock.displayName = 'Dock';\n\nexport interface DockIconProps extends Omit<MotionProps & React.HTMLAttributes<HTMLDivElement>, 'children'> {\n\tsize?: number;\n\tmagnification?: number;\n\tdistance?: number;\n\tmouseX?: MotionValue<number>;\n\tclassName?: string;\n\tchildren?: React.ReactNode;\n\tprops?: PropsWithChildren;\n}\n\nconst DockIcon = ({\n\tsize: sizeProp = DEFAULT_SIZE,\n\tmagnification: magnificationProp = DEFAULT_MAGNIFICATION,\n\tdistance: distanceProp = DEFAULT_DISTANCE,\n\tmouseX: mouseXProp,\n\tclassName,\n\tchildren,\n\tonKeyDown,\n\t...props\n}: DockIconProps) => {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst prefersReducedMotion = useReducedMotion();\n\t// The dock's settings win inside a dock (as they always did); the props apply standalone.\n\tconst dock = useContext(DockContext);\n\tconst size = dock?.size ?? sizeProp;\n\tconst magnification = dock?.magnification ?? magnificationProp;\n\tconst distance = dock?.distance ?? distanceProp;\n\tconst mouseX = dock?.mouseX ?? mouseXProp;\n\tconst padding = Math.max(6, size * 0.2);\n\t// An icon with a click handler is a button: reachable and operable from the keyboard.\n\tconst interactive = typeof props.onClick === 'function' && props.role === undefined;\n\t// The consumer's handler runs first and can cancel the press. Enter and Space only press the icon itself:\n\t// a key from a link or button inside it belongs to that element, and pressing the icon would cancel it.\n\tconst handleKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {\n\t\tonKeyDown?.(event);\n\t\tif (!interactive || event.defaultPrevented || event.target !== event.currentTarget) return;\n\t\tif (event.key === 'Enter' || event.key === ' ') {\n\t\t\tevent.preventDefault();\n\t\t\tevent.currentTarget.click();\n\t\t}\n\t};\n\tconst defaultMouseX = useMotionValue(Infinity);\n\n\tconst distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {\n\t\tconst bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };\n\t\treturn val - bounds.x - bounds.width / 2;\n\t});\n\n\tconst sizeTransform = useTransform(distanceCalc, [-distance, 0, distance], [size, magnification, size]);\n\n\tconst scaleSize = useSpring(sizeTransform, {\n\t\tmass: springs.gentle.mass,\n\t\tstiffness: springs.gentle.stiffness,\n\t\tdamping: 12,\n\t});\n\n\treturn (\n\t\t<motion.div\n\t\t\tref={ref}\n\t\t\tstyle={{ width: prefersReducedMotion ? size : scaleSize, height: prefersReducedMotion ? size : scaleSize, padding }}\n\t\t\t{...(interactive ? { role: 'button', tabIndex: 0 } : {})}\n\t\t\tclassName={cn(\n\t\t\t\t// Solid hover target with theme-aware colors\n\t\t\t\t'flex aspect-square cursor-pointer items-center justify-center rounded-full bg-transparent',\n\t\t\t\t`hover:bg-muted focus-visible:bg-muted/80 focus-visible:outline-ring\n\t\t\t\tfocus-visible:outline`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t>\n\t\t\t{children}\n\t\t</motion.div>\n\t);\n};\n\nDockIcon.displayName =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AAM,YAAY,cAAc,MAAM,SAAS;CAG1E,MAAM,iBAAiB,UAA+C;EACrE,YAAY,KAAK;EACjB,IAAI,CAAC,eAAe,MAAM,oBAAoB,MAAM,WAAW,MAAM,eAAe;EACpF,IAAI,MAAM,QAAQ,WAAW,MAAM,QAAQ,KAAK;GAC/C,MAAM,eAAe;GACrB,MAAM,cAAc,MAAM;EAC3B;CACD;CACA,MAAM,iDAA+B,QAAQ;CAS7C,MAAM,sGAP4B,UAAU,gBAAgB,QAAgB;EAC3E,MAAM,SAAS,IAAI,SAAS,sBAAsB,KAAK;GAAE,GAAG;GAAG,OAAO;EAAE;EACxE,OAAO,MAAM,OAAO,IAAI,OAAO,QAAQ;CACxC,CAE8C,GAAG;EAAC,CAAC;EAAU;EAAG;CAAQ,GAAG;EAAC;EAAM;EAAe;CAAI,CAE7D,GAAG;EAC1C,MAAMC,8BAAQ,OAAO;EACrB,WAAWA,8BAAQ,OAAO;EAC1B,SAAS;CACV,CAAC;CAED,OACC,2CAACF,oBAAO,KAAR;EACM;EACL,OAAO;GAAE,OAAO,uBAAuB,OAAO;GAAW,QAAQ,uBAAuB,OAAO;GAAW;EAAQ;EAClH,GAAK,cAAc;GAAE,MAAM;GAAU,UAAU;EAAE,IAAI,CAAC;EACtD,WAAWC,iBAEV,6FACA;4BAEA,SACD;EACA,GAAI;EACJ,WAAW;EAEV;CACU;AAEd;AAEA,SAAS,cAAc"}
@@ -22,7 +22,7 @@ interface DockIconProps extends Omit<MotionProps & React.HTMLAttributes<HTMLDivE
22
22
  props?: PropsWithChildren;
23
23
  }
24
24
  declare const DockIcon: {
25
- ({ size, magnification, distance, mouseX, className, children, ...props }: DockIconProps): React.JSX.Element;
25
+ ({ size: sizeProp, magnification: magnificationProp, distance: distanceProp, mouseX: mouseXProp, className, children, onKeyDown, ...props }: DockIconProps): React.JSX.Element;
26
26
  displayName: string;
27
27
  };
28
28
  //#endregion
@@ -22,7 +22,7 @@ interface DockIconProps extends Omit<MotionProps & React.HTMLAttributes<HTMLDivE
22
22
  props?: PropsWithChildren;
23
23
  }
24
24
  declare const DockIcon: {
25
- ({ size, magnification, distance, mouseX, className, children, ...props }: DockIconProps): React.JSX.Element;
25
+ ({ size: sizeProp, magnification: magnificationProp, distance: distanceProp, mouseX: mouseXProp, className, children, onKeyDown, ...props }: DockIconProps): React.JSX.Element;
26
26
  displayName: string;
27
27
  };
28
28
  //#endregion
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import { t as cn } from "../utils-BkMLyah9.js";
4
- import { r as springs } from "../motion-config-COsZ6azM.js";
5
- import React, { useRef } from "react";
4
+ import { r as springs } from "../motion-config-DoFp4I8f.js";
5
+ import React, { createContext, useContext, useRef } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  import { cva } from "class-variance-authority";
8
8
  import { motion, useMotionValue, useReducedMotion, useSpring, useTransform } from "motion/react";
@@ -11,40 +11,58 @@ import { motion, useMotionValue, useReducedMotion, useSpring, useTransform } fro
11
11
  const DEFAULT_SIZE = 40;
12
12
  const DEFAULT_MAGNIFICATION = 60;
13
13
  const DEFAULT_DISTANCE = 140;
14
- const dockVariants = cva("mx-auto mt-8 flex h-[58px] w-max items-center justify-center gap-2 rounded-2xl bg-card p-2 shadow-card");
14
+ const dockVariants = cva("mx-auto mt-8 flex min-h-[58px] w-max max-w-full flex-wrap items-center justify-center gap-2 rounded-xl bg-card p-2 shadow-card empty:hidden");
15
+ /** What the dock hands every icon, however deeply the icons are nested (fragments, wrappers). */
16
+ const DockContext = createContext(null);
15
17
  const Dock = React.forwardRef(({ className, children, iconSize = DEFAULT_SIZE, iconMagnification = DEFAULT_MAGNIFICATION, iconDistance = DEFAULT_DISTANCE, direction = "middle", ...props }, ref) => {
16
18
  const mouseX = useMotionValue(Infinity);
17
19
  const prefersReducedMotion = useReducedMotion();
18
- const renderChildren = () => {
19
- return React.Children.map(children, (child) => {
20
- if (React.isValidElement(child) && child.type === DockIcon) return React.cloneElement(child, {
21
- ...child.props,
22
- mouseX,
23
- size: iconSize,
24
- magnification: iconMagnification,
25
- distance: iconDistance
26
- });
27
- return child;
28
- });
29
- };
30
- return /* @__PURE__ */ jsx(motion.div, {
31
- ref,
32
- onMouseMove: prefersReducedMotion ? void 0 : (event) => mouseX.set(event.pageX),
33
- onMouseLeave: prefersReducedMotion ? void 0 : () => mouseX.set(Infinity),
34
- ...props,
35
- className: cn(dockVariants({ className }), {
36
- "items-start": direction === "top",
37
- "items-center": direction === "middle",
38
- "items-end": direction === "bottom"
39
- }),
40
- children: renderChildren()
20
+ const context = React.useMemo(() => ({
21
+ mouseX,
22
+ size: iconSize,
23
+ magnification: iconMagnification,
24
+ distance: iconDistance
25
+ }), [
26
+ mouseX,
27
+ iconSize,
28
+ iconMagnification,
29
+ iconDistance
30
+ ]);
31
+ return /* @__PURE__ */ jsx(DockContext.Provider, {
32
+ value: context,
33
+ children: /* @__PURE__ */ jsx(motion.div, {
34
+ ref,
35
+ onMouseMove: prefersReducedMotion ? void 0 : (event) => mouseX.set(event.clientX),
36
+ onMouseLeave: prefersReducedMotion ? void 0 : () => mouseX.set(Infinity),
37
+ ...props,
38
+ className: cn(dockVariants({ className }), {
39
+ "items-start": direction === "top",
40
+ "items-center": direction === "middle",
41
+ "items-end": direction === "bottom"
42
+ }),
43
+ children
44
+ })
41
45
  });
42
46
  });
43
47
  Dock.displayName = "Dock";
44
- const DockIcon = ({ size = DEFAULT_SIZE, magnification = DEFAULT_MAGNIFICATION, distance = DEFAULT_DISTANCE, mouseX, className, children, ...props }) => {
48
+ const DockIcon = ({ size: sizeProp = DEFAULT_SIZE, magnification: magnificationProp = DEFAULT_MAGNIFICATION, distance: distanceProp = DEFAULT_DISTANCE, mouseX: mouseXProp, className, children, onKeyDown, ...props }) => {
45
49
  const ref = useRef(null);
46
50
  const prefersReducedMotion = useReducedMotion();
51
+ const dock = useContext(DockContext);
52
+ const size = dock?.size ?? sizeProp;
53
+ const magnification = dock?.magnification ?? magnificationProp;
54
+ const distance = dock?.distance ?? distanceProp;
55
+ const mouseX = dock?.mouseX ?? mouseXProp;
47
56
  const padding = Math.max(6, size * .2);
57
+ const interactive = typeof props.onClick === "function" && props.role === void 0;
58
+ const handleKeyDown = (event) => {
59
+ onKeyDown?.(event);
60
+ if (!interactive || event.defaultPrevented || event.target !== event.currentTarget) return;
61
+ if (event.key === "Enter" || event.key === " ") {
62
+ event.preventDefault();
63
+ event.currentTarget.click();
64
+ }
65
+ };
48
66
  const defaultMouseX = useMotionValue(Infinity);
49
67
  const scaleSize = useSpring(useTransform(useTransform(mouseX ?? defaultMouseX, (val) => {
50
68
  const bounds = ref.current?.getBoundingClientRect() ?? {
@@ -72,9 +90,14 @@ const DockIcon = ({ size = DEFAULT_SIZE, magnification = DEFAULT_MAGNIFICATION,
72
90
  height: prefersReducedMotion ? size : scaleSize,
73
91
  padding
74
92
  },
75
- className: cn("flex aspect-square cursor-pointer items-center justify-center rounded-full bg-transparent", `hover:bg-muted focus-visible:bg-muted/80 focus-visible:outline-ring transition-colors duration-200
93
+ ...interactive ? {
94
+ role: "button",
95
+ tabIndex: 0
96
+ } : {},
97
+ className: cn("flex aspect-square cursor-pointer items-center justify-center rounded-full bg-transparent", `hover:bg-muted focus-visible:bg-muted/80 focus-visible:outline-ring
76
98
  focus-visible:outline`, className),
77
99
  ...props,
100
+ onKeyDown: handleKeyDown,
78
101
  children
79
102
  });
80
103
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dock.js","names":[],"sources":["../../src/components/dock.tsx"],"sourcesContent":["'use client';\n\nimport React, { PropsWithChildren, useRef } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n\tmotion,\n\tMotionProps,\n\tMotionValue,\n\tuseMotionValue,\n\tuseReducedMotion,\n\tuseSpring,\n\tuseTransform,\n} from 'motion/react';\n\nimport { springs } from '../lib/motion/motion-config';\nimport { cn } from '../lib/utils';\n\nexport interface DockProps extends VariantProps<typeof dockVariants> {\n\tclassName?: string;\n\ticonSize?: number;\n\ticonMagnification?: number;\n\ticonDistance?: number;\n\tdirection?: 'top' | 'middle' | 'bottom';\n\tchildren: React.ReactNode;\n}\n\nconst DEFAULT_SIZE = 40;\nconst DEFAULT_MAGNIFICATION = 60;\nconst DEFAULT_DISTANCE = 140;\n\nconst dockVariants = cva(\n\t// Solid themed surface (no glass/blur)\n\t'mx-auto mt-8 flex h-[58px] w-max items-center justify-center gap-2 rounded-2xl bg-card p-2 shadow-card',\n);\n\nconst Dock = React.forwardRef<HTMLDivElement, DockProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tchildren,\n\t\t\ticonSize = DEFAULT_SIZE,\n\t\t\ticonMagnification = DEFAULT_MAGNIFICATION,\n\t\t\ticonDistance = DEFAULT_DISTANCE,\n\t\t\tdirection = 'middle',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst mouseX = useMotionValue(Infinity);\n\t\tconst prefersReducedMotion = useReducedMotion();\n\n\t\tconst renderChildren = () => {\n\t\t\treturn React.Children.map(children, (child) => {\n\t\t\t\tif (React.isValidElement<DockIconProps>(child) && child.type === DockIcon) {\n\t\t\t\t\treturn React.cloneElement(child, {\n\t\t\t\t\t\t...child.props,\n\t\t\t\t\t\tmouseX: mouseX,\n\t\t\t\t\t\tsize: iconSize,\n\t\t\t\t\t\tmagnification: iconMagnification,\n\t\t\t\t\t\tdistance: iconDistance,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn child;\n\t\t\t});\n\t\t};\n\n\t\treturn (\n\t\t\t<motion.div\n\t\t\t\tref={ref}\n\t\t\t\tonMouseMove={prefersReducedMotion ? undefined : (event) => mouseX.set(event.pageX)}\n\t\t\t\tonMouseLeave={prefersReducedMotion ? undefined : () => mouseX.set(Infinity)}\n\t\t\t\t{...props}\n\t\t\t\tclassName={cn(dockVariants({ className }), {\n\t\t\t\t\t'items-start': direction === 'top',\n\t\t\t\t\t'items-center': direction === 'middle',\n\t\t\t\t\t'items-end': direction === 'bottom',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{renderChildren()}\n\t\t\t</motion.div>\n\t\t);\n\t},\n);\n\nDock.displayName = 'Dock';\n\nexport interface DockIconProps extends Omit<MotionProps & React.HTMLAttributes<HTMLDivElement>, 'children'> {\n\tsize?: number;\n\tmagnification?: number;\n\tdistance?: number;\n\tmouseX?: MotionValue<number>;\n\tclassName?: string;\n\tchildren?: React.ReactNode;\n\tprops?: PropsWithChildren;\n}\n\nconst DockIcon = ({\n\tsize = DEFAULT_SIZE,\n\tmagnification = DEFAULT_MAGNIFICATION,\n\tdistance = DEFAULT_DISTANCE,\n\tmouseX,\n\tclassName,\n\tchildren,\n\t...props\n}: DockIconProps) => {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst prefersReducedMotion = useReducedMotion();\n\tconst padding = Math.max(6, size * 0.2);\n\tconst defaultMouseX = useMotionValue(Infinity);\n\n\tconst distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {\n\t\tconst bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };\n\t\treturn val - bounds.x - bounds.width / 2;\n\t});\n\n\tconst sizeTransform = useTransform(distanceCalc, [-distance, 0, distance], [size, magnification, size]);\n\n\tconst scaleSize = useSpring(sizeTransform, {\n\t\tmass: springs.gentle.mass,\n\t\tstiffness: springs.gentle.stiffness,\n\t\tdamping: 12,\n\t});\n\n\treturn (\n\t\t<motion.div\n\t\t\tref={ref}\n\t\t\tstyle={{ width: prefersReducedMotion ? size : scaleSize, height: prefersReducedMotion ? size : scaleSize, padding }}\n\t\t\tclassName={cn(\n\t\t\t\t// Solid hover target with theme-aware colors\n\t\t\t\t'flex aspect-square cursor-pointer items-center justify-center rounded-full bg-transparent',\n\t\t\t\t`hover:bg-muted focus-visible:bg-muted/80 focus-visible:outline-ring transition-colors duration-200\n\t\t\t\tfocus-visible:outline`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</motion.div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AS,sBAAsB,KAAK;GAAE,GAAG;GAAG,OAAO;EAAE;EACxE,OAAO,MAAM,OAAO,IAAI,OAAO,QAAQ;CACxC,CAE8C,GAAG;EAAC,CAAC;EAAU;EAAG;CAAQ,GAAG;EAAC;EAAM;EAAe;CAAI,CAE7D,GAAG;EAC1C,MAAM,QAAQ,OAAO;EACrB,WAAW,QAAQ,OAAO;EAC1B,SAAS;CACV,CAAC;CAED,OACC,oBAAC,OAAO,KAAR;EACM;EACL,OAAO;GAAE,OAAO,uBAAuB,OAAO;GAAW,QAAQ,uBAAuB,OAAO;GAAW;EAAQ;EAClH,WAAW,GAEV,6FACA;4BAEA,SACD;EACA,GAAI;EAEH;CACU;AAEd;AAEA,SAAS,cAAc"}
1
+ {"version":3,"file":"dock.js","names":[],"sources":["../../src/components/dock.tsx"],"sourcesContent":["'use client';\n\nimport React, { createContext, PropsWithChildren, useContext, useRef } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n\tmotion,\n\tMotionProps,\n\tMotionValue,\n\tuseMotionValue,\n\tuseReducedMotion,\n\tuseSpring,\n\tuseTransform,\n} from 'motion/react';\n\nimport { springs } from '../lib/motion/motion-config';\nimport { cn } from '../lib/utils';\n\nexport interface DockProps extends VariantProps<typeof dockVariants> {\n\tclassName?: string;\n\ticonSize?: number;\n\ticonMagnification?: number;\n\ticonDistance?: number;\n\tdirection?: 'top' | 'middle' | 'bottom';\n\tchildren: React.ReactNode;\n}\n\nconst DEFAULT_SIZE = 40;\nconst DEFAULT_MAGNIFICATION = 60;\nconst DEFAULT_DISTANCE = 140;\n\nconst dockVariants = cva(\n\t// Solid themed surface (no glass/blur). Icons wrap onto another row rather than push the page wide.\n\t'mx-auto mt-8 flex min-h-[58px] w-max max-w-full flex-wrap items-center justify-center gap-2 rounded-xl bg-card p-2 shadow-card empty:hidden',\n);\n\n/** What the dock hands every icon, however deeply the icons are nested (fragments, wrappers). */\nconst DockContext = createContext<{\n\tmouseX: MotionValue<number>;\n\tsize: number;\n\tmagnification: number;\n\tdistance: number;\n} | null>(null);\n\nconst Dock = React.forwardRef<HTMLDivElement, DockProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tchildren,\n\t\t\ticonSize = DEFAULT_SIZE,\n\t\t\ticonMagnification = DEFAULT_MAGNIFICATION,\n\t\t\ticonDistance = DEFAULT_DISTANCE,\n\t\t\tdirection = 'middle',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst mouseX = useMotionValue(Infinity);\n\t\tconst prefersReducedMotion = useReducedMotion();\n\t\tconst context = React.useMemo(\n\t\t\t() => ({ mouseX, size: iconSize, magnification: iconMagnification, distance: iconDistance }),\n\t\t\t[mouseX, iconSize, iconMagnification, iconDistance],\n\t\t);\n\n\t\treturn (\n\t\t\t<DockContext.Provider value={context}>\n\t\t\t\t<motion.div\n\t\t\t\t\tref={ref}\n\t\t\t\t\t// `clientX`: the icons' rects are viewport-relative, `pageX` drifts by the scroll offset.\n\t\t\t\t\tonMouseMove={prefersReducedMotion ? undefined : (event) => mouseX.set(event.clientX)}\n\t\t\t\t\tonMouseLeave={prefersReducedMotion ? undefined : () => mouseX.set(Infinity)}\n\t\t\t\t\t{...props}\n\t\t\t\t\tclassName={cn(dockVariants({ className }), {\n\t\t\t\t\t\t'items-start': direction === 'top',\n\t\t\t\t\t\t'items-center': direction === 'middle',\n\t\t\t\t\t\t'items-end': direction === 'bottom',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</motion.div>\n\t\t\t</DockContext.Provider>\n\t\t);\n\t},\n);\n\nDock.displayName = 'Dock';\n\nexport interface DockIconProps extends Omit<MotionProps & React.HTMLAttributes<HTMLDivElement>, 'children'> {\n\tsize?: number;\n\tmagnification?: number;\n\tdistance?: number;\n\tmouseX?: MotionValue<number>;\n\tclassName?: string;\n\tchildren?: React.ReactNode;\n\tprops?: PropsWithChildren;\n}\n\nconst DockIcon = ({\n\tsize: sizeProp = DEFAULT_SIZE,\n\tmagnification: magnificationProp = DEFAULT_MAGNIFICATION,\n\tdistance: distanceProp = DEFAULT_DISTANCE,\n\tmouseX: mouseXProp,\n\tclassName,\n\tchildren,\n\tonKeyDown,\n\t...props\n}: DockIconProps) => {\n\tconst ref = useRef<HTMLDivElement>(null);\n\tconst prefersReducedMotion = useReducedMotion();\n\t// The dock's settings win inside a dock (as they always did); the props apply standalone.\n\tconst dock = useContext(DockContext);\n\tconst size = dock?.size ?? sizeProp;\n\tconst magnification = dock?.magnification ?? magnificationProp;\n\tconst distance = dock?.distance ?? distanceProp;\n\tconst mouseX = dock?.mouseX ?? mouseXProp;\n\tconst padding = Math.max(6, size * 0.2);\n\t// An icon with a click handler is a button: reachable and operable from the keyboard.\n\tconst interactive = typeof props.onClick === 'function' && props.role === undefined;\n\t// The consumer's handler runs first and can cancel the press. Enter and Space only press the icon itself:\n\t// a key from a link or button inside it belongs to that element, and pressing the icon would cancel it.\n\tconst handleKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {\n\t\tonKeyDown?.(event);\n\t\tif (!interactive || event.defaultPrevented || event.target !== event.currentTarget) return;\n\t\tif (event.key === 'Enter' || event.key === ' ') {\n\t\t\tevent.preventDefault();\n\t\t\tevent.currentTarget.click();\n\t\t}\n\t};\n\tconst defaultMouseX = useMotionValue(Infinity);\n\n\tconst distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {\n\t\tconst bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };\n\t\treturn val - bounds.x - bounds.width / 2;\n\t});\n\n\tconst sizeTransform = useTransform(distanceCalc, [-distance, 0, distance], [size, magnification, size]);\n\n\tconst scaleSize = useSpring(sizeTransform, {\n\t\tmass: springs.gentle.mass,\n\t\tstiffness: springs.gentle.stiffness,\n\t\tdamping: 12,\n\t});\n\n\treturn (\n\t\t<motion.div\n\t\t\tref={ref}\n\t\t\tstyle={{ width: prefersReducedMotion ? size : scaleSize, height: prefersReducedMotion ? size : scaleSize, padding }}\n\t\t\t{...(interactive ? { role: 'button', tabIndex: 0 } : {})}\n\t\t\tclassName={cn(\n\t\t\t\t// Solid hover target with theme-aware colors\n\t\t\t\t'flex aspect-square cursor-pointer items-center justify-center rounded-full bg-transparent',\n\t\t\t\t`hover:bg-muted focus-visible:bg-muted/80 focus-visible:outline-ring\n\t\t\t\tfocus-visible:outline`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t>\n\t\t\t{children}\n\t\t</motion.div>\n\t);\n};\n\nDockIcon.displayName = 'DockIcon';\n\nexport { Dock, DockIcon, dockVariants };\n"],"mappings":";;;;;;;;;;AA0BA,MAAM,eAAe;AACrB,MAAM,wBAAwB;AAC9B,MAAM,mBAAmB;AAEzB,MAAM,eAAe,IAEpB,6IACD;;AAGA,MAAM,cAAc,cAKV,IAAI;AAEd,MAAM,OAAO,MAAM,YAEjB,EACC,WACA,UACA,WAAW,cACX,oBAAoB,uBACpB,eAAe,kBACf,YAAY,UACZ,GAAG,SAEJ,QACI;CACJ,MAAM,SAAS,eAAe,QAAQ;CACtC,MAAM,uBAAuB,iBAAiB;CAC9C,MAAM,UAAU,MAAM,eACd;EAAE;EAAQ,MAAM;EAAU,eAAe;EAAmB,UAAU;CAAa,IAC1F;EAAC;EAAQ;EAAU;EAAmB;CAAY,CACnD;CAEA,OACC,oBAAC,YAAY,UAAb;EAAsB,OAAO;YAC5B,oBAAC,OAAO,KAAR;GACM;GAEL,aAAa,uBAAuB,UAAa,UAAU,OAAO,IAAI,MAAM,OAAO;GACnF,cAAc,uBAAuB,eAAkB,OAAO,IAAI,QAAQ;GAC1E,GAAI;GACJ,WAAW,GAAG,aAAa,EAAE,UAAU,CAAC,GAAG;IAC1C,eAAe,cAAc;IAC7B,gBAAgB,cAAc;IAC9B,aAAa,cAAc;GAC5B,CAAC;GAEA;EACU;CACS;AAExB,CACD;AAEA,KAAK,cAAc;AAYnB,MAAM,YAAY,EACjB,M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I;EACJ,WAAW;EAEV;CACU;AAEd;AAEA,SAAS,cAAc"}
@@ -40,7 +40,7 @@ function DrawerClose({ ...props }) {
40
40
  function DrawerOverlay({ className, ...props }) {
41
41
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Overlay, {
42
42
  "data-slot": "drawer-overlay",
43
- className: require_utils.cn(`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50
43
+ className: require_utils.cn(`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/32 backdrop-blur-sm
44
44
  data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]
45
45
  motion-reduce:animate-none`, className),
46
46
  ...props
@@ -52,30 +52,38 @@ function DrawerContent({ className, children, ...props }) {
52
52
  "data-slot": "drawer-content",
53
53
  className: require_utils.cn("group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col", `data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0
54
54
  data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]
55
- data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`, `data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
55
+ data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b`, `data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
56
56
  data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]
57
- data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`, `data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0
58
- data-[vaul-drawer-direction=right]:border-l`, `data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
57
+ data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t`, `data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0
58
+ data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l
59
+ data-[vaul-drawer-direction=right]:sm:max-w-sm`, `data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
59
60
  data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r
60
61
  data-[vaul-drawer-direction=left]:sm:max-w-sm`, className),
61
62
  ...props,
62
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
63
- ref: setFloatingContainer,
64
- "data-slot": "drawer-floating-portal",
65
- className: "contents",
66
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_constructive_io_ui_portal.ModalPortalScope, {
67
- floatingContainer,
68
- floatingZIndex: "elevated",
69
- children
63
+ children: [
64
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
65
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
66
+ "data-slot": "drawer-body",
67
+ className: "flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain [overflow-wrap:break-word]",
68
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_constructive_io_ui_portal.ModalPortalScope, {
69
+ floatingContainer,
70
+ floatingZIndex: "elevated",
71
+ children
72
+ })
73
+ }),
74
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
75
+ ref: setFloatingContainer,
76
+ "data-slot": "drawer-floating-portal",
77
+ className: "contents"
70
78
  })
71
- })]
79
+ ]
72
80
  })] });
73
81
  }
74
82
  function DrawerHeader({ className, ...props }) {
75
83
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
76
84
  "data-slot": "drawer-header",
77
85
  className: require_utils.cn(`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center
78
- group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`, className),
86
+ group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start`, className),
79
87
  ...props
80
88
  });
81
89
  }
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.cjs","names":["DrawerPrimitive","cn","React","ModalPortalScope"],"sources":["../../src/components/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n\treturn <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n\treturn <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\treturn <DrawerPrimitive.Portal data-slot=\"drawer-portal\" container={container} {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n\treturn <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n\treturn (\n\t\t<DrawerPrimitive.Overlay\n\t\t\tdata-slot=\"drawer-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50\n\t\t\t\tdata-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]\n\t\t\t\tmotion-reduce:animate-none`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n\tconst [floatingContainer, setFloatingContainer] = React.useState<HTMLDivElement | null>(null);\n\n\treturn (\n\t\t<DrawerPortal>\n\t\t\t<DrawerOverlay />\n\t\t\t<DrawerPrimitive.Content\n\t\t\t\tdata-slot=\"drawer-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col',\n\t\t\t\t\t`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,\n\t\t\t\t\t`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,\n\t\t\t\t\t`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:border-l`,\n\t\t\t\t\t`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:sm:max-w-sm`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName='bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n\t\t\t\t\t\tgroup-data-[vaul-drawer-direction=bottom]/drawer-content:block'\n\t\t\t\t/>\n\t\t\t\t<div ref={setFloatingContainer} data-slot='drawer-floating-portal' className='contents'>\n\t\t\t\t\t<ModalPortalScope floatingContainer={floatingContainer} floatingZIndex='elevated'>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t</div>\n\t\t\t</DrawerPrimitive.Content>\n\t\t</DrawerPortal>\n\t);\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"drawer-header\"\n\t\t\tclassName={cn(\n\t\t\t\t`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n\t\t\t\tgroup-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n\treturn (\n\t\t<DrawerPrimitive.Title\n\t\t\tdata-slot=\"drawer-title\"\n\t\t\tclassName={cn('text-foreground font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n\treturn (\n\t\t<DrawerPrimitive.Description\n\t\t\tdata-slot=\"drawer-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tDrawer,\n\tDrawerPortal,\n\tDrawerOverlay,\n\tDrawerTrigger,\n\tDrawerClose,\n\tDrawerContent,\n\tDrawerHeader,\n\tDrawerFooter,\n\tDrawerTitle,\n\tDrawerDescription,\n};\n"],"mappings":";;;;;;;;;;;;AAQA,SAAS,OAAO,EAAE,GAAG,SAA4D;CAChF,OAAO,2CAACA,YAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ;AAC7D;AAEA,SAAS,cAAc,EAAE,GAAG,SAA+D;CAC1F,OAAO,2CAACA,YAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;CAAQ;AACxE;AAEA,SAAS,aAAa,EAAE,WAAW,eAAe,GAAG,SAA8D;CAClH,MAAM,uEAAuC;CAC7C,MAAM,YAAY,kBAAkB,SAAa,iBAAiB,SAAa;CAC/E,OAAO,2CAACA,YAAgB,QAAjB;EAAwB,aAAU;EAA2B;EAAW,GAAI;CAAQ;AAC5F;AAEA,SAAS,YAAY,EAAE,GAAG,SAA6D;CACtF,OAAO,2CAACA,YAAgB,OAAjB;EAAuB,aAAU;EAAe,GAAI;CAAQ;AACpE;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAA+D;CACrG,OACC,2CAACA,YAAgB,SAAjB;EACC,aAAU;EACV,WAAWC,iBACV;;iCAGA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,cAAc,EAAE,WAAW,UAAU,GAAG,SAA+D;CAC/G,MAAM,CAAC,mBAAmB,wBAAwBC,MAAM,SAAgC,IAAI;CAE5F,OACC,4CAAC,cAAD,aACC,2CAAC,eAAD,CAAgB,IAChB,4CAACF,YAAgB,SAAjB;EACC,aAAU;EACV,WAAWC,iBACV,kGACA;;+FAGA;;qGAGA;mDAEA;;qDAGA,SACD;EACA,GAAI;YAjBL,CAmBC,2CAAC,OAAD,EACC,WAAU,yIAEV,IACD,2CAAC,OAAD;GAAK,KAAK;GAAsB,aAAU;GAAyB,WAAU;aAC5E,2CAACE,6CAAD;IAAqC;IAAmB,gBAAe;IACrE;GACgB;EACd,EACmB;GACZ;AAEhB;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWF,iBACV;gGAEA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OAAO,2CAAC,OAAD;EAAK,aAAU;EAAgB,WAAWA,iBAAG,mCAAmC,SAAS;EAAG,GAAI;CAAQ;AAChH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CACjG,OACC,2CAACD,YAAgB,OAAjB;EACC,aAAU;EACV,WAAWC,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAmE;CAC7G,OACC,2CAACD,YAAgB,aAAjB;EACC,aAAU;EACV,WAAWC,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
1
+ {"version":3,"file":"drawer.cjs","names":["DrawerPrimitive","cn","React","ModalPortalScope"],"sources":["../../src/components/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n\treturn <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n\treturn <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\treturn <DrawerPrimitive.Portal data-slot=\"drawer-portal\" container={container} {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n\treturn <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n\treturn (\n\t\t<DrawerPrimitive.Overlay\n\t\t\tdata-slot=\"drawer-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/32 backdrop-blur-sm\n\t\t\t\tdata-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]\n\t\t\t\tmotion-reduce:animate-none`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n\tconst [floatingContainer, setFloatingContainer] = React.useState<HTMLDivElement | null>(null);\n\n\treturn (\n\t\t<DrawerPortal>\n\t\t\t<DrawerOverlay />\n\t\t\t<DrawerPrimitive.Content\n\t\t\t\tdata-slot=\"drawer-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col',\n\t\t\t\t\t`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b`,\n\t\t\t\t\t`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t`,\n\t\t\t\t\t`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:sm:max-w-sm`,\n\t\t\t\t\t`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:sm:max-w-sm`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName='bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n\t\t\t\t\t\tgroup-data-[vaul-drawer-direction=bottom]/drawer-content:block'\n\t\t\t\t/>\n\t\t\t\t{/* The body scrolls; the portal host below stays outside it so menus and popovers opened inside the drawer are not clipped. */}\n\t\t\t\t<div\n\t\t\t\t\tdata-slot='drawer-body'\n\t\t\t\t\tclassName='flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain [overflow-wrap:break-word]'\n\t\t\t\t>\n\t\t\t\t\t<ModalPortalScope floatingContainer={floatingContainer} floatingZIndex='elevated'>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t</div>\n\t\t\t\t<div ref={setFloatingContainer} data-slot='drawer-floating-portal' className='contents' />\n\t\t\t</DrawerPrimitive.Content>\n\t\t</DrawerPortal>\n\t);\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"drawer-header\"\n\t\t\tclassName={cn(\n\t\t\t\t`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n\t\t\t\tgroup-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n\treturn (\n\t\t<DrawerPrimitive.Title\n\t\t\tdata-slot=\"drawer-title\"\n\t\t\tclassName={cn('text-foreground font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n\treturn (\n\t\t<DrawerPrimitive.Description\n\t\t\tdata-slot=\"drawer-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tDrawer,\n\tDrawerPortal,\n\tDrawerOverlay,\n\tDrawerTrigger,\n\tDrawerClose,\n\tDrawerContent,\n\tDrawerHeader,\n\tDrawerFooter,\n\tDrawerTitle,\n\tDrawerDescription,\n};\n"],"mappings":";;;;;;;;;;;;AAQA,SAAS,OAAO,EAAE,GAAG,SAA4D;CAChF,OAAO,2CAACA,YAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ;AAC7D;AAEA,SAAS,cAAc,EAAE,GAAG,SAA+D;CAC1F,OAAO,2CAACA,YAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;CAAQ;AACxE;AAEA,SAAS,aAAa,EAAE,WAAW,eAAe,GAAG,SAA8D;CAClH,MAAM,uEAAuC;CAC7C,MAAM,YAAY,kBAAkB,SAAa,iBAAiB,SAAa;CAC/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J;AAEH;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAmE;CAC7G,OACC,2CAACD,YAAgB,aAAjB;EACC,aAAU;EACV,WAAWC,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
@@ -37,7 +37,7 @@ function DrawerClose({ ...props }) {
37
37
  function DrawerOverlay({ className, ...props }) {
38
38
  return /* @__PURE__ */ jsx(Drawer$1.Overlay, {
39
39
  "data-slot": "drawer-overlay",
40
- className: cn(`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50
40
+ className: cn(`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/32 backdrop-blur-sm
41
41
  data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]
42
42
  motion-reduce:animate-none`, className),
43
43
  ...props
@@ -49,30 +49,38 @@ function DrawerContent({ className, children, ...props }) {
49
49
  "data-slot": "drawer-content",
50
50
  className: cn("group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col", `data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0
51
51
  data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]
52
- data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`, `data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
52
+ data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b`, `data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
53
53
  data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]
54
- data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`, `data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0
55
- data-[vaul-drawer-direction=right]:border-l`, `data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
54
+ data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t`, `data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0
55
+ data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l
56
+ data-[vaul-drawer-direction=right]:sm:max-w-sm`, `data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
56
57
  data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r
57
58
  data-[vaul-drawer-direction=left]:sm:max-w-sm`, className),
58
59
  ...props,
59
- children: [/* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), /* @__PURE__ */ jsx("div", {
60
- ref: setFloatingContainer,
61
- "data-slot": "drawer-floating-portal",
62
- className: "contents",
63
- children: /* @__PURE__ */ jsx(ModalPortalScope, {
64
- floatingContainer,
65
- floatingZIndex: "elevated",
66
- children
60
+ children: [
61
+ /* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
62
+ /* @__PURE__ */ jsx("div", {
63
+ "data-slot": "drawer-body",
64
+ className: "flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain [overflow-wrap:break-word]",
65
+ children: /* @__PURE__ */ jsx(ModalPortalScope, {
66
+ floatingContainer,
67
+ floatingZIndex: "elevated",
68
+ children
69
+ })
70
+ }),
71
+ /* @__PURE__ */ jsx("div", {
72
+ ref: setFloatingContainer,
73
+ "data-slot": "drawer-floating-portal",
74
+ className: "contents"
67
75
  })
68
- })]
76
+ ]
69
77
  })] });
70
78
  }
71
79
  function DrawerHeader({ className, ...props }) {
72
80
  return /* @__PURE__ */ jsx("div", {
73
81
  "data-slot": "drawer-header",
74
82
  className: cn(`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center
75
- group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`, className),
83
+ group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start`, className),
76
84
  ...props
77
85
  });
78
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.js","names":["DrawerPrimitive","React"],"sources":["../../src/components/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n\treturn <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n\treturn <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\treturn <DrawerPrimitive.Portal data-slot=\"drawer-portal\" container={container} {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n\treturn <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n\treturn (\n\t\t<DrawerPrimitive.Overlay\n\t\t\tdata-slot=\"drawer-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50\n\t\t\t\tdata-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]\n\t\t\t\tmotion-reduce:animate-none`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n\tconst [floatingContainer, setFloatingContainer] = React.useState<HTMLDivElement | null>(null);\n\n\treturn (\n\t\t<DrawerPortal>\n\t\t\t<DrawerOverlay />\n\t\t\t<DrawerPrimitive.Content\n\t\t\t\tdata-slot=\"drawer-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col',\n\t\t\t\t\t`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,\n\t\t\t\t\t`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,\n\t\t\t\t\t`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:border-l`,\n\t\t\t\t\t`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:sm:max-w-sm`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName='bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n\t\t\t\t\t\tgroup-data-[vaul-drawer-direction=bottom]/drawer-content:block'\n\t\t\t\t/>\n\t\t\t\t<div ref={setFloatingContainer} data-slot='drawer-floating-portal' className='contents'>\n\t\t\t\t\t<ModalPortalScope floatingContainer={floatingContainer} floatingZIndex='elevated'>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t</div>\n\t\t\t</DrawerPrimitive.Content>\n\t\t</DrawerPortal>\n\t);\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"drawer-header\"\n\t\t\tclassName={cn(\n\t\t\t\t`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n\t\t\t\tgroup-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n\treturn (\n\t\t<DrawerPrimitive.Title\n\t\t\tdata-slot=\"drawer-title\"\n\t\t\tclassName={cn('text-foreground font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n\treturn (\n\t\t<DrawerPrimitive.Description\n\t\t\tdata-slot=\"drawer-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tDrawer,\n\tDrawerPortal,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rE;GACgB;EACd,EACmB;GACZ;AAEhB;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACC,oBAAC,OAAD;EACC,aAAU;EACV,WAAW,GACV;gGAEA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAgB,WAAW,GAAG,mCAAmC,SAAS;EAAG,GAAI;CAAQ;AAChH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CACjG,OACC,oBAACA,SAAgB,OAAjB;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAmE;CAC7G,OACC,oBAACA,SAAgB,aAAjB;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
1
+ {"version":3,"file":"drawer.js","names":["DrawerPrimitive","React"],"sources":["../../src/components/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n\treturn <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n\treturn <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\treturn <DrawerPrimitive.Portal data-slot=\"drawer-portal\" container={container} {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n\treturn <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n\treturn (\n\t\t<DrawerPrimitive.Overlay\n\t\t\tdata-slot=\"drawer-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/32 backdrop-blur-sm\n\t\t\t\tdata-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]\n\t\t\t\tmotion-reduce:animate-none`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n\tconst [floatingContainer, setFloatingContainer] = React.useState<HTMLDivElement | null>(null);\n\n\treturn (\n\t\t<DrawerPortal>\n\t\t\t<DrawerOverlay />\n\t\t\t<DrawerPrimitive.Content\n\t\t\t\tdata-slot=\"drawer-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col',\n\t\t\t\t\t`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b`,\n\t\t\t\t\t`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t`,\n\t\t\t\t\t`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:sm:max-w-sm`,\n\t\t\t\t\t`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:sm:max-w-sm`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName='bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n\t\t\t\t\t\tgroup-data-[vaul-drawer-direction=bottom]/drawer-content:block'\n\t\t\t\t/>\n\t\t\t\t{/* The body scrolls; the portal host below stays outside it so menus and popovers opened inside the drawer are not clipped. */}\n\t\t\t\t<div\n\t\t\t\t\tdata-slot='drawer-body'\n\t\t\t\t\tclassName='flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain [overflow-wrap:break-word]'\n\t\t\t\t>\n\t\t\t\t\t<ModalPortalScope floatingContainer={floatingContainer} floatingZIndex='elevated'>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t</div>\n\t\t\t\t<div ref={setFloatingContainer} data-slot='drawer-floating-portal' className='contents' />\n\t\t\t</DrawerPrimitive.Content>\n\t\t</DrawerPortal>\n\t);\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"drawer-header\"\n\t\t\tclassName={cn(\n\t\t\t\t`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n\t\t\t\tgroup-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-start`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n\treturn (\n\t\t<DrawerPrimitive.Title\n\t\t\tdata-slot=\"drawer-title\"\n\t\t\tclassName={cn('text-foreground font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n\treturn (\n\t\t<DrawerPrimitive.Description\n\t\t\tdata-slot=\"drawer-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tDrawer,\n\tDrawerPortal,\n\tDrawerOverlay,\n\tDrawerTrigger,\n\tDrawerClose,\n\tDrawerContent,\n\tDrawerHeader,\n\tDrawerFooter,\n\tDrawerTitle,\n\tDrawerDescription,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,OAAO,EAAE,GAAG,SAA4D;CAChF,OAAO,oBAACA,SAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ;AAC7D;AAEA,SAAS,cAAc,EAAE,GAAG,SAA+D;CAC1F,OAAO,oBAACA,SAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;CAAQ;AACxE;AAEA,SAAS,aAAa,EAAE,WAAW,eAAe,GAAG,SAA8D;CAClH,MAAM,gBAAgB,uBAAuB;CAC7C,MAAM,YAAY,kBAAkB,SAAa,iBAAiB,SAAa;CAC/E,OAAO,oBAACA,SAAgB,QAAjB;EAAwB,aAAU;EAA2B;EAAW,GAAI;CAAQ;AAC5F;AAEA,SAAS,YAAY,EAAE,GAAG,SAA6D;CACtF,OAAO,oBAACA,SAAgB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EH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
  const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
5
5
  const require_utils = require('../utils-CzTQ3-VI.cjs');
6
+ const require_fluid_highlight = require('../fluid-highlight-AW-OITqJ.cjs');
6
7
  let react = require("react");
7
8
  react = require_rolldown_runtime.__toESM(react, 1);
8
9
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -36,23 +37,25 @@ function DropdownMenuTrigger({ asChild, children, render, nativeButton, ...props
36
37
  children: childRender ? void 0 : children
37
38
  });
38
39
  }
39
- function DropdownMenuContent({ className, sideOffset = 4, side = "bottom", align = "start", onPointerDown: _onPointerDown, onPointerDownOutside: _onPointerDownOutside, onCloseAutoFocus: _onCloseAutoFocus, forceMount: _forceMount, ...props }) {
40
+ function DropdownMenuContent({ className, sideOffset = 4, side = "bottom", align = "start", onPointerDown: _onPointerDown, onPointerDownOutside: _onPointerDownOutside, onCloseAutoFocus: _onCloseAutoFocus, forceMount: _forceMount, children, ...props }) {
40
41
  const { zIndexClass } = (0, _constructive_io_ui_portal.useFloatingOverlayPortalProps)();
41
42
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DropdownMenuPortal, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Positioner, {
42
43
  side,
43
44
  align,
44
45
  sideOffset,
45
46
  className: zIndexClass,
46
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Popup, {
47
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_menu.Menu.Popup, {
47
48
  "data-slot": "dropdown-menu-content",
48
- className: require_utils.cn(`bg-popover text-popover-foreground origin-(--transform-origin) min-w-40 overflow-hidden rounded-md border p-1
49
- shadow-lg transition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95
49
+ className: require_utils.cn(`bg-popover text-popover-foreground relative origin-(--transform-origin) max-h-(--available-height) min-w-40
50
+ max-w-(--available-width) overflow-y-auto overscroll-contain rounded-lg border p-1 [overflow-wrap:anywhere]
51
+ shadow-lg transition-[scale,opacity,translate] duration-(--duration-moderate) ease-out data-starting-style:scale-95
50
52
  data-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0
51
53
  data-[side=bottom]:data-starting-style:-translate-y-2
52
54
  data-[side=left]:data-starting-style:translate-x-2
53
55
  data-[side=right]:data-starting-style:-translate-x-2
54
56
  data-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`, className),
55
- ...props
57
+ ...props,
58
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_fluid_highlight.FluidHighlight, {}), children]
56
59
  })
57
60
  }) });
58
61
  }
@@ -67,12 +70,12 @@ function DropdownMenuGroup({ ...props }) {
67
70
  }
68
71
  function DropdownMenuItem({ className, inset, variant = "default", asChild, children, render, ...props }) {
69
72
  const childRender = render === void 0 && asChild && react.isValidElement(children) ? children : void 0;
70
- const itemClassName = require_utils.cn(`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[variant=destructive]:text-destructive
73
+ const itemClassName = require_utils.cn(`data-[highlighted]:text-accent-foreground data-[variant=destructive]:text-destructive
71
74
  data-[variant=destructive]:data-[highlighted]:bg-destructive/10 dark:data-[variant=destructive]:data-[highlighted]:bg-destructive/40
72
75
  data-[variant=destructive]:data-[highlighted]:text-destructive
73
76
  data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default items-center gap-2 pointer-coarse:min-h-11
74
77
  rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none
75
- data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0`, className);
78
+ data-[disabled]:opacity-64 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0`, className);
76
79
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Item, {
77
80
  "data-slot": "dropdown-menu-item",
78
81
  "data-inset": inset,
@@ -86,16 +89,16 @@ function DropdownMenuItem({ className, inset, variant = "default", asChild, chil
86
89
  function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
87
90
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_menu.Menu.CheckboxItem, {
88
91
  "data-slot": "dropdown-menu-checkbox-item",
89
- className: require_utils.cn(`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5
90
- pr-2 pl-8 text-sm outline-hidden select-none pointer-coarse:min-h-11 data-[disabled]:pointer-events-none data-[disabled]:opacity-50
92
+ className: require_utils.cn(`data-[highlighted]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5
93
+ pe-2 ps-8 text-sm outline-hidden select-none pointer-coarse:min-h-11 data-[disabled]:pointer-events-none data-[disabled]:opacity-64
91
94
  [&_svg]:pointer-events-none [&_svg]:shrink-0`, className),
92
95
  checked,
93
96
  ...props,
94
97
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
95
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
98
+ className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center",
96
99
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.CheckboxItemIndicator, {
97
100
  keepMounted: true,
98
- className: "transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] motion-reduce:transition-none",
101
+ className: "transition-[opacity,scale,filter] duration-(--duration-slow) ease-out data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] motion-reduce:transition-none",
99
102
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CheckIcon, { size: 16 })
100
103
  })
101
104
  }), children]
@@ -110,15 +113,15 @@ function DropdownMenuRadioGroup({ ...props }) {
110
113
  function DropdownMenuRadioItem({ className, children, ...props }) {
111
114
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_menu.Menu.RadioItem, {
112
115
  "data-slot": "dropdown-menu-radio-item",
113
- className: require_utils.cn(`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5
114
- pr-2 pl-8 text-sm outline-hidden select-none pointer-coarse:min-h-11 data-[disabled]:pointer-events-none data-[disabled]:opacity-50
116
+ className: require_utils.cn(`data-[highlighted]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5
117
+ pe-2 ps-8 text-sm outline-hidden select-none pointer-coarse:min-h-11 data-[disabled]:pointer-events-none data-[disabled]:opacity-64
115
118
  [&_svg]:pointer-events-none [&_svg]:shrink-0`, className),
116
119
  ...props,
117
120
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
118
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
121
+ className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center",
119
122
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.RadioItemIndicator, {
120
123
  keepMounted: true,
121
- className: "transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] motion-reduce:transition-none",
124
+ className: "transition-[opacity,scale,filter] duration-(--duration-slow) ease-out data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] motion-reduce:transition-none",
122
125
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CircleIcon, { className: "size-2 fill-current" })
123
126
  })
124
127
  }), children]
@@ -134,7 +137,7 @@ function DropdownMenuLabel({ className, inset, ...props }) {
134
137
  const labelProps = {
135
138
  "data-slot": "dropdown-menu-label",
136
139
  "data-inset": inset,
137
- className: require_utils.cn("text-muted-foreground px-2 py-1.5 text-xs font-medium data-[inset]:pl-8", className),
140
+ className: require_utils.cn("text-muted-foreground px-2 py-1.5 text-xs font-medium data-[inset]:ps-8", className),
138
141
  ...props
139
142
  };
140
143
  if (isGrouped) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.GroupLabel, { ...labelProps });
@@ -150,8 +153,9 @@ function DropdownMenuSeparator({ className, ...props }) {
150
153
  function DropdownMenuShortcut({ className, ...props }) {
151
154
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("kbd", {
152
155
  "data-slot": "dropdown-menu-shortcut",
153
- className: require_utils.cn(`bg-background text-muted-foreground/70 ms-auto -me-1 inline-flex h-5 max-h-full items-center rounded border
154
- px-1 font-[inherit] text-[0.625rem] font-medium`, className),
156
+ dir: "ltr",
157
+ className: require_utils.cn(`bg-background text-subtle-foreground ms-auto -me-1 inline-flex h-5 max-h-full shrink-0 items-center rounded border
158
+ px-1 font-[inherit] text-[0.625rem] font-medium whitespace-nowrap`, className),
155
159
  ...props
156
160
  });
157
161
  }
@@ -165,34 +169,36 @@ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
165
169
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_menu.Menu.SubmenuTrigger, {
166
170
  "data-slot": "dropdown-menu-sub-trigger",
167
171
  "data-inset": inset,
168
- className: require_utils.cn(`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[popup-open]:bg-accent
169
- data-[popup-open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm pointer-coarse:min-h-11
170
- outline-hidden select-none data-[inset]:pl-8`, className),
172
+ className: require_utils.cn(`data-[highlighted]:text-accent-foreground data-[popup-open]:bg-accent
173
+ data-[popup-open]:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm pointer-coarse:min-h-11
174
+ outline-hidden select-none data-[inset]:ps-8`, className),
171
175
  ...props,
172
176
  children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRightIcon, {
173
177
  size: 16,
174
- className: "text-muted-foreground/80 ml-auto"
178
+ className: "text-muted-foreground/80 ms-auto rtl:rotate-180"
175
179
  })]
176
180
  });
177
181
  }
178
- function DropdownMenuSubContent({ className, ...props }) {
182
+ function DropdownMenuSubContent({ className, children, ...props }) {
179
183
  const { container, zIndexClass } = (0, _constructive_io_ui_portal.useFloatingOverlayPortalProps)();
180
184
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Portal, {
181
185
  container,
182
186
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Positioner, {
183
- side: "right",
187
+ side: "inline-end",
184
188
  sideOffset: -4,
185
189
  className: zIndexClass,
186
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Popup, {
190
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_menu.Menu.Popup, {
187
191
  "data-slot": "dropdown-menu-sub-content",
188
- className: require_utils.cn(`bg-popover text-popover-foreground origin-(--transform-origin) min-w-40 overflow-hidden rounded-md border p-1
189
- shadow-lg transition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95
192
+ className: require_utils.cn(`bg-popover text-popover-foreground relative origin-(--transform-origin) max-h-(--available-height) min-w-40
193
+ max-w-(--available-width) overflow-y-auto overscroll-contain rounded-lg border p-1 [overflow-wrap:anywhere]
194
+ shadow-lg transition-[scale,opacity,translate] duration-(--duration-moderate) ease-out data-starting-style:scale-95
190
195
  data-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0
191
196
  data-[side=bottom]:data-starting-style:-translate-y-2
192
197
  data-[side=left]:data-starting-style:translate-x-2
193
198
  data-[side=right]:data-starting-style:-translate-x-2
194
199
  data-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`, className),
195
- ...props
200
+ ...props,
201
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_fluid_highlight.FluidHighlight, {}), children]
196
202
  })
197
203
  })
198
204
  });