@astryx-vue/core 0.30.0 → 0.30.1

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 (239) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-D_lrpZz_.js → AlertDialog-B_p1yL3k.js} +7 -7
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-CxUmt6hX.js → AppShell-D3KZSLvb.js} +5 -5
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/AvatarGroup/index.js +1 -1
  7. package/dist/{AvatarGroup-DT5RbxDa.js → AvatarGroup-Dd-yDDNz.js} +2 -2
  8. package/dist/Banner/index.d.ts +1 -1
  9. package/dist/Banner/index.js +1 -1
  10. package/dist/{Banner-Ctg1puM6.js → Banner-DKmvoMxD.js} +1 -1
  11. package/dist/BottomSheet/index.d.ts +1 -1
  12. package/dist/BottomSheet/index.js +2 -2
  13. package/dist/{BottomSheet-CmNOXlZO.js → BottomSheet-Btf8Yn8k.js} +845 -276
  14. package/dist/{BottomSheet-_K41Oliv.js → BottomSheet-CQGtoh2x.js} +1 -1
  15. package/dist/Breadcrumbs/index.js +2 -2
  16. package/dist/{Breadcrumbs-CdGqhFKU.js → Breadcrumbs-D6825HQI.js} +1 -1
  17. package/dist/Button/index.js +1 -1
  18. package/dist/{Button-CvHeZGf1.js → Button-DdPty46q.js} +2 -2
  19. package/dist/ButtonGroup/index.d.ts +1 -1
  20. package/dist/ButtonGroup/index.js +1 -1
  21. package/dist/{ButtonGroup-CUN_rC57.js → ButtonGroup-oI99JAyN.js} +3 -3
  22. package/dist/Calendar/index.d.ts +1 -1
  23. package/dist/Carousel/index.d.ts +1 -1
  24. package/dist/Carousel/index.js +1 -1
  25. package/dist/{Carousel-CbdHb8MD.js → Carousel-BNr79JpP.js} +1 -1
  26. package/dist/Chat/index.d.ts +1 -1
  27. package/dist/Chat/index.js +1 -1
  28. package/dist/{Chat-B7ccEmTR.js → Chat-BadS0fEx.js} +2 -2
  29. package/dist/CheckboxInput/index.d.ts +1 -1
  30. package/dist/CheckboxInput/index.js +1 -1
  31. package/dist/{CheckboxInput-5r6VWqId.js → CheckboxInput-CzP8gP3v.js} +3 -3
  32. package/dist/CheckboxList/index.d.ts +1 -1
  33. package/dist/CheckboxList/index.js +1 -1
  34. package/dist/{CheckboxListItem-CKeQzQ0W.js → CheckboxListItem-CxBjpX3d.js} +4 -4
  35. package/dist/ClickableCard/index.d.ts +1 -1
  36. package/dist/ClickableCard/index.js +1 -1
  37. package/dist/{ClickableCard-ChmOwgYq.js → ClickableCard-B86P2aiM.js} +1 -1
  38. package/dist/Code/index.js +1 -1
  39. package/dist/{CodeBlock-4i1vvmOc.js → CodeBlock-Cgm4uOhG.js} +1 -1
  40. package/dist/Collapsible/index.js +1 -1
  41. package/dist/{Collapsible-B2vrr_YP.js → Collapsible-CfTN722D.js} +3 -3
  42. package/dist/CommandPalette/index.d.ts +1 -1
  43. package/dist/CommandPalette/index.js +1 -1
  44. package/dist/{CommandPalette-BMwvTjff.js → CommandPalette-BgVwGtdA.js} +2 -2
  45. package/dist/ComplexSelector/index.js +1 -1
  46. package/dist/{ComplexSelector-B4iFyilD.js → ComplexSelector-DqWJVx7H.js} +2 -2
  47. package/dist/ContextMenu/index.d.ts +1 -1
  48. package/dist/ContextMenu/index.js +2 -2
  49. package/dist/{ContextMenu-DquYeIEF.js → ContextMenu-C9dJGu3M.js} +3 -3
  50. package/dist/DateInput/index.d.ts +1 -1
  51. package/dist/DateInput/index.js +1 -1
  52. package/dist/{DateInput-MNNyi4XK.js → DateInput-CGKaozkw.js} +3 -3
  53. package/dist/DateRangeInput/index.d.ts +1 -1
  54. package/dist/DateRangeInput/index.js +1 -1
  55. package/dist/{DateRangeInput-DOHntScL.js → DateRangeInput-BVHXgzXz.js} +3 -3
  56. package/dist/DateTimeInput/index.d.ts +1 -1
  57. package/dist/DateTimeInput/index.js +1 -1
  58. package/dist/{DateTimeInput-BaghFHW6.js → DateTimeInput-DRm3lekJ.js} +5 -5
  59. package/dist/Dialog/index.js +3 -3
  60. package/dist/{Dialog-Ctha_b_L.js → Dialog-BN-NycQr.js} +1 -1
  61. package/dist/{Dialog-CGf64DqF.js → Dialog-Dt0gNuMT.js} +1 -1
  62. package/dist/{DialogHeader-BxTV37GT.js → DialogHeader-CSH2_5v-.js} +2 -2
  63. package/dist/Drawer/index.d.ts +1 -1
  64. package/dist/Drawer/index.js +1 -1
  65. package/dist/{Drawer-DAnc2ut9.js → Drawer-PeMgE4iA.js} +2 -2
  66. package/dist/DropdownMenu/index.js +3 -3
  67. package/dist/{DropdownMenu-BPi0pm0w.js → DropdownMenu-C9bvYZPt.js} +5 -5
  68. package/dist/{DropdownMenu-DuSVFQoS.js → DropdownMenu-_lQQyQCn.js} +6 -6
  69. package/dist/Field/index.js +3 -3
  70. package/dist/{Field-d5R_kRMv.js → Field-D-fRqyso.js} +1 -1
  71. package/dist/{FieldInfoTip-BhKtjq3g.js → FieldInfoTip-Bstp5Lvd.js} +1 -1
  72. package/dist/{FieldLabel-BHNpYFx7.js → FieldLabel-lV_qLaGp.js} +1 -1
  73. package/dist/FileInput/index.js +1 -1
  74. package/dist/{FileInput-BCg4HROm.js → FileInput-CTNnDIkm.js} +3 -3
  75. package/dist/IconButton/index.js +1 -1
  76. package/dist/{IconButton-BZgU_THt.js → IconButton-DPezhVBA.js} +1 -1
  77. package/dist/InfoTip/index.d.ts +1 -1
  78. package/dist/InfoTip/index.js +1 -1
  79. package/dist/{InfoTip-E2-OzKti.js → InfoTip-B4BFfLtT.js} +1 -1
  80. package/dist/{InputClearButton-B62_uexC.js → InputClearButton-CxU3iv-5.js} +1 -1
  81. package/dist/InputGroup/index.js +1 -1
  82. package/dist/{InputGroup-DKBqRYFf.js → InputGroup-CraWGK6Y.js} +1 -1
  83. package/dist/{Item-C8UAQwFQ.js → Item-C9u_kQUO.js} +15 -14
  84. package/dist/Lightbox/index.js +1 -1
  85. package/dist/{Lightbox-Bou1gTfv.js → Lightbox-BNUG9CQ1.js} +1 -1
  86. package/dist/Link/index.d.ts +1 -1
  87. package/dist/Link/index.js +1 -1
  88. package/dist/{Link-CaJ5lmKk.js → Link-Bwgpn-di.js} +1 -1
  89. package/dist/List/index.js +2 -2
  90. package/dist/{ListItem-BlrEngDO.js → ListItem-_lOmngHp.js} +2 -2
  91. package/dist/Markdown/index.js +1 -1
  92. package/dist/{Markdown-BE6vdvPG.js → Markdown-BlEi5UGN.js} +2 -2
  93. package/dist/MobileNav/index.js +1 -1
  94. package/dist/{MobileNavToggle-D5yGMHU4.js → MobileNavToggle-wVa9dzH1.js} +1 -1
  95. package/dist/MoreMenu/index.d.ts +1 -1
  96. package/dist/MoreMenu/index.js +1 -1
  97. package/dist/{MoreMenu-CNzTagqr.js → MoreMenu-MmvMRWv5.js} +3 -3
  98. package/dist/MultiSelector/index.d.ts +1 -1
  99. package/dist/MultiSelector/index.js +1 -1
  100. package/dist/{MultiSelector-MGEiRi1W.js → MultiSelector-DXrKQLmq.js} +4 -4
  101. package/dist/NavItem/index.js +1 -1
  102. package/dist/{NavItem-kj9FbbFS.js → NavItem-D4xHjSTo.js} +1 -1
  103. package/dist/NavMenu/index.js +2 -2
  104. package/dist/{NavMenu-ZN5cqCxO.js → NavMenu-NCg3VjAQ.js} +2 -2
  105. package/dist/{NavMenuItem-xm3e0V8q.js → NavMenuItem-Bla6fYVl.js} +3 -3
  106. package/dist/NumberInput/index.d.ts +1 -1
  107. package/dist/NumberInput/index.js +1 -1
  108. package/dist/{NumberInput-D4ECOHh_.js → NumberInput-DicgvFte.js} +3 -3
  109. package/dist/Outline/index.js +1 -1
  110. package/dist/{Outline-DI9MZnuQ.js → Outline-DlO_97b4.js} +3 -3
  111. package/dist/OverflowList/index.d.ts +1 -1
  112. package/dist/OverflowList/index.js +1 -1
  113. package/dist/{OverflowList-m1tf_fR1.js → OverflowList-BYYz3ePw.js} +1 -1
  114. package/dist/Overlay/index.d.ts +1 -1
  115. package/dist/Pagination/index.js +1 -1
  116. package/dist/{Pagination-BdjxuxM3.js → Pagination-DM_W9Ue-.js} +3 -3
  117. package/dist/Popover/index.js +1 -1
  118. package/dist/{Popover-DEj8xWN-.js → Popover-CxReY-4u.js} +5 -5
  119. package/dist/PowerSearch/index.d.ts +1 -1
  120. package/dist/PowerSearch/index.js +1 -1
  121. package/dist/{PowerSearch-BJDFietK.js → PowerSearch-BwUWZG3p.js} +19 -19
  122. package/dist/Radio/index.d.ts +1 -1
  123. package/dist/Radio/index.js +1 -1
  124. package/dist/{RadioGroup-B3UoJrOA.js → RadioGroup-CsJYGjyx.js} +3 -3
  125. package/dist/RadioList/index.d.ts +1 -1
  126. package/dist/RadioList/index.js +1 -1
  127. package/dist/{RadioListItem-CD7kUGlN.js → RadioListItem-Yc3K82YE.js} +1 -1
  128. package/dist/ScrollableArea/index.d.ts +1 -1
  129. package/dist/SegmentedControl/index.js +1 -1
  130. package/dist/{SegmentedControl-DGd6JlaD.js → SegmentedControl-C-F5dkcG.js} +2 -2
  131. package/dist/SelectableCard/index.d.ts +1 -1
  132. package/dist/SelectableCard/index.js +1 -1
  133. package/dist/{SelectableCard-GRWYx3iD.js → SelectableCard-CwfpgsS8.js} +1 -1
  134. package/dist/Selector/index.d.ts +1 -1
  135. package/dist/Selector/index.js +1 -1
  136. package/dist/{Selector-BD0u-5Fy.js → Selector-bH99g1vj.js} +2 -2
  137. package/dist/SideNav/index.d.ts +1 -1
  138. package/dist/SideNav/index.js +2 -2
  139. package/dist/{SideNav-DoqCLRiX.js → SideNav-C1ZxusAB.js} +6 -6
  140. package/dist/Slider/index.js +1 -1
  141. package/dist/{Slider-DHR7HZ7N.js → Slider-Bq_7Nskr.js} +2 -2
  142. package/dist/Stepper/index.d.ts +1 -1
  143. package/dist/Stepper/index.js +1 -1
  144. package/dist/{Stepper-CCuggsov.js → Stepper-CWluGqBs.js} +1 -1
  145. package/dist/Switch/index.d.ts +1 -1
  146. package/dist/Switch/index.js +1 -1
  147. package/dist/{Switch-CnFC7jGw.js → Switch-DTPvMAxd.js} +2 -2
  148. package/dist/TabList/index.js +1 -1
  149. package/dist/{TabList-fMlX8m6n.js → TabList-C4i7UZkp.js} +3 -3
  150. package/dist/Table/index.d.ts +1 -1
  151. package/dist/Table/index.js +1 -1
  152. package/dist/{Table-DoKmVdhZ.js → Table-ClHIgsKO.js} +13 -13
  153. package/dist/TextArea/index.d.ts +1 -1
  154. package/dist/TextArea/index.js +1 -1
  155. package/dist/{TextArea-y9mmYAIy.js → TextArea-J2_wct0p.js} +4 -4
  156. package/dist/TextInput/index.d.ts +1 -1
  157. package/dist/TextInput/index.js +1 -1
  158. package/dist/{TextInput-BLGEh7vE.js → TextInput-Da1TYd57.js} +4 -4
  159. package/dist/Thumbnail/index.js +1 -1
  160. package/dist/{Thumbnail-Dm8krgGF.js → Thumbnail-1LsaJ4_m.js} +2 -2
  161. package/dist/{TimeField-DS30hnty.js → TimeField-i5ESA500.js} +2 -2
  162. package/dist/TimeInput/index.d.ts +1 -1
  163. package/dist/TimeInput/index.js +1 -1
  164. package/dist/{TimeInput-DcY4b3dg.js → TimeInput-frnKZo1M.js} +2 -2
  165. package/dist/Timestamp/index.d.ts +1 -1
  166. package/dist/Timestamp/index.js +1 -1
  167. package/dist/{Timestamp-BhBuBHu8.js → Timestamp-SseS_qtf.js} +1 -1
  168. package/dist/Toast/index.js +1 -1
  169. package/dist/{Toast-CnLk7LzS.js → Toast-tAq4S96S.js} +149 -20
  170. package/dist/ToggleButton/index.d.ts +1 -1
  171. package/dist/ToggleButton/index.js +1 -1
  172. package/dist/{ToggleButton-B9IJcpdJ.js → ToggleButton-B6hBzeVl.js} +3 -3
  173. package/dist/Token/index.d.ts +1 -1
  174. package/dist/Token/index.js +1 -1
  175. package/dist/{Token-C7Dt5ygK.js → Token-DTGUCgpn.js} +1 -1
  176. package/dist/Tokenizer/index.d.ts +1 -1
  177. package/dist/Tokenizer/index.js +1 -1
  178. package/dist/{Tokenizer-D7ZCTbnf.js → Tokenizer-iFZAuIwu.js} +7 -7
  179. package/dist/Toolbar/index.d.ts +1 -1
  180. package/dist/Toolbar/index.js +1 -1
  181. package/dist/{Toolbar-DSWH8ll4.js → Toolbar-BHkPxDxA.js} +1 -1
  182. package/dist/TopNav/index.d.ts +1 -1
  183. package/dist/TopNav/index.js +1 -1
  184. package/dist/{TopNav-CK_F6Ud5.js → TopNav-CcIayfsW.js} +4 -4
  185. package/dist/TreeList/index.js +1 -1
  186. package/dist/{TreeList-Dh0uAj2B.js → TreeList-Da_OKrv_.js} +4 -4
  187. package/dist/Typeahead/index.js +1 -1
  188. package/dist/{Typeahead-Cs-46obm.js → Typeahead-BD6xXNKh.js} +3 -3
  189. package/dist/VelocityTracker-DgjmootV.js +165 -0
  190. package/dist/{animator-BGq5a6vT.js → animator-CEHDYTfQ.js} +29 -173
  191. package/dist/{batch-BhaAWUIt.js → batch-D2a2MsSW.js} +4 -19
  192. package/dist/bezier-Dko5MnTp.js +37 -0
  193. package/dist/{clickGuard-FrlnECMp.js → clickGuard-C3VmOLhI.js} +2 -1
  194. package/dist/composables/index.js +7 -7
  195. package/dist/composables-Bs0O_SRd.js +2548 -0
  196. package/dist/{context-jtpQfR6F.js → context-NKb_prrS.js} +2 -2
  197. package/dist/{edge-CJIswPTX.js → edge-tj-cLZYh.js} +1 -1
  198. package/dist/{edgeRide-Drk4V-MC.js → edgeRide-DcUqLXE2.js} +4 -4
  199. package/dist/{handle-BazRxHwq.js → handle-CwxCHapJ.js} +1 -1
  200. package/dist/{holdEntranceInput-DMCOeRqu.js → holdEntranceInput-DgimbgGm.js} +1 -1
  201. package/dist/{index-BVeTS-R5.d.ts → index-3qz8Qztx.d.ts} +4 -4
  202. package/dist/{index-Q1oG9yIT.d.ts → index-B-3EGjfQ.d.ts} +2 -2
  203. package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
  204. package/dist/{index-DQ3akoRZ.d.ts → index-Bu4R0WZA.d.ts} +3 -3
  205. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  206. package/dist/{index-BL9fE6gs.d.ts → index-Cw4CUe06.d.ts} +5 -5
  207. package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
  208. package/dist/{index-hUa5oQ5O.d.ts → index-m3DOxOw6.d.ts} +42 -42
  209. package/dist/index.d.ts +9 -9
  210. package/dist/index.js +85 -85
  211. package/dist/{inputHold-BmChuR9x.js → inputHold-DW2LYHb5.js} +4 -4
  212. package/dist/{inputHoldState-pblUT4oh.js → inputHoldState-xntIqr5W.js} +2 -1
  213. package/dist/{inputStream-LZdK8luP.js → inputStream-bPd9eB2b.js} +2 -49
  214. package/dist/isRtlElement-NHuH48AA.js +23 -0
  215. package/dist/{landing-CBaXCGEg.js → landing-Bi7X7w_7.js} +3 -3
  216. package/dist/{lazyBottomSheet-Cmd-WMEE.js → lazyBottomSheet-BVZ1yH8g.js} +1 -1
  217. package/dist/{timing-CSHWQbTJ.js → linearEasing-ScK9LqAY.js} +30 -1
  218. package/dist/{bezier-Df-yGuNZ.js → presentation-Cy_yf56y.js} +2 -39
  219. package/dist/{pressFeedback-DVR5V1b6.js → pressFeedback-9dqGYjxv.js} +2 -2
  220. package/dist/{resolveMotion-CurhYTVC.js → resolveMotion-1cwESYvK.js} +202 -1
  221. package/dist/resolveSnapPoint-DdZyBkT4.js +717 -0
  222. package/dist/{flatTree-BB4yPMNL.js → sharedRealm-H1OrlP0V.js} +49 -1
  223. package/dist/{themeTiming-BFDOPRjK.js → themeTiming-NUkH9HsU.js} +1 -1
  224. package/dist/{touchHold-CFJlSClt.js → touchHold-DXtx7npm.js} +1 -1
  225. package/dist/{useActionGroupTracking-C6BzQzvp.js → useActionGroupTracking-CLFF7FI2.js} +2 -2
  226. package/dist/{useAnimatedLayout-DC2l3WrE.js → useAnimatedLayout-DWWc31RR.js} +1 -1
  227. package/dist/{composables-BTRbNgmR.js → useAttachment-BuNyeUXy.js} +44 -3464
  228. package/dist/{useChatStreamScroll-Cv51kRT0.js → useChatStreamScroll-CuMzkXgD.js} +1 -1
  229. package/dist/{useInputStatusIcon-BngSzjVd.js → useInputStatusIcon-BqV6YzTV.js} +1 -1
  230. package/dist/{useListFocus-CkHfsZp0.js → useListFocus-Ccd_HU9T.js} +2 -23
  231. package/dist/{useMenuDrillIn-BQx6lQMz.js → useMenuDrillIn-Cj6MM77J.js} +1 -1
  232. package/dist/{useMenuEntranceHold-buV5S9yk.js → useMenuEntranceHold-HznOwIry.js} +1 -1
  233. package/dist/{useMenuHover-CfQtWMg-.js → useMenuHover-DoBatZeD.js} +1 -1
  234. package/dist/{useMenuPress-DU6pAIHy.js → useMenuPress-DcwVUsQO.js} +3 -3
  235. package/dist/{usePressFeedback-BhNcuxQv.js → usePressFeedback-DHdmAsMp.js} +1 -1
  236. package/dist/{useTouchHitArea-CNZyA18Y.js → useTouchHitArea-SY1ITxSJ.js} +2 -2
  237. package/package.json +1 -1
  238. package/styles/bottom-sheet.css +28 -8
  239. package/dist/{index-D8lv2BiD.d.ts → index-BqhgeAT4.d.ts} +1 -1
@@ -0,0 +1,165 @@
1
+ import { d as UIKIT_VELOCITY } from "./pressGesture-BzIBmKF2.js";
2
+ //#region src/gestures/VelocityTracker.ts
3
+ const ZERO = {
4
+ x: 0,
5
+ y: 0
6
+ };
7
+ const PAN_CURRENT_WEIGHT = UIKIT_VELOCITY.currentWeight.value;
8
+ const SCROLL_CURRENT_WEIGHT = UIKIT_VELOCITY.scrollReleaseWeight.value;
9
+ function blend(weight, current, previous) {
10
+ return {
11
+ x: weight * current.x + (1 - weight) * previous.x,
12
+ y: weight * current.y + (1 - weight) * previous.y
13
+ };
14
+ }
15
+ var VelocityTracker = class {
16
+ stillness;
17
+ /** The newest sample added, moved or not. */
18
+ newest = null;
19
+ /**
20
+ * The newest moved samples, oldest first (the touch-down counts as the
21
+ * first); the filter reads the last three.
22
+ */
23
+ moved = [];
24
+ /** Moved samples since the touch-down. */
25
+ moves = 0;
26
+ /** The newest pan value, and the one before it. */
27
+ pan = ZERO;
28
+ previousPan = ZERO;
29
+ constructor(options = {}) {
30
+ this.stillness = options.stillness ?? UIKIT_VELOCITY.stillness.value;
31
+ }
32
+ /** Forget every sample (a new gesture). */
33
+ reset() {
34
+ this.newest = null;
35
+ this.moved = [];
36
+ this.moves = 0;
37
+ this.pan = ZERO;
38
+ this.previousPan = ZERO;
39
+ }
40
+ /**
41
+ * Record a position. Timestamps must not go backwards (an older sample is
42
+ * ignored), and a moved sample at the newest moved sample's timestamp
43
+ * replaces it. A sample at the newest position is not motion: it changes
44
+ * no velocity, unless `isMotion` says the contact moved anyway (a pinch's
45
+ * value holding while both fingers move, which reads as zero velocity for
46
+ * that interval).
47
+ */
48
+ add(x, y, time, { isMotion = false } = {}) {
49
+ if (this.newest != null && time < this.newest.time) return;
50
+ this.newest = {
51
+ x,
52
+ y,
53
+ time
54
+ };
55
+ const last = this.moved[this.moved.length - 1];
56
+ if (last != null && x === last.x && y === last.y && !isMotion) return;
57
+ if (last != null && time === last.time) this.moved[this.moved.length - 1] = {
58
+ x,
59
+ y,
60
+ time
61
+ };
62
+ else {
63
+ this.moved.push({
64
+ x,
65
+ y,
66
+ time
67
+ });
68
+ if (this.moved.length > 3) this.moved.shift();
69
+ if (last != null) {
70
+ this.moves += 1;
71
+ this.previousPan = this.pan;
72
+ }
73
+ }
74
+ this.pan = panVelocity(this.moved);
75
+ }
76
+ /**
77
+ * Re-base the samples by an offset (a recognizer whose value was set
78
+ * mid-gesture): every interval, the moved-sample count and the velocity
79
+ * carry on unchanged.
80
+ */
81
+ offsetBy(dx, dy) {
82
+ const shift = (sample) => ({
83
+ ...sample,
84
+ x: sample.x + dx,
85
+ y: sample.y + dy
86
+ });
87
+ this.newest = this.newest == null ? null : shift(this.newest);
88
+ this.moved = this.moved.map(shift);
89
+ }
90
+ /**
91
+ * Re-base the samples by a factor (a pinch whose scale was set
92
+ * mid-gesture): positions and velocities scale with it, and the
93
+ * moved-sample count carries on.
94
+ */
95
+ scaleBy(factor) {
96
+ const scale = (sample) => ({
97
+ ...sample,
98
+ x: sample.x * factor,
99
+ y: sample.y * factor
100
+ });
101
+ this.newest = this.newest == null ? null : scale(this.newest);
102
+ this.moved = this.moved.map(scale);
103
+ this.pan = {
104
+ x: this.pan.x * factor,
105
+ y: this.pan.y * factor
106
+ };
107
+ this.previousPan = {
108
+ x: this.previousPan.x * factor,
109
+ y: this.previousPan.y * factor
110
+ };
111
+ }
112
+ /** Record every sample in order. */
113
+ addSamples(samples) {
114
+ for (const sample of samples) this.add(sample.x, sample.y, sample.time);
115
+ }
116
+ /** The newest sample, if any. */
117
+ get lastSample() {
118
+ return this.newest;
119
+ }
120
+ /**
121
+ * The pan's velocity in px/s. Pass the release's event time to read the
122
+ * release velocity of a dragged surface: 0 after a rest longer than the
123
+ * stillness interval, or with fewer than two moved samples (AST-100 FR2).
124
+ */
125
+ velocity(releaseTime) {
126
+ if (releaseTime != null && !this.releases(releaseTime)) return ZERO;
127
+ return this.pan;
128
+ }
129
+ /**
130
+ * A scrolling surface's release velocity in px/s (paging, a wheel): 0.25
131
+ * times the newest pan value plus 0.75 times the previous one, with the
132
+ * same stillness and two-moved-sample rules (AST-100 FR2).
133
+ */
134
+ scrollVelocity(releaseTime) {
135
+ if (!this.releases(releaseTime)) return ZERO;
136
+ return blend(SCROLL_CURRENT_WEIGHT, this.pan, this.previousPan);
137
+ }
138
+ releases(releaseTime) {
139
+ const last = this.moved[this.moved.length - 1];
140
+ return this.moves >= 2 && last != null && releaseTime - last.time <= this.stillness;
141
+ }
142
+ };
143
+ /**
144
+ * UIPanGestureRecognizer's filter over the newest moved samples: 0.2 x the
145
+ * newest interval's velocity + 0.8 x the previous one's; one interval so far
146
+ * is reported whole, as UIKit does.
147
+ */
148
+ function panVelocity(moved) {
149
+ const n = moved.length;
150
+ if (n < 2) return ZERO;
151
+ const current = pairVelocity(moved[n - 2], moved[n - 1]);
152
+ if (n === 2) return current;
153
+ return blend(PAN_CURRENT_WEIGHT, current, pairVelocity(moved[n - 3], moved[n - 2]));
154
+ }
155
+ /** Instantaneous velocity (px/s) between two samples, zero across no time. */
156
+ function pairVelocity(start, end) {
157
+ const dt = end.time - start.time;
158
+ if (dt <= 0) return ZERO;
159
+ return {
160
+ x: (end.x - start.x) / dt * 1e3,
161
+ y: (end.y - start.y) / dt * 1e3
162
+ };
163
+ }
164
+ //#endregion
165
+ export { VelocityTracker as t };
@@ -1,178 +1,10 @@
1
- import { C as REDUCED_TRANSITION, E as SAMPLE_TOLERANCE, S as PROPERTIES, T as SAMPLE_GRID_MS, _ as END_RECHECK_MS, a as expandList, b as MAX_DURATION_MS, c as isIdentityText, d as round, f as sameShown, g as END_HOLD_MS, h as DECAY_PROPERTIES, i as expand, l as motionNow, m as CHANNEL_OF, n as defaultIsCoarsePointer, o as format, p as CHANNELS, r as defaultPrefersReducedMotion, s as inlineText, t as resolveMotion, u as registerCustomProperty, v as IDENTITY, y as IDENTITY_TEXT } from "./resolveMotion-CurhYTVC.js";
1
+ import { C as PROPERTIES, D as SAMPLE_TOLERANCE, E as SAMPLE_GRID_MS, O as solveSpring, _ as END_HOLD_MS, a as expand, b as IDENTITY_TEXT, c as inlineText, d as registerCustomProperty, f as round, g as DECAY_PROPERTIES, h as CHANNEL_OF, i as defaultPrefersReducedMotion, k as toSpring, l as isIdentityText, m as CHANNELS, o as expandList, p as sameShown, r as defaultIsCoarsePointer, s as format, t as resolveMotion, u as motionNow, v as END_RECHECK_MS, w as REDUCED_TRANSITION, x as MAX_DURATION_MS, y as IDENTITY } from "./resolveMotion-1cwESYvK.js";
2
2
  import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
3
- import { n as registerReducedMotionCrossFade, r as themeReducesMotion, t as reducedMotionCrossFade } from "./timing-CSHWQbTJ.js";
4
- import { l as writePresentedResolve, o as registerPresentedOffset, r as clearPresentedResolve, t as cubicBezier } from "./bezier-Df-yGuNZ.js";
3
+ import { a as themeReducesMotion, i as registerReducedMotionCrossFade, r as reducedMotionCrossFade } from "./linearEasing-ScK9LqAY.js";
4
+ import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve } from "./presentation-Cy_yf56y.js";
5
5
  import { n as isDevBuild } from "./devBuild-G249YcdZ.js";
6
6
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
7
- //#region src/motion/springParameters.ts
8
- /**
9
- * @file springParameters.ts
10
- * @output The `Spring` model and the conversions between Apple's spring
11
- * vocabularies (duration and bounce, response and damping ratio, mass,
12
- * stiffness and damping), and UIKit's relative velocity
13
- * @position Pure math under spring.ts, which re-exports all of it. See
14
- * spring.ts for the sources of each conversion.
15
- */
16
- const TAU = 2 * Math.PI;
17
- function assertPositiveFinite(name, value) {
18
- if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`spring: ${name} must be a positive number, got ${value}`);
19
- }
20
- /**
21
- * SwiftUI's `Spring(duration:bounce:)` and UIKit's
22
- * `UIView.animate(springDuration:bounce:…)`: the WWDC23 equations. Bounce is
23
- * clamped to SwiftUI's documented range (−1, 1].
24
- *
25
- * @example
26
- * ```
27
- * springFromDurationBounce({duration: 0.5, bounce: 0}); // SwiftUI .smooth
28
- * ```
29
- */
30
- function springFromDurationBounce({ duration, bounce }) {
31
- assertPositiveFinite("duration", duration);
32
- if (!Number.isFinite(bounce)) throw new RangeError(`spring: bounce must be finite, got ${bounce}`);
33
- const b = Math.min(1, Math.max(-.999999, bounce));
34
- return {
35
- mass: 1,
36
- stiffness: (TAU / duration) ** 2,
37
- damping: b >= 0 ? (1 - b) * 2 * TAU / duration : 2 * TAU / (duration * (1 + b))
38
- };
39
- }
40
- /**
41
- * SwiftUI's `Spring(response:dampingRatio:)` and
42
- * `Animation.spring(response:dampingFraction:)`. Overdamping (ratio > 1) is
43
- * kept, as SwiftUI keeps it for this initializer.
44
- */
45
- function springFromResponse({ response, dampingRatio }) {
46
- assertPositiveFinite("response", response);
47
- if (!(Number.isFinite(dampingRatio) && dampingRatio >= 0)) throw new RangeError(`spring: dampingRatio must be ≥ 0, got ${dampingRatio}`);
48
- const omega = TAU / response;
49
- return {
50
- mass: 1,
51
- stiffness: omega * omega,
52
- damping: 2 * dampingRatio * omega
53
- };
54
- }
55
- /**
56
- * `CASpringAnimation` / `UISpringTimingParameters(mass:stiffness:damping:)`
57
- * / SwiftUI `Spring(mass:stiffness:damping:allowOverDamping:)`. Like SwiftUI,
58
- * an overdamped spring is treated as critically damped unless
59
- * `allowOverdamping` is set: "a value of false specifies that such cases
60
- * should instead be treated as critically damped".
61
- */
62
- function springFromPhysics({ mass = 1, stiffness, damping, allowOverdamping = false }) {
63
- assertPositiveFinite("mass", mass);
64
- assertPositiveFinite("stiffness", stiffness);
65
- if (!(Number.isFinite(damping) && damping >= 0)) throw new RangeError(`spring: damping must be ≥ 0, got ${damping}`);
66
- const critical = 2 * Math.sqrt(stiffness * mass);
67
- return {
68
- mass,
69
- stiffness,
70
- damping: allowOverdamping ? damping : Math.min(damping, critical)
71
- };
72
- }
73
- /** Undamped angular frequency ω₀ = √(k/m), rad/s. */
74
- function naturalFrequency(spring) {
75
- return Math.sqrt(spring.stiffness / spring.mass);
76
- }
77
- /** Damping ratio ζ = c / (2·√(k·m)). */
78
- function dampingRatioOf(spring) {
79
- return spring.damping / (2 * Math.sqrt(spring.stiffness * spring.mass));
80
- }
81
- /**
82
- * Normalizes a description to the physical `Spring`. A physical description
83
- * gets `springFromPhysics`' treatment: overdamping is clamped to critical, as
84
- * SwiftUI and Core Animation do by default.
85
- */
86
- function toSpring(description) {
87
- if ("stiffness" in description) return springFromPhysics(description);
88
- if ("bounce" in description) return springFromDurationBounce(description);
89
- return springFromResponse(description);
90
- }
91
- //#endregion
92
- //#region src/motion/spring.ts
93
- /**
94
- * Closed-form solution of the spring released at `from` with
95
- * `initialVelocity` (units/s), heading for `to`.
96
- *
97
- * @example
98
- * ```
99
- * const curve = solveSpring(springFromDurationBounce({duration: 0.5, bounce: 0}), {from: 0, to: 300});
100
- * curve.value(0.1); // px after 100 ms
101
- * ```
102
- */
103
- function solveSpring(spring, { from, to, velocity: initialVelocity = 0 }) {
104
- const omega0 = naturalFrequency(spring);
105
- const zeta = dampingRatioOf(spring);
106
- const x0 = from - to;
107
- const v0 = initialVelocity;
108
- let displacement;
109
- let speed;
110
- let envelope;
111
- let envelopePeak = 0;
112
- if (zeta < .999999) {
113
- const decay = zeta * omega0;
114
- const omegaD = omega0 * Math.sqrt(1 - zeta * zeta);
115
- const a = x0;
116
- const b = (v0 + decay * x0) / omegaD;
117
- const bv = (decay * v0 + omega0 * omega0 * x0) / omegaD;
118
- displacement = (t) => Math.exp(-decay * t) * (a * Math.cos(omegaD * t) + b * Math.sin(omegaD * t));
119
- speed = (t) => Math.exp(-decay * t) * (v0 * Math.cos(omegaD * t) - bv * Math.sin(omegaD * t));
120
- const amplitude = Math.abs(a) + Math.abs(b);
121
- envelope = (t) => amplitude * Math.exp(-decay * t);
122
- } else if (zeta <= 1.000001) {
123
- const b = v0 + omega0 * x0;
124
- displacement = (t) => (x0 + b * t) * Math.exp(-omega0 * t);
125
- speed = (t) => (v0 - omega0 * b * t) * Math.exp(-omega0 * t);
126
- const absA = Math.abs(x0);
127
- const absB = Math.abs(b);
128
- envelope = (t) => (absA + absB * t) * Math.exp(-omega0 * t);
129
- envelopePeak = absB > 0 ? Math.max(0, 1 / omega0 - absA / absB) : 0;
130
- } else {
131
- const root = omega0 * Math.sqrt(zeta * zeta - 1);
132
- const r1 = -zeta * omega0 + root;
133
- const r2 = -zeta * omega0 - root;
134
- const c1 = (v0 - r2 * x0) / (r1 - r2);
135
- const c2 = x0 - c1;
136
- displacement = (t) => c1 * Math.exp(r1 * t) + c2 * Math.exp(r2 * t);
137
- speed = (t) => r1 * c1 * Math.exp(r1 * t) + r2 * c2 * Math.exp(r2 * t);
138
- const absC1 = Math.abs(c1);
139
- const absC2 = Math.abs(c2);
140
- envelope = (t) => absC1 * Math.exp(r1 * t) + absC2 * Math.exp(r2 * t);
141
- }
142
- const settleTime = (threshold) => {
143
- if (!(threshold > 0)) return Infinity;
144
- if (zeta === 0) return x0 === 0 && v0 === 0 ? 0 : Infinity;
145
- const start = envelopePeak;
146
- if (envelope(start) <= threshold) return 0;
147
- if (zeta < .999999) {
148
- const amplitude = envelope(0);
149
- return Math.log(amplitude / threshold) / (zeta * omega0);
150
- }
151
- let lo = start;
152
- let hi = Math.max(start, 1 / omega0);
153
- while (envelope(hi) > threshold) {
154
- lo = hi;
155
- hi *= 2;
156
- if (hi > 1e6) return Infinity;
157
- }
158
- for (let i = 0; i < 100 && hi - lo > 1e-12; i++) {
159
- const mid = (lo + hi) / 2;
160
- if (envelope(mid) > threshold) lo = mid;
161
- else hi = mid;
162
- }
163
- return hi;
164
- };
165
- return {
166
- spring,
167
- from,
168
- to,
169
- initialVelocity,
170
- value: (t) => to + displacement(t),
171
- velocity: (t) => speed(t),
172
- settleTime
173
- };
174
- }
175
- //#endregion
7
+ import { t as cubicBezier } from "./bezier-Dko5MnTp.js";
176
8
  //#region src/motion/engine/taskClock.ts
177
9
  /** The task the current calls from rest are made in, until it ends. */
178
10
  let openTask = null;
@@ -2820,6 +2652,30 @@ function initLateEngineState(engine) {
2820
2652
  }
2821
2653
  //#endregion
2822
2654
  //#region src/motion/animator.ts
2655
+ const shared = /* @__PURE__ */ new WeakMap();
2656
+ /**
2657
+ * The one animator for `element` (and `options.pseudoElement`), created on
2658
+ * first use. Code that animates one element from several places (a swipe on
2659
+ * x, a removal on y) shares it, so their curves compose in one `translate`
2660
+ * track and retargeting one axis leaves the other on its curve; two
2661
+ * animators on one element would overwrite each other. `options` apply
2662
+ * when it is created; later calls get the same animator. Never `attach` it
2663
+ * elsewhere or `dispose` it: it lives as long as the element.
2664
+ */
2665
+ function animatorFor(element, options = {}) {
2666
+ let byPseudo = shared.get(element);
2667
+ if (byPseudo == null) {
2668
+ byPseudo = /* @__PURE__ */ new Map();
2669
+ shared.set(element, byPseudo);
2670
+ }
2671
+ const key = options.pseudoElement ?? "";
2672
+ let animator = byPseudo.get(key);
2673
+ if (animator == null) {
2674
+ animator = createMotionEngine(element, options);
2675
+ byPseudo.set(key, animator);
2676
+ }
2677
+ return animator;
2678
+ }
2823
2679
  /**
2824
2680
  * Creates an animator for `element` (or for an element attached later).
2825
2681
  *
@@ -2865,4 +2721,4 @@ function createMotionEngine(element, options = {}) {
2865
2721
  return engine.animator;
2866
2722
  }
2867
2723
  //#endregion
2868
- export { toSpring as i, SETTLE_THRESHOLD as n, solveSpring as r, createMotionEngine as t };
2724
+ export { createMotionEngine as n, SETTLE_THRESHOLD as r, animatorFor as t };
@@ -1,22 +1,7 @@
1
- import { c as sharedState, l as sharedWeakMap, s as sharedMap, u as sharedWeakSet } from "./inputStream-LZdK8luP.js";
2
- import { r as themeReducesMotion, t as reducedMotionCrossFade } from "./timing-CSHWQbTJ.js";
3
- import { l as writePresentedResolve, n as batchPresented, o as registerPresentedOffset, r as clearPresentedResolve } from "./bezier-Df-yGuNZ.js";
4
- import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-BFDOPRjK.js";
5
- //#region src/motion/linearEasing.ts
6
- /**
7
- * @file linearEasing.ts
8
- * @input A duration and the fraction of a move done at each time
9
- * @output Exports `linearEasing`, that curve as CSS `linear()` easing text,
10
- * and `sampleCount`, how many samples cover a duration at 60 per second
11
- * @position Pure math under the motion helpers; no DOM, no React
12
- */
13
- /** Samples per second of a sampled curve: one per frame at 60 Hz. */
14
- const SAMPLES_PER_SECOND = 60;
15
- /** How many samples cover `durationMs`, both ends included: at least 2. */
16
- function sampleCount(durationMs) {
17
- return Math.max(2, Math.ceil(durationMs / 1e3 * SAMPLES_PER_SECOND) + 1);
18
- }
19
- //#endregion
1
+ import { a as sharedWeakMap, i as sharedState, o as sharedWeakSet, r as sharedMap } from "./sharedRealm-H1OrlP0V.js";
2
+ import { a as themeReducesMotion, n as sampleCount, r as reducedMotionCrossFade } from "./linearEasing-ScK9LqAY.js";
3
+ import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve, t as batchPresented } from "./presentation-Cy_yf56y.js";
4
+ import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-NUkH9HsU.js";
20
5
  //#region src/motion/layout/glides.ts
21
6
  /**
22
7
  * @file glides.ts
@@ -0,0 +1,37 @@
1
+ //#region src/motion/bezier.ts
2
+ /** The timing function for `points`: maps time progress to eased progress. */
3
+ function cubicBezier([x1, y1, x2, y2]) {
4
+ const cx = 3 * x1;
5
+ const bx = 3 * (x2 - x1) - cx;
6
+ const ax = 1 - cx - bx;
7
+ const cy = 3 * y1;
8
+ const by = 3 * (y2 - y1) - cy;
9
+ const ay = 1 - cy - by;
10
+ const sampleX = (t) => ((ax * t + bx) * t + cx) * t;
11
+ const sampleY = (t) => ((ay * t + by) * t + cy) * t;
12
+ const slopeX = (t) => (3 * ax * t + 2 * bx) * t + cx;
13
+ const solveT = (x) => {
14
+ let t = x;
15
+ for (let i = 0; i < 8; i++) {
16
+ const error = sampleX(t) - x;
17
+ if (Math.abs(error) < 1e-7) return t;
18
+ const slope = slopeX(t);
19
+ if (Math.abs(slope) < 1e-6) break;
20
+ t -= error / slope;
21
+ }
22
+ let lo = 0;
23
+ let hi = 1;
24
+ t = x;
25
+ for (let i = 0; i < 60; i++) {
26
+ const value = sampleX(t);
27
+ if (Math.abs(value - x) < 1e-7) break;
28
+ if (value < x) lo = t;
29
+ else hi = t;
30
+ t = (lo + hi) / 2;
31
+ }
32
+ return t;
33
+ };
34
+ return (x) => x <= 0 ? 0 : x >= 1 ? 1 : sampleY(solveT(x));
35
+ }
36
+ //#endregion
37
+ export { cubicBezier as t };
@@ -1,4 +1,5 @@
1
- import { a as realmValue, c as sharedState, i as subscribeInput, o as sharedKey } from "./inputStream-LZdK8luP.js";
1
+ import { i as sharedState, n as sharedKey, t as realmValue } from "./sharedRealm-H1OrlP0V.js";
2
+ import { i as subscribeInput } from "./inputStream-bPd9eB2b.js";
2
3
  //#region src/utils/hapticSwitch.ts
3
4
  /**
4
5
  * @file privateAttributes/hapticSwitch.stylex.ts
@@ -1,5 +1,5 @@
1
1
  import { i as useClickableContainer, n as hasInteractiveAncestor, r as hasTextSelection, t as INTERACTIVE_SELECTORS } from "../useClickableContainer-Dtjg-nkm.js";
2
- import { t as usePressFeedback } from "../usePressFeedback-BhNcuxQv.js";
2
+ import { t as usePressFeedback } from "../usePressFeedback-DHdmAsMp.js";
3
3
  import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-zwZQglr2.js";
4
4
  import { t as useDismiss } from "../useDismiss-BKtyCwx4.js";
5
5
  import { n as useLayer } from "../tooltipTriggerRules-zN2xGd9K.js";
@@ -7,13 +7,12 @@ import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
7
7
  import { t as useMediaQuery } from "../useMediaQuery-BzXGT1Aw.js";
8
8
  import { t as characterCount } from "../characters-wTnzjkkR.js";
9
9
  import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
10
- import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-BTRbNgmR.js";
11
- import { t as useListFocus } from "../useListFocus-CkHfsZp0.js";
12
- import { t as useAnimatedLayout } from "../useAnimatedLayout-DC2l3WrE.js";
10
+ import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-Bs0O_SRd.js";
11
+ import { t as useAnimatedLayout } from "../useAnimatedLayout-DWWc31RR.js";
13
12
  import { t as useAnnounce } from "../announce-GU01Oix2.js";
14
13
  import { n as useAppShellMobile, t as appShellMobileKey } from "../useAppShellMobile-DTsyuAJ4.js";
15
14
  import { n as useAsyncSource, t as createStaticSource } from "../useAsyncSource-7GTcK8ep.js";
16
- import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-Cv51kRT0.js";
15
+ import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-CuMzkXgD.js";
17
16
  import { t as useClipboard } from "../useClipboard-CTY3GwFz.js";
18
17
  import { t as useCombobox } from "../useCombobox-BqkTY3bw.js";
19
18
  import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
@@ -25,9 +24,10 @@ import { t as useFocusTrap } from "../useFocusTrap-BD9POtMp.js";
25
24
  import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
26
25
  import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-hv4NYIUi.js";
27
26
  import { t as useInputContainer } from "../useInputContainer-CLhsKYZ6.js";
28
- import { t as useInputStatusIcon } from "../useInputStatusIcon-BngSzjVd.js";
27
+ import { t as useInputStatusIcon } from "../useInputStatusIcon-BqV6YzTV.js";
29
28
  import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
30
- import { a as isMenuPressActivation, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, o as resetMenuPress, r as menuPressStep, s as useLongPress, t as useMenuPress } from "../useMenuPress-DU6pAIHy.js";
29
+ import { t as useListFocus } from "../useListFocus-Ccd_HU9T.js";
30
+ import { a as isMenuPressActivation, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, o as resetMenuPress, r as menuPressStep, s as useLongPress, t as useMenuPress } from "../useMenuPress-DcwVUsQO.js";
31
31
  import { t as useMergedRefs } from "../useMergedRefs-DTGo1cEU.js";
32
32
  import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-Bzvlstgc.js";
33
33
  import { n as useNumberField, t as computeSteppedValue } from "../useNumberField-Dk1BE3-K.js";