@code0-tech/pictor 0.9.3 → 0.10.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 (291) hide show
  1. package/dist/assets/components/island/Island.style.css +1 -0
  2. package/dist/components/breadcrumb/Breadcrumb.js +7 -7
  3. package/dist/components/button/Button.js +11 -11
  4. package/dist/components/data-table/DataTable.js +15 -15
  5. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +15 -15
  6. package/dist/components/editor/Editor.js +13 -13
  7. package/dist/components/form/CheckboxInput.js +4 -4
  8. package/dist/components/form/EmailInput.js +9 -9
  9. package/dist/components/form/InputContentEditable.hook.js +11 -11
  10. package/dist/components/form/InputWrapper.js +15 -15
  11. package/dist/components/form/NumberInput.js +9 -9
  12. package/dist/components/form/PasswordInput.js +4 -4
  13. package/dist/components/form/SwitchInput.js +7 -7
  14. package/dist/components/form/TextAreaInput.js +6 -6
  15. package/dist/components/form/TextInput.js +6 -6
  16. package/dist/components/form/useForm.js +2 -2
  17. package/dist/components/fullscreen/FullScreen.js +2 -2
  18. package/dist/components/gantt/GanttGroup.js +15 -15
  19. package/dist/components/island/Island.d.ts +6 -0
  20. package/dist/components/island/Island.hook.d.ts +19 -0
  21. package/dist/components/island/Island.hook.js +58 -0
  22. package/dist/components/island/Island.js +71 -0
  23. package/dist/components/progress/Progress.js +18 -18
  24. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  25. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  26. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
  27. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  28. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  29. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  30. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  31. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
  32. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  33. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  34. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
  35. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +285 -0
  36. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +22 -0
  37. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
  38. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
  39. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +21 -0
  40. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -0
  41. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +43 -0
  42. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +29 -0
  43. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +45 -0
  44. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +33 -0
  45. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
  46. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +39 -0
  47. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  48. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
  49. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +60 -0
  50. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  51. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +14 -0
  52. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +45 -0
  53. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  54. package/dist/node_modules/framer-motion/dist/es/motion/index.js +62 -0
  55. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  56. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +21 -0
  57. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
  58. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
  59. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +39 -0
  60. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
  61. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
  62. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
  63. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  64. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +16 -0
  65. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
  66. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  67. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
  68. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
  69. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  70. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  71. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
  72. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
  73. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  74. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
  75. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
  76. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  77. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  78. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
  79. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  80. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +112 -0
  81. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +144 -0
  82. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +106 -0
  83. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +38 -0
  84. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
  85. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
  86. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +37 -0
  87. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +30 -0
  88. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +178 -0
  89. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  90. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -0
  91. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  92. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
  93. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +46 -0
  94. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
  95. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +29 -0
  96. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
  97. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +68 -0
  98. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +74 -0
  99. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +8 -0
  100. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +8 -0
  101. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
  102. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
  103. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
  104. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +7 -0
  105. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +16 -0
  106. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +37 -0
  107. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
  108. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  109. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
  110. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +7 -0
  111. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +23 -0
  112. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
  113. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +22 -0
  114. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +8 -0
  115. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
  116. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
  117. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
  118. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
  119. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +16 -0
  120. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -0
  121. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
  122. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +12 -0
  123. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
  124. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
  125. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +33 -0
  126. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +12 -0
  127. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +8 -0
  128. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
  129. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
  130. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +17 -0
  131. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +6 -0
  132. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
  133. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
  134. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
  135. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
  136. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +43 -0
  137. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +15 -0
  138. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  139. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  140. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
  141. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +34 -0
  142. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +18 -0
  143. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  144. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  145. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  146. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  147. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  148. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +32 -0
  149. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +25 -0
  150. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
  151. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +53 -0
  152. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +38 -0
  153. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +25 -0
  154. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
  155. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
  156. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  157. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  158. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +618 -0
  159. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
  160. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
  161. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +21 -0
  162. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +16 -0
  163. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  164. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +13 -0
  165. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
  166. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
  167. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +19 -0
  168. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
  169. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +13 -0
  170. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +10 -0
  171. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +263 -0
  172. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +28 -0
  173. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
  174. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +65 -0
  175. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
  176. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  177. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
  178. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
  179. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
  180. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +12 -0
  181. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
  182. package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
  183. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
  184. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
  185. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  186. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  187. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
  188. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +11 -0
  189. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  190. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +143 -0
  191. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +20 -0
  192. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
  193. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
  194. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  195. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +4 -0
  196. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
  197. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
  198. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +23 -0
  199. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +25 -0
  200. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
  201. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +5 -0
  202. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  203. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +20 -0
  204. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +21 -0
  205. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +14 -0
  206. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
  207. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
  208. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +23 -0
  209. package/dist/node_modules/motion-dom/dist/es/resize/index.js +8 -0
  210. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +12 -0
  211. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +42 -0
  212. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
  213. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
  214. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
  215. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +29 -0
  216. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +51 -0
  217. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
  218. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +8 -0
  219. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +4 -0
  220. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +8 -0
  221. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
  222. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
  223. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  224. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
  225. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
  226. package/dist/node_modules/motion-dom/dist/es/value/index.js +212 -0
  227. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
  228. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +19 -0
  229. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +22 -0
  230. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +12 -0
  231. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +15 -0
  232. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +16 -0
  233. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
  234. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +24 -0
  235. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +51 -0
  236. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -0
  237. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +9 -0
  238. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
  239. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +27 -0
  240. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
  241. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +37 -0
  242. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
  243. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +17 -0
  244. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
  245. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +12 -0
  246. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
  247. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +8 -0
  248. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
  249. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +4 -0
  250. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
  251. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
  252. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
  253. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
  254. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  255. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +14 -0
  256. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  257. package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
  258. package/dist/node_modules/motion-utils/dist/es/clamp.js +4 -0
  259. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
  260. package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
  261. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
  262. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +19 -0
  263. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
  264. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
  265. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
  266. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
  267. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +4 -0
  268. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +32 -0
  269. package/dist/node_modules/motion-utils/dist/es/errors.js +14 -0
  270. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
  271. package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
  272. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
  273. package/dist/node_modules/motion-utils/dist/es/is-object.js +4 -0
  274. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
  275. package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
  276. package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
  277. package/dist/node_modules/motion-utils/dist/es/pipe.js +4 -0
  278. package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
  279. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
  280. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
  281. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +4 -0
  282. package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
  283. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  284. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  285. package/dist/utils/reactiveArrayService.js +4 -4
  286. package/package.json +9 -6
  287. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
  288. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +0 -81
  289. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js +0 -55
  290. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
  291. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +0 -58
@@ -0,0 +1,6 @@
1
+ import { camelToDash as a } from "../../render/dom/utils/camel-to-dash.js";
2
+ const t = "framerAppearId", e = "data-" + a(t);
3
+ export {
4
+ e as optimizedAppearDataAttribute,
5
+ t as optimizedAppearDataId
6
+ };
@@ -0,0 +1,7 @@
1
+ import { optimizedAppearDataAttribute as p } from "./data-id.js";
2
+ function e(t) {
3
+ return t.props[p];
4
+ }
5
+ export {
6
+ e as getOptimisedAppearId
7
+ };
@@ -0,0 +1,27 @@
1
+ class t {
2
+ constructor() {
3
+ this.updateFinished();
4
+ }
5
+ get finished() {
6
+ return this._finished;
7
+ }
8
+ updateFinished() {
9
+ this._finished = new Promise((i) => {
10
+ this.resolve = i;
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(i, e) {
22
+ return this.finished.then(i, e);
23
+ }
24
+ }
25
+ export {
26
+ t as WithPromise
27
+ };
@@ -0,0 +1,7 @@
1
+ function x(t, s, c, o = 0, u = 1) {
2
+ const n = Array.from(t).sort((a, e) => a.sortNodePosition(e)).indexOf(s), i = t.size, r = (i - 1) * o;
3
+ return typeof c == "function" ? c(n, i) : u === 1 ? n * o : r - n * o;
4
+ }
5
+ export {
6
+ x as calcChildStagger
7
+ };
@@ -0,0 +1,23 @@
1
+ import { isGenerator as f } from "../generators/utils/is-generator.js";
2
+ import { isAnimatable as l } from "./is-animatable.js";
3
+ import { warning as g } from "../../../../../motion-utils/dist/es/errors.js";
4
+ function s(t) {
5
+ const i = t[0];
6
+ if (t.length === 1)
7
+ return !0;
8
+ for (let n = 0; n < t.length; n++)
9
+ if (t[n] !== i)
10
+ return !0;
11
+ }
12
+ function h(t, i, n, u) {
13
+ const r = t[0];
14
+ if (r === null)
15
+ return !1;
16
+ if (i === "display" || i === "visibility")
17
+ return !0;
18
+ const o = t[t.length - 1], a = l(r, i), e = l(o, i);
19
+ return g(a === e, `You are trying to animate ${i} from "${r}" to "${o}". "${a ? o : r}" is not an animatable value.`, "value-not-animatable"), !a || !e ? !1 : s(t) || (n === "spring" || f(n)) && u;
20
+ }
21
+ export {
22
+ h as canAnimate
23
+ };
@@ -0,0 +1,31 @@
1
+ import { isCSSVariableToken as c } from "./is-css-variable.js";
2
+ import { invariant as l } from "../../../../../motion-utils/dist/es/errors.js";
3
+ import { isNumericalString as s } from "../../../../../motion-utils/dist/es/is-numerical-string.js";
4
+ const m = (
5
+ // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
6
+ /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
7
+ );
8
+ function p(a) {
9
+ const e = m.exec(a);
10
+ if (!e)
11
+ return [,];
12
+ const [, r, i, t] = e;
13
+ return [`--${r ?? i}`, t];
14
+ }
15
+ const f = 4;
16
+ function u(a, e, r = 1) {
17
+ l(r <= f, `Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
18
+ const [i, t] = p(a);
19
+ if (!i)
20
+ return;
21
+ const o = window.getComputedStyle(e).getPropertyValue(i);
22
+ if (o) {
23
+ const n = o.trim();
24
+ return s(n) ? parseFloat(n) : n;
25
+ }
26
+ return c(t) ? u(t, e, r + 1) : t;
27
+ }
28
+ export {
29
+ u as getVariableValue,
30
+ p as parseCSSVariable
31
+ };
@@ -0,0 +1,22 @@
1
+ import { transformProps as s } from "../../render/utils/keys-transform.js";
2
+ const r = {
3
+ type: "spring",
4
+ stiffness: 500,
5
+ damping: 25,
6
+ restSpeed: 10
7
+ }, n = (t) => ({
8
+ type: "spring",
9
+ stiffness: 550,
10
+ damping: t === 0 ? 2 * Math.sqrt(550) : 30,
11
+ restSpeed: 10
12
+ }), i = {
13
+ type: "keyframes",
14
+ duration: 0.8
15
+ }, a = {
16
+ type: "keyframes",
17
+ ease: [0.25, 0.1, 0.35, 1],
18
+ duration: 0.3
19
+ }, o = (t, { keyframes: e }) => e.length > 2 ? i : s.has(t) ? t.startsWith("scale") ? n(e[1]) : r : a;
20
+ export {
21
+ o as getDefaultTransition
22
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveTransition as o } from "./resolve-transition.js";
2
+ function l(e, u) {
3
+ const r = e?.[u] ?? e?.default ?? e;
4
+ return r !== e ? o(r, e) : r;
5
+ }
6
+ export {
7
+ l as getValueTransition
8
+ };
@@ -0,0 +1,7 @@
1
+ import { complex as e } from "../../value/types/complex/index.js";
2
+ const n = (r, t) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
3
+ (e.test(r) || r === "0") && // And it contains numbers and/or colors
4
+ !r.startsWith("url("));
5
+ export {
6
+ n as isAnimatable
7
+ };
@@ -0,0 +1,9 @@
1
+ const r = (t) => (s) => typeof s == "string" && s.startsWith(t), e = /* @__PURE__ */ r("--"), i = /* @__PURE__ */ r("var(--"), a = (t) => i(t) ? n.test(t.split("/*")[0].trim()) : !1, n = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
2
+ function o(t) {
3
+ return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
4
+ }
5
+ export {
6
+ o as containsCSSVariable,
7
+ e as isCSSVariableName,
8
+ a as isCSSVariableToken
9
+ };
@@ -0,0 +1,21 @@
1
+ const t = /* @__PURE__ */ new Set([
2
+ "when",
3
+ "delay",
4
+ "delayChildren",
5
+ "staggerChildren",
6
+ "staggerDirection",
7
+ "repeat",
8
+ "repeatType",
9
+ "repeatDelay",
10
+ "from",
11
+ "elapsed"
12
+ ]);
13
+ function n(e) {
14
+ for (const r in e)
15
+ if (!t.has(r))
16
+ return !0;
17
+ return !1;
18
+ }
19
+ export {
20
+ n as isTransitionDefined
21
+ };
@@ -0,0 +1,6 @@
1
+ function t(n) {
2
+ n.duration = 0, n.type = "keyframes";
3
+ }
4
+ export {
5
+ t as makeAnimationInstant
6
+ };
@@ -0,0 +1,16 @@
1
+ import { inertia as p } from "../generators/inertia.js";
2
+ import { keyframes as r } from "../generators/keyframes.js";
3
+ import { spring as t } from "../generators/spring.js";
4
+ const o = {
5
+ decay: p,
6
+ inertia: p,
7
+ tween: r,
8
+ keyframes: r,
9
+ spring: t
10
+ };
11
+ function m(e) {
12
+ typeof e.type == "string" && (e.type = o[e.type]);
13
+ }
14
+ export {
15
+ m as replaceTransitionType
16
+ };
@@ -0,0 +1,10 @@
1
+ function c(e, r) {
2
+ if (e?.inherit && r) {
3
+ const { inherit: u, ...t } = e;
4
+ return { ...r, ...t };
5
+ }
6
+ return e;
7
+ }
8
+ export {
9
+ c as resolveTransition
10
+ };
@@ -0,0 +1,4 @@
1
+ const $ = ([c, e, i, r]) => `cubic-bezier(${c}, ${e}, ${i}, ${r})`;
2
+ export {
3
+ $ as cubicBezierAsString
4
+ };
@@ -0,0 +1,12 @@
1
+ import { supportsLinearEasing as o } from "../../../utils/supports/linear-easing.js";
2
+ import { generateLinearEasing as f } from "../utils/linear.js";
3
+ import { cubicBezierAsString as n } from "./cubic-bezier.js";
4
+ import { supportedWaapiEasing as i } from "./supported.js";
5
+ import { isBezierDefinition as p } from "../../../../../../motion-utils/dist/es/easing/utils/is-bezier-definition.js";
6
+ function m(r, e) {
7
+ if (r)
8
+ return typeof r == "function" ? o() ? f(r, e) : "ease-out" : p(r) ? n(r) : Array.isArray(r) ? r.map((t) => m(t, e) || i.easeOut) : i[r];
9
+ }
10
+ export {
11
+ m as mapEasingToNativeEasing
12
+ };
@@ -0,0 +1,15 @@
1
+ import { cubicBezierAsString as e } from "./cubic-bezier.js";
2
+ const i = {
3
+ linear: "linear",
4
+ ease: "ease",
5
+ easeIn: "ease-in",
6
+ easeOut: "ease-out",
7
+ easeInOut: "ease-in-out",
8
+ circIn: /* @__PURE__ */ e([0, 0.65, 0.55, 1]),
9
+ circOut: /* @__PURE__ */ e([0.55, 0, 1, 0.45]),
10
+ backIn: /* @__PURE__ */ e([0.31, 0.01, 0.66, -0.59]),
11
+ backOut: /* @__PURE__ */ e([0.33, 1.53, 0.69, 0.99])
12
+ };
13
+ export {
14
+ i as supportedWaapiEasing
15
+ };
@@ -0,0 +1,21 @@
1
+ import { mapEasingToNativeEasing as g } from "./easing/map-easing.js";
2
+ function u(r, s, f, { delay: m = 0, duration: n = 300, repeat: p = 0, repeatType: c = "loop", ease: l = "easeOut", times: t } = {}, e = void 0) {
3
+ const a = {
4
+ [s]: f
5
+ };
6
+ t && (a.offset = t);
7
+ const i = g(l, n);
8
+ Array.isArray(i) && (a.easing = i);
9
+ const o = {
10
+ delay: m,
11
+ duration: n,
12
+ easing: Array.isArray(i) ? "linear" : i,
13
+ fill: "both",
14
+ iterations: p + 1,
15
+ direction: c === "reverse" ? "alternate" : "normal"
16
+ };
17
+ return e && (o.pseudoElement = e), r.animate(a, o);
18
+ }
19
+ export {
20
+ u as startWaapiAnimation
21
+ };
@@ -0,0 +1,33 @@
1
+ import { acceleratedValues as i } from "../utils/accelerated-values.js";
2
+ import { hasBrowserOnlyColors as c } from "../utils/is-browser-color.js";
3
+ import { memo as f } from "../../../../../../motion-utils/dist/es/memo.js";
4
+ const u = /* @__PURE__ */ new Set([
5
+ "color",
6
+ "backgroundColor",
7
+ "outlineColor",
8
+ "fill",
9
+ "stroke",
10
+ "borderColor",
11
+ "borderTopColor",
12
+ "borderRightColor",
13
+ "borderBottomColor",
14
+ "borderLeftColor"
15
+ ]), b = /* @__PURE__ */ f(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
16
+ function h(e) {
17
+ const { motionValue: r, name: o, repeatDelay: t, repeatType: n, damping: a, type: s, keyframes: l } = e;
18
+ if (!(r?.owner?.current instanceof HTMLElement))
19
+ return !1;
20
+ const { onUpdate: p, transformTemplate: m } = r.owner.getProps();
21
+ return b() && o && /**
22
+ * Force WAAPI for color properties with browser-only color formats
23
+ * (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.
24
+ */
25
+ (i.has(o) || u.has(o) && c(l)) && (o !== "transform" || !m) && /**
26
+ * If we're outputting values to onUpdate then we can't use WAAPI as there's
27
+ * no way to read the value from WAAPI every frame.
28
+ */
29
+ !p && !t && n !== "mirror" && a !== 0 && s !== "inertia";
30
+ }
31
+ export {
32
+ h as supportsBrowserAnimation
33
+ };
@@ -0,0 +1,12 @@
1
+ const e = /* @__PURE__ */ new Set([
2
+ "opacity",
3
+ "clipPath",
4
+ "filter",
5
+ "transform"
6
+ // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
7
+ // or until we implement support for linear() easing.
8
+ // "background-color"
9
+ ]);
10
+ export {
11
+ e as acceleratedValues
12
+ };
@@ -0,0 +1,8 @@
1
+ import { supportsLinearEasing as a } from "../../../utils/supports/linear-easing.js";
2
+ import { isGenerator as t } from "../../generators/utils/is-generator.js";
3
+ function i({ type: e, ...r }) {
4
+ return t(e) && a() ? e.applyToOptions(r) : (r.duration ?? (r.duration = 300), r.ease ?? (r.ease = "easeOut"), r);
5
+ }
6
+ export {
7
+ i as applyGeneratorOptions
8
+ };
@@ -0,0 +1,10 @@
1
+ const t = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
2
+ function l(r) {
3
+ for (let o = 0; o < r.length; o++)
4
+ if (typeof r[o] == "string" && t.test(r[o]))
5
+ return !0;
6
+ return !1;
7
+ }
8
+ export {
9
+ l as hasBrowserOnlyColors
10
+ };
@@ -0,0 +1,10 @@
1
+ const i = (r, a, o = 10) => {
2
+ let n = "";
3
+ const e = Math.max(Math.round(a / o), 2);
4
+ for (let t = 0; t < e; t++)
5
+ n += Math.round(r(t / (e - 1)) * 1e4) / 1e4 + ", ";
6
+ return `linear(${n.substring(0, n.length - 2)})`;
7
+ };
8
+ export {
9
+ i as generateLinearEasing
10
+ };
@@ -0,0 +1,17 @@
1
+ import { circInOut as r } from "../../../../../../motion-utils/dist/es/easing/circ.js";
2
+ import { backInOut as t } from "../../../../../../motion-utils/dist/es/easing/back.js";
3
+ import { anticipate as o } from "../../../../../../motion-utils/dist/es/easing/anticipate.js";
4
+ const n = {
5
+ anticipate: o,
6
+ backInOut: t,
7
+ circInOut: r
8
+ };
9
+ function p(e) {
10
+ return e in n;
11
+ }
12
+ function u(e) {
13
+ typeof e.ease == "string" && p(e.ease) && (e.ease = n[e.ease]);
14
+ }
15
+ export {
16
+ u as replaceStringEasing
17
+ };
@@ -0,0 +1,6 @@
1
+ function i(e, n, t, r = { passive: !0 }) {
2
+ return e.addEventListener(n, t, r), () => e.removeEventListener(n, t);
3
+ }
4
+ export {
5
+ i as addDomEvent
6
+ };
@@ -0,0 +1,27 @@
1
+ import { stepsOrder as o } from "./order.js";
2
+ import { createRenderStep as T } from "./render-step.js";
3
+ import { MotionGlobalConfig as b } from "../../../../motion-utils/dist/es/global-config.js";
4
+ const v = 40;
5
+ function N(c, i) {
6
+ let r = !1, a = !0;
7
+ const e = {
8
+ delta: 0,
9
+ timestamp: 0,
10
+ isProcessing: !1
11
+ }, l = () => r = !0, n = o.reduce((t, s) => (t[s] = T(l), t), {}), { setup: m, read: u, resolveKeyframes: f, preUpdate: d, update: g, preRender: h, render: M, postRender: R } = n, p = () => {
12
+ const t = b.useManualTiming, s = t ? e.timestamp : performance.now();
13
+ r = !1, t || (e.delta = a ? 1e3 / 60 : Math.max(Math.min(s - e.timestamp, v), 1)), e.timestamp = s, e.isProcessing = !0, m.process(e), u.process(e), f.process(e), d.process(e), g.process(e), h.process(e), M.process(e), R.process(e), e.isProcessing = !1, r && i && (a = !1, c(p));
14
+ }, x = () => {
15
+ r = !0, a = !0, e.isProcessing || c(p);
16
+ };
17
+ return { schedule: o.reduce((t, s) => {
18
+ const P = n[s];
19
+ return t[s] = (w, E = !1, F = !1) => (r || x(), P.schedule(w, E, F)), t;
20
+ }, {}), cancel: (t) => {
21
+ for (let s = 0; s < o.length; s++)
22
+ n[o[s]].cancel(t);
23
+ }, state: e, steps: n };
24
+ }
25
+ export {
26
+ N as createRenderBatcher
27
+ };
@@ -0,0 +1,9 @@
1
+ import { createRenderBatcher as e } from "./batcher.js";
2
+ import { noop as r } from "../../../../motion-utils/dist/es/noop.js";
3
+ const { schedule: m, cancel: n, state: o, steps: c } = /* @__PURE__ */ e(typeof requestAnimationFrame < "u" ? requestAnimationFrame : r, !0);
4
+ export {
5
+ n as cancelFrame,
6
+ m as frame,
7
+ o as frameData,
8
+ c as frameSteps
9
+ };
@@ -0,0 +1,5 @@
1
+ import { createRenderBatcher as e } from "./batcher.js";
2
+ const { schedule: t } = /* @__PURE__ */ e(queueMicrotask, !1);
3
+ export {
4
+ t as microtask
5
+ };
@@ -0,0 +1,21 @@
1
+ const e = [
2
+ "setup",
3
+ // Compute
4
+ "read",
5
+ // Read
6
+ "resolveKeyframes",
7
+ // Write/Read/Write/Read
8
+ "preUpdate",
9
+ // Compute
10
+ "update",
11
+ // Compute
12
+ "preRender",
13
+ // Compute
14
+ "render",
15
+ // Write
16
+ "postRender"
17
+ // Compute
18
+ ];
19
+ export {
20
+ e as stepsOrder
21
+ };
@@ -0,0 +1,43 @@
1
+ function F(i, m) {
2
+ let t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, n = !1;
3
+ const a = /* @__PURE__ */ new WeakSet();
4
+ let f = {
5
+ delta: 0,
6
+ timestamp: 0,
7
+ isProcessing: !1
8
+ };
9
+ function l(e) {
10
+ a.has(e) && (o.schedule(e), i()), e(f);
11
+ }
12
+ const o = {
13
+ /**
14
+ * Schedule a process to run on the next frame.
15
+ */
16
+ schedule: (e, d = !1, u = !1) => {
17
+ const c = u && r ? t : s;
18
+ return d && a.add(e), c.add(e), e;
19
+ },
20
+ /**
21
+ * Cancel the provided callback from running on the next frame.
22
+ */
23
+ cancel: (e) => {
24
+ s.delete(e), a.delete(e);
25
+ },
26
+ /**
27
+ * Execute all schedule callbacks.
28
+ */
29
+ process: (e) => {
30
+ if (f = e, r) {
31
+ n = !0;
32
+ return;
33
+ }
34
+ r = !0;
35
+ const d = t;
36
+ t = s, s = d, t.forEach(l), t.clear(), r = !1, n && (n = !1, o.process(e));
37
+ }
38
+ };
39
+ return o;
40
+ }
41
+ export {
42
+ F as createRenderStep
43
+ };
@@ -0,0 +1,15 @@
1
+ import { frameData as n } from "./frame.js";
2
+ import { MotionGlobalConfig as i } from "../../../../motion-utils/dist/es/global-config.js";
3
+ let e;
4
+ function t() {
5
+ e = void 0;
6
+ }
7
+ const r = {
8
+ now: () => (e === void 0 && r.set(n.isProcessing || i.useManualTiming ? n.timestamp : performance.now()), e),
9
+ set: (o) => {
10
+ e = o, queueMicrotask(t);
11
+ }
12
+ };
13
+ export {
14
+ r as time
15
+ };
@@ -0,0 +1,11 @@
1
+ const e = {
2
+ x: !1,
3
+ y: !1
4
+ };
5
+ function i() {
6
+ return e.x || e.y;
7
+ }
8
+ export {
9
+ i as isDragActive,
10
+ e as isDragging
11
+ };
@@ -0,0 +1,11 @@
1
+ import { isDragging as e } from "./is-active.js";
2
+ function l(r) {
3
+ return r === "x" || r === "y" ? e[r] ? null : (e[r] = !0, () => {
4
+ e[r] = !1;
5
+ }) : e.x || e.y ? null : (e.x = e.y = !0, () => {
6
+ e.x = e.y = !1;
7
+ });
8
+ }
9
+ export {
10
+ l as setDragLock
11
+ };
@@ -0,0 +1,38 @@
1
+ import { isDragActive as P } from "./drag/state/is-active.js";
2
+ import { setupGesture as h } from "./utils/setup.js";
3
+ function m(s) {
4
+ return !(s.pointerType === "touch" || P());
5
+ }
6
+ function D(s, v, f = {}) {
7
+ const [u, n, l] = h(s, f);
8
+ return u.forEach((t) => {
9
+ let d = !1, r = !1, o;
10
+ const E = () => {
11
+ t.removeEventListener("pointerleave", a);
12
+ }, c = (e) => {
13
+ o && (o(e), o = void 0), E();
14
+ }, i = (e) => {
15
+ d = !1, window.removeEventListener("pointerup", i), window.removeEventListener("pointercancel", i), r && (r = !1, c(e));
16
+ }, w = () => {
17
+ d = !0, window.addEventListener("pointerup", i, n), window.addEventListener("pointercancel", i, n);
18
+ }, a = (e) => {
19
+ if (e.pointerType !== "touch") {
20
+ if (d) {
21
+ r = !0;
22
+ return;
23
+ }
24
+ c(e);
25
+ }
26
+ }, L = (e) => {
27
+ if (!m(e))
28
+ return;
29
+ r = !1;
30
+ const p = v(t, e);
31
+ typeof p == "function" && (o = p, t.addEventListener("pointerleave", a, n));
32
+ };
33
+ t.addEventListener("pointerenter", L, n), t.addEventListener("pointerdown", w, n);
34
+ }), l;
35
+ }
36
+ export {
37
+ D as hover
38
+ };
@@ -0,0 +1,34 @@
1
+ import { isHTMLElement as E } from "../../utils/is-html-element.js";
2
+ import { isDragActive as v } from "../drag/state/is-active.js";
3
+ import { isNodeOrChild as L } from "../utils/is-node-or-child.js";
4
+ import { isPrimaryPointer as g } from "../utils/is-primary-pointer.js";
5
+ import { setupGesture as T } from "../utils/setup.js";
6
+ import { isElementKeyboardAccessible as h } from "./utils/is-keyboard-accessible.js";
7
+ import { enableKeyboardPress as y } from "./utils/keyboard.js";
8
+ import { isPressing as d } from "./utils/state.js";
9
+ function m(s) {
10
+ return g(s) && !v();
11
+ }
12
+ const p = /* @__PURE__ */ new WeakSet();
13
+ function H(s, l, o = {}) {
14
+ const [u, i, w] = T(s, o), P = (e) => {
15
+ const n = e.currentTarget;
16
+ if (!m(e) || p.has(e))
17
+ return;
18
+ d.add(n), o.stopPropagation && p.add(e);
19
+ const t = l(n, e), a = (r, b) => {
20
+ window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", f), d.has(n) && d.delete(n), m(r) && typeof t == "function" && t(r, { success: b });
21
+ }, c = (r) => {
22
+ a(r, n === window || n === document || o.useGlobalTarget || L(n, r.target));
23
+ }, f = (r) => {
24
+ a(r, !1);
25
+ };
26
+ window.addEventListener("pointerup", c, i), window.addEventListener("pointercancel", f, i);
27
+ };
28
+ return u.forEach((e) => {
29
+ (o.useGlobalTarget ? window : e).addEventListener("pointerdown", P, i), E(e) && (e.addEventListener("focus", (t) => y(t, i)), !h(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
30
+ }), w;
31
+ }
32
+ export {
33
+ H as press
34
+ };
@@ -0,0 +1,18 @@
1
+ const e = /* @__PURE__ */ new Set([
2
+ "BUTTON",
3
+ "INPUT",
4
+ "SELECT",
5
+ "TEXTAREA",
6
+ "A"
7
+ ]);
8
+ function s(t) {
9
+ return e.has(t.tagName) || t.isContentEditable === !0;
10
+ }
11
+ const n = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
12
+ function E(t) {
13
+ return n.has(t.tagName) || t.isContentEditable === !0;
14
+ }
15
+ export {
16
+ s as isElementKeyboardAccessible,
17
+ E as isElementTextInput
18
+ };