@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,14 +1,16 @@
1
- import React from "react";
1
+ import React, { PropsWithChildren } from "react";
2
2
 
3
3
  import {
4
4
  CmInput,
5
5
  DegInput,
6
6
  EulerDegInput,
7
7
  EulerInput,
8
+ EulerRadInput,
8
9
  FormLayout,
9
10
  InchInput,
10
11
  IntInput,
11
12
  Label,
13
+ type LayoutType,
12
14
  QuaternionInput,
13
15
  RadInput,
14
16
  TextInput,
@@ -16,7 +18,6 @@ import {
16
18
  Vec3Input,
17
19
  VectorInput,
18
20
  } from "../../index";
19
- import { EulerRadInput } from "../../ui/inputs/number-inputs/EulerRadInput";
20
21
  import { LabelPositionT, useDialSchema } from "../DialProvider";
21
22
 
22
23
  // Base props for all dial-wrapped inputs
@@ -29,19 +30,19 @@ interface DialWrapperProps {
29
30
  }
30
31
 
31
32
  // Helper component for wrapping inputs with labels
32
- const DialInputWrapper: React.FC<{
33
- label?: string;
34
- children: React.ReactElement;
35
- }> = ({ label, children }) => {
33
+ const DialInputWrapper: React.FC<PropsWithChildren<DialWrapperProps>> = ({
34
+ label,
35
+ labelPosition = "top",
36
+ children,
37
+ }) => {
36
38
  if (!label) {
37
39
  return <>{children}</>;
38
40
  }
39
41
 
40
- // Always use horizontal layout (label on left)
41
42
  return (
42
- <FormLayout orientation="label-top">
43
+ <FormLayout orientation={`label-${labelPosition}` as LayoutType}>
43
44
  <Label size="sm">{label}</Label>
44
- {children}
45
+ <>{children}</>
45
46
  </FormLayout>
46
47
  );
47
48
  };
@@ -69,7 +70,7 @@ export const DialVec3Input: React.FC<DialWrapperProps> = ({
69
70
  );
70
71
  } else {
71
72
  return (
72
- <DialInputWrapper label={label}>
73
+ <DialInputWrapper name={name} label={label}>
73
74
  <Vec3Input
74
75
  value={value}
75
76
  onValuesChange={(val) => setValue(name, val)}
@@ -104,7 +105,7 @@ export const DialEulerInput: React.FC<DialWrapperProps> = ({
104
105
  );
105
106
  } else {
106
107
  return (
107
- <DialInputWrapper label={label}>
108
+ <DialInputWrapper name={name} label={label}>
108
109
  <EulerInput
109
110
  value={value}
110
111
  onValuesChange={(val) => setValue(name, val)}
@@ -139,7 +140,7 @@ export const DialEulerDegInput: React.FC<DialWrapperProps> = ({
139
140
  );
140
141
  } else {
141
142
  return (
142
- <DialInputWrapper label={label}>
143
+ <DialInputWrapper name={name} label={label}>
143
144
  <EulerDegInput
144
145
  value={value}
145
146
  onValuesChange={(val) => setValue(name, val)}
@@ -174,7 +175,7 @@ export const DialQuaternionInput: React.FC<DialWrapperProps> = ({
174
175
  );
175
176
  } else {
176
177
  return (
177
- <DialInputWrapper label={label}>
178
+ <DialInputWrapper name={name} label={label}>
178
179
  <QuaternionInput
179
180
  value={value}
180
181
  onValuesChange={(val) => setValue(name, val)}
@@ -210,7 +211,7 @@ export const DialVectorInput: React.FC<DialWrapperProps & { dimensions?: number
210
211
  );
211
212
  } else {
212
213
  return (
213
- <DialInputWrapper label={label}>
214
+ <DialInputWrapper name={name} label={label}>
214
215
  <VectorInput
215
216
  value={value}
216
217
  onValuesChange={(val) => setValue(name, val)}
@@ -245,7 +246,7 @@ export const DialIntInput: React.FC<DialWrapperProps> = ({
245
246
  );
246
247
  } else {
247
248
  return (
248
- <DialInputWrapper label={label}>
249
+ <DialInputWrapper name={name} label={label}>
249
250
  <IntInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
250
251
  </DialInputWrapper>
251
252
  );
@@ -275,7 +276,7 @@ export const DialDegInput: React.FC<DialWrapperProps> = ({
275
276
  );
276
277
  } else {
277
278
  return (
278
- <DialInputWrapper label={label}>
279
+ <DialInputWrapper name={name} label={label}>
279
280
  <DegInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
280
281
  </DialInputWrapper>
281
282
  );
@@ -305,7 +306,7 @@ export const DialRadInput: React.FC<DialWrapperProps> = ({
305
306
  );
306
307
  } else {
307
308
  return (
308
- <DialInputWrapper label={label}>
309
+ <DialInputWrapper name={name} label={label}>
309
310
  <RadInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
310
311
  </DialInputWrapper>
311
312
  );
@@ -335,7 +336,7 @@ export const DialCmInput: React.FC<DialWrapperProps> = ({
335
336
  );
336
337
  } else {
337
338
  return (
338
- <DialInputWrapper label={label}>
339
+ <DialInputWrapper name={name} label={label}>
339
340
  <CmInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
340
341
  </DialInputWrapper>
341
342
  );
@@ -365,7 +366,7 @@ export const DialInchInput: React.FC<DialWrapperProps> = ({
365
366
  );
366
367
  } else {
367
368
  return (
368
- <DialInputWrapper label={label}>
369
+ <DialInputWrapper name={name} label={label}>
369
370
  <InchInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
370
371
  </DialInputWrapper>
371
372
  );
@@ -395,7 +396,7 @@ export const DialTimeInput: React.FC<DialWrapperProps> = ({
395
396
  );
396
397
  } else {
397
398
  return (
398
- <DialInputWrapper label={label}>
399
+ <DialInputWrapper name={name} label={label}>
399
400
  <TimeInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
400
401
  </DialInputWrapper>
401
402
  );
@@ -425,11 +426,11 @@ export const DialTextInput: React.FC<DialWrapperProps & { placeholder?: string }
425
426
  );
426
427
  } else {
427
428
  return (
428
- <DialInputWrapper label={label}>
429
- <TextInput
430
- value={value}
431
- onChange={(val) => setValue(name, val)}
432
- size={size}
429
+ <DialInputWrapper name={name} label={label}>
430
+ <TextInput
431
+ value={value}
432
+ onChange={(val) => setValue(name, val)}
433
+ size={size}
433
434
  placeholder={placeholder}
434
435
  />
435
436
  </DialInputWrapper>
@@ -461,7 +462,7 @@ export const DialEulerRadInput: React.FC<DialWrapperProps> = ({
461
462
  );
462
463
  } else {
463
464
  return (
464
- <DialInputWrapper label={label}>
465
+ <DialInputWrapper name={name} label={label}>
465
466
  <EulerRadInput
466
467
  value={value}
467
468
  onValuesChange={(val) => setValue(name, val)}
@@ -487,7 +488,7 @@ export const DialNumberRadInput: React.FC<DialWrapperProps> = ({
487
488
 
488
489
  // Convert radians to degrees for display
489
490
  const degValue = (value * 180) / Math.PI;
490
-
491
+
491
492
  // Handler to convert degrees back to radians
492
493
  const handleChange = (deg: number) => {
493
494
  const rad = (deg * Math.PI) / 180;
@@ -506,7 +507,7 @@ export const DialNumberRadInput: React.FC<DialWrapperProps> = ({
506
507
  );
507
508
  } else {
508
509
  return (
509
- <DialInputWrapper label={label}>
510
+ <DialInputWrapper name={name} label={label}>
510
511
  <DegInput value={degValue} onChange={handleChange} size={size} step={step} />
511
512
  </DialInputWrapper>
512
513
  );
@@ -1,51 +1,42 @@
1
1
  import React from "react";
2
2
 
3
+ import { FormLayout, Label, type LayoutType } from "../../ui";
3
4
  import { PresetsInput } from "../../ui/inputs/presets-input";
4
- import { FormLayout, Label } from "../../index";
5
5
  import { LabelPositionT, useDialSchema } from "../DialProvider";
6
6
 
7
- interface DialPresetsInputProps {
8
- name: string;
9
- label?: string;
10
- size?: "sm" | "md" | "lg";
11
- labelPosition?: LabelPositionT;
12
- options: Array<string | number | { label: string; value: string | number }>;
13
- }
14
-
15
7
  const DialInputWrapper: React.FC<{
16
8
  label?: string;
9
+ labelPosition?: LabelPositionT;
17
10
  children: React.ReactElement;
18
- }> = ({ label, children }) => {
11
+ }> = ({ label, labelPosition = "top", children }) => {
19
12
  if (!label) {
20
13
  return <>{children}</>;
21
14
  }
22
15
 
23
16
  return (
24
- <FormLayout orientation="label-top">
17
+ <FormLayout orientation={`label-${labelPosition}` as LayoutType}>
25
18
  <Label size="sm">{label}</Label>
26
19
  {children}
27
20
  </FormLayout>
28
21
  );
29
22
  };
30
23
 
31
- export const DialPresetsInput: React.FC<DialPresetsInputProps> = ({
32
- name,
33
- label,
34
- size = "sm",
35
- labelPosition,
36
- options,
37
- }) => {
24
+ export const DialPresetsInput: React.FC<{
25
+ name: string;
26
+ label?: string;
27
+ size?: "sm" | "md" | "lg";
28
+ labelPosition?: LabelPositionT;
29
+ options: Array<string | number | { label: string; value: string | number }>;
30
+ }> = ({ name, label, size = "sm", labelPosition = "top", options }) => {
38
31
  const { getValue, setValue } = useDialSchema();
39
32
  const value = (getValue(name) ?? 0) as number;
40
33
 
41
34
  // Extract preset values from options
42
- const presets = options
43
- .slice(0, 3)
44
- .map((opt) => {
45
- if (typeof opt === "number") return opt;
46
- if (typeof opt === "string") return parseFloat(opt);
47
- return typeof opt.value === "number" ? opt.value : parseFloat(opt.value as string);
48
- }) as [number, number, number];
35
+ const presets = options.slice(0, 3).map((opt) => {
36
+ if (typeof opt === "number") return opt;
37
+ if (typeof opt === "string") return parseFloat(opt);
38
+ return typeof opt.value === "number" ? opt.value : parseFloat(opt.value as string);
39
+ }) as [number, number, number];
49
40
 
50
41
  // Pad with zeros if less than 3 presets
51
42
  while (presets.length < 3) {
@@ -53,6 +44,7 @@ export const DialPresetsInput: React.FC<DialPresetsInputProps> = ({
53
44
  }
54
45
 
55
46
  if (labelPosition === "inline") {
47
+ // this is suspicious - Ge
56
48
  return (
57
49
  <div className="flex items-center gap-2">
58
50
  {label && <Label size="sm">{label}</Label>}
@@ -66,7 +58,7 @@ export const DialPresetsInput: React.FC<DialPresetsInputProps> = ({
66
58
  );
67
59
  } else {
68
60
  return (
69
- <DialInputWrapper label={label}>
61
+ <DialInputWrapper label={label} labelPosition={labelPosition}>
70
62
  <PresetsInput
71
63
  value={value}
72
64
  onChange={(val) => setValue(name, val)}
@@ -76,4 +68,4 @@ export const DialPresetsInput: React.FC<DialPresetsInputProps> = ({
76
68
  </DialInputWrapper>
77
69
  );
78
70
  }
79
- };
71
+ };
@@ -1,12 +1,14 @@
1
- import React from "react";
1
+ import React, { useCallback } from "react";
2
+
3
+ import { FormLayout, Label, type LayoutType, VectorInput } from "../../index";
2
4
  import { useDialSchema } from "../DialProvider";
3
- import { FormLayout, Label, VectorInput } from "../../index";
4
5
 
5
6
  interface DialVectorInputProps {
6
7
  name: string;
7
8
  label?: string;
8
9
  column?: boolean;
9
10
  size?: "sm" | "md" | "lg";
11
+ labelPosition?: "left" | "top";
10
12
  }
11
13
 
12
14
  /**
@@ -17,8 +19,17 @@ export const DialVectorInput: React.FC<DialVectorInputProps> = ({
17
19
  name,
18
20
  label,
19
21
  size = "sm",
22
+ labelPosition = "top",
20
23
  }) => {
21
24
  const { getValue, setValue, schemas } = useDialSchema();
25
+
26
+ const handleValuesChange = useCallback(
27
+ (newValues: number[]) => {
28
+ setValue(name, newValues);
29
+ },
30
+ [name],
31
+ );
32
+
22
33
  const schema = schemas.find((s) => s.name === name);
23
34
  if (!schema) {
24
35
  return null;
@@ -61,8 +72,6 @@ export const DialVectorInput: React.FC<DialVectorInputProps> = ({
61
72
  gridRows = undefined;
62
73
  }
63
74
 
64
- console.log("the grid-flow is", gridAutoFlow, gridColumns, gridRows);
65
-
66
75
  // Ensure value is an array with correct dimensions
67
76
  const vectorValue = Array.isArray(value)
68
77
  ? value.concat(Array(Math.max(0, dimensions - value.length)).fill(0))
@@ -85,10 +94,6 @@ export const DialVectorInput: React.FC<DialVectorInputProps> = ({
85
94
  ? placeholders.map((p) => <span className="text-xs">{p}</span>)
86
95
  : undefined;
87
96
 
88
- const handleValuesChange = (newValues: number[]) => {
89
- setValue(name, newValues);
90
- };
91
-
92
97
  const inputComponent = (
93
98
  <VectorInput
94
99
  value={vectorValue}
@@ -107,7 +112,7 @@ export const DialVectorInput: React.FC<DialVectorInputProps> = ({
107
112
  }
108
113
 
109
114
  return (
110
- <FormLayout orientation="label-top">
115
+ <FormLayout orientation={`label-${labelPosition}` as LayoutType}>
111
116
  <Label size="sm">{label}</Label>
112
117
  <div className="flex flex-row items-center gap-2">
113
118
  {schema.helpText && (
@@ -10,7 +10,7 @@
10
10
  rgba(50, 50, 50, 0.6) 0%,
11
11
  rgba(70, 70, 70, 0.6) 105.28%
12
12
  ) !important;
13
- backdrop-filter: blur(20px) !important;
13
+ backdrop-filter: blur(5px) !important;
14
14
  }
15
15
 
16
16
  @utility liquid-light-bg {
@@ -19,7 +19,7 @@
19
19
  rgba(236, 236, 236, 0.6) 0%,
20
20
  rgba(202, 202, 202, 0.6) 105.28%
21
21
  ) !important;
22
- backdrop-filter: blur(20px) !important;
22
+ backdrop-filter: blur(5px) !important;
23
23
  }
24
24
 
25
25
  @utility liquid-dark-bg-tooltip-arrow {
@@ -165,7 +165,7 @@
165
165
  --color-select-secondary: var(--select-secondary);
166
166
  /* radius */
167
167
  --radius-uk-xs: var(--radius); /* 4px */
168
- --radius-uk-sm: calc(var(--radius) + 2px); /* 6px */
168
+ --radius-uk-sm: calc(var(--radius) + 3px); /* 6px */
169
169
  --radius-uk-md: calc(var(--radius) + 4px); /* 8px */
170
170
  --radius-uk-lg: calc(var(--radius) + 10px); /* 12px */
171
171
  --radius-uk-xl: calc(var(--radius) + 13px); /* 16px */
@@ -178,6 +178,7 @@
178
178
  --spacing-xl: calc(var(--spacing) + 12px); /* 16px */
179
179
  /* font-size */
180
180
  --text-uk-hint: 10px; /* hint text */
181
+ --text-uk-xxs: 10px; /* primary text, input title */
181
182
  --text-uk-xs: 11px; /* primary text, input title */
182
183
  --text-uk-sm: 12px; /* tab, highlight text, numbers */
183
184
  --text-uk-subtitle: 13px; /* subtitle */
@@ -188,6 +189,7 @@
188
189
  --text-uk-h1: 30px; /* heading 1 */
189
190
  /* line-height */
190
191
  --leading-uk-hint: 12px; /* hint text */
192
+ --leading-uk-xxs: 12px; /* primary text, input title */
191
193
  --leading-uk-xs: 14px; /* primary text, input title */
192
194
  --leading-uk-sm: 16px; /* tab, highlight text, numbers */
193
195
  --leading-uk-subtitle: 18px; /* subtitle */
package/src/ui/button.tsx CHANGED
@@ -55,11 +55,11 @@ export const buttonVariants = cva(
55
55
  },
56
56
  size: {
57
57
  sm: [
58
- "rounded-uk-sm",
58
+ "rounded-uk-md",
59
59
  "text-uk-sm",
60
60
  "py-sm",
61
61
  "gap-xxs",
62
- "px-sm",
62
+ "px-md",
63
63
  "leading-4",
64
64
  "[&_svg:not([class*='size-'])]:size-3",
65
65
  ],
package/src/ui/card.tsx CHANGED
@@ -12,9 +12,12 @@ const cardVariants = cva(
12
12
  "flex-col",
13
13
  "rounded-uk-lg",
14
14
  "bg-bg-primary",
15
- "liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
16
15
  "liquid-dark:liquid-dark-bg",
16
+ "liquid-dark:border-[0.9px]",
17
+ "liquid-dark:border-[rgba(85,85,85,100)]",
17
18
  "liquid-light:liquid-light-bg",
19
+ "liquid-light:border-[0.8px]",
20
+ "liquid-light:border-[white]",
18
21
  ],
19
22
  {
20
23
  variants: {
@@ -86,7 +89,6 @@ function CardTitle({ className, ...props }: ComponentProps<"div">) {
86
89
  "text-uk-md",
87
90
  "leading-uk-md",
88
91
  "font-medium",
89
- "-mt-2",
90
92
  "vertical-align-middle",
91
93
  className,
92
94
  )}
@@ -102,7 +104,7 @@ function CardDescription({ className, ...props }: ComponentProps<"div">) {
102
104
  return (
103
105
  <div
104
106
  data-slot="card-description"
105
- className={cn("text-uk-sm", "-mt-2", "text-text-secondary", "leading-uk-sm", className)}
107
+ className={cn("text-uk-sm", "text-text-secondary", "leading-uk-sm", className)}
106
108
  {...props}
107
109
  />
108
110
  );
@@ -119,8 +121,6 @@ function CardAction({ className, ...props }: ComponentProps<"div">) {
119
121
  "text-text-secondary",
120
122
  "text-uk-sm",
121
123
  "leading-uk-sm",
122
- "-mt-2",
123
- "-mr-3",
124
124
  "font-medium",
125
125
  "vertical-align-middle",
126
126
  className,
package/src/ui/index.ts CHANGED
@@ -20,7 +20,6 @@ export * from "./toggle-group";
20
20
  export * from "./badge";
21
21
  export * from "./radio-group";
22
22
  export * from "./card";
23
- export * from "./panel";
24
23
  export * from "./toolbar";
25
24
  export * from "./checkbox";
26
25
  export * from "./switch";
@@ -38,6 +37,8 @@ export * from "./UIKitBadge";
38
37
  export * from "./DialBadge";
39
38
  export * from "./resizable";
40
39
  export * from "./inputs";
40
+ export * from "./progress";
41
+ export * from "./spinner";
41
42
 
42
43
  export * from "./layouts";
43
44
  export * from "./theme";
@@ -14,9 +14,27 @@ const inputRootVariants = cva(
14
14
  error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"],
15
15
  },
16
16
  size: {
17
- sm: ["h-6", "text-uk-sm", "[&_.input-slot>svg:not([class*='size-'])]:size-3", "px-sm"],
18
- md: ["h-8", "text-uk-md", "[&_.input-slot>svg:not([class*='size-'])]:size-4", "px-md"],
19
- lg: ["h-9", "text-uk-lg", "[&_.input-slot>svg:not([class*='size-'])]:size-5", "px-lg"],
17
+ sm: [
18
+ "h-6",
19
+ "text-uk-sm",
20
+ "rounded-[10px]",
21
+ "[&_.input-slot>svg:not([class*='size-'])]:size-3",
22
+ "px-sm",
23
+ ],
24
+ md: [
25
+ "h-8",
26
+ "text-uk-md",
27
+ "rounded-[11px]",
28
+ "[&_.input-slot>svg:not([class*='size-'])]:size-4",
29
+ "px-md",
30
+ ],
31
+ lg: [
32
+ "h-9",
33
+ "text-uk-lg",
34
+ "rounded-[12px]",
35
+ "[&_.input-slot>svg:not([class*='size-'])]:size-5",
36
+ "px-lg",
37
+ ],
20
38
  },
21
39
  },
22
40
  defaultVariants: {
package/src/ui/label.tsx CHANGED
@@ -5,13 +5,21 @@ import * as React from "react";
5
5
  import { cn } from "../hooks";
6
6
 
7
7
  const labelVariants = cva(
8
- ["font-normal", "leading-none", "peer-disabled:cursor-not-allowed", "peer-disabled:opacity-70"],
8
+ [
9
+ "font-normal",
10
+ "leading-none",
11
+ "peer-disabled:cursor-not-allowed",
12
+ "peer-disabled:opacity-70",
13
+ "text-nowrap",
14
+ "overflow-ellipsis",
15
+ ],
9
16
  {
10
17
  variants: {
11
18
  size: {
12
19
  xs: "text-xxs",
13
20
  sm: "text-xs",
14
21
  lg: "text-md",
22
+ hint: "text-hint text-muted-foreground",
15
23
  },
16
24
  },
17
25
  defaultVariants: {
@@ -22,7 +30,7 @@ const labelVariants = cva(
22
30
 
23
31
  type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
24
32
  VariantProps<typeof labelVariants> & {
25
- size?: "xs" | "sm" | "lg";
33
+ size?: "xs" | "sm" | "lg" | "hint";
26
34
  };
27
35
 
28
36
  const Label = React.forwardRef<React.ComponentRef<typeof LabelPrimitive.Root>, LabelProps>(
package/src/ui/layout.tsx CHANGED
@@ -3,11 +3,12 @@ import { PropsWithChildren, ReactElement } from "react";
3
3
 
4
4
  import { cn } from "../hooks";
5
5
 
6
+ export type LayoutType = "label-left" | "label-top";
6
7
  export interface FormLayoutProps extends PropsWithChildren {
7
8
  align?: "start" | "center" | "end" | "baseline";
8
9
  asChild?: boolean;
9
10
  className?: string;
10
- orientation?: "label-left" | "label-top";
11
+ orientation?: LayoutType;
11
12
  children: [ReactElement, ReactElement];
12
13
  }
13
14
 
@@ -22,6 +23,7 @@ export function FormLayout({
22
23
  children,
23
24
  }: FormLayoutProps) {
24
25
  const Com = asChild ? Slot : "div";
26
+ console.log("layout", orientation);
25
27
 
26
28
  return (
27
29
  <Com
@@ -0,0 +1,29 @@
1
+ import { type ComponentProps } from "react"
2
+ import * as ProgressPrimitive from "@radix-ui/react-progress"
3
+
4
+ import { cn } from "../hooks"
5
+
6
+ function Progress({
7
+ className,
8
+ value,
9
+ ...props
10
+ }: ComponentProps<typeof ProgressPrimitive.Root>) {
11
+ return (
12
+ <ProgressPrimitive.Root
13
+ data-slot="progress"
14
+ className={cn(
15
+ "bg-bg-secondary relative h-2 w-full overflow-hidden rounded-uk-xl",
16
+ className
17
+ )}
18
+ {...props}
19
+ >
20
+ <ProgressPrimitive.Indicator
21
+ data-slot="progress-indicator"
22
+ className="bg-brand-primary h-full w-full flex-1 transition-all"
23
+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
24
+ />
25
+ </ProgressPrimitive.Root>
26
+ )
27
+ }
28
+
29
+ export { Progress }
@@ -0,0 +1,67 @@
1
+ import { type LucideProps } from 'lucide-react';
2
+
3
+ const Ring = ({ size = 24, ...props }: LucideProps) => (
4
+ <svg
5
+ height={size}
6
+ stroke="currentColor"
7
+ viewBox="0 0 44 44"
8
+ width={size}
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ {...props}
11
+ >
12
+ <title>Loading...</title>
13
+ <g fill="none" fillRule="evenodd" strokeWidth="2">
14
+ <circle cx="22" cy="22" r="1">
15
+ <animate
16
+ attributeName="r"
17
+ begin="0s"
18
+ calcMode="spline"
19
+ dur="1.8s"
20
+ keySplines="0.165, 0.84, 0.44, 1"
21
+ keyTimes="0; 1"
22
+ repeatCount="indefinite"
23
+ values="1; 20"
24
+ />
25
+ <animate
26
+ attributeName="stroke-opacity"
27
+ begin="0s"
28
+ calcMode="spline"
29
+ dur="1.8s"
30
+ keySplines="0.3, 0.61, 0.355, 1"
31
+ keyTimes="0; 1"
32
+ repeatCount="indefinite"
33
+ values="1; 0"
34
+ />
35
+ </circle>
36
+ <circle cx="22" cy="22" r="1">
37
+ <animate
38
+ attributeName="r"
39
+ begin="-0.9s"
40
+ calcMode="spline"
41
+ dur="1.8s"
42
+ keySplines="0.165, 0.84, 0.44, 1"
43
+ keyTimes="0; 1"
44
+ repeatCount="indefinite"
45
+ values="1; 20"
46
+ />
47
+ <animate
48
+ attributeName="stroke-opacity"
49
+ begin="-0.9s"
50
+ calcMode="spline"
51
+ dur="1.8s"
52
+ keySplines="0.3, 0.61, 0.355, 1"
53
+ keyTimes="0; 1"
54
+ repeatCount="indefinite"
55
+ values="1; 0"
56
+ />
57
+ </circle>
58
+ </g>
59
+ </svg>
60
+ );
61
+
62
+ export type SpinnerProps = LucideProps;
63
+
64
+ export const Spinner = (props: SpinnerProps) => {
65
+ return <Ring {...props} />;
66
+ };
67
+
@@ -29,14 +29,27 @@ export function Toolbar({ className, children, variant = "default", size = "md"
29
29
  return (
30
30
  <div
31
31
  className={cn(
32
- "bg-bg-primary flex items-center gap-2",
33
- "liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
34
- size === "sm" && "rounded-uk-md p-1.5",
35
- size === "md" && "rounded-uk-lg p-1.5",
36
- size === "lg" && "rounded-uk-xl p-1.5",
37
- variant === "floating" &&
38
- "rounded-[var(--radius-uk-md)] bg-white dark:bg-gray-900" &&
39
- (size === "sm" ? "px-1 py-1" : size === "md" ? "px-2 py-2" : "px-3 py-3"),
32
+ "flex items-center gap-2",
33
+ "liquid-dark:liquid-dark-bg",
34
+ "liquid-dark:border-[0.9px]",
35
+ "liquid-dark:border-[rgba(85,85,85,100)]",
36
+ "liquid-light:liquid-light-bg",
37
+ "liquid-light:border-[0.8px]",
38
+ "liquid-light:border-[white]",
39
+ "liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
40
+ // Base styles for non-floating variants
41
+ variant !== "floating" && "bg-bg-primary",
42
+ // Size-based border radius for non-floating variants
43
+ variant !== "floating" && size === "sm" && "rounded-uk-md p-1.5",
44
+ variant !== "floating" && size === "md" && "rounded-uk-lg p-1.5",
45
+ variant !== "floating" && size === "lg" && "rounded-uk-xl p-1.5",
46
+ // Floating variant styles
47
+ variant === "floating" && [
48
+ "rounded-[var(--radius-uk-md)] bg-white dark:bg-gray-900",
49
+ size === "sm" && "px-1 py-1",
50
+ size === "md" && "px-[0.6em] py-2",
51
+ size === "lg" && "px-3 py-3",
52
+ ],
40
53
  className,
41
54
  )}
42
55
  >