@code0-tech/pictor 1.0.0 → 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 (459) 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 -21
  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.js +119 -112
  59. package/dist/components/data-table/DataTable.js +53 -64
  60. package/dist/components/data-table/DataTableColumn.js +18 -22
  61. package/dist/components/data-table/DataTableFilterInput.js +208 -205
  62. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +59 -48
  63. package/dist/components/data-table/DataTableHeader.js +34 -38
  64. package/dist/components/data-table/DataTablePagination.js +62 -74
  65. package/dist/components/data-table/index.js +7 -22
  66. package/dist/components/dialog/Dialog.js +107 -97
  67. package/dist/components/editor/Editor.js +352 -323
  68. package/dist/components/file-tabs/FileTabs.js +78 -73
  69. package/dist/components/file-tabs/FileTabs.service.js +85 -87
  70. package/dist/components/file-tabs/FileTabs.view.js +0 -1
  71. package/dist/components/file-tabs/index.js +3 -9
  72. package/dist/components/flex/Flex.js +19 -23
  73. package/dist/components/form/CheckboxInput.js +73 -76
  74. package/dist/components/form/ColorInput.js +378 -353
  75. package/dist/components/form/DateInput.js +315 -265
  76. package/dist/components/form/EditorInput.js +597 -579
  77. package/dist/components/form/EmailInput.js +30 -23
  78. package/dist/components/form/FileInput.js +93 -123
  79. package/dist/components/form/Input.js +64 -58
  80. package/dist/components/form/Input.utils.js +25 -37
  81. package/dist/components/form/InputDescription.js +11 -11
  82. package/dist/components/form/InputLabel.js +18 -22
  83. package/dist/components/form/InputMessage.js +17 -17
  84. package/dist/components/form/InputWrapper.js +56 -65
  85. package/dist/components/form/NumberInput.js +41 -20
  86. package/dist/components/form/PasswordInput.js +71 -54
  87. package/dist/components/form/PinInput.js +50 -65
  88. package/dist/components/form/RadioGroup.js +42 -50
  89. package/dist/components/form/RadioInput.js +31 -29
  90. package/dist/components/form/SelectInput.js +69 -92
  91. package/dist/components/form/SwitchInput.js +17 -18
  92. package/dist/components/form/TagInput.js +108 -122
  93. package/dist/components/form/TextAreaInput.js +24 -21
  94. package/dist/components/form/TextInput.js +30 -22
  95. package/dist/components/form/index.js +22 -87
  96. package/dist/components/form/useForm.js +87 -88
  97. package/dist/components/fullscreen/FullScreen.js +28 -27
  98. package/dist/components/gantt/Gantt.js +100 -98
  99. package/dist/components/gantt/GanttGroup.js +210 -195
  100. package/dist/components/gantt/GanttHeader.js +79 -81
  101. package/dist/components/gantt/GanttItem.js +19 -22
  102. package/dist/components/icon/Icon.d.ts +6 -4
  103. package/dist/components/icon/Icon.js +53 -42
  104. package/dist/components/icon/codezero/codezero.js +10 -0
  105. package/dist/components/icon/codezero/gls.js +9 -0
  106. package/dist/components/icon/codezero/index.js +17 -13
  107. package/dist/components/json-view/JsonView.js +120 -109
  108. package/dist/components/layout/Layout.js +101 -78
  109. package/dist/components/menu/Menu.js +135 -128
  110. package/dist/components/progress/ProgressCircle.js +60 -49
  111. package/dist/components/progress/ProgressLinear.js +39 -43
  112. package/dist/components/quote/Quote.js +52 -43
  113. package/dist/components/resizable/Resizable.js +36 -33
  114. package/dist/components/row/Row.js +19 -23
  115. package/dist/components/scroll-area/ScrollArea.js +66 -76
  116. package/dist/components/segmented-control/SegmentedControl.js +46 -50
  117. package/dist/components/spacing/Spacing.js +16 -23
  118. package/dist/components/tab/Tab.js +73 -66
  119. package/dist/components/text/Text.js +19 -25
  120. package/dist/components/toast/Toast.js +104 -82
  121. package/dist/components/tooltip/Tooltip.js +66 -55
  122. package/dist/index.js +76 -272
  123. package/dist/node_modules/@lezer/common/dist/index.js +778 -143
  124. package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
  125. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +55 -55
  126. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +49 -32
  127. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +57 -46
  128. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -16
  129. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +8 -11
  130. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +4 -5
  131. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +4 -5
  132. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +7 -8
  133. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -11
  134. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +4 -5
  135. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +12 -14
  136. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +4 -5
  137. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +4 -5
  138. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +5 -7
  139. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +8 -13
  140. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +252 -281
  141. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -21
  142. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +57 -67
  143. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +24 -27
  144. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +16 -19
  145. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -124
  146. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +39 -42
  147. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +22 -27
  148. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +36 -44
  149. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +22 -32
  150. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +6 -12
  151. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +47 -37
  152. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +12 -16
  153. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +10 -20
  154. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +58 -59
  155. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +7 -11
  156. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -13
  157. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +42 -43
  158. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +19 -18
  159. package/dist/node_modules/framer-motion/dist/es/motion/index.js +64 -58
  160. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +2 -4
  161. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -20
  162. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +53 -62
  163. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +45 -49
  164. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +4 -38
  165. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +7 -17
  166. package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +3 -0
  167. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +10 -12
  168. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +5 -7
  169. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -10
  170. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -15
  171. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +14 -18
  172. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +4 -23
  173. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +8 -9
  174. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +20 -23
  175. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +6 -8
  176. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +27 -29
  177. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +23 -21
  178. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +8 -9
  179. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +5 -7
  180. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +5 -8
  181. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +2 -4
  182. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +2 -4
  183. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +3 -5
  184. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +10 -11
  185. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +20 -25
  186. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +6 -7
  187. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +5 -6
  188. package/dist/node_modules/motion/dist/es/react.js +196 -0
  189. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +104 -111
  190. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +126 -143
  191. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +81 -105
  192. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +25 -37
  193. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +7 -9
  194. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +10 -16
  195. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +29 -36
  196. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +18 -28
  197. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +156 -170
  198. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +6 -12
  199. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -12
  200. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +3 -5
  201. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +6 -8
  202. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +42 -45
  203. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +52 -57
  204. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +22 -27
  205. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +18 -21
  206. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +58 -67
  207. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +61 -70
  208. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +5 -7
  209. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +5 -7
  210. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +9 -11
  211. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +3 -5
  212. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +3 -6
  213. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +4 -6
  214. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +15 -15
  215. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +32 -35
  216. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +3 -6
  217. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +4 -6
  218. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +19 -26
  219. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +4 -6
  220. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +14 -21
  221. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +21 -29
  222. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +25 -22
  223. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +5 -7
  224. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +3 -7
  225. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +4 -8
  226. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +15 -19
  227. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +3 -5
  228. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +12 -14
  229. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -9
  230. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +2 -4
  231. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +8 -11
  232. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +32 -14
  233. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +16 -20
  234. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +21 -32
  235. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +7 -11
  236. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +5 -7
  237. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +5 -9
  238. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +5 -9
  239. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +12 -14
  240. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +3 -5
  241. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -26
  242. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +4 -9
  243. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +3 -5
  244. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +10 -20
  245. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +29 -42
  246. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +11 -13
  247. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +6 -9
  248. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +8 -10
  249. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +32 -36
  250. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -32
  251. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +16 -15
  252. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +23 -24
  253. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +2 -4
  254. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +2 -4
  255. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +2 -4
  256. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +13 -11
  257. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +20 -29
  258. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +34 -22
  259. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +7 -11
  260. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +41 -53
  261. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +28 -38
  262. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +23 -21
  263. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +15 -17
  264. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +18 -26
  265. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +10 -12
  266. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +19 -24
  267. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +554 -592
  268. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +4 -14
  269. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +48 -52
  270. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +10 -20
  271. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +11 -16
  272. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +14 -20
  273. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +9 -12
  274. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +2 -4
  275. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +3 -5
  276. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +16 -18
  277. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +11 -15
  278. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +8 -11
  279. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +6 -9
  280. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +198 -260
  281. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +25 -27
  282. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +2 -4
  283. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +49 -60
  284. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +4 -6
  285. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +3 -5
  286. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +35 -35
  287. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +25 -28
  288. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +33 -37
  289. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +5 -11
  290. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +8 -12
  291. package/dist/node_modules/motion-dom/dist/es/render/store.js +2 -4
  292. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +37 -39
  293. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +18 -30
  294. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +25 -27
  295. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +2 -4
  296. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +11 -13
  297. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +6 -10
  298. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +11 -14
  299. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +128 -138
  300. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +16 -19
  301. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +3 -5
  302. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +8 -11
  303. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +5 -8
  304. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +2 -4
  305. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +3 -5
  306. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +10 -12
  307. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +20 -23
  308. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +18 -24
  309. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +8 -14
  310. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +2 -5
  311. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +5 -7
  312. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +16 -18
  313. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +14 -18
  314. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +7 -13
  315. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +10 -13
  316. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +31 -35
  317. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +18 -21
  318. package/dist/node_modules/motion-dom/dist/es/resize/index.js +5 -7
  319. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +5 -0
  320. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +7 -0
  321. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +9 -11
  322. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +29 -40
  323. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +4 -6
  324. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +4 -6
  325. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +4 -6
  326. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +26 -27
  327. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +44 -45
  328. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +3 -5
  329. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +5 -7
  330. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +2 -4
  331. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +4 -7
  332. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +11 -14
  333. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +2 -4
  334. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +9 -11
  335. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +6 -8
  336. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +3 -5
  337. package/dist/node_modules/motion-dom/dist/es/value/index.js +89 -211
  338. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +4 -6
  339. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +15 -17
  340. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +17 -20
  341. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +9 -11
  342. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +12 -14
  343. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +12 -15
  344. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +13 -17
  345. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +22 -22
  346. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +43 -44
  347. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -10
  348. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +14 -9
  349. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +5 -7
  350. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +22 -27
  351. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +61 -69
  352. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +29 -36
  353. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +12 -16
  354. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +10 -17
  355. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +2 -4
  356. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +9 -11
  357. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +2 -4
  358. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +10 -8
  359. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +2 -4
  360. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +2 -4
  361. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +3 -5
  362. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +2 -4
  363. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +2 -4
  364. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +2 -4
  365. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +4 -6
  366. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +10 -13
  367. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +4 -6
  368. package/dist/node_modules/motion-utils/dist/es/array.js +6 -9
  369. package/dist/node_modules/motion-utils/dist/es/clamp.js +2 -4
  370. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +3 -5
  371. package/dist/node_modules/motion-utils/dist/es/easing/back.js +5 -9
  372. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +4 -8
  373. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +14 -17
  374. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +3 -7
  375. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +2 -4
  376. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +2 -4
  377. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +2 -4
  378. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +2 -4
  379. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +28 -31
  380. package/dist/node_modules/motion-utils/dist/es/errors.js +7 -13
  381. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +3 -5
  382. package/dist/node_modules/motion-utils/dist/es/global-config.js +2 -4
  383. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +2 -4
  384. package/dist/node_modules/motion-utils/dist/es/is-object.js +2 -4
  385. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +2 -4
  386. package/dist/node_modules/motion-utils/dist/es/memo.js +5 -7
  387. package/dist/node_modules/motion-utils/dist/es/noop.js +2 -4
  388. package/dist/node_modules/motion-utils/dist/es/pipe.js +2 -4
  389. package/dist/node_modules/motion-utils/dist/es/progress.js +4 -6
  390. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +23 -28
  391. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +2 -5
  392. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +2 -4
  393. package/dist/node_modules/motion-utils/dist/es/warn-once.js +5 -7
  394. package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
  395. package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
  396. package/dist/node_modules/prettier/standalone.js +3444 -2415
  397. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -21
  398. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +18 -14
  399. package/dist/node_modules/react/compiler-runtime.js +8 -10
  400. package/dist/utils/arrayService.js +0 -1
  401. package/dist/utils/color.js +46 -41
  402. package/dist/utils/component.js +60 -129
  403. package/dist/utils/contextStore.js +48 -58
  404. package/dist/utils/index.js +7 -29
  405. package/dist/utils/motion.js +85 -113
  406. package/dist/utils/reactiveArrayService.js +80 -76
  407. package/dist/utils/size.js +14 -26
  408. package/dist/utils/utils.js +0 -1
  409. package/dist/utils/view.js +27 -24
  410. package/dist/vite-env.d.js +0 -1
  411. package/package.json +25 -20
  412. package/dist/_virtual/compiler-runtime.js +0 -5
  413. package/dist/_virtual/compiler-runtime2.js +0 -4
  414. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  415. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  416. package/dist/assets/components/alert/Alert.style.css +0 -1
  417. package/dist/assets/components/aurora/Aurora.style.css +0 -1
  418. package/dist/assets/components/avatar/Avatar.style.css +0 -1
  419. package/dist/assets/components/badge/Badge.style.css +0 -1
  420. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
  421. package/dist/assets/components/button/Button.style.css +0 -1
  422. package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
  423. package/dist/assets/components/card/Card.style.css +0 -1
  424. package/dist/assets/components/chart/Chart.style.css +0 -1
  425. package/dist/assets/components/col/Col.style.css +0 -1
  426. package/dist/assets/components/command/Command.style.css +0 -1
  427. package/dist/assets/components/container/Container.style.css +0 -1
  428. package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
  429. package/dist/assets/components/data-table/DataTable.style.css +0 -1
  430. package/dist/assets/components/dialog/Dialog.style.css +0 -1
  431. package/dist/assets/components/editor/Editor.styles.css +0 -1
  432. package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
  433. package/dist/assets/components/form/ColorInput.style.css +0 -1
  434. package/dist/assets/components/form/DateInput.style.css +0 -1
  435. package/dist/assets/components/form/EditorInput.style.css +0 -1
  436. package/dist/assets/components/form/FileInput.style.css +0 -1
  437. package/dist/assets/components/form/Input.style.css +0 -1
  438. package/dist/assets/components/form/InputWrapper.style.css +0 -1
  439. package/dist/assets/components/form/SelectInput.style.css +0 -1
  440. package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
  441. package/dist/assets/components/gantt/Gantt.style.css +0 -1
  442. package/dist/assets/components/icon/Icon.style.css +0 -1
  443. package/dist/assets/components/json-view/JsonView.style.css +0 -1
  444. package/dist/assets/components/layout/Layout.style.css +0 -1
  445. package/dist/assets/components/menu/Menu.style.css +0 -1
  446. package/dist/assets/components/progress/Progress.style.css +0 -1
  447. package/dist/assets/components/quote/Quote.style.css +0 -1
  448. package/dist/assets/components/resizable/Resizable.style.css +0 -1
  449. package/dist/assets/components/row/Row.style.css +0 -1
  450. package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
  451. package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
  452. package/dist/assets/components/tab/Tab.style.css +0 -1
  453. package/dist/assets/components/text/Text.style.css +0 -1
  454. package/dist/assets/components/toast/Toast.style.css +0 -1
  455. package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
  456. package/dist/components/icon/codezero/codezero.svg.js +0 -5
  457. package/dist/components/icon/codezero/gls.svg.js +0 -5
  458. /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
  459. /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
@@ -1,157 +1,142 @@
1
- import { jsx as p, jsxs as w } from "react/jsx-runtime";
2
- import { c as L } from "../../_virtual/compiler-runtime.js";
3
- import * as j from "react";
4
- import * as S from "recharts";
5
- import '../../assets/components/chart/Chart.style.css';/* empty css */
6
- import "../../utils/contextStore.js";
7
- import { mergeComponentProps as I } from "../../utils/component.js";
8
- import "js-md5";
9
- const A = j.createContext(null), D = () => {
10
- const o = j.useContext(A);
11
- if (!o)
12
- throw new Error("useChart must be used within a <ChartContainer />");
13
- return o;
14
- }, H = (o) => {
15
- const t = L.c(21), {
16
- id: c,
17
- className: l,
18
- children: i,
19
- config: e,
20
- initialDimension: r,
21
- style: _,
22
- ...h
23
- } = o;
24
- let v;
25
- t[0] !== r ? (v = r === void 0 ? {
26
- width: 320,
27
- height: 200
28
- } : r, t[0] = r, t[1] = v) : v = t[1];
29
- const a = v, n = j.useId(), d = `chart-${c ?? n.replace(/:/g, "")}`;
30
- let f;
31
- t[2] !== e ? (f = Object.entries(e).reduce(k, {}), t[2] = e, t[3] = f) : f = t[3];
32
- const g = f, x = A;
33
- let s;
34
- t[4] !== e ? (s = {
35
- config: e
36
- }, t[4] = e, t[5] = s) : s = t[5];
37
- const $ = "chart";
38
- let m;
39
- t[6] !== g || t[7] !== _ ? (m = {
40
- ...g,
41
- ..._
42
- }, t[6] = g, t[7] = _, t[8] = m) : m = t[8];
43
- const b = I("chart", h);
44
- let u;
45
- t[9] !== i || t[10] !== a ? (u = /* @__PURE__ */ p(S.ResponsiveContainer, { initialDimension: a, children: i }), t[9] = i, t[10] = a, t[11] = u) : u = t[11];
46
- let C;
47
- t[12] !== d || t[13] !== m || t[14] !== b || t[15] !== u ? (C = /* @__PURE__ */ p("div", { "data-slot": $, "data-chart": d, style: m, ...b, children: u }), t[12] = d, t[13] = m, t[14] = b, t[15] = u, t[16] = C) : C = t[16];
48
- let N;
49
- return t[17] !== x.Provider || t[18] !== s || t[19] !== C ? (N = /* @__PURE__ */ p(x.Provider, { value: s, children: C }), t[17] = x.Provider, t[18] = s, t[19] = C, t[20] = N) : N = t[20], N;
50
- }, J = (o) => {
51
- const t = L.c(31);
52
- let c, l, i, e, r, _, h;
53
- t[0] !== o ? ({
54
- active: c,
55
- payload: e,
56
- className: l,
57
- hideLabel: _,
58
- hideIndicator: h,
59
- label: i,
60
- ...r
61
- } = o, t[0] = o, t[1] = c, t[2] = l, t[3] = i, t[4] = e, t[5] = r, t[6] = _, t[7] = h) : (c = t[1], l = t[2], i = t[3], e = t[4], r = t[5], _ = t[6], h = t[7]);
62
- const v = _ === void 0 ? !1 : _, a = h === void 0 ? !1 : h, {
63
- config: n
64
- } = D();
65
- if (!c || !e?.length)
66
- return null;
67
- const [d] = e, f = `${d?.dataKey ?? d?.name ?? "value"}`;
68
- let g;
69
- t[8] !== n || t[9] !== d || t[10] !== f ? (g = K(n, d, f), t[8] = n, t[9] = d, t[10] = f, t[11] = g) : g = t[11];
70
- const s = typeof i == "string" ? n[i]?.label ?? i : g?.label;
71
- let $;
72
- t[12] !== l ? ($ = I("chart__tooltip", {
73
- className: l
74
- }), t[12] = l, t[13] = $) : $ = t[13];
75
- let m;
76
- t[14] !== v || t[15] !== s ? (m = !v && s && /* @__PURE__ */ p("div", { className: "chart__tooltip-label", children: s }), t[14] = v, t[15] = s, t[16] = m) : m = t[16];
77
- let b;
78
- if (t[17] !== n || t[18] !== a || t[19] !== e) {
79
- let N;
80
- t[21] !== n || t[22] !== a ? (N = (y, E) => {
81
- const P = K(n, y, `${y.name ?? y.dataKey ?? "value"}`), R = y.payload?.fill ?? y.color;
82
- return /* @__PURE__ */ w("div", { className: "chart__tooltip-row chart__tooltip-row--dot", children: [
83
- P?.icon ? /* @__PURE__ */ p(P.icon, {}) : !a && /* @__PURE__ */ p("div", { ...I("chart__tooltip-indicator chart__tooltip-indicator--dot", {
84
- style: {
85
- "--color-bg": R,
86
- "--color-border": R
87
- }
88
- }) }),
89
- /* @__PURE__ */ w("div", { className: "chart__tooltip-content", children: [
90
- /* @__PURE__ */ p("div", { className: "chart__tooltip-meta", children: /* @__PURE__ */ p("span", { className: "chart__tooltip-name", children: P?.label ?? y.name }) }),
91
- y.value != null && /* @__PURE__ */ p("span", { className: "chart__tooltip-value", children: typeof y.value == "number" ? y.value.toLocaleString() : String(y.value) })
92
- ] })
93
- ] }, E);
94
- }, t[21] = n, t[22] = a, t[23] = N) : N = t[23], b = e.filter(q).map(N), t[17] = n, t[18] = a, t[19] = e, t[20] = b;
95
- } else
96
- b = t[20];
97
- let u;
98
- t[24] !== b ? (u = /* @__PURE__ */ p("div", { className: "chart__tooltip-body", children: b }), t[24] = b, t[25] = u) : u = t[25];
99
- let C;
100
- return t[26] !== r || t[27] !== $ || t[28] !== m || t[29] !== u ? (C = /* @__PURE__ */ w("div", { ...$, ...r, children: [
101
- m,
102
- u
103
- ] }), t[26] = r, t[27] = $, t[28] = m, t[29] = u, t[30] = C) : C = t[30], C;
104
- }, M = (o) => {
105
- const t = L.c(13), {
106
- className: c,
107
- hideIcon: l,
108
- payload: i,
109
- verticalAlign: e
110
- } = o, r = l === void 0 ? !1 : l, _ = e === void 0 ? "bottom" : e, {
111
- config: h
112
- } = D();
113
- if (!i?.length)
114
- return null;
115
- const v = `chart__legend ${_ === "top" ? "chart__legend--top" : "chart__legend--bottom"}`;
116
- let a;
117
- t[0] !== c || t[1] !== v ? (a = I(v, {
118
- className: c
119
- }), t[0] = c, t[1] = v, t[2] = a) : a = t[2];
120
- let n;
121
- if (t[3] !== h || t[4] !== r || t[5] !== i) {
122
- let f;
123
- t[7] !== h || t[8] !== r ? (f = (g, x) => {
124
- const s = K(h, g, `${g.dataKey ?? "value"}`);
125
- return /* @__PURE__ */ w("div", { className: "chart__legend-item", children: [
126
- s?.icon && !r ? /* @__PURE__ */ p(s.icon, {}) : /* @__PURE__ */ p("div", { className: "chart__legend-swatch", style: {
127
- backgroundColor: g.color
128
- } }),
129
- s?.label
130
- ] }, x);
131
- }, t[7] = h, t[8] = r, t[9] = f) : f = t[9], n = i.filter(F).map(f), t[3] = h, t[4] = r, t[5] = i, t[6] = n;
132
- } else
133
- n = t[6];
134
- let d;
135
- return t[10] !== a || t[11] !== n ? (d = /* @__PURE__ */ p("div", { ...a, children: n }), t[10] = a, t[11] = n, t[12] = d) : d = t[12], d;
136
- }, K = (o, t, c) => {
137
- if (typeof t != "object" || t === null) return o[c];
138
- const l = t, i = [c, typeof l.dataKey == "string" ? l.dataKey : void 0, typeof l.name == "string" ? l.name : void 0];
139
- for (const e of i)
140
- if (e && e in o)
141
- return o[e];
1
+ "use client";
2
+ import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
3
+ import { mergeComponentProps } from "../../utils/component.js";
4
+ import "../../utils/index.js";
5
+ import '../../assets/Chart.style.css';/* empty css */
6
+ import * as React$1 from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import * as RechartsPrimitive from "recharts";
9
+ var import_compiler_runtime = require_compiler_runtime(), ChartContext = React$1.createContext(null), useChart = () => {
10
+ let e = React$1.useContext(ChartContext);
11
+ if (!e) throw Error("useChart must be used within a <ChartContainer />");
12
+ return e;
142
13
  };
143
- function k(o, t) {
144
- const [c, l] = t;
145
- return l.color && (o[`--color-${c}`] = l.color), o;
14
+ const ChartContainer = (e) => {
15
+ let i = (0, import_compiler_runtime.c)(21), { id: c, className: l, children: u, config: d, initialDimension: f, style: m, ...h } = e, g;
16
+ i[0] === f ? g = i[1] : (g = f === void 0 ? {
17
+ width: 320,
18
+ height: 200
19
+ } : f, i[0] = f, i[1] = g);
20
+ let _ = g, v = React$1.useId(), y = `chart-${c ?? v.replace(/:/g, "")}`, b;
21
+ i[2] === d ? b = i[3] : (b = Object.entries(d).reduce(_temp, {}), i[2] = d, i[3] = b);
22
+ let x = b, S = ChartContext, C;
23
+ i[4] === d ? C = i[5] : (C = { config: d }, i[4] = d, i[5] = C);
24
+ let w;
25
+ i[6] !== x || i[7] !== m ? (w = {
26
+ ...x,
27
+ ...m
28
+ }, i[6] = x, i[7] = m, i[8] = w) : w = i[8];
29
+ let T = mergeComponentProps("chart", h), E;
30
+ i[9] !== u || i[10] !== _ ? (E = /* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, {
31
+ initialDimension: _,
32
+ children: u
33
+ }), i[9] = u, i[10] = _, i[11] = E) : E = i[11];
34
+ let D;
35
+ i[12] !== y || i[13] !== w || i[14] !== T || i[15] !== E ? (D = /* @__PURE__ */ jsx("div", {
36
+ "data-slot": "chart",
37
+ "data-chart": y,
38
+ style: w,
39
+ ...T,
40
+ children: E
41
+ }), i[12] = y, i[13] = w, i[14] = T, i[15] = E, i[16] = D) : D = i[16];
42
+ let O;
43
+ return i[17] !== S.Provider || i[18] !== C || i[19] !== D ? (O = /* @__PURE__ */ jsx(S.Provider, {
44
+ value: C,
45
+ children: D
46
+ }), i[17] = S.Provider, i[18] = C, i[19] = D, i[20] = O) : O = i[20], O;
47
+ }, ChartTooltipContent = (e) => {
48
+ let n = (0, import_compiler_runtime.c)(31), a, s, l, u, d, p, h;
49
+ n[0] === e ? (a = n[1], s = n[2], l = n[3], u = n[4], d = n[5], p = n[6], h = n[7]) : ({active: a, payload: u, className: s, hideLabel: p, hideIndicator: h, label: l, ...d} = e, n[0] = e, n[1] = a, n[2] = s, n[3] = l, n[4] = u, n[5] = d, n[6] = p, n[7] = h);
50
+ let g = p === void 0 ? !1 : p, _ = h === void 0 ? !1 : h, { config: v } = useChart();
51
+ if (!a || !u?.length) return null;
52
+ let [y] = u, b = `${y?.dataKey ?? y?.name ?? "value"}`, x;
53
+ n[8] !== v || n[9] !== y || n[10] !== b ? (x = getPayloadConfigFromPayload(v, y, b), n[8] = v, n[9] = y, n[10] = b, n[11] = x) : x = n[11];
54
+ let S = typeof l == "string" ? v[l]?.label ?? l : x?.label, C;
55
+ n[12] === s ? C = n[13] : (C = mergeComponentProps("chart__tooltip", { className: s }), n[12] = s, n[13] = C);
56
+ let w;
57
+ n[14] !== g || n[15] !== S ? (w = !g && S && /* @__PURE__ */ jsx("div", {
58
+ className: "chart__tooltip-label",
59
+ children: S
60
+ }), n[14] = g, n[15] = S, n[16] = w) : w = n[16];
61
+ let T;
62
+ if (n[17] !== v || n[18] !== _ || n[19] !== u) {
63
+ let e;
64
+ n[21] !== v || n[22] !== _ ? (e = (e, n) => {
65
+ let a = getPayloadConfigFromPayload(v, e, `${e.name ?? e.dataKey ?? "value"}`), o = e.payload?.fill ?? e.color;
66
+ return /* @__PURE__ */ jsxs("div", {
67
+ className: "chart__tooltip-row chart__tooltip-row--dot",
68
+ children: [a?.icon ? /* @__PURE__ */ jsx(a.icon, {}) : !_ && /* @__PURE__ */ jsx("div", { ...mergeComponentProps("chart__tooltip-indicator chart__tooltip-indicator--dot", { style: {
69
+ "--color-bg": o,
70
+ "--color-border": o
71
+ } }) }), /* @__PURE__ */ jsxs("div", {
72
+ className: "chart__tooltip-content",
73
+ children: [/* @__PURE__ */ jsx("div", {
74
+ className: "chart__tooltip-meta",
75
+ children: /* @__PURE__ */ jsx("span", {
76
+ className: "chart__tooltip-name",
77
+ children: a?.label ?? e.name
78
+ })
79
+ }), e.value != null && /* @__PURE__ */ jsx("span", {
80
+ className: "chart__tooltip-value",
81
+ children: typeof e.value == "number" ? e.value.toLocaleString() : String(e.value)
82
+ })]
83
+ })]
84
+ }, n);
85
+ }, n[21] = v, n[22] = _, n[23] = e) : e = n[23], T = u.filter(_temp2).map(e), n[17] = v, n[18] = _, n[19] = u, n[20] = T;
86
+ } else T = n[20];
87
+ let E;
88
+ n[24] === T ? E = n[25] : (E = /* @__PURE__ */ jsx("div", {
89
+ className: "chart__tooltip-body",
90
+ children: T
91
+ }), n[24] = T, n[25] = E);
92
+ let D;
93
+ return n[26] !== d || n[27] !== C || n[28] !== w || n[29] !== E ? (D = /* @__PURE__ */ jsxs("div", {
94
+ ...C,
95
+ ...d,
96
+ children: [w, E]
97
+ }), n[26] = d, n[27] = C, n[28] = w, n[29] = E, n[30] = D) : D = n[30], D;
98
+ }, ChartLegendContent = (e) => {
99
+ let n = (0, import_compiler_runtime.c)(13), { className: a, hideIcon: s, payload: l, verticalAlign: u } = e, d = s === void 0 ? !1 : s, p = u === void 0 ? "bottom" : u, { config: m } = useChart();
100
+ if (!l?.length) return null;
101
+ let g = `chart__legend ${p === "top" ? "chart__legend--top" : "chart__legend--bottom"}`, _;
102
+ n[0] !== a || n[1] !== g ? (_ = mergeComponentProps(g, { className: a }), n[0] = a, n[1] = g, n[2] = _) : _ = n[2];
103
+ let v;
104
+ if (n[3] !== m || n[4] !== d || n[5] !== l) {
105
+ let e;
106
+ n[7] !== m || n[8] !== d ? (e = (e, t) => {
107
+ let n = getPayloadConfigFromPayload(m, e, `${e.dataKey ?? "value"}`);
108
+ return /* @__PURE__ */ jsxs("div", {
109
+ className: "chart__legend-item",
110
+ children: [n?.icon && !d ? /* @__PURE__ */ jsx(n.icon, {}) : /* @__PURE__ */ jsx("div", {
111
+ className: "chart__legend-swatch",
112
+ style: { backgroundColor: e.color }
113
+ }), n?.label]
114
+ }, t);
115
+ }, n[7] = m, n[8] = d, n[9] = e) : e = n[9], v = l.filter(_temp3).map(e), n[3] = m, n[4] = d, n[5] = l, n[6] = v;
116
+ } else v = n[6];
117
+ let y;
118
+ return n[10] !== _ || n[11] !== v ? (y = /* @__PURE__ */ jsx("div", {
119
+ ..._,
120
+ children: v
121
+ }), n[10] = _, n[11] = v, n[12] = y) : y = n[12], y;
122
+ };
123
+ var getPayloadConfigFromPayload = (e, t, n) => {
124
+ if (typeof t != "object" || !t) return e[n];
125
+ let r = t, i = [
126
+ n,
127
+ typeof r.dataKey == "string" ? r.dataKey : void 0,
128
+ typeof r.name == "string" ? r.name : void 0
129
+ ];
130
+ for (let t of i) if (t && t in e) return e[t];
131
+ };
132
+ function _temp(e, t) {
133
+ let [n, r] = t;
134
+ return r.color && (e[`--color-${n}`] = r.color), e;
146
135
  }
147
- function q(o) {
148
- return o.type !== "none";
136
+ function _temp2(e) {
137
+ return e.type !== "none";
149
138
  }
150
- function F(o) {
151
- return o.type !== "none";
139
+ function _temp3(e) {
140
+ return e.type !== "none";
152
141
  }
153
- export {
154
- H as ChartContainer,
155
- M as ChartLegendContent,
156
- J as ChartTooltipContent
157
- };
142
+ export { ChartContainer, ChartLegendContent, ChartTooltipContent };
@@ -1,76 +1,77 @@
1
- import { jsx as o, jsxs as X } from "react/jsx-runtime";
2
- import { c as Y } from "../../_virtual/compiler-runtime.js";
3
- import * as d from "recharts";
4
- import { ChartTooltipContent as q, ChartLegendContent as z, ChartContainer as B } from "./Chart.js";
5
- const Q = (a) => {
6
- const e = Y.c(48);
7
- let m, p, r, y, c, l, t, h, s, n, C, g, u;
8
- e[0] !== a ? ({
9
- data: y,
10
- lines: t,
11
- xKey: g,
12
- config: m,
13
- showDots: s,
14
- curveType: r,
15
- containerProps: p,
16
- grid: c,
17
- xAxis: C,
18
- yAxis: u,
19
- tooltip: n,
20
- legend: l,
21
- ...h
22
- } = a, e[0] = a, e[1] = m, e[2] = p, e[3] = r, e[4] = y, e[5] = c, e[6] = l, e[7] = t, e[8] = h, e[9] = s, e[10] = n, e[11] = C, e[12] = g, e[13] = u) : (m = e[1], p = e[2], r = e[3], y = e[4], c = e[5], l = e[6], t = e[7], h = e[8], s = e[9], n = e[10], C = e[11], g = e[12], u = e[13]);
23
- const W = F;
24
- let P;
25
- e[14] !== m || e[15] !== t ? (P = m ?? t.reduce((f, i) => (f[i.dataKey] = {
26
- label: i.label ?? i.name ?? i.dataKey,
27
- color: W(i)
28
- }, f), {}), e[14] = m, e[15] = t, e[16] = P) : P = e[16];
29
- const D = P;
30
- let x;
31
- e[17] !== C || e[18] !== g ? (x = /* @__PURE__ */ o(d.XAxis, { dataKey: g, ...C }), e[17] = C, e[18] = g, e[19] = x) : x = e[19];
32
- let k;
33
- e[20] !== u ? (k = /* @__PURE__ */ o(d.YAxis, { ...u }), e[20] = u, e[21] = k) : k = e[21];
34
- let v;
35
- e[22] !== c ? (v = c !== !1 && /* @__PURE__ */ o(d.CartesianGrid, { strokeDasharray: "4 4", ...c }), e[22] = c, e[23] = v) : v = e[23];
36
- let K;
37
- e[24] !== n ? (K = n !== !1 && /* @__PURE__ */ o(d.Tooltip, { ...n, content: n?.content ?? /* @__PURE__ */ o(q, {}) }), e[24] = n, e[25] = K) : K = e[25];
38
- let L;
39
- e[26] !== l ? (L = l !== !1 && /* @__PURE__ */ o(d.Legend, { ...l, content: l?.content ?? /* @__PURE__ */ o(z, {}) }), e[26] = l, e[27] = L) : L = e[27];
40
- let b;
41
- if (e[28] !== r || e[29] !== t || e[30] !== s) {
42
- let f;
43
- e[32] !== r || e[33] !== s ? (f = (i) => {
44
- const {
45
- dataKey: j,
46
- label: R,
47
- type: $,
48
- strokeWidth: w,
49
- name: E,
50
- dot: G,
51
- color: H,
52
- stroke: I,
53
- ...N
54
- } = i, S = typeof R == "string" || typeof R == "number" ? String(R) : E ?? j;
55
- return /* @__PURE__ */ o(d.Line, { dataKey: j, name: S, stroke: W(i) ?? `var(--color-${j}, currentColor)`, type: $ ?? r ?? "monotone", strokeWidth: w ?? 2, dot: G ?? s, ...N }, j);
56
- }, e[32] = r, e[33] = s, e[34] = f) : f = e[34], b = t.map(f), e[28] = r, e[29] = t, e[30] = s, e[31] = b;
57
- } else
58
- b = e[31];
59
- let A;
60
- e[35] !== y || e[36] !== h || e[37] !== x || e[38] !== k || e[39] !== v || e[40] !== K || e[41] !== L || e[42] !== b ? (A = /* @__PURE__ */ X(d.LineChart, { data: y, ...h, children: [
61
- x,
62
- k,
63
- v,
64
- K,
65
- L,
66
- b
67
- ] }), e[35] = y, e[36] = h, e[37] = x, e[38] = k, e[39] = v, e[40] = K, e[41] = L, e[42] = b, e[43] = A) : A = e[43];
68
- let T;
69
- return e[44] !== p || e[45] !== D || e[46] !== A ? (T = /* @__PURE__ */ o(B, { config: D, ...p, children: A }), e[44] = p, e[45] = D, e[46] = A, e[47] = T) : T = e[47], T;
1
+ "use client";
2
+ import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
3
+ import { ChartContainer, ChartLegendContent, ChartTooltipContent } from "./Chart.js";
4
+ import "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import * as RechartsPrimitive from "recharts";
7
+ var import_compiler_runtime = require_compiler_runtime();
8
+ const LineChart = (e) => {
9
+ let c = (0, import_compiler_runtime.c)(48), u, d, f, p, m, h, g, _, v, y, b, x, S;
10
+ c[0] === e ? (u = c[1], d = c[2], f = c[3], p = c[4], m = c[5], h = c[6], g = c[7], _ = c[8], v = c[9], y = c[10], b = c[11], x = c[12], S = c[13]) : ({data: p, lines: g, xKey: x, config: u, showDots: v, curveType: f, containerProps: d, grid: m, xAxis: b, yAxis: S, tooltip: y, legend: h, ..._} = e, c[0] = e, c[1] = u, c[2] = d, c[3] = f, c[4] = p, c[5] = m, c[6] = h, c[7] = g, c[8] = _, c[9] = v, c[10] = y, c[11] = b, c[12] = x, c[13] = S);
11
+ let C = _temp, w;
12
+ c[14] !== u || c[15] !== g ? (w = u ?? g.reduce((e, r) => (e[r.dataKey] = {
13
+ label: r.label ?? r.name ?? r.dataKey,
14
+ color: C(r)
15
+ }, e), {}), c[14] = u, c[15] = g, c[16] = w) : w = c[16];
16
+ let T = w, E;
17
+ c[17] !== b || c[18] !== x ? (E = /* @__PURE__ */ jsx(RechartsPrimitive.XAxis, {
18
+ dataKey: x,
19
+ ...b
20
+ }), c[17] = b, c[18] = x, c[19] = E) : E = c[19];
21
+ let D;
22
+ c[20] === S ? D = c[21] : (D = /* @__PURE__ */ jsx(RechartsPrimitive.YAxis, { ...S }), c[20] = S, c[21] = D);
23
+ let O;
24
+ c[22] === m ? O = c[23] : (O = m !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.CartesianGrid, {
25
+ strokeDasharray: "4 4",
26
+ ...m
27
+ }), c[22] = m, c[23] = O);
28
+ let k;
29
+ c[24] === y ? k = c[25] : (k = y !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.Tooltip, {
30
+ ...y,
31
+ content: y?.content ?? /* @__PURE__ */ jsx(ChartTooltipContent, {})
32
+ }), c[24] = y, c[25] = k);
33
+ let A;
34
+ c[26] === h ? A = c[27] : (A = h !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.Legend, {
35
+ ...h,
36
+ content: h?.content ?? /* @__PURE__ */ jsx(ChartLegendContent, {})
37
+ }), c[26] = h, c[27] = A);
38
+ let j;
39
+ if (c[28] !== f || c[29] !== g || c[30] !== v) {
40
+ let e;
41
+ c[32] !== f || c[33] !== v ? (e = (e) => {
42
+ let { dataKey: r, label: i, type: a, strokeWidth: o, name: s, dot: c, color: l, stroke: u, ...d } = e, p = typeof i == "string" || typeof i == "number" ? String(i) : s ?? r;
43
+ return /* @__PURE__ */ jsx(RechartsPrimitive.Line, {
44
+ dataKey: r,
45
+ name: p,
46
+ stroke: C(e) ?? `var(--color-${r}, currentColor)`,
47
+ type: a ?? f ?? "monotone",
48
+ strokeWidth: o ?? 2,
49
+ dot: c ?? v,
50
+ ...d
51
+ }, r);
52
+ }, c[32] = f, c[33] = v, c[34] = e) : e = c[34], j = g.map(e), c[28] = f, c[29] = g, c[30] = v, c[31] = j;
53
+ } else j = c[31];
54
+ let M;
55
+ c[35] !== p || c[36] !== _ || c[37] !== E || c[38] !== D || c[39] !== O || c[40] !== k || c[41] !== A || c[42] !== j ? (M = /* @__PURE__ */ jsxs(RechartsPrimitive.LineChart, {
56
+ data: p,
57
+ ..._,
58
+ children: [
59
+ E,
60
+ D,
61
+ O,
62
+ k,
63
+ A,
64
+ j
65
+ ]
66
+ }), c[35] = p, c[36] = _, c[37] = E, c[38] = D, c[39] = O, c[40] = k, c[41] = A, c[42] = j, c[43] = M) : M = c[43];
67
+ let N;
68
+ return c[44] !== d || c[45] !== T || c[46] !== M ? (N = /* @__PURE__ */ jsx(ChartContainer, {
69
+ config: T,
70
+ ...d,
71
+ children: M
72
+ }), c[44] = d, c[45] = T, c[46] = M, c[47] = N) : N = c[47], N;
70
73
  };
71
- function F(a) {
72
- return a.color ?? (typeof a.stroke == "string" ? a.stroke : void 0);
74
+ function _temp(e) {
75
+ return e.color ?? (typeof e.stroke == "string" ? e.stroke : void 0);
73
76
  }
74
- export {
75
- Q as LineChart
76
- };
77
+ export { LineChart };
@@ -1,8 +1,3 @@
1
- import { LineChart as r } from "./LineChart.js";
2
- import { ChartContainer as n, ChartLegendContent as C, ChartTooltipContent as a } from "./Chart.js";
3
- export {
4
- n as ChartContainer,
5
- C as ChartLegendContent,
6
- a as ChartTooltipContent,
7
- r as LineChart
8
- };
1
+ import { ChartContainer, ChartLegendContent, ChartTooltipContent } from "./Chart.js";
2
+ import { LineChart } from "./LineChart.js";
3
+ export { ChartContainer, ChartLegendContent, ChartTooltipContent, LineChart };
@@ -1,30 +1,20 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { c as f } from "../../_virtual/compiler-runtime.js";
3
- import '../../assets/components/col/Col.style.css';/* empty css */
4
- import "../../utils/contextStore.js";
5
- import "react";
6
- import { mergeComponentProps as g } from "../../utils/component.js";
7
- import "js-md5";
8
- const P = (r) => {
9
- const o = f.c(6);
10
- let l, t;
11
- if (o[0] !== r) {
12
- const {
13
- children: n,
14
- xs: e,
15
- sm: c,
16
- md: i,
17
- lg: $,
18
- xl: s,
19
- xxl: x,
20
- ...p
21
- } = r;
22
- l = n, t = g(`col ${e ? `col-xs-${e}` : ""} ${c ? `col-sm-${c}` : ""} ${i ? `col-md-${i}` : ""} ${$ ? `col-lg-${$}` : ""} ${s ? `col-lg-${s}` : ""} ${x ? `col-xxl-${x}` : ""}`, p), o[0] = r, o[1] = l, o[2] = t;
23
- } else
24
- l = o[1], t = o[2];
25
- let m;
26
- return o[3] !== l || o[4] !== t ? (m = /* @__PURE__ */ d("div", { ...t, children: l }), o[3] = l, o[4] = t, o[5] = m) : m = o[5], m;
27
- };
28
- export {
29
- P as Col
1
+ import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
2
+ import { mergeComponentProps } from "../../utils/component.js";
3
+ import "../../utils/index.js";
4
+ import '../../assets/Col.style.css';/* empty css */
5
+ import React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var import_compiler_runtime = require_compiler_runtime();
8
+ const Col = (e) => {
9
+ let n = (0, import_compiler_runtime.c)(6), a, o;
10
+ if (n[0] !== e) {
11
+ let { children: r, xs: i, sm: s, md: c, lg: l, xl: u, xxl: d, ...f } = e;
12
+ a = r, o = mergeComponentProps(`col ${i ? `col-xs-${i}` : ""} ${s ? `col-sm-${s}` : ""} ${c ? `col-md-${c}` : ""} ${l ? `col-lg-${l}` : ""} ${u ? `col-lg-${u}` : ""} ${d ? `col-xxl-${d}` : ""}`, f), n[0] = e, n[1] = a, n[2] = o;
13
+ } else a = n[1], o = n[2];
14
+ let s;
15
+ return n[3] !== a || n[4] !== o ? (s = /* @__PURE__ */ jsx("div", {
16
+ ...o,
17
+ children: a
18
+ }), n[3] = a, n[4] = o, n[5] = s) : s = n[5], s;
30
19
  };
20
+ export { Col };