@vuer-ai/vuer-uikit 0.0.109 → 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.
- package/dist/auth/components/index.cjs +128 -0
- package/dist/auth/components/index.d.cts +2 -0
- package/dist/auth/components/index.d.ts +2 -0
- package/dist/auth/components/index.mjs +119 -0
- package/dist/auth/components/user-avatar/index.cjs +127 -0
- package/dist/auth/components/user-avatar/index.d.cts +8 -0
- package/dist/auth/components/user-avatar/index.d.ts +8 -0
- package/dist/auth/components/user-avatar/index.mjs +118 -0
- package/dist/auth/context/user-context.cjs +10 -0
- package/dist/auth/context/{auth-context.d.cts → user-context.d.cts} +3 -3
- package/dist/auth/context/{auth-context.d.ts → user-context.d.ts} +3 -3
- package/dist/auth/context/user-context.mjs +1 -0
- package/dist/auth/handler/fetch-auth.cjs +11 -0
- package/dist/auth/handler/fetch-auth.d.cts +3 -0
- package/dist/auth/handler/fetch-auth.d.ts +3 -0
- package/dist/auth/handler/fetch-auth.mjs +2 -0
- package/dist/auth/handler/fetch-server.cjs +11 -0
- package/dist/auth/handler/fetch-server.d.cts +3 -0
- package/dist/auth/handler/fetch-server.d.ts +3 -0
- package/dist/auth/handler/fetch-server.mjs +2 -0
- package/dist/auth/handler/get-session.cjs +4 -3
- package/dist/auth/handler/get-session.d.cts +1 -1
- package/dist/auth/handler/get-session.d.ts +1 -1
- package/dist/auth/handler/get-session.mjs +3 -2
- package/dist/auth/handler/get-sessions.cjs +12 -0
- package/dist/auth/handler/get-sessions.d.cts +19 -0
- package/dist/auth/handler/get-sessions.d.ts +19 -0
- package/dist/auth/handler/get-sessions.mjs +3 -0
- package/dist/auth/handler/sign-in-handler.cjs +3 -3
- package/dist/auth/handler/sign-in-handler.d.cts +2 -2
- package/dist/auth/handler/sign-in-handler.d.ts +2 -2
- package/dist/auth/handler/sign-in-handler.mjs +2 -2
- package/dist/auth/handler/sign-out-handler.cjs +4 -3
- package/dist/auth/handler/sign-out-handler.mjs +3 -2
- package/dist/auth/hooks/use-sign-in.cjs +14 -0
- package/dist/auth/hooks/use-sign-in.d.cts +9 -0
- package/dist/auth/hooks/use-sign-in.d.ts +9 -0
- package/dist/auth/hooks/use-sign-in.mjs +5 -0
- package/dist/auth/hooks/use-sign-out.cjs +15 -0
- package/dist/auth/hooks/use-sign-out.d.cts +6 -0
- package/dist/auth/hooks/use-sign-out.d.ts +6 -0
- package/dist/auth/hooks/use-sign-out.mjs +6 -0
- package/dist/auth/hooks/use-user.cjs +11 -0
- package/dist/auth/hooks/use-user.d.cts +8 -0
- package/dist/auth/hooks/use-user.d.ts +8 -0
- package/dist/auth/hooks/use-user.mjs +2 -0
- package/dist/auth/hooks/use-vuer-sessions.cjs +15 -0
- package/dist/auth/hooks/use-vuer-sessions.d.cts +9 -0
- package/dist/auth/hooks/use-vuer-sessions.d.ts +9 -0
- package/dist/auth/hooks/use-vuer-sessions.mjs +6 -0
- package/dist/auth/index.cjs +151 -15
- package/dist/auth/index.d.cts +10 -6
- package/dist/auth/index.d.ts +10 -6
- package/dist/auth/index.mjs +124 -8
- package/dist/auth/localstorage-key.cjs +6 -2
- package/dist/auth/localstorage-key.d.cts +2 -1
- package/dist/auth/localstorage-key.d.ts +2 -1
- package/dist/auth/localstorage-key.mjs +1 -1
- package/dist/auth/vuer-user-provider.cjs +14 -0
- package/dist/auth/{vuer-auth-provider.d.cts → vuer-user-provider.d.cts} +2 -2
- package/dist/auth/{vuer-auth-provider.d.ts → vuer-user-provider.d.ts} +2 -2
- package/dist/auth/vuer-user-provider.mjs +5 -0
- package/dist/{chunk-2EG65KGO.cjs → chunk-2MSGENAQ.cjs} +2 -2
- package/dist/{chunk-VUMOJPEC.mjs → chunk-2SFB7HHW.mjs} +1 -1
- package/dist/chunk-3WMO5QJJ.cjs +8 -0
- package/dist/{chunk-5XBMFADS.cjs → chunk-4GVFCQGI.cjs} +2 -2
- package/dist/chunk-4JZOPZHB.cjs +30 -0
- package/dist/{chunk-MIT3YWUC.cjs → chunk-4LQDOYQJ.cjs} +2 -2
- package/dist/{chunk-5MBEK77I.mjs → chunk-57MAUYQZ.mjs} +9 -2
- package/dist/chunk-5OHAV55L.mjs +24 -0
- package/dist/{chunk-EAXBNWXE.cjs → chunk-5VUM46YD.cjs} +2 -2
- package/dist/{chunk-64L2SNKA.cjs → chunk-6D66V6ON.cjs} +2 -2
- package/dist/chunk-6GJM7TPE.cjs +28 -0
- package/dist/{chunk-GOGJVFRN.cjs → chunk-6IXKC64S.cjs} +4 -4
- package/dist/{chunk-TPAV6PXI.mjs → chunk-7CDVPU65.mjs} +2 -2
- package/dist/chunk-7E5Y224I.cjs +14 -0
- package/dist/{chunk-D5WOPTKY.cjs → chunk-7NUXYKXU.cjs} +2 -2
- package/dist/chunk-7R5HY3IM.cjs +12 -0
- package/dist/{chunk-3VVQWVDE.mjs → chunk-7XXTMBF5.mjs} +1 -1
- package/dist/{chunk-CZ4GQOXG.mjs → chunk-AAFU2FII.mjs} +2 -2
- package/dist/{chunk-4THQPG6Y.mjs → chunk-ACETEVZD.mjs} +1 -1
- package/dist/{chunk-SYX6TMCQ.mjs → chunk-AGHIJQAR.mjs} +1 -1
- package/dist/chunk-APC2GIE7.cjs +58 -0
- package/dist/{chunk-JFJRNNPQ.cjs → chunk-AW6Q4IWT.cjs} +2 -2
- package/dist/{chunk-ACYZOKPT.mjs → chunk-BBWT5YO2.mjs} +2 -2
- package/dist/{chunk-6XOTWZFC.mjs → chunk-BCA45QEW.mjs} +2 -2
- package/dist/{chunk-LFSCJLL2.cjs → chunk-BDAKLXXX.cjs} +9 -2
- package/dist/chunk-BI4QZVVB.cjs +82 -0
- package/dist/{chunk-ZRRCYQ53.cjs → chunk-BTXD3NAG.cjs} +3 -3
- package/dist/{chunk-7RHQ6DVU.cjs → chunk-CGBEPOL4.cjs} +21 -9
- package/dist/{chunk-RA6QMOFM.mjs → chunk-DBMXQH73.mjs} +76 -123
- package/dist/{chunk-QZUTRJSP.mjs → chunk-DHMLQTQ6.mjs} +2 -2
- package/dist/{chunk-OLVOIUCE.mjs → chunk-DT2LGZ5H.mjs} +3 -3
- package/dist/{chunk-KBC7VNER.mjs → chunk-ECOYNCWG.mjs} +1 -1
- package/dist/{chunk-SVWS4AL6.cjs → chunk-F4Z5KATZ.cjs} +2 -0
- package/dist/{chunk-NRQJX772.mjs → chunk-FB5MYIVE.mjs} +1 -0
- package/dist/chunk-FRAD2Z2G.mjs +43 -0
- package/dist/chunk-FROQ45MN.mjs +6 -0
- package/dist/chunk-G6ATG2WV.mjs +28 -0
- package/dist/chunk-GBERXSLI.cjs +53 -0
- package/dist/{chunk-EXQQRW7T.mjs → chunk-GSQE4JVF.mjs} +1 -1
- package/dist/{chunk-5HS4PMUR.mjs → chunk-GUSUTH7D.mjs} +16 -11
- package/dist/{chunk-IXNXSECD.mjs → chunk-H2AJ2CLT.mjs} +1 -1
- package/dist/{chunk-SUEFWFPX.mjs → chunk-HFGRTWTD.mjs} +2 -2
- package/dist/chunk-HOMAESTR.mjs +12 -0
- package/dist/{chunk-T2D6PSA6.cjs → chunk-I2YVC4AE.cjs} +17 -12
- package/dist/{chunk-4JGGLCXT.mjs → chunk-JH5NAW2V.mjs} +1 -1
- package/dist/chunk-JTJKIRFA.mjs +56 -0
- package/dist/chunk-KIZEJMW4.cjs +15 -0
- package/dist/{chunk-JYIVDUDL.cjs → chunk-KOMVGDDW.cjs} +4 -4
- package/dist/{chunk-ZNM6PNI6.mjs → chunk-KS5A3G7B.mjs} +1 -1
- package/dist/{chunk-4WRTIOGZ.cjs → chunk-KT772L2I.cjs} +6 -6
- package/dist/{chunk-NSUFTZNC.cjs → chunk-L2YLNWCQ.cjs} +2 -2
- package/dist/chunk-L3YEIRJS.mjs +31 -0
- package/dist/chunk-L4CIN7FR.mjs +96 -0
- package/dist/{chunk-6QU4J3HY.cjs → chunk-LBRS745M.cjs} +9 -9
- package/dist/{chunk-ASR6OXVT.cjs → chunk-LI5W744D.cjs} +8 -1
- package/dist/{chunk-UASPJ57U.cjs → chunk-LPKVKTOK.cjs} +1 -0
- package/dist/{chunk-SHT4BJOB.cjs → chunk-LUCJKAJ5.cjs} +2 -2
- package/dist/chunk-LUVD54GO.cjs +47 -0
- package/dist/{chunk-5JPYU5A6.cjs → chunk-LV4XJY75.cjs} +11 -11
- package/dist/{chunk-AOV3ADTV.cjs → chunk-M45UXJWX.cjs} +2 -2
- package/dist/{chunk-7HOEFGEO.mjs → chunk-MGFG7EXC.mjs} +1 -1
- package/dist/chunk-MO5V43Z3.mjs +13 -0
- package/dist/chunk-MRMSCW3P.cjs +19 -0
- package/dist/{chunk-WRKB3W2J.cjs → chunk-MTZQ4C2U.cjs} +6 -6
- package/dist/{chunk-AJQEHMYV.cjs → chunk-NIEFMP5V.cjs} +2 -2
- package/dist/chunk-NJXBYRKZ.mjs +80 -0
- package/dist/{chunk-S7SGB2FD.mjs → chunk-O7FGA5N2.mjs} +4 -4
- package/dist/chunk-OOHCJIRV.cjs +26 -0
- package/dist/chunk-PFIP3ETQ.cjs +55 -0
- package/dist/{chunk-RIJUPORK.mjs → chunk-PJJSHHL6.mjs} +1 -1
- package/dist/{chunk-CGUQWS2I.mjs → chunk-PTBMSYQQ.mjs} +1 -1
- package/dist/chunk-PX2H7Z4D.mjs +26 -0
- package/dist/chunk-PXDT5GFJ.mjs +13 -0
- package/dist/{chunk-HN3AMWUM.cjs → chunk-Q5PJKBX7.cjs} +2 -2
- package/dist/chunk-Q76WU4DL.cjs +17 -0
- package/dist/{chunk-Y2H4A5AC.mjs → chunk-R2QXIDY2.mjs} +2 -2
- package/dist/{chunk-K2OC2HWQ.mjs → chunk-RFRBGVBZ.mjs} +19 -7
- package/dist/{chunk-7GJVMFKJ.cjs → chunk-ROY7233C.cjs} +4 -4
- package/dist/{chunk-HBIZQDDS.cjs → chunk-RQH7ZAWF.cjs} +2 -2
- package/dist/{chunk-PB4UO2NR.cjs → chunk-RSBVQ7SJ.cjs} +9 -10
- package/dist/{chunk-A2UZY7Y2.cjs → chunk-S5XJOGB4.cjs} +2 -2
- package/dist/chunk-SO2UTKSV.mjs +17 -0
- package/dist/{chunk-JFIAWTRH.cjs → chunk-SU57ZAZJ.cjs} +2 -2
- package/dist/{chunk-MG5TTPA7.mjs → chunk-SWJHOFZH.mjs} +6 -6
- package/dist/{chunk-PTCDBU72.cjs → chunk-TYZHIBYI.cjs} +2 -2
- package/dist/{chunk-IY36FZ5R.mjs → chunk-TZBOF3XO.mjs} +1 -1
- package/dist/{chunk-DQUI3PIU.mjs → chunk-UBYSTTD2.mjs} +2 -2
- package/dist/{chunk-276VJZCV.mjs → chunk-UT7B4TLZ.mjs} +2 -1
- package/dist/{chunk-XGM57WPN.mjs → chunk-V4KDK3BN.mjs} +8 -9
- package/dist/chunk-V5YUFNEB.mjs +53 -0
- package/dist/{chunk-VLOFKTSL.cjs → chunk-VEE2QBS5.cjs} +3 -3
- package/dist/{chunk-3IVDCAFM.mjs → chunk-VSFPXAGN.mjs} +4 -4
- package/dist/{chunk-LQGXG373.cjs → chunk-WB43VEZA.cjs} +21 -3
- package/dist/{chunk-YPQEJEB7.mjs → chunk-WGWNYPXW.mjs} +8 -1
- package/dist/{chunk-24IUD6Q3.mjs → chunk-WQCVK4PG.mjs} +1 -1
- package/dist/chunk-X3H6FYAM.cjs +15 -0
- package/dist/{chunk-LRSDE62T.mjs → chunk-XMQULAAU.mjs} +21 -3
- package/dist/chunk-YWECB5GR.cjs +2 -0
- package/dist/chunk-YYLBP356.mjs +1 -0
- package/dist/{chunk-2PJO5UJL.cjs → chunk-YZINVGLW.cjs} +11 -11
- package/dist/{chunk-JUSFLIU5.mjs → chunk-Z4ZGX3NM.mjs} +1 -1
- package/dist/chunk-Z7BZFZEV.mjs +15 -0
- package/dist/{chunk-VEWWUO2N.mjs → chunk-ZDSN4IFT.mjs} +1 -1
- package/dist/{chunk-PTGMHZFS.mjs → chunk-ZEBAIL6F.mjs} +1 -1
- package/dist/{chunk-2WD4ZL27.cjs → chunk-ZGS3VGGN.cjs} +4 -4
- package/dist/{chunk-Y5SVZCPQ.cjs → chunk-ZJ5SNYAO.cjs} +7 -7
- package/dist/{chunk-3TUONMQ6.mjs → chunk-ZRMDDK6J.mjs} +1 -1
- package/dist/chunk-ZXIKMZPH.cjs +99 -0
- package/dist/{chunk-QIYGXPLM.cjs → chunk-ZXWBDK2V.cjs} +130 -178
- package/dist/{chunk-5PHGYFZ3.cjs → chunk-ZZEWMU7Y.cjs} +2 -2
- package/dist/dial/DialPanel.cjs +54 -52
- package/dist/dial/DialPanel.d.cts +1 -0
- package/dist/dial/DialPanel.d.ts +1 -0
- package/dist/dial/DialPanel.mjs +53 -51
- package/dist/dial/DialProvider.cjs +3 -3
- package/dist/dial/DialProvider.d.cts +3 -2
- package/dist/dial/DialProvider.d.ts +3 -2
- package/dist/dial/DialProvider.example.cjs +4 -4
- package/dist/dial/DialProvider.example.mjs +1 -1
- package/dist/dial/DialProvider.mjs +1 -1
- package/dist/dial/index.cjs +72 -70
- package/dist/dial/index.d.cts +1 -0
- package/dist/dial/index.d.ts +1 -0
- package/dist/dial/index.mjs +53 -51
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +58 -56
- package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +10 -9
- package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +10 -9
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +53 -51
- package/dist/dial/wrapped-inputs/DialInputs.cjs +67 -65
- package/dist/dial/wrapped-inputs/DialInputs.d.cts +1 -0
- package/dist/dial/wrapped-inputs/DialInputs.d.ts +1 -0
- package/dist/dial/wrapped-inputs/DialInputs.mjs +53 -51
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +48 -52
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.cts +3 -3
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.ts +3 -3
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +47 -51
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +54 -52
- package/dist/dial/wrapped-inputs/DialVectorInput.d.cts +1 -0
- package/dist/dial/wrapped-inputs/DialVectorInput.d.ts +1 -0
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +53 -51
- package/dist/dial/wrapped-inputs/index.cjs +77 -75
- package/dist/dial/wrapped-inputs/index.d.cts +1 -0
- package/dist/dial/wrapped-inputs/index.d.ts +1 -0
- package/dist/dial/wrapped-inputs/index.mjs +53 -51
- package/dist/highlight-cursor/enhanced-components.cjs +11 -11
- package/dist/highlight-cursor/enhanced-components.mjs +6 -6
- package/dist/highlight-cursor/index.cjs +15 -15
- package/dist/highlight-cursor/index.mjs +6 -6
- package/dist/index.cjs +238 -256
- package/dist/index.css +3 -3
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +53 -51
- package/dist/styles/theme.css +3 -3
- package/dist/ui/DialBadge.cjs +5 -5
- package/dist/ui/DialBadge.mjs +1 -1
- package/dist/ui/UIKitBadge.cjs +5 -5
- package/dist/ui/UIKitBadge.mjs +1 -1
- package/dist/ui/button.cjs +3 -3
- package/dist/ui/button.mjs +1 -1
- package/dist/ui/card.cjs +8 -8
- package/dist/ui/card.mjs +1 -1
- package/dist/ui/index.cjs +182 -201
- package/dist/ui/index.d.cts +4 -1
- package/dist/ui/index.d.ts +4 -1
- package/dist/ui/index.mjs +45 -44
- package/dist/ui/inputs/color-input.cjs +3 -3
- package/dist/ui/inputs/color-input.mjs +2 -2
- package/dist/ui/inputs/index.cjs +56 -56
- package/dist/ui/inputs/index.mjs +20 -20
- package/dist/ui/inputs/input-numbers.cjs +3 -3
- package/dist/ui/inputs/input-numbers.mjs +2 -2
- package/dist/ui/inputs/input.cjs +4 -4
- package/dist/ui/inputs/input.mjs +1 -1
- package/dist/ui/inputs/number-inputs/CmInput.cjs +4 -4
- package/dist/ui/inputs/number-inputs/CmInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/DegInput.cjs +4 -4
- package/dist/ui/inputs/number-inputs/DegInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/InchInput.cjs +4 -4
- package/dist/ui/inputs/number-inputs/InchInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/IntInput.cjs +4 -4
- package/dist/ui/inputs/number-inputs/IntInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +5 -5
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +4 -4
- package/dist/ui/inputs/number-inputs/RadInput.cjs +4 -4
- package/dist/ui/inputs/number-inputs/RadInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +4 -4
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +5 -5
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +4 -4
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +4 -4
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +3 -3
- package/dist/ui/inputs/number-inputs/index.cjs +40 -40
- package/dist/ui/inputs/number-inputs/index.mjs +15 -15
- package/dist/ui/inputs/presets-input.cjs +5 -5
- package/dist/ui/inputs/presets-input.mjs +4 -4
- package/dist/ui/inputs/presets-rad-input.cjs +6 -6
- package/dist/ui/inputs/presets-rad-input.mjs +5 -5
- package/dist/ui/inputs/text-input.cjs +3 -3
- package/dist/ui/inputs/text-input.mjs +2 -2
- package/dist/ui/label.cjs +2 -2
- package/dist/ui/label.mjs +1 -1
- package/dist/ui/layout.cjs +2 -2
- package/dist/ui/layout.mjs +1 -1
- package/dist/ui/layouts/index.cjs +2 -2
- package/dist/ui/layouts/index.mjs +2 -2
- package/dist/ui/navigation.cjs +3 -3
- package/dist/ui/navigation.mjs +2 -2
- package/dist/ui/pagination.cjs +9 -9
- package/dist/ui/pagination.mjs +2 -2
- package/dist/ui/progress.cjs +20 -0
- package/dist/ui/progress.d.cts +7 -0
- package/dist/ui/progress.d.ts +7 -0
- package/dist/ui/{panel.mjs → progress.mjs} +1 -1
- package/dist/ui/sidebar.cjs +28 -28
- package/dist/ui/sidebar.mjs +4 -4
- package/dist/ui/spinner.cjs +10 -0
- package/dist/ui/spinner.d.cts +7 -0
- package/dist/ui/spinner.d.ts +7 -0
- package/dist/ui/spinner.mjs +1 -0
- package/dist/ui/theme/ThemeToggles.cjs +6 -6
- package/dist/ui/theme/ThemeToggles.mjs +3 -3
- package/dist/ui/theme/index.cjs +6 -6
- package/dist/ui/theme/index.mjs +3 -3
- package/dist/ui/toolbar.cjs +4 -4
- package/dist/ui/toolbar.mjs +1 -1
- package/dist/ui/tooltip.cjs +5 -5
- package/dist/ui/tooltip.mjs +1 -1
- package/dist/ui/tree-view/TreeSearchBar.cjs +4 -4
- package/dist/ui/tree-view/TreeSearchBar.mjs +3 -3
- package/dist/ui/tree-view/index.cjs +13 -13
- package/dist/ui/tree-view/index.mjs +4 -4
- package/dist/ui/tree-view-legacy.cjs +7 -7
- package/dist/ui/tree-view-legacy.mjs +3 -3
- package/dist/ui/waterfall/index.cjs +7 -7
- package/dist/ui/waterfall/index.mjs +6 -6
- package/package.json +5 -4
- package/src/auth/components/index.ts +1 -0
- package/src/auth/components/user-avatar/index.tsx +94 -0
- package/src/auth/context/{auth-context.ts → user-context.ts} +4 -4
- package/src/auth/handler/fetch-auth.ts +10 -0
- package/src/auth/handler/fetch-server.ts +10 -0
- package/src/auth/handler/get-session.ts +11 -9
- package/src/auth/handler/get-sessions.ts +16 -0
- package/src/auth/handler/sign-in-handler.ts +10 -11
- package/src/auth/handler/sign-out-handler.ts +2 -6
- package/src/auth/hooks/use-sign-in.ts +33 -0
- package/src/auth/hooks/use-sign-out.ts +30 -0
- package/src/auth/hooks/{use-vuer-auth.ts → use-user.ts} +3 -3
- package/src/auth/hooks/use-vuer-sessions.ts +29 -0
- package/src/auth/index.ts +9 -3
- package/src/auth/localstorage-key.ts +2 -0
- package/src/auth/{vuer-auth-provider.tsx → vuer-user-provider.tsx} +14 -9
- package/src/dial/DialProvider.tsx +67 -13
- package/src/dial/wrapped-inputs/ControlledInputs.tsx +79 -64
- package/src/dial/wrapped-inputs/DialPresetsInput.tsx +19 -27
- package/src/dial/wrapped-inputs/DialVectorInput.tsx +14 -9
- package/src/styles/theme.css +3 -3
- package/src/ui/button.tsx +2 -2
- package/src/ui/card.tsx +5 -5
- package/src/ui/index.ts +2 -1
- package/src/ui/inputs/input.tsx +21 -3
- package/src/ui/label.tsx +8 -1
- package/src/ui/layout.tsx +1 -0
- package/src/ui/progress.tsx +29 -0
- package/src/ui/spinner.tsx +67 -0
- package/src/ui/toolbar.tsx +21 -8
- package/src/ui/tooltip.tsx +11 -2
- package/src/ui/waterfall/index.tsx +15 -3
- package/dist/auth/context/auth-context.cjs +0 -10
- package/dist/auth/context/auth-context.mjs +0 -1
- package/dist/auth/hooks/use-vuer-auth.cjs +0 -11
- package/dist/auth/hooks/use-vuer-auth.d.cts +0 -8
- package/dist/auth/hooks/use-vuer-auth.d.ts +0 -8
- package/dist/auth/hooks/use-vuer-auth.mjs +0 -2
- package/dist/auth/hooks/use-vuer-method.cjs +0 -15
- package/dist/auth/hooks/use-vuer-method.d.cts +0 -10
- package/dist/auth/hooks/use-vuer-method.d.ts +0 -10
- package/dist/auth/hooks/use-vuer-method.mjs +0 -6
- package/dist/auth/vuer-auth-provider.cjs +0 -13
- package/dist/auth/vuer-auth-provider.mjs +0 -4
- package/dist/chunk-3HEZVWRW.mjs +0 -62
- package/dist/chunk-4B44SRRP.cjs +0 -12
- package/dist/chunk-4CPB3XHE.cjs +0 -18
- package/dist/chunk-AKVHFPXH.mjs +0 -26
- package/dist/chunk-C6L7YIGW.cjs +0 -117
- package/dist/chunk-CGODCUQ5.mjs +0 -16
- package/dist/chunk-G4Q5ALRW.mjs +0 -109
- package/dist/chunk-OPYMZDEZ.mjs +0 -28
- package/dist/chunk-RMK6W774.cjs +0 -65
- package/dist/chunk-T57VFBIC.mjs +0 -17
- package/dist/chunk-TC3W4VRO.mjs +0 -6
- package/dist/chunk-WTYBTOLO.cjs +0 -19
- package/dist/chunk-WZGZX3S2.cjs +0 -32
- package/dist/chunk-XFTKHT2M.cjs +0 -28
- package/dist/chunk-ZULCZ5L6.cjs +0 -8
- package/dist/ui/panel.cjs +0 -44
- package/dist/ui/panel.d.cts +0 -51
- package/dist/ui/panel.d.ts +0 -51
- package/src/auth/hooks/use-vuer-method.ts +0 -37
- package/src/ui/panel.tsx +0 -147
- /package/dist/{chunk-KFPS5CCR.cjs → chunk-NK7L5H2Y.cjs} +0 -0
- /package/dist/{chunk-G3EIVAVR.mjs → chunk-UXWS62ZO.mjs} +0 -0
|
@@ -82,8 +82,15 @@ function TooltipContent({
|
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
84
84
|
const getLiquidBgClass = (side2) => {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
const sideClassMap = {
|
|
86
|
+
top: "liquid-dark:liquid-dark-bg-tooltip-top liquid-light:liquid-light-bg-tooltip-top",
|
|
87
|
+
bottom: "liquid-dark:liquid-dark-bg-tooltip-bottom liquid-light:liquid-light-bg-tooltip-bottom",
|
|
88
|
+
left: "liquid-dark:liquid-dark-bg-tooltip-left liquid-light:liquid-light-bg-tooltip-left",
|
|
89
|
+
right: "liquid-dark:liquid-dark-bg-tooltip-right liquid-light:liquid-light-bg-tooltip-right"
|
|
90
|
+
};
|
|
91
|
+
if (side2 && side2 in sideClassMap) {
|
|
92
|
+
return sideClassMap[side2];
|
|
93
|
+
}
|
|
87
94
|
return "liquid-dark:liquid-dark-bg-tooltip-arrow liquid-light:liquid-light-bg-tooltip-arrow";
|
|
88
95
|
};
|
|
89
96
|
return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
// src/ui/spinner.tsx
|
|
6
|
+
var Ring = ({ size = 24, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
height: size,
|
|
10
|
+
stroke: "currentColor",
|
|
11
|
+
viewBox: "0 0 44 44",
|
|
12
|
+
width: size,
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
...props,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx("title", { children: "Loading..." }),
|
|
17
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", fillRule: "evenodd", strokeWidth: "2", children: [
|
|
18
|
+
/* @__PURE__ */ jsxRuntime.jsxs("circle", { cx: "22", cy: "22", r: "1", children: [
|
|
19
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
+
"animate",
|
|
21
|
+
{
|
|
22
|
+
attributeName: "r",
|
|
23
|
+
begin: "0s",
|
|
24
|
+
calcMode: "spline",
|
|
25
|
+
dur: "1.8s",
|
|
26
|
+
keySplines: "0.165, 0.84, 0.44, 1",
|
|
27
|
+
keyTimes: "0; 1",
|
|
28
|
+
repeatCount: "indefinite",
|
|
29
|
+
values: "1; 20"
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
+
"animate",
|
|
34
|
+
{
|
|
35
|
+
attributeName: "stroke-opacity",
|
|
36
|
+
begin: "0s",
|
|
37
|
+
calcMode: "spline",
|
|
38
|
+
dur: "1.8s",
|
|
39
|
+
keySplines: "0.3, 0.61, 0.355, 1",
|
|
40
|
+
keyTimes: "0; 1",
|
|
41
|
+
repeatCount: "indefinite",
|
|
42
|
+
values: "1; 0"
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ jsxRuntime.jsxs("circle", { cx: "22", cy: "22", r: "1", children: [
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
+
"animate",
|
|
49
|
+
{
|
|
50
|
+
attributeName: "r",
|
|
51
|
+
begin: "-0.9s",
|
|
52
|
+
calcMode: "spline",
|
|
53
|
+
dur: "1.8s",
|
|
54
|
+
keySplines: "0.165, 0.84, 0.44, 1",
|
|
55
|
+
keyTimes: "0; 1",
|
|
56
|
+
repeatCount: "indefinite",
|
|
57
|
+
values: "1; 20"
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
61
|
+
"animate",
|
|
62
|
+
{
|
|
63
|
+
attributeName: "stroke-opacity",
|
|
64
|
+
begin: "-0.9s",
|
|
65
|
+
calcMode: "spline",
|
|
66
|
+
dur: "1.8s",
|
|
67
|
+
keySplines: "0.3, 0.61, 0.355, 1",
|
|
68
|
+
keyTimes: "0; 1",
|
|
69
|
+
repeatCount: "indefinite",
|
|
70
|
+
values: "1; 0"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] })
|
|
74
|
+
] })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
var Spinner = (props) => {
|
|
79
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Ring, { ...props });
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.Spinner = Spinner;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWB43VEZA_cjs = require('./chunk-WB43VEZA.cjs');
|
|
4
4
|
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -37,7 +37,7 @@ var ColorInput = react.forwardRef(function ColorInput2({ className, value, defau
|
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
39
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
|
|
40
|
+
chunkWB43VEZA_cjs.InputRoot,
|
|
41
41
|
{
|
|
42
42
|
...props,
|
|
43
43
|
size: "sm",
|
|
@@ -48,7 +48,7 @@ var ColorInput = react.forwardRef(function ColorInput2({ className, value, defau
|
|
|
48
48
|
setColor(e.currentTarget.value);
|
|
49
49
|
onChange?.(e);
|
|
50
50
|
},
|
|
51
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
51
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkWB43VEZA_cjs.InputSlot, { children: "#" })
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
] });
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkWJL5HMO6_cjs = require('./chunk-WJL5HMO6.cjs');
|
|
4
4
|
var chunkRJ7I6ZQK_cjs = require('./chunk-RJ7I6ZQK.cjs');
|
|
5
|
-
var chunkYXFHJKNW_cjs = require('./chunk-YXFHJKNW.cjs');
|
|
6
5
|
var chunk5MNZYCN2_cjs = require('./chunk-5MNZYCN2.cjs');
|
|
7
6
|
var chunkZ6UDRPC2_cjs = require('./chunk-Z6UDRPC2.cjs');
|
|
8
|
-
var chunkEEGQLTSQ_cjs = require('./chunk-EEGQLTSQ.cjs');
|
|
9
7
|
var chunk2J75MYQA_cjs = require('./chunk-2J75MYQA.cjs');
|
|
10
8
|
var chunkUTS56UA5_cjs = require('./chunk-UTS56UA5.cjs');
|
|
11
9
|
var chunkJWVH6R35_cjs = require('./chunk-JWVH6R35.cjs');
|
|
12
10
|
var chunkMVAFOQ67_cjs = require('./chunk-MVAFOQ67.cjs');
|
|
13
11
|
var chunkTUYG6BYZ_cjs = require('./chunk-TUYG6BYZ.cjs');
|
|
12
|
+
var chunkYXFHJKNW_cjs = require('./chunk-YXFHJKNW.cjs');
|
|
14
13
|
var chunkG2ZYONQO_cjs = require('./chunk-G2ZYONQO.cjs');
|
|
15
|
-
var
|
|
14
|
+
var chunkLV4XJY75_cjs = require('./chunk-LV4XJY75.cjs');
|
|
16
15
|
var chunkHAVTMZR3_cjs = require('./chunk-HAVTMZR3.cjs');
|
|
17
|
-
var
|
|
16
|
+
var chunkEEGQLTSQ_cjs = require('./chunk-EEGQLTSQ.cjs');
|
|
17
|
+
var chunkBDAKLXXX_cjs = require('./chunk-BDAKLXXX.cjs');
|
|
18
18
|
var chunkG5JZGNKY_cjs = require('./chunk-G5JZGNKY.cjs');
|
|
19
19
|
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
20
20
|
var chunkG4FJGNY5_cjs = require('./chunk-G4FJGNY5.cjs');
|
|
@@ -78,13 +78,25 @@ function Waterfall({
|
|
|
78
78
|
onTemporalCursorChange,
|
|
79
79
|
temporalCursor
|
|
80
80
|
});
|
|
81
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
81
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkBDAKLXXX_cjs.TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkG4FJGNY5_cjs.SyncScrollProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
className: chunkOHIB3TEN_cjs.cn(
|
|
85
|
-
"bg-bg-primary
|
|
86
|
-
"
|
|
87
|
-
"
|
|
85
|
+
"bg-bg-primary",
|
|
86
|
+
"liquid-dark:liquid-dark-bg",
|
|
87
|
+
"liquid-dark:border-[0.9px]",
|
|
88
|
+
"liquid-dark:border-[rgba(85,85,85,100)]",
|
|
89
|
+
"liquid-light:liquid-light-bg",
|
|
90
|
+
"liquid-light:border-[0.8px]",
|
|
91
|
+
"liquid-light:border-[white]",
|
|
92
|
+
"text-text-primary",
|
|
93
|
+
"rounded-uk-lg",
|
|
94
|
+
"mx-auto",
|
|
95
|
+
"flex",
|
|
96
|
+
"w-full",
|
|
97
|
+
"flex-col",
|
|
98
|
+
"overflow-hidden",
|
|
99
|
+
"font-sans",
|
|
88
100
|
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
89
101
|
className
|
|
90
102
|
),
|
|
@@ -96,7 +108,7 @@ function Waterfall({
|
|
|
96
108
|
style: { width: panelWidth },
|
|
97
109
|
children: [
|
|
98
110
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
99
|
-
|
|
111
|
+
chunkLV4XJY75_cjs.TreeSearchBar,
|
|
100
112
|
{
|
|
101
113
|
className: "p-1",
|
|
102
114
|
searchQuery,
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { VectorInput } from './chunk-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { RadInput } from './chunk-
|
|
1
|
+
import { DialPresetsInput } from './chunk-V5YUFNEB.mjs';
|
|
2
|
+
import { useDialSchema } from './chunk-L4CIN7FR.mjs';
|
|
3
|
+
import { TimeInput } from './chunk-Z4ZGX3NM.mjs';
|
|
4
|
+
import { Vec3Input } from './chunk-AGHIJQAR.mjs';
|
|
5
|
+
import { EulerDegInput } from './chunk-WQCVK4PG.mjs';
|
|
6
|
+
import { EulerInput } from './chunk-KS5A3G7B.mjs';
|
|
7
|
+
import { EulerRadInput } from './chunk-H2AJ2CLT.mjs';
|
|
8
|
+
import { InchInput } from './chunk-ZRMDDK6J.mjs';
|
|
9
|
+
import { IntInput } from './chunk-JH5NAW2V.mjs';
|
|
10
|
+
import { QuaternionInput } from './chunk-2SFB7HHW.mjs';
|
|
11
|
+
import { VectorInput } from './chunk-ZDSN4IFT.mjs';
|
|
12
|
+
import { CmInput } from './chunk-ZEBAIL6F.mjs';
|
|
13
|
+
import { DegInput } from './chunk-PTBMSYQQ.mjs';
|
|
14
|
+
import { ColorInput } from './chunk-GSQE4JVF.mjs';
|
|
15
|
+
import { RadInput } from './chunk-TZBOF3XO.mjs';
|
|
16
|
+
import { TextInput } from './chunk-7XXTMBF5.mjs';
|
|
16
17
|
import { Slider } from './chunk-Y6WGGVT2.mjs';
|
|
17
18
|
import { Switch } from './chunk-AZBJB6KC.mjs';
|
|
18
|
-
import { Label } from './chunk-
|
|
19
|
-
import { FormLayout } from './chunk-
|
|
20
|
-
import {
|
|
21
|
-
import { InputRoot, InputSlot } from './chunk-LRSDE62T.mjs';
|
|
19
|
+
import { Label } from './chunk-WGWNYPXW.mjs';
|
|
20
|
+
import { FormLayout } from './chunk-FB5MYIVE.mjs';
|
|
21
|
+
import { InputRoot, InputSlot } from './chunk-XMQULAAU.mjs';
|
|
22
22
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-KJH46JR3.mjs';
|
|
23
|
+
import { useCallback } from 'react';
|
|
23
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
24
25
|
|
|
25
26
|
var DialInputWrapper = ({
|
|
@@ -435,63 +436,19 @@ var DialNumberRadInput = ({
|
|
|
435
436
|
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(DegInput, { value: degValue, onChange: handleChange, size, step }) });
|
|
436
437
|
}
|
|
437
438
|
};
|
|
438
|
-
var DialInputWrapper2 = ({ label, children }) => {
|
|
439
|
-
if (!label) {
|
|
440
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
441
|
-
}
|
|
442
|
-
return /* @__PURE__ */ jsxs(FormLayout, { orientation: "label-top", children: [
|
|
443
|
-
/* @__PURE__ */ jsx(Label, { size: "sm", children: label }),
|
|
444
|
-
children
|
|
445
|
-
] });
|
|
446
|
-
};
|
|
447
|
-
var DialPresetsInput = ({
|
|
448
|
-
name,
|
|
449
|
-
label,
|
|
450
|
-
size = "sm",
|
|
451
|
-
labelPosition,
|
|
452
|
-
options
|
|
453
|
-
}) => {
|
|
454
|
-
const { getValue, setValue } = useDialSchema();
|
|
455
|
-
const value = getValue(name) ?? 0;
|
|
456
|
-
const presets = options.slice(0, 3).map((opt) => {
|
|
457
|
-
if (typeof opt === "number") return opt;
|
|
458
|
-
if (typeof opt === "string") return parseFloat(opt);
|
|
459
|
-
return typeof opt.value === "number" ? opt.value : parseFloat(opt.value);
|
|
460
|
-
});
|
|
461
|
-
while (presets.length < 3) {
|
|
462
|
-
presets.push(0);
|
|
463
|
-
}
|
|
464
|
-
if (labelPosition === "inline") {
|
|
465
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
466
|
-
label && /* @__PURE__ */ jsx(Label, { size: "sm", children: label }),
|
|
467
|
-
/* @__PURE__ */ jsx(
|
|
468
|
-
PresetsInput,
|
|
469
|
-
{
|
|
470
|
-
value,
|
|
471
|
-
onChange: (val) => setValue(name, val),
|
|
472
|
-
size,
|
|
473
|
-
presets
|
|
474
|
-
}
|
|
475
|
-
)
|
|
476
|
-
] });
|
|
477
|
-
} else {
|
|
478
|
-
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, children: /* @__PURE__ */ jsx(
|
|
479
|
-
PresetsInput,
|
|
480
|
-
{
|
|
481
|
-
value,
|
|
482
|
-
onChange: (val) => setValue(name, val),
|
|
483
|
-
size,
|
|
484
|
-
presets
|
|
485
|
-
}
|
|
486
|
-
) });
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
439
|
var DialVectorInput2 = ({
|
|
490
440
|
name,
|
|
491
441
|
label,
|
|
492
|
-
size = "sm"
|
|
442
|
+
size = "sm",
|
|
443
|
+
labelPosition = "top"
|
|
493
444
|
}) => {
|
|
494
445
|
const { getValue, setValue, schemas } = useDialSchema();
|
|
446
|
+
const handleValuesChange = useCallback(
|
|
447
|
+
(newValues) => {
|
|
448
|
+
setValue(name, newValues);
|
|
449
|
+
},
|
|
450
|
+
[name]
|
|
451
|
+
);
|
|
495
452
|
const schema = schemas.find((s) => s.name === name);
|
|
496
453
|
if (!schema) {
|
|
497
454
|
return null;
|
|
@@ -518,7 +475,6 @@ var DialVectorInput2 = ({
|
|
|
518
475
|
gridColumns = void 0;
|
|
519
476
|
gridRows = void 0;
|
|
520
477
|
}
|
|
521
|
-
console.log("the grid-flow is", gridAutoFlow, gridColumns, gridRows);
|
|
522
478
|
const vectorValue = Array.isArray(value) ? value.concat(Array(Math.max(0, dimensions - value.length)).fill(0)) : Array(dimensions).fill(0);
|
|
523
479
|
const inputSteps = Array.from({ length: dimensions }, (_, i) => {
|
|
524
480
|
if (steps[i] !== void 0) {
|
|
@@ -528,9 +484,6 @@ var DialVectorInput2 = ({
|
|
|
528
484
|
return dtype === "number-int" ? 1 : 1e-3;
|
|
529
485
|
});
|
|
530
486
|
const labels = placeholders.length > 0 ? placeholders.map((p) => /* @__PURE__ */ jsx("span", { className: "text-xs", children: p })) : void 0;
|
|
531
|
-
const handleValuesChange = (newValues) => {
|
|
532
|
-
setValue(name, newValues);
|
|
533
|
-
};
|
|
534
487
|
const inputComponent = /* @__PURE__ */ jsx(
|
|
535
488
|
VectorInput,
|
|
536
489
|
{
|
|
@@ -547,7 +500,7 @@ var DialVectorInput2 = ({
|
|
|
547
500
|
if (!label) {
|
|
548
501
|
return inputComponent;
|
|
549
502
|
}
|
|
550
|
-
return /* @__PURE__ */ jsxs(FormLayout, { orientation:
|
|
503
|
+
return /* @__PURE__ */ jsxs(FormLayout, { orientation: `label-${labelPosition}`, children: [
|
|
551
504
|
/* @__PURE__ */ jsx(Label, { size: "sm", children: label }),
|
|
552
505
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
553
506
|
schema.helpText && /* @__PURE__ */ jsx(
|
|
@@ -764,11 +717,11 @@ var DialPanel = ({
|
|
|
764
717
|
ungrouped.length > 0 && /* @__PURE__ */ jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsx("div", { className: "dial-row flex flex-row flex-wrap gap-4", children: ungrouped.map(renderSchemaInput) }) })
|
|
765
718
|
] });
|
|
766
719
|
};
|
|
767
|
-
var
|
|
720
|
+
var DialInputWrapper2 = ({ label, labelPosition = "top", children }) => {
|
|
768
721
|
if (!label) {
|
|
769
722
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
770
723
|
}
|
|
771
|
-
return /* @__PURE__ */ jsxs(FormLayout, { orientation:
|
|
724
|
+
return /* @__PURE__ */ jsxs(FormLayout, { orientation: `label-${labelPosition}`, children: [
|
|
772
725
|
/* @__PURE__ */ jsx(Label, { size: "sm", children: label }),
|
|
773
726
|
children
|
|
774
727
|
] });
|
|
@@ -779,77 +732,81 @@ var DialNumberInput = ({
|
|
|
779
732
|
max,
|
|
780
733
|
step = 1,
|
|
781
734
|
label,
|
|
782
|
-
labelPosition,
|
|
783
|
-
size = "sm"
|
|
735
|
+
labelPosition = "top",
|
|
736
|
+
size = "sm",
|
|
737
|
+
...props
|
|
784
738
|
}) => {
|
|
785
739
|
const { getValue, setValue } = useDialSchema();
|
|
786
740
|
const value = getValue(name) ?? 0;
|
|
741
|
+
const handleChange = useCallback(
|
|
742
|
+
(e) => setValue(name, parseFloat(e.target.value)),
|
|
743
|
+
[name]
|
|
744
|
+
);
|
|
787
745
|
const inputProps = {
|
|
788
746
|
type: "number",
|
|
789
747
|
value,
|
|
790
748
|
min,
|
|
791
749
|
max,
|
|
792
750
|
step,
|
|
793
|
-
onChange:
|
|
751
|
+
onChange: handleChange,
|
|
794
752
|
size
|
|
795
753
|
};
|
|
796
754
|
if (labelPosition === "inline") {
|
|
797
755
|
return /* @__PURE__ */ jsx(InputRoot, { ...inputProps, children: label ? /* @__PURE__ */ jsx(InputSlot, { side: "left", children: label }) : null });
|
|
798
756
|
} else {
|
|
799
|
-
return /* @__PURE__ */ jsx(
|
|
757
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, labelPosition, ...props, children: /* @__PURE__ */ jsx(InputRoot, { ...inputProps }) });
|
|
800
758
|
}
|
|
801
759
|
};
|
|
802
|
-
var DialBooleanInput = ({
|
|
760
|
+
var DialBooleanInput = ({
|
|
761
|
+
name,
|
|
762
|
+
label,
|
|
763
|
+
labelPosition,
|
|
764
|
+
...props
|
|
765
|
+
}) => {
|
|
803
766
|
const { getValue, setValue } = useDialSchema();
|
|
804
767
|
const value = getValue(name) ?? false;
|
|
768
|
+
const handleChange = useCallback((checked) => setValue(name, checked), [name]);
|
|
805
769
|
const switchProps = {
|
|
806
770
|
checked: value,
|
|
807
|
-
onCheckedChange:
|
|
771
|
+
onCheckedChange: handleChange
|
|
808
772
|
};
|
|
809
|
-
if (!label) {
|
|
773
|
+
if (!label || labelPosition === "inline") {
|
|
810
774
|
return /* @__PURE__ */ jsx(Switch, { ...switchProps });
|
|
811
775
|
}
|
|
812
|
-
return /* @__PURE__ */
|
|
813
|
-
/* @__PURE__ */ jsx(Label, { size: "sm", children: label }),
|
|
814
|
-
/* @__PURE__ */ jsx(Switch, { ...switchProps })
|
|
815
|
-
] });
|
|
776
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, labelPosition, ...props, children: /* @__PURE__ */ jsx(Switch, { ...switchProps }) });
|
|
816
777
|
};
|
|
817
|
-
var DialColorInput = ({ name, label }) => {
|
|
778
|
+
var DialColorInput = ({ name, label, ...props }) => {
|
|
818
779
|
const { getValue, setValue } = useDialSchema();
|
|
819
780
|
const value = getValue(name) ?? "";
|
|
820
|
-
const
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
781
|
+
const handleChange = useCallback(
|
|
782
|
+
(e) => setValue(name, e.target.value),
|
|
783
|
+
[name]
|
|
784
|
+
);
|
|
785
|
+
const inputComp = /* @__PURE__ */ jsx(ColorInput, { value, onChange: handleChange, prefix: label });
|
|
786
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, ...props, children: inputComp });
|
|
825
787
|
};
|
|
826
788
|
var DialSelectInput = ({
|
|
827
789
|
name,
|
|
828
790
|
options = [],
|
|
829
791
|
label,
|
|
830
|
-
|
|
831
|
-
|
|
792
|
+
size = "sm",
|
|
793
|
+
...props
|
|
832
794
|
}) => {
|
|
833
795
|
const { getValue, setValue } = useDialSchema();
|
|
834
796
|
const value = getValue(name);
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
{
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
},
|
|
843
|
-
children: [
|
|
844
|
-
/* @__PURE__ */ jsx(SelectTrigger, { size, children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select an option" }) }),
|
|
845
|
-
/* @__PURE__ */ jsx(SelectContent, { children: options.map((opt, i) => /* @__PURE__ */ jsx(SelectItem, { value: String(opt), children: String(opt) }, i)) })
|
|
846
|
-
]
|
|
847
|
-
}
|
|
797
|
+
console.log("dial schema:", name, value);
|
|
798
|
+
const handleValueChange = useCallback(
|
|
799
|
+
(val) => {
|
|
800
|
+
const parsed = !isNaN(Number(val)) ? Number(val) : val;
|
|
801
|
+
setValue(name, parsed);
|
|
802
|
+
},
|
|
803
|
+
[name]
|
|
848
804
|
);
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
805
|
+
const selectComponent = /* @__PURE__ */ jsxs(Select, { value: String(value), onValueChange: handleValueChange, children: [
|
|
806
|
+
/* @__PURE__ */ jsx(SelectTrigger, { size, children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select an option" }) }),
|
|
807
|
+
/* @__PURE__ */ jsx(SelectContent, { children: options.map((opt, i) => /* @__PURE__ */ jsx(SelectItem, { value: String(opt), children: String(opt) }, i)) })
|
|
808
|
+
] });
|
|
809
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, ...props, children: selectComponent });
|
|
853
810
|
};
|
|
854
811
|
var DialSliderInput = ({
|
|
855
812
|
name,
|
|
@@ -857,27 +814,23 @@ var DialSliderInput = ({
|
|
|
857
814
|
max = 100,
|
|
858
815
|
step = 1,
|
|
859
816
|
label,
|
|
860
|
-
|
|
861
|
-
size = "sm"
|
|
817
|
+
...props
|
|
862
818
|
}) => {
|
|
863
819
|
const { getValue, setValue } = useDialSchema();
|
|
864
820
|
const value = getValue(name) ?? min;
|
|
821
|
+
const handleValueChange = useCallback(([val]) => setValue(name, val), [name]);
|
|
865
822
|
const sliderProps = {
|
|
866
823
|
value: [value],
|
|
867
|
-
onValueChange:
|
|
824
|
+
onValueChange: handleValueChange,
|
|
868
825
|
min,
|
|
869
826
|
max,
|
|
870
827
|
step,
|
|
871
828
|
className: "flex-1"
|
|
872
829
|
};
|
|
873
|
-
|
|
830
|
+
return /* @__PURE__ */ jsxs(DialInputWrapper2, { label, ...props, children: [
|
|
874
831
|
/* @__PURE__ */ jsx(Slider, { ...sliderProps }),
|
|
875
832
|
/* @__PURE__ */ jsx("span", { className: "text-text-secondary w-12 text-right text-sm", children: value })
|
|
876
833
|
] });
|
|
877
|
-
if (!label) {
|
|
878
|
-
return sliderComponent;
|
|
879
|
-
}
|
|
880
|
-
return /* @__PURE__ */ jsx(DialInputWrapper3, { label, children: sliderComponent });
|
|
881
834
|
};
|
|
882
835
|
|
|
883
|
-
export { DialBooleanInput, DialCmInput, DialColorInput, DialDegInput, DialEulerDegInput, DialEulerInput, DialEulerRadInput, DialInchInput, DialIntInput, DialNumberInput, DialNumberRadInput, DialPanel,
|
|
836
|
+
export { DialBooleanInput, DialCmInput, DialColorInput, DialDegInput, DialEulerDegInput, DialEulerInput, DialEulerRadInput, DialInchInput, DialIntInput, DialNumberInput, DialNumberRadInput, DialPanel, DialQuaternionInput, DialRadInput, DialSelectInput, DialSliderInput, DialTextInput, DialTimeInput, DialVec3Input, DialVectorInput, DialVectorInput2 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-
|
|
2
|
-
import { InputRoot, InputSlot } from './chunk-
|
|
1
|
+
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-57MAUYQZ.mjs';
|
|
2
|
+
import { InputRoot, InputSlot } from './chunk-XMQULAAU.mjs';
|
|
3
3
|
import { SyncScroll } from './chunk-PDOFOJ4P.mjs';
|
|
4
4
|
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
5
5
|
import { Search, CaseSensitive, Regex, ChevronDown } from 'lucide-react';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-
|
|
1
|
+
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-57MAUYQZ.mjs';
|
|
2
2
|
import { Skeleton } from './chunk-DWWM2TV3.mjs';
|
|
3
3
|
import { Separator } from './chunk-OWGKZAOO.mjs';
|
|
4
4
|
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from './chunk-7NOBQH7O.mjs';
|
|
5
|
-
import { InputRoot } from './chunk-
|
|
6
|
-
import { Button } from './chunk-
|
|
5
|
+
import { InputRoot } from './chunk-XMQULAAU.mjs';
|
|
6
|
+
import { Button } from './chunk-AAFU2FII.mjs';
|
|
7
7
|
import { useIsMobile } from './chunk-XHJDRQD7.mjs';
|
|
8
8
|
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
9
9
|
import { Slot } from '@radix-ui/react-slot';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buttonVariants } from './chunk-
|
|
1
|
+
import { buttonVariants } from './chunk-AAFU2FII.mjs';
|
|
2
2
|
import { useTabsCursor, TabsCursorProvider } from './chunk-XMG3IVGZ.mjs';
|
|
3
3
|
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
4
4
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function Toolbar({ className, children, variant = "default", size = "md" }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: cn(
|
|
9
|
+
"flex items-center gap-2",
|
|
10
|
+
"liquid-dark:liquid-dark-bg",
|
|
11
|
+
"liquid-dark:border-[0.9px]",
|
|
12
|
+
"liquid-dark:border-[rgba(85,85,85,100)]",
|
|
13
|
+
"liquid-light:liquid-light-bg",
|
|
14
|
+
"liquid-light:border-[0.8px]",
|
|
15
|
+
"liquid-light:border-[white]",
|
|
16
|
+
"liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
17
|
+
// Base styles for non-floating variants
|
|
18
|
+
variant !== "floating" && "bg-bg-primary",
|
|
19
|
+
// Size-based border radius for non-floating variants
|
|
20
|
+
variant !== "floating" && size === "sm" && "rounded-uk-md p-1.5",
|
|
21
|
+
variant !== "floating" && size === "md" && "rounded-uk-lg p-1.5",
|
|
22
|
+
variant !== "floating" && size === "lg" && "rounded-uk-xl p-1.5",
|
|
23
|
+
// Floating variant styles
|
|
24
|
+
variant === "floating" && [
|
|
25
|
+
"rounded-[var(--radius-uk-md)] bg-white dark:bg-gray-900",
|
|
26
|
+
size === "sm" && "px-1 py-1",
|
|
27
|
+
size === "md" && "px-[0.6em] py-2",
|
|
28
|
+
size === "lg" && "px-3 py-3"
|
|
29
|
+
],
|
|
30
|
+
className
|
|
31
|
+
),
|
|
32
|
+
children
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function ToolbarGroup({ className, children }) {
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center gap-1", className), children });
|
|
38
|
+
}
|
|
39
|
+
function ToolbarSeparator({ className }) {
|
|
40
|
+
return /* @__PURE__ */ jsx("div", { className: cn("bg-line-primary mx-2 h-3.5 w-0.75 rounded-full", className) });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { Toolbar, ToolbarGroup, ToolbarSeparator };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useUser } from './chunk-VSFPXAGN.mjs';
|
|
2
|
+
import { signInHandler } from './chunk-V4KDK3BN.mjs';
|
|
3
|
+
import { useState, useCallback, useMemo } from 'react';
|
|
4
|
+
|
|
5
|
+
var useSignIn = () => {
|
|
6
|
+
const { refetch, baseURL } = useUser();
|
|
7
|
+
const [isPending, setIsPending] = useState(false);
|
|
8
|
+
const signInHandle = useCallback(
|
|
9
|
+
async (props) => {
|
|
10
|
+
try {
|
|
11
|
+
setIsPending(true);
|
|
12
|
+
await signInHandler({ ...props, baseURL });
|
|
13
|
+
const result = await refetch();
|
|
14
|
+
setIsPending(false);
|
|
15
|
+
return result;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
console.error(e);
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
[baseURL, refetch]
|
|
22
|
+
);
|
|
23
|
+
return useMemo(() => {
|
|
24
|
+
return { isPending, signIn: signInHandle };
|
|
25
|
+
}, [isPending, signInHandle]);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { useSignIn };
|