@betterinternship/components 2.9.6 → 3.0.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 (746) hide show
  1. package/README.md +4 -9
  2. package/dist/components/{ui/accordion.d.ts → accordion.d.ts} +7 -1
  3. package/dist/components/accordion.js +23 -0
  4. package/dist/components/accordion.js.map +1 -0
  5. package/dist/components/{ui/animated-count.d.ts → animated-count.d.ts} +1 -4
  6. package/dist/components/animated-count.js +19 -0
  7. package/dist/components/animated-count.js.map +1 -0
  8. package/dist/components/animated-shiny-text.d.ts +5 -0
  9. package/dist/components/{ui/app-header.d.ts → app-header.d.ts} +3 -1
  10. package/dist/components/app-header.js +72 -0
  11. package/dist/components/app-header.js.map +1 -0
  12. package/dist/components/autocomplete.d.ts +34 -0
  13. package/dist/components/{ui/avatar.js → avatar.js} +1 -1
  14. package/dist/components/avatar.js.map +1 -0
  15. package/dist/components/badge.d.ts +13 -0
  16. package/dist/components/{ui/badge.js → badge.js} +54 -31
  17. package/dist/components/badge.js.map +1 -0
  18. package/dist/components/banner.d.ts +17 -0
  19. package/dist/components/banner.js +41 -0
  20. package/dist/components/banner.js.map +1 -0
  21. package/dist/components/button.d.ts +56 -0
  22. package/dist/components/button.js +53 -0
  23. package/dist/components/button.js.map +1 -0
  24. package/dist/components/calendar.d.ts +10 -0
  25. package/dist/components/calendar.js +56 -0
  26. package/dist/components/calendar.js.map +1 -0
  27. package/dist/components/{ui/card.d.ts → card.d.ts} +7 -1
  28. package/dist/components/{ui/card.js → card.js} +10 -4
  29. package/dist/components/{ui/card.js.map → card.js.map} +1 -1
  30. package/dist/components/carousel.d.ts +40 -0
  31. package/dist/components/checkbox.d.ts +8 -0
  32. package/dist/components/checkbox.js +20 -0
  33. package/dist/components/checkbox.js.map +1 -0
  34. package/dist/components/chip-select.d.ts +18 -0
  35. package/dist/components/collapsible.d.ts +18 -0
  36. package/dist/components/context-menu.d.ts +27 -0
  37. package/dist/components/{ui/dialog.d.ts → dialog.d.ts} +5 -2
  38. package/dist/components/dialog.js +44 -0
  39. package/dist/components/dialog.js.map +1 -0
  40. package/dist/components/divider.d.ts +3 -0
  41. package/dist/components/divider.js +10 -0
  42. package/dist/components/divider.js.map +1 -0
  43. package/dist/components/dot-matrix.d.ts +21 -0
  44. package/dist/components/dropdown-menu.js +61 -0
  45. package/dist/components/dropdown-menu.js.map +1 -0
  46. package/dist/components/dropdown.d.ts +65 -0
  47. package/dist/components/error.d.ts +8 -0
  48. package/dist/components/file-upload.d.ts +16 -0
  49. package/dist/components/file-upload.js +29 -0
  50. package/dist/components/file-upload.js.map +1 -0
  51. package/dist/components/filter-chip.d.ts +21 -0
  52. package/dist/components/filter-chip.js +28 -0
  53. package/dist/components/filter-chip.js.map +1 -0
  54. package/dist/components/form-checkbox-group.d.ts +31 -0
  55. package/dist/components/form-checkbox-group.js +29 -0
  56. package/dist/components/form-checkbox-group.js.map +1 -0
  57. package/dist/components/form-checkbox.d.ts +15 -0
  58. package/dist/components/form-checkbox.js +14 -0
  59. package/dist/components/form-checkbox.js.map +1 -0
  60. package/dist/components/form-date-picker.d.ts +47 -0
  61. package/dist/components/form-date-picker.js +55 -0
  62. package/dist/components/form-date-picker.js.map +1 -0
  63. package/dist/components/form-field.d.ts +14 -0
  64. package/dist/components/form-field.js +10 -0
  65. package/dist/components/form-field.js.map +1 -0
  66. package/dist/components/form-input.d.ts +11 -0
  67. package/dist/components/form-input.js +12 -0
  68. package/dist/components/form-input.js.map +1 -0
  69. package/dist/components/form-month-picker.d.ts +26 -0
  70. package/dist/components/form-month-picker.js +55 -0
  71. package/dist/components/form-month-picker.js.map +1 -0
  72. package/dist/components/form-radio.d.ts +15 -0
  73. package/dist/components/form-radio.js +20 -0
  74. package/dist/components/form-radio.js.map +1 -0
  75. package/dist/components/form-textarea.d.ts +11 -0
  76. package/dist/components/form-textarea.js +11 -0
  77. package/dist/components/form-textarea.js.map +1 -0
  78. package/dist/components/form.d.ts +24 -0
  79. package/dist/components/hover-card.d.ts +6 -0
  80. package/dist/components/input-otp.d.ts +39 -0
  81. package/dist/components/input.js +30 -0
  82. package/dist/components/input.js.map +1 -0
  83. package/dist/components/label.d.ts +15 -0
  84. package/dist/components/label.js +19 -0
  85. package/dist/components/label.js.map +1 -0
  86. package/dist/components/loader.d.ts +20 -0
  87. package/dist/components/loader.js +14 -0
  88. package/dist/components/loader.js.map +1 -0
  89. package/dist/components/magnetic-button.d.ts +5 -0
  90. package/dist/components/messages.d.ts +6 -0
  91. package/dist/components/mobile-sheet-portal.d.ts +9 -0
  92. package/dist/components/page-header.d.ts +6 -0
  93. package/dist/components/page-header.js +9 -0
  94. package/dist/components/page-header.js.map +1 -0
  95. package/dist/components/paginator.d.ts +9 -0
  96. package/dist/components/{ui/popover.js → popover.js} +2 -2
  97. package/dist/components/popover.js.map +1 -0
  98. package/dist/components/progress.d.ts +4 -0
  99. package/dist/components/radio-group.d.ts +5 -0
  100. package/dist/components/radio-group.js +17 -0
  101. package/dist/components/radio-group.js.map +1 -0
  102. package/dist/components/select.d.ts +15 -0
  103. package/dist/components/select.js +50 -0
  104. package/dist/components/select.js.map +1 -0
  105. package/dist/components/sheet.d.ts +27 -0
  106. package/dist/components/{ui/skeleton.js → skeleton.js} +2 -2
  107. package/dist/components/skeleton.js.map +1 -0
  108. package/dist/components/slider.d.ts +4 -0
  109. package/dist/components/sonner-toast.d.ts +106 -0
  110. package/dist/components/stepper.d.ts +9 -0
  111. package/dist/components/stepper.js +14 -0
  112. package/dist/components/stepper.js.map +1 -0
  113. package/dist/components/switch.js +10 -0
  114. package/dist/components/switch.js.map +1 -0
  115. package/dist/components/table.d.ts +33 -0
  116. package/dist/components/table.js +88 -0
  117. package/dist/components/table.js.map +1 -0
  118. package/dist/components/tabs.d.ts +22 -0
  119. package/dist/components/textarea.d.ts +3 -0
  120. package/dist/components/textarea.js +11 -0
  121. package/dist/components/textarea.js.map +1 -0
  122. package/dist/components/time-input-native.d.ts +14 -0
  123. package/dist/components/time-input-native.js +61 -0
  124. package/dist/components/time-input-native.js.map +1 -0
  125. package/dist/components/timeline.d.ts +17 -0
  126. package/dist/components/toggle.d.ts +5 -0
  127. package/dist/components/{ui/tooltip.js → tooltip.js} +2 -2
  128. package/dist/components/tooltip.js.map +1 -0
  129. package/dist/design-tokens.d.ts +69 -0
  130. package/dist/hooks/use-detect-click-outside.d.ts +4 -0
  131. package/dist/hooks/use-field-focus.d.ts +37 -0
  132. package/dist/hooks/use-field-focus.js +57 -0
  133. package/dist/hooks/use-field-focus.js.map +1 -0
  134. package/dist/hooks/use-mobile-sheet-viewport.d.ts +6 -0
  135. package/dist/hooks/use-mobile-sheet-viewport.js +60 -0
  136. package/dist/hooks/use-mobile-sheet-viewport.js.map +1 -0
  137. package/dist/hooks/use-mobile.d.ts +1 -0
  138. package/dist/hooks/use-mobile.js +16 -0
  139. package/dist/hooks/use-mobile.js.map +1 -0
  140. package/dist/hooks/use-resource-table.d.ts +141 -0
  141. package/dist/index.d.ts +36 -22
  142. package/dist/index.js +34 -22
  143. package/dist/index.js.map +1 -1
  144. package/dist/lib/interaction-styles.d.ts +10 -0
  145. package/dist/lib/interaction-styles.js +15 -0
  146. package/dist/lib/interaction-styles.js.map +1 -0
  147. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +118 -0
  148. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
  149. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +77 -0
  150. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
  151. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +190 -0
  152. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
  153. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +46 -0
  154. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
  155. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +15 -0
  156. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
  157. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +7 -0
  158. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
  159. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +7 -0
  160. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
  161. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +14 -0
  162. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
  163. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +15 -0
  164. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
  165. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +7 -0
  166. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
  167. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +18 -0
  168. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
  169. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +11 -0
  170. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
  171. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +10 -0
  172. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
  173. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +9 -0
  174. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
  175. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
  176. package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
  177. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +586 -0
  178. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
  179. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +51 -0
  180. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
  181. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +130 -0
  182. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
  183. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +42 -0
  184. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
  185. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +31 -0
  186. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
  187. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +285 -0
  188. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
  189. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +51 -0
  190. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
  191. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +38 -0
  192. package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
  193. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +71 -0
  194. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
  195. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +41 -0
  196. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
  197. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +14 -0
  198. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
  199. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +49 -0
  200. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
  201. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +18 -0
  202. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
  203. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +22 -0
  204. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
  205. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +138 -0
  206. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
  207. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +12 -0
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +16 -0
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +77 -0
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +50 -0
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
  215. package/dist/node_modules/framer-motion/dist/es/motion/index.js +113 -0
  216. package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
  217. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  218. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
  219. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +52 -0
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +166 -0
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +81 -0
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
  225. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +59 -0
  226. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
  227. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +46 -0
  228. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
  229. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +14 -0
  230. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +1 -0
  231. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +8 -0
  232. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
  233. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +19 -0
  234. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
  235. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +28 -0
  236. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
  237. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +37 -0
  238. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
  239. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +31 -0
  240. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
  241. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +12 -0
  242. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +1 -0
  243. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +59 -0
  244. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
  245. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  246. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
  247. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +34 -0
  248. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
  249. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +26 -0
  250. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
  251. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +12 -0
  252. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +1 -0
  253. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +9 -0
  254. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
  255. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
  256. package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
  257. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +7 -0
  258. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
  259. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  260. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
  261. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
  262. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
  263. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +49 -0
  264. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +1 -0
  265. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +61 -0
  266. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +1 -0
  267. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +20 -0
  268. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
  269. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +8 -0
  270. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
  271. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +200 -0
  272. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +1 -0
  273. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +386 -0
  274. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +1 -0
  275. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +181 -0
  276. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +1 -0
  277. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +88 -0
  278. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +1 -0
  279. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +12 -0
  280. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +1 -0
  281. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +18 -0
  282. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +1 -0
  283. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +88 -0
  284. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +1 -0
  285. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +52 -0
  286. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +1 -0
  287. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +331 -0
  288. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +1 -0
  289. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +18 -0
  290. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
  291. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +20 -0
  292. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +1 -0
  293. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  294. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
  295. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +10 -0
  296. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +1 -0
  297. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +106 -0
  298. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +1 -0
  299. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +109 -0
  300. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
  301. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +60 -0
  302. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
  303. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +27 -0
  304. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +1 -0
  305. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +142 -0
  306. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +1 -0
  307. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +148 -0
  308. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +1 -0
  309. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +12 -0
  310. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +1 -0
  311. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +10 -0
  312. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +1 -0
  313. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +13 -0
  314. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +1 -0
  315. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
  316. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +1 -0
  317. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
  318. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +1 -0
  319. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +16 -0
  320. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +1 -0
  321. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +31 -0
  322. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +1 -0
  323. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +47 -0
  324. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +1 -0
  325. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +7 -0
  326. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +1 -0
  327. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +8 -0
  328. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
  329. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
  330. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +1 -0
  331. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +16 -0
  332. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +1 -0
  333. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +44 -0
  334. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +1 -0
  335. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +43 -0
  336. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +1 -0
  337. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +41 -0
  338. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +1 -0
  339. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +14 -0
  340. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
  341. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +31 -0
  342. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +1 -0
  343. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +27 -0
  344. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +1 -0
  345. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +27 -0
  346. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +1 -0
  347. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +7 -0
  348. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +1 -0
  349. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +19 -0
  350. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +1 -0
  351. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +15 -0
  352. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +1 -0
  353. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
  354. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +1 -0
  355. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +29 -0
  356. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +1 -0
  357. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +16 -0
  358. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +1 -0
  359. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +29 -0
  360. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +1 -0
  361. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +55 -0
  362. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +1 -0
  363. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +13 -0
  364. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +1 -0
  365. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +16 -0
  366. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +1 -0
  367. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +13 -0
  368. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +1 -0
  369. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +13 -0
  370. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
  371. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +21 -0
  372. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +1 -0
  373. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +7 -0
  374. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +1 -0
  375. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +73 -0
  376. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +1 -0
  377. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +7 -0
  378. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +1 -0
  379. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +7 -0
  380. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +1 -0
  381. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +13 -0
  382. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +1 -0
  383. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +84 -0
  384. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +1 -0
  385. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +32 -0
  386. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +1 -0
  387. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +10 -0
  388. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
  389. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +29 -0
  390. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
  391. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +70 -0
  392. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
  393. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +97 -0
  394. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
  395. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +34 -0
  396. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
  397. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +39 -0
  398. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
  399. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  400. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
  401. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +21 -0
  402. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
  403. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +19 -0
  404. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
  405. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +16 -0
  406. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
  407. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +69 -0
  408. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +1 -0
  409. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +34 -0
  410. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +1 -0
  411. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +32 -0
  412. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +1 -0
  413. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +125 -0
  414. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +1 -0
  415. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +59 -0
  416. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +1 -0
  417. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +55 -0
  418. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +1 -0
  419. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
  420. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +1 -0
  421. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +32 -0
  422. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +1 -0
  423. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +14 -0
  424. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
  425. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +28 -0
  426. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
  427. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1660 -0
  428. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +1 -0
  429. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +20 -0
  430. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +1 -0
  431. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +85 -0
  432. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +1 -0
  433. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +42 -0
  434. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +1 -0
  435. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +36 -0
  436. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
  437. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +18 -0
  438. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +1 -0
  439. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +53 -0
  440. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +1 -0
  441. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
  442. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +1 -0
  443. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
  444. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +1 -0
  445. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +25 -0
  446. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +1 -0
  447. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +27 -0
  448. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +1 -0
  449. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +18 -0
  450. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +1 -0
  451. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +15 -0
  452. package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +1 -0
  453. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +564 -0
  454. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +1 -0
  455. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +43 -0
  456. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +1 -0
  457. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
  458. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +1 -0
  459. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +84 -0
  460. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +1 -0
  461. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +10 -0
  462. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +1 -0
  463. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  464. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
  465. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +55 -0
  466. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +1 -0
  467. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +66 -0
  468. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +1 -0
  469. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +72 -0
  470. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +1 -0
  471. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +18 -0
  472. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +1 -0
  473. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +22 -0
  474. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
  475. package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
  476. package/dist/node_modules/motion-dom/dist/es/render/store.js.map +1 -0
  477. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +52 -0
  478. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +1 -0
  479. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +64 -0
  480. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +1 -0
  481. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +31 -0
  482. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
  483. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  484. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
  485. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +32 -0
  486. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +1 -0
  487. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +13 -0
  488. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +1 -0
  489. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +20 -0
  490. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
  491. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +387 -0
  492. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +1 -0
  493. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +33 -0
  494. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +1 -0
  495. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +8 -0
  496. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +1 -0
  497. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +14 -0
  498. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +1 -0
  499. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +12 -0
  500. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +1 -0
  501. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
  502. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +1 -0
  503. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +9 -0
  504. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +1 -0
  505. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +14 -0
  506. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +1 -0
  507. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +36 -0
  508. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +1 -0
  509. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +56 -0
  510. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +1 -0
  511. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +20 -0
  512. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +1 -0
  513. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
  514. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +1 -0
  515. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +9 -0
  516. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
  517. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +37 -0
  518. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +1 -0
  519. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +32 -0
  520. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +1 -0
  521. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +15 -0
  522. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +1 -0
  523. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
  524. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +1 -0
  525. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +64 -0
  526. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +1 -0
  527. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +32 -0
  528. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +1 -0
  529. package/dist/node_modules/motion-dom/dist/es/resize/index.js +9 -0
  530. package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +1 -0
  531. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +15 -0
  532. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +1 -0
  533. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +21 -0
  534. package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +1 -0
  535. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +80 -0
  536. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +1 -0
  537. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +14 -0
  538. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +1 -0
  539. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +12 -0
  540. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +1 -0
  541. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +12 -0
  542. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +1 -0
  543. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +48 -0
  544. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +1 -0
  545. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +94 -0
  546. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +1 -0
  547. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
  548. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +1 -0
  549. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +15 -0
  550. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +1 -0
  551. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +27 -0
  552. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +1 -0
  553. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +17 -0
  554. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +1 -0
  555. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +18 -0
  556. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
  557. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +8 -0
  558. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
  559. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +16 -0
  560. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
  561. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +10 -0
  562. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
  563. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
  564. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
  565. package/dist/node_modules/motion-dom/dist/es/value/index.js +320 -0
  566. package/dist/node_modules/motion-dom/dist/es/value/index.js.map +1 -0
  567. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +10 -0
  568. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +1 -0
  569. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +41 -0
  570. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +1 -0
  571. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +43 -0
  572. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +1 -0
  573. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +23 -0
  574. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +1 -0
  575. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +33 -0
  576. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +1 -0
  577. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +26 -0
  578. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +1 -0
  579. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +30 -0
  580. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +1 -0
  581. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +31 -0
  582. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +1 -0
  583. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +114 -0
  584. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +1 -0
  585. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +13 -0
  586. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +1 -0
  587. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +16 -0
  588. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +1 -0
  589. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +9 -0
  590. package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +1 -0
  591. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +34 -0
  592. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +1 -0
  593. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +71 -0
  594. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +1 -0
  595. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +38 -0
  596. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +1 -0
  597. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +18 -0
  598. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +1 -0
  599. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +19 -0
  600. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +1 -0
  601. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +7 -0
  602. package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +1 -0
  603. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +18 -0
  604. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +1 -0
  605. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
  606. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +1 -0
  607. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +16 -0
  608. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +1 -0
  609. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
  610. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +1 -0
  611. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +11 -0
  612. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +1 -0
  613. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
  614. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +1 -0
  615. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +6 -0
  616. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +1 -0
  617. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
  618. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +1 -0
  619. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
  620. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +1 -0
  621. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +11 -0
  622. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +1 -0
  623. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +21 -0
  624. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +1 -0
  625. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +8 -0
  626. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +1 -0
  627. package/dist/node_modules/motion-utils/dist/es/array.js +12 -0
  628. package/dist/node_modules/motion-utils/dist/es/array.js.map +1 -0
  629. package/dist/node_modules/motion-utils/dist/es/clamp.js +10 -0
  630. package/dist/node_modules/motion-utils/dist/es/clamp.js.map +1 -0
  631. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +10 -0
  632. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +1 -0
  633. package/dist/node_modules/motion-utils/dist/es/easing/back.js +10 -0
  634. package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +1 -0
  635. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +9 -0
  636. package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +1 -0
  637. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +53 -0
  638. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +1 -0
  639. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +8 -0
  640. package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +1 -0
  641. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +7 -0
  642. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +1 -0
  643. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +7 -0
  644. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +1 -0
  645. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +5 -0
  646. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +1 -0
  647. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +7 -0
  648. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +1 -0
  649. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +42 -0
  650. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +1 -0
  651. package/dist/node_modules/motion-utils/dist/es/errors.js +20 -0
  652. package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
  653. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +8 -0
  654. package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +1 -0
  655. package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
  656. package/dist/node_modules/motion-utils/dist/es/global-config.js.map +1 -0
  657. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +7 -0
  658. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +1 -0
  659. package/dist/node_modules/motion-utils/dist/es/is-object.js +4 -0
  660. package/dist/node_modules/motion-utils/dist/es/is-object.js.map +1 -0
  661. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +7 -0
  662. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +1 -0
  663. package/dist/node_modules/motion-utils/dist/es/memo.js +12 -0
  664. package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
  665. package/dist/node_modules/motion-utils/dist/es/noop.js +5 -0
  666. package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
  667. package/dist/node_modules/motion-utils/dist/es/pipe.js +11 -0
  668. package/dist/node_modules/motion-utils/dist/es/pipe.js.map +1 -0
  669. package/dist/node_modules/motion-utils/dist/es/progress.js +15 -0
  670. package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
  671. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +41 -0
  672. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +1 -0
  673. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +13 -0
  674. package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
  675. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +8 -0
  676. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +1 -0
  677. package/dist/node_modules/motion-utils/dist/es/warn-once.js +12 -0
  678. package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +1 -0
  679. package/package.json +107 -71
  680. package/theme.css +147 -20
  681. package/theme.legacy.css +84 -0
  682. package/dist/components/ui/accordion.js +0 -20
  683. package/dist/components/ui/accordion.js.map +0 -1
  684. package/dist/components/ui/animated-count.js +0 -22
  685. package/dist/components/ui/animated-count.js.map +0 -1
  686. package/dist/components/ui/app-header.js +0 -72
  687. package/dist/components/ui/app-header.js.map +0 -1
  688. package/dist/components/ui/avatar.js.map +0 -1
  689. package/dist/components/ui/badge.d.ts +0 -22
  690. package/dist/components/ui/badge.js.map +0 -1
  691. package/dist/components/ui/button.d.ts +0 -13
  692. package/dist/components/ui/button.js +0 -88
  693. package/dist/components/ui/button.js.map +0 -1
  694. package/dist/components/ui/button.test.d.ts +0 -1
  695. package/dist/components/ui/calendar.d.ts +0 -7
  696. package/dist/components/ui/checkbox.d.ts +0 -4
  697. package/dist/components/ui/checkbox.js +0 -11
  698. package/dist/components/ui/checkbox.js.map +0 -1
  699. package/dist/components/ui/dialog.js +0 -41
  700. package/dist/components/ui/dialog.js.map +0 -1
  701. package/dist/components/ui/dropdown-menu.js +0 -61
  702. package/dist/components/ui/dropdown-menu.js.map +0 -1
  703. package/dist/components/ui/fab.js +0 -9
  704. package/dist/components/ui/fab.js.map +0 -1
  705. package/dist/components/ui/icons.d.ts +0 -10
  706. package/dist/components/ui/icons.js +0 -39
  707. package/dist/components/ui/icons.js.map +0 -1
  708. package/dist/components/ui/input.js +0 -17
  709. package/dist/components/ui/input.js.map +0 -1
  710. package/dist/components/ui/label.d.ts +0 -4
  711. package/dist/components/ui/label.js +0 -10
  712. package/dist/components/ui/label.js.map +0 -1
  713. package/dist/components/ui/page-header.d.ts +0 -18
  714. package/dist/components/ui/page-header.js +0 -17
  715. package/dist/components/ui/page-header.js.map +0 -1
  716. package/dist/components/ui/popover.js.map +0 -1
  717. package/dist/components/ui/separator.d.ts +0 -4
  718. package/dist/components/ui/separator.js +0 -10
  719. package/dist/components/ui/separator.js.map +0 -1
  720. package/dist/components/ui/skeleton.js.map +0 -1
  721. package/dist/components/ui/status-notice.d.ts +0 -14
  722. package/dist/components/ui/status-notice.js +0 -27
  723. package/dist/components/ui/status-notice.js.map +0 -1
  724. package/dist/components/ui/switch.js +0 -10
  725. package/dist/components/ui/switch.js.map +0 -1
  726. package/dist/components/ui/table.d.ts +0 -10
  727. package/dist/components/ui/table.js +0 -30
  728. package/dist/components/ui/table.js.map +0 -1
  729. package/dist/components/ui/textarea.d.ts +0 -3
  730. package/dist/components/ui/textarea.js +0 -9
  731. package/dist/components/ui/textarea.js.map +0 -1
  732. package/dist/components/ui/tooltip.js.map +0 -1
  733. package/dist/config.d.ts +0 -6
  734. package/dist/config.js +0 -9
  735. package/dist/config.js.map +0 -1
  736. package/dist/hooks/useClientProcess.d.ts +0 -69
  737. package/dist/hooks/useClientProcess.js +0 -255
  738. package/dist/hooks/useClientProcess.js.map +0 -1
  739. /package/dist/components/{ui/avatar.d.ts → avatar.d.ts} +0 -0
  740. /package/dist/components/{ui/dropdown-menu.d.ts → dropdown-menu.d.ts} +0 -0
  741. /package/dist/components/{ui/fab.d.ts → fab.d.ts} +0 -0
  742. /package/dist/components/{ui/input.d.ts → input.d.ts} +0 -0
  743. /package/dist/components/{ui/popover.d.ts → popover.d.ts} +0 -0
  744. /package/dist/components/{ui/skeleton.d.ts → skeleton.d.ts} +0 -0
  745. /package/dist/components/{ui/switch.d.ts → switch.d.ts} +0 -0
  746. /package/dist/components/{ui/tooltip.d.ts → tooltip.d.ts} +0 -0
@@ -0,0 +1,564 @@
1
+ import { KeyframeResolver } from '../animation/keyframes/KeyframesResolver.js';
2
+ import { NativeAnimation } from '../animation/NativeAnimation.js';
3
+ import { acceleratedValues } from '../animation/waapi/utils/accelerated-values.js';
4
+ import { microtask } from '../frameloop/microtask.js';
5
+ import { time } from '../frameloop/sync-time.js';
6
+ import { createBox } from '../projection/geometry/models.js';
7
+ import { motionValue } from '../value/index.js';
8
+ import { complex } from '../value/types/complex/index.js';
9
+ import { getAnimatableNone } from '../value/types/utils/animatable-none.js';
10
+ import { findValueType } from '../value/types/utils/find.js';
11
+ import { isMotionValue } from '../value/utils/is-motion-value.js';
12
+ import { visualElementStore } from './store.js';
13
+ import { isControllingVariants, isVariantNode } from './utils/is-controlling-variants.js';
14
+ import { transformProps } from './utils/keys-transform.js';
15
+ import { updateMotionValuesFromProps } from './utils/motion-values.js';
16
+ import { initPrefersReducedMotion } from './utils/reduced-motion/index.js';
17
+ import { resolveVariantFromProps } from './utils/resolve-variants.js';
18
+ import { hasReducedMotionListener, prefersReducedMotion } from './utils/reduced-motion/state.js';
19
+ import { frame, cancelFrame } from '../frameloop/frame.js';
20
+ import { warnOnce } from '../../../../motion-utils/dist/es/warn-once.js';
21
+ import { secondsToMilliseconds } from '../../../../motion-utils/dist/es/time-conversion.js';
22
+ import { isNumericalString } from '../../../../motion-utils/dist/es/is-numerical-string.js';
23
+ import { isZeroValueString } from '../../../../motion-utils/dist/es/is-zero-value-string.js';
24
+ import { SubscriptionManager } from '../../../../motion-utils/dist/es/subscription-manager.js';
25
+
26
+ const propEventHandlers = [
27
+ "AnimationStart",
28
+ "AnimationComplete",
29
+ "Update",
30
+ "BeforeLayoutMeasure",
31
+ "LayoutMeasure",
32
+ "LayoutAnimationStart",
33
+ "LayoutAnimationComplete",
34
+ ];
35
+ /**
36
+ * Static feature definitions - can be injected by framework layer
37
+ */
38
+ let featureDefinitions = {};
39
+ /**
40
+ * Set feature definitions for all VisualElements.
41
+ * This should be called by the framework layer (e.g., framer-motion) during initialization.
42
+ */
43
+ function setFeatureDefinitions(definitions) {
44
+ featureDefinitions = definitions;
45
+ }
46
+ /**
47
+ * Get the current feature definitions
48
+ */
49
+ function getFeatureDefinitions() {
50
+ return featureDefinitions;
51
+ }
52
+ /**
53
+ * A VisualElement is an imperative abstraction around UI elements such as
54
+ * HTMLElement, SVGElement, Three.Object3D etc.
55
+ */
56
+ class VisualElement {
57
+ /**
58
+ * This method takes React props and returns found MotionValues. For example, HTML
59
+ * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
60
+ *
61
+ * This isn't an abstract method as it needs calling in the constructor, but it is
62
+ * intended to be one.
63
+ */
64
+ scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {
65
+ return {};
66
+ }
67
+ constructor({ parent, props, presenceContext, reducedMotionConfig, skipAnimations, blockInitialAnimation, visualState, }, options = {}) {
68
+ /**
69
+ * A reference to the current underlying Instance, e.g. a HTMLElement
70
+ * or Three.Mesh etc.
71
+ */
72
+ this.current = null;
73
+ /**
74
+ * A set containing references to this VisualElement's children.
75
+ */
76
+ this.children = new Set();
77
+ /**
78
+ * Determine what role this visual element should take in the variant tree.
79
+ */
80
+ this.isVariantNode = false;
81
+ this.isControllingVariants = false;
82
+ /**
83
+ * Decides whether this VisualElement should animate in reduced motion
84
+ * mode.
85
+ *
86
+ * TODO: This is currently set on every individual VisualElement but feels
87
+ * like it could be set globally.
88
+ */
89
+ this.shouldReduceMotion = null;
90
+ /**
91
+ * Decides whether animations should be skipped for this VisualElement.
92
+ * Useful for E2E tests and visual regression testing.
93
+ */
94
+ this.shouldSkipAnimations = false;
95
+ /**
96
+ * A map of all motion values attached to this visual element. Motion
97
+ * values are source of truth for any given animated value. A motion
98
+ * value might be provided externally by the component via props.
99
+ */
100
+ this.values = new Map();
101
+ this.KeyframeResolver = KeyframeResolver;
102
+ /**
103
+ * Cleanup functions for active features (hover/tap/exit etc)
104
+ */
105
+ this.features = {};
106
+ /**
107
+ * A map of every subscription that binds the provided or generated
108
+ * motion values onChange listeners to this visual element.
109
+ */
110
+ this.valueSubscriptions = new Map();
111
+ /**
112
+ * A reference to the previously-provided motion values as returned
113
+ * from scrapeMotionValuesFromProps. We use the keys in here to determine
114
+ * if any motion values need to be removed after props are updated.
115
+ */
116
+ this.prevMotionValues = {};
117
+ /**
118
+ * Track whether this element has been mounted before, to detect
119
+ * remounts after Suspense unmount/remount cycles.
120
+ */
121
+ this.hasBeenMounted = false;
122
+ /**
123
+ * An object containing a SubscriptionManager for each active event.
124
+ */
125
+ this.events = {};
126
+ /**
127
+ * An object containing an unsubscribe function for each prop event subscription.
128
+ * For example, every "Update" event can have multiple subscribers via
129
+ * VisualElement.on(), but only one of those can be defined via the onUpdate prop.
130
+ */
131
+ this.propEventSubscriptions = {};
132
+ this.notifyUpdate = () => this.notify("Update", this.latestValues);
133
+ this.render = () => {
134
+ if (!this.current)
135
+ return;
136
+ this.triggerBuild();
137
+ this.renderInstance(this.current, this.renderState, this.props.style, this.projection);
138
+ };
139
+ this.renderScheduledAt = 0.0;
140
+ this.scheduleRender = () => {
141
+ const now = time.now();
142
+ if (this.renderScheduledAt < now) {
143
+ this.renderScheduledAt = now;
144
+ frame.render(this.render, false, true);
145
+ }
146
+ };
147
+ const { latestValues, renderState } = visualState;
148
+ this.latestValues = latestValues;
149
+ this.baseTarget = { ...latestValues };
150
+ this.initialValues = props.initial ? { ...latestValues } : {};
151
+ this.renderState = renderState;
152
+ this.parent = parent;
153
+ this.props = props;
154
+ this.presenceContext = presenceContext;
155
+ this.depth = parent ? parent.depth + 1 : 0;
156
+ this.reducedMotionConfig = reducedMotionConfig;
157
+ this.skipAnimationsConfig = skipAnimations;
158
+ this.options = options;
159
+ this.blockInitialAnimation = Boolean(blockInitialAnimation);
160
+ this.isControllingVariants = isControllingVariants(props);
161
+ this.isVariantNode = isVariantNode(props);
162
+ if (this.isVariantNode) {
163
+ this.variantChildren = new Set();
164
+ }
165
+ this.manuallyAnimateOnMount = Boolean(parent && parent.current);
166
+ /**
167
+ * Any motion values that are provided to the element when created
168
+ * aren't yet bound to the element, as this would technically be impure.
169
+ * However, we iterate through the motion values and set them to the
170
+ * initial values for this component.
171
+ *
172
+ * TODO: This is impure and we should look at changing this to run on mount.
173
+ * Doing so will break some tests but this isn't necessarily a breaking change,
174
+ * more a reflection of the test.
175
+ */
176
+ const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);
177
+ for (const key in initialMotionValues) {
178
+ const value = initialMotionValues[key];
179
+ if (latestValues[key] !== undefined && isMotionValue(value)) {
180
+ value.set(latestValues[key]);
181
+ }
182
+ }
183
+ }
184
+ mount(instance) {
185
+ /**
186
+ * If this element has been mounted before (e.g. after a Suspense
187
+ * unmount/remount), reset motion values to their initial state
188
+ * so animations replay correctly from initial → animate.
189
+ */
190
+ if (this.hasBeenMounted) {
191
+ for (const key in this.initialValues) {
192
+ this.values.get(key)?.jump(this.initialValues[key]);
193
+ this.latestValues[key] = this.initialValues[key];
194
+ }
195
+ }
196
+ this.current = instance;
197
+ visualElementStore.set(instance, this);
198
+ if (this.projection && !this.projection.instance) {
199
+ this.projection.mount(instance);
200
+ }
201
+ if (this.parent && this.isVariantNode && !this.isControllingVariants) {
202
+ this.removeFromVariantTree = this.parent.addVariantChild(this);
203
+ }
204
+ this.values.forEach((value, key) => this.bindToMotionValue(key, value));
205
+ /**
206
+ * Determine reduced motion preference. Only initialize the matchMedia
207
+ * listener if we actually need the dynamic value (i.e., when config
208
+ * is neither "never" nor "always").
209
+ */
210
+ if (this.reducedMotionConfig === "never") {
211
+ this.shouldReduceMotion = false;
212
+ }
213
+ else if (this.reducedMotionConfig === "always") {
214
+ this.shouldReduceMotion = true;
215
+ }
216
+ else {
217
+ if (!hasReducedMotionListener.current) {
218
+ initPrefersReducedMotion();
219
+ }
220
+ this.shouldReduceMotion = prefersReducedMotion.current;
221
+ }
222
+ if (process.env.NODE_ENV !== "production") {
223
+ warnOnce(this.shouldReduceMotion !== true, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled");
224
+ }
225
+ /**
226
+ * Set whether animations should be skipped based on the config.
227
+ */
228
+ this.shouldSkipAnimations = this.skipAnimationsConfig ?? false;
229
+ this.parent?.addChild(this);
230
+ this.update(this.props, this.presenceContext);
231
+ this.hasBeenMounted = true;
232
+ }
233
+ unmount() {
234
+ this.projection && this.projection.unmount();
235
+ cancelFrame(this.notifyUpdate);
236
+ cancelFrame(this.render);
237
+ this.valueSubscriptions.forEach((remove) => remove());
238
+ this.valueSubscriptions.clear();
239
+ this.removeFromVariantTree && this.removeFromVariantTree();
240
+ this.parent?.removeChild(this);
241
+ for (const key in this.events) {
242
+ this.events[key].clear();
243
+ }
244
+ for (const key in this.features) {
245
+ const feature = this.features[key];
246
+ if (feature) {
247
+ feature.unmount();
248
+ feature.isMounted = false;
249
+ }
250
+ }
251
+ this.current = null;
252
+ }
253
+ addChild(child) {
254
+ this.children.add(child);
255
+ this.enteringChildren ?? (this.enteringChildren = new Set());
256
+ this.enteringChildren.add(child);
257
+ }
258
+ removeChild(child) {
259
+ this.children.delete(child);
260
+ this.enteringChildren && this.enteringChildren.delete(child);
261
+ }
262
+ bindToMotionValue(key, value) {
263
+ if (this.valueSubscriptions.has(key)) {
264
+ this.valueSubscriptions.get(key)();
265
+ }
266
+ if (value.accelerate &&
267
+ acceleratedValues.has(key) &&
268
+ this.current instanceof HTMLElement) {
269
+ const { factory, keyframes, times, ease, duration } = value.accelerate;
270
+ const animation = new NativeAnimation({
271
+ element: this.current,
272
+ name: key,
273
+ keyframes,
274
+ times,
275
+ ease,
276
+ duration: secondsToMilliseconds(duration),
277
+ });
278
+ const cleanup = factory(animation);
279
+ this.valueSubscriptions.set(key, () => {
280
+ cleanup();
281
+ animation.cancel();
282
+ });
283
+ return;
284
+ }
285
+ const valueIsTransform = transformProps.has(key);
286
+ if (valueIsTransform && this.onBindTransform) {
287
+ this.onBindTransform();
288
+ }
289
+ const removeOnChange = value.on("change", (latestValue) => {
290
+ this.latestValues[key] = latestValue;
291
+ this.props.onUpdate && frame.preRender(this.notifyUpdate);
292
+ if (valueIsTransform && this.projection) {
293
+ this.projection.isTransformDirty = true;
294
+ }
295
+ this.scheduleRender();
296
+ });
297
+ let removeSyncCheck;
298
+ if (typeof window !== "undefined" &&
299
+ window.MotionCheckAppearSync) {
300
+ removeSyncCheck = window.MotionCheckAppearSync(this, key, value);
301
+ }
302
+ this.valueSubscriptions.set(key, () => {
303
+ removeOnChange();
304
+ if (removeSyncCheck)
305
+ removeSyncCheck();
306
+ // Defer to MotionValue.on("change") auto-stop so React 19 remounts
307
+ // can resubscribe before the animation is cancelled (#3315).
308
+ });
309
+ }
310
+ sortNodePosition(other) {
311
+ /**
312
+ * If these nodes aren't even of the same type we can't compare their depth.
313
+ */
314
+ if (!this.current ||
315
+ !this.sortInstanceNodePosition ||
316
+ this.type !== other.type) {
317
+ return 0;
318
+ }
319
+ return this.sortInstanceNodePosition(this.current, other.current);
320
+ }
321
+ updateFeatures() {
322
+ let key = "animation";
323
+ for (key in featureDefinitions) {
324
+ const featureDefinition = featureDefinitions[key];
325
+ if (!featureDefinition)
326
+ continue;
327
+ const { isEnabled, Feature: FeatureConstructor } = featureDefinition;
328
+ /**
329
+ * If this feature is enabled but not active, make a new instance.
330
+ */
331
+ if (!this.features[key] &&
332
+ FeatureConstructor &&
333
+ isEnabled(this.props)) {
334
+ this.features[key] = new FeatureConstructor(this);
335
+ }
336
+ /**
337
+ * If we have a feature, mount or update it.
338
+ */
339
+ if (this.features[key]) {
340
+ const feature = this.features[key];
341
+ if (feature.isMounted) {
342
+ feature.update();
343
+ }
344
+ else {
345
+ feature.mount();
346
+ feature.isMounted = true;
347
+ }
348
+ }
349
+ }
350
+ }
351
+ triggerBuild() {
352
+ this.build(this.renderState, this.latestValues, this.props);
353
+ }
354
+ /**
355
+ * Measure the current viewport box with or without transforms.
356
+ * Only measures axis-aligned boxes, rotate and skew must be manually
357
+ * removed with a re-render to work.
358
+ */
359
+ measureViewportBox() {
360
+ return this.current
361
+ ? this.measureInstanceViewportBox(this.current, this.props)
362
+ : createBox();
363
+ }
364
+ getStaticValue(key) {
365
+ return this.latestValues[key];
366
+ }
367
+ setStaticValue(key, value) {
368
+ this.latestValues[key] = value;
369
+ }
370
+ /**
371
+ * Update the provided props. Ensure any newly-added motion values are
372
+ * added to our map, old ones removed, and listeners updated.
373
+ */
374
+ update(props, presenceContext) {
375
+ if (props.transformTemplate || this.props.transformTemplate) {
376
+ this.scheduleRender();
377
+ }
378
+ this.prevProps = this.props;
379
+ this.props = props;
380
+ this.prevPresenceContext = this.presenceContext;
381
+ this.presenceContext = presenceContext;
382
+ /**
383
+ * Update prop event handlers ie onAnimationStart, onAnimationComplete
384
+ */
385
+ for (let i = 0; i < propEventHandlers.length; i++) {
386
+ const key = propEventHandlers[i];
387
+ if (this.propEventSubscriptions[key]) {
388
+ this.propEventSubscriptions[key]();
389
+ delete this.propEventSubscriptions[key];
390
+ }
391
+ const listenerName = ("on" + key);
392
+ const listener = props[listenerName];
393
+ if (listener) {
394
+ this.propEventSubscriptions[key] = this.on(key, listener);
395
+ }
396
+ }
397
+ this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps || {}, this), this.prevMotionValues);
398
+ if (this.handleChildMotionValue) {
399
+ this.handleChildMotionValue();
400
+ }
401
+ }
402
+ getProps() {
403
+ return this.props;
404
+ }
405
+ /**
406
+ * Returns the variant definition with a given name.
407
+ */
408
+ getVariant(name) {
409
+ return this.props.variants ? this.props.variants[name] : undefined;
410
+ }
411
+ /**
412
+ * Returns the defined default transition on this component.
413
+ */
414
+ getDefaultTransition() {
415
+ return this.props.transition;
416
+ }
417
+ getTransformPagePoint() {
418
+ return this.props.transformPagePoint;
419
+ }
420
+ getClosestVariantNode() {
421
+ return this.isVariantNode
422
+ ? this
423
+ : this.parent
424
+ ? this.parent.getClosestVariantNode()
425
+ : undefined;
426
+ }
427
+ /**
428
+ * Add a child visual element to our set of children.
429
+ */
430
+ addVariantChild(child) {
431
+ const closestVariantNode = this.getClosestVariantNode();
432
+ if (closestVariantNode) {
433
+ closestVariantNode.variantChildren &&
434
+ closestVariantNode.variantChildren.add(child);
435
+ return () => closestVariantNode.variantChildren.delete(child);
436
+ }
437
+ }
438
+ /**
439
+ * Add a motion value and bind it to this visual element.
440
+ */
441
+ addValue(key, value) {
442
+ // Remove existing value if it exists
443
+ const existingValue = this.values.get(key);
444
+ if (value !== existingValue) {
445
+ if (existingValue)
446
+ this.removeValue(key);
447
+ this.bindToMotionValue(key, value);
448
+ this.values.set(key, value);
449
+ this.latestValues[key] = value.get();
450
+ }
451
+ }
452
+ /**
453
+ * Remove a motion value and unbind any active subscriptions.
454
+ */
455
+ removeValue(key) {
456
+ this.values.delete(key);
457
+ const unsubscribe = this.valueSubscriptions.get(key);
458
+ if (unsubscribe) {
459
+ unsubscribe();
460
+ this.valueSubscriptions.delete(key);
461
+ }
462
+ delete this.latestValues[key];
463
+ this.removeValueFromRenderState(key, this.renderState);
464
+ }
465
+ /**
466
+ * Check whether we have a motion value for this key
467
+ */
468
+ hasValue(key) {
469
+ return this.values.has(key);
470
+ }
471
+ getValue(key, defaultValue) {
472
+ if (this.props.values && this.props.values[key]) {
473
+ return this.props.values[key];
474
+ }
475
+ let value = this.values.get(key);
476
+ if (value === undefined && defaultValue !== undefined) {
477
+ value = motionValue(defaultValue === null ? undefined : defaultValue, { owner: this });
478
+ this.addValue(key, value);
479
+ }
480
+ return value;
481
+ }
482
+ /**
483
+ * If we're trying to animate to a previously unencountered value,
484
+ * we need to check for it in our state and as a last resort read it
485
+ * directly from the instance (which might have performance implications).
486
+ */
487
+ readValue(key, target) {
488
+ let value = this.latestValues[key] !== undefined || !this.current
489
+ ? this.latestValues[key]
490
+ : this.getBaseTargetFromProps(this.props, key) ??
491
+ this.readValueFromInstance(this.current, key, this.options);
492
+ if (value !== undefined && value !== null) {
493
+ if (typeof value === "string" &&
494
+ (isNumericalString(value) || isZeroValueString(value))) {
495
+ // If this is a number read as a string, ie "0" or "200", convert it to a number
496
+ value = parseFloat(value);
497
+ }
498
+ else if (!findValueType(value) && complex.test(target)) {
499
+ value = getAnimatableNone(key, target);
500
+ }
501
+ this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);
502
+ }
503
+ return isMotionValue(value) ? value.get() : value;
504
+ }
505
+ /**
506
+ * Set the base target to later animate back to. This is currently
507
+ * only hydrated on creation and when we first read a value.
508
+ */
509
+ setBaseTarget(key, value) {
510
+ this.baseTarget[key] = value;
511
+ }
512
+ /**
513
+ * Find the base target for a value thats been removed from all animation
514
+ * props.
515
+ */
516
+ getBaseTarget(key) {
517
+ const { initial } = this.props;
518
+ let valueFromInitial;
519
+ if (typeof initial === "string" || typeof initial === "object") {
520
+ const variant = resolveVariantFromProps(this.props, initial, this.presenceContext?.custom);
521
+ if (variant) {
522
+ valueFromInitial = variant[key];
523
+ }
524
+ }
525
+ /**
526
+ * If this value still exists in the current initial variant, read that.
527
+ */
528
+ if (initial && valueFromInitial !== undefined) {
529
+ return valueFromInitial;
530
+ }
531
+ /**
532
+ * Alternatively, if this VisualElement config has defined a getBaseTarget
533
+ * so we can read the value from an alternative source, try that.
534
+ */
535
+ const target = this.getBaseTargetFromProps(this.props, key);
536
+ if (target !== undefined && !isMotionValue(target))
537
+ return target;
538
+ /**
539
+ * If the value was initially defined on initial, but it doesn't any more,
540
+ * return undefined. Otherwise return the value as initially read from the DOM.
541
+ */
542
+ return this.initialValues[key] !== undefined &&
543
+ valueFromInitial === undefined
544
+ ? undefined
545
+ : this.baseTarget[key];
546
+ }
547
+ on(eventName, callback) {
548
+ if (!this.events[eventName]) {
549
+ this.events[eventName] = new SubscriptionManager();
550
+ }
551
+ return this.events[eventName].add(callback);
552
+ }
553
+ notify(eventName, ...args) {
554
+ if (this.events[eventName]) {
555
+ this.events[eventName].notify(...args);
556
+ }
557
+ }
558
+ scheduleRenderMicrotask() {
559
+ microtask.render(this.render);
560
+ }
561
+ }
562
+
563
+ export { VisualElement, getFeatureDefinitions, setFeatureDefinitions };
564
+ //# sourceMappingURL=VisualElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisualElement.js","sources":["../../../../../../node_modules/motion-dom/dist/es/render/VisualElement.mjs"],"sourcesContent":["import { warnOnce, secondsToMilliseconds, isNumericalString, isZeroValueString, SubscriptionManager } from 'motion-utils';\nimport { KeyframeResolver } from '../animation/keyframes/KeyframesResolver.mjs';\nimport { NativeAnimation } from '../animation/NativeAnimation.mjs';\nimport { acceleratedValues } from '../animation/waapi/utils/accelerated-values.mjs';\nimport { microtask } from '../frameloop/microtask.mjs';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { createBox } from '../projection/geometry/models.mjs';\nimport { motionValue } from '../value/index.mjs';\nimport { complex } from '../value/types/complex/index.mjs';\nimport { getAnimatableNone } from '../value/types/utils/animatable-none.mjs';\nimport { findValueType } from '../value/types/utils/find.mjs';\nimport { isMotionValue } from '../value/utils/is-motion-value.mjs';\nimport { visualElementStore } from './store.mjs';\nimport { isControllingVariants, isVariantNode } from './utils/is-controlling-variants.mjs';\nimport { transformProps } from './utils/keys-transform.mjs';\nimport { updateMotionValuesFromProps } from './utils/motion-values.mjs';\nimport { initPrefersReducedMotion } from './utils/reduced-motion/index.mjs';\nimport { resolveVariantFromProps } from './utils/resolve-variants.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from './utils/reduced-motion/state.mjs';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\nconst propEventHandlers = [\n \"AnimationStart\",\n \"AnimationComplete\",\n \"Update\",\n \"BeforeLayoutMeasure\",\n \"LayoutMeasure\",\n \"LayoutAnimationStart\",\n \"LayoutAnimationComplete\",\n];\n/**\n * Static feature definitions - can be injected by framework layer\n */\nlet featureDefinitions = {};\n/**\n * Set feature definitions for all VisualElements.\n * This should be called by the framework layer (e.g., framer-motion) during initialization.\n */\nfunction setFeatureDefinitions(definitions) {\n featureDefinitions = definitions;\n}\n/**\n * Get the current feature definitions\n */\nfunction getFeatureDefinitions() {\n return featureDefinitions;\n}\n/**\n * A VisualElement is an imperative abstraction around UI elements such as\n * HTMLElement, SVGElement, Three.Object3D etc.\n */\nclass VisualElement {\n /**\n * This method takes React props and returns found MotionValues. For example, HTML\n * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n *\n * This isn't an abstract method as it needs calling in the constructor, but it is\n * intended to be one.\n */\n scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {\n return {};\n }\n constructor({ parent, props, presenceContext, reducedMotionConfig, skipAnimations, blockInitialAnimation, visualState, }, options = {}) {\n /**\n * A reference to the current underlying Instance, e.g. a HTMLElement\n * or Three.Mesh etc.\n */\n this.current = null;\n /**\n * A set containing references to this VisualElement's children.\n */\n this.children = new Set();\n /**\n * Determine what role this visual element should take in the variant tree.\n */\n this.isVariantNode = false;\n this.isControllingVariants = false;\n /**\n * Decides whether this VisualElement should animate in reduced motion\n * mode.\n *\n * TODO: This is currently set on every individual VisualElement but feels\n * like it could be set globally.\n */\n this.shouldReduceMotion = null;\n /**\n * Decides whether animations should be skipped for this VisualElement.\n * Useful for E2E tests and visual regression testing.\n */\n this.shouldSkipAnimations = false;\n /**\n * A map of all motion values attached to this visual element. Motion\n * values are source of truth for any given animated value. A motion\n * value might be provided externally by the component via props.\n */\n this.values = new Map();\n this.KeyframeResolver = KeyframeResolver;\n /**\n * Cleanup functions for active features (hover/tap/exit etc)\n */\n this.features = {};\n /**\n * A map of every subscription that binds the provided or generated\n * motion values onChange listeners to this visual element.\n */\n this.valueSubscriptions = new Map();\n /**\n * A reference to the previously-provided motion values as returned\n * from scrapeMotionValuesFromProps. We use the keys in here to determine\n * if any motion values need to be removed after props are updated.\n */\n this.prevMotionValues = {};\n /**\n * Track whether this element has been mounted before, to detect\n * remounts after Suspense unmount/remount cycles.\n */\n this.hasBeenMounted = false;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n /**\n * An object containing an unsubscribe function for each prop event subscription.\n * For example, every \"Update\" event can have multiple subscribers via\n * VisualElement.on(), but only one of those can be defined via the onUpdate prop.\n */\n this.propEventSubscriptions = {};\n this.notifyUpdate = () => this.notify(\"Update\", this.latestValues);\n this.render = () => {\n if (!this.current)\n return;\n this.triggerBuild();\n this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n };\n this.renderScheduledAt = 0.0;\n this.scheduleRender = () => {\n const now = time.now();\n if (this.renderScheduledAt < now) {\n this.renderScheduledAt = now;\n frame.render(this.render, false, true);\n }\n };\n const { latestValues, renderState } = visualState;\n this.latestValues = latestValues;\n this.baseTarget = { ...latestValues };\n this.initialValues = props.initial ? { ...latestValues } : {};\n this.renderState = renderState;\n this.parent = parent;\n this.props = props;\n this.presenceContext = presenceContext;\n this.depth = parent ? parent.depth + 1 : 0;\n this.reducedMotionConfig = reducedMotionConfig;\n this.skipAnimationsConfig = skipAnimations;\n this.options = options;\n this.blockInitialAnimation = Boolean(blockInitialAnimation);\n this.isControllingVariants = isControllingVariants(props);\n this.isVariantNode = isVariantNode(props);\n if (this.isVariantNode) {\n this.variantChildren = new Set();\n }\n this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n /**\n * Any motion values that are provided to the element when created\n * aren't yet bound to the element, as this would technically be impure.\n * However, we iterate through the motion values and set them to the\n * initial values for this component.\n *\n * TODO: This is impure and we should look at changing this to run on mount.\n * Doing so will break some tests but this isn't necessarily a breaking change,\n * more a reflection of the test.\n */\n const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);\n for (const key in initialMotionValues) {\n const value = initialMotionValues[key];\n if (latestValues[key] !== undefined && isMotionValue(value)) {\n value.set(latestValues[key]);\n }\n }\n }\n mount(instance) {\n /**\n * If this element has been mounted before (e.g. after a Suspense\n * unmount/remount), reset motion values to their initial state\n * so animations replay correctly from initial → animate.\n */\n if (this.hasBeenMounted) {\n for (const key in this.initialValues) {\n this.values.get(key)?.jump(this.initialValues[key]);\n this.latestValues[key] = this.initialValues[key];\n }\n }\n this.current = instance;\n visualElementStore.set(instance, this);\n if (this.projection && !this.projection.instance) {\n this.projection.mount(instance);\n }\n if (this.parent && this.isVariantNode && !this.isControllingVariants) {\n this.removeFromVariantTree = this.parent.addVariantChild(this);\n }\n this.values.forEach((value, key) => this.bindToMotionValue(key, value));\n /**\n * Determine reduced motion preference. Only initialize the matchMedia\n * listener if we actually need the dynamic value (i.e., when config\n * is neither \"never\" nor \"always\").\n */\n if (this.reducedMotionConfig === \"never\") {\n this.shouldReduceMotion = false;\n }\n else if (this.reducedMotionConfig === \"always\") {\n this.shouldReduceMotion = true;\n }\n else {\n if (!hasReducedMotionListener.current) {\n initPrefersReducedMotion();\n }\n this.shouldReduceMotion = prefersReducedMotion.current;\n }\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n }\n /**\n * Set whether animations should be skipped based on the config.\n */\n this.shouldSkipAnimations = this.skipAnimationsConfig ?? false;\n this.parent?.addChild(this);\n this.update(this.props, this.presenceContext);\n this.hasBeenMounted = true;\n }\n unmount() {\n this.projection && this.projection.unmount();\n cancelFrame(this.notifyUpdate);\n cancelFrame(this.render);\n this.valueSubscriptions.forEach((remove) => remove());\n this.valueSubscriptions.clear();\n this.removeFromVariantTree && this.removeFromVariantTree();\n this.parent?.removeChild(this);\n for (const key in this.events) {\n this.events[key].clear();\n }\n for (const key in this.features) {\n const feature = this.features[key];\n if (feature) {\n feature.unmount();\n feature.isMounted = false;\n }\n }\n this.current = null;\n }\n addChild(child) {\n this.children.add(child);\n this.enteringChildren ?? (this.enteringChildren = new Set());\n this.enteringChildren.add(child);\n }\n removeChild(child) {\n this.children.delete(child);\n this.enteringChildren && this.enteringChildren.delete(child);\n }\n bindToMotionValue(key, value) {\n if (this.valueSubscriptions.has(key)) {\n this.valueSubscriptions.get(key)();\n }\n if (value.accelerate &&\n acceleratedValues.has(key) &&\n this.current instanceof HTMLElement) {\n const { factory, keyframes, times, ease, duration } = value.accelerate;\n const animation = new NativeAnimation({\n element: this.current,\n name: key,\n keyframes,\n times,\n ease,\n duration: secondsToMilliseconds(duration),\n });\n const cleanup = factory(animation);\n this.valueSubscriptions.set(key, () => {\n cleanup();\n animation.cancel();\n });\n return;\n }\n const valueIsTransform = transformProps.has(key);\n if (valueIsTransform && this.onBindTransform) {\n this.onBindTransform();\n }\n const removeOnChange = value.on(\"change\", (latestValue) => {\n this.latestValues[key] = latestValue;\n this.props.onUpdate && frame.preRender(this.notifyUpdate);\n if (valueIsTransform && this.projection) {\n this.projection.isTransformDirty = true;\n }\n this.scheduleRender();\n });\n let removeSyncCheck;\n if (typeof window !== \"undefined\" &&\n window.MotionCheckAppearSync) {\n removeSyncCheck = window.MotionCheckAppearSync(this, key, value);\n }\n this.valueSubscriptions.set(key, () => {\n removeOnChange();\n if (removeSyncCheck)\n removeSyncCheck();\n // Defer to MotionValue.on(\"change\") auto-stop so React 19 remounts\n // can resubscribe before the animation is cancelled (#3315).\n });\n }\n sortNodePosition(other) {\n /**\n * If these nodes aren't even of the same type we can't compare their depth.\n */\n if (!this.current ||\n !this.sortInstanceNodePosition ||\n this.type !== other.type) {\n return 0;\n }\n return this.sortInstanceNodePosition(this.current, other.current);\n }\n updateFeatures() {\n let key = \"animation\";\n for (key in featureDefinitions) {\n const featureDefinition = featureDefinitions[key];\n if (!featureDefinition)\n continue;\n const { isEnabled, Feature: FeatureConstructor } = featureDefinition;\n /**\n * If this feature is enabled but not active, make a new instance.\n */\n if (!this.features[key] &&\n FeatureConstructor &&\n isEnabled(this.props)) {\n this.features[key] = new FeatureConstructor(this);\n }\n /**\n * If we have a feature, mount or update it.\n */\n if (this.features[key]) {\n const feature = this.features[key];\n if (feature.isMounted) {\n feature.update();\n }\n else {\n feature.mount();\n feature.isMounted = true;\n }\n }\n }\n }\n triggerBuild() {\n this.build(this.renderState, this.latestValues, this.props);\n }\n /**\n * Measure the current viewport box with or without transforms.\n * Only measures axis-aligned boxes, rotate and skew must be manually\n * removed with a re-render to work.\n */\n measureViewportBox() {\n return this.current\n ? this.measureInstanceViewportBox(this.current, this.props)\n : createBox();\n }\n getStaticValue(key) {\n return this.latestValues[key];\n }\n setStaticValue(key, value) {\n this.latestValues[key] = value;\n }\n /**\n * Update the provided props. Ensure any newly-added motion values are\n * added to our map, old ones removed, and listeners updated.\n */\n update(props, presenceContext) {\n if (props.transformTemplate || this.props.transformTemplate) {\n this.scheduleRender();\n }\n this.prevProps = this.props;\n this.props = props;\n this.prevPresenceContext = this.presenceContext;\n this.presenceContext = presenceContext;\n /**\n * Update prop event handlers ie onAnimationStart, onAnimationComplete\n */\n for (let i = 0; i < propEventHandlers.length; i++) {\n const key = propEventHandlers[i];\n if (this.propEventSubscriptions[key]) {\n this.propEventSubscriptions[key]();\n delete this.propEventSubscriptions[key];\n }\n const listenerName = (\"on\" + key);\n const listener = props[listenerName];\n if (listener) {\n this.propEventSubscriptions[key] = this.on(key, listener);\n }\n }\n this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps || {}, this), this.prevMotionValues);\n if (this.handleChildMotionValue) {\n this.handleChildMotionValue();\n }\n }\n getProps() {\n return this.props;\n }\n /**\n * Returns the variant definition with a given name.\n */\n getVariant(name) {\n return this.props.variants ? this.props.variants[name] : undefined;\n }\n /**\n * Returns the defined default transition on this component.\n */\n getDefaultTransition() {\n return this.props.transition;\n }\n getTransformPagePoint() {\n return this.props.transformPagePoint;\n }\n getClosestVariantNode() {\n return this.isVariantNode\n ? this\n : this.parent\n ? this.parent.getClosestVariantNode()\n : undefined;\n }\n /**\n * Add a child visual element to our set of children.\n */\n addVariantChild(child) {\n const closestVariantNode = this.getClosestVariantNode();\n if (closestVariantNode) {\n closestVariantNode.variantChildren &&\n closestVariantNode.variantChildren.add(child);\n return () => closestVariantNode.variantChildren.delete(child);\n }\n }\n /**\n * Add a motion value and bind it to this visual element.\n */\n addValue(key, value) {\n // Remove existing value if it exists\n const existingValue = this.values.get(key);\n if (value !== existingValue) {\n if (existingValue)\n this.removeValue(key);\n this.bindToMotionValue(key, value);\n this.values.set(key, value);\n this.latestValues[key] = value.get();\n }\n }\n /**\n * Remove a motion value and unbind any active subscriptions.\n */\n removeValue(key) {\n this.values.delete(key);\n const unsubscribe = this.valueSubscriptions.get(key);\n if (unsubscribe) {\n unsubscribe();\n this.valueSubscriptions.delete(key);\n }\n delete this.latestValues[key];\n this.removeValueFromRenderState(key, this.renderState);\n }\n /**\n * Check whether we have a motion value for this key\n */\n hasValue(key) {\n return this.values.has(key);\n }\n getValue(key, defaultValue) {\n if (this.props.values && this.props.values[key]) {\n return this.props.values[key];\n }\n let value = this.values.get(key);\n if (value === undefined && defaultValue !== undefined) {\n value = motionValue(defaultValue === null ? undefined : defaultValue, { owner: this });\n this.addValue(key, value);\n }\n return value;\n }\n /**\n * If we're trying to animate to a previously unencountered value,\n * we need to check for it in our state and as a last resort read it\n * directly from the instance (which might have performance implications).\n */\n readValue(key, target) {\n let value = this.latestValues[key] !== undefined || !this.current\n ? this.latestValues[key]\n : this.getBaseTargetFromProps(this.props, key) ??\n this.readValueFromInstance(this.current, key, this.options);\n if (value !== undefined && value !== null) {\n if (typeof value === \"string\" &&\n (isNumericalString(value) || isZeroValueString(value))) {\n // If this is a number read as a string, ie \"0\" or \"200\", convert it to a number\n value = parseFloat(value);\n }\n else if (!findValueType(value) && complex.test(target)) {\n value = getAnimatableNone(key, target);\n }\n this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);\n }\n return isMotionValue(value) ? value.get() : value;\n }\n /**\n * Set the base target to later animate back to. This is currently\n * only hydrated on creation and when we first read a value.\n */\n setBaseTarget(key, value) {\n this.baseTarget[key] = value;\n }\n /**\n * Find the base target for a value thats been removed from all animation\n * props.\n */\n getBaseTarget(key) {\n const { initial } = this.props;\n let valueFromInitial;\n if (typeof initial === \"string\" || typeof initial === \"object\") {\n const variant = resolveVariantFromProps(this.props, initial, this.presenceContext?.custom);\n if (variant) {\n valueFromInitial = variant[key];\n }\n }\n /**\n * If this value still exists in the current initial variant, read that.\n */\n if (initial && valueFromInitial !== undefined) {\n return valueFromInitial;\n }\n /**\n * Alternatively, if this VisualElement config has defined a getBaseTarget\n * so we can read the value from an alternative source, try that.\n */\n const target = this.getBaseTargetFromProps(this.props, key);\n if (target !== undefined && !isMotionValue(target))\n return target;\n /**\n * If the value was initially defined on initial, but it doesn't any more,\n * return undefined. Otherwise return the value as initially read from the DOM.\n */\n return this.initialValues[key] !== undefined &&\n valueFromInitial === undefined\n ? undefined\n : this.baseTarget[key];\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n return this.events[eventName].add(callback);\n }\n notify(eventName, ...args) {\n if (this.events[eventName]) {\n this.events[eventName].notify(...args);\n }\n }\n scheduleRenderMicrotask() {\n microtask.render(this.render);\n }\n}\n\nexport { VisualElement, getFeatureDefinitions, setFeatureDefinitions };\n//# sourceMappingURL=VisualElement.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,iBAAiB,GAAG;AAC1B,IAAI,gBAAgB;AACpB,IAAI,mBAAmB;AACvB,IAAI,QAAQ;AACZ,IAAI,qBAAqB;AACzB,IAAI,eAAe;AACnB,IAAI,sBAAsB;AAC1B,IAAI,yBAAyB;AAC7B,CAAC;AACD;AACA;AACA;AACA,IAAI,kBAAkB,GAAG,EAAE;AAC3B;AACA;AACA;AACA;AACA,SAAS,qBAAqB,CAAC,WAAW,EAAE;AAC5C,IAAI,kBAAkB,GAAG,WAAW;AACpC;AACA;AACA;AACA;AACA,SAAS,qBAAqB,GAAG;AACjC,IAAI,OAAO,kBAAkB;AAC7B;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,CAAC;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE;AACpE,QAAQ,OAAO,EAAE;AACjB,IAAI;AACJ,IAAI,WAAW,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,qBAAqB,EAAE,WAAW,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE;AAC5I;AACA;AACA;AACA;AACA,QAAQ,IAAI,CAAC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