@jfrader/ui 0.5.1 → 0.7.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 (336) hide show
  1. package/README.md +28 -7
  2. package/dist/{accordion-DLul6vIl.js → accordion-D6myONB9.js} +36 -35
  3. package/dist/accordion.js +1 -1
  4. package/dist/activity-rings-Uszvwqdl.js +528 -0
  5. package/dist/activity-rings.js +2 -0
  6. package/dist/{alert-DS_einpy.js → alert-Bhj-qSMs.js} +15 -14
  7. package/dist/alert.js +1 -1
  8. package/dist/{announcement-bar-Dlbq5-9D.js → announcement-bar-B5J33QUh.js} +132 -131
  9. package/dist/announcement-bar.js +1 -1
  10. package/dist/{avatar-group-M1opAQEG.js → avatar-group-BlMLNw4J.js} +10 -9
  11. package/dist/avatar-group.js +1 -1
  12. package/dist/avatar-sPxDqFiZ.js +133 -0
  13. package/dist/avatar.js +1 -1
  14. package/dist/{badge-CjM5Agqk.js → badge-CfhTcA-Z.js} +10 -9
  15. package/dist/badge.js +1 -1
  16. package/dist/billing-toggle-CgC7yxxo.js +349 -0
  17. package/dist/billing-toggle.js +2 -0
  18. package/dist/{bottom-sheet-DjZOPq4k.js → bottom-sheet-BFQKO0Wo.js} +282 -264
  19. package/dist/bottom-sheet.js +1 -1
  20. package/dist/{breadcrumbs-BDK_LiwH.js → breadcrumbs-CG3akw-b.js} +19 -18
  21. package/dist/breadcrumbs.js +1 -1
  22. package/dist/{button-NLY0h6EJ.js → button-C6OV0C7J.js} +14 -13
  23. package/dist/button-group-B9wP2ddS.js +611 -0
  24. package/dist/button-group.js +2 -0
  25. package/dist/button.js +1 -1
  26. package/dist/calendar-Bg6D2sul.js +377 -0
  27. package/dist/calendar.js +1 -1
  28. package/dist/calendar.utils-azmB4Ej7.js +79 -0
  29. package/dist/card-C008OQCp.js +164 -0
  30. package/dist/card.js +1 -1
  31. package/dist/{carousel-B7OrvD6J.js → carousel-lTH4Foke.js} +13 -12
  32. package/dist/carousel.js +1 -1
  33. package/dist/chat-thread-DkB-WMWJ.js +864 -0
  34. package/dist/chat-thread.js +2 -0
  35. package/dist/{checkbox-DKSzExj2.js → checkbox-CClE61GV.js} +9 -8
  36. package/dist/checkbox.js +1 -1
  37. package/dist/{chip-group-DjQ0_6Y9.js → chip-group-BZUX9KPF.js} +17 -16
  38. package/dist/chip-group.js +1 -1
  39. package/dist/{choice-control-5kJkLXgv.js → choice-control-BsWOZPc9.js} +1 -1
  40. package/dist/{code-block-B5we2lZa.js → code-block-CYP89_6h.js} +35 -34
  41. package/dist/code-block.js +1 -1
  42. package/dist/{combobox-DFFqOBCi.js → combobox-D2Oc-co7.js} +21 -20
  43. package/dist/combobox.js +1 -1
  44. package/dist/command-palette-BrT1n9bb.js +394 -0
  45. package/dist/command-palette.js +1 -1
  46. package/dist/comment-thread-DXfqgRNI.js +772 -0
  47. package/dist/comment-thread.js +1 -1
  48. package/dist/{container-BOaSptJa.js → container-BxtwJSSD.js} +3 -2
  49. package/dist/container.js +1 -1
  50. package/dist/{context-menu-__1c2Dk9.js → context-menu-I4i0LRpm.js} +52 -51
  51. package/dist/context-menu.js +1 -1
  52. package/dist/{copy-button-DCSLcYS-.js → copy-button-C0p_qrgf.js} +4 -4
  53. package/dist/copy-button.js +1 -1
  54. package/dist/{countdown-Dp_TD1VP.js → countdown-EcpV6rXy.js} +18 -17
  55. package/dist/countdown.js +1 -1
  56. package/dist/css-BYJhdGh-.js +2 -0
  57. package/dist/{date-picker-BiPN7yeK.js → date-picker-D-bn-iHs.js} +14 -13
  58. package/dist/date-picker.js +1 -1
  59. package/dist/date-range-picker-rXcZsI1Y.js +589 -0
  60. package/dist/date-range-picker.js +1 -1
  61. package/dist/dialog-CR1xdkrC.js +222 -0
  62. package/dist/dialog.js +1 -1
  63. package/dist/{divider-Cp7aNbhM.js → divider-zOJzkcHh.js} +7 -6
  64. package/dist/divider.js +1 -1
  65. package/dist/drawer-CceaEhCr.js +590 -0
  66. package/dist/drawer.js +1 -1
  67. package/dist/emblem-DnXmpZCh.js +166 -0
  68. package/dist/emblem.js +2 -0
  69. package/dist/{empty-state-CDgrjPPf.js → empty-state-DO0ApylK.js} +2 -1
  70. package/dist/empty-state.js +1 -1
  71. package/dist/{expandable-card-rUATve0o.js → expandable-card-W97vjix9.js} +52 -51
  72. package/dist/expandable-card.js +1 -1
  73. package/dist/{expanding-search-BxOwtdwt.js → expanding-search-Bb2_YfNx.js} +16 -15
  74. package/dist/expanding-search.js +1 -1
  75. package/dist/{field-anatomy-COVdNpf5.js → field-anatomy-BDIP42MI.js} +2 -1
  76. package/dist/{file-dropzone-BuXm3Tea.js → file-dropzone-Bi5ikRIz.js} +14 -13
  77. package/dist/file-dropzone.js +1 -1
  78. package/dist/{filter-toolbar-Cy5Hqur-.js → filter-toolbar-QRnC4S_H.js} +33 -32
  79. package/dist/filter-toolbar.js +1 -1
  80. package/dist/{flex-Dh-_J5-U.js → flex-CS7eMRcK.js} +2 -2
  81. package/dist/flex.js +1 -1
  82. package/dist/game-card-Oeu74giK.js +194 -0
  83. package/dist/game-card.js +2 -0
  84. package/dist/{hold-to-confirm-DjB2EVjM.js → hold-to-confirm-CVBA0wNT.js} +18 -17
  85. package/dist/hold-to-confirm.js +1 -1
  86. package/dist/{hover-card-CoMJKg1g.js → hover-card-Dgu2CwMD.js} +20 -19
  87. package/dist/hover-card.js +1 -1
  88. package/dist/{icon-wrapper-stN8sD7R.js → icon-wrapper-C-zMD0uL.js} +1 -1
  89. package/dist/{image-compare-BxY8Ykzt.js → image-compare-Ln2UUqTU.js} +20 -19
  90. package/dist/image-compare.js +1 -1
  91. package/dist/in-view-title-BUZCMqge.js +225 -0
  92. package/dist/in-view-title.js +2 -0
  93. package/dist/index.js +102 -83
  94. package/dist/initials-DEdwNe9_.js +18 -0
  95. package/dist/{inline-edit-C0eeml65.js → inline-edit-D-pR2RPC.js} +22 -21
  96. package/dist/inline-edit.js +1 -1
  97. package/dist/{input-control-DmMuAuPS.js → input-control-B6HVBgwl.js} +1 -1
  98. package/dist/{json-viewer-DgWqyU75.js → json-viewer-Dro3WrjS.js} +31 -30
  99. package/dist/json-viewer.js +1 -1
  100. package/dist/{kbd-C3ACoMoE.js → kbd-BI_9qzYr.js} +2 -1
  101. package/dist/kbd.js +1 -1
  102. package/dist/keycap-keyboard-Cdx-OAS1.js +311 -0
  103. package/dist/keycap-keyboard.js +2 -0
  104. package/dist/{layout-style-Cbd1Vilw.js → layout-style-BE0gSqrH.js} +1 -1
  105. package/dist/lightbox-gallery-D0YaSTut.js +777 -0
  106. package/dist/lightbox-gallery.js +2 -0
  107. package/dist/link-unfurl-CReyIjyy.js +695 -0
  108. package/dist/link-unfurl.js +2 -0
  109. package/dist/{listbox-style-WX-RASp1.js → listbox-style-DNOxAulu.js} +1 -1
  110. package/dist/{loading-ring-B8-30Dl1.js → loading-ring-D0lGrK8z.js} +1 -1
  111. package/dist/locale-switcher-DTkySKsM.js +375 -0
  112. package/dist/locale-switcher.js +2 -0
  113. package/dist/{mention-input-sq61si9L.js → mention-input-BjjAbJCf.js} +6 -6
  114. package/dist/mention-input.js +1 -1
  115. package/dist/{menu-DDKgmK2F.js → menu-CVzpsyXn.js} +113 -96
  116. package/dist/menu.js +1 -1
  117. package/dist/{metric-card--lVTz5Wn.js → metric-card-BnFssTXj.js} +12 -11
  118. package/dist/metric-card.js +1 -1
  119. package/dist/{multi-select-DG1BCFX7.js → multi-select-B3puEVo0.js} +67 -66
  120. package/dist/multi-select.js +1 -1
  121. package/dist/{navigation-CC26JDr-.js → navigation-C_JD43gA.js} +41 -40
  122. package/dist/navigation.js +1 -1
  123. package/dist/next.js +65 -0
  124. package/dist/now-playing-DjVm1Phm.js +439 -0
  125. package/dist/now-playing.js +2 -0
  126. package/dist/overlay-motion-Cr77ihn2.js +90 -0
  127. package/dist/{overlay-portal-C4JZFq2M.js → overlay-portal-C9igMHnC.js} +1 -1
  128. package/dist/{pagination-BfkeWbmP.js → pagination-Dkh4bJQh.js} +10 -9
  129. package/dist/pagination.js +1 -1
  130. package/dist/{password-field-03pWRkuY.js → password-field-Da58GP1g.js} +4 -4
  131. package/dist/password-field.js +1 -1
  132. package/dist/photo-grid-Dtl17D74.js +830 -0
  133. package/dist/photo-grid.js +2 -0
  134. package/dist/{pill-BaS-uIbn.js → pill-Dd7pog19.js} +10 -9
  135. package/dist/pill.js +1 -1
  136. package/dist/{popover-CErIw2q3.js → popover-CUMOcMtj.js} +5 -4
  137. package/dist/popover.js +1 -1
  138. package/dist/presence-spring-4zwtUDQN.js +12 -0
  139. package/dist/{progress-DAQkfhPd.js → progress-Bcuz3Ob4.js} +11 -10
  140. package/dist/progress.js +1 -1
  141. package/dist/{radio-cards-Cu9cBssN.js → radio-cards-FkAhESb5.js} +35 -34
  142. package/dist/radio-cards.js +1 -1
  143. package/dist/{radio-group-TIK0-iPX.js → radio-group-DItMf2YM.js} +18 -17
  144. package/dist/radio-group.js +1 -1
  145. package/dist/{resizable-panels-DUpQEpwG.js → resizable-panels-61h9hA3B.js} +13 -12
  146. package/dist/resizable-panels.js +1 -1
  147. package/dist/{scroll-area-CcZyiSOQ.js → scroll-area-B8KkCPOM.js} +16 -15
  148. package/dist/scroll-area.js +1 -1
  149. package/dist/{search-field-DMvho0KQ.js → search-field-CbsajaZb.js} +93 -92
  150. package/dist/search-field.js +1 -1
  151. package/dist/{segmented-control-8ZUGnsZm.js → segmented-control-DCh-4ca-.js} +26 -25
  152. package/dist/segmented-control.js +1 -1
  153. package/dist/{select-D5rhJ8gi.js → select-SrcQqZjo.js} +27 -26
  154. package/dist/select.js +1 -1
  155. package/dist/sheet-stack-DYX1SGSB.js +820 -0
  156. package/dist/sheet-stack.js +2 -0
  157. package/dist/shortcut-recorder-VgTQdjjn.js +688 -0
  158. package/dist/shortcut-recorder.js +2 -0
  159. package/dist/{signature-pad-_bTeguN9.js → signature-pad-khL2yhQI.js} +15 -14
  160. package/dist/signature-pad.js +1 -1
  161. package/dist/{skeleton-XQQDkCHd.js → skeleton-LJsQsveI.js} +9 -8
  162. package/dist/skeleton.js +1 -1
  163. package/dist/slider-DjAnGmlC.js +535 -0
  164. package/dist/slider.js +1 -1
  165. package/dist/{sortable-data-table-CYKT_Ng7.js → sortable-data-table-Bpitup_d.js} +29 -28
  166. package/dist/sortable-data-table.js +1 -1
  167. package/dist/{spinner-DtxvDPdM.js → spinner-CvzajSg9.js} +11 -10
  168. package/dist/spinner.js +1 -1
  169. package/dist/{split-button-BCw4zZom.js → split-button-Bu41f2AY.js} +20 -19
  170. package/dist/split-button.js +1 -1
  171. package/dist/{stack-DC3IbtWk.js → stack-Bac4sJeI.js} +2 -2
  172. package/dist/stack.js +1 -1
  173. package/dist/{stepper-CruHbXxX.js → stepper-C8Ncavbr.js} +22 -21
  174. package/dist/stepper.js +1 -1
  175. package/dist/stretch-refresh-OrnTEj7P.js +349 -0
  176. package/dist/stretch-refresh.js +2 -0
  177. package/dist/{surface-DZ4d-2aL.js → surface-C69kwSuk.js} +13 -3
  178. package/dist/{swipe-actions-CBuJREU1.js → swipe-actions-1H5UOZKE.js} +26 -25
  179. package/dist/swipe-actions.js +1 -1
  180. package/dist/{switch-C1WrKrf-.js → switch-79-hkQqg.js} +15 -14
  181. package/dist/switch.js +1 -1
  182. package/dist/sx-BJXJ2xJK.js +23 -0
  183. package/dist/{tabs-XluwRjgg.js → tabs-Bb5-noYE.js} +43 -42
  184. package/dist/tabs.js +1 -1
  185. package/dist/{tag-input-DSRCyrX2.js → tag-input-BQaueKEb.js} +5 -5
  186. package/dist/tag-input.js +1 -1
  187. package/dist/{text-field-hU72iSVS.js → text-field-D0VP7b4P.js} +3 -3
  188. package/dist/text-field.js +1 -1
  189. package/dist/{textarea-3k4Y0QQ3.js → textarea-D1YwEPmn.js} +3 -3
  190. package/dist/textarea.js +1 -1
  191. package/dist/theme-provider-BvcY-iJu.js +20 -0
  192. package/dist/theme-root-BrYVcTzt.js +163 -0
  193. package/dist/theme-root.js +1 -1
  194. package/dist/theme-scope-DGWy4H0C.js +62 -0
  195. package/dist/{theme-switch-C505TtU8.js → theme-switch-CP42mVDb.js} +12 -11
  196. package/dist/theme-switch.js +1 -1
  197. package/dist/thread-parts-Cpktor6D.js +683 -0
  198. package/dist/{time-picker-CPlhW0tr.js → time-picker-Tnd-JBLC.js} +16 -15
  199. package/dist/time-picker.js +1 -1
  200. package/dist/{timeline-B0uAAVfT.js → timeline-BcF46lG9.js} +22 -21
  201. package/dist/timeline.js +1 -1
  202. package/dist/{toast-B7wo3sX1.js → toast-CSAbl5yK.js} +12 -11
  203. package/dist/{toast-stack-B40VpS4M.js → toast-stack-BCR4Cu7V.js} +10 -9
  204. package/dist/toast-stack.js +1 -1
  205. package/dist/toast.js +1 -1
  206. package/dist/{toggle-group-B2fpFZwV.js → toggle-group-C7ye1v4s.js} +23 -22
  207. package/dist/toggle-group.js +1 -1
  208. package/dist/{tooltip-BvgVTCTN.js → tooltip-IajLwdUb.js} +48 -39
  209. package/dist/tooltip.js +1 -1
  210. package/dist/{tree-view-j8qLqkb_.js → tree-view-CoW4oJIZ.js} +15 -14
  211. package/dist/tree-view.js +1 -1
  212. package/dist/{trigger-style-B1KVC8O1.js → trigger-style-CtOrdPk4.js} +1 -1
  213. package/dist/types/components/activity-rings/activity-rings.d.ts +113 -0
  214. package/dist/types/components/activity-rings/index.d.ts +2 -0
  215. package/dist/types/components/avatar-group/avatar-group.d.ts +3 -3
  216. package/dist/types/components/billing-toggle/billing-toggle.d.ts +57 -0
  217. package/dist/types/components/billing-toggle/index.d.ts +2 -0
  218. package/dist/types/components/button/button.d.ts +7 -7
  219. package/dist/types/components/button-group/button-group.d.ts +72 -0
  220. package/dist/types/components/button-group/index.d.ts +2 -0
  221. package/dist/types/components/card/card.d.ts +7 -1
  222. package/dist/types/components/chat-thread/chat-thread.d.ts +130 -0
  223. package/dist/types/components/chat-thread/index.d.ts +2 -0
  224. package/dist/types/components/chip-group/chip-group.d.ts +2 -2
  225. package/dist/types/components/combobox/combobox.d.ts +2 -2
  226. package/dist/types/components/command-palette/command-palette.d.ts +1 -1
  227. package/dist/types/components/comment-thread/comment-thread.d.ts +7 -7
  228. package/dist/types/components/copy-button/copy-button.d.ts +6 -6
  229. package/dist/types/components/countdown/countdown.d.ts +2 -2
  230. package/dist/types/components/dialog/dialog.d.ts +18 -20
  231. package/dist/types/components/drawer/drawer.d.ts +7 -1
  232. package/dist/types/components/emblem/emblem.d.ts +59 -0
  233. package/dist/types/components/emblem/index.d.ts +2 -0
  234. package/dist/types/components/empty-state/empty-state.d.ts +2 -2
  235. package/dist/types/components/file-dropzone/file-dropzone.d.ts +3 -4
  236. package/dist/types/components/filter-toolbar/filter-toolbar.d.ts +2 -2
  237. package/dist/types/components/game-card/card-frame.d.ts +16 -0
  238. package/dist/types/components/game-card/decks.d.ts +27 -0
  239. package/dist/types/components/game-card/game-card.d.ts +37 -0
  240. package/dist/types/components/game-card/index.d.ts +4 -0
  241. package/dist/types/components/hold-to-confirm/hold-to-confirm.d.ts +1 -1
  242. package/dist/types/components/hover-card/hover-card.d.ts +5 -5
  243. package/dist/types/components/in-view-title/in-view-title.d.ts +23 -0
  244. package/dist/types/components/in-view-title/index.d.ts +1 -0
  245. package/dist/types/components/inline-edit/inline-edit.d.ts +6 -6
  246. package/dist/types/components/json-viewer/json-viewer.d.ts +7 -9
  247. package/dist/types/components/keycap-keyboard/index.d.ts +2 -0
  248. package/dist/types/components/keycap-keyboard/keycap-keyboard.d.ts +32 -0
  249. package/dist/types/components/lightbox-gallery/index.d.ts +2 -0
  250. package/dist/types/components/lightbox-gallery/lightbox-gallery.d.ts +74 -0
  251. package/dist/types/components/link-unfurl/index.d.ts +2 -0
  252. package/dist/types/components/link-unfurl/link-unfurl.d.ts +104 -0
  253. package/dist/types/components/locale-switcher/index.d.ts +2 -0
  254. package/dist/types/components/locale-switcher/locale-switcher.d.ts +64 -0
  255. package/dist/types/components/mention-input/mention-input.d.ts +7 -7
  256. package/dist/types/components/menu/menu.d.ts +29 -5
  257. package/dist/types/components/metric-card/metric-card.d.ts +2 -2
  258. package/dist/types/components/navigation/navigation.d.ts +1 -1
  259. package/dist/types/components/next/emotion-registry.d.ts +14 -0
  260. package/dist/types/components/next/index.d.ts +2 -0
  261. package/dist/types/components/next/registry.d.ts +21 -0
  262. package/dist/types/components/now-playing/index.d.ts +1 -0
  263. package/dist/types/components/now-playing/now-playing.d.ts +88 -0
  264. package/dist/types/components/password-field/password-field.d.ts +1 -1
  265. package/dist/types/components/photo-grid/index.d.ts +2 -0
  266. package/dist/types/components/photo-grid/photo-grid.d.ts +82 -0
  267. package/dist/types/components/progress/progress.d.ts +1 -1
  268. package/dist/types/components/select/select.d.ts +1 -1
  269. package/dist/types/components/sheet-stack/index.d.ts +2 -0
  270. package/dist/types/components/sheet-stack/sheet-stack.d.ts +81 -0
  271. package/dist/types/components/shortcut-recorder/index.d.ts +2 -0
  272. package/dist/types/components/shortcut-recorder/shortcut-recorder.d.ts +117 -0
  273. package/dist/types/components/signature-pad/signature-pad.d.ts +2 -2
  274. package/dist/types/components/split-button/split-button.d.ts +3 -4
  275. package/dist/types/components/stretch-refresh/index.d.ts +1 -0
  276. package/dist/types/components/stretch-refresh/stretch-refresh.d.ts +49 -0
  277. package/dist/types/components/swipe-actions/swipe-actions.d.ts +1 -2
  278. package/dist/types/components/tag-input/tag-input.d.ts +2 -3
  279. package/dist/types/components/theme-root/index.d.ts +1 -0
  280. package/dist/types/components/theme-root/theme-root.d.ts +10 -3
  281. package/dist/types/components/theme-switch/theme-switch.d.ts +3 -3
  282. package/dist/types/components/{comment-thread → thread}/thread-parts.d.ts +7 -2
  283. package/dist/types/components/time-picker/time-picker.d.ts +2 -2
  284. package/dist/types/components/timeline/timeline.d.ts +4 -4
  285. package/dist/types/components/toast/toast.d.ts +3 -3
  286. package/dist/types/components/tooltip/tooltip.d.ts +8 -1
  287. package/dist/types/components/tree-view/tree-view.d.ts +4 -3
  288. package/dist/types/components/typewriter-terminal/index.d.ts +2 -0
  289. package/dist/types/components/typewriter-terminal/typewriter-terminal.d.ts +87 -0
  290. package/dist/types/components/usage-meter/usage-meter.d.ts +6 -16
  291. package/dist/types/components/usage-meter/usage-model.d.ts +30 -0
  292. package/dist/types/components/user-menu/index.d.ts +2 -0
  293. package/dist/types/components/user-menu/user-menu.d.ts +118 -0
  294. package/dist/types/index.d.ts +18 -1
  295. package/dist/types/overlay/exit-motion.d.ts +24 -0
  296. package/dist/types/overlay/presence-spring.d.ts +12 -0
  297. package/dist/types/overlay/use-native-dialog.d.ts +10 -1
  298. package/dist/types/styling/create-theme.d.ts +24 -0
  299. package/dist/types/styling/css.d.ts +1 -1
  300. package/dist/types/styling/motion-timings.d.ts +5 -0
  301. package/dist/types/styling/overlay-motion.d.ts +95 -0
  302. package/dist/types/styling/surface.d.ts +7 -0
  303. package/dist/types/styling/sx.d.ts +1 -1
  304. package/dist/types/styling/theme-scope.d.ts +29 -3
  305. package/dist/types/styling/theme.d.ts +15 -0
  306. package/dist/types/utils/initials.d.ts +2 -0
  307. package/dist/typewriter-terminal-BUEsMzo3.js +588 -0
  308. package/dist/typewriter-terminal.js +2 -0
  309. package/dist/{usage-meter-qyQ3rYVv.js → usage-meter-CYvlB6l3.js} +165 -175
  310. package/dist/usage-meter.js +1 -1
  311. package/dist/usage-model-C0fS47w4.js +32 -0
  312. package/dist/use-native-dialog-FB0p7lkg.js +93 -0
  313. package/dist/use-scroll-lock-40gXwwAy.js +23 -0
  314. package/dist/user-menu-MctRu_Lh.js +757 -0
  315. package/dist/user-menu.js +2 -0
  316. package/dist/{visually-hidden-BJdvqqvn.js → visually-hidden-DgVO3NaB.js} +1 -1
  317. package/package.json +87 -5
  318. package/dist/avatar-CaGJHy1N.js +0 -145
  319. package/dist/calendar-BzJdv_SZ.js +0 -449
  320. package/dist/card-Ca4KQKYQ.js +0 -154
  321. package/dist/command-palette-BmQu2w4H.js +0 -391
  322. package/dist/comment-thread-ASaXDcGo.js +0 -1410
  323. package/dist/date-range-picker-DQpUeKqV.js +0 -570
  324. package/dist/dialog-BX1zYMs-.js +0 -219
  325. package/dist/drawer-DsASTiP-.js +0 -553
  326. package/dist/elastic-slider-BG6K019r.js +0 -395
  327. package/dist/elastic-slider.js +0 -2
  328. package/dist/slider-DVG6-Awh.js +0 -308
  329. package/dist/sx-Dx9JUKp5.js +0 -23
  330. package/dist/theme-root-Bs1U3uPA.js +0 -46
  331. package/dist/theme-scope-t7nAKc2c.js +0 -27
  332. package/dist/types/components/elastic-slider/elastic-slider.d.ts +0 -53
  333. package/dist/types/components/elastic-slider/index.d.ts +0 -1
  334. package/dist/use-native-dialog-DWpIUVO1.js +0 -84
  335. package/dist/use-slider-interaction-ChL-208h.js +0 -234
  336. /package/dist/types/components/{comment-thread → thread}/thread-core.d.ts +0 -0
@@ -1,27 +1,29 @@
1
1
  'use client';
2
- import { r as e, t } from "./sx-Dx9JUKp5.js";
3
- import { n } from "./focus-ring-BK5W5_NY.js";
4
- import { n as r, r as i } from "./media-8yrN85VT.js";
2
+ import { i as e } from "./css-BYJhdGh-.js";
3
+ import { n as t } from "./focus-ring-BK5W5_NY.js";
4
+ import { n, r } from "./media-8yrN85VT.js";
5
+ import { t as i } from "./sx-BJXJ2xJK.js";
5
6
  import { t as a } from "./use-controlled-state-DpeVQZNR.js";
6
- import { t as o } from "./visually-hidden-BJdvqqvn.js";
7
+ import { t as o } from "./visually-hidden-DgVO3NaB.js";
7
8
  import { t as s } from "./renderable-DzcIj1Lo.js";
8
- import { n as c, t as l } from "./surface-DZ4d-2aL.js";
9
- import { t as u } from "./trigger-style-B1KVC8O1.js";
9
+ import { n as c, t as l } from "./surface-C69kwSuk.js";
10
+ import { t as u } from "./trigger-style-CtOrdPk4.js";
10
11
  import { a as d, i as f } from "./overlay-layer-qEbpEtb8.js";
11
- import { i as p, r as m, t as h } from "./use-native-dialog-DWpIUVO1.js";
12
- import { createContext as g, useCallback as _, useContext as v, useEffect as y, useId as b, useMemo as x, useRef as S, useState as C } from "react";
13
- import { vars as w } from "@jfrader/tokens/vars";
14
- import { jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
15
- import { useFloating as D, useFloatingTree as O, useInteractions as k, useMergeRefs as A } from "@floating-ui/react";
16
- import { getDeepestNode as j } from "@floating-ui/react/utils";
17
- import { MotionConfig as M, animate as N, useMotionValue as P, useReducedMotion as F } from "motion/react";
12
+ import { i as p, r as m, t as h } from "./use-native-dialog-FB0p7lkg.js";
13
+ import { t as g } from "./presence-spring-4zwtUDQN.js";
14
+ import { createContext as _, useCallback as v, useContext as y, useEffect as b, useId as x, useMemo as S, useRef as C, useState as w } from "react";
15
+ import { vars as T } from "@jfrader/tokens/vars";
16
+ import { jsx as E, jsxs as D } from "@emotion/react/jsx-runtime";
17
+ import { MotionConfig as O, animate as k, useMotionValue as A, useReducedMotion as j } from "motion/react";
18
+ import { useFloating as M, useFloatingTree as N, useInteractions as P, useMergeRefs as F } from "@floating-ui/react";
19
+ import { getDeepestNode as I } from "@floating-ui/react/utils";
18
20
  //#region src/components/bottom-sheet/bottom-sheet.tsx
19
- var I = [.45, .92], L = "36rem", R = {
21
+ var ee = [.45, .92], L = "36rem", R = {
20
22
  type: "spring",
21
23
  stiffness: 400,
22
24
  damping: 40,
23
25
  mass: 1
24
- }, z = .2, ee = 320, B = 80, V = 120, H = 8, U = [
26
+ }, z = .2, B = 320, V = 80, H = 120, U = 8, te = [
25
27
  "button:not([data-ui=\"bottom-sheet-handle\"])",
26
28
  "a[href]",
27
29
  "input",
@@ -31,7 +33,7 @@ var I = [.45, .92], L = "36rem", R = {
31
33
  "[contenteditable]:not([contenteditable=\"false\"])",
32
34
  "[data-ui=\"bottom-sheet-title\"]",
33
35
  "[data-ui=\"bottom-sheet-description\"]"
34
- ].join(", "), te = "button, a[href], input, select, textarea, [contenteditable]:not([contenteditable=\"false\"])", ne = e({
36
+ ].join(", "), ne = "button, a[href], input, select, textarea, [contenteditable]:not([contenteditable=\"false\"])", re = e({
35
37
  ...l,
36
38
  position: "fixed",
37
39
  inset: 0,
@@ -40,15 +42,15 @@ var I = [.45, .92], L = "36rem", R = {
40
42
  blockSize: "100dvh",
41
43
  maxInlineSize: "none",
42
44
  maxBlockSize: "none",
43
- overflow: "hidden",
45
+ overflow: "clip",
44
46
  "&::backdrop": { backgroundColor: "transparent" }
45
- }), re = e({
47
+ }), ie = e({
46
48
  position: "absolute",
47
49
  inset: 0,
48
- backgroundColor: w.color.scrim,
50
+ backgroundColor: T.color.scrim,
49
51
  pointerEvents: "none",
50
52
  opacity: "var(--sheet-scrim, 1)"
51
- }), ie = e({
53
+ }), ae = e({
52
54
  ...c,
53
55
  position: "absolute",
54
56
  insetBlockStart: 0,
@@ -60,22 +62,22 @@ var I = [.45, .92], L = "36rem", R = {
60
62
  display: "flex",
61
63
  flexDirection: "column",
62
64
  minBlockSize: 0,
63
- borderStartStartRadius: w.radius.lg,
64
- borderStartEndRadius: w.radius.lg,
65
- boxShadow: w.shadow.floating,
65
+ borderStartStartRadius: T.radius.lg,
66
+ borderStartEndRadius: T.radius.lg,
67
+ boxShadow: T.shadow.floating,
66
68
  paddingBlockEnd: "env(safe-area-inset-bottom, 0px)",
67
- "&:focus-visible": n,
68
- [r]: {
69
+ "&:focus-visible": t,
70
+ [n]: {
69
71
  boxShadow: "none",
70
72
  borderColor: "CanvasText"
71
73
  }
72
- }), ae = e({
74
+ }), oe = e({
73
75
  flexShrink: 0,
74
76
  display: "grid",
75
77
  gridTemplateColumns: "minmax(0, 1fr) auto",
76
- gap: w.space[2],
77
- paddingInline: w.space[6],
78
- paddingBlock: w.space[2],
78
+ gap: T.space[2],
79
+ paddingInline: T.space[6],
80
+ paddingBlock: T.space[2],
79
81
  "&[data-dragging]": { userSelect: "none" },
80
82
  "& > [data-ui=\"bottom-sheet-handle\"]": {
81
83
  gridColumn: "1 / -1",
@@ -86,158 +88,158 @@ var I = [.45, .92], L = "36rem", R = {
86
88
  gridColumn: 2,
87
89
  gridRow: 2
88
90
  }
89
- }), oe = e({
91
+ }), se = e({
90
92
  flex: "1 1 auto",
91
93
  minBlockSize: 0,
92
94
  overflow: "auto",
93
95
  overscrollBehavior: "contain",
94
- paddingInline: w.space[6],
95
- paddingBlock: w.space[4],
96
- fontSize: w.textSize.sm,
97
- "&:focus-visible": n
98
- }), se = e({
96
+ paddingInline: T.space[6],
97
+ paddingBlock: T.space[4],
98
+ fontSize: T.textSize.sm,
99
+ "&:focus-visible": t
100
+ }), ce = e({
99
101
  flexShrink: 0,
100
102
  display: "flex",
101
103
  flexWrap: "wrap",
102
- gap: w.space[2],
103
- paddingInline: w.space[6],
104
- paddingBlock: w.space[4],
105
- borderBlockStart: `1px solid ${w.color.border}`
106
- }), ce = e({
107
- margin: 0,
108
- fontSize: w.textSize.lg,
109
- lineHeight: w.lineHeight.tight,
110
- fontWeight: w.fontWeight.semibold
104
+ gap: T.space[2],
105
+ paddingInline: T.space[6],
106
+ paddingBlock: T.space[4],
107
+ borderBlockStart: `1px solid ${T.color.border}`
111
108
  }), le = e({
112
109
  margin: 0,
113
- color: w.color.textMuted,
114
- fontSize: w.textSize.sm
110
+ fontSize: T.textSize.lg,
111
+ lineHeight: T.lineHeight.tight,
112
+ fontWeight: T.fontWeight.semibold
113
+ }), ue = e({
114
+ margin: 0,
115
+ color: T.color.textMuted,
116
+ fontSize: T.textSize.sm
115
117
  }), W = e({
116
118
  appearance: "none",
117
- minInlineSize: w.space[8],
118
- minBlockSize: w.space[8],
119
+ minInlineSize: T.space[8],
120
+ minBlockSize: T.space[8],
119
121
  display: "inline-flex",
120
122
  alignItems: "center",
121
123
  justifyContent: "center",
122
- paddingInline: w.space[3],
123
- paddingBlock: w.space[1],
124
+ paddingInline: T.space[3],
125
+ paddingBlock: T.space[1],
124
126
  border: "1px solid transparent",
125
- borderRadius: w.radius.md,
126
- color: w.color.textMuted,
127
+ borderRadius: T.radius.md,
128
+ color: T.color.textMuted,
127
129
  backgroundColor: "transparent",
128
130
  font: "inherit",
129
131
  cursor: "pointer",
130
- "&:focus-visible": n,
132
+ "&:focus-visible": t,
131
133
  "&:disabled": { cursor: "not-allowed" },
132
- [r]: { borderColor: "ButtonText" },
133
- [i]: { transition: "none" }
134
- }), ue = e({
134
+ [n]: { borderColor: "ButtonText" },
135
+ [r]: { transition: "none" }
136
+ }), de = e({
135
137
  "&::after": {
136
138
  content: "\"\"",
137
- inlineSize: w.space[10],
138
- blockSize: w.space[1],
139
- borderRadius: w.radius.full,
140
- backgroundColor: w.color.borderControl
139
+ inlineSize: T.space[10],
140
+ blockSize: T.space[1],
141
+ borderRadius: T.radius.full,
142
+ backgroundColor: T.color.borderControl
141
143
  },
142
- [r]: { "&::after": {
144
+ [n]: { "&::after": {
143
145
  backgroundColor: "ButtonText",
144
146
  outline: "1px solid ButtonText"
145
147
  } }
146
- }), G = o, K = g(null), q = g(null);
148
+ }), G = o, K = _(null), q = _(null);
147
149
  function J(e) {
148
- let t = v(K);
150
+ let t = y(K);
149
151
  if (!t) throw Error(`BottomSheet.${e} must be rendered inside <BottomSheet>.`);
150
152
  return t;
151
153
  }
152
- function de(e) {
154
+ function fe(e) {
153
155
  if (!e.length || e.some((t, n) => !Number.isFinite(t) || t <= 0 || t > 1 || n > 0 && t <= e[n - 1])) throw Error("BottomSheet.detents must be nonempty, finite, strictly ascending unique fractions in (0, 1].");
154
156
  }
155
- function fe({ nodeId: e, open: t, defaultOpen: n = !1, onOpenChange: r, detents: i = I, value: o, defaultValue: s = 0, onValueChange: c, locale: l, getValueText: u, children: f }) {
156
- de(i);
157
- let m = S([...i]);
157
+ function pe({ nodeId: e, open: t, defaultOpen: n = !1, onOpenChange: r, detents: i = ee, value: o, defaultValue: s = 0, onValueChange: c, locale: l, getValueText: u, children: f }) {
158
+ fe(i);
159
+ let m = C([...i]);
158
160
  if (i.length !== m.current.length || i.some((e, t) => e !== m.current[t])) throw Error("BottomSheet.detents numeric contents require remount to change.");
159
161
  let [h = 0, g] = a(o, s, c);
160
162
  if (!Number.isInteger(h) || h < 0 || h >= i.length || !Number.isInteger(s) || s < 0 || s >= i.length) throw Error("BottomSheet value/defaultValue must be valid detent indices.");
161
- let [v = !1, w] = a(t, n, r), E = p(v, w), [O, A] = C(null), [j, M] = C(!1), N = _((e) => {
162
- E.setDialogElement(e), A(e);
163
- }, [E.setDialogElement]);
164
- y(() => {
165
- let e = () => M(O?.open ?? !1);
166
- if (e(), !O) return;
167
- let t = O.ownerDocument.defaultView?.MutationObserver;
163
+ let [_ = !1, y] = a(t, n, r), T = p(_, y), [D, O] = w(null), [k, A] = w(!1), j = v((e) => {
164
+ T.setDialogElement(e), O(e);
165
+ }, [T.setDialogElement]);
166
+ b(() => {
167
+ let e = () => A(D?.open ?? !1);
168
+ if (e(), !D) return;
169
+ let t = D.ownerDocument.defaultView?.MutationObserver;
168
170
  if (!t) return;
169
171
  let n = new t(e);
170
- return n.observe(O, {
172
+ return n.observe(D, {
171
173
  attributes: !0,
172
174
  attributeFilter: ["open"]
173
175
  }), () => n.disconnect();
174
- }, [O]);
175
- let P = D({
176
+ }, [D]);
177
+ let N = M({
176
178
  nodeId: e,
177
- open: v && j,
178
- onOpenChange: (e) => e ? E.setOpen(!0) : E.requestClose()
179
- }), F = d(P.context, "container"), L = k(F), R = b(), [z, ee] = C(!1), [B, V] = C(!1), H = x(() => {
179
+ open: _ && k,
180
+ onOpenChange: (e) => e ? T.setOpen(!0) : T.requestClose()
181
+ }), F = d(N.context, "container"), I = P(F), L = x(), [R, z] = w(!1), [B, V] = w(!1), H = S(() => {
180
182
  let e = m.current[h];
181
183
  return u?.(e, h) ?? new Intl.NumberFormat(l, { style: "percent" }).format(e);
182
184
  }, [
183
185
  u,
184
186
  l,
185
187
  h
186
- ]), U = x(() => ({
187
- ...E,
188
- setDialogElement: N,
189
- open: v,
188
+ ]), U = S(() => ({
189
+ ...T,
190
+ setDialogElement: j,
191
+ open: _,
190
192
  detents: m.current,
191
193
  value: h,
192
194
  requestValue: g,
193
195
  valueText: H,
194
- panelId: `${R}-panel`,
195
- valueTextId: `${R}-value`,
196
- titleId: `${R}-title`,
197
- descriptionId: `${R}-description`,
198
- hasTitle: z,
196
+ panelId: `${L}-panel`,
197
+ valueTextId: `${L}-value`,
198
+ titleId: `${L}-title`,
199
+ descriptionId: `${L}-description`,
200
+ hasTitle: R,
199
201
  hasDescription: B,
200
- setHasTitle: ee,
202
+ setHasTitle: z,
201
203
  setHasDescription: V,
202
- floating: P,
203
- interactions: L
204
+ floating: N,
205
+ interactions: I
204
206
  }), [
205
- E.setOpen,
206
- E.requestClose,
207
- E.repairToken,
208
- N,
209
- v,
207
+ T.setOpen,
208
+ T.requestClose,
209
+ T.repairToken,
210
+ j,
211
+ _,
210
212
  h,
211
213
  g,
212
214
  H,
215
+ L,
213
216
  R,
214
- z,
215
217
  B,
216
- P,
217
- L
218
+ N,
219
+ I
218
220
  ]);
219
- return /* @__PURE__ */ T(K.Provider, {
221
+ return /* @__PURE__ */ E(K.Provider, {
220
222
  value: U,
221
223
  children: f
222
224
  });
223
225
  }
224
226
  function Y(e) {
225
- return /* @__PURE__ */ T(M, {
227
+ return /* @__PURE__ */ E(O, {
226
228
  reducedMotion: "user",
227
- children: /* @__PURE__ */ T(f, { children: (t) => /* @__PURE__ */ T(fe, {
229
+ children: /* @__PURE__ */ E(f, { children: (t) => /* @__PURE__ */ E(pe, {
228
230
  ...e,
229
231
  nodeId: t
230
232
  }) })
231
233
  });
232
234
  }
233
235
  Y.displayName = "BottomSheet";
234
- function X({ ref: e, onClick: n, className: r, sx: i, ...a }) {
235
- let o = J("Trigger"), s = A([e, o.floating.refs.setReference]);
236
- return /* @__PURE__ */ T(t, {
237
- className: r,
236
+ function X({ ref: e, onClick: t, className: n, sx: r, ...a }) {
237
+ let o = J("Trigger"), s = F([e, o.floating.refs.setReference]);
238
+ return /* @__PURE__ */ E(i, {
239
+ className: n,
238
240
  styles: u,
239
- sx: i,
240
- children: (e) => /* @__PURE__ */ T("button", {
241
+ sx: r,
242
+ children: (e) => /* @__PURE__ */ E("button", {
241
243
  type: "button",
242
244
  ...a,
243
245
  ref: s,
@@ -246,14 +248,14 @@ function X({ ref: e, onClick: n, className: r, sx: i, ...a }) {
246
248
  "aria-expanded": o.open,
247
249
  className: e,
248
250
  onClick: (e) => {
249
- n?.(e), e.defaultPrevented || o.setOpen(!0);
251
+ t?.(e), e.defaultPrevented || o.setOpen(!0);
250
252
  }
251
253
  })
252
254
  });
253
255
  }
254
256
  X.displayName = "BottomSheet.Trigger";
255
- function pe(e, t) {
256
- let n = S(null), r = S(null), i = P(0), a = S(0), o = S(0), s = S(null), c = S(null), l = S(!1), u = F(), d = S({
257
+ function me(e, t) {
258
+ let n = C(null), r = C(null), i = A(0), a = C(0), o = C(0), s = C(null), c = C(null), l = C(!1), u = j(), d = C({
257
259
  context: e,
258
260
  reduced: u
259
261
  });
@@ -261,26 +263,26 @@ function pe(e, t) {
261
263
  context: e,
262
264
  reduced: u
263
265
  };
264
- let f = () => a.current * (1 - d.current.context.detents[d.current.context.value]), p = _(() => {
265
- s.current?.stop(), d.current.reduced ? i.set(f()) : s.current = N(i, f(), R);
266
- }, [i]), m = _(() => {
266
+ let f = C(!1), p = () => a.current * (1 - d.current.context.detents[d.current.context.value]), m = () => t.current?.open ? p() : a.current, h = v((e = R) => {
267
+ f.current || (s.current?.stop(), d.current.reduced || !t.current?.open ? i.set(m()) : s.current = k(i, p(), e));
268
+ }, [i, t]), _ = v(() => {
267
269
  let e = c.current;
268
- return e ? (c.current = null, e.capture?.removeAttribute("data-dragging"), e.capture?.hasPointerCapture(e.id) && e.capture.releasePointerCapture(e.id), l.current = !0, p(), !0) : !1;
269
- }, [p]);
270
- y(() => {
270
+ return e ? (c.current = null, e.capture?.removeAttribute("data-dragging"), e.capture?.hasPointerCapture(e.id) && e.capture.releasePointerCapture(e.id), l.current = !0, h(), !0) : !1;
271
+ }, [h]);
272
+ b(() => {
271
273
  let e = t.current, r = n.current, l = e?.ownerDocument.defaultView;
272
274
  if (!e || !r || !l) return;
273
275
  let u = (t) => {
274
276
  r.style.transform = `translateY(${t}px)`, r.style.setProperty("--sheet-height", `${Math.max(0, a.current - t) + o.current}px`), e.style.setProperty("--sheet-scrim", String(Math.min(1, Math.max(0, (a.current - t) / Math.max(1, a.current)))));
275
277
  }, d = () => {
276
278
  let t = l.visualViewport;
277
- m();
279
+ _();
278
280
  let n = t?.height ?? l.innerHeight;
279
- o.current = Number.parseFloat(l.getComputedStyle(r).paddingBottom) || 0, a.current = Math.max(1, n - o.current), e.style.blockSize = `${n}px`, e.style.insetBlockStart = `${t?.offsetTop ?? 0}px`, s.current?.stop(), c.current = null, i.set(f()), u(i.get());
281
+ o.current = Number.parseFloat(l.getComputedStyle(r).paddingBottom) || 0, a.current = Math.max(1, n - o.current), e.style.blockSize = `${n}px`, e.style.insetBlockStart = `${t?.offsetTop ?? 0}px`, f.current || (s.current?.stop(), c.current = null, i.set(m())), u(i.get());
280
282
  };
281
283
  d();
282
284
  let p = i.on("change", u), h = (e) => {
283
- c.current && c.current.id !== e.pointerId && m();
285
+ c.current && c.current.id !== e.pointerId && _();
284
286
  };
285
287
  return l.addEventListener("pointerdown", h, !0), l.addEventListener("resize", d), l.visualViewport?.addEventListener("resize", d), l.visualViewport?.addEventListener("scroll", d), () => {
286
288
  p(), s.current?.stop();
@@ -290,18 +292,30 @@ function pe(e, t) {
290
292
  }, [
291
293
  t,
292
294
  i,
293
- m
294
- ]), y(() => {
295
- m(), p();
295
+ _
296
+ ]), b(() => {
297
+ _(), h();
296
298
  }, [
297
299
  e.value,
298
- e.open,
299
- p,
300
+ h,
300
301
  u,
301
- m
302
+ _
302
303
  ]);
303
- let h = (e, t, n, r = null) => {
304
- s.current?.stop(), l.current = !1, r?.setAttribute("data-dragging", ""), c.current = {
304
+ let y = S(() => ({
305
+ enter: () => {
306
+ f.current = !1, h(g);
307
+ },
308
+ exit: () => {
309
+ if (_(), !d.current.reduced) return f.current = !0, s.current?.stop(), s.current = k(i, a.current, g), s.current.finished;
310
+ }
311
+ }), [
312
+ h,
313
+ _,
314
+ i
315
+ ]), x = v(() => {
316
+ f.current = !1, s.current?.stop(), s.current = null, i.set(a.current);
317
+ }, [i]), w = (e, t, n, r = null) => {
318
+ f.current || (s.current?.stop(), l.current = !1, r?.setAttribute("data-dragging", ""), c.current = {
305
319
  id: e,
306
320
  start: t,
307
321
  origin: i.get(),
@@ -311,35 +325,35 @@ function pe(e, t) {
311
325
  }],
312
326
  moved: !1,
313
327
  capture: r
314
- };
315
- }, g = (e, t) => {
328
+ });
329
+ }, T = (e, t) => {
316
330
  let n = c.current;
317
331
  if (!n) return;
318
332
  let r = e - n.start;
319
- n.moved ||= Math.abs(r) > H;
333
+ n.moved ||= Math.abs(r) > U;
320
334
  let o = n.origin + r, s = a.current * (1 - d.current.context.detents.at(-1)), l = s - o;
321
- i.set(o < s ? d.current.reduced ? s : s - V * l / (V + l) : o), n.samples = [...n.samples, {
335
+ i.set(o < s ? d.current.reduced ? s : s - H * l / (H + l) : o), n.samples = [...n.samples, {
322
336
  position: e,
323
337
  time: t
324
- }].filter((e) => t - e.time <= B);
325
- }, v = (e, t) => {
338
+ }].filter((e) => t - e.time <= V);
339
+ }, E = (e, t) => {
326
340
  let n = c.current;
327
341
  if (!n) return;
328
342
  c.current = null, n.capture?.removeAttribute("data-dragging"), l.current = n.moved;
329
343
  let r = [...n.samples, {
330
344
  position: e,
331
345
  time: t
332
- }].filter((e) => t - e.time <= B)[0], o = r ? (t - r.time) / 1e3 : 0, s = r && o > 0 ? (e - r.position) / o : 0, u = i.get() + s * z, { detents: f, requestClose: m, requestValue: h } = d.current.context, g = a.current * f[0], _ = a.current - g / 2;
333
- n.moved && (u > _ || s >= ee && i.get() > a.current * (1 - f[0])) ? m() : n.moved && h(f.reduce((e, t, n) => Math.abs(a.current * (1 - t) - u) < Math.abs(a.current * (1 - f[e]) - u) ? n : e, 0)), p();
346
+ }].filter((e) => t - e.time <= V)[0], o = r ? (t - r.time) / 1e3 : 0, s = r && o > 0 ? (e - r.position) / o : 0, u = i.get() + s * z, { detents: f, requestClose: p, requestValue: m } = d.current.context, g = a.current * f[0], _ = a.current - g / 2;
347
+ n.moved && (u > _ || s >= B && i.get() > a.current * (1 - f[0])) ? p() : n.moved && m(f.reduce((e, t, n) => Math.abs(a.current * (1 - t) - u) < Math.abs(a.current * (1 - f[e]) - u) ? n : e, 0)), h();
334
348
  };
335
- return y(() => {
349
+ return b(() => {
336
350
  let e = r.current, t = e?.ownerDocument.defaultView;
337
351
  if (!e || !t) return;
338
352
  let n = null, i = !1, a = () => {
339
353
  e.removeEventListener("touchmove", o), i = !1;
340
354
  }, o = (t) => {
341
355
  if (!n || t.touches.length !== 1) {
342
- m(), a();
356
+ _(), a();
343
357
  return;
344
358
  }
345
359
  let r = t.touches[0], i = r.clientX - n.x, o = r.clientY - n.y;
@@ -347,20 +361,20 @@ function pe(e, t) {
347
361
  a(), n = null;
348
362
  return;
349
363
  }
350
- if (Math.abs(o) < H) return;
364
+ if (Math.abs(o) < U) return;
351
365
  if (c.current) {
352
- t.cancelable && t.preventDefault(), g(r.clientY, t.timeStamp);
366
+ t.cancelable && t.preventDefault(), T(r.clientY, t.timeStamp);
353
367
  return;
354
368
  }
355
369
  let s = d.current.context;
356
- s.value < s.detents.length - 1 ? (s.requestValue(s.detents.length - 1), a()) : o > 0 && e.scrollTop <= 0 && (h(n.id, n.y, t.timeStamp), t.cancelable && t.preventDefault(), g(r.clientY, t.timeStamp));
370
+ s.value < s.detents.length - 1 ? (s.requestValue(s.detents.length - 1), a()) : o > 0 && e.scrollTop <= 0 && (w(n.id, n.y, t.timeStamp), t.cancelable && t.preventDefault(), T(r.clientY, t.timeStamp));
357
371
  }, s = (r) => {
358
372
  if (a(), r.touches.length !== 1) {
359
- m();
373
+ _();
360
374
  return;
361
375
  }
362
376
  let s = r.target;
363
- if (s.closest(te) || t.getSelection()?.toString()) return;
377
+ if (s.closest(ne) || t.getSelection()?.toString()) return;
364
378
  for (let n = s; n && n !== e; n = n.parentElement) {
365
379
  let e = t.getComputedStyle(n);
366
380
  if (n.scrollWidth > n.clientWidth && /auto|scroll/.test(e.overflowX) || n.scrollHeight > n.clientHeight && /auto|scroll/.test(e.overflowY)) return;
@@ -374,98 +388,102 @@ function pe(e, t) {
374
388
  }, e.addEventListener("touchmove", o, { passive: !1 }), i = !0;
375
389
  }, l = (e) => {
376
390
  let t = e.changedTouches[0];
377
- c.current && t && v(t.clientY, e.timeStamp), a(), n = null;
391
+ c.current && t && E(t.clientY, e.timeStamp), a(), n = null;
378
392
  }, u = () => {
379
- m(), a(), n = null;
393
+ _(), a(), n = null;
380
394
  };
381
395
  return e.addEventListener("touchstart", s, { passive: !0 }), e.addEventListener("touchend", l), e.addEventListener("touchcancel", u), () => {
382
396
  i && a(), e.removeEventListener("touchstart", s), e.removeEventListener("touchend", l), e.removeEventListener("touchcancel", u);
383
397
  };
384
- }, [m]), {
398
+ }, [_]), {
385
399
  panelRef: n,
386
400
  bodyRef: r,
387
401
  gesture: {
388
402
  onPointerDown: (e) => {
389
- c.current || !e.isPrimary ? m() : e.button !== 0 || e.defaultPrevented || e.target.closest(U) || (h(e.pointerId, e.clientY, e.timeStamp, e.currentTarget), e.currentTarget.setPointerCapture?.(e.pointerId));
403
+ c.current || !e.isPrimary ? _() : e.button !== 0 || e.defaultPrevented || e.target.closest(te) || (w(e.pointerId, e.clientY, e.timeStamp, e.currentTarget), e.currentTarget.setPointerCapture?.(e.pointerId));
390
404
  },
391
405
  onPointerMove: (e) => {
392
- c.current?.id === e.pointerId && g(e.clientY, e.timeStamp);
406
+ c.current?.id === e.pointerId && T(e.clientY, e.timeStamp);
393
407
  },
394
408
  onPointerUp: (e) => {
395
- c.current?.id === e.pointerId && (v(e.clientY, e.timeStamp), e.currentTarget.hasPointerCapture?.(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
409
+ c.current?.id === e.pointerId && (E(e.clientY, e.timeStamp), e.currentTarget.hasPointerCapture?.(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
396
410
  },
397
411
  onPointerCancel: (e) => {
398
- c.current?.id === e.pointerId && m();
412
+ c.current?.id === e.pointerId && _();
399
413
  },
400
414
  onLostPointerCapture: (e) => {
401
- c.current?.id === e.pointerId && m();
415
+ c.current?.id === e.pointerId && _();
402
416
  }
403
417
  },
404
- cancelDrag: m,
405
- suppressClick: l
418
+ cancelDrag: _,
419
+ suppressClick: l,
420
+ transition: y,
421
+ reset: x
406
422
  };
407
423
  }
408
- function Z({ ref: e, sx: n, className: r, ...i }) {
409
- let { children: a, withDescription: o = !0, onCancel: s, onClose: c, onClick: l, onKeyDownCapture: u, onPointerDownCapture: d, "aria-labelledby": f, "aria-describedby": p, ...g } = h(i), _ = J("Content"), v = S(null), b = pe(_, v), x = O(), w = S(!1), D = m(_, {
424
+ function Z({ ref: e, sx: t, className: n, ...r }) {
425
+ let { children: a, withDescription: o = !0, onCancel: s, onClose: c, onClick: l, onKeyDownCapture: u, onPointerDownCapture: d, "aria-labelledby": f, "aria-describedby": p, ...g } = h(r), _ = J("Content"), v = C(null), y = me(_, v), x = N(), S = C(!1), T = m(_, {
410
426
  onCancel: s,
411
427
  onClick: (e) => {
412
- l?.(e), w.current && (w.current = !1, e.preventDefault());
428
+ l?.(e), S.current && (S.current = !1, e.preventDefault());
413
429
  },
414
- onClose: c
415
- }, e, v), k = A([D.ref, _.floating.refs.setFloating]), M = S(_.value), [N, P] = C("");
416
- y(() => {
417
- M.current !== _.value && (M.current = _.value, P(_.valueText));
430
+ onClose: (e) => {
431
+ y.reset(), c?.(e);
432
+ }
433
+ }, e, v, y.transition), O = F([T.ref, _.floating.refs.setFloating]), k = C(_.value), [A, j] = w("");
434
+ b(() => {
435
+ k.current !== _.value && (k.current = _.value, j(_.valueText));
418
436
  }, [_.value, _.valueText]);
419
- let F = {
437
+ let M = {
420
438
  ...g,
421
- ...D,
439
+ ...T,
422
440
  onCancel: (e) => {
423
- e.target === v.current ? D.onCancel(e) : s?.(e);
441
+ e.target === v.current ? T.onCancel(e) : s?.(e);
424
442
  },
425
443
  onClose: (e) => {
426
- e.target === v.current ? D.onClose(e) : c?.(e);
444
+ e.target === v.current ? T.onClose(e) : c?.(e);
427
445
  },
428
446
  onPointerDownCapture: (e) => {
429
447
  d?.(e);
430
- let t = x && j(x.nodesRef.current, _.floating.context.nodeId);
431
- w.current = !!(t && t.id !== _.floating.context.nodeId);
448
+ let t = x && I(x.nodesRef.current, _.floating.context.nodeId);
449
+ S.current = !!(t && t.id !== _.floating.context.nodeId);
432
450
  },
433
451
  onKeyDownCapture: (e) => {
434
452
  if (u?.(e), e.key !== "Escape" || e.defaultPrevented || e.nativeEvent.isComposing) return;
435
453
  e.preventDefault();
436
- let t = x && j(x.nodesRef.current, _.floating.context.nodeId);
437
- (!t || t.id === _.floating.context.nodeId) && b.cancelDrag() && e.stopPropagation();
454
+ let t = x && I(x.nodesRef.current, _.floating.context.nodeId);
455
+ (!t || t.id === _.floating.context.nodeId) && y.cancelDrag() && e.stopPropagation();
438
456
  }
439
- }, I = _.interactions.getFloatingProps(F);
440
- return /* @__PURE__ */ T(t, {
441
- className: r,
442
- styles: ne,
443
- sx: n,
444
- children: (e) => /* @__PURE__ */ E("dialog", {
445
- ...I,
446
- ref: k,
457
+ }, P = _.interactions.getFloatingProps(M);
458
+ return /* @__PURE__ */ E(i, {
459
+ className: n,
460
+ styles: re,
461
+ sx: t,
462
+ children: (e) => /* @__PURE__ */ D("dialog", {
463
+ ...P,
464
+ ref: O,
447
465
  className: e,
448
466
  "data-ui": "bottom-sheet",
449
467
  "aria-modal": "true",
450
468
  "aria-labelledby": [f, _.hasTitle && _.titleId].filter(Boolean).join(" ") || void 0,
451
469
  "aria-describedby": [p, o && _.hasDescription && _.descriptionId].filter(Boolean).join(" ") || void 0,
452
470
  children: [
453
- /* @__PURE__ */ T("div", {
454
- css: re,
471
+ /* @__PURE__ */ E("div", {
472
+ css: ie,
455
473
  "aria-hidden": "true"
456
474
  }),
457
- /* @__PURE__ */ T(q.Provider, {
458
- value: b,
475
+ /* @__PURE__ */ E(q.Provider, {
476
+ value: y,
459
477
  children: a
460
478
  }),
461
- /* @__PURE__ */ T("span", {
479
+ /* @__PURE__ */ E("span", {
462
480
  css: G,
463
481
  role: "status",
464
482
  "aria-live": "polite",
465
483
  "aria-atomic": "true",
466
- children: N
484
+ children: A
467
485
  }),
468
- /* @__PURE__ */ T("span", {
486
+ /* @__PURE__ */ E("span", {
469
487
  css: G,
470
488
  id: _.valueTextId,
471
489
  children: _.valueText
@@ -475,19 +493,19 @@ function Z({ ref: e, sx: n, className: r, ...i }) {
475
493
  });
476
494
  }
477
495
  Z.displayName = "BottomSheet.Content";
478
- function Q({ ref: e, sx: n, className: r, autoFocus: i = !0, ...a }) {
479
- let o = J("Panel"), s = v(q), c = _((e) => {
480
- i && e && !e.querySelector("[autofocus]") && e.setAttribute("autofocus", "");
481
- }, [i]), l = A([
496
+ function Q({ ref: e, sx: t, className: n, autoFocus: r = !0, ...a }) {
497
+ let o = J("Panel"), s = y(q), c = v((e) => {
498
+ r && e && !e.querySelector("[autofocus]") && e.setAttribute("autofocus", "");
499
+ }, [r]), l = F([
482
500
  e,
483
501
  s?.panelRef,
484
502
  c
485
503
  ]);
486
- return /* @__PURE__ */ T(t, {
487
- className: r,
488
- styles: ie,
489
- sx: n,
490
- children: (e) => /* @__PURE__ */ T("div", {
504
+ return /* @__PURE__ */ E(i, {
505
+ className: n,
506
+ styles: ae,
507
+ sx: t,
508
+ children: (e) => /* @__PURE__ */ E("div", {
491
509
  tabIndex: -1,
492
510
  ...a,
493
511
  ref: l,
@@ -498,17 +516,17 @@ function Q({ ref: e, sx: n, className: r, autoFocus: i = !0, ...a }) {
498
516
  });
499
517
  }
500
518
  Q.displayName = "BottomSheet.Panel";
501
- function $({ ref: e, sx: n, className: r, ...i }) {
519
+ function $({ ref: e, sx: t, className: n, ...r }) {
502
520
  J("Header");
503
- let a = v(q), o = Object.fromEntries(Object.entries(a?.gesture ?? {}).map(([e, t]) => [e, (n) => {
504
- i[e]?.(n), n.defaultPrevented || t?.(n);
521
+ let a = y(q), o = Object.fromEntries(Object.entries(a?.gesture ?? {}).map(([e, t]) => [e, (n) => {
522
+ r[e]?.(n), n.defaultPrevented || t?.(n);
505
523
  }]));
506
- return /* @__PURE__ */ T(t, {
507
- className: r,
508
- styles: ae,
509
- sx: n,
510
- children: (t) => /* @__PURE__ */ T("div", {
511
- ...i,
524
+ return /* @__PURE__ */ E(i, {
525
+ className: n,
526
+ styles: oe,
527
+ sx: t,
528
+ children: (t) => /* @__PURE__ */ E("div", {
529
+ ...r,
512
530
  ...o,
513
531
  ref: e,
514
532
  "data-ui": "bottom-sheet-header",
@@ -517,22 +535,22 @@ function $({ ref: e, sx: n, className: r, ...i }) {
517
535
  });
518
536
  }
519
537
  $.displayName = "BottomSheet.Header";
520
- function me({ ref: e, sx: n, className: r, onKeyDown: i, onFocusCapture: a, ...o }) {
521
- let s = J("Body"), c = v(q), l = A([e, c?.bodyRef]), u = S(null);
522
- return y(() => () => {
538
+ function he({ ref: e, sx: t, className: n, onKeyDown: r, onFocusCapture: a, ...o }) {
539
+ let s = J("Body"), c = y(q), l = F([e, c?.bodyRef]), u = C(null);
540
+ return b(() => () => {
523
541
  let e = u.current;
524
542
  e && e.window.cancelAnimationFrame(e.id);
525
- }, []), /* @__PURE__ */ T(t, {
526
- className: r,
527
- styles: oe,
528
- sx: n,
529
- children: (e) => /* @__PURE__ */ T("div", {
543
+ }, []), /* @__PURE__ */ E(i, {
544
+ className: n,
545
+ styles: se,
546
+ sx: t,
547
+ children: (e) => /* @__PURE__ */ E("div", {
530
548
  ...o,
531
549
  ref: l,
532
550
  "data-ui": "bottom-sheet-body",
533
551
  className: e,
534
552
  onKeyDown: (e) => {
535
- i?.(e), !e.defaultPrevented && e.target === e.currentTarget && (e.key === "PageDown" || e.key === " " && !e.shiftKey) && s.value < s.detents.length - 1 && (e.preventDefault(), s.requestValue(s.detents.length - 1));
553
+ r?.(e), !e.defaultPrevented && e.target === e.currentTarget && (e.key === "PageDown" || e.key === " " && !e.shiftKey) && s.value < s.detents.length - 1 && (e.preventDefault(), s.requestValue(s.detents.length - 1));
536
554
  },
537
555
  onFocusCapture: (e) => {
538
556
  if (a?.(e), e.defaultPrevented || e.target === e.currentTarget) return;
@@ -552,66 +570,66 @@ function me({ ref: e, sx: n, className: r, onKeyDown: i, onFocusCapture: a, ...o
552
570
  })
553
571
  });
554
572
  }
555
- me.displayName = "BottomSheet.Body";
556
- function he({ ref: e, sx: n, className: r, ...i }) {
557
- return J("Footer"), /* @__PURE__ */ T(t, {
558
- className: r,
559
- styles: se,
560
- sx: n,
561
- children: (t) => /* @__PURE__ */ T("div", {
562
- ...i,
573
+ he.displayName = "BottomSheet.Body";
574
+ function ge({ ref: e, sx: t, className: n, ...r }) {
575
+ return J("Footer"), /* @__PURE__ */ E(i, {
576
+ className: n,
577
+ styles: ce,
578
+ sx: t,
579
+ children: (t) => /* @__PURE__ */ E("div", {
580
+ ...r,
563
581
  ref: e,
564
582
  "data-ui": "bottom-sheet-footer",
565
583
  className: t
566
584
  })
567
585
  });
568
586
  }
569
- he.displayName = "BottomSheet.Footer";
570
- function ge({ ref: e, sx: n, className: r, children: i, ...a }) {
571
- let { titleId: o, setHasTitle: c } = J("Title"), l = s(i) && i !== "";
572
- return y(() => {
587
+ ge.displayName = "BottomSheet.Footer";
588
+ function _e({ ref: e, sx: t, className: n, children: r, ...a }) {
589
+ let { titleId: o, setHasTitle: c } = J("Title"), l = s(r) && r !== "";
590
+ return b(() => {
573
591
  if (l) return c(!0), () => c(!1);
574
- }, [l, c]), l ? /* @__PURE__ */ T(t, {
575
- className: r,
576
- styles: ce,
577
- sx: n,
578
- children: (t) => /* @__PURE__ */ T("h2", {
592
+ }, [l, c]), l ? /* @__PURE__ */ E(i, {
593
+ className: n,
594
+ styles: le,
595
+ sx: t,
596
+ children: (t) => /* @__PURE__ */ E("h2", {
579
597
  ...a,
580
598
  ref: e,
581
599
  id: o,
582
600
  "data-ui": "bottom-sheet-title",
583
601
  className: t,
584
- children: i
602
+ children: r
585
603
  })
586
604
  }) : null;
587
605
  }
588
- ge.displayName = "BottomSheet.Title";
589
- function _e({ ref: e, sx: n, className: r, children: i, ...a }) {
590
- let { descriptionId: o, setHasDescription: c } = J("Description"), l = s(i) && i !== "";
591
- return y(() => {
606
+ _e.displayName = "BottomSheet.Title";
607
+ function ve({ ref: e, sx: t, className: n, children: r, ...a }) {
608
+ let { descriptionId: o, setHasDescription: c } = J("Description"), l = s(r) && r !== "";
609
+ return b(() => {
592
610
  if (l) return c(!0), () => c(!1);
593
- }, [l, c]), l ? /* @__PURE__ */ T(t, {
594
- className: r,
595
- styles: le,
596
- sx: n,
597
- children: (t) => /* @__PURE__ */ T("p", {
611
+ }, [l, c]), l ? /* @__PURE__ */ E(i, {
612
+ className: n,
613
+ styles: ue,
614
+ sx: t,
615
+ children: (t) => /* @__PURE__ */ E("p", {
598
616
  ...a,
599
617
  ref: e,
600
618
  id: o,
601
619
  "data-ui": "bottom-sheet-description",
602
620
  className: t,
603
- children: i
621
+ children: r
604
622
  })
605
623
  }) : null;
606
624
  }
607
- _e.displayName = "BottomSheet.Description";
608
- function ve({ ref: e, sx: n, className: r, onClick: i, onKeyDown: a, "aria-describedby": o, ...s }) {
609
- let c = J("Handle"), l = v(q), u = c.detents.length - 1;
610
- return /* @__PURE__ */ T(t, {
611
- className: r,
612
- styles: [W, ue],
613
- sx: n,
614
- children: (t) => /* @__PURE__ */ T("button", {
625
+ ve.displayName = "BottomSheet.Description";
626
+ function ye({ ref: e, sx: t, className: n, onClick: r, onKeyDown: a, "aria-describedby": o, ...s }) {
627
+ let c = J("Handle"), l = y(q), u = c.detents.length - 1;
628
+ return /* @__PURE__ */ E(i, {
629
+ className: n,
630
+ styles: [W, de],
631
+ sx: t,
632
+ children: (t) => /* @__PURE__ */ E("button", {
615
633
  type: "button",
616
634
  ...s,
617
635
  ref: e,
@@ -622,7 +640,7 @@ function ve({ ref: e, sx: n, className: r, onClick: i, onKeyDown: a, "aria-descr
622
640
  "aria-expanded": c.value === u,
623
641
  "aria-describedby": [o, c.valueTextId].filter(Boolean).join(" "),
624
642
  onClick: (e) => {
625
- i?.(e), l?.suppressClick.current ? l.suppressClick.current = !1 : e.defaultPrevented || c.requestValue(c.value === u ? 0 : u);
643
+ r?.(e), l?.suppressClick.current ? l.suppressClick.current = !1 : e.defaultPrevented || c.requestValue(c.value === u ? 0 : u);
626
644
  },
627
645
  onKeyDown: (e) => {
628
646
  if (a?.(e), e.defaultPrevented) return;
@@ -638,37 +656,37 @@ function ve({ ref: e, sx: n, className: r, onClick: i, onKeyDown: a, "aria-descr
638
656
  })
639
657
  });
640
658
  }
641
- ve.displayName = "BottomSheet.Handle";
642
- function ye({ ref: e, sx: n, className: r, onClick: i, ...a }) {
659
+ ye.displayName = "BottomSheet.Handle";
660
+ function be({ ref: e, sx: t, className: n, onClick: r, ...a }) {
643
661
  let o = J("Close");
644
- return /* @__PURE__ */ T(t, {
645
- className: r,
662
+ return /* @__PURE__ */ E(i, {
663
+ className: n,
646
664
  styles: W,
647
- sx: n,
648
- children: (t) => /* @__PURE__ */ T("button", {
665
+ sx: t,
666
+ children: (t) => /* @__PURE__ */ E("button", {
649
667
  type: "button",
650
668
  ...a,
651
669
  ref: e,
652
670
  "data-ui": "bottom-sheet-close",
653
671
  className: t,
654
672
  onClick: (e) => {
655
- i?.(e), e.defaultPrevented || o.requestClose();
673
+ r?.(e), e.defaultPrevented || o.requestClose();
656
674
  }
657
675
  })
658
676
  });
659
677
  }
660
- ye.displayName = "BottomSheet.Close";
661
- var be = Object.assign(Y, {
678
+ be.displayName = "BottomSheet.Close";
679
+ var xe = Object.assign(Y, {
662
680
  Trigger: X,
663
681
  Content: Z,
664
682
  Panel: Q,
665
683
  Header: $,
666
- Body: me,
667
- Footer: he,
668
- Title: ge,
669
- Description: _e,
670
- Handle: ve,
671
- Close: ye
684
+ Body: he,
685
+ Footer: ge,
686
+ Title: _e,
687
+ Description: ve,
688
+ Handle: ye,
689
+ Close: be
672
690
  });
673
691
  //#endregion
674
- export { be as t };
692
+ export { xe as t };