@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
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button } from './chunk-5JYH7TXY.mjs';
|
|
2
|
+
import { cn } from './chunk-HBEU2PU2.mjs';
|
|
2
3
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import {
|
|
4
|
+
import { ChevronDown, ChevronUp } from 'lucide-react';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
7
|
|
|
5
8
|
var cardVariants = cva(
|
|
6
9
|
[
|
|
10
|
+
"relative",
|
|
7
11
|
"flex",
|
|
8
12
|
"flex-col",
|
|
9
13
|
"rounded-uk-xl",
|
|
@@ -29,8 +33,57 @@ var cardVariants = cva(
|
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
);
|
|
32
|
-
function Card({
|
|
33
|
-
|
|
36
|
+
function Card({
|
|
37
|
+
className,
|
|
38
|
+
size,
|
|
39
|
+
collapsible,
|
|
40
|
+
collapsedContent,
|
|
41
|
+
defaultCollapsed = false,
|
|
42
|
+
children,
|
|
43
|
+
...props
|
|
44
|
+
}) {
|
|
45
|
+
const [isCollapsed, setIsCollapsed] = useState(defaultCollapsed);
|
|
46
|
+
if (collapsible) {
|
|
47
|
+
if (isCollapsed) {
|
|
48
|
+
return /* @__PURE__ */ jsxs(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "card",
|
|
52
|
+
className: cn(cardVariants({ size }), "flex-row justify-between", className),
|
|
53
|
+
...props,
|
|
54
|
+
children: [
|
|
55
|
+
collapsedContent,
|
|
56
|
+
/* @__PURE__ */ jsx("div", { className: "right-lg absolute top-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsx(
|
|
57
|
+
Button,
|
|
58
|
+
{
|
|
59
|
+
variant: "ghost",
|
|
60
|
+
size: "sm",
|
|
61
|
+
icon: true,
|
|
62
|
+
onClick: () => setIsCollapsed(false),
|
|
63
|
+
className: "hover:bg-shadow-secondary",
|
|
64
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { strokeWidth: 1.5, className: "text-icon-primary size-4" })
|
|
65
|
+
}
|
|
66
|
+
) })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "card", className: cn(cardVariants({ size, className })), ...props, children: [
|
|
72
|
+
/* @__PURE__ */ jsx("div", { className: "right-lg top-lg absolute", children: /* @__PURE__ */ jsx(
|
|
73
|
+
Button,
|
|
74
|
+
{
|
|
75
|
+
variant: "ghost",
|
|
76
|
+
size: "sm",
|
|
77
|
+
icon: true,
|
|
78
|
+
onClick: () => setIsCollapsed(true),
|
|
79
|
+
className: "hover:bg-shadow-secondary",
|
|
80
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { strokeWidth: 1.5, className: "text-icon-primary size-4" })
|
|
81
|
+
}
|
|
82
|
+
) }),
|
|
83
|
+
children
|
|
84
|
+
] });
|
|
85
|
+
}
|
|
86
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "card", className: cn(cardVariants({ size, className })), ...props, children });
|
|
34
87
|
}
|
|
35
88
|
var cardHeaderVariants = cva(["flex", "flex-row", "items-center", "justify-between"], {
|
|
36
89
|
variants: {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { DialPresetsInput } from './chunk-
|
|
2
|
-
import { useDialSchema } from './chunk-ZTGJIGBC.mjs';
|
|
1
|
+
import { DialPresetsInput } from './chunk-6ZLK2RYS.mjs';
|
|
2
|
+
import { useDialSchema, DialProvider } from './chunk-ZTGJIGBC.mjs';
|
|
3
3
|
import { IconRenderer } from './chunk-6YMDD5CU.mjs';
|
|
4
|
-
import { TimeInput } from './chunk-
|
|
5
|
-
import { Vec3Input } from './chunk-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { Slider } from './chunk-
|
|
20
|
-
import { Switch } from './chunk-
|
|
21
|
-
import { Label } from './chunk-
|
|
22
|
-
import { FormLayout } from './chunk-
|
|
23
|
-
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-
|
|
4
|
+
import { TimeInput } from './chunk-BLG4IPRR.mjs';
|
|
5
|
+
import { Vec3Input } from './chunk-XC25ZQ7H.mjs';
|
|
6
|
+
import { EulerDegInput } from './chunk-XHNM6XE3.mjs';
|
|
7
|
+
import { EulerInput } from './chunk-7MR3M2HW.mjs';
|
|
8
|
+
import { EulerRadInput } from './chunk-ZQ2DPA2M.mjs';
|
|
9
|
+
import { InchInput } from './chunk-LOMLR5AA.mjs';
|
|
10
|
+
import { IntInput } from './chunk-YBUMQX6M.mjs';
|
|
11
|
+
import { QuaternionInput } from './chunk-CEYNTMQP.mjs';
|
|
12
|
+
import { VectorInput } from './chunk-HUPECWNG.mjs';
|
|
13
|
+
import { CmInput } from './chunk-BDFUHPX2.mjs';
|
|
14
|
+
import { DegInput } from './chunk-2KQXKQNU.mjs';
|
|
15
|
+
import { RadInput } from './chunk-PC42NEBI.mjs';
|
|
16
|
+
import { TextInput } from './chunk-P55DAW6H.mjs';
|
|
17
|
+
import { ColorInput } from './chunk-IKSER6BF.mjs';
|
|
18
|
+
import { InputNumbers } from './chunk-HGN7J4CP.mjs';
|
|
19
|
+
import { Slider } from './chunk-XIESS6HW.mjs';
|
|
20
|
+
import { Switch } from './chunk-RS4T6S3Z.mjs';
|
|
21
|
+
import { Label } from './chunk-XTZURZIR.mjs';
|
|
22
|
+
import { FormLayout } from './chunk-TMBHKVKH.mjs';
|
|
23
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-O5YP3JQ4.mjs';
|
|
24
24
|
import { useCallback } from 'react';
|
|
25
25
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
26
26
|
|
|
@@ -514,25 +514,11 @@ var DialVectorInput2 = ({
|
|
|
514
514
|
const steps = schema.steps || [];
|
|
515
515
|
const mins = schema.mins || [];
|
|
516
516
|
const maxs = schema.maxs || [];
|
|
517
|
-
const tags = schema.tags || {};
|
|
518
517
|
const vectorValue = Array.isArray(value) ? value.concat(Array(Math.max(0, dimensions - value.length)).fill(0)) : Array(dimensions).fill(0);
|
|
519
518
|
const hasMixedTypes = dtypes.some((dtype) => dtype === "boolean");
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
if (typeof tags.col === "number") {
|
|
524
|
-
gridAutoFlow = "column";
|
|
525
|
-
gridRows = tags.col;
|
|
526
|
-
gridColumns = void 0;
|
|
527
|
-
} else if (typeof tags.row === "number") {
|
|
528
|
-
gridAutoFlow = "row";
|
|
529
|
-
gridColumns = tags.row;
|
|
530
|
-
gridRows = void 0;
|
|
531
|
-
} else {
|
|
532
|
-
gridAutoFlow = "row";
|
|
533
|
-
gridColumns = void 0;
|
|
534
|
-
gridRows = void 0;
|
|
535
|
-
}
|
|
519
|
+
const gridAutoFlow = schema.vectorFlow === "column" ? "column" : "row";
|
|
520
|
+
const gridColumns = typeof schema.vectorCols === "number" ? schema.vectorCols : void 0;
|
|
521
|
+
const gridRows = typeof schema.vectorRows === "number" ? schema.vectorRows : void 0;
|
|
536
522
|
if (hasMixedTypes) {
|
|
537
523
|
const numberIndices = [];
|
|
538
524
|
const booleanIndices = [];
|
|
@@ -658,6 +644,56 @@ var DialVectorInput2 = ({
|
|
|
658
644
|
] })
|
|
659
645
|
] });
|
|
660
646
|
};
|
|
647
|
+
var DialInterfaceInput = ({ name }) => {
|
|
648
|
+
const { getValue, setValue, schemas } = useDialSchema();
|
|
649
|
+
const values = getValue(name);
|
|
650
|
+
const handlePropertyChange = useCallback(
|
|
651
|
+
(propName, value) => {
|
|
652
|
+
const newValues = { ...values };
|
|
653
|
+
newValues[propName] = value;
|
|
654
|
+
setValue(name, newValues);
|
|
655
|
+
},
|
|
656
|
+
[name, setValue, values]
|
|
657
|
+
);
|
|
658
|
+
const schema = schemas.find((s) => s.name === name);
|
|
659
|
+
if (!schema || !schema.typeDefinition?.schemas) {
|
|
660
|
+
return null;
|
|
661
|
+
}
|
|
662
|
+
return /* @__PURE__ */ jsx(
|
|
663
|
+
DialProvider,
|
|
664
|
+
{
|
|
665
|
+
schemas: schema.typeDefinition.schemas,
|
|
666
|
+
values,
|
|
667
|
+
onValueChange: handlePropertyChange,
|
|
668
|
+
children: /* @__PURE__ */ jsx(
|
|
669
|
+
DialPanel,
|
|
670
|
+
{
|
|
671
|
+
schemas: schema.typeDefinition.schemas,
|
|
672
|
+
groups: schema.typeDefinition.groups,
|
|
673
|
+
labelLayout: schema.labelPosition
|
|
674
|
+
}
|
|
675
|
+
)
|
|
676
|
+
}
|
|
677
|
+
);
|
|
678
|
+
};
|
|
679
|
+
var generateGroupStyle = (config) => {
|
|
680
|
+
const layout = config?.layout ?? "grid";
|
|
681
|
+
if (layout === "grid") {
|
|
682
|
+
return {
|
|
683
|
+
display: "grid",
|
|
684
|
+
gap: "0.5rem",
|
|
685
|
+
gridAutoFlow: config?.gridFlow,
|
|
686
|
+
gridTemplateColumns: config?.gridColTemplate ? config.gridColTemplate : config?.gridCols ? `repeat(${config.gridCols}, 1fr)` : "1fr",
|
|
687
|
+
gridTemplateRows: config?.gridRowTemplate ? config.gridRowTemplate : config?.gridRows ? `repeat(${config.gridRows}, 1fr)` : void 0
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
return {
|
|
691
|
+
display: "flex",
|
|
692
|
+
gap: "0.5rem",
|
|
693
|
+
flexWrap: config?.flexWrap ?? "wrap",
|
|
694
|
+
justifyContent: config?.flexJustifyContent
|
|
695
|
+
};
|
|
696
|
+
};
|
|
661
697
|
var DialPanel = ({
|
|
662
698
|
schemas,
|
|
663
699
|
groups: groupConfigs,
|
|
@@ -669,19 +705,10 @@ var DialPanel = ({
|
|
|
669
705
|
groupConfigMap[config.name] = config;
|
|
670
706
|
});
|
|
671
707
|
}
|
|
672
|
-
schemas.forEach((schema) => {
|
|
673
|
-
const grouping = schema.tags?.grouping;
|
|
674
|
-
if (grouping && !groupConfigMap[grouping]) {
|
|
675
|
-
groupConfigMap[grouping] = { name: grouping };
|
|
676
|
-
}
|
|
677
|
-
if (grouping && schema.tags?.noWrap && groupConfigMap[grouping]) {
|
|
678
|
-
groupConfigMap[grouping].noWrap = true;
|
|
679
|
-
}
|
|
680
|
-
});
|
|
681
708
|
const groupedSchemas = {};
|
|
682
709
|
const ungrouped = [];
|
|
683
710
|
schemas.forEach((schema) => {
|
|
684
|
-
const grouping = schema
|
|
711
|
+
const grouping = schema?.grouping;
|
|
685
712
|
if (grouping) {
|
|
686
713
|
if (!groupedSchemas[grouping]) {
|
|
687
714
|
groupedSchemas[grouping] = [];
|
|
@@ -692,10 +719,13 @@ var DialPanel = ({
|
|
|
692
719
|
}
|
|
693
720
|
});
|
|
694
721
|
const renderSchemaInput = (schema) => {
|
|
695
|
-
const { name, dtype, icon, min, max, step, options
|
|
696
|
-
const effectiveLabelPosition =
|
|
722
|
+
const { name, dtype, icon, min, max, step, options } = schema;
|
|
723
|
+
const effectiveLabelPosition = schema?.labelPosition || labelLayout;
|
|
697
724
|
const label = schema.label || name.charAt(0).toUpperCase() + name.slice(1);
|
|
698
725
|
switch (dtype) {
|
|
726
|
+
case "interface":
|
|
727
|
+
case "object":
|
|
728
|
+
return /* @__PURE__ */ jsx(DialInterfaceInput, { name });
|
|
699
729
|
case "vector3":
|
|
700
730
|
return /* @__PURE__ */ jsx(
|
|
701
731
|
DialVec3Input,
|
|
@@ -835,6 +865,7 @@ var DialPanel = ({
|
|
|
835
865
|
return /* @__PURE__ */ jsx(DialColorInput, { name, label, icon }, name);
|
|
836
866
|
case "string":
|
|
837
867
|
case "text":
|
|
868
|
+
case "select":
|
|
838
869
|
if (options && options.length > 0) {
|
|
839
870
|
return /* @__PURE__ */ jsx(
|
|
840
871
|
DialSelectInput,
|
|
@@ -866,14 +897,13 @@ var DialPanel = ({
|
|
|
866
897
|
return /* @__PURE__ */ jsxs("div", { className: "dial-schema-renderer space-y-4", children: [
|
|
867
898
|
Object.entries(groupedSchemas).map(([name, schemaList]) => {
|
|
868
899
|
const groupConfig = groupConfigMap[name];
|
|
869
|
-
const
|
|
870
|
-
const layoutClass = hasNoWrap ? "grid grid-cols-2 gap-2" : "flex flex-row gap-2";
|
|
900
|
+
const groupStyle = generateGroupStyle(groupConfig);
|
|
871
901
|
return /* @__PURE__ */ jsxs("div", { className: "dial-group", children: [
|
|
872
|
-
/* @__PURE__ */ jsx("div", { className: "text-text-primary mb-2 font-medium", children: name }),
|
|
873
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
902
|
+
/* @__PURE__ */ jsx("div", { className: "text-text-primary mb-2 font-medium capitalize", children: name }),
|
|
903
|
+
/* @__PURE__ */ jsx("div", { className: "dial-row", style: groupStyle, children: schemaList.map(renderSchemaInput) })
|
|
874
904
|
] }, name);
|
|
875
905
|
}),
|
|
876
|
-
ungrouped.length > 0 && /* @__PURE__ */ jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsx("div", { className: "dial-row grid grid-cols-
|
|
906
|
+
ungrouped.length > 0 && /* @__PURE__ */ jsx("div", { className: "dial-group", children: /* @__PURE__ */ jsx("div", { className: "dial-row grid grid-cols-1 gap-2", children: ungrouped.map(renderSchemaInput) }) })
|
|
877
907
|
] });
|
|
878
908
|
};
|
|
879
909
|
var DialInputWrapper2 = ({ label, labelPosition = "top", icon, children }) => {
|
|
@@ -934,7 +964,7 @@ var DialBooleanInput = ({
|
|
|
934
964
|
}) => {
|
|
935
965
|
const { getValue, setValue } = useDialSchema();
|
|
936
966
|
const value = getValue(name) ?? false;
|
|
937
|
-
const handleChange = useCallback((checked) => setValue(name, checked), [name]);
|
|
967
|
+
const handleChange = useCallback((checked) => setValue(name, checked), [name, setValue]);
|
|
938
968
|
const switchProps = {
|
|
939
969
|
checked: value,
|
|
940
970
|
onCheckedChange: handleChange
|
|
@@ -949,7 +979,7 @@ var DialColorInput = ({ name, label, icon, ...props }) => {
|
|
|
949
979
|
const value = getValue(name) ?? "";
|
|
950
980
|
const handleChange = useCallback(
|
|
951
981
|
(e) => setValue(name, e.target.value),
|
|
952
|
-
[name]
|
|
982
|
+
[name, setValue]
|
|
953
983
|
);
|
|
954
984
|
const inputComp = /* @__PURE__ */ jsx(ColorInput, { value, onChange: handleChange, prefix: label });
|
|
955
985
|
return /* @__PURE__ */ jsx(DialInputWrapper2, { label, icon, ...props, children: inputComp });
|
|
@@ -969,7 +999,7 @@ var DialSelectInput = ({
|
|
|
969
999
|
const parsed = !isNaN(Number(val)) ? Number(val) : val;
|
|
970
1000
|
setValue(name, parsed);
|
|
971
1001
|
},
|
|
972
|
-
[name]
|
|
1002
|
+
[name, setValue]
|
|
973
1003
|
);
|
|
974
1004
|
const selectComponent = /* @__PURE__ */ jsxs(Select, { value: String(value), onValueChange: handleValueChange, children: [
|
|
975
1005
|
/* @__PURE__ */ jsx(SelectTrigger, { size, children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select an option" }) }),
|
|
@@ -988,7 +1018,7 @@ var DialSliderInput = ({
|
|
|
988
1018
|
}) => {
|
|
989
1019
|
const { getValue, setValue } = useDialSchema();
|
|
990
1020
|
const value = getValue(name) ?? min;
|
|
991
|
-
const handleValueChange = useCallback(([val]) => setValue(name, val), [name]);
|
|
1021
|
+
const handleValueChange = useCallback(([val]) => setValue(name, val), [name, setValue]);
|
|
992
1022
|
const sliderProps = {
|
|
993
1023
|
value: [value],
|
|
994
1024
|
onValueChange: handleValueChange,
|
|
@@ -1003,4 +1033,4 @@ var DialSliderInput = ({
|
|
|
1003
1033
|
] });
|
|
1004
1034
|
};
|
|
1005
1035
|
|
|
1006
|
-
export { DialBooleanInput, DialCmInput, DialColorInput, DialDegInput, DialEulerDegInput, DialEulerInput, DialEulerRadInput, DialInchInput, DialIntInput, DialNumberInput, DialNumberRadInput, DialPanel, DialQuaternionInput, DialRadInput, DialSelectInput, DialSliderInput, DialTextInput, DialTimeInput, DialVec3Input, DialVectorInput, DialVectorInput2 };
|
|
1036
|
+
export { DialBooleanInput, DialCmInput, DialColorInput, DialDegInput, DialEulerDegInput, DialEulerInput, DialEulerRadInput, DialInchInput, DialIntInput, DialInterfaceInput, DialNumberInput, DialNumberRadInput, DialPanel, DialQuaternionInput, DialRadInput, DialSelectInput, DialSliderInput, DialTextInput, DialTimeInput, DialVec3Input, DialVectorInput, DialVectorInput2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQF3JWGWX_cjs = require('./chunk-QF3JWGWX.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
7
7
|
var Vec3Input = react.forwardRef(function Vec3Input2({ value, onValuesChange, ...props }, ref) {
|
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
|
|
9
|
+
chunkQF3JWGWX_cjs.VectorInput,
|
|
10
10
|
{
|
|
11
11
|
ref,
|
|
12
12
|
value,
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
5
|
|
|
5
6
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
7
|
|
|
7
8
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
8
9
|
|
|
9
10
|
// src/hooks/clientOnly.tsx
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
function ClientOnly({
|
|
12
|
+
children,
|
|
13
|
+
fallback = null
|
|
14
|
+
}) {
|
|
15
|
+
const [hasMounted, setHasMounted] = React__default.default.useState(false);
|
|
16
|
+
React__default.default.useEffect(() => {
|
|
17
|
+
setHasMounted(true);
|
|
18
|
+
}, []);
|
|
19
|
+
if (!hasMounted) {
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback });
|
|
13
21
|
}
|
|
14
|
-
return
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
15
23
|
}
|
|
16
24
|
function createClientOnlyComponent(Component, fallback) {
|
|
17
25
|
return function ClientOnlyWrapper(props) {
|
|
18
|
-
const [
|
|
26
|
+
const [isClient, setIsClient] = React__default.default.useState(false);
|
|
19
27
|
React__default.default.useEffect(() => {
|
|
20
28
|
setIsClient(true);
|
|
21
29
|
}, []);
|
|
22
|
-
if (!
|
|
30
|
+
if (!isClient) {
|
|
23
31
|
return fallback ? React__default.default.createElement(fallback, props) : null;
|
|
24
32
|
}
|
|
25
33
|
return React__default.default.createElement(Component, props);
|
|
26
34
|
};
|
|
27
35
|
}
|
|
28
|
-
function isClient() {
|
|
29
|
-
return typeof window !== "undefined";
|
|
30
|
-
}
|
|
31
|
-
function isServer() {
|
|
32
|
-
return typeof window === "undefined";
|
|
33
|
-
}
|
|
34
36
|
|
|
35
|
-
exports.
|
|
37
|
+
exports.ClientOnly = ClientOnly;
|
|
36
38
|
exports.createClientOnlyComponent = createClientOnlyComponent;
|
|
37
|
-
exports.isClient = isClient;
|
|
38
|
-
exports.isServer = isServer;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { cn } from './chunk-HBEU2PU2.mjs';
|
|
2
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
import { XIcon } from 'lucide-react';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function Sheet({ ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
8
|
+
}
|
|
9
|
+
function SheetTrigger({ ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
11
|
+
}
|
|
12
|
+
function SheetClose({ ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
14
|
+
}
|
|
15
|
+
function SheetPortal({ ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
17
|
+
}
|
|
18
|
+
function SheetOverlay({ className, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
SheetPrimitive.Overlay,
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "sheet-overlay",
|
|
23
|
+
className: cn(
|
|
24
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-bg-mask fixed inset-0 z-50",
|
|
25
|
+
className
|
|
26
|
+
),
|
|
27
|
+
...props
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function SheetContent({
|
|
32
|
+
className,
|
|
33
|
+
children,
|
|
34
|
+
side = "right",
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
38
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
39
|
+
/* @__PURE__ */ jsxs(
|
|
40
|
+
SheetPrimitive.Content,
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "sheet-content",
|
|
43
|
+
className: cn(
|
|
44
|
+
"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",
|
|
45
|
+
side === "right" && "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",
|
|
46
|
+
side === "left" && "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",
|
|
47
|
+
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
48
|
+
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
49
|
+
className
|
|
50
|
+
),
|
|
51
|
+
...props,
|
|
52
|
+
children: [
|
|
53
|
+
children,
|
|
54
|
+
/* @__PURE__ */ jsxs(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", children: [
|
|
55
|
+
/* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
|
|
56
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
57
|
+
] })
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] });
|
|
62
|
+
}
|
|
63
|
+
function SheetHeader({ className, ...props }) {
|
|
64
|
+
return /* @__PURE__ */ jsx(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
"data-slot": "sheet-header",
|
|
68
|
+
className: cn("gap-md pb-xl flex flex-col", className),
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function SheetFooter({ className, ...props }) {
|
|
74
|
+
return /* @__PURE__ */ jsx(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "sheet-footer",
|
|
78
|
+
className: cn("gap-lg pt-xl mt-auto flex flex-col", className),
|
|
79
|
+
...props
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function SheetTitle({ className, ...props }) {
|
|
84
|
+
return /* @__PURE__ */ jsx(
|
|
85
|
+
SheetPrimitive.Title,
|
|
86
|
+
{
|
|
87
|
+
"data-slot": "sheet-title",
|
|
88
|
+
className: cn("text-text-highlight text-uk-xl leading-uk-xl font-medium", className),
|
|
89
|
+
...props
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function SheetDescription({
|
|
94
|
+
className,
|
|
95
|
+
...props
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ jsx(
|
|
98
|
+
SheetPrimitive.Description,
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "sheet-description",
|
|
101
|
+
className: cn("text-text-secondary text-uk-md leading-uk-md", className),
|
|
102
|
+
...props
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RadInput } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
3
|
-
import { cn } from './chunk-
|
|
1
|
+
import { RadInput } from './chunk-PC42NEBI.mjs';
|
|
2
|
+
import { Button } from './chunk-5JYH7TXY.mjs';
|
|
3
|
+
import { cn } from './chunk-HBEU2PU2.mjs';
|
|
4
4
|
import { forwardRef, useState } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6LTCLQH3_cjs = require('./chunk-6LTCLQH3.cjs');
|
|
4
4
|
var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
5
5
|
var classVarianceAuthority = require('class-variance-authority');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -100,7 +100,7 @@ function Toggle({
|
|
|
100
100
|
TogglePrimitive__namespace.Root,
|
|
101
101
|
{
|
|
102
102
|
"data-slot": "toggle",
|
|
103
|
-
className:
|
|
103
|
+
className: chunk6LTCLQH3_cjs.cn(toggleVariants({ variant, size, className })),
|
|
104
104
|
...props
|
|
105
105
|
}
|
|
106
106
|
);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LiquidLayout, LiquidLayoutContent, LiquidLayoutBottom, LiquidLayoutRight, LiquidLayoutTop, LiquidLayoutLeft } from './chunk-YMMSHGYC.mjs';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var LiquidLayoutView = ({
|
|
5
|
+
left,
|
|
6
|
+
right,
|
|
7
|
+
top,
|
|
8
|
+
bottom,
|
|
9
|
+
children,
|
|
10
|
+
className,
|
|
11
|
+
leftClassName,
|
|
12
|
+
rightClassName,
|
|
13
|
+
topClassName,
|
|
14
|
+
bottomClassName,
|
|
15
|
+
contentClassName,
|
|
16
|
+
hideUI = false
|
|
17
|
+
}) => {
|
|
18
|
+
const uiVisibilityClass = hideUI ? "invisible pointer-events-none" : "";
|
|
19
|
+
return /* @__PURE__ */ jsxs(LiquidLayout, { className, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(
|
|
21
|
+
LiquidLayoutContent,
|
|
22
|
+
{
|
|
23
|
+
className: `absolute inset-0 z-0 flex flex-col items-center justify-center ${contentClassName || ""}`,
|
|
24
|
+
children
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
bottom && /* @__PURE__ */ jsx(LiquidLayoutBottom, { className: `z-20 mt-4 ${bottomClassName || ""} ${uiVisibilityClass}`, children: bottom }),
|
|
28
|
+
right && /* @__PURE__ */ jsx(LiquidLayoutRight, { className: `z-20 max-w-75 ${rightClassName || ""} ${uiVisibilityClass}`, children: right }),
|
|
29
|
+
top && /* @__PURE__ */ jsx(LiquidLayoutTop, { className: `z-20 ${topClassName || ""} ${uiVisibilityClass}`, children: top }),
|
|
30
|
+
left && /* @__PURE__ */ jsx(LiquidLayoutLeft, { className: `z-20 max-w-75 ${leftClassName || ""} ${uiVisibilityClass}`, children: left })
|
|
31
|
+
] });
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { LiquidLayoutView };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/hooks/useIsMobile.ts
|
|
4
|
+
var MOBILE_BREAKPOINT = 768;
|
|
5
|
+
function useIsMobile() {
|
|
6
|
+
const [isMobile, setIsMobile] = useState(void 0);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
9
|
+
const onChange = () => {
|
|
10
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
11
|
+
};
|
|
12
|
+
mql.addEventListener("change", onChange);
|
|
13
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
14
|
+
return () => mql.removeEventListener("change", onChange);
|
|
15
|
+
}, []);
|
|
16
|
+
return !!isMobile;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { useIsMobile };
|
|
@@ -15,6 +15,10 @@ var twMerge = extendTailwindMerge({
|
|
|
15
15
|
p: ["p-xxs", "p-xs", "p-sm", "p-md", "p-lg", "p-xl"],
|
|
16
16
|
py: ["py-xxs", "py-xs", "py-sm", "py-md", "py-lg", "py-xl"],
|
|
17
17
|
px: ["px-xxs", "px-xs", "px-sm", "px-md", "px-lg", "px-xl"],
|
|
18
|
+
pt: ["pt-xxs", "pt-xs", "pt-sm", "pt-md", "pt-lg", "pt-xl"],
|
|
19
|
+
pb: ["pb-xxs", "pb-xs", "pb-sm", "pb-md", "pb-lg", "pb-xl"],
|
|
20
|
+
pl: ["pl-xxs", "pl-xs", "pl-sm", "pl-md", "pl-lg", "pl-xl"],
|
|
21
|
+
pr: ["pr-xxs", "pr-xs", "pr-sm", "pr-md", "pr-lg", "pr-xl"],
|
|
18
22
|
"font-size": [
|
|
19
23
|
"text-uk-xs",
|
|
20
24
|
"text-uk-sm",
|
|
@@ -22,7 +26,8 @@ var twMerge = extendTailwindMerge({
|
|
|
22
26
|
"text-uk-lg",
|
|
23
27
|
"text-uk-xl",
|
|
24
28
|
"text-uk-xxl"
|
|
25
|
-
]
|
|
29
|
+
],
|
|
30
|
+
"text-color": ["text-text-primary", "text-text-highlight"]
|
|
26
31
|
}
|
|
27
32
|
}
|
|
28
33
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputRoot, InputSlot } from './chunk-
|
|
2
|
-
import { cn } from './chunk-
|
|
1
|
+
import { InputRoot, InputSlot } from './chunk-HGTL7DFT.mjs';
|
|
2
|
+
import { cn } from './chunk-HBEU2PU2.mjs';
|
|
3
3
|
import React, { forwardRef, useRef, useState, useCallback } from 'react';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
|