@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,66 +1,59 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { c as g } from "../../_virtual/compiler-runtime.js";
3
- import '../../assets/components/badge/Badge.style.css';/* empty css */
4
- import "../../utils/contextStore.js";
5
- import "react";
6
- import { mergeComponentProps as p } from "../../utils/component.js";
7
- import "js-md5";
8
- const R = (e) => {
9
- const o = g.c(6);
10
- let t, r;
11
- if (o[0] !== e) {
12
- const {
13
- color: c,
14
- border: d,
15
- children: a,
16
- ...b
17
- } = e;
18
- t = a;
19
- const s = c === void 0 ? "primary" : c;
20
- r = p(`badge badge--${s} ${(d === void 0 ? !1 : d) ? "" : "badge--border"}`, {
21
- ...b,
22
- style: {
23
- ...b.style,
24
- "--badge-color-background": h(s, 9),
25
- "--badge-color-border": l(s, 0.1),
26
- "--badge-color": l(s, 0.75)
27
- }
28
- }), o[0] = e, o[1] = t, o[2] = r;
29
- } else
30
- t = o[1], r = o[2];
31
- let n;
32
- return o[3] !== t || o[4] !== r ? (n = /* @__PURE__ */ u("span", { ...r, children: t }), o[3] = t, o[4] = r, o[5] = n) : n = o[5], n;
33
- }, i = (e) => Math.min(Math.max(e, 0), 1), m = (e) => {
34
- if (typeof document > "u")
35
- return {
36
- r: 0,
37
- g: 0,
38
- b: 0,
39
- a: 1
40
- };
41
- const o = document.createElement("span");
42
- o.style.color = e, document.body.appendChild(o);
43
- const t = getComputedStyle(o).color;
44
- document.body.removeChild(o);
45
- const r = t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)/);
46
- return r ? {
47
- r: Math.round(Number(r[1])),
48
- g: Math.round(Number(r[2])),
49
- b: Math.round(Number(r[3])),
50
- a: r[4] !== void 0 ? Number(r[4]) : 1
51
- } : {
52
- r: 0,
53
- g: 0,
54
- b: 0,
55
- a: 1
56
- };
57
- }, h = (e, o) => {
58
- const t = i(o * 0.1), r = m(e), n = m("#070514"), c = (d, a) => Math.round(d * (1 - t) + a * t);
59
- return `rgb(${c(r.r, n.r)}, ${c(r.g, n.g)}, ${c(r.b, n.b)})`;
60
- }, l = (e, o) => {
61
- const t = m(e);
62
- return `rgba(${t.r}, ${t.g}, ${t.b}, ${i(o)})`;
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import '../../assets/Badge.style.css';/* empty css */
4
+ import { c } from "react/compiler-runtime";
5
+ import React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ const Badge = (r) => {
8
+ let a = c(6), o, s;
9
+ if (a[0] !== r) {
10
+ let { color: n, border: i, children: u, ...d } = r;
11
+ o = u;
12
+ let f = n === void 0 ? "primary" : n;
13
+ s = mergeComponentProps(`badge badge--${f} ${i !== void 0 && i ? "" : "badge--border"}`, {
14
+ ...d,
15
+ style: {
16
+ ...d.style,
17
+ "--badge-color-background": mixColorRgb(f, 9),
18
+ "--badge-color-border": withAlpha(f, .1),
19
+ "--badge-color": withAlpha(f, .75)
20
+ }
21
+ }), a[0] = r, a[1] = o, a[2] = s;
22
+ } else o = a[1], s = a[2];
23
+ let u;
24
+ return a[3] !== o || a[4] !== s ? (u = /* @__PURE__ */ jsx("span", {
25
+ ...s,
26
+ children: o
27
+ }), a[3] = o, a[4] = s, a[5] = u) : u = a[5], u;
63
28
  };
64
- export {
65
- R as Badge
29
+ var clamp01 = (e) => Math.min(Math.max(e, 0), 1), parseCssColorToRgba = (e) => {
30
+ if (typeof document > "u") return {
31
+ r: 0,
32
+ g: 0,
33
+ b: 0,
34
+ a: 1
35
+ };
36
+ let n = document.createElement("span");
37
+ n.style.color = e, document.body.appendChild(n);
38
+ let r = getComputedStyle(n).color;
39
+ document.body.removeChild(n);
40
+ let i = r.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)/);
41
+ return i ? {
42
+ r: Math.round(Number(i[1])),
43
+ g: Math.round(Number(i[2])),
44
+ b: Math.round(Number(i[3])),
45
+ a: i[4] === void 0 ? 1 : Number(i[4])
46
+ } : {
47
+ r: 0,
48
+ g: 0,
49
+ b: 0,
50
+ a: 1
51
+ };
52
+ }, mixColorRgb = (e, n) => {
53
+ let r = clamp01(n * .1), i = parseCssColorToRgba(e), a = parseCssColorToRgba("#070514"), l = (e, n) => Math.round(e * (1 - r) + n * r);
54
+ return `rgb(${l(i.r, a.r)}, ${l(i.g, a.g)}, ${l(i.b, a.b)})`;
55
+ }, withAlpha = (e, n) => {
56
+ let r = parseCssColorToRgba(e);
57
+ return `rgba(${r.r}, ${r.g}, ${r.b}, ${clamp01(n)})`;
66
58
  };
59
+ export { Badge };
@@ -1,22 +1,17 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import i from "react";
3
- import "../../utils/contextStore.js";
4
- import { mergeComponentProps as a } from "../../utils/component.js";
5
- import "../../_virtual/compiler-runtime.js";
6
- import "js-md5";
7
- import '../../assets/components/breadcrumb/Breadcrumb.style.css';/* empty css */
8
- import { IconChevronRight as d } from "@tabler/icons-react";
9
- const j = (m) => {
10
- const {
11
- splitter: n = /* @__PURE__ */ t(d, { size: 16 }),
12
- children: l,
13
- ...c
14
- } = m, e = i.Children.toArray(l).filter((r) => r != null), p = e.length;
15
- return /* @__PURE__ */ t("div", { ...a("breadcrumb", c), children: e.map((r, o) => /* @__PURE__ */ s(i.Fragment, { children: [
16
- r,
17
- o < p - 1 ? /* @__PURE__ */ t("span", { className: "breadcrumb__splitter", children: n }) : null
18
- ] }, o)) });
19
- };
20
- export {
21
- j as Breadcrumb
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import '../../assets/Breadcrumb.style.css';/* empty css */
4
+ import React from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { IconChevronRight } from "@tabler/icons-react";
7
+ const Breadcrumb = (a) => {
8
+ let { splitter: o = /* @__PURE__ */ jsx(IconChevronRight, { size: 16 }), children: s, ...c } = a, l = React.Children.toArray(s).filter((e) => e != null), u = l.length;
9
+ return /* @__PURE__ */ jsx("div", {
10
+ ...mergeComponentProps("breadcrumb", c),
11
+ children: l.map((e, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [e, i < u - 1 ? /* @__PURE__ */ jsx("span", {
12
+ className: "breadcrumb__splitter",
13
+ children: o
14
+ }) : null] }, i))
15
+ });
22
16
  };
17
+ export { Breadcrumb };
@@ -1,32 +1,24 @@
1
- import { jsx as h } from "react/jsx-runtime";
2
- import { c as y } from "../../_virtual/compiler-runtime.js";
3
- import '../../assets/components/button/Button.style.css';/* empty css */
4
- import z from "react";
5
- import "../../utils/contextStore.js";
6
- import { mergeComponentProps as S } from "../../utils/component.js";
7
- import "js-md5";
8
- const k = z.forwardRef((d, l) => {
9
- const t = y.c(13);
10
- let o, r, e, i, n;
11
- if (t[0] !== d || t[1] !== l) {
12
- const {
13
- children: p,
14
- variant: c,
15
- color: m,
16
- paddingSize: u,
17
- active: b,
18
- disabled: f,
19
- ...v
20
- } = d;
21
- o = p;
22
- const $ = c === void 0 ? "normal" : c, g = m === void 0 ? "secondary" : m, x = u === void 0 ? "xs" : u, R = b === void 0 ? !1 : b;
23
- r = f === void 0 ? !1 : f, e = l, i = "button", n = S(`button button--${g} ${R ? "button--active" : ""} ${r ? "button--disabled" : ""} button--${$} button--${x}`, v), t[0] = d, t[1] = l, t[2] = o, t[3] = r, t[4] = e, t[5] = i, t[6] = n;
24
- } else
25
- o = t[2], r = t[3], e = t[4], i = t[5], n = t[6];
26
- const s = r ? "true" : "false";
27
- let a;
28
- return t[7] !== o || t[8] !== e || t[9] !== i || t[10] !== n || t[11] !== s ? (a = /* @__PURE__ */ h("button", { ref: e, type: i, ...n, "aria-disabled": s, children: o }), t[7] = o, t[8] = e, t[9] = i, t[10] = n, t[11] = s, t[12] = a) : a = t[12], a;
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import '../../assets/Button.style.css';/* empty css */
4
+ import { c } from "react/compiler-runtime";
5
+ import React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ const Button = React.forwardRef((n, i) => {
8
+ let a = c(13), o, s, l, u, d;
9
+ if (a[0] !== n || a[1] !== i) {
10
+ let { children: t, variant: r, color: f, paddingSize: p, active: m, disabled: h, ...g } = n;
11
+ o = t;
12
+ let _ = r === void 0 ? "normal" : r, v = f === void 0 ? "secondary" : f, y = p === void 0 ? "xs" : p, b = m === void 0 ? !1 : m;
13
+ s = h === void 0 ? !1 : h, l = i, u = "button", d = mergeComponentProps(`button button--${v} ${b ? "button--active" : ""} ${s ? "button--disabled" : ""} button--${_} button--${y}`, g), a[0] = n, a[1] = i, a[2] = o, a[3] = s, a[4] = l, a[5] = u, a[6] = d;
14
+ } else o = a[2], s = a[3], l = a[4], u = a[5], d = a[6];
15
+ let f = s ? "true" : "false", p;
16
+ return a[7] !== o || a[8] !== l || a[9] !== u || a[10] !== d || a[11] !== f ? (p = /* @__PURE__ */ jsx("button", {
17
+ ref: l,
18
+ type: u,
19
+ ...d,
20
+ "aria-disabled": f,
21
+ children: o
22
+ }), a[7] = o, a[8] = l, a[9] = u, a[10] = d, a[11] = f, a[12] = p) : p = a[12], p;
29
23
  });
30
- export {
31
- k as Button
32
- };
24
+ export { Button };
@@ -1,33 +1,30 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { c as _ } from "../../_virtual/compiler-runtime.js";
3
- import b from "react";
4
- import '../../assets/components/button-group/ButtonGroup.style.css';/* empty css */
5
- import "../../utils/contextStore.js";
6
- import { mergeComponentProps as h } from "../../utils/component.js";
7
- import "js-md5";
8
- const B = (e) => {
9
- const t = _.c(8);
10
- let o, r;
11
- if (t[0] !== e) {
12
- const {
13
- children: f,
14
- color: m,
15
- ...a
16
- } = e, d = m === void 0 ? "secondary" : m, s = b.Children.toArray(f).filter(v), l = s.length;
17
- o = h(`button-group button-group--${d}`, a);
18
- let i;
19
- t[3] !== l ? (i = (g, u) => {
20
- let c = "button-group__item";
21
- return u === l - 1 ? c = "button-group__last" : u === 0 && (c = "button-group__first"), /* @__PURE__ */ p("div", { className: c, children: g }, `button-group-${u}`);
22
- }, t[3] = l, t[4] = i) : i = t[4], r = s.map(i), t[0] = e, t[1] = o, t[2] = r;
23
- } else
24
- o = t[1], r = t[2];
25
- let n;
26
- return t[5] !== o || t[6] !== r ? (n = /* @__PURE__ */ p("div", { ...o, children: r }), t[5] = o, t[6] = r, t[7] = n) : n = t[7], n;
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import '../../assets/ButtonGroup.style.css';/* empty css */
4
+ import { c } from "react/compiler-runtime";
5
+ import React from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ const ButtonGroup = (a) => {
8
+ let o = c(8), s, l;
9
+ if (o[0] !== a) {
10
+ let { children: r, color: u, ...d } = a, f = u === void 0 ? "secondary" : u, p = React.Children.toArray(r).filter(_temp), m = p.length;
11
+ s = mergeComponentProps(`button-group button-group--${f}`, d);
12
+ let h;
13
+ o[3] === m ? h = o[4] : (h = (e, r) => {
14
+ let i = "button-group__item";
15
+ return r === m - 1 ? i = "button-group__last" : r === 0 && (i = "button-group__first"), /* @__PURE__ */ jsx("div", {
16
+ className: i,
17
+ children: e
18
+ }, `button-group-${r}`);
19
+ }, o[3] = m, o[4] = h), l = p.map(h), o[0] = a, o[1] = s, o[2] = l;
20
+ } else s = o[1], l = o[2];
21
+ let u;
22
+ return o[5] !== s || o[6] !== l ? (u = /* @__PURE__ */ jsx("div", {
23
+ ...s,
24
+ children: l
25
+ }), o[5] = s, o[6] = l, o[7] = u) : u = o[7], u;
27
26
  };
28
- function v(e) {
29
- return e != null;
27
+ function _temp(e) {
28
+ return e != null;
30
29
  }
31
- export {
32
- B as ButtonGroup
33
- };
30
+ export { ButtonGroup };
@@ -1,47 +1,32 @@
1
- import { jsx as C, Fragment as E } from "react/jsx-runtime";
2
- import { c as F } from "../../_virtual/compiler-runtime.js";
3
- import '../../assets/components/card/Card.style.css';/* empty css */
4
- import "../../utils/contextStore.js";
5
- import "react";
6
- import { mergeComponentProps as P } from "../../utils/component.js";
7
- import "js-md5";
8
- const I = (e) => {
9
- const o = F.c(6);
10
- let r, t;
11
- if (o[0] !== e) {
12
- const {
13
- children: b,
14
- color: i,
15
- variant: a,
16
- gradient: n,
17
- gradientColor: c,
18
- borderColor: l,
19
- outlineColor: s,
20
- outline: m,
21
- dashed: v,
22
- clickable: $,
23
- paddingSize: g,
24
- ...u
25
- } = e;
26
- r = b;
27
- const h = i === void 0 ? "primary" : i, x = a === void 0 ? "normal" : a, p = n === void 0 ? !1 : n, y = c === void 0 ? "secondary" : c, f = l === void 0 ? "secondary" : l, k = s === void 0 ? "secondary" : s, z = m === void 0 ? !1 : m, S = v === void 0 ? !1 : v, j = $ === void 0 ? !1 : $;
28
- t = P(`
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import '../../assets/Card.style.css';/* empty css */
4
+ import { c } from "react/compiler-runtime";
5
+ import React from "react";
6
+ import { Fragment, jsx } from "react/jsx-runtime";
7
+ const Card = (n) => {
8
+ let a = c(6), o, s;
9
+ if (a[0] !== n) {
10
+ let { children: t, color: r, variant: i, gradient: l, gradientColor: u, borderColor: d, outlineColor: f, outline: p, dashed: m, clickable: h, paddingSize: g, ..._ } = n;
11
+ o = t;
12
+ let v = r === void 0 ? "primary" : r, y = i === void 0 ? "normal" : i, b = l === void 0 ? !1 : l, x = u === void 0 ? "secondary" : u, S = d === void 0 ? "secondary" : d, C = f === void 0 ? "secondary" : f, w = p === void 0 ? !1 : p, T = m === void 0 ? !1 : m, E = h === void 0 ? !1 : h;
13
+ s = mergeComponentProps(`
29
14
  card
30
- card--${h} card--${x}
15
+ card--${v} card--${y}
31
16
  card--${g === void 0 ? "xl" : g}
32
- ${z ? `card--outline-${k}` : ""}
33
- ${p ? "card--gradient" : ""}
34
- ${f ? `card--border-${f}` : ""}
35
- ${S ? "card--border--dashed" : ""}
36
- ${p ? `card--gradient-${y}` : ""}
37
- ${j ? "card--clickable" : ""}
17
+ ${w ? `card--outline-${C}` : ""}
18
+ ${b ? "card--gradient" : ""}
19
+ ${S ? `card--border-${S}` : ""}
20
+ ${T ? "card--border--dashed" : ""}
21
+ ${b ? `card--gradient-${x}` : ""}
22
+ ${E ? "card--clickable" : ""}
38
23
 
39
- `, u), o[0] = e, o[1] = r, o[2] = t;
40
- } else
41
- r = o[1], t = o[2];
42
- let d;
43
- return o[3] !== r || o[4] !== t ? (d = /* @__PURE__ */ C(E, { children: /* @__PURE__ */ C("div", { ...t, children: r }) }), o[3] = r, o[4] = t, o[5] = d) : d = o[5], d;
44
- };
45
- export {
46
- I as Card
24
+ `, _), a[0] = n, a[1] = o, a[2] = s;
25
+ } else o = a[1], s = a[2];
26
+ let l;
27
+ return a[3] !== o || a[4] !== s ? (l = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", {
28
+ ...s,
29
+ children: o
30
+ }) }), a[3] = o, a[4] = s, a[5] = l) : l = a[5], l;
47
31
  };
32
+ export { Card };
@@ -1,31 +1,23 @@
1
- import { jsx as m, Fragment as l } from "react/jsx-runtime";
2
- import { c as f } from "../../_virtual/compiler-runtime.js";
3
- import "../../utils/contextStore.js";
4
- import "react";
5
- import { mergeComponentProps as v } from "../../utils/component.js";
6
- import "js-md5";
7
- const j = (i) => {
8
- const e = f.c(6);
9
- let r, o;
10
- if (e[0] !== i) {
11
- const {
12
- image: c,
13
- border: n,
14
- hover: s,
15
- children: a,
16
- ...d
17
- } = i;
18
- r = a, o = v(`
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import { c } from "react/compiler-runtime";
4
+ import React from "react";
5
+ import { Fragment, jsx } from "react/jsx-runtime";
6
+ var CardSection_default = (n) => {
7
+ let a = c(6), o, s;
8
+ if (a[0] !== n) {
9
+ let { image: t, border: r, hover: i, children: l, ...u } = n;
10
+ o = l, s = mergeComponentProps(`
19
11
  card__section
20
- ${(n === void 0 ? !1 : n) ? "card__section--border" : ""}
21
- ${(c === void 0 ? !1 : c) ? "card__section--image" : ""}
22
- ${(s === void 0 ? !1 : s) ? "card__section--hover" : ""}
23
- `, d), e[0] = i, e[1] = r, e[2] = o;
24
- } else
25
- r = e[1], o = e[2];
26
- let t;
27
- return e[3] !== r || e[4] !== o ? (t = /* @__PURE__ */ m(l, { children: /* @__PURE__ */ m("div", { ...o, children: r }) }), e[3] = r, e[4] = o, e[5] = t) : t = e[5], t;
28
- };
29
- export {
30
- j as default
12
+ ${r !== void 0 && r ? "card__section--border" : ""}
13
+ ${t !== void 0 && t ? "card__section--image" : ""}
14
+ ${i !== void 0 && i ? "card__section--hover" : ""}
15
+ `, u), a[0] = n, a[1] = o, a[2] = s;
16
+ } else o = a[1], s = a[2];
17
+ let l;
18
+ return a[3] !== o || a[4] !== s ? (l = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", {
19
+ ...s,
20
+ children: o
21
+ }) }), a[3] = o, a[4] = s, a[5] = l) : l = a[5], l;
31
22
  };
23
+ export { CardSection_default as default };