@vuer-ai/vuer-uikit 0.0.108 → 0.0.112

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 (461) hide show
  1. package/dist/SyncScroll/SyncScroll.cjs +1 -1
  2. package/dist/SyncScroll/SyncScroll.mjs +1 -1
  3. package/dist/SyncScroll/index.cjs +1 -1
  4. package/dist/SyncScroll/index.mjs +1 -1
  5. package/dist/auth/components/index.cjs +128 -0
  6. package/dist/auth/components/index.d.cts +2 -0
  7. package/dist/auth/components/index.d.ts +2 -0
  8. package/dist/auth/components/index.mjs +119 -0
  9. package/dist/auth/components/user-avatar/index.cjs +127 -0
  10. package/dist/auth/components/user-avatar/index.d.cts +8 -0
  11. package/dist/auth/components/user-avatar/index.d.ts +8 -0
  12. package/dist/auth/components/user-avatar/index.mjs +118 -0
  13. package/dist/auth/context/user-context.cjs +10 -0
  14. package/dist/auth/context/{auth-context.d.cts → user-context.d.cts} +3 -3
  15. package/dist/auth/context/{auth-context.d.ts → user-context.d.ts} +3 -3
  16. package/dist/auth/context/user-context.mjs +1 -0
  17. package/dist/auth/handler/fetch-auth.cjs +11 -0
  18. package/dist/auth/handler/fetch-auth.d.cts +3 -0
  19. package/dist/auth/handler/fetch-auth.d.ts +3 -0
  20. package/dist/auth/handler/fetch-auth.mjs +2 -0
  21. package/dist/auth/handler/fetch-server.cjs +11 -0
  22. package/dist/auth/handler/fetch-server.d.cts +3 -0
  23. package/dist/auth/handler/fetch-server.d.ts +3 -0
  24. package/dist/auth/handler/fetch-server.mjs +2 -0
  25. package/dist/auth/handler/get-session.cjs +4 -3
  26. package/dist/auth/handler/get-session.d.cts +1 -1
  27. package/dist/auth/handler/get-session.d.ts +1 -1
  28. package/dist/auth/handler/get-session.mjs +3 -2
  29. package/dist/auth/handler/get-sessions.cjs +12 -0
  30. package/dist/auth/handler/get-sessions.d.cts +19 -0
  31. package/dist/auth/handler/get-sessions.d.ts +19 -0
  32. package/dist/auth/handler/get-sessions.mjs +3 -0
  33. package/dist/auth/handler/sign-in-handler.cjs +3 -3
  34. package/dist/auth/handler/sign-in-handler.d.cts +2 -2
  35. package/dist/auth/handler/sign-in-handler.d.ts +2 -2
  36. package/dist/auth/handler/sign-in-handler.mjs +2 -2
  37. package/dist/auth/handler/sign-out-handler.cjs +4 -3
  38. package/dist/auth/handler/sign-out-handler.mjs +3 -2
  39. package/dist/auth/hooks/use-sign-in.cjs +14 -0
  40. package/dist/auth/hooks/use-sign-in.d.cts +9 -0
  41. package/dist/auth/hooks/use-sign-in.d.ts +9 -0
  42. package/dist/auth/hooks/use-sign-in.mjs +5 -0
  43. package/dist/auth/hooks/use-sign-out.cjs +15 -0
  44. package/dist/auth/hooks/use-sign-out.d.cts +6 -0
  45. package/dist/auth/hooks/use-sign-out.d.ts +6 -0
  46. package/dist/auth/hooks/use-sign-out.mjs +6 -0
  47. package/dist/auth/hooks/use-user.cjs +11 -0
  48. package/dist/auth/hooks/use-user.d.cts +8 -0
  49. package/dist/auth/hooks/use-user.d.ts +8 -0
  50. package/dist/auth/hooks/use-user.mjs +2 -0
  51. package/dist/auth/hooks/use-vuer-sessions.cjs +15 -0
  52. package/dist/auth/hooks/use-vuer-sessions.d.cts +9 -0
  53. package/dist/auth/hooks/use-vuer-sessions.d.ts +9 -0
  54. package/dist/auth/hooks/use-vuer-sessions.mjs +6 -0
  55. package/dist/auth/index.cjs +151 -15
  56. package/dist/auth/index.d.cts +10 -6
  57. package/dist/auth/index.d.ts +10 -6
  58. package/dist/auth/index.mjs +124 -8
  59. package/dist/auth/localstorage-key.cjs +6 -2
  60. package/dist/auth/localstorage-key.d.cts +2 -1
  61. package/dist/auth/localstorage-key.d.ts +2 -1
  62. package/dist/auth/localstorage-key.mjs +1 -1
  63. package/dist/auth/vuer-user-provider.cjs +14 -0
  64. package/dist/auth/{vuer-auth-provider.d.cts → vuer-user-provider.d.cts} +2 -2
  65. package/dist/auth/{vuer-auth-provider.d.ts → vuer-user-provider.d.ts} +2 -2
  66. package/dist/auth/vuer-user-provider.mjs +5 -0
  67. package/dist/{chunk-2EG65KGO.cjs → chunk-2MSGENAQ.cjs} +2 -2
  68. package/dist/{chunk-VUMOJPEC.mjs → chunk-2SFB7HHW.mjs} +1 -1
  69. package/dist/chunk-3WMO5QJJ.cjs +8 -0
  70. package/dist/{chunk-5XBMFADS.cjs → chunk-4GVFCQGI.cjs} +2 -2
  71. package/dist/chunk-4JZOPZHB.cjs +30 -0
  72. package/dist/{chunk-MIT3YWUC.cjs → chunk-4LQDOYQJ.cjs} +2 -2
  73. package/dist/{chunk-5MBEK77I.mjs → chunk-57MAUYQZ.mjs} +9 -2
  74. package/dist/chunk-5OHAV55L.mjs +24 -0
  75. package/dist/{chunk-EAXBNWXE.cjs → chunk-5VUM46YD.cjs} +2 -2
  76. package/dist/{chunk-64L2SNKA.cjs → chunk-6D66V6ON.cjs} +2 -2
  77. package/dist/chunk-6GJM7TPE.cjs +28 -0
  78. package/dist/{chunk-GOGJVFRN.cjs → chunk-6IXKC64S.cjs} +4 -4
  79. package/dist/{chunk-TPAV6PXI.mjs → chunk-7CDVPU65.mjs} +2 -2
  80. package/dist/chunk-7E5Y224I.cjs +14 -0
  81. package/dist/{chunk-D5WOPTKY.cjs → chunk-7NUXYKXU.cjs} +2 -2
  82. package/dist/chunk-7R5HY3IM.cjs +12 -0
  83. package/dist/{chunk-3VVQWVDE.mjs → chunk-7XXTMBF5.mjs} +1 -1
  84. package/dist/{chunk-CZ4GQOXG.mjs → chunk-AAFU2FII.mjs} +2 -2
  85. package/dist/{chunk-4THQPG6Y.mjs → chunk-ACETEVZD.mjs} +1 -1
  86. package/dist/{chunk-SYX6TMCQ.mjs → chunk-AGHIJQAR.mjs} +1 -1
  87. package/dist/chunk-APC2GIE7.cjs +58 -0
  88. package/dist/{chunk-JFJRNNPQ.cjs → chunk-AW6Q4IWT.cjs} +2 -2
  89. package/dist/{chunk-ACYZOKPT.mjs → chunk-BBWT5YO2.mjs} +2 -2
  90. package/dist/{chunk-6XOTWZFC.mjs → chunk-BCA45QEW.mjs} +2 -2
  91. package/dist/{chunk-LFSCJLL2.cjs → chunk-BDAKLXXX.cjs} +9 -2
  92. package/dist/chunk-BI4QZVVB.cjs +82 -0
  93. package/dist/{chunk-ZRRCYQ53.cjs → chunk-BTXD3NAG.cjs} +3 -3
  94. package/dist/{chunk-7RHQ6DVU.cjs → chunk-CGBEPOL4.cjs} +21 -9
  95. package/dist/{chunk-3OLRPUTL.mjs → chunk-DBMXQH73.mjs} +111 -142
  96. package/dist/{chunk-QZUTRJSP.mjs → chunk-DHMLQTQ6.mjs} +2 -2
  97. package/dist/{chunk-OLVOIUCE.mjs → chunk-DT2LGZ5H.mjs} +3 -3
  98. package/dist/{chunk-KBC7VNER.mjs → chunk-ECOYNCWG.mjs} +1 -1
  99. package/dist/{chunk-SVWS4AL6.cjs → chunk-F4Z5KATZ.cjs} +2 -0
  100. package/dist/{chunk-NRQJX772.mjs → chunk-FB5MYIVE.mjs} +1 -0
  101. package/dist/chunk-FRAD2Z2G.mjs +43 -0
  102. package/dist/chunk-FROQ45MN.mjs +6 -0
  103. package/dist/chunk-G6ATG2WV.mjs +28 -0
  104. package/dist/chunk-GBERXSLI.cjs +53 -0
  105. package/dist/{chunk-EXQQRW7T.mjs → chunk-GSQE4JVF.mjs} +1 -1
  106. package/dist/{chunk-5HS4PMUR.mjs → chunk-GUSUTH7D.mjs} +16 -11
  107. package/dist/{chunk-IXNXSECD.mjs → chunk-H2AJ2CLT.mjs} +1 -1
  108. package/dist/{chunk-SUEFWFPX.mjs → chunk-HFGRTWTD.mjs} +2 -2
  109. package/dist/chunk-HOMAESTR.mjs +12 -0
  110. package/dist/{chunk-T2D6PSA6.cjs → chunk-I2YVC4AE.cjs} +17 -12
  111. package/dist/{chunk-4JGGLCXT.mjs → chunk-JH5NAW2V.mjs} +1 -1
  112. package/dist/chunk-JTJKIRFA.mjs +56 -0
  113. package/dist/chunk-KIZEJMW4.cjs +15 -0
  114. package/dist/{chunk-JYIVDUDL.cjs → chunk-KOMVGDDW.cjs} +4 -4
  115. package/dist/{chunk-ZNM6PNI6.mjs → chunk-KS5A3G7B.mjs} +1 -1
  116. package/dist/{chunk-4WRTIOGZ.cjs → chunk-KT772L2I.cjs} +6 -6
  117. package/dist/{chunk-NSUFTZNC.cjs → chunk-L2YLNWCQ.cjs} +2 -2
  118. package/dist/chunk-L3YEIRJS.mjs +31 -0
  119. package/dist/chunk-L4CIN7FR.mjs +96 -0
  120. package/dist/{chunk-6QU4J3HY.cjs → chunk-LBRS745M.cjs} +9 -9
  121. package/dist/{chunk-M4IHJGJE.cjs → chunk-LI5W744D.cjs} +10 -2
  122. package/dist/{chunk-UASPJ57U.cjs → chunk-LPKVKTOK.cjs} +1 -0
  123. package/dist/{chunk-OYQJVHKA.cjs → chunk-LUCJKAJ5.cjs} +2 -2
  124. package/dist/chunk-LUVD54GO.cjs +47 -0
  125. package/dist/{chunk-5JPYU5A6.cjs → chunk-LV4XJY75.cjs} +11 -11
  126. package/dist/{chunk-AOV3ADTV.cjs → chunk-M45UXJWX.cjs} +2 -2
  127. package/dist/{chunk-7HOEFGEO.mjs → chunk-MGFG7EXC.mjs} +1 -1
  128. package/dist/chunk-MO5V43Z3.mjs +13 -0
  129. package/dist/chunk-MRMSCW3P.cjs +19 -0
  130. package/dist/{chunk-WRKB3W2J.cjs → chunk-MTZQ4C2U.cjs} +6 -6
  131. package/dist/{chunk-AJQEHMYV.cjs → chunk-NIEFMP5V.cjs} +2 -2
  132. package/dist/chunk-NJXBYRKZ.mjs +80 -0
  133. package/dist/{chunk-S7SGB2FD.mjs → chunk-O7FGA5N2.mjs} +4 -4
  134. package/dist/chunk-OOHCJIRV.cjs +26 -0
  135. package/dist/chunk-PFIP3ETQ.cjs +55 -0
  136. package/dist/{chunk-RIJUPORK.mjs → chunk-PJJSHHL6.mjs} +1 -1
  137. package/dist/{chunk-CGUQWS2I.mjs → chunk-PTBMSYQQ.mjs} +1 -1
  138. package/dist/chunk-PX2H7Z4D.mjs +26 -0
  139. package/dist/chunk-PXDT5GFJ.mjs +13 -0
  140. package/dist/{chunk-HN3AMWUM.cjs → chunk-Q5PJKBX7.cjs} +2 -2
  141. package/dist/chunk-Q76WU4DL.cjs +17 -0
  142. package/dist/{chunk-Y2H4A5AC.mjs → chunk-R2QXIDY2.mjs} +2 -2
  143. package/dist/{chunk-K2OC2HWQ.mjs → chunk-RFRBGVBZ.mjs} +19 -7
  144. package/dist/{chunk-7GJVMFKJ.cjs → chunk-ROY7233C.cjs} +4 -4
  145. package/dist/{chunk-HBIZQDDS.cjs → chunk-RQH7ZAWF.cjs} +2 -2
  146. package/dist/{chunk-PB4UO2NR.cjs → chunk-RSBVQ7SJ.cjs} +9 -10
  147. package/dist/{chunk-A2UZY7Y2.cjs → chunk-S5XJOGB4.cjs} +2 -2
  148. package/dist/chunk-SO2UTKSV.mjs +17 -0
  149. package/dist/{chunk-JFIAWTRH.cjs → chunk-SU57ZAZJ.cjs} +2 -2
  150. package/dist/{chunk-MG5TTPA7.mjs → chunk-SWJHOFZH.mjs} +6 -6
  151. package/dist/{chunk-PTCDBU72.cjs → chunk-TYZHIBYI.cjs} +2 -2
  152. package/dist/{chunk-IY36FZ5R.mjs → chunk-TZBOF3XO.mjs} +1 -1
  153. package/dist/{chunk-R2WPT5VM.mjs → chunk-UBYSTTD2.mjs} +2 -2
  154. package/dist/{chunk-276VJZCV.mjs → chunk-UT7B4TLZ.mjs} +2 -1
  155. package/dist/{chunk-XGM57WPN.mjs → chunk-V4KDK3BN.mjs} +8 -9
  156. package/dist/chunk-V5YUFNEB.mjs +53 -0
  157. package/dist/{chunk-VLOFKTSL.cjs → chunk-VEE2QBS5.cjs} +3 -3
  158. package/dist/{chunk-3IVDCAFM.mjs → chunk-VSFPXAGN.mjs} +4 -4
  159. package/dist/{chunk-LQGXG373.cjs → chunk-WB43VEZA.cjs} +21 -3
  160. package/dist/{chunk-42UBHC2D.mjs → chunk-WGWNYPXW.mjs} +10 -2
  161. package/dist/{chunk-24IUD6Q3.mjs → chunk-WQCVK4PG.mjs} +1 -1
  162. package/dist/chunk-X3H6FYAM.cjs +15 -0
  163. package/dist/{chunk-LRSDE62T.mjs → chunk-XMQULAAU.mjs} +21 -3
  164. package/dist/chunk-YWECB5GR.cjs +2 -0
  165. package/dist/chunk-YYLBP356.mjs +1 -0
  166. package/dist/{chunk-2PJO5UJL.cjs → chunk-YZINVGLW.cjs} +11 -11
  167. package/dist/{chunk-JUSFLIU5.mjs → chunk-Z4ZGX3NM.mjs} +1 -1
  168. package/dist/chunk-Z7BZFZEV.mjs +15 -0
  169. package/dist/{chunk-VEWWUO2N.mjs → chunk-ZDSN4IFT.mjs} +1 -1
  170. package/dist/{chunk-PTGMHZFS.mjs → chunk-ZEBAIL6F.mjs} +1 -1
  171. package/dist/{chunk-2WD4ZL27.cjs → chunk-ZGS3VGGN.cjs} +4 -4
  172. package/dist/{chunk-Y5SVZCPQ.cjs → chunk-ZJ5SNYAO.cjs} +7 -7
  173. package/dist/{chunk-3TUONMQ6.mjs → chunk-ZRMDDK6J.mjs} +1 -1
  174. package/dist/chunk-ZXIKMZPH.cjs +99 -0
  175. package/dist/{chunk-GZBZMYJM.cjs → chunk-ZXWBDK2V.cjs} +157 -189
  176. package/dist/{chunk-5PHGYFZ3.cjs → chunk-ZZEWMU7Y.cjs} +2 -2
  177. package/dist/dial/DialPanel.cjs +57 -55
  178. package/dist/dial/DialPanel.d.cts +1 -0
  179. package/dist/dial/DialPanel.d.ts +1 -0
  180. package/dist/dial/DialPanel.mjs +56 -54
  181. package/dist/dial/DialProvider.cjs +3 -3
  182. package/dist/dial/DialProvider.d.cts +3 -2
  183. package/dist/dial/DialProvider.d.ts +3 -2
  184. package/dist/dial/DialProvider.example.cjs +4 -4
  185. package/dist/dial/DialProvider.example.mjs +1 -1
  186. package/dist/dial/DialProvider.mjs +1 -1
  187. package/dist/dial/index.cjs +75 -73
  188. package/dist/dial/index.d.cts +1 -0
  189. package/dist/dial/index.d.ts +1 -0
  190. package/dist/dial/index.mjs +56 -54
  191. package/dist/dial/wrapped-inputs/ControlledInputs.cjs +61 -59
  192. package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +10 -9
  193. package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +10 -9
  194. package/dist/dial/wrapped-inputs/ControlledInputs.mjs +56 -54
  195. package/dist/dial/wrapped-inputs/DialInputs.cjs +70 -68
  196. package/dist/dial/wrapped-inputs/DialInputs.d.cts +1 -0
  197. package/dist/dial/wrapped-inputs/DialInputs.d.ts +1 -0
  198. package/dist/dial/wrapped-inputs/DialInputs.mjs +56 -54
  199. package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +51 -55
  200. package/dist/dial/wrapped-inputs/DialPresetsInput.d.cts +3 -3
  201. package/dist/dial/wrapped-inputs/DialPresetsInput.d.ts +3 -3
  202. package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +50 -54
  203. package/dist/dial/wrapped-inputs/DialVectorInput.cjs +57 -55
  204. package/dist/dial/wrapped-inputs/DialVectorInput.d.cts +1 -0
  205. package/dist/dial/wrapped-inputs/DialVectorInput.d.ts +1 -0
  206. package/dist/dial/wrapped-inputs/DialVectorInput.mjs +56 -54
  207. package/dist/dial/wrapped-inputs/index.cjs +80 -78
  208. package/dist/dial/wrapped-inputs/index.d.cts +1 -0
  209. package/dist/dial/wrapped-inputs/index.d.ts +1 -0
  210. package/dist/dial/wrapped-inputs/index.mjs +56 -54
  211. package/dist/highlight-cursor/enhanced-components.cjs +12 -12
  212. package/dist/highlight-cursor/enhanced-components.mjs +7 -7
  213. package/dist/highlight-cursor/index.cjs +16 -16
  214. package/dist/highlight-cursor/index.mjs +7 -7
  215. package/dist/hooks/index.cjs +5 -5
  216. package/dist/hooks/index.mjs +1 -1
  217. package/dist/index.cjs +243 -261
  218. package/dist/index.css +16 -16
  219. package/dist/index.d.cts +5 -2
  220. package/dist/index.d.ts +5 -2
  221. package/dist/index.mjs +56 -54
  222. package/dist/styles/theme.css +3 -3
  223. package/dist/ui/DialBadge.cjs +6 -6
  224. package/dist/ui/DialBadge.mjs +2 -2
  225. package/dist/ui/UIKitBadge.cjs +6 -6
  226. package/dist/ui/UIKitBadge.mjs +2 -2
  227. package/dist/ui/avatar.cjs +1 -1
  228. package/dist/ui/avatar.mjs +1 -1
  229. package/dist/ui/badge.cjs +1 -1
  230. package/dist/ui/badge.d.cts +1 -1
  231. package/dist/ui/badge.d.ts +1 -1
  232. package/dist/ui/badge.mjs +1 -1
  233. package/dist/ui/button.cjs +4 -4
  234. package/dist/ui/button.mjs +2 -2
  235. package/dist/ui/card.cjs +9 -9
  236. package/dist/ui/card.mjs +2 -2
  237. package/dist/ui/checkbox.cjs +1 -1
  238. package/dist/ui/checkbox.mjs +1 -1
  239. package/dist/ui/collapsible.cjs +1 -1
  240. package/dist/ui/collapsible.mjs +1 -1
  241. package/dist/ui/drawer.cjs +1 -1
  242. package/dist/ui/drawer.mjs +1 -1
  243. package/dist/ui/dropdown.cjs +1 -1
  244. package/dist/ui/dropdown.mjs +1 -1
  245. package/dist/ui/index.cjs +185 -204
  246. package/dist/ui/index.d.cts +5 -2
  247. package/dist/ui/index.d.ts +5 -2
  248. package/dist/ui/index.mjs +48 -47
  249. package/dist/ui/inputs/color-input.cjs +4 -4
  250. package/dist/ui/inputs/color-input.mjs +3 -3
  251. package/dist/ui/inputs/index.cjs +42 -42
  252. package/dist/ui/inputs/index.mjs +21 -21
  253. package/dist/ui/inputs/input-numbers.cjs +4 -4
  254. package/dist/ui/inputs/input-numbers.mjs +3 -3
  255. package/dist/ui/inputs/input.cjs +5 -5
  256. package/dist/ui/inputs/input.d.cts +1 -1
  257. package/dist/ui/inputs/input.d.ts +1 -1
  258. package/dist/ui/inputs/input.mjs +2 -2
  259. package/dist/ui/inputs/number-inputs/CmInput.cjs +5 -5
  260. package/dist/ui/inputs/number-inputs/CmInput.mjs +4 -4
  261. package/dist/ui/inputs/number-inputs/DegInput.cjs +5 -5
  262. package/dist/ui/inputs/number-inputs/DegInput.mjs +4 -4
  263. package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +7 -7
  264. package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +6 -6
  265. package/dist/ui/inputs/number-inputs/EulerInput.cjs +6 -6
  266. package/dist/ui/inputs/number-inputs/EulerInput.mjs +5 -5
  267. package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +6 -6
  268. package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +5 -5
  269. package/dist/ui/inputs/number-inputs/InchInput.cjs +5 -5
  270. package/dist/ui/inputs/number-inputs/InchInput.mjs +4 -4
  271. package/dist/ui/inputs/number-inputs/IntInput.cjs +5 -5
  272. package/dist/ui/inputs/number-inputs/IntInput.mjs +4 -4
  273. package/dist/ui/inputs/number-inputs/KVectorInput.cjs +6 -6
  274. package/dist/ui/inputs/number-inputs/KVectorInput.mjs +5 -5
  275. package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +6 -6
  276. package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +5 -5
  277. package/dist/ui/inputs/number-inputs/RadInput.cjs +5 -5
  278. package/dist/ui/inputs/number-inputs/RadInput.mjs +4 -4
  279. package/dist/ui/inputs/number-inputs/TimeInput.cjs +5 -5
  280. package/dist/ui/inputs/number-inputs/TimeInput.mjs +4 -4
  281. package/dist/ui/inputs/number-inputs/Vec3Input.cjs +6 -6
  282. package/dist/ui/inputs/number-inputs/Vec3Input.mjs +5 -5
  283. package/dist/ui/inputs/number-inputs/VectorInput.cjs +5 -5
  284. package/dist/ui/inputs/number-inputs/VectorInput.mjs +4 -4
  285. package/dist/ui/inputs/number-inputs/index.cjs +29 -29
  286. package/dist/ui/inputs/number-inputs/index.mjs +16 -16
  287. package/dist/ui/inputs/presets-input.cjs +6 -6
  288. package/dist/ui/inputs/presets-input.mjs +5 -5
  289. package/dist/ui/inputs/presets-rad-input.cjs +7 -7
  290. package/dist/ui/inputs/presets-rad-input.mjs +6 -6
  291. package/dist/ui/inputs/text-input.cjs +4 -4
  292. package/dist/ui/inputs/text-input.mjs +3 -3
  293. package/dist/ui/label.cjs +3 -3
  294. package/dist/ui/label.d.cts +2 -2
  295. package/dist/ui/label.d.ts +2 -2
  296. package/dist/ui/label.mjs +2 -2
  297. package/dist/ui/layout.cjs +3 -3
  298. package/dist/ui/layout.d.cts +3 -2
  299. package/dist/ui/layout.d.ts +3 -2
  300. package/dist/ui/layout.mjs +2 -2
  301. package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +1 -1
  302. package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +1 -1
  303. package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +1 -1
  304. package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +1 -1
  305. package/dist/ui/layouts/dock-layout/index.cjs +1 -1
  306. package/dist/ui/layouts/dock-layout/index.mjs +1 -1
  307. package/dist/ui/layouts/index.cjs +1 -1
  308. package/dist/ui/layouts/index.mjs +1 -1
  309. package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +1 -1
  310. package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +1 -1
  311. package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +1 -1
  312. package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +1 -1
  313. package/dist/ui/layouts/liquid-layout/index.cjs +1 -1
  314. package/dist/ui/layouts/liquid-layout/index.mjs +1 -1
  315. package/dist/ui/modal.cjs +1 -1
  316. package/dist/ui/modal.mjs +1 -1
  317. package/dist/ui/navigation.cjs +4 -4
  318. package/dist/ui/navigation.mjs +3 -3
  319. package/dist/ui/pagination.cjs +10 -10
  320. package/dist/ui/pagination.mjs +3 -3
  321. package/dist/ui/popover.cjs +1 -1
  322. package/dist/ui/popover.mjs +1 -1
  323. package/dist/ui/progress.cjs +20 -0
  324. package/dist/ui/progress.d.cts +7 -0
  325. package/dist/ui/progress.d.ts +7 -0
  326. package/dist/ui/{panel.mjs → progress.mjs} +2 -2
  327. package/dist/ui/radio-group.cjs +1 -1
  328. package/dist/ui/radio-group.mjs +1 -1
  329. package/dist/ui/resizable.cjs +1 -1
  330. package/dist/ui/resizable.mjs +1 -1
  331. package/dist/ui/select.cjs +1 -1
  332. package/dist/ui/select.d.cts +1 -1
  333. package/dist/ui/select.d.ts +1 -1
  334. package/dist/ui/select.mjs +1 -1
  335. package/dist/ui/separator.cjs +1 -1
  336. package/dist/ui/separator.mjs +1 -1
  337. package/dist/ui/sheet.cjs +1 -1
  338. package/dist/ui/sheet.mjs +1 -1
  339. package/dist/ui/sidebar.cjs +29 -29
  340. package/dist/ui/sidebar.mjs +5 -5
  341. package/dist/ui/simple-tree-view.cjs +1 -1
  342. package/dist/ui/simple-tree-view.mjs +1 -1
  343. package/dist/ui/skeleton.cjs +1 -1
  344. package/dist/ui/skeleton.mjs +1 -1
  345. package/dist/ui/slider.cjs +1 -1
  346. package/dist/ui/slider.mjs +1 -1
  347. package/dist/ui/spinner.cjs +10 -0
  348. package/dist/ui/spinner.d.cts +7 -0
  349. package/dist/ui/spinner.d.ts +7 -0
  350. package/dist/ui/spinner.mjs +1 -0
  351. package/dist/ui/switch.cjs +1 -1
  352. package/dist/ui/switch.mjs +1 -1
  353. package/dist/ui/table.cjs +1 -1
  354. package/dist/ui/table.mjs +1 -1
  355. package/dist/ui/tabs.cjs +1 -1
  356. package/dist/ui/tabs.mjs +1 -1
  357. package/dist/ui/textarea.cjs +1 -1
  358. package/dist/ui/textarea.d.cts +1 -1
  359. package/dist/ui/textarea.d.ts +1 -1
  360. package/dist/ui/textarea.mjs +1 -1
  361. package/dist/ui/theme/ThemeToggles.cjs +7 -7
  362. package/dist/ui/theme/ThemeToggles.mjs +4 -4
  363. package/dist/ui/theme/index.cjs +7 -7
  364. package/dist/ui/theme/index.mjs +4 -4
  365. package/dist/ui/toggle-buttons.cjs +1 -1
  366. package/dist/ui/toggle-buttons.mjs +1 -1
  367. package/dist/ui/toggle-group.cjs +1 -1
  368. package/dist/ui/toggle-group.mjs +1 -1
  369. package/dist/ui/toggle.cjs +1 -1
  370. package/dist/ui/toggle.mjs +1 -1
  371. package/dist/ui/toolbar.cjs +5 -5
  372. package/dist/ui/toolbar.mjs +2 -2
  373. package/dist/ui/tooltip.cjs +6 -6
  374. package/dist/ui/tooltip.mjs +2 -2
  375. package/dist/ui/tree-view/TreeSearchBar.cjs +5 -5
  376. package/dist/ui/tree-view/TreeSearchBar.mjs +4 -4
  377. package/dist/ui/tree-view/TreeView.cjs +1 -1
  378. package/dist/ui/tree-view/TreeView.mjs +1 -1
  379. package/dist/ui/tree-view/index.cjs +14 -14
  380. package/dist/ui/tree-view/index.mjs +5 -5
  381. package/dist/ui/tree-view-legacy.cjs +8 -8
  382. package/dist/ui/tree-view-legacy.mjs +4 -4
  383. package/dist/ui/waterfall/CursorOverlay.cjs +1 -1
  384. package/dist/ui/waterfall/CursorOverlay.mjs +1 -1
  385. package/dist/ui/waterfall/TimelineEvent.cjs +1 -1
  386. package/dist/ui/waterfall/TimelineEvent.mjs +1 -1
  387. package/dist/ui/waterfall/TimelineProcessBar.cjs +1 -1
  388. package/dist/ui/waterfall/TimelineProcessBar.mjs +1 -1
  389. package/dist/ui/waterfall/Wedges.cjs +1 -1
  390. package/dist/ui/waterfall/Wedges.mjs +1 -1
  391. package/dist/ui/waterfall/index.cjs +8 -8
  392. package/dist/ui/waterfall/index.mjs +7 -7
  393. package/package.json +5 -4
  394. package/src/auth/components/index.ts +1 -0
  395. package/src/auth/components/user-avatar/index.tsx +94 -0
  396. package/src/auth/context/{auth-context.ts → user-context.ts} +4 -4
  397. package/src/auth/handler/fetch-auth.ts +10 -0
  398. package/src/auth/handler/fetch-server.ts +10 -0
  399. package/src/auth/handler/get-session.ts +11 -9
  400. package/src/auth/handler/get-sessions.ts +16 -0
  401. package/src/auth/handler/sign-in-handler.ts +10 -11
  402. package/src/auth/handler/sign-out-handler.ts +2 -6
  403. package/src/auth/hooks/use-sign-in.ts +33 -0
  404. package/src/auth/hooks/use-sign-out.ts +30 -0
  405. package/src/auth/hooks/{use-vuer-auth.ts → use-user.ts} +3 -3
  406. package/src/auth/hooks/use-vuer-sessions.ts +29 -0
  407. package/src/auth/index.ts +9 -3
  408. package/src/auth/localstorage-key.ts +2 -0
  409. package/src/auth/{vuer-auth-provider.tsx → vuer-user-provider.tsx} +14 -9
  410. package/src/dial/DialPanel.tsx +17 -7
  411. package/src/dial/DialProvider.tsx +67 -13
  412. package/src/dial/wrapped-inputs/ControlledInputs.tsx +79 -64
  413. package/src/dial/wrapped-inputs/DialInputs.tsx +29 -28
  414. package/src/dial/wrapped-inputs/DialPresetsInput.tsx +19 -27
  415. package/src/dial/wrapped-inputs/DialVectorInput.tsx +14 -9
  416. package/src/styles/theme.css +5 -3
  417. package/src/ui/button.tsx +2 -2
  418. package/src/ui/card.tsx +5 -5
  419. package/src/ui/index.ts +2 -1
  420. package/src/ui/inputs/input.tsx +21 -3
  421. package/src/ui/label.tsx +10 -2
  422. package/src/ui/layout.tsx +3 -1
  423. package/src/ui/progress.tsx +29 -0
  424. package/src/ui/spinner.tsx +67 -0
  425. package/src/ui/toolbar.tsx +21 -8
  426. package/src/ui/tooltip.tsx +11 -2
  427. package/src/ui/waterfall/index.tsx +15 -3
  428. package/dist/auth/context/auth-context.cjs +0 -10
  429. package/dist/auth/context/auth-context.mjs +0 -1
  430. package/dist/auth/hooks/use-vuer-auth.cjs +0 -11
  431. package/dist/auth/hooks/use-vuer-auth.d.cts +0 -8
  432. package/dist/auth/hooks/use-vuer-auth.d.ts +0 -8
  433. package/dist/auth/hooks/use-vuer-auth.mjs +0 -2
  434. package/dist/auth/hooks/use-vuer-method.cjs +0 -15
  435. package/dist/auth/hooks/use-vuer-method.d.cts +0 -10
  436. package/dist/auth/hooks/use-vuer-method.d.ts +0 -10
  437. package/dist/auth/hooks/use-vuer-method.mjs +0 -6
  438. package/dist/auth/vuer-auth-provider.cjs +0 -13
  439. package/dist/auth/vuer-auth-provider.mjs +0 -4
  440. package/dist/chunk-3HEZVWRW.mjs +0 -62
  441. package/dist/chunk-4B44SRRP.cjs +0 -12
  442. package/dist/chunk-4CPB3XHE.cjs +0 -18
  443. package/dist/chunk-AKVHFPXH.mjs +0 -26
  444. package/dist/chunk-C6L7YIGW.cjs +0 -117
  445. package/dist/chunk-CGODCUQ5.mjs +0 -16
  446. package/dist/chunk-G4Q5ALRW.mjs +0 -109
  447. package/dist/chunk-OPYMZDEZ.mjs +0 -28
  448. package/dist/chunk-RMK6W774.cjs +0 -65
  449. package/dist/chunk-T57VFBIC.mjs +0 -17
  450. package/dist/chunk-TC3W4VRO.mjs +0 -6
  451. package/dist/chunk-WTYBTOLO.cjs +0 -19
  452. package/dist/chunk-WZGZX3S2.cjs +0 -32
  453. package/dist/chunk-XFTKHT2M.cjs +0 -28
  454. package/dist/chunk-ZULCZ5L6.cjs +0 -8
  455. package/dist/ui/panel.cjs +0 -44
  456. package/dist/ui/panel.d.cts +0 -51
  457. package/dist/ui/panel.d.ts +0 -51
  458. package/src/auth/hooks/use-vuer-method.ts +0 -37
  459. package/src/ui/panel.tsx +0 -147
  460. /package/dist/{chunk-KFPS5CCR.cjs → chunk-NK7L5H2Y.cjs} +0 -0
  461. /package/dist/{chunk-G3EIVAVR.mjs → chunk-UXWS62ZO.mjs} +0 -0
@@ -1,36 +1,41 @@
1
1
  'use strict';
2
2
 
3
- var chunkNSUFTZNC_cjs = require('./chunk-NSUFTZNC.cjs');
4
- var chunkHN3AMWUM_cjs = require('./chunk-HN3AMWUM.cjs');
5
- var chunkD5WOPTKY_cjs = require('./chunk-D5WOPTKY.cjs');
6
- var chunk2EG65KGO_cjs = require('./chunk-2EG65KGO.cjs');
7
- var chunkAJQEHMYV_cjs = require('./chunk-AJQEHMYV.cjs');
8
- var chunkPTCDBU72_cjs = require('./chunk-PTCDBU72.cjs');
9
- var chunk64L2SNKA_cjs = require('./chunk-64L2SNKA.cjs');
10
- var chunkEAXBNWXE_cjs = require('./chunk-EAXBNWXE.cjs');
11
- var chunkJFIAWTRH_cjs = require('./chunk-JFIAWTRH.cjs');
12
- var chunkAOV3ADTV_cjs = require('./chunk-AOV3ADTV.cjs');
13
- var chunkA2UZY7Y2_cjs = require('./chunk-A2UZY7Y2.cjs');
14
- var chunkZRRCYQ53_cjs = require('./chunk-ZRRCYQ53.cjs');
15
- var chunk7GJVMFKJ_cjs = require('./chunk-7GJVMFKJ.cjs');
16
- var chunk5XBMFADS_cjs = require('./chunk-5XBMFADS.cjs');
17
- var chunk2WD4ZL27_cjs = require('./chunk-2WD4ZL27.cjs');
3
+ var chunkPFIP3ETQ_cjs = require('./chunk-PFIP3ETQ.cjs');
4
+ var chunkZXIKMZPH_cjs = require('./chunk-ZXIKMZPH.cjs');
5
+ var chunkL2YLNWCQ_cjs = require('./chunk-L2YLNWCQ.cjs');
6
+ var chunkQ5PJKBX7_cjs = require('./chunk-Q5PJKBX7.cjs');
7
+ var chunk7NUXYKXU_cjs = require('./chunk-7NUXYKXU.cjs');
8
+ var chunk2MSGENAQ_cjs = require('./chunk-2MSGENAQ.cjs');
9
+ var chunkNIEFMP5V_cjs = require('./chunk-NIEFMP5V.cjs');
10
+ var chunkTYZHIBYI_cjs = require('./chunk-TYZHIBYI.cjs');
11
+ var chunk6D66V6ON_cjs = require('./chunk-6D66V6ON.cjs');
12
+ var chunk5VUM46YD_cjs = require('./chunk-5VUM46YD.cjs');
13
+ var chunkSU57ZAZJ_cjs = require('./chunk-SU57ZAZJ.cjs');
14
+ var chunkM45UXJWX_cjs = require('./chunk-M45UXJWX.cjs');
15
+ var chunkS5XJOGB4_cjs = require('./chunk-S5XJOGB4.cjs');
16
+ var chunkBTXD3NAG_cjs = require('./chunk-BTXD3NAG.cjs');
17
+ var chunk4GVFCQGI_cjs = require('./chunk-4GVFCQGI.cjs');
18
+ var chunkZGS3VGGN_cjs = require('./chunk-ZGS3VGGN.cjs');
18
19
  var chunkEKPJUR3U_cjs = require('./chunk-EKPJUR3U.cjs');
19
20
  var chunkVJN3GGLZ_cjs = require('./chunk-VJN3GGLZ.cjs');
20
- var chunkM4IHJGJE_cjs = require('./chunk-M4IHJGJE.cjs');
21
- var chunkUASPJ57U_cjs = require('./chunk-UASPJ57U.cjs');
22
- var chunkLQGXG373_cjs = require('./chunk-LQGXG373.cjs');
21
+ var chunkLI5W744D_cjs = require('./chunk-LI5W744D.cjs');
22
+ var chunkLPKVKTOK_cjs = require('./chunk-LPKVKTOK.cjs');
23
+ var chunkWB43VEZA_cjs = require('./chunk-WB43VEZA.cjs');
23
24
  var chunk4PKPCOAF_cjs = require('./chunk-4PKPCOAF.cjs');
24
- var chunkRMK6W774_cjs = require('./chunk-RMK6W774.cjs');
25
+ var react = require('react');
25
26
  var jsxRuntime = require('react/jsx-runtime');
26
27
 
27
- var DialInputWrapper = ({ label, children }) => {
28
+ var DialInputWrapper = ({
29
+ label,
30
+ labelPosition = "top",
31
+ children
32
+ }) => {
28
33
  if (!label) {
29
34
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
30
35
  }
31
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkUASPJ57U_cjs.FormLayout, { orientation: "label-top", children: [
32
- /* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
33
- children
36
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkLPKVKTOK_cjs.FormLayout, { orientation: `label-${labelPosition}`, children: [
37
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLI5W744D_cjs.Label, { size: "sm", children: label }),
38
+ /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children })
34
39
  ] });
35
40
  };
36
41
  var DialVec3Input = ({
@@ -40,11 +45,11 @@ var DialVec3Input = ({
40
45
  step,
41
46
  labelPosition
42
47
  }) => {
43
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
48
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
44
49
  const value = getValue(name) ?? [0, 0, 0];
45
50
  if (labelPosition === "inline") {
46
51
  return /* @__PURE__ */ jsxRuntime.jsx(
47
- chunkHN3AMWUM_cjs.Vec3Input,
52
+ chunkQ5PJKBX7_cjs.Vec3Input,
48
53
  {
49
54
  value,
50
55
  onValuesChange: (val) => setValue(name, val),
@@ -54,8 +59,8 @@ var DialVec3Input = ({
54
59
  }
55
60
  );
56
61
  } else {
57
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
58
- chunkHN3AMWUM_cjs.Vec3Input,
62
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(
63
+ chunkQ5PJKBX7_cjs.Vec3Input,
59
64
  {
60
65
  value,
61
66
  onValuesChange: (val) => setValue(name, val),
@@ -72,11 +77,11 @@ var DialEulerInput = ({
72
77
  step,
73
78
  labelPosition
74
79
  }) => {
75
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
80
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
76
81
  const value = getValue(name) ?? [0, 0, 0];
77
82
  if (labelPosition === "inline") {
78
83
  return /* @__PURE__ */ jsxRuntime.jsx(
79
- chunk2EG65KGO_cjs.EulerInput,
84
+ chunk2MSGENAQ_cjs.EulerInput,
80
85
  {
81
86
  value,
82
87
  onValuesChange: (val) => setValue(name, val),
@@ -86,8 +91,8 @@ var DialEulerInput = ({
86
91
  }
87
92
  );
88
93
  } else {
89
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
90
- chunk2EG65KGO_cjs.EulerInput,
94
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(
95
+ chunk2MSGENAQ_cjs.EulerInput,
91
96
  {
92
97
  value,
93
98
  onValuesChange: (val) => setValue(name, val),
@@ -104,11 +109,11 @@ var DialEulerDegInput = ({
104
109
  step,
105
110
  labelPosition
106
111
  }) => {
107
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
112
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
108
113
  const value = getValue(name) ?? [0, 0, 0];
109
114
  if (labelPosition === "inline") {
110
115
  return /* @__PURE__ */ jsxRuntime.jsx(
111
- chunkD5WOPTKY_cjs.EulerDegInput,
116
+ chunk7NUXYKXU_cjs.EulerDegInput,
112
117
  {
113
118
  value,
114
119
  onValuesChange: (val) => setValue(name, val),
@@ -118,8 +123,8 @@ var DialEulerDegInput = ({
118
123
  }
119
124
  );
120
125
  } else {
121
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
122
- chunkD5WOPTKY_cjs.EulerDegInput,
126
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(
127
+ chunk7NUXYKXU_cjs.EulerDegInput,
123
128
  {
124
129
  value,
125
130
  onValuesChange: (val) => setValue(name, val),
@@ -136,11 +141,11 @@ var DialQuaternionInput = ({
136
141
  step,
137
142
  labelPosition
138
143
  }) => {
139
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
144
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
140
145
  const value = getValue(name) ?? [1, 0, 0, 0];
141
146
  if (labelPosition === "inline") {
142
147
  return /* @__PURE__ */ jsxRuntime.jsx(
143
- chunkEAXBNWXE_cjs.QuaternionInput,
148
+ chunk5VUM46YD_cjs.QuaternionInput,
144
149
  {
145
150
  value,
146
151
  onValuesChange: (val) => setValue(name, val),
@@ -150,8 +155,8 @@ var DialQuaternionInput = ({
150
155
  }
151
156
  );
152
157
  } else {
153
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
154
- chunkEAXBNWXE_cjs.QuaternionInput,
158
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(
159
+ chunk5VUM46YD_cjs.QuaternionInput,
155
160
  {
156
161
  value,
157
162
  onValuesChange: (val) => setValue(name, val),
@@ -169,11 +174,11 @@ var DialVectorInput = ({
169
174
  dimensions = 3,
170
175
  labelPosition
171
176
  }) => {
172
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
177
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
173
178
  const value = getValue(name) ?? new Array(dimensions).fill(0);
174
179
  if (labelPosition === "inline") {
175
180
  return /* @__PURE__ */ jsxRuntime.jsx(
176
- chunkJFIAWTRH_cjs.VectorInput,
181
+ chunkSU57ZAZJ_cjs.VectorInput,
177
182
  {
178
183
  value,
179
184
  onValuesChange: (val) => setValue(name, val),
@@ -183,8 +188,8 @@ var DialVectorInput = ({
183
188
  }
184
189
  );
185
190
  } else {
186
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
187
- chunkJFIAWTRH_cjs.VectorInput,
191
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(
192
+ chunkSU57ZAZJ_cjs.VectorInput,
188
193
  {
189
194
  value,
190
195
  onValuesChange: (val) => setValue(name, val),
@@ -201,11 +206,11 @@ var DialIntInput = ({
201
206
  step = 1,
202
207
  labelPosition
203
208
  }) => {
204
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
209
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
205
210
  const value = getValue(name) ?? 0;
206
211
  if (labelPosition === "inline") {
207
212
  return /* @__PURE__ */ jsxRuntime.jsx(
208
- chunk64L2SNKA_cjs.IntInput,
213
+ chunk6D66V6ON_cjs.IntInput,
209
214
  {
210
215
  value,
211
216
  prefix: label ? [label] : void 0,
@@ -215,7 +220,7 @@ var DialIntInput = ({
215
220
  }
216
221
  );
217
222
  } else {
218
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunk64L2SNKA_cjs.IntInput, { value, onChange: (val) => setValue(name, val), size, step }) });
223
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(chunk6D66V6ON_cjs.IntInput, { value, onChange: (val) => setValue(name, val), size, step }) });
219
224
  }
220
225
  };
221
226
  var DialDegInput = ({
@@ -225,11 +230,11 @@ var DialDegInput = ({
225
230
  step,
226
231
  labelPosition
227
232
  }) => {
228
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
233
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
229
234
  const value = getValue(name) ?? 0;
230
235
  if (labelPosition === "inline") {
231
236
  return /* @__PURE__ */ jsxRuntime.jsx(
232
- chunkA2UZY7Y2_cjs.DegInput,
237
+ chunkS5XJOGB4_cjs.DegInput,
233
238
  {
234
239
  value,
235
240
  onChange: (val) => setValue(name, val),
@@ -239,7 +244,7 @@ var DialDegInput = ({
239
244
  }
240
245
  );
241
246
  } else {
242
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkA2UZY7Y2_cjs.DegInput, { value, onChange: (val) => setValue(name, val), size, step }) });
247
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkS5XJOGB4_cjs.DegInput, { value, onChange: (val) => setValue(name, val), size, step }) });
243
248
  }
244
249
  };
245
250
  var DialRadInput = ({
@@ -249,11 +254,11 @@ var DialRadInput = ({
249
254
  step,
250
255
  labelPosition
251
256
  }) => {
252
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
257
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
253
258
  const value = getValue(name) ?? 0;
254
259
  if (labelPosition === "inline") {
255
260
  return /* @__PURE__ */ jsxRuntime.jsx(
256
- chunk5XBMFADS_cjs.RadInput,
261
+ chunk4GVFCQGI_cjs.RadInput,
257
262
  {
258
263
  value,
259
264
  onChange: (val) => setValue(name, val),
@@ -263,7 +268,7 @@ var DialRadInput = ({
263
268
  }
264
269
  );
265
270
  } else {
266
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunk5XBMFADS_cjs.RadInput, { value, onChange: (val) => setValue(name, val), size, step }) });
271
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(chunk4GVFCQGI_cjs.RadInput, { value, onChange: (val) => setValue(name, val), size, step }) });
267
272
  }
268
273
  };
269
274
  var DialCmInput = ({
@@ -273,11 +278,11 @@ var DialCmInput = ({
273
278
  step,
274
279
  labelPosition
275
280
  }) => {
276
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
281
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
277
282
  const value = getValue(name) ?? 0;
278
283
  if (labelPosition === "inline") {
279
284
  return /* @__PURE__ */ jsxRuntime.jsx(
280
- chunkAOV3ADTV_cjs.CmInput,
285
+ chunkM45UXJWX_cjs.CmInput,
281
286
  {
282
287
  value,
283
288
  onChange: (val) => setValue(name, val),
@@ -287,7 +292,7 @@ var DialCmInput = ({
287
292
  }
288
293
  );
289
294
  } else {
290
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkAOV3ADTV_cjs.CmInput, { value, onChange: (val) => setValue(name, val), size, step }) });
295
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkM45UXJWX_cjs.CmInput, { value, onChange: (val) => setValue(name, val), size, step }) });
291
296
  }
292
297
  };
293
298
  var DialInchInput = ({
@@ -297,11 +302,11 @@ var DialInchInput = ({
297
302
  step,
298
303
  labelPosition
299
304
  }) => {
300
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
305
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
301
306
  const value = getValue(name) ?? 0;
302
307
  if (labelPosition === "inline") {
303
308
  return /* @__PURE__ */ jsxRuntime.jsx(
304
- chunkPTCDBU72_cjs.InchInput,
309
+ chunkTYZHIBYI_cjs.InchInput,
305
310
  {
306
311
  value,
307
312
  onChange: (val) => setValue(name, val),
@@ -311,7 +316,7 @@ var DialInchInput = ({
311
316
  }
312
317
  );
313
318
  } else {
314
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkPTCDBU72_cjs.InchInput, { value, onChange: (val) => setValue(name, val), size, step }) });
319
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkTYZHIBYI_cjs.InchInput, { value, onChange: (val) => setValue(name, val), size, step }) });
315
320
  }
316
321
  };
317
322
  var DialTimeInput = ({
@@ -321,11 +326,11 @@ var DialTimeInput = ({
321
326
  step,
322
327
  labelPosition
323
328
  }) => {
324
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
329
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
325
330
  const value = getValue(name) ?? 0;
326
331
  if (labelPosition === "inline") {
327
332
  return /* @__PURE__ */ jsxRuntime.jsx(
328
- chunkNSUFTZNC_cjs.TimeInput,
333
+ chunkL2YLNWCQ_cjs.TimeInput,
329
334
  {
330
335
  value,
331
336
  onChange: (val) => setValue(name, val),
@@ -335,7 +340,7 @@ var DialTimeInput = ({
335
340
  }
336
341
  );
337
342
  } else {
338
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkNSUFTZNC_cjs.TimeInput, { value, onChange: (val) => setValue(name, val), size, step }) });
343
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkL2YLNWCQ_cjs.TimeInput, { value, onChange: (val) => setValue(name, val), size, step }) });
339
344
  }
340
345
  };
341
346
  var DialTextInput = ({
@@ -345,11 +350,11 @@ var DialTextInput = ({
345
350
  labelPosition,
346
351
  placeholder
347
352
  }) => {
348
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
353
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
349
354
  const value = getValue(name) ?? "";
350
355
  if (labelPosition === "inline") {
351
356
  return /* @__PURE__ */ jsxRuntime.jsx(
352
- chunk2WD4ZL27_cjs.TextInput,
357
+ chunkZGS3VGGN_cjs.TextInput,
353
358
  {
354
359
  value,
355
360
  onChange: (val) => setValue(name, val),
@@ -359,8 +364,8 @@ var DialTextInput = ({
359
364
  }
360
365
  );
361
366
  } else {
362
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
363
- chunk2WD4ZL27_cjs.TextInput,
367
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(
368
+ chunkZGS3VGGN_cjs.TextInput,
364
369
  {
365
370
  value,
366
371
  onChange: (val) => setValue(name, val),
@@ -377,11 +382,11 @@ var DialEulerRadInput = ({
377
382
  step,
378
383
  labelPosition
379
384
  }) => {
380
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
385
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
381
386
  const value = getValue(name) ?? [0, 0, 0];
382
387
  if (labelPosition === "inline") {
383
388
  return /* @__PURE__ */ jsxRuntime.jsx(
384
- chunkAJQEHMYV_cjs.EulerRadInput,
389
+ chunkNIEFMP5V_cjs.EulerRadInput,
385
390
  {
386
391
  value,
387
392
  onValuesChange: (val) => setValue(name, val),
@@ -392,8 +397,8 @@ var DialEulerRadInput = ({
392
397
  }
393
398
  );
394
399
  } else {
395
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
396
- chunkAJQEHMYV_cjs.EulerRadInput,
400
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(
401
+ chunkNIEFMP5V_cjs.EulerRadInput,
397
402
  {
398
403
  value,
399
404
  onValuesChange: (val) => setValue(name, val),
@@ -411,7 +416,7 @@ var DialNumberRadInput = ({
411
416
  step,
412
417
  labelPosition
413
418
  }) => {
414
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
419
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
415
420
  const value = getValue(name) ?? 0;
416
421
  const degValue = value * 180 / Math.PI;
417
422
  const handleChange = (deg) => {
@@ -420,7 +425,7 @@ var DialNumberRadInput = ({
420
425
  };
421
426
  if (labelPosition === "inline") {
422
427
  return /* @__PURE__ */ jsxRuntime.jsx(
423
- chunkA2UZY7Y2_cjs.DegInput,
428
+ chunkS5XJOGB4_cjs.DegInput,
424
429
  {
425
430
  value: degValue,
426
431
  onChange: handleChange,
@@ -430,66 +435,22 @@ var DialNumberRadInput = ({
430
435
  }
431
436
  );
432
437
  } else {
433
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkA2UZY7Y2_cjs.DegInput, { value: degValue, onChange: handleChange, size, step }) });
434
- }
435
- };
436
- var DialInputWrapper2 = ({ label, children }) => {
437
- if (!label) {
438
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
439
- }
440
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkUASPJ57U_cjs.FormLayout, { orientation: "label-top", children: [
441
- /* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
442
- children
443
- ] });
444
- };
445
- var DialPresetsInput = ({
446
- name,
447
- label,
448
- size = "sm",
449
- labelPosition,
450
- options
451
- }) => {
452
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
453
- const value = getValue(name) ?? 0;
454
- const presets = options.slice(0, 3).map((opt) => {
455
- if (typeof opt === "number") return opt;
456
- if (typeof opt === "string") return parseFloat(opt);
457
- return typeof opt.value === "number" ? opt.value : parseFloat(opt.value);
458
- });
459
- while (presets.length < 3) {
460
- presets.push(0);
461
- }
462
- if (labelPosition === "inline") {
463
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
464
- label && /* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
465
- /* @__PURE__ */ jsxRuntime.jsx(
466
- chunk7GJVMFKJ_cjs.PresetsInput,
467
- {
468
- value,
469
- onChange: (val) => setValue(name, val),
470
- size,
471
- presets
472
- }
473
- )
474
- ] });
475
- } else {
476
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper2, { label, children: /* @__PURE__ */ jsxRuntime.jsx(
477
- chunk7GJVMFKJ_cjs.PresetsInput,
478
- {
479
- value,
480
- onChange: (val) => setValue(name, val),
481
- size,
482
- presets
483
- }
484
- ) });
438
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkS5XJOGB4_cjs.DegInput, { value: degValue, onChange: handleChange, size, step }) });
485
439
  }
486
440
  };
487
441
  var DialVectorInput2 = ({
488
442
  name,
489
443
  label,
490
- size = "sm"
444
+ size = "sm",
445
+ labelPosition = "top"
491
446
  }) => {
492
- const { getValue, setValue, schemas } = chunkRMK6W774_cjs.useDialSchema();
447
+ const { getValue, setValue, schemas } = chunkZXIKMZPH_cjs.useDialSchema();
448
+ const handleValuesChange = react.useCallback(
449
+ (newValues) => {
450
+ setValue(name, newValues);
451
+ },
452
+ [name]
453
+ );
493
454
  const schema = schemas.find((s) => s.name === name);
494
455
  if (!schema) {
495
456
  return null;
@@ -516,7 +477,6 @@ var DialVectorInput2 = ({
516
477
  gridColumns = void 0;
517
478
  gridRows = void 0;
518
479
  }
519
- console.log("the grid-flow is", gridAutoFlow, gridColumns, gridRows);
520
480
  const vectorValue = Array.isArray(value) ? value.concat(Array(Math.max(0, dimensions - value.length)).fill(0)) : Array(dimensions).fill(0);
521
481
  const inputSteps = Array.from({ length: dimensions }, (_, i) => {
522
482
  if (steps[i] !== void 0) {
@@ -526,11 +486,8 @@ var DialVectorInput2 = ({
526
486
  return dtype === "number-int" ? 1 : 1e-3;
527
487
  });
528
488
  const labels = placeholders.length > 0 ? placeholders.map((p) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs", children: p })) : void 0;
529
- const handleValuesChange = (newValues) => {
530
- setValue(name, newValues);
531
- };
532
489
  const inputComponent = /* @__PURE__ */ jsxRuntime.jsx(
533
- chunkJFIAWTRH_cjs.VectorInput,
490
+ chunkSU57ZAZJ_cjs.VectorInput,
534
491
  {
535
492
  value: vectorValue,
536
493
  onValuesChange: handleValuesChange,
@@ -545,8 +502,8 @@ var DialVectorInput2 = ({
545
502
  if (!label) {
546
503
  return inputComponent;
547
504
  }
548
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkUASPJ57U_cjs.FormLayout, { orientation: "label-top", children: [
549
- /* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
505
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkLPKVKTOK_cjs.FormLayout, { orientation: `label-${labelPosition}`, children: [
506
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLI5W744D_cjs.Label, { size: "sm", children: label }),
550
507
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
551
508
  schema.helpText && /* @__PURE__ */ jsxRuntime.jsx(
552
509
  "span",
@@ -560,7 +517,11 @@ var DialVectorInput2 = ({
560
517
  ] })
561
518
  ] });
562
519
  };
563
- var DialPanel = ({ schemas, groups: groupConfigs, labelLayout }) => {
520
+ var DialPanel = ({
521
+ schemas,
522
+ groups: groupConfigs,
523
+ labelLayout
524
+ }) => {
564
525
  const groupConfigMap = {};
565
526
  if (groupConfigs) {
566
527
  groupConfigs.forEach((config) => {
@@ -632,7 +593,15 @@ var DialPanel = ({ schemas, groups: groupConfigs, labelLayout }) => {
632
593
  case "number-group":
633
594
  return /* @__PURE__ */ jsxRuntime.jsx(DialVectorInput2, { name, label }, name);
634
595
  case "boolean":
635
- return /* @__PURE__ */ jsxRuntime.jsx(DialBooleanInput, { name, label, labelPosition: effectiveLabelPosition }, name);
596
+ return /* @__PURE__ */ jsxRuntime.jsx(
597
+ DialBooleanInput,
598
+ {
599
+ name,
600
+ label,
601
+ labelPosition: effectiveLabelPosition
602
+ },
603
+ name
604
+ );
636
605
  case "number-slider":
637
606
  return /* @__PURE__ */ jsxRuntime.jsx(
638
607
  DialSliderInput,
@@ -685,7 +654,7 @@ var DialPanel = ({ schemas, groups: groupConfigs, labelLayout }) => {
685
654
  }
686
655
  if (options && options.length > 0) {
687
656
  return /* @__PURE__ */ jsxRuntime.jsx(
688
- DialPresetsInput,
657
+ chunkPFIP3ETQ_cjs.DialPresetsInput,
689
658
  {
690
659
  name,
691
660
  label,
@@ -750,12 +719,12 @@ var DialPanel = ({ schemas, groups: groupConfigs, labelLayout }) => {
750
719
  ungrouped.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dial-row flex flex-row flex-wrap gap-4", children: ungrouped.map(renderSchemaInput) }) })
751
720
  ] });
752
721
  };
753
- var DialInputWrapper3 = ({ label, children }) => {
722
+ var DialInputWrapper2 = ({ label, labelPosition = "top", children }) => {
754
723
  if (!label) {
755
724
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
756
725
  }
757
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkUASPJ57U_cjs.FormLayout, { orientation: "label-top", children: [
758
- /* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
726
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkLPKVKTOK_cjs.FormLayout, { orientation: `label-${labelPosition}`, children: [
727
+ /* @__PURE__ */ jsxRuntime.jsx(chunkLI5W744D_cjs.Label, { size: "sm", children: label }),
759
728
  children
760
729
  ] });
761
730
  };
@@ -765,77 +734,81 @@ var DialNumberInput = ({
765
734
  max,
766
735
  step = 1,
767
736
  label,
768
- labelPosition,
769
- size = "sm"
737
+ labelPosition = "top",
738
+ size = "sm",
739
+ ...props
770
740
  }) => {
771
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
741
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
772
742
  const value = getValue(name) ?? 0;
743
+ const handleChange = react.useCallback(
744
+ (e) => setValue(name, parseFloat(e.target.value)),
745
+ [name]
746
+ );
773
747
  const inputProps = {
774
748
  type: "number",
775
749
  value,
776
750
  min,
777
751
  max,
778
752
  step,
779
- onChange: (e) => setValue(name, parseFloat(e.target.value)),
753
+ onChange: handleChange,
780
754
  size
781
755
  };
782
756
  if (labelPosition === "inline") {
783
- return /* @__PURE__ */ jsxRuntime.jsx(chunkLQGXG373_cjs.InputRoot, { ...inputProps, children: label ? /* @__PURE__ */ jsxRuntime.jsx(chunkLQGXG373_cjs.InputSlot, { side: "left", children: label }) : null });
757
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkWB43VEZA_cjs.InputRoot, { ...inputProps, children: label ? /* @__PURE__ */ jsxRuntime.jsx(chunkWB43VEZA_cjs.InputSlot, { side: "left", children: label }) : null });
784
758
  } else {
785
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper3, { label, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLQGXG373_cjs.InputRoot, { ...inputProps }) });
759
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper2, { label, labelPosition, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(chunkWB43VEZA_cjs.InputRoot, { ...inputProps }) });
786
760
  }
787
761
  };
788
- var DialBooleanInput = ({ name, label, labelPosition }) => {
789
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
762
+ var DialBooleanInput = ({
763
+ name,
764
+ label,
765
+ labelPosition,
766
+ ...props
767
+ }) => {
768
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
790
769
  const value = getValue(name) ?? false;
770
+ const handleChange = react.useCallback((checked) => setValue(name, checked), [name]);
791
771
  const switchProps = {
792
772
  checked: value,
793
- onCheckedChange: (checked) => setValue(name, checked)
773
+ onCheckedChange: handleChange
794
774
  };
795
- if (!label) {
775
+ if (!label || labelPosition === "inline") {
796
776
  return /* @__PURE__ */ jsxRuntime.jsx(chunkVJN3GGLZ_cjs.Switch, { ...switchProps });
797
777
  }
798
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
799
- /* @__PURE__ */ jsxRuntime.jsx(chunkM4IHJGJE_cjs.Label, { size: "sm", children: label }),
800
- /* @__PURE__ */ jsxRuntime.jsx(chunkVJN3GGLZ_cjs.Switch, { ...switchProps })
801
- ] });
778
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper2, { label, labelPosition, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(chunkVJN3GGLZ_cjs.Switch, { ...switchProps }) });
802
779
  };
803
- var DialColorInput = ({ name, label }) => {
804
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
780
+ var DialColorInput = ({ name, label, ...props }) => {
781
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
805
782
  const value = getValue(name) ?? "";
806
- const inputComp = /* @__PURE__ */ jsxRuntime.jsx(chunkZRRCYQ53_cjs.ColorInput, { value, onChange: (e) => setValue(name, e.target.value), prefix: label });
807
- if (!label) {
808
- return inputComp;
809
- }
810
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper3, { label, children: inputComp });
783
+ const handleChange = react.useCallback(
784
+ (e) => setValue(name, e.target.value),
785
+ [name]
786
+ );
787
+ const inputComp = /* @__PURE__ */ jsxRuntime.jsx(chunkBTXD3NAG_cjs.ColorInput, { value, onChange: handleChange, prefix: label });
788
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper2, { label, ...props, children: inputComp });
811
789
  };
812
790
  var DialSelectInput = ({
813
791
  name,
814
792
  options = [],
815
793
  label,
816
- labelPosition,
817
- size = "sm"
794
+ size = "sm",
795
+ ...props
818
796
  }) => {
819
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
797
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
820
798
  const value = getValue(name);
821
- const selectComponent = /* @__PURE__ */ jsxRuntime.jsxs(
822
- chunk4PKPCOAF_cjs.Select,
823
- {
824
- value: String(value),
825
- onValueChange: (val) => {
826
- const parsed = !isNaN(Number(val)) ? Number(val) : val;
827
- setValue(name, parsed);
828
- },
829
- children: [
830
- /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectTrigger, { size, children: /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectValue, { placeholder: "Select an option" }) }),
831
- /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectContent, { children: options.map((opt, i) => /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectItem, { value: String(opt), children: String(opt) }, i)) })
832
- ]
833
- }
799
+ console.log("dial schema:", name, value);
800
+ const handleValueChange = react.useCallback(
801
+ (val) => {
802
+ const parsed = !isNaN(Number(val)) ? Number(val) : val;
803
+ setValue(name, parsed);
804
+ },
805
+ [name]
834
806
  );
835
- if (!label) {
836
- return selectComponent;
837
- }
838
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper3, { label, children: selectComponent });
807
+ const selectComponent = /* @__PURE__ */ jsxRuntime.jsxs(chunk4PKPCOAF_cjs.Select, { value: String(value), onValueChange: handleValueChange, children: [
808
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectTrigger, { size, children: /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectValue, { placeholder: "Select an option" }) }),
809
+ /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectContent, { children: options.map((opt, i) => /* @__PURE__ */ jsxRuntime.jsx(chunk4PKPCOAF_cjs.SelectItem, { value: String(opt), children: String(opt) }, i)) })
810
+ ] });
811
+ return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper2, { label, ...props, children: selectComponent });
839
812
  };
840
813
  var DialSliderInput = ({
841
814
  name,
@@ -843,27 +816,23 @@ var DialSliderInput = ({
843
816
  max = 100,
844
817
  step = 1,
845
818
  label,
846
- labelPosition,
847
- size = "sm"
819
+ ...props
848
820
  }) => {
849
- const { getValue, setValue } = chunkRMK6W774_cjs.useDialSchema();
821
+ const { getValue, setValue } = chunkZXIKMZPH_cjs.useDialSchema();
850
822
  const value = getValue(name) ?? min;
823
+ const handleValueChange = react.useCallback(([val]) => setValue(name, val), [name]);
851
824
  const sliderProps = {
852
825
  value: [value],
853
- onValueChange: ([val]) => setValue(name, val),
826
+ onValueChange: handleValueChange,
854
827
  min,
855
828
  max,
856
829
  step,
857
830
  className: "flex-1"
858
831
  };
859
- const sliderComponent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 items-center gap-2", children: [
832
+ return /* @__PURE__ */ jsxRuntime.jsxs(DialInputWrapper2, { label, ...props, children: [
860
833
  /* @__PURE__ */ jsxRuntime.jsx(chunkEKPJUR3U_cjs.Slider, { ...sliderProps }),
861
834
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-text-secondary w-12 text-right text-sm", children: value })
862
835
  ] });
863
- if (!label) {
864
- return sliderComponent;
865
- }
866
- return /* @__PURE__ */ jsxRuntime.jsx(DialInputWrapper3, { label, children: sliderComponent });
867
836
  };
868
837
 
869
838
  exports.DialBooleanInput = DialBooleanInput;
@@ -878,7 +847,6 @@ exports.DialIntInput = DialIntInput;
878
847
  exports.DialNumberInput = DialNumberInput;
879
848
  exports.DialNumberRadInput = DialNumberRadInput;
880
849
  exports.DialPanel = DialPanel;
881
- exports.DialPresetsInput = DialPresetsInput;
882
850
  exports.DialQuaternionInput = DialQuaternionInput;
883
851
  exports.DialRadInput = DialRadInput;
884
852
  exports.DialSelectInput = DialSelectInput;