@vuer-ai/vuer-uikit 0.0.88 → 0.0.89

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 (263) hide show
  1. package/dist/SyncScroll/SyncScroll.cjs +3 -3
  2. package/dist/SyncScroll/SyncScroll.mjs +3 -3
  3. package/dist/SyncScroll/index.cjs +3 -3
  4. package/dist/SyncScroll/index.mjs +3 -3
  5. package/dist/{chunk-DKDXGIOU.cjs → chunk-2LIAVSDV.cjs} +2 -2
  6. package/dist/{chunk-VI67LD6E.mjs → chunk-3HUKXFD4.mjs} +1 -1
  7. package/dist/chunk-43ZAEQYD.cjs +564 -0
  8. package/dist/chunk-5PDZWPUI.cjs +208 -0
  9. package/dist/chunk-6FY4AL6N.mjs +15 -0
  10. package/dist/{chunk-XIAVCKC3.mjs → chunk-7YRIF5K4.mjs} +1 -1
  11. package/dist/chunk-AFJ6DMZW.cjs +54 -0
  12. package/dist/{chunk-UKSD5GPI.cjs → chunk-AI2OGSMP.cjs} +2 -2
  13. package/dist/{chunk-URUEOOWI.cjs → chunk-AUCWPDXH.cjs} +2 -2
  14. package/dist/chunk-AUENXQXS.mjs +206 -0
  15. package/dist/{chunk-I2UIJ23T.mjs → chunk-AXTZ2RY6.mjs} +1 -1
  16. package/dist/chunk-C4VVMAPU.cjs +285 -0
  17. package/dist/chunk-CGNTK3WP.cjs +494 -0
  18. package/dist/{chunk-IWS7VNJQ.mjs → chunk-D3U5PLHK.mjs} +1 -1
  19. package/dist/chunk-DG3DDLXZ.mjs +599 -0
  20. package/dist/chunk-E4AGCYEF.mjs +545 -0
  21. package/dist/chunk-EAQAIANE.mjs +20 -0
  22. package/dist/{chunk-BGYHKHMQ.mjs → chunk-FBPAIVBH.mjs} +1 -1
  23. package/dist/{chunk-TKV4YQPL.cjs → chunk-FR6JWEU4.cjs} +1 -1
  24. package/dist/chunk-G5JZGNKY.cjs +308 -0
  25. package/dist/{chunk-YSUCUNBJ.mjs → chunk-GMGAUN57.mjs} +1 -1
  26. package/dist/{chunk-LY5RLGFY.cjs → chunk-GPSSQ7XQ.cjs} +2 -2
  27. package/dist/chunk-H5LP5KMB.cjs +624 -0
  28. package/dist/{chunk-ALQIRJAV.mjs → chunk-HOF7YOYS.mjs} +1 -1
  29. package/dist/{chunk-NQVD3ZW4.cjs → chunk-I22QSUB7.cjs} +1 -1
  30. package/dist/{chunk-ZQNV64BB.cjs → chunk-IBSCKXGA.cjs} +2 -2
  31. package/dist/{chunk-6K3HTR4W.cjs → chunk-IPBOH3RD.cjs} +2 -2
  32. package/dist/chunk-ISLTDEPI.cjs +99 -0
  33. package/dist/{chunk-X3RZDN2C.cjs → chunk-IZNQXFZ6.cjs} +2 -2
  34. package/dist/{chunk-JWS7MZGX.mjs → chunk-J2RFARFN.mjs} +1 -1
  35. package/dist/{chunk-6NUAFTM5.cjs → chunk-JO5TYMHM.cjs} +2 -2
  36. package/dist/{chunk-7WS53WEO.cjs → chunk-JSUB7URV.cjs} +2 -2
  37. package/dist/chunk-KVRUJWH2.mjs +283 -0
  38. package/dist/chunk-KZP7AY75.cjs +22 -0
  39. package/dist/{chunk-4V5DMSTZ.mjs → chunk-LQWJ34PD.mjs} +1 -1
  40. package/dist/{chunk-7CP6EUTM.mjs → chunk-M7CWV3WR.mjs} +1 -1
  41. package/dist/{chunk-OLCFDXGF.mjs → chunk-OBYDDCUD.mjs} +1 -1
  42. package/dist/chunk-PDOFOJ4P.mjs +300 -0
  43. package/dist/{chunk-IV3CZ27Q.cjs → chunk-PHRBUOTG.cjs} +2 -2
  44. package/dist/{chunk-ZE7BMGJN.mjs → chunk-PXVFCVUE.mjs} +1 -1
  45. package/dist/{chunk-QN5Q5OCZ.mjs → chunk-QAERXYKR.mjs} +28 -4
  46. package/dist/{chunk-HMGDXKPW.cjs → chunk-QGGJXDBC.cjs} +2 -2
  47. package/dist/chunk-QKQFSQ6A.mjs +489 -0
  48. package/dist/{chunk-I7NPMMUG.cjs → chunk-RBKCE3N7.cjs} +28 -4
  49. package/dist/{chunk-VWPT77VT.mjs → chunk-SGYNKN5X.mjs} +1 -1
  50. package/dist/chunk-SH4FDQTB.mjs +94 -0
  51. package/dist/{chunk-U2CXSVXD.cjs → chunk-SJPXQV2G.cjs} +2 -2
  52. package/dist/{chunk-SCQQZUQV.mjs → chunk-SQBCVWEA.mjs} +1 -1
  53. package/dist/{chunk-72Q6YVID.cjs → chunk-TG4B5Y3I.cjs} +2 -2
  54. package/dist/chunk-VE3XLQLO.cjs +21 -0
  55. package/dist/chunk-WHRN67N6.mjs +51 -0
  56. package/dist/{chunk-4JAPZTNY.mjs → chunk-XTE66VZ3.mjs} +1 -1
  57. package/dist/dial/DialPanel.cjs +121 -0
  58. package/dist/dial/DialPanel.d.cts +9 -0
  59. package/dist/dial/DialPanel.d.ts +9 -0
  60. package/dist/dial/DialPanel.mjs +112 -0
  61. package/dist/dial/DialProvider.cjs +14 -0
  62. package/dist/dial/DialProvider.d.cts +48 -0
  63. package/dist/dial/DialProvider.d.ts +48 -0
  64. package/dist/dial/DialProvider.mjs +1 -0
  65. package/dist/dial/index.cjs +193 -0
  66. package/dist/dial/index.d.cts +5 -0
  67. package/dist/dial/index.d.ts +5 -0
  68. package/dist/dial/index.mjs +112 -0
  69. package/dist/dial/wrapped-inputs/ControlledInputs.cjs +137 -0
  70. package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +21 -0
  71. package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +21 -0
  72. package/dist/dial/wrapped-inputs/ControlledInputs.mjs +112 -0
  73. package/dist/dial/wrapped-inputs/DialVectorNInput.cjs +121 -0
  74. package/dist/dial/wrapped-inputs/DialVectorNInput.d.cts +15 -0
  75. package/dist/dial/wrapped-inputs/DialVectorNInput.d.ts +15 -0
  76. package/dist/dial/wrapped-inputs/DialVectorNInput.mjs +112 -0
  77. package/dist/dial/wrapped-inputs/DialWrappedInputs.cjs +161 -0
  78. package/dist/dial/wrapped-inputs/DialWrappedInputs.d.cts +24 -0
  79. package/dist/dial/wrapped-inputs/DialWrappedInputs.d.ts +24 -0
  80. package/dist/dial/wrapped-inputs/DialWrappedInputs.mjs +112 -0
  81. package/dist/dial/wrapped-inputs/index.cjs +185 -0
  82. package/dist/dial/wrapped-inputs/index.d.cts +4 -0
  83. package/dist/dial/wrapped-inputs/index.d.ts +4 -0
  84. package/dist/dial/wrapped-inputs/index.mjs +112 -0
  85. package/dist/highlight-cursor/enhanced-components.cjs +10 -10
  86. package/dist/highlight-cursor/enhanced-components.mjs +5 -5
  87. package/dist/highlight-cursor/index.cjs +10 -10
  88. package/dist/highlight-cursor/index.mjs +5 -5
  89. package/dist/hooks/index.cjs +12 -12
  90. package/dist/hooks/index.mjs +3 -3
  91. package/dist/hooks/useQueryParams.cjs +3 -3
  92. package/dist/hooks/useQueryParams.mjs +2 -2
  93. package/dist/index.cjs +475 -397
  94. package/dist/index.d.cts +4 -0
  95. package/dist/index.d.ts +4 -0
  96. package/dist/index.mjs +55 -53
  97. package/dist/ui/UIKitBadge.cjs +8 -8
  98. package/dist/ui/UIKitBadge.mjs +4 -4
  99. package/dist/ui/avatar.cjs +3 -3
  100. package/dist/ui/avatar.mjs +3 -3
  101. package/dist/ui/badge.cjs +3 -3
  102. package/dist/ui/badge.d.cts +1 -1
  103. package/dist/ui/badge.d.ts +1 -1
  104. package/dist/ui/badge.mjs +3 -3
  105. package/dist/ui/button.cjs +3 -3
  106. package/dist/ui/button.mjs +3 -3
  107. package/dist/ui/card.cjs +3 -3
  108. package/dist/ui/card.mjs +3 -3
  109. package/dist/ui/checkbox.cjs +3 -3
  110. package/dist/ui/checkbox.mjs +3 -3
  111. package/dist/ui/collapsible.cjs +3 -3
  112. package/dist/ui/collapsible.mjs +3 -3
  113. package/dist/ui/drawer.cjs +3 -3
  114. package/dist/ui/drawer.mjs +3 -3
  115. package/dist/ui/dropdown.cjs +3 -3
  116. package/dist/ui/dropdown.mjs +3 -3
  117. package/dist/ui/index.cjs +390 -390
  118. package/dist/ui/index.mjs +52 -52
  119. package/dist/ui/inputs/color-input.cjs +3 -3
  120. package/dist/ui/inputs/color-input.mjs +3 -3
  121. package/dist/ui/inputs/index.cjs +39 -39
  122. package/dist/ui/inputs/index.mjs +18 -18
  123. package/dist/ui/inputs/input-numbers.cjs +5 -5
  124. package/dist/ui/inputs/input-numbers.d.cts +7 -2
  125. package/dist/ui/inputs/input-numbers.d.ts +7 -2
  126. package/dist/ui/inputs/input-numbers.mjs +4 -4
  127. package/dist/ui/inputs/input.cjs +3 -3
  128. package/dist/ui/inputs/input.d.cts +1 -1
  129. package/dist/ui/inputs/input.d.ts +1 -1
  130. package/dist/ui/inputs/input.mjs +3 -3
  131. package/dist/ui/inputs/number-inputs/CmInput.cjs +6 -6
  132. package/dist/ui/inputs/number-inputs/CmInput.mjs +5 -5
  133. package/dist/ui/inputs/number-inputs/DegInput.cjs +6 -6
  134. package/dist/ui/inputs/number-inputs/DegInput.mjs +5 -5
  135. package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +8 -8
  136. package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +7 -7
  137. package/dist/ui/inputs/number-inputs/EulerInput.cjs +7 -7
  138. package/dist/ui/inputs/number-inputs/EulerInput.mjs +6 -6
  139. package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +8 -8
  140. package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +7 -7
  141. package/dist/ui/inputs/number-inputs/InchInput.cjs +6 -6
  142. package/dist/ui/inputs/number-inputs/InchInput.mjs +5 -5
  143. package/dist/ui/inputs/number-inputs/IntInput.cjs +6 -6
  144. package/dist/ui/inputs/number-inputs/IntInput.mjs +5 -5
  145. package/dist/ui/inputs/number-inputs/KVectorInput.cjs +7 -7
  146. package/dist/ui/inputs/number-inputs/KVectorInput.mjs +6 -6
  147. package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +7 -7
  148. package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +6 -6
  149. package/dist/ui/inputs/number-inputs/RadInput.cjs +6 -6
  150. package/dist/ui/inputs/number-inputs/RadInput.mjs +5 -5
  151. package/dist/ui/inputs/number-inputs/TimeInput.cjs +6 -6
  152. package/dist/ui/inputs/number-inputs/TimeInput.mjs +5 -5
  153. package/dist/ui/inputs/number-inputs/Vec3Input.cjs +7 -7
  154. package/dist/ui/inputs/number-inputs/Vec3Input.mjs +6 -6
  155. package/dist/ui/inputs/number-inputs/VectorInput.cjs +6 -6
  156. package/dist/ui/inputs/number-inputs/VectorInput.d.cts +6 -0
  157. package/dist/ui/inputs/number-inputs/VectorInput.d.ts +6 -0
  158. package/dist/ui/inputs/number-inputs/VectorInput.mjs +5 -5
  159. package/dist/ui/inputs/number-inputs/index.cjs +36 -36
  160. package/dist/ui/inputs/number-inputs/index.mjs +17 -17
  161. package/dist/ui/inputs/presets-input.cjs +6 -6
  162. package/dist/ui/inputs/presets-input.mjs +5 -5
  163. package/dist/ui/label.cjs +3 -3
  164. package/dist/ui/label.mjs +3 -3
  165. package/dist/ui/layout.cjs +5 -5
  166. package/dist/ui/layout.mjs +4 -4
  167. package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +3 -3
  168. package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +3 -3
  169. package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +3 -3
  170. package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +3 -3
  171. package/dist/ui/layouts/dock-layout/index.cjs +3 -3
  172. package/dist/ui/layouts/dock-layout/index.mjs +3 -3
  173. package/dist/ui/layouts/index.cjs +9 -9
  174. package/dist/ui/layouts/index.mjs +5 -5
  175. package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +3 -3
  176. package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +3 -3
  177. package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +3 -3
  178. package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +3 -3
  179. package/dist/ui/layouts/liquid-layout/index.cjs +3 -3
  180. package/dist/ui/layouts/liquid-layout/index.mjs +3 -3
  181. package/dist/ui/modal.cjs +3 -3
  182. package/dist/ui/modal.mjs +3 -3
  183. package/dist/ui/navigation.cjs +3 -3
  184. package/dist/ui/navigation.mjs +3 -3
  185. package/dist/ui/pagination.cjs +3 -3
  186. package/dist/ui/pagination.mjs +3 -3
  187. package/dist/ui/panel.cjs +3 -3
  188. package/dist/ui/panel.mjs +3 -3
  189. package/dist/ui/popover.cjs +3 -3
  190. package/dist/ui/popover.mjs +3 -3
  191. package/dist/ui/radio-group.cjs +3 -3
  192. package/dist/ui/radio-group.mjs +3 -3
  193. package/dist/ui/resizable.cjs +3 -3
  194. package/dist/ui/resizable.mjs +3 -3
  195. package/dist/ui/select.cjs +3 -3
  196. package/dist/ui/select.d.cts +1 -1
  197. package/dist/ui/select.d.ts +1 -1
  198. package/dist/ui/select.mjs +3 -3
  199. package/dist/ui/separator.cjs +3 -3
  200. package/dist/ui/separator.mjs +3 -3
  201. package/dist/ui/sheet.cjs +3 -3
  202. package/dist/ui/sheet.mjs +3 -3
  203. package/dist/ui/sidebar.cjs +29 -29
  204. package/dist/ui/sidebar.mjs +5 -5
  205. package/dist/ui/simple-tree-view.cjs +3 -3
  206. package/dist/ui/simple-tree-view.mjs +3 -3
  207. package/dist/ui/skeleton.cjs +3 -3
  208. package/dist/ui/skeleton.mjs +3 -3
  209. package/dist/ui/slider.cjs +3 -3
  210. package/dist/ui/slider.mjs +3 -3
  211. package/dist/ui/switch.cjs +3 -3
  212. package/dist/ui/switch.mjs +3 -3
  213. package/dist/ui/table.cjs +3 -3
  214. package/dist/ui/table.mjs +3 -3
  215. package/dist/ui/tabs.cjs +3 -3
  216. package/dist/ui/tabs.mjs +3 -3
  217. package/dist/ui/textarea.cjs +3 -3
  218. package/dist/ui/textarea.d.cts +1 -1
  219. package/dist/ui/textarea.d.ts +1 -1
  220. package/dist/ui/textarea.mjs +3 -3
  221. package/dist/ui/theme/ThemeToggles.cjs +3 -3
  222. package/dist/ui/theme/ThemeToggles.mjs +3 -3
  223. package/dist/ui/theme/index.cjs +3 -3
  224. package/dist/ui/theme/index.mjs +3 -3
  225. package/dist/ui/toggle-buttons.cjs +3 -3
  226. package/dist/ui/toggle-buttons.mjs +3 -3
  227. package/dist/ui/toggle-group.cjs +3 -3
  228. package/dist/ui/toggle-group.mjs +3 -3
  229. package/dist/ui/toggle.cjs +3 -3
  230. package/dist/ui/toggle.mjs +3 -3
  231. package/dist/ui/toolbar.cjs +3 -3
  232. package/dist/ui/toolbar.mjs +3 -3
  233. package/dist/ui/tooltip.cjs +3 -3
  234. package/dist/ui/tooltip.mjs +3 -3
  235. package/dist/ui/tree-view/TreeSearchBar.cjs +3 -3
  236. package/dist/ui/tree-view/TreeSearchBar.mjs +3 -3
  237. package/dist/ui/tree-view/TreeView.cjs +3 -3
  238. package/dist/ui/tree-view/TreeView.mjs +3 -3
  239. package/dist/ui/tree-view/index.cjs +4 -4
  240. package/dist/ui/tree-view/index.mjs +4 -4
  241. package/dist/ui/tree-view-legacy.cjs +3 -3
  242. package/dist/ui/tree-view-legacy.mjs +3 -3
  243. package/dist/ui/waterfall/CursorOverlay.cjs +3 -3
  244. package/dist/ui/waterfall/CursorOverlay.mjs +3 -3
  245. package/dist/ui/waterfall/TimelineEvent.cjs +3 -3
  246. package/dist/ui/waterfall/TimelineEvent.mjs +3 -3
  247. package/dist/ui/waterfall/TimelineProcessBar.cjs +3 -3
  248. package/dist/ui/waterfall/TimelineProcessBar.mjs +3 -3
  249. package/dist/ui/waterfall/Wedges.cjs +3 -3
  250. package/dist/ui/waterfall/Wedges.mjs +3 -3
  251. package/dist/ui/waterfall/index.cjs +11 -11
  252. package/dist/ui/waterfall/index.mjs +10 -10
  253. package/package.json +1 -1
  254. package/dist/chunk-VFSVU357.cjs +0 -11
  255. package/dist/chunk-XOZ6S53T.mjs +0 -9
  256. package/dist/{chunk-6U6BHFK4.cjs → chunk-245M2MZD.cjs} +4 -4
  257. package/dist/{chunk-A2PCEL5S.mjs → chunk-4AOAH77D.mjs} +2 -2
  258. package/dist/{chunk-K6FXUV3A.mjs → chunk-4EGKBNF2.mjs} +1 -1
  259. package/dist/{chunk-7QRSUUA2.cjs → chunk-74ETKEMH.cjs} +2 -2
  260. package/dist/{chunk-N22BVDJM.mjs → chunk-K4DBU34E.mjs} +4 -4
  261. package/dist/{chunk-Q4XH2Z5M.cjs → chunk-LYZJNEOR.cjs} +1 -1
  262. package/dist/{chunk-U3LN5NB6.mjs → chunk-OEIF3JCH.mjs} +1 -1
  263. package/dist/{chunk-QUFZWF4E.cjs → chunk-POGM4FXC.cjs} +1 -1
@@ -0,0 +1,545 @@
1
+ import { RadInput } from './chunk-3HUKXFD4.mjs';
2
+ import { TimeInput } from './chunk-M7CWV3WR.mjs';
3
+ import { Vec3Input } from './chunk-AXTZ2RY6.mjs';
4
+ import { DegInput } from './chunk-XTE66VZ3.mjs';
5
+ import { EulerDegInput } from './chunk-GMGAUN57.mjs';
6
+ import { EulerInput } from './chunk-OBYDDCUD.mjs';
7
+ import { InchInput } from './chunk-7YRIF5K4.mjs';
8
+ import { IntInput } from './chunk-HOF7YOYS.mjs';
9
+ import { QuaternionInput } from './chunk-J2RFARFN.mjs';
10
+ import { VectorInput } from './chunk-EAQAIANE.mjs';
11
+ import { CmInput } from './chunk-LQWJ34PD.mjs';
12
+ import { Switch } from './chunk-AZBJB6KC.mjs';
13
+ import { Label } from './chunk-42UBHC2D.mjs';
14
+ import { Layout } from './chunk-FBPAIVBH.mjs';
15
+ import { useDialSchema } from './chunk-WHRN67N6.mjs';
16
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
17
+
18
+ var DialInputWrapper = ({ label, column = false, children }) => {
19
+ if (!label) {
20
+ return /* @__PURE__ */ jsx(Fragment, { children });
21
+ }
22
+ const orientation = column ? "horizontal" : "vertical";
23
+ return /* @__PURE__ */ jsxs(Layout, { orientation, align: "center", children: [
24
+ /* @__PURE__ */ jsx(Label, { size: "sm", children: label }),
25
+ /* @__PURE__ */ jsx(Fragment, { children })
26
+ ] });
27
+ };
28
+ var DialVec3Input = ({
29
+ name,
30
+ label,
31
+ size = "sm",
32
+ step,
33
+ column = false
34
+ }) => {
35
+ const { getValue, setValue } = useDialSchema();
36
+ const value = getValue(name) ?? [0, 0, 0];
37
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
38
+ Vec3Input,
39
+ {
40
+ value,
41
+ onValuesChange: (val) => setValue(name, val),
42
+ size,
43
+ step
44
+ }
45
+ ) });
46
+ };
47
+ var DialEulerInput = ({
48
+ name,
49
+ label,
50
+ size = "sm",
51
+ step,
52
+ column = false
53
+ }) => {
54
+ const { getValue, setValue } = useDialSchema();
55
+ const value = getValue(name) ?? [0, 0, 0];
56
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
57
+ EulerInput,
58
+ {
59
+ value,
60
+ onValuesChange: (val) => setValue(name, val),
61
+ size,
62
+ step
63
+ }
64
+ ) });
65
+ };
66
+ var DialEulerDegInput = ({
67
+ name,
68
+ label,
69
+ size = "sm",
70
+ step,
71
+ column = false
72
+ }) => {
73
+ const { getValue, setValue } = useDialSchema();
74
+ const value = getValue(name) ?? [0, 0, 0];
75
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
76
+ EulerDegInput,
77
+ {
78
+ value,
79
+ onValuesChange: (val) => setValue(name, val),
80
+ size,
81
+ step
82
+ }
83
+ ) });
84
+ };
85
+ var DialQuaternionInput = ({
86
+ name,
87
+ label,
88
+ size = "sm",
89
+ step,
90
+ column = false
91
+ }) => {
92
+ const { getValue, setValue } = useDialSchema();
93
+ const value = getValue(name) ?? [1, 0, 0, 0];
94
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
95
+ QuaternionInput,
96
+ {
97
+ value,
98
+ onValuesChange: (val) => setValue(name, val),
99
+ size,
100
+ step
101
+ }
102
+ ) });
103
+ };
104
+ var DialVectorInput = ({
105
+ name,
106
+ label,
107
+ size = "sm",
108
+ step,
109
+ dimensions = 3,
110
+ column = false
111
+ }) => {
112
+ const { getValue, setValue } = useDialSchema();
113
+ const value = getValue(name) ?? new Array(dimensions).fill(0);
114
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
115
+ VectorInput,
116
+ {
117
+ value,
118
+ onValuesChange: (val) => setValue(name, val),
119
+ size,
120
+ step
121
+ }
122
+ ) });
123
+ };
124
+ var DialIntInput = ({
125
+ name,
126
+ label,
127
+ size = "sm",
128
+ step = 1,
129
+ column = false
130
+ }) => {
131
+ const { getValue, setValue } = useDialSchema();
132
+ const value = getValue(name) ?? 0;
133
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
134
+ IntInput,
135
+ {
136
+ value,
137
+ onChange: (val) => setValue(name, val),
138
+ size,
139
+ step
140
+ }
141
+ ) });
142
+ };
143
+ var DialDegInput = ({
144
+ name,
145
+ label,
146
+ size = "sm",
147
+ step,
148
+ column = false
149
+ }) => {
150
+ const { getValue, setValue } = useDialSchema();
151
+ const value = getValue(name) ?? 0;
152
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
153
+ DegInput,
154
+ {
155
+ value,
156
+ onChange: (val) => setValue(name, val),
157
+ size,
158
+ step
159
+ }
160
+ ) });
161
+ };
162
+ var DialRadInput = ({
163
+ name,
164
+ label,
165
+ size = "sm",
166
+ step,
167
+ column = false
168
+ }) => {
169
+ const { getValue, setValue } = useDialSchema();
170
+ const value = getValue(name) ?? 0;
171
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
172
+ RadInput,
173
+ {
174
+ value,
175
+ onChange: (val) => setValue(name, val),
176
+ size,
177
+ step
178
+ }
179
+ ) });
180
+ };
181
+ var DialCmInput = ({
182
+ name,
183
+ label,
184
+ size = "sm",
185
+ step,
186
+ column = false
187
+ }) => {
188
+ const { getValue, setValue } = useDialSchema();
189
+ const value = getValue(name) ?? 0;
190
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
191
+ CmInput,
192
+ {
193
+ value,
194
+ onChange: (val) => setValue(name, val),
195
+ size,
196
+ step
197
+ }
198
+ ) });
199
+ };
200
+ var DialInchInput = ({
201
+ name,
202
+ label,
203
+ size = "sm",
204
+ step,
205
+ column = false
206
+ }) => {
207
+ const { getValue, setValue } = useDialSchema();
208
+ const value = getValue(name) ?? 0;
209
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
210
+ InchInput,
211
+ {
212
+ value,
213
+ onChange: (val) => setValue(name, val),
214
+ size,
215
+ step
216
+ }
217
+ ) });
218
+ };
219
+ var DialTimeInput = ({
220
+ name,
221
+ label,
222
+ size = "sm",
223
+ step,
224
+ column = false
225
+ }) => {
226
+ const { getValue, setValue } = useDialSchema();
227
+ const value = getValue(name) ?? 0;
228
+ return /* @__PURE__ */ jsx(DialInputWrapper, { label, column, children: /* @__PURE__ */ jsx(
229
+ TimeInput,
230
+ {
231
+ value,
232
+ onChange: (val) => setValue(name, val),
233
+ size,
234
+ step
235
+ }
236
+ ) });
237
+ };
238
+ var DialVectorNInput = ({
239
+ name,
240
+ label,
241
+ column = false,
242
+ size = "sm"
243
+ }) => {
244
+ const { getValue, setValue, schemas } = useDialSchema();
245
+ const schema = schemas.find((s) => s.name === name);
246
+ if (!schema) {
247
+ return null;
248
+ }
249
+ const value = getValue(name) || [];
250
+ const dimensions = schema.dimensions || schema.placeholders?.length || schema.dtypes?.length || (Array.isArray(value) ? value.length : 6);
251
+ const placeholders = schema.placeholders || [];
252
+ const dtypes = schema.dtypes || [];
253
+ const steps = schema.steps || [];
254
+ const tags = schema.tags || {};
255
+ let gridAutoFlow;
256
+ let gridColumns;
257
+ let gridRows;
258
+ if (typeof tags.col === "number") {
259
+ gridAutoFlow = "column";
260
+ gridRows = tags.col;
261
+ gridColumns = void 0;
262
+ } else if (typeof tags.row === "number") {
263
+ gridAutoFlow = "row";
264
+ gridColumns = tags.row;
265
+ gridRows = void 0;
266
+ } else {
267
+ gridAutoFlow = "row";
268
+ gridColumns = void 0;
269
+ gridRows = void 0;
270
+ }
271
+ const vectorValue = Array.isArray(value) ? value.concat(Array(Math.max(0, dimensions - value.length)).fill(0)) : Array(dimensions).fill(0);
272
+ const inputSteps = Array.from({ length: dimensions }, (_, i) => {
273
+ if (steps[i] !== void 0) {
274
+ return steps[i];
275
+ }
276
+ const dtype = dtypes[i];
277
+ return dtype === "number-int" ? 1 : 0.01;
278
+ });
279
+ const labels = placeholders.length > 0 ? placeholders.map((p) => /* @__PURE__ */ jsx("span", { className: "text-xs", children: p })) : void 0;
280
+ const handleValuesChange = (newValues) => {
281
+ setValue(name, newValues);
282
+ };
283
+ const orientation = column ? "horizontal" : "vertical";
284
+ const inputComponent = /* @__PURE__ */ jsx(
285
+ VectorInput,
286
+ {
287
+ value: vectorValue,
288
+ onValuesChange: handleValuesChange,
289
+ size,
290
+ step: inputSteps,
291
+ labels,
292
+ gridAutoFlow,
293
+ columns: gridColumns,
294
+ rows: gridRows
295
+ }
296
+ );
297
+ if (!label) {
298
+ return inputComponent;
299
+ }
300
+ return /* @__PURE__ */ jsxs(Layout, { orientation, align: "start", children: [
301
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
302
+ /* @__PURE__ */ jsx(Label, { size: "sm", children: label }),
303
+ schema.helpText && /* @__PURE__ */ jsx(
304
+ "span",
305
+ {
306
+ className: "text-xs text-gray-500 cursor-help",
307
+ title: schema.helpText,
308
+ children: "\u24D8"
309
+ }
310
+ )
311
+ ] }),
312
+ inputComponent
313
+ ] });
314
+ };
315
+ var DialPanel = ({ schemas }) => {
316
+ const groups = {};
317
+ const ungrouped = [];
318
+ schemas.forEach((schema) => {
319
+ const grouping = schema.tags?.grouping;
320
+ if (grouping) {
321
+ if (!groups[grouping]) {
322
+ groups[grouping] = [];
323
+ }
324
+ groups[grouping].push(schema);
325
+ } else {
326
+ ungrouped.push(schema);
327
+ }
328
+ });
329
+ const renderSchemaInput = (schema) => {
330
+ const { name, dtype, min, max, step, options, tags } = schema;
331
+ const column = tags?.col === true;
332
+ const label = name.charAt(0).toUpperCase() + name.slice(1);
333
+ switch (dtype) {
334
+ case "vector3":
335
+ return /* @__PURE__ */ jsx(DialVec3Input, { name, label, step, column }, name);
336
+ case "euler":
337
+ return /* @__PURE__ */ jsx(DialEulerDegInput, { name, label, step, column }, name);
338
+ case "vector":
339
+ case "vector-6":
340
+ case "number-group":
341
+ return /* @__PURE__ */ jsx(DialVectorNInput, { name, label, column }, name);
342
+ case "boolean":
343
+ return /* @__PURE__ */ jsx(DialBooleanInput, { name, label, col: column }, name);
344
+ case "number-int":
345
+ return /* @__PURE__ */ jsx(DialIntInput, { name, label, step: step || 1, column }, name);
346
+ case "number":
347
+ if (min !== void 0 && max !== void 0 && !options) {
348
+ return /* @__PURE__ */ jsx(
349
+ DialSliderInput,
350
+ {
351
+ name,
352
+ label,
353
+ min,
354
+ max,
355
+ step,
356
+ col: column
357
+ },
358
+ name
359
+ );
360
+ }
361
+ if (options && options.length > 0) {
362
+ return /* @__PURE__ */ jsx(DialSelectInput, { name, label, options, col: column }, name);
363
+ }
364
+ return /* @__PURE__ */ jsx(
365
+ DialNumberInput,
366
+ {
367
+ name,
368
+ label,
369
+ min,
370
+ max,
371
+ step,
372
+ col: column
373
+ },
374
+ name
375
+ );
376
+ case "string":
377
+ if (options && options.length > 0) {
378
+ return /* @__PURE__ */ jsx(DialSelectInput, { name, label, options, col: column }, name);
379
+ }
380
+ return null;
381
+ default:
382
+ return null;
383
+ }
384
+ };
385
+ return /* @__PURE__ */ jsxs("div", { className: "dial-schema-renderer space-y-4", children: [
386
+ Object.entries(groups).map(([groupName, groupSchemas]) => /* @__PURE__ */ jsxs("div", { className: "dial-group", children: [
387
+ /* @__PURE__ */ jsx("div", { className: "mb-2 font-medium", children: groupName }),
388
+ /* @__PURE__ */ jsx("div", { className: "dial-row flex flex-row gap-4 rounded-lg bg-gray-50 p-3", children: groupSchemas.map(renderSchemaInput) })
389
+ ] }, groupName)),
390
+ ungrouped.length > 0 && /* @__PURE__ */ jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsx("div", { className: "dial-row flex flex-row gap-4 rounded-lg bg-gray-50 p-3", children: ungrouped.map(renderSchemaInput) }) })
391
+ ] });
392
+ };
393
+ var DialNumberInput = ({
394
+ name,
395
+ min,
396
+ max,
397
+ step = 1,
398
+ label,
399
+ col = false
400
+ }) => {
401
+ const { getValue, setValue } = useDialSchema();
402
+ const value = getValue(name) ?? 0;
403
+ const containerClass = col ? "flex flex-col gap-1" : "flex flex-row gap-2 items-center";
404
+ return /* @__PURE__ */ jsxs("div", { className: containerClass, children: [
405
+ label && /* @__PURE__ */ jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
406
+ /* @__PURE__ */ jsx(
407
+ "input",
408
+ {
409
+ type: "number",
410
+ value,
411
+ min,
412
+ max,
413
+ step,
414
+ onChange: (e) => setValue(name, parseFloat(e.target.value)),
415
+ className: "px-2 py-1 border rounded-md text-sm"
416
+ }
417
+ )
418
+ ] });
419
+ };
420
+ var DialVectorInput2 = ({
421
+ name,
422
+ min,
423
+ max,
424
+ step = 0.1,
425
+ label,
426
+ col = false,
427
+ dimensions = 3
428
+ }) => {
429
+ const { getValue, setValue } = useDialSchema();
430
+ const value = getValue(name) ?? new Array(dimensions).fill(0);
431
+ const handleChange = (index, newValue) => {
432
+ const updated = [...value];
433
+ updated[index] = newValue;
434
+ setValue(name, updated);
435
+ };
436
+ const containerClass = col ? "flex flex-col gap-2" : "flex flex-row gap-2 items-center";
437
+ const labels = ["x", "y", "z", "w"];
438
+ return /* @__PURE__ */ jsxs("div", { className: containerClass, children: [
439
+ label && /* @__PURE__ */ jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
440
+ /* @__PURE__ */ jsx("div", { className: "flex gap-2", children: value.map((v, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
441
+ /* @__PURE__ */ jsxs("span", { className: "text-xs text-gray-500", children: [
442
+ labels[i],
443
+ ":"
444
+ ] }),
445
+ /* @__PURE__ */ jsx(
446
+ "input",
447
+ {
448
+ type: "number",
449
+ value: v,
450
+ min,
451
+ max,
452
+ step,
453
+ onChange: (e) => handleChange(i, parseFloat(e.target.value)),
454
+ className: "w-20 px-2 py-1 border rounded-md text-sm"
455
+ }
456
+ )
457
+ ] }, i)) })
458
+ ] });
459
+ };
460
+ var DialBooleanInput = ({
461
+ name,
462
+ label,
463
+ col = false
464
+ }) => {
465
+ const { getValue, setValue } = useDialSchema();
466
+ const value = getValue(name) ?? false;
467
+ const orientation = col ? "horizontal" : "vertical";
468
+ if (!label) {
469
+ return /* @__PURE__ */ jsx(
470
+ Switch,
471
+ {
472
+ checked: value,
473
+ onCheckedChange: (checked) => setValue(name, checked)
474
+ }
475
+ );
476
+ }
477
+ return /* @__PURE__ */ jsxs(Layout, { orientation, align: "center", children: [
478
+ /* @__PURE__ */ jsx(Label, { size: "sm", children: label || name }),
479
+ /* @__PURE__ */ jsx(
480
+ Switch,
481
+ {
482
+ checked: value,
483
+ onCheckedChange: (checked) => setValue(name, checked)
484
+ }
485
+ )
486
+ ] });
487
+ };
488
+ var DialSelectInput = ({
489
+ name,
490
+ options = [],
491
+ label,
492
+ col = false
493
+ }) => {
494
+ const { getValue, setValue } = useDialSchema();
495
+ const value = getValue(name);
496
+ const containerClass = col ? "flex flex-col gap-1" : "flex flex-row gap-2 items-center";
497
+ return /* @__PURE__ */ jsxs("div", { className: containerClass, children: [
498
+ label && /* @__PURE__ */ jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
499
+ /* @__PURE__ */ jsx(
500
+ "select",
501
+ {
502
+ value,
503
+ onChange: (e) => {
504
+ const val = e.target.value;
505
+ const parsed = !isNaN(Number(val)) ? Number(val) : val;
506
+ setValue(name, parsed);
507
+ },
508
+ className: "px-2 py-1 border rounded-md text-sm",
509
+ children: options.map((opt, i) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, i))
510
+ }
511
+ )
512
+ ] });
513
+ };
514
+ var DialSliderInput = ({
515
+ name,
516
+ min = 0,
517
+ max = 100,
518
+ step = 1,
519
+ label,
520
+ col = false
521
+ }) => {
522
+ const { getValue, setValue } = useDialSchema();
523
+ const value = getValue(name) ?? min;
524
+ const containerClass = col ? "flex flex-col gap-1" : "flex flex-row gap-2 items-center";
525
+ return /* @__PURE__ */ jsxs("div", { className: containerClass, children: [
526
+ label && /* @__PURE__ */ jsx("label", { className: "text-sm font-medium text-gray-700", children: label || name }),
527
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
528
+ /* @__PURE__ */ jsx(
529
+ "input",
530
+ {
531
+ type: "range",
532
+ value,
533
+ min,
534
+ max,
535
+ step,
536
+ onChange: (e) => setValue(name, parseFloat(e.target.value)),
537
+ className: "flex-1"
538
+ }
539
+ ),
540
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-gray-600 w-12 text-right", children: value })
541
+ ] })
542
+ ] });
543
+ };
544
+
545
+ export { DialBooleanInput, DialCmInput, DialDegInput, DialEulerDegInput, DialEulerInput, DialInchInput, DialIntInput, DialNumberInput, DialPanel, DialQuaternionInput, DialRadInput, DialSelectInput, DialSliderInput, DialTimeInput, DialVec3Input, DialVectorInput2 as DialVectorInput, DialVectorInput as DialVectorInput2, DialVectorNInput };
@@ -0,0 +1,20 @@
1
+ import { InputNumbers } from './chunk-QAERXYKR.mjs';
2
+ import { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var VectorInput = forwardRef(function VectorInput2({ labels, prefix, gridAutoFlow, columns, rows, layout, columnMajor, ...props }, ref) {
6
+ return /* @__PURE__ */ jsx(
7
+ InputNumbers,
8
+ {
9
+ ref,
10
+ prefix: labels || prefix,
11
+ gridAutoFlow: gridAutoFlow || layout,
12
+ columns,
13
+ rows,
14
+ columnMajor,
15
+ ...props
16
+ }
17
+ );
18
+ });
19
+
20
+ export { VectorInput };
@@ -20,7 +20,7 @@ function Layout({
20
20
  "items-start": align === "start",
21
21
  "items-end": align === "end",
22
22
  "gap-xs flex flex-col items-stretch": orientation === "horizontal",
23
- "gap-xs grid grid-cols-[1fr_2fr] text-center": orientation === "vertical"
23
+ "gap-xs grid text-center": orientation === "vertical"
24
24
  },
25
25
  className
26
26
  ),
@@ -6,7 +6,7 @@ var jsxRuntime = require('react/jsx-runtime');
6
6
 
7
7
  var PACKAGE_VERSION = "0.0.88" ;
8
8
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
9
- var GIT_HASH = "07a243e" ;
9
+ var GIT_HASH = "6a176af" ;
10
10
  function PackageBadge({
11
11
  className,
12
12
  packageName,