@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":"popover.cjs","names":["PopoverPrimitive","React","cn"],"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover';\n\nimport { useFloatingOverlayPortalProps } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\ntype PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Trigger\n\t\t\tdata-slot=\"popover-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Trigger>\n\t);\n}\n\ntype PopoverCloseProps = React.ComponentProps<typeof PopoverPrimitive.Close> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Close\n\t\t\tdata-slot=\"popover-close\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Close>\n\t);\n}\n\ntype PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Popup> & {\n\talign?: 'start' | 'center' | 'end';\n\tsideOffset?: number;\n\tshowArrow?: boolean;\n\tside?: 'top' | 'bottom' | 'left' | 'right';\n\t/** @deprecated Base UI uses different focus management */\n\tonOpenAutoFocus?: (e: Event) => void;\n\t/** @deprecated Base UI uses different focus management */\n\tonCloseAutoFocus?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonFocusOutside?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonEscapeKeyDown?: () => void;\n};\n\nfunction PopoverContent({\n\tclassName,\n\talign = 'center',\n\tsideOffset = 4,\n\tshowArrow = false,\n\tside = 'bottom',\n\tchildren,\n\tonOpenAutoFocus: _onOpenAutoFocus,\n\tonCloseAutoFocus: _onCloseAutoFocus,\n\tonFocusOutside: _onFocusOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\t...props\n}: PopoverContentProps) {\n\tconst { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n\treturn (\n\t\t<PopoverPrimitive.Portal container={container}>\n\t\t\t<PopoverPrimitive.Positioner\n\t\t\t\tside={side}\n\t\t\t\talign={align}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={zIndexClass}\n\t\t\t>\n\t\t\t\t<PopoverPrimitive.Popup\n\t\t\t\t\tdata-slot=\"popover-content\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t`bg-popover text-popover-foreground origin-(--transform-origin) w-72 rounded-md border p-4 shadow-md outline-hidden\n\t\t\t\t\t\ttransition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95\n\t\t\t\t\t\tdata-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0\n\t\t\t\t\t\tdata-[side=bottom]:data-starting-style:-translate-y-2\n\t\t\t\t\t\tdata-[side=left]:data-starting-style:translate-x-2\n\t\t\t\t\t\tdata-[side=right]:data-starting-style:-translate-x-2\n\t\t\t\t\t\tdata-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`,\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t\t{showArrow && (\n\t\t\t\t\t\t<PopoverPrimitive.Arrow className='fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]' />\n\t\t\t\t\t)}\n\t\t\t\t</PopoverPrimitive.Popup>\n\t\t\t</PopoverPrimitive.Positioner>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\n/**\n * PopoverAnchor - placeholder for positioning anchor.\n * @deprecated Base UI Popover positions relative to Trigger by default.\n * For custom anchoring, use Popover.Positioner with anchor prop.\n */\nfunction PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Title>) {\n\treturn (\n\t\t<PopoverPrimitive.Title\n\t\t\tdata-slot=\"popover-title\"\n\t\t\tclassName={cn('font-medium leading-none', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Description>) {\n\treturn (\n\t\t<PopoverPrimitive.Description\n\t\t\tdata-slot=\"popover-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\tPopover,\n\tPopoverAnchor,\n\tPopoverClose,\n\tPopoverContent,\n\tPopoverDescription,\n\tPopoverTitle,\n\tPopoverTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAQA,SAAS,QAAQ,EAAE,GAAG,SAA6D;CAClF,OAAO,2CAACA,+BAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ;AAC/D;AAOA,SAAS,eAAe,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA8B;CACnG,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,+BAAiB,SAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACF;AAE5B;AAOA,SAAS,aAAa,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA4B;CAC/F,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,+BAAiB,OAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACJ;AAE1B;AAiBA,SAAS,eAAe,EACvB,WACA,QAAQ,UACR,aAAa,GACb,YAAY,OACZ,OAAO,UACP,UACA,iBAAiB,kBACjB,kBAAkB,mBAClB,gBAAgB,iBAChB,iBAAiB,kBACjB,GAAG,SACoB;CACvB,MAAM,EAAE,WAAW,8EAA8C;CAEjE,OACC,2CAACA,+BAAiB,QAAlB;EAAoC;YACnC,2CAACA,+BAAiB,YAAlB;GACO;GACC;GACK;GACZ,WAAW;aAEX,4CAACA,+BAAiB,OAAlB;IACC,aAAU;IACV,WAAWE,iBACV;;;;;;wFAOA,SACD;IACA,GAAI;cAZL,CAcE,UACA,aACA,2CAACF,+BAAiB,OAAlB,EAAwB,WAAU,0DAA2D,EAEvE;;EACI;CACL;AAE3B;;;;;;AAOA,SAAS,cAAc,EAAE,GAAG,SAA+C;CAC1E,OAAO,2CAAC,OAAD;EAAK,aAAU;EAAiB,GAAI;CAAQ;AACpD;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA8D;CACnG,OACC,2CAACA,+BAAiB,OAAlB;EACC,aAAU;EACV,WAAWE,iBAAG,4BAA4B,SAAS;EACnD,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAoE;CAC/G,OACC,2CAACF,+BAAiB,aAAlB;EACC,aAAU;EACV,WAAWE,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
1
+ {"version":3,"file":"popover.cjs","names":["PopoverPrimitive","React","cn"],"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover';\n\nimport { useFloatingOverlayPortalProps } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\ntype PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Trigger\n\t\t\tdata-slot=\"popover-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Trigger>\n\t);\n}\n\ntype PopoverCloseProps = React.ComponentProps<typeof PopoverPrimitive.Close> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Close\n\t\t\tdata-slot=\"popover-close\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Close>\n\t);\n}\n\ntype PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Popup> & {\n\talign?: 'start' | 'center' | 'end';\n\tsideOffset?: number;\n\tshowArrow?: boolean;\n\tside?: 'top' | 'bottom' | 'left' | 'right';\n\t/** @deprecated Base UI uses different focus management */\n\tonOpenAutoFocus?: (e: Event) => void;\n\t/** @deprecated Base UI uses different focus management */\n\tonCloseAutoFocus?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonFocusOutside?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonEscapeKeyDown?: () => void;\n};\n\nfunction PopoverContent({\n\tclassName,\n\talign = 'center',\n\tsideOffset = 4,\n\tshowArrow = false,\n\tside = 'bottom',\n\tchildren,\n\tonOpenAutoFocus: _onOpenAutoFocus,\n\tonCloseAutoFocus: _onCloseAutoFocus,\n\tonFocusOutside: _onFocusOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\t...props\n}: PopoverContentProps) {\n\tconst { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n\treturn (\n\t\t<PopoverPrimitive.Portal container={container}>\n\t\t\t<PopoverPrimitive.Positioner\n\t\t\t\tside={side}\n\t\t\t\talign={align}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={zIndexClass}\n\t\t\t>\n\t\t\t\t<PopoverPrimitive.Popup\n\t\t\t\t\tdata-slot=\"popover-content\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t`bg-popover text-popover-foreground origin-(--transform-origin) max-h-(--available-height) w-72 max-w-(--available-width)\n\t\t\t\t\t\trounded-lg border p-4 shadow-lg outline-hidden [overflow-wrap:break-word]\n\t\t\t\t\t\ttransition-[scale,opacity,translate] duration-(--duration-moderate) ease-out data-starting-style:scale-95\n\t\t\t\t\t\tdata-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0\n\t\t\t\t\t\tdata-[side=bottom]:data-starting-style:-translate-y-2\n\t\t\t\t\t\tdata-[side=left]:data-starting-style:translate-x-2\n\t\t\t\t\t\tdata-[side=right]:data-starting-style:-translate-x-2\n\t\t\t\t\t\tdata-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`,\n\t\t\t\t\t\t// Capped to the room Base UI measured and scrolled inside. The arrow sits outside the box, so an arrowed popover keeps `overflow: visible`.\n\t\t\t\t\t\t!showArrow && 'overflow-y-auto overscroll-contain',\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t\t{showArrow && (\n\t\t\t\t\t\t<PopoverPrimitive.Arrow className='fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]' />\n\t\t\t\t\t)}\n\t\t\t\t</PopoverPrimitive.Popup>\n\t\t\t</PopoverPrimitive.Positioner>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\n/**\n * PopoverAnchor - placeholder for positioning anchor.\n * @deprecated Base UI Popover positions relative to Trigger by default.\n * For custom anchoring, use Popover.Positioner with anchor prop.\n */\nfunction PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Title>) {\n\treturn (\n\t\t<PopoverPrimitive.Title\n\t\t\tdata-slot=\"popover-title\"\n\t\t\tclassName={cn('font-medium leading-tight', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Description>) {\n\treturn (\n\t\t<PopoverPrimitive.Description\n\t\t\tdata-slot=\"popover-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\tPopover,\n\tPopoverAnchor,\n\tPopoverClose,\n\tPopoverContent,\n\tPopoverDescription,\n\tPopoverTitle,\n\tPopoverTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAQA,SAAS,QAAQ,EAAE,GAAG,SAA6D;CAClF,OAAO,2CAACA,+BAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ;AAC/D;AAOA,SAAS,eAAe,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA8B;CACnG,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,+BAAiB,SAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACF;AAE5B;AAOA,SAAS,aAAa,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA4B;CAC/F,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,+BAAiB,OAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACJ;AAE1B;AAiBA,SAAS,eAAe,EACvB,WACA,QAAQ,UACR,aAAa,GACb,YAAY,OACZ,OAAO,UACP,UACA,iBAAiB,kBACjB,kBAAkB,mBAClB,gBAAgB,iBAChB,iBAAiB,kBACjB,GAAG,SACoB;CACvB,MAAM,EAAE,WAAW,8EAA8C;CAEjE,OACC,2CAACA,+BAAiB,QAAlB;EAAoC;YACnC,2CAACA,+BAAiB,YAAlB;GACO;GACC;GACK;GACZ,WAAW;aAEX,4CAACA,+BAAiB,OAAlB;IACC,aAAU;IACV,WAAWE,iBACV;;;;;;;wFASA,CAAC,aAAa,sCACd,SACD;IACA,GAAI;cAfL,CAiBE,UACA,aACA,2CAACF,+BAAiB,OAAlB,EAAwB,WAAU,0DAA2D,EAEvE;;EACI;CACL;AAE3B;;;;;;AAOA,SAAS,cAAc,EAAE,GAAG,SAA+C;CAC1E,OAAO,2CAAC,OAAD;EAAK,aAAU;EAAiB,GAAI;CAAQ;AACpD;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA8D;CACnG,OACC,2CAACA,+BAAiB,OAAlB;EACC,aAAU;EACV,WAAWE,iBAAG,6BAA6B,SAAS;EACpD,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAoE;CAC/G,OACC,2CAACF,+BAAiB,aAAlB;EACC,aAAU;EACV,WAAWE,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
@@ -44,13 +44,14 @@ function PopoverContent({ className, align = "center", sideOffset = 4, showArrow
44
44
  className: zIndexClass,
45
45
  children: /* @__PURE__ */ jsxs(Popover$1.Popup, {
46
46
  "data-slot": "popover-content",
47
- className: cn(`bg-popover text-popover-foreground origin-(--transform-origin) w-72 rounded-md border p-4 shadow-md outline-hidden
48
- transition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95
47
+ className: cn(`bg-popover text-popover-foreground origin-(--transform-origin) max-h-(--available-height) w-72 max-w-(--available-width)
48
+ rounded-lg border p-4 shadow-lg outline-hidden [overflow-wrap:break-word]
49
+ transition-[scale,opacity,translate] duration-(--duration-moderate) ease-out data-starting-style:scale-95
49
50
  data-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0
50
51
  data-[side=bottom]:data-starting-style:-translate-y-2
51
52
  data-[side=left]:data-starting-style:translate-x-2
52
53
  data-[side=right]:data-starting-style:-translate-x-2
53
- data-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`, className),
54
+ data-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`, !showArrow && "overflow-y-auto overscroll-contain", className),
54
55
  ...props,
55
56
  children: [children, showArrow && /* @__PURE__ */ jsx(Popover$1.Arrow, { className: "fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]" })]
56
57
  })
@@ -71,7 +72,7 @@ function PopoverAnchor({ ...props }) {
71
72
  function PopoverTitle({ className, ...props }) {
72
73
  return /* @__PURE__ */ jsx(Popover$1.Title, {
73
74
  "data-slot": "popover-title",
74
- className: cn("font-medium leading-none", className),
75
+ className: cn("font-medium leading-tight", className),
75
76
  ...props
76
77
  });
77
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","names":["PopoverPrimitive","React"],"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover';\n\nimport { useFloatingOverlayPortalProps } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\ntype PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Trigger\n\t\t\tdata-slot=\"popover-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Trigger>\n\t);\n}\n\ntype PopoverCloseProps = React.ComponentProps<typeof PopoverPrimitive.Close> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Close\n\t\t\tdata-slot=\"popover-close\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Close>\n\t);\n}\n\ntype PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Popup> & {\n\talign?: 'start' | 'center' | 'end';\n\tsideOffset?: number;\n\tshowArrow?: boolean;\n\tside?: 'top' | 'bottom' | 'left' | 'right';\n\t/** @deprecated Base UI uses different focus management */\n\tonOpenAutoFocus?: (e: Event) => void;\n\t/** @deprecated Base UI uses different focus management */\n\tonCloseAutoFocus?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonFocusOutside?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonEscapeKeyDown?: () => void;\n};\n\nfunction PopoverContent({\n\tclassName,\n\talign = 'center',\n\tsideOffset = 4,\n\tshowArrow = false,\n\tside = 'bottom',\n\tchildren,\n\tonOpenAutoFocus: _onOpenAutoFocus,\n\tonCloseAutoFocus: _onCloseAutoFocus,\n\tonFocusOutside: _onFocusOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\t...props\n}: PopoverContentProps) {\n\tconst { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n\treturn (\n\t\t<PopoverPrimitive.Portal container={container}>\n\t\t\t<PopoverPrimitive.Positioner\n\t\t\t\tside={side}\n\t\t\t\talign={align}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={zIndexClass}\n\t\t\t>\n\t\t\t\t<PopoverPrimitive.Popup\n\t\t\t\t\tdata-slot=\"popover-content\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t`bg-popover text-popover-foreground origin-(--transform-origin) w-72 rounded-md border p-4 shadow-md outline-hidden\n\t\t\t\t\t\ttransition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95\n\t\t\t\t\t\tdata-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0\n\t\t\t\t\t\tdata-[side=bottom]:data-starting-style:-translate-y-2\n\t\t\t\t\t\tdata-[side=left]:data-starting-style:translate-x-2\n\t\t\t\t\t\tdata-[side=right]:data-starting-style:-translate-x-2\n\t\t\t\t\t\tdata-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`,\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t\t{showArrow && (\n\t\t\t\t\t\t<PopoverPrimitive.Arrow className='fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]' />\n\t\t\t\t\t)}\n\t\t\t\t</PopoverPrimitive.Popup>\n\t\t\t</PopoverPrimitive.Positioner>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\n/**\n * PopoverAnchor - placeholder for positioning anchor.\n * @deprecated Base UI Popover positions relative to Trigger by default.\n * For custom anchoring, use Popover.Positioner with anchor prop.\n */\nfunction PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Title>) {\n\treturn (\n\t\t<PopoverPrimitive.Title\n\t\t\tdata-slot=\"popover-title\"\n\t\t\tclassName={cn('font-medium leading-none', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Description>) {\n\treturn (\n\t\t<PopoverPrimitive.Description\n\t\t\tdata-slot=\"popover-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\tPopover,\n\tPopoverAnchor,\n\tPopoverClose,\n\tPopoverContent,\n\tPopoverDescription,\n\tPopoverTitle,\n\tPopoverTrigger,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,QAAQ,EAAE,GAAG,SAA6D;CAClF,OAAO,oBAACA,UAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ;AAC/D;AAOA,SAAS,eAAe,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA8B;CACnG,MAAM,cAAc,WAAW,UAAa,WAAWC,QAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,oBAACD,UAAiB,SAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACF;AAE5B;AAOA,SAAS,aAAa,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA4B;CAC/F,MAAM,cAAc,WAAW,UAAa,WAAWC,QAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,oBAACD,UAAiB,OAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACJ;AAE1B;AAiBA,SAAS,eAAe,EACvB,WACA,QAAQ,UACR,aAAa,GACb,YAAY,OACZ,OAAO,UACP,UACA,iBAAiB,kBACjB,kBAAkB,mBAClB,gBAAgB,iBAChB,iBAAiB,kBACjB,GAAG,SACoB;CACvB,MAAM,EAAE,WAAW,gBAAgB,8BAA8B;CAEjE,OACC,oBAACA,UAAiB,QAAlB;EAAoC;YACnC,oBAACA,UAAiB,YAAlB;GACO;GACC;GACK;GACZ,WAAW;aAEX,qBAACA,UAAiB,OAAlB;IACC,aAAU;IACV,WAAW,GACV;;;;;;wFAOA,SACD;IACA,GAAI;cAZL,CAcE,UACA,aACA,oBAACA,UAAiB,OAAlB,EAAwB,WAAU,0DAA2D,EAEvE;;EACI;CACL;AAE3B;;;;;;AAOA,SAAS,cAAc,EAAE,GAAG,SAA+C;CAC1E,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAiB,GAAI;CAAQ;AACpD;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA8D;CACnG,OACC,oBAACA,UAAiB,OAAlB;EACC,aAAU;EACV,WAAW,GAAG,4BAA4B,SAAS;EACnD,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAoE;CAC/G,OACC,oBAACA,UAAiB,aAAlB;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
1
+ {"version":3,"file":"popover.js","names":["PopoverPrimitive","React"],"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover';\n\nimport { useFloatingOverlayPortalProps } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\ntype PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Trigger\n\t\t\tdata-slot=\"popover-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Trigger>\n\t);\n}\n\ntype PopoverCloseProps = React.ComponentProps<typeof PopoverPrimitive.Close> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Close\n\t\t\tdata-slot=\"popover-close\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Close>\n\t);\n}\n\ntype PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Popup> & {\n\talign?: 'start' | 'center' | 'end';\n\tsideOffset?: number;\n\tshowArrow?: boolean;\n\tside?: 'top' | 'bottom' | 'left' | 'right';\n\t/** @deprecated Base UI uses different focus management */\n\tonOpenAutoFocus?: (e: Event) => void;\n\t/** @deprecated Base UI uses different focus management */\n\tonCloseAutoFocus?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonFocusOutside?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonEscapeKeyDown?: () => void;\n};\n\nfunction PopoverContent({\n\tclassName,\n\talign = 'center',\n\tsideOffset = 4,\n\tshowArrow = false,\n\tside = 'bottom',\n\tchildren,\n\tonOpenAutoFocus: _onOpenAutoFocus,\n\tonCloseAutoFocus: _onCloseAutoFocus,\n\tonFocusOutside: _onFocusOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\t...props\n}: PopoverContentProps) {\n\tconst { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n\treturn (\n\t\t<PopoverPrimitive.Portal container={container}>\n\t\t\t<PopoverPrimitive.Positioner\n\t\t\t\tside={side}\n\t\t\t\talign={align}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={zIndexClass}\n\t\t\t>\n\t\t\t\t<PopoverPrimitive.Popup\n\t\t\t\t\tdata-slot=\"popover-content\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t`bg-popover text-popover-foreground origin-(--transform-origin) max-h-(--available-height) w-72 max-w-(--available-width)\n\t\t\t\t\t\trounded-lg border p-4 shadow-lg outline-hidden [overflow-wrap:break-word]\n\t\t\t\t\t\ttransition-[scale,opacity,translate] duration-(--duration-moderate) ease-out data-starting-style:scale-95\n\t\t\t\t\t\tdata-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0\n\t\t\t\t\t\tdata-[side=bottom]:data-starting-style:-translate-y-2\n\t\t\t\t\t\tdata-[side=left]:data-starting-style:translate-x-2\n\t\t\t\t\t\tdata-[side=right]:data-starting-style:-translate-x-2\n\t\t\t\t\t\tdata-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`,\n\t\t\t\t\t\t// Capped to the room Base UI measured and scrolled inside. The arrow sits outside the box, so an arrowed popover keeps `overflow: visible`.\n\t\t\t\t\t\t!showArrow && 'overflow-y-auto overscroll-contain',\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t\t{showArrow && (\n\t\t\t\t\t\t<PopoverPrimitive.Arrow className='fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]' />\n\t\t\t\t\t)}\n\t\t\t\t</PopoverPrimitive.Popup>\n\t\t\t</PopoverPrimitive.Positioner>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\n/**\n * PopoverAnchor - placeholder for positioning anchor.\n * @deprecated Base UI Popover positions relative to Trigger by default.\n * For custom anchoring, use Popover.Positioner with anchor prop.\n */\nfunction PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Title>) {\n\treturn (\n\t\t<PopoverPrimitive.Title\n\t\t\tdata-slot=\"popover-title\"\n\t\t\tclassName={cn('font-medium leading-tight', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Description>) {\n\treturn (\n\t\t<PopoverPrimitive.Description\n\t\t\tdata-slot=\"popover-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\tPopover,\n\tPopoverAnchor,\n\tPopoverClose,\n\tPopoverContent,\n\tPopoverDescription,\n\tPopoverTitle,\n\tPopoverTrigger,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,QAAQ,EAAE,GAAG,SAA6D;CAClF,OAAO,oBAACA,UAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ;AAC/D;AAOA,SAAS,eAAe,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA8B;CACnG,MAAM,cAAc,WAAW,UAAa,WAAWC,QAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,oBAACD,UAAiB,SAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACF;AAE5B;AAOA,SAAS,aAAa,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA4B;CAC/F,MAAM,cAAc,WAAW,UAAa,WAAWC,QAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,oBAACD,UAAiB,OAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACJ;AAE1B;AAiBA,SAAS,eAAe,EACvB,WACA,QAAQ,UACR,aAAa,GACb,YAAY,OACZ,OAAO,UACP,UACA,iBAAiB,kBACjB,kBAAkB,mBAClB,gBAAgB,iBAChB,iBAAiB,kBACjB,GAAG,SACoB;CACvB,MAAM,EAAE,WAAW,gBAAgB,8BAA8B;CAEjE,OACC,oBAACA,UAAiB,QAAlB;EAAoC;YACnC,oBAACA,UAAiB,YAAlB;GACO;GACC;GACK;GACZ,WAAW;aAEX,qBAACA,UAAiB,OAAlB;IACC,aAAU;IACV,WAAW,GACV;;;;;;;wFASA,CAAC,aAAa,sCACd,SACD;IACA,GAAI;cAfL,CAiBE,UACA,aACA,oBAACA,UAAiB,OAAlB,EAAwB,WAAU,0DAA2D,EAEvE;;EACI;CACL;AAE3B;;;;;;AAOA,SAAS,cAAc,EAAE,GAAG,SAA+C;CAC1E,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAiB,GAAI;CAAQ;AACpD;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA8D;CACnG,OACC,oBAACA,UAAiB,OAAlB;EACC,aAAU;EACV,WAAW,GAAG,6BAA6B,SAAS;EACpD,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAoE;CAC/G,OACC,oBAACA,UAAiB,aAAlB;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
@@ -9,17 +9,34 @@ let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let _base_ui_react_progress = require("@base-ui/react/progress");
10
10
 
11
11
  //#region src/components/progress.tsx
12
- function Progress({ className, value, ...props }) {
12
+ /**
13
+ * Keeps the bar honest for values a calculation can really produce: finite
14
+ * values clamp into `[min, max]`; `null`, `undefined`, `NaN`, `Infinity` and
15
+ * unusable bounds are indeterminate. Without this Base UI drops the indicator
16
+ * width for them and the block fills the track, which reads as 100%.
17
+ */
18
+ function normalizeProgressValue(value, min, max) {
19
+ if (value == null || !Number.isFinite(value)) return null;
20
+ if (!Number.isFinite(min) || !Number.isFinite(max) || max <= min) return null;
21
+ return Math.min(Math.max(value, min), max);
22
+ }
23
+ function Progress({ className, value, min = 0, max = 100, ...props }) {
24
+ const normalized = normalizeProgressValue(value, min, max);
25
+ const overflowAttribute = normalized !== null && typeof value === "number" && value > max ? { "data-overflow": "" } : void 0;
13
26
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_progress.Progress.Root, {
14
27
  "data-slot": "progress",
15
- value,
28
+ value: normalized,
29
+ min,
30
+ max,
31
+ ...overflowAttribute,
16
32
  ...props,
17
33
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_progress.Progress.Track, {
18
34
  "data-slot": "progress-track",
19
35
  className: require_utils.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", className),
20
36
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_progress.Progress.Indicator, {
21
37
  "data-slot": "progress-indicator",
22
- className: "bg-primary h-full transition-[width] duration-200 ease-out motion-reduce:transition-none"
38
+ ...overflowAttribute,
39
+ className: require_utils.cn("bg-primary h-full transition-[width] duration-(--duration-slow) ease-out motion-reduce:transition-none", "data-indeterminate:bg-transparent data-indeterminate:[background-image:linear-gradient(90deg,transparent_0%,var(--primary)_50%,transparent_100%)] data-indeterminate:bg-[length:200%_100%] data-indeterminate:animate-[shimmer_1.6s_linear_infinite]", "motion-reduce:data-indeterminate:animate-none motion-reduce:data-indeterminate:[background-position:50%_0]")
23
40
  })
24
41
  })
25
42
  });
@@ -1 +1 @@
1
- {"version":3,"file":"progress.cjs","names":["ProgressPrimitive","cn"],"sources":["../../src/components/progress.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Progress as ProgressPrimitive } from '@base-ui/react/progress';\n\nimport { cn } from '../lib/utils';\n\ntype ProgressProps = Omit<React.ComponentProps<typeof ProgressPrimitive.Root>, 'children'> & {\n\tclassName?: string;\n};\n\nfunction Progress({ className, value, ...props }: ProgressProps) {\n\treturn (\n\t\t<ProgressPrimitive.Root data-slot=\"progress\" value={value} {...props}>\n\t\t\t<ProgressPrimitive.Track\n\t\t\t\tdata-slot=\"progress-track\"\n\t\t\t\tclassName={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n\t\t\t>\n\t\t\t\t<ProgressPrimitive.Indicator\n\t\t\t\t\tdata-slot=\"progress-indicator\"\n\t\t\t\t\tclassName=\"bg-primary h-full transition-[width] duration-200 ease-out motion-reduce:transition-none\"\n\t\t\t\t/>\n\t\t\t</ProgressPrimitive.Track>\n\t\t</ProgressPrimitive.Root>\n\t);\n}\n\nexport { Progress };\nexport type { ProgressProps };\n"],"mappings":";;;;;;;;;;;AAWA,SAAS,SAAS,EAAE,WAAW,OAAO,GAAG,SAAwB;CAChE,OACC,2CAACA,iCAAkB,MAAnB;EAAwB,aAAU;EAAkB;EAAO,GAAI;YAC9D,2CAACA,iCAAkB,OAAnB;GACC,aAAU;GACV,WAAWC,iBAAG,kEAAkE,SAAS;aAEzF,2CAACD,iCAAkB,WAAnB;IACC,aAAU;IACV,WAAU;GACV;EACuB;CACF;AAE1B"}
1
+ {"version":3,"file":"progress.cjs","names":["ProgressPrimitive","cn"],"sources":["../../src/components/progress.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Progress as ProgressPrimitive } from '@base-ui/react/progress';\n\nimport { cn } from '../lib/utils';\n\ntype ProgressProps = Omit<React.ComponentProps<typeof ProgressPrimitive.Root>, 'children'> & {\n\tclassName?: string;\n};\n\n/**\n * Keeps the bar honest for values a calculation can really produce: finite\n * values clamp into `[min, max]`; `null`, `undefined`, `NaN`, `Infinity` and\n * unusable bounds are indeterminate. Without this Base UI drops the indicator\n * width for them and the block fills the track, which reads as 100%.\n */\nfunction normalizeProgressValue(value: number | null | undefined, min: number, max: number): number | null {\n\tif (value == null || !Number.isFinite(value)) return null;\n\tif (!Number.isFinite(min) || !Number.isFinite(max) || max <= min) return null;\n\treturn Math.min(Math.max(value, min), max);\n}\n\nfunction Progress({ className, value, min = 0, max = 100, ...props }: ProgressProps) {\n\tconst normalized = normalizeProgressValue(value, min, max);\n\t// Over the maximum the bar stays full; `data-overflow` lets apps colour it.\n\tconst overflow = normalized !== null && typeof value === 'number' && value > max;\n\tconst overflowAttribute = overflow ? { 'data-overflow': '' } : undefined;\n\n\treturn (\n\t\t<ProgressPrimitive.Root data-slot=\"progress\" value={normalized} min={min} max={max} {...overflowAttribute} {...props}>\n\t\t\t<ProgressPrimitive.Track\n\t\t\t\tdata-slot=\"progress-track\"\n\t\t\t\tclassName={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n\t\t\t>\n\t\t\t\t<ProgressPrimitive.Indicator\n\t\t\t\t\tdata-slot=\"progress-indicator\"\n\t\t\t\t\t{...overflowAttribute}\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'bg-primary h-full transition-[width] duration-(--duration-slow) ease-out motion-reduce:transition-none',\n\t\t\t\t\t\t// Indeterminate: a band sweeps the track instead of a solid bar that reads as complete.\n\t\t\t\t\t\t'data-indeterminate:bg-transparent data-indeterminate:[background-image:linear-gradient(90deg,transparent_0%,var(--primary)_50%,transparent_100%)] data-indeterminate:bg-[length:200%_100%] data-indeterminate:animate-[shimmer_1.6s_linear_infinite]',\n\t\t\t\t\t\t'motion-reduce:data-indeterminate:animate-none motion-reduce:data-indeterminate:[background-position:50%_0]',\n\t\t\t\t\t)}\n\t\t\t\t/>\n\t\t\t</ProgressPrimitive.Track>\n\t\t</ProgressPrimitive.Root>\n\t);\n}\n\nexport { Progress };\nexport type { ProgressProps };\n"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,uBAAuB,OAAkC,KAAa,KAA4B;CAC1G,IAAI,SAAS,QAAQ,CAAC,OAAO,SAAS,KAAK,GAAG,OAAO;CACrD,IAAI,CAAC,OAAO,SAAS,GAAG,KAAK,CAAC,OAAO,SAAS,GAAG,KAAK,OAAO,KAAK,OAAO;CACzE,OAAO,KAAK,IAAI,KAAK,IAAI,OAAO,GAAG,GAAG,GAAG;AAC1C;AAEA,SAAS,SAAS,EAAE,WAAW,OAAO,MAAM,GAAG,MAAM,KAAK,GAAG,SAAwB;CACpF,MAAM,aAAa,uBAAuB,OAAO,KAAK,GAAG;CAGzD,MAAM,oBADW,eAAe,QAAQ,OAAO,UAAU,YAAY,QAAQ,MACxC,EAAE,iBAAiB,GAAG,IAAI;CAE/D,OACC,2CAACA,iCAAkB,MAAnB;EAAwB,aAAU;EAAW,OAAO;EAAiB;EAAU;EAAK,GAAI;EAAmB,GAAI;YAC9G,2CAACA,iCAAkB,OAAnB;GACC,aAAU;GACV,WAAWC,iBAAG,kEAAkE,SAAS;aAEzF,2CAACD,iCAAkB,WAAnB;IACC,aAAU;IACV,GAAI;IACJ,WAAWC,iBACV,0GAEA,wPACA,4GACD;GACA;EACuB;CACF;AAE1B"}
@@ -4,7 +4,7 @@ import { Progress as Progress$1 } from "@base-ui/react/progress";
4
4
  type ProgressProps = Omit<React$1.ComponentProps<typeof Progress$1.Root>, 'children'> & {
5
5
  className?: string;
6
6
  };
7
- declare function Progress({ className, value, ...props }: ProgressProps): React$1.JSX.Element;
7
+ declare function Progress({ className, value, min, max, ...props }: ProgressProps): React$1.JSX.Element;
8
8
  //#endregion
9
9
  export { Progress, type ProgressProps };
10
10
  //# sourceMappingURL=progress.d.cts.map
@@ -4,7 +4,7 @@ import { Progress as Progress$1 } from "@base-ui/react/progress";
4
4
  type ProgressProps = Omit<React$1.ComponentProps<typeof Progress$1.Root>, 'children'> & {
5
5
  className?: string;
6
6
  };
7
- declare function Progress({ className, value, ...props }: ProgressProps): React$1.JSX.Element;
7
+ declare function Progress({ className, value, min, max, ...props }: ProgressProps): React$1.JSX.Element;
8
8
  //#endregion
9
9
  export { Progress, type ProgressProps };
10
10
  //# sourceMappingURL=progress.d.ts.map
@@ -6,17 +6,34 @@ import { jsx } from "react/jsx-runtime";
6
6
  import { Progress as Progress$1 } from "@base-ui/react/progress";
7
7
 
8
8
  //#region src/components/progress.tsx
9
- function Progress({ className, value, ...props }) {
9
+ /**
10
+ * Keeps the bar honest for values a calculation can really produce: finite
11
+ * values clamp into `[min, max]`; `null`, `undefined`, `NaN`, `Infinity` and
12
+ * unusable bounds are indeterminate. Without this Base UI drops the indicator
13
+ * width for them and the block fills the track, which reads as 100%.
14
+ */
15
+ function normalizeProgressValue(value, min, max) {
16
+ if (value == null || !Number.isFinite(value)) return null;
17
+ if (!Number.isFinite(min) || !Number.isFinite(max) || max <= min) return null;
18
+ return Math.min(Math.max(value, min), max);
19
+ }
20
+ function Progress({ className, value, min = 0, max = 100, ...props }) {
21
+ const normalized = normalizeProgressValue(value, min, max);
22
+ const overflowAttribute = normalized !== null && typeof value === "number" && value > max ? { "data-overflow": "" } : void 0;
10
23
  return /* @__PURE__ */ jsx(Progress$1.Root, {
11
24
  "data-slot": "progress",
12
- value,
25
+ value: normalized,
26
+ min,
27
+ max,
28
+ ...overflowAttribute,
13
29
  ...props,
14
30
  children: /* @__PURE__ */ jsx(Progress$1.Track, {
15
31
  "data-slot": "progress-track",
16
32
  className: cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", className),
17
33
  children: /* @__PURE__ */ jsx(Progress$1.Indicator, {
18
34
  "data-slot": "progress-indicator",
19
- className: "bg-primary h-full transition-[width] duration-200 ease-out motion-reduce:transition-none"
35
+ ...overflowAttribute,
36
+ className: cn("bg-primary h-full transition-[width] duration-(--duration-slow) ease-out motion-reduce:transition-none", "data-indeterminate:bg-transparent data-indeterminate:[background-image:linear-gradient(90deg,transparent_0%,var(--primary)_50%,transparent_100%)] data-indeterminate:bg-[length:200%_100%] data-indeterminate:animate-[shimmer_1.6s_linear_infinite]", "motion-reduce:data-indeterminate:animate-none motion-reduce:data-indeterminate:[background-position:50%_0]")
20
37
  })
21
38
  })
22
39
  });
@@ -1 +1 @@
1
- {"version":3,"file":"progress.js","names":["ProgressPrimitive"],"sources":["../../src/components/progress.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Progress as ProgressPrimitive } from '@base-ui/react/progress';\n\nimport { cn } from '../lib/utils';\n\ntype ProgressProps = Omit<React.ComponentProps<typeof ProgressPrimitive.Root>, 'children'> & {\n\tclassName?: string;\n};\n\nfunction Progress({ className, value, ...props }: ProgressProps) {\n\treturn (\n\t\t<ProgressPrimitive.Root data-slot=\"progress\" value={value} {...props}>\n\t\t\t<ProgressPrimitive.Track\n\t\t\t\tdata-slot=\"progress-track\"\n\t\t\t\tclassName={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n\t\t\t>\n\t\t\t\t<ProgressPrimitive.Indicator\n\t\t\t\t\tdata-slot=\"progress-indicator\"\n\t\t\t\t\tclassName=\"bg-primary h-full transition-[width] duration-200 ease-out motion-reduce:transition-none\"\n\t\t\t\t/>\n\t\t\t</ProgressPrimitive.Track>\n\t\t</ProgressPrimitive.Root>\n\t);\n}\n\nexport { Progress };\nexport type { ProgressProps };\n"],"mappings":";;;;;;;;AAWA,SAAS,SAAS,EAAE,WAAW,OAAO,GAAG,SAAwB;CAChE,OACC,oBAACA,WAAkB,MAAnB;EAAwB,aAAU;EAAkB;EAAO,GAAI;YAC9D,oBAACA,WAAkB,OAAnB;GACC,aAAU;GACV,WAAW,GAAG,kEAAkE,SAAS;aAEzF,oBAACA,WAAkB,WAAnB;IACC,aAAU;IACV,WAAU;GACV;EACuB;CACF;AAE1B"}
1
+ {"version":3,"file":"progress.js","names":["ProgressPrimitive"],"sources":["../../src/components/progress.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Progress as ProgressPrimitive } from '@base-ui/react/progress';\n\nimport { cn } from '../lib/utils';\n\ntype ProgressProps = Omit<React.ComponentProps<typeof ProgressPrimitive.Root>, 'children'> & {\n\tclassName?: string;\n};\n\n/**\n * Keeps the bar honest for values a calculation can really produce: finite\n * values clamp into `[min, max]`; `null`, `undefined`, `NaN`, `Infinity` and\n * unusable bounds are indeterminate. Without this Base UI drops the indicator\n * width for them and the block fills the track, which reads as 100%.\n */\nfunction normalizeProgressValue(value: number | null | undefined, min: number, max: number): number | null {\n\tif (value == null || !Number.isFinite(value)) return null;\n\tif (!Number.isFinite(min) || !Number.isFinite(max) || max <= min) return null;\n\treturn Math.min(Math.max(value, min), max);\n}\n\nfunction Progress({ className, value, min = 0, max = 100, ...props }: ProgressProps) {\n\tconst normalized = normalizeProgressValue(value, min, max);\n\t// Over the maximum the bar stays full; `data-overflow` lets apps colour it.\n\tconst overflow = normalized !== null && typeof value === 'number' && value > max;\n\tconst overflowAttribute = overflow ? { 'data-overflow': '' } : undefined;\n\n\treturn (\n\t\t<ProgressPrimitive.Root data-slot=\"progress\" value={normalized} min={min} max={max} {...overflowAttribute} {...props}>\n\t\t\t<ProgressPrimitive.Track\n\t\t\t\tdata-slot=\"progress-track\"\n\t\t\t\tclassName={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n\t\t\t>\n\t\t\t\t<ProgressPrimitive.Indicator\n\t\t\t\t\tdata-slot=\"progress-indicator\"\n\t\t\t\t\t{...overflowAttribute}\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'bg-primary h-full transition-[width] duration-(--duration-slow) ease-out motion-reduce:transition-none',\n\t\t\t\t\t\t// Indeterminate: a band sweeps the track instead of a solid bar that reads as complete.\n\t\t\t\t\t\t'data-indeterminate:bg-transparent data-indeterminate:[background-image:linear-gradient(90deg,transparent_0%,var(--primary)_50%,transparent_100%)] data-indeterminate:bg-[length:200%_100%] data-indeterminate:animate-[shimmer_1.6s_linear_infinite]',\n\t\t\t\t\t\t'motion-reduce:data-indeterminate:animate-none motion-reduce:data-indeterminate:[background-position:50%_0]',\n\t\t\t\t\t)}\n\t\t\t\t/>\n\t\t\t</ProgressPrimitive.Track>\n\t\t</ProgressPrimitive.Root>\n\t);\n}\n\nexport { Progress };\nexport type { ProgressProps };\n"],"mappings":";;;;;;;;;;;;;;AAiBA,SAAS,uBAAuB,OAAkC,KAAa,KAA4B;CAC1G,IAAI,SAAS,QAAQ,CAAC,OAAO,SAAS,KAAK,GAAG,OAAO;CACrD,IAAI,CAAC,OAAO,SAAS,GAAG,KAAK,CAAC,OAAO,SAAS,GAAG,KAAK,OAAO,KAAK,OAAO;CACzE,OAAO,KAAK,IAAI,KAAK,IAAI,OAAO,GAAG,GAAG,GAAG;AAC1C;AAEA,SAAS,SAAS,EAAE,WAAW,OAAO,MAAM,GAAG,MAAM,KAAK,GAAG,SAAwB;CACpF,MAAM,aAAa,uBAAuB,OAAO,KAAK,GAAG;CAGzD,MAAM,oBADW,eAAe,QAAQ,OAAO,UAAU,YAAY,QAAQ,MACxC,EAAE,iBAAiB,GAAG,IAAI;CAE/D,OACC,oBAACA,WAAkB,MAAnB;EAAwB,aAAU;EAAW,OAAO;EAAiB;EAAU;EAAK,GAAI;EAAmB,GAAI;YAC9G,oBAACA,WAAkB,OAAnB;GACC,aAAU;GACV,WAAW,GAAG,kEAAkE,SAAS;aAEzF,oBAACA,WAAkB,WAAnB;IACC,aAAU;IACV,GAAI;IACJ,WAAW,GACV,0GAEA,wPACA,4GACD;GACA;EACuB;CACF;AAE1B"}
@@ -11,7 +11,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
11
11
  * A scrollable container that shows progressive blur effects at the top and bottom
12
12
  * when content overflows. Top blur appears when scrolled, bottom blur when more content below.
13
13
  */
14
- function ProgressiveBlurScrollContainer({ children, className, scrollClassName, minItemsForBlur = 0, itemCount = 0, blurProps, showBlur = true }) {
14
+ function ProgressiveBlurScrollContainer({ children, className, scrollClassName, minItemsForBlur = 0, itemCount, blurProps, showBlur = true }) {
15
15
  const [hasOverflow, setHasOverflow] = (0, react.useState)(false);
16
16
  const [isScrolledFromTop, setIsScrolledFromTop] = (0, react.useState)(false);
17
17
  const [isScrolledFromBottom, setIsScrolledFromBottom] = (0, react.useState)(true);
@@ -44,7 +44,7 @@ function ProgressiveBlurScrollContainer({ children, className, scrollClassName,
44
44
  el.addEventListener("scroll", checkScrollPosition, { passive: true });
45
45
  return () => el.removeEventListener("scroll", checkScrollPosition);
46
46
  }, [checkScrollPosition]);
47
- const canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount > minItemsForBlur);
47
+ const canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount === void 0 || itemCount > minItemsForBlur);
48
48
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
49
49
  className: require_utils.cn("relative min-h-0 flex-1", className),
50
50
  children: [
@@ -1 +1 @@
1
- {"version":3,"file":"progressive-blur-scroll-container.cjs","names":["cn","ProgressiveBlur"],"sources":["../../src/components/progressive-blur-scroll-container.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useRef, useState, type ReactNode } from 'react';\n\nimport { cn } from '../lib/utils';\n\nimport { ProgressiveBlur, type ProgressiveBlurProps } from './progressive-blur';\n\nexport interface ProgressiveBlurScrollContainerProps {\n\tchildren: ReactNode;\n\tclassName?: string;\n\t/** Class name for the scrollable inner div */\n\tscrollClassName?: string;\n\t/** Minimum number of items to show blur (prevents blur on sparse content) */\n\tminItemsForBlur?: number;\n\t/** Current item count for minItemsForBlur check */\n\titemCount?: number;\n\t/** Props to pass to ProgressiveBlur */\n\tblurProps?: Partial<ProgressiveBlurProps>;\n\t/** Whether to show blur (in addition to overflow check) */\n\tshowBlur?: boolean;\n}\n\n/**\n * A scrollable container that shows progressive blur effects at the top and bottom\n * when content overflows. Top blur appears when scrolled, bottom blur when more content below.\n */\nexport function ProgressiveBlurScrollContainer({\n\tchildren,\n\tclassName,\n\tscrollClassName,\n\tminItemsForBlur = 0,\n\titemCount = 0,\n\tblurProps,\n\tshowBlur = true,\n}: ProgressiveBlurScrollContainerProps) {\n\tconst [hasOverflow, setHasOverflow] = useState(false);\n\tconst [isScrolledFromTop, setIsScrolledFromTop] = useState(false);\n\tconst [isScrolledFromBottom, setIsScrolledFromBottom] = useState(true);\n\tconst scrollRef = useRef<HTMLDivElement>(null);\n\n\tconst checkScrollPosition = useCallback(() => {\n\t\tif (scrollRef.current) {\n\t\t\tconst el = scrollRef.current;\n\t\t\tconst scrollTop = el.scrollTop;\n\t\t\tconst scrollHeight = el.scrollHeight;\n\t\t\tconst clientHeight = el.clientHeight;\n\n\t\t\t// Show top blur if scrolled more than 10px from top\n\t\t\tsetIsScrolledFromTop(scrollTop > 10);\n\t\t\t// Show bottom blur if not scrolled to bottom (with 10px threshold)\n\t\t\tsetIsScrolledFromBottom(scrollTop + clientHeight < scrollHeight - 10);\n\t\t}\n\t}, []);\n\n\tuseEffect(() => {\n\t\tconst checkOverflow = () => {\n\t\t\tif (scrollRef.current) {\n\t\t\t\tconst el = scrollRef.current;\n\t\t\t\tsetHasOverflow(el.scrollHeight > el.clientHeight);\n\t\t\t\tcheckScrollPosition();\n\t\t\t}\n\t\t};\n\t\tcheckOverflow();\n\t\twindow.addEventListener('resize', checkOverflow);\n\t\treturn () => window.removeEventListener('resize', checkOverflow);\n\t}, [children, checkScrollPosition]);\n\n\t// Listen to scroll events\n\tuseEffect(() => {\n\t\tconst el = scrollRef.current;\n\t\tif (!el) return;\n\n\t\tel.addEventListener('scroll', checkScrollPosition, { passive: true });\n\t\treturn () => el.removeEventListener('scroll', checkScrollPosition);\n\t}, [checkScrollPosition]);\n\n\tconst canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount > minItemsForBlur);\n\n\treturn (\n\t\t<div className={cn('relative min-h-0 flex-1', className)}>\n\t\t\t<div\n\t\t\t\tref={scrollRef}\n\t\t\t\tclassName={cn('absolute inset-0 overflow-y-auto', scrollClassName)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t{canShowBlur && isScrolledFromTop && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='top'\n\t\t\t\t\theight='48px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.2}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{canShowBlur && isScrolledFromBottom && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='bottom'\n\t\t\t\t\theight='64px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.25}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;AA2BA,SAAgB,+BAA+B,EAC9C,UACA,WACA,iBACA,kBAAkB,GAClB,YAAY,GACZ,WACA,WAAW,QAC4B;CACvC,MAAM,CAAC,aAAa,sCAA2B,KAAK;CACpD,MAAM,CAAC,mBAAmB,4CAAiC,KAAK;CAChE,MAAM,CAAC,sBAAsB,+CAAoC,IAAI;CACrE,MAAM,8BAAmC,IAAI;CAE7C,MAAM,mDAAwC;EAC7C,IAAI,UAAU,SAAS;GACtB,MAAM,KAAK,UAAU;GACrB,MAAM,YAAY,GAAG;GACrB,MAAM,eAAe,GAAG;GACxB,MAAM,eAAe,GAAG;GAGxB,qBAAqB,YAAY,EAAE;GAEnC,wBAAwB,YAAY,eAAe,eAAe,EAAE;EACrE;CACD,GAAG,CAAC,CAAC;CAEL,2BAAgB;EACf,MAAM,sBAAsB;GAC3B,IAAI,UAAU,SAAS;IACtB,MAAM,KAAK,UAAU;IACrB,eAAe,GAAG,eAAe,GAAG,YAAY;IAChD,oBAAoB;GACrB;EACD;EACA,cAAc;EACd,OAAO,iBAAiB,UAAU,aAAa;EAC/C,aAAa,OAAO,oBAAoB,UAAU,aAAa;CAChE,GAAG,CAAC,UAAU,mBAAmB,CAAC;CAGlC,2BAAgB;EACf,MAAM,KAAK,UAAU;EACrB,IAAI,CAAC,IAAI;EAET,GAAG,iBAAiB,UAAU,qBAAqB,EAAE,SAAS,KAAK,CAAC;EACpE,aAAa,GAAG,oBAAoB,UAAU,mBAAmB;CAClE,GAAG,CAAC,mBAAmB,CAAC;CAExB,MAAM,cAAc,YAAY,gBAAgB,oBAAoB,KAAK,YAAY;CAErF,OACC,4CAAC,OAAD;EAAK,WAAWA,iBAAG,2BAA2B,SAAS;YAAvD;GACC,2CAAC,OAAD;IACC,KAAK;IACL,WAAWA,iBAAG,oCAAoC,eAAe;IAEhE;GACG;GACJ,eAAe,qBACf,2CAACC,qDAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;GAED,eAAe,wBACf,2CAACA,qDAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;EAEE;;AAEP"}
1
+ {"version":3,"file":"progressive-blur-scroll-container.cjs","names":["cn","ProgressiveBlur"],"sources":["../../src/components/progressive-blur-scroll-container.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useRef, useState, type ReactNode } from 'react';\n\nimport { cn } from '../lib/utils';\n\nimport { ProgressiveBlur, type ProgressiveBlurProps } from './progressive-blur';\n\nexport interface ProgressiveBlurScrollContainerProps {\n\tchildren: ReactNode;\n\tclassName?: string;\n\t/** Class name for the scrollable inner div */\n\tscrollClassName?: string;\n\t/** Minimum number of items to show blur (prevents blur on sparse content) */\n\tminItemsForBlur?: number;\n\t/** Current item count for the `minItemsForBlur` check. Leave it out and the threshold is ignored. */\n\titemCount?: number;\n\t/** Props to pass to ProgressiveBlur */\n\tblurProps?: Partial<ProgressiveBlurProps>;\n\t/** Whether to show blur (in addition to overflow check) */\n\tshowBlur?: boolean;\n}\n\n/**\n * A scrollable container that shows progressive blur effects at the top and bottom\n * when content overflows. Top blur appears when scrolled, bottom blur when more content below.\n */\nexport function ProgressiveBlurScrollContainer({\n\tchildren,\n\tclassName,\n\tscrollClassName,\n\tminItemsForBlur = 0,\n\titemCount,\n\tblurProps,\n\tshowBlur = true,\n}: ProgressiveBlurScrollContainerProps) {\n\tconst [hasOverflow, setHasOverflow] = useState(false);\n\tconst [isScrolledFromTop, setIsScrolledFromTop] = useState(false);\n\tconst [isScrolledFromBottom, setIsScrolledFromBottom] = useState(true);\n\tconst scrollRef = useRef<HTMLDivElement>(null);\n\n\tconst checkScrollPosition = useCallback(() => {\n\t\tif (scrollRef.current) {\n\t\t\tconst el = scrollRef.current;\n\t\t\tconst scrollTop = el.scrollTop;\n\t\t\tconst scrollHeight = el.scrollHeight;\n\t\t\tconst clientHeight = el.clientHeight;\n\n\t\t\t// Show top blur if scrolled more than 10px from top\n\t\t\tsetIsScrolledFromTop(scrollTop > 10);\n\t\t\t// Show bottom blur if not scrolled to bottom (with 10px threshold)\n\t\t\tsetIsScrolledFromBottom(scrollTop + clientHeight < scrollHeight - 10);\n\t\t}\n\t}, []);\n\n\tuseEffect(() => {\n\t\tconst checkOverflow = () => {\n\t\t\tif (scrollRef.current) {\n\t\t\t\tconst el = scrollRef.current;\n\t\t\t\tsetHasOverflow(el.scrollHeight > el.clientHeight);\n\t\t\t\tcheckScrollPosition();\n\t\t\t}\n\t\t};\n\t\tcheckOverflow();\n\t\twindow.addEventListener('resize', checkOverflow);\n\t\treturn () => window.removeEventListener('resize', checkOverflow);\n\t}, [children, checkScrollPosition]);\n\n\t// Listen to scroll events\n\tuseEffect(() => {\n\t\tconst el = scrollRef.current;\n\t\tif (!el) return;\n\n\t\tel.addEventListener('scroll', checkScrollPosition, { passive: true });\n\t\treturn () => el.removeEventListener('scroll', checkScrollPosition);\n\t}, [checkScrollPosition]);\n\n\tconst canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount === undefined || itemCount > minItemsForBlur);\n\n\treturn (\n\t\t<div className={cn('relative min-h-0 flex-1', className)}>\n\t\t\t<div\n\t\t\t\tref={scrollRef}\n\t\t\t\tclassName={cn('absolute inset-0 overflow-y-auto', scrollClassName)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t{canShowBlur && isScrolledFromTop && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='top'\n\t\t\t\t\theight='48px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.2}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{canShowBlur && isScrolledFromBottom && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='bottom'\n\t\t\t\t\theight='64px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.25}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;AA2BA,SAAgB,+BAA+B,EAC9C,UACA,WACA,iBACA,kBAAkB,GAClB,WACA,WACA,WAAW,QAC4B;CACvC,MAAM,CAAC,aAAa,sCAA2B,KAAK;CACpD,MAAM,CAAC,mBAAmB,4CAAiC,KAAK;CAChE,MAAM,CAAC,sBAAsB,+CAAoC,IAAI;CACrE,MAAM,8BAAmC,IAAI;CAE7C,MAAM,mDAAwC;EAC7C,IAAI,UAAU,SAAS;GACtB,MAAM,KAAK,UAAU;GACrB,MAAM,YAAY,GAAG;GACrB,MAAM,eAAe,GAAG;GACxB,MAAM,eAAe,GAAG;GAGxB,qBAAqB,YAAY,EAAE;GAEnC,wBAAwB,YAAY,eAAe,eAAe,EAAE;EACrE;CACD,GAAG,CAAC,CAAC;CAEL,2BAAgB;EACf,MAAM,sBAAsB;GAC3B,IAAI,UAAU,SAAS;IACtB,MAAM,KAAK,UAAU;IACrB,eAAe,GAAG,eAAe,GAAG,YAAY;IAChD,oBAAoB;GACrB;EACD;EACA,cAAc;EACd,OAAO,iBAAiB,UAAU,aAAa;EAC/C,aAAa,OAAO,oBAAoB,UAAU,aAAa;CAChE,GAAG,CAAC,UAAU,mBAAmB,CAAC;CAGlC,2BAAgB;EACf,MAAM,KAAK,UAAU;EACrB,IAAI,CAAC,IAAI;EAET,GAAG,iBAAiB,UAAU,qBAAqB,EAAE,SAAS,KAAK,CAAC;EACpE,aAAa,GAAG,oBAAoB,UAAU,mBAAmB;CAClE,GAAG,CAAC,mBAAmB,CAAC;CAExB,MAAM,cAAc,YAAY,gBAAgB,oBAAoB,KAAK,cAAc,UAAa,YAAY;CAEhH,OACC,4CAAC,OAAD;EAAK,WAAWA,iBAAG,2BAA2B,SAAS;YAAvD;GACC,2CAAC,OAAD;IACC,KAAK;IACL,WAAWA,iBAAG,oCAAoC,eAAe;IAEhE;GACG;GACJ,eAAe,qBACf,2CAACC,qDAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;GAED,eAAe,wBACf,2CAACA,qDAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;EAEE;;AAEP"}
@@ -8,7 +8,7 @@ interface ProgressiveBlurScrollContainerProps {
8
8
  scrollClassName?: string;
9
9
  /** Minimum number of items to show blur (prevents blur on sparse content) */
10
10
  minItemsForBlur?: number;
11
- /** Current item count for minItemsForBlur check */
11
+ /** Current item count for the `minItemsForBlur` check. Leave it out and the threshold is ignored. */
12
12
  itemCount?: number;
13
13
  /** Props to pass to ProgressiveBlur */
14
14
  blurProps?: Partial<ProgressiveBlurProps>;
@@ -8,7 +8,7 @@ interface ProgressiveBlurScrollContainerProps {
8
8
  scrollClassName?: string;
9
9
  /** Minimum number of items to show blur (prevents blur on sparse content) */
10
10
  minItemsForBlur?: number;
11
- /** Current item count for minItemsForBlur check */
11
+ /** Current item count for the `minItemsForBlur` check. Leave it out and the threshold is ignored. */
12
12
  itemCount?: number;
13
13
  /** Props to pass to ProgressiveBlur */
14
14
  blurProps?: Partial<ProgressiveBlurProps>;
@@ -10,7 +10,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  * A scrollable container that shows progressive blur effects at the top and bottom
11
11
  * when content overflows. Top blur appears when scrolled, bottom blur when more content below.
12
12
  */
13
- function ProgressiveBlurScrollContainer({ children, className, scrollClassName, minItemsForBlur = 0, itemCount = 0, blurProps, showBlur = true }) {
13
+ function ProgressiveBlurScrollContainer({ children, className, scrollClassName, minItemsForBlur = 0, itemCount, blurProps, showBlur = true }) {
14
14
  const [hasOverflow, setHasOverflow] = useState(false);
15
15
  const [isScrolledFromTop, setIsScrolledFromTop] = useState(false);
16
16
  const [isScrolledFromBottom, setIsScrolledFromBottom] = useState(true);
@@ -43,7 +43,7 @@ function ProgressiveBlurScrollContainer({ children, className, scrollClassName,
43
43
  el.addEventListener("scroll", checkScrollPosition, { passive: true });
44
44
  return () => el.removeEventListener("scroll", checkScrollPosition);
45
45
  }, [checkScrollPosition]);
46
- const canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount > minItemsForBlur);
46
+ const canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount === void 0 || itemCount > minItemsForBlur);
47
47
  return /* @__PURE__ */ jsxs("div", {
48
48
  className: cn("relative min-h-0 flex-1", className),
49
49
  children: [
@@ -1 +1 @@
1
- {"version":3,"file":"progressive-blur-scroll-container.js","names":[],"sources":["../../src/components/progressive-blur-scroll-container.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useRef, useState, type ReactNode } from 'react';\n\nimport { cn } from '../lib/utils';\n\nimport { ProgressiveBlur, type ProgressiveBlurProps } from './progressive-blur';\n\nexport interface ProgressiveBlurScrollContainerProps {\n\tchildren: ReactNode;\n\tclassName?: string;\n\t/** Class name for the scrollable inner div */\n\tscrollClassName?: string;\n\t/** Minimum number of items to show blur (prevents blur on sparse content) */\n\tminItemsForBlur?: number;\n\t/** Current item count for minItemsForBlur check */\n\titemCount?: number;\n\t/** Props to pass to ProgressiveBlur */\n\tblurProps?: Partial<ProgressiveBlurProps>;\n\t/** Whether to show blur (in addition to overflow check) */\n\tshowBlur?: boolean;\n}\n\n/**\n * A scrollable container that shows progressive blur effects at the top and bottom\n * when content overflows. Top blur appears when scrolled, bottom blur when more content below.\n */\nexport function ProgressiveBlurScrollContainer({\n\tchildren,\n\tclassName,\n\tscrollClassName,\n\tminItemsForBlur = 0,\n\titemCount = 0,\n\tblurProps,\n\tshowBlur = true,\n}: ProgressiveBlurScrollContainerProps) {\n\tconst [hasOverflow, setHasOverflow] = useState(false);\n\tconst [isScrolledFromTop, setIsScrolledFromTop] = useState(false);\n\tconst [isScrolledFromBottom, setIsScrolledFromBottom] = useState(true);\n\tconst scrollRef = useRef<HTMLDivElement>(null);\n\n\tconst checkScrollPosition = useCallback(() => {\n\t\tif (scrollRef.current) {\n\t\t\tconst el = scrollRef.current;\n\t\t\tconst scrollTop = el.scrollTop;\n\t\t\tconst scrollHeight = el.scrollHeight;\n\t\t\tconst clientHeight = el.clientHeight;\n\n\t\t\t// Show top blur if scrolled more than 10px from top\n\t\t\tsetIsScrolledFromTop(scrollTop > 10);\n\t\t\t// Show bottom blur if not scrolled to bottom (with 10px threshold)\n\t\t\tsetIsScrolledFromBottom(scrollTop + clientHeight < scrollHeight - 10);\n\t\t}\n\t}, []);\n\n\tuseEffect(() => {\n\t\tconst checkOverflow = () => {\n\t\t\tif (scrollRef.current) {\n\t\t\t\tconst el = scrollRef.current;\n\t\t\t\tsetHasOverflow(el.scrollHeight > el.clientHeight);\n\t\t\t\tcheckScrollPosition();\n\t\t\t}\n\t\t};\n\t\tcheckOverflow();\n\t\twindow.addEventListener('resize', checkOverflow);\n\t\treturn () => window.removeEventListener('resize', checkOverflow);\n\t}, [children, checkScrollPosition]);\n\n\t// Listen to scroll events\n\tuseEffect(() => {\n\t\tconst el = scrollRef.current;\n\t\tif (!el) return;\n\n\t\tel.addEventListener('scroll', checkScrollPosition, { passive: true });\n\t\treturn () => el.removeEventListener('scroll', checkScrollPosition);\n\t}, [checkScrollPosition]);\n\n\tconst canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount > minItemsForBlur);\n\n\treturn (\n\t\t<div className={cn('relative min-h-0 flex-1', className)}>\n\t\t\t<div\n\t\t\t\tref={scrollRef}\n\t\t\t\tclassName={cn('absolute inset-0 overflow-y-auto', scrollClassName)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t{canShowBlur && isScrolledFromTop && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='top'\n\t\t\t\t\theight='48px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.2}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{canShowBlur && isScrolledFromBottom && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='bottom'\n\t\t\t\t\theight='64px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.25}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;AA2BA,SAAgB,+BAA+B,EAC9C,UACA,WACA,iBACA,kBAAkB,GAClB,YAAY,GACZ,WACA,WAAW,QAC4B;CACvC,MAAM,CAAC,aAAa,kBAAkB,SAAS,KAAK;CACpD,MAAM,CAAC,mBAAmB,wBAAwB,SAAS,KAAK;CAChE,MAAM,CAAC,sBAAsB,2BAA2B,SAAS,IAAI;CACrE,MAAM,YAAY,OAAuB,IAAI;CAE7C,MAAM,sBAAsB,kBAAkB;EAC7C,IAAI,UAAU,SAAS;GACtB,MAAM,KAAK,UAAU;GACrB,MAAM,YAAY,GAAG;GACrB,MAAM,eAAe,GAAG;GACxB,MAAM,eAAe,GAAG;GAGxB,qBAAqB,YAAY,EAAE;GAEnC,wBAAwB,YAAY,eAAe,eAAe,EAAE;EACrE;CACD,GAAG,CAAC,CAAC;CAEL,gBAAgB;EACf,MAAM,sBAAsB;GAC3B,IAAI,UAAU,SAAS;IACtB,MAAM,KAAK,UAAU;IACrB,eAAe,GAAG,eAAe,GAAG,YAAY;IAChD,oBAAoB;GACrB;EACD;EACA,cAAc;EACd,OAAO,iBAAiB,UAAU,aAAa;EAC/C,aAAa,OAAO,oBAAoB,UAAU,aAAa;CAChE,GAAG,CAAC,UAAU,mBAAmB,CAAC;CAGlC,gBAAgB;EACf,MAAM,KAAK,UAAU;EACrB,IAAI,CAAC,IAAI;EAET,GAAG,iBAAiB,UAAU,qBAAqB,EAAE,SAAS,KAAK,CAAC;EACpE,aAAa,GAAG,oBAAoB,UAAU,mBAAmB;CAClE,GAAG,CAAC,mBAAmB,CAAC;CAExB,MAAM,cAAc,YAAY,gBAAgB,oBAAoB,KAAK,YAAY;CAErF,OACC,qBAAC,OAAD;EAAK,WAAW,GAAG,2BAA2B,SAAS;YAAvD;GACC,oBAAC,OAAD;IACC,KAAK;IACL,WAAW,GAAG,oCAAoC,eAAe;IAEhE;GACG;GACJ,eAAe,qBACf,oBAAC,iBAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;GAED,eAAe,wBACf,oBAAC,iBAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;EAEE;;AAEP"}
1
+ {"version":3,"file":"progressive-blur-scroll-container.js","names":[],"sources":["../../src/components/progressive-blur-scroll-container.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useRef, useState, type ReactNode } from 'react';\n\nimport { cn } from '../lib/utils';\n\nimport { ProgressiveBlur, type ProgressiveBlurProps } from './progressive-blur';\n\nexport interface ProgressiveBlurScrollContainerProps {\n\tchildren: ReactNode;\n\tclassName?: string;\n\t/** Class name for the scrollable inner div */\n\tscrollClassName?: string;\n\t/** Minimum number of items to show blur (prevents blur on sparse content) */\n\tminItemsForBlur?: number;\n\t/** Current item count for the `minItemsForBlur` check. Leave it out and the threshold is ignored. */\n\titemCount?: number;\n\t/** Props to pass to ProgressiveBlur */\n\tblurProps?: Partial<ProgressiveBlurProps>;\n\t/** Whether to show blur (in addition to overflow check) */\n\tshowBlur?: boolean;\n}\n\n/**\n * A scrollable container that shows progressive blur effects at the top and bottom\n * when content overflows. Top blur appears when scrolled, bottom blur when more content below.\n */\nexport function ProgressiveBlurScrollContainer({\n\tchildren,\n\tclassName,\n\tscrollClassName,\n\tminItemsForBlur = 0,\n\titemCount,\n\tblurProps,\n\tshowBlur = true,\n}: ProgressiveBlurScrollContainerProps) {\n\tconst [hasOverflow, setHasOverflow] = useState(false);\n\tconst [isScrolledFromTop, setIsScrolledFromTop] = useState(false);\n\tconst [isScrolledFromBottom, setIsScrolledFromBottom] = useState(true);\n\tconst scrollRef = useRef<HTMLDivElement>(null);\n\n\tconst checkScrollPosition = useCallback(() => {\n\t\tif (scrollRef.current) {\n\t\t\tconst el = scrollRef.current;\n\t\t\tconst scrollTop = el.scrollTop;\n\t\t\tconst scrollHeight = el.scrollHeight;\n\t\t\tconst clientHeight = el.clientHeight;\n\n\t\t\t// Show top blur if scrolled more than 10px from top\n\t\t\tsetIsScrolledFromTop(scrollTop > 10);\n\t\t\t// Show bottom blur if not scrolled to bottom (with 10px threshold)\n\t\t\tsetIsScrolledFromBottom(scrollTop + clientHeight < scrollHeight - 10);\n\t\t}\n\t}, []);\n\n\tuseEffect(() => {\n\t\tconst checkOverflow = () => {\n\t\t\tif (scrollRef.current) {\n\t\t\t\tconst el = scrollRef.current;\n\t\t\t\tsetHasOverflow(el.scrollHeight > el.clientHeight);\n\t\t\t\tcheckScrollPosition();\n\t\t\t}\n\t\t};\n\t\tcheckOverflow();\n\t\twindow.addEventListener('resize', checkOverflow);\n\t\treturn () => window.removeEventListener('resize', checkOverflow);\n\t}, [children, checkScrollPosition]);\n\n\t// Listen to scroll events\n\tuseEffect(() => {\n\t\tconst el = scrollRef.current;\n\t\tif (!el) return;\n\n\t\tel.addEventListener('scroll', checkScrollPosition, { passive: true });\n\t\treturn () => el.removeEventListener('scroll', checkScrollPosition);\n\t}, [checkScrollPosition]);\n\n\tconst canShowBlur = showBlur && hasOverflow && (minItemsForBlur === 0 || itemCount === undefined || itemCount > minItemsForBlur);\n\n\treturn (\n\t\t<div className={cn('relative min-h-0 flex-1', className)}>\n\t\t\t<div\n\t\t\t\tref={scrollRef}\n\t\t\t\tclassName={cn('absolute inset-0 overflow-y-auto', scrollClassName)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t\t{canShowBlur && isScrolledFromTop && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='top'\n\t\t\t\t\theight='48px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.2}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{canShowBlur && isScrolledFromBottom && (\n\t\t\t\t<ProgressiveBlur\n\t\t\t\t\tposition='bottom'\n\t\t\t\t\theight='64px'\n\t\t\t\t\tsurface='background'\n\t\t\t\t\tintensity={0.25}\n\t\t\t\t\t{...blurProps}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;AA2BA,SAAgB,+BAA+B,EAC9C,UACA,WACA,iBACA,kBAAkB,GAClB,WACA,WACA,WAAW,QAC4B;CACvC,MAAM,CAAC,aAAa,kBAAkB,SAAS,KAAK;CACpD,MAAM,CAAC,mBAAmB,wBAAwB,SAAS,KAAK;CAChE,MAAM,CAAC,sBAAsB,2BAA2B,SAAS,IAAI;CACrE,MAAM,YAAY,OAAuB,IAAI;CAE7C,MAAM,sBAAsB,kBAAkB;EAC7C,IAAI,UAAU,SAAS;GACtB,MAAM,KAAK,UAAU;GACrB,MAAM,YAAY,GAAG;GACrB,MAAM,eAAe,GAAG;GACxB,MAAM,eAAe,GAAG;GAGxB,qBAAqB,YAAY,EAAE;GAEnC,wBAAwB,YAAY,eAAe,eAAe,EAAE;EACrE;CACD,GAAG,CAAC,CAAC;CAEL,gBAAgB;EACf,MAAM,sBAAsB;GAC3B,IAAI,UAAU,SAAS;IACtB,MAAM,KAAK,UAAU;IACrB,eAAe,GAAG,eAAe,GAAG,YAAY;IAChD,oBAAoB;GACrB;EACD;EACA,cAAc;EACd,OAAO,iBAAiB,UAAU,aAAa;EAC/C,aAAa,OAAO,oBAAoB,UAAU,aAAa;CAChE,GAAG,CAAC,UAAU,mBAAmB,CAAC;CAGlC,gBAAgB;EACf,MAAM,KAAK,UAAU;EACrB,IAAI,CAAC,IAAI;EAET,GAAG,iBAAiB,UAAU,qBAAqB,EAAE,SAAS,KAAK,CAAC;EACpE,aAAa,GAAG,oBAAoB,UAAU,mBAAmB;CAClE,GAAG,CAAC,mBAAmB,CAAC;CAExB,MAAM,cAAc,YAAY,gBAAgB,oBAAoB,KAAK,cAAc,UAAa,YAAY;CAEhH,OACC,qBAAC,OAAD;EAAK,WAAW,GAAG,2BAA2B,SAAS;YAAvD;GACC,oBAAC,OAAD;IACC,KAAK;IACL,WAAW,GAAG,oCAAoC,eAAe;IAEhE;GACG;GACJ,eAAe,qBACf,oBAAC,iBAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;GAED,eAAe,wBACf,oBAAC,iBAAD;IACC,UAAS;IACT,QAAO;IACP,SAAQ;IACR,WAAW;IACX,GAAI;GACJ;EAEE;;AAEP"}
@@ -12,6 +12,7 @@ function ProgressiveBlur({ className, height = "24%", position = "bottom", blurP
12
12
  const isBottom = position === "bottom";
13
13
  const isTop = position === "top";
14
14
  const clampedIntensity = Math.max(0, Math.min(1, intensity));
15
+ const radius = Math.max(0, blurPx);
15
16
  const surfaceVar = surface === "card" ? "--card" : surface === "sidebar" ? "--sidebar" : "--background";
16
17
  const mask = isBottom ? "linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)" : isTop ? "linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)" : "linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)";
17
18
  const overlayMask = isBottom ? `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)` : isTop ? `linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)` : `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 25%, rgba(0,0,0,1) 50%, rgba(0,0,0,${clampedIntensity}) 75%, rgba(0,0,0,0) 100%)`;
@@ -25,8 +26,8 @@ function ProgressiveBlur({ className, height = "24%", position = "bottom", blurP
25
26
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
26
27
  className: "absolute inset-0",
27
28
  style: {
28
- backdropFilter: `blur(${blurPx}px)`,
29
- WebkitBackdropFilter: `blur(${blurPx}px)`,
29
+ backdropFilter: `blur(${radius}px)`,
30
+ WebkitBackdropFilter: `blur(${radius}px)`,
30
31
  maskImage: mask,
31
32
  WebkitMaskImage: mask
32
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"progressive-blur.cjs","names":["cn"],"sources":["../../src/components/progressive-blur.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n\nimport { cn } from '../lib/utils';\n\nexport interface ProgressiveBlurProps {\n\tclassName?: string;\n\theight?: string;\n\tposition?: 'top' | 'bottom' | 'both';\n\t/** Strength of the blur kernel in pixels (simpler, fewer artifacts) */\n\tblurPx?: number;\n\tsurface?: 'background' | 'card' | 'sidebar';\n\tintensity?: number;\n\t/** Optional horizontal inset to avoid edge bleeding (e.g. '0.5rem') */\n\tinsetX?: string;\n}\n\nexport function ProgressiveBlur({\n\tclassName,\n\theight = '24%',\n\tposition = 'bottom',\n\tblurPx = 8,\n\tsurface = 'background',\n\tintensity = 0.3,\n\tinsetX = '0',\n}: ProgressiveBlurProps) {\n\tconst isBottom = position === 'bottom';\n\tconst isTop = position === 'top';\n\tconst clampedIntensity = Math.max(0, Math.min(1, intensity));\n\tconst surfaceVar = surface === 'card' ? '--card' : surface === 'sidebar' ? '--sidebar' : '--background';\n\n\t// Vertical-only blur layer with a smooth single gradient mask\n\tconst mask = isBottom\n\t\t? 'linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t: isTop\n\t\t\t? 'linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t\t: 'linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)';\n\n\tconst overlayMask = isBottom\n\t\t? `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t: isTop\n\t\t\t? `linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t\t: `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 25%, rgba(0,0,0,1) 50%, rgba(0,0,0,${clampedIntensity}) 75%, rgba(0,0,0,0) 100%)`;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t'pointer-events-none absolute inset-x-0 z-10 overflow-hidden',\n\t\t\t\tclassName,\n\t\t\t\tisTop ? 'top-0' : isBottom ? 'bottom-0' : 'inset-y-0',\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\theight: position === 'both' ? '100%' : height,\n\t\t\t\tleft: insetX,\n\t\t\t\tright: insetX,\n\t\t\t}}\n\t\t>\n\t\t\t{/* Backdrop blur with vertical mask only (no horizontal bleeding) */}\n\t\t\t<div\n\t\t\t\tclassName='absolute inset-0'\n\t\t\t\tstyle={{\n\t\t\t\t\tbackdropFilter: `blur(${blurPx}px)`,\n\t\t\t\t\tWebkitBackdropFilter: `blur(${blurPx}px)`,\n\t\t\t\t\tmaskImage: mask,\n\t\t\t\t\tWebkitMaskImage: mask,\n\t\t\t\t}}\n\t\t\t/>\n\n\t\t\t{/* Color overlay: gradient from transparent to solid background for seamless blending */}\n\t\t\t<div\n\t\t\t\tclassName={cn('absolute inset-0')}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: `var(${surfaceVar})`,\n\t\t\t\t\tmaskImage: overlayMask,\n\t\t\t\t\tWebkitMaskImage: overlayMask,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,gBAAgB,EAC/B,WACA,SAAS,OACT,WAAW,UACX,SAAS,GACT,UAAU,cACV,YAAY,IACZ,SAAS,OACe;CACxB,MAAM,WAAW,aAAa;CAC9B,MAAM,QAAQ,aAAa;CAC3B,MAAM,mBAAmB,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,SAAS,CAAC;CAC3D,MAAM,aAAa,YAAY,SAAS,WAAW,YAAY,YAAY,cAAc;CAGzF,MAAM,OAAO,WACV,wFACA,QACC,qFACA;CAEJ,MAAM,cAAc,WACjB,2DAA2D,iBAAiB,iDAC5E,QACC,wDAAwD,iBAAiB,iDACzE,2DAA2D,iBAAiB,uCAAuC,iBAAiB;CAExI,OACC,4CAAC,OAAD;EACC,WAAWA,iBACV,+DACA,WACA,QAAQ,UAAU,WAAW,aAAa,WAC3C;EACA,OAAO;GACN,QAAQ,aAAa,SAAS,SAAS;GACvC,MAAM;GACN,OAAO;EACR;YAVD,CAaC,2CAAC,OAAD;GACC,WAAU;GACV,OAAO;IACN,gBAAgB,QAAQ,OAAO;IAC/B,sBAAsB,QAAQ,OAAO;IACrC,WAAW;IACX,iBAAiB;GAClB;EACA,IAGD,2CAAC,OAAD;GACC,WAAWA,iBAAG,kBAAkB;GAChC,OAAO;IACN,iBAAiB,OAAO,WAAW;IACnC,WAAW;IACX,iBAAiB;GAClB;EACA,EACG;;AAEP"}
1
+ {"version":3,"file":"progressive-blur.cjs","names":["cn"],"sources":["../../src/components/progressive-blur.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n\nimport { cn } from '../lib/utils';\n\nexport interface ProgressiveBlurProps {\n\tclassName?: string;\n\theight?: string;\n\tposition?: 'top' | 'bottom' | 'both';\n\t/** Strength of the blur kernel in pixels (simpler, fewer artifacts) */\n\tblurPx?: number;\n\tsurface?: 'background' | 'card' | 'sidebar';\n\tintensity?: number;\n\t/** Optional horizontal inset to avoid edge bleeding (e.g. '0.5rem') */\n\tinsetX?: string;\n}\n\nexport function ProgressiveBlur({\n\tclassName,\n\theight = '24%',\n\tposition = 'bottom',\n\tblurPx = 8,\n\tsurface = 'background',\n\tintensity = 0.3,\n\tinsetX = '0',\n}: ProgressiveBlurProps) {\n\tconst isBottom = position === 'bottom';\n\tconst isTop = position === 'top';\n\tconst clampedIntensity = Math.max(0, Math.min(1, intensity));\n\t// A negative radius is invalid CSS and would silently turn the blur off.\n\tconst radius = Math.max(0, blurPx);\n\tconst surfaceVar = surface === 'card' ? '--card' : surface === 'sidebar' ? '--sidebar' : '--background';\n\n\t// Vertical-only blur layer with a smooth single gradient mask\n\tconst mask = isBottom\n\t\t? 'linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t: isTop\n\t\t\t? 'linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t\t: 'linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)';\n\n\tconst overlayMask = isBottom\n\t\t? `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t: isTop\n\t\t\t? `linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t\t: `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 25%, rgba(0,0,0,1) 50%, rgba(0,0,0,${clampedIntensity}) 75%, rgba(0,0,0,0) 100%)`;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t'pointer-events-none absolute inset-x-0 z-10 overflow-hidden',\n\t\t\t\tclassName,\n\t\t\t\tisTop ? 'top-0' : isBottom ? 'bottom-0' : 'inset-y-0',\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\theight: position === 'both' ? '100%' : height,\n\t\t\t\tleft: insetX,\n\t\t\t\tright: insetX,\n\t\t\t}}\n\t\t>\n\t\t\t{/* Backdrop blur with vertical mask only (no horizontal bleeding) */}\n\t\t\t<div\n\t\t\t\tclassName='absolute inset-0'\n\t\t\t\tstyle={{\n\t\t\t\t\tbackdropFilter: `blur(${radius}px)`,\n\t\t\t\t\tWebkitBackdropFilter: `blur(${radius}px)`,\n\t\t\t\t\tmaskImage: mask,\n\t\t\t\t\tWebkitMaskImage: mask,\n\t\t\t\t}}\n\t\t\t/>\n\n\t\t\t{/* Color overlay: gradient from transparent to solid background for seamless blending */}\n\t\t\t<div\n\t\t\t\tclassName={cn('absolute inset-0')}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: `var(${surfaceVar})`,\n\t\t\t\t\tmaskImage: overlayMask,\n\t\t\t\t\tWebkitMaskImage: overlayMask,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,gBAAgB,EAC/B,WACA,SAAS,OACT,WAAW,UACX,SAAS,GACT,UAAU,cACV,YAAY,IACZ,SAAS,OACe;CACxB,MAAM,WAAW,aAAa;CAC9B,MAAM,QAAQ,aAAa;CAC3B,MAAM,mBAAmB,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,SAAS,CAAC;CAE3D,MAAM,SAAS,KAAK,IAAI,GAAG,MAAM;CACjC,MAAM,aAAa,YAAY,SAAS,WAAW,YAAY,YAAY,cAAc;CAGzF,MAAM,OAAO,WACV,wFACA,QACC,qFACA;CAEJ,MAAM,cAAc,WACjB,2DAA2D,iBAAiB,iDAC5E,QACC,wDAAwD,iBAAiB,iDACzE,2DAA2D,iBAAiB,uCAAuC,iBAAiB;CAExI,OACC,4CAAC,OAAD;EACC,WAAWA,iBACV,+DACA,WACA,QAAQ,UAAU,WAAW,aAAa,WAC3C;EACA,OAAO;GACN,QAAQ,aAAa,SAAS,SAAS;GACvC,MAAM;GACN,OAAO;EACR;YAVD,CAaC,2CAAC,OAAD;GACC,WAAU;GACV,OAAO;IACN,gBAAgB,QAAQ,OAAO;IAC/B,sBAAsB,QAAQ,OAAO;IACrC,WAAW;IACX,iBAAiB;GAClB;EACA,IAGD,2CAAC,OAAD;GACC,WAAWA,iBAAG,kBAAkB;GAChC,OAAO;IACN,iBAAiB,OAAO,WAAW;IACnC,WAAW;IACX,iBAAiB;GAClB;EACA,EACG;;AAEP"}
@@ -9,6 +9,7 @@ function ProgressiveBlur({ className, height = "24%", position = "bottom", blurP
9
9
  const isBottom = position === "bottom";
10
10
  const isTop = position === "top";
11
11
  const clampedIntensity = Math.max(0, Math.min(1, intensity));
12
+ const radius = Math.max(0, blurPx);
12
13
  const surfaceVar = surface === "card" ? "--card" : surface === "sidebar" ? "--sidebar" : "--background";
13
14
  const mask = isBottom ? "linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)" : isTop ? "linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)" : "linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)";
14
15
  const overlayMask = isBottom ? `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)` : isTop ? `linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)` : `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 25%, rgba(0,0,0,1) 50%, rgba(0,0,0,${clampedIntensity}) 75%, rgba(0,0,0,0) 100%)`;
@@ -22,8 +23,8 @@ function ProgressiveBlur({ className, height = "24%", position = "bottom", blurP
22
23
  children: [/* @__PURE__ */ jsx("div", {
23
24
  className: "absolute inset-0",
24
25
  style: {
25
- backdropFilter: `blur(${blurPx}px)`,
26
- WebkitBackdropFilter: `blur(${blurPx}px)`,
26
+ backdropFilter: `blur(${radius}px)`,
27
+ WebkitBackdropFilter: `blur(${radius}px)`,
27
28
  maskImage: mask,
28
29
  WebkitMaskImage: mask
29
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"progressive-blur.js","names":[],"sources":["../../src/components/progressive-blur.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n\nimport { cn } from '../lib/utils';\n\nexport interface ProgressiveBlurProps {\n\tclassName?: string;\n\theight?: string;\n\tposition?: 'top' | 'bottom' | 'both';\n\t/** Strength of the blur kernel in pixels (simpler, fewer artifacts) */\n\tblurPx?: number;\n\tsurface?: 'background' | 'card' | 'sidebar';\n\tintensity?: number;\n\t/** Optional horizontal inset to avoid edge bleeding (e.g. '0.5rem') */\n\tinsetX?: string;\n}\n\nexport function ProgressiveBlur({\n\tclassName,\n\theight = '24%',\n\tposition = 'bottom',\n\tblurPx = 8,\n\tsurface = 'background',\n\tintensity = 0.3,\n\tinsetX = '0',\n}: ProgressiveBlurProps) {\n\tconst isBottom = position === 'bottom';\n\tconst isTop = position === 'top';\n\tconst clampedIntensity = Math.max(0, Math.min(1, intensity));\n\tconst surfaceVar = surface === 'card' ? '--card' : surface === 'sidebar' ? '--sidebar' : '--background';\n\n\t// Vertical-only blur layer with a smooth single gradient mask\n\tconst mask = isBottom\n\t\t? 'linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t: isTop\n\t\t\t? 'linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t\t: 'linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)';\n\n\tconst overlayMask = isBottom\n\t\t? `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t: isTop\n\t\t\t? `linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t\t: `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 25%, rgba(0,0,0,1) 50%, rgba(0,0,0,${clampedIntensity}) 75%, rgba(0,0,0,0) 100%)`;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t'pointer-events-none absolute inset-x-0 z-10 overflow-hidden',\n\t\t\t\tclassName,\n\t\t\t\tisTop ? 'top-0' : isBottom ? 'bottom-0' : 'inset-y-0',\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\theight: position === 'both' ? '100%' : height,\n\t\t\t\tleft: insetX,\n\t\t\t\tright: insetX,\n\t\t\t}}\n\t\t>\n\t\t\t{/* Backdrop blur with vertical mask only (no horizontal bleeding) */}\n\t\t\t<div\n\t\t\t\tclassName='absolute inset-0'\n\t\t\t\tstyle={{\n\t\t\t\t\tbackdropFilter: `blur(${blurPx}px)`,\n\t\t\t\t\tWebkitBackdropFilter: `blur(${blurPx}px)`,\n\t\t\t\t\tmaskImage: mask,\n\t\t\t\t\tWebkitMaskImage: mask,\n\t\t\t\t}}\n\t\t\t/>\n\n\t\t\t{/* Color overlay: gradient from transparent to solid background for seamless blending */}\n\t\t\t<div\n\t\t\t\tclassName={cn('absolute inset-0')}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: `var(${surfaceVar})`,\n\t\t\t\t\tmaskImage: overlayMask,\n\t\t\t\t\tWebkitMaskImage: overlayMask,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,gBAAgB,EAC/B,WACA,SAAS,OACT,WAAW,UACX,SAAS,GACT,UAAU,cACV,YAAY,IACZ,SAAS,OACe;CACxB,MAAM,WAAW,aAAa;CAC9B,MAAM,QAAQ,aAAa;CAC3B,MAAM,mBAAmB,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,SAAS,CAAC;CAC3D,MAAM,aAAa,YAAY,SAAS,WAAW,YAAY,YAAY,cAAc;CAGzF,MAAM,OAAO,WACV,wFACA,QACC,qFACA;CAEJ,MAAM,cAAc,WACjB,2DAA2D,iBAAiB,iDAC5E,QACC,wDAAwD,iBAAiB,iDACzE,2DAA2D,iBAAiB,uCAAuC,iBAAiB;CAExI,OACC,qBAAC,OAAD;EACC,WAAW,GACV,+DACA,WACA,QAAQ,UAAU,WAAW,aAAa,WAC3C;EACA,OAAO;GACN,QAAQ,aAAa,SAAS,SAAS;GACvC,MAAM;GACN,OAAO;EACR;YAVD,CAaC,oBAAC,OAAD;GACC,WAAU;GACV,OAAO;IACN,gBAAgB,QAAQ,OAAO;IAC/B,sBAAsB,QAAQ,OAAO;IACrC,WAAW;IACX,iBAAiB;GAClB;EACA,IAGD,oBAAC,OAAD;GACC,WAAW,GAAG,kBAAkB;GAChC,OAAO;IACN,iBAAiB,OAAO,WAAW;IACnC,WAAW;IACX,iBAAiB;GAClB;EACA,EACG;;AAEP"}
1
+ {"version":3,"file":"progressive-blur.js","names":[],"sources":["../../src/components/progressive-blur.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n\nimport { cn } from '../lib/utils';\n\nexport interface ProgressiveBlurProps {\n\tclassName?: string;\n\theight?: string;\n\tposition?: 'top' | 'bottom' | 'both';\n\t/** Strength of the blur kernel in pixels (simpler, fewer artifacts) */\n\tblurPx?: number;\n\tsurface?: 'background' | 'card' | 'sidebar';\n\tintensity?: number;\n\t/** Optional horizontal inset to avoid edge bleeding (e.g. '0.5rem') */\n\tinsetX?: string;\n}\n\nexport function ProgressiveBlur({\n\tclassName,\n\theight = '24%',\n\tposition = 'bottom',\n\tblurPx = 8,\n\tsurface = 'background',\n\tintensity = 0.3,\n\tinsetX = '0',\n}: ProgressiveBlurProps) {\n\tconst isBottom = position === 'bottom';\n\tconst isTop = position === 'top';\n\tconst clampedIntensity = Math.max(0, Math.min(1, intensity));\n\t// A negative radius is invalid CSS and would silently turn the blur off.\n\tconst radius = Math.max(0, blurPx);\n\tconst surfaceVar = surface === 'card' ? '--card' : surface === 'sidebar' ? '--sidebar' : '--background';\n\n\t// Vertical-only blur layer with a smooth single gradient mask\n\tconst mask = isBottom\n\t\t? 'linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t: isTop\n\t\t\t? 'linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 100%)'\n\t\t\t: 'linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%)';\n\n\tconst overlayMask = isBottom\n\t\t? `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t: isTop\n\t\t\t? `linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 55%, rgba(0,0,0,1) 85%, rgba(0,0,0,1) 100%)`\n\t\t\t: `linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,${clampedIntensity}) 25%, rgba(0,0,0,1) 50%, rgba(0,0,0,${clampedIntensity}) 75%, rgba(0,0,0,0) 100%)`;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t'pointer-events-none absolute inset-x-0 z-10 overflow-hidden',\n\t\t\t\tclassName,\n\t\t\t\tisTop ? 'top-0' : isBottom ? 'bottom-0' : 'inset-y-0',\n\t\t\t)}\n\t\t\tstyle={{\n\t\t\t\theight: position === 'both' ? '100%' : height,\n\t\t\t\tleft: insetX,\n\t\t\t\tright: insetX,\n\t\t\t}}\n\t\t>\n\t\t\t{/* Backdrop blur with vertical mask only (no horizontal bleeding) */}\n\t\t\t<div\n\t\t\t\tclassName='absolute inset-0'\n\t\t\t\tstyle={{\n\t\t\t\t\tbackdropFilter: `blur(${radius}px)`,\n\t\t\t\t\tWebkitBackdropFilter: `blur(${radius}px)`,\n\t\t\t\t\tmaskImage: mask,\n\t\t\t\t\tWebkitMaskImage: mask,\n\t\t\t\t}}\n\t\t\t/>\n\n\t\t\t{/* Color overlay: gradient from transparent to solid background for seamless blending */}\n\t\t\t<div\n\t\t\t\tclassName={cn('absolute inset-0')}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: `var(${surfaceVar})`,\n\t\t\t\t\tmaskImage: overlayMask,\n\t\t\t\t\tWebkitMaskImage: overlayMask,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,gBAAgB,EAC/B,WACA,SAAS,OACT,WAAW,UACX,SAAS,GACT,UAAU,cACV,YAAY,IACZ,SAAS,OACe;CACxB,MAAM,WAAW,aAAa;CAC9B,MAAM,QAAQ,aAAa;CAC3B,MAAM,mBAAmB,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,SAAS,CAAC;CAE3D,MAAM,SAAS,KAAK,IAAI,GAAG,MAAM;CACjC,MAAM,aAAa,YAAY,SAAS,WAAW,YAAY,YAAY,cAAc;CAGzF,MAAM,OAAO,WACV,wFACA,QACC,qFACA;CAEJ,MAAM,cAAc,WACjB,2DAA2D,iBAAiB,iDAC5E,QACC,wDAAwD,iBAAiB,iDACzE,2DAA2D,iBAAiB,uCAAuC,iBAAiB;CAExI,OACC,qBAAC,OAAD;EACC,WAAW,GACV,+DACA,WACA,QAAQ,UAAU,WAAW,aAAa,WAC3C;EACA,OAAO;GACN,QAAQ,aAAa,SAAS,SAAS;GACvC,MAAM;GACN,OAAO;EACR;YAVD,CAaC,oBAAC,OAAD;GACC,WAAU;GACV,OAAO;IACN,gBAAgB,QAAQ,OAAO;IAC/B,sBAAsB,QAAQ,OAAO;IACrC,WAAW;IACX,iBAAiB;GAClB;EACA,IAGD,oBAAC,OAAD;GACC,WAAW,GAAG,kBAAkB;GAChC,OAAO;IACN,iBAAiB,OAAO,WAAW;IACnC,WAAW;IACX,iBAAiB;GAClB;EACA,EACG;;AAEP"}
@@ -16,7 +16,7 @@ function RadioGroup({ className, ...props }) {
16
16
  }
17
17
  function Radio({ className, ...props }) {
18
18
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_radio.Radio.Root, {
19
- className: require_utils.cn("relative inline-flex size-10 shrink-0 items-center justify-center outline-none transition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none pointer-coarse:size-11 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-2 focus-visible:[&_[data-slot=radio-control]]:ring-ring focus-visible:[&_[data-slot=radio-control]]:ring-offset-1 focus-visible:[&_[data-slot=radio-control]]:ring-offset-background focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24", className),
19
+ className: require_utils.cn("relative inline-flex size-4.5 shrink-0 items-center justify-center outline-none transition-transform duration-(--duration-moderate) ease-out before:absolute before:-inset-2 before:content-[''] motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none sm:size-4 pointer-coarse:before:-inset-3 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-[3px] focus-visible:[&_[data-slot=radio-control]]:ring-ring/50 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24", className),
20
20
  "data-slot": "radio",
21
21
  ...props,
22
22
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -25,7 +25,7 @@ function Radio({ className, ...props }) {
25
25
  "data-slot": "radio-control"
26
26
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_radio.Radio.Indicator, {
27
27
  keepMounted: true,
28
- className: "absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5",
28
+ className: "absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-(--duration-slow) ease-out before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5",
29
29
  "data-slot": "radio-indicator"
30
30
  })]
31
31
  });
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.cjs","names":["RadioGroupPrimitive","cn","RadioPrimitive"],"sources":["../../src/components/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport { Radio as RadioPrimitive } from '@base-ui/react/radio';\nimport { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';\n\nimport { cn } from '../lib/utils';\n\ntype RadioGroupProps = RadioGroupPrimitive.Props;\ntype RadioProps = RadioPrimitive.Root.Props;\n\nfunction RadioGroup({ className, ...props }: RadioGroupProps) {\n\treturn (\n\t\t<RadioGroupPrimitive className={cn('flex flex-col gap-3', className)} data-slot=\"radio-group\" {...props} />\n\t);\n}\n\nfunction Radio({ className, ...props }: RadioProps) {\n\treturn (\n\t\t<RadioPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t'relative inline-flex size-10 shrink-0 items-center justify-center outline-none transition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none pointer-coarse:size-11 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-2 focus-visible:[&_[data-slot=radio-control]]:ring-ring focus-visible:[&_[data-slot=radio-control]]:ring-offset-1 focus-visible:[&_[data-slot=radio-control]]:ring-offset-background focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"radio\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"pointer-events-none absolute size-4.5 rounded-full border border-input bg-background bg-clip-padding shadow-xs sm:size-4 dark:bg-input/32 dark:bg-clip-border\"\n\t\t\t\tdata-slot=\"radio-control\"\n\t\t\t/>\n\t\t\t<RadioPrimitive.Indicator\n\t\t\t\tkeepMounted\n\t\t\t\tclassName=\"absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5\"\n\t\t\t\tdata-slot=\"radio-indicator\"\n\t\t\t/>\n\t\t</RadioPrimitive.Root>\n\t);\n}\n\nexport { RadioGroup, Radio, Radio as RadioGroupItem };\nexport type { RadioGroupProps, RadioProps };\n"],"mappings":";;;;;;;;;AAUA,SAAS,WAAW,EAAE,WAAW,GAAG,SAA0B;CAC7D,OACC,2CAACA,uCAAD;EAAqB,WAAWC,iBAAG,uBAAuB,SAAS;EAAG,aAAU;EAAc,GAAI;CAAQ;AAE5G;AAEA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAqB;CACnD,OACC,4CAACC,2BAAe,MAAhB;EACC,WAAWD,iBACV,qyBACA,SACD;EACA,aAAU;EACV,GAAI;YANL,CAQC,2CAAC,QAAD;GACC,eAAY;GACZ,WAAU;GACV,aAAU;EACV,IACD,2CAACC,2BAAe,WAAhB;GACC;GACA,WAAU;GACV,aAAU;EACV,EACmB;;AAEvB"}
1
+ {"version":3,"file":"radio-group.cjs","names":["RadioGroupPrimitive","cn","RadioPrimitive"],"sources":["../../src/components/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport { Radio as RadioPrimitive } from '@base-ui/react/radio';\nimport { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';\n\nimport { cn } from '../lib/utils';\n\ntype RadioGroupProps = RadioGroupPrimitive.Props;\ntype RadioProps = RadioPrimitive.Root.Props;\n\nfunction RadioGroup({ className, ...props }: RadioGroupProps) {\n\treturn (\n\t\t<RadioGroupPrimitive className={cn('flex flex-col gap-3', className)} data-slot=\"radio-group\" {...props} />\n\t);\n}\n\nfunction Radio({ className, ...props }: RadioProps) {\n\treturn (\n\t\t<RadioPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t'relative inline-flex size-4.5 shrink-0 items-center justify-center outline-none transition-transform duration-(--duration-moderate) ease-out before:absolute before:-inset-2 before:content-[\\'\\'] motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none sm:size-4 pointer-coarse:before:-inset-3 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-[3px] focus-visible:[&_[data-slot=radio-control]]:ring-ring/50 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"radio\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"pointer-events-none absolute size-4.5 rounded-full border border-input bg-background bg-clip-padding shadow-xs sm:size-4 dark:bg-input/32 dark:bg-clip-border\"\n\t\t\t\tdata-slot=\"radio-control\"\n\t\t\t/>\n\t\t\t<RadioPrimitive.Indicator\n\t\t\t\tkeepMounted\n\t\t\t\tclassName=\"absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-(--duration-slow) ease-out before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5\"\n\t\t\t\tdata-slot=\"radio-indicator\"\n\t\t\t/>\n\t\t</RadioPrimitive.Root>\n\t);\n}\n\nexport { RadioGroup, Radio, Radio as RadioGroupItem };\nexport type { RadioGroupProps, RadioProps };\n"],"mappings":";;;;;;;;;AAUA,SAAS,WAAW,EAAE,WAAW,GAAG,SAA0B;CAC7D,OACC,2CAACA,uCAAD;EAAqB,WAAWC,iBAAG,uBAAuB,SAAS;EAAG,aAAU;EAAc,GAAI;CAAQ;AAE5G;AAEA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAqB;CACnD,OACC,4CAACC,2BAAe,MAAhB;EACC,WAAWD,iBACV,wwBACA,SACD;EACA,aAAU;EACV,GAAI;YANL,CAQC,2CAAC,QAAD;GACC,eAAY;GACZ,WAAU;GACV,aAAU;EACV,IACD,2CAACC,2BAAe,WAAhB;GACC;GACA,WAAU;GACV,aAAU;EACV,EACmB;;AAEvB"}
@@ -15,7 +15,7 @@ function RadioGroup({ className, ...props }) {
15
15
  }
16
16
  function Radio({ className, ...props }) {
17
17
  return /* @__PURE__ */ jsxs(Radio$1.Root, {
18
- className: cn("relative inline-flex size-10 shrink-0 items-center justify-center outline-none transition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none pointer-coarse:size-11 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-2 focus-visible:[&_[data-slot=radio-control]]:ring-ring focus-visible:[&_[data-slot=radio-control]]:ring-offset-1 focus-visible:[&_[data-slot=radio-control]]:ring-offset-background focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24", className),
18
+ className: cn("relative inline-flex size-4.5 shrink-0 items-center justify-center outline-none transition-transform duration-(--duration-moderate) ease-out before:absolute before:-inset-2 before:content-[''] motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none sm:size-4 pointer-coarse:before:-inset-3 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-[3px] focus-visible:[&_[data-slot=radio-control]]:ring-ring/50 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24", className),
19
19
  "data-slot": "radio",
20
20
  ...props,
21
21
  children: [/* @__PURE__ */ jsx("span", {
@@ -24,7 +24,7 @@ function Radio({ className, ...props }) {
24
24
  "data-slot": "radio-control"
25
25
  }), /* @__PURE__ */ jsx(Radio$1.Indicator, {
26
26
  keepMounted: true,
27
- className: "absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5",
27
+ className: "absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-(--duration-slow) ease-out before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5",
28
28
  "data-slot": "radio-indicator"
29
29
  })]
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","names":["RadioGroupPrimitive","RadioPrimitive"],"sources":["../../src/components/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport { Radio as RadioPrimitive } from '@base-ui/react/radio';\nimport { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';\n\nimport { cn } from '../lib/utils';\n\ntype RadioGroupProps = RadioGroupPrimitive.Props;\ntype RadioProps = RadioPrimitive.Root.Props;\n\nfunction RadioGroup({ className, ...props }: RadioGroupProps) {\n\treturn (\n\t\t<RadioGroupPrimitive className={cn('flex flex-col gap-3', className)} data-slot=\"radio-group\" {...props} />\n\t);\n}\n\nfunction Radio({ className, ...props }: RadioProps) {\n\treturn (\n\t\t<RadioPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t'relative inline-flex size-10 shrink-0 items-center justify-center outline-none transition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none pointer-coarse:size-11 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-2 focus-visible:[&_[data-slot=radio-control]]:ring-ring focus-visible:[&_[data-slot=radio-control]]:ring-offset-1 focus-visible:[&_[data-slot=radio-control]]:ring-offset-background focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"radio\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"pointer-events-none absolute size-4.5 rounded-full border border-input bg-background bg-clip-padding shadow-xs sm:size-4 dark:bg-input/32 dark:bg-clip-border\"\n\t\t\t\tdata-slot=\"radio-control\"\n\t\t\t/>\n\t\t\t<RadioPrimitive.Indicator\n\t\t\t\tkeepMounted\n\t\t\t\tclassName=\"absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5\"\n\t\t\t\tdata-slot=\"radio-indicator\"\n\t\t\t/>\n\t\t</RadioPrimitive.Root>\n\t);\n}\n\nexport { RadioGroup, Radio, Radio as RadioGroupItem };\nexport type { RadioGroupProps, RadioProps };\n"],"mappings":";;;;;;;;AAUA,SAAS,WAAW,EAAE,WAAW,GAAG,SAA0B;CAC7D,OACC,oBAACA,cAAD;EAAqB,WAAW,GAAG,uBAAuB,SAAS;EAAG,aAAU;EAAc,GAAI;CAAQ;AAE5G;AAEA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAqB;CACnD,OACC,qBAACC,QAAe,MAAhB;EACC,WAAW,GACV,qyBACA,SACD;EACA,aAAU;EACV,GAAI;YANL,CAQC,oBAAC,QAAD;GACC,eAAY;GACZ,WAAU;GACV,aAAU;EACV,IACD,oBAACA,QAAe,WAAhB;GACC;GACA,WAAU;GACV,aAAU;EACV,EACmB;;AAEvB"}
1
+ {"version":3,"file":"radio-group.js","names":["RadioGroupPrimitive","RadioPrimitive"],"sources":["../../src/components/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport { Radio as RadioPrimitive } from '@base-ui/react/radio';\nimport { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';\n\nimport { cn } from '../lib/utils';\n\ntype RadioGroupProps = RadioGroupPrimitive.Props;\ntype RadioProps = RadioPrimitive.Root.Props;\n\nfunction RadioGroup({ className, ...props }: RadioGroupProps) {\n\treturn (\n\t\t<RadioGroupPrimitive className={cn('flex flex-col gap-3', className)} data-slot=\"radio-group\" {...props} />\n\t);\n}\n\nfunction Radio({ className, ...props }: RadioProps) {\n\treturn (\n\t\t<RadioPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t'relative inline-flex size-4.5 shrink-0 items-center justify-center outline-none transition-transform duration-(--duration-moderate) ease-out before:absolute before:-inset-2 before:content-[\\'\\'] motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none sm:size-4 pointer-coarse:before:-inset-3 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=radio-control]]:border-destructive/36 focus-visible:[&_[data-slot=radio-control]]:ring-[3px] focus-visible:[&_[data-slot=radio-control]]:ring-ring/50 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=radio-control]]:ring-destructive/24',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"radio\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"pointer-events-none absolute size-4.5 rounded-full border border-input bg-background bg-clip-padding shadow-xs sm:size-4 dark:bg-input/32 dark:bg-clip-border\"\n\t\t\t\tdata-slot=\"radio-control\"\n\t\t\t/>\n\t\t\t<RadioPrimitive.Indicator\n\t\t\t\tkeepMounted\n\t\t\t\tclassName=\"absolute flex size-4.5 items-center justify-center rounded-full transition-[opacity,scale,filter] duration-(--duration-slow) ease-out before:size-2 before:rounded-full before:bg-primary-foreground data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary motion-reduce:transition-none sm:size-4 sm:before:size-1.5\"\n\t\t\t\tdata-slot=\"radio-indicator\"\n\t\t\t/>\n\t\t</RadioPrimitive.Root>\n\t);\n}\n\nexport { RadioGroup, Radio, Radio as RadioGroupItem };\nexport type { RadioGroupProps, RadioProps };\n"],"mappings":";;;;;;;;AAUA,SAAS,WAAW,EAAE,WAAW,GAAG,SAA0B;CAC7D,OACC,oBAACA,cAAD;EAAqB,WAAW,GAAG,uBAAuB,SAAS;EAAG,aAAU;EAAc,GAAI;CAAQ;AAE5G;AAEA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAqB;CACnD,OACC,qBAACC,QAAe,MAAhB;EACC,WAAW,GACV,wwBACA,SACD;EACA,aAAU;EACV,GAAI;YANL,CAQC,oBAAC,QAAD;GACC,eAAY;GACZ,WAAU;GACV,aAAU;EACV,IACD,oBAACA,QAAe,WAAhB;GACC;GACA,WAAU;GACV,aAAU;EACV,EACmB;;AAEvB"}
@@ -3,6 +3,6 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
  require('./checkbox.cjs');
5
5
  require('./input-group.cjs');
6
- const require_record_picker = require('../record-picker-Bz4FApxD.cjs');
6
+ const require_record_picker = require('../record-picker-BQ1-Vx0g.cjs');
7
7
 
8
8
  exports.RecordPicker = require_record_picker.RecordPicker;
@@ -2,6 +2,6 @@
2
2
 
3
3
  import "./checkbox.js";
4
4
  import "./input-group.js";
5
- import { t as RecordPicker } from "../record-picker-BbxngCeV.js";
5
+ import { t as RecordPicker } from "../record-picker-DSRo4RXV.js";
6
6
 
7
7
  export { RecordPicker };
@@ -28,10 +28,10 @@ function ResizableHandle({ withHandle, className, ...props }) {
28
28
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_resizable_panels.PanelResizeHandle, {
29
29
  "data-slot": "resizable-handle",
30
30
  className: require_utils.cn(`bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0
31
- after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1
31
+ after:left-1/2 after:w-2 after:-translate-x-1/2 pointer-coarse:after:w-6 focus-visible:ring-[3px] focus-visible:ring-ring/50
32
32
  focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px
33
33
  data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0
34
- data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full
34
+ data-[panel-group-direction=vertical]:after:h-2 data-[panel-group-direction=vertical]:pointer-coarse:after:h-6 data-[panel-group-direction=vertical]:after:w-full
35
35
  data-[panel-group-direction=vertical]:after:translate-x-0
36
36
  data-[panel-group-direction=vertical]:after:-translate-y-1/2
37
37
  [&[data-panel-group-direction=vertical]>div]:rotate-90`, className),
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.cjs","names":["ResizablePrimitive","cn","GripVerticalIcon"],"sources":["../../src/components/resizable.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { GripVerticalIcon } from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '../lib/utils';\n\nfunction ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {\n\treturn (\n\t\t<ResizablePrimitive.PanelGroup\n\t\t\tdata-slot=\"resizable-panel-group\"\n\t\t\tclassName={cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>) {\n\treturn <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n\twithHandle,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n\twithHandle?: boolean;\n}) {\n\treturn (\n\t\t<ResizablePrimitive.PanelResizeHandle\n\t\t\tdata-slot=\"resizable-handle\"\n\t\t\tclassName={cn(\n\t\t\t\t`bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0\n\t\t\t\tafter:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1\n\t\t\t\tfocus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px\n\t\t\t\tdata-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0\n\t\t\t\tdata-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full\n\t\t\t\tdata-[panel-group-direction=vertical]:after:translate-x-0\n\t\t\t\tdata-[panel-group-direction=vertical]:after:-translate-y-1/2\n\t\t\t\t[&[data-panel-group-direction=vertical]>div]:rotate-90`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{withHandle && (\n\t\t\t\t<div className='bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border'>\n\t\t\t\t\t<GripVerticalIcon className='size-2.5' />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</ResizablePrimitive.PanelResizeHandle>\n\t);\n}\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"mappings":";;;;;;;;;;;;;AAQA,SAAS,oBAAoB,EAAE,WAAW,GAAG,SAAqE;CACjH,OACC,2CAACA,uBAAmB,YAApB;EACC,aAAU;EACV,WAAWC,iBAAG,qEAAqE,SAAS;EAC5F,GAAI;CACJ;AAEH;AAEA,SAAS,eAAe,EAAE,GAAG,SAAgE;CAC5F,OAAO,2CAACD,uBAAmB,OAApB;EAA0B,aAAU;EAAkB,GAAI;CAAQ;AAC1E;AAEA,SAAS,gBAAgB,EACxB,YACA,WACA,GAAG,SAGD;CACF,OACC,2CAACA,uBAAmB,mBAApB;EACC,aAAU;EACV,WAAWC,iBACV;;;;;;;6DAQA,SACD;EACA,GAAI;YAEH,cACA,2CAAC,OAAD;GAAK,WAAU;aACd,2CAACC,+BAAD,EAAkB,WAAU,WAAY;EACpC;CAE+B;AAExC"}
1
+ {"version":3,"file":"resizable.cjs","names":["ResizablePrimitive","cn","GripVerticalIcon"],"sources":["../../src/components/resizable.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { GripVerticalIcon } from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '../lib/utils';\n\nfunction ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {\n\treturn (\n\t\t<ResizablePrimitive.PanelGroup\n\t\t\tdata-slot=\"resizable-panel-group\"\n\t\t\tclassName={cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>) {\n\treturn <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n\twithHandle,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n\twithHandle?: boolean;\n}) {\n\treturn (\n\t\t<ResizablePrimitive.PanelResizeHandle\n\t\t\tdata-slot=\"resizable-handle\"\n\t\t\tclassName={cn(\n\t\t\t\t`bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0\n\t\t\t\tafter:left-1/2 after:w-2 after:-translate-x-1/2 pointer-coarse:after:w-6 focus-visible:ring-[3px] focus-visible:ring-ring/50\n\t\t\t\tfocus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px\n\t\t\t\tdata-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0\n\t\t\t\tdata-[panel-group-direction=vertical]:after:h-2 data-[panel-group-direction=vertical]:pointer-coarse:after:h-6 data-[panel-group-direction=vertical]:after:w-full\n\t\t\t\tdata-[panel-group-direction=vertical]:after:translate-x-0\n\t\t\t\tdata-[panel-group-direction=vertical]:after:-translate-y-1/2\n\t\t\t\t[&[data-panel-group-direction=vertical]>div]:rotate-90`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{withHandle && (\n\t\t\t\t<div className='bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border'>\n\t\t\t\t\t<GripVerticalIcon className='size-2.5' />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</ResizablePrimitive.PanelResizeHandle>\n\t);\n}\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"mappings":";;;;;;;;;;;;;AAQA,SAAS,oBAAoB,EAAE,WAAW,GAAG,SAAqE;CACjH,OACC,2CAACA,uBAAmB,YAApB;EACC,aAAU;EACV,WAAWC,iBAAG,qEAAqE,SAAS;EAC5F,GAAI;CACJ;AAEH;AAEA,SAAS,eAAe,EAAE,GAAG,SAAgE;CAC5F,OAAO,2CAACD,uBAAmB,OAApB;EAA0B,aAAU;EAAkB,GAAI;CAAQ;AAC1E;AAEA,SAAS,gBAAgB,EACxB,YACA,WACA,GAAG,SAGD;CACF,OACC,2CAACA,uBAAmB,mBAApB;EACC,aAAU;EACV,WAAWC,iBACV;;;;;;;6DAQA,SACD;EACA,GAAI;YAEH,cACA,2CAAC,OAAD;GAAK,WAAU;aACd,2CAACC,+BAAD,EAAkB,WAAU,WAAY;EACpC;CAE+B;AAExC"}
@@ -24,10 +24,10 @@ function ResizableHandle({ withHandle, className, ...props }) {
24
24
  return /* @__PURE__ */ jsx(ResizablePrimitive.PanelResizeHandle, {
25
25
  "data-slot": "resizable-handle",
26
26
  className: cn(`bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0
27
- after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1
27
+ after:left-1/2 after:w-2 after:-translate-x-1/2 pointer-coarse:after:w-6 focus-visible:ring-[3px] focus-visible:ring-ring/50
28
28
  focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px
29
29
  data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0
30
- data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full
30
+ data-[panel-group-direction=vertical]:after:h-2 data-[panel-group-direction=vertical]:pointer-coarse:after:h-6 data-[panel-group-direction=vertical]:after:w-full
31
31
  data-[panel-group-direction=vertical]:after:translate-x-0
32
32
  data-[panel-group-direction=vertical]:after:-translate-y-1/2
33
33
  [&[data-panel-group-direction=vertical]>div]:rotate-90`, className),