@servicetitan/anvil2 1.30.0 → 1.31.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 (314) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{Alert-DQbOVF2P-CWBL0dB1.js → Alert-BW0jYz7s-C_bALro8.js} +6 -7
  3. package/dist/{Alert-DQbOVF2P-CWBL0dB1.js.map → Alert-BW0jYz7s-C_bALro8.js.map} +1 -1
  4. package/dist/{Alert-Cbv8tBx5.js → Alert-KVBpZzAt.js} +2 -2
  5. package/dist/{Alert-Cbv8tBx5.js.map → Alert-KVBpZzAt.js.map} +1 -1
  6. package/dist/Alert.js +1 -1
  7. package/dist/{Announcement-BaytX5oD.js → Announcement-DnaX0j_E.js} +5 -6
  8. package/dist/{Announcement-BaytX5oD.js.map → Announcement-DnaX0j_E.js.map} +1 -1
  9. package/dist/Announcement.js +1 -1
  10. package/dist/{AnvilProvider-H7GLsTTs.js → AnvilProvider-C3E7FZAC.js} +2 -2
  11. package/dist/{AnvilProvider-H7GLsTTs.js.map → AnvilProvider-C3E7FZAC.js.map} +1 -1
  12. package/dist/AnvilProvider.js +1 -1
  13. package/dist/{Avatar-D7OvWjMn.js → Avatar-CylY-nHK.js} +5 -5
  14. package/dist/Avatar-CylY-nHK.js.map +1 -0
  15. package/dist/Avatar.js +1 -1
  16. package/dist/{Badge-CQ4Ha9_F.js → Badge-Lt1iCyYK.js} +2 -2
  17. package/dist/{Badge-CQ4Ha9_F.js.map → Badge-Lt1iCyYK.js.map} +1 -1
  18. package/dist/Badge.js +1 -1
  19. package/dist/{Breadcrumbs-C22dKJ0j.js → Breadcrumbs-DicsW4mk.js} +5 -5
  20. package/dist/{Breadcrumbs-C22dKJ0j.js.map → Breadcrumbs-DicsW4mk.js.map} +1 -1
  21. package/dist/Breadcrumbs.js +1 -1
  22. package/dist/{Button-CDE1Yn-v.js → Button-CRGbkHTO.js} +2 -2
  23. package/dist/{Button-CDE1Yn-v.js.map → Button-CRGbkHTO.js.map} +1 -1
  24. package/dist/{Button-d6MSiD0q-Cu4AHmR0.js → Button-CpDA5JHI-DOaf7xjY.js} +6 -6
  25. package/dist/Button-CpDA5JHI-DOaf7xjY.js.map +1 -0
  26. package/dist/Button.js +1 -1
  27. package/dist/{Button.module-mMu6tAX3-mMu6tAX3.js → Button.module-BdSA8wlr-BdSA8wlr.js} +2 -6
  28. package/dist/Button.module-BdSA8wlr-BdSA8wlr.js.map +1 -0
  29. package/dist/{ButtonCompound-DBnxT5Qg-BeCgteJh.js → ButtonCompound-DbOF1Uyo-D4_cdbXr.js} +3 -3
  30. package/dist/{ButtonCompound-DBnxT5Qg-BeCgteJh.js.map → ButtonCompound-DbOF1Uyo-D4_cdbXr.js.map} +1 -1
  31. package/dist/{ButtonCompound-BBWz8boD.js → ButtonCompound-Dq-3iCqQ.js} +2 -2
  32. package/dist/{ButtonCompound-BBWz8boD.js.map → ButtonCompound-Dq-3iCqQ.js.map} +1 -1
  33. package/dist/ButtonCompound.js +1 -1
  34. package/dist/{ButtonLink-CDRjX8oW.js → ButtonLink-B1b4NVwl.js} +2 -2
  35. package/dist/{ButtonLink-CDRjX8oW.js.map → ButtonLink-B1b4NVwl.js.map} +1 -1
  36. package/dist/ButtonLink.js +1 -1
  37. package/dist/{ButtonToggle-NM3o2ytz.js → ButtonToggle-BdIwMXdH.js} +2 -2
  38. package/dist/{ButtonToggle-NM3o2ytz.js.map → ButtonToggle-BdIwMXdH.js.map} +1 -1
  39. package/dist/{ButtonToggle-lErSF3Pv-BgLkejfC.js → ButtonToggle-D5b-K9BR-g1A3w7M3.js} +6 -6
  40. package/dist/{ButtonToggle-lErSF3Pv-BgLkejfC.js.map → ButtonToggle-D5b-K9BR-g1A3w7M3.js.map} +1 -1
  41. package/dist/ButtonToggle.js +1 -1
  42. package/dist/{Calendar-B25CTzF_.js → Calendar-CqEPLYlk.js} +2 -2
  43. package/dist/{Calendar-B25CTzF_.js.map → Calendar-CqEPLYlk.js.map} +1 -1
  44. package/dist/{Calendar-CP8UPUg1-yIJxH8G4.js → Calendar-DGlqu1W3-Bi5Q7PZR.js} +22 -26
  45. package/dist/{Calendar-CP8UPUg1-yIJxH8G4.js.map → Calendar-DGlqu1W3-Bi5Q7PZR.js.map} +1 -1
  46. package/dist/Calendar.js +1 -1
  47. package/dist/{Card-D5Tu7fxP.js → Card-D-ntWPsN.js} +2 -2
  48. package/dist/{Card-D5Tu7fxP.js.map → Card-D-ntWPsN.js.map} +1 -1
  49. package/dist/{Card-BMCXcu4G-1lTzfu7j.js → Card-DukbBYaA-JN-eYW_v.js} +3 -3
  50. package/dist/{Card-BMCXcu4G-1lTzfu7j.js.map → Card-DukbBYaA-JN-eYW_v.js.map} +1 -1
  51. package/dist/Card.js +1 -1
  52. package/dist/{Checkbox-CL5hvL2A-DqrkDLRn.js → Checkbox-B1OkhWY6-DAwwh6to.js} +7 -7
  53. package/dist/Checkbox-B1OkhWY6-DAwwh6to.js.map +1 -0
  54. package/dist/{Checkbox-7blvrf_a.js → Checkbox-K1ZrRTEZ.js} +2 -2
  55. package/dist/{Checkbox-7blvrf_a.js.map → Checkbox-K1ZrRTEZ.js.map} +1 -1
  56. package/dist/Checkbox.js +1 -1
  57. package/dist/{Checkbox.module-DMrZNVpb-DL8zOKBQ.js → Checkbox.module-DMrZNVpb-DOdjd86H.js} +2 -2
  58. package/dist/{Checkbox.module-DMrZNVpb-DL8zOKBQ.js.map → Checkbox.module-DMrZNVpb-DOdjd86H.js.map} +1 -1
  59. package/dist/{Chip-DVIhldss-BFNWyxbZ.js → Chip-DX922SMw-13SW9xaV.js} +7 -9
  60. package/dist/Chip-DX922SMw-13SW9xaV.js.map +1 -0
  61. package/dist/{Chip-hM1s-8Zy.js → Chip-i-OBdpYm.js} +2 -2
  62. package/dist/{Chip-hM1s-8Zy.js.map → Chip-i-OBdpYm.js.map} +1 -1
  63. package/dist/Chip.js +1 -1
  64. package/dist/{Combobox-DB-iA60L.js → Combobox-3SWKXAYu.js} +119 -135
  65. package/dist/Combobox-3SWKXAYu.js.map +1 -0
  66. package/dist/Combobox.js +1 -1
  67. package/dist/{DateField-Be6t2RVY.js → DateField-YjnaTpA4.js} +63 -41
  68. package/dist/DateField-YjnaTpA4.js.map +1 -0
  69. package/dist/DateField.js +1 -1
  70. package/dist/{Details-CSkJPqp0.js → Details-CtCidzce.js} +8 -8
  71. package/dist/Details-CtCidzce.js.map +1 -0
  72. package/dist/Details.js +1 -1
  73. package/dist/{Dialog-7rYeJxoF.js → Dialog-DDF9Xyrs.js} +2 -2
  74. package/dist/{Dialog-7rYeJxoF.js.map → Dialog-DDF9Xyrs.js.map} +1 -1
  75. package/dist/Dialog.js +1 -1
  76. package/dist/{Divider-BYJdiS0V.js → Divider-By5PjW0_.js} +2 -2
  77. package/dist/{Divider-BYJdiS0V.js.map → Divider-By5PjW0_.js.map} +1 -1
  78. package/dist/Divider.js +1 -1
  79. package/dist/DndSort.js +101 -103
  80. package/dist/DndSort.js.map +1 -1
  81. package/dist/{Drawer-3T2QLWa7.js → Drawer-Bffoaren.js} +2 -2
  82. package/dist/{Drawer-3T2QLWa7.js.map → Drawer-Bffoaren.js.map} +1 -1
  83. package/dist/Drawer.js +1 -1
  84. package/dist/{EditCard-C6oNHLbs.js → EditCard-DripZNiC.js} +6 -6
  85. package/dist/{EditCard-C6oNHLbs.js.map → EditCard-DripZNiC.js.map} +1 -1
  86. package/dist/EditCard.js +1 -1
  87. package/dist/{Flex-CBbc0w2g.js → Flex-CbkDTKfn.js} +2 -2
  88. package/dist/{Flex-CBbc0w2g.js.map → Flex-CbkDTKfn.js.map} +1 -1
  89. package/dist/{Flex-DbC3MGto-Cby3Kmzl.js → Flex-DlNiHX1G-DiUzqGqj.js} +3 -3
  90. package/dist/{Flex-DbC3MGto-Cby3Kmzl.js.map → Flex-DlNiHX1G-DiUzqGqj.js.map} +1 -1
  91. package/dist/Flex.js +1 -1
  92. package/dist/{Grid-d8fZM9zL.js → Grid-LhlvpLTc.js} +2 -2
  93. package/dist/{Grid-d8fZM9zL.js.map → Grid-LhlvpLTc.js.map} +1 -1
  94. package/dist/Grid.js +1 -1
  95. package/dist/{HammerProvider-_IuJrI_8-DvoqhQrc.js → HammerProvider-B4ULvVBh-DKGRrw3q.js} +4 -3
  96. package/dist/{HammerProvider-_IuJrI_8-DvoqhQrc.js.map → HammerProvider-B4ULvVBh-DKGRrw3q.js.map} +1 -1
  97. package/dist/{Helper-xRgl5fRU-Beh4oF7-.js → Helper-DBmwQvEP-Z2T8bXHx.js} +3 -3
  98. package/dist/{Helper-xRgl5fRU-Beh4oF7-.js.map → Helper-DBmwQvEP-Z2T8bXHx.js.map} +1 -1
  99. package/dist/{Icon-CBPJUFc8-vsWbtf2w.js → Icon-DuwR7O2z-DwPHQiBF.js} +4 -4
  100. package/dist/Icon-DuwR7O2z-DwPHQiBF.js.map +1 -0
  101. package/dist/{Icon-DEnUtsNv.js → Icon-U0zxixxg.js} +2 -2
  102. package/dist/{Icon-DEnUtsNv.js.map → Icon-U0zxixxg.js.map} +1 -1
  103. package/dist/Icon.js +1 -1
  104. package/dist/{InputMask-DF40Qlfh.js → InputMask-DdF90b0D.js} +2 -2
  105. package/dist/{InputMask-DF40Qlfh.js.map → InputMask-DdF90b0D.js.map} +1 -1
  106. package/dist/{InputMask-Dl8W0R4F-CFgFWCfT.js → InputMask-MW0aui2v-d0ziTRnR.js} +4 -4
  107. package/dist/InputMask-MW0aui2v-d0ziTRnR.js.map +1 -0
  108. package/dist/InputMask.js +1 -1
  109. package/dist/{Link-D-9J_gG_.js → Link-DDBu_8WX.js} +2 -2
  110. package/dist/{Link-D-9J_gG_.js.map → Link-DDBu_8WX.js.map} +1 -1
  111. package/dist/{Link-CFxV5mt6-BRludqlY.js → Link-DIyZHRIV-DXK6prKs.js} +4 -4
  112. package/dist/{Link-CFxV5mt6-BRludqlY.js.map → Link-DIyZHRIV-DXK6prKs.js.map} +1 -1
  113. package/dist/Link.js +1 -1
  114. package/dist/{ListView-D4Oo5dk0.js → ListView-BU0TCQ4k.js} +5 -5
  115. package/dist/{ListView-D4Oo5dk0.js.map → ListView-BU0TCQ4k.js.map} +1 -1
  116. package/dist/ListView.js +1 -1
  117. package/dist/{ListView.module-BqvHsIQ9-BqvHsIQ9.js → ListView.module-3I2M0Pia-3I2M0Pia.js} +2 -4
  118. package/dist/ListView.module-3I2M0Pia-3I2M0Pia.js.map +1 -0
  119. package/dist/{Listbox-s35NI8bz.js → Listbox-BQP8FRTF.js} +2 -2
  120. package/dist/{Listbox-s35NI8bz.js.map → Listbox-BQP8FRTF.js.map} +1 -1
  121. package/dist/{Listbox-BmSdg9ON-BPZge6P6.js → Listbox-CthJSHQ3-Zsuei4zJ.js} +12 -12
  122. package/dist/Listbox-CthJSHQ3-Zsuei4zJ.js.map +1 -0
  123. package/dist/Listbox.js +1 -1
  124. package/dist/{LocalizationProvider-BMrx361C-CWnp1u1b.js → LocalizationProvider-BrxC1a2D-B1iQENoJ.js} +2 -2
  125. package/dist/{LocalizationProvider-BMrx361C-CWnp1u1b.js.map → LocalizationProvider-BrxC1a2D-B1iQENoJ.js.map} +1 -1
  126. package/dist/LocalizationProvider.js +1 -1
  127. package/dist/{Menu-C2lb6-aj.js → Menu-BtinbJQ_.js} +11 -20
  128. package/dist/Menu-BtinbJQ_.js.map +1 -0
  129. package/dist/Menu.js +1 -1
  130. package/dist/{Overflow-4SGStPcA.js → Overflow-CKVmrb1N.js} +2 -2
  131. package/dist/{Overflow-4SGStPcA.js.map → Overflow-CKVmrb1N.js.map} +1 -1
  132. package/dist/{Overflow-BkDEkIkh-doip0lit.js → Overflow-DXWJ1gWT-tN8GInwt.js} +7 -7
  133. package/dist/Overflow-DXWJ1gWT-tN8GInwt.js.map +1 -0
  134. package/dist/Overflow.js +1 -1
  135. package/dist/{Page-DPU93uSw.js → Page-DnroZYyr.js} +20 -16
  136. package/dist/Page-DnroZYyr.js.map +1 -0
  137. package/dist/Page.js +1 -1
  138. package/dist/{Popover-DPh9L2_b.js → Popover-C7aIgvIl.js} +2 -2
  139. package/dist/{Popover-DPh9L2_b.js.map → Popover-C7aIgvIl.js.map} +1 -1
  140. package/dist/{Popover-BtFSJ9la-B2Bq0bTL.js → Popover-DDhjaX2z-waNj8Iba.js} +13 -16
  141. package/dist/Popover-DDhjaX2z-waNj8Iba.js.map +1 -0
  142. package/dist/Popover.js +1 -1
  143. package/dist/{ProgressBar-DCHzTUlk.js → ProgressBar-BfdgLTrw.js} +2 -2
  144. package/dist/{ProgressBar-DCHzTUlk.js.map → ProgressBar-BfdgLTrw.js.map} +1 -1
  145. package/dist/ProgressBar-YrCJtlvK-BlhqSUr-.js +2539 -0
  146. package/dist/ProgressBar-YrCJtlvK-BlhqSUr-.js.map +1 -0
  147. package/dist/ProgressBar-YrCJtlvK.css +736 -0
  148. package/dist/ProgressBar.js +1 -1
  149. package/dist/{Radio-_hd4Okk4-CYQgsyUe.js → Radio-DE79qJFW-Dt9tFahU.js} +6 -6
  150. package/dist/{Radio-_hd4Okk4-CYQgsyUe.js.map → Radio-DE79qJFW-Dt9tFahU.js.map} +1 -1
  151. package/dist/{Radio-DrKWItPI.js → Radio-vM4P73jb.js} +2 -2
  152. package/dist/{Radio-DrKWItPI.js.map → Radio-vM4P73jb.js.map} +1 -1
  153. package/dist/Radio.js +1 -1
  154. package/dist/{SearchField-Gt55jMYS.js → SearchField-DMx9YWba.js} +6 -9
  155. package/dist/SearchField-DMx9YWba.js.map +1 -0
  156. package/dist/SearchField.js +1 -1
  157. package/dist/{SegmentedControl-CxzfDyuq.js → SegmentedControl-D-kdk7BJ.js} +5 -5
  158. package/dist/{SegmentedControl-CxzfDyuq.js.map → SegmentedControl-D-kdk7BJ.js.map} +1 -1
  159. package/dist/SegmentedControl.js +1 -1
  160. package/dist/SelectCard.js +1 -1
  161. package/dist/{SelectCardGroup-BqqYDfvw.js → SelectCardGroup-u0bbiRwe.js} +13 -10
  162. package/dist/SelectCardGroup-u0bbiRwe.js.map +1 -0
  163. package/dist/{SideNav-B2j-pcOF.js → SideNav-BIV-c-1o.js} +10 -31
  164. package/dist/SideNav-BIV-c-1o.js.map +1 -0
  165. package/dist/SideNav.js +1 -1
  166. package/dist/{Skeleton-B7npJs-G.js → Skeleton-CO1kBH8A.js} +2 -2
  167. package/dist/{Skeleton-B7npJs-G.js.map → Skeleton-CO1kBH8A.js.map} +1 -1
  168. package/dist/Skeleton.js +1 -1
  169. package/dist/{Spinner-DdirfhPp-c7cDfIit.js → Spinner-B55mSnmk-B3oOSVLo.js} +3 -6
  170. package/dist/Spinner-B55mSnmk-B3oOSVLo.js.map +1 -0
  171. package/dist/{Spinner-C0SZj1Xr.js → Spinner-DUXjTDlr.js} +2 -2
  172. package/dist/{Spinner-C0SZj1Xr.js.map → Spinner-DUXjTDlr.js.map} +1 -1
  173. package/dist/Spinner.js +1 -1
  174. package/dist/{Stepper-uGzkVA9L.js → Stepper-tJSGpsW1.js} +14 -14
  175. package/dist/Stepper-tJSGpsW1.js.map +1 -0
  176. package/dist/Stepper.js +1 -1
  177. package/dist/{Switch-DksEtlPC.js → Switch-CksM88Ks.js} +3 -3
  178. package/dist/{Switch-DksEtlPC.js.map → Switch-CksM88Ks.js.map} +1 -1
  179. package/dist/Switch.js +1 -1
  180. package/dist/{Tab-Bmh5FvNz.js → Tab-qn_tnvF4.js} +11 -11
  181. package/dist/Tab-qn_tnvF4.js.map +1 -0
  182. package/dist/Tab.js +1 -1
  183. package/dist/{Text-Cww9Ifu2-CQ6MA3B0.js → Text-BCRKWTMM-BvIdEgVR.js} +3 -3
  184. package/dist/{Text-Cww9Ifu2-CQ6MA3B0.js.map → Text-BCRKWTMM-BvIdEgVR.js.map} +1 -1
  185. package/dist/{Text-BG5eKasv.js → Text-CF2KcnWA.js} +2 -2
  186. package/dist/{Text-BG5eKasv.js.map → Text-CF2KcnWA.js.map} +1 -1
  187. package/dist/Text.js +1 -1
  188. package/dist/{TextField-D-wM0LoN.js → TextField-B7Asq1aB.js} +2 -2
  189. package/dist/{TextField-D-wM0LoN.js.map → TextField-B7Asq1aB.js.map} +1 -1
  190. package/dist/{TextField-D5PH3ElU-CBDiTprI.js → TextField-BTgxdt7I-Da1U7oOT.js} +8 -8
  191. package/dist/{TextField-D5PH3ElU-CBDiTprI.js.map → TextField-BTgxdt7I-Da1U7oOT.js.map} +1 -1
  192. package/dist/TextField.js +1 -1
  193. package/dist/{TextField.module-B411p3ST-B411p3ST.js → TextField.module-ZWACK1yV-ZWACK1yV.js} +2 -4
  194. package/dist/TextField.module-ZWACK1yV-ZWACK1yV.js.map +1 -0
  195. package/dist/{Textarea-DC-Mo0BS.js → Textarea-CaMvxI9Y.js} +10 -12
  196. package/dist/Textarea-CaMvxI9Y.js.map +1 -0
  197. package/dist/Textarea.js +1 -1
  198. package/dist/{ThemeProvider-BvlBau8H-cHEbjUN3.js → ThemeProvider-DKkyZPDr-BH0VGW7C.js} +3 -3
  199. package/dist/{ThemeProvider-BvlBau8H-cHEbjUN3.js.map → ThemeProvider-DKkyZPDr-BH0VGW7C.js.map} +1 -1
  200. package/dist/{ThemeProvider-C99PP3mE.js → ThemeProvider-Drjj0EtN.js} +2 -2
  201. package/dist/{ThemeProvider-C99PP3mE.js.map → ThemeProvider-Drjj0EtN.js.map} +1 -1
  202. package/dist/ThemeProvider.js +1 -1
  203. package/dist/Toast.js +1 -1
  204. package/dist/{Toolbar-C3h5EZAS.js → Toolbar-OYgCC3Up.js} +14 -14
  205. package/dist/Toolbar-OYgCC3Up.js.map +1 -0
  206. package/dist/Toolbar.js +1 -1
  207. package/dist/{Tooltip-DSgdpQUh.js → Tooltip-rDXwk4az.js} +2 -2
  208. package/dist/{Tooltip-DSgdpQUh.js.map → Tooltip-rDXwk4az.js.map} +1 -1
  209. package/dist/Tooltip.js +1 -1
  210. package/dist/{check_circle-C3DDoVXp.js → check_circle-BGfigqq-.js} +4 -2
  211. package/dist/check_circle-BGfigqq-.js.map +1 -0
  212. package/dist/components/DateField/DateField.d.ts +3 -1
  213. package/dist/components/SelectCard/SelectCard.d.ts +4 -1
  214. package/dist/components/Toast/Toaster.d.ts +11 -5
  215. package/dist/components/Toast/toast.d.ts +1 -4
  216. package/dist/{floating-ui.react-4AwURJA3.js → floating-ui.react-Domgunz0.js} +667 -124
  217. package/dist/floating-ui.react-Domgunz0.js.map +1 -0
  218. package/dist/hooks/index.d.ts +1 -0
  219. package/dist/hooks/useBreakpoint/index.d.ts +1 -0
  220. package/dist/index.js +54 -53
  221. package/dist/index.js.map +1 -1
  222. package/dist/internal/components/Shadow.d.ts +3 -0
  223. package/dist/{proxy-Cy56d5Wf.js → proxy-CreWmH-e.js} +64 -53
  224. package/dist/proxy-CreWmH-e.js.map +1 -0
  225. package/dist/toast-KF3GWYbk.js +96 -0
  226. package/dist/toast-KF3GWYbk.js.map +1 -0
  227. package/dist/{use-reduced-motion-BR76mHGj.js → use-reduced-motion-znCm41qB.js} +2 -2
  228. package/dist/{use-reduced-motion-BR76mHGj.js.map → use-reduced-motion-znCm41qB.js.map} +1 -1
  229. package/dist/{useAccessibleColor-CR4Gw85S-D9BFnrDq.js → useAccessibleColor-Dc6B_M-Z-BYKjkGRg.js} +4 -4
  230. package/dist/useAccessibleColor-Dc6B_M-Z-BYKjkGRg.js.map +1 -0
  231. package/dist/useAccessibleColor.js +1 -1
  232. package/dist/useBreakpoint-7QkBkSeP-Cv5fnZxs.js +50 -0
  233. package/dist/useBreakpoint-7QkBkSeP-Cv5fnZxs.js.map +1 -0
  234. package/dist/useBreakpoint.d.ts +6 -0
  235. package/dist/useBreakpoint.js +2 -0
  236. package/dist/useBreakpoint.js.map +1 -0
  237. package/dist/{useLayoutPropsUtil-nygE3Tbf-DIwTnwoj.js → useLayoutPropsUtil-3B2XYWSr-ChuzrydG.js} +6 -48
  238. package/dist/useLayoutPropsUtil-3B2XYWSr-ChuzrydG.js.map +1 -0
  239. package/dist/useLinkStyles.js +1 -1
  240. package/dist/useSize.js +4 -4
  241. package/dist/useSize.js.map +1 -1
  242. package/dist/useTrackingId.js +1 -1
  243. package/dist/useTrackingId.js.map +1 -1
  244. package/package.json +2 -5
  245. package/dist/Avatar-D7OvWjMn.js.map +0 -1
  246. package/dist/Button-d6MSiD0q-Cu4AHmR0.js.map +0 -1
  247. package/dist/Button.module-mMu6tAX3-mMu6tAX3.js.map +0 -1
  248. package/dist/Checkbox-CL5hvL2A-DqrkDLRn.js.map +0 -1
  249. package/dist/Chip-DVIhldss-BFNWyxbZ.js.map +0 -1
  250. package/dist/Combobox-DB-iA60L.js.map +0 -1
  251. package/dist/DateField-Be6t2RVY.js.map +0 -1
  252. package/dist/Details-CSkJPqp0.js.map +0 -1
  253. package/dist/Dialog-DMSckzRc-COM9hr-y.js +0 -311
  254. package/dist/Dialog-DMSckzRc-COM9hr-y.js.map +0 -1
  255. package/dist/Dialog-DMSckzRc.css +0 -140
  256. package/dist/Drawer-iKaJNkT6-J-zqSmeZ.js +0 -301
  257. package/dist/Drawer-iKaJNkT6-J-zqSmeZ.js.map +0 -1
  258. package/dist/Drawer-iKaJNkT6.css +0 -153
  259. package/dist/Icon-CBPJUFc8-vsWbtf2w.js.map +0 -1
  260. package/dist/InputMask-Dl8W0R4F-CFgFWCfT.js.map +0 -1
  261. package/dist/Label-XW1sd1Ih-BheXSCrx.js +0 -51
  262. package/dist/Label-XW1sd1Ih-BheXSCrx.js.map +0 -1
  263. package/dist/Label-XW1sd1Ih.css +0 -62
  264. package/dist/ListView.module-BqvHsIQ9-BqvHsIQ9.js.map +0 -1
  265. package/dist/Listbox-BmSdg9ON-BPZge6P6.js.map +0 -1
  266. package/dist/Menu-C2lb6-aj.js.map +0 -1
  267. package/dist/Overflow-BkDEkIkh-doip0lit.js.map +0 -1
  268. package/dist/Page-DPU93uSw.js.map +0 -1
  269. package/dist/Popover-BtFSJ9la-B2Bq0bTL.js.map +0 -1
  270. package/dist/ProgressBar-DAjwDjpq-DaeVMPEZ.js +0 -130
  271. package/dist/ProgressBar-DAjwDjpq-DaeVMPEZ.js.map +0 -1
  272. package/dist/ProgressBar-DAjwDjpq.css +0 -91
  273. package/dist/SearchField-Gt55jMYS.js.map +0 -1
  274. package/dist/SelectCardGroup-BqqYDfvw.js.map +0 -1
  275. package/dist/SideNav-B2j-pcOF.js.map +0 -1
  276. package/dist/Spinner-DdirfhPp-c7cDfIit.js.map +0 -1
  277. package/dist/Stepper-uGzkVA9L.js.map +0 -1
  278. package/dist/Tab-Bmh5FvNz.js.map +0 -1
  279. package/dist/TextField.module-B411p3ST-B411p3ST.js.map +0 -1
  280. package/dist/Textarea-DC-Mo0BS.js.map +0 -1
  281. package/dist/Toolbar-C3h5EZAS.js.map +0 -1
  282. package/dist/Tooltip-EEOs63Lz-eY2HC-SU.js +0 -631
  283. package/dist/Tooltip-EEOs63Lz-eY2HC-SU.js.map +0 -1
  284. package/dist/Tooltip-EEOs63Lz.css +0 -102
  285. package/dist/check_circle-C3DDoVXp.js.map +0 -1
  286. package/dist/floating-ui.react-4AwURJA3.js.map +0 -1
  287. package/dist/index.esm-CunAFnrh.js +0 -546
  288. package/dist/index.esm-CunAFnrh.js.map +0 -1
  289. package/dist/info-CYpG6tcI.js +0 -6
  290. package/dist/info-CYpG6tcI.js.map +0 -1
  291. package/dist/proxy-Cy56d5Wf.js.map +0 -1
  292. package/dist/supportsPopover-8aJR37cf-8aJR37cf.js +0 -6
  293. package/dist/supportsPopover-8aJR37cf-8aJR37cf.js.map +0 -1
  294. package/dist/toast-BckKmAqz.js +0 -937
  295. package/dist/toast-BckKmAqz.js.map +0 -1
  296. package/dist/toast.css +0 -216
  297. package/dist/useAccessibleColor-CR4Gw85S-D9BFnrDq.js.map +0 -1
  298. package/dist/useKeyboardFocusables-CwVMAe5C-DtjYOAmt.js +0 -61
  299. package/dist/useKeyboardFocusables-CwVMAe5C-DtjYOAmt.js.map +0 -1
  300. package/dist/useLayoutPropsUtil-nygE3Tbf-DIwTnwoj.js.map +0 -1
  301. /package/dist/{Alert-DQbOVF2P.css → Alert-BW0jYz7s.css} +0 -0
  302. /package/dist/{Calendar-CP8UPUg1.css → Calendar-DGlqu1W3.css} +0 -0
  303. /package/dist/{Card-BMCXcu4G.css → Card-DukbBYaA.css} +0 -0
  304. /package/dist/{Chip-DVIhldss.css → Chip-DX922SMw.css} +0 -0
  305. /package/dist/{Flex-DbC3MGto.css → Flex-DlNiHX1G.css} +0 -0
  306. /package/dist/{Helper-xRgl5fRU.css → Helper-DBmwQvEP.css} +0 -0
  307. /package/dist/{Icon-CBPJUFc8.css → Icon-DuwR7O2z.css} +0 -0
  308. /package/dist/{Link-CFxV5mt6.css → Link-DIyZHRIV.css} +0 -0
  309. /package/dist/{Overflow-BkDEkIkh.css → Overflow-DXWJ1gWT.css} +0 -0
  310. /package/dist/{Popover-BtFSJ9la.css → Popover-DDhjaX2z.css} +0 -0
  311. /package/dist/{Radio-_hd4Okk4.css → Radio-DE79qJFW.css} +0 -0
  312. /package/dist/{Spinner-DdirfhPp.css → Spinner-B55mSnmk.css} +0 -0
  313. /package/dist/{Text-Cww9Ifu2.css → Text-BCRKWTMM.css} +0 -0
  314. /package/dist/{ThemeProvider-BvlBau8H.css → ThemeProvider-DKkyZPDr.css} +0 -0
@@ -1,4 +1,5 @@
1
1
  export * from './useAccessibleColor';
2
+ export * from './useBreakpoint';
2
3
  export * from './useLinkStyles';
3
4
  export * from './useMergeRefs';
4
5
  export * from './usePrefersColorScheme';
@@ -0,0 +1 @@
1
+ export { useBreakpoint, useBreakpoint as default, type BreakpointReturnProps, } from '@servicetitan/hammer-react';
package/dist/index.js CHANGED
@@ -1,64 +1,65 @@
1
- export { A as Alert } from './Alert-Cbv8tBx5.js';
2
- export { A as Announcement } from './Announcement-BaytX5oD.js';
3
- export { A as Avatar, a as AvatarGroup } from './Avatar-D7OvWjMn.js';
4
- export { B as Badge } from './Badge-CQ4Ha9_F.js';
5
- export { B as Breadcrumbs, a as BreadcrumbsElement, b as BreadcrumbsLink } from './Breadcrumbs-C22dKJ0j.js';
6
- export { B as Button } from './Button-CDE1Yn-v.js';
7
- export { B as ButtonCompound } from './ButtonCompound-BBWz8boD.js';
8
- export { B as ButtonLink } from './ButtonLink-CDRjX8oW.js';
9
- export { B as ButtonToggle } from './ButtonToggle-NM3o2ytz.js';
10
- export { C as Calendar, b as CalendarMonth, c as CalendarNext, a as CalendarNow, d as CalendarPrev } from './Calendar-B25CTzF_.js';
11
- export { C as Card } from './Card-D5Tu7fxP.js';
12
- export { C as Checkbox, a as CheckboxGroup } from './Checkbox-7blvrf_a.js';
13
- export { C as Chip } from './Chip-hM1s-8Zy.js';
14
- export { C as Combobox, e as ComboboxContent, a as ComboboxElement, i as ComboboxEmpty, g as ComboboxItem, h as ComboboxItemAddNew, f as ComboboxList, c as ComboboxSearchField, b as ComboboxSelect, d as ComboboxSelectTrigger, u as useInfiniteCombobox } from './Combobox-DB-iA60L.js';
15
- export { D as DateField } from './DateField-Be6t2RVY.js';
16
- export { D as Details, b as DetailsContent, a as DetailsSummary } from './Details-CSkJPqp0.js';
17
- export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader } from './Dialog-7rYeJxoF.js';
18
- export { D as Divider } from './Divider-BYJdiS0V.js';
19
- export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader } from './Drawer-3T2QLWa7.js';
20
- export { E as EditCard } from './EditCard-C6oNHLbs.js';
21
- export { F as Flex } from './Flex-CBbc0w2g.js';
22
- export { G as Grid } from './Grid-d8fZM9zL.js';
23
- export { I as Icon } from './Icon-DEnUtsNv.js';
24
- export { I as InputMask } from './InputMask-DF40Qlfh.js';
1
+ export { A as Alert } from './Alert-KVBpZzAt.js';
2
+ export { A as Announcement } from './Announcement-DnaX0j_E.js';
3
+ export { A as Avatar, a as AvatarGroup } from './Avatar-CylY-nHK.js';
4
+ export { B as Badge } from './Badge-Lt1iCyYK.js';
5
+ export { B as Breadcrumbs, a as BreadcrumbsElement, b as BreadcrumbsLink } from './Breadcrumbs-DicsW4mk.js';
6
+ export { B as Button } from './Button-CRGbkHTO.js';
7
+ export { B as ButtonCompound } from './ButtonCompound-Dq-3iCqQ.js';
8
+ export { B as ButtonLink } from './ButtonLink-B1b4NVwl.js';
9
+ export { B as ButtonToggle } from './ButtonToggle-BdIwMXdH.js';
10
+ export { C as Calendar, b as CalendarMonth, c as CalendarNext, a as CalendarNow, d as CalendarPrev } from './Calendar-CqEPLYlk.js';
11
+ export { C as Card } from './Card-D-ntWPsN.js';
12
+ export { C as Checkbox, a as CheckboxGroup } from './Checkbox-K1ZrRTEZ.js';
13
+ export { C as Chip } from './Chip-i-OBdpYm.js';
14
+ export { C as Combobox, e as ComboboxContent, a as ComboboxElement, i as ComboboxEmpty, g as ComboboxItem, h as ComboboxItemAddNew, f as ComboboxList, c as ComboboxSearchField, b as ComboboxSelect, d as ComboboxSelectTrigger, u as useInfiniteCombobox } from './Combobox-3SWKXAYu.js';
15
+ export { D as DateField } from './DateField-YjnaTpA4.js';
16
+ export { D as Details, b as DetailsContent, a as DetailsSummary } from './Details-CtCidzce.js';
17
+ export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader } from './Dialog-DDF9Xyrs.js';
18
+ export { D as Divider } from './Divider-By5PjW0_.js';
19
+ export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader } from './Drawer-Bffoaren.js';
20
+ export { E as EditCard } from './EditCard-DripZNiC.js';
21
+ export { F as Flex } from './Flex-CbkDTKfn.js';
22
+ export { G as Grid } from './Grid-LhlvpLTc.js';
23
+ export { I as Icon } from './Icon-U0zxixxg.js';
24
+ export { I as InputMask } from './InputMask-DdF90b0D.js';
25
25
  export { L as Layout, a as LayoutElement, b as LayoutItem } from './Layout-CUUb2PVr.js';
26
- export { L as Link } from './Link-D-9J_gG_.js';
27
- export { L as Listbox, a as ListboxOption, b as ListboxOptionGroup } from './Listbox-s35NI8bz.js';
28
- export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-D4Oo5dk0.js';
29
- export { M as Menu, a as MenuItem } from './Menu-C2lb6-aj.js';
30
- export { O as Overflow, a as OverflowText } from './Overflow-4SGStPcA.js';
31
- export { P as Page, e as PageContent, d as PageHeader, c as PagePanel, a as PageSidebar, b as PageSidebarHeader } from './Page-DPU93uSw.js';
32
- export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger } from './Popover-DPh9L2_b.js';
33
- export { P as ProgressBar } from './ProgressBar-DCHzTUlk.js';
34
- export { R as Radio, a as RadioGroup } from './Radio-DrKWItPI.js';
35
- export { S as SearchField } from './SearchField-Gt55jMYS.js';
36
- export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-CxzfDyuq.js';
37
- export { S as SelectCard, a as SelectCardGroup } from './SelectCardGroup-BqqYDfvw.js';
38
- export { S as SideNav, a as SideNavCollapsible, b as SideNavGroup, c as SideNavLink } from './SideNav-B2j-pcOF.js';
39
- export { S as Skeleton, a as SkeletonCircle, b as SkeletonPill, c as SkeletonRectangle, d as SkeletonText } from './Skeleton-B7npJs-G.js';
40
- export { S as Spinner } from './Spinner-C0SZj1Xr.js';
26
+ export { L as Link } from './Link-DDBu_8WX.js';
27
+ export { L as Listbox, a as ListboxOption, b as ListboxOptionGroup } from './Listbox-BQP8FRTF.js';
28
+ export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-BU0TCQ4k.js';
29
+ export { M as Menu, a as MenuItem } from './Menu-BtinbJQ_.js';
30
+ export { O as Overflow, a as OverflowText } from './Overflow-CKVmrb1N.js';
31
+ export { P as Page, e as PageContent, d as PageHeader, c as PagePanel, a as PageSidebar, b as PageSidebarHeader } from './Page-DnroZYyr.js';
32
+ export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger } from './Popover-C7aIgvIl.js';
33
+ export { P as ProgressBar } from './ProgressBar-BfdgLTrw.js';
34
+ export { R as Radio, a as RadioGroup } from './Radio-vM4P73jb.js';
35
+ export { S as SearchField } from './SearchField-DMx9YWba.js';
36
+ export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-D-kdk7BJ.js';
37
+ export { S as SelectCard, b as SelectCardElement, a as SelectCardGroup } from './SelectCardGroup-u0bbiRwe.js';
38
+ export { S as SideNav, a as SideNavCollapsible, b as SideNavGroup, c as SideNavLink } from './SideNav-BIV-c-1o.js';
39
+ export { S as Skeleton, a as SkeletonCircle, b as SkeletonPill, c as SkeletonRectangle, d as SkeletonText } from './Skeleton-CO1kBH8A.js';
40
+ export { S as Spinner } from './Spinner-DUXjTDlr.js';
41
41
  export { S as SrOnly } from './SrOnly-DcDlKd4y.js';
42
- export { S as Stepper, d as StepperFinalPanel, a as StepperList, e as StepperNextButton, c as StepperPanel, f as StepperPrevButton, b as StepperStep } from './Stepper-uGzkVA9L.js';
43
- export { S as Switch } from './Switch-DksEtlPC.js';
44
- export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-Bmh5FvNz.js';
45
- export { T as Text } from './Text-BG5eKasv.js';
46
- export { T as Textarea } from './Textarea-DC-Mo0BS.js';
47
- export { T as TextField } from './TextField-D-wM0LoN.js';
48
- export { T as Toaster, t as toast } from './toast-BckKmAqz.js';
49
- export { T as Toolbar, b as ToolbarButton, d as ToolbarButtonLink, c as ToolbarButtonToggle, a as ToolbarElement, e as ToolbarSelect } from './Toolbar-C3h5EZAS.js';
50
- export { T as Tooltip, b as TooltipContent, a as TooltipTrigger } from './Tooltip-DSgdpQUh.js';
51
- export { u as useAccessibleColor } from './useAccessibleColor-CR4Gw85S-D9BFnrDq.js';
52
- export { u as useLinkStyles } from './Link-CFxV5mt6-BRludqlY.js';
42
+ export { S as Stepper, d as StepperFinalPanel, a as StepperList, e as StepperNextButton, c as StepperPanel, f as StepperPrevButton, b as StepperStep } from './Stepper-tJSGpsW1.js';
43
+ export { S as Switch } from './Switch-CksM88Ks.js';
44
+ export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-qn_tnvF4.js';
45
+ export { T as Text } from './Text-CF2KcnWA.js';
46
+ export { T as Textarea } from './Textarea-CaMvxI9Y.js';
47
+ export { T as TextField } from './TextField-B7Asq1aB.js';
48
+ export { T as Toaster, t as toast } from './toast-KF3GWYbk.js';
49
+ export { T as Toolbar, b as ToolbarButton, d as ToolbarButtonLink, c as ToolbarButtonToggle, a as ToolbarElement, e as ToolbarSelect } from './Toolbar-OYgCC3Up.js';
50
+ export { T as Tooltip, b as TooltipContent, a as TooltipTrigger } from './Tooltip-rDXwk4az.js';
51
+ export { u as useAccessibleColor } from './useAccessibleColor-Dc6B_M-Z-BYKjkGRg.js';
52
+ export { u as useBreakpoint } from './useBreakpoint-7QkBkSeP-Cv5fnZxs.js';
53
+ export { u as useLinkStyles } from './Link-DIyZHRIV-DXK6prKs.js';
53
54
  export { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
54
55
  export { u as usePrefersColorScheme } from './usePrefersColorScheme-_hT7dK7_-_hT7dK7_.js';
55
56
  export { u as useSwipe } from './useSwipe-DIUHs7T5-DIUHs7T5.js';
56
57
  export { useTrackingId } from './useTrackingId.js';
57
- export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-H7GLsTTs.js';
58
- export { L as LocalizationProvider } from './LocalizationProvider-BMrx361C-CWnp1u1b.js';
58
+ export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-C3E7FZAC.js';
59
+ export { L as LocalizationProvider } from './LocalizationProvider-BrxC1a2D-B1iQENoJ.js';
59
60
  export { L as LocalizationContext, u as useLocalizationContext } from './LocalizationContext-UsmB5mnR-BUIYgNp2.js';
60
61
  export { P as PortalProvider, a as PortalProviderContext } from './PortalProvider-9lXkQ0xY-BKoGegS1.js';
61
- export { T as ThemeProvider } from './ThemeProvider-C99PP3mE.js';
62
+ export { T as ThemeProvider } from './ThemeProvider-Drjj0EtN.js';
62
63
  export { T as TrackingProvider } from './TrackingProvider-BtSjkmpM.js';
63
64
  export { u as useTrackingContext } from './useTrackingContext-DRwDL8DE.js';
64
65
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ declare const Shadow: ({ children, ...rest }: ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
3
+ export default Shadow;
@@ -96,7 +96,6 @@ if (process.env.NODE_ENV !== "production") {
96
96
  }
97
97
 
98
98
  const MotionGlobalConfig = {
99
- skipAnimations: false,
100
99
  useManualTiming: false,
101
100
  };
102
101
 
@@ -109,6 +108,9 @@ const stepsOrder = [
109
108
  "postRender", // Compute
110
109
  ];
111
110
 
111
+ const statsBuffer = {
112
+ value: null};
113
+
112
114
  function createRenderStep(runNextFrame, stepName) {
113
115
  /**
114
116
  * We create and reuse two queues, one to queue jobs for the current frame
@@ -131,11 +133,13 @@ function createRenderStep(runNextFrame, stepName) {
131
133
  timestamp: 0.0,
132
134
  isProcessing: false,
133
135
  };
136
+ let numCalls = 0;
134
137
  function triggerCallback(callback) {
135
138
  if (toKeepAlive.has(callback)) {
136
139
  step.schedule(callback);
137
140
  runNextFrame();
138
141
  }
142
+ numCalls++;
139
143
  callback(latestFrameData);
140
144
  }
141
145
  const step = {
@@ -176,6 +180,13 @@ function createRenderStep(runNextFrame, stepName) {
176
180
  [thisFrame, nextFrame] = [nextFrame, thisFrame];
177
181
  // Execute this frame
178
182
  thisFrame.forEach(triggerCallback);
183
+ /**
184
+ * If we're recording stats then
185
+ */
186
+ if (stepName && statsBuffer.value) {
187
+ statsBuffer.value.frameloop[stepName].push(numCalls);
188
+ }
189
+ numCalls = 0;
179
190
  // Clear the frame so no callbacks remain. This is to avoid
180
191
  // memory leaks should this render step not run for a while.
181
192
  thisFrame.clear();
@@ -200,7 +211,7 @@ function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
200
211
  };
201
212
  const flagRunNextFrame = () => (runNextFrame = true);
202
213
  const steps = stepsOrder.reduce((acc, key) => {
203
- acc[key] = createRenderStep(flagRunNextFrame);
214
+ acc[key] = createRenderStep(flagRunNextFrame, allowKeepAlive ? key : undefined);
204
215
  return acc;
205
216
  }, {});
206
217
  const { read, resolveKeyframes, update, preRender, render, postRender } = steps;
@@ -551,7 +562,7 @@ const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCas
551
562
  const optimizedAppearDataId = "framerAppearId";
552
563
  const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
553
564
 
554
- const { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, false);
565
+ const { schedule: microtask} = createRenderBatcher(queueMicrotask, false);
555
566
 
556
567
  /**
557
568
  * Internal, exported only for usage in Framer
@@ -609,8 +620,8 @@ function useVisualElement(Component, visualState, props, createVisualElement, Pr
609
620
  */
610
621
  const optimisedAppearId = props[optimizedAppearDataAttribute];
611
622
  const wantsHandoff = useRef(Boolean(optimisedAppearId) &&
612
- !((_a = window.MotionHandoffIsComplete) === null || _a === undefined ? undefined : _a.call(window, optimisedAppearId)) &&
613
- ((_b = window.MotionHasOptimisedAnimation) === null || _b === undefined ? undefined : _b.call(window, optimisedAppearId)));
623
+ !((_a = window.MotionHandoffIsComplete) === null || _a === void 0 ? void 0 : _a.call(window, optimisedAppearId)) &&
624
+ ((_b = window.MotionHasOptimisedAnimation) === null || _b === void 0 ? void 0 : _b.call(window, optimisedAppearId)));
614
625
  useIsomorphicLayoutEffect(() => {
615
626
  if (!visualElement)
616
627
  return;
@@ -642,7 +653,7 @@ function useVisualElement(Component, visualState, props, createVisualElement, Pr
642
653
  // This ensures all future calls to animateChanges() in this component will run in useEffect
643
654
  queueMicrotask(() => {
644
655
  var _a;
645
- (_a = window.MotionHandoffMarkAsComplete) === null || _a === undefined ? undefined : _a.call(window, optimisedAppearId);
656
+ (_a = window.MotionHandoffMarkAsComplete) === null || _a === void 0 ? void 0 : _a.call(window, optimisedAppearId);
646
657
  });
647
658
  wantsHandoff.current = false;
648
659
  }
@@ -726,7 +737,7 @@ function createRendererMotionComponent({ preloadedFeatures, createVisualElement,
726
737
  }
727
738
  MotionComponent.displayName = `motion.${typeof Component === "string"
728
739
  ? Component
729
- : `create(${(_b = (_a = Component.displayName) !== null && _a !== undefined ? _a : Component.name) !== null && _b !== undefined ? _b : ""})`}`;
740
+ : `create(${(_b = (_a = Component.displayName) !== null && _a !== void 0 ? _a : Component.name) !== null && _b !== void 0 ? _b : ""})`}`;
730
741
  const ForwardRefMotionComponent = forwardRef(MotionComponent);
731
742
  ForwardRefMotionComponent[motionComponentSymbol] = Component;
732
743
  return ForwardRefMotionComponent;
@@ -758,7 +769,7 @@ function getProjectionFunctionality(props) {
758
769
  return {};
759
770
  const combined = { ...drag, ...layout };
760
771
  return {
761
- MeasureLayout: (drag === null || drag === undefined ? undefined : drag.isEnabled(props)) || (layout === null || layout === undefined ? undefined : layout.isEnabled(props))
772
+ MeasureLayout: (drag === null || drag === void 0 ? void 0 : drag.isEnabled(props)) || (layout === null || layout === void 0 ? void 0 : layout.isEnabled(props))
762
773
  ? combined.MeasureLayout
763
774
  : undefined,
764
775
  ProjectionNode: combined.ProjectionNode,
@@ -1326,7 +1337,7 @@ function createUseRender(forwardMotionProps = false) {
1326
1337
 
1327
1338
  function getValueState(visualElement) {
1328
1339
  const state = [{}, {}];
1329
- visualElement === null || visualElement === undefined ? undefined : visualElement.values.forEach((value, key) => {
1340
+ visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key) => {
1330
1341
  state[0][key] = value.get();
1331
1342
  state[1][key] = value.getVelocity();
1332
1343
  });
@@ -1470,7 +1481,7 @@ function scrapeMotionValuesFromProps$1(props, prevProps, visualElement) {
1470
1481
  (prevProps.style &&
1471
1482
  isMotionValue(prevProps.style[key])) ||
1472
1483
  isForcedMotionValue(key, props) ||
1473
- ((_a = visualElement === null || visualElement === undefined ? undefined : visualElement.getValue(key)) === null || _a === undefined ? undefined : _a.liveStyle) !== undefined) {
1484
+ ((_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || _a === void 0 ? void 0 : _a.liveStyle) !== undefined) {
1474
1485
  newValues[key] = style[key];
1475
1486
  }
1476
1487
  }
@@ -2209,7 +2220,7 @@ const supportsFlags = {
2209
2220
 
2210
2221
  function memoSupports(callback, supportsFlag) {
2211
2222
  const memoized = memo(callback);
2212
- return () => { var _a; return (_a = supportsFlags[supportsFlag]) !== null && _a !== undefined ? _a : memoized(); };
2223
+ return () => { var _a; return (_a = supportsFlags[supportsFlag]) !== null && _a !== void 0 ? _a : memoized(); };
2213
2224
  }
2214
2225
 
2215
2226
  const supportsLinearEasing = /*@__PURE__*/ memoSupports(() => {
@@ -2510,8 +2521,8 @@ function test(v) {
2510
2521
  var _a, _b;
2511
2522
  return (isNaN(v) &&
2512
2523
  typeof v === "string" &&
2513
- (((_a = v.match(floatRegex)) === null || _a === undefined ? undefined : _a.length) || 0) +
2514
- (((_b = v.match(colorRegex)) === null || _b === undefined ? undefined : _b.length) || 0) >
2524
+ (((_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) || 0) +
2525
+ (((_b = v.match(colorRegex)) === null || _b === void 0 ? void 0 : _b.length) || 0) >
2515
2526
  0);
2516
2527
  }
2517
2528
  const NUMBER_TOKEN = "number";
@@ -2755,7 +2766,7 @@ function measureAllKeyframes() {
2755
2766
  if (restore) {
2756
2767
  restore.forEach(([key, value]) => {
2757
2768
  var _a;
2758
- (_a = element.getValue(key)) === null || _a === undefined ? undefined : _a.set(value);
2769
+ (_a = element.getValue(key)) === null || _a === void 0 ? void 0 : _a.set(value);
2759
2770
  });
2760
2771
  }
2761
2772
  });
@@ -2842,7 +2853,7 @@ class KeyframeResolver {
2842
2853
  * If the first keyframe is null, we need to find its value by sampling the element
2843
2854
  */
2844
2855
  if (i === 0) {
2845
- const currentValue = motionValue === null || motionValue === undefined ? undefined : motionValue.get();
2856
+ const currentValue = motionValue === null || motionValue === void 0 ? void 0 : motionValue.get();
2846
2857
  const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
2847
2858
  if (currentValue !== undefined) {
2848
2859
  unresolvedKeyframes[0] = currentValue;
@@ -2909,7 +2920,7 @@ function parseCSSVariable(current) {
2909
2920
  if (!match)
2910
2921
  return [,];
2911
2922
  const [, token1, token2, fallback] = match;
2912
- return [`--${token1 !== null && token1 !== undefined ? token1 : token2}`, fallback];
2923
+ return [`--${token1 !== null && token1 !== void 0 ? token1 : token2}`, fallback];
2913
2924
  }
2914
2925
  const maxDepth = 4;
2915
2926
  function getVariableValue(current, element, depth = 1) {
@@ -3061,7 +3072,7 @@ class DOMKeyframesResolver extends KeyframeResolver {
3061
3072
  this.finalKeyframe = finalKeyframe;
3062
3073
  }
3063
3074
  // If we removed transform values, reapply them before the next render
3064
- if ((_a = this.removedTransforms) === null || _a === undefined ? undefined : _a.length) {
3075
+ if ((_a = this.removedTransforms) === null || _a === void 0 ? void 0 : _a.length) {
3065
3076
  this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
3066
3077
  element
3067
3078
  .getValue(unsetTransformName)
@@ -3462,7 +3473,7 @@ function matchOrder(origin, target) {
3462
3473
  for (let i = 0; i < target.values.length; i++) {
3463
3474
  const type = target.types[i];
3464
3475
  const originIndex = origin.indexes[type][pointers[type]];
3465
- const originValue = (_a = origin.values[originIndex]) !== null && _a !== undefined ? _a : 0;
3476
+ const originValue = (_a = origin.values[originIndex]) !== null && _a !== void 0 ? _a : 0;
3466
3477
  orderedOrigin[i] = originValue;
3467
3478
  pointers[type]++;
3468
3479
  }
@@ -4090,7 +4101,7 @@ class MainThreadAnimation extends BaseAnimation {
4090
4101
  onStop && onStop();
4091
4102
  };
4092
4103
  const { name, motionValue, element, keyframes } = this.options;
4093
- const KeyframeResolver$1 = (element === null || element === undefined ? undefined : element.KeyframeResolver) || KeyframeResolver;
4104
+ const KeyframeResolver$1 = (element === null || element === void 0 ? void 0 : element.KeyframeResolver) || KeyframeResolver;
4094
4105
  const onResolved = (resolvedKeyframes, finalKeyframe) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe);
4095
4106
  this.resolver = new KeyframeResolver$1(keyframes, onResolved, name, motionValue, element);
4096
4107
  this.resolver.scheduleResolve();
@@ -4339,7 +4350,7 @@ class MainThreadAnimation extends BaseAnimation {
4339
4350
  this.startTime = now - this.holdTime;
4340
4351
  }
4341
4352
  else if (!this.startTime) {
4342
- this.startTime = startTime !== null && startTime !== undefined ? startTime : this.calcStartTime();
4353
+ this.startTime = startTime !== null && startTime !== void 0 ? startTime : this.calcStartTime();
4343
4354
  }
4344
4355
  else if (this.state === "finished") {
4345
4356
  this.startTime = now;
@@ -4363,7 +4374,7 @@ class MainThreadAnimation extends BaseAnimation {
4363
4374
  return;
4364
4375
  }
4365
4376
  this.state = "paused";
4366
- this.holdTime = (_a = this.currentTime) !== null && _a !== undefined ? _a : 0;
4377
+ this.holdTime = (_a = this.currentTime) !== null && _a !== void 0 ? _a : 0;
4367
4378
  }
4368
4379
  complete() {
4369
4380
  if (this.state !== "running") {
@@ -4549,7 +4560,7 @@ class AcceleratedAnimation extends BaseAnimation {
4549
4560
  const animation = startWaapiAnimation(motionValue.owner.current, name, keyframes, { ...this.options, duration, times, ease });
4550
4561
  // Override the browser calculated startTime with one synchronised to other JS
4551
4562
  // and WAAPI animations starting this event loop.
4552
- animation.startTime = startTime !== null && startTime !== undefined ? startTime : this.calcStartTime();
4563
+ animation.startTime = startTime !== null && startTime !== void 0 ? startTime : this.calcStartTime();
4553
4564
  if (this.pendingTimeline) {
4554
4565
  attachTimeline(animation, this.pendingTimeline);
4555
4566
  this.pendingTimeline = undefined;
@@ -4905,7 +4916,7 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
4905
4916
  visualElement.animationState &&
4906
4917
  visualElement.animationState.getState()[type];
4907
4918
  for (const key in target) {
4908
- const value = visualElement.getValue(key, (_a = visualElement.latestValues[key]) !== null && _a !== undefined ? _a : null);
4919
+ const value = visualElement.getValue(key, (_a = visualElement.latestValues[key]) !== null && _a !== void 0 ? _a : null);
4909
4920
  const valueTarget = target[key];
4910
4921
  if (valueTarget === undefined ||
4911
4922
  (animationTypeState &&
@@ -4953,7 +4964,7 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
4953
4964
  function animateVariant(visualElement, variant, options = {}) {
4954
4965
  var _a;
4955
4966
  const resolved = resolveVariant(visualElement, variant, options.type === "exit"
4956
- ? (_a = visualElement.presenceContext) === null || _a === undefined ? undefined : _a.custom
4967
+ ? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom
4957
4968
  : undefined);
4958
4969
  let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};
4959
4970
  if (options.transitionOverride) {
@@ -5086,7 +5097,7 @@ function createAnimationState(visualElement) {
5086
5097
  const buildResolvedTypeValues = (type) => (acc, definition) => {
5087
5098
  var _a;
5088
5099
  const resolved = resolveVariant(visualElement, definition, type === "exit"
5089
- ? (_a = visualElement.presenceContext) === null || _a === undefined ? undefined : _a.custom
5100
+ ? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom
5090
5101
  : undefined);
5091
5102
  if (resolved) {
5092
5103
  const { transition, transitionEnd, ...target } = resolved;
@@ -5334,7 +5345,7 @@ function createAnimationState(visualElement) {
5334
5345
  if (motionValue)
5335
5346
  motionValue.liveStyle = true;
5336
5347
  // @ts-expect-error - @mattgperry to figure if we should do something here
5337
- fallbackAnimation[key] = fallbackTarget !== null && fallbackTarget !== undefined ? fallbackTarget : null;
5348
+ fallbackAnimation[key] = fallbackTarget !== null && fallbackTarget !== void 0 ? fallbackTarget : null;
5338
5349
  });
5339
5350
  animations.push({ animation: fallbackAnimation });
5340
5351
  }
@@ -5356,7 +5367,7 @@ function createAnimationState(visualElement) {
5356
5367
  if (state[type].isActive === isActive)
5357
5368
  return Promise.resolve();
5358
5369
  // Propagate active change to children
5359
- (_a = visualElement.variantChildren) === null || _a === undefined ? undefined : _a.forEach((child) => { var _a; return (_a = child.animationState) === null || _a === undefined ? undefined : _a.setActive(type, isActive); });
5370
+ (_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach((child) => { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });
5360
5371
  state[type].isActive = isActive;
5361
5372
  const animations = animateChanges(type);
5362
5373
  for (const key in state) {
@@ -5444,7 +5455,7 @@ class AnimationFeature extends Feature {
5444
5455
  unmount() {
5445
5456
  var _a;
5446
5457
  this.node.animationState.reset();
5447
- (_a = this.unmountControls) === null || _a === undefined ? undefined : _a.call(this);
5458
+ (_a = this.unmountControls) === null || _a === void 0 ? void 0 : _a.call(this);
5448
5459
  }
5449
5460
  }
5450
5461
 
@@ -6251,7 +6262,7 @@ class VisualElementDragControls {
6251
6262
  const resumeAnimation = () => eachAxis((axis) => {
6252
6263
  var _a;
6253
6264
  return this.getAnimationState(axis) === "paused" &&
6254
- ((_a = this.getAxisMotionValue(axis).animation) === null || _a === undefined ? undefined : _a.play());
6265
+ ((_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.play());
6255
6266
  });
6256
6267
  const { dragSnapToOrigin } = this.getProps();
6257
6268
  this.panSession = new PanSession(originEvent, {
@@ -6311,7 +6322,7 @@ class VisualElementDragControls {
6311
6322
  const layout = this.visualElement.projection &&
6312
6323
  !this.visualElement.projection.layout
6313
6324
  ? this.visualElement.projection.measure(false)
6314
- : (_a = this.visualElement.projection) === null || _a === undefined ? undefined : _a.layout;
6325
+ : (_a = this.visualElement.projection) === null || _a === void 0 ? void 0 : _a.layout;
6315
6326
  const prevConstraints = this.constraints;
6316
6327
  if (dragConstraints && isRefObject(dragConstraints)) {
6317
6328
  if (!this.constraints) {
@@ -6375,7 +6386,7 @@ class VisualElementDragControls {
6375
6386
  if (!shouldDrag(axis, drag, this.currentDirection)) {
6376
6387
  return;
6377
6388
  }
6378
- let transition = (constraints[axis]) || {};
6389
+ let transition = (constraints && constraints[axis]) || {};
6379
6390
  if (dragSnapToOrigin)
6380
6391
  transition = { min: 0, max: 0 };
6381
6392
  /**
@@ -6414,11 +6425,11 @@ class VisualElementDragControls {
6414
6425
  eachAxis((axis) => this.getAxisMotionValue(axis).stop());
6415
6426
  }
6416
6427
  pauseAnimation() {
6417
- eachAxis((axis) => { var _a; return (_a = this.getAxisMotionValue(axis).animation) === null || _a === undefined ? undefined : _a.pause(); });
6428
+ eachAxis((axis) => { var _a; return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.pause(); });
6418
6429
  }
6419
6430
  getAnimationState(axis) {
6420
6431
  var _a;
6421
- return (_a = this.getAxisMotionValue(axis).animation) === null || _a === undefined ? undefined : _a.state;
6432
+ return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.state;
6422
6433
  }
6423
6434
  /**
6424
6435
  * Drag works differently depending on which props are provided.
@@ -7224,7 +7235,7 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
7224
7235
  */
7225
7236
  const xTranslate = delta.x.translate / treeScale.x;
7226
7237
  const yTranslate = delta.y.translate / treeScale.y;
7227
- const zTranslate = (latestTransform === null || latestTransform === undefined ? undefined : latestTransform.z) || 0;
7238
+ const zTranslate = (latestTransform === null || latestTransform === void 0 ? void 0 : latestTransform.z) || 0;
7228
7239
  if (xTranslate || yTranslate || zTranslate) {
7229
7240
  transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;
7230
7241
  }
@@ -7300,7 +7311,7 @@ function cancelTreeOptimisedTransformAnimations(projectionNode) {
7300
7311
  }
7301
7312
  function createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }) {
7302
7313
  return class ProjectionNode {
7303
- constructor(latestValues = {}, parent = defaultParent === null || defaultParent === undefined ? undefined : defaultParent()) {
7314
+ constructor(latestValues = {}, parent = defaultParent === null || defaultParent === void 0 ? void 0 : defaultParent()) {
7304
7315
  /**
7305
7316
  * A unique ID generated for every projection node.
7306
7317
  */
@@ -7823,7 +7834,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
7823
7834
  if (!visualElement)
7824
7835
  return createBox();
7825
7836
  const box = visualElement.measureViewportBox();
7826
- const wasInScrollRoot = ((_a = this.scroll) === null || _a === undefined ? undefined : _a.wasRoot) || this.path.some(checkNodeWasScrollRoot);
7837
+ const wasInScrollRoot = ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) || this.path.some(checkNodeWasScrollRoot);
7827
7838
  if (!wasInScrollRoot) {
7828
7839
  // Remove viewport scroll to give page-relative coordinates
7829
7840
  const { scroll } = this.root;
@@ -7838,7 +7849,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
7838
7849
  var _a;
7839
7850
  const boxWithoutScroll = createBox();
7840
7851
  copyBoxInto(boxWithoutScroll, box);
7841
- if ((_a = this.scroll) === null || _a === undefined ? undefined : _a.wasRoot) {
7852
+ if ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) {
7842
7853
  return boxWithoutScroll;
7843
7854
  }
7844
7855
  /**
@@ -7959,7 +7970,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
7959
7970
  const canSkip = !(forceRecalculation ||
7960
7971
  (isShared && this.isSharedProjectionDirty) ||
7961
7972
  this.isProjectionDirty ||
7962
- ((_a = this.parent) === null || _a === undefined ? undefined : _a.isProjectionDirty) ||
7973
+ ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty) ||
7963
7974
  this.attemptToResolveRelativeTarget ||
7964
7975
  this.root.updateBlockedByResize);
7965
7976
  if (canSkip)
@@ -8086,7 +8097,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8086
8097
  * If this is a normal layout animation and neither this node nor its nearest projecting
8087
8098
  * is dirty then we can't skip.
8088
8099
  */
8089
- if (this.isProjectionDirty || ((_a = this.parent) === null || _a === undefined ? undefined : _a.isProjectionDirty)) {
8100
+ if (this.isProjectionDirty || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty)) {
8090
8101
  canSkip = false;
8091
8102
  }
8092
8103
  /**
@@ -8193,7 +8204,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8193
8204
  }
8194
8205
  scheduleRender(notifyAll = true) {
8195
8206
  var _a;
8196
- (_a = this.options.visualElement) === null || _a === undefined ? undefined : _a.scheduleRender();
8207
+ (_a = this.options.visualElement) === null || _a === void 0 ? void 0 : _a.scheduleRender();
8197
8208
  if (notifyAll) {
8198
8209
  const stack = this.getStack();
8199
8210
  stack && stack.scheduleRender();
@@ -8379,12 +8390,12 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8379
8390
  getLead() {
8380
8391
  var _a;
8381
8392
  const { layoutId } = this.options;
8382
- return layoutId ? ((_a = this.getStack()) === null || _a === undefined ? undefined : _a.lead) || this : this;
8393
+ return layoutId ? ((_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.lead) || this : this;
8383
8394
  }
8384
8395
  getPrevLead() {
8385
8396
  var _a;
8386
8397
  const { layoutId } = this.options;
8387
- return layoutId ? (_a = this.getStack()) === null || _a === undefined ? undefined : _a.prevLead : undefined;
8398
+ return layoutId ? (_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.prevLead : undefined;
8388
8399
  }
8389
8400
  getStack() {
8390
8401
  const { layoutId } = this.options;
@@ -8472,7 +8483,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8472
8483
  this.needsReset = false;
8473
8484
  styles.opacity = "";
8474
8485
  styles.pointerEvents =
8475
- resolveMotionValue(styleProp === null || styleProp === undefined ? undefined : styleProp.pointerEvents) || "";
8486
+ resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
8476
8487
  styles.transform = transformTemplate
8477
8488
  ? transformTemplate(this.latestValues, "")
8478
8489
  : "none";
@@ -8487,7 +8498,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8487
8498
  ? this.latestValues.opacity
8488
8499
  : 1;
8489
8500
  emptyStyles.pointerEvents =
8490
- resolveMotionValue(styleProp === null || styleProp === undefined ? undefined : styleProp.pointerEvents) || "";
8501
+ resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
8491
8502
  }
8492
8503
  if (this.hasProjected && !hasTransform(this.latestValues)) {
8493
8504
  emptyStyles.transform = transformTemplate
@@ -8512,7 +8523,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8512
8523
  */
8513
8524
  styles.opacity =
8514
8525
  lead === this
8515
- ? (_b = (_a = valuesToRender.opacity) !== null && _a !== undefined ? _a : this.latestValues.opacity) !== null && _b !== undefined ? _b : 1
8526
+ ? (_b = (_a = valuesToRender.opacity) !== null && _a !== void 0 ? _a : this.latestValues.opacity) !== null && _b !== void 0 ? _b : 1
8516
8527
  : this.preserveOpacity
8517
8528
  ? this.latestValues.opacity
8518
8529
  : valuesToRender.opacityExit;
@@ -8573,7 +8584,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8573
8584
  if (this.options.layoutId) {
8574
8585
  styles.pointerEvents =
8575
8586
  lead === this
8576
- ? resolveMotionValue(styleProp === null || styleProp === undefined ? undefined : styleProp.pointerEvents) || ""
8587
+ ? resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || ""
8577
8588
  : "none";
8578
8589
  }
8579
8590
  return styles;
@@ -8583,7 +8594,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
8583
8594
  }
8584
8595
  // Only run on root
8585
8596
  resetTree() {
8586
- this.root.nodes.forEach((node) => { var _a; return (_a = node.currentAnimation) === null || _a === undefined ? undefined : _a.stop(); });
8597
+ this.root.nodes.forEach((node) => { var _a; return (_a = node.currentAnimation) === null || _a === void 0 ? void 0 : _a.stop(); });
8587
8598
  this.root.nodes.forEach(clearMeasurements);
8588
8599
  this.root.sharedNodes.clear();
8589
8600
  }
@@ -8594,7 +8605,7 @@ function updateLayout(node) {
8594
8605
  }
8595
8606
  function notifyLayoutUpdate(node) {
8596
8607
  var _a;
8597
- const snapshot = ((_a = node.resumeFrom) === null || _a === undefined ? undefined : _a.snapshot) || node.snapshot;
8608
+ const snapshot = ((_a = node.resumeFrom) === null || _a === void 0 ? void 0 : _a.snapshot) || node.snapshot;
8598
8609
  if (node.isLead() &&
8599
8610
  node.layout &&
8600
8611
  snapshot &&
@@ -8795,7 +8806,7 @@ function shouldAnimatePositionOnly(animationType, snapshot, layout) {
8795
8806
  }
8796
8807
  function checkNodeWasScrollRoot(node) {
8797
8808
  var _a;
8798
- return node !== node.root && ((_a = node.scroll) === null || _a === undefined ? undefined : _a.wasRoot);
8809
+ return node !== node.root && ((_a = node.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot);
8799
8810
  }
8800
8811
 
8801
8812
  const DocumentProjectionNode = createProjectionNode({
@@ -8848,7 +8859,7 @@ function resolveElements(elementOrSelector, scope, selectorCache) {
8848
8859
  }
8849
8860
  else if (typeof elementOrSelector === "string") {
8850
8861
  let root = document;
8851
- const elements = (_a = undefined ) !== null && _a !== undefined ? _a : root.querySelectorAll(elementOrSelector);
8862
+ const elements = (_a = void 0 ) !== null && _a !== void 0 ? _a : root.querySelectorAll(elementOrSelector);
8852
8863
  return elements ? Array.from(elements) : [];
8853
8864
  }
8854
8865
  return Array.from(elementOrSelector);
@@ -9761,7 +9772,7 @@ class VisualElement {
9761
9772
  var _a;
9762
9773
  let value = this.latestValues[key] !== undefined || !this.current
9763
9774
  ? this.latestValues[key]
9764
- : (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== undefined ? _a : this.readValueFromInstance(this.current, key, this.options);
9775
+ : (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);
9765
9776
  if (value !== undefined && value !== null) {
9766
9777
  if (typeof value === "string" &&
9767
9778
  (isNumericalString(value) || isZeroValueString(value))) {
@@ -9791,7 +9802,7 @@ class VisualElement {
9791
9802
  const { initial } = this.props;
9792
9803
  let valueFromInitial;
9793
9804
  if (typeof initial === "string" || typeof initial === "object") {
9794
- const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a === undefined ? undefined : _a.custom);
9805
+ const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a === void 0 ? void 0 : _a.custom);
9795
9806
  if (variant) {
9796
9807
  valueFromInitial = variant[key];
9797
9808
  }
@@ -9963,4 +9974,4 @@ const createMotionComponent = /*@__PURE__*/ createMotionComponentFactory({
9963
9974
  const motion = /*@__PURE__*/ createDOMMotionComponentProxy(createMotionComponent);
9964
9975
 
9965
9976
  export { LayoutGroupContext as L, MotionConfigContext as M, PresenceContext as P, usePresence as a, useIsomorphicLayoutEffect as b, hasReducedMotionListener as h, initPrefersReducedMotion as i, motion as m, prefersReducedMotion as p, useConstant as u, warnOnce as w };
9966
- //# sourceMappingURL=proxy-Cy56d5Wf.js.map
9977
+ //# sourceMappingURL=proxy-CreWmH-e.js.map