@code0-tech/pictor 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/dist/assets/components/island/Island.style.css +1 -0
  2. package/dist/assets/components/resizable/Resizable.style.css +1 -1
  3. package/dist/components/breadcrumb/Breadcrumb.js +7 -7
  4. package/dist/components/button/Button.js +11 -11
  5. package/dist/components/data-table/DataTable.js +15 -15
  6. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +15 -15
  7. package/dist/components/editor/Editor.js +13 -13
  8. package/dist/components/form/CheckboxInput.js +4 -4
  9. package/dist/components/form/EmailInput.js +9 -9
  10. package/dist/components/form/InputContentEditable.hook.js +11 -11
  11. package/dist/components/form/InputWrapper.js +15 -15
  12. package/dist/components/form/NumberInput.js +9 -9
  13. package/dist/components/form/PasswordInput.js +4 -4
  14. package/dist/components/form/SwitchInput.js +7 -7
  15. package/dist/components/form/TextAreaInput.js +6 -6
  16. package/dist/components/form/TextInput.js +6 -6
  17. package/dist/components/form/useForm.js +2 -2
  18. package/dist/components/fullscreen/FullScreen.js +2 -2
  19. package/dist/components/gantt/GanttGroup.js +15 -15
  20. package/dist/components/island/Island.d.ts +6 -0
  21. package/dist/components/island/Island.hook.d.ts +19 -0
  22. package/dist/components/island/Island.hook.js +58 -0
  23. package/dist/components/island/Island.js +71 -0
  24. package/dist/components/progress/Progress.js +18 -18
  25. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  26. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  27. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
  28. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  29. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  30. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  31. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  32. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
  33. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  34. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  35. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
  36. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +285 -0
  37. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +22 -0
  38. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
  39. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
  40. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +21 -0
  41. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -0
  42. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +43 -0
  43. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +29 -0
  44. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +45 -0
  45. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +33 -0
  46. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
  47. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +39 -0
  48. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  49. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
  50. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +60 -0
  51. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  52. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +14 -0
  53. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +45 -0
  54. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  55. package/dist/node_modules/framer-motion/dist/es/motion/index.js +62 -0
  56. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  57. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +21 -0
  58. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
  59. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
  60. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +39 -0
  61. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
  62. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
  63. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
  64. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  65. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +16 -0
  66. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
  67. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  68. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
  69. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
  70. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  71. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  72. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
  73. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
  74. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  75. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
  76. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
  77. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  78. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  79. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
  80. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  81. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +112 -0
  82. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +144 -0
  83. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +106 -0
  84. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +38 -0
  85. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
  86. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
  87. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +37 -0
  88. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +30 -0
  89. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +178 -0
  90. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  91. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -0
  92. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  93. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
  94. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +46 -0
  95. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
  96. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +29 -0
  97. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
  98. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +68 -0
  99. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +74 -0
  100. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +8 -0
  101. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +8 -0
  102. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
  103. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
  104. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
  105. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +7 -0
  106. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +16 -0
  107. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +37 -0
  108. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
  109. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  110. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
  111. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +7 -0
  112. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +23 -0
  113. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
  114. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +22 -0
  115. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +8 -0
  116. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
  117. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
  118. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
  119. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
  120. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +16 -0
  121. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -0
  122. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
  123. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +12 -0
  124. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
  125. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
  126. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +33 -0
  127. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +12 -0
  128. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +8 -0
  129. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
  130. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
  131. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +17 -0
  132. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +6 -0
  133. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
  134. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
  135. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
  136. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
  137. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +43 -0
  138. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +15 -0
  139. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  140. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  141. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
  142. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +34 -0
  143. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +18 -0
  144. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  145. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  146. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  147. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  148. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  149. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +32 -0
  150. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +25 -0
  151. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
  152. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +53 -0
  153. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +38 -0
  154. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +25 -0
  155. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
  156. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
  157. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  158. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  159. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +618 -0
  160. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
  161. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
  162. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +21 -0
  163. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +16 -0
  164. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  165. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +13 -0
  166. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
  167. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
  168. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +19 -0
  169. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
  170. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +13 -0
  171. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +10 -0
  172. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +263 -0
  173. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +28 -0
  174. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
  175. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +65 -0
  176. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
  177. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  178. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
  179. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
  180. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
  181. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +12 -0
  182. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
  183. package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
  184. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
  185. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
  186. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  187. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  188. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
  189. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +11 -0
  190. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  191. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +143 -0
  192. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +20 -0
  193. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
  194. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
  195. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  196. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +4 -0
  197. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
  198. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
  199. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +23 -0
  200. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +25 -0
  201. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
  202. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +5 -0
  203. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  204. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +20 -0
  205. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +21 -0
  206. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +14 -0
  207. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
  208. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
  209. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +23 -0
  210. package/dist/node_modules/motion-dom/dist/es/resize/index.js +8 -0
  211. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +12 -0
  212. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +42 -0
  213. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
  214. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
  215. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
  216. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +29 -0
  217. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +51 -0
  218. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
  219. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +8 -0
  220. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +4 -0
  221. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +8 -0
  222. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
  223. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
  224. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  225. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
  226. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
  227. package/dist/node_modules/motion-dom/dist/es/value/index.js +212 -0
  228. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
  229. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +19 -0
  230. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +22 -0
  231. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +12 -0
  232. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +15 -0
  233. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +16 -0
  234. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
  235. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +24 -0
  236. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +51 -0
  237. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -0
  238. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +9 -0
  239. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
  240. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +27 -0
  241. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
  242. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +37 -0
  243. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
  244. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +17 -0
  245. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
  246. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +12 -0
  247. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
  248. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +8 -0
  249. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
  250. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +4 -0
  251. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
  252. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
  253. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
  254. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
  255. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  256. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +14 -0
  257. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  258. package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
  259. package/dist/node_modules/motion-utils/dist/es/clamp.js +4 -0
  260. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
  261. package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
  262. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
  263. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +19 -0
  264. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
  265. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
  266. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
  267. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
  268. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +4 -0
  269. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +32 -0
  270. package/dist/node_modules/motion-utils/dist/es/errors.js +14 -0
  271. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
  272. package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
  273. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
  274. package/dist/node_modules/motion-utils/dist/es/is-object.js +4 -0
  275. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
  276. package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
  277. package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
  278. package/dist/node_modules/motion-utils/dist/es/pipe.js +4 -0
  279. package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
  280. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
  281. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
  282. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +4 -0
  283. package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
  284. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  285. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  286. package/dist/utils/reactiveArrayService.js +4 -4
  287. package/package.json +9 -6
  288. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
  289. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +0 -81
  290. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js +0 -55
  291. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
  292. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +0 -58
@@ -6,8 +6,8 @@ import "merge-props";
6
6
  import { withAlpha as J, hashToColor as K } from "../../utils/color.js";
7
7
  import { GanttItem as nt } from "./GanttItem.js";
8
8
  import { GanttHeader as rt } from "./GanttHeader.js";
9
- const C = (e, t, n, y, l, M) => {
10
- const S = Math.max(0, e - n), E = Math.min(l, t - n), G = S / l * M, m = (E - S) / l * M;
9
+ const C = (e, t, n, y, c, M) => {
10
+ const S = Math.max(0, e - n), E = Math.min(c, t - n), G = S / c * M, m = (E - S) / c * M;
11
11
  return {
12
12
  left: G,
13
13
  width: m
@@ -16,13 +16,13 @@ const C = (e, t, n, y, l, M) => {
16
16
  const t = et.c(50), {
17
17
  items: n,
18
18
  stepWidth: y,
19
- rowHeight: l,
19
+ rowHeight: c,
20
20
  step: M,
21
21
  start: S,
22
22
  end: E,
23
23
  hideScaling: G,
24
24
  children: m
25
- } = e, s = y === void 0 ? "50px" : y, $ = l === void 0 ? "50px" : l, a = M === void 0 ? 1 : M, i = S === void 0 ? 1 : S, o = E === void 0 ? 999999999 : E, c = G === void 0 ? !1 : G, R = P.useRef(null), [O, Q] = P.useState(0), [b, U] = P.useState(void 0), f = parseInt(s), d = o - i, q = Math.ceil(d / a), p = q * f, T = n?.filter(at) ?? [], W = T.length === 0 ? a : T.reduce(ot, 0) / T.length;
25
+ } = e, s = y === void 0 ? "50px" : y, $ = c === void 0 ? "50px" : c, a = M === void 0 ? 1 : M, i = S === void 0 ? 1 : S, o = E === void 0 ? 999999999 : E, l = G === void 0 ? !1 : G, R = P.useRef(null), [O, Q] = P.useState(0), [b, U] = P.useState(void 0), f = parseInt(s), d = o - i, q = Math.ceil(d / a), p = q * f, T = n?.filter(at) ?? [], W = T.length === 0 ? a : T.reduce(ot, 0) / T.length;
26
26
  let z;
27
27
  t[0] !== n || t[1] !== i ? (z = n && n.length > 0 ? Math.min(...n.map(st)) : i, t[0] = n, t[1] = i, t[2] = z) : z = t[2];
28
28
  const g = z;
@@ -39,8 +39,8 @@ const C = (e, t, n, y, l, M) => {
39
39
  };
40
40
  }, t[6] = k) : k = t[6], P.useEffect(k);
41
41
  let H;
42
- if (t[7] !== b || t[8] !== W || t[9] !== m || t[10] !== h || t[11] !== o || t[12] !== c || t[13] !== u || t[14] !== g || t[15] !== n || t[16] !== e.id || t[17] !== $ || t[18] !== i || t[19] !== a || t[20] !== s || t[21] !== f || t[22] !== d || t[23] !== p) {
43
- const v = n?.length ? n.sort(lt).reduce(ct, []) : [], j = `repeat(${h}, ${s})`;
42
+ if (t[7] !== b || t[8] !== W || t[9] !== m || t[10] !== h || t[11] !== o || t[12] !== l || t[13] !== u || t[14] !== g || t[15] !== n || t[16] !== e.id || t[17] !== $ || t[18] !== i || t[19] !== a || t[20] !== s || t[21] !== f || t[22] !== d || t[23] !== p) {
43
+ const v = n?.length ? n.sort(ct).reduce(lt, []) : [], j = `repeat(${h}, ${s})`;
44
44
  let I;
45
45
  t[25] !== j ? (I = {
46
46
  display: "grid",
@@ -50,9 +50,9 @@ const C = (e, t, n, y, l, M) => {
50
50
  }, t[25] = j, t[26] = I) : I = t[26];
51
51
  const Z = I;
52
52
  let V;
53
- t[27] !== W || t[28] !== h || t[29] !== c || t[30] !== i || t[31] !== a || t[32] !== s ? (V = !c && /* @__PURE__ */ x(rt, { columnCount: h, start: i, step: a, avgDuration: W, stepWidth: s }), t[27] = W, t[28] = h, t[29] = c, t[30] = i, t[31] = a, t[32] = s, t[33] = V) : V = t[33];
53
+ t[27] !== W || t[28] !== h || t[29] !== l || t[30] !== i || t[31] !== a || t[32] !== s ? (V = !l && /* @__PURE__ */ x(rt, { columnCount: h, start: i, step: a, avgDuration: W, stepWidth: s }), t[27] = W, t[28] = h, t[29] = l, t[30] = i, t[31] = a, t[32] = s, t[33] = V) : V = t[33];
54
54
  let A;
55
- t[34] !== b || t[35] !== m || t[36] !== h || t[37] !== o || t[38] !== c || t[39] !== u || t[40] !== g || t[41] !== e.id || t[42] !== $ || t[43] !== i || t[44] !== a || t[45] !== s || t[46] !== f || t[47] !== d || t[48] !== p ? (A = (B, _) => /* @__PURE__ */ N(F, { children: [
55
+ t[34] !== b || t[35] !== m || t[36] !== h || t[37] !== o || t[38] !== l || t[39] !== u || t[40] !== g || t[41] !== e.id || t[42] !== $ || t[43] !== i || t[44] !== a || t[45] !== s || t[46] !== f || t[47] !== d || t[48] !== p ? (A = (B, _) => /* @__PURE__ */ N(F, { children: [
56
56
  /* @__PURE__ */ N("div", { style: {
57
57
  gridColumn: "1 / -1",
58
58
  minHeight: $,
@@ -67,9 +67,9 @@ const C = (e, t, n, y, l, M) => {
67
67
  top: 0,
68
68
  bottom: 0,
69
69
  width: "0px",
70
- borderLeft: `1px dashed rgba(255, 255, 255, ${c ? 0.05 : 0.1})`
70
+ borderLeft: `1px dashed rgba(255, 255, 255, ${l ? 0.05 : 0.1})`
71
71
  } }, `grid-${w}`)),
72
- c && /* @__PURE__ */ N(F, { children: [
72
+ l && /* @__PURE__ */ N(F, { children: [
73
73
  /* @__PURE__ */ x("div", { className: "gantt__group-wrapper", style: {
74
74
  backgroundImage: `
75
75
  linear-gradient(to right, transparent, #070514),
@@ -105,10 +105,10 @@ const C = (e, t, n, y, l, M) => {
105
105
  })
106
106
  ] }, `row-${_}`),
107
107
  B.map((r, w) => r.type === "group" && b === r.id && /* @__PURE__ */ x(it, { children: m, id: `group-target-${w}`, start: Math.min(...r.data.items.map(pt)) - Math.min(...r.data.items.map(ut)) / (r.data.firstGroupStep * r.data.step) * (r.data.groupStep * r.data.step), step: r.data.groupStep * r.data.step, stepWidth: s, rowHeight: $, items: r.data.items }, `group-target-${w}`))
108
- ] }), t[34] = b, t[35] = m, t[36] = h, t[37] = o, t[38] = c, t[39] = u, t[40] = g, t[41] = e.id, t[42] = $, t[43] = i, t[44] = a, t[45] = s, t[46] = f, t[47] = d, t[48] = p, t[49] = A) : A = t[49], H = /* @__PURE__ */ N("div", { "data-gantt-id": e.id, id: e.id, ref: R, style: Z, children: [
108
+ ] }), t[34] = b, t[35] = m, t[36] = h, t[37] = o, t[38] = l, t[39] = u, t[40] = g, t[41] = e.id, t[42] = $, t[43] = i, t[44] = a, t[45] = s, t[46] = f, t[47] = d, t[48] = p, t[49] = A) : A = t[49], H = /* @__PURE__ */ N("div", { "data-gantt-id": e.id, id: e.id, ref: R, style: Z, children: [
109
109
  V,
110
110
  v.map(A)
111
- ] }), t[7] = b, t[8] = W, t[9] = m, t[10] = h, t[11] = o, t[12] = c, t[13] = u, t[14] = g, t[15] = n, t[16] = e.id, t[17] = $, t[18] = i, t[19] = a, t[20] = s, t[21] = f, t[22] = d, t[23] = p, t[24] = H;
111
+ ] }), t[7] = b, t[8] = W, t[9] = m, t[10] = h, t[11] = o, t[12] = l, t[13] = u, t[14] = g, t[15] = n, t[16] = e.id, t[17] = $, t[18] = i, t[19] = a, t[20] = s, t[21] = f, t[22] = d, t[23] = p, t[24] = H;
112
112
  } else
113
113
  H = t[24];
114
114
  return H;
@@ -125,11 +125,11 @@ function st(e) {
125
125
  function dt(e) {
126
126
  return e.end;
127
127
  }
128
- function lt(e, t) {
128
+ function ct(e, t) {
129
129
  return e.start - t.start;
130
130
  }
131
- function ct(e, t) {
132
- const n = e.find((y) => !y.some((l) => !(t.end <= l.start || t.start >= l.end)));
131
+ function lt(e, t) {
132
+ const n = e.find((y) => !y.some((c) => !(t.end <= c.start || t.start >= c.end)));
133
133
  return n ? (n.push(t), e) : [...e, [t]];
134
134
  }
135
135
  function pt(e) {
@@ -0,0 +1,6 @@
1
+ import { Component } from '../../utils';
2
+ import { default as React } from 'react';
3
+ export interface IslandProps extends Component<HTMLDivElement> {
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare const Island: React.FC<IslandProps>;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ export interface IslandNotificationProps {
3
+ id?: number;
4
+ icon: React.ReactNode;
5
+ message: React.ReactNode;
6
+ content?: React.ReactNode;
7
+ duration?: number;
8
+ index?: number;
9
+ }
10
+ export declare const useIsland: import('zustand').UseBoundStore<import('zustand').StoreApi<{
11
+ toasts: IslandNotificationProps[];
12
+ addToast: (toast: IslandNotificationProps) => void;
13
+ removeToast: (id: number) => void;
14
+ }>>;
15
+ export declare const addIslandNotification: (toast: IslandNotificationProps) => void;
16
+ export declare const addIslandInfoNotification: (toast: Partial<IslandNotificationProps>) => void;
17
+ export declare const addIslandSuccessNotification: (toast: Partial<IslandNotificationProps>) => void;
18
+ export declare const addIslandWarningNotification: (toast: Partial<IslandNotificationProps>) => void;
19
+ export declare const addIslandErrorNotification: (toast: Partial<IslandNotificationProps>) => void;
@@ -0,0 +1,58 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { create as n } from "zustand";
3
+ import { IconCircleX as d, IconInfoCircle as r, IconCircleCheck as l, IconAlertCircle as m } from "@tabler/icons-react";
4
+ import { Text as s } from "../text/Text.js";
5
+ const t = n((o) => ({
6
+ toasts: [],
7
+ addToast: (a) => {
8
+ const i = Date.now();
9
+ o((c) => ({
10
+ toasts: [...c.toasts, {
11
+ id: i,
12
+ ...a
13
+ }]
14
+ }));
15
+ },
16
+ removeToast: (a) => {
17
+ o((i) => ({
18
+ toasts: i.toasts.filter((c) => c.id !== a)
19
+ }));
20
+ }
21
+ })), x = (o) => {
22
+ t.getState().addToast(o);
23
+ }, B = (o) => {
24
+ t.getState().addToast({
25
+ icon: /* @__PURE__ */ e(r, { color: "#70ffb2", size: 16 }),
26
+ message: /* @__PURE__ */ e(s, { c: "#70ffb2", children: o.message }),
27
+ ...o
28
+ });
29
+ }, F = (o) => {
30
+ t.getState().addToast({
31
+ icon: /* @__PURE__ */ e(l, { color: "#29BF12", size: 16 }),
32
+ message: /* @__PURE__ */ e(s, { c: "#29BF12", children: o.message }),
33
+ index: 1,
34
+ ...o
35
+ });
36
+ }, S = (o) => {
37
+ t.getState().addToast({
38
+ icon: /* @__PURE__ */ e(m, { color: "#FFBE0B", size: 16 }),
39
+ message: /* @__PURE__ */ e(s, { c: "#FFBE0B", children: o.message }),
40
+ index: 2,
41
+ ...o
42
+ });
43
+ }, h = (o) => {
44
+ t.getState().addToast({
45
+ icon: /* @__PURE__ */ e(d, { color: "#D90429", size: 16 }),
46
+ message: /* @__PURE__ */ e(s, { c: "#D90429", children: o.message }),
47
+ index: 3,
48
+ ...o
49
+ });
50
+ };
51
+ export {
52
+ h as addIslandErrorNotification,
53
+ B as addIslandInfoNotification,
54
+ x as addIslandNotification,
55
+ F as addIslandSuccessNotification,
56
+ S as addIslandWarningNotification,
57
+ t as useIsland
58
+ };
@@ -0,0 +1,71 @@
1
+ import { jsxs as h, jsx as i } from "react/jsx-runtime";
2
+ import "../../utils/contextStore.js";
3
+ import { useRef as a, useState as R, useCallback as v, useEffect as D } from "react";
4
+ import { mergeComponentProps as k } from "../../utils/component.js";
5
+ import "js-md5";
6
+ import '../../assets/components/island/Island.style.css';/* empty css */
7
+ import { Flex as E } from "../flex/Flex.js";
8
+ import { useIsland as g } from "./Island.hook.js";
9
+ import { motion as s } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
10
+ const b = (x) => {
11
+ const {
12
+ children: T,
13
+ ...I
14
+ } = x, l = g((t) => t.toasts), m = g((t) => t.removeToast), o = a(null), f = a(0), n = a(4e3), [c, u] = R(!1), p = a(null), e = l.length > 0 ? l.reduce((t, y) => (y.index ?? 0) > (t.index ?? 0) ? y : t) : void 0, r = v(() => {
15
+ o.current && (clearTimeout(o.current), o.current = null);
16
+ }, []), d = v(() => {
17
+ const t = e?.id;
18
+ t && (r(), f.current = Date.now(), isFinite(n.current) && (o.current = setTimeout(() => {
19
+ m(t);
20
+ }, n.current)));
21
+ }, [e?.id, m, r]);
22
+ D(() => (e?.id ? (n.current = e?.duration ?? 4e3, d()) : (r(), u(!1)), () => r()), [e?.id, e?.duration, d, r]);
23
+ const _ = () => {
24
+ if (!e?.id) return;
25
+ r();
26
+ const t = Date.now() - f.current;
27
+ n.current = Math.max(0, n.current - t), e?.content && u(!0);
28
+ }, M = () => {
29
+ u(!1), e?.id && n.current > 0 && d();
30
+ };
31
+ return /* @__PURE__ */ h(s.div, { layout: !0, onMouseEnter: _, onMouseLeave: M, transition: {
32
+ type: "spring",
33
+ stiffness: 300,
34
+ damping: 20,
35
+ mass: 0.8
36
+ }, ...k("island", I), children: [
37
+ /* @__PURE__ */ h(E, { align: "center", style: {
38
+ gap: "0.35rem"
39
+ }, ref: p, children: [
40
+ e && /* @__PURE__ */ i(s.div, { layout: !0, initial: {
41
+ y: 0,
42
+ opacity: 1,
43
+ strokeDashoffset: "300%"
44
+ }, animate: {
45
+ y: 0,
46
+ opacity: 1,
47
+ strokeDashoffset: "0%"
48
+ }, transition: {
49
+ duration: 0.75,
50
+ ease: "easeInOut"
51
+ }, className: "island__icon", children: e.icon }, e?.id),
52
+ /* @__PURE__ */ i(s.div, { layout: !0, children: T }),
53
+ e?.message && /* @__PURE__ */ i(s.div, { layout: !0, className: "island__message", children: e?.message })
54
+ ] }, e?.id),
55
+ /* @__PURE__ */ i("div", { style: {
56
+ maxWidth: `${p.current?.offsetWidth}px`
57
+ }, children: c && !!e?.content && /* @__PURE__ */ i(s.div, { initial: {
58
+ y: 10,
59
+ opacity: 0
60
+ }, animate: {
61
+ y: c && e?.content ? 0 : 100,
62
+ opacity: c && e?.content ? 1 : 0
63
+ }, transition: {
64
+ duration: 0.25,
65
+ ease: "easeInOut"
66
+ }, className: "island__content", children: e?.content }) })
67
+ ] });
68
+ };
69
+ export {
70
+ b as Island
71
+ };
@@ -1,43 +1,43 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import "../../utils/contextStore.js";
3
3
  import "react";
4
4
  import { mergeComponentProps as l } from "../../utils/component.js";
5
5
  import "js-md5";
6
- import { Progress as g, ProgressIndicator as n } from "../../node_modules/@radix-ui/react-progress/dist/index.js";
6
+ import * as o from "@radix-ui/react-progress";
7
7
  import '../../assets/components/progress/Progress.style.css';/* empty css */
8
- const v = (r) => {
8
+ const _ = (r) => {
9
9
  const {
10
10
  color: a = "white",
11
- predictionValue: h,
12
- dot: m,
13
- ...o
14
- } = r, t = Math.min(r.value ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, c = `translateX(-${100 - t}%)`, s = Math.min(r.predictionValue ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, d = `translateX(-${100 - s}%)`;
15
- return /* @__PURE__ */ i(g, { ...l("progress", {
16
- ...o,
11
+ predictionValue: g,
12
+ dot: c,
13
+ ...t
14
+ } = r, s = Math.min(r.value ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, m = `translateX(-${100 - s}%)`, i = Math.min(r.predictionValue ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, d = `translateX(-${100 - i}%)`;
15
+ return /* @__PURE__ */ n(o.Progress, { ...l("progress", {
16
+ ...t,
17
17
  style: {
18
- ...o.style,
19
- "--progress": t,
20
- "--progressPrediction": s,
18
+ ...t.style,
19
+ "--progress": s,
20
+ "--progressPrediction": i,
21
21
  "--color": a
22
22
  }
23
23
  }), children: [
24
- /* @__PURE__ */ e("div", { className: "progress__dot", children: m }),
25
- /* @__PURE__ */ i("div", { style: {
24
+ /* @__PURE__ */ e("div", { className: "progress__dot", children: c }),
25
+ /* @__PURE__ */ n("div", { style: {
26
26
  width: "100%",
27
27
  height: "100%",
28
28
  overflow: "hidden",
29
29
  borderRadius: "inherit",
30
30
  position: "relative"
31
31
  }, children: [
32
- /* @__PURE__ */ e(n, { className: "progress__indicator", style: {
33
- transform: c
32
+ /* @__PURE__ */ e(o.ProgressIndicator, { className: "progress__indicator", style: {
33
+ transform: m
34
34
  } }),
35
- typeof r.predictionValue == "number" && /* @__PURE__ */ e(n, { className: "progress__indicator progress__indicator--prediction", style: {
35
+ typeof r.predictionValue == "number" && /* @__PURE__ */ e(o.ProgressIndicator, { className: "progress__indicator progress__indicator--prediction", style: {
36
36
  transform: d
37
37
  } })
38
38
  ] })
39
39
  ] });
40
40
  };
41
41
  export {
42
- v as Progress
42
+ _ as Progress
43
43
  };
@@ -0,0 +1,17 @@
1
+ import { useContext as f, useId as l, useEffect as c, useCallback as i } from "react";
2
+ import { PresenceContext as m } from "../../context/PresenceContext.js";
3
+ function p(e = !0) {
4
+ const o = f(m);
5
+ if (o === null)
6
+ return [!0, null];
7
+ const { isPresent: r, onExitComplete: t, register: u } = o, n = l();
8
+ c(() => {
9
+ if (e)
10
+ return u(n);
11
+ }, [e]);
12
+ const s = i(() => e && t && t(n), [n, t, e]);
13
+ return !r && t ? [!1, s] : [!0];
14
+ }
15
+ export {
16
+ p as usePresence
17
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = t({});
3
+ export {
4
+ e as LayoutGroupContext
5
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const o = t({ strict: !1 });
3
+ export {
4
+ o as LazyContext
5
+ };
@@ -0,0 +1,9 @@
1
+ import { createContext as o } from "react";
2
+ const n = o({
3
+ transformPagePoint: (t) => t,
4
+ isStatic: !1,
5
+ reducedMotion: "never"
6
+ });
7
+ export {
8
+ n as MotionConfigContext
9
+ };
@@ -0,0 +1,13 @@
1
+ import { useContext as o, useMemo as i } from "react";
2
+ import { MotionContext as a } from "./index.js";
3
+ import { getCurrentTreeVariants as m } from "./utils.js";
4
+ function C(t) {
5
+ const { initial: e, animate: n } = m(t, o(a));
6
+ return i(() => ({ initial: e, animate: n }), [r(e), r(n)]);
7
+ }
8
+ function r(t) {
9
+ return Array.isArray(t) ? t.join(" ") : t;
10
+ }
11
+ export {
12
+ C as useCreateMotionContext
13
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = /* @__PURE__ */ t({});
3
+ export {
4
+ e as MotionContext
5
+ };
@@ -0,0 +1,15 @@
1
+ import { isControllingVariants as r } from "../../../../../motion-dom/dist/es/render/utils/is-controlling-variants.js";
2
+ import { isVariantLabel as e } from "../../../../../motion-dom/dist/es/render/utils/is-variant-label.js";
3
+ function o(i, a) {
4
+ if (r(i)) {
5
+ const { initial: n, animate: t } = i;
6
+ return {
7
+ initial: n === !1 || e(n) ? n : void 0,
8
+ animate: e(t) ? t : void 0
9
+ };
10
+ }
11
+ return i.inherit !== !1 ? a : {};
12
+ }
13
+ export {
14
+ o as getCurrentTreeVariants
15
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as e } from "react";
2
+ const o = /* @__PURE__ */ e(null);
3
+ export {
4
+ o as PresenceContext
5
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = t({});
3
+ export {
4
+ e as SwitchLayoutGroupContext
5
+ };
@@ -0,0 +1,8 @@
1
+ import { addPointerInfo as d } from "./event-info.js";
2
+ import { addDomEvent as e } from "../../../../motion-dom/dist/es/events/add-dom-event.js";
3
+ function f(o, r, t, n) {
4
+ return e(o, r, d(t), n);
5
+ }
6
+ export {
7
+ f as addPointerEvent
8
+ };
@@ -0,0 +1,14 @@
1
+ import { isPrimaryPointer as t } from "../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";
2
+ function i(o) {
3
+ return {
4
+ point: {
5
+ x: o.pageX,
6
+ y: o.pageY
7
+ }
8
+ };
9
+ }
10
+ const a = (o) => (r) => t(r) && o(r, i(r));
11
+ export {
12
+ a as addPointerInfo,
13
+ i as extractEventInfo
14
+ };