@vuer-ai/vuer-uikit 0.0.120 → 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 +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 +83 -82
- package/dist/auth/components/index.mjs +82 -81
- package/dist/auth/components/user-avatar/index.cjs +83 -82
- package/dist/auth/components/user-avatar/index.mjs +82 -81
- package/dist/auth/index.cjs +83 -82
- package/dist/auth/index.mjs +82 -81
- 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-EOLUDKZ3.mjs → chunk-3P2OP4KO.mjs} +24 -46
- package/dist/{chunk-NMRFBO43.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-TB5L3GBP.cjs → chunk-4G2LN6XU.cjs} +138 -107
- 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-Q7VP2WSX.mjs → chunk-4YVKJKWV.mjs} +2 -2
- 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-64VVW5YR.mjs → chunk-6NSLYQ35.mjs} +1 -1
- 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-5ARBIWXX.cjs → chunk-7TXGEIV3.cjs} +10 -10
- 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-35ZN6IW7.mjs → chunk-BYZ7HIIK.mjs} +1 -1
- package/dist/{chunk-6C53NKMF.mjs → chunk-C4U5BMQH.mjs} +1 -1
- package/dist/{chunk-2IS7TXTN.mjs → chunk-CENP2PIB.mjs} +1 -1
- 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-GRXUYMZJ.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-CWS5PF67.cjs → chunk-D5WTSBUX.cjs} +3 -3
- package/dist/{chunk-ASZIBFA6.cjs → chunk-DG2EVWIW.cjs} +10 -10
- package/dist/chunk-DGJ7E77I.mjs +23 -0
- package/dist/{chunk-SR3M2R3S.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-PRNBDGOF.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-QXFFRQ7E.mjs → chunk-G45SP3DA.mjs} +90 -60
- package/dist/{chunk-HB65PF7F.cjs → chunk-GBRIW266.cjs} +2 -2
- 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-H7RH4CZ7.cjs → chunk-HVACIZB5.cjs} +7 -7
- 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-KPGZOX2A.cjs → chunk-NHFIDL5X.cjs} +5 -5
- 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-7A5EMDZH.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-VYINXXYX.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 +88 -86
- package/dist/dial/DialPanel.d.cts +2 -3
- package/dist/dial/DialPanel.d.ts +2 -3
- package/dist/dial/DialPanel.mjs +87 -85
- package/dist/dial/DialProvider.d.cts +16 -51
- package/dist/dial/DialProvider.d.ts +16 -51
- package/dist/dial/index.cjs +104 -102
- package/dist/dial/index.d.cts +2 -1
- package/dist/dial/index.d.ts +2 -1
- package/dist/dial/index.mjs +87 -85
- 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 +92 -90
- 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 +87 -85
- package/dist/dial/wrapped-inputs/DialInputs.cjs +101 -99
- 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 +87 -85
- 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 +83 -82
- 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 +82 -81
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +88 -86
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +87 -85
- package/dist/dial/wrapped-inputs/index.cjs +108 -106
- 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 +87 -85
- 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.d.cts +1 -1
- package/dist/highlight-cursor/enhanced-components.d.ts +1 -1
- 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 +4 -4
- package/dist/hooks/index.mjs +2 -2
- package/dist/hooks/useIsMobile.cjs +2 -2
- package/dist/hooks/useIsMobile.mjs +1 -1
- package/dist/index.cjs +463 -369
- package/dist/index.css +0 -63
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.mjs +87 -85
- 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.d.cts +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.mjs +3 -3
- package/dist/ui/button.cjs +5 -5
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.mjs +3 -3
- package/dist/ui/card.cjs +11 -10
- package/dist/ui/card.d.cts +14 -2
- package/dist/ui/card.d.ts +14 -2
- package/dist/ui/card.mjs +4 -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/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 +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/icons/index.cjs +9 -9
- package/dist/ui/icons/index.mjs +1 -1
- package/dist/ui/index.cjs +423 -330
- package/dist/ui/index.d.cts +5 -3
- package/dist/ui/index.d.ts +5 -3
- package/dist/ui/index.mjs +81 -80
- package/dist/ui/inputs/color-input.cjs +5 -5
- package/dist/ui/inputs/color-input.mjs +4 -4
- package/dist/ui/inputs/index.cjs +61 -61
- package/dist/ui/inputs/index.mjs +22 -22
- package/dist/ui/inputs/input-numbers.cjs +5 -5
- 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.d.cts +2 -1
- package/dist/ui/layouts/dock-layout/DockLayoutView.d.ts +2 -1
- 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 +18 -18
- 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.d.cts +13 -1
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.d.ts +13 -1
- 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.d.cts +1 -1
- package/dist/ui/progress.d.ts +1 -1
- 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.d.cts +26 -13
- package/dist/ui/sheet.d.ts +26 -13
- 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.d.cts +21 -6
- package/dist/ui/tabs.d.ts +21 -6
- 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/ThemeProvider.d.cts +1 -1
- package/dist/ui/theme/ThemeProvider.d.ts +1 -1
- package/dist/ui/theme/ThemeToggles.cjs +7 -7
- package/dist/ui/theme/ThemeToggles.mjs +5 -5
- package/dist/ui/theme/index.cjs +7 -7
- package/dist/ui/theme/index.mjs +5 -5
- 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 +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.d.cts +2 -2
- package/dist/ui/tooltip.d.ts +2 -2
- 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 +7 -5
- 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 +5 -3
- 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 +46 -17
- 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 +8 -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 +16 -15
- package/dist/ui/waterfall/index.mjs +15 -14
- package/package.json +2 -1
- package/src/auth/components/index.ts +1 -1
- package/src/dial/DialPanel.tsx +52 -27
- 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/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/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-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-LAPOK2L4.mjs +0 -193
- package/dist/chunk-MFYDZKQF.mjs +0 -28
- package/dist/chunk-Q3CJUGX3.cjs +0 -21
- package/dist/chunk-RTYZO2AC.cjs +0 -30
- package/dist/chunk-V5T6XOSB.cjs +0 -222
- package/dist/chunk-XHJDRQD7.mjs +0 -29
- package/dist/chunk-Y2XVZEXM.mjs +0 -45
- 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
|
@@ -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
|
};
|
package/src/ui/progress.tsx
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2
|
+
import { type ComponentProps } from "react";
|
|
3
3
|
|
|
4
|
-
import { cn } from "../hooks"
|
|
4
|
+
import { cn } from "../hooks";
|
|
5
5
|
|
|
6
|
-
function Progress({
|
|
7
|
-
className,
|
|
8
|
-
value,
|
|
9
|
-
...props
|
|
10
|
-
}: ComponentProps<typeof ProgressPrimitive.Root>) {
|
|
6
|
+
function Progress({ className, value, ...props }: ComponentProps<typeof ProgressPrimitive.Root>) {
|
|
11
7
|
return (
|
|
12
8
|
<ProgressPrimitive.Root
|
|
13
9
|
data-slot="progress"
|
|
14
|
-
className={cn(
|
|
15
|
-
"bg-bg-secondary relative h-2 w-full overflow-hidden rounded-uk-xl",
|
|
16
|
-
className
|
|
17
|
-
)}
|
|
10
|
+
className={cn("bg-bg-secondary rounded-uk-xl relative h-2 w-full overflow-hidden", className)}
|
|
18
11
|
{...props}
|
|
19
12
|
>
|
|
20
13
|
<ProgressPrimitive.Indicator
|
|
@@ -23,7 +16,7 @@ function Progress({
|
|
|
23
16
|
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
|
|
24
17
|
/>
|
|
25
18
|
</ProgressPrimitive.Root>
|
|
26
|
-
)
|
|
19
|
+
);
|
|
27
20
|
}
|
|
28
21
|
|
|
29
|
-
export { Progress }
|
|
22
|
+
export { Progress };
|
package/src/ui/separator.tsx
CHANGED
package/src/ui/sheet.tsx
CHANGED
|
@@ -2,75 +2,29 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
|
2
2
|
import { XIcon } from "lucide-react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
5
|
-
import { cn
|
|
5
|
+
import { cn } from "../hooks";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Sheet root using dialog primitives.
|
|
9
9
|
*/
|
|
10
|
-
function
|
|
10
|
+
function Sheet({ ...props }: ComponentProps<typeof SheetPrimitive.Root>) {
|
|
11
11
|
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
function SheetFallback({ ...props }: ComponentProps<"div">) {
|
|
15
|
-
return <div data-slot="sheet" {...props} />;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const Sheet = createClientOnlyComponent(SheetRoot, SheetFallback);
|
|
19
|
-
|
|
20
14
|
/**
|
|
21
15
|
* Trigger element that opens the sheet.
|
|
22
16
|
*/
|
|
23
|
-
function
|
|
17
|
+
function SheetTrigger({ ...props }: ComponentProps<typeof SheetPrimitive.Trigger>) {
|
|
24
18
|
return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;
|
|
25
19
|
}
|
|
26
20
|
|
|
27
|
-
function SheetTriggerFallback({
|
|
28
|
-
asChild,
|
|
29
|
-
children,
|
|
30
|
-
...props
|
|
31
|
-
}: ComponentProps<"button"> & { asChild?: boolean }) {
|
|
32
|
-
if (asChild) {
|
|
33
|
-
return <>{children}</>;
|
|
34
|
-
}
|
|
35
|
-
return (
|
|
36
|
-
<button data-slot="sheet-trigger" {...props}>
|
|
37
|
-
{children}
|
|
38
|
-
</button>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const SheetTrigger = createClientOnlyComponent(SheetTriggerRoot, SheetTriggerFallback);
|
|
43
|
-
|
|
44
21
|
/**
|
|
45
22
|
* Close control for the sheet.
|
|
46
23
|
*/
|
|
47
|
-
function
|
|
48
|
-
return
|
|
49
|
-
<SheetPrimitive.Close
|
|
50
|
-
data-slot="sheet-close"
|
|
51
|
-
className={cn("focus:ring-0 focus:outline-none")}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
24
|
+
function SheetClose({ ...props }: ComponentProps<typeof SheetPrimitive.Close>) {
|
|
25
|
+
return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;
|
|
55
26
|
}
|
|
56
27
|
|
|
57
|
-
function SheetCloseFallback({
|
|
58
|
-
asChild,
|
|
59
|
-
children,
|
|
60
|
-
...props
|
|
61
|
-
}: ComponentProps<"button"> & { asChild?: boolean }) {
|
|
62
|
-
if (asChild) {
|
|
63
|
-
return <>{children}</>;
|
|
64
|
-
}
|
|
65
|
-
return (
|
|
66
|
-
<button data-slot="sheet-close" className={cn("focus:ring-0 focus:outline-none")} {...props}>
|
|
67
|
-
{children}
|
|
68
|
-
</button>
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const SheetClose = createClientOnlyComponent(SheetCloseRoot, SheetCloseFallback);
|
|
73
|
-
|
|
74
28
|
/**
|
|
75
29
|
* Portal for sheet overlay and content.
|
|
76
30
|
*/
|
|
@@ -97,7 +51,7 @@ function SheetOverlay({ className, ...props }: ComponentProps<typeof SheetPrimit
|
|
|
97
51
|
/**
|
|
98
52
|
* Sliding panel content for the sheet.
|
|
99
53
|
*/
|
|
100
|
-
function
|
|
54
|
+
function SheetContent({
|
|
101
55
|
className,
|
|
102
56
|
children,
|
|
103
57
|
side = "right",
|
|
@@ -111,21 +65,21 @@ function SheetContentRoot({
|
|
|
111
65
|
<SheetPrimitive.Content
|
|
112
66
|
data-slot="sheet-content"
|
|
113
67
|
className={cn(
|
|
114
|
-
"liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out
|
|
68
|
+
"liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
115
69
|
side === "right" &&
|
|
116
|
-
"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-
|
|
70
|
+
"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
117
71
|
side === "left" &&
|
|
118
|
-
"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-
|
|
72
|
+
"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
119
73
|
side === "top" &&
|
|
120
|
-
"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto",
|
|
74
|
+
"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
121
75
|
side === "bottom" &&
|
|
122
|
-
"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto",
|
|
76
|
+
"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
123
77
|
className,
|
|
124
78
|
)}
|
|
125
79
|
{...props}
|
|
126
80
|
>
|
|
127
81
|
{children}
|
|
128
|
-
<SheetPrimitive.Close className="
|
|
82
|
+
<SheetPrimitive.Close className="ring-offset-bg-primary focus:ring-bg-mask data-[state=open]:bg-bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
|
|
129
83
|
<XIcon className="size-4" />
|
|
130
84
|
<span className="sr-only">Close</span>
|
|
131
85
|
</SheetPrimitive.Close>
|
|
@@ -134,38 +88,6 @@ function SheetContentRoot({
|
|
|
134
88
|
);
|
|
135
89
|
}
|
|
136
90
|
|
|
137
|
-
function SheetContentFallback({
|
|
138
|
-
className,
|
|
139
|
-
children,
|
|
140
|
-
side = "right",
|
|
141
|
-
...props
|
|
142
|
-
}: ComponentProps<"div"> & {
|
|
143
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
144
|
-
}) {
|
|
145
|
-
return (
|
|
146
|
-
<div
|
|
147
|
-
data-slot="sheet-content"
|
|
148
|
-
className={cn(
|
|
149
|
-
"liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg bg-bg-primary p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
150
|
-
side === "right" && "inset-y-0 right-0 h-full w-[340px]",
|
|
151
|
-
side === "left" && "inset-y-0 left-0 h-full w-[340px]",
|
|
152
|
-
side === "top" && "inset-x-0 top-0 h-auto",
|
|
153
|
-
side === "bottom" && "inset-x-0 bottom-0 h-auto",
|
|
154
|
-
className,
|
|
155
|
-
)}
|
|
156
|
-
{...props}
|
|
157
|
-
>
|
|
158
|
-
{children}
|
|
159
|
-
<button className="text-icon-primary hover:text-icon-highlight absolute top-4 right-4 disabled:pointer-events-none">
|
|
160
|
-
<XIcon className="size-4" />
|
|
161
|
-
<span className="sr-only">Close</span>
|
|
162
|
-
</button>
|
|
163
|
-
</div>
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const SheetContent = createClientOnlyComponent(SheetContentRoot, SheetContentFallback);
|
|
168
|
-
|
|
169
91
|
/**
|
|
170
92
|
* Header section inside the sheet.
|
|
171
93
|
*/
|
|
@@ -195,7 +117,7 @@ function SheetFooter({ className, ...props }: ComponentProps<"div">) {
|
|
|
195
117
|
/**
|
|
196
118
|
* Title text for the sheet.
|
|
197
119
|
*/
|
|
198
|
-
function
|
|
120
|
+
function SheetTitle({ className, ...props }: ComponentProps<typeof SheetPrimitive.Title>) {
|
|
199
121
|
return (
|
|
200
122
|
<SheetPrimitive.Title
|
|
201
123
|
data-slot="sheet-title"
|
|
@@ -205,22 +127,10 @@ function SheetTitleRoot({ className, ...props }: ComponentProps<typeof SheetPrim
|
|
|
205
127
|
);
|
|
206
128
|
}
|
|
207
129
|
|
|
208
|
-
function SheetTitleFallback({ className, ...props }: ComponentProps<"h2">) {
|
|
209
|
-
return (
|
|
210
|
-
<h2
|
|
211
|
-
data-slot="sheet-title"
|
|
212
|
-
className={cn("text-text-highlight text-uk-xl leading-uk-xl font-medium", className)}
|
|
213
|
-
{...props}
|
|
214
|
-
/>
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
const SheetTitle = createClientOnlyComponent(SheetTitleRoot, SheetTitleFallback);
|
|
219
|
-
|
|
220
130
|
/**
|
|
221
131
|
* Secondary description text for the sheet.
|
|
222
132
|
*/
|
|
223
|
-
function
|
|
133
|
+
function SheetDescription({
|
|
224
134
|
className,
|
|
225
135
|
...props
|
|
226
136
|
}: ComponentProps<typeof SheetPrimitive.Description>) {
|
|
@@ -233,18 +143,6 @@ function SheetDescriptionRoot({
|
|
|
233
143
|
);
|
|
234
144
|
}
|
|
235
145
|
|
|
236
|
-
function SheetDescriptionFallback({ className, ...props }: ComponentProps<"p">) {
|
|
237
|
-
return (
|
|
238
|
-
<p
|
|
239
|
-
data-slot="sheet-description"
|
|
240
|
-
className={cn("text-text-secondary text-uk-md leading-uk-md", className)}
|
|
241
|
-
{...props}
|
|
242
|
-
/>
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
const SheetDescription = createClientOnlyComponent(SheetDescriptionRoot, SheetDescriptionFallback);
|
|
247
|
-
|
|
248
146
|
export {
|
|
249
147
|
Sheet,
|
|
250
148
|
SheetTrigger,
|
package/src/ui/sidebar.tsx
CHANGED
|
@@ -2,15 +2,15 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
2
2
|
import { cva, VariantProps } from "class-variance-authority";
|
|
3
3
|
import { PanelLeftIcon } from "lucide-react";
|
|
4
4
|
import {
|
|
5
|
+
ComponentProps,
|
|
5
6
|
createContext,
|
|
7
|
+
CSSProperties,
|
|
8
|
+
MouseEvent,
|
|
6
9
|
useCallback,
|
|
7
10
|
useContext,
|
|
8
11
|
useEffect,
|
|
9
12
|
useMemo,
|
|
10
13
|
useState,
|
|
11
|
-
CSSProperties,
|
|
12
|
-
ComponentProps,
|
|
13
|
-
MouseEvent,
|
|
14
14
|
} from "react";
|
|
15
15
|
|
|
16
16
|
import { cn } from "../hooks";
|
|
@@ -152,7 +152,10 @@ function Sidebar({
|
|
|
152
152
|
return (
|
|
153
153
|
<div
|
|
154
154
|
data-slot="sidebar"
|
|
155
|
-
className={cn(
|
|
155
|
+
className={cn(
|
|
156
|
+
"bg-bg-primary text-text-primary flex h-full w-(--sidebar-width) flex-col",
|
|
157
|
+
className,
|
|
158
|
+
)}
|
|
156
159
|
{...props}
|
|
157
160
|
>
|
|
158
161
|
{children}
|
|
@@ -187,7 +190,7 @@ function Sidebar({
|
|
|
187
190
|
|
|
188
191
|
return (
|
|
189
192
|
<div
|
|
190
|
-
className="group peer hidden md:block"
|
|
193
|
+
className="group peer text-text-primary hidden md:block"
|
|
191
194
|
data-state={state}
|
|
192
195
|
data-collapsible={state === "collapsed" ? collapsible : ""}
|
|
193
196
|
data-variant={variant}
|
|
@@ -232,7 +235,7 @@ function Sidebar({
|
|
|
232
235
|
}
|
|
233
236
|
|
|
234
237
|
function SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof Button>) {
|
|
235
|
-
const { toggleSidebar
|
|
238
|
+
const { toggleSidebar } = useSidebar();
|
|
236
239
|
|
|
237
240
|
return (
|
|
238
241
|
<Button
|
|
@@ -240,12 +243,7 @@ function SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof
|
|
|
240
243
|
data-slot="sidebar-trigger"
|
|
241
244
|
variant="ghost"
|
|
242
245
|
icon={true}
|
|
243
|
-
className={cn(
|
|
244
|
-
"absolute top-[0px] size-7 transition-[left] duration-200 ease-linear",
|
|
245
|
-
state === "collapsed" && "left-[2px]",
|
|
246
|
-
state === "expanded" && "left-[var(--sidebar-width)]",
|
|
247
|
-
className,
|
|
248
|
-
)}
|
|
246
|
+
className={cn("size-7 transition-[left] duration-200 ease-linear", className)}
|
|
249
247
|
onClick={(event: MouseEvent<HTMLButtonElement>) => {
|
|
250
248
|
onClick?.(event);
|
|
251
249
|
toggleSidebar();
|
|
@@ -288,7 +286,7 @@ function SidebarInset({ className, ...props }: ComponentProps<"main">) {
|
|
|
288
286
|
<main
|
|
289
287
|
data-slot="sidebar-inset"
|
|
290
288
|
className={cn(
|
|
291
|
-
"relative flex w-full flex-1 flex-col",
|
|
289
|
+
"bg-bg-primary relative flex w-full flex-1 flex-col",
|
|
292
290
|
"md:peer-data-[variant=inset]:rounded-uk-xl md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
293
291
|
className,
|
|
294
292
|
)}
|
|
@@ -338,7 +336,7 @@ function SidebarSeparator({ className, ...props }: ComponentProps<typeof Separat
|
|
|
338
336
|
<Separator
|
|
339
337
|
data-slot="sidebar-separator"
|
|
340
338
|
data-sidebar="separator"
|
|
341
|
-
className={cn("bg-line-primary", className)}
|
|
339
|
+
className={cn("bg-line-primary mr-0", className)}
|
|
342
340
|
{...props}
|
|
343
341
|
/>
|
|
344
342
|
);
|
|
@@ -350,7 +348,7 @@ function SidebarContent({ className, ...props }: ComponentProps<"div">) {
|
|
|
350
348
|
data-slot="sidebar-content"
|
|
351
349
|
data-sidebar="content"
|
|
352
350
|
className={cn(
|
|
353
|
-
"px-md
|
|
351
|
+
"px-md flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
354
352
|
className,
|
|
355
353
|
)}
|
|
356
354
|
{...props}
|
|
@@ -454,17 +452,18 @@ function SidebarMenuItem({ className, ...props }: ComponentProps<"li">) {
|
|
|
454
452
|
}
|
|
455
453
|
|
|
456
454
|
const sidebarMenuButtonVariants = cva(
|
|
457
|
-
"peer/menu-button flex w-full items-center gap-md overflow-hidden
|
|
455
|
+
"peer/menu-button flex w-full items-center gap-md overflow-hidden rounded-uk-md p-2 text-left text-uk-lg leading-uk-lg outline-hidden ring-sidebar-ring transition-[width,height,padding] text-text-primary hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-bg-secondary active:text-text-highlight disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium data-[active=true]:bg-bg-secondary data-[active=true]:text-text-highlight group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg:not([class*='size-'])]:size-4 [&>svg:not([class*='size-'])]:shrink-0",
|
|
458
456
|
{
|
|
459
457
|
variants: {
|
|
460
458
|
variant: {
|
|
461
|
-
default: "",
|
|
462
|
-
outline:
|
|
459
|
+
default: "hover:bg-bg-secondary hover:text-secondary",
|
|
460
|
+
outline:
|
|
461
|
+
"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-bg-tertiary hover:text-text-tertiary hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
|
|
463
462
|
},
|
|
464
463
|
size: {
|
|
465
464
|
default: "h-[36px] text-uk-lg leading-uk-lg",
|
|
466
465
|
sm: "h-[30px] text-uk-sm leading-uk-sm",
|
|
467
|
-
lg: "h-[32px] text-uk-lg leading-uk-lg group-data-[collapsible=icon]:p-0!",
|
|
466
|
+
lg: "h-[32px] text-uk-lg leading-uk-lg px-lg py-sm group-data-[collapsible=icon]:p-0!",
|
|
468
467
|
},
|
|
469
468
|
},
|
|
470
469
|
defaultVariants: {
|