@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,9 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { Component } from '../../utils';
3
3
  /**
4
- * The common shape every resolved icon component is rendered with. All three
5
- * sources (Tabler, Simple Icons, CodeZero) accept `size`/`color`; `stroke` is
6
- * only honoured by Tabler icons and ignored by the others.
4
+ * The common shape every resolved icon component is rendered with. All four
5
+ * sources (Tabler, Simple Icons, CodeZero, theSVG) accept `size`/`color`;
6
+ * `stroke` is only honoured by Tabler icons and ignored by the others.
7
7
  */
8
8
  export type IconComponent = React.FC<{
9
9
  size?: number | string;
@@ -17,11 +17,13 @@ export type IconComponent = React.FC<{
17
17
  * - `tabler:<name>` (default when no prefix is given) e.g. `tabler:arrow-left`
18
18
  * - `simple:<name>` e.g. `simple:github`
19
19
  * - `codezero:<name>` e.g. `codezero:code0`
20
+ * - `thesvg:<name>` e.g. `thesvg:github`, optionally with a variant suffix
21
+ * e.g. `thesvg:github/mono`
20
22
  *
21
23
  * Names are normalized, so `tabler:arrow-left`, `arrow-left`, `ArrowLeft` and
22
24
  * `IconArrowLeft` all resolve to the same icon.
23
25
  */
24
- export type IconString = `tabler:${string}` | `simple:${string}` | `codezero:${string}` | (string & {});
26
+ export type IconString = `tabler:${string}` | `simple:${string}` | `codezero:${string}` | `thesvg:${string}` | (string & {});
25
27
  /**
26
28
  * Resolves an {@link IconString} to its matching icon component from one of the
27
29
  * registered sources. Falls back to Tabler's `IconNote` when no icon matches.
@@ -1,44 +1,55 @@
1
- import { jsx as b } from "react/jsx-runtime";
2
- import { c as h } from "../../_virtual/compiler-runtime.js";
3
- import * as a from "@tabler/icons-react";
4
- import * as I from "@icons-pack/react-simple-icons";
5
- import * as f from "./codezero/index.js";
6
- import "../../utils/contextStore.js";
7
- import "react";
8
- import { mergeComponentProps as k } from "../../utils/component.js";
9
- import "js-md5";
10
- import '../../assets/components/icon/Icon.style.css';/* empty css */
11
- const x = (r) => {
12
- const o = a.IconNote;
13
- if (r?.startsWith("codezero:")) {
14
- const e = r.replace("codezero:", "").trim().toLowerCase(), t = Object.keys(f).find((i) => i.toLowerCase() === e);
15
- return t ? f[t] : o;
16
- }
17
- if (r?.startsWith("simple:")) {
18
- const e = r.replace("simple:", "").trim(), t = `Si${e.charAt(0).toUpperCase() + e.slice(1)}`;
19
- return t in I ? I[t] : o;
20
- }
21
- const n = `Icon${(r?.replace("tabler:", "") ?? "Note").trim().replace(/^icon/i, "").split(/[\s_-]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("")}`;
22
- return n in a ? a[n] : o;
23
- }, S = (r) => {
24
- const o = h.c(14);
25
- let n, c, e, t, s;
26
- if (o[0] !== r) {
27
- const {
28
- icon: m,
29
- size: p,
30
- color: d,
31
- stroke: v,
32
- ...z
33
- } = r, C = p === void 0 ? 24 : p, u = d === void 0 ? "currentColor" : d;
34
- let l;
35
- o[6] !== m ? (l = x(m), o[6] = m, o[7] = l) : l = o[7], n = l, c = C, e = u, t = v, s = k("icon", z), o[0] = r, o[1] = n, o[2] = c, o[3] = e, o[4] = t, o[5] = s;
36
- } else
37
- n = o[1], c = o[2], e = o[3], t = o[4], s = o[5];
38
- let i;
39
- return o[8] !== n || o[9] !== c || o[10] !== e || o[11] !== t || o[12] !== s ? (i = /* @__PURE__ */ b(n, { size: c, color: e, stroke: t, ...s }), o[8] = n, o[9] = c, o[10] = e, o[11] = t, o[12] = s, o[13] = i) : i = o[13], i;
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 { codezero_exports } from "./codezero/index.js";
5
+ import '../../assets/Icon.style.css';/* empty css */
6
+ import React from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import * as TablerIcons from "@tabler/icons-react";
9
+ import * as SimpleIcons from "@icons-pack/react-simple-icons";
10
+ import * as TheSvgIcons from "@thesvg/react";
11
+ var import_compiler_runtime = require_compiler_runtime(), theSvgIconCache = /* @__PURE__ */ new Map(), theSvgIcon = (e, n) => {
12
+ let r = n ? `${e}/${n}` : e, i = theSvgIconCache.get(r);
13
+ if (i) return i;
14
+ let o = TheSvgIcons[e], s = function({ size: e = 24, color: r, stroke: i, ...s }) {
15
+ return /* @__PURE__ */ jsx(o, {
16
+ width: e,
17
+ height: e,
18
+ ...n ? { variant: n } : {},
19
+ ...r ? { fill: r } : {},
20
+ ...s
21
+ });
22
+ };
23
+ return theSvgIconCache.set(r, s), s;
40
24
  };
41
- export {
42
- S as Icon,
43
- x as resolveIcon
25
+ const resolveIcon = (e) => {
26
+ let n = TablerIcons.IconNote;
27
+ if (e?.startsWith("codezero:")) {
28
+ let i = e.replace("codezero:", "").trim().toLowerCase(), a = Object.keys(codezero_exports).find((e) => e.toLowerCase() === i);
29
+ return a ? codezero_exports[a] : n;
30
+ }
31
+ if (e?.startsWith("thesvg:")) {
32
+ let [r, i] = e.replace("thesvg:", "").trim().split("/"), a = r.split(/[\s_-]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(""), o = /^[0-9]/.test(a) ? `I${a}` : a;
33
+ return o in TheSvgIcons ? theSvgIcon(o, i) : n;
34
+ }
35
+ if (e?.startsWith("simple:")) {
36
+ let r = e.replace("simple:", "").trim(), i = `Si${r.charAt(0).toUpperCase() + r.slice(1)}`;
37
+ return i in SimpleIcons ? SimpleIcons[i] : n;
38
+ }
39
+ let i = `Icon${(e?.replace("tabler:", "") ?? "Note").trim().replace(/^icon/i, "").split(/[\s_-]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("")}`;
40
+ return i in TablerIcons ? TablerIcons[i] : n;
41
+ }, Icon = (e) => {
42
+ let r = (0, import_compiler_runtime.c)(14), i, o, s, c, u;
43
+ if (r[0] !== e) {
44
+ let { icon: a, size: l, color: d, stroke: f, ...p } = e, m = l === void 0 ? 24 : l, h;
45
+ r[6] === a ? h = r[7] : (h = resolveIcon(a), r[6] = a, r[7] = h), i = h, o = m, s = d, c = f, u = mergeComponentProps("icon", p), r[0] = e, r[1] = i, r[2] = o, r[3] = s, r[4] = c, r[5] = u;
46
+ } else i = r[1], o = r[2], s = r[3], c = r[4], u = r[5];
47
+ let d;
48
+ return r[8] !== i || r[9] !== o || r[10] !== s || r[11] !== c || r[12] !== u ? (d = /* @__PURE__ */ jsx(i, {
49
+ size: o,
50
+ color: s,
51
+ stroke: c,
52
+ ...u
53
+ }), r[8] = i, r[9] = o, r[10] = s, r[11] = c, r[12] = u, r[13] = d) : d = r[13], d;
44
54
  };
55
+ export { Icon, resolveIcon };
@@ -0,0 +1,10 @@
1
+ import "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ var codezero_default = (t) => /* @__PURE__ */ jsx("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ id: "c",
6
+ viewBox: "8.01 8.97 23.83 23.83",
7
+ ...t,
8
+ children: /* @__PURE__ */ jsx("path", { d: "M25.498,8.966h-11.132c-3.508,0-6.351,2.843-6.351,6.351v11.132c0,3.507,2.843,6.351,6.351,6.351h11.132c3.508,0,6.351-2.843,6.351-6.351v-11.132c0-3.507-2.843-6.351-6.351-6.351ZM24.829,15.569h-.379c-.454,0-.759.101-.915.303-.157.202-.234.514-.234.938v2.011c0,.525-.071.968-.212,1.331s-.423.676-.847.938c.424.262.706.575.847.938s.212.807.212,1.331v2.012c0,.423.078.736.234.937.156.202.461.303.915.303h.379v1.8h-.303c-.635,0-1.167-.061-1.596-.182-.429-.121-.771-.298-1.029-.53s-.441-.516-.552-.855c-.111-.337-.167-.724-.167-1.157v-2.285c0-.423-.101-.766-.303-1.028-.198-.258-.522-.387-.965-.391-.443.004-.766.132-.966.391-.201.262-.302.605-.302,1.028v2.285c0,.433-.056.819-.167,1.157-.111.338-.295.623-.552.855s-.6.408-1.029.53c-.428.12-.96.182-1.596.182h-.303v-1.8h.379c.454,0,.758-.101.915-.303.156-.201.234-.514.234-.937v-2.012c0-.524.07-.968.212-1.331.141-.363.423-.676.847-.938-.423-.262-.705-.575-.847-.938-.142-.363-.212-.806-.212-1.331v-2.011c0-.424-.078-.736-.234-.938-.157-.201-.461-.303-.915-.303h-.379v-1.799h.303c.635,0,1.167.06,1.596.182.429.12.771.297,1.029.529.257.233.441.517.552.855.111.338.167.724.167,1.158v2.284c0,.423.101.766.302,1.029.199.258.522.386.966.39.443-.004.766-.131.965-.39.202-.262.303-.606.303-1.029v-2.284c0-.434.055-.819.167-1.158.111-.337.295-.622.552-.855.257-.232.6-.408,1.029-.529.428-.121.96-.182,1.596-.182h.303v1.799Z" })
9
+ });
10
+ export { codezero_default as default };
@@ -0,0 +1,9 @@
1
+ import "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ var gls_default = (n) => /* @__PURE__ */ jsxs("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ viewBox: "0 0 24 24",
6
+ ...n,
7
+ children: [/* @__PURE__ */ jsx("title", { children: "GLS" }), /* @__PURE__ */ jsx("path", { d: "M 5.089 8.207 c 0.398 0.02 0.787 0.074 1.179 0.148 c 0.21 0.04 0.42 0.085 0.625 0.153 c 0.031 0.011 0.062 0.026 0.094 0.034 c 0.028 0.009 0.037 0.023 0.037 0.054 v 2.025 l -0.352 -0.102 a 8 8 0 0 0 -1.136 -0.241 a 4 4 0 0 0 -1.062 -0.014 a 2.1 2.1 0 0 0 -0.863 0.287 a 1.6 1.6 0 0 0 -0.67 0.872 c -0.08 0.239 -0.116 0.486 -0.125 0.738 q -0.015 0.337 0.034 0.673 c 0.043 0.264 0.119 0.517 0.27 0.741 c 0.199 0.293 0.48 0.46 0.818 0.537 c 0.185 0.043 0.372 0.065 0.559 0.045 c 0.352 -0.034 0.662 -0.165 0.895 -0.446 a 0.2 0.2 0 0 0 0.028 -0.04 q 0.004 -0.005 0.003 -0.009 c -0.011 -0.006 -0.026 -0.003 -0.037 -0.003 H 4.037 c -0.031 0 -0.043 -0.006 -0.043 -0.04 v -1.65 c 0 -0.031 0.009 -0.04 0.04 -0.04 h 3.771 c 0.031 0 0.04 0.009 0.04 0.04 v 4.075 c 0 0.028 -0.006 0.037 -0.037 0.037 H 6.28 c -0.034 0 -0.04 -0.011 -0.04 -0.043 l 0.009 -1.073 q 0.002 -0.018 -0.006 -0.04 l -0.031 0.06 a 2 2 0 0 1 -0.665 0.707 a 3.05 3.05 0 0 1 -1.213 0.471 a 4 4 0 0 1 -0.383 0.04 c -0.014 0.006 -0.028 0 -0.043 0.003 h -0.293 c -0.346 0 -0.684 -0.057 -1.017 -0.153 q -0.281 -0.081 -0.545 -0.213 a 3 3 0 0 1 -0.662 -0.449 a 3.4 3.4 0 0 1 -0.579 -0.662 a 3.5 3.5 0 0 1 -0.426 -0.917 a 4 4 0 0 1 -0.136 -0.619 a 3 3 0 0 1 -0.043 -0.463 l -0.003 -0.136 v -0.415 a 4.05 4.05 0 0 1 0.429 -1.795 q 0.201 -0.397 0.497 -0.736 a 4 4 0 0 1 0.787 -0.693 c 0.281 -0.19 0.585 -0.338 0.903 -0.454 A 5 5 0 0 1 3.916 8.24 q 0.282 -0.041 0.565 -0.043 h 0.091 c 0.02 -0.003 0.043 0.003 0.062 -0.003 h 0.307 c 0.02 0.009 0.043 0.003 0.062 0.003 h 0.04 c 0.017 0.009 0.031 0.003 0.045 0.009 M 16.9 16.21 a 13 13 0 0 1 -0.645 -0.034 a 10 10 0 0 1 -0.863 -0.105 a 6 6 0 0 1 -0.738 -0.168 c -0.028 -0.009 -0.037 -0.02 -0.037 -0.051 V 13.816 c 0 -0.043 0 -0.043 0.04 -0.031 c 0.327 0.102 0.662 0.179 1 0.244 q 0.388 0.077 0.781 0.128 q 0.311 0.04 0.628 0.048 c 0.187 0.006 0.375 -0.003 0.559 -0.037 a 0.8 0.8 0 0 0 0.298 -0.111 c 0.125 -0.08 0.179 -0.199 0.153 -0.335 a 0.21 0.21 0 0 0 -0.105 -0.145 a 0.9 0.9 0 0 0 -0.284 -0.111 q -0.464 -0.107 -0.929 -0.21 a 4.5 4.5 0 0 1 -0.991 -0.321 c -0.341 -0.162 -0.642 -0.378 -0.866 -0.684 a 2 2 0 0 1 -0.352 -0.843 a 3 3 0 0 1 -0.043 -0.506 c 0 -0.46 0.082 -0.9 0.307 -1.306 a 2.4 2.4 0 0 1 1.014 -0.983 a 3.4 3.4 0 0 1 1.008 -0.335 c 0.204 -0.037 0.412 -0.057 0.619 -0.068 c 0.014 -0.006 0.028 0 0.04 -0.003 h 0.045 c 0.02 -0.003 0.037 0.003 0.057 -0.003 h 0.287 c 0.02 0.009 0.043 0.003 0.062 0.003 h 0.085 c 0.182 0 0.364 0.014 0.542 0.034 q 0.47 0.045 0.934 0.125 c 0.196 0.034 0.392 0.071 0.588 0.119 c 0.057 0.014 0.057 0.017 0.057 0.074 v 1.928 c 0 0.048 -0.006 0.051 -0.054 0.04 a 11 11 0 0 0 -0.684 -0.151 a 15 15 0 0 0 -0.775 -0.128 a 11 11 0 0 0 -0.54 -0.057 a 5 5 0 0 0 -0.474 -0.006 a 1.05 1.05 0 0 0 -0.474 0.111 c -0.094 0.051 -0.168 0.122 -0.19 0.23 c -0.026 0.116 0.02 0.213 0.125 0.281 a 0.8 0.8 0 0 0 0.25 0.105 c 0.256 0.065 0.511 0.122 0.77 0.185 c 0.236 0.057 0.474 0.108 0.704 0.185 c 0.329 0.111 0.645 0.253 0.923 0.469 c 0.298 0.23 0.523 0.52 0.653 0.875 q 0.114 0.316 0.142 0.653 q 0.022 0.255 0.006 0.511 a 2.37 2.37 0 0 1 -0.44 1.252 a 2.5 2.5 0 0 1 -0.594 0.576 a 3.2 3.2 0 0 1 -1.034 0.46 a 4.5 4.5 0 0 1 -1.076 0.137 h -0.409 c -0.028 -0.006 -0.054 0 -0.08 -0.006 m 6.896 -1.24 c -0.017 0.045 -0.017 0.097 -0.026 0.145 c -0.051 0.25 -0.159 0.466 -0.335 0.65 c -0.21 0.224 -0.469 0.361 -0.772 0.4 a 1.28 1.28 0 0 1 -1.099 -0.355 a 1.26 1.26 0 0 1 -0.386 -0.733 A 1.29 1.29 0 0 1 21.479 14 a 1.23 1.23 0 0 1 0.775 -0.437 c 0.506 -0.077 0.929 0.082 1.255 0.477 c 0.17 0.207 0.261 0.449 0.284 0.716 c 0.006 0.02 0 0.04 0.003 0.062 v 0.08 c 0.003 0.017 -0.003 0.034 0.003 0.051 q -0.004 0.01 -0.003 0.02 M 8.63 12.206 V 8.369 c 0 -0.034 0.009 -0.04 0.04 -0.04 h 2.406 c 0.031 0 0.037 0.009 0.037 0.04 v 5.649 c 0 0.045 0 0.045 0.045 0.045 h 2.627 c 0.034 0 0.04 0.009 0.04 0.04 v 1.942 c 0 0.034 -0.011 0.04 -0.043 0.04 H 8.67 c -0.037 0 -0.043 -0.009 -0.043 -0.045 q 0.004 -1.917 0.003 -3.834" })]
8
+ });
9
+ export { gls_default as default };
@@ -1,14 +1,18 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import e from "./codezero.svg.js";
3
- import s from "./gls.svg.js";
4
- const r = (t) => function({
5
- size: o = 24,
6
- color: n = "currentColor",
7
- ...c
8
- }) {
9
- return /* @__PURE__ */ m(t, { width: o, height: o, fill: n, ...c });
10
- }, p = r(e), C = r(s);
11
- export {
12
- p as CodeZero,
13
- C as Gls
1
+ import { __export } from "../../../_virtual/rolldown_runtime.js";
2
+ import codezero_default from "./codezero.js";
3
+ import gls_default from "./gls.js";
4
+ import React from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var codezero_exports = /* @__PURE__ */ __export({
7
+ CodeZero: () => CodeZero,
8
+ Gls: () => Gls
9
+ }, 1), customIcon = (e) => function({ size: o = 24, color: s = "currentColor", ...c }) {
10
+ return /* @__PURE__ */ jsx(e, {
11
+ width: o,
12
+ height: o,
13
+ fill: s,
14
+ ...c
15
+ });
14
16
  };
17
+ const CodeZero = customIcon(codezero_default), Gls = customIcon(gls_default);
18
+ export { CodeZero, Gls, codezero_exports };
@@ -1,112 +1,123 @@
1
- import { jsx as l, jsxs as _ } from "react/jsx-runtime";
2
- import { c as T } from "../../_virtual/compiler-runtime.js";
3
- import u from "@uiw/react-json-view";
4
- import { IconChevronRight as C, IconCheck as N, IconCopy as k } from "@tabler/icons-react";
5
- import "../../utils/contextStore.js";
6
- import "react";
7
- import { mergeComponentProps as z } from "../../utils/component.js";
8
- import { hashToColor as r } from "../../utils/color.js";
9
- import '../../assets/components/json-view/JsonView.style.css';/* empty css */
10
- import { Text as I } from "../text/Text.js";
11
- import { AnimatePresence as S } from "../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
12
- import { motion as E } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
13
- const q = {
14
- "--w-rjv-font-family": '"Inter", sans-serif',
15
- "--w-rjv-font-size": "0.8rem",
16
- "--w-rjv-color": "rgba(255, 255, 255, 0.75)",
17
- "--w-rjv-key-string": "rgba(255, 255, 255, 0.75)",
18
- "--w-rjv-background-color": "transparent",
19
- "--w-rjv-line-color": "rgba(191, 191, 191, 0.1)",
20
- "--w-rjv-arrow-color": "rgba(255, 255, 255, 0.5)",
21
- "--w-rjv-edit-color": "rgba(255, 255, 255, 0.75)",
22
- "--w-rjv-info-color": "rgba(255, 255, 255, 0.5)",
23
- "--w-rjv-update-color": "#ebcb8b",
24
- "--w-rjv-copied-color": "rgba(255, 255, 255, 0.75)",
25
- "--w-rjv-copied-success-color": "#29BF12",
26
- "--w-rjv-curlybraces-color": r("bracket"),
27
- "--w-rjv-brackets-color": r("squareBracket"),
28
- "--w-rjv-quotes-color": "rgba(255, 255, 255, 0.75)",
29
- "--w-rjv-quotes-string-color": r("Text"),
30
- "--w-rjv-type-string-color": r("Text"),
31
- "--w-rjv-type-int-color": r("Number"),
32
- "--w-rjv-type-float-color": r("Number"),
33
- "--w-rjv-type-bigint-color": r("Number"),
34
- "--w-rjv-type-boolean-color": r("Boolean"),
35
- "--w-rjv-type-date-color": r("Text"),
36
- "--w-rjv-type-url-color": r("Text"),
37
- "--w-rjv-type-null-color": r("Null"),
38
- "--w-rjv-type-nan-color": r("Number"),
39
- "--w-rjv-type-undefined-color": r("Null")
40
- }, K = (n) => {
41
- const e = T.c(24);
42
- let o, i, s, p, w, t;
43
- if (e[0] !== n) {
44
- const {
45
- displayObjectSize: a,
46
- displayDataTypes: f,
47
- enableClipboard: c,
48
- indentWidth: g,
49
- value: h,
50
- ...x
51
- } = n;
52
- t = h, i = a === void 0 ? !1 : a, o = f === void 0 ? !1 : f, s = c === void 0 ? !0 : c, p = g === void 0 ? 12.8 : g, w = z("json-view", x), e[0] = n, e[1] = o, e[2] = i, e[3] = s, e[4] = p, e[5] = w, e[6] = t;
53
- } else
54
- o = e[1], i = e[2], s = e[3], p = e[4], w = e[5], t = e[6];
55
- const d = w;
56
- if (t == null || typeof t != "object") {
57
- let a;
58
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = r("Text"), e[7] = a) : a = e[7];
59
- const f = String(t);
60
- let c;
61
- return e[8] !== f ? (c = /* @__PURE__ */ l(I, { c: a, children: f }), e[8] = f, e[9] = c) : c = e[9], c;
62
- }
63
- let m;
64
- e[10] !== d.style ? (m = d.style ?? {}, e[10] = d.style, e[11] = m) : m = e[11];
65
- let v;
66
- e[12] !== m ? (v = {
67
- ...q,
68
- ...m
69
- }, e[12] = m, e[13] = v) : v = e[13];
70
- let j, y;
71
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ l(u.Arrow, { render: B }), y = /* @__PURE__ */ l(u.Copied, { render: J }), e[14] = j, e[15] = y) : (j = e[14], y = e[15]);
72
- let b;
73
- return e[16] !== o || e[17] !== i || e[18] !== s || e[19] !== p || e[20] !== d || e[21] !== v || e[22] !== t ? (b = /* @__PURE__ */ _(u, { displayObjectSize: i, displayDataTypes: o, enableClipboard: s, indentWidth: p, ...d, value: t, style: v, children: [
74
- j,
75
- y
76
- ] }), e[16] = o, e[17] = i, e[18] = s, e[19] = p, e[20] = d, e[21] = v, e[22] = t, e[23] = b) : b = e[23], b;
1
+ import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
2
+ import { mergeComponentProps } from "../../utils/component.js";
3
+ import { AnimatePresence } from "../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
4
+ import { motion } from "../../node_modules/motion/dist/es/react.js";
5
+ import { hashToColor } from "../../utils/color.js";
6
+ import "../../utils/index.js";
7
+ import { Text } from "../text/Text.js";
8
+ import '../../assets/JsonView.style.css';/* empty css */
9
+ import React from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { IconCheck, IconChevronRight, IconCopy } from "@tabler/icons-react";
12
+ import ReactJsonView from "@uiw/react-json-view";
13
+ var import_compiler_runtime = require_compiler_runtime(), JSON_VIEW_THEME = {
14
+ "--w-rjv-font-family": "\"Inter\", sans-serif",
15
+ "--w-rjv-font-size": "0.8rem",
16
+ "--w-rjv-color": "rgba(255, 255, 255, 0.75)",
17
+ "--w-rjv-key-string": "rgba(255, 255, 255, 0.75)",
18
+ "--w-rjv-background-color": "transparent",
19
+ "--w-rjv-line-color": "rgba(191, 191, 191, 0.1)",
20
+ "--w-rjv-arrow-color": "rgba(255, 255, 255, 0.5)",
21
+ "--w-rjv-edit-color": "rgba(255, 255, 255, 0.75)",
22
+ "--w-rjv-info-color": "rgba(255, 255, 255, 0.5)",
23
+ "--w-rjv-update-color": "#ebcb8b",
24
+ "--w-rjv-copied-color": "rgba(255, 255, 255, 0.75)",
25
+ "--w-rjv-copied-success-color": "#29BF12",
26
+ "--w-rjv-curlybraces-color": hashToColor("bracket"),
27
+ "--w-rjv-brackets-color": hashToColor("squareBracket"),
28
+ "--w-rjv-quotes-color": "rgba(255, 255, 255, 0.75)",
29
+ "--w-rjv-quotes-string-color": hashToColor("Text"),
30
+ "--w-rjv-type-string-color": hashToColor("Text"),
31
+ "--w-rjv-type-int-color": hashToColor("Number"),
32
+ "--w-rjv-type-float-color": hashToColor("Number"),
33
+ "--w-rjv-type-bigint-color": hashToColor("Number"),
34
+ "--w-rjv-type-boolean-color": hashToColor("Boolean"),
35
+ "--w-rjv-type-date-color": hashToColor("Text"),
36
+ "--w-rjv-type-url-color": hashToColor("Text"),
37
+ "--w-rjv-type-null-color": hashToColor("Null"),
38
+ "--w-rjv-type-nan-color": hashToColor("Number"),
39
+ "--w-rjv-type-undefined-color": hashToColor("Null")
77
40
  };
78
- function B(n) {
79
- const {
80
- "data-expanded": e,
81
- ...o
82
- } = n;
83
- return /* @__PURE__ */ l("span", { ...o, className: "json-view__arrow", "data-expanded": e, children: /* @__PURE__ */ l(C, { size: 13 }) });
41
+ const JsonView = (e) => {
42
+ let a = (0, import_compiler_runtime.c)(24), o, l, f, p, m, _;
43
+ if (a[0] !== e) {
44
+ let { displayObjectSize: s, displayDataTypes: c, enableClipboard: u, indentWidth: d, value: h, ...g } = e;
45
+ _ = h, l = s === void 0 ? !1 : s, o = c === void 0 ? !1 : c, f = u === void 0 ? !0 : u, p = d === void 0 ? 12.8 : d, m = mergeComponentProps("json-view", g), a[0] = e, a[1] = o, a[2] = l, a[3] = f, a[4] = p, a[5] = m, a[6] = _;
46
+ } else o = a[1], l = a[2], f = a[3], p = a[4], m = a[5], _ = a[6];
47
+ let v = m;
48
+ if (typeof _ != "object" || !_) {
49
+ let e;
50
+ a[7] === Symbol.for("react.memo_cache_sentinel") ? (e = hashToColor("Text"), a[7] = e) : e = a[7];
51
+ let i = String(_), o;
52
+ return a[8] === i ? o = a[9] : (o = /* @__PURE__ */ jsx(Text, {
53
+ c: e,
54
+ children: i
55
+ }), a[8] = i, a[9] = o), o;
56
+ }
57
+ let y;
58
+ a[10] === v.style ? y = a[11] : (y = v.style ?? {}, a[10] = v.style, a[11] = y);
59
+ let b;
60
+ a[12] === y ? b = a[13] : (b = {
61
+ ...JSON_VIEW_THEME,
62
+ ...y
63
+ }, a[12] = y, a[13] = b);
64
+ let x, S;
65
+ a[14] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ jsx(ReactJsonView.Arrow, { render: _temp }), S = /* @__PURE__ */ jsx(ReactJsonView.Copied, { render: _temp2 }), a[14] = x, a[15] = S) : (x = a[14], S = a[15]);
66
+ let C;
67
+ return a[16] !== o || a[17] !== l || a[18] !== f || a[19] !== p || a[20] !== v || a[21] !== b || a[22] !== _ ? (C = /* @__PURE__ */ jsxs(ReactJsonView, {
68
+ displayObjectSize: l,
69
+ displayDataTypes: o,
70
+ enableClipboard: f,
71
+ indentWidth: p,
72
+ ...v,
73
+ value: _,
74
+ style: b,
75
+ children: [x, S]
76
+ }), a[16] = o, a[17] = l, a[18] = f, a[19] = p, a[20] = v, a[21] = b, a[22] = _, a[23] = C) : C = a[23], C;
77
+ };
78
+ function _temp(e) {
79
+ let { "data-expanded": i, ...a } = e;
80
+ return /* @__PURE__ */ jsx("span", {
81
+ ...a,
82
+ className: "json-view__arrow",
83
+ "data-expanded": i,
84
+ children: /* @__PURE__ */ jsx(IconChevronRight, { size: 13 })
85
+ });
84
86
  }
85
- function J(n) {
86
- const {
87
- "data-copied": e,
88
- onClick: o,
89
- ...i
90
- } = n;
91
- return /* @__PURE__ */ l("span", { ...i, onClick: o, className: "json-view__copy", "data-copied": e, children: /* @__PURE__ */ l(S, { mode: "wait", initial: !1, children: /* @__PURE__ */ l(E.span, { initial: {
92
- opacity: 0,
93
- scale: 0.5,
94
- filter: "blur(0.35rem)"
95
- }, animate: {
96
- opacity: 1,
97
- scale: 1,
98
- filter: "blur(0px)"
99
- }, exit: {
100
- opacity: 0,
101
- scale: 0.5,
102
- filter: "blur(0.35rem)"
103
- }, transition: {
104
- duration: 0.05,
105
- ease: "easeIn"
106
- }, style: {
107
- display: "inline-flex"
108
- }, children: e ? /* @__PURE__ */ l(N, { size: 13 }) : /* @__PURE__ */ l(k, { size: 13 }) }, e ? "check" : "copy") }) });
87
+ function _temp2(e) {
88
+ let { "data-copied": i, onClick: s, ...c } = e;
89
+ return /* @__PURE__ */ jsx("span", {
90
+ ...c,
91
+ onClick: s,
92
+ className: "json-view__copy",
93
+ "data-copied": i,
94
+ children: /* @__PURE__ */ jsx(AnimatePresence, {
95
+ mode: "wait",
96
+ initial: !1,
97
+ children: /* @__PURE__ */ jsx(motion.span, {
98
+ initial: {
99
+ opacity: 0,
100
+ scale: .5,
101
+ filter: "blur(0.35rem)"
102
+ },
103
+ animate: {
104
+ opacity: 1,
105
+ scale: 1,
106
+ filter: "blur(0px)"
107
+ },
108
+ exit: {
109
+ opacity: 0,
110
+ scale: .5,
111
+ filter: "blur(0.35rem)"
112
+ },
113
+ transition: {
114
+ duration: .05,
115
+ ease: "easeIn"
116
+ },
117
+ style: { display: "inline-flex" },
118
+ children: jsx(i ? IconCheck : IconCopy, { size: 13 })
119
+ }, i ? "check" : "copy")
120
+ })
121
+ });
109
122
  }
110
- export {
111
- K as JsonView
112
- };
123
+ export { JsonView };
@@ -1,79 +1,102 @@
1
- import { jsx as s, jsxs as G } from "react/jsx-runtime";
2
- import { c as A } from "../../_virtual/compiler-runtime.js";
3
- import "../../utils/contextStore.js";
4
- import "react";
5
- import { mergeComponentProps as B } from "../../utils/component.js";
6
- import "js-md5";
7
- import { getSize as D } from "../../utils/size.js";
8
- import { Flex as E } from "../flex/Flex.js";
9
- import '../../assets/components/layout/Layout.style.css';/* empty css */
10
- const V = (S) => {
11
- const t = A.c(56);
12
- let l, n, r, i, o, e, d, a;
13
- if (t[0] !== S) {
14
- const {
15
- children: F,
16
- topContent: P,
17
- bottomContent: R,
18
- leftContent: $,
19
- rightContent: k,
20
- showLayoutSplitter: j,
21
- layoutGap: w,
22
- ...q
23
- } = S;
24
- n = F, a = P, l = R, i = $, o = k, e = j === void 0 ? !0 : j, r = w === void 0 ? "xl" : w, d = B("d-layout", q), t[0] = S, t[1] = l, t[2] = n, t[3] = r, t[4] = i, t[5] = o, t[6] = e, t[7] = d, t[8] = a;
25
- } else
26
- l = t[1], n = t[2], r = t[3], i = t[4], o = t[5], e = t[6], d = t[7], a = t[8];
27
- let m;
28
- t[9] !== r ? (m = D(r), t[9] = r, t[10] = m) : m = t[10];
29
- let c;
30
- t[11] !== m ? (c = {
31
- flexDirection: "column",
32
- gap: m
33
- }, t[11] = m, t[12] = c) : c = t[12];
34
- let f;
35
- t[13] !== a ? (f = a && /* @__PURE__ */ s("div", { className: "d-layout__top", children: a }), t[13] = a, t[14] = f) : f = t[14];
36
- let p;
37
- t[15] !== e || t[16] !== a ? (p = a && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "horizontal" }), t[15] = e, t[16] = a, t[17] = p) : p = t[17];
38
- let _;
39
- t[18] !== r ? (_ = D(r), t[18] = r, t[19] = _) : _ = t[19];
40
- let u;
41
- t[20] !== _ ? (u = {
42
- gap: _
43
- }, t[20] = _, t[21] = u) : u = t[21];
44
- let y;
45
- t[22] !== i ? (y = i && /* @__PURE__ */ s("div", { className: "d-layout__left", children: i }), t[22] = i, t[23] = y) : y = t[23];
46
- let h;
47
- t[24] !== i || t[25] !== e ? (h = i && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "vertical" }), t[24] = i, t[25] = e, t[26] = h) : h = t[26];
48
- let v;
49
- t[27] !== n ? (v = /* @__PURE__ */ s("div", { className: "d-layout__content", children: n }), t[27] = n, t[28] = v) : v = t[28];
50
- let N;
51
- t[29] !== o || t[30] !== e ? (N = o && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "vertical" }), t[29] = o, t[30] = e, t[31] = N) : N = t[31];
52
- let C;
53
- t[32] !== o ? (C = o && /* @__PURE__ */ s("div", { className: "d-layout__right", children: o }), t[32] = o, t[33] = C) : C = t[33];
54
- let g;
55
- t[34] !== N || t[35] !== C || t[36] !== u || t[37] !== y || t[38] !== h || t[39] !== v ? (g = /* @__PURE__ */ G(E, { className: "d-layout__middle", style: u, children: [
56
- y,
57
- h,
58
- v,
59
- N,
60
- C
61
- ] }), t[34] = N, t[35] = C, t[36] = u, t[37] = y, t[38] = h, t[39] = v, t[40] = g) : g = t[40];
62
- let x;
63
- t[41] !== l || t[42] !== e ? (x = l && e && /* @__PURE__ */ s("div", { className: "d-layout__splitter", "aria-orientation": "horizontal" }), t[41] = l, t[42] = e, t[43] = x) : x = t[43];
64
- let b;
65
- t[44] !== l ? (b = l && /* @__PURE__ */ s("div", { className: "d-layout__bottom", children: l }), t[44] = l, t[45] = b) : b = t[45];
66
- let z;
67
- t[46] !== g || t[47] !== x || t[48] !== b || t[49] !== c || t[50] !== f || t[51] !== p ? (z = /* @__PURE__ */ G(E, { className: "d-layout__inner", style: c, children: [
68
- f,
69
- p,
70
- g,
71
- x,
72
- b
73
- ] }), t[46] = g, t[47] = x, t[48] = b, t[49] = c, t[50] = f, t[51] = p, t[52] = z) : z = t[52];
74
- let L;
75
- return t[53] !== d || t[54] !== z ? (L = /* @__PURE__ */ s("div", { ...d, children: z }), t[53] = d, t[54] = z, t[55] = L) : L = t[55], L;
76
- };
77
- export {
78
- V as Layout
1
+ import { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
2
+ import { mergeComponentProps } from "../../utils/component.js";
3
+ import { getSize } from "../../utils/size.js";
4
+ import "../../utils/index.js";
5
+ import { Flex } from "../flex/Flex.js";
6
+ import '../../assets/Layout.style.css';/* empty css */
7
+ import React from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var import_compiler_runtime = require_compiler_runtime();
10
+ const Layout = (e) => {
11
+ let i = (0, import_compiler_runtime.c)(56), c, l, u, d, f, p, m, h;
12
+ if (i[0] !== e) {
13
+ let { children: n, topContent: r, bottomContent: a, leftContent: o, rightContent: s, showLayoutSplitter: g, layoutGap: _, ...v } = e;
14
+ l = n, h = r, c = a, d = o, f = s, p = g === void 0 ? !0 : g, u = _ === void 0 ? "xl" : _, m = mergeComponentProps("d-layout", v), i[0] = e, i[1] = c, i[2] = l, i[3] = u, i[4] = d, i[5] = f, i[6] = p, i[7] = m, i[8] = h;
15
+ } else c = i[1], l = i[2], u = i[3], d = i[4], f = i[5], p = i[6], m = i[7], h = i[8];
16
+ let g;
17
+ i[9] === u ? g = i[10] : (g = getSize(u), i[9] = u, i[10] = g);
18
+ let _;
19
+ i[11] === g ? _ = i[12] : (_ = {
20
+ flexDirection: "column",
21
+ gap: g
22
+ }, i[11] = g, i[12] = _);
23
+ let v;
24
+ i[13] === h ? v = i[14] : (v = h && /* @__PURE__ */ jsx("div", {
25
+ className: "d-layout__top",
26
+ children: h
27
+ }), i[13] = h, i[14] = v);
28
+ let y;
29
+ i[15] !== p || i[16] !== h ? (y = h && p && /* @__PURE__ */ jsx("div", {
30
+ className: "d-layout__splitter",
31
+ "aria-orientation": "horizontal"
32
+ }), i[15] = p, i[16] = h, i[17] = y) : y = i[17];
33
+ let b;
34
+ i[18] === u ? b = i[19] : (b = getSize(u), i[18] = u, i[19] = b);
35
+ let x;
36
+ i[20] === b ? x = i[21] : (x = { gap: b }, i[20] = b, i[21] = x);
37
+ let S;
38
+ i[22] === d ? S = i[23] : (S = d && /* @__PURE__ */ jsx("div", {
39
+ className: "d-layout__left",
40
+ children: d
41
+ }), i[22] = d, i[23] = S);
42
+ let C;
43
+ i[24] !== d || i[25] !== p ? (C = d && p && /* @__PURE__ */ jsx("div", {
44
+ className: "d-layout__splitter",
45
+ "aria-orientation": "vertical"
46
+ }), i[24] = d, i[25] = p, i[26] = C) : C = i[26];
47
+ let w;
48
+ i[27] === l ? w = i[28] : (w = /* @__PURE__ */ jsx("div", {
49
+ className: "d-layout__content",
50
+ children: l
51
+ }), i[27] = l, i[28] = w);
52
+ let T;
53
+ i[29] !== f || i[30] !== p ? (T = f && p && /* @__PURE__ */ jsx("div", {
54
+ className: "d-layout__splitter",
55
+ "aria-orientation": "vertical"
56
+ }), i[29] = f, i[30] = p, i[31] = T) : T = i[31];
57
+ let E;
58
+ i[32] === f ? E = i[33] : (E = f && /* @__PURE__ */ jsx("div", {
59
+ className: "d-layout__right",
60
+ children: f
61
+ }), i[32] = f, i[33] = E);
62
+ let D;
63
+ i[34] !== T || i[35] !== E || i[36] !== x || i[37] !== S || i[38] !== C || i[39] !== w ? (D = /* @__PURE__ */ jsxs(Flex, {
64
+ className: "d-layout__middle",
65
+ style: x,
66
+ children: [
67
+ S,
68
+ C,
69
+ w,
70
+ T,
71
+ E
72
+ ]
73
+ }), i[34] = T, i[35] = E, i[36] = x, i[37] = S, i[38] = C, i[39] = w, i[40] = D) : D = i[40];
74
+ let O;
75
+ i[41] !== c || i[42] !== p ? (O = c && p && /* @__PURE__ */ jsx("div", {
76
+ className: "d-layout__splitter",
77
+ "aria-orientation": "horizontal"
78
+ }), i[41] = c, i[42] = p, i[43] = O) : O = i[43];
79
+ let k;
80
+ i[44] === c ? k = i[45] : (k = c && /* @__PURE__ */ jsx("div", {
81
+ className: "d-layout__bottom",
82
+ children: c
83
+ }), i[44] = c, i[45] = k);
84
+ let A;
85
+ i[46] !== D || i[47] !== O || i[48] !== k || i[49] !== _ || i[50] !== v || i[51] !== y ? (A = /* @__PURE__ */ jsxs(Flex, {
86
+ className: "d-layout__inner",
87
+ style: _,
88
+ children: [
89
+ v,
90
+ y,
91
+ D,
92
+ O,
93
+ k
94
+ ]
95
+ }), i[46] = D, i[47] = O, i[48] = k, i[49] = _, i[50] = v, i[51] = y, i[52] = A) : A = i[52];
96
+ let j;
97
+ return i[53] !== m || i[54] !== A ? (j = /* @__PURE__ */ jsx("div", {
98
+ ...m,
99
+ children: A
100
+ }), i[53] = m, i[54] = A, i[55] = j) : j = i[55], j;
79
101
  };
102
+ export { Layout };