@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
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: {
|
package/src/ui/tabs.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { type ComponentProps, createContext, useContext } from "react";
|
|
4
4
|
|
|
5
5
|
import { TabsCursorProvider, useTabsCursor } from "../highlight-cursor/tabs-cursor-context";
|
|
6
|
-
import { cn
|
|
6
|
+
import { cn } from "../hooks";
|
|
7
7
|
|
|
8
8
|
interface TabsContextType {
|
|
9
9
|
size?: "sm" | "base" | "lg";
|
|
@@ -29,7 +29,7 @@ interface TabsProps extends ComponentProps<typeof TabsPrimitive.Root> {
|
|
|
29
29
|
* @param props -
|
|
30
30
|
* @param className -
|
|
31
31
|
* @param size - Control size ("sm" | "base" | "lg"), defaults to "base" */
|
|
32
|
-
function
|
|
32
|
+
function Tabs({ className, size = "base", ...props }: TabsProps) {
|
|
33
33
|
return (
|
|
34
34
|
<TabsContext.Provider value={{ size }}>
|
|
35
35
|
<TabsPrimitive.Root
|
|
@@ -41,16 +41,6 @@ function TabsRoot({ className, size = "base", ...props }: TabsProps) {
|
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
function TabsFallback({ className, size = "base", ...props }: TabsProps & ComponentProps<"div">) {
|
|
45
|
-
return (
|
|
46
|
-
<TabsContext.Provider value={{ size }}>
|
|
47
|
-
<div data-slot="tabs" className={cn("flex w-full flex-col", className)} {...props} />
|
|
48
|
-
</TabsContext.Provider>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const Tabs = createClientOnlyComponent(TabsRoot, TabsFallback);
|
|
53
|
-
|
|
54
44
|
const tabsListVariants = cva(["inline-flex", "items-center", "justify-center"], {
|
|
55
45
|
variants: {
|
|
56
46
|
size: {
|
|
@@ -69,36 +59,38 @@ type TabsListProps = ComponentProps<typeof TabsPrimitive.List>;
|
|
|
69
59
|
/**
|
|
70
60
|
* Container for tab triggers. Emits cursor interactions for visual effects.
|
|
71
61
|
*/
|
|
72
|
-
function
|
|
73
|
-
const { setCursorTarget } = useTabsCursor();
|
|
62
|
+
function TabsList({ className, onMouseLeave, ...props }: TabsListProps) {
|
|
74
63
|
const { size } = useTabsContext();
|
|
75
64
|
return (
|
|
76
65
|
<TabsCursorProvider>
|
|
77
|
-
<
|
|
78
|
-
onMouseLeave={() => setCursorTarget(null)}
|
|
79
|
-
data-slot="tabs-list"
|
|
80
|
-
className={cn(tabsListVariants({ size }), "justify-start", className)}
|
|
81
|
-
{...props}
|
|
82
|
-
/>
|
|
66
|
+
<TabsListInner className={className} size={size} onMouseLeave={onMouseLeave} {...props} />
|
|
83
67
|
</TabsCursorProvider>
|
|
84
68
|
);
|
|
85
69
|
}
|
|
86
70
|
|
|
87
|
-
function
|
|
88
|
-
|
|
71
|
+
function TabsListInner({
|
|
72
|
+
className,
|
|
73
|
+
size,
|
|
74
|
+
onMouseLeave,
|
|
75
|
+
...props
|
|
76
|
+
}: TabsListProps & { size?: "sm" | "base" | "lg" }) {
|
|
77
|
+
const { setCursorTarget } = useTabsCursor();
|
|
78
|
+
|
|
79
|
+
const handleMouseLeave = (e: React.MouseEvent<HTMLDivElement>) => {
|
|
80
|
+
setCursorTarget(null);
|
|
81
|
+
onMouseLeave?.(e);
|
|
82
|
+
};
|
|
83
|
+
|
|
89
84
|
return (
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</TabsCursorProvider>
|
|
85
|
+
<TabsPrimitive.List
|
|
86
|
+
onMouseLeave={handleMouseLeave}
|
|
87
|
+
data-slot="tabs-list"
|
|
88
|
+
className={cn(tabsListVariants({ size }), "justify-start", className)}
|
|
89
|
+
{...props}
|
|
90
|
+
/>
|
|
97
91
|
);
|
|
98
92
|
}
|
|
99
93
|
|
|
100
|
-
const TabsList = createClientOnlyComponent(TabsListRoot, TabsListFallback);
|
|
101
|
-
|
|
102
94
|
const tabsTriggerVariants = cva(
|
|
103
95
|
[
|
|
104
96
|
"inline-flex",
|
|
@@ -114,8 +106,9 @@ const tabsTriggerVariants = cva(
|
|
|
114
106
|
"shrink-0",
|
|
115
107
|
"[&_svg]:shrink-0",
|
|
116
108
|
"outline-none",
|
|
117
|
-
"text-text-
|
|
109
|
+
"text-text-secondary",
|
|
118
110
|
"data-[state=active]:bg-bg-secondary",
|
|
111
|
+
"data-[state=active]:text-text-primary",
|
|
119
112
|
"data-[state=active]:font-medium",
|
|
120
113
|
],
|
|
121
114
|
{
|
|
@@ -137,7 +130,7 @@ type TabsTriggerProps = ComponentProps<typeof TabsPrimitive.Trigger>;
|
|
|
137
130
|
/**
|
|
138
131
|
* Single tab trigger button.
|
|
139
132
|
*/
|
|
140
|
-
function
|
|
133
|
+
function TabsTrigger({ className, ...props }: TabsTriggerProps) {
|
|
141
134
|
const { setCursorTarget } = useTabsCursor();
|
|
142
135
|
const { size } = useTabsContext();
|
|
143
136
|
return (
|
|
@@ -150,27 +143,12 @@ function TabsTriggerRoot({ className, ...props }: TabsTriggerProps) {
|
|
|
150
143
|
);
|
|
151
144
|
}
|
|
152
145
|
|
|
153
|
-
function TabsTriggerFallback({ className, ...props }: TabsTriggerProps & ComponentProps<"button">) {
|
|
154
|
-
const { setCursorTarget } = useTabsCursor();
|
|
155
|
-
const { size } = useTabsContext();
|
|
156
|
-
return (
|
|
157
|
-
<button
|
|
158
|
-
onMouseEnter={(e) => setCursorTarget(e.currentTarget)}
|
|
159
|
-
data-slot="tabs-trigger"
|
|
160
|
-
className={cn(tabsTriggerVariants({ size }), className)}
|
|
161
|
-
{...props}
|
|
162
|
-
/>
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const TabsTrigger = createClientOnlyComponent(TabsTriggerRoot, TabsTriggerFallback);
|
|
167
|
-
|
|
168
146
|
type TabsContentProps = ComponentProps<typeof TabsPrimitive.Content>;
|
|
169
147
|
|
|
170
148
|
/**
|
|
171
149
|
* Content area for a tab panel.
|
|
172
150
|
*/
|
|
173
|
-
function
|
|
151
|
+
function TabsContent({ className, ...props }: TabsContentProps) {
|
|
174
152
|
return (
|
|
175
153
|
<TabsPrimitive.Content
|
|
176
154
|
data-slot="tabs-content"
|
|
@@ -180,13 +158,5 @@ function TabsContentRoot({ className, ...props }: TabsContentProps) {
|
|
|
180
158
|
);
|
|
181
159
|
}
|
|
182
160
|
|
|
183
|
-
function TabsContentFallback({ className, ...props }: TabsContentProps & ComponentProps<"div">) {
|
|
184
|
-
return (
|
|
185
|
-
<div data-slot="tabs-content" className={cn("flex-1 outline-none", className)} {...props} />
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
const TabsContent = createClientOnlyComponent(TabsContentRoot, TabsContentFallback);
|
|
190
|
-
|
|
191
161
|
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
192
162
|
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps };
|
|
@@ -5,7 +5,6 @@ import React, { type ComponentProps } from "react";
|
|
|
5
5
|
import { Button } from "../button";
|
|
6
6
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip";
|
|
7
7
|
import { useTheme } from "./ThemeProvider";
|
|
8
|
-
import { cn } from "../../hooks";
|
|
9
8
|
|
|
10
9
|
type LiquidToggleProps = Omit<ComponentProps<typeof Button>, "onClick" | "children">;
|
|
11
10
|
|
|
@@ -27,7 +26,7 @@ export const LiquidToggle: React.FC<LiquidToggleProps> = ({ className, ...props
|
|
|
27
26
|
{isLiquid ? <PanelsTopLeft size={20} /> : <LayoutTemplate size={20} />}
|
|
28
27
|
</Button>
|
|
29
28
|
</TooltipTrigger>
|
|
30
|
-
<TooltipContent>{isLiquid ? "Dock
|
|
29
|
+
<TooltipContent>{isLiquid ? "Dock Layout" : "Liquid Layout"}</TooltipContent>
|
|
31
30
|
</Tooltip>
|
|
32
31
|
);
|
|
33
32
|
};
|
|
@@ -63,22 +62,3 @@ export const ThemeColorToggle: React.FC<ThemeColorToggleProps> = (props) => {
|
|
|
63
62
|
</Button>
|
|
64
63
|
);
|
|
65
64
|
};
|
|
66
|
-
|
|
67
|
-
type ThemeTogglesProps = {
|
|
68
|
-
className?: string;
|
|
69
|
-
liquidToggleProps?: Omit<LiquidToggleProps, "className">;
|
|
70
|
-
colorToggleProps?: Omit<ThemeColorToggleProps, "className">;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export const ThemeToggles: React.FC<ThemeTogglesProps> = ({
|
|
74
|
-
className,
|
|
75
|
-
liquidToggleProps = {},
|
|
76
|
-
colorToggleProps = {},
|
|
77
|
-
}) => {
|
|
78
|
-
return (
|
|
79
|
-
<div className={cn("flex", className)}>
|
|
80
|
-
<LiquidToggle {...liquidToggleProps} />
|
|
81
|
-
<ThemeColorToggle {...colorToggleProps} />
|
|
82
|
-
</div>
|
|
83
|
-
);
|
|
84
|
-
};
|
package/src/ui/theme/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useTheme, ThemeProvider, defaultThemes, computeTheme } from "./ThemeProvider";
|
|
2
|
-
export { LiquidToggle, ThemeColorToggle
|
|
2
|
+
export { LiquidToggle, ThemeColorToggle } from "./ThemeToggles";
|
|
3
3
|
export { ThemeScript } from "./themeScript";
|
|
4
4
|
|
|
5
5
|
export type {
|
package/src/ui/toast.tsx
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Toaster as Sonner, ToasterProps
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
import { toast, Toaster as Sonner, type ToasterProps } from "sonner";
|
|
3
|
+
|
|
4
|
+
import { useTheme } from "./theme";
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Client-only Toaster wrapper applying default classes.
|
|
6
8
|
*/
|
|
7
|
-
const Toaster = ({ ...props }: ToasterProps) => {
|
|
8
|
-
const [isClient, setIsClient] = useState(false);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, []);
|
|
13
|
-
|
|
14
|
-
// Don't render anything during SSR
|
|
15
|
-
if (!isClient) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
10
|
+
const Toaster = ({ ...props }: ToasterProps) => {
|
|
11
|
+
const { baseTheme = "system" } = useTheme();
|
|
18
12
|
|
|
19
13
|
return (
|
|
20
14
|
<Sonner
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
theme={baseTheme}
|
|
16
|
+
className="toaster group"
|
|
17
|
+
style={
|
|
18
|
+
{
|
|
19
|
+
"--normal-bg": "var(--bg-primary)",
|
|
20
|
+
"--normal-text": "var(--text-primary)",
|
|
21
|
+
"--normal-border": "var(--bg-secondary)",
|
|
22
|
+
} as CSSProperties
|
|
23
|
+
}
|
|
25
24
|
{...props}
|
|
26
25
|
/>
|
|
27
26
|
);
|
package/src/ui/tooltip.tsx
CHANGED
|
@@ -8,7 +8,6 @@ import { cn } from "../hooks";
|
|
|
8
8
|
*/
|
|
9
9
|
function TooltipProvider({
|
|
10
10
|
delayDuration = 0,
|
|
11
|
-
children,
|
|
12
11
|
...props
|
|
13
12
|
}: ComponentProps<typeof TooltipPrimitive.Provider>) {
|
|
14
13
|
return (
|
|
@@ -16,32 +15,17 @@ function TooltipProvider({
|
|
|
16
15
|
data-slot="tooltip-provider"
|
|
17
16
|
delayDuration={delayDuration}
|
|
18
17
|
{...props}
|
|
19
|
-
|
|
20
|
-
{children}
|
|
21
|
-
</TooltipPrimitive.Provider>
|
|
18
|
+
/>
|
|
22
19
|
);
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
/**
|
|
26
23
|
* Wrapper root for a tooltip. Skips tooltip logic during SSR.
|
|
27
24
|
*/
|
|
28
|
-
function Tooltip({
|
|
29
|
-
const [isClient, setIsClient] = useState(false);
|
|
30
|
-
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
setIsClient(true);
|
|
33
|
-
}, []);
|
|
34
|
-
|
|
35
|
-
// During SSR, just render children without tooltip functionality
|
|
36
|
-
if (!isClient) {
|
|
37
|
-
return <>{children}</>;
|
|
38
|
-
}
|
|
39
|
-
|
|
25
|
+
function Tooltip({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>) {
|
|
40
26
|
return (
|
|
41
27
|
<TooltipProvider>
|
|
42
|
-
<TooltipPrimitive.Root data-slot="tooltip" {...props}
|
|
43
|
-
{children}
|
|
44
|
-
</TooltipPrimitive.Root>
|
|
28
|
+
<TooltipPrimitive.Root data-slot="tooltip" {...props} />
|
|
45
29
|
</TooltipProvider>
|
|
46
30
|
);
|
|
47
31
|
}
|
|
@@ -50,17 +34,6 @@ function Tooltip({ children, ...props }: ComponentProps<typeof TooltipPrimitive.
|
|
|
50
34
|
* Element that triggers the tooltip.
|
|
51
35
|
*/
|
|
52
36
|
function TooltipTrigger({ ...props }: ComponentProps<typeof TooltipPrimitive.Trigger>) {
|
|
53
|
-
const [isClient, setIsClient] = useState(false);
|
|
54
|
-
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
setIsClient(true);
|
|
57
|
-
}, []);
|
|
58
|
-
|
|
59
|
-
// During SSR, just render children without tooltip functionality
|
|
60
|
-
if (!isClient) {
|
|
61
|
-
return <>{props.children}</>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
37
|
return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;
|
|
65
38
|
}
|
|
66
39
|
|