@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
@@ -1,14 +1,14 @@
1
- import { __exports as e } from "../../../_virtual/react-compiler-runtime.production.js";
1
+ import { __exports as r } from "../../../_virtual/react-compiler-runtime.production.js";
2
2
  import o from "react";
3
- var r;
4
- function n() {
5
- if (r) return e;
6
- r = 1;
3
+ var e;
4
+ function u() {
5
+ if (e) return r;
6
+ e = 1;
7
7
  var t = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
8
- return e.c = function(_) {
8
+ return r.c = function(_) {
9
9
  return t.H.useMemoCache(_);
10
- }, e;
10
+ }, r;
11
11
  }
12
12
  export {
13
- n as __require
13
+ u as __require
14
14
  };
@@ -1,5 +1,5 @@
1
1
  import a from "react";
2
- import { View as v } from "./view.js";
2
+ import { View as d } from "./view.js";
3
3
  function h(t, e, r) {
4
4
  return (e = p(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
5
5
  }
@@ -60,14 +60,14 @@ function w(t, e = []) {
60
60
  }, l = {
61
61
  construct: () => l
62
62
  };
63
- return ((d) => {
63
+ return ((v) => {
64
64
  try {
65
- return !!new new Proxy(d, l)();
65
+ return !!new new Proxy(v, l)();
66
66
  } catch {
67
67
  return !1;
68
68
  }
69
69
  })(t) ? new t(n) : t(n);
70
- }, [t, o]), u = a.useCallback((n) => new v(n), []), f = a.useRef(!1);
70
+ }, [t, o]), u = a.useCallback((n) => new d(n), []), f = a.useRef(!1);
71
71
  return a.useEffect(() => {
72
72
  f.current || (f.current = !0, i.clear(), e.forEach((n) => {
73
73
  i.add(u(n));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.9.2",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {
@@ -41,6 +41,7 @@
41
41
  "@radix-ui/react-tabs": "^1.1.13",
42
42
  "@radix-ui/react-toggle-group": "^1.1.11",
43
43
  "@radix-ui/react-tooltip": "^1.2.8",
44
+ "@radix-ui/react-progress": "^1.1.8",
44
45
  "@rollup/plugin-commonjs": "^29.0.2",
45
46
  "@rollup/plugin-node-resolve": "^16.0.3",
46
47
  "@rollup/plugin-terser": "^1.0.0",
@@ -93,7 +94,9 @@
93
94
  "vite": "^7.3.1",
94
95
  "vite-plugin-dts": "^4.5.4",
95
96
  "vite-plugin-lib-inject-css": "^2.2.2",
96
- "vitest": "^4.1.2"
97
+ "vitest": "^4.1.2",
98
+ "motion": "^12.40.0",
99
+ "zustand": "^5.0.13"
97
100
  },
98
101
  "main": "dist/index.js",
99
102
  "repository": {
@@ -124,6 +127,7 @@
124
127
  "@radix-ui/react-tabs": "^1.1.13",
125
128
  "@radix-ui/react-toggle-group": "^1.1.11",
126
129
  "@radix-ui/react-tooltip": "^1.2.8",
130
+ "@radix-ui/react-progress": "^1.1.8",
127
131
  "@tabler/icons-react": "3.41.1",
128
132
  "@uiw/codemirror-themes": "^4.25.4",
129
133
  "@uiw/react-codemirror": "^4.25.4",
@@ -136,12 +140,11 @@
136
140
  "react-dom": "^18.0.0 || ^19.0.0",
137
141
  "react-resizable-panels": "^4.3.1",
138
142
  "react-zoom-pan-pinch": "^3.7.0",
139
- "sonner": "^2.0.7"
143
+ "sonner": "^2.0.7",
144
+ "motion": "^12.40.0",
145
+ "zustand": "^5.0.13"
140
146
  },
141
147
  "publishConfig": {
142
148
  "access": "public"
143
- },
144
- "dependencies": {
145
- "@radix-ui/react-progress": "^1.1.8"
146
149
  }
147
150
  }
@@ -1,25 +0,0 @@
1
- import "react";
2
- function i(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
6
- }
7
- function f(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = i(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : i(n[t], null);
19
- }
20
- };
21
- };
22
- }
23
- export {
24
- f as composeRefs
25
- };
@@ -1,81 +0,0 @@
1
- import * as m from "react";
2
- import { createContextScope as b } from "../node_modules/@radix-ui/react-context/dist/index.js";
3
- import { Primitive as c } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
4
- import { jsx as l } from "react/jsx-runtime";
5
- var u = "Progress", d = 100, [$] = b(u), [I, h] = $(u), _ = m.forwardRef(
6
- (r, e) => {
7
- const {
8
- __scopeProgress: i,
9
- value: o = null,
10
- max: a,
11
- getValueLabel: x = M,
12
- ...P
13
- } = r;
14
- (a || a === 0) && !v(a) && console.error(R(`${a}`, "Progress"));
15
- const t = v(a) ? a : d;
16
- o !== null && !p(o, t) && console.error(V(`${o}`, "Progress"));
17
- const n = p(o, t) ? o : null, N = s(n) ? x(n, t) : void 0;
18
- return /* @__PURE__ */ l(I, { scope: i, value: n, max: t, children: /* @__PURE__ */ l(
19
- c.div,
20
- {
21
- "aria-valuemax": t,
22
- "aria-valuemin": 0,
23
- "aria-valuenow": s(n) ? n : void 0,
24
- "aria-valuetext": N,
25
- role: "progressbar",
26
- "data-state": g(n, t),
27
- "data-value": n ?? void 0,
28
- "data-max": t,
29
- ...P,
30
- ref: e
31
- }
32
- ) });
33
- }
34
- );
35
- _.displayName = u;
36
- var f = "ProgressIndicator", E = m.forwardRef(
37
- (r, e) => {
38
- const { __scopeProgress: i, ...o } = r, a = h(f, i);
39
- return /* @__PURE__ */ l(
40
- c.div,
41
- {
42
- "data-state": g(a.value, a.max),
43
- "data-value": a.value ?? void 0,
44
- "data-max": a.max,
45
- ...o,
46
- ref: e
47
- }
48
- );
49
- }
50
- );
51
- E.displayName = f;
52
- function M(r, e) {
53
- return `${Math.round(r / e * 100)}%`;
54
- }
55
- function g(r, e) {
56
- return r == null ? "indeterminate" : r === e ? "complete" : "loading";
57
- }
58
- function s(r) {
59
- return typeof r == "number";
60
- }
61
- function v(r) {
62
- return s(r) && !isNaN(r) && r > 0;
63
- }
64
- function p(r, e) {
65
- return s(r) && !isNaN(r) && r <= e && r >= 0;
66
- }
67
- function R(r, e) {
68
- return `Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`;
69
- }
70
- function V(r, e) {
71
- return `Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
72
- - a positive number
73
- - less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
74
- - \`null\` or \`undefined\` if the progress is indeterminate.
75
-
76
- Defaulting to \`null\`.`;
77
- }
78
- export {
79
- _ as Progress,
80
- E as ProgressIndicator
81
- };
@@ -1,55 +0,0 @@
1
- import * as u from "react";
2
- import { jsx as v } from "react/jsx-runtime";
3
- function P(e, p = []) {
4
- let n = [];
5
- function m(c, t) {
6
- const o = u.createContext(t);
7
- o.displayName = c + "Context";
8
- const r = n.length;
9
- n = [...n, t];
10
- const a = (i) => {
11
- const { scope: d, children: f, ...x } = i, S = d?.[e]?.[r] || o, l = u.useMemo(() => x, Object.values(x));
12
- return /* @__PURE__ */ v(S.Provider, { value: l, children: f });
13
- };
14
- a.displayName = c + "Provider";
15
- function C(i, d) {
16
- const f = d?.[e]?.[r] || o, x = u.useContext(f);
17
- if (x) return x;
18
- if (t !== void 0) return t;
19
- throw new Error(`\`${i}\` must be used within \`${c}\``);
20
- }
21
- return [a, C];
22
- }
23
- const s = () => {
24
- const c = n.map((t) => u.createContext(t));
25
- return function(o) {
26
- const r = o?.[e] || c;
27
- return u.useMemo(
28
- () => ({ [`__scope${e}`]: { ...o, [e]: r } }),
29
- [o, r]
30
- );
31
- };
32
- };
33
- return s.scopeName = e, [m, _(s, ...p)];
34
- }
35
- function _(...e) {
36
- const p = e[0];
37
- if (e.length === 1) return p;
38
- const n = () => {
39
- const m = e.map((s) => ({
40
- useScope: s(),
41
- scopeName: s.scopeName
42
- }));
43
- return function(c) {
44
- const t = m.reduce((o, { useScope: r, scopeName: a }) => {
45
- const i = r(c)[`__scope${a}`];
46
- return { ...o, ...i };
47
- }, {});
48
- return u.useMemo(() => ({ [`__scope${p.scopeName}`]: t }), [t]);
49
- };
50
- };
51
- return n.scopeName = p.scopeName, n;
52
- }
53
- export {
54
- P as createContextScope
55
- };
@@ -1,32 +0,0 @@
1
- import * as f from "react";
2
- import "react-dom";
3
- import { createSlot as l } from "../../react-slot/dist/index.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- var u = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], w = u.reduce((t, i) => {
24
- const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
- const { asChild: a, ...p } = e, s = a ? o : i;
26
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
30
- export {
31
- w as Primitive
32
- };
@@ -1,58 +0,0 @@
1
- import * as e from "react";
2
- import { composeRefs as E } from "../../../../../react-compose-refs/dist/index.js";
3
- import { jsx as y } from "react/jsx-runtime";
4
- var g = /* @__PURE__ */ Symbol.for("react.lazy"), p = e[" use ".trim().toString()];
5
- function C(r) {
6
- return typeof r == "object" && r !== null && "then" in r;
7
- }
8
- function d(r) {
9
- return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === g && "_payload" in r && C(r._payload);
10
- }
11
- // @__NO_SIDE_EFFECTS__
12
- function A(r) {
13
- const n = /* @__PURE__ */ S(r), o = e.forwardRef((i, t) => {
14
- let { children: l, ...a } = i;
15
- d(l) && typeof p == "function" && (l = p(l._payload));
16
- const s = e.Children.toArray(l), f = s.find(R);
17
- if (f) {
18
- const c = f.props.children, m = s.map((u) => u === f ? e.Children.count(c) > 1 ? e.Children.only(null) : e.isValidElement(c) ? c.props.children : null : u);
19
- return /* @__PURE__ */ y(n, { ...a, ref: t, children: e.isValidElement(c) ? e.cloneElement(c, void 0, m) : null });
20
- }
21
- return /* @__PURE__ */ y(n, { ...a, ref: t, children: l });
22
- });
23
- return o.displayName = `${r}.Slot`, o;
24
- }
25
- // @__NO_SIDE_EFFECTS__
26
- function S(r) {
27
- const n = e.forwardRef((o, i) => {
28
- let { children: t, ...l } = o;
29
- if (d(t) && typeof p == "function" && (t = p(t._payload)), e.isValidElement(t)) {
30
- const a = h(t), s = b(l, t.props);
31
- return t.type !== e.Fragment && (s.ref = i ? E(i, a) : a), e.cloneElement(t, s);
32
- }
33
- return e.Children.count(t) > 1 ? e.Children.only(null) : null;
34
- });
35
- return n.displayName = `${r}.SlotClone`, n;
36
- }
37
- var _ = /* @__PURE__ */ Symbol("radix.slottable");
38
- function R(r) {
39
- return e.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === _;
40
- }
41
- function b(r, n) {
42
- const o = { ...n };
43
- for (const i in n) {
44
- const t = r[i], l = n[i];
45
- /^on[A-Z]/.test(i) ? t && l ? o[i] = (...s) => {
46
- const f = l(...s);
47
- return t(...s), f;
48
- } : t && (o[i] = t) : i === "style" ? o[i] = { ...t, ...l } : i === "className" && (o[i] = [t, l].filter(Boolean).join(" "));
49
- }
50
- return { ...r, ...o };
51
- }
52
- function h(r) {
53
- let n = Object.getOwnPropertyDescriptor(r.props, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning;
54
- return o ? r.ref : (n = Object.getOwnPropertyDescriptor(r, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? r.props.ref : r.props.ref || r.ref);
55
- }
56
- export {
57
- A as createSlot
58
- };