@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,142 @@
1
+ import { positionalKeys } from '../../render/utils/keys-position.js';
2
+ import { findDimensionValueType } from '../../value/types/dimensions.js';
3
+ import { getVariableValue } from '../utils/css-variables-conversion.js';
4
+ import { isCSSVariableToken, containsCSSVariable } from '../utils/is-css-variable.js';
5
+ import { KeyframeResolver } from './KeyframesResolver.js';
6
+ import { isNone } from './utils/is-none.js';
7
+ import { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.js';
8
+ import { positionalValues, isNumOrPxType } from './utils/unit-conversion.js';
9
+
10
+ class DOMKeyframesResolver extends KeyframeResolver {
11
+ constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {
12
+ super(unresolvedKeyframes, onComplete, name, motionValue, element, true);
13
+ }
14
+ readKeyframes() {
15
+ const { unresolvedKeyframes, element, name } = this;
16
+ if (!element || !element.current)
17
+ return;
18
+ super.readKeyframes();
19
+ /**
20
+ * If any keyframe is a CSS variable, we need to find its value by sampling the element
21
+ */
22
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
23
+ let keyframe = unresolvedKeyframes[i];
24
+ if (typeof keyframe === "string") {
25
+ keyframe = keyframe.trim();
26
+ if (isCSSVariableToken(keyframe)) {
27
+ const resolved = getVariableValue(keyframe, element.current);
28
+ if (resolved !== undefined) {
29
+ unresolvedKeyframes[i] = resolved;
30
+ }
31
+ if (i === unresolvedKeyframes.length - 1) {
32
+ this.finalKeyframe = keyframe;
33
+ }
34
+ }
35
+ }
36
+ }
37
+ /**
38
+ * Resolve "none" values. We do this potentially twice - once before and once after measuring keyframes.
39
+ * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which
40
+ * have a far bigger performance impact.
41
+ */
42
+ this.resolveNoneKeyframes();
43
+ /**
44
+ * Check to see if unit type has changed. If so schedule jobs that will
45
+ * temporarily set styles to the destination keyframes.
46
+ * Skip if we have more than two keyframes or this isn't a positional value.
47
+ * TODO: We can throw if there are multiple keyframes and the value type changes.
48
+ */
49
+ if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {
50
+ return;
51
+ }
52
+ const [origin, target] = unresolvedKeyframes;
53
+ const originType = findDimensionValueType(origin);
54
+ const targetType = findDimensionValueType(target);
55
+ /**
56
+ * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other
57
+ * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.
58
+ */
59
+ const originHasVar = containsCSSVariable(origin);
60
+ const targetHasVar = containsCSSVariable(target);
61
+ if (originHasVar !== targetHasVar && positionalValues[name]) {
62
+ this.needsMeasurement = true;
63
+ return;
64
+ }
65
+ /**
66
+ * Either we don't recognise these value types or we can animate between them.
67
+ */
68
+ if (originType === targetType)
69
+ return;
70
+ /**
71
+ * If both values are numbers or pixels, we can animate between them by
72
+ * converting them to numbers.
73
+ */
74
+ if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {
75
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
76
+ const value = unresolvedKeyframes[i];
77
+ if (typeof value === "string") {
78
+ unresolvedKeyframes[i] = parseFloat(value);
79
+ }
80
+ }
81
+ }
82
+ else if (positionalValues[name]) {
83
+ /**
84
+ * Else, the only way to resolve this is by measuring the element.
85
+ */
86
+ this.needsMeasurement = true;
87
+ }
88
+ }
89
+ resolveNoneKeyframes() {
90
+ const { unresolvedKeyframes, name } = this;
91
+ const noneKeyframeIndexes = [];
92
+ for (let i = 0; i < unresolvedKeyframes.length; i++) {
93
+ if (unresolvedKeyframes[i] === null ||
94
+ isNone(unresolvedKeyframes[i])) {
95
+ noneKeyframeIndexes.push(i);
96
+ }
97
+ }
98
+ if (noneKeyframeIndexes.length) {
99
+ makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);
100
+ }
101
+ }
102
+ measureInitialState() {
103
+ const { element, unresolvedKeyframes, name } = this;
104
+ if (!element || !element.current)
105
+ return;
106
+ if (name === "height") {
107
+ this.suspendedScrollY = window.pageYOffset;
108
+ }
109
+ this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
110
+ unresolvedKeyframes[0] = this.measuredOrigin;
111
+ // Set final key frame to measure after next render
112
+ const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
113
+ if (measureKeyframe !== undefined) {
114
+ element.getValue(name, measureKeyframe).jump(measureKeyframe, false);
115
+ }
116
+ }
117
+ measureEndState() {
118
+ const { element, name, unresolvedKeyframes } = this;
119
+ if (!element || !element.current)
120
+ return;
121
+ const value = element.getValue(name);
122
+ value && value.jump(this.measuredOrigin, false);
123
+ const finalKeyframeIndex = unresolvedKeyframes.length - 1;
124
+ const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];
125
+ unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));
126
+ if (finalKeyframe !== null && this.finalKeyframe === undefined) {
127
+ this.finalKeyframe = finalKeyframe;
128
+ }
129
+ // If we removed transform values, reapply them before the next render
130
+ if (this.removedTransforms?.length) {
131
+ this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
132
+ element
133
+ .getValue(unsetTransformName)
134
+ .set(unsetTransformValue);
135
+ });
136
+ }
137
+ this.resolveNoneKeyframes();
138
+ }
139
+ }
140
+
141
+ export { DOMKeyframesResolver };
142
+ //# sourceMappingURL=DOMKeyframesResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOMKeyframesResolver.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs"],"sourcesContent":["import { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { findDimensionValueType } from '../../value/types/dimensions.mjs';\nimport { getVariableValue } from '../utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken, containsCSSVariable } from '../utils/is-css-variable.mjs';\nimport { KeyframeResolver } from './KeyframesResolver.mjs';\nimport { isNone } from './utils/is-none.mjs';\nimport { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';\nimport { positionalValues, isNumOrPxType } from './utils/unit-conversion.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other\n * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.\n */\n const originHasVar = containsCSSVariable(origin);\n const targetHasVar = containsCSSVariable(target);\n if (originHasVar !== targetHasVar && positionalValues[name]) {\n this.needsMeasurement = true;\n return;\n }\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else if (positionalValues[name]) {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null ||\n isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if (this.removedTransforms?.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n//# sourceMappingURL=DOMKeyframesResolver.mjs.map\n"],"names":[],"mappings":";;;;;;;;;AASA,MAAM,oBAAoB,SAAS,gBAAgB,CAAC;AACpD,IAAI,WAAW,CAAC,mBAAmB,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE;AAC7E,QAAQ,KAAK,CA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AACtB,QAAQ,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,IAAI;AAC3D,QAAQ,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO;AACxC,YAAY;AACZ,QAAQ,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5C,QAAQ,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC;AACvD,QAAQ,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,MAAM,GAAG,CAAC;AACjE,QAAQ,MAAM,aAAa,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;AACrE,QAAQ,mBAAmB,CAAC,kBAAkB,CAAC,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAChJ,QAAQ,IAAI,aAAa,KAAK,IAAI,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;AACxE,YAAY,IAAI,CAAC,aAAa,GAAG,aAAa;AAC9C,QAAQ;AACR;AACA,QAAQ,IAAI,IAAI,CAAC,iBAAiB,EAAE,MAAM,EAAE;AAC5C,YAAY,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,KAAK;AAC1F,gBAAgB;AAChB,qBAAqB,QAAQ,CAAC,kBAAkB;AAChD,qBAAqB,GAAG,CAAC,mBAAmB,CAAC;AAC7C,YAAY,CAAC,CAAC;AACd,QAAQ;AACR,QAAQ,IAAI,CAAC,oBAAoB,EAAE;AACnC,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,148 @@
1
+ import { fillWildcards } from './utils/fill-wildcards.js';
2
+ import { removeNonTranslationalTransform } from './utils/unit-conversion.js';
3
+ import { frame } from '../../frameloop/frame.js';
4
+
5
+ const toResolve = new Set();
6
+ let isScheduled = false;
7
+ let anyNeedsMeasurement = false;
8
+ let isForced = false;
9
+ function measureAllKeyframes() {
10
+ if (anyNeedsMeasurement) {
11
+ const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);
12
+ const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));
13
+ const transformsToRestore = new Map();
14
+ /**
15
+ * Write pass
16
+ * If we're measuring elements we want to remove bounding box-changing transforms.
17
+ */
18
+ elementsToMeasure.forEach((element) => {
19
+ const removedTransforms = removeNonTranslationalTransform(element);
20
+ if (!removedTransforms.length)
21
+ return;
22
+ transformsToRestore.set(element, removedTransforms);
23
+ element.render();
24
+ });
25
+ // Read
26
+ resolversToMeasure.forEach((resolver) => resolver.measureInitialState());
27
+ // Write
28
+ elementsToMeasure.forEach((element) => {
29
+ element.render();
30
+ const restore = transformsToRestore.get(element);
31
+ if (restore) {
32
+ restore.forEach(([key, value]) => {
33
+ element.getValue(key)?.set(value);
34
+ });
35
+ }
36
+ });
37
+ // Read
38
+ resolversToMeasure.forEach((resolver) => resolver.measureEndState());
39
+ // Write
40
+ resolversToMeasure.forEach((resolver) => {
41
+ if (resolver.suspendedScrollY !== undefined) {
42
+ window.scrollTo(0, resolver.suspendedScrollY);
43
+ }
44
+ });
45
+ }
46
+ anyNeedsMeasurement = false;
47
+ isScheduled = false;
48
+ toResolve.forEach((resolver) => resolver.complete(isForced));
49
+ toResolve.clear();
50
+ }
51
+ function readAllKeyframes() {
52
+ toResolve.forEach((resolver) => {
53
+ resolver.readKeyframes();
54
+ if (resolver.needsMeasurement) {
55
+ anyNeedsMeasurement = true;
56
+ }
57
+ });
58
+ }
59
+ function flushKeyframeResolvers() {
60
+ isForced = true;
61
+ readAllKeyframes();
62
+ measureAllKeyframes();
63
+ isForced = false;
64
+ }
65
+ class KeyframeResolver {
66
+ constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {
67
+ this.state = "pending";
68
+ /**
69
+ * Track whether this resolver is async. If it is, it'll be added to the
70
+ * resolver queue and flushed in the next frame. Resolvers that aren't going
71
+ * to trigger read/write thrashing don't need to be async.
72
+ */
73
+ this.isAsync = false;
74
+ /**
75
+ * Track whether this resolver needs to perform a measurement
76
+ * to resolve its keyframes.
77
+ */
78
+ this.needsMeasurement = false;
79
+ this.unresolvedKeyframes = [...unresolvedKeyframes];
80
+ this.onComplete = onComplete;
81
+ this.name = name;
82
+ this.motionValue = motionValue;
83
+ this.element = element;
84
+ this.isAsync = isAsync;
85
+ }
86
+ scheduleResolve() {
87
+ this.state = "scheduled";
88
+ if (this.isAsync) {
89
+ toResolve.add(this);
90
+ if (!isScheduled) {
91
+ isScheduled = true;
92
+ frame.read(readAllKeyframes);
93
+ frame.resolveKeyframes(measureAllKeyframes);
94
+ }
95
+ }
96
+ else {
97
+ this.readKeyframes();
98
+ this.complete();
99
+ }
100
+ }
101
+ readKeyframes() {
102
+ const { unresolvedKeyframes, name, element, motionValue } = this;
103
+ // If initial keyframe is null we need to read it from the DOM
104
+ if (unresolvedKeyframes[0] === null) {
105
+ const currentValue = motionValue?.get();
106
+ // TODO: This doesn't work if the final keyframe is a wildcard
107
+ const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
108
+ if (currentValue !== undefined) {
109
+ unresolvedKeyframes[0] = currentValue;
110
+ }
111
+ else if (element && name) {
112
+ const valueAsRead = element.readValue(name, finalKeyframe);
113
+ if (valueAsRead !== undefined && valueAsRead !== null) {
114
+ unresolvedKeyframes[0] = valueAsRead;
115
+ }
116
+ }
117
+ if (unresolvedKeyframes[0] === undefined) {
118
+ unresolvedKeyframes[0] = finalKeyframe;
119
+ }
120
+ if (motionValue && currentValue === undefined) {
121
+ motionValue.set(unresolvedKeyframes[0]);
122
+ }
123
+ }
124
+ fillWildcards(unresolvedKeyframes);
125
+ }
126
+ setFinalKeyframe() { }
127
+ measureInitialState() { }
128
+ renderEndStyles() { }
129
+ measureEndState() { }
130
+ complete(isForcedComplete = false) {
131
+ this.state = "complete";
132
+ this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);
133
+ toResolve.delete(this);
134
+ }
135
+ cancel() {
136
+ if (this.state === "scheduled") {
137
+ toResolve.delete(this);
138
+ this.state = "pending";
139
+ }
140
+ }
141
+ resume() {
142
+ if (this.state === "pending")
143
+ this.scheduleResolve();
144
+ }
145
+ }
146
+
147
+ export { KeyframeResolver, flushKeyframeResolvers };
148
+ //# sourceMappingURL=KeyframesResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyframesResolver.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs"],"sourcesContent":["import { fillWildcards } from './utils/fill-wildcards.mjs';\nimport { removeNonTranslationalTransform } from './utils/unit-conversion.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst toResolve = new Set();\nlet isScheduled = false;\nlet anyNeedsMeasurement = false;\nlet isForced = false;\nfunction measureAllKeyframes() {\n if (anyNeedsMeasurement) {\n const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);\n const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));\n const transformsToRestore = new Map();\n /**\n * Write pass\n * If we're measuring elements we want to remove bounding box-changing transforms.\n */\n elementsToMeasure.forEach((element) => {\n const removedTransforms = removeNonTranslationalTransform(element);\n if (!removedTransforms.length)\n return;\n transformsToRestore.set(element, removedTransforms);\n element.render();\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureInitialState());\n // Write\n elementsToMeasure.forEach((element) => {\n element.render();\n const restore = transformsToRestore.get(element);\n if (restore) {\n restore.forEach(([key, value]) => {\n element.getValue(key)?.set(value);\n });\n }\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureEndState());\n // Write\n resolversToMeasure.forEach((resolver) => {\n if (resolver.suspendedScrollY !== undefined) {\n window.scrollTo(0, resolver.suspendedScrollY);\n }\n });\n }\n anyNeedsMeasurement = false;\n isScheduled = false;\n toResolve.forEach((resolver) => resolver.complete(isForced));\n toResolve.clear();\n}\nfunction readAllKeyframes() {\n toResolve.forEach((resolver) => {\n resolver.readKeyframes();\n if (resolver.needsMeasurement) {\n anyNeedsMeasurement = true;\n }\n });\n}\nfunction flushKeyframeResolvers() {\n isForced = true;\n readAllKeyframes();\n measureAllKeyframes();\n isForced = false;\n}\nclass KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {\n this.state = \"pending\";\n /**\n * Track whether this resolver is async. If it is, it'll be added to the\n * resolver queue and flushed in the next frame. Resolvers that aren't going\n * to trigger read/write thrashing don't need to be async.\n */\n this.isAsync = false;\n /**\n * Track whether this resolver needs to perform a measurement\n * to resolve its keyframes.\n */\n this.needsMeasurement = false;\n this.unresolvedKeyframes = [...unresolvedKeyframes];\n this.onComplete = onComplete;\n this.name = name;\n this.motionValue = motionValue;\n this.element = element;\n this.isAsync = isAsync;\n }\n scheduleResolve() {\n this.state = \"scheduled\";\n if (this.isAsync) {\n toResolve.add(this);\n if (!isScheduled) {\n isScheduled = true;\n frame.read(readAllKeyframes);\n frame.resolveKeyframes(measureAllKeyframes);\n }\n }\n else {\n this.readKeyframes();\n this.complete();\n }\n }\n readKeyframes() {\n const { unresolvedKeyframes, name, element, motionValue } = this;\n // If initial keyframe is null we need to read it from the DOM\n if (unresolvedKeyframes[0] === null) {\n const currentValue = motionValue?.get();\n // TODO: This doesn't work if the final keyframe is a wildcard\n const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (currentValue !== undefined) {\n unresolvedKeyframes[0] = currentValue;\n }\n else if (element && name) {\n const valueAsRead = element.readValue(name, finalKeyframe);\n if (valueAsRead !== undefined && valueAsRead !== null) {\n unresolvedKeyframes[0] = valueAsRead;\n }\n }\n if (unresolvedKeyframes[0] === undefined) {\n unresolvedKeyframes[0] = finalKeyframe;\n }\n if (motionValue && currentValue === undefined) {\n motionValue.set(unresolvedKeyframes[0]);\n }\n }\n fillWildcards(unresolvedKeyframes);\n }\n setFinalKeyframe() { }\n measureInitialState() { }\n renderEndStyles() { }\n measureEndState() { }\n complete(isForcedComplete = false) {\n this.state = \"complete\";\n this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);\n toResolve.delete(this);\n }\n cancel() {\n if (this.state === \"scheduled\") {\n toResolve.delete(this);\n this.state = \"pending\";\n }\n }\n resume() {\n if (this.state === \"pending\")\n this.scheduleResolve();\n }\n}\n\nexport { KeyframeResolver, flushKeyframeResolvers };\n//# sourceMappingURL=KeyframesResolver.mjs.map\n"],"names":[],"mappings":";;;;AAIA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE;AAC3B,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,mBAAmB,GAAG,KAAK;AAC/B,IAAI,QAAQ,GAAG,KAAK;AACpB,SAAS,mBAAmB,GAAG;AAC/B,IAAI,IAAI,mBAAmB,EAAE;AAC7B,QAAQ,MAAM,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,gBAAgB,CAAC;AACxG,QAAQ,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,CAAC,CAAC;AACjG,QAAQ,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAE;AAC7C;AACA;AACA;AACA;AACA,QAAQ,iBAAiB,CAAC,OAAO,CAAC,CAAC,OAAO,KAAK;AAC/C,YAAY,MAAM,iBAAiB,GAAG,+BAA+B,CAAC,OAAO,CAAC;AAC9E,YAAY,IAAI,CAAC,iBAAiB,CAAC,MAAM;AACzC,gBAAgB;AAChB,YAAY,mBAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC;AAC/D,YAAY,OAAO,CAAC,MAAM,EAAE;AAC5B,QAAQ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AE;AACxB,IAAI,eAAe,GAAG,EAAE;AACxB,IAAI,QAAQ,CAAC,gBAAgB,GAAG,KAAK,EAAE;AACvC,QAAQ,IAAI,CAAC,KAAK,GAAG,UAAU;AAC/B,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,aAAa,EAAE,gBAAgB,CAAC;AACvF,QAAQ,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;AAC9B,IAAI;AACJ,IAAI,MAAM,GAAG;AACb,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE;AACxC,YAAY,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;AAClC,YAAY,IAAI,CAAC,KAAK,GAAG,SAAS;AAClC,QAAQ;AACR,IAAI;AACJ,IAAI,MAAM,GAAG;AACb,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;AACpC,YAAY,IAAI,CAAC,eAAe,EAAE;AAClC,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,12 @@
1
+ const isNotNull = (value) => value !== null;
2
+ function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe, speed = 1) {
3
+ const resolvedKeyframes = keyframes.filter(isNotNull);
4
+ const useFirstKeyframe = speed < 0 || (repeat && repeatType !== "loop" && repeat % 2 === 1);
5
+ const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;
6
+ return !index || finalKeyframe === undefined
7
+ ? resolvedKeyframes[index]
8
+ : finalKeyframe;
9
+ }
10
+
11
+ export { getFinalKeyframe };
12
+ //# sourceMappingURL=get-final.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-final.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs"],"sourcesContent":["const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe, speed = 1) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const useFirstKeyframe = speed < 0 || (repeat && repeatType !== \"loop\" && repeat % 2 === 1);\n const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n//# sourceMappingURL=get-final.mjs.map\n"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI;AAC3C,SAAS,gBAAgB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,EAAE,aAAa,EAAE,KAAK,GAAG,CAAC,EAAE;AAChG,IAAI,MAAM,iBAAiB,GAAG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC;AACzD,IAAI,MAAM,gBAAgB,GAAG,KAAK,GAAG,CAAC,KAAK,MAAM,IAAI,UAAU,KAAK,MAAM,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/F,IAAI,MAAM,KAAK,GAAG,gBAAgB,GAAG,CAAC,GAAG,iBAAiB,CAAC,MAAM,GAAG,CAAC;AACrE,IAAI,OAAO,CAAC,KAAK,IAAI,aAAa,KAAK;AACvC,UAAU,iBAAiB,CAAC,KAAK;AACjC,UAAU,aAAa;AACvB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,10 @@
1
+ import { fillOffset } from './fill.js';
2
+
3
+ function defaultOffset(arr) {
4
+ const offset = [0];
5
+ fillOffset(offset, arr.length - 1);
6
+ return offset;
7
+ }
8
+
9
+ export { defaultOffset };
10
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs"],"sourcesContent":["import { fillOffset } from './fill.mjs';\n\nfunction defaultOffset(arr) {\n const offset = [0];\n fillOffset(offset, arr.length - 1);\n return offset;\n}\n\nexport { defaultOffset };\n//# sourceMappingURL=default.mjs.map\n"],"names":[],"mappings":";;AAEA,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC;AACtB,IAAI,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;AACtC,IAAI,OAAO,MAAM;AACjB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ import { mixNumber } from '../../../utils/mix/number.js';
2
+ import { progress } from '../../../../../../motion-utils/dist/es/progress.js';
3
+
4
+ function fillOffset(offset, remaining) {
5
+ const min = offset[offset.length - 1];
6
+ for (let i = 1; i <= remaining; i++) {
7
+ const offsetProgress = progress(0, remaining, i);
8
+ offset.push(mixNumber(min, 1, offsetProgress));
9
+ }
10
+ }
11
+
12
+ export { fillOffset };
13
+ //# sourceMappingURL=fill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fill.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs"],"sourcesContent":["import { progress } from 'motion-utils';\nimport { mixNumber } from '../../../utils/mix/number.mjs';\n\nfunction fillOffset(offset, remaining) {\n const min = offset[offset.length - 1];\n for (let i = 1; i <= remaining; i++) {\n const offsetProgress = progress(0, remaining, i);\n offset.push(mixNumber(min, 1, offsetProgress));\n }\n}\n\nexport { fillOffset };\n//# sourceMappingURL=fill.mjs.map\n"],"names":[],"mappings":";;;AAGA,SAAS,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE;AACvC,IAAI,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;AACzC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC,EAAE,EAAE;AACzC,QAAQ,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AACxD,QAAQ,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC;AACtD,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,6 @@
1
+ function convertOffsetToTimes(offset, duration) {
2
+ return offset.map((o) => o * duration);
3
+ }
4
+
5
+ export { convertOffsetToTimes };
6
+ //# sourceMappingURL=time.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs"],"sourcesContent":["function convertOffsetToTimes(offset, duration) {\n return offset.map((o) => o * duration);\n}\n\nexport { convertOffsetToTimes };\n//# sourceMappingURL=time.mjs.map\n"],"names":[],"mappings":"AAAA,SAAS,oBAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE;AAChD,IAAI,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC;AAC1C;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ function fillWildcards(keyframes) {
2
+ for (let i = 1; i < keyframes.length; i++) {
3
+ keyframes[i] ?? (keyframes[i] = keyframes[i - 1]);
4
+ }
5
+ }
6
+
7
+ export { fillWildcards };
8
+ //# sourceMappingURL=fill-wildcards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fill-wildcards.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs"],"sourcesContent":["function fillWildcards(keyframes) {\n for (let i = 1; i < keyframes.length; i++) {\n keyframes[i] ?? (keyframes[i] = keyframes[i - 1]);\n }\n}\n\nexport { fillWildcards };\n//# sourceMappingURL=fill-wildcards.mjs.map\n"],"names":[],"mappings":"AAAA,SAAS,aAAa,CAAC,SAAS,EAAE;AAClC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,QAAQ,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACzD,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,16 @@
1
+ import { isZeroValueString } from '../../../../../../motion-utils/dist/es/is-zero-value-string.js';
2
+
3
+ function isNone(value) {
4
+ if (typeof value === "number") {
5
+ return value === 0;
6
+ }
7
+ else if (value !== null) {
8
+ return value === "none" || value === "0" || isZeroValueString(value);
9
+ }
10
+ else {
11
+ return true;
12
+ }
13
+ }
14
+
15
+ export { isNone };
16
+ //# sourceMappingURL=is-none.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-none.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs"],"sourcesContent":["import { isZeroValueString } from 'motion-utils';\n\nfunction isNone(value) {\n if (typeof value === \"number\") {\n return value === 0;\n }\n else if (value !== null) {\n return value === \"none\" || value === \"0\" || isZeroValueString(value);\n }\n else {\n return true;\n }\n}\n\nexport { isNone };\n//# sourceMappingURL=is-none.mjs.map\n"],"names":[],"mappings":";;AAEA,SAAS,MAAM,CAAC,KAAK,EAAE;AACvB,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACnC,QAAQ,OAAO,KAAK,KAAK,CAAC;AAC1B,IAAI;AACJ,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;AAC7B,QAAQ,OAAO,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG,IAAI,iBAAiB,CAAC,KAAK,CAAC;AAC5E,IAAI;AACJ,SAAS;AACT,QAAQ,OAAO,IAAI;AACnB,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,31 @@
1
+ import { analyseComplexValue } from '../../../value/types/complex/index.js';
2
+ import { getAnimatableNone } from '../../../value/types/utils/animatable-none.js';
3
+
4
+ /**
5
+ * If we encounter keyframes like "none" or "0" and we also have keyframes like
6
+ * "#fff" or "200px 200px" we want to find a keyframe to serve as a template for
7
+ * the "none" keyframes. In this case "#fff" or "200px 200px" - then these get turned into
8
+ * zero equivalents, i.e. "#fff0" or "0px 0px".
9
+ */
10
+ const invalidTemplates = new Set(["auto", "none", "0"]);
11
+ function makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {
12
+ let i = 0;
13
+ let animatableTemplate = undefined;
14
+ while (i < unresolvedKeyframes.length && !animatableTemplate) {
15
+ const keyframe = unresolvedKeyframes[i];
16
+ if (typeof keyframe === "string" &&
17
+ !invalidTemplates.has(keyframe) &&
18
+ analyseComplexValue(keyframe).values.length) {
19
+ animatableTemplate = unresolvedKeyframes[i];
20
+ }
21
+ i++;
22
+ }
23
+ if (animatableTemplate && name) {
24
+ for (const noneIndex of noneKeyframeIndexes) {
25
+ unresolvedKeyframes[noneIndex] = getAnimatableNone(name, animatableTemplate);
26
+ }
27
+ }
28
+ }
29
+
30
+ export { makeNoneKeyframesAnimatable };
31
+ //# sourceMappingURL=make-none-animatable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-none-animatable.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs"],"sourcesContent":["import { analyseComplexValue } from '../../../value/types/complex/index.mjs';\nimport { getAnimatableNone } from '../../../value/types/utils/animatable-none.mjs';\n\n/**\n * If we encounter keyframes like \"none\" or \"0\" and we also have keyframes like\n * \"#fff\" or \"200px 200px\" we want to find a keyframe to serve as a template for\n * the \"none\" keyframes. In this case \"#fff\" or \"200px 200px\" - then these get turned into\n * zero equivalents, i.e. \"#fff0\" or \"0px 0px\".\n */\nconst invalidTemplates = new Set([\"auto\", \"none\", \"0\"]);\nfunction makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {\n let i = 0;\n let animatableTemplate = undefined;\n while (i < unresolvedKeyframes.length && !animatableTemplate) {\n const keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\" &&\n !invalidTemplates.has(keyframe) &&\n analyseComplexValue(keyframe).values.length) {\n animatableTemplate = unresolvedKeyframes[i];\n }\n i++;\n }\n if (animatableTemplate && name) {\n for (const noneIndex of noneKeyframeIndexes) {\n unresolvedKeyframes[noneIndex] = getAnimatableNone(name, animatableTemplate);\n }\n }\n}\n\nexport { makeNoneKeyframesAnimatable };\n//# sourceMappingURL=make-none-animatable.mjs.map\n"],"names":[],"mappings":";;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;AACvD,SAAS,2BAA2B,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,IAAI,EAAE;AACrF,IAAI,IAAI,CAAC,GAAG,CAAC;AACb,IAAI,IAAI,kBAAkB,GAAG,SAAS;AACtC,IAAI,OAAO,CAAC,GAAG,mBAAmB,CAAC,MAAM,IAAI,CAAC,kBAAkB,EAAE;AAClE,QAAQ,MAAM,QAAQ,GAAG,mBAAmB,CAAC,CAAC,CAAC;AAC/C,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ;AACxC,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC3C,YAAY,mBAAmB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;AACzD,YAAY,kBAAkB,GAAG,mBAAmB,CAAC,CAAC,CAAC;AACvD,QAAQ;AACR,QAAQ,CAAC,EAAE;AACX,IAAI;AACJ,IAAI,IAAI,kBAAkB,IAAI,IAAI,EAAE;AACpC,QAAQ,KAAK,MAAM,SAAS,IAAI,mBAAmB,EAAE;AACrD,YAAY,mBAAmB,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,CAAC;AACxF,QAAQ;AACR,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,47 @@
1
+ import { parseValueFromTransform } from '../../../render/dom/parse-transform.js';
2
+ import { transformPropOrder } from '../../../render/utils/keys-transform.js';
3
+ import { number } from '../../../value/types/numbers/index.js';
4
+ import { px } from '../../../value/types/numbers/units.js';
5
+
6
+ const isNumOrPxType = (v) => v === number || v === px;
7
+ const transformKeys = new Set(["x", "y", "z"]);
8
+ const nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));
9
+ function removeNonTranslationalTransform(visualElement) {
10
+ const removedTransforms = [];
11
+ nonTranslationalTransformKeys.forEach((key) => {
12
+ const value = visualElement.getValue(key);
13
+ if (value !== undefined) {
14
+ removedTransforms.push([key, value.get()]);
15
+ value.set(key.startsWith("scale") ? 1 : 0);
16
+ }
17
+ });
18
+ return removedTransforms;
19
+ }
20
+ const positionalValues = {
21
+ // Dimensions
22
+ width: ({ x }, { paddingLeft = "0", paddingRight = "0", boxSizing }) => {
23
+ const width = x.max - x.min;
24
+ return boxSizing === "border-box"
25
+ ? width
26
+ : width - parseFloat(paddingLeft) - parseFloat(paddingRight);
27
+ },
28
+ height: ({ y }, { paddingTop = "0", paddingBottom = "0", boxSizing }) => {
29
+ const height = y.max - y.min;
30
+ return boxSizing === "border-box"
31
+ ? height
32
+ : height - parseFloat(paddingTop) - parseFloat(paddingBottom);
33
+ },
34
+ top: (_bbox, { top }) => parseFloat(top),
35
+ left: (_bbox, { left }) => parseFloat(left),
36
+ bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),
37
+ right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),
38
+ // Transform
39
+ x: (_bbox, { transform }) => parseValueFromTransform(transform, "x"),
40
+ y: (_bbox, { transform }) => parseValueFromTransform(transform, "y"),
41
+ };
42
+ // Alias translate longform names
43
+ positionalValues.translateX = positionalValues.x;
44
+ positionalValues.translateY = positionalValues.y;
45
+
46
+ export { isNumOrPxType, positionalValues, removeNonTranslationalTransform };
47
+ //# sourceMappingURL=unit-conversion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-conversion.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs"],"sourcesContent":["import { parseValueFromTransform } from '../../../render/dom/parse-transform.mjs';\nimport { transformPropOrder } from '../../../render/utils/keys-transform.mjs';\nimport { number } from '../../../value/types/numbers/index.mjs';\nimport { px } from '../../../value/types/numbers/units.mjs';\n\nconst isNumOrPxType = (v) => v === number || v === px;\nconst transformKeys = new Set([\"x\", \"y\", \"z\"]);\nconst nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n const removedTransforms = [];\n nonTranslationalTransformKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (value !== undefined) {\n removedTransforms.push([key, value.get()]);\n value.set(key.startsWith(\"scale\") ? 1 : 0);\n }\n });\n return removedTransforms;\n}\nconst positionalValues = {\n // Dimensions\n width: ({ x }, { paddingLeft = \"0\", paddingRight = \"0\", boxSizing }) => {\n const width = x.max - x.min;\n return boxSizing === \"border-box\"\n ? width\n : width - parseFloat(paddingLeft) - parseFloat(paddingRight);\n },\n height: ({ y }, { paddingTop = \"0\", paddingBottom = \"0\", boxSizing }) => {\n const height = y.max - y.min;\n return boxSizing === \"border-box\"\n ? height\n : height - parseFloat(paddingTop) - parseFloat(paddingBottom);\n },\n top: (_bbox, { top }) => parseFloat(top),\n left: (_bbox, { left }) => parseFloat(left),\n bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),\n right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),\n // Transform\n x: (_bbox, { transform }) => parseValueFromTransform(transform, \"x\"),\n y: (_bbox, { transform }) => parseValueFromTransform(transform, \"y\"),\n};\n// Alias translate longform names\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\n\nexport { isNumOrPxType, positionalValues, removeNonTranslationalTransform };\n//# sourceMappingURL=unit-conversion.mjs.map\n"],"names":[],"mappings":";;;;;AAKK,MAAC,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,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,EAAE,KAAK;AAC7E,QAAQ,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG;AACpC,QAAQ,OAAO,SAAS,KAAK;AAC7B,cAAc;AACd,cAAc,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,aAAa,CAAC;AACzE,IAAI,CAAC;AACL,IAAI,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,GAAG,CAAC;AAC5C,IAAI,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,UAAU,CAAC,IAAI,CAAC;AAC/C,IAAI,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC;AACjE,IAAI,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC;AAClE;AACA,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,uBAAuB,CAAC,SAAS,EAAE,GAAG,CAAC;AACxE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,uBAAuB,CAAC,SAAS,EAAE,GAAG,CAAC;AACxE;AACA;AACA,gBAAgB,CAAC,UAAU,GAAG,gBAAgB,CAAC,CAAC;AAChD,gBAAgB,CAAC,UAAU,GAAG,gBAAgB,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,7 @@
1
+ import { camelToDash } from '../../render/dom/utils/camel-to-dash.js';
2
+
3
+ const optimizedAppearDataId = "framerAppearId";
4
+ const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
5
+
6
+ export { optimizedAppearDataAttribute, optimizedAppearDataId };
7
+ //# sourceMappingURL=data-id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-id.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs"],"sourcesContent":["import { camelToDash } from '../../render/dom/utils/camel-to-dash.mjs';\n\nconst optimizedAppearDataId = \"framerAppearId\";\nconst optimizedAppearDataAttribute = \"data-\" + camelToDash(optimizedAppearDataId);\n\nexport { optimizedAppearDataAttribute, optimizedAppearDataId };\n//# sourceMappingURL=data-id.mjs.map\n"],"names":[],"mappings":";;AAEK,MAAC,qBAAqB,GAAG;AACzB,MAAC,4BAA4B,GAAG,OAAO,GAAG,WAAW,CAAC,qBAAqB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ import { optimizedAppearDataAttribute } from './data-id.js';
2
+
3
+ function getOptimisedAppearId(visualElement) {
4
+ return visualElement.props[optimizedAppearDataAttribute];
5
+ }
6
+
7
+ export { getOptimisedAppearId };
8
+ //# sourceMappingURL=get-appear-id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-appear-id.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs"],"sourcesContent":["import { optimizedAppearDataAttribute } from './data-id.mjs';\n\nfunction getOptimisedAppearId(visualElement) {\n return visualElement.props[optimizedAppearDataAttribute];\n}\n\nexport { getOptimisedAppearId };\n//# sourceMappingURL=get-appear-id.mjs.map\n"],"names":[],"mappings":";;AAEA,SAAS,oBAAoB,CAAC,aAAa,EAAE;AAC7C,IAAI,OAAO,aAAa,CAAC,KAAK,CAAC,4BAA4B,CAAC;AAC5D;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,27 @@
1
+ class WithPromise {
2
+ constructor() {
3
+ this.updateFinished();
4
+ }
5
+ get finished() {
6
+ return this._finished;
7
+ }
8
+ updateFinished() {
9
+ this._finished = new Promise((resolve) => {
10
+ this.resolve = resolve;
11
+ });
12
+ }
13
+ notifyFinished() {
14
+ this.resolve();
15
+ }
16
+ /**
17
+ * Allows the animation to be awaited.
18
+ *
19
+ * @deprecated Use `finished` instead.
20
+ */
21
+ then(onResolve, onReject) {
22
+ return this.finished.then(onResolve, onReject);
23
+ }
24
+ }
25
+
26
+ export { WithPromise };
27
+ //# sourceMappingURL=WithPromise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithPromise.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs"],"sourcesContent":["class WithPromise {\n constructor() {\n this.updateFinished();\n }\n get finished() {\n return this._finished;\n }\n updateFinished() {\n this._finished = new Promise((resolve) => {\n this.resolve = resolve;\n });\n }\n notifyFinished() {\n this.resolve();\n }\n /**\n * Allows the animation to be awaited.\n *\n * @deprecated Use `finished` instead.\n */\n then(onResolve, onReject) {\n return this.finished.then(onResolve, onReject);\n }\n}\n\nexport { WithPromise };\n//# sourceMappingURL=WithPromise.mjs.map\n"],"names":[],"mappings":"AAAA,MAAM,WAAW,CAAC;AAClB,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,cAAc,EAAE;AAC7B,IAAI;AACJ,IAAI,IAAI,QAAQ,GAAG;AACnB,QAAQ,OAAO,IAAI,CAAC,SAAS;AAC7B,IAAI;AACJ,IAAI,cAAc,GAAG;AACrB,QAAQ,IAAI,CAAC,SAAS,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK;AAClD,YAAY,IAAI,CAAC,OAAO,GAAG,OAAO;AAClC,QAAQ,CAAC,CAAC;AACV,IAAI;AACJ,IAAI,cAAc,GAAG;AACrB,QAAQ,IAAI,CAAC,OAAO,EAAE;AACtB,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE;AAC9B,QAAQ,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;AACtD,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,16 @@
1
+ function calcChildStagger(children, child, delayChildren, staggerChildren = 0, staggerDirection = 1) {
2
+ const index = Array.from(children)
3
+ .sort((a, b) => a.sortNodePosition(b))
4
+ .indexOf(child);
5
+ const numChildren = children.size;
6
+ const maxStaggerDuration = (numChildren - 1) * staggerChildren;
7
+ const delayIsFunction = typeof delayChildren === "function";
8
+ return delayIsFunction
9
+ ? delayChildren(index, numChildren)
10
+ : staggerDirection === 1
11
+ ? index * staggerChildren
12
+ : maxStaggerDuration - index * staggerChildren;
13
+ }
14
+
15
+ export { calcChildStagger };
16
+ //# sourceMappingURL=calc-child-stagger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calc-child-stagger.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs"],"sourcesContent":["function calcChildStagger(children, child, delayChildren, staggerChildren = 0, staggerDirection = 1) {\n const index = Array.from(children)\n .sort((a, b) => a.sortNodePosition(b))\n .indexOf(child);\n const numChildren = children.size;\n const maxStaggerDuration = (numChildren - 1) * staggerChildren;\n const delayIsFunction = typeof delayChildren === \"function\";\n return delayIsFunction\n ? delayChildren(index, numChildren)\n : staggerDirection === 1\n ? index * staggerChildren\n : maxStaggerDuration - index * staggerChildren;\n}\n\nexport { calcChildStagger };\n//# sourceMappingURL=calc-child-stagger.mjs.map\n"],"names":[],"mappings":"AAAA,SAAS,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,eAAe,GAAG,CAAC,EAAE,gBAAgB,GAAG,CAAC,EAAE;AACrG,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ;AACrC,SAAS,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAC7C,SAAS,OAAO,CAAC,KAAK,CAAC;AACvB,IAAI,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI;AACrC,IAAI,MAAM,kBAAkB,GAAG,CAAC,WAAW,GAAG,CAAC,IAAI,eAAe;AAClE,IAAI,MAAM,eAAe,GAAG,OAAO,aAAa,KAAK,UAAU;AAC/D,IAAI,OAAO;AACX,UAAU,aAAa,CAAC,KAAK,EAAE,WAAW;AAC1C,UAAU,gBAAgB,KAAK;AAC/B,cAAc,KAAK,GAAG;AACtB,cAAc,kBAAkB,GAAG,KAAK,GAAG,eAAe;AAC1D;;;;","x_google_ignoreList":[0]}