@code0-tech/pictor 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/dist/_virtual/rolldown_runtime.js +9 -0
  2. package/dist/assets/Alert.style.css +1 -0
  3. package/dist/assets/Aurora.style.css +1 -0
  4. package/dist/assets/Avatar.style.css +1 -0
  5. package/dist/assets/Badge.style.css +1 -0
  6. package/dist/assets/Breadcrumb.style.css +1 -0
  7. package/dist/assets/Button.style.css +1 -0
  8. package/dist/assets/ButtonGroup.style.css +1 -0
  9. package/dist/assets/Card.style.css +1 -0
  10. package/dist/assets/Chart.style.css +1 -0
  11. package/dist/assets/Col.style.css +1 -0
  12. package/dist/assets/ColorInput.style.css +1 -0
  13. package/dist/assets/Command.style.css +1 -0
  14. package/dist/assets/Container.style.css +1 -0
  15. package/dist/assets/ContextMenu.style.css +1 -0
  16. package/dist/assets/DataTable.style.css +1 -0
  17. package/dist/assets/DateInput.style.css +1 -0
  18. package/dist/assets/Dialog.style.css +1 -0
  19. package/dist/assets/Editor.styles.css +1 -0
  20. package/dist/assets/EditorInput.style.css +1 -0
  21. package/dist/assets/FileInput.style.css +1 -0
  22. package/dist/assets/FileTabs.style.css +1 -0
  23. package/dist/assets/FullScreen.style.css +1 -0
  24. package/dist/assets/Gantt.style.css +1 -0
  25. package/dist/assets/Icon.style.css +1 -0
  26. package/dist/assets/Input.style.css +1 -0
  27. package/dist/assets/InputWrapper.style.css +1 -0
  28. package/dist/assets/JsonView.style.css +1 -0
  29. package/dist/assets/Layout.style.css +1 -0
  30. package/dist/assets/Menu.style.css +1 -0
  31. package/dist/assets/Progress.style.css +1 -0
  32. package/dist/assets/Quote.style.css +1 -0
  33. package/dist/assets/Resizable.style.css +1 -0
  34. package/dist/assets/Row.style.css +1 -0
  35. package/dist/assets/ScrollArea.style.css +1 -0
  36. package/dist/assets/SegmentedControl.style.css +1 -0
  37. package/dist/assets/SelectInput.style.css +1 -0
  38. package/dist/assets/Tab.style.css +1 -0
  39. package/dist/assets/Text.style.css +1 -0
  40. package/dist/assets/Toast.style.css +1 -0
  41. package/dist/assets/Tooltip.style.css +1 -0
  42. package/dist/components/alert/Alert.js +33 -41
  43. package/dist/components/aurora/Aurora.js +26 -22
  44. package/dist/components/avatar/Avatar.js +57 -55
  45. package/dist/components/badge/Badge.js +57 -64
  46. package/dist/components/breadcrumb/Breadcrumb.js +16 -21
  47. package/dist/components/button/Button.js +23 -31
  48. package/dist/components/button-group/ButtonGroup.js +28 -31
  49. package/dist/components/card/Card.js +28 -43
  50. package/dist/components/card/CardSection.js +21 -29
  51. package/dist/components/chart/Chart.js +138 -153
  52. package/dist/components/chart/LineChart.js +74 -74
  53. package/dist/components/chart/index.js +3 -8
  54. package/dist/components/col/Col.js +18 -29
  55. package/dist/components/command/Command.js +100 -134
  56. package/dist/components/container/Container.js +18 -23
  57. package/dist/components/context-menu/ContextMenu.js +118 -112
  58. package/dist/components/data-table/DataTable.js +53 -64
  59. package/dist/components/data-table/DataTableColumn.js +17 -22
  60. package/dist/components/data-table/DataTableFilterInput.js +208 -205
  61. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +58 -48
  62. package/dist/components/data-table/DataTableHeader.js +33 -38
  63. package/dist/components/data-table/DataTablePagination.js +61 -74
  64. package/dist/components/data-table/index.js +7 -22
  65. package/dist/components/dialog/Dialog.js +106 -97
  66. package/dist/components/editor/Editor.js +352 -323
  67. package/dist/components/file-tabs/FileTabs.js +77 -73
  68. package/dist/components/file-tabs/FileTabs.service.js +85 -87
  69. package/dist/components/file-tabs/FileTabs.view.js +0 -1
  70. package/dist/components/file-tabs/index.js +3 -9
  71. package/dist/components/flex/Flex.js +18 -23
  72. package/dist/components/form/CheckboxInput.js +72 -76
  73. package/dist/components/form/ColorInput.js +378 -353
  74. package/dist/components/form/DateInput.js +315 -265
  75. package/dist/components/form/EditorInput.js +597 -579
  76. package/dist/components/form/EmailInput.js +30 -23
  77. package/dist/components/form/FileInput.js +92 -123
  78. package/dist/components/form/Input.js +64 -58
  79. package/dist/components/form/Input.utils.js +25 -37
  80. package/dist/components/form/InputDescription.js +10 -11
  81. package/dist/components/form/InputLabel.js +17 -22
  82. package/dist/components/form/InputMessage.js +16 -17
  83. package/dist/components/form/InputWrapper.js +55 -65
  84. package/dist/components/form/NumberInput.js +41 -20
  85. package/dist/components/form/PasswordInput.js +71 -54
  86. package/dist/components/form/PinInput.js +49 -65
  87. package/dist/components/form/RadioGroup.js +41 -50
  88. package/dist/components/form/RadioInput.js +30 -29
  89. package/dist/components/form/SelectInput.js +68 -92
  90. package/dist/components/form/SwitchInput.js +17 -18
  91. package/dist/components/form/TagInput.js +108 -122
  92. package/dist/components/form/TextAreaInput.js +24 -21
  93. package/dist/components/form/TextInput.js +30 -22
  94. package/dist/components/form/index.js +22 -87
  95. package/dist/components/form/useForm.js +87 -88
  96. package/dist/components/fullscreen/FullScreen.js +27 -27
  97. package/dist/components/gantt/Gantt.js +99 -98
  98. package/dist/components/gantt/GanttGroup.js +210 -195
  99. package/dist/components/gantt/GanttHeader.js +78 -81
  100. package/dist/components/gantt/GanttItem.js +18 -22
  101. package/dist/components/icon/Icon.d.ts +6 -4
  102. package/dist/components/icon/Icon.js +53 -42
  103. package/dist/components/icon/codezero/codezero.js +10 -0
  104. package/dist/components/icon/codezero/gls.js +9 -0
  105. package/dist/components/icon/codezero/index.js +17 -13
  106. package/dist/components/json-view/JsonView.js +119 -109
  107. package/dist/components/layout/Layout.js +100 -78
  108. package/dist/components/menu/Menu.js +134 -128
  109. package/dist/components/progress/ProgressCircle.js +60 -49
  110. package/dist/components/progress/ProgressLinear.js +39 -43
  111. package/dist/components/quote/Quote.js +51 -43
  112. package/dist/components/resizable/Resizable.js +35 -33
  113. package/dist/components/row/Row.js +18 -23
  114. package/dist/components/scroll-area/ScrollArea.js +65 -76
  115. package/dist/components/segmented-control/SegmentedControl.js +46 -50
  116. package/dist/components/spacing/Spacing.js +15 -23
  117. package/dist/components/tab/Tab.js +73 -66
  118. package/dist/components/text/Text.js +18 -25
  119. package/dist/components/toast/Toast.js +104 -82
  120. package/dist/components/tooltip/Tooltip.js +65 -55
  121. package/dist/index.js +76 -272
  122. package/dist/node_modules/@lezer/common/dist/index.js +778 -143
  123. package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
  124. package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
  125. package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
  126. package/dist/node_modules/prettier/standalone.js +3444 -2415
  127. package/dist/utils/arrayService.js +0 -1
  128. package/dist/utils/color.js +46 -41
  129. package/dist/utils/component.js +60 -129
  130. package/dist/utils/contextStore.js +47 -58
  131. package/dist/utils/index.js +7 -29
  132. package/dist/utils/motion.js +84 -113
  133. package/dist/utils/reactiveArrayService.js +80 -76
  134. package/dist/utils/size.js +14 -26
  135. package/dist/utils/utils.js +0 -1
  136. package/dist/utils/view.js +27 -24
  137. package/dist/vite-env.d.js +0 -1
  138. package/package.json +28 -23
  139. package/dist/_virtual/compiler-runtime.js +0 -5
  140. package/dist/_virtual/compiler-runtime2.js +0 -4
  141. package/dist/_virtual/react-compiler-runtime.development.js +0 -4
  142. package/dist/_virtual/react-compiler-runtime.production.js +0 -4
  143. package/dist/assets/components/alert/Alert.style.css +0 -1
  144. package/dist/assets/components/aurora/Aurora.style.css +0 -1
  145. package/dist/assets/components/avatar/Avatar.style.css +0 -1
  146. package/dist/assets/components/badge/Badge.style.css +0 -1
  147. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
  148. package/dist/assets/components/button/Button.style.css +0 -1
  149. package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
  150. package/dist/assets/components/card/Card.style.css +0 -1
  151. package/dist/assets/components/chart/Chart.style.css +0 -1
  152. package/dist/assets/components/col/Col.style.css +0 -1
  153. package/dist/assets/components/command/Command.style.css +0 -1
  154. package/dist/assets/components/container/Container.style.css +0 -1
  155. package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
  156. package/dist/assets/components/data-table/DataTable.style.css +0 -1
  157. package/dist/assets/components/dialog/Dialog.style.css +0 -1
  158. package/dist/assets/components/editor/Editor.styles.css +0 -1
  159. package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
  160. package/dist/assets/components/form/ColorInput.style.css +0 -1
  161. package/dist/assets/components/form/DateInput.style.css +0 -1
  162. package/dist/assets/components/form/EditorInput.style.css +0 -1
  163. package/dist/assets/components/form/FileInput.style.css +0 -1
  164. package/dist/assets/components/form/Input.style.css +0 -1
  165. package/dist/assets/components/form/InputWrapper.style.css +0 -1
  166. package/dist/assets/components/form/SelectInput.style.css +0 -1
  167. package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
  168. package/dist/assets/components/gantt/Gantt.style.css +0 -1
  169. package/dist/assets/components/icon/Icon.style.css +0 -1
  170. package/dist/assets/components/json-view/JsonView.style.css +0 -1
  171. package/dist/assets/components/layout/Layout.style.css +0 -1
  172. package/dist/assets/components/menu/Menu.style.css +0 -1
  173. package/dist/assets/components/progress/Progress.style.css +0 -1
  174. package/dist/assets/components/quote/Quote.style.css +0 -1
  175. package/dist/assets/components/resizable/Resizable.style.css +0 -1
  176. package/dist/assets/components/row/Row.style.css +0 -1
  177. package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
  178. package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
  179. package/dist/assets/components/tab/Tab.style.css +0 -1
  180. package/dist/assets/components/text/Text.style.css +0 -1
  181. package/dist/assets/components/toast/Toast.style.css +0 -1
  182. package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
  183. package/dist/components/icon/codezero/codezero.svg.js +0 -5
  184. package/dist/components/icon/codezero/gls.svg.js +0 -5
  185. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  186. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
  187. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
  188. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  189. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
  190. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  191. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  192. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
  193. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  194. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  195. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
  196. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
  197. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
  198. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  199. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
  200. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -285
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
  202. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
  203. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
  204. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
  205. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -130
  206. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
  207. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -29
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -45
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -33
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
  215. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  216. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
  217. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
  218. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
  219. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -62
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -21
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
  225. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  226. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
  227. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  228. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  229. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
  230. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
  231. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
  232. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
  233. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
  234. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  235. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
  236. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
  237. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
  238. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  239. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  240. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
  241. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  242. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  243. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -12
  244. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
  245. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
  246. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  247. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -112
  248. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -144
  249. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -106
  250. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -38
  251. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
  252. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
  253. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
  254. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
  255. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -178
  256. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
  257. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
  258. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  259. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
  260. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
  261. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -59
  262. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -29
  263. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
  264. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -68
  265. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -74
  266. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
  267. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
  268. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
  269. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
  270. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
  271. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
  272. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  273. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -37
  274. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
  275. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  276. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
  277. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
  278. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
  279. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
  280. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
  281. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -8
  282. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
  283. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
  284. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
  285. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
  286. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
  287. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -10
  288. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
  289. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
  290. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
  291. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
  292. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -33
  293. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -12
  294. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
  295. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
  296. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
  297. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
  298. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
  299. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
  300. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
  301. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
  302. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
  303. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -43
  304. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
  305. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
  306. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
  307. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
  308. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
  309. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -18
  310. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
  311. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  312. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
  313. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
  314. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
  315. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -32
  316. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
  317. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
  318. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -53
  319. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -38
  320. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
  321. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
  322. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
  323. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -13
  324. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
  325. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -618
  326. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
  327. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
  328. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
  329. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
  330. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
  331. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
  332. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
  333. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
  334. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
  335. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
  336. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
  337. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
  338. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -263
  339. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
  340. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
  341. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
  342. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
  343. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  344. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
  345. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
  346. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -38
  347. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
  348. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
  349. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
  350. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
  351. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
  352. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
  353. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  354. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
  355. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
  356. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  357. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -143
  358. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
  359. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
  360. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
  361. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
  362. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
  363. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
  364. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
  365. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
  366. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
  367. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
  368. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
  369. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  370. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
  371. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
  372. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
  373. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
  374. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
  375. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -23
  376. package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -8
  377. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
  378. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
  379. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
  380. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
  381. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
  382. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
  383. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
  384. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
  385. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
  386. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
  387. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
  388. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
  389. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
  390. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
  391. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
  392. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
  393. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -212
  394. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
  395. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
  396. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
  397. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
  398. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
  399. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
  400. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
  401. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  402. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -51
  403. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -11
  404. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
  405. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
  406. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -27
  407. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
  408. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -37
  409. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  410. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
  411. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
  412. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -12
  413. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
  414. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
  415. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
  416. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
  417. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
  418. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
  419. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
  420. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
  421. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
  422. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
  423. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
  424. package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
  425. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
  426. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
  427. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  428. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  429. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
  430. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  431. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
  432. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
  433. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
  434. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
  435. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
  436. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -14
  437. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
  438. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
  439. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
  440. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
  441. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
  442. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
  443. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  444. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
  445. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
  446. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
  447. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
  448. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -4
  449. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
  450. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
  451. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -14
  452. package/dist/node_modules/react/compiler-runtime.js +0 -10
  453. /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
  454. /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
@@ -1,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 { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import { codezero_exports } from "./codezero/index.js";
4
+ import '../../assets/Icon.style.css';/* empty css */
5
+ import { c } from "react/compiler-runtime";
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 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 r = 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] : r;
30
+ }
31
+ if (e?.startsWith("thesvg:")) {
32
+ let [n, i] = e.replace("thesvg:", "").trim().split("/"), a = n.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) : r;
34
+ }
35
+ if (e?.startsWith("simple:")) {
36
+ let n = e.replace("simple:", "").trim(), i = `Si${n.charAt(0).toUpperCase() + n.slice(1)}`;
37
+ return i in SimpleIcons ? SimpleIcons[i] : r;
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] : r;
41
+ }, Icon = (n) => {
42
+ let i = c(14), o, s, l, u, d;
43
+ if (i[0] !== n) {
44
+ let { icon: r, size: a, color: f, stroke: p, ...m } = n, h = a === void 0 ? 24 : a, g;
45
+ i[6] === r ? g = i[7] : (g = resolveIcon(r), i[6] = r, i[7] = g), o = g, s = h, l = f, u = p, d = mergeComponentProps("icon", m), i[0] = n, i[1] = o, i[2] = s, i[3] = l, i[4] = u, i[5] = d;
46
+ } else o = i[1], s = i[2], l = i[3], u = i[4], d = i[5];
47
+ let f;
48
+ return i[8] !== o || i[9] !== s || i[10] !== l || i[11] !== u || i[12] !== d ? (f = /* @__PURE__ */ jsx(o, {
49
+ size: s,
50
+ color: l,
51
+ stroke: u,
52
+ ...d
53
+ }), i[8] = o, i[9] = s, i[10] = l, i[11] = u, i[12] = d, i[13] = f) : f = i[13], f;
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,122 @@
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 { motion as S } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
12
- import { AnimatePresence as E } from "../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.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 { mergeComponentProps } from "../../utils/component.js";
2
+ import { hashToColor } from "../../utils/color.js";
3
+ import "../../utils/index.js";
4
+ import { Text } from "../text/Text.js";
5
+ import '../../assets/JsonView.style.css';/* empty css */
6
+ import { c } from "react/compiler-runtime";
7
+ import React from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { AnimatePresence, motion } from "motion/react";
10
+ import { IconCheck, IconChevronRight, IconCopy } from "@tabler/icons-react";
11
+ import ReactJsonView from "@uiw/react-json-view";
12
+ var JSON_VIEW_THEME = {
13
+ "--w-rjv-font-family": "\"Inter\", sans-serif",
14
+ "--w-rjv-font-size": "0.8rem",
15
+ "--w-rjv-color": "rgba(255, 255, 255, 0.75)",
16
+ "--w-rjv-key-string": "rgba(255, 255, 255, 0.75)",
17
+ "--w-rjv-background-color": "transparent",
18
+ "--w-rjv-line-color": "rgba(191, 191, 191, 0.1)",
19
+ "--w-rjv-arrow-color": "rgba(255, 255, 255, 0.5)",
20
+ "--w-rjv-edit-color": "rgba(255, 255, 255, 0.75)",
21
+ "--w-rjv-info-color": "rgba(255, 255, 255, 0.5)",
22
+ "--w-rjv-update-color": "#ebcb8b",
23
+ "--w-rjv-copied-color": "rgba(255, 255, 255, 0.75)",
24
+ "--w-rjv-copied-success-color": "#29BF12",
25
+ "--w-rjv-curlybraces-color": hashToColor("bracket"),
26
+ "--w-rjv-brackets-color": hashToColor("squareBracket"),
27
+ "--w-rjv-quotes-color": "rgba(255, 255, 255, 0.75)",
28
+ "--w-rjv-quotes-string-color": hashToColor("Text"),
29
+ "--w-rjv-type-string-color": hashToColor("Text"),
30
+ "--w-rjv-type-int-color": hashToColor("Number"),
31
+ "--w-rjv-type-float-color": hashToColor("Number"),
32
+ "--w-rjv-type-bigint-color": hashToColor("Number"),
33
+ "--w-rjv-type-boolean-color": hashToColor("Boolean"),
34
+ "--w-rjv-type-date-color": hashToColor("Text"),
35
+ "--w-rjv-type-url-color": hashToColor("Text"),
36
+ "--w-rjv-type-null-color": hashToColor("Null"),
37
+ "--w-rjv-type-nan-color": hashToColor("Number"),
38
+ "--w-rjv-type-undefined-color": hashToColor("Null")
77
39
  };
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 }) });
40
+ const JsonView = (s) => {
41
+ let d = c(24), f, p, m, h, _, v;
42
+ if (d[0] !== s) {
43
+ let { displayObjectSize: i, displayDataTypes: a, enableClipboard: o, indentWidth: l, value: u, ...g } = s;
44
+ v = u, p = i === void 0 ? !1 : i, f = a === void 0 ? !1 : a, m = o === void 0 ? !0 : o, h = l === void 0 ? 12.8 : l, _ = mergeComponentProps("json-view", g), d[0] = s, d[1] = f, d[2] = p, d[3] = m, d[4] = h, d[5] = _, d[6] = v;
45
+ } else f = d[1], p = d[2], m = d[3], h = d[4], _ = d[5], v = d[6];
46
+ let y = _;
47
+ if (typeof v != "object" || !v) {
48
+ let e;
49
+ d[7] === Symbol.for("react.memo_cache_sentinel") ? (e = hashToColor("Text"), d[7] = e) : e = d[7];
50
+ let o = String(v), s;
51
+ return d[8] === o ? s = d[9] : (s = /* @__PURE__ */ jsx(Text, {
52
+ c: e,
53
+ children: o
54
+ }), d[8] = o, d[9] = s), s;
55
+ }
56
+ let b;
57
+ d[10] === y.style ? b = d[11] : (b = y.style ?? {}, d[10] = y.style, d[11] = b);
58
+ let x;
59
+ d[12] === b ? x = d[13] : (x = {
60
+ ...JSON_VIEW_THEME,
61
+ ...b
62
+ }, d[12] = b, d[13] = x);
63
+ let S, C;
64
+ d[14] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ jsx(ReactJsonView.Arrow, { render: _temp }), C = /* @__PURE__ */ jsx(ReactJsonView.Copied, { render: _temp2 }), d[14] = S, d[15] = C) : (S = d[14], C = d[15]);
65
+ let w;
66
+ return d[16] !== f || d[17] !== p || d[18] !== m || d[19] !== h || d[20] !== y || d[21] !== x || d[22] !== v ? (w = /* @__PURE__ */ jsxs(ReactJsonView, {
67
+ displayObjectSize: p,
68
+ displayDataTypes: f,
69
+ enableClipboard: m,
70
+ indentWidth: h,
71
+ ...y,
72
+ value: v,
73
+ style: x,
74
+ children: [S, C]
75
+ }), d[16] = f, d[17] = p, d[18] = m, d[19] = h, d[20] = y, d[21] = x, d[22] = v, d[23] = w) : w = d[23], w;
76
+ };
77
+ function _temp(e) {
78
+ let { "data-expanded": i, ...a } = e;
79
+ return /* @__PURE__ */ jsx("span", {
80
+ ...a,
81
+ className: "json-view__arrow",
82
+ "data-expanded": i,
83
+ children: /* @__PURE__ */ jsx(IconChevronRight, { size: 13 })
84
+ });
84
85
  }
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(E, { mode: "wait", initial: !1, children: /* @__PURE__ */ l(S.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") }) });
86
+ function _temp2(e) {
87
+ let { "data-copied": i, onClick: a, ...o } = e;
88
+ return /* @__PURE__ */ jsx("span", {
89
+ ...o,
90
+ onClick: a,
91
+ className: "json-view__copy",
92
+ "data-copied": i,
93
+ children: /* @__PURE__ */ jsx(AnimatePresence, {
94
+ mode: "wait",
95
+ initial: !1,
96
+ children: /* @__PURE__ */ jsx(motion.span, {
97
+ initial: {
98
+ opacity: 0,
99
+ scale: .5,
100
+ filter: "blur(0.35rem)"
101
+ },
102
+ animate: {
103
+ opacity: 1,
104
+ scale: 1,
105
+ filter: "blur(0px)"
106
+ },
107
+ exit: {
108
+ opacity: 0,
109
+ scale: .5,
110
+ filter: "blur(0.35rem)"
111
+ },
112
+ transition: {
113
+ duration: .05,
114
+ ease: "easeIn"
115
+ },
116
+ style: { display: "inline-flex" },
117
+ children: jsx(i ? IconCheck : IconCopy, { size: 13 })
118
+ }, i ? "check" : "copy")
119
+ })
120
+ });
109
121
  }
110
- export {
111
- K as JsonView
112
- };
122
+ export { JsonView };
@@ -1,79 +1,101 @@
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 { mergeComponentProps } from "../../utils/component.js";
2
+ import { getSize } from "../../utils/size.js";
3
+ import "../../utils/index.js";
4
+ import { Flex } from "../flex/Flex.js";
5
+ import '../../assets/Layout.style.css';/* empty css */
6
+ import { c } from "react/compiler-runtime";
7
+ import React from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ const Layout = (i) => {
10
+ let s = c(56), l, u, d, f, p, m, h, g;
11
+ if (s[0] !== i) {
12
+ let { children: t, topContent: n, bottomContent: r, leftContent: a, rightContent: o, showLayoutSplitter: _, layoutGap: v, ...y } = i;
13
+ u = t, g = n, l = r, f = a, p = o, m = _ === void 0 ? !0 : _, d = v === void 0 ? "xl" : v, h = mergeComponentProps("d-layout", y), s[0] = i, s[1] = l, s[2] = u, s[3] = d, s[4] = f, s[5] = p, s[6] = m, s[7] = h, s[8] = g;
14
+ } else l = s[1], u = s[2], d = s[3], f = s[4], p = s[5], m = s[6], h = s[7], g = s[8];
15
+ let _;
16
+ s[9] === d ? _ = s[10] : (_ = getSize(d), s[9] = d, s[10] = _);
17
+ let v;
18
+ s[11] === _ ? v = s[12] : (v = {
19
+ flexDirection: "column",
20
+ gap: _
21
+ }, s[11] = _, s[12] = v);
22
+ let y;
23
+ s[13] === g ? y = s[14] : (y = g && /* @__PURE__ */ jsx("div", {
24
+ className: "d-layout__top",
25
+ children: g
26
+ }), s[13] = g, s[14] = y);
27
+ let b;
28
+ s[15] !== m || s[16] !== g ? (b = g && m && /* @__PURE__ */ jsx("div", {
29
+ className: "d-layout__splitter",
30
+ "aria-orientation": "horizontal"
31
+ }), s[15] = m, s[16] = g, s[17] = b) : b = s[17];
32
+ let x;
33
+ s[18] === d ? x = s[19] : (x = getSize(d), s[18] = d, s[19] = x);
34
+ let S;
35
+ s[20] === x ? S = s[21] : (S = { gap: x }, s[20] = x, s[21] = S);
36
+ let C;
37
+ s[22] === f ? C = s[23] : (C = f && /* @__PURE__ */ jsx("div", {
38
+ className: "d-layout__left",
39
+ children: f
40
+ }), s[22] = f, s[23] = C);
41
+ let w;
42
+ s[24] !== f || s[25] !== m ? (w = f && m && /* @__PURE__ */ jsx("div", {
43
+ className: "d-layout__splitter",
44
+ "aria-orientation": "vertical"
45
+ }), s[24] = f, s[25] = m, s[26] = w) : w = s[26];
46
+ let T;
47
+ s[27] === u ? T = s[28] : (T = /* @__PURE__ */ jsx("div", {
48
+ className: "d-layout__content",
49
+ children: u
50
+ }), s[27] = u, s[28] = T);
51
+ let E;
52
+ s[29] !== p || s[30] !== m ? (E = p && m && /* @__PURE__ */ jsx("div", {
53
+ className: "d-layout__splitter",
54
+ "aria-orientation": "vertical"
55
+ }), s[29] = p, s[30] = m, s[31] = E) : E = s[31];
56
+ let D;
57
+ s[32] === p ? D = s[33] : (D = p && /* @__PURE__ */ jsx("div", {
58
+ className: "d-layout__right",
59
+ children: p
60
+ }), s[32] = p, s[33] = D);
61
+ let O;
62
+ s[34] !== E || s[35] !== D || s[36] !== S || s[37] !== C || s[38] !== w || s[39] !== T ? (O = /* @__PURE__ */ jsxs(Flex, {
63
+ className: "d-layout__middle",
64
+ style: S,
65
+ children: [
66
+ C,
67
+ w,
68
+ T,
69
+ E,
70
+ D
71
+ ]
72
+ }), s[34] = E, s[35] = D, s[36] = S, s[37] = C, s[38] = w, s[39] = T, s[40] = O) : O = s[40];
73
+ let k;
74
+ s[41] !== l || s[42] !== m ? (k = l && m && /* @__PURE__ */ jsx("div", {
75
+ className: "d-layout__splitter",
76
+ "aria-orientation": "horizontal"
77
+ }), s[41] = l, s[42] = m, s[43] = k) : k = s[43];
78
+ let A;
79
+ s[44] === l ? A = s[45] : (A = l && /* @__PURE__ */ jsx("div", {
80
+ className: "d-layout__bottom",
81
+ children: l
82
+ }), s[44] = l, s[45] = A);
83
+ let j;
84
+ s[46] !== O || s[47] !== k || s[48] !== A || s[49] !== v || s[50] !== y || s[51] !== b ? (j = /* @__PURE__ */ jsxs(Flex, {
85
+ className: "d-layout__inner",
86
+ style: v,
87
+ children: [
88
+ y,
89
+ b,
90
+ O,
91
+ k,
92
+ A
93
+ ]
94
+ }), s[46] = O, s[47] = k, s[48] = A, s[49] = v, s[50] = y, s[51] = b, s[52] = j) : j = s[52];
95
+ let M;
96
+ return s[53] !== h || s[54] !== j ? (M = /* @__PURE__ */ jsx("div", {
97
+ ...h,
98
+ children: j
99
+ }), s[53] = h, s[54] = j, s[55] = M) : M = s[55], M;
79
100
  };
101
+ export { Layout };