@code0-tech/pictor 0.18.3 → 1.1.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 (464) hide show
  1. package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +6 -0
  2. package/dist/_virtual/rolldown_runtime.js +18 -0
  3. package/dist/assets/Alert.style.css +1 -0
  4. package/dist/assets/Aurora.style.css +1 -0
  5. package/dist/assets/Avatar.style.css +1 -0
  6. package/dist/assets/Badge.style.css +1 -0
  7. package/dist/assets/Breadcrumb.style.css +1 -0
  8. package/dist/assets/Button.style.css +1 -0
  9. package/dist/assets/ButtonGroup.style.css +1 -0
  10. package/dist/assets/Card.style.css +1 -0
  11. package/dist/assets/Chart.style.css +1 -0
  12. package/dist/assets/Col.style.css +1 -0
  13. package/dist/assets/ColorInput.style.css +1 -0
  14. package/dist/assets/Command.style.css +1 -0
  15. package/dist/assets/Container.style.css +1 -0
  16. package/dist/assets/ContextMenu.style.css +1 -0
  17. package/dist/assets/DataTable.style.css +1 -0
  18. package/dist/assets/DateInput.style.css +1 -0
  19. package/dist/assets/Dialog.style.css +1 -0
  20. package/dist/assets/Editor.styles.css +1 -0
  21. package/dist/assets/EditorInput.style.css +1 -0
  22. package/dist/assets/FileInput.style.css +1 -0
  23. package/dist/assets/FileTabs.style.css +1 -0
  24. package/dist/assets/FullScreen.style.css +1 -0
  25. package/dist/assets/Gantt.style.css +1 -0
  26. package/dist/assets/Icon.style.css +1 -0
  27. package/dist/assets/Input.style.css +1 -0
  28. package/dist/assets/InputWrapper.style.css +1 -0
  29. package/dist/assets/JsonView.style.css +1 -0
  30. package/dist/assets/Layout.style.css +1 -0
  31. package/dist/assets/Menu.style.css +1 -0
  32. package/dist/assets/Progress.style.css +1 -0
  33. package/dist/assets/Quote.style.css +1 -0
  34. package/dist/assets/Resizable.style.css +1 -0
  35. package/dist/assets/Row.style.css +1 -0
  36. package/dist/assets/ScrollArea.style.css +1 -0
  37. package/dist/assets/SegmentedControl.style.css +1 -0
  38. package/dist/assets/SelectInput.style.css +1 -0
  39. package/dist/assets/Tab.style.css +1 -0
  40. package/dist/assets/Text.style.css +1 -0
  41. package/dist/assets/Toast.style.css +1 -0
  42. package/dist/assets/Tooltip.style.css +1 -0
  43. package/dist/components/alert/Alert.js +34 -41
  44. package/dist/components/aurora/Aurora.js +27 -22
  45. package/dist/components/avatar/Avatar.js +57 -55
  46. package/dist/components/badge/Badge.js +58 -64
  47. package/dist/components/breadcrumb/Breadcrumb.js +16 -20
  48. package/dist/components/button/Button.js +24 -31
  49. package/dist/components/button-group/ButtonGroup.js +29 -31
  50. package/dist/components/card/Card.js +30 -44
  51. package/dist/components/card/CardSection.js +21 -29
  52. package/dist/components/chart/Chart.js +138 -153
  53. package/dist/components/chart/LineChart.js +75 -74
  54. package/dist/components/chart/index.js +3 -8
  55. package/dist/components/col/Col.js +19 -29
  56. package/dist/components/command/Command.js +101 -134
  57. package/dist/components/container/Container.js +19 -23
  58. package/dist/components/context-menu/ContextMenu.d.ts +1 -1
  59. package/dist/components/context-menu/ContextMenu.js +119 -125
  60. package/dist/components/data-table/DataTable.js +53 -63
  61. package/dist/components/data-table/DataTableColumn.js +18 -22
  62. package/dist/components/data-table/DataTableFilterInput.js +208 -205
  63. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +59 -48
  64. package/dist/components/data-table/DataTableHeader.js +34 -38
  65. package/dist/components/data-table/DataTablePagination.js +62 -74
  66. package/dist/components/data-table/index.js +7 -22
  67. package/dist/components/dialog/Dialog.js +107 -102
  68. package/dist/components/editor/Editor.js +352 -322
  69. package/dist/components/file-tabs/FileTabs.js +78 -73
  70. package/dist/components/file-tabs/FileTabs.service.js +85 -87
  71. package/dist/components/file-tabs/FileTabs.view.js +0 -1
  72. package/dist/components/file-tabs/index.js +3 -9
  73. package/dist/components/flex/Flex.js +19 -23
  74. package/dist/components/form/CheckboxInput.js +73 -76
  75. package/dist/components/form/ColorInput.js +378 -353
  76. package/dist/components/form/DateInput.js +315 -265
  77. package/dist/components/form/EditorInput.js +597 -579
  78. package/dist/components/form/EmailInput.js +30 -23
  79. package/dist/components/form/FileInput.js +93 -123
  80. package/dist/components/form/Input.js +64 -57
  81. package/dist/components/form/Input.utils.js +25 -37
  82. package/dist/components/form/InputDescription.js +11 -11
  83. package/dist/components/form/InputLabel.js +18 -22
  84. package/dist/components/form/InputMessage.js +17 -17
  85. package/dist/components/form/InputWrapper.js +56 -65
  86. package/dist/components/form/NumberInput.js +41 -20
  87. package/dist/components/form/PasswordInput.js +71 -54
  88. package/dist/components/form/PinInput.js +50 -65
  89. package/dist/components/form/RadioGroup.js +42 -50
  90. package/dist/components/form/RadioInput.js +31 -29
  91. package/dist/components/form/SelectInput.js +69 -92
  92. package/dist/components/form/SwitchInput.js +17 -18
  93. package/dist/components/form/TagInput.js +108 -122
  94. package/dist/components/form/TextAreaInput.js +24 -21
  95. package/dist/components/form/TextInput.js +30 -22
  96. package/dist/components/form/index.js +22 -87
  97. package/dist/components/form/useForm.js +87 -88
  98. package/dist/components/fullscreen/FullScreen.js +28 -27
  99. package/dist/components/gantt/Gantt.js +100 -98
  100. package/dist/components/gantt/GanttGroup.js +210 -194
  101. package/dist/components/gantt/GanttHeader.js +79 -81
  102. package/dist/components/gantt/GanttItem.js +19 -22
  103. package/dist/components/icon/Icon.d.ts +6 -4
  104. package/dist/components/icon/Icon.js +53 -42
  105. package/dist/components/icon/codezero/codezero.js +10 -0
  106. package/dist/components/icon/codezero/gls.js +9 -0
  107. package/dist/components/icon/codezero/index.js +17 -13
  108. package/dist/components/json-view/JsonView.js +120 -109
  109. package/dist/components/layout/Layout.js +101 -78
  110. package/dist/components/menu/Menu.js +135 -141
  111. package/dist/components/progress/ProgressCircle.js +60 -48
  112. package/dist/components/progress/ProgressLinear.js +39 -42
  113. package/dist/components/quote/Quote.js +52 -43
  114. package/dist/components/resizable/Resizable.js +36 -33
  115. package/dist/components/row/Row.js +19 -23
  116. package/dist/components/scroll-area/ScrollArea.js +66 -76
  117. package/dist/components/segmented-control/SegmentedControl.d.ts +2 -2
  118. package/dist/components/segmented-control/SegmentedControl.js +46 -26
  119. package/dist/components/spacing/Spacing.js +16 -23
  120. package/dist/components/tab/Tab.js +73 -40
  121. package/dist/components/text/Text.js +19 -25
  122. package/dist/components/toast/Toast.d.ts +1 -1
  123. package/dist/components/toast/Toast.js +104 -83
  124. package/dist/components/tooltip/Tooltip.js +66 -60
  125. package/dist/index.js +76 -261
  126. package/dist/node_modules/@lezer/common/dist/index.js +778 -143
  127. package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
  128. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +55 -55
  129. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +49 -32
  130. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +57 -46
  131. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -16
  132. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +8 -11
  133. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +4 -5
  134. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +4 -5
  135. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +7 -8
  136. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -11
  137. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +4 -5
  138. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +12 -14
  139. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +4 -5
  140. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +4 -5
  141. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +5 -7
  142. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +8 -13
  143. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +252 -281
  144. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -21
  145. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +57 -67
  146. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +24 -27
  147. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +16 -19
  148. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -124
  149. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +39 -42
  150. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +22 -27
  151. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +36 -44
  152. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +22 -32
  153. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +6 -12
  154. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +47 -37
  155. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +12 -16
  156. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +10 -20
  157. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +58 -59
  158. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +7 -11
  159. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -13
  160. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +42 -43
  161. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +19 -18
  162. package/dist/node_modules/framer-motion/dist/es/motion/index.js +64 -58
  163. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +2 -4
  164. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -20
  165. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +53 -62
  166. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +45 -49
  167. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +4 -38
  168. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +7 -17
  169. package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +3 -0
  170. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +10 -12
  171. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +5 -7
  172. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -10
  173. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -15
  174. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +14 -18
  175. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +4 -23
  176. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +8 -9
  177. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +20 -23
  178. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +6 -8
  179. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +27 -29
  180. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +23 -21
  181. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +8 -9
  182. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +5 -7
  183. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +5 -8
  184. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +2 -4
  185. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +2 -4
  186. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +3 -5
  187. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +11 -0
  188. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +20 -25
  189. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +6 -7
  190. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +5 -6
  191. package/dist/node_modules/motion/dist/es/react.js +196 -0
  192. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +104 -111
  193. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +126 -143
  194. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +81 -105
  195. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +25 -37
  196. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +7 -9
  197. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +10 -16
  198. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +29 -36
  199. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +18 -28
  200. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +156 -170
  201. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +6 -12
  202. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -12
  203. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +3 -5
  204. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +6 -8
  205. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +42 -45
  206. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +52 -57
  207. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +22 -27
  208. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +18 -21
  209. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +58 -67
  210. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +61 -70
  211. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +5 -7
  212. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +5 -7
  213. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +9 -11
  214. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +3 -5
  215. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +3 -6
  216. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +4 -6
  217. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +15 -15
  218. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +32 -35
  219. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +3 -6
  220. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +4 -6
  221. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +19 -26
  222. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +4 -6
  223. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +14 -21
  224. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +21 -29
  225. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +25 -22
  226. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +5 -7
  227. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +3 -7
  228. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +4 -8
  229. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +15 -19
  230. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +3 -5
  231. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +12 -14
  232. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -9
  233. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +2 -4
  234. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +8 -11
  235. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +32 -14
  236. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +16 -20
  237. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +21 -32
  238. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +7 -11
  239. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +5 -7
  240. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +5 -9
  241. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +5 -9
  242. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +12 -14
  243. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +3 -5
  244. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -26
  245. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +4 -9
  246. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +3 -5
  247. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +10 -20
  248. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +29 -42
  249. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +11 -13
  250. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +6 -9
  251. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +8 -10
  252. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +32 -36
  253. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -32
  254. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +16 -15
  255. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +23 -24
  256. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +2 -4
  257. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +2 -4
  258. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +2 -4
  259. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +13 -11
  260. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +20 -29
  261. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +34 -22
  262. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +7 -11
  263. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +41 -53
  264. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +28 -38
  265. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +23 -21
  266. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +15 -17
  267. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +18 -26
  268. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +10 -12
  269. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +19 -24
  270. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +554 -592
  271. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +4 -14
  272. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +48 -52
  273. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +10 -20
  274. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +11 -16
  275. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +14 -20
  276. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +9 -12
  277. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +2 -4
  278. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +3 -5
  279. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +16 -18
  280. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +11 -15
  281. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +8 -11
  282. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +6 -9
  283. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +198 -260
  284. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +25 -27
  285. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +2 -4
  286. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +49 -60
  287. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +4 -6
  288. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +3 -5
  289. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +35 -35
  290. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +25 -28
  291. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +33 -37
  292. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +5 -11
  293. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +8 -12
  294. package/dist/node_modules/motion-dom/dist/es/render/store.js +2 -4
  295. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +37 -39
  296. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +18 -30
  297. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +25 -27
  298. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +2 -4
  299. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +11 -13
  300. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +6 -10
  301. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +11 -14
  302. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +128 -138
  303. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +16 -19
  304. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +3 -5
  305. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +8 -11
  306. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +5 -8
  307. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +2 -4
  308. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +3 -5
  309. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +10 -12
  310. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +20 -23
  311. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +18 -24
  312. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +8 -14
  313. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +2 -5
  314. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +5 -7
  315. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +16 -18
  316. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +14 -18
  317. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +7 -13
  318. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +10 -13
  319. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +31 -35
  320. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +18 -21
  321. package/dist/node_modules/motion-dom/dist/es/resize/index.js +5 -7
  322. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +5 -0
  323. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +7 -0
  324. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +9 -11
  325. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +29 -40
  326. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +4 -6
  327. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +4 -6
  328. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +4 -6
  329. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +26 -27
  330. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +44 -45
  331. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +3 -5
  332. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +5 -7
  333. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +2 -4
  334. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +4 -7
  335. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +11 -14
  336. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +2 -4
  337. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +9 -11
  338. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +6 -8
  339. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +3 -5
  340. package/dist/node_modules/motion-dom/dist/es/value/index.js +89 -211
  341. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +4 -6
  342. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +15 -17
  343. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +17 -20
  344. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +9 -11
  345. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +12 -14
  346. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +12 -15
  347. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +13 -17
  348. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +22 -22
  349. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +43 -44
  350. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -10
  351. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +14 -9
  352. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +5 -7
  353. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +22 -27
  354. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +61 -69
  355. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +29 -36
  356. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +12 -16
  357. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +10 -17
  358. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +2 -4
  359. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +9 -11
  360. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +2 -4
  361. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +10 -8
  362. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +2 -4
  363. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +2 -4
  364. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +3 -5
  365. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +2 -4
  366. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +2 -4
  367. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +2 -4
  368. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +4 -6
  369. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +10 -13
  370. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +4 -6
  371. package/dist/node_modules/motion-utils/dist/es/array.js +6 -9
  372. package/dist/node_modules/motion-utils/dist/es/clamp.js +2 -4
  373. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +3 -5
  374. package/dist/node_modules/motion-utils/dist/es/easing/back.js +5 -9
  375. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +4 -8
  376. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +14 -17
  377. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +3 -7
  378. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +2 -4
  379. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +2 -4
  380. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +2 -4
  381. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +2 -4
  382. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +28 -31
  383. package/dist/node_modules/motion-utils/dist/es/errors.js +7 -13
  384. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +3 -5
  385. package/dist/node_modules/motion-utils/dist/es/global-config.js +2 -4
  386. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +2 -4
  387. package/dist/node_modules/motion-utils/dist/es/is-object.js +2 -4
  388. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +2 -4
  389. package/dist/node_modules/motion-utils/dist/es/memo.js +5 -7
  390. package/dist/node_modules/motion-utils/dist/es/noop.js +2 -4
  391. package/dist/node_modules/motion-utils/dist/es/pipe.js +2 -4
  392. package/dist/node_modules/motion-utils/dist/es/progress.js +4 -6
  393. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +23 -28
  394. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +2 -5
  395. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +2 -4
  396. package/dist/node_modules/motion-utils/dist/es/warn-once.js +5 -7
  397. package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
  398. package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
  399. package/dist/node_modules/prettier/standalone.js +3444 -2415
  400. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -21
  401. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +18 -14
  402. package/dist/node_modules/react/compiler-runtime.js +8 -10
  403. package/dist/utils/arrayService.js +0 -1
  404. package/dist/utils/color.js +46 -41
  405. package/dist/utils/component.js +60 -129
  406. package/dist/utils/contextStore.js +48 -58
  407. package/dist/utils/index.d.ts +1 -0
  408. package/dist/utils/index.js +7 -18
  409. package/dist/utils/motion.d.ts +55 -0
  410. package/dist/utils/motion.js +87 -0
  411. package/dist/utils/reactiveArrayService.js +80 -76
  412. package/dist/utils/size.js +14 -26
  413. package/dist/utils/utils.js +0 -1
  414. package/dist/utils/view.js +27 -24
  415. package/dist/vite-env.d.js +0 -1
  416. package/package.json +30 -25
  417. package/dist/_virtual/compiler-runtime.js +0 -5
  418. package/dist/_virtual/compiler-runtime2.js +0 -4
  419. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  420. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  421. package/dist/assets/components/alert/Alert.style.css +0 -1
  422. package/dist/assets/components/aurora/Aurora.style.css +0 -1
  423. package/dist/assets/components/avatar/Avatar.style.css +0 -1
  424. package/dist/assets/components/badge/Badge.style.css +0 -1
  425. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
  426. package/dist/assets/components/button/Button.style.css +0 -1
  427. package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
  428. package/dist/assets/components/card/Card.style.css +0 -1
  429. package/dist/assets/components/chart/Chart.style.css +0 -1
  430. package/dist/assets/components/col/Col.style.css +0 -1
  431. package/dist/assets/components/command/Command.style.css +0 -1
  432. package/dist/assets/components/container/Container.style.css +0 -1
  433. package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
  434. package/dist/assets/components/data-table/DataTable.style.css +0 -1
  435. package/dist/assets/components/dialog/Dialog.style.css +0 -1
  436. package/dist/assets/components/editor/Editor.styles.css +0 -1
  437. package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
  438. package/dist/assets/components/form/ColorInput.style.css +0 -1
  439. package/dist/assets/components/form/DateInput.style.css +0 -1
  440. package/dist/assets/components/form/EditorInput.style.css +0 -1
  441. package/dist/assets/components/form/FileInput.style.css +0 -1
  442. package/dist/assets/components/form/Input.style.css +0 -1
  443. package/dist/assets/components/form/InputWrapper.style.css +0 -1
  444. package/dist/assets/components/form/SelectInput.style.css +0 -1
  445. package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
  446. package/dist/assets/components/gantt/Gantt.style.css +0 -1
  447. package/dist/assets/components/icon/Icon.style.css +0 -1
  448. package/dist/assets/components/json-view/JsonView.style.css +0 -1
  449. package/dist/assets/components/layout/Layout.style.css +0 -1
  450. package/dist/assets/components/menu/Menu.style.css +0 -1
  451. package/dist/assets/components/progress/Progress.style.css +0 -1
  452. package/dist/assets/components/quote/Quote.style.css +0 -1
  453. package/dist/assets/components/resizable/Resizable.style.css +0 -1
  454. package/dist/assets/components/row/Row.style.css +0 -1
  455. package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
  456. package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
  457. package/dist/assets/components/tab/Tab.style.css +0 -1
  458. package/dist/assets/components/text/Text.style.css +0 -1
  459. package/dist/assets/components/toast/Toast.style.css +0 -1
  460. package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
  461. package/dist/components/icon/codezero/codezero.svg.js +0 -5
  462. package/dist/components/icon/codezero/gls.svg.js +0 -5
  463. /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
  464. /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
@@ -1,326 +1,356 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import m, { isValidElement as me } from "react";
3
- import { createPortal as H } from "react-dom";
4
- import "../../utils/contextStore.js";
5
- import { mergeComponentProps as he } from "../../utils/component.js";
6
- import { hashToColor as w } from "../../utils/color.js";
7
- import fe, { Prec as K, keymap as J, ViewPlugin as ge, RangeSetBuilder as pe, Decoration as F, EditorView as ye, WidgetType as be } from "@uiw/react-codemirror";
8
- import { json as ve, jsonParseLinter as Se } from "@codemirror/lang-json";
9
- import { syntaxTree as L } from "@codemirror/language";
10
- import { linter as we } from "@codemirror/lint";
11
- import Ce from "../../node_modules/prettier/standalone.js";
12
- import Te from "../../node_modules/prettier/plugins/babel.js";
13
- import xe from "../../node_modules/prettier/plugins/estree.js";
14
- import { createTheme as Ae } from "@uiw/codemirror-themes";
15
- import { getStyleTags as ke, tags as C } from "../../node_modules/@lezer/highlight/dist/index.js";
16
- import '../../assets/components/editor/Editor.styles.css';/* empty css */
17
- import { Badge as b } from "../badge/Badge.js";
18
- import { IconExclamationCircle as ze, IconAlertTriangle as je, IconAlertSquareRounded as Pe, IconInfoCircle as Ee, IconSpace as Ve, IconArrowBarToRight as Ne, IconCornerDownLeft as Ie } from "@tabler/icons-react";
19
- import { Text as a } from "../text/Text.js";
20
- import { Flex as x } from "../flex/Flex.js";
21
- import { Tooltip as A, TooltipTrigger as k, TooltipPortal as z, TooltipContent as j, TooltipArrow as P } from "../tooltip/Tooltip.js";
22
- import { ScrollArea as Re, ScrollAreaViewport as Me, ScrollAreaScrollbar as G, ScrollAreaThumb as Q } from "../scroll-area/ScrollArea.js";
23
- import { autocompletion as Be, acceptCompletion as Fe, startCompletion as E } from "@codemirror/autocomplete";
24
- function Oe(i, t, f) {
25
- return (t = qe(t)) in i ? Object.defineProperty(i, t, { value: f, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = f, i;
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import { hashToColor } from "../../utils/color.js";
3
+ import "../../utils/index.js";
4
+ import { Badge } from "../badge/Badge.js";
5
+ import { Flex } from "../flex/Flex.js";
6
+ import { Text } from "../text/Text.js";
7
+ import { ScrollArea, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "../scroll-area/ScrollArea.js";
8
+ import { Hn } from "../../node_modules/prettier/standalone.js";
9
+ import { Ks } from "../../node_modules/prettier/plugins/babel.js";
10
+ import { Ta } from "../../node_modules/prettier/plugins/estree.js";
11
+ import { getStyleTags, tags } from "../../node_modules/@lezer/highlight/dist/index.js";
12
+ import '../../assets/Editor.styles.css';/* empty css */
13
+ import { Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipTrigger } from "../tooltip/Tooltip.js";
14
+ import React, { isValidElement } from "react";
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ import { IconAlertSquareRounded, IconAlertTriangle, IconArrowBarToRight, IconCornerDownLeft, IconExclamationCircle, IconInfoCircle, IconSpace } from "@tabler/icons-react";
17
+ import { createPortal } from "react-dom";
18
+ import CodeMirror, { Decoration, EditorView, Prec, RangeSetBuilder, ViewPlugin, WidgetType, keymap } from "@uiw/react-codemirror";
19
+ import { json, jsonParseLinter } from "@codemirror/lang-json";
20
+ import { syntaxTree } from "@codemirror/language";
21
+ import { linter } from "@codemirror/lint";
22
+ import { createTheme } from "@uiw/codemirror-themes";
23
+ import { acceptCompletion, autocompletion, startCompletion } from "@codemirror/autocomplete";
24
+ function _defineProperty(e, m, h) {
25
+ return (m = _toPropertyKey(m)) in e ? Object.defineProperty(e, m, {
26
+ value: h,
27
+ enumerable: !0,
28
+ configurable: !0,
29
+ writable: !0
30
+ }) : e[m] = h, e;
26
31
  }
27
- function qe(i) {
28
- var t = We(i, "string");
29
- return typeof t == "symbol" ? t : t + "";
32
+ function _toPropertyKey(e) {
33
+ var m = _toPrimitive(e, "string");
34
+ return typeof m == "symbol" ? m : m + "";
30
35
  }
31
- function We(i, t) {
32
- if (typeof i != "object" || !i) return i;
33
- var f = i[Symbol.toPrimitive];
34
- if (f !== void 0) {
35
- var p = f.call(i, t);
36
- if (typeof p != "object") return p;
37
- throw new TypeError("@@toPrimitive must return a primitive value.");
38
- }
39
- return (t === "string" ? String : Number)(i);
36
+ function _toPrimitive(e, m) {
37
+ if (typeof e != "object" || !e) return e;
38
+ var h = e[Symbol.toPrimitive];
39
+ if (h !== void 0) {
40
+ var g = h.call(e, m || "default");
41
+ if (typeof g != "object") return g;
42
+ throw TypeError("@@toPrimitive must return a primitive value.");
43
+ }
44
+ return (m === "string" ? String : Number)(e);
40
45
  }
41
- class X extends be {
42
- constructor(t, f) {
43
- super(), this.type = t, this.rawValue = f;
44
- }
45
- toDOM() {
46
- const t = document.createElement("span");
47
- return t.className = "cm-react-anchor", t.dataset.type = this.type, t.dataset.value = this.rawValue, t.contentEditable = "false", t.style.pointerEvents = "none", t.style.verticalAlign = "middle", t.style.display = "inline-block", t;
48
- }
49
- ignoreEvent() {
50
- return !0;
51
- }
52
- eq(t) {
53
- return t.type === this.type && t.rawValue === this.rawValue;
54
- }
55
- }
56
- const _e = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array.isArray(i), dr = (i) => {
57
- const {
58
- language: t,
59
- tokenizer: f,
60
- tokenHighlights: p,
61
- tokenStyles: O = [],
62
- suggestions: V,
63
- onChange: q,
64
- extensions: Y = [],
65
- formatter: W,
66
- initialValue: v,
67
- formValidation: Z,
68
- disabled: N,
69
- showTooltips: $ = !0,
70
- showValidation: U = !0,
71
- readonly: ee,
72
- basicSetup: re,
73
- customSuggestionComponent: _ = !1,
74
- ...te
75
- } = i, [oe, I] = m.useState(), R = m.useRef(null), [ne, ie] = m.useState(/* @__PURE__ */ new Map()), [u, se] = m.useState([]), [T, le] = m.useState(null), [g, y] = m.useState(null), D = m.useRef(null);
76
- m.useEffect(() => {
77
- (async () => {
78
- try {
79
- const e = W ? await W(v) : t === "json" ? await Ce.format(JSON.stringify(v), {
80
- parser: "json",
81
- plugins: [Te, xe],
82
- printWidth: 1
83
- }) : v;
84
- I(e);
85
- } catch {
86
- I(t == "json" ? JSON.stringify(v) : v);
87
- }
88
- })();
89
- }, []);
90
- const ae = m.useMemo(() => {
91
- const e = [...Y];
92
- if (V) {
93
- const n = (o) => {
94
- const c = V(o);
95
- if (c && _e(c)) {
96
- const l = o.view?.coordsAtPos(o.pos);
97
- return l && y({
98
- component: c,
99
- position: {
100
- top: l.bottom,
101
- left: l.left
102
- }
103
- }), null;
104
- }
105
- return y(null), c;
106
- };
107
- e.push(Be({
108
- ..._ ? {
109
- override: [n]
110
- } : {
111
- override: [V]
112
- }
113
- })), e.push(K.highest(J.of([{
114
- key: "Tab",
115
- run: Fe
116
- }]))), _ && e.push(K.highest(J.of([{
117
- key: "ArrowUp",
118
- run: (o) => (g || E(o), !0)
119
- }, {
120
- key: "ArrowDown",
121
- run: (o) => g ? (R?.current?.querySelector("[tabindex]")?.focus(), !0) : (E(o), !0)
122
- }])));
123
- }
124
- t === "json" ? (e.push(ve()), e.push(we(Se(), {
125
- markerFilter: (n) => (se(n), [])
126
- }))) : t && e.push(t);
127
- const d = ge.fromClass(class {
128
- constructor(n) {
129
- Oe(this, "decorations", void 0), this.decorations = this.build(n);
130
- }
131
- update(n) {
132
- (n.docChanged || n.viewportChanged) && (this.decorations = this.build(n.view));
133
- }
134
- build(n) {
135
- const o = new pe(), c = Object.keys(p || {});
136
- return L(n.state).iterate({
137
- enter: (l) => {
138
- const h = n.state.doc.sliceString(l.from, l.to);
139
- if (h.includes(`
140
- `)) return;
141
- const M = f?.(h), de = ke(l)?.tags.map((S) => "name" in S ? S.name : void 0), B = c.find((S) => de?.includes(S));
142
- B && !M ? p?.[B]({
143
- content: h
144
- }) && o.add(l.from, l.to, F.replace({
145
- widget: new X(B, h),
146
- point: !0
147
- })) : M && o.add(l.from, l.to, F.replace({
148
- widget: new X(M, h),
149
- point: !0
150
- }));
151
- }
152
- }), o.finish();
153
- }
154
- }, {
155
- decorations: (n) => n.decorations
156
- });
157
- return e.push(d), e.push(ye.atomicRanges.of((n) => n.plugin(d)?.decorations || F.none)), e;
158
- }, [R]), ce = m.useCallback((e) => {
159
- if (e.docChanged || e.viewportChanged || e.selectionSet) {
160
- if (e.view) {
161
- const {
162
- from: o,
163
- to: c
164
- } = e.state?.selection?.main ?? {
165
- from: 0,
166
- to: 0
167
- };
168
- let l = 0;
169
- L(e.state).iterate({
170
- from: o,
171
- to: c,
172
- enter: (h) => {
173
- h.from >= o && h.to <= c && l++;
174
- }
175
- }), e.selectionSet && l < 2 ? (o === c && o !== T?.from ? y(null) : o === c && o === T?.from && o != 0 ? y((h) => h) : o === c && o === T?.from && o == 0 && y(null), E(e.view)) : e.selectionSet && l >= 2 && y(null), le({
176
- from: o,
177
- to: c
178
- });
179
- } else e.selectionSet && (y(null), E(e.view));
180
- const d = D.current?.querySelectorAll(".cm-react-anchor"), n = /* @__PURE__ */ new Map();
181
- d?.forEach((o) => {
182
- n.set(o, {
183
- type: o.dataset.type,
184
- value: o.dataset.value
185
- });
186
- }), ie(n);
187
- }
188
- }, [T]), ue = m.useMemo(() => Ae({
189
- theme: "light",
190
- settings: {
191
- background: "transparent",
192
- backgroundImage: "",
193
- foreground: "rgba(255,255,255, 0.75)",
194
- caret: "gray",
195
- selection: "rgba(112,179,255,0.25)",
196
- selectionMatch: "rgba(112,179,255,0.1)",
197
- fontSize: "0.8rem",
198
- gutterBackground: "transparent",
199
- gutterForeground: "rgba(255,255,255, 0.5)",
200
- gutterBorder: "transparent",
201
- gutterActiveForeground: "rgba(255,255,255, 1)",
202
- lineHighlight: "rgba(255,255,255, 0.1)"
203
- },
204
- styles: [{
205
- tag: C.squareBracket,
206
- color: w("squareBracket")
207
- }, {
208
- tag: C.bracket,
209
- color: w("bracket")
210
- }, {
211
- tag: C.string,
212
- color: w("Text")
213
- }, {
214
- tag: C.bool,
215
- color: w("Boolean")
216
- }, {
217
- tag: C.number,
218
- color: w("Number")
219
- }, ...O]
220
- }), [O]);
221
- return /* @__PURE__ */ s(Re, { h: "100%", type: "scroll", children: [
222
- U && /* @__PURE__ */ r("div", { className: "editor__diagnostics", children: /* @__PURE__ */ s(x, { style: {
223
- gap: "0.35rem",
224
- textWrap: "nowrap"
225
- }, align: "center", children: [
226
- u.filter((e) => e.severity == "error").length > 0 ? /* @__PURE__ */ s(A, { children: [
227
- /* @__PURE__ */ r(k, { asChild: !0, children: /* @__PURE__ */ s(b, { color: "red", children: [
228
- /* @__PURE__ */ r(ze, { size: 13 }),
229
- /* @__PURE__ */ r(a, { children: u.filter((e) => e.severity == "error").length })
230
- ] }) }),
231
- /* @__PURE__ */ r(z, { children: /* @__PURE__ */ s(j, { side: "bottom", children: [
232
- /* @__PURE__ */ r(P, {}),
233
- u.filter((e) => e.severity == "error").map((e) => /* @__PURE__ */ r(a, { size: "xs", children: e.message }, e.message))
234
- ] }) })
235
- ] }) : null,
236
- u.filter((e) => e.severity == "warning").length > 0 ? /* @__PURE__ */ s(A, { children: [
237
- /* @__PURE__ */ r(k, { asChild: !0, children: /* @__PURE__ */ s(b, { color: "orange", children: [
238
- /* @__PURE__ */ r(je, { size: 13 }),
239
- /* @__PURE__ */ r(a, { children: u.filter((e) => e.severity == "warning").length })
240
- ] }) }),
241
- /* @__PURE__ */ r(z, { children: /* @__PURE__ */ s(j, { side: "bottom", children: [
242
- /* @__PURE__ */ r(P, {}),
243
- u.filter((e) => e.severity == "warning").map((e) => /* @__PURE__ */ r(a, { size: "xs", children: e.message }, e.message))
244
- ] }) })
245
- ] }) : null,
246
- u.filter((e) => e.severity == "info").length > 0 ? /* @__PURE__ */ s(A, { children: [
247
- /* @__PURE__ */ r(k, { asChild: !0, children: /* @__PURE__ */ s(b, { color: "#9ca3af", children: [
248
- /* @__PURE__ */ r(Pe, { size: 13 }),
249
- /* @__PURE__ */ r(a, { children: u.filter((e) => e.severity == "info").length })
250
- ] }) }),
251
- /* @__PURE__ */ r(z, { children: /* @__PURE__ */ s(j, { side: "bottom", children: [
252
- /* @__PURE__ */ r(P, {}),
253
- u.filter((e) => e.severity == "info").map((e) => /* @__PURE__ */ r(a, { size: "xs", children: e.message }, e.message))
254
- ] }) })
255
- ] }) : null,
256
- u.filter((e) => e.severity == "hint").length > 0 ? /* @__PURE__ */ s(A, { children: [
257
- /* @__PURE__ */ r(k, { asChild: !0, children: /* @__PURE__ */ s(b, { color: "#3b82f6", children: [
258
- /* @__PURE__ */ r(Ee, { size: 13 }),
259
- /* @__PURE__ */ r(a, { children: u.filter((e) => e.severity == "hint").length })
260
- ] }) }),
261
- /* @__PURE__ */ r(z, { children: /* @__PURE__ */ s(j, { side: "bottom", children: [
262
- /* @__PURE__ */ r(P, {}),
263
- u.filter((e) => e.severity == "hint").map((e) => /* @__PURE__ */ r(a, { size: "xs", children: e.message }, e.message))
264
- ] }) })
265
- ] }) : null
266
- ] }) }),
267
- $ && /* @__PURE__ */ r("div", { className: "editor__tools", children: /* @__PURE__ */ s(x, { style: {
268
- gap: "0.35rem",
269
- textWrap: "nowrap"
270
- }, align: "center", children: [
271
- /* @__PURE__ */ s(x, { style: {
272
- gap: "0.35rem"
273
- }, align: "center", children: [
274
- /* @__PURE__ */ s(b, { color: "secondary", border: !0, children: [
275
- /* @__PURE__ */ r(a, { children: navigator !== void 0 && /Mac/.test(navigator.userAgent) ? "⌃" : "strg" }),
276
- /* @__PURE__ */ r(a, { children: "+" }),
277
- /* @__PURE__ */ r(Ve, { size: 13 })
278
- ] }),
279
- /* @__PURE__ */ r(a, { children: "to show" })
280
- ] }),
281
- /* @__PURE__ */ r(a, { children: "and" }),
282
- /* @__PURE__ */ s(x, { style: {
283
- gap: "0.35rem"
284
- }, align: "center", children: [
285
- /* @__PURE__ */ s(b, { color: "secondary", border: !0, children: [
286
- /* @__PURE__ */ r(Ne, { size: 13 }),
287
- /* @__PURE__ */ r(a, { children: "or" }),
288
- /* @__PURE__ */ r(Ie, { size: 13 })
289
- ] }),
290
- /* @__PURE__ */ r(a, { children: "to select" })
291
- ] }),
292
- /* @__PURE__ */ r(a, { children: "suggestions" })
293
- ] }) }),
294
- /* @__PURE__ */ r(Me, { asChild: !0, children: /* @__PURE__ */ s("div", { ref: D, ...he("editor", te), children: [
295
- /* @__PURE__ */ r(fe, { width: "100%", height: "100%", value: oe, theme: ue, readOnly: N || ee, editable: !N, extensions: ae, "aria-disabled": N, className: "editor__control", onChange: (e) => {
296
- if (I(e), t === "json")
297
- try {
298
- const d = JSON.parse(e);
299
- q?.(d), Z?.setValue?.(d);
300
- } catch {
301
- }
302
- else
303
- q?.(e);
304
- }, onUpdate: ce, basicSetup: re }),
305
- p && Array.from(ne.entries()).map(([e, d]) => {
306
- const n = p[d.type];
307
- return n ? H(/* @__PURE__ */ r("div", { style: {
308
- display: "contents"
309
- }, children: n({
310
- content: d.value
311
- }) }, e.outerHTML + d.value), e) : null;
312
- }),
313
- g && H(/* @__PURE__ */ r("div", { ref: R, style: {
314
- position: "fixed",
315
- top: g.position.top,
316
- left: g.position.left,
317
- zIndex: 9999
318
- }, children: g.component }, g.position.top + "-" + g.position.left), document.body)
319
- ] }) }),
320
- /* @__PURE__ */ r(G, { orientation: "vertical", children: /* @__PURE__ */ r(Q, {}) }),
321
- /* @__PURE__ */ r(G, { orientation: "horizontal", children: /* @__PURE__ */ r(Q, {}) })
322
- ] });
323
- };
324
- export {
325
- dr as Editor
46
+ var ReactAnchorWidget = class extends WidgetType {
47
+ constructor(e, m) {
48
+ super(), this.type = e, this.rawValue = m;
49
+ }
50
+ toDOM() {
51
+ let e = document.createElement("span");
52
+ return e.className = "cm-react-anchor", e.dataset.type = this.type, e.dataset.value = this.rawValue, e.contentEditable = "false", e.style.pointerEvents = "none", e.style.verticalAlign = "middle", e.style.display = "inline-block", e;
53
+ }
54
+ ignoreEvent() {
55
+ return !0;
56
+ }
57
+ eq(e) {
58
+ return e.type === this.type && e.rawValue === this.rawValue;
59
+ }
60
+ }, isReactNode = (e) => isValidElement(e) || typeof e == "string" || typeof e == "number" || Array.isArray(e);
61
+ const Editor = (x) => {
62
+ let { language: S, tokenizer: C, tokenHighlights: w, tokenStyles: T = [], suggestions: E, onChange: D, extensions: O = [], formatter: k, initialValue: A, formValidation: j, disabled: M, showTooltips: N = !0, showValidation: P = !0, readonly: F, basicSetup: I, customSuggestionComponent: L = !1, ...R } = x, [z, B] = React.useState(), V = React.useRef(null), [H, U] = React.useState(/* @__PURE__ */ new Map()), [W, G] = React.useState([]), [K, q] = React.useState(null), [J, Y] = React.useState(null), X = React.useRef(null);
63
+ React.useEffect(() => {
64
+ (async () => {
65
+ try {
66
+ B(k ? await k(A) : S === "json" ? await Hn.format(JSON.stringify(A), {
67
+ parser: "json",
68
+ plugins: [Ks, Ta],
69
+ printWidth: 1
70
+ }) : A);
71
+ } catch {
72
+ B(S == "json" ? JSON.stringify(A) : A);
73
+ }
74
+ })();
75
+ }, []);
76
+ let Z = React.useMemo(() => {
77
+ let e = [...O];
78
+ E && (e.push(autocompletion({ ...L ? { override: [(e) => {
79
+ let m = E(e);
80
+ if (m && isReactNode(m)) {
81
+ let h = e.view?.coordsAtPos(e.pos);
82
+ return h && Y({
83
+ component: m,
84
+ position: {
85
+ top: h.bottom,
86
+ left: h.left
87
+ }
88
+ }), null;
89
+ }
90
+ return Y(null), m;
91
+ }] } : { override: [E] } })), e.push(Prec.highest(keymap.of([{
92
+ key: "Tab",
93
+ run: acceptCompletion
94
+ }]))), L && e.push(Prec.highest(keymap.of([{
95
+ key: "ArrowUp",
96
+ run: (e) => (J || startCompletion(e), !0)
97
+ }, {
98
+ key: "ArrowDown",
99
+ run: (e) => J ? (V?.current?.querySelector("[tabindex]")?.focus(), !0) : (startCompletion(e), !0)
100
+ }])))), S === "json" ? (e.push(json()), e.push(linter(jsonParseLinter(), { markerFilter: (e) => (G(e), []) }))) : S && e.push(S);
101
+ let m = ViewPlugin.fromClass(class {
102
+ constructor(e) {
103
+ _defineProperty(this, "decorations", void 0), this.decorations = this.build(e);
104
+ }
105
+ update(e) {
106
+ (e.docChanged || e.viewportChanged) && (this.decorations = this.build(e.view));
107
+ }
108
+ build(e) {
109
+ let m = new RangeSetBuilder(), h = Object.keys(w || {});
110
+ return syntaxTree(e.state).iterate({ enter: (g) => {
111
+ let _ = e.state.doc.sliceString(g.from, g.to);
112
+ if (_.includes("\n")) return;
113
+ let v = C?.(_), y = getStyleTags(g)?.tags.map((e) => "name" in e ? e.name : void 0), b = h.find((e) => y?.includes(e));
114
+ b && !v ? w?.[b]({ content: _ }) && m.add(g.from, g.to, Decoration.replace({
115
+ widget: new ReactAnchorWidget(b, _),
116
+ point: !0
117
+ })) : v && m.add(g.from, g.to, Decoration.replace({
118
+ widget: new ReactAnchorWidget(v, _),
119
+ point: !0
120
+ }));
121
+ } }), m.finish();
122
+ }
123
+ }, { decorations: (e) => e.decorations });
124
+ return e.push(m), e.push(EditorView.atomicRanges.of((e) => e.plugin(m)?.decorations || Decoration.none)), e;
125
+ }, [V]), Q = React.useCallback((e) => {
126
+ if (e.docChanged || e.viewportChanged || e.selectionSet) {
127
+ if (e.view) {
128
+ let { from: m, to: h } = e.state?.selection?.main ?? {
129
+ from: 0,
130
+ to: 0
131
+ }, g = 0;
132
+ syntaxTree(e.state).iterate({
133
+ from: m,
134
+ to: h,
135
+ enter: (e) => {
136
+ e.from >= m && e.to <= h && g++;
137
+ }
138
+ }), e.selectionSet && g < 2 ? (m === h && m !== K?.from ? Y(null) : m === h && m === K?.from && m != 0 ? Y((e) => e) : m === h && m === K?.from && m == 0 && Y(null), startCompletion(e.view)) : e.selectionSet && g >= 2 && Y(null), q({
139
+ from: m,
140
+ to: h
141
+ });
142
+ } else e.selectionSet && (Y(null), startCompletion(e.view));
143
+ let m = X.current?.querySelectorAll(".cm-react-anchor"), h = /* @__PURE__ */ new Map();
144
+ m?.forEach((e) => {
145
+ h.set(e, {
146
+ type: e.dataset.type,
147
+ value: e.dataset.value
148
+ });
149
+ }), U(h);
150
+ }
151
+ }, [K]), $ = React.useMemo(() => createTheme({
152
+ theme: "light",
153
+ settings: {
154
+ background: "transparent",
155
+ backgroundImage: "",
156
+ foreground: "rgba(255,255,255, 0.75)",
157
+ caret: "gray",
158
+ selection: "rgba(112,179,255,0.25)",
159
+ selectionMatch: "rgba(112,179,255,0.1)",
160
+ fontSize: "0.8rem",
161
+ gutterBackground: "transparent",
162
+ gutterForeground: "rgba(255,255,255, 0.5)",
163
+ gutterBorder: "transparent",
164
+ gutterActiveForeground: "rgba(255,255,255, 1)",
165
+ lineHighlight: "rgba(255,255,255, 0.1)"
166
+ },
167
+ styles: [
168
+ {
169
+ tag: tags.squareBracket,
170
+ color: hashToColor("squareBracket")
171
+ },
172
+ {
173
+ tag: tags.bracket,
174
+ color: hashToColor("bracket")
175
+ },
176
+ {
177
+ tag: tags.string,
178
+ color: hashToColor("Text")
179
+ },
180
+ {
181
+ tag: tags.bool,
182
+ color: hashToColor("Boolean")
183
+ },
184
+ {
185
+ tag: tags.number,
186
+ color: hashToColor("Number")
187
+ },
188
+ ...T
189
+ ]
190
+ }), [T]);
191
+ return /* @__PURE__ */ jsxs(ScrollArea, {
192
+ h: "100%",
193
+ type: "scroll",
194
+ children: [
195
+ P && /* @__PURE__ */ jsx("div", {
196
+ className: "editor__diagnostics",
197
+ children: /* @__PURE__ */ jsxs(Flex, {
198
+ style: {
199
+ gap: "0.35rem",
200
+ textWrap: "nowrap"
201
+ },
202
+ align: "center",
203
+ children: [
204
+ W.filter((e) => e.severity == "error").length > 0 ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
205
+ asChild: !0,
206
+ children: /* @__PURE__ */ jsxs(Badge, {
207
+ color: "red",
208
+ children: [/* @__PURE__ */ jsx(IconExclamationCircle, { size: 13 }), /* @__PURE__ */ jsx(Text, { children: W.filter((e) => e.severity == "error").length })]
209
+ })
210
+ }), /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsxs(TooltipContent, {
211
+ side: "bottom",
212
+ children: [/* @__PURE__ */ jsx(TooltipArrow, {}), W.filter((e) => e.severity == "error").map((e) => /* @__PURE__ */ jsx(Text, {
213
+ size: "xs",
214
+ children: e.message
215
+ }, e.message))]
216
+ }) })] }) : null,
217
+ W.filter((e) => e.severity == "warning").length > 0 ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
218
+ asChild: !0,
219
+ children: /* @__PURE__ */ jsxs(Badge, {
220
+ color: "orange",
221
+ children: [/* @__PURE__ */ jsx(IconAlertTriangle, { size: 13 }), /* @__PURE__ */ jsx(Text, { children: W.filter((e) => e.severity == "warning").length })]
222
+ })
223
+ }), /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsxs(TooltipContent, {
224
+ side: "bottom",
225
+ children: [/* @__PURE__ */ jsx(TooltipArrow, {}), W.filter((e) => e.severity == "warning").map((e) => /* @__PURE__ */ jsx(Text, {
226
+ size: "xs",
227
+ children: e.message
228
+ }, e.message))]
229
+ }) })] }) : null,
230
+ W.filter((e) => e.severity == "info").length > 0 ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
231
+ asChild: !0,
232
+ children: /* @__PURE__ */ jsxs(Badge, {
233
+ color: "#9ca3af",
234
+ children: [/* @__PURE__ */ jsx(IconAlertSquareRounded, { size: 13 }), /* @__PURE__ */ jsx(Text, { children: W.filter((e) => e.severity == "info").length })]
235
+ })
236
+ }), /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsxs(TooltipContent, {
237
+ side: "bottom",
238
+ children: [/* @__PURE__ */ jsx(TooltipArrow, {}), W.filter((e) => e.severity == "info").map((e) => /* @__PURE__ */ jsx(Text, {
239
+ size: "xs",
240
+ children: e.message
241
+ }, e.message))]
242
+ }) })] }) : null,
243
+ W.filter((e) => e.severity == "hint").length > 0 ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
244
+ asChild: !0,
245
+ children: /* @__PURE__ */ jsxs(Badge, {
246
+ color: "#3b82f6",
247
+ children: [/* @__PURE__ */ jsx(IconInfoCircle, { size: 13 }), /* @__PURE__ */ jsx(Text, { children: W.filter((e) => e.severity == "hint").length })]
248
+ })
249
+ }), /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsxs(TooltipContent, {
250
+ side: "bottom",
251
+ children: [/* @__PURE__ */ jsx(TooltipArrow, {}), W.filter((e) => e.severity == "hint").map((e) => /* @__PURE__ */ jsx(Text, {
252
+ size: "xs",
253
+ children: e.message
254
+ }, e.message))]
255
+ }) })] }) : null
256
+ ]
257
+ })
258
+ }),
259
+ N && /* @__PURE__ */ jsx("div", {
260
+ className: "editor__tools",
261
+ children: /* @__PURE__ */ jsxs(Flex, {
262
+ style: {
263
+ gap: "0.35rem",
264
+ textWrap: "nowrap"
265
+ },
266
+ align: "center",
267
+ children: [
268
+ /* @__PURE__ */ jsxs(Flex, {
269
+ style: { gap: "0.35rem" },
270
+ align: "center",
271
+ children: [/* @__PURE__ */ jsxs(Badge, {
272
+ color: "secondary",
273
+ border: !0,
274
+ children: [
275
+ /* @__PURE__ */ jsx(Text, { children: navigator !== void 0 && /Mac/.test(navigator.userAgent) ? "⌃" : "strg" }),
276
+ /* @__PURE__ */ jsx(Text, { children: "+" }),
277
+ /* @__PURE__ */ jsx(IconSpace, { size: 13 })
278
+ ]
279
+ }), /* @__PURE__ */ jsx(Text, { children: "to show" })]
280
+ }),
281
+ /* @__PURE__ */ jsx(Text, { children: "and" }),
282
+ /* @__PURE__ */ jsxs(Flex, {
283
+ style: { gap: "0.35rem" },
284
+ align: "center",
285
+ children: [/* @__PURE__ */ jsxs(Badge, {
286
+ color: "secondary",
287
+ border: !0,
288
+ children: [
289
+ /* @__PURE__ */ jsx(IconArrowBarToRight, { size: 13 }),
290
+ /* @__PURE__ */ jsx(Text, { children: "or" }),
291
+ /* @__PURE__ */ jsx(IconCornerDownLeft, { size: 13 })
292
+ ]
293
+ }), /* @__PURE__ */ jsx(Text, { children: "to select" })]
294
+ }),
295
+ /* @__PURE__ */ jsx(Text, { children: "suggestions" })
296
+ ]
297
+ })
298
+ }),
299
+ /* @__PURE__ */ jsx(ScrollAreaViewport, {
300
+ asChild: !0,
301
+ children: /* @__PURE__ */ jsxs("div", {
302
+ ref: X,
303
+ ...mergeComponentProps("editor", R),
304
+ children: [
305
+ /* @__PURE__ */ jsx(CodeMirror, {
306
+ width: "100%",
307
+ height: "100%",
308
+ value: z,
309
+ theme: $,
310
+ readOnly: M || F,
311
+ editable: !M,
312
+ extensions: Z,
313
+ "aria-disabled": M,
314
+ className: "editor__control",
315
+ onChange: (e) => {
316
+ if (B(e), S === "json") try {
317
+ let m = JSON.parse(e);
318
+ D?.(m), j?.setValue?.(m);
319
+ } catch {}
320
+ else D?.(e);
321
+ },
322
+ onUpdate: Q,
323
+ basicSetup: I
324
+ }),
325
+ w && Array.from(H.entries()).map(([e, m]) => {
326
+ let h = w[m.type];
327
+ return h ? createPortal(/* @__PURE__ */ jsx("div", {
328
+ style: { display: "contents" },
329
+ children: h({ content: m.value })
330
+ }, e.outerHTML + m.value), e) : null;
331
+ }),
332
+ J && createPortal(/* @__PURE__ */ jsx("div", {
333
+ ref: V,
334
+ style: {
335
+ position: "fixed",
336
+ top: J.position.top,
337
+ left: J.position.left,
338
+ zIndex: 9999
339
+ },
340
+ children: J.component
341
+ }, J.position.top + "-" + J.position.left), document.body)
342
+ ]
343
+ })
344
+ }),
345
+ /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
346
+ orientation: "vertical",
347
+ children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
348
+ }),
349
+ /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
350
+ orientation: "horizontal",
351
+ children: /* @__PURE__ */ jsx(ScrollAreaThumb, {})
352
+ })
353
+ ]
354
+ });
326
355
  };
356
+ export { Editor };