@vuer-ai/vuer-uikit 0.0.116 → 0.0.118
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/SyncScroll/SyncScroll.cjs +10 -10
- package/dist/SyncScroll/SyncScroll.mjs +3 -3
- package/dist/SyncScroll/index.cjs +10 -10
- package/dist/SyncScroll/index.mjs +3 -3
- package/dist/auth/components/index.cjs +82 -82
- package/dist/auth/components/index.mjs +81 -81
- package/dist/auth/components/user-avatar/index.cjs +82 -82
- package/dist/auth/components/user-avatar/index.mjs +81 -81
- package/dist/auth/handler/get-session.d.cts +3 -1
- package/dist/auth/handler/get-session.d.ts +3 -1
- package/dist/auth/handler/get-sessions.d.cts +3 -1
- package/dist/auth/handler/get-sessions.d.ts +3 -1
- package/dist/auth/hooks/use-sign-in.cjs +3 -3
- package/dist/auth/hooks/use-sign-in.mjs +2 -2
- package/dist/auth/hooks/use-sign-out.cjs +1 -1
- package/dist/auth/hooks/use-sign-out.mjs +1 -1
- package/dist/auth/hooks/use-vuer-sessions.cjs +4 -4
- package/dist/auth/hooks/use-vuer-sessions.mjs +3 -3
- package/dist/auth/index.cjs +93 -93
- package/dist/auth/index.mjs +84 -84
- package/dist/auth/types.d.cts +3 -1
- package/dist/auth/types.d.ts +3 -1
- package/dist/auth/vuer-user-provider.cjs +3 -3
- package/dist/auth/vuer-user-provider.mjs +2 -2
- package/dist/{chunk-UEOHXPXT.mjs → chunk-24SOZV7S.mjs} +3 -3
- package/dist/{chunk-LNKZATCP.cjs → chunk-2CD4D2BR.cjs} +3 -3
- package/dist/{chunk-GSQE4JVF.mjs → chunk-2GXIGEKC.mjs} +15 -4
- package/dist/{chunk-6NSQLHKC.mjs → chunk-332A4MHC.mjs} +1 -1
- package/dist/{chunk-JH5NAW2V.mjs → chunk-3DIFS7CO.mjs} +1 -1
- package/dist/{chunk-ZDSN4IFT.mjs → chunk-3NIMV5PH.mjs} +1 -1
- package/dist/{chunk-UASPJ57U.cjs → chunk-3ZEQVODC.cjs} +2 -2
- package/dist/{chunk-YQ5KKJQ3.cjs → chunk-42WQWP6X.cjs} +8 -8
- package/dist/{chunk-X2A7TKER.cjs → chunk-42ZXL3KZ.cjs} +10 -10
- package/dist/{chunk-FRAD2Z2G.mjs → chunk-4BQPIY5Z.mjs} +1 -1
- package/dist/{chunk-ABLQ4QRY.mjs → chunk-4DSJ62TT.mjs} +1 -1
- package/dist/{chunk-AAFU2FII.mjs → chunk-4ODJAEOM.mjs} +1 -1
- package/dist/{chunk-7DFI7CUK.cjs → chunk-4OUQ6NSX.cjs} +2 -2
- package/dist/{chunk-ROY7233C.cjs → chunk-4PMXRQXC.cjs} +6 -6
- package/dist/{chunk-4PKPCOAF.cjs → chunk-5AKVDZMA.cjs} +12 -12
- package/dist/{chunk-VQP3QBC6.cjs → chunk-5OZS5UJX.cjs} +7 -7
- package/dist/{chunk-KOMVGDDW.cjs → chunk-66NKH2SV.cjs} +6 -6
- package/dist/{chunk-AUENXQXS.mjs → chunk-6C53NKMF.mjs} +1 -1
- package/dist/{chunk-LTEX2ALU.cjs → chunk-6D7FGGSX.cjs} +24 -24
- package/dist/{chunk-MFPN6MWK.cjs → chunk-6WH6PWTJ.cjs} +9 -9
- package/dist/chunk-6YMDD5CU.mjs +22 -0
- package/dist/{chunk-OJZV4X7L.cjs → chunk-75XQ6P5L.cjs} +305 -139
- package/dist/{chunk-Q2HC5ZL4.cjs → chunk-7AAMQGY2.cjs} +7 -7
- package/dist/{chunk-WQCVK4PG.mjs → chunk-7ACZU3BT.mjs} +1 -1
- package/dist/{chunk-4GVFCQGI.cjs → chunk-7AEOJFD4.cjs} +2 -2
- package/dist/{chunk-YTV7747H.mjs → chunk-7AZ3PLUC.mjs} +1 -1
- package/dist/{chunk-YXFHJKNW.cjs → chunk-7H7U2X45.cjs} +8 -8
- package/dist/{chunk-7NOBQH7O.mjs → chunk-A6EASR27.mjs} +1 -1
- package/dist/{chunk-BCA45QEW.mjs → chunk-AE5YDMFT.mjs} +3 -3
- package/dist/{chunk-SA5WKLYB.mjs → chunk-AHD46BFN.mjs} +1 -1
- package/dist/{chunk-6IXKC64S.cjs → chunk-ASZIBFA6.cjs} +40 -16
- package/dist/{chunk-VMJHHONS.mjs → chunk-B7PLWNPX.mjs} +7 -7
- package/dist/{chunk-2SWBXWLK.mjs → chunk-BQA24G2A.mjs} +1 -1
- package/dist/{chunk-HA6M4XKT.cjs → chunk-BUAWPPXA.cjs} +11 -11
- package/dist/{chunk-DWWM2TV3.mjs → chunk-BXZSWY4N.mjs} +1 -1
- package/dist/{chunk-M45UXJWX.cjs → chunk-CH3BSVL4.cjs} +2 -2
- package/dist/{chunk-JY5TZBRK.mjs → chunk-CIOLL5LX.mjs} +1 -1
- package/dist/{chunk-2MSGENAQ.cjs → chunk-CKGEV2JL.cjs} +2 -2
- package/dist/{chunk-GBERXSLI.cjs → chunk-CR6JOOO3.cjs} +2 -2
- package/dist/{chunk-OHIB3TEN.cjs → chunk-CRX2ZCM2.cjs} +3 -5
- package/dist/{chunk-Y3V6IUAR.mjs → chunk-CXPF274N.mjs} +1 -1
- package/dist/{chunk-PJJSHHL6.mjs → chunk-D562KO2I.mjs} +2 -2
- package/dist/{chunk-SLO45OO5.cjs → chunk-DAA2GQAS.cjs} +27 -27
- package/dist/{chunk-ZGS3VGGN.cjs → chunk-DAVMLI3P.cjs} +4 -4
- package/dist/{chunk-IZUSQ4GI.mjs → chunk-DDIB73SZ.mjs} +4 -4
- package/dist/{chunk-SWJHOFZH.mjs → chunk-DDU3SPCC.mjs} +2 -2
- package/dist/{chunk-YO6X755G.cjs → chunk-DM43KZU7.cjs} +2 -2
- package/dist/{chunk-BFFOS7Z3.cjs → chunk-EBFPZBUQ.cjs} +8 -10
- package/dist/{chunk-V3VUFIG3.cjs → chunk-EEYL7PDI.cjs} +3 -3
- package/dist/{chunk-JRBTIFM6.mjs → chunk-EGIIZWP3.mjs} +1 -1
- package/dist/{chunk-HAVTMZR3.cjs → chunk-EK3BTKZP.cjs} +10 -10
- package/dist/{chunk-MGFG7EXC.mjs → chunk-EVBYVJTW.mjs} +32 -8
- package/dist/{chunk-A5VRTIX4.cjs → chunk-EXXV3BXT.cjs} +7 -7
- package/dist/{chunk-OWGKZAOO.mjs → chunk-EXY6WRH4.mjs} +1 -1
- package/dist/{chunk-TYZHIBYI.cjs → chunk-EY6PKK4X.cjs} +2 -2
- package/dist/{chunk-OQASTSIX.cjs → chunk-F2LEYFWW.cjs} +5 -5
- package/dist/{chunk-WB43VEZA.cjs → chunk-F3HOBNGR.cjs} +4 -4
- package/dist/{chunk-CO6EASQO.mjs → chunk-FMKD5JBL.mjs} +1 -1
- package/dist/{chunk-NIEFMP5V.cjs → chunk-FZAGJSW2.cjs} +2 -2
- package/dist/{chunk-SMIACO56.mjs → chunk-G5VBLDAM.mjs} +1 -1
- package/dist/{chunk-I2YVC4AE.cjs → chunk-GM4S7ID3.cjs} +2 -1
- package/dist/{chunk-L3YEIRJS.mjs → chunk-GQYUSBSO.mjs} +1 -1
- package/dist/{chunk-VJN3GGLZ.cjs → chunk-GTBXRWCK.cjs} +3 -3
- package/dist/{chunk-PTBMSYQQ.mjs → chunk-H6JGIEAU.mjs} +1 -1
- package/dist/{chunk-Q5PJKBX7.cjs → chunk-HB65PF7F.cjs} +2 -2
- package/dist/{chunk-KJH46JR3.mjs → chunk-IAFCABPY.mjs} +1 -1
- package/dist/{chunk-L6LCOLOV.cjs → chunk-IPMQ63BJ.cjs} +9 -9
- package/dist/{chunk-4JAEMFDN.mjs → chunk-IPQU5CJD.mjs} +1 -1
- package/dist/{chunk-L2YLNWCQ.cjs → chunk-IU65XB2K.cjs} +2 -2
- package/dist/{chunk-ZRMDDK6J.mjs → chunk-JFPIUDGT.mjs} +1 -1
- package/dist/{chunk-TBYGQV5D.cjs → chunk-JNV3UBBP.cjs} +3 -3
- package/dist/{chunk-B55SNJJM.cjs → chunk-JOOURIX7.cjs} +4 -4
- package/dist/{chunk-6AWED2ZK.cjs → chunk-JQYMF2FW.cjs} +4 -4
- package/dist/{chunk-4FLE5S5Z.mjs → chunk-JW456O5K.mjs} +1 -1
- package/dist/{chunk-RQH7ZAWF.cjs → chunk-JYYAGDLZ.cjs} +2 -2
- package/dist/{chunk-VEE2QBS5.cjs → chunk-K2BQNNEX.cjs} +8 -8
- package/dist/{chunk-N6DSPSMM.mjs → chunk-K2ZYSKRU.mjs} +1 -1
- package/dist/{chunk-33ZPFZLH.cjs → chunk-KIZ7WH7H.cjs} +46 -46
- package/dist/{chunk-KT772L2I.cjs → chunk-KQW3YARN.cjs} +9 -9
- package/dist/{chunk-MHJM7YMG.mjs → chunk-KY2PYKDZ.mjs} +1 -1
- package/dist/{chunk-LI5W744D.cjs → chunk-LGFWHV23.cjs} +2 -2
- package/dist/{chunk-EO4GM3KH.mjs → chunk-LMYA5IOK.mjs} +12 -8
- package/dist/{chunk-SU57ZAZJ.cjs → chunk-LVIZRMYN.cjs} +2 -2
- package/dist/{chunk-H3HQ27FG.cjs → chunk-LYGYXV7S.cjs} +16 -16
- package/dist/{chunk-M6JLGVJ7.mjs → chunk-MFYDZKQF.mjs} +1 -1
- package/dist/{chunk-B53A4WNW.mjs → chunk-MJOD2WOC.mjs} +1 -1
- package/dist/{chunk-O7FGA5N2.mjs → chunk-MK2CWAFC.mjs} +5 -5
- package/dist/{chunk-BTXD3NAG.cjs → chunk-MNCBTS63.cjs} +17 -6
- package/dist/{chunk-AW6Q4IWT.cjs → chunk-MXGPFCLN.cjs} +2 -2
- package/dist/{chunk-D76UQR5N.mjs → chunk-MYZHDWBF.mjs} +10 -10
- package/dist/{chunk-LUVD54GO.cjs → chunk-N4Y5CBOI.cjs} +4 -4
- package/dist/{chunk-L5JZRGNH.cjs → chunk-ND3WJ63Z.cjs} +2 -2
- package/dist/{chunk-2SFB7HHW.mjs → chunk-NJWKR5WR.mjs} +1 -1
- package/dist/{chunk-7NUXYKXU.cjs → chunk-NKGUQZTD.cjs} +2 -2
- package/dist/{chunk-EAOF6Y75.mjs → chunk-NRI4AFYB.mjs} +252 -86
- package/dist/chunk-O66LWOQY.cjs +44 -0
- package/dist/{chunk-P3QGZWFW.mjs → chunk-OJOWMXXY.mjs} +3 -3
- package/dist/{chunk-AZBJB6KC.mjs → chunk-OLYHHP67.mjs} +1 -1
- package/dist/{chunk-7XXTMBF5.mjs → chunk-P3YSHGT5.mjs} +1 -1
- package/dist/{chunk-JTJKIRFA.mjs → chunk-PJNS3XTH.mjs} +5 -5
- package/dist/{chunk-S6PSU47F.mjs → chunk-PR3BCKLJ.mjs} +2 -2
- package/dist/{chunk-NZOZ3KKM.cjs → chunk-PV6CEMTT.cjs} +4 -4
- package/dist/{chunk-VQPJ7TLB.mjs → chunk-Q37KC3CL.mjs} +1 -1
- package/dist/{chunk-HNTVTCNX.cjs → chunk-Q7WCKEXG.cjs} +2 -2
- package/dist/{chunk-6D66V6ON.cjs → chunk-QBAZ6TKZ.cjs} +2 -2
- package/dist/{chunk-BCBWIMPS.mjs → chunk-QO2AM6MF.mjs} +1 -1
- package/dist/{chunk-5MNZYCN2.cjs → chunk-QWBMDS3S.cjs} +5 -5
- package/dist/{chunk-5PDZWPUI.cjs → chunk-R4HT3SYR.cjs} +2 -2
- package/dist/{chunk-3TZL7ET3.cjs → chunk-R5UREEMP.cjs} +5 -5
- package/dist/{chunk-ZEBAIL6F.mjs → chunk-REZAPK6Z.mjs} +1 -1
- package/dist/{chunk-NRQJX772.mjs → chunk-RGOZPSTI.mjs} +1 -1
- package/dist/{chunk-25RDJXX7.mjs → chunk-RLTLA7VS.mjs} +1 -1
- package/dist/{chunk-LBGZKACW.cjs → chunk-RTYZO2AC.cjs} +7 -7
- package/dist/{chunk-TUYG6BYZ.cjs → chunk-RW4T7UBU.cjs} +3 -3
- package/dist/{chunk-ASGWIU7V.cjs → chunk-RY2UUIFB.cjs} +4 -4
- package/dist/{chunk-2J75MYQA.cjs → chunk-S37MJNNP.cjs} +2 -2
- package/dist/{chunk-UULSGVNF.cjs → chunk-S7CCCMMU.cjs} +7 -7
- package/dist/{chunk-5VUM46YD.cjs → chunk-SAXISARG.cjs} +2 -2
- package/dist/{chunk-TZBOF3XO.mjs → chunk-SCUMWMIN.mjs} +1 -1
- package/dist/{chunk-ZXIKMZPH.cjs → chunk-SL5Q54AH.cjs} +7 -2
- package/dist/{chunk-VADHV4S3.cjs → chunk-SLXM4F24.cjs} +9 -9
- package/dist/{chunk-XMQULAAU.mjs → chunk-SMXN2KOV.mjs} +1 -1
- package/dist/{chunk-PNYJJGBP.mjs → chunk-SRZ56OJH.mjs} +3 -3
- package/dist/{chunk-PDOFOJ4P.mjs → chunk-T4U3BG2V.mjs} +1 -1
- package/dist/{chunk-HMN4IKTG.mjs → chunk-T66ETI7E.mjs} +3 -5
- package/dist/{chunk-YKHK6C4Q.mjs → chunk-TQKX345P.mjs} +1 -1
- package/dist/{chunk-2X6CAFVD.mjs → chunk-TWQONYWC.mjs} +3 -5
- package/dist/{chunk-3LO3AM25.mjs → chunk-U22YVR7M.mjs} +1 -1
- package/dist/{chunk-EKPJUR3U.cjs → chunk-U5W4ZALG.cjs} +6 -6
- package/dist/{chunk-4X3R5XBW.mjs → chunk-U6SLGSKR.mjs} +3 -3
- package/dist/{chunk-WGWNYPXW.mjs → chunk-UIJEAY6H.mjs} +1 -1
- package/dist/{chunk-XURKXOZK.cjs → chunk-UK3UBVT4.cjs} +12 -12
- package/dist/{chunk-O5S6UXNN.cjs → chunk-UMGNAR3W.cjs} +17 -13
- package/dist/{chunk-KTDRY3OW.mjs → chunk-UQQBUPGF.mjs} +1 -1
- package/dist/{chunk-4LQDOYQJ.cjs → chunk-V75PKBIV.cjs} +9 -9
- package/dist/{chunk-NHG2ROYB.mjs → chunk-VTW2DF63.mjs} +1 -1
- package/dist/{chunk-APC2GIE7.cjs → chunk-VTXR3U2X.cjs} +25 -25
- package/dist/{chunk-MDUGPQEK.mjs → chunk-VWVYCQWF.mjs} +1 -1
- package/dist/{chunk-G5JZGNKY.cjs → chunk-W3IHFG4B.cjs} +8 -8
- package/dist/{chunk-S5XJOGB4.cjs → chunk-WDSOII5A.cjs} +2 -2
- package/dist/{chunk-Y6WGGVT2.mjs → chunk-WHV6Z7YX.mjs} +1 -1
- package/dist/{chunk-ECOYNCWG.mjs → chunk-WKK5UX2W.mjs} +2 -2
- package/dist/{chunk-SPNDWTSX.cjs → chunk-X6WOCNBX.cjs} +2 -2
- package/dist/{chunk-GUSUTH7D.mjs → chunk-X7UZZ43J.mjs} +2 -1
- package/dist/{chunk-BBWT5YO2.mjs → chunk-XQ3MWA3D.mjs} +3 -3
- package/dist/{chunk-QHAGQCVF.cjs → chunk-XS5IUI62.cjs} +3 -3
- package/dist/{chunk-AGHIJQAR.mjs → chunk-XTLGNJIO.mjs} +1 -1
- package/dist/{chunk-H2AJ2CLT.mjs → chunk-Y2XVZEXM.mjs} +1 -1
- package/dist/{chunk-ACETEVZD.mjs → chunk-ZA7WOIIB.mjs} +1 -1
- package/dist/{chunk-KS5A3G7B.mjs → chunk-ZCSJGDX7.mjs} +1 -1
- package/dist/chunk-ZF435JZL.cjs +21 -0
- package/dist/{chunk-Z4ZGX3NM.mjs → chunk-ZJSL6HSL.mjs} +1 -1
- package/dist/{chunk-IR334P7F.mjs → chunk-ZSAPBZ36.mjs} +1 -1
- package/dist/{chunk-L4CIN7FR.mjs → chunk-ZTGJIGBC.mjs} +7 -2
- package/dist/dial/DialPanel.cjs +82 -81
- package/dist/dial/DialPanel.mjs +81 -80
- package/dist/dial/DialProvider.cjs +3 -3
- package/dist/dial/DialProvider.d.cts +1 -1
- package/dist/dial/DialProvider.d.ts +1 -1
- 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/IconRenderer.cjs +10 -0
- package/dist/dial/IconRenderer.d.cts +10 -0
- package/dist/dial/IconRenderer.d.ts +10 -0
- package/dist/dial/IconRenderer.mjs +1 -0
- package/dist/dial/index.cjs +104 -99
- package/dist/dial/index.d.cts +1 -0
- package/dist/dial/index.d.ts +1 -0
- package/dist/dial/index.mjs +81 -80
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +86 -85
- package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +1 -0
- package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +1 -0
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +81 -80
- package/dist/dial/wrapped-inputs/DialInputs.cjs +95 -94
- package/dist/dial/wrapped-inputs/DialInputs.d.cts +3 -0
- package/dist/dial/wrapped-inputs/DialInputs.d.ts +3 -0
- package/dist/dial/wrapped-inputs/DialInputs.mjs +81 -80
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +79 -78
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.cts +1 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.ts +1 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +78 -77
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +82 -81
- package/dist/dial/wrapped-inputs/DialVectorInput.d.cts +3 -1
- package/dist/dial/wrapped-inputs/DialVectorInput.d.ts +3 -1
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +81 -80
- package/dist/dial/wrapped-inputs/index.cjs +102 -101
- package/dist/dial/wrapped-inputs/index.mjs +81 -80
- package/dist/highlight-cursor/cursor-provider.cjs +3 -3
- package/dist/highlight-cursor/cursor-provider.mjs +2 -2
- package/dist/highlight-cursor/enhanced-components.cjs +13 -13
- package/dist/highlight-cursor/enhanced-components.mjs +8 -8
- package/dist/highlight-cursor/index.cjs +18 -18
- package/dist/highlight-cursor/index.mjs +9 -9
- package/dist/hooks/cn.cjs +2 -2
- package/dist/hooks/cn.mjs +1 -1
- package/dist/hooks/index.cjs +7 -7
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +403 -398
- package/dist/index.css +12 -12
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +81 -80
- package/dist/ui/DialBadge.cjs +7 -7
- package/dist/ui/DialBadge.mjs +3 -3
- package/dist/ui/UIKitBadge.cjs +7 -7
- package/dist/ui/UIKitBadge.mjs +3 -3
- package/dist/ui/avatar.cjs +7 -7
- package/dist/ui/avatar.mjs +3 -3
- package/dist/ui/badge.cjs +5 -5
- package/dist/ui/badge.mjs +3 -3
- package/dist/ui/button.cjs +5 -5
- package/dist/ui/button.mjs +3 -3
- package/dist/ui/card.cjs +10 -10
- package/dist/ui/card.mjs +3 -3
- package/dist/ui/checkbox.cjs +4 -4
- package/dist/ui/checkbox.mjs +3 -3
- package/dist/ui/collapsible.cjs +6 -6
- package/dist/ui/collapsible.mjs +3 -3
- package/dist/ui/drawer.cjs +13 -13
- package/dist/ui/drawer.mjs +3 -3
- package/dist/ui/dropdown.cjs +18 -18
- package/dist/ui/dropdown.mjs +3 -3
- package/dist/ui/index.cjs +347 -347
- package/dist/ui/index.mjs +75 -75
- package/dist/ui/inputs/color-input.cjs +5 -5
- package/dist/ui/inputs/color-input.mjs +4 -4
- package/dist/ui/inputs/index.cjs +55 -55
- package/dist/ui/inputs/index.mjs +22 -22
- package/dist/ui/inputs/input-numbers.cjs +5 -5
- package/dist/ui/inputs/input-numbers.d.cts +3 -1
- package/dist/ui/inputs/input-numbers.d.ts +3 -1
- package/dist/ui/inputs/input-numbers.mjs +4 -4
- package/dist/ui/inputs/input.cjs +6 -6
- package/dist/ui/inputs/input.mjs +3 -3
- package/dist/ui/inputs/number-inputs/CmInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/CmInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/DegInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/DegInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/InchInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/InchInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/IntInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/IntInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/RadInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/RadInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +7 -7
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +6 -6
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +6 -6
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +5 -5
- package/dist/ui/inputs/number-inputs/index.cjs +42 -42
- package/dist/ui/inputs/number-inputs/index.mjs +17 -17
- package/dist/ui/inputs/presets-input.cjs +7 -7
- package/dist/ui/inputs/presets-input.mjs +6 -6
- package/dist/ui/inputs/presets-rad-input.cjs +8 -8
- package/dist/ui/inputs/presets-rad-input.mjs +7 -7
- package/dist/ui/inputs/text-input.cjs +5 -5
- package/dist/ui/inputs/text-input.mjs +4 -4
- package/dist/ui/label.cjs +4 -4
- package/dist/ui/label.mjs +3 -3
- package/dist/ui/layout.cjs +4 -4
- package/dist/ui/layout.mjs +3 -3
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +5 -5
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +4 -4
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +9 -9
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +3 -3
- package/dist/ui/layouts/dock-layout/index.cjs +11 -11
- package/dist/ui/layouts/dock-layout/index.mjs +4 -4
- package/dist/ui/layouts/index.cjs +15 -15
- package/dist/ui/layouts/index.mjs +7 -7
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +9 -9
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +3 -3
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +5 -5
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +4 -4
- package/dist/ui/layouts/liquid-layout/index.cjs +5 -5
- package/dist/ui/layouts/liquid-layout/index.mjs +4 -4
- package/dist/ui/modal.cjs +13 -13
- package/dist/ui/modal.mjs +3 -3
- package/dist/ui/navigation.cjs +5 -5
- package/dist/ui/navigation.mjs +4 -4
- package/dist/ui/pagination.cjs +11 -11
- package/dist/ui/pagination.mjs +4 -4
- package/dist/ui/popover.cjs +7 -7
- package/dist/ui/popover.mjs +3 -3
- package/dist/ui/progress.cjs +4 -4
- package/dist/ui/progress.mjs +3 -3
- package/dist/ui/radio-group.cjs +5 -5
- package/dist/ui/radio-group.mjs +3 -3
- package/dist/ui/resizable.cjs +6 -6
- package/dist/ui/resizable.mjs +3 -3
- package/dist/ui/select.cjs +14 -14
- package/dist/ui/select.mjs +3 -3
- package/dist/ui/separator.cjs +4 -4
- package/dist/ui/separator.mjs +3 -3
- package/dist/ui/sheet.cjs +11 -11
- package/dist/ui/sheet.mjs +3 -3
- package/dist/ui/sidebar.cjs +33 -33
- package/dist/ui/sidebar.mjs +9 -9
- package/dist/ui/simple-tree-view.cjs +4 -4
- package/dist/ui/simple-tree-view.mjs +3 -3
- package/dist/ui/skeleton.cjs +4 -4
- package/dist/ui/skeleton.mjs +3 -3
- package/dist/ui/slider.cjs +4 -4
- package/dist/ui/slider.mjs +3 -3
- package/dist/ui/switch.cjs +4 -4
- package/dist/ui/switch.mjs +3 -3
- package/dist/ui/table.cjs +11 -11
- package/dist/ui/table.mjs +3 -3
- package/dist/ui/tabs.cjs +7 -7
- package/dist/ui/tabs.mjs +3 -3
- package/dist/ui/textarea.cjs +4 -4
- package/dist/ui/textarea.mjs +3 -3
- package/dist/ui/theme/ThemeToggles.cjs +8 -8
- package/dist/ui/theme/ThemeToggles.mjs +5 -5
- package/dist/ui/theme/index.cjs +8 -8
- package/dist/ui/theme/index.mjs +5 -5
- package/dist/ui/toggle-buttons.cjs +8 -8
- package/dist/ui/toggle-buttons.mjs +3 -3
- package/dist/ui/toggle-group.cjs +6 -6
- package/dist/ui/toggle-group.mjs +3 -3
- package/dist/ui/toggle.cjs +5 -5
- package/dist/ui/toggle.mjs +3 -3
- package/dist/ui/toolbar.cjs +6 -6
- package/dist/ui/toolbar.mjs +3 -3
- package/dist/ui/tooltip.cjs +7 -7
- package/dist/ui/tooltip.mjs +3 -3
- package/dist/ui/tree-view/TreeSearchBar.cjs +6 -6
- package/dist/ui/tree-view/TreeSearchBar.mjs +5 -5
- package/dist/ui/tree-view/TreeView.cjs +5 -5
- package/dist/ui/tree-view/TreeView.mjs +3 -3
- package/dist/ui/tree-view/index.cjs +17 -17
- package/dist/ui/tree-view/index.mjs +7 -7
- package/dist/ui/tree-view-legacy.cjs +10 -10
- package/dist/ui/tree-view-legacy.mjs +6 -6
- package/dist/ui/waterfall/CursorOverlay.cjs +4 -4
- package/dist/ui/waterfall/CursorOverlay.mjs +3 -3
- package/dist/ui/waterfall/TimelineEvent.cjs +4 -4
- package/dist/ui/waterfall/TimelineEvent.mjs +3 -3
- package/dist/ui/waterfall/TimelineProcessBar.cjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.mjs +3 -3
- package/dist/ui/waterfall/Wedges.cjs +5 -5
- package/dist/ui/waterfall/Wedges.mjs +3 -3
- package/dist/ui/waterfall/index.cjs +14 -14
- package/dist/ui/waterfall/index.mjs +13 -13
- package/package.json +1 -1
- package/src/auth/types.ts +1 -1
- package/src/auth/vuer-user-provider.tsx +1 -0
- package/src/dial/DialPanel.tsx +26 -11
- package/src/dial/DialProvider.tsx +17 -4
- package/src/dial/IconRenderer.tsx +32 -0
- package/src/dial/index.ts +1 -0
- package/src/dial/wrapped-inputs/ControlledInputs.tsx +18 -8
- package/src/dial/wrapped-inputs/DialInputs.tsx +58 -16
- package/src/dial/wrapped-inputs/DialPresetsInput.tsx +10 -4
- package/src/dial/wrapped-inputs/DialVectorInput.tsx +150 -23
- package/src/hooks/cn.ts +2 -4
- package/src/ui/badge.tsx +1 -1
- package/src/ui/card.tsx +1 -1
- package/src/ui/inputs/color-input.tsx +18 -2
- package/src/ui/inputs/input-numbers.tsx +42 -7
- package/src/ui/layouts/liquid-layout/LayoutSlots.tsx +2 -4
- package/dist/chunk-MTZQ4C2U.cjs +0 -21
- package/dist/{chunk-5OHAV55L.mjs → chunk-2ZK7JUAH.mjs} +1 -1
- package/dist/{chunk-G6ATG2WV.mjs → chunk-EMVKGL5D.mjs} +1 -1
- package/dist/{chunk-4JZOPZHB.cjs → chunk-EMXEFZEB.cjs} +1 -1
- package/dist/{chunk-OOHCJIRV.cjs → chunk-GRQJN4D4.cjs} +1 -1
|
@@ -1,38 +1,43 @@
|
|
|
1
|
-
import { DialPresetsInput } from './chunk-
|
|
2
|
-
import { useDialSchema } from './chunk-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { VectorInput } from './chunk-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
1
|
+
import { DialPresetsInput } from './chunk-LMYA5IOK.mjs';
|
|
2
|
+
import { useDialSchema } from './chunk-ZTGJIGBC.mjs';
|
|
3
|
+
import { IconRenderer } from './chunk-6YMDD5CU.mjs';
|
|
4
|
+
import { TimeInput } from './chunk-ZJSL6HSL.mjs';
|
|
5
|
+
import { Vec3Input } from './chunk-XTLGNJIO.mjs';
|
|
6
|
+
import { DegInput } from './chunk-H6JGIEAU.mjs';
|
|
7
|
+
import { EulerDegInput } from './chunk-7ACZU3BT.mjs';
|
|
8
|
+
import { EulerInput } from './chunk-ZCSJGDX7.mjs';
|
|
9
|
+
import { EulerRadInput } from './chunk-Y2XVZEXM.mjs';
|
|
10
|
+
import { InchInput } from './chunk-JFPIUDGT.mjs';
|
|
11
|
+
import { IntInput } from './chunk-3DIFS7CO.mjs';
|
|
12
|
+
import { QuaternionInput } from './chunk-NJWKR5WR.mjs';
|
|
13
|
+
import { VectorInput } from './chunk-3NIMV5PH.mjs';
|
|
14
|
+
import { CmInput } from './chunk-REZAPK6Z.mjs';
|
|
15
|
+
import { ColorInput } from './chunk-2GXIGEKC.mjs';
|
|
16
|
+
import { RadInput } from './chunk-SCUMWMIN.mjs';
|
|
17
|
+
import { InputNumbers } from './chunk-EVBYVJTW.mjs';
|
|
18
|
+
import { TextInput } from './chunk-P3YSHGT5.mjs';
|
|
19
|
+
import { Slider } from './chunk-WHV6Z7YX.mjs';
|
|
20
|
+
import { Switch } from './chunk-OLYHHP67.mjs';
|
|
21
|
+
import { Label } from './chunk-UIJEAY6H.mjs';
|
|
22
|
+
import { FormLayout } from './chunk-RGOZPSTI.mjs';
|
|
23
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-IAFCABPY.mjs';
|
|
23
24
|
import { useCallback } from 'react';
|
|
24
25
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
26
|
|
|
26
27
|
var DialInputWrapper = ({
|
|
27
28
|
label,
|
|
28
29
|
labelPosition = "top",
|
|
30
|
+
icon,
|
|
29
31
|
children
|
|
30
32
|
}) => {
|
|
31
33
|
if (!label) {
|
|
32
34
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
33
35
|
}
|
|
34
36
|
return /* @__PURE__ */ jsxs(FormLayout, { orientation: `label-${labelPosition}`, children: [
|
|
35
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ jsxs(Label, { size: "sm", className: "flex items-center gap-1", children: [
|
|
38
|
+
/* @__PURE__ */ jsx(IconRenderer, { iconName: icon, size: 14, className: "text-text-secondary" }),
|
|
39
|
+
label
|
|
40
|
+
] }),
|
|
36
41
|
/* @__PURE__ */ jsx(Fragment, { children })
|
|
37
42
|
] });
|
|
38
43
|
};
|
|
@@ -41,10 +46,15 @@ var DialVec3Input = ({
|
|
|
41
46
|
label,
|
|
42
47
|
size = "sm",
|
|
43
48
|
step,
|
|
44
|
-
|
|
49
|
+
min,
|
|
50
|
+
max,
|
|
51
|
+
labelPosition,
|
|
52
|
+
icon
|
|
45
53
|
}) => {
|
|
46
54
|
const { getValue, setValue } = useDialSchema();
|
|
47
55
|
const value = getValue(name) ?? [0, 0, 0];
|
|
56
|
+
const minArray = min !== void 0 ? [min, min, min] : void 0;
|
|
57
|
+
const maxArray = max !== void 0 ? [max, max, max] : void 0;
|
|
48
58
|
if (labelPosition === "inline") {
|
|
49
59
|
return /* @__PURE__ */ jsx(
|
|
50
60
|
Vec3Input,
|
|
@@ -53,17 +63,21 @@ var DialVec3Input = ({
|
|
|
53
63
|
onValuesChange: (val) => setValue(name, val),
|
|
54
64
|
size,
|
|
55
65
|
step,
|
|
66
|
+
min: minArray,
|
|
67
|
+
max: maxArray,
|
|
56
68
|
prefix: label ? [label, "", ""] : void 0
|
|
57
69
|
}
|
|
58
70
|
);
|
|
59
71
|
} else {
|
|
60
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
72
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
61
73
|
Vec3Input,
|
|
62
74
|
{
|
|
63
75
|
value,
|
|
64
76
|
onValuesChange: (val) => setValue(name, val),
|
|
65
77
|
size,
|
|
66
|
-
step
|
|
78
|
+
step,
|
|
79
|
+
min: minArray,
|
|
80
|
+
max: maxArray
|
|
67
81
|
}
|
|
68
82
|
) });
|
|
69
83
|
}
|
|
@@ -73,7 +87,8 @@ var DialEulerInput = ({
|
|
|
73
87
|
label,
|
|
74
88
|
size = "sm",
|
|
75
89
|
step,
|
|
76
|
-
labelPosition
|
|
90
|
+
labelPosition,
|
|
91
|
+
icon
|
|
77
92
|
}) => {
|
|
78
93
|
const { getValue, setValue } = useDialSchema();
|
|
79
94
|
const value = getValue(name) ?? [0, 0, 0];
|
|
@@ -89,7 +104,7 @@ var DialEulerInput = ({
|
|
|
89
104
|
}
|
|
90
105
|
);
|
|
91
106
|
} else {
|
|
92
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
107
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
93
108
|
EulerInput,
|
|
94
109
|
{
|
|
95
110
|
value,
|
|
@@ -105,7 +120,8 @@ var DialEulerDegInput = ({
|
|
|
105
120
|
label,
|
|
106
121
|
size = "sm",
|
|
107
122
|
step,
|
|
108
|
-
labelPosition
|
|
123
|
+
labelPosition,
|
|
124
|
+
icon
|
|
109
125
|
}) => {
|
|
110
126
|
const { getValue, setValue } = useDialSchema();
|
|
111
127
|
const value = getValue(name) ?? [0, 0, 0];
|
|
@@ -121,7 +137,7 @@ var DialEulerDegInput = ({
|
|
|
121
137
|
}
|
|
122
138
|
);
|
|
123
139
|
} else {
|
|
124
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
140
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
125
141
|
EulerDegInput,
|
|
126
142
|
{
|
|
127
143
|
value,
|
|
@@ -137,7 +153,8 @@ var DialQuaternionInput = ({
|
|
|
137
153
|
label,
|
|
138
154
|
size = "sm",
|
|
139
155
|
step,
|
|
140
|
-
labelPosition
|
|
156
|
+
labelPosition,
|
|
157
|
+
icon
|
|
141
158
|
}) => {
|
|
142
159
|
const { getValue, setValue } = useDialSchema();
|
|
143
160
|
const value = getValue(name) ?? [1, 0, 0, 0];
|
|
@@ -153,7 +170,7 @@ var DialQuaternionInput = ({
|
|
|
153
170
|
}
|
|
154
171
|
);
|
|
155
172
|
} else {
|
|
156
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
173
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
157
174
|
QuaternionInput,
|
|
158
175
|
{
|
|
159
176
|
value,
|
|
@@ -170,7 +187,8 @@ var DialVectorInput = ({
|
|
|
170
187
|
size = "sm",
|
|
171
188
|
step,
|
|
172
189
|
dimensions = 3,
|
|
173
|
-
labelPosition
|
|
190
|
+
labelPosition,
|
|
191
|
+
icon
|
|
174
192
|
}) => {
|
|
175
193
|
const { getValue, setValue } = useDialSchema();
|
|
176
194
|
const value = getValue(name) ?? new Array(dimensions).fill(0);
|
|
@@ -186,7 +204,7 @@ var DialVectorInput = ({
|
|
|
186
204
|
}
|
|
187
205
|
);
|
|
188
206
|
} else {
|
|
189
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
207
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
190
208
|
VectorInput,
|
|
191
209
|
{
|
|
192
210
|
value,
|
|
@@ -202,7 +220,10 @@ var DialIntInput = ({
|
|
|
202
220
|
label,
|
|
203
221
|
size = "sm",
|
|
204
222
|
step = 1,
|
|
205
|
-
|
|
223
|
+
min,
|
|
224
|
+
max,
|
|
225
|
+
labelPosition,
|
|
226
|
+
icon
|
|
206
227
|
}) => {
|
|
207
228
|
const { getValue, setValue } = useDialSchema();
|
|
208
229
|
const value = getValue(name) ?? 0;
|
|
@@ -214,11 +235,23 @@ var DialIntInput = ({
|
|
|
214
235
|
prefix: label ? [label] : void 0,
|
|
215
236
|
onChange: (val) => setValue(name, val),
|
|
216
237
|
size,
|
|
217
|
-
step
|
|
238
|
+
step,
|
|
239
|
+
min,
|
|
240
|
+
max
|
|
218
241
|
}
|
|
219
242
|
);
|
|
220
243
|
} else {
|
|
221
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
244
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
245
|
+
IntInput,
|
|
246
|
+
{
|
|
247
|
+
value,
|
|
248
|
+
onChange: (val) => setValue(name, val),
|
|
249
|
+
size,
|
|
250
|
+
step,
|
|
251
|
+
min,
|
|
252
|
+
max
|
|
253
|
+
}
|
|
254
|
+
) });
|
|
222
255
|
}
|
|
223
256
|
};
|
|
224
257
|
var DialDegInput = ({
|
|
@@ -226,7 +259,8 @@ var DialDegInput = ({
|
|
|
226
259
|
label,
|
|
227
260
|
size = "sm",
|
|
228
261
|
step,
|
|
229
|
-
labelPosition
|
|
262
|
+
labelPosition,
|
|
263
|
+
icon
|
|
230
264
|
}) => {
|
|
231
265
|
const { getValue, setValue } = useDialSchema();
|
|
232
266
|
const value = getValue(name) ?? 0;
|
|
@@ -242,7 +276,7 @@ var DialDegInput = ({
|
|
|
242
276
|
}
|
|
243
277
|
);
|
|
244
278
|
} else {
|
|
245
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(DegInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
279
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(DegInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
246
280
|
}
|
|
247
281
|
};
|
|
248
282
|
var DialRadInput = ({
|
|
@@ -250,7 +284,8 @@ var DialRadInput = ({
|
|
|
250
284
|
label,
|
|
251
285
|
size = "sm",
|
|
252
286
|
step,
|
|
253
|
-
labelPosition
|
|
287
|
+
labelPosition,
|
|
288
|
+
icon
|
|
254
289
|
}) => {
|
|
255
290
|
const { getValue, setValue } = useDialSchema();
|
|
256
291
|
const value = getValue(name) ?? 0;
|
|
@@ -266,7 +301,7 @@ var DialRadInput = ({
|
|
|
266
301
|
}
|
|
267
302
|
);
|
|
268
303
|
} else {
|
|
269
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(RadInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
304
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(RadInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
270
305
|
}
|
|
271
306
|
};
|
|
272
307
|
var DialCmInput = ({
|
|
@@ -274,7 +309,8 @@ var DialCmInput = ({
|
|
|
274
309
|
label,
|
|
275
310
|
size = "sm",
|
|
276
311
|
step,
|
|
277
|
-
labelPosition
|
|
312
|
+
labelPosition,
|
|
313
|
+
icon
|
|
278
314
|
}) => {
|
|
279
315
|
const { getValue, setValue } = useDialSchema();
|
|
280
316
|
const value = getValue(name) ?? 0;
|
|
@@ -290,7 +326,7 @@ var DialCmInput = ({
|
|
|
290
326
|
}
|
|
291
327
|
);
|
|
292
328
|
} else {
|
|
293
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(CmInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
329
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(CmInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
294
330
|
}
|
|
295
331
|
};
|
|
296
332
|
var DialInchInput = ({
|
|
@@ -298,7 +334,8 @@ var DialInchInput = ({
|
|
|
298
334
|
label,
|
|
299
335
|
size = "sm",
|
|
300
336
|
step,
|
|
301
|
-
labelPosition
|
|
337
|
+
labelPosition,
|
|
338
|
+
icon
|
|
302
339
|
}) => {
|
|
303
340
|
const { getValue, setValue } = useDialSchema();
|
|
304
341
|
const value = getValue(name) ?? 0;
|
|
@@ -314,7 +351,7 @@ var DialInchInput = ({
|
|
|
314
351
|
}
|
|
315
352
|
);
|
|
316
353
|
} else {
|
|
317
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(InchInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
354
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(InchInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
318
355
|
}
|
|
319
356
|
};
|
|
320
357
|
var DialTimeInput = ({
|
|
@@ -322,7 +359,8 @@ var DialTimeInput = ({
|
|
|
322
359
|
label,
|
|
323
360
|
size = "sm",
|
|
324
361
|
step,
|
|
325
|
-
labelPosition
|
|
362
|
+
labelPosition,
|
|
363
|
+
icon
|
|
326
364
|
}) => {
|
|
327
365
|
const { getValue, setValue } = useDialSchema();
|
|
328
366
|
const value = getValue(name) ?? 0;
|
|
@@ -338,7 +376,7 @@ var DialTimeInput = ({
|
|
|
338
376
|
}
|
|
339
377
|
);
|
|
340
378
|
} else {
|
|
341
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(TimeInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
379
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(TimeInput, { value, onChange: (val) => setValue(name, val), size, step }) });
|
|
342
380
|
}
|
|
343
381
|
};
|
|
344
382
|
var DialTextInput = ({
|
|
@@ -346,7 +384,8 @@ var DialTextInput = ({
|
|
|
346
384
|
label,
|
|
347
385
|
size = "sm",
|
|
348
386
|
labelPosition,
|
|
349
|
-
placeholder
|
|
387
|
+
placeholder,
|
|
388
|
+
icon
|
|
350
389
|
}) => {
|
|
351
390
|
const { getValue, setValue } = useDialSchema();
|
|
352
391
|
const value = getValue(name) ?? "";
|
|
@@ -362,7 +401,7 @@ var DialTextInput = ({
|
|
|
362
401
|
}
|
|
363
402
|
);
|
|
364
403
|
} else {
|
|
365
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
404
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
366
405
|
TextInput,
|
|
367
406
|
{
|
|
368
407
|
value,
|
|
@@ -378,7 +417,8 @@ var DialEulerRadInput = ({
|
|
|
378
417
|
label,
|
|
379
418
|
size = "sm",
|
|
380
419
|
step,
|
|
381
|
-
labelPosition
|
|
420
|
+
labelPosition,
|
|
421
|
+
icon
|
|
382
422
|
}) => {
|
|
383
423
|
const { getValue, setValue } = useDialSchema();
|
|
384
424
|
const value = getValue(name) ?? [0, 0, 0];
|
|
@@ -395,7 +435,7 @@ var DialEulerRadInput = ({
|
|
|
395
435
|
}
|
|
396
436
|
);
|
|
397
437
|
} else {
|
|
398
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(
|
|
438
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(
|
|
399
439
|
EulerRadInput,
|
|
400
440
|
{
|
|
401
441
|
value,
|
|
@@ -412,7 +452,8 @@ var DialNumberRadInput = ({
|
|
|
412
452
|
label,
|
|
413
453
|
size = "sm",
|
|
414
454
|
step,
|
|
415
|
-
labelPosition
|
|
455
|
+
labelPosition,
|
|
456
|
+
icon
|
|
416
457
|
}) => {
|
|
417
458
|
const { getValue, setValue } = useDialSchema();
|
|
418
459
|
const value = getValue(name) ?? 0;
|
|
@@ -433,21 +474,34 @@ var DialNumberRadInput = ({
|
|
|
433
474
|
}
|
|
434
475
|
);
|
|
435
476
|
} else {
|
|
436
|
-
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, children: /* @__PURE__ */ jsx(DegInput, { value: degValue, onChange: handleChange, size, step }) });
|
|
477
|
+
return /* @__PURE__ */ jsx(DialInputWrapper, { name, label, icon, children: /* @__PURE__ */ jsx(DegInput, { value: degValue, onChange: handleChange, size, step }) });
|
|
437
478
|
}
|
|
438
479
|
};
|
|
439
480
|
var DialVectorInput2 = ({
|
|
440
481
|
name,
|
|
441
482
|
label,
|
|
442
483
|
size = "sm",
|
|
443
|
-
labelPosition = "top"
|
|
484
|
+
labelPosition = "top",
|
|
485
|
+
icon
|
|
444
486
|
}) => {
|
|
445
487
|
const { getValue, setValue, schemas } = useDialSchema();
|
|
446
|
-
const
|
|
447
|
-
(
|
|
488
|
+
const handleValueChange = useCallback(
|
|
489
|
+
(index, newValue, currentValues) => {
|
|
490
|
+
const newValues = [...currentValues];
|
|
491
|
+
newValues[index] = newValue;
|
|
448
492
|
setValue(name, newValues);
|
|
449
493
|
},
|
|
450
|
-
[name]
|
|
494
|
+
[name, setValue]
|
|
495
|
+
);
|
|
496
|
+
const handleNumberValuesChange = useCallback(
|
|
497
|
+
(newNumberValues, currentValues, numberIndices) => {
|
|
498
|
+
const newValues = [...currentValues];
|
|
499
|
+
numberIndices.forEach((originalIndex, i) => {
|
|
500
|
+
newValues[originalIndex] = newNumberValues[i];
|
|
501
|
+
});
|
|
502
|
+
setValue(name, newValues);
|
|
503
|
+
},
|
|
504
|
+
[name, setValue]
|
|
451
505
|
);
|
|
452
506
|
const schema = schemas.find((s) => s.name === name);
|
|
453
507
|
if (!schema) {
|
|
@@ -458,7 +512,11 @@ var DialVectorInput2 = ({
|
|
|
458
512
|
const placeholders = schema.placeholders || [];
|
|
459
513
|
const dtypes = schema.dtypes || [];
|
|
460
514
|
const steps = schema.steps || [];
|
|
515
|
+
const mins = schema.mins || [];
|
|
516
|
+
const maxs = schema.maxs || [];
|
|
461
517
|
const tags = schema.tags || {};
|
|
518
|
+
const vectorValue = Array.isArray(value) ? value.concat(Array(Math.max(0, dimensions - value.length)).fill(0)) : Array(dimensions).fill(0);
|
|
519
|
+
const hasMixedTypes = dtypes.some((dtype) => dtype === "boolean");
|
|
462
520
|
let gridAutoFlow;
|
|
463
521
|
let gridColumns;
|
|
464
522
|
let gridRows;
|
|
@@ -475,7 +533,87 @@ var DialVectorInput2 = ({
|
|
|
475
533
|
gridColumns = void 0;
|
|
476
534
|
gridRows = void 0;
|
|
477
535
|
}
|
|
478
|
-
|
|
536
|
+
if (hasMixedTypes) {
|
|
537
|
+
const numberIndices = [];
|
|
538
|
+
const booleanIndices = [];
|
|
539
|
+
const numberValues = [];
|
|
540
|
+
const numberSteps = [];
|
|
541
|
+
const numberMins = [];
|
|
542
|
+
const numberMaxs = [];
|
|
543
|
+
const numberLabels = [];
|
|
544
|
+
dtypes.forEach((dtype, i) => {
|
|
545
|
+
if (dtype === "boolean") {
|
|
546
|
+
booleanIndices.push(i);
|
|
547
|
+
} else {
|
|
548
|
+
numberIndices.push(i);
|
|
549
|
+
numberValues.push(vectorValue[i] || 0);
|
|
550
|
+
const step = steps[i] !== void 0 ? steps[i] : dtype === "number-int" ? 1 : 1e-3;
|
|
551
|
+
numberSteps.push(step);
|
|
552
|
+
if (mins[i] !== void 0) {
|
|
553
|
+
numberMins.push(mins[i]);
|
|
554
|
+
}
|
|
555
|
+
if (maxs[i] !== void 0) {
|
|
556
|
+
numberMaxs.push(maxs[i]);
|
|
557
|
+
}
|
|
558
|
+
if (placeholders[i]) {
|
|
559
|
+
numberLabels.push(/* @__PURE__ */ jsx("span", { className: "text-xs", children: placeholders[i] }));
|
|
560
|
+
} else {
|
|
561
|
+
numberLabels.push(void 0);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
const mixedInputComponent = /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
566
|
+
numberIndices.length > 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
567
|
+
VectorInput,
|
|
568
|
+
{
|
|
569
|
+
value: numberValues,
|
|
570
|
+
onValuesChange: (newValues) => handleNumberValuesChange(newValues, vectorValue, numberIndices),
|
|
571
|
+
size,
|
|
572
|
+
step: numberSteps,
|
|
573
|
+
min: numberMins.length > 0 ? numberMins : void 0,
|
|
574
|
+
max: numberMaxs.length > 0 ? numberMaxs : void 0,
|
|
575
|
+
labels: numberLabels,
|
|
576
|
+
gridAutoFlow,
|
|
577
|
+
columns: gridColumns,
|
|
578
|
+
rows: gridRows
|
|
579
|
+
}
|
|
580
|
+
) }),
|
|
581
|
+
booleanIndices.length > 0 && /* @__PURE__ */ jsx("div", { className: "gap-xs flex flex-wrap", children: booleanIndices.map((originalIndex) => {
|
|
582
|
+
const placeholder = placeholders[originalIndex];
|
|
583
|
+
const currentValue = vectorValue[originalIndex];
|
|
584
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
585
|
+
placeholder && /* @__PURE__ */ jsx("span", { className: "text-text-primary text-uk-sm", children: placeholder }),
|
|
586
|
+
/* @__PURE__ */ jsx(
|
|
587
|
+
Switch,
|
|
588
|
+
{
|
|
589
|
+
checked: Boolean(currentValue),
|
|
590
|
+
onCheckedChange: (checked) => handleValueChange(originalIndex, checked, vectorValue)
|
|
591
|
+
}
|
|
592
|
+
)
|
|
593
|
+
] }, originalIndex);
|
|
594
|
+
}) })
|
|
595
|
+
] });
|
|
596
|
+
if (!label) {
|
|
597
|
+
return mixedInputComponent;
|
|
598
|
+
}
|
|
599
|
+
return /* @__PURE__ */ jsxs(FormLayout, { orientation: `label-${labelPosition}`, children: [
|
|
600
|
+
/* @__PURE__ */ jsxs(Label, { size: "sm", className: "flex items-center gap-1", children: [
|
|
601
|
+
/* @__PURE__ */ jsx(IconRenderer, { iconName: icon, size: 14, className: "text-text-secondary" }),
|
|
602
|
+
label
|
|
603
|
+
] }),
|
|
604
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-start gap-2", children: [
|
|
605
|
+
schema.helpText && /* @__PURE__ */ jsx(
|
|
606
|
+
"span",
|
|
607
|
+
{
|
|
608
|
+
className: "text-text-secondary mt-1 cursor-help text-xs",
|
|
609
|
+
title: schema.helpText,
|
|
610
|
+
children: "\u24D8"
|
|
611
|
+
}
|
|
612
|
+
),
|
|
613
|
+
mixedInputComponent
|
|
614
|
+
] })
|
|
615
|
+
] });
|
|
616
|
+
}
|
|
479
617
|
const inputSteps = Array.from({ length: dimensions }, (_, i) => {
|
|
480
618
|
if (steps[i] !== void 0) {
|
|
481
619
|
return steps[i];
|
|
@@ -488,9 +626,11 @@ var DialVectorInput2 = ({
|
|
|
488
626
|
VectorInput,
|
|
489
627
|
{
|
|
490
628
|
value: vectorValue,
|
|
491
|
-
onValuesChange:
|
|
629
|
+
onValuesChange: (newValues) => setValue(name, newValues),
|
|
492
630
|
size,
|
|
493
631
|
step: inputSteps,
|
|
632
|
+
min: mins.length > 0 ? mins : void 0,
|
|
633
|
+
max: maxs.length > 0 ? maxs : void 0,
|
|
494
634
|
labels,
|
|
495
635
|
gridAutoFlow,
|
|
496
636
|
columns: gridColumns,
|
|
@@ -501,7 +641,10 @@ var DialVectorInput2 = ({
|
|
|
501
641
|
return inputComponent;
|
|
502
642
|
}
|
|
503
643
|
return /* @__PURE__ */ jsxs(FormLayout, { orientation: `label-${labelPosition}`, children: [
|
|
504
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ jsxs(Label, { size: "sm", className: "flex items-center gap-1", children: [
|
|
645
|
+
/* @__PURE__ */ jsx(IconRenderer, { iconName: icon, size: 14, className: "text-text-secondary" }),
|
|
646
|
+
label
|
|
647
|
+
] }),
|
|
505
648
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
506
649
|
schema.helpText && /* @__PURE__ */ jsx(
|
|
507
650
|
"span",
|
|
@@ -549,7 +692,7 @@ var DialPanel = ({
|
|
|
549
692
|
}
|
|
550
693
|
});
|
|
551
694
|
const renderSchemaInput = (schema) => {
|
|
552
|
-
const { name, dtype, min, max, step, options, tags } = schema;
|
|
695
|
+
const { name, dtype, icon, min, max, step, options, tags } = schema;
|
|
553
696
|
const effectiveLabelPosition = tags?.labelPosition || labelLayout;
|
|
554
697
|
const label = schema.label || name.charAt(0).toUpperCase() + name.slice(1);
|
|
555
698
|
switch (dtype) {
|
|
@@ -559,8 +702,11 @@ var DialPanel = ({
|
|
|
559
702
|
{
|
|
560
703
|
name,
|
|
561
704
|
label,
|
|
705
|
+
min,
|
|
706
|
+
max,
|
|
562
707
|
step,
|
|
563
|
-
labelPosition: effectiveLabelPosition
|
|
708
|
+
labelPosition: effectiveLabelPosition,
|
|
709
|
+
icon
|
|
564
710
|
},
|
|
565
711
|
name
|
|
566
712
|
);
|
|
@@ -571,7 +717,8 @@ var DialPanel = ({
|
|
|
571
717
|
name,
|
|
572
718
|
label,
|
|
573
719
|
step,
|
|
574
|
-
labelPosition: effectiveLabelPosition
|
|
720
|
+
labelPosition: effectiveLabelPosition,
|
|
721
|
+
icon
|
|
575
722
|
},
|
|
576
723
|
name
|
|
577
724
|
);
|
|
@@ -582,21 +729,23 @@ var DialPanel = ({
|
|
|
582
729
|
name,
|
|
583
730
|
label,
|
|
584
731
|
step,
|
|
585
|
-
labelPosition: effectiveLabelPosition
|
|
732
|
+
labelPosition: effectiveLabelPosition,
|
|
733
|
+
icon
|
|
586
734
|
},
|
|
587
735
|
name
|
|
588
736
|
);
|
|
589
737
|
case "vector":
|
|
590
738
|
case "vector-6":
|
|
591
739
|
case "number-group":
|
|
592
|
-
return /* @__PURE__ */ jsx(DialVectorInput2, { name, label }, name);
|
|
740
|
+
return /* @__PURE__ */ jsx(DialVectorInput2, { name, label, icon }, name);
|
|
593
741
|
case "boolean":
|
|
594
742
|
return /* @__PURE__ */ jsx(
|
|
595
743
|
DialBooleanInput,
|
|
596
744
|
{
|
|
597
745
|
name,
|
|
598
746
|
label,
|
|
599
|
-
labelPosition: effectiveLabelPosition
|
|
747
|
+
labelPosition: effectiveLabelPosition,
|
|
748
|
+
icon
|
|
600
749
|
},
|
|
601
750
|
name
|
|
602
751
|
);
|
|
@@ -609,7 +758,8 @@ var DialPanel = ({
|
|
|
609
758
|
min,
|
|
610
759
|
max,
|
|
611
760
|
step,
|
|
612
|
-
labelPosition: effectiveLabelPosition
|
|
761
|
+
labelPosition: effectiveLabelPosition,
|
|
762
|
+
icon
|
|
613
763
|
},
|
|
614
764
|
name
|
|
615
765
|
);
|
|
@@ -618,9 +768,12 @@ var DialPanel = ({
|
|
|
618
768
|
DialIntInput,
|
|
619
769
|
{
|
|
620
770
|
name,
|
|
771
|
+
min,
|
|
772
|
+
max,
|
|
621
773
|
label,
|
|
622
774
|
step: step || 1,
|
|
623
|
-
labelPosition: effectiveLabelPosition
|
|
775
|
+
labelPosition: effectiveLabelPosition,
|
|
776
|
+
icon
|
|
624
777
|
},
|
|
625
778
|
name
|
|
626
779
|
);
|
|
@@ -631,7 +784,8 @@ var DialPanel = ({
|
|
|
631
784
|
name,
|
|
632
785
|
label,
|
|
633
786
|
step,
|
|
634
|
-
labelPosition: effectiveLabelPosition
|
|
787
|
+
labelPosition: effectiveLabelPosition,
|
|
788
|
+
icon
|
|
635
789
|
},
|
|
636
790
|
name
|
|
637
791
|
);
|
|
@@ -645,7 +799,8 @@ var DialPanel = ({
|
|
|
645
799
|
min,
|
|
646
800
|
max,
|
|
647
801
|
step,
|
|
648
|
-
labelPosition: effectiveLabelPosition
|
|
802
|
+
labelPosition: effectiveLabelPosition,
|
|
803
|
+
icon
|
|
649
804
|
},
|
|
650
805
|
name
|
|
651
806
|
);
|
|
@@ -657,7 +812,8 @@ var DialPanel = ({
|
|
|
657
812
|
name,
|
|
658
813
|
label,
|
|
659
814
|
options,
|
|
660
|
-
labelPosition: effectiveLabelPosition
|
|
815
|
+
labelPosition: effectiveLabelPosition,
|
|
816
|
+
icon
|
|
661
817
|
},
|
|
662
818
|
name
|
|
663
819
|
);
|
|
@@ -670,12 +826,13 @@ var DialPanel = ({
|
|
|
670
826
|
min,
|
|
671
827
|
max,
|
|
672
828
|
step,
|
|
673
|
-
labelPosition: effectiveLabelPosition
|
|
829
|
+
labelPosition: effectiveLabelPosition,
|
|
830
|
+
icon
|
|
674
831
|
},
|
|
675
832
|
name
|
|
676
833
|
);
|
|
677
834
|
case "color":
|
|
678
|
-
return /* @__PURE__ */ jsx(DialColorInput, { name, label }, name);
|
|
835
|
+
return /* @__PURE__ */ jsx(DialColorInput, { name, label, icon }, name);
|
|
679
836
|
case "string":
|
|
680
837
|
case "text":
|
|
681
838
|
if (options && options.length > 0) {
|
|
@@ -685,7 +842,8 @@ var DialPanel = ({
|
|
|
685
842
|
name,
|
|
686
843
|
label,
|
|
687
844
|
options,
|
|
688
|
-
labelPosition: effectiveLabelPosition
|
|
845
|
+
labelPosition: effectiveLabelPosition,
|
|
846
|
+
icon
|
|
689
847
|
},
|
|
690
848
|
name
|
|
691
849
|
);
|
|
@@ -696,7 +854,8 @@ var DialPanel = ({
|
|
|
696
854
|
name,
|
|
697
855
|
label,
|
|
698
856
|
placeholder: `Enter ${label.toLowerCase()}`,
|
|
699
|
-
labelPosition: effectiveLabelPosition
|
|
857
|
+
labelPosition: effectiveLabelPosition,
|
|
858
|
+
icon
|
|
700
859
|
},
|
|
701
860
|
name
|
|
702
861
|
);
|
|
@@ -708,21 +867,24 @@ var DialPanel = ({
|
|
|
708
867
|
Object.entries(groupedSchemas).map(([name, schemaList]) => {
|
|
709
868
|
const groupConfig = groupConfigMap[name];
|
|
710
869
|
const hasNoWrap = groupConfig?.noWrap;
|
|
711
|
-
const
|
|
870
|
+
const layoutClass = hasNoWrap ? "flex flex-row gap-2" : "grid grid-cols-3 gap-2";
|
|
712
871
|
return /* @__PURE__ */ jsxs("div", { className: "dial-group", children: [
|
|
713
872
|
/* @__PURE__ */ jsx("div", { className: "text-text-primary mb-2 font-medium", children: name }),
|
|
714
|
-
/* @__PURE__ */ jsx("div", { className: `dial-row
|
|
873
|
+
/* @__PURE__ */ jsx("div", { className: `dial-row ${layoutClass}`, children: schemaList.map(renderSchemaInput) })
|
|
715
874
|
] }, name);
|
|
716
875
|
}),
|
|
717
|
-
ungrouped.length > 0 && /* @__PURE__ */ jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsx("div", { className: "dial-row
|
|
876
|
+
ungrouped.length > 0 && /* @__PURE__ */ jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsx("div", { className: "dial-row grid grid-cols-3 gap-2", children: ungrouped.map(renderSchemaInput) }) })
|
|
718
877
|
] });
|
|
719
878
|
};
|
|
720
|
-
var DialInputWrapper2 = ({ label, labelPosition = "top", children }) => {
|
|
879
|
+
var DialInputWrapper2 = ({ label, labelPosition = "top", icon, children }) => {
|
|
721
880
|
if (!label) {
|
|
722
881
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
723
882
|
}
|
|
724
883
|
return /* @__PURE__ */ jsxs(FormLayout, { orientation: `label-${labelPosition}`, children: [
|
|
725
|
-
/* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ jsxs(Label, { size: "sm", className: "flex items-center gap-1", children: [
|
|
885
|
+
/* @__PURE__ */ jsx(IconRenderer, { iconName: icon, size: 14, className: "text-text-secondary" }),
|
|
886
|
+
label
|
|
887
|
+
] }),
|
|
726
888
|
children
|
|
727
889
|
] });
|
|
728
890
|
};
|
|
@@ -734,6 +896,7 @@ var DialNumberInput = ({
|
|
|
734
896
|
label,
|
|
735
897
|
labelPosition = "top",
|
|
736
898
|
size = "sm",
|
|
899
|
+
icon,
|
|
737
900
|
...props
|
|
738
901
|
}) => {
|
|
739
902
|
const { getValue, setValue } = useDialSchema();
|
|
@@ -759,13 +922,14 @@ var DialNumberInput = ({
|
|
|
759
922
|
if (labelPosition === "inline") {
|
|
760
923
|
return /* @__PURE__ */ jsx(InputNumbers, { ...inputNumbersProps });
|
|
761
924
|
} else {
|
|
762
|
-
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, labelPosition, ...props, children: /* @__PURE__ */ jsx(InputNumbers, { ...inputNumbersProps }) });
|
|
925
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, labelPosition, icon, ...props, children: /* @__PURE__ */ jsx(InputNumbers, { ...inputNumbersProps }) });
|
|
763
926
|
}
|
|
764
927
|
};
|
|
765
928
|
var DialBooleanInput = ({
|
|
766
929
|
name,
|
|
767
930
|
label,
|
|
768
931
|
labelPosition,
|
|
932
|
+
icon,
|
|
769
933
|
...props
|
|
770
934
|
}) => {
|
|
771
935
|
const { getValue, setValue } = useDialSchema();
|
|
@@ -778,9 +942,9 @@ var DialBooleanInput = ({
|
|
|
778
942
|
if (!label || labelPosition === "inline") {
|
|
779
943
|
return /* @__PURE__ */ jsx(Switch, { ...switchProps });
|
|
780
944
|
}
|
|
781
|
-
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, labelPosition, ...props, children: /* @__PURE__ */ jsx(Switch, { ...switchProps }) });
|
|
945
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, labelPosition, icon, ...props, children: /* @__PURE__ */ jsx(Switch, { ...switchProps }) });
|
|
782
946
|
};
|
|
783
|
-
var DialColorInput = ({ name, label, ...props }) => {
|
|
947
|
+
var DialColorInput = ({ name, label, icon, ...props }) => {
|
|
784
948
|
const { getValue, setValue } = useDialSchema();
|
|
785
949
|
const value = getValue(name) ?? "";
|
|
786
950
|
const handleChange = useCallback(
|
|
@@ -788,13 +952,14 @@ var DialColorInput = ({ name, label, ...props }) => {
|
|
|
788
952
|
[name]
|
|
789
953
|
);
|
|
790
954
|
const inputComp = /* @__PURE__ */ jsx(ColorInput, { value, onChange: handleChange, prefix: label });
|
|
791
|
-
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, ...props, children: inputComp });
|
|
955
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, icon, ...props, children: inputComp });
|
|
792
956
|
};
|
|
793
957
|
var DialSelectInput = ({
|
|
794
958
|
name,
|
|
795
959
|
options = [],
|
|
796
960
|
label,
|
|
797
961
|
size = "sm",
|
|
962
|
+
icon,
|
|
798
963
|
...props
|
|
799
964
|
}) => {
|
|
800
965
|
const { getValue, setValue } = useDialSchema();
|
|
@@ -810,7 +975,7 @@ var DialSelectInput = ({
|
|
|
810
975
|
/* @__PURE__ */ jsx(SelectTrigger, { size, children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select an option" }) }),
|
|
811
976
|
/* @__PURE__ */ jsx(SelectContent, { children: options.map((opt, i) => /* @__PURE__ */ jsx(SelectItem, { value: String(opt), children: String(opt) }, i)) })
|
|
812
977
|
] });
|
|
813
|
-
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, ...props, children: selectComponent });
|
|
978
|
+
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, icon, ...props, children: selectComponent });
|
|
814
979
|
};
|
|
815
980
|
var DialSliderInput = ({
|
|
816
981
|
name,
|
|
@@ -818,6 +983,7 @@ var DialSliderInput = ({
|
|
|
818
983
|
max = 100,
|
|
819
984
|
step = 1,
|
|
820
985
|
label,
|
|
986
|
+
icon,
|
|
821
987
|
...props
|
|
822
988
|
}) => {
|
|
823
989
|
const { getValue, setValue } = useDialSchema();
|
|
@@ -831,7 +997,7 @@ var DialSliderInput = ({
|
|
|
831
997
|
step,
|
|
832
998
|
className: "flex-1"
|
|
833
999
|
};
|
|
834
|
-
return /* @__PURE__ */ jsxs(DialInputWrapper2, { label, ...props, children: [
|
|
1000
|
+
return /* @__PURE__ */ jsxs(DialInputWrapper2, { label, icon, ...props, children: [
|
|
835
1001
|
/* @__PURE__ */ jsx(Slider, { ...sliderProps }),
|
|
836
1002
|
/* @__PURE__ */ jsx("span", { className: "text-text-secondary w-12 text-right text-sm", children: value })
|
|
837
1003
|
] });
|