@vuer-ai/vuer-uikit 0.0.119 → 0.0.121
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 +11 -11
- package/dist/SyncScroll/SyncScroll.mjs +4 -4
- package/dist/SyncScroll/index.cjs +11 -11
- package/dist/SyncScroll/index.mjs +4 -4
- package/dist/auth/components/index.cjs +84 -83
- package/dist/auth/components/index.mjs +83 -82
- package/dist/auth/components/user-avatar/index.cjs +84 -83
- package/dist/auth/components/user-avatar/index.mjs +83 -82
- package/dist/auth/index.cjs +84 -83
- package/dist/auth/index.mjs +83 -82
- package/dist/{chunk-42WQWP6X.cjs → chunk-22T2AL3G.cjs} +8 -8
- package/dist/{chunk-H6JGIEAU.mjs → chunk-2KQXKQNU.mjs} +1 -1
- package/dist/{chunk-S7CCCMMU.cjs → chunk-34NDAZS6.cjs} +18 -9
- package/dist/{chunk-DM43KZU7.cjs → chunk-3F3LBOQJ.cjs} +2 -2
- package/dist/chunk-3JMUI4R2.cjs +136 -0
- package/dist/{chunk-MJOD2WOC.mjs → chunk-3P2OP4KO.mjs} +24 -46
- package/dist/{chunk-ARAMXRUE.mjs → chunk-3SUV56TH.mjs} +3 -3
- package/dist/{chunk-CH3BSVL4.cjs → chunk-42DBXENE.cjs} +2 -2
- package/dist/{chunk-JW456O5K.mjs → chunk-4FB6B2ES.mjs} +1 -1
- package/dist/{chunk-UUV46MDU.cjs → chunk-4G2LN6XU.cjs} +139 -108
- package/dist/chunk-4NABYVCK.mjs +31 -0
- package/dist/{chunk-MNCBTS63.cjs → chunk-4TRHQ7MJ.cjs} +5 -5
- package/dist/{chunk-F2LEYFWW.cjs → chunk-4WKFVKFF.cjs} +5 -5
- package/dist/{chunk-EEGQLTSQ.cjs → chunk-4WWGBRQV.cjs} +77 -0
- package/dist/chunk-4Y5IF7R5.mjs +322 -0
- package/dist/{chunk-24SOZV7S.mjs → chunk-4YVKJKWV.mjs} +4 -15
- package/dist/{chunk-X6WOCNBX.cjs → chunk-57NITJN5.cjs} +2 -2
- package/dist/{chunk-QWBMDS3S.cjs → chunk-5HT74RHB.cjs} +5 -5
- package/dist/{chunk-4ODJAEOM.mjs → chunk-5JYH7TXY.mjs} +1 -1
- package/dist/{chunk-OJOWMXXY.mjs → chunk-67H3OSM3.mjs} +3 -3
- package/dist/{chunk-2CD4D2BR.cjs → chunk-6CJWNYHL.cjs} +3 -3
- package/dist/{chunk-CRX2ZCM2.cjs → chunk-6LTCLQH3.cjs} +6 -1
- package/dist/{chunk-TQKX345P.mjs → chunk-6NSLYQ35.mjs} +2 -2
- package/dist/{chunk-WKK5UX2W.mjs → chunk-6U6LRS37.mjs} +2 -2
- package/dist/{chunk-4OUQ6NSX.cjs → chunk-6VIKDPCD.cjs} +2 -2
- package/dist/{chunk-LMYA5IOK.mjs → chunk-6ZLK2RYS.mjs} +3 -3
- package/dist/{chunk-LYGYXV7S.cjs → chunk-7ICRKPIO.cjs} +16 -16
- package/dist/{chunk-ZCSJGDX7.mjs → chunk-7MR3M2HW.mjs} +1 -1
- package/dist/{chunk-Q37KC3CL.mjs → chunk-7RRQ2HHL.mjs} +114 -17
- package/dist/{chunk-FMKD5JBL.mjs → chunk-7TD77VF4.mjs} +10 -6
- package/dist/{chunk-42ZXL3KZ.cjs → chunk-7TXGEIV3.cjs} +12 -12
- package/dist/{chunk-SLXM4F24.cjs → chunk-7YFUNCKT.cjs} +9 -9
- package/dist/{chunk-LGFWHV23.cjs → chunk-ACGXE2IO.cjs} +2 -2
- package/dist/{chunk-EGIIZWP3.mjs → chunk-AFR23IX6.mjs} +1 -1
- package/dist/{chunk-XS5IUI62.cjs → chunk-B6CIRZI4.cjs} +2 -2
- package/dist/{chunk-REZAPK6Z.mjs → chunk-BDFUHPX2.mjs} +1 -1
- package/dist/{chunk-CXPF274N.mjs → chunk-BK77KKIM.mjs} +1 -1
- package/dist/{chunk-ZJSL6HSL.mjs → chunk-BLG4IPRR.mjs} +1 -1
- package/dist/{chunk-JQYMF2FW.cjs → chunk-BSDIS4KS.cjs} +4 -4
- package/dist/{chunk-4DSJ62TT.mjs → chunk-BYZ7HIIK.mjs} +2 -2
- package/dist/{chunk-6C53NKMF.mjs → chunk-C4U5BMQH.mjs} +1 -1
- package/dist/{chunk-BQA24G2A.mjs → chunk-CENP2PIB.mjs} +2 -2
- package/dist/{chunk-NJWKR5WR.mjs → chunk-CEYNTMQP.mjs} +1 -1
- package/dist/{chunk-CIOLL5LX.mjs → chunk-CN6SZKJZ.mjs} +1 -1
- package/dist/{chunk-WDSOII5A.cjs → chunk-COJRGW3A.cjs} +2 -2
- package/dist/{chunk-DYLDZJQC.cjs → chunk-COL2MXGC.cjs} +4 -4
- package/dist/chunk-CRY23RMB.mjs +30 -0
- package/dist/{chunk-CKGEV2JL.cjs → chunk-CV2EDA3W.cjs} +2 -2
- package/dist/{chunk-7AAMQGY2.cjs → chunk-CYWVJ3HF.cjs} +7 -7
- package/dist/{chunk-EEYL7PDI.cjs → chunk-D5WTSBUX.cjs} +7 -7
- package/dist/{chunk-ASZIBFA6.cjs → chunk-DG2EVWIW.cjs} +10 -10
- package/dist/chunk-DGJ7E77I.mjs +23 -0
- package/dist/{chunk-B7PLWNPX.mjs → chunk-DSQPFXYL.mjs} +22 -24
- package/dist/chunk-DVUN6GQI.cjs +21 -0
- package/dist/chunk-E7ACJ3NX.cjs +45 -0
- package/dist/{chunk-T4U3BG2V.mjs → chunk-EGJLY5VZ.mjs} +1 -1
- package/dist/{chunk-IPMQ63BJ.cjs → chunk-EMZEL54F.cjs} +27 -49
- package/dist/{chunk-7AEOJFD4.cjs → chunk-EOTGD64D.cjs} +2 -2
- package/dist/{chunk-K2ZYSKRU.mjs → chunk-EZ536NLQ.mjs} +1 -1
- package/dist/chunk-FB3M2JJV.cjs +21 -0
- package/dist/{chunk-DDU3SPCC.mjs → chunk-FUMJBAQI.mjs} +57 -4
- package/dist/{chunk-4TYIH6V3.mjs → chunk-G45SP3DA.mjs} +91 -61
- package/dist/{chunk-HB65PF7F.cjs → chunk-GBRIW266.cjs} +2 -2
- package/dist/{chunk-RPTRTGC2.cjs → chunk-GEGPGQVH.cjs} +15 -15
- package/dist/chunk-GHQA7PER.mjs +107 -0
- package/dist/{chunk-XQ3MWA3D.mjs → chunk-GJKFQHUX.mjs} +3 -3
- package/dist/{chunk-ND3WJ63Z.cjs → chunk-GVRVRBDU.cjs} +2 -2
- package/dist/chunk-GZ2BG42R.mjs +34 -0
- package/dist/chunk-H3JRYX2U.mjs +19 -0
- package/dist/{chunk-T66ETI7E.mjs → chunk-HBEU2PU2.mjs} +6 -1
- package/dist/{chunk-EVBYVJTW.mjs → chunk-HGN7J4CP.mjs} +2 -2
- package/dist/{chunk-SMXN2KOV.mjs → chunk-HGTL7DFT.mjs} +1 -1
- package/dist/{chunk-QO2AM6MF.mjs → chunk-HIDTQ4Z2.mjs} +1 -1
- package/dist/{chunk-3NIMV5PH.mjs → chunk-HUPECWNG.mjs} +1 -1
- package/dist/{chunk-6WH6PWTJ.cjs → chunk-HVACIZB5.cjs} +7 -19
- package/dist/{chunk-R4HT3SYR.cjs → chunk-HZBP6QTE.cjs} +2 -2
- package/dist/{chunk-2GXIGEKC.mjs → chunk-IKSER6BF.mjs} +2 -2
- package/dist/{chunk-UQQBUPGF.mjs → chunk-IPMWGCAI.mjs} +5 -21
- package/dist/{chunk-Q7WCKEXG.cjs → chunk-JF43YF6J.cjs} +3 -3
- package/dist/{chunk-MXGPFCLN.cjs → chunk-JVZ6J2UX.cjs} +2 -2
- package/dist/{chunk-EY6PKK4X.cjs → chunk-KKGDRIR2.cjs} +2 -2
- package/dist/{chunk-SAXISARG.cjs → chunk-KWSH253U.cjs} +2 -2
- package/dist/{chunk-K2BQNNEX.cjs → chunk-L6W77P4B.cjs} +8 -8
- package/dist/{chunk-N4Y5CBOI.cjs → chunk-LGUQR5AR.cjs} +4 -4
- package/dist/{chunk-MYZHDWBF.mjs → chunk-LJYIEOGQ.mjs} +11 -11
- package/dist/{chunk-332A4MHC.mjs → chunk-LNYUFL3Q.mjs} +1 -1
- package/dist/{chunk-JFPIUDGT.mjs → chunk-LOMLR5AA.mjs} +1 -1
- package/dist/{chunk-6D7FGGSX.cjs → chunk-MMQR4IEY.cjs} +27 -27
- package/dist/{chunk-BUAWPPXA.cjs → chunk-MQ5DGLVE.cjs} +11 -11
- package/dist/{chunk-EXY6WRH4.mjs → chunk-N6KP2HIC.mjs} +2 -2
- package/dist/{chunk-NKGUQZTD.cjs → chunk-NC2U7QTW.cjs} +2 -2
- package/dist/{chunk-V75PKBIV.cjs → chunk-NEJKCSS5.cjs} +9 -9
- package/dist/{chunk-R5UREEMP.cjs → chunk-NHFIDL5X.cjs} +8 -8
- package/dist/{chunk-JNV3UBBP.cjs → chunk-NIACIZWY.cjs} +6 -22
- package/dist/{chunk-PC5DHSC4.mjs → chunk-NKUK73WB.mjs} +71 -1
- package/dist/{chunk-5OZS5UJX.cjs → chunk-NSPAT6XV.cjs} +7 -7
- package/dist/{chunk-4BQPIY5Z.mjs → chunk-O2NGB7YP.mjs} +1 -1
- package/dist/{chunk-7H7U2X45.cjs → chunk-O3DFVRON.cjs} +17 -13
- package/dist/{chunk-IAFCABPY.mjs → chunk-O5YP3JQ4.mjs} +1 -1
- package/dist/chunk-OBWKFURE.cjs +2 -0
- package/dist/{chunk-S37MJNNP.cjs → chunk-OCADGDGL.cjs} +2 -2
- package/dist/{chunk-UMGNAR3W.cjs → chunk-OON7LFBQ.cjs} +8 -8
- package/dist/{chunk-ZSAPBZ36.mjs → chunk-OW653F7T.mjs} +1 -1
- package/dist/{chunk-GQYUSBSO.mjs → chunk-P3FBRYWH.mjs} +3 -10
- package/dist/{chunk-P3YSHGT5.mjs → chunk-P55DAW6H.mjs} +1 -1
- package/dist/{chunk-JOOURIX7.cjs → chunk-P6E4WLMD.cjs} +4 -4
- package/dist/{chunk-SCUMWMIN.mjs → chunk-PC42NEBI.mjs} +1 -1
- package/dist/{chunk-F3HOBNGR.cjs → chunk-PMG3NZF5.cjs} +4 -4
- package/dist/{chunk-PV6CEMTT.cjs → chunk-PWZ4F3WY.cjs} +4 -4
- package/dist/{chunk-MK2CWAFC.mjs → chunk-PZDC5ZKG.mjs} +5 -5
- package/dist/{chunk-LVIZRMYN.cjs → chunk-QF3JWGWX.cjs} +2 -2
- package/dist/{chunk-BXZSWY4N.mjs → chunk-QYJZ5KA6.mjs} +1 -1
- package/dist/{chunk-AE5YDMFT.mjs → chunk-QYYMLZFE.mjs} +3 -3
- package/dist/{chunk-JYYAGDLZ.cjs → chunk-R22VW3EK.cjs} +2 -2
- package/dist/{chunk-U22YVR7M.mjs → chunk-RLY4A3IY.mjs} +15 -6
- package/dist/{chunk-OLYHHP67.mjs → chunk-RS4T6S3Z.mjs} +1 -1
- package/dist/{chunk-L2XJ5Q7T.cjs → chunk-RTZNHV43.cjs} +21 -21
- package/dist/{chunk-D562KO2I.mjs → chunk-RWHVZM2B.mjs} +2 -2
- package/dist/{chunk-PR3BCKLJ.mjs → chunk-S4BL7C3Y.mjs} +1 -1
- package/dist/chunk-S4C7HO32.cjs +36 -0
- package/dist/{chunk-DAVMLI3P.cjs → chunk-SNUQOJLK.cjs} +4 -4
- package/dist/{chunk-KY2PYKDZ.mjs → chunk-SO5KFX2C.mjs} +1 -1
- package/dist/{chunk-WDS3VL7E.mjs → chunk-SQJL67BU.mjs} +3 -3
- package/dist/{chunk-RW4T7UBU.cjs → chunk-STJMH4NX.cjs} +3 -3
- package/dist/{chunk-KIZ7WH7H.cjs → chunk-SUWJDU3Y.cjs} +59 -61
- package/dist/chunk-T2BDPMCF.cjs +358 -0
- package/dist/{chunk-U5W4ZALG.cjs → chunk-T2OAWYOU.cjs} +6 -6
- package/dist/{chunk-RGOZPSTI.mjs → chunk-TMBHKVKH.mjs} +1 -1
- package/dist/{chunk-VTW2DF63.mjs → chunk-TWDDNHRP.mjs} +1 -1
- package/dist/chunk-U4AANBRZ.mjs +1 -0
- package/dist/{chunk-DDIB73SZ.mjs → chunk-UB3ELCFR.mjs} +4 -4
- package/dist/chunk-UCAIVC2B.cjs +32 -0
- package/dist/{chunk-EK3BTKZP.cjs → chunk-UFYHIDMC.cjs} +123 -26
- package/dist/{chunk-KQW3YARN.cjs → chunk-UTHAZV2T.cjs} +62 -9
- package/dist/{chunk-G5VBLDAM.mjs → chunk-VBEVJE7Q.mjs} +1 -1
- package/dist/{chunk-66NKH2SV.cjs → chunk-VW2NEQHK.cjs} +6 -6
- package/dist/{chunk-VWVYCQWF.mjs → chunk-WBM7ATPT.mjs} +1 -1
- package/dist/{chunk-QBAZ6TKZ.cjs → chunk-WQT7JQN4.cjs} +2 -2
- package/dist/{chunk-DAA2GQAS.cjs → chunk-WRJAYU2L.cjs} +27 -27
- package/dist/{chunk-GTBXRWCK.cjs → chunk-WYD3KNAT.cjs} +3 -3
- package/dist/{chunk-EBFPZBUQ.cjs → chunk-WYUJM72T.cjs} +7 -7
- package/dist/{chunk-XTLGNJIO.mjs → chunk-XC25ZQ7H.mjs} +1 -1
- package/dist/{chunk-4PMXRQXC.cjs → chunk-XDIHVSZ5.cjs} +6 -6
- package/dist/{chunk-7ACZU3BT.mjs → chunk-XHNM6XE3.mjs} +1 -1
- package/dist/{chunk-WHV6Z7YX.mjs → chunk-XIESS6HW.mjs} +1 -1
- package/dist/{chunk-IU65XB2K.cjs → chunk-XMVARRN6.cjs} +2 -2
- package/dist/{chunk-UIJEAY6H.mjs → chunk-XTZURZIR.mjs} +1 -1
- package/dist/{chunk-7AZ3PLUC.mjs → chunk-XZLQHASB.mjs} +1 -1
- package/dist/{chunk-SRZ56OJH.mjs → chunk-XZTEU7ME.mjs} +3 -3
- package/dist/{chunk-RLTLA7VS.mjs → chunk-Y2IIKDRY.mjs} +1 -1
- package/dist/{chunk-5AKVDZMA.cjs → chunk-YAFKQ5ZV.cjs} +12 -12
- package/dist/{chunk-3DIFS7CO.mjs → chunk-YBUMQX6M.mjs} +1 -1
- package/dist/{chunk-CR6JOOO3.cjs → chunk-YGZHBIZP.cjs} +3 -10
- package/dist/{chunk-TWQONYWC.mjs → chunk-YMMSHGYC.mjs} +1 -1
- package/dist/{chunk-ZS7ESTKH.cjs → chunk-Z42BBOSG.cjs} +8 -12
- package/dist/{chunk-ZA7WOIIB.mjs → chunk-Z7PWETGZ.mjs} +1 -1
- package/dist/{chunk-3ZEQVODC.cjs → chunk-ZAK7AFVY.cjs} +2 -2
- package/dist/{chunk-W3IHFG4B.cjs → chunk-ZG33TW5I.cjs} +8 -8
- package/dist/chunk-ZQ2DPA2M.mjs +43 -0
- package/dist/{chunk-AHD46BFN.mjs → chunk-ZQOQB6GF.mjs} +1 -1
- package/dist/dial/DialPanel.cjs +89 -87
- package/dist/dial/DialPanel.d.cts +2 -3
- package/dist/dial/DialPanel.d.ts +2 -3
- package/dist/dial/DialPanel.mjs +88 -86
- package/dist/dial/DialProvider.d.cts +16 -51
- package/dist/dial/DialProvider.d.ts +16 -51
- package/dist/dial/index.cjs +105 -103
- package/dist/dial/index.d.cts +2 -1
- package/dist/dial/index.d.ts +2 -1
- package/dist/dial/index.mjs +88 -86
- package/dist/dial/types.cjs +4 -0
- package/dist/dial/types.d.cts +110 -0
- package/dist/dial/types.d.ts +110 -0
- package/dist/dial/types.mjs +1 -0
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +93 -91
- package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +1 -2
- package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +1 -2
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +88 -86
- package/dist/dial/wrapped-inputs/DialInputs.cjs +102 -100
- package/dist/dial/wrapped-inputs/DialInputs.d.cts +1 -2
- package/dist/dial/wrapped-inputs/DialInputs.d.ts +1 -2
- package/dist/dial/wrapped-inputs/DialInputs.mjs +88 -86
- package/dist/dial/wrapped-inputs/DialInterfaceInput.cjs +129 -0
- package/dist/dial/wrapped-inputs/DialInterfaceInput.d.cts +8 -0
- package/dist/dial/wrapped-inputs/DialInterfaceInput.d.ts +8 -0
- package/dist/dial/wrapped-inputs/DialInterfaceInput.mjs +120 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +84 -83
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.cts +1 -2
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.ts +1 -2
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +83 -82
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +89 -87
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +88 -86
- package/dist/dial/wrapped-inputs/index.cjs +109 -107
- package/dist/dial/wrapped-inputs/index.d.cts +1 -2
- package/dist/dial/wrapped-inputs/index.d.ts +1 -2
- package/dist/dial/wrapped-inputs/index.mjs +88 -86
- 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 +14 -14
- package/dist/highlight-cursor/enhanced-components.d.cts +1 -1
- package/dist/highlight-cursor/enhanced-components.d.ts +1 -1
- package/dist/highlight-cursor/enhanced-components.mjs +9 -9
- package/dist/highlight-cursor/index.cjs +19 -19
- package/dist/highlight-cursor/index.mjs +10 -10
- package/dist/hooks/clientOnly.cjs +4 -12
- package/dist/hooks/clientOnly.d.cts +9 -15
- package/dist/hooks/clientOnly.d.ts +9 -15
- package/dist/hooks/clientOnly.mjs +1 -1
- package/dist/hooks/cn.cjs +2 -2
- package/dist/hooks/cn.mjs +1 -1
- package/dist/hooks/index.cjs +8 -16
- package/dist/hooks/index.d.cts +2 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.mjs +3 -3
- package/dist/hooks/useIsMobile.cjs +2 -2
- package/dist/hooks/useIsMobile.mjs +1 -1
- package/dist/index.cjs +466 -384
- package/dist/index.css +0 -63
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.mjs +88 -86
- package/dist/ui/DialBadge.cjs +8 -8
- package/dist/ui/DialBadge.mjs +4 -4
- package/dist/ui/UIKitBadge.cjs +8 -8
- package/dist/ui/UIKitBadge.mjs +4 -4
- package/dist/ui/avatar.cjs +8 -8
- package/dist/ui/avatar.mjs +4 -4
- package/dist/ui/badge.cjs +6 -6
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.mjs +4 -4
- package/dist/ui/button.cjs +6 -6
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.mjs +4 -4
- package/dist/ui/card.cjs +12 -11
- package/dist/ui/card.d.cts +14 -2
- package/dist/ui/card.d.ts +14 -2
- package/dist/ui/card.mjs +5 -4
- package/dist/ui/checkbox.cjs +5 -5
- package/dist/ui/checkbox.mjs +4 -4
- package/dist/ui/collapsible.cjs +7 -7
- package/dist/ui/collapsible.mjs +4 -4
- package/dist/ui/context-menu.cjs +76 -0
- package/dist/ui/context-menu.d.cts +28 -0
- package/dist/ui/context-menu.d.ts +28 -0
- package/dist/ui/context-menu.mjs +11 -0
- package/dist/ui/drawer.cjs +14 -14
- package/dist/ui/drawer.mjs +4 -4
- package/dist/ui/dropdown.cjs +19 -19
- package/dist/ui/dropdown.mjs +4 -4
- package/dist/ui/icons/index.cjs +9 -9
- package/dist/ui/icons/index.mjs +1 -1
- package/dist/ui/index.cjs +423 -334
- package/dist/ui/index.d.cts +6 -4
- package/dist/ui/index.d.ts +6 -4
- package/dist/ui/index.mjs +82 -81
- package/dist/ui/inputs/color-input.cjs +6 -6
- package/dist/ui/inputs/color-input.mjs +5 -5
- package/dist/ui/inputs/index.cjs +53 -53
- package/dist/ui/inputs/index.mjs +23 -23
- package/dist/ui/inputs/input-numbers.cjs +6 -6
- package/dist/ui/inputs/input-numbers.mjs +5 -5
- package/dist/ui/inputs/input.cjs +7 -7
- package/dist/ui/inputs/input.d.cts +1 -1
- package/dist/ui/inputs/input.d.ts +1 -1
- package/dist/ui/inputs/input.mjs +4 -4
- package/dist/ui/inputs/number-inputs/CmInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/CmInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/DegInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/DegInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/InchInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/InchInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/IntInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/IntInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/RadInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/RadInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +8 -8
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +7 -7
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +7 -7
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +6 -6
- package/dist/ui/inputs/number-inputs/index.cjs +34 -34
- package/dist/ui/inputs/number-inputs/index.mjs +18 -18
- package/dist/ui/inputs/presets-input.cjs +8 -8
- package/dist/ui/inputs/presets-input.mjs +7 -7
- package/dist/ui/inputs/presets-rad-input.cjs +9 -9
- package/dist/ui/inputs/presets-rad-input.mjs +8 -8
- package/dist/ui/inputs/text-input.cjs +6 -6
- package/dist/ui/inputs/text-input.mjs +5 -5
- package/dist/ui/label.cjs +5 -5
- package/dist/ui/label.mjs +4 -4
- package/dist/ui/layout.cjs +5 -5
- package/dist/ui/layout.mjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +6 -6
- package/dist/ui/layouts/dock-layout/DockLayoutView.d.cts +2 -1
- package/dist/ui/layouts/dock-layout/DockLayoutView.d.ts +2 -1
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +5 -5
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +10 -10
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +4 -4
- package/dist/ui/layouts/dock-layout/index.cjs +12 -12
- package/dist/ui/layouts/dock-layout/index.mjs +5 -5
- package/dist/ui/layouts/index.cjs +19 -19
- package/dist/ui/layouts/index.mjs +8 -8
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +10 -10
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +4 -4
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +6 -6
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.d.cts +13 -1
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.d.ts +13 -1
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +5 -5
- package/dist/ui/layouts/liquid-layout/index.cjs +6 -6
- package/dist/ui/layouts/liquid-layout/index.mjs +5 -5
- package/dist/ui/modal.cjs +14 -14
- package/dist/ui/modal.mjs +4 -4
- package/dist/ui/navigation.cjs +6 -6
- package/dist/ui/navigation.mjs +5 -5
- package/dist/ui/pagination.cjs +12 -12
- package/dist/ui/pagination.mjs +5 -5
- package/dist/ui/popover.cjs +8 -8
- package/dist/ui/popover.mjs +4 -4
- package/dist/ui/progress.cjs +5 -5
- package/dist/ui/progress.d.cts +1 -1
- package/dist/ui/progress.d.ts +1 -1
- package/dist/ui/progress.mjs +4 -4
- package/dist/ui/radio-group.cjs +6 -6
- package/dist/ui/radio-group.mjs +4 -4
- package/dist/ui/resizable.cjs +7 -7
- package/dist/ui/resizable.mjs +4 -4
- package/dist/ui/select.cjs +15 -15
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/select.mjs +4 -4
- package/dist/ui/separator.cjs +5 -5
- package/dist/ui/separator.mjs +4 -4
- package/dist/ui/sheet.cjs +12 -12
- package/dist/ui/sheet.d.cts +26 -13
- package/dist/ui/sheet.d.ts +26 -13
- package/dist/ui/sheet.mjs +4 -4
- package/dist/ui/sidebar.cjs +34 -34
- package/dist/ui/sidebar.mjs +10 -10
- package/dist/ui/simple-tree-view.cjs +5 -5
- package/dist/ui/simple-tree-view.mjs +4 -4
- package/dist/ui/skeleton.cjs +5 -5
- package/dist/ui/skeleton.mjs +4 -4
- package/dist/ui/slider.cjs +5 -5
- package/dist/ui/slider.mjs +4 -4
- package/dist/ui/switch.cjs +5 -5
- package/dist/ui/switch.mjs +4 -4
- package/dist/ui/table.cjs +12 -12
- package/dist/ui/table.mjs +4 -4
- package/dist/ui/tabs.cjs +8 -8
- package/dist/ui/tabs.d.cts +21 -6
- package/dist/ui/tabs.d.ts +21 -6
- package/dist/ui/tabs.mjs +4 -4
- package/dist/ui/textarea.cjs +5 -5
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.mjs +4 -4
- package/dist/ui/theme/ThemeProvider.d.cts +1 -1
- package/dist/ui/theme/ThemeProvider.d.ts +1 -1
- package/dist/ui/theme/ThemeToggles.cjs +8 -12
- package/dist/ui/theme/ThemeToggles.d.cts +1 -7
- package/dist/ui/theme/ThemeToggles.d.ts +1 -7
- package/dist/ui/theme/ThemeToggles.mjs +6 -6
- package/dist/ui/theme/index.cjs +8 -12
- package/dist/ui/theme/index.d.cts +1 -1
- package/dist/ui/theme/index.d.ts +1 -1
- package/dist/ui/theme/index.mjs +6 -6
- package/dist/ui/toast.cjs +19 -3
- package/dist/ui/toast.d.cts +1 -1
- package/dist/ui/toast.d.ts +1 -1
- package/dist/ui/toast.mjs +17 -1
- package/dist/ui/toggle-buttons.cjs +9 -9
- package/dist/ui/toggle-buttons.mjs +4 -4
- package/dist/ui/toggle-group.cjs +7 -7
- package/dist/ui/toggle-group.mjs +4 -4
- package/dist/ui/toggle.cjs +6 -6
- package/dist/ui/toggle.mjs +4 -4
- package/dist/ui/toolbar.cjs +7 -7
- package/dist/ui/toolbar.mjs +4 -4
- package/dist/ui/tooltip.cjs +8 -8
- package/dist/ui/tooltip.d.cts +2 -2
- package/dist/ui/tooltip.d.ts +2 -2
- package/dist/ui/tooltip.mjs +4 -4
- package/dist/ui/tree-view/TreeSearchBar.cjs +7 -7
- package/dist/ui/tree-view/TreeSearchBar.mjs +6 -6
- package/dist/ui/tree-view/TreeView.cjs +8 -6
- package/dist/ui/tree-view/TreeView.d.cts +12 -6
- package/dist/ui/tree-view/TreeView.d.ts +12 -6
- package/dist/ui/tree-view/TreeView.mjs +6 -4
- package/dist/ui/tree-view/hooks.cjs +31 -3
- package/dist/ui/tree-view/hooks.d.cts +33 -1
- package/dist/ui/tree-view/hooks.d.ts +33 -1
- package/dist/ui/tree-view/hooks.mjs +1 -1
- package/dist/ui/tree-view/index.cjs +47 -18
- package/dist/ui/tree-view/index.d.cts +1 -1
- package/dist/ui/tree-view/index.d.ts +1 -1
- package/dist/ui/tree-view/index.mjs +9 -8
- package/dist/ui/tree-view-legacy.cjs +11 -11
- package/dist/ui/tree-view-legacy.mjs +7 -7
- package/dist/ui/waterfall/CursorOverlay.cjs +5 -5
- package/dist/ui/waterfall/CursorOverlay.mjs +4 -4
- package/dist/ui/waterfall/TimelineEvent.cjs +5 -5
- package/dist/ui/waterfall/TimelineEvent.mjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.cjs +5 -5
- package/dist/ui/waterfall/TimelineProcessBar.mjs +4 -4
- package/dist/ui/waterfall/Wedges.cjs +6 -6
- package/dist/ui/waterfall/Wedges.mjs +4 -4
- package/dist/ui/waterfall/index.cjs +17 -16
- package/dist/ui/waterfall/index.mjs +16 -15
- package/package.json +2 -1
- package/src/auth/components/index.ts +1 -1
- package/src/dial/DialPanel.tsx +53 -28
- package/src/dial/DialProvider.tsx +20 -68
- package/src/dial/index.ts +7 -5
- package/src/dial/types.ts +40 -0
- package/src/dial/wrapped-inputs/ControlledInputs.tsx +6 -5
- package/src/dial/wrapped-inputs/DialInputs.tsx +2 -1
- package/src/dial/wrapped-inputs/DialInterfaceInput.tsx +44 -0
- package/src/dial/wrapped-inputs/DialPresetsInput.tsx +3 -2
- package/src/dial/wrapped-inputs/DialVectorInput.tsx +3 -18
- package/src/hooks/clientOnly.tsx +20 -23
- package/src/hooks/cn.ts +5 -0
- package/src/hooks/useIsMobile.ts +14 -30
- package/src/index.css +0 -1
- package/src/ui/DialBadge.tsx +7 -5
- package/src/ui/card.tsx +76 -4
- package/src/ui/context-menu.tsx +358 -0
- package/src/ui/index.ts +2 -0
- package/src/ui/inputs/number-inputs/EulerRadInput.tsx +43 -42
- package/src/ui/inputs/number-inputs/VectorInput.tsx +0 -1
- package/src/ui/inputs/presets-rad-input.tsx +5 -2
- package/src/ui/inputs/text-input.tsx +1 -1
- package/src/ui/layouts/dock-layout/DockLayoutView.tsx +15 -4
- package/src/ui/layouts/dock-layout/LayoutSlots.tsx +14 -5
- package/src/ui/layouts/liquid-layout/LiquidLayoutView.tsx +44 -5
- package/src/ui/progress.tsx +7 -14
- package/src/ui/separator.tsx +1 -1
- package/src/ui/sheet.tsx +14 -116
- package/src/ui/sidebar.tsx +18 -19
- package/src/ui/tabs.tsx +27 -57
- package/src/ui/theme/ThemeToggles.tsx +1 -21
- package/src/ui/theme/index.ts +1 -1
- package/src/ui/toast.tsx +15 -16
- package/src/ui/tooltip.tsx +3 -30
- package/src/ui/tree-view/TreeView.tsx +147 -18
- package/src/ui/tree-view/hooks.tsx +148 -0
- package/src/ui/tree-view/types.ts +1 -1
- package/src/ui/waterfall/TimelineProcessBar.tsx +10 -4
- package/dist/chunk-4F2GSF2T.mjs +0 -29
- package/dist/chunk-A6EASR27.mjs +0 -193
- package/dist/chunk-EOSYXHEH.mjs +0 -27
- package/dist/chunk-EXXV3BXT.cjs +0 -23
- package/dist/chunk-FZAGJSW2.cjs +0 -47
- package/dist/chunk-IPQU5CJD.mjs +0 -21
- package/dist/chunk-JR4TVE43.cjs +0 -31
- package/dist/chunk-MFYDZKQF.mjs +0 -28
- package/dist/chunk-RTYZO2AC.cjs +0 -30
- package/dist/chunk-UK3UBVT4.cjs +0 -222
- package/dist/chunk-XHJDRQD7.mjs +0 -29
- package/dist/chunk-Y2XVZEXM.mjs +0 -45
- package/dist/chunk-ZF435JZL.cjs +0 -21
- package/dist/dial/DialProvider.example.cjs +0 -72
- package/dist/dial/DialProvider.example.d.cts +0 -7
- package/dist/dial/DialProvider.example.d.ts +0 -7
- package/dist/dial/DialProvider.example.mjs +0 -68
- package/dist/styles/toast.css +0 -64
- package/dist/styles/toast.d.cts +0 -2
- package/dist/styles/toast.d.ts +0 -2
- package/src/dial/DialProvider.example.tsx +0 -80
- package/src/styles/toast.css +0 -67
- /package/dist/{chunk-YYLBP356.mjs → chunk-6THKQIF7.mjs} +0 -0
- /package/dist/{chunk-YWECB5GR.cjs → chunk-F4NQLN5E.cjs} +0 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
2
|
+
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
|
|
5
|
+
import { cn } from "../hooks";
|
|
6
|
+
|
|
7
|
+
function ContextMenu({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Root>) {
|
|
8
|
+
return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function ContextMenuTrigger({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Trigger>) {
|
|
12
|
+
return <ContextMenuPrimitive.Trigger data-slot="context-menu-trigger" {...props} />;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function ContextMenuPortal({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Portal>) {
|
|
16
|
+
return <ContextMenuPrimitive.Portal data-slot="context-menu-portal" {...props} />;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function ContextMenuContent({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: ComponentProps<typeof ContextMenuPrimitive.Content>) {
|
|
23
|
+
return (
|
|
24
|
+
<ContextMenuPrimitive.Portal>
|
|
25
|
+
<ContextMenuPrimitive.Content
|
|
26
|
+
data-slot="context-menu-content"
|
|
27
|
+
className={cn(
|
|
28
|
+
[
|
|
29
|
+
"bg-bg-primary",
|
|
30
|
+
"p-md",
|
|
31
|
+
"data-[state=open]:animate-in",
|
|
32
|
+
"data-[state=closed]:animate-out",
|
|
33
|
+
"data-[state=closed]:fade-out-0",
|
|
34
|
+
"data-[state=open]:fade-in-0",
|
|
35
|
+
"data-[state=closed]:zoom-out-95",
|
|
36
|
+
"data-[state=open]:zoom-in-95",
|
|
37
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
38
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
39
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
40
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
41
|
+
"relative",
|
|
42
|
+
"z-50",
|
|
43
|
+
"max-h-(--radix-context-menu-content-available-height)",
|
|
44
|
+
"origin-(--radix-context-menu-content-transform-origin)",
|
|
45
|
+
"overflow-x-hidden",
|
|
46
|
+
"overflow-y-auto",
|
|
47
|
+
"rounded-uk-md",
|
|
48
|
+
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
49
|
+
"liquid-dark:liquid-dark-bg",
|
|
50
|
+
"liquid-light:liquid-light-bg",
|
|
51
|
+
],
|
|
52
|
+
className,
|
|
53
|
+
)}
|
|
54
|
+
{...props}
|
|
55
|
+
/>
|
|
56
|
+
</ContextMenuPrimitive.Portal>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function ContextMenuGroup({
|
|
61
|
+
className,
|
|
62
|
+
...props
|
|
63
|
+
}: ComponentProps<typeof ContextMenuPrimitive.Group>) {
|
|
64
|
+
return (
|
|
65
|
+
<ContextMenuPrimitive.Group
|
|
66
|
+
data-slot="context-menu-group"
|
|
67
|
+
className={cn("space-y-xs", className)}
|
|
68
|
+
{...props}
|
|
69
|
+
/>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function ContextMenuItem({
|
|
74
|
+
className,
|
|
75
|
+
inset,
|
|
76
|
+
variant = "default",
|
|
77
|
+
...props
|
|
78
|
+
}: ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
79
|
+
inset?: boolean;
|
|
80
|
+
variant?: "default" | "destructive";
|
|
81
|
+
}) {
|
|
82
|
+
return (
|
|
83
|
+
<ContextMenuPrimitive.Item
|
|
84
|
+
data-slot="context-menu-item"
|
|
85
|
+
data-inset={inset}
|
|
86
|
+
data-variant={variant}
|
|
87
|
+
className={cn(
|
|
88
|
+
[
|
|
89
|
+
"w-full",
|
|
90
|
+
"flex",
|
|
91
|
+
"gap-md",
|
|
92
|
+
"items-center",
|
|
93
|
+
"px-sm",
|
|
94
|
+
"py-xs",
|
|
95
|
+
"relative",
|
|
96
|
+
"cursor-default",
|
|
97
|
+
"rounded-uk-xs",
|
|
98
|
+
"text-uk-sm",
|
|
99
|
+
"leading-uk-sm",
|
|
100
|
+
"outline-hidden",
|
|
101
|
+
"select-none",
|
|
102
|
+
"hover:bg-bg-tertiary",
|
|
103
|
+
"data-[disabled]:pointer-events-none",
|
|
104
|
+
"data-[disabled]:text-bg-quaternary",
|
|
105
|
+
"[&_svg]:pointer-events-none",
|
|
106
|
+
"[&_svg]:shrink-0",
|
|
107
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
108
|
+
"[&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
109
|
+
variant === "destructive" && "text-text-danger",
|
|
110
|
+
],
|
|
111
|
+
className,
|
|
112
|
+
)}
|
|
113
|
+
{...props}
|
|
114
|
+
/>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function ContextMenuCheckboxItem({
|
|
119
|
+
className,
|
|
120
|
+
children,
|
|
121
|
+
checked,
|
|
122
|
+
...props
|
|
123
|
+
}: ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>) {
|
|
124
|
+
return (
|
|
125
|
+
<ContextMenuPrimitive.CheckboxItem
|
|
126
|
+
data-slot="context-menu-checkbox-item"
|
|
127
|
+
className={cn(
|
|
128
|
+
[
|
|
129
|
+
"w-full",
|
|
130
|
+
"flex",
|
|
131
|
+
"gap-md",
|
|
132
|
+
"items-center",
|
|
133
|
+
"pr-md",
|
|
134
|
+
"pl-[calc(var(--spacing-xl)*1.8)]",
|
|
135
|
+
"py-xs",
|
|
136
|
+
"relative",
|
|
137
|
+
"cursor-default",
|
|
138
|
+
"rounded-uk-xs",
|
|
139
|
+
"text-uk-sm",
|
|
140
|
+
"leading-uk-sm",
|
|
141
|
+
"outline-hidden",
|
|
142
|
+
"select-none",
|
|
143
|
+
"hover:bg-bg-tertiary",
|
|
144
|
+
"data-[disabled]:pointer-events-none",
|
|
145
|
+
"data-[disabled]:text-bg-quaternary",
|
|
146
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
147
|
+
"[&_svg]:pointer-events-none",
|
|
148
|
+
"[&_svg]:shrink-0",
|
|
149
|
+
],
|
|
150
|
+
className,
|
|
151
|
+
)}
|
|
152
|
+
checked={checked}
|
|
153
|
+
{...props}
|
|
154
|
+
>
|
|
155
|
+
<span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
156
|
+
<ContextMenuPrimitive.ItemIndicator>
|
|
157
|
+
<CheckIcon className="size-4" />
|
|
158
|
+
</ContextMenuPrimitive.ItemIndicator>
|
|
159
|
+
</span>
|
|
160
|
+
{children}
|
|
161
|
+
</ContextMenuPrimitive.CheckboxItem>
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function ContextMenuRadioGroup({
|
|
166
|
+
...props
|
|
167
|
+
}: ComponentProps<typeof ContextMenuPrimitive.RadioGroup>) {
|
|
168
|
+
return <ContextMenuPrimitive.RadioGroup data-slot="context-menu-radio-group" {...props} />;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function ContextMenuRadioItem({
|
|
172
|
+
className,
|
|
173
|
+
children,
|
|
174
|
+
...props
|
|
175
|
+
}: ComponentProps<typeof ContextMenuPrimitive.RadioItem>) {
|
|
176
|
+
return (
|
|
177
|
+
<ContextMenuPrimitive.RadioItem
|
|
178
|
+
data-slot="context-menu-radio-item"
|
|
179
|
+
className={cn(
|
|
180
|
+
[
|
|
181
|
+
"w-full",
|
|
182
|
+
"hover:bg-bg-tertiary",
|
|
183
|
+
"outline-hidden",
|
|
184
|
+
"relative",
|
|
185
|
+
"flex",
|
|
186
|
+
"cursor-default",
|
|
187
|
+
"select-none",
|
|
188
|
+
"items-center",
|
|
189
|
+
"gap-md",
|
|
190
|
+
"rounded-uk-xs",
|
|
191
|
+
"py-xs",
|
|
192
|
+
"pl-[calc(var(--spacing-xl)*1.8)]",
|
|
193
|
+
"pr-md",
|
|
194
|
+
"text-uk-sm",
|
|
195
|
+
"leading-uk-sm",
|
|
196
|
+
"data-[disabled]:pointer-events-none",
|
|
197
|
+
"data-[disabled]:text-bg-quaternary",
|
|
198
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
199
|
+
"[&_svg]:pointer-events-none",
|
|
200
|
+
"[&_svg]:shrink-0",
|
|
201
|
+
],
|
|
202
|
+
className,
|
|
203
|
+
)}
|
|
204
|
+
{...props}
|
|
205
|
+
>
|
|
206
|
+
<span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
207
|
+
<ContextMenuPrimitive.ItemIndicator>
|
|
208
|
+
<CircleIcon className="size-2 fill-current" />
|
|
209
|
+
</ContextMenuPrimitive.ItemIndicator>
|
|
210
|
+
</span>
|
|
211
|
+
{children}
|
|
212
|
+
</ContextMenuPrimitive.RadioItem>
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function ContextMenuLabel({
|
|
217
|
+
className,
|
|
218
|
+
inset,
|
|
219
|
+
...props
|
|
220
|
+
}: ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
221
|
+
inset?: boolean;
|
|
222
|
+
}) {
|
|
223
|
+
return (
|
|
224
|
+
<ContextMenuPrimitive.Label
|
|
225
|
+
data-slot="context-menu-label"
|
|
226
|
+
data-inset={inset}
|
|
227
|
+
className={cn("text-text-secondary text-uk-sm leading-uk-sm pb-lg pt-xs px-sm", className)}
|
|
228
|
+
{...props}
|
|
229
|
+
/>
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function ContextMenuSeparator({
|
|
234
|
+
className,
|
|
235
|
+
...props
|
|
236
|
+
}: ComponentProps<typeof ContextMenuPrimitive.Separator>) {
|
|
237
|
+
return (
|
|
238
|
+
<ContextMenuPrimitive.Separator
|
|
239
|
+
data-slot="context-menu-separator"
|
|
240
|
+
className={cn("bg-line-primary my-lg pointer-events-none h-px", className)}
|
|
241
|
+
{...props}
|
|
242
|
+
/>
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function ContextMenuShortcut({ className, ...props }: ComponentProps<"span">) {
|
|
247
|
+
return (
|
|
248
|
+
<span
|
|
249
|
+
data-slot="context-menu-shortcut"
|
|
250
|
+
className={cn("text-text-tertiary text-uk-sm leading-uk-sm ml-auto", className)}
|
|
251
|
+
{...props}
|
|
252
|
+
/>
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function ContextMenuSub({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Sub>) {
|
|
257
|
+
return <ContextMenuPrimitive.Sub data-slot="context-menu-sub" {...props} />;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function ContextMenuSubTrigger({
|
|
261
|
+
className,
|
|
262
|
+
inset,
|
|
263
|
+
children,
|
|
264
|
+
...props
|
|
265
|
+
}: ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
266
|
+
inset?: boolean;
|
|
267
|
+
}) {
|
|
268
|
+
return (
|
|
269
|
+
<ContextMenuPrimitive.SubTrigger
|
|
270
|
+
data-slot="context-menu-sub-trigger"
|
|
271
|
+
data-inset={inset}
|
|
272
|
+
className={cn(
|
|
273
|
+
"w-full",
|
|
274
|
+
"flex",
|
|
275
|
+
"gap-md",
|
|
276
|
+
"items-center",
|
|
277
|
+
"px-sm",
|
|
278
|
+
"py-xs",
|
|
279
|
+
"relative",
|
|
280
|
+
"cursor-default",
|
|
281
|
+
"rounded-uk-xs",
|
|
282
|
+
"text-uk-sm",
|
|
283
|
+
"leading-uk-sm",
|
|
284
|
+
"outline-hidden",
|
|
285
|
+
"select-none",
|
|
286
|
+
"hover:bg-bg-tertiary",
|
|
287
|
+
"data-[state=open]:bg-bg-tertiary",
|
|
288
|
+
"data-[disabled]:pointer-events-none",
|
|
289
|
+
"data-[disabled]:text-bg-quaternary",
|
|
290
|
+
"[&_svg]:pointer-events-none",
|
|
291
|
+
"[&_svg]:shrink-0",
|
|
292
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
293
|
+
"[&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
294
|
+
className,
|
|
295
|
+
)}
|
|
296
|
+
{...props}
|
|
297
|
+
>
|
|
298
|
+
{children}
|
|
299
|
+
<ChevronRightIcon className="ml-auto size-4" />
|
|
300
|
+
</ContextMenuPrimitive.SubTrigger>
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function ContextMenuSubContent({
|
|
305
|
+
className,
|
|
306
|
+
...props
|
|
307
|
+
}: ComponentProps<typeof ContextMenuPrimitive.SubContent>) {
|
|
308
|
+
return (
|
|
309
|
+
<ContextMenuPrimitive.SubContent
|
|
310
|
+
data-slot="context-menu-sub-content"
|
|
311
|
+
className={cn(
|
|
312
|
+
"bg-bg-primary",
|
|
313
|
+
"p-md",
|
|
314
|
+
"data-[state=open]:animate-in",
|
|
315
|
+
"data-[state=closed]:animate-out",
|
|
316
|
+
"data-[state=closed]:fade-out-0",
|
|
317
|
+
"data-[state=open]:fade-in-0",
|
|
318
|
+
"data-[state=closed]:zoom-out-95",
|
|
319
|
+
"data-[state=open]:zoom-in-95",
|
|
320
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
321
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
322
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
323
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
324
|
+
"relative",
|
|
325
|
+
"z-50",
|
|
326
|
+
"max-h-(--radix-context-menu-content-available-height)",
|
|
327
|
+
"origin-(--radix-context-menu-content-transform-origin)",
|
|
328
|
+
"overflow-x-hidden",
|
|
329
|
+
"overflow-y-auto",
|
|
330
|
+
"rounded-uk-md",
|
|
331
|
+
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
332
|
+
"liquid-dark:liquid-dark-bg",
|
|
333
|
+
"liquid-light:liquid-light-bg",
|
|
334
|
+
className,
|
|
335
|
+
)}
|
|
336
|
+
{...props}
|
|
337
|
+
/>
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export {
|
|
342
|
+
ContextMenu,
|
|
343
|
+
ContextMenuPortal,
|
|
344
|
+
ContextMenuTrigger,
|
|
345
|
+
ContextMenuContent,
|
|
346
|
+
ContextMenuGroup,
|
|
347
|
+
ContextMenuLabel,
|
|
348
|
+
ContextMenuItem,
|
|
349
|
+
ContextMenuCheckboxItem,
|
|
350
|
+
ContextMenuRadioGroup,
|
|
351
|
+
ContextMenuRadioItem,
|
|
352
|
+
ContextMenuSeparator,
|
|
353
|
+
ContextMenuShortcut,
|
|
354
|
+
ContextMenuSub,
|
|
355
|
+
ContextMenuSubTrigger,
|
|
356
|
+
ContextMenuSubContent,
|
|
357
|
+
};
|
|
358
|
+
|
package/src/ui/index.ts
CHANGED
|
@@ -11,9 +11,11 @@ export * from "./sheet";
|
|
|
11
11
|
export * from "./popover";
|
|
12
12
|
export * from "./avatar";
|
|
13
13
|
export * from "./tooltip";
|
|
14
|
+
export * from "./separator";
|
|
14
15
|
export * from "./toast";
|
|
15
16
|
export * from "./textarea";
|
|
16
17
|
export * from "./dropdown";
|
|
18
|
+
export * from "./context-menu";
|
|
17
19
|
export * from "./toggle";
|
|
18
20
|
export * from "./toggle-buttons";
|
|
19
21
|
export * from "./toggle-group";
|
|
@@ -8,48 +8,49 @@ interface EulerRadInputProps extends Omit<VectorInputProps, "value" | "labels" |
|
|
|
8
8
|
display?: "deg" | "pi" | "rad";
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
const EulerRadInput = forwardRef<HTMLDivElement, EulerRadInputProps>(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return value;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
);
|
|
11
|
+
const EulerRadInput = forwardRef<HTMLDivElement, EulerRadInputProps>(function EulerRadInput(
|
|
12
|
+
{ value, onValuesChange, display = "rad", ...props },
|
|
13
|
+
ref,
|
|
14
|
+
) {
|
|
15
|
+
const displayValues = useMemo(() => {
|
|
16
|
+
if (display === "deg") {
|
|
17
|
+
return value.map((v) => (v * 180) / Math.PI) as [number, number, number];
|
|
18
|
+
} else if (display === "pi") {
|
|
19
|
+
return value.map((v) => v / Math.PI) as [number, number, number];
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
22
|
+
}, [value, display]);
|
|
23
|
+
|
|
24
|
+
const handleChange = (displayVals: number[]) => {
|
|
25
|
+
let radValues: [number, number, number];
|
|
26
|
+
if (display === "deg") {
|
|
27
|
+
radValues = displayVals.map((v) => (v * Math.PI) / 180) as [number, number, number];
|
|
28
|
+
} else if (display === "pi") {
|
|
29
|
+
radValues = displayVals.map((v) => v * Math.PI) as [number, number, number];
|
|
30
|
+
} else {
|
|
31
|
+
radValues = displayVals as [number, number, number];
|
|
32
|
+
}
|
|
33
|
+
onValuesChange?.(radValues);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const unitSymbol = useMemo(() => {
|
|
37
|
+
if (display === "deg") return "°";
|
|
38
|
+
if (display === "pi") return "π";
|
|
39
|
+
return "rad";
|
|
40
|
+
}, [display]);
|
|
41
|
+
|
|
42
|
+
const labels = [`x${unitSymbol}`, `y${unitSymbol}`, `z${unitSymbol}`];
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<VectorInput
|
|
46
|
+
ref={ref}
|
|
47
|
+
value={displayValues}
|
|
48
|
+
onValuesChange={handleChange}
|
|
49
|
+
labels={labels}
|
|
50
|
+
{...props}
|
|
51
|
+
/>
|
|
52
|
+
);
|
|
53
|
+
});
|
|
53
54
|
|
|
54
55
|
export { EulerRadInput };
|
|
55
56
|
export type { EulerRadInputProps };
|
|
@@ -13,7 +13,10 @@ interface PresetsRadInputProps extends Omit<RadInputProps, "value" | "onChange">
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const PresetsRadInput = forwardRef<HTMLDivElement, PresetsRadInputProps>(
|
|
16
|
-
function PresetsRadInput(
|
|
16
|
+
function PresetsRadInput(
|
|
17
|
+
{ presets, value = 0, onChange, display = "rad", size, className, ...props },
|
|
18
|
+
ref,
|
|
19
|
+
) {
|
|
17
20
|
const [preset, setPreset] = useState(value);
|
|
18
21
|
|
|
19
22
|
const handleValueChange = (newValue: number) => {
|
|
@@ -74,4 +77,4 @@ export const PresetsRadInput = forwardRef<HTMLDivElement, PresetsRadInputProps>(
|
|
|
74
77
|
</div>
|
|
75
78
|
);
|
|
76
79
|
},
|
|
77
|
-
);
|
|
80
|
+
);
|
|
@@ -21,6 +21,7 @@ interface DockLayoutViewProps {
|
|
|
21
21
|
topClassName?: string;
|
|
22
22
|
bottomClassName?: string;
|
|
23
23
|
contentClassName?: string;
|
|
24
|
+
hideUI?: boolean;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export const DockLayoutView = ({
|
|
@@ -35,18 +36,28 @@ export const DockLayoutView = ({
|
|
|
35
36
|
topClassName,
|
|
36
37
|
bottomClassName,
|
|
37
38
|
contentClassName,
|
|
39
|
+
hideUI = false,
|
|
38
40
|
}: DockLayoutViewProps) => {
|
|
41
|
+
const uiVisibilityClass = hideUI ? "invisible pointer-events-none" : "";
|
|
42
|
+
|
|
39
43
|
return (
|
|
40
44
|
<DockLayout className={className}>
|
|
41
|
-
|
|
45
|
+
<DockLayoutContent className={contentClassName}>{children}</DockLayoutContent>
|
|
46
|
+
|
|
47
|
+
{top && (
|
|
48
|
+
<DockLayoutTop className={`${topClassName} ${uiVisibilityClass}`}>{top}</DockLayoutTop>
|
|
49
|
+
)}
|
|
42
50
|
|
|
43
|
-
<div className=
|
|
51
|
+
<div className={`flex h-full flex-row justify-between overflow-hidden ${uiVisibilityClass}`}>
|
|
44
52
|
{left && <DockLayoutLeft className={leftClassName}>{left}</DockLayoutLeft>}
|
|
45
|
-
<DockLayoutContent className={contentClassName}>{children}</DockLayoutContent>
|
|
46
53
|
{right && <DockLayoutRight className={rightClassName}>{right}</DockLayoutRight>}
|
|
47
54
|
</div>
|
|
48
55
|
|
|
49
|
-
{bottom &&
|
|
56
|
+
{bottom && (
|
|
57
|
+
<DockLayoutBottom className={`${bottomClassName} ${uiVisibilityClass}`}>
|
|
58
|
+
{bottom}
|
|
59
|
+
</DockLayoutBottom>
|
|
60
|
+
)}
|
|
50
61
|
</DockLayout>
|
|
51
62
|
);
|
|
52
63
|
};
|
|
@@ -10,7 +10,10 @@ export const DockLayout = forwardRef<HTMLDivElement, ComponentProps<"div">>(
|
|
|
10
10
|
<div
|
|
11
11
|
ref={ref}
|
|
12
12
|
{...props}
|
|
13
|
-
className={cn(
|
|
13
|
+
className={cn(
|
|
14
|
+
"relative flex h-full w-full flex-col justify-between overflow-hidden",
|
|
15
|
+
className,
|
|
16
|
+
)}
|
|
14
17
|
/>
|
|
15
18
|
);
|
|
16
19
|
},
|
|
@@ -27,7 +30,7 @@ export function DockLayoutContent({ className, ...props }: Readonly<ComponentPro
|
|
|
27
30
|
<div
|
|
28
31
|
{...props}
|
|
29
32
|
className={cn(
|
|
30
|
-
"
|
|
33
|
+
"absolute inset-0 z-0 flex flex-1 flex-col items-center justify-center overflow-auto",
|
|
31
34
|
className,
|
|
32
35
|
)}
|
|
33
36
|
/>
|
|
@@ -40,7 +43,7 @@ export function DockLayoutLeft({ className, asChild, ...props }: Readonly<DockLa
|
|
|
40
43
|
<Comp
|
|
41
44
|
{...props}
|
|
42
45
|
className={cn(
|
|
43
|
-
"bg-bg-primary flex h-full flex-shrink-0 flex-col items-start gap-4",
|
|
46
|
+
"bg-bg-primary z-20 flex h-full flex-shrink-0 flex-col items-start gap-4",
|
|
44
47
|
className,
|
|
45
48
|
)}
|
|
46
49
|
/>
|
|
@@ -64,7 +67,10 @@ export function DockLayoutRight({ className, asChild, ...props }: Readonly<DockL
|
|
|
64
67
|
return (
|
|
65
68
|
<Comp
|
|
66
69
|
{...props}
|
|
67
|
-
className={cn(
|
|
70
|
+
className={cn(
|
|
71
|
+
"bg-bg-primary z-20 flex h-full flex-shrink-0 flex-col items-end gap-4",
|
|
72
|
+
className,
|
|
73
|
+
)}
|
|
68
74
|
/>
|
|
69
75
|
);
|
|
70
76
|
}
|
|
@@ -76,7 +82,10 @@ export const DockLayoutBottom = forwardRef<HTMLDivElement, DockLayoutChildProps>
|
|
|
76
82
|
<Comp
|
|
77
83
|
ref={ref}
|
|
78
84
|
{...props}
|
|
79
|
-
className={cn(
|
|
85
|
+
className={cn(
|
|
86
|
+
"bg-bg-primary z-20 inline-flex w-full flex-shrink-0 justify-center",
|
|
87
|
+
className,
|
|
88
|
+
)}
|
|
80
89
|
/>
|
|
81
90
|
);
|
|
82
91
|
},
|
|
@@ -25,6 +25,18 @@ interface LiquidLayoutViewProps {
|
|
|
25
25
|
children?: ReactNode;
|
|
26
26
|
/** Additional CSS classes to apply to the root element */
|
|
27
27
|
className?: string;
|
|
28
|
+
/** Additional CSS classes to apply to the left slot */
|
|
29
|
+
leftClassName?: string;
|
|
30
|
+
/** Additional CSS classes to apply to the right slot */
|
|
31
|
+
rightClassName?: string;
|
|
32
|
+
/** Additional CSS classes to apply to the top slot */
|
|
33
|
+
topClassName?: string;
|
|
34
|
+
/** Additional CSS classes to apply to the bottom slot */
|
|
35
|
+
bottomClassName?: string;
|
|
36
|
+
/** Additional CSS classes to apply to the content slot */
|
|
37
|
+
contentClassName?: string;
|
|
38
|
+
/** Hide all UI panels */
|
|
39
|
+
hideUI?: boolean;
|
|
28
40
|
}
|
|
29
41
|
|
|
30
42
|
/**
|
|
@@ -41,16 +53,43 @@ export const LiquidLayoutView = ({
|
|
|
41
53
|
bottom,
|
|
42
54
|
children,
|
|
43
55
|
className,
|
|
56
|
+
leftClassName,
|
|
57
|
+
rightClassName,
|
|
58
|
+
topClassName,
|
|
59
|
+
bottomClassName,
|
|
60
|
+
contentClassName,
|
|
61
|
+
hideUI = false,
|
|
44
62
|
}: LiquidLayoutViewProps) => {
|
|
63
|
+
const uiVisibilityClass = hideUI ? "invisible pointer-events-none" : "";
|
|
64
|
+
|
|
45
65
|
return (
|
|
46
66
|
<LiquidLayout className={className}>
|
|
47
|
-
<LiquidLayoutContent
|
|
67
|
+
<LiquidLayoutContent
|
|
68
|
+
className={`absolute inset-0 z-0 flex flex-col items-center justify-center ${contentClassName || ""}`}
|
|
69
|
+
>
|
|
48
70
|
{children}
|
|
49
71
|
</LiquidLayoutContent>
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
72
|
+
|
|
73
|
+
{bottom && (
|
|
74
|
+
<LiquidLayoutBottom className={`z-20 mt-4 ${bottomClassName || ""} ${uiVisibilityClass}`}>
|
|
75
|
+
{bottom}
|
|
76
|
+
</LiquidLayoutBottom>
|
|
77
|
+
)}
|
|
78
|
+
{right && (
|
|
79
|
+
<LiquidLayoutRight className={`z-20 max-w-75 ${rightClassName || ""} ${uiVisibilityClass}`}>
|
|
80
|
+
{right}
|
|
81
|
+
</LiquidLayoutRight>
|
|
82
|
+
)}
|
|
83
|
+
{top && (
|
|
84
|
+
<LiquidLayoutTop className={`z-20 ${topClassName || ""} ${uiVisibilityClass}`}>
|
|
85
|
+
{top}
|
|
86
|
+
</LiquidLayoutTop>
|
|
87
|
+
)}
|
|
88
|
+
{left && (
|
|
89
|
+
<LiquidLayoutLeft className={`z-20 max-w-75 ${leftClassName || ""} ${uiVisibilityClass}`}>
|
|
90
|
+
{left}
|
|
91
|
+
</LiquidLayoutLeft>
|
|
92
|
+
)}
|
|
54
93
|
</LiquidLayout>
|
|
55
94
|
);
|
|
56
95
|
};
|