@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,56 @@
1
- import { jsxs as T, jsx as s, Fragment as L } from "react/jsx-runtime";
2
- import { c as N } from "../../_virtual/compiler-runtime.js";
3
- import "../../utils/contextStore.js";
4
- import p from "react";
5
- import { mergeComponentProps as P } from "../../utils/component.js";
6
- import "js-md5";
7
- import { InputMessage as k } from "./InputMessage.js";
8
- import { InputLabel as C } from "./InputLabel.js";
9
- import { InputDescription as D } from "./InputDescription.js";
10
- import '../../assets/components/form/InputWrapper.style.css';/* empty css */
11
- const U = p.forwardRef((F, W) => {
12
- const e = N.c(22), {
13
- children: a,
14
- left: d,
15
- right: c,
16
- leftType: $,
17
- rightType: x,
18
- title: m,
19
- description: f,
20
- formValidation: u,
21
- ...h
22
- } = F, b = $ === void 0 ? "icon" : $, I = x === void 0 ? "action" : x;
23
- let g;
24
- e[0] !== u ? (g = u === void 0 ? {
25
- valid: !0,
26
- notValidMessage: null,
27
- setValue: null
28
- } : u, e[0] = u, e[1] = g) : g = e[1];
29
- const t = g, R = p.useId(), _ = (p.isValidElement(a) ? a.props.id : void 0) ?? h.id ?? R, E = `${_}-label`, M = m ? void 0 : h["aria-label"] ?? h.placeholder, j = {
30
- id: _,
31
- ...m ? {
32
- "aria-labelledby": E
33
- } : {},
34
- ...M ? {
35
- "aria-label": M
36
- } : {}
37
- }, V = m && /* @__PURE__ */ s(C, { htmlFor: _, id: E, children: m });
38
- let i;
39
- e[2] !== f ? (i = f && /* @__PURE__ */ s(D, { children: f }), e[2] = f, e[3] = i) : i = e[3];
40
- const w = P(`input-wrapper ${t?.valid ? "" : "input-wrapper--not-valid"}`, h);
41
- let l;
42
- e[4] !== d || e[5] !== b ? (l = d && /* @__PURE__ */ s("div", { className: `input-wrapper__left input__left--${b}`, children: d }), e[4] = d, e[5] = b, e[6] = l) : l = e[6];
43
- const y = p.isValidElement(a) ? p.cloneElement(a, {
44
- ...j
45
- }) : a;
46
- let r;
47
- e[7] !== c || e[8] !== I ? (r = c && /* @__PURE__ */ s("div", { className: `input-wrapper__right input-wrapper__right--${I}`, children: c }), e[7] = c, e[8] = I, e[9] = r) : r = e[9];
48
- let o;
49
- e[10] !== w || e[11] !== l || e[12] !== y || e[13] !== r ? (o = /* @__PURE__ */ T("div", { ...w, children: [
50
- l,
51
- y,
52
- r
53
- ] }), e[10] = w, e[11] = l, e[12] = y, e[13] = r, e[14] = o) : o = e[14];
54
- let n;
55
- e[15] !== t ? (n = !t?.valid && t?.notValidMessage && /* @__PURE__ */ s(k, { children: t.notValidMessage }), e[15] = t, e[16] = n) : n = e[16];
56
- let v;
57
- return e[17] !== o || e[18] !== n || e[19] !== V || e[20] !== i ? (v = /* @__PURE__ */ T(L, { children: [
58
- V,
59
- i,
60
- o,
61
- n
62
- ] }), e[17] = o, e[18] = n, e[19] = V, e[20] = i, e[21] = v) : v = e[21], v;
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import { InputLabel } from "./InputLabel.js";
4
+ import { InputDescription } from "./InputDescription.js";
5
+ import { InputMessage } from "./InputMessage.js";
6
+ import '../../assets/InputWrapper.style.css';/* empty css */
7
+ import { c } from "react/compiler-runtime";
8
+ import React from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ const InputWrapper = React.forwardRef((u, d) => {
11
+ let f = c(22), { children: p, left: m, right: h, leftType: g, rightType: _, title: v, description: y, formValidation: b, ...x } = u, S = g === void 0 ? "icon" : g, C = _ === void 0 ? "action" : _, w;
12
+ f[0] === b ? w = f[1] : (w = b === void 0 ? {
13
+ valid: !0,
14
+ notValidMessage: null,
15
+ setValue: null
16
+ } : b, f[0] = b, f[1] = w);
17
+ let T = w, E = React.useId(), D = (React.isValidElement(p) ? p.props.id : void 0) ?? x.id ?? E, O = `${D}-label`, k = v ? void 0 : x["aria-label"] ?? x.placeholder, A = {
18
+ id: D,
19
+ ...v ? { "aria-labelledby": O } : {},
20
+ ...k ? { "aria-label": k } : {}
21
+ }, j = v && /* @__PURE__ */ jsx(InputLabel, {
22
+ htmlFor: D,
23
+ id: O,
24
+ children: v
25
+ }), M;
26
+ f[2] === y ? M = f[3] : (M = y && /* @__PURE__ */ jsx(InputDescription, { children: y }), f[2] = y, f[3] = M);
27
+ let N = mergeComponentProps(`input-wrapper ${T?.valid ? "" : "input-wrapper--not-valid"}`, x), P;
28
+ f[4] !== m || f[5] !== S ? (P = m && /* @__PURE__ */ jsx("div", {
29
+ className: `input-wrapper__left input__left--${S}`,
30
+ children: m
31
+ }), f[4] = m, f[5] = S, f[6] = P) : P = f[6];
32
+ let F = React.isValidElement(p) ? React.cloneElement(p, { ...A }) : p, I;
33
+ f[7] !== h || f[8] !== C ? (I = h && /* @__PURE__ */ jsx("div", {
34
+ className: `input-wrapper__right input-wrapper__right--${C}`,
35
+ children: h
36
+ }), f[7] = h, f[8] = C, f[9] = I) : I = f[9];
37
+ let L;
38
+ f[10] !== N || f[11] !== P || f[12] !== F || f[13] !== I ? (L = /* @__PURE__ */ jsxs("div", {
39
+ ...N,
40
+ children: [
41
+ P,
42
+ F,
43
+ I
44
+ ]
45
+ }), f[10] = N, f[11] = P, f[12] = F, f[13] = I, f[14] = L) : L = f[14];
46
+ let R;
47
+ f[15] === T ? R = f[16] : (R = !T?.valid && T?.notValidMessage && /* @__PURE__ */ jsx(InputMessage, { children: T.notValidMessage }), f[15] = T, f[16] = R);
48
+ let z;
49
+ return f[17] !== L || f[18] !== R || f[19] !== j || f[20] !== M ? (z = /* @__PURE__ */ jsxs(Fragment, { children: [
50
+ j,
51
+ M,
52
+ L,
53
+ R
54
+ ] }), f[17] = L, f[18] = R, f[19] = j, f[20] = M, f[21] = z) : z = f[21], z;
63
55
  });
64
- export {
65
- U as InputWrapper
66
- };
56
+ export { InputWrapper };
@@ -1,21 +1,42 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import o from "react";
3
- import { Input as l } from "./Input.js";
4
- import { IconMinus as a, IconPlus as p } from "@tabler/icons-react";
5
- import { Button as e } from "../button/Button.js";
6
- import { ButtonGroup as u } from "../button-group/ButtonGroup.js";
7
- const g = o.forwardRef((c, r) => {
8
- r = r || o.useRef(null);
9
- const {
10
- step: n = 1,
11
- ...i
12
- } = c;
13
- return /* @__PURE__ */ t(l, { className: "number-input", right: /* @__PURE__ */ t(u, { color: "primary", children: /* @__PURE__ */ t(e, { tabIndex: -1, color: "secondary", paddingSize: "xxs", onClick: () => {
14
- r.current && (r.current.value || (r.current.value = "0"), r.current.value = (Number.parseInt(r.current.value) + n).toString());
15
- }, children: /* @__PURE__ */ t(p, { size: 13 }) }) }), left: /* @__PURE__ */ t(u, { color: "primary", children: /* @__PURE__ */ t(e, { tabIndex: -1, color: "secondary", paddingSize: "xxs", onClick: () => {
16
- r.current && (r.current.value || (r.current.value = "0"), r.current.value = (Number.parseInt(r.current.value) - n).toString());
17
- }, children: /* @__PURE__ */ t(a, { size: 13 }) }) }), leftType: "action", type: "number", ref: r, ...i });
1
+ import { Button } from "../button/Button.js";
2
+ import { ButtonGroup } from "../button-group/ButtonGroup.js";
3
+ import { Input } from "./Input.js";
4
+ import React from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { IconMinus, IconPlus } from "@tabler/icons-react";
7
+ const NumberInput = React.forwardRef((s, c) => {
8
+ c ||= React.useRef(null);
9
+ let { step: l = 1, ...u } = s;
10
+ return /* @__PURE__ */ jsx(Input, {
11
+ className: "number-input",
12
+ right: /* @__PURE__ */ jsx(ButtonGroup, {
13
+ color: "primary",
14
+ children: /* @__PURE__ */ jsx(Button, {
15
+ tabIndex: -1,
16
+ color: "secondary",
17
+ paddingSize: "xxs",
18
+ onClick: () => {
19
+ c.current && (c.current.value || (c.current.value = "0"), c.current.value = (Number.parseInt(c.current.value) + l).toString());
20
+ },
21
+ children: /* @__PURE__ */ jsx(IconPlus, { size: 13 })
22
+ })
23
+ }),
24
+ left: /* @__PURE__ */ jsx(ButtonGroup, {
25
+ color: "primary",
26
+ children: /* @__PURE__ */ jsx(Button, {
27
+ tabIndex: -1,
28
+ color: "secondary",
29
+ paddingSize: "xxs",
30
+ onClick: () => {
31
+ c.current && (c.current.value || (c.current.value = "0"), c.current.value = (Number.parseInt(c.current.value) - l).toString());
32
+ },
33
+ children: /* @__PURE__ */ jsx(IconMinus, { size: 13 })
34
+ })
35
+ }),
36
+ leftType: "action",
37
+ type: "number",
38
+ ref: c,
39
+ ...u
40
+ });
18
41
  });
19
- export {
20
- g as NumberInput
21
- };
42
+ export { NumberInput };
@@ -1,55 +1,72 @@
1
- import { jsxs as c, Fragment as I, jsx as n } from "react/jsx-runtime";
2
- import u from "react";
3
- import { Input as w } from "./Input.js";
4
- import { IconEye as R, IconX as z } from "@tabler/icons-react";
5
- import { Button as p } from "../button/Button.js";
6
- import { clearInputElement as P } from "./Input.utils.js";
7
- import { Flex as A } from "../flex/Flex.js";
8
- import { ProgressLinear as B } from "../progress/ProgressLinear.js";
9
- import { InputMessage as D } from "./InputMessage.js";
10
- import { ButtonGroup as C } from "../button-group/ButtonGroup.js";
11
- const X = u.forwardRef((r, t) => {
12
- t = t || u.useRef(null);
13
- const {
14
- clearable: d = !0,
15
- visible: m = !0,
16
- right: f,
17
- formValidation: o,
18
- ...g
19
- } = r, h = (e) => (P(t.current), e.stopPropagation(), e.preventDefault(), !1), x = (e) => (t.current instanceof HTMLInputElement && (t.current.type === "password" ? t.current.type = "text" : t.current.type === "text" && (t.current.type = "password")), e.stopPropagation(), e.preventDefault(), !1), s = [f];
20
- m && s.push(/* @__PURE__ */ n(p, { color: "secondary", tabIndex: -1, paddingSize: "xxs", onClick: (e) => x(e), children: /* @__PURE__ */ n(R, { size: 13 }) })), d && s.push(/* @__PURE__ */ n(p, { tabIndex: -1, color: "secondary", paddingSize: "xxs", onClick: (e) => h(e), children: /* @__PURE__ */ n(z, { size: 13 }) }));
21
- const a = s.filter(Boolean), i = o?.notValidMessage ?? "", l = /^[1-5]+$/.test(i), y = i.length, M = Math.max(0, 5 - y) / 5 * 100;
22
- return /* @__PURE__ */ c(I, { children: [
23
- /* @__PURE__ */ n(w, { right: a.length > 0 ? /* @__PURE__ */ n(C, { color: "primary", children: a }) : void 0, rightType: "action", type: "password", ref: t, ...o ? {
24
- formValidation: l ? {
25
- setValue: o.setValue,
26
- valid: o.valid
27
- } : o
28
- } : {}, ...g }),
29
- l && !o?.valid && /* @__PURE__ */ c(A, { mt: 0.7, style: {
30
- flexDirection: "column"
31
- }, children: [
32
- /* @__PURE__ */ n(B, { value: M, max: 100, color: "linear-gradient(to right, #D90429 0%, #29BF12 100%)" }),
33
- (() => {
34
- const e = ["2", "3", "4", "5", "1"].find((b) => i.includes(b));
35
- if (!e) return null;
36
- const V = {
37
- 1: "Must be at least 8 characters",
38
- 2: "Must include a lowercase letter",
39
- 3: "Must include an uppercase letter",
40
- 4: "Must include a number",
41
- 5: "Must include a special character"
42
- }[e];
43
- return /* @__PURE__ */ n(D, { children: V });
44
- })()
45
- ] })
46
- ] });
47
- }), _ = (r) => {
48
- if (!r) return "12345";
49
- let t = null;
50
- return r.length < 8 && (t = (t ?? "") + "1"), /[a-z]/.test(r) || (t = (t ?? "") + "2"), /[A-Z]/.test(r) || (t = (t ?? "") + "3"), /[0-9]/.test(r) || (t = (t ?? "") + "4"), /[^A-Za-z0-9]/.test(r) || (t = (t ?? "") + "5"), t;
51
- };
52
- export {
53
- X as PasswordInput,
54
- _ as passwordValidation
1
+ import { Button } from "../button/Button.js";
2
+ import { ButtonGroup } from "../button-group/ButtonGroup.js";
3
+ import { Flex } from "../flex/Flex.js";
4
+ import { InputMessage } from "./InputMessage.js";
5
+ import { Input } from "./Input.js";
6
+ import { clearInputElement } from "./Input.utils.js";
7
+ import { ProgressLinear } from "../progress/ProgressLinear.js";
8
+ import React from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import { IconEye, IconX } from "@tabler/icons-react";
11
+ const PasswordInput = React.forwardRef((p, m) => {
12
+ m ||= React.useRef(null);
13
+ let { clearable: h = !0, visible: g = !0, right: _, formValidation: v, ...y } = p, b = (e) => (clearInputElement(m.current), e.stopPropagation(), e.preventDefault(), !1), x = (e) => (m.current instanceof HTMLInputElement && (m.current.type === "password" ? m.current.type = "text" : m.current.type === "text" && (m.current.type = "password")), e.stopPropagation(), e.preventDefault(), !1), S = [_];
14
+ g && S.push(/* @__PURE__ */ jsx(Button, {
15
+ color: "secondary",
16
+ tabIndex: -1,
17
+ paddingSize: "xxs",
18
+ onClick: (e) => x(e),
19
+ children: /* @__PURE__ */ jsx(IconEye, { size: 13 })
20
+ })), h && S.push(/* @__PURE__ */ jsx(Button, {
21
+ tabIndex: -1,
22
+ color: "secondary",
23
+ paddingSize: "xxs",
24
+ onClick: (e) => b(e),
25
+ children: /* @__PURE__ */ jsx(IconX, { size: 13 })
26
+ }));
27
+ let C = S.filter(Boolean), w = v?.notValidMessage ?? "", T = /^[1-5]+$/.test(w), E = w.length, D = Math.max(0, 5 - E) / 5 * 100;
28
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Input, {
29
+ right: C.length > 0 ? /* @__PURE__ */ jsx(ButtonGroup, {
30
+ color: "primary",
31
+ children: C
32
+ }) : void 0,
33
+ rightType: "action",
34
+ type: "password",
35
+ ref: m,
36
+ ...v ? { formValidation: T ? {
37
+ setValue: v.setValue,
38
+ valid: v.valid
39
+ } : v } : {},
40
+ ...y
41
+ }), T && !v?.valid && /* @__PURE__ */ jsxs(Flex, {
42
+ mt: .7,
43
+ style: { flexDirection: "column" },
44
+ children: [/* @__PURE__ */ jsx(ProgressLinear, {
45
+ value: D,
46
+ max: 100,
47
+ color: "linear-gradient(to right, #D90429 0%, #29BF12 100%)"
48
+ }), (() => {
49
+ let e = [
50
+ "2",
51
+ "3",
52
+ "4",
53
+ "5",
54
+ "1"
55
+ ].find((e) => w.includes(e));
56
+ if (!e) return null;
57
+ let f = {
58
+ 1: "Must be at least 8 characters",
59
+ 2: "Must include a lowercase letter",
60
+ 3: "Must include an uppercase letter",
61
+ 4: "Must include a number",
62
+ 5: "Must include a special character"
63
+ }[e];
64
+ return /* @__PURE__ */ jsx(InputMessage, { children: f });
65
+ })()]
66
+ })] });
67
+ }), passwordValidation = (e) => {
68
+ if (!e) return "12345";
69
+ let f = null;
70
+ return e.length < 8 && (f = (f ?? "") + "1"), /[a-z]/.test(e) || (f = (f ?? "") + "2"), /[A-Z]/.test(e) || (f = (f ?? "") + "3"), /[0-9]/.test(e) || (f = (f ?? "") + "4"), /[^A-Za-z0-9]/.test(e) || (f = (f ?? "") + "5"), f;
55
71
  };
72
+ export { PasswordInput, passwordValidation };
@@ -1,66 +1,50 @@
1
- import { jsx as a, jsxs as v, Fragment as F } from "react/jsx-runtime";
2
- import { c } from "../../_virtual/compiler-runtime.js";
3
- import { OneTimePasswordFieldInput as x, OneTimePasswordFieldHiddenInput as C, OneTimePasswordField as M } from "@radix-ui/react-one-time-password-field";
4
- import "../../utils/contextStore.js";
5
- import "react";
6
- import { mergeComponentProps as V } from "../../utils/component.js";
7
- import "js-md5";
8
- import { InputLabel as T } from "./InputLabel.js";
9
- import { InputDescription as _ } from "./InputDescription.js";
10
- import { InputMessage as $ } from "./InputMessage.js";
11
- import '../../assets/components/form/Input.style.css';/* empty css */
12
- const z = (n) => {
13
- const e = c.c(20);
14
- let t, i, s, l, o;
15
- if (e[0] !== n) {
16
- const {
17
- title: u,
18
- description: f,
19
- disabled: g,
20
- formValidation: h,
21
- ...p
22
- } = n, P = g === void 0 ? !1 : g;
23
- i = h === void 0 ? {
24
- valid: !0,
25
- notValidMessage: null,
26
- setValue: b
27
- } : h, e[6] !== u ? (l = u ? /* @__PURE__ */ a(T, { children: u }) : null, e[6] = u, e[7] = l) : l = e[7], e[8] !== f ? (o = f ? /* @__PURE__ */ a(_, { children: f }) : null, e[8] = f, e[9] = o) : o = e[9], t = M, s = V(`pin-input ${i?.valid ? "" : "pin-input--not-valid"}`, {
28
- ...p,
29
- disabled: P,
30
- onValueChange: (I) => {
31
- p.onValueChange && p.onValueChange(I), i.setValue?.(I);
32
- }
33
- }), e[0] = n, e[1] = t, e[2] = i, e[3] = s, e[4] = l, e[5] = o;
34
- } else
35
- t = e[1], i = e[2], s = e[3], l = e[4], o = e[5];
36
- let r;
37
- e[10] !== t || e[11] !== s ? (r = /* @__PURE__ */ a(t, { ...s }), e[10] = t, e[11] = s, e[12] = r) : r = e[12];
38
- let d;
39
- e[13] !== i ? (d = !i?.valid && i?.notValidMessage ? /* @__PURE__ */ a($, { children: i.notValidMessage }) : null, e[13] = i, e[14] = d) : d = e[14];
40
- let m;
41
- return e[15] !== l || e[16] !== o || e[17] !== r || e[18] !== d ? (m = /* @__PURE__ */ v(F, { children: [
42
- l,
43
- o,
44
- r,
45
- d
46
- ] }), e[15] = l, e[16] = o, e[17] = r, e[18] = d, e[19] = m) : m = e[19], m;
47
- }, A = (n) => {
48
- const e = c.c(4);
49
- let t;
50
- e[0] !== n ? (t = V("pin-input__field", n), e[0] = n, e[1] = t) : t = e[1];
51
- let i;
52
- return e[2] !== t ? (i = /* @__PURE__ */ a(x, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
53
- }, B = (n) => {
54
- const e = c.c(4);
55
- let t;
56
- e[0] !== n ? (t = V("pin-input__hidden-field", n), e[0] = n, e[1] = t) : t = e[1];
57
- let i;
58
- return e[2] !== t ? (i = /* @__PURE__ */ a(C, { ...t }), e[2] = t, e[3] = i) : i = e[3], i;
59
- };
60
- function b(n) {
61
- }
62
- export {
63
- z as PinInput,
64
- A as PinInputField,
65
- B as PinInputHiddenField
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import { InputLabel } from "./InputLabel.js";
4
+ import { InputDescription } from "./InputDescription.js";
5
+ import { InputMessage } from "./InputMessage.js";
6
+ import '../../assets/Input.style.css';/* empty css */
7
+ import { c } from "react/compiler-runtime";
8
+ import React from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import { OneTimePasswordField, OneTimePasswordFieldHiddenInput, OneTimePasswordFieldInput } from "@radix-ui/react-one-time-password-field";
11
+ const PinInput = (l) => {
12
+ let f = c(20), p, m, h, g, _;
13
+ if (f[0] !== l) {
14
+ let { title: o, description: s, disabled: u, formValidation: d, ...v } = l, y = u === void 0 ? !1 : u;
15
+ m = d === void 0 ? {
16
+ valid: !0,
17
+ notValidMessage: null,
18
+ setValue: _temp
19
+ } : d, f[6] === o ? g = f[7] : (g = o ? /* @__PURE__ */ jsx(InputLabel, { children: o }) : null, f[6] = o, f[7] = g), f[8] === s ? _ = f[9] : (_ = s ? /* @__PURE__ */ jsx(InputDescription, { children: s }) : null, f[8] = s, f[9] = _), p = OneTimePasswordField, h = mergeComponentProps(`pin-input ${m?.valid ? "" : "pin-input--not-valid"}`, {
20
+ ...v,
21
+ disabled: y,
22
+ onValueChange: (e) => {
23
+ v.onValueChange && v.onValueChange(e), m.setValue?.(e);
24
+ }
25
+ }), f[0] = l, f[1] = p, f[2] = m, f[3] = h, f[4] = g, f[5] = _;
26
+ } else p = f[1], m = f[2], h = f[3], g = f[4], _ = f[5];
27
+ let v;
28
+ f[10] !== p || f[11] !== h ? (v = /* @__PURE__ */ jsx(p, { ...h }), f[10] = p, f[11] = h, f[12] = v) : v = f[12];
29
+ let y;
30
+ f[13] === m ? y = f[14] : (y = !m?.valid && m?.notValidMessage ? /* @__PURE__ */ jsx(InputMessage, { children: m.notValidMessage }) : null, f[13] = m, f[14] = y);
31
+ let b;
32
+ return f[15] !== g || f[16] !== _ || f[17] !== v || f[18] !== y ? (b = /* @__PURE__ */ jsxs(Fragment, { children: [
33
+ g,
34
+ _,
35
+ v,
36
+ y
37
+ ] }), f[15] = g, f[16] = _, f[17] = v, f[18] = y, f[19] = b) : b = f[19], b;
38
+ }, PinInputField = (i) => {
39
+ let a = c(4), o;
40
+ a[0] === i ? o = a[1] : (o = mergeComponentProps("pin-input__field", i), a[0] = i, a[1] = o);
41
+ let l;
42
+ return a[2] === o ? l = a[3] : (l = /* @__PURE__ */ jsx(OneTimePasswordFieldInput, { ...o }), a[2] = o, a[3] = l), l;
43
+ }, PinInputHiddenField = (i) => {
44
+ let a = c(4), o;
45
+ a[0] === i ? o = a[1] : (o = mergeComponentProps("pin-input__hidden-field", i), a[0] = i, a[1] = o);
46
+ let l;
47
+ return a[2] === o ? l = a[3] : (l = /* @__PURE__ */ jsx(OneTimePasswordFieldHiddenInput, { ...o }), a[2] = o, a[3] = l), l;
66
48
  };
49
+ function _temp(e) {}
50
+ export { PinInput, PinInputField, PinInputHiddenField };
@@ -1,51 +1,42 @@
1
- import { jsx as f, jsxs as x, Fragment as R } from "react/jsx-runtime";
2
- import { c as C } from "../../_virtual/compiler-runtime.js";
3
- import * as M from "@radix-ui/react-radio-group";
4
- import "../../utils/contextStore.js";
5
- import "react";
6
- import { mergeComponentProps as v } from "../../utils/component.js";
7
- import "js-md5";
8
- import { InputLabel as G } from "./InputLabel.js";
9
- import { InputDescription as I } from "./InputDescription.js";
10
- import { InputMessage as j } from "./InputMessage.js";
11
- import '../../assets/components/form/Input.style.css';/* empty css */
12
- const y = (s) => {
13
- const e = C.c(22);
14
- let o, t, r, a, i, l;
15
- if (e[0] !== s) {
16
- const {
17
- title: d,
18
- description: p,
19
- initialValue: h,
20
- formValidation: V,
21
- ...c
22
- } = s;
23
- t = V === void 0 ? {
24
- valid: !0,
25
- notValidMessage: null,
26
- setValue: b
27
- } : V, e[7] !== d ? (i = d ? /* @__PURE__ */ f(G, { children: d }) : null, e[7] = d, e[8] = i) : i = e[8], e[9] !== p ? (l = p ? /* @__PURE__ */ f(I, { children: p }) : null, e[9] = p, e[10] = l) : l = e[10], o = M.RadioGroup, r = h ?? s.defaultValue, a = v("radio-group", {
28
- ...c,
29
- onValueChange: (g) => {
30
- c.onValueChange && c.onValueChange(g), t.setValue?.(g);
31
- }
32
- }), e[0] = s, e[1] = o, e[2] = t, e[3] = r, e[4] = a, e[5] = i, e[6] = l;
33
- } else
34
- o = e[1], t = e[2], r = e[3], a = e[4], i = e[5], l = e[6];
35
- let n;
36
- e[11] !== o || e[12] !== r || e[13] !== a ? (n = /* @__PURE__ */ f(o, { defaultValue: r, ...a }), e[11] = o, e[12] = r, e[13] = a, e[14] = n) : n = e[14];
37
- let m;
38
- e[15] !== t ? (m = !t?.valid && t?.notValidMessage ? /* @__PURE__ */ f(j, { children: t.notValidMessage }) : null, e[15] = t, e[16] = m) : m = e[16];
39
- let u;
40
- return e[17] !== i || e[18] !== l || e[19] !== n || e[20] !== m ? (u = /* @__PURE__ */ x(R, { children: [
41
- i,
42
- l,
43
- n,
44
- m
45
- ] }), e[17] = i, e[18] = l, e[19] = n, e[20] = m, e[21] = u) : u = e[21], u;
46
- };
47
- function b(s) {
48
- }
49
- export {
50
- y as RadioGroup
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import { InputLabel } from "./InputLabel.js";
4
+ import { InputDescription } from "./InputDescription.js";
5
+ import { InputMessage } from "./InputMessage.js";
6
+ import '../../assets/Input.style.css';/* empty css */
7
+ import { c } from "react/compiler-runtime";
8
+ import React from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import * as RadixRadioGroup from "@radix-ui/react-radio-group";
11
+ const RadioGroup = (l) => {
12
+ let f = c(22), p, m, h, g, _, v;
13
+ if (f[0] !== l) {
14
+ let { title: o, description: s, initialValue: u, formValidation: d, ...y } = l;
15
+ m = d === void 0 ? {
16
+ valid: !0,
17
+ notValidMessage: null,
18
+ setValue: _temp
19
+ } : d, f[7] === o ? _ = f[8] : (_ = o ? /* @__PURE__ */ jsx(InputLabel, { children: o }) : null, f[7] = o, f[8] = _), f[9] === s ? v = f[10] : (v = s ? /* @__PURE__ */ jsx(InputDescription, { children: s }) : null, f[9] = s, f[10] = v), p = RadixRadioGroup.RadioGroup, h = u ?? l.defaultValue, g = mergeComponentProps("radio-group", {
20
+ ...y,
21
+ onValueChange: (e) => {
22
+ y.onValueChange && y.onValueChange(e), m.setValue?.(e);
23
+ }
24
+ }), f[0] = l, f[1] = p, f[2] = m, f[3] = h, f[4] = g, f[5] = _, f[6] = v;
25
+ } else p = f[1], m = f[2], h = f[3], g = f[4], _ = f[5], v = f[6];
26
+ let y;
27
+ f[11] !== p || f[12] !== h || f[13] !== g ? (y = /* @__PURE__ */ jsx(p, {
28
+ defaultValue: h,
29
+ ...g
30
+ }), f[11] = p, f[12] = h, f[13] = g, f[14] = y) : y = f[14];
31
+ let b;
32
+ f[15] === m ? b = f[16] : (b = !m?.valid && m?.notValidMessage ? /* @__PURE__ */ jsx(InputMessage, { children: m.notValidMessage }) : null, f[15] = m, f[16] = b);
33
+ let x;
34
+ return f[17] !== _ || f[18] !== v || f[19] !== y || f[20] !== b ? (x = /* @__PURE__ */ jsxs(Fragment, { children: [
35
+ _,
36
+ v,
37
+ y,
38
+ b
39
+ ] }), f[17] = _, f[18] = v, f[19] = y, f[20] = b, f[21] = x) : x = f[21], x;
51
40
  };
41
+ function _temp(e) {}
42
+ export { RadioGroup };
@@ -1,30 +1,31 @@
1
- import { jsx as c, jsxs as p } from "react/jsx-runtime";
2
- import { c as u } from "../../_virtual/compiler-runtime.js";
3
- import * as s from "@radix-ui/react-radio-group";
4
- import "../../utils/contextStore.js";
5
- import "react";
6
- import { mergeComponentProps as d } from "../../utils/component.js";
7
- import "js-md5";
8
- import '../../assets/components/form/Input.style.css';/* empty css */
9
- const G = (e) => {
10
- const t = u.c(11);
11
- let r;
12
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = d("input radio-input", {}), t[0] = r) : r = t[0];
13
- let l;
14
- t[1] !== e ? (l = d("radio-input__button", e), t[1] = e, t[2] = l) : l = t[2];
15
- const a = l;
16
- let m;
17
- t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ c(s.RadioGroupIndicator, { className: "radio-input__indicator" }), t[3] = m) : m = t[3];
18
- let i;
19
- t[4] !== a ? (i = /* @__PURE__ */ c(s.RadioGroupItem, { ...a, children: m }), t[4] = a, t[5] = i) : i = t[5];
20
- let o;
21
- t[6] !== e.label ? (o = /* @__PURE__ */ c("div", { className: "input__right input__right--action}", children: e.label }), t[6] = e.label, t[7] = o) : o = t[7];
22
- let n;
23
- return t[8] !== i || t[9] !== o ? (n = /* @__PURE__ */ p("div", { ...r, children: [
24
- i,
25
- o
26
- ] }), t[8] = i, t[9] = o, t[10] = n) : n = t[10], n;
27
- };
28
- export {
29
- G as RadioInput
1
+ import { mergeComponentProps } from "../../utils/component.js";
2
+ import "../../utils/index.js";
3
+ import '../../assets/Input.style.css';/* empty css */
4
+ import { c } from "react/compiler-runtime";
5
+ import React from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import * as RadixRadioGroup from "@radix-ui/react-radio-group";
8
+ const RadioInput = (a) => {
9
+ let o = c(11), s;
10
+ o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = mergeComponentProps("input radio-input", {}), o[0] = s) : s = o[0];
11
+ let l;
12
+ o[1] === a ? l = o[2] : (l = mergeComponentProps("radio-input__button", a), o[1] = a, o[2] = l);
13
+ let u = l, d;
14
+ o[3] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ jsx(RadixRadioGroup.RadioGroupIndicator, { className: "radio-input__indicator" }), o[3] = d) : d = o[3];
15
+ let f;
16
+ o[4] === u ? f = o[5] : (f = /* @__PURE__ */ jsx(RadixRadioGroup.RadioGroupItem, {
17
+ ...u,
18
+ children: d
19
+ }), o[4] = u, o[5] = f);
20
+ let p;
21
+ o[6] === a.label ? p = o[7] : (p = /* @__PURE__ */ jsx("div", {
22
+ className: "input__right input__right--action}",
23
+ children: a.label
24
+ }), o[6] = a.label, o[7] = p);
25
+ let m;
26
+ return o[8] !== f || o[9] !== p ? (m = /* @__PURE__ */ jsxs("div", {
27
+ ...s,
28
+ children: [f, p]
29
+ }), o[8] = f, o[9] = p, o[10] = m) : m = o[10], m;
30
30
  };
31
+ export { RadioInput };