@code0-tech/pictor 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/dist/_virtual/rolldown_runtime.js +9 -0
  2. package/dist/assets/Alert.style.css +1 -0
  3. package/dist/assets/Aurora.style.css +1 -0
  4. package/dist/assets/Avatar.style.css +1 -0
  5. package/dist/assets/Badge.style.css +1 -0
  6. package/dist/assets/Breadcrumb.style.css +1 -0
  7. package/dist/assets/Button.style.css +1 -0
  8. package/dist/assets/ButtonGroup.style.css +1 -0
  9. package/dist/assets/Card.style.css +1 -0
  10. package/dist/assets/Chart.style.css +1 -0
  11. package/dist/assets/Col.style.css +1 -0
  12. package/dist/assets/ColorInput.style.css +1 -0
  13. package/dist/assets/Command.style.css +1 -0
  14. package/dist/assets/Container.style.css +1 -0
  15. package/dist/assets/ContextMenu.style.css +1 -0
  16. package/dist/assets/DataTable.style.css +1 -0
  17. package/dist/assets/DateInput.style.css +1 -0
  18. package/dist/assets/Dialog.style.css +1 -0
  19. package/dist/assets/Editor.styles.css +1 -0
  20. package/dist/assets/EditorInput.style.css +1 -0
  21. package/dist/assets/FileInput.style.css +1 -0
  22. package/dist/assets/FileTabs.style.css +1 -0
  23. package/dist/assets/FullScreen.style.css +1 -0
  24. package/dist/assets/Gantt.style.css +1 -0
  25. package/dist/assets/Icon.style.css +1 -0
  26. package/dist/assets/Input.style.css +1 -0
  27. package/dist/assets/InputWrapper.style.css +1 -0
  28. package/dist/assets/JsonView.style.css +1 -0
  29. package/dist/assets/Layout.style.css +1 -0
  30. package/dist/assets/Menu.style.css +1 -0
  31. package/dist/assets/Progress.style.css +1 -0
  32. package/dist/assets/Quote.style.css +1 -0
  33. package/dist/assets/Resizable.style.css +1 -0
  34. package/dist/assets/Row.style.css +1 -0
  35. package/dist/assets/ScrollArea.style.css +1 -0
  36. package/dist/assets/SegmentedControl.style.css +1 -0
  37. package/dist/assets/SelectInput.style.css +1 -0
  38. package/dist/assets/Tab.style.css +1 -0
  39. package/dist/assets/Text.style.css +1 -0
  40. package/dist/assets/Toast.style.css +1 -0
  41. package/dist/assets/Tooltip.style.css +1 -0
  42. package/dist/components/alert/Alert.js +33 -41
  43. package/dist/components/aurora/Aurora.js +26 -22
  44. package/dist/components/avatar/Avatar.js +57 -55
  45. package/dist/components/badge/Badge.js +57 -64
  46. package/dist/components/breadcrumb/Breadcrumb.js +16 -21
  47. package/dist/components/button/Button.js +23 -31
  48. package/dist/components/button-group/ButtonGroup.js +28 -31
  49. package/dist/components/card/Card.js +28 -43
  50. package/dist/components/card/CardSection.js +21 -29
  51. package/dist/components/chart/Chart.js +138 -153
  52. package/dist/components/chart/LineChart.js +74 -74
  53. package/dist/components/chart/index.js +3 -8
  54. package/dist/components/col/Col.js +18 -29
  55. package/dist/components/command/Command.js +100 -134
  56. package/dist/components/container/Container.js +18 -23
  57. package/dist/components/context-menu/ContextMenu.js +118 -112
  58. package/dist/components/data-table/DataTable.js +53 -64
  59. package/dist/components/data-table/DataTableColumn.js +17 -22
  60. package/dist/components/data-table/DataTableFilterInput.js +208 -205
  61. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +58 -48
  62. package/dist/components/data-table/DataTableHeader.js +33 -38
  63. package/dist/components/data-table/DataTablePagination.js +61 -74
  64. package/dist/components/data-table/index.js +7 -22
  65. package/dist/components/dialog/Dialog.js +106 -97
  66. package/dist/components/editor/Editor.js +352 -323
  67. package/dist/components/file-tabs/FileTabs.js +77 -73
  68. package/dist/components/file-tabs/FileTabs.service.js +85 -87
  69. package/dist/components/file-tabs/FileTabs.view.js +0 -1
  70. package/dist/components/file-tabs/index.js +3 -9
  71. package/dist/components/flex/Flex.js +18 -23
  72. package/dist/components/form/CheckboxInput.js +72 -76
  73. package/dist/components/form/ColorInput.js +378 -353
  74. package/dist/components/form/DateInput.js +315 -265
  75. package/dist/components/form/EditorInput.js +597 -579
  76. package/dist/components/form/EmailInput.js +30 -23
  77. package/dist/components/form/FileInput.js +92 -123
  78. package/dist/components/form/Input.js +64 -58
  79. package/dist/components/form/Input.utils.js +25 -37
  80. package/dist/components/form/InputDescription.js +10 -11
  81. package/dist/components/form/InputLabel.js +17 -22
  82. package/dist/components/form/InputMessage.js +16 -17
  83. package/dist/components/form/InputWrapper.js +55 -65
  84. package/dist/components/form/NumberInput.js +41 -20
  85. package/dist/components/form/PasswordInput.js +71 -54
  86. package/dist/components/form/PinInput.js +49 -65
  87. package/dist/components/form/RadioGroup.js +41 -50
  88. package/dist/components/form/RadioInput.js +30 -29
  89. package/dist/components/form/SelectInput.js +68 -92
  90. package/dist/components/form/SwitchInput.js +17 -18
  91. package/dist/components/form/TagInput.js +108 -122
  92. package/dist/components/form/TextAreaInput.js +24 -21
  93. package/dist/components/form/TextInput.js +30 -22
  94. package/dist/components/form/index.js +22 -87
  95. package/dist/components/form/useForm.js +87 -88
  96. package/dist/components/fullscreen/FullScreen.js +27 -27
  97. package/dist/components/gantt/Gantt.js +99 -98
  98. package/dist/components/gantt/GanttGroup.js +210 -195
  99. package/dist/components/gantt/GanttHeader.js +78 -81
  100. package/dist/components/gantt/GanttItem.js +18 -22
  101. package/dist/components/icon/Icon.d.ts +6 -4
  102. package/dist/components/icon/Icon.js +53 -42
  103. package/dist/components/icon/codezero/codezero.js +10 -0
  104. package/dist/components/icon/codezero/gls.js +9 -0
  105. package/dist/components/icon/codezero/index.js +17 -13
  106. package/dist/components/json-view/JsonView.js +119 -109
  107. package/dist/components/layout/Layout.js +100 -78
  108. package/dist/components/menu/Menu.js +134 -128
  109. package/dist/components/progress/ProgressCircle.js +60 -49
  110. package/dist/components/progress/ProgressLinear.js +39 -43
  111. package/dist/components/quote/Quote.js +51 -43
  112. package/dist/components/resizable/Resizable.js +35 -33
  113. package/dist/components/row/Row.js +18 -23
  114. package/dist/components/scroll-area/ScrollArea.js +65 -76
  115. package/dist/components/segmented-control/SegmentedControl.js +46 -50
  116. package/dist/components/spacing/Spacing.js +15 -23
  117. package/dist/components/tab/Tab.js +73 -66
  118. package/dist/components/text/Text.js +18 -25
  119. package/dist/components/toast/Toast.js +104 -82
  120. package/dist/components/tooltip/Tooltip.js +65 -55
  121. package/dist/index.js +76 -272
  122. package/dist/node_modules/@lezer/common/dist/index.js +778 -143
  123. package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
  124. package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
  125. package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
  126. package/dist/node_modules/prettier/standalone.js +3444 -2415
  127. package/dist/utils/arrayService.js +0 -1
  128. package/dist/utils/color.js +46 -41
  129. package/dist/utils/component.js +60 -129
  130. package/dist/utils/contextStore.js +47 -58
  131. package/dist/utils/index.js +7 -29
  132. package/dist/utils/motion.js +84 -113
  133. package/dist/utils/reactiveArrayService.js +80 -76
  134. package/dist/utils/size.js +14 -26
  135. package/dist/utils/utils.js +0 -1
  136. package/dist/utils/view.js +27 -24
  137. package/dist/vite-env.d.js +0 -1
  138. package/package.json +28 -23
  139. package/dist/_virtual/compiler-runtime.js +0 -5
  140. package/dist/_virtual/compiler-runtime2.js +0 -4
  141. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  142. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  143. package/dist/assets/components/alert/Alert.style.css +0 -1
  144. package/dist/assets/components/aurora/Aurora.style.css +0 -1
  145. package/dist/assets/components/avatar/Avatar.style.css +0 -1
  146. package/dist/assets/components/badge/Badge.style.css +0 -1
  147. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
  148. package/dist/assets/components/button/Button.style.css +0 -1
  149. package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
  150. package/dist/assets/components/card/Card.style.css +0 -1
  151. package/dist/assets/components/chart/Chart.style.css +0 -1
  152. package/dist/assets/components/col/Col.style.css +0 -1
  153. package/dist/assets/components/command/Command.style.css +0 -1
  154. package/dist/assets/components/container/Container.style.css +0 -1
  155. package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
  156. package/dist/assets/components/data-table/DataTable.style.css +0 -1
  157. package/dist/assets/components/dialog/Dialog.style.css +0 -1
  158. package/dist/assets/components/editor/Editor.styles.css +0 -1
  159. package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
  160. package/dist/assets/components/form/ColorInput.style.css +0 -1
  161. package/dist/assets/components/form/DateInput.style.css +0 -1
  162. package/dist/assets/components/form/EditorInput.style.css +0 -1
  163. package/dist/assets/components/form/FileInput.style.css +0 -1
  164. package/dist/assets/components/form/Input.style.css +0 -1
  165. package/dist/assets/components/form/InputWrapper.style.css +0 -1
  166. package/dist/assets/components/form/SelectInput.style.css +0 -1
  167. package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
  168. package/dist/assets/components/gantt/Gantt.style.css +0 -1
  169. package/dist/assets/components/icon/Icon.style.css +0 -1
  170. package/dist/assets/components/json-view/JsonView.style.css +0 -1
  171. package/dist/assets/components/layout/Layout.style.css +0 -1
  172. package/dist/assets/components/menu/Menu.style.css +0 -1
  173. package/dist/assets/components/progress/Progress.style.css +0 -1
  174. package/dist/assets/components/quote/Quote.style.css +0 -1
  175. package/dist/assets/components/resizable/Resizable.style.css +0 -1
  176. package/dist/assets/components/row/Row.style.css +0 -1
  177. package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
  178. package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
  179. package/dist/assets/components/tab/Tab.style.css +0 -1
  180. package/dist/assets/components/text/Text.style.css +0 -1
  181. package/dist/assets/components/toast/Toast.style.css +0 -1
  182. package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
  183. package/dist/components/icon/codezero/codezero.svg.js +0 -5
  184. package/dist/components/icon/codezero/gls.svg.js +0 -5
  185. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  186. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
  187. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
  188. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  189. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
  190. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  191. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  192. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
  193. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  194. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  195. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
  196. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
  197. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
  198. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  199. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
  200. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -285
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
  202. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
  203. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
  204. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
  205. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -130
  206. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
  207. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -29
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -45
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -33
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
  215. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  216. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
  217. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
  218. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
  219. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -62
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -21
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
  225. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  226. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
  227. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  228. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  229. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
  230. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
  231. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
  232. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
  233. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
  234. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  235. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
  236. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
  237. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
  238. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  239. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  240. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
  241. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  242. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  243. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -12
  244. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
  245. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
  246. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  247. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -112
  248. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -144
  249. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -106
  250. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -38
  251. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
  252. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
  253. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
  254. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
  255. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -178
  256. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
  257. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
  258. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  259. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
  260. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
  261. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -59
  262. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -29
  263. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
  264. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -68
  265. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -74
  266. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
  267. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
  268. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
  269. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
  270. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
  271. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
  272. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  273. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -37
  274. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
  275. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  276. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
  277. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
  278. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
  279. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
  280. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
  281. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -8
  282. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
  283. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
  284. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
  285. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
  286. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
  287. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -10
  288. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
  289. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
  290. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
  291. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
  292. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -33
  293. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -12
  294. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
  295. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
  296. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
  297. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
  298. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
  299. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
  300. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
  301. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
  302. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
  303. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -43
  304. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
  305. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
  306. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
  307. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
  308. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
  309. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -18
  310. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
  311. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  312. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
  313. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
  314. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
  315. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -32
  316. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
  317. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
  318. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -53
  319. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -38
  320. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
  321. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
  322. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
  323. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -13
  324. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
  325. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -618
  326. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
  327. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
  328. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
  329. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
  330. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
  331. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
  332. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
  333. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
  334. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
  335. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
  336. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
  337. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
  338. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -263
  339. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
  340. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
  341. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
  342. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
  343. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  344. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  345. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
  346. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -38
  347. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
  348. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
  349. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
  350. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
  351. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
  352. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
  353. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  354. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
  355. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
  356. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  357. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -143
  358. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
  359. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
  360. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
  361. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
  362. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
  363. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
  364. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
  365. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
  366. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
  367. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
  368. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
  369. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  370. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
  371. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
  372. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
  373. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
  374. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
  375. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -23
  376. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -8
  377. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
  378. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
  379. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
  380. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
  381. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
  382. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
  383. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
  384. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
  385. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
  386. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
  387. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
  388. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
  389. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
  390. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
  391. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
  392. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
  393. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -212
  394. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
  395. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
  396. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
  397. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
  398. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
  399. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
  400. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
  401. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  402. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -51
  403. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -11
  404. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
  405. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
  406. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -27
  407. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
  408. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -37
  409. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  410. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
  411. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
  412. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -12
  413. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
  414. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
  415. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
  416. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
  417. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
  418. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
  419. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
  420. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
  421. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
  422. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
  423. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
  424. package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
  425. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
  426. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
  427. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  428. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  429. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
  430. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  431. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
  432. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
  433. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
  434. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
  435. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
  436. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -14
  437. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
  438. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
  439. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
  440. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
  441. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
  442. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
  443. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  444. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
  445. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
  446. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
  447. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
  448. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -4
  449. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
  450. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
  451. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -14
  452. package/dist/node_modules/react/compiler-runtime.js +0 -10
  453. /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
  454. /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
@@ -1,87 +1,22 @@
1
- import { CheckboxInput as r } from "./CheckboxInput.js";
2
- import { ColorInput as p, ColorInputContent as n, ColorInputControl as u, ColorInputSwatch as I, ColorInputTrigger as i, ColorInputValueText as l } from "./ColorInput.js";
3
- import { DateInput as a, DateInputContent as x, DateInputControl as g, DateInputField as f, DateInputNextTrigger as T, DateInputPrevTrigger as d, DateInputTrigger as F } from "./DateInput.js";
4
- import { EditorInput as S, EditorInputMenu as c, EditorInputMenuItem as D, EditorInputSubMenu as s, EditorInputTrigger as P, EditorInputValue as w } from "./EditorInput.js";
5
- import { EmailInput as M, emailValidation as V } from "./EmailInput.js";
6
- import { FileInput as h, FileInputContext as v, FileInputDropzone as N, FileInputHiddenInput as z, FileInputItem as G, FileInputItemDeleteTrigger as H, FileInputItemGroup as R, FileInputItemName as k, FileInputItemPreview as A, FileInputItemPreviewImage as L, FileInputItemSizeText as j, FileInputTrigger as q } from "./FileInput.js";
7
- import { Input as B } from "./Input.js";
8
- import { InputDescription as K } from "./InputDescription.js";
9
- import { InputLabel as Q } from "./InputLabel.js";
10
- import { InputMessage as W } from "./InputMessage.js";
11
- import { NumberInput as Y } from "./NumberInput.js";
12
- import { PasswordInput as _, passwordValidation as $ } from "./PasswordInput.js";
13
- import { PinInput as et, PinInputField as rt, PinInputHiddenField as ot } from "./PinInput.js";
14
- import { RadioGroup as nt } from "./RadioGroup.js";
15
- import { RadioInput as It } from "./RadioInput.js";
16
- import { SelectContent as lt, SelectInput as mt, SelectItem as at, SelectItemText as xt, SelectPortal as gt, SelectTrigger as ft, SelectValue as Tt, SelectViewport as dt } from "./SelectInput.js";
17
- import { SwitchInput as Ct } from "./SwitchInput.js";
18
- import { TagInput as ct, TagInputMenu as Dt, TagInputMenuItem as st, TagInputSubMenu as Pt, TagInputTrigger as wt, TagInputValue as Et } from "./TagInput.js";
19
- import { TextAreaInput as Vt } from "./TextAreaInput.js";
20
- import { TextInput as ht } from "./TextInput.js";
21
- import { useForm as Nt } from "./useForm.js";
22
- export {
23
- r as CheckboxInput,
24
- p as ColorInput,
25
- n as ColorInputContent,
26
- u as ColorInputControl,
27
- I as ColorInputSwatch,
28
- i as ColorInputTrigger,
29
- l as ColorInputValueText,
30
- a as DateInput,
31
- x as DateInputContent,
32
- g as DateInputControl,
33
- f as DateInputField,
34
- T as DateInputNextTrigger,
35
- d as DateInputPrevTrigger,
36
- F as DateInputTrigger,
37
- S as EditorInput,
38
- c as EditorInputMenu,
39
- D as EditorInputMenuItem,
40
- s as EditorInputSubMenu,
41
- P as EditorInputTrigger,
42
- w as EditorInputValue,
43
- M as EmailInput,
44
- h as FileInput,
45
- v as FileInputContext,
46
- N as FileInputDropzone,
47
- z as FileInputHiddenInput,
48
- G as FileInputItem,
49
- H as FileInputItemDeleteTrigger,
50
- R as FileInputItemGroup,
51
- k as FileInputItemName,
52
- A as FileInputItemPreview,
53
- L as FileInputItemPreviewImage,
54
- j as FileInputItemSizeText,
55
- q as FileInputTrigger,
56
- B as Input,
57
- K as InputDescription,
58
- Q as InputLabel,
59
- W as InputMessage,
60
- Y as NumberInput,
61
- _ as PasswordInput,
62
- et as PinInput,
63
- rt as PinInputField,
64
- ot as PinInputHiddenField,
65
- nt as RadioGroup,
66
- It as RadioInput,
67
- lt as SelectContent,
68
- mt as SelectInput,
69
- at as SelectItem,
70
- xt as SelectItemText,
71
- gt as SelectPortal,
72
- ft as SelectTrigger,
73
- Tt as SelectValue,
74
- dt as SelectViewport,
75
- Ct as SwitchInput,
76
- ct as TagInput,
77
- Dt as TagInputMenu,
78
- st as TagInputMenuItem,
79
- Pt as TagInputSubMenu,
80
- wt as TagInputTrigger,
81
- Et as TagInputValue,
82
- Vt as TextAreaInput,
83
- ht as TextInput,
84
- V as emailValidation,
85
- $ as passwordValidation,
86
- Nt as useForm
87
- };
1
+ import { InputLabel } from "./InputLabel.js";
2
+ import { InputDescription } from "./InputDescription.js";
3
+ import { InputMessage } from "./InputMessage.js";
4
+ import { CheckboxInput } from "./CheckboxInput.js";
5
+ import { ColorInput, ColorInputContent, ColorInputControl, ColorInputSwatch, ColorInputTrigger, ColorInputValueText } from "./ColorInput.js";
6
+ import { SelectContent, SelectInput, SelectItem, SelectItemText, SelectPortal, SelectTrigger, SelectValue, SelectViewport } from "./SelectInput.js";
7
+ import { DateInput, DateInputContent, DateInputControl, DateInputField, DateInputNextTrigger, DateInputPrevTrigger, DateInputTrigger } from "./DateInput.js";
8
+ import { EditorInput, EditorInputMenu, EditorInputMenuItem, EditorInputSubMenu, EditorInputTrigger, EditorInputValue } from "./EditorInput.js";
9
+ import { Input } from "./Input.js";
10
+ import { EmailInput, emailValidation } from "./EmailInput.js";
11
+ import { FileInput, FileInputContext, FileInputDropzone, FileInputHiddenInput, FileInputItem, FileInputItemDeleteTrigger, FileInputItemGroup, FileInputItemName, FileInputItemPreview, FileInputItemPreviewImage, FileInputItemSizeText, FileInputTrigger } from "./FileInput.js";
12
+ import { NumberInput } from "./NumberInput.js";
13
+ import { PasswordInput, passwordValidation } from "./PasswordInput.js";
14
+ import { PinInput, PinInputField, PinInputHiddenField } from "./PinInput.js";
15
+ import { RadioGroup } from "./RadioGroup.js";
16
+ import { RadioInput } from "./RadioInput.js";
17
+ import { SwitchInput } from "./SwitchInput.js";
18
+ import { TagInput, TagInputMenu, TagInputMenuItem, TagInputSubMenu, TagInputTrigger, TagInputValue } from "./TagInput.js";
19
+ import { TextAreaInput } from "./TextAreaInput.js";
20
+ import { TextInput } from "./TextInput.js";
21
+ import { useForm } from "./useForm.js";
22
+ export { CheckboxInput, ColorInput, ColorInputContent, ColorInputControl, ColorInputSwatch, ColorInputTrigger, ColorInputValueText, DateInput, DateInputContent, DateInputControl, DateInputField, DateInputNextTrigger, DateInputPrevTrigger, DateInputTrigger, EditorInput, EditorInputMenu, EditorInputMenuItem, EditorInputSubMenu, EditorInputTrigger, EditorInputValue, EmailInput, FileInput, FileInputContext, FileInputDropzone, FileInputHiddenInput, FileInputItem, FileInputItemDeleteTrigger, FileInputItemGroup, FileInputItemName, FileInputItemPreview, FileInputItemPreviewImage, FileInputItemSizeText, FileInputTrigger, Input, InputDescription, InputLabel, InputMessage, NumberInput, PasswordInput, PinInput, PinInputField, PinInputHiddenField, RadioGroup, RadioInput, SelectContent, SelectInput, SelectItem, SelectItemText, SelectPortal, SelectTrigger, SelectValue, SelectViewport, SwitchInput, TagInput, TagInputMenu, TagInputMenuItem, TagInputSubMenu, TagInputTrigger, TagInputValue, TextAreaInput, TextInput, emailValidation, passwordValidation, useForm };
@@ -1,93 +1,92 @@
1
- import y, { useState as P, useRef as v, useCallback as j, useEffect as I } from "react";
2
- function h(s, e, t) {
3
- return (e = _(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1
+ "use client";
2
+ import React, { useCallback, useEffect, useRef, useState } from "react";
3
+ function _defineProperty(e, t, n) {
4
+ return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
5
+ value: n,
6
+ enumerable: !0,
7
+ configurable: !0,
8
+ writable: !0
9
+ }) : e[t] = n, e;
4
10
  }
5
- function _(s) {
6
- var e = B(s, "string");
7
- return typeof e == "symbol" ? e : e + "";
11
+ function _toPropertyKey(e) {
12
+ var t = _toPrimitive(e, "string");
13
+ return typeof t == "symbol" ? t : t + "";
8
14
  }
9
- function B(s, e) {
10
- if (typeof s != "object" || !s) return s;
11
- var t = s[Symbol.toPrimitive];
12
- if (t !== void 0) {
13
- var n = t.call(s, e);
14
- if (typeof n != "object") return n;
15
- throw new TypeError("@@toPrimitive must return a primitive value.");
16
- }
17
- return (e === "string" ? String : Number)(s);
15
+ function _toPrimitive(e, t) {
16
+ if (typeof e != "object" || !e) return e;
17
+ var n = e[Symbol.toPrimitive];
18
+ if (n !== void 0) {
19
+ var r = n.call(e, t || "default");
20
+ if (typeof r != "object") return r;
21
+ throw TypeError("@@toPrimitive must return a primitive value.");
22
+ }
23
+ return (t === "string" ? String : Number)(e);
18
24
  }
19
- class w {
20
- constructor(e, t, n, V = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map()) {
21
- h(this, "changeValue", void 0), h(this, "currentValues", void 0), h(this, "currentValidations", void 0), h(this, "shouldValidate", void 0), h(this, "cachedMessages", void 0), h(this, "cachedSetters", void 0), h(this, "cachedProps", void 0), this.changeValue = e, this.currentValues = t, this.currentValidations = n, this.shouldValidate = V, this.cachedMessages = l, this.cachedSetters = r, this.cachedProps = a;
22
- }
23
- isValid() {
24
- if (!this.currentValidations) return !0;
25
- for (const e in this.currentValidations) {
26
- const t = this.currentValidations[e];
27
- if (t && t(this.currentValues[e], this.currentValues) !== null)
28
- return !1;
29
- }
30
- return !0;
31
- }
32
- getInputProps(e) {
33
- const t = this.currentValues[e], n = t ?? null, V = e, l = this.currentValidations && this.currentValidations[e] ? this.currentValidations[e] : (d) => null;
34
- let r = null;
35
- this.shouldValidate.has(e) ? (r = l(t, this.currentValues), this.cachedMessages.set(e, r)) : r = this.cachedMessages.get(e) ?? null;
36
- const a = !!(this.currentValidations && this.currentValidations[e]), u = this.cachedProps.get(e);
37
- if (u && Object.is(u.value, n) && u.message === r && u.required === a)
38
- return u.props;
39
- let c = this.cachedSetters.get(e);
40
- if (!c) {
41
- const d = this.changeValue;
42
- c = (o) => {
43
- d(V, o);
44
- }, this.cachedSetters.set(e, c);
45
- }
46
- const p = {
47
- // @ts-ignore – z.B. wenn dein Input `defaultValue` kennt
48
- defaultValue: n ?? void 0,
49
- initialValue: n ?? void 0,
50
- formValidation: {
51
- setValue: c,
52
- notValidMessage: r,
53
- valid: r === null
54
- },
55
- ...a ? {
56
- required: !0
57
- } : {}
58
- };
59
- return this.cachedProps.set(e, {
60
- value: n,
61
- message: r,
62
- required: a,
63
- props: p
64
- }), p;
65
- }
66
- }
67
- const N = (s) => {
68
- const {
69
- initialValues: e,
70
- validate: t = {},
71
- truthyValidationBeforeSubmit: n = !0,
72
- useInitialValidation: V = !0,
73
- onSubmit: l
74
- } = s, r = y.useMemo(() => e, [e]), [a, u] = P(r), c = v(/* @__PURE__ */ new Map()), p = v(/* @__PURE__ */ new Map()), d = v(/* @__PURE__ */ new Map()), o = v(a);
75
- o.current = a;
76
- const g = j((i, m) => {
77
- o.current = {
78
- ...o.current,
79
- [i]: m
80
- }, u(o.current);
81
- }, []), [O, M] = P(() => new w(g, a, t, V ? new Map(Object.keys(r).map((i) => [i, !0])) : /* @__PURE__ */ new Map(), c.current, p.current, d.current)), b = v(!1);
82
- I(() => {
83
- o.current = r, u(r), b.current && d.current.clear(), b.current = !0, M(new w(g, r, t, V ? new Map(Object.keys(r).map((i) => [i, !0])) : /* @__PURE__ */ new Map(), c.current, p.current, d.current));
84
- }, [r]);
85
- const R = j((i, m = !0) => {
86
- const f = o.current, F = i && new Set(Object.keys(f)).has(String(i)) ? /* @__PURE__ */ new Map([[i, !0]]) : new Map(Object.keys(f).map((q) => [String(q), !0])), S = new w(g, f, t, F, c.current, p.current, d.current);
87
- M(S), m && !new Set(Object.keys(f)).has(String(i)) && l && (!n || S.isValid()) && l(f);
88
- }, [g, t, l, n]);
89
- return [O, R, a];
25
+ var Validation = class {
26
+ constructor(e, t, n, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map()) {
27
+ _defineProperty(this, "changeValue", void 0), _defineProperty(this, "currentValues", void 0), _defineProperty(this, "currentValidations", void 0), _defineProperty(this, "shouldValidate", void 0), _defineProperty(this, "cachedMessages", void 0), _defineProperty(this, "cachedSetters", void 0), _defineProperty(this, "cachedProps", void 0), this.changeValue = e, this.currentValues = t, this.currentValidations = n, this.shouldValidate = r, this.cachedMessages = i, this.cachedSetters = o, this.cachedProps = s;
28
+ }
29
+ isValid() {
30
+ if (!this.currentValidations) return !0;
31
+ for (let e in this.currentValidations) {
32
+ let t = this.currentValidations[e];
33
+ if (t && t(this.currentValues[e], this.currentValues) !== null) return !1;
34
+ }
35
+ return !0;
36
+ }
37
+ getInputProps(e) {
38
+ let t = this.currentValues[e], n = t ?? null, r = e, i = this.currentValidations && this.currentValidations[e] ? this.currentValidations[e] : (e) => null, a = null;
39
+ this.shouldValidate.has(e) ? (a = i(t, this.currentValues), this.cachedMessages.set(e, a)) : a = this.cachedMessages.get(e) ?? null;
40
+ let o = !!(this.currentValidations && this.currentValidations[e]), s = this.cachedProps.get(e);
41
+ if (s && Object.is(s.value, n) && s.message === a && s.required === o) return s.props;
42
+ let c = this.cachedSetters.get(e);
43
+ if (!c) {
44
+ let t = this.changeValue;
45
+ c = (e) => {
46
+ t(r, e);
47
+ }, this.cachedSetters.set(e, c);
48
+ }
49
+ let l = {
50
+ defaultValue: n ?? void 0,
51
+ initialValue: n ?? void 0,
52
+ formValidation: {
53
+ setValue: c,
54
+ notValidMessage: a,
55
+ valid: a === null
56
+ },
57
+ ...o ? { required: !0 } : {}
58
+ };
59
+ return this.cachedProps.set(e, {
60
+ value: n,
61
+ message: a,
62
+ required: o,
63
+ props: l
64
+ }), l;
65
+ }
90
66
  };
91
- export {
92
- N as useForm
67
+ const useForm = (a) => {
68
+ let { initialValues: o, validate: s = {}, truthyValidationBeforeSubmit: l = !0, useInitialValidation: u = !0, onSubmit: d } = a, f = React.useMemo(() => o, [o]), [p, m] = useState(f), h = useRef(/* @__PURE__ */ new Map()), g = useRef(/* @__PURE__ */ new Map()), _ = useRef(/* @__PURE__ */ new Map()), v = useRef(p);
69
+ v.current = p;
70
+ let y = useCallback((e, t) => {
71
+ v.current = {
72
+ ...v.current,
73
+ [e]: t
74
+ }, m(v.current);
75
+ }, []), [b, x] = useState(() => new Validation(y, p, s, u ? new Map(Object.keys(f).map((e) => [e, !0])) : /* @__PURE__ */ new Map(), h.current, g.current, _.current)), S = useRef(!1);
76
+ return useEffect(() => {
77
+ v.current = f, m(f), S.current && _.current.clear(), S.current = !0, x(new Validation(y, f, s, u ? new Map(Object.keys(f).map((e) => [e, !0])) : /* @__PURE__ */ new Map(), h.current, g.current, _.current));
78
+ }, [f]), [
79
+ b,
80
+ useCallback((e, t = !0) => {
81
+ let n = v.current, r = new Validation(y, n, s, e && new Set(Object.keys(n)).has(String(e)) ? new Map([[e, !0]]) : new Map(Object.keys(n).map((e) => [String(e), !0])), h.current, g.current, _.current);
82
+ x(r), t && !new Set(Object.keys(n)).has(String(e)) && d && (!l || r.isValid()) && d(n);
83
+ }, [
84
+ y,
85
+ s,
86
+ d,
87
+ l
88
+ ]),
89
+ p
90
+ ];
93
91
  };
92
+ export { useForm };
@@ -1,28 +1,28 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { c as m } from "../../_virtual/compiler-runtime.js";
3
- import "../../utils/contextStore.js";
4
- import l from "react";
5
- import { mergeComponentProps as f } from "../../utils/component.js";
6
- import "js-md5";
7
- import '../../assets/components/fullscreen/FullScreen.style.css';/* empty css */
8
- const M = (i) => {
9
- const e = m.c(7), t = l.useRef(null);
10
- let r, o;
11
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = () => {
12
- if (!t.current)
13
- return;
14
- window.addEventListener("resize", () => {
15
- const c = Math.round(window.visualViewport?.width ?? window.innerWidth), s = Math.round(window.visualViewport?.height ?? window.innerHeight);
16
- t.current.style.height = s + "px", t.current.style.width = c + "px";
17
- });
18
- const w = Math.round(window.visualViewport?.width ?? window.innerWidth), h = Math.round(window.visualViewport?.height ?? window.innerHeight);
19
- t.current.style.height = h + "px", t.current.style.width = w + "px";
20
- }, o = [t], e[0] = r, e[1] = o) : (r = e[0], o = e[1]), l.useEffect(r, o);
21
- let n;
22
- e[2] !== i ? (n = f("d-full-screen", i), e[2] = i, e[3] = n) : n = e[3];
23
- let d;
24
- return e[4] !== i.children || e[5] !== n ? (d = /* @__PURE__ */ u("div", { ...n, ref: t, children: i.children }), e[4] = i.children, e[5] = n, e[6] = d) : d = e[6], d;
25
- };
26
- export {
27
- M as FullScreen
1
+ "use client";
2
+ import { mergeComponentProps } from "../../utils/component.js";
3
+ import "../../utils/index.js";
4
+ import '../../assets/FullScreen.style.css';/* empty css */
5
+ import { c } from "react/compiler-runtime";
6
+ import React from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ const FullScreen = (i) => {
9
+ let a = c(7), o = React.useRef(null), s, l;
10
+ a[0] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
11
+ if (!o.current) return;
12
+ window.addEventListener("resize", () => {
13
+ let e = Math.round(window.visualViewport?.width ?? window.innerWidth), r = Math.round(window.visualViewport?.height ?? window.innerHeight);
14
+ o.current.style.height = r + "px", o.current.style.width = e + "px";
15
+ });
16
+ let e = Math.round(window.visualViewport?.width ?? window.innerWidth), r = Math.round(window.visualViewport?.height ?? window.innerHeight);
17
+ o.current.style.height = r + "px", o.current.style.width = e + "px";
18
+ }, l = [o], a[0] = s, a[1] = l) : (s = a[0], l = a[1]), React.useEffect(s, l);
19
+ let u;
20
+ a[2] === i ? u = a[3] : (u = mergeComponentProps("d-full-screen", i), a[2] = i, a[3] = u);
21
+ let d;
22
+ return a[4] !== i.children || a[5] !== u ? (d = /* @__PURE__ */ jsx("div", {
23
+ ...u,
24
+ ref: o,
25
+ children: i.children
26
+ }), a[4] = i.children, a[5] = u, a[6] = d) : d = a[6], d;
28
27
  };
28
+ export { FullScreen };
@@ -1,100 +1,101 @@
1
- import { jsx as f, jsxs as T } from "react/jsx-runtime";
2
- import { c as W } from "../../_virtual/compiler-runtime.js";
3
- import "../../utils/contextStore.js";
4
- import "react";
5
- import "merge-props";
6
- import { hashToColor as k } from "../../utils/color.js";
7
- import '../../assets/components/gantt/Gantt.style.css';/* empty css */
8
- import { ScrollAreaViewport as z, ScrollAreaScrollbar as B, ScrollAreaThumb as H, ScrollArea as C } from "../scroll-area/ScrollArea.js";
9
- import { GanttGroup as D } from "./GanttGroup.js";
10
- const U = (s) => {
11
- const t = W.c(18), {
12
- items: h,
13
- stepWidth: b,
14
- rowHeight: E,
15
- step: G,
16
- children: w
17
- } = s, I = b === void 0 ? "50px" : b, _ = E === void 0 ? "50px" : E, n = G === void 0 ? 1 : G;
18
- let e;
19
- t[0] !== h || t[1] !== n ? (e = [], h?.forEach((r) => {
20
- const o = r.end - r.start;
21
- let c = !1;
22
- if (e.length <= 0) {
23
- e.push({
24
- step: o,
25
- items: [r]
26
- });
27
- return;
28
- }
29
- for (let p = 0; p < e.length; p++) {
30
- const i = e[p], m = (i.step + o) / 1.75, M = i.step / 2, R = i.step * 2;
31
- if (M < o && o < R) {
32
- i.step = m, i.items.push(r), c = !0;
33
- break;
34
- }
35
- }
36
- c || e.push({
37
- step: o,
38
- items: [r]
39
- });
40
- }), e.sort(q).forEach((r, o) => {
41
- if (o > 0) {
42
- let c = 1 / 0, p = -1 / 0;
43
- for (let i = 0; i < r.items.length; i++) {
44
- const m = r.items[i];
45
- m.start < c && (c = m.start), m.end > p && (p = m.end);
46
- }
47
- e[0].items.push({
48
- start: c,
49
- end: p + e[0].step * n / 6,
50
- id: `group-source-${o}`,
51
- type: "group",
52
- data: {
53
- items: r.items,
54
- step: n,
55
- firstGroupStep: e[0].step,
56
- groupStep: r.step,
57
- displayMessage: `${o}`,
58
- color: k(`group-source-${o}`)
59
- }
60
- });
61
- }
62
- }), t[0] = h, t[1] = n, t[2] = e) : e = t[2];
63
- let d = 1 / 0;
64
- const l = e[0].items;
65
- for (let r = 0; r < l.length; r++)
66
- l[r].start < d && (d = l[r].start);
67
- let u;
68
- t[3] !== l || t[4] !== e[0].step || t[5] !== d ? (u = {
69
- targetItems: l,
70
- targetStep: e[0].step,
71
- minStart: d
72
- }, t[3] = l, t[4] = e[0].step, t[5] = d, t[6] = u) : u = t[6];
73
- const {
74
- targetItems: $,
75
- targetStep: A,
76
- minStart: j
77
- } = u, V = j - j / (A * n) * (A * n), x = A * n;
78
- let a;
79
- t[7] !== w || t[8] !== _ || t[9] !== I || t[10] !== V || t[11] !== x || t[12] !== $ ? (a = /* @__PURE__ */ f(z, { children: /* @__PURE__ */ f(D, { children: w, id: "group-target", hideScaling: !1, start: V, step: x, stepWidth: I, rowHeight: _, items: $ }, "group-target") }), t[7] = w, t[8] = _, t[9] = I, t[10] = V, t[11] = x, t[12] = $, t[13] = a) : a = t[13];
80
- let g;
81
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ f(B, { orientation: "horizontal", children: /* @__PURE__ */ f(H, {}) }), t[14] = g) : g = t[14];
82
- let S;
83
- t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ f(B, { orientation: "vertical", children: /* @__PURE__ */ f(H, {}) }), t[15] = S) : S = t[15];
84
- let y;
85
- return t[16] !== a ? (y = /* @__PURE__ */ T(C, { w: "100%", h: "100%", type: "hover", children: [
86
- a,
87
- g,
88
- S
89
- ] }), t[16] = a, t[17] = y) : y = t[17], y;
90
- }, X = (s) => {
91
- const t = s > 5e5 ? s / 1e6 : s > 500 ? s / 1e3 : s, h = s > 5e5 ? "s" : s > 500 ? "ms" : "μs";
92
- return `${Math.round(t * 10) / 10}${h}`;
1
+ import { hashToColor } from "../../utils/color.js";
2
+ import "../../utils/index.js";
3
+ import { ScrollArea, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "../scroll-area/ScrollArea.js";
4
+ import '../../assets/Gantt.style.css';/* empty css */
5
+ import { GanttGroup } from "./GanttGroup.js";
6
+ import { c } from "react/compiler-runtime";
7
+ import React from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ const Gantt = (d) => {
10
+ let f = c(18), { items: p, stepWidth: m, rowHeight: h, step: g, children: _ } = d, v = m === void 0 ? "50px" : m, y = h === void 0 ? "50px" : h, b = g === void 0 ? 1 : g, x;
11
+ f[0] !== p || f[1] !== b ? (x = [], p?.forEach((e) => {
12
+ let i = e.end - e.start, a = !1;
13
+ if (x.length <= 0) {
14
+ x.push({
15
+ step: i,
16
+ items: [e]
17
+ });
18
+ return;
19
+ }
20
+ for (let o = 0; o < x.length; o++) {
21
+ let s = x[o], l = (s.step + i) / 1.75, u = s.step / 2, d = s.step * 2;
22
+ if (u < i && i < d) {
23
+ s.step = l, s.items.push(e), a = !0;
24
+ break;
25
+ }
26
+ }
27
+ a || x.push({
28
+ step: i,
29
+ items: [e]
30
+ });
31
+ }), x.sort(_temp).forEach((i, a) => {
32
+ if (a > 0) {
33
+ let o = Infinity, s = -Infinity;
34
+ for (let e = 0; e < i.items.length; e++) {
35
+ let a = i.items[e];
36
+ a.start < o && (o = a.start), a.end > s && (s = a.end);
37
+ }
38
+ x[0].items.push({
39
+ start: o,
40
+ end: s + x[0].step * b / 6,
41
+ id: `group-source-${a}`,
42
+ type: "group",
43
+ data: {
44
+ items: i.items,
45
+ step: b,
46
+ firstGroupStep: x[0].step,
47
+ groupStep: i.step,
48
+ displayMessage: `${a}`,
49
+ color: hashToColor(`group-source-${a}`)
50
+ }
51
+ });
52
+ }
53
+ }), f[0] = p, f[1] = b, f[2] = x) : x = f[2];
54
+ let S = Infinity, C = x[0].items;
55
+ for (let e = 0; e < C.length; e++) C[e].start < S && (S = C[e].start);
56
+ let w;
57
+ f[3] !== C || f[4] !== x[0].step || f[5] !== S ? (w = {
58
+ targetItems: C,
59
+ targetStep: x[0].step,
60
+ minStart: S
61
+ }, f[3] = C, f[4] = x[0].step, f[5] = S, f[6] = w) : w = f[6];
62
+ let { targetItems: T, targetStep: E, minStart: D } = w, O = D - D / (E * b) * (E * b), k = E * b, A;
63
+ f[7] !== _ || f[8] !== y || f[9] !== v || f[10] !== O || f[11] !== k || f[12] !== T ? (A = /* @__PURE__ */ jsx(ScrollAreaViewport, { children: /* @__PURE__ */ jsx(GanttGroup, {
64
+ children: _,
65
+ id: "group-target",
66
+ hideScaling: !1,
67
+ start: O,
68
+ step: k,
69
+ stepWidth: v,
70
+ rowHeight: y,
71
+ items: T
72
+ }, "group-target") }), f[7] = _, f[8] = y, f[9] = v, f[10] = O, f[11] = k, f[12] = T, f[13] = A) : A = f[13];
73
+ let j;
74
+ f[14] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
75
+ orientation: "horizontal",
76
+ children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
77
+ }), f[14] = j) : j = f[14];
78
+ let M;
79
+ f[15] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
80
+ orientation: "vertical",
81
+ children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
82
+ }), f[15] = M) : M = f[15];
83
+ let N;
84
+ return f[16] === A ? N = f[17] : (N = /* @__PURE__ */ jsxs(ScrollArea, {
85
+ w: "100%",
86
+ h: "100%",
87
+ type: "hover",
88
+ children: [
89
+ A,
90
+ j,
91
+ M
92
+ ]
93
+ }), f[16] = A, f[17] = N), N;
94
+ }, getRelativeValue = (e) => {
95
+ let i = e > 5e5 ? e / 1e6 : e > 500 ? e / 1e3 : e, a = e > 5e5 ? "s" : e > 500 ? "ms" : "μs";
96
+ return `${Math.round(i * 10) / 10}${a}`;
93
97
  };
94
- function q(s, t) {
95
- return t.step - s.step;
98
+ function _temp(e, i) {
99
+ return i.step - e.step;
96
100
  }
97
- export {
98
- U as Gantt,
99
- X as getRelativeValue
100
- };
101
+ export { Gantt, getRelativeValue };