@code0-tech/pictor 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/dist/_virtual/rolldown_runtime.js +3 -12
  2. package/dist/components/alert/Alert.js +19 -20
  3. package/dist/components/aurora/Aurora.js +15 -16
  4. package/dist/components/avatar/Avatar.js +44 -44
  5. package/dist/components/badge/Badge.js +36 -37
  6. package/dist/components/button/Button.js +16 -17
  7. package/dist/components/button-group/ButtonGroup.js +15 -16
  8. package/dist/components/card/Card.js +21 -22
  9. package/dist/components/card/CardSection.js +15 -15
  10. package/dist/components/chart/Chart.js +82 -82
  11. package/dist/components/chart/LineChart.js +50 -51
  12. package/dist/components/col/Col.js +9 -10
  13. package/dist/components/command/Command.js +32 -33
  14. package/dist/components/container/Container.js +9 -10
  15. package/dist/components/context-menu/ContextMenu.js +76 -77
  16. package/dist/components/data-table/DataTableColumn.js +9 -10
  17. package/dist/components/data-table/DataTableFilterInput.js +83 -83
  18. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +26 -27
  19. package/dist/components/data-table/DataTableHeader.js +20 -21
  20. package/dist/components/data-table/DataTablePagination.js +27 -28
  21. package/dist/components/dialog/Dialog.js +61 -62
  22. package/dist/components/file-tabs/FileTabs.js +51 -52
  23. package/dist/components/flex/Flex.js +9 -10
  24. package/dist/components/form/CheckboxInput.js +50 -51
  25. package/dist/components/form/ColorInput.js +242 -242
  26. package/dist/components/form/DateInput.js +55 -55
  27. package/dist/components/form/EditorInput.js +300 -300
  28. package/dist/components/form/FileInput.js +67 -68
  29. package/dist/components/form/InputDescription.js +3 -4
  30. package/dist/components/form/InputLabel.js +9 -10
  31. package/dist/components/form/InputMessage.js +6 -7
  32. package/dist/components/form/InputWrapper.js +37 -38
  33. package/dist/components/form/PasswordInput.js +2 -2
  34. package/dist/components/form/PinInput.js +30 -31
  35. package/dist/components/form/RadioGroup.js +22 -23
  36. package/dist/components/form/RadioInput.js +19 -20
  37. package/dist/components/form/SelectInput.js +55 -56
  38. package/dist/components/form/TagInput.js +44 -44
  39. package/dist/components/fullscreen/FullScreen.js +14 -15
  40. package/dist/components/gantt/Gantt.js +63 -64
  41. package/dist/components/gantt/GanttGroup.js +2 -2
  42. package/dist/components/gantt/GanttHeader.js +40 -41
  43. package/dist/components/gantt/GanttItem.js +11 -12
  44. package/dist/components/icon/Icon.js +22 -22
  45. package/dist/components/json-view/JsonView.js +37 -38
  46. package/dist/components/layout/Layout.js +64 -65
  47. package/dist/components/menu/Menu.js +91 -92
  48. package/dist/components/quote/Quote.js +29 -30
  49. package/dist/components/resizable/Resizable.js +22 -23
  50. package/dist/components/row/Row.js +9 -10
  51. package/dist/components/scroll-area/ScrollArea.js +46 -47
  52. package/dist/components/segmented-control/SegmentedControl.js +35 -35
  53. package/dist/components/spacing/Spacing.js +8 -9
  54. package/dist/components/tab/Tab.js +53 -53
  55. package/dist/components/text/Text.js +9 -10
  56. package/dist/components/toast/Toast.js +47 -47
  57. package/dist/components/tooltip/Tooltip.js +35 -36
  58. package/dist/utils/contextStore.js +31 -32
  59. package/dist/utils/motion.js +39 -40
  60. package/package.json +4 -4
  61. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +0 -6
  62. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  63. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -51
  64. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -58
  65. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -18
  66. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -9
  67. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -4
  68. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -4
  69. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -8
  70. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -15
  71. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -4
  72. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -13
  73. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -4
  74. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -4
  75. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -6
  76. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -9
  77. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
  78. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
  79. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -57
  80. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -25
  81. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -18
  82. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -136
  83. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -40
  84. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
  85. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -37
  86. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -23
  87. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -7
  88. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -49
  89. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -13
  90. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -11
  91. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -59
  92. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -7
  93. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
  94. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
  95. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
  96. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -68
  97. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -2
  98. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
  99. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -56
  100. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -48
  101. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -5
  102. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -8
  103. package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +0 -3
  104. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -11
  105. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -5
  106. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -6
  107. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
  108. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -17
  109. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -5
  110. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -9
  111. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -24
  112. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -7
  113. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -28
  114. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
  115. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -9
  116. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -6
  117. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -6
  118. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -2
  119. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -2
  120. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -4
  121. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -11
  122. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -23
  123. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -7
  124. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -5
  125. package/dist/node_modules/motion/dist/es/react.js +0 -196
  126. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -105
  127. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -127
  128. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -82
  129. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -26
  130. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -8
  131. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -11
  132. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -30
  133. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -20
  134. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -164
  135. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -7
  136. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -14
  137. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -4
  138. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -7
  139. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -43
  140. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -54
  141. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -24
  142. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -19
  143. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -59
  144. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -65
  145. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -6
  146. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -6
  147. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -10
  148. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -4
  149. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -4
  150. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -5
  151. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  152. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -34
  153. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -3
  154. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -5
  155. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -20
  156. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -5
  157. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -16
  158. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -23
  159. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -25
  160. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
  161. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -3
  162. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -5
  163. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -17
  164. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -4
  165. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -14
  166. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -11
  167. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -2
  168. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -9
  169. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -33
  170. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -17
  171. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -22
  172. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -8
  173. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -6
  174. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -6
  175. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -6
  176. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -15
  177. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -4
  178. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -28
  179. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -4
  180. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -3
  181. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -11
  182. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -30
  183. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -13
  184. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -8
  185. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -9
  186. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -34
  187. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
  188. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -19
  189. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -26
  190. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -2
  191. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -2
  192. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -2
  193. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -14
  194. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -23
  195. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -37
  196. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -10
  197. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -41
  198. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -28
  199. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -27
  200. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -16
  201. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -26
  202. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -11
  203. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -20
  204. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -580
  205. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -5
  206. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -49
  207. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -11
  208. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -11
  209. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -15
  210. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -10
  211. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -2
  212. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -4
  213. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -17
  214. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -16
  215. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -10
  216. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -7
  217. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -201
  218. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -26
  219. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -2
  220. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -54
  221. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -5
  222. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  223. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  224. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -26
  225. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -34
  226. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -6
  227. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -9
  228. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -2
  229. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -38
  230. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -20
  231. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -26
  232. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -2
  233. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -13
  234. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -7
  235. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -12
  236. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -133
  237. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -17
  238. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -4
  239. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -10
  240. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -6
  241. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -2
  242. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -4
  243. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -11
  244. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -20
  245. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -19
  246. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -9
  247. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -2
  248. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -6
  249. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -18
  250. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -17
  251. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -8
  252. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -10
  253. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -35
  254. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -20
  255. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -6
  256. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +0 -5
  257. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +0 -7
  258. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -10
  259. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -31
  260. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -5
  261. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -5
  262. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -5
  263. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -28
  264. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -50
  265. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -4
  266. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -6
  267. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -2
  268. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -5
  269. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -12
  270. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -2
  271. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -10
  272. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -7
  273. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -3
  274. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -90
  275. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -5
  276. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -17
  277. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -19
  278. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -10
  279. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -13
  280. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -13
  281. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -14
  282. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  283. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -50
  284. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -12
  285. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -14
  286. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -6
  287. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -22
  288. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -62
  289. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -30
  290. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -13
  291. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -10
  292. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -2
  293. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
  294. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -2
  295. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -10
  296. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -2
  297. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -2
  298. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -4
  299. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -2
  300. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -2
  301. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -2
  302. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -5
  303. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -11
  304. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -5
  305. package/dist/node_modules/motion-utils/dist/es/array.js +0 -8
  306. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -2
  307. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -3
  308. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -5
  309. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -4
  310. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -16
  311. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -3
  312. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -2
  313. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -2
  314. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -2
  315. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -2
  316. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -29
  317. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -8
  318. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -4
  319. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -2
  320. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -2
  321. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -2
  322. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -2
  323. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -6
  324. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -2
  325. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -2
  326. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -5
  327. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -24
  328. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -2
  329. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -2
  330. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -6
  331. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
  332. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -18
  333. package/dist/node_modules/react/compiler-runtime.js +0 -8
@@ -1,90 +0,0 @@
1
- import { SubscriptionManager } from "../../../../motion-utils/dist/es/subscription-manager.js";
2
- import { velocityPerSecond } from "../../../../motion-utils/dist/es/velocity-per-second.js";
3
- import { warnOnce } from "../../../../motion-utils/dist/es/warn-once.js";
4
- import { frame } from "../frameloop/frame.js";
5
- import { time } from "../frameloop/sync-time.js";
6
- var MAX_VELOCITY_DELTA = 30, isFloat = (e) => !isNaN(parseFloat(e)), collectMotionValues = { current: void 0 }, MotionValue = class {
7
- constructor(e, s = {}) {
8
- this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
9
- let s = time.now();
10
- if (this.updatedAt !== s && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
11
- }, this.hasAnimated = !1, this.setCurrent(e), this.owner = s.owner;
12
- }
13
- setCurrent(e) {
14
- this.current = e, this.updatedAt = time.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = isFloat(this.current));
15
- }
16
- setPrevFrameValue(e = this.current) {
17
- this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
18
- }
19
- onChange(e) {
20
- return process.env.NODE_ENV !== "production" && warnOnce(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
21
- }
22
- on(s, c) {
23
- this.events[s] || (this.events[s] = new SubscriptionManager());
24
- let l = this.events[s].add(c);
25
- return s === "change" ? () => {
26
- l(), frame.read(() => {
27
- this.events.change.getSize() || this.stop();
28
- });
29
- } : l;
30
- }
31
- clearListeners() {
32
- for (let e in this.events) this.events[e].clear();
33
- }
34
- attach(e, s) {
35
- this.passiveEffect = e, this.stopPassiveEffect = s;
36
- }
37
- set(e) {
38
- this.passiveEffect ? this.passiveEffect(e, this.updateAndNotify) : this.updateAndNotify(e);
39
- }
40
- setWithVelocity(e, s, c) {
41
- this.set(s), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - c;
42
- }
43
- jump(e, s = !0) {
44
- this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, s && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
45
- }
46
- dirty() {
47
- this.events.change?.notify(this.current);
48
- }
49
- addDependent(e) {
50
- this.dependents ||= /* @__PURE__ */ new Set(), this.dependents.add(e);
51
- }
52
- removeDependent(e) {
53
- this.dependents && this.dependents.delete(e);
54
- }
55
- get() {
56
- return collectMotionValues.current && collectMotionValues.current.push(this), this.current;
57
- }
58
- getPrevious() {
59
- return this.prev;
60
- }
61
- getVelocity() {
62
- let e = time.now();
63
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > MAX_VELOCITY_DELTA) return 0;
64
- let c = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);
65
- return velocityPerSecond(parseFloat(this.current) - parseFloat(this.prevFrameValue), c);
66
- }
67
- start(e) {
68
- return this.stop(), new Promise((s) => {
69
- this.hasAnimated = !0, this.animation = e(s), this.events.animationStart && this.events.animationStart.notify();
70
- }).then(() => {
71
- this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
72
- });
73
- }
74
- stop() {
75
- this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
76
- }
77
- isAnimating() {
78
- return !!this.animation;
79
- }
80
- clearAnimation() {
81
- delete this.animation;
82
- }
83
- destroy() {
84
- this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
85
- }
86
- };
87
- function motionValue(e, s) {
88
- return new MotionValue(e, s);
89
- }
90
- export { MotionValue, collectMotionValues, motionValue };
@@ -1,5 +0,0 @@
1
- var auto = {
2
- test: (e) => e === "auto",
3
- parse: (e) => e
4
- };
5
- export { auto };
@@ -1,17 +0,0 @@
1
- import { isColorString } from "./utils.js";
2
- import { rgba } from "./rgba.js";
3
- function parseHex(e) {
4
- let t = "", n = "", r = "", i = "";
5
- return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
6
- red: parseInt(t, 16),
7
- green: parseInt(n, 16),
8
- blue: parseInt(r, 16),
9
- alpha: i ? parseInt(i, 16) / 255 : 1
10
- };
11
- }
12
- var hex = {
13
- test: /* @__PURE__ */ isColorString("#"),
14
- parse: parseHex,
15
- transform: rgba.transform
16
- };
17
- export { hex };
@@ -1,19 +0,0 @@
1
- function hueToRgb(e, t, n) {
2
- return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
3
- }
4
- function hslaToRgba({ hue: t, saturation: n, lightness: r, alpha: i }) {
5
- t /= 360, n /= 100, r /= 100;
6
- let a = 0, o = 0, s = 0;
7
- if (!n) a = o = s = r;
8
- else {
9
- let i = r < .5 ? r * (1 + n) : r + n - r * n, c = 2 * r - i;
10
- a = hueToRgb(c, i, t + 1 / 3), o = hueToRgb(c, i, t), s = hueToRgb(c, i, t - 1 / 3);
11
- }
12
- return {
13
- red: Math.round(a * 255),
14
- green: Math.round(o * 255),
15
- blue: Math.round(s * 255),
16
- alpha: i
17
- };
18
- }
19
- export { hslaToRgba };
@@ -1,10 +0,0 @@
1
- import { alpha } from "../numbers/index.js";
2
- import { sanitize } from "../utils/sanitize.js";
3
- import { isColorString, splitColor } from "./utils.js";
4
- import { percent } from "../numbers/units.js";
5
- var hsla = {
6
- test: /* @__PURE__ */ isColorString("hsl", "hue"),
7
- parse: /* @__PURE__ */ splitColor("hue", "saturation", "lightness"),
8
- transform: ({ hue: r, saturation: i, lightness: a, alpha: o = 1 }) => "hsla(" + Math.round(r) + ", " + percent.transform(sanitize(i)) + ", " + percent.transform(sanitize(a)) + ", " + sanitize(alpha.transform(o)) + ")"
9
- };
10
- export { hsla };
@@ -1,13 +0,0 @@
1
- import { rgba } from "./rgba.js";
2
- import { hex } from "./hex.js";
3
- import { hsla } from "./hsla.js";
4
- var color = {
5
- test: (r) => rgba.test(r) || hex.test(r) || hsla.test(r),
6
- parse: (r) => rgba.test(r) ? rgba.parse(r) : hsla.test(r) ? hsla.parse(r) : hex.parse(r),
7
- transform: (n) => typeof n == "string" ? n : n.hasOwnProperty("red") ? rgba.transform(n) : hsla.transform(n),
8
- getAnimatableNone: (e) => {
9
- let n = color.parse(e);
10
- return n.alpha = 0, color.transform(n);
11
- }
12
- };
13
- export { color };
@@ -1,13 +0,0 @@
1
- import { clamp } from "../../../../../../motion-utils/dist/es/clamp.js";
2
- import { alpha, number } from "../numbers/index.js";
3
- import { sanitize } from "../utils/sanitize.js";
4
- import { isColorString, splitColor } from "./utils.js";
5
- var clampRgbUnit = (a) => clamp(0, 255, a), rgbUnit = {
6
- ...number,
7
- transform: (e) => Math.round(clampRgbUnit(e))
8
- }, rgba = {
9
- test: /* @__PURE__ */ isColorString("rgb", "red"),
10
- parse: /* @__PURE__ */ splitColor("red", "green", "blue"),
11
- transform: ({ red: e, green: o, blue: s, alpha: c = 1 }) => "rgba(" + rgbUnit.transform(e) + ", " + rgbUnit.transform(o) + ", " + rgbUnit.transform(s) + ", " + sanitize(alpha.transform(c)) + ")"
12
- };
13
- export { rgbUnit, rgba };
@@ -1,14 +0,0 @@
1
- import { floatRegex } from "../utils/float-regex.js";
2
- import { isNullish } from "../utils/is-nullish.js";
3
- import { singleColorRegex } from "../utils/single-color-regex.js";
4
- var isColorString = (e, r) => (i) => !!(typeof i == "string" && singleColorRegex.test(i) && i.startsWith(e) || r && !isNullish(i) && Object.prototype.hasOwnProperty.call(i, r)), splitColor = (t, n, r) => (i) => {
5
- if (typeof i != "string") return i;
6
- let [a, o, s, c] = i.match(floatRegex);
7
- return {
8
- [t]: parseFloat(a),
9
- [n]: parseFloat(o),
10
- [r]: parseFloat(s),
11
- alpha: c === void 0 ? 1 : parseFloat(c)
12
- };
13
- };
14
- export { isColorString, splitColor };
@@ -1,24 +0,0 @@
1
- import { floatRegex } from "../utils/float-regex.js";
2
- import { complex } from "./index.js";
3
- var maxDefaults = new Set([
4
- "brightness",
5
- "contrast",
6
- "saturate",
7
- "opacity"
8
- ]);
9
- function applyDefaultFilter(n) {
10
- let [r, i] = n.slice(0, -1).split("(");
11
- if (r === "drop-shadow") return n;
12
- let [a] = i.match(floatRegex) || [];
13
- if (!a) return n;
14
- let o = i.replace(a, ""), s = maxDefaults.has(r) ? 1 : 0;
15
- return a !== i && (s *= 100), r + "(" + s + o + ")";
16
- }
17
- var functionRegex = /\b([a-z-]*)\(.*?\)/gu, filter = {
18
- ...complex,
19
- getAnimatableNone: (e) => {
20
- let n = e.match(functionRegex);
21
- return n ? n.map(applyDefaultFilter).join(" ") : e;
22
- }
23
- };
24
- export { filter };
@@ -1,50 +0,0 @@
1
- import { sanitize } from "../utils/sanitize.js";
2
- import { floatRegex } from "../utils/float-regex.js";
3
- import { color } from "../color/index.js";
4
- import { colorRegex } from "../utils/color-regex.js";
5
- function test(e) {
6
- return isNaN(e) && typeof e == "string" && (e.match(floatRegex)?.length || 0) + (e.match(colorRegex)?.length || 0) > 0;
7
- }
8
- var NUMBER_TOKEN = "number", COLOR_TOKEN = "color", VAR_TOKEN = "var", VAR_FUNCTION_TOKEN = "var(", SPLIT_TOKEN = "${}", complexRegex = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
9
- function analyseComplexValue(e) {
10
- let u = e.toString(), f = [], p = {
11
- color: [],
12
- number: [],
13
- var: []
14
- }, _ = [], v = 0;
15
- return {
16
- values: f,
17
- split: u.replace(complexRegex, (e) => (color.test(e) ? (p.color.push(v), _.push(COLOR_TOKEN), f.push(color.parse(e))) : e.startsWith(VAR_FUNCTION_TOKEN) ? (p.var.push(v), _.push(VAR_TOKEN), f.push(e)) : (p.number.push(v), _.push(NUMBER_TOKEN), f.push(parseFloat(e))), ++v, SPLIT_TOKEN)).split(SPLIT_TOKEN),
18
- indexes: p,
19
- types: _
20
- };
21
- }
22
- function parseComplexValue(e) {
23
- return analyseComplexValue(e).values;
24
- }
25
- function buildTransformer({ split: u, types: f }) {
26
- let p = u.length;
27
- return (m) => {
28
- let h = "";
29
- for (let g = 0; g < p; g++) if (h += u[g], m[g] !== void 0) {
30
- let u = f[g];
31
- u === NUMBER_TOKEN ? h += sanitize(m[g]) : u === COLOR_TOKEN ? h += color.transform(m[g]) : h += m[g];
32
- }
33
- return h;
34
- };
35
- }
36
- function createTransformer(e) {
37
- return buildTransformer(analyseComplexValue(e));
38
- }
39
- var convertNumbersToZero = (e) => typeof e == "number" ? 0 : color.test(e) ? color.getAnimatableNone(e) : e, convertToZero = (e, u) => typeof e == "number" ? u?.trim().endsWith("/") ? e : 0 : convertNumbersToZero(e);
40
- function getAnimatableNone(e) {
41
- let u = analyseComplexValue(e);
42
- return buildTransformer(u)(u.values.map((e, d) => convertToZero(e, u.split[d])));
43
- }
44
- var complex = {
45
- test,
46
- parse: parseComplexValue,
47
- createTransformer,
48
- getAnimatableNone
49
- };
50
- export { analyseComplexValue, complex };
@@ -1,12 +0,0 @@
1
- import { complex } from "./index.js";
2
- var mask = {
3
- ...complex,
4
- getAnimatableNone: (t) => {
5
- let n = complex.parse(t);
6
- return complex.createTransformer(t)(n.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
7
- ...e,
8
- alpha: 1
9
- } : e));
10
- }
11
- };
12
- export { mask };
@@ -1,14 +0,0 @@
1
- import { number } from "./numbers/index.js";
2
- import { degrees, percent, px, vh, vw } from "./numbers/units.js";
3
- import { auto } from "./auto.js";
4
- import { testValueType } from "./test.js";
5
- var dimensionValueTypes = [
6
- number,
7
- px,
8
- percent,
9
- degrees,
10
- vw,
11
- vh,
12
- auto
13
- ], findDimensionValueType = (e) => dimensionValueTypes.find(testValueType(e));
14
- export { dimensionValueTypes, findDimensionValueType };
@@ -1,6 +0,0 @@
1
- import { number } from "./numbers/index.js";
2
- var int = {
3
- ...number,
4
- transform: Math.round
5
- };
6
- export { int };
@@ -1,22 +0,0 @@
1
- import { color } from "../color/index.js";
2
- import { filter } from "../complex/filter.js";
3
- import { mask } from "../complex/mask.js";
4
- import { numberValueTypes } from "./number.js";
5
- var defaultValueTypes = {
6
- ...numberValueTypes,
7
- color,
8
- backgroundColor: color,
9
- outlineColor: color,
10
- fill: color,
11
- stroke: color,
12
- borderColor: color,
13
- borderTopColor: color,
14
- borderRightColor: color,
15
- borderBottomColor: color,
16
- borderLeftColor: color,
17
- filter,
18
- WebkitFilter: filter,
19
- mask,
20
- WebkitMask: mask
21
- }, getDefaultValueType = (e) => defaultValueTypes[e];
22
- export { defaultValueTypes, getDefaultValueType };
@@ -1,62 +0,0 @@
1
- import { alpha } from "../numbers/index.js";
2
- import { px } from "../numbers/units.js";
3
- import { int } from "../int.js";
4
- import { transformValueTypes } from "./transform.js";
5
- var numberValueTypes = {
6
- borderWidth: px,
7
- borderTopWidth: px,
8
- borderRightWidth: px,
9
- borderBottomWidth: px,
10
- borderLeftWidth: px,
11
- borderRadius: px,
12
- borderTopLeftRadius: px,
13
- borderTopRightRadius: px,
14
- borderBottomRightRadius: px,
15
- borderBottomLeftRadius: px,
16
- width: px,
17
- maxWidth: px,
18
- height: px,
19
- maxHeight: px,
20
- top: px,
21
- right: px,
22
- bottom: px,
23
- left: px,
24
- inset: px,
25
- insetBlock: px,
26
- insetBlockStart: px,
27
- insetBlockEnd: px,
28
- insetInline: px,
29
- insetInlineStart: px,
30
- insetInlineEnd: px,
31
- padding: px,
32
- paddingTop: px,
33
- paddingRight: px,
34
- paddingBottom: px,
35
- paddingLeft: px,
36
- paddingBlock: px,
37
- paddingBlockStart: px,
38
- paddingBlockEnd: px,
39
- paddingInline: px,
40
- paddingInlineStart: px,
41
- paddingInlineEnd: px,
42
- margin: px,
43
- marginTop: px,
44
- marginRight: px,
45
- marginBottom: px,
46
- marginLeft: px,
47
- marginBlock: px,
48
- marginBlockStart: px,
49
- marginBlockEnd: px,
50
- marginInline: px,
51
- marginInlineStart: px,
52
- marginInlineEnd: px,
53
- fontSize: px,
54
- backgroundPositionX: px,
55
- backgroundPositionY: px,
56
- ...transformValueTypes,
57
- zIndex: int,
58
- fillOpacity: alpha,
59
- strokeOpacity: alpha,
60
- numOctaves: int
61
- };
62
- export { numberValueTypes };
@@ -1,30 +0,0 @@
1
- import { alpha, scale } from "../numbers/index.js";
2
- import { degrees, progressPercentage, px } from "../numbers/units.js";
3
- var transformValueTypes = {
4
- rotate: degrees,
5
- pathRotation: degrees,
6
- rotateX: degrees,
7
- rotateY: degrees,
8
- rotateZ: degrees,
9
- scale,
10
- scaleX: scale,
11
- scaleY: scale,
12
- scaleZ: scale,
13
- skew: degrees,
14
- skewX: degrees,
15
- skewY: degrees,
16
- distance: px,
17
- translateX: px,
18
- translateY: px,
19
- translateZ: px,
20
- x: px,
21
- y: px,
22
- z: px,
23
- perspective: px,
24
- transformPerspective: px,
25
- opacity: alpha,
26
- originX: progressPercentage,
27
- originY: progressPercentage,
28
- originZ: px
29
- };
30
- export { transformValueTypes };
@@ -1,13 +0,0 @@
1
- import { clamp } from "../../../../../../motion-utils/dist/es/clamp.js";
2
- var number = {
3
- test: (e) => typeof e == "number",
4
- parse: parseFloat,
5
- transform: (e) => e
6
- }, alpha = {
7
- ...number,
8
- transform: (r) => clamp(0, 1, r)
9
- }, scale = {
10
- ...number,
11
- default: 1
12
- };
13
- export { alpha, number, scale };
@@ -1,10 +0,0 @@
1
- var createUnitType = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
2
- test: (o) => typeof o == "string" && o.endsWith(e) && o.split(" ").length === 1,
3
- parse: parseFloat,
4
- transform: (o) => `${o}${e}`
5
- }), degrees = /* @__PURE__ */ createUnitType("deg"), percent = /* @__PURE__ */ createUnitType("%"), px = /* @__PURE__ */ createUnitType("px"), vh = /* @__PURE__ */ createUnitType("vh"), vw = /* @__PURE__ */ createUnitType("vw"), progressPercentage = /* @__PURE__ */ (() => ({
6
- ...percent,
7
- parse: (e) => percent.parse(e) / 100,
8
- transform: (e) => percent.transform(e * 100)
9
- }))();
10
- export { degrees, percent, progressPercentage, px, vh, vw };
@@ -1,2 +0,0 @@
1
- var testValueType = (e) => (t) => t.test(e);
2
- export { testValueType };
@@ -1,10 +0,0 @@
1
- import { complex } from "../complex/index.js";
2
- import { filter } from "../complex/filter.js";
3
- import { mask } from "../complex/mask.js";
4
- import { getDefaultValueType } from "../maps/defaults.js";
5
- var customTypes = /* @__PURE__ */ new Set([filter, mask]);
6
- function getAnimatableNone(r, i) {
7
- let a = getDefaultValueType(r);
8
- return customTypes.has(a) || (a = complex), a.getAnimatableNone ? a.getAnimatableNone(i) : void 0;
9
- }
10
- export { getAnimatableNone };
@@ -1,2 +0,0 @@
1
- var colorRegex = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
2
- export { colorRegex };
@@ -1,10 +0,0 @@
1
- import { color } from "../color/index.js";
2
- import { complex } from "../complex/index.js";
3
- import { testValueType } from "../test.js";
4
- import { dimensionValueTypes } from "../dimensions.js";
5
- var valueTypes = [
6
- ...dimensionValueTypes,
7
- color,
8
- complex
9
- ], findValueType = (e) => valueTypes.find(testValueType(e));
10
- export { findValueType };
@@ -1,2 +0,0 @@
1
- var floatRegex = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
2
- export { floatRegex };
@@ -1,2 +0,0 @@
1
- var getValueAsType = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2
- export { getValueAsType };
@@ -1,4 +0,0 @@
1
- function isNullish(e) {
2
- return e == null;
3
- }
4
- export { isNullish };
@@ -1,2 +0,0 @@
1
- var sanitize = (e) => Math.round(e * 1e5) / 1e5;
2
- export { sanitize };
@@ -1,2 +0,0 @@
1
- var singleColorRegex = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
2
- export { singleColorRegex };
@@ -1,2 +0,0 @@
1
- var isMotionValue = (e) => !!(e && e.getVelocity);
2
- export { isMotionValue };
@@ -1,5 +0,0 @@
1
- import { isMotionValue } from "./is-motion-value.js";
2
- function resolveMotionValue(t) {
3
- return isMotionValue(t) ? t.get() : t;
4
- }
5
- export { resolveMotionValue };
@@ -1,11 +0,0 @@
1
- import { MotionGlobalConfig } from "../../../../../motion-utils/dist/es/global-config.js";
2
- import { isWillChangeMotionValue } from "./is.js";
3
- function addValueToWillChange(n, r) {
4
- let i = n.getValue("willChange");
5
- if (isWillChangeMotionValue(i)) return i.add(r);
6
- if (!i && MotionGlobalConfig.WillChange) {
7
- let t = new MotionGlobalConfig.WillChange("auto");
8
- n.addValue("willChange", t), t.add(r);
9
- }
10
- }
11
- export { addValueToWillChange };
@@ -1,5 +0,0 @@
1
- import { isMotionValue } from "../utils/is-motion-value.js";
2
- function isWillChangeMotionValue(t) {
3
- return !!(isMotionValue(t) && t.add);
4
- }
5
- export { isWillChangeMotionValue };
@@ -1,8 +0,0 @@
1
- function addUniqueItem(e, t) {
2
- e.indexOf(t) === -1 && e.push(t);
3
- }
4
- function removeItem(e, t) {
5
- let n = e.indexOf(t);
6
- n > -1 && e.splice(n, 1);
7
- }
8
- export { addUniqueItem, removeItem };
@@ -1,2 +0,0 @@
1
- var clamp = (e, t, n) => n > t ? t : n < e ? e : n;
2
- export { clamp };
@@ -1,3 +0,0 @@
1
- import { backIn } from "./back.js";
2
- var anticipate = (t) => t >= 1 ? 1 : (t *= 2) < 1 ? .5 * backIn(t) : .5 * (2 - 2 ** (-10 * (t - 1)));
3
- export { anticipate };
@@ -1,5 +0,0 @@
1
- import { cubicBezier } from "./cubic-bezier.js";
2
- import { mirrorEasing } from "./modifiers/mirror.js";
3
- import { reverseEasing } from "./modifiers/reverse.js";
4
- var backOut = /* @__PURE__ */ cubicBezier(.33, 1.53, .69, .99), backIn = /* @__PURE__ */ reverseEasing(backOut), backInOut = /* @__PURE__ */ mirrorEasing(backIn);
5
- export { backIn, backInOut, backOut };
@@ -1,4 +0,0 @@
1
- import { mirrorEasing } from "./modifiers/mirror.js";
2
- import { reverseEasing } from "./modifiers/reverse.js";
3
- var circIn = (e) => 1 - Math.sin(Math.acos(e)), circOut = reverseEasing(circIn), circInOut = mirrorEasing(circIn);
4
- export { circIn, circInOut, circOut };
@@ -1,16 +0,0 @@
1
- import { noop } from "../noop.js";
2
- var calcBezier = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, subdivisionPrecision = 1e-7, subdivisionMaxIterations = 12;
3
- function binarySubdivide(e, i, a, o, s) {
4
- let c, l, u = 0;
5
- do
6
- l = i + (a - i) / 2, c = calcBezier(l, o, s) - e, c > 0 ? a = l : i = l;
7
- while (Math.abs(c) > subdivisionPrecision && ++u < subdivisionMaxIterations);
8
- return l;
9
- }
10
- /* @__NO_SIDE_EFFECTS__ */
11
- function cubicBezier(n, r, a, o) {
12
- if (n === r && a === o) return noop;
13
- let s = (e) => binarySubdivide(e, 0, 1, n, a);
14
- return (e) => e === 0 || e === 1 ? e : calcBezier(s(e), r, o);
15
- }
16
- export { cubicBezier };
@@ -1,3 +0,0 @@
1
- import { cubicBezier } from "./cubic-bezier.js";
2
- var easeIn = /* @__PURE__ */ cubicBezier(.42, 0, 1, 1), easeOut = /* @__PURE__ */ cubicBezier(0, 0, .58, 1), easeInOut = /* @__PURE__ */ cubicBezier(.42, 0, .58, 1);
3
- export { easeIn, easeInOut, easeOut };
@@ -1,2 +0,0 @@
1
- var mirrorEasing = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2;
2
- export { mirrorEasing };
@@ -1,2 +0,0 @@
1
- var reverseEasing = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t);
2
- export { reverseEasing };
@@ -1,2 +0,0 @@
1
- var isBezierDefinition = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number";
2
- export { isBezierDefinition };
@@ -1,2 +0,0 @@
1
- var isEasingArray = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
2
- export { isEasingArray };
@@ -1,29 +0,0 @@
1
- import { invariant } from "../../errors.js";
2
- import { noop } from "../../noop.js";
3
- import { cubicBezier } from "../cubic-bezier.js";
4
- import { backIn, backInOut, backOut } from "../back.js";
5
- import { anticipate } from "../anticipate.js";
6
- import { circIn, circInOut, circOut } from "../circ.js";
7
- import { easeIn, easeInOut, easeOut } from "../ease.js";
8
- import { isBezierDefinition } from "./is-bezier-definition.js";
9
- var easingLookup = {
10
- linear: noop,
11
- easeIn,
12
- easeInOut,
13
- easeOut,
14
- circIn,
15
- circInOut,
16
- circOut,
17
- backIn,
18
- backInOut,
19
- backOut,
20
- anticipate
21
- }, isValidEasing = (e) => typeof e == "string", easingDefinitionToFunction = (f) => {
22
- if (isBezierDefinition(f)) {
23
- invariant(f.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
24
- let [p, m, h, g] = f;
25
- return cubicBezier(p, m, h, g);
26
- } else if (isValidEasing(f)) return invariant(easingLookup[f] !== void 0, `Invalid easing type '${f}'`, "invalid-easing-type"), easingLookup[f];
27
- return f;
28
- };
29
- export { easingDefinitionToFunction };
@@ -1,8 +0,0 @@
1
- import { formatErrorMessage } from "./format-error-message.js";
2
- var warning = () => {}, invariant = () => {};
3
- typeof process < "u" && process.env.NODE_ENV !== "production" && (warning = (t, n, r) => {
4
- !t && typeof console < "u" && console.warn(formatErrorMessage(n, r));
5
- }, invariant = (t, n, r) => {
6
- if (!t) throw Error(formatErrorMessage(n, r));
7
- });
8
- export { invariant, warning };