@vuer-ai/vuer-uikit 0.0.73 → 0.0.75
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 +16 -12
- package/dist/SyncScroll/SyncScroll.d.cts +2 -1
- package/dist/SyncScroll/SyncScroll.d.ts +2 -1
- package/dist/SyncScroll/SyncScroll.mjs +6 -6
- package/dist/SyncScroll/index.cjs +16 -12
- package/dist/SyncScroll/index.d.cts +1 -1
- package/dist/SyncScroll/index.d.ts +1 -1
- package/dist/SyncScroll/index.mjs +6 -6
- package/dist/chunk-2274XZ2C.cjs +249 -0
- package/dist/{chunk-MXXKPTX3.mjs → chunk-25RDJXX7.mjs} +1 -1
- package/dist/chunk-2J75MYQA.cjs +65 -0
- package/dist/chunk-3DPQXJRL.mjs +18 -0
- package/dist/{chunk-4MW4SKOD.mjs → chunk-3LO3AM25.mjs} +1 -1
- package/dist/chunk-3MINR6DU.cjs +21 -0
- package/dist/{chunk-FEUYP5OW.mjs → chunk-3THWK3HB.mjs} +1 -1
- package/dist/{chunk-KC7D4OEU.cjs → chunk-3TZL7ET3.cjs} +5 -6
- package/dist/{chunk-7LOOS5CJ.mjs → chunk-42UBHC2D.mjs} +1 -1
- package/dist/{chunk-7C24XIM4.mjs → chunk-4FLE5S5Z.mjs} +1 -1
- package/dist/chunk-4U232QAX.mjs +79 -0
- package/dist/{chunk-RE74NVMU.mjs → chunk-5432JOTN.mjs} +3 -3
- package/dist/chunk-5EXV5EWF.mjs +38 -0
- package/dist/chunk-5KPZP63X.cjs +36 -0
- package/dist/chunk-5MNZYCN2.cjs +48 -0
- package/dist/{chunk-PIRVEHSD.mjs → chunk-5T7MTIHW.mjs} +1 -1
- package/dist/{chunk-DKAPTFG3.cjs → chunk-5WDPNBQW.cjs} +8 -8
- package/dist/{chunk-SPSBYU5V.cjs → chunk-62VCQ2SU.cjs} +8 -8
- package/dist/{chunk-3TWD622T.cjs → chunk-6AWED2ZK.cjs} +4 -4
- package/dist/{chunk-PMBLY4AL.cjs → chunk-6SV2J2GC.cjs} +2 -2
- package/dist/chunk-6TSA7KXX.cjs +38 -0
- package/dist/chunk-6VB53UMO.mjs +35 -0
- package/dist/{chunk-3LO2GIJ4.cjs → chunk-76V4RD4V.cjs} +8 -8
- package/dist/{chunk-TH2MJEHW.mjs → chunk-7CTCK26U.mjs} +5 -5
- package/dist/{chunk-X6YX2NAS.cjs → chunk-7DFI7CUK.cjs} +2 -2
- package/dist/chunk-7LLDKYND.mjs +243 -0
- package/dist/chunk-A2LWPEGE.cjs +42 -0
- package/dist/{chunk-TCVTXU7U.cjs → chunk-A5LCX2UQ.cjs} +2 -2
- package/dist/{chunk-EWAKGFQG.mjs → chunk-ABLQ4QRY.mjs} +1 -2
- package/dist/{chunk-ERN4HL5A.mjs → chunk-AZBJB6KC.mjs} +1 -1
- package/dist/{chunk-3GYDDYRD.mjs → chunk-B53A4WNW.mjs} +1 -1
- package/dist/{chunk-LHQALBTX.cjs → chunk-B55SNJJM.cjs} +4 -4
- package/dist/chunk-BAQY2ANP.cjs +20 -0
- package/dist/{chunk-F6VF4JAI.mjs → chunk-BCBWIMPS.mjs} +1 -1
- package/dist/{chunk-CGFJLQRG.mjs → chunk-BEJIZ56L.mjs} +59 -2
- package/dist/{chunk-NMSI7U5J.mjs → chunk-BGYHKHMQ.mjs} +1 -1
- package/dist/chunk-CIPI2V54.mjs +66 -0
- package/dist/chunk-CO6EASQO.mjs +169 -0
- package/dist/chunk-COVQAQYO.mjs +63 -0
- package/dist/chunk-D2DMH5WY.mjs +39 -0
- package/dist/{chunk-R2DTBJJV.mjs → chunk-D3IW2NW6.mjs} +1 -1
- package/dist/{chunk-G73SWE4J.mjs → chunk-DWWM2TV3.mjs} +1 -1
- package/dist/{chunk-V25THXL6.mjs → chunk-DYFJAD2K.mjs} +1 -1
- package/dist/{chunk-PJJ7CR5M.mjs → chunk-EBBHJLUX.mjs} +1 -1
- package/dist/{chunk-VBIBT2KD.cjs → chunk-EKPJUR3U.cjs} +6 -6
- package/dist/{chunk-CEV3ZNNG.mjs → chunk-ER54LTUC.mjs} +1 -1
- package/dist/chunk-FD5AAGON.cjs +487 -0
- package/dist/chunk-G2ZYONQO.cjs +86 -0
- package/dist/{chunk-D57RTQ2Z.cjs → chunk-GWIACOMY.cjs} +10 -10
- package/dist/chunk-GZL34EJN.cjs +20 -0
- package/dist/{chunk-M4YQQBHS.mjs → chunk-H4IDSUG5.mjs} +1 -1
- package/dist/{chunk-SN46OY24.cjs → chunk-HHP7ZB25.cjs} +2 -2
- package/dist/{chunk-KVFUDYD3.mjs → chunk-HMN4IKTG.mjs} +2 -1
- package/dist/{chunk-NQIPNYJK.cjs → chunk-HNTVTCNX.cjs} +2 -2
- package/dist/chunk-HWBRKGZJ.mjs +18 -0
- package/dist/{chunk-PABIHEC7.mjs → chunk-IBW26377.mjs} +1 -1
- package/dist/{chunk-ES4LBRHV.mjs → chunk-IDUVYPN7.mjs} +1 -1
- package/dist/chunk-IFCNUMCY.cjs +20 -0
- package/dist/{chunk-UV3EORBI.cjs → chunk-IJGCH57E.cjs} +2 -2
- package/dist/{chunk-JVCED76T.mjs → chunk-ILGNKXK2.mjs} +208 -40
- package/dist/{chunk-3MSEMXKG.mjs → chunk-INHZ5D7P.mjs} +1 -1
- package/dist/chunk-IR334P7F.mjs +45 -0
- package/dist/chunk-IZFHHQ6S.mjs +94 -0
- package/dist/{chunk-QQH3TSI4.cjs → chunk-J5DLIKNB.cjs} +10 -10
- package/dist/{chunk-5XHWH2UY.cjs → chunk-JA6XS5KY.cjs} +4 -4
- package/dist/{chunk-XKV3CDJ7.cjs → chunk-JBMXLVXM.cjs} +12 -12
- package/dist/chunk-JD4J3RDN.cjs +132 -0
- package/dist/chunk-JM6NBUDT.cjs +259 -0
- package/dist/{chunk-YTM334QC.mjs → chunk-JRBTIFM6.mjs} +1 -1
- package/dist/chunk-JWKOW2OV.mjs +75 -0
- package/dist/{chunk-IWPVLQSF.mjs → chunk-JXALL32A.mjs} +1 -1
- package/dist/{chunk-FWH3ACEX.mjs → chunk-JY5TZBRK.mjs} +1 -1
- package/dist/chunk-K22BEXUA.mjs +36 -0
- package/dist/chunk-K6KHDM35.cjs +37 -0
- package/dist/{chunk-WRR5LMHR.cjs → chunk-KAA4NEHL.cjs} +9 -9
- package/dist/chunk-KBVBN5Q3.mjs +18 -0
- package/dist/{chunk-C7WMCSNN.mjs → chunk-KY4I766B.mjs} +1 -1
- package/dist/{chunk-BPGKIZ6G.mjs → chunk-L26ULDYM.mjs} +9 -3
- package/dist/{chunk-W3HZ6BW6.cjs → chunk-L5JZRGNH.cjs} +2 -2
- package/dist/{chunk-OPVNPU6U.cjs → chunk-L6LCOLOV.cjs} +9 -9
- package/dist/{chunk-QFMQNY4G.cjs → chunk-LBWMTA5T.cjs} +1 -1
- package/dist/{chunk-MKKH4EGP.cjs → chunk-LCCNBVKZ.cjs} +21 -5
- package/dist/{chunk-7JYI3VUI.mjs → chunk-LG3PNH2P.mjs} +2 -2
- package/dist/chunk-LKEPALXM.mjs +18 -0
- package/dist/{chunk-VL72NS6K.cjs → chunk-LNKZATCP.cjs} +3 -3
- package/dist/chunk-LP3AGGRK.cjs +40 -0
- package/dist/{chunk-DQLLLY3Y.cjs → chunk-LPVBUX2J.cjs} +8 -8
- package/dist/{chunk-QCD2WTD3.mjs → chunk-LQOPO4KU.mjs} +1 -5
- package/dist/{chunk-K6UUQ27N.cjs → chunk-M4IHJGJE.cjs} +2 -2
- package/dist/{chunk-X46KNBED.mjs → chunk-MDBCKCGI.mjs} +4 -4
- package/dist/{chunk-NVELFLAS.mjs → chunk-MDUGPQEK.mjs} +1 -1
- package/dist/chunk-MVAFOQ67.cjs +17 -0
- package/dist/chunk-N6DSPSMM.mjs +45 -0
- package/dist/{chunk-ORNTGLPP.mjs → chunk-NO35POZW.mjs} +1 -1
- package/dist/{chunk-VEO4NX4C.cjs → chunk-NQVD3ZW4.cjs} +2 -2
- package/dist/chunk-NS2P4CPA.mjs +247 -0
- package/dist/{chunk-BHC7GX53.cjs → chunk-NSQOQD43.cjs} +2 -2
- package/dist/{chunk-JEIVAYVK.mjs → chunk-NTGUD2JN.mjs} +2 -2
- package/dist/{chunk-PWOICFNA.cjs → chunk-NZOZ3KKM.cjs} +4 -4
- package/dist/chunk-OC4HRPZU.mjs +15 -0
- package/dist/{chunk-DWD754BX.cjs → chunk-OHIB3TEN.cjs} +2 -1
- package/dist/{chunk-SBLDHRRT.cjs → chunk-OMZHB2FB.cjs} +3 -3
- package/dist/{chunk-OKAV7AZP.mjs → chunk-OWGKZAOO.mjs} +1 -1
- package/dist/chunk-OX2U5RAG.cjs +2 -0
- package/dist/{chunk-NUH6VCC7.cjs → chunk-P27TWGME.cjs} +4 -4
- package/dist/{chunk-MK6XW5PC.cjs → chunk-P3SKSMO7.cjs} +2 -2
- package/dist/{chunk-CX7AH4R4.mjs → chunk-P5T6EVSQ.mjs} +10 -10
- package/dist/{chunk-XSJ6XVTR.mjs → chunk-PCSY5IJ2.mjs} +19 -3
- package/dist/{chunk-5PDVUXZO.mjs → chunk-PO2LYHDO.mjs} +1 -1
- package/dist/chunk-PQEAXTVY.mjs +130 -0
- package/dist/{chunk-EDHFKW5G.cjs → chunk-PQZPTBQR.cjs} +46 -46
- package/dist/{chunk-NWA32DT2.cjs → chunk-Q4XH2Z5M.cjs} +2 -2
- package/dist/{chunk-A5S72EIK.cjs → chunk-QBFIZ2VX.cjs} +2 -2
- package/dist/chunk-QCL6NV6L.cjs +20 -0
- package/dist/{chunk-ZLQIYYLM.mjs → chunk-R4JF2SWJ.mjs} +1 -1
- package/dist/chunk-RJ7I6ZQK.cjs +248 -0
- package/dist/{chunk-2BWTIS6U.cjs → chunk-RU423LFT.cjs} +7 -7
- package/dist/chunk-S3HLSB3I.mjs +18 -0
- package/dist/{chunk-7Y2LX6UY.mjs → chunk-S3OW7I3O.mjs} +1 -1
- package/dist/chunk-SA5WKLYB.mjs +63 -0
- package/dist/{chunk-L433A745.cjs → chunk-SPNDWTSX.cjs} +2 -2
- package/dist/{chunk-54AT7VFI.mjs → chunk-SUABRIFA.mjs} +1 -1
- package/dist/{chunk-Q27ILZE6.mjs → chunk-SUSABE24.mjs} +1 -1
- package/dist/{chunk-7OHIAOEL.cjs → chunk-T2RTITL6.cjs} +67 -22
- package/dist/chunk-TUYG6BYZ.cjs +47 -0
- package/dist/{chunk-PJYCN74V.cjs → chunk-TZC4ST5T.cjs} +20 -20
- package/dist/{chunk-MTB2EWG2.mjs → chunk-U3LN5NB6.mjs} +1 -1
- package/dist/{chunk-SIU54HGH.mjs → chunk-U4OZ35J3.mjs} +1 -1
- package/dist/{chunk-WTUAR2X5.cjs → chunk-UCRLH44Q.cjs} +7 -7
- package/dist/{chunk-LH5AV54U.cjs → chunk-UULSGVNF.cjs} +7 -7
- package/dist/{chunk-LAZO5ZDT.mjs → chunk-V2IP7UUV.mjs} +1 -1
- package/dist/{chunk-RHX3D3GE.mjs → chunk-VA4LUFKD.mjs} +1 -1
- package/dist/{chunk-JTLBOAN6.cjs → chunk-VADHV4S3.cjs} +9 -9
- package/dist/{chunk-D6326INV.cjs → chunk-VBBJSIY7.cjs} +65 -7
- package/dist/{chunk-NU4OG44J.cjs → chunk-VGM5GQ6Z.cjs} +2 -2
- package/dist/{chunk-3DDKTHKM.cjs → chunk-VJN3GGLZ.cjs} +3 -3
- package/dist/chunk-VJWZW66V.cjs +67 -0
- package/dist/{chunk-RXQGFPLP.cjs → chunk-VNYP2IVJ.cjs} +25 -25
- package/dist/chunk-VPQ5SSY3.mjs +246 -0
- package/dist/{chunk-SCN6F2EN.mjs → chunk-VTEWRMGQ.mjs} +1 -1
- package/dist/{chunk-DSWSIBVQ.cjs → chunk-VXZURKMQ.cjs} +1 -5
- package/dist/chunk-W3J4QTKS.cjs +35 -0
- package/dist/{chunk-IUATO2BH.mjs → chunk-W3RJNSWQ.mjs} +1 -1
- package/dist/{chunk-MTITDGHI.mjs → chunk-WHKKMUON.mjs} +7 -7
- package/dist/chunk-WJL5HMO6.cjs +77 -0
- package/dist/{chunk-MMOB4YG4.mjs → chunk-WU3YZHOP.mjs} +64 -19
- package/dist/{chunk-MPDDUGHS.cjs → chunk-WW3RIVOI.cjs} +7 -7
- package/dist/{chunk-5T7CZMWF.mjs → chunk-WWGF6TBZ.mjs} +1 -1
- package/dist/{chunk-A77GE42F.cjs → chunk-X5N56TUH.cjs} +2 -2
- package/dist/{chunk-DDPLVMRO.cjs → chunk-XGGAJUY3.cjs} +12 -12
- package/dist/{chunk-JUFXAXIV.cjs → chunk-XLXYQQXJ.cjs} +2 -2
- package/dist/chunk-XMUP5MIM.mjs +1 -0
- package/dist/chunk-XZV6ACRQ.cjs +20 -0
- package/dist/{chunk-3XH7NAMK.mjs → chunk-Y3V6IUAR.mjs} +1 -1
- package/dist/{chunk-6LG57RUT.mjs → chunk-Y6WGGVT2.mjs} +1 -1
- package/dist/{chunk-MDDAL4L5.cjs → chunk-YO6X755G.cjs} +2 -2
- package/dist/{chunk-NFJTF2GL.cjs → chunk-YQCSEMRB.cjs} +4 -4
- package/dist/{chunk-Z6VNBZYM.mjs → chunk-YTV7747H.mjs} +1 -1
- package/dist/chunk-YXFHJKNW.cjs +171 -0
- package/dist/{chunk-NJEIDGQY.cjs → chunk-YZIR6LIY.cjs} +1 -1
- package/dist/chunk-Z5P6VCGR.cjs +99 -0
- package/dist/chunk-Z6UDRPC2.cjs +68 -0
- package/dist/{chunk-2CJREAQO.cjs → chunk-ZAP4EHBO.cjs} +9 -9
- package/dist/{chunk-OGNI52H4.mjs → chunk-ZLXUML4B.mjs} +1 -1
- package/dist/{chunk-TJIDHMTK.mjs → chunk-ZPH5LMEM.mjs} +1 -1
- package/dist/chunk-ZRYL32TK.mjs +34 -0
- 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 +16 -16
- 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 +11 -11
- package/dist/highlight-cursor/index.cjs +18 -18
- package/dist/highlight-cursor/index.d.cts +1 -1
- package/dist/highlight-cursor/index.d.ts +1 -1
- package/dist/highlight-cursor/index.mjs +12 -12
- package/dist/hooks/cn.cjs +2 -2
- package/dist/hooks/cn.mjs +1 -1
- package/dist/hooks/index.cjs +10 -10
- package/dist/hooks/index.mjs +5 -5
- package/dist/hooks/useDocument.cjs +2 -2
- package/dist/hooks/useDocument.mjs +1 -1
- package/dist/hooks/useLocalStorage.cjs +2 -2
- package/dist/hooks/useLocalStorage.mjs +1 -1
- package/dist/hooks/useQueryParams.cjs +3 -3
- package/dist/hooks/useQueryParams.mjs +2 -2
- package/dist/hooks/useWindow.cjs +2 -2
- package/dist/hooks/useWindow.mjs +1 -1
- package/dist/index.cjs +486 -445
- package/dist/index.css +7 -2
- package/dist/index.d.cts +25 -23
- package/dist/index.d.ts +25 -23
- package/dist/index.mjs +88 -75
- package/dist/styles/theme.css +7 -2
- package/dist/styles/variables.css +1 -1
- package/dist/ui/UIKitBadge.cjs +10 -10
- package/dist/ui/UIKitBadge.mjs +6 -6
- package/dist/ui/avatar.cjs +16 -16
- package/dist/ui/avatar.mjs +6 -6
- package/dist/ui/badge.cjs +8 -8
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.mjs +6 -6
- package/dist/ui/button.cjs +8 -8
- package/dist/ui/button.mjs +6 -6
- package/dist/ui/card.cjs +13 -13
- package/dist/ui/card.mjs +6 -6
- package/dist/ui/checkbox.cjs +7 -7
- package/dist/ui/checkbox.mjs +6 -6
- package/dist/ui/collapsible.cjs +9 -9
- package/dist/ui/collapsible.mjs +6 -6
- package/dist/ui/drawer.cjs +16 -16
- package/dist/ui/drawer.mjs +6 -6
- package/dist/ui/dropdown.cjs +21 -21
- package/dist/ui/dropdown.mjs +6 -6
- package/dist/ui/icons/MouseCursorIcons.cjs +14 -0
- package/dist/ui/icons/MouseCursorIcons.d.cts +9 -0
- package/dist/ui/icons/MouseCursorIcons.d.ts +9 -0
- package/dist/ui/icons/MouseCursorIcons.mjs +1 -0
- package/dist/ui/icons/index.cjs +10 -1
- package/dist/ui/icons/index.d.cts +1 -0
- package/dist/ui/icons/index.d.ts +1 -0
- package/dist/ui/icons/index.mjs +2 -1
- package/dist/ui/index.cjs +465 -425
- package/dist/ui/index.d.cts +24 -22
- package/dist/ui/index.d.ts +24 -22
- package/dist/ui/index.mjs +88 -72
- package/dist/ui/inputs/color-input.cjs +21 -0
- package/dist/ui/inputs/color-input.mjs +12 -0
- package/dist/ui/inputs/index.cjs +111 -0
- package/dist/ui/inputs/index.d.cts +20 -0
- package/dist/ui/inputs/index.d.ts +20 -0
- package/dist/ui/inputs/index.mjs +30 -0
- package/dist/ui/inputs/input-numbers.cjs +21 -0
- package/dist/ui/{input-numbers.d.cts → inputs/input-numbers.d.cts} +2 -1
- package/dist/ui/{input-numbers.d.ts → inputs/input-numbers.d.ts} +2 -1
- package/dist/ui/inputs/input-numbers.mjs +12 -0
- package/dist/ui/inputs/input.cjs +28 -0
- package/dist/ui/{input.d.cts → inputs/input.d.cts} +1 -1
- package/dist/ui/{input.d.ts → inputs/input.d.ts} +1 -1
- package/dist/ui/inputs/input.mjs +11 -0
- package/dist/ui/inputs/number-inputs/CmInput.cjs +22 -0
- package/dist/ui/inputs/number-inputs/CmInput.d.cts +13 -0
- package/dist/ui/inputs/number-inputs/CmInput.d.ts +13 -0
- package/dist/ui/inputs/number-inputs/CmInput.mjs +13 -0
- package/dist/ui/inputs/number-inputs/DegInput.cjs +22 -0
- package/dist/ui/inputs/number-inputs/DegInput.d.cts +13 -0
- package/dist/ui/inputs/number-inputs/DegInput.d.ts +13 -0
- package/dist/ui/inputs/number-inputs/DegInput.mjs +13 -0
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +24 -0
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +15 -0
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +23 -0
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +14 -0
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +24 -0
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +15 -0
- package/dist/ui/inputs/number-inputs/InchInput.cjs +22 -0
- package/dist/ui/inputs/number-inputs/InchInput.d.cts +13 -0
- package/dist/ui/inputs/number-inputs/InchInput.d.ts +13 -0
- package/dist/ui/inputs/number-inputs/InchInput.mjs +13 -0
- package/dist/ui/inputs/number-inputs/IntInput.cjs +22 -0
- package/dist/ui/inputs/number-inputs/IntInput.d.cts +13 -0
- package/dist/ui/inputs/number-inputs/IntInput.d.ts +13 -0
- package/dist/ui/inputs/number-inputs/IntInput.mjs +13 -0
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +23 -0
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +14 -0
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +23 -0
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +14 -0
- package/dist/ui/inputs/number-inputs/RadInput.cjs +22 -0
- package/dist/ui/inputs/number-inputs/RadInput.d.cts +13 -0
- package/dist/ui/inputs/number-inputs/RadInput.d.ts +13 -0
- package/dist/ui/inputs/number-inputs/RadInput.mjs +13 -0
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +22 -0
- package/dist/ui/inputs/number-inputs/TimeInput.d.cts +13 -0
- package/dist/ui/inputs/number-inputs/TimeInput.d.ts +13 -0
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +13 -0
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +23 -0
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +14 -0
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +22 -0
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +13 -0
- package/dist/ui/inputs/number-inputs/index.cjs +83 -0
- package/dist/ui/{form → inputs/number-inputs}/index.d.cts +1 -2
- package/dist/ui/{form → inputs/number-inputs}/index.d.ts +1 -2
- package/dist/ui/inputs/number-inputs/index.mjs +26 -0
- package/dist/ui/inputs/presets-input.cjs +23 -0
- package/dist/ui/inputs/presets-input.d.cts +15 -0
- package/dist/ui/inputs/presets-input.d.ts +15 -0
- package/dist/ui/inputs/presets-input.mjs +14 -0
- package/dist/ui/label.cjs +7 -7
- package/dist/ui/label.mjs +6 -6
- package/dist/ui/layout.cjs +7 -7
- package/dist/ui/layout.mjs +6 -6
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +8 -8
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +7 -7
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +12 -12
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +6 -6
- package/dist/ui/layouts/dock-layout/index.cjs +14 -14
- package/dist/ui/layouts/dock-layout/index.mjs +7 -7
- package/dist/ui/layouts/index.cjs +21 -21
- package/dist/ui/layouts/index.mjs +10 -10
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +12 -12
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +6 -6
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +8 -8
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +7 -7
- package/dist/ui/layouts/liquid-layout/index.cjs +8 -8
- package/dist/ui/layouts/liquid-layout/index.mjs +7 -7
- package/dist/ui/modal.cjs +16 -16
- package/dist/ui/modal.mjs +6 -6
- package/dist/ui/navigation.cjs +8 -8
- package/dist/ui/navigation.mjs +7 -7
- package/dist/ui/pagination.cjs +14 -14
- package/dist/ui/pagination.mjs +7 -7
- package/dist/ui/panel.cjs +13 -13
- package/dist/ui/panel.mjs +6 -6
- package/dist/ui/popover.cjs +10 -10
- package/dist/ui/popover.mjs +6 -6
- package/dist/ui/radio-group.cjs +8 -8
- package/dist/ui/radio-group.mjs +6 -6
- package/dist/ui/resizable.cjs +9 -9
- package/dist/ui/resizable.d.cts +3 -0
- package/dist/ui/resizable.d.ts +3 -0
- package/dist/ui/resizable.mjs +6 -6
- package/dist/ui/select.cjs +17 -17
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/select.mjs +6 -6
- package/dist/ui/separator.cjs +7 -7
- package/dist/ui/separator.mjs +6 -6
- package/dist/ui/sheet.cjs +14 -14
- package/dist/ui/sheet.mjs +6 -6
- package/dist/ui/sidebar.cjs +36 -36
- package/dist/ui/sidebar.d.cts +2 -2
- package/dist/ui/sidebar.d.ts +2 -2
- package/dist/ui/sidebar.mjs +12 -12
- package/dist/ui/skeleton.cjs +7 -7
- package/dist/ui/skeleton.mjs +6 -6
- package/dist/ui/slider.cjs +7 -7
- package/dist/ui/slider.mjs +6 -6
- package/dist/ui/switch.cjs +7 -7
- package/dist/ui/switch.mjs +6 -6
- package/dist/ui/table.cjs +14 -14
- package/dist/ui/table.mjs +6 -6
- package/dist/ui/tabs.cjs +10 -10
- package/dist/ui/tabs.mjs +6 -6
- package/dist/ui/textarea.cjs +7 -7
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/textarea.mjs +6 -6
- package/dist/ui/theme/ThemeProvider.cjs +26 -14
- package/dist/ui/theme/ThemeProvider.d.cts +16 -4
- package/dist/ui/theme/ThemeProvider.d.ts +16 -4
- package/dist/ui/theme/ThemeProvider.mjs +2 -2
- package/dist/ui/theme/ThemeToggles.cjs +17 -13
- package/dist/ui/theme/ThemeToggles.d.cts +10 -4
- package/dist/ui/theme/ThemeToggles.d.ts +10 -4
- package/dist/ui/theme/ThemeToggles.mjs +10 -10
- package/dist/ui/theme/index.cjs +32 -16
- package/dist/ui/theme/index.d.cts +3 -3
- package/dist/ui/theme/index.d.ts +3 -3
- package/dist/ui/theme/index.mjs +10 -10
- package/dist/ui/theme/themeScript.cjs +2 -2
- package/dist/ui/theme/themeScript.mjs +1 -1
- package/dist/ui/theme/types.d.cts +34 -27
- package/dist/ui/theme/types.d.ts +34 -27
- package/dist/ui/timeline.cjs +13 -9
- package/dist/ui/timeline.mjs +12 -8
- package/dist/ui/toggle-buttons.cjs +11 -11
- package/dist/ui/toggle-buttons.mjs +6 -6
- package/dist/ui/toggle-group.cjs +9 -9
- package/dist/ui/toggle-group.mjs +6 -6
- package/dist/ui/toggle.cjs +8 -8
- package/dist/ui/toggle.mjs +6 -6
- package/dist/ui/toolbar.cjs +9 -9
- package/dist/ui/toolbar.mjs +6 -6
- package/dist/ui/tooltip.cjs +10 -10
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/ui/tooltip.mjs +6 -6
- package/dist/ui/tree-view-v2.cjs +12 -8
- package/dist/ui/tree-view-v2.d.cts +2 -1
- package/dist/ui/tree-view-v2.d.ts +2 -1
- package/dist/ui/tree-view-v2.mjs +11 -7
- package/dist/ui/tree-view.cjs +7 -7
- package/dist/ui/tree-view.mjs +6 -6
- package/dist/ui/version-badge.cjs +2 -0
- package/dist/ui/version-badge.d.cts +2 -0
- package/dist/ui/version-badge.d.ts +2 -0
- package/dist/ui/version-badge.mjs +1 -0
- package/dist/ui/waterfall/CursorOverlay.cjs +20 -0
- package/dist/ui/waterfall/CursorOverlay.d.cts +34 -0
- package/dist/ui/waterfall/CursorOverlay.d.ts +34 -0
- package/dist/ui/waterfall/CursorOverlay.mjs +11 -0
- package/dist/ui/waterfall/NavigationControls.cjs +11 -0
- package/dist/ui/waterfall/NavigationControls.d.cts +11 -0
- package/dist/ui/waterfall/NavigationControls.d.ts +11 -0
- package/dist/ui/waterfall/NavigationControls.mjs +2 -0
- package/dist/ui/waterfall/Tick.cjs +10 -0
- package/dist/ui/waterfall/Tick.d.cts +19 -0
- package/dist/ui/waterfall/Tick.d.ts +19 -0
- package/dist/ui/waterfall/Tick.mjs +1 -0
- package/dist/ui/waterfall/TimeRuleEventDot.cjs +10 -0
- package/dist/ui/waterfall/TimeRuleEventDot.d.cts +13 -0
- package/dist/ui/waterfall/TimeRuleEventDot.d.ts +13 -0
- package/dist/ui/waterfall/TimeRuleEventDot.mjs +1 -0
- package/dist/ui/waterfall/TimelineEvent.cjs +21 -0
- package/dist/ui/waterfall/TimelineEvent.d.cts +22 -0
- package/dist/ui/waterfall/TimelineEvent.d.ts +22 -0
- package/dist/ui/waterfall/TimelineEvent.mjs +12 -0
- package/dist/ui/waterfall/TimelineProcessBar.cjs +21 -0
- package/dist/ui/waterfall/TimelineProcessBar.d.cts +23 -0
- package/dist/ui/waterfall/TimelineProcessBar.d.ts +23 -0
- package/dist/ui/waterfall/TimelineProcessBar.mjs +12 -0
- package/dist/ui/waterfall/Wedges.cjs +24 -0
- package/dist/ui/waterfall/Wedges.d.cts +21 -0
- package/dist/ui/waterfall/Wedges.d.ts +21 -0
- package/dist/ui/waterfall/Wedges.mjs +11 -0
- package/dist/ui/waterfall/WheelZoomContext.cjs +10 -0
- package/dist/ui/waterfall/WheelZoomContext.d.cts +49 -0
- package/dist/ui/waterfall/WheelZoomContext.d.ts +49 -0
- package/dist/ui/waterfall/WheelZoomContext.mjs +1 -0
- package/dist/ui/waterfall/hooks/useTimelineState.cjs +10 -0
- package/dist/ui/waterfall/hooks/useTimelineState.d.cts +84 -0
- package/dist/ui/waterfall/hooks/useTimelineState.d.ts +84 -0
- package/dist/ui/waterfall/hooks/useTimelineState.mjs +1 -0
- package/dist/ui/waterfall/hooks/useViewport.cjs +11 -0
- package/dist/ui/waterfall/hooks/useViewport.d.cts +36 -0
- package/dist/ui/waterfall/hooks/useViewport.d.ts +36 -0
- package/dist/ui/waterfall/hooks/useViewport.mjs +2 -0
- package/dist/ui/waterfall/index.cjs +37 -0
- package/dist/ui/waterfall/index.d.cts +36 -0
- package/dist/ui/waterfall/index.d.ts +36 -0
- package/dist/ui/waterfall/index.mjs +28 -0
- package/dist/ui/waterfall/types.cjs +2 -0
- package/dist/ui/waterfall/types.d.cts +22 -0
- package/dist/ui/waterfall/types.d.ts +22 -0
- package/dist/ui/waterfall/types.mjs +1 -0
- package/dist/ui/waterfall/utils.cjs +30 -0
- package/dist/ui/waterfall/utils.d.cts +36 -0
- package/dist/ui/waterfall/utils.d.ts +36 -0
- package/dist/ui/waterfall/utils.mjs +1 -0
- package/package.json +1 -1
- package/dist/chunk-3BGIINLM.cjs +0 -11
- package/dist/chunk-6YW46AEZ.mjs +0 -9
- package/dist/chunk-AQ63VYTM.mjs +0 -9
- package/dist/chunk-CMNKKJ53.mjs +0 -9
- package/dist/chunk-CWBLCQD7.mjs +0 -197
- package/dist/chunk-DL45AGBN.cjs +0 -11
- package/dist/chunk-DWU32IXO.mjs +0 -99
- package/dist/chunk-EN5B5LNH.mjs +0 -9
- package/dist/chunk-GXRV2QEP.cjs +0 -29
- package/dist/chunk-GYIBDDVZ.mjs +0 -9
- package/dist/chunk-JT64WF26.cjs +0 -210
- package/dist/chunk-JXG7KTJS.cjs +0 -33
- package/dist/chunk-LUAVB7SY.cjs +0 -102
- package/dist/chunk-MMQQYV2I.cjs +0 -21
- package/dist/chunk-NSI47INE.mjs +0 -77
- package/dist/chunk-PJHDOHO3.cjs +0 -11
- package/dist/chunk-QCSP3AI3.cjs +0 -319
- package/dist/chunk-RVJFAWT2.mjs +0 -31
- package/dist/chunk-S4QKTL7K.cjs +0 -11
- package/dist/chunk-SGFYY4IN.mjs +0 -9
- package/dist/chunk-VVLZSHQA.cjs +0 -11
- package/dist/chunk-VWGEIGJJ.cjs +0 -14
- package/dist/chunk-WZS23ODD.mjs +0 -12
- package/dist/chunk-YIPI6MEU.cjs +0 -79
- package/dist/chunk-ZMQEJUWR.cjs +0 -11
- package/dist/ui/color-input.cjs +0 -21
- package/dist/ui/color-input.mjs +0 -12
- package/dist/ui/form/CmInput.cjs +0 -22
- package/dist/ui/form/CmInput.d.cts +0 -10
- package/dist/ui/form/CmInput.d.ts +0 -10
- package/dist/ui/form/CmInput.mjs +0 -13
- package/dist/ui/form/DegInput.cjs +0 -22
- package/dist/ui/form/DegInput.d.cts +0 -10
- package/dist/ui/form/DegInput.d.ts +0 -10
- package/dist/ui/form/DegInput.mjs +0 -13
- package/dist/ui/form/EulerDegInput.cjs +0 -24
- package/dist/ui/form/EulerDegInput.mjs +0 -15
- package/dist/ui/form/EulerInput.cjs +0 -23
- package/dist/ui/form/EulerInput.mjs +0 -14
- package/dist/ui/form/EulerRadInput.cjs +0 -24
- package/dist/ui/form/EulerRadInput.mjs +0 -15
- package/dist/ui/form/InchInput.cjs +0 -22
- package/dist/ui/form/InchInput.d.cts +0 -10
- package/dist/ui/form/InchInput.d.ts +0 -10
- package/dist/ui/form/InchInput.mjs +0 -13
- package/dist/ui/form/IntInput.cjs +0 -22
- package/dist/ui/form/IntInput.d.cts +0 -10
- package/dist/ui/form/IntInput.d.ts +0 -10
- package/dist/ui/form/IntInput.mjs +0 -13
- package/dist/ui/form/KVectorInput.cjs +0 -23
- package/dist/ui/form/KVectorInput.mjs +0 -14
- package/dist/ui/form/NumberInput.cjs +0 -21
- package/dist/ui/form/NumberInput.d.cts +0 -11
- package/dist/ui/form/NumberInput.d.ts +0 -11
- package/dist/ui/form/NumberInput.mjs +0 -12
- package/dist/ui/form/QuaternionInput.cjs +0 -23
- package/dist/ui/form/QuaternionInput.mjs +0 -14
- package/dist/ui/form/RadInput.cjs +0 -22
- package/dist/ui/form/RadInput.d.cts +0 -10
- package/dist/ui/form/RadInput.d.ts +0 -10
- package/dist/ui/form/RadInput.mjs +0 -13
- package/dist/ui/form/TimeInput.cjs +0 -22
- package/dist/ui/form/TimeInput.d.cts +0 -10
- package/dist/ui/form/TimeInput.d.ts +0 -10
- package/dist/ui/form/TimeInput.mjs +0 -13
- package/dist/ui/form/Vec3Input.cjs +0 -23
- package/dist/ui/form/Vec3Input.mjs +0 -14
- package/dist/ui/form/VectorInput.cjs +0 -22
- package/dist/ui/form/VectorInput.mjs +0 -13
- package/dist/ui/form/index.cjs +0 -88
- package/dist/ui/form/index.mjs +0 -27
- package/dist/ui/input-numbers.cjs +0 -21
- package/dist/ui/input-numbers.mjs +0 -12
- package/dist/ui/input.cjs +0 -28
- package/dist/ui/input.mjs +0 -11
- package/dist/ui/presets-input.cjs +0 -22
- package/dist/ui/presets-input.d.cts +0 -11
- package/dist/ui/presets-input.d.ts +0 -11
- package/dist/ui/presets-input.mjs +0 -13
- /package/dist/{chunk-CVGK4HLB.cjs → chunk-4H5EXSBN.cjs} +0 -0
- /package/dist/{chunk-OJUTHWTF.mjs → chunk-5UMTQHTX.mjs} +0 -0
- /package/dist/{chunk-TDGOQMYZ.cjs → chunk-65OSA4MM.cjs} +0 -0
- /package/dist/{chunk-QHXNBB5E.mjs → chunk-AGRPGNME.mjs} +0 -0
- /package/dist/{chunk-UNDEM6DJ.cjs → chunk-DECFNBXU.cjs} +0 -0
- /package/dist/{chunk-ZZSMYEH2.mjs → chunk-FIWBOGQV.mjs} +0 -0
- /package/dist/ui/{color-input.d.cts → inputs/color-input.d.cts} +0 -0
- /package/dist/ui/{color-input.d.ts → inputs/color-input.d.ts} +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/EulerDegInput.d.cts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/EulerDegInput.d.ts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/EulerInput.d.cts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/EulerInput.d.ts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/EulerRadInput.d.cts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/EulerRadInput.d.ts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/KVectorInput.d.cts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/KVectorInput.d.ts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/QuaternionInput.d.cts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/QuaternionInput.d.ts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/Vec3Input.d.cts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/Vec3Input.d.ts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/VectorInput.d.cts +0 -0
- /package/dist/ui/{form → inputs/number-inputs}/VectorInput.d.ts +0 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { ThemeScript } from './chunk-PQEAXTVY.mjs';
|
|
2
|
+
import { createContext, useContext, useMemo, useState, useCallback, useEffect } from 'react';
|
|
3
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var colorSchemes = ["light", "dark"];
|
|
6
|
+
var MEDIA = "(prefers-color-scheme: dark)";
|
|
7
|
+
var isServer = typeof window === "undefined";
|
|
8
|
+
var ThemeContext = createContext(void 0);
|
|
9
|
+
var saveToLS = (key, value) => {
|
|
10
|
+
try {
|
|
11
|
+
localStorage.setItem(key, value);
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var getFromLS = (key, fallback) => {
|
|
16
|
+
if (isServer) return fallback;
|
|
17
|
+
try {
|
|
18
|
+
return localStorage.getItem(key) || fallback;
|
|
19
|
+
} catch {
|
|
20
|
+
return fallback;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var computeTheme = (baseTheme, isLiquid, systemIsDark) => {
|
|
24
|
+
let resolvedBase;
|
|
25
|
+
if (baseTheme === "system") {
|
|
26
|
+
resolvedBase = systemIsDark ? "dark" : "light";
|
|
27
|
+
} else {
|
|
28
|
+
resolvedBase = baseTheme;
|
|
29
|
+
}
|
|
30
|
+
return isLiquid ? `liquid-${resolvedBase}` : resolvedBase;
|
|
31
|
+
};
|
|
32
|
+
var parseOldTheme = (oldTheme) => {
|
|
33
|
+
if (oldTheme === "system") {
|
|
34
|
+
return { baseTheme: "system", isLiquid: false };
|
|
35
|
+
}
|
|
36
|
+
if (oldTheme.startsWith("liquid-")) {
|
|
37
|
+
const base = oldTheme.replace("liquid-", "");
|
|
38
|
+
return { baseTheme: base, isLiquid: true };
|
|
39
|
+
}
|
|
40
|
+
return { baseTheme: oldTheme, isLiquid: false };
|
|
41
|
+
};
|
|
42
|
+
var useTheme = () => {
|
|
43
|
+
const context = useContext(ThemeContext);
|
|
44
|
+
if (context === void 0) throw new Error("useTheme must be used within a ThemeProvider");
|
|
45
|
+
return context;
|
|
46
|
+
};
|
|
47
|
+
var ThemeProvider = (props) => {
|
|
48
|
+
const context = useContext(ThemeContext);
|
|
49
|
+
if (context) return /* @__PURE__ */ jsx(Fragment, { children: props.children });
|
|
50
|
+
return /* @__PURE__ */ jsx(Theme, { ...props });
|
|
51
|
+
};
|
|
52
|
+
var defaultThemes = ["light", "dark", "liquid-light", "liquid-dark"];
|
|
53
|
+
var Theme = ({
|
|
54
|
+
forcedTheme,
|
|
55
|
+
disableTransitionOnChange = false,
|
|
56
|
+
enableSystem = true,
|
|
57
|
+
enableColorScheme = false,
|
|
58
|
+
storageKey = "vuer-uikit-theme",
|
|
59
|
+
defaultBaseTheme = enableSystem ? "system" : "light",
|
|
60
|
+
defaultIsLiquid = true,
|
|
61
|
+
attribute = "class",
|
|
62
|
+
value,
|
|
63
|
+
children,
|
|
64
|
+
nonce,
|
|
65
|
+
scriptProps
|
|
66
|
+
}) => {
|
|
67
|
+
const themes = defaultThemes;
|
|
68
|
+
const initialState = useMemo(() => {
|
|
69
|
+
return { baseTheme: defaultBaseTheme, isLiquid: defaultIsLiquid };
|
|
70
|
+
}, [defaultBaseTheme, defaultIsLiquid]);
|
|
71
|
+
const [baseTheme, setBaseThemeState] = useState(() => {
|
|
72
|
+
const stored = getFromLS(`${storageKey}-base`, "");
|
|
73
|
+
if (!stored) {
|
|
74
|
+
return initialState.baseTheme;
|
|
75
|
+
}
|
|
76
|
+
return ["light", "dark", "system"].includes(stored) ? stored : initialState.baseTheme;
|
|
77
|
+
});
|
|
78
|
+
const [isLiquid, setIsLiquidState] = useState(() => {
|
|
79
|
+
const stored = getFromLS(`${storageKey}-liquid`, "");
|
|
80
|
+
if (!stored) {
|
|
81
|
+
return initialState.isLiquid;
|
|
82
|
+
}
|
|
83
|
+
return stored === "true";
|
|
84
|
+
});
|
|
85
|
+
const [systemIsDark, setSystemIsDark] = useState(() => {
|
|
86
|
+
if (isServer) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
return window.matchMedia(MEDIA).matches;
|
|
90
|
+
});
|
|
91
|
+
const attrs = !value ? themes : Object.values(value);
|
|
92
|
+
const computedTheme = useMemo(
|
|
93
|
+
() => computeTheme(baseTheme, isLiquid, systemIsDark),
|
|
94
|
+
[baseTheme, isLiquid, systemIsDark]
|
|
95
|
+
);
|
|
96
|
+
const resolvedTheme = useMemo(() => {
|
|
97
|
+
if (forcedTheme) {
|
|
98
|
+
const parsed = parseOldTheme(forcedTheme);
|
|
99
|
+
return computeTheme(parsed.baseTheme, parsed.isLiquid, systemIsDark);
|
|
100
|
+
}
|
|
101
|
+
return computedTheme;
|
|
102
|
+
}, [forcedTheme, computedTheme, systemIsDark]);
|
|
103
|
+
const applyTheme = useCallback(
|
|
104
|
+
(theme) => {
|
|
105
|
+
if (!theme) return;
|
|
106
|
+
const name = value ? value[theme] : theme;
|
|
107
|
+
const enable = disableTransitionOnChange ? disableAnimation(nonce) : null;
|
|
108
|
+
const d = document.documentElement;
|
|
109
|
+
const handleAttribute = (attr) => {
|
|
110
|
+
if (attr === "class") {
|
|
111
|
+
d.classList.remove(...attrs);
|
|
112
|
+
if (name) d.classList.add(name);
|
|
113
|
+
} else if (attr.startsWith("data-")) {
|
|
114
|
+
if (name) {
|
|
115
|
+
d.setAttribute(attr, name);
|
|
116
|
+
} else {
|
|
117
|
+
d.removeAttribute(attr);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
if (Array.isArray(attribute)) attribute.forEach(handleAttribute);
|
|
122
|
+
else handleAttribute(attribute);
|
|
123
|
+
if (enableColorScheme) {
|
|
124
|
+
const isDark = theme.includes("dark");
|
|
125
|
+
d.style.colorScheme = isDark ? "dark" : "light";
|
|
126
|
+
}
|
|
127
|
+
enable?.();
|
|
128
|
+
},
|
|
129
|
+
[attribute, attrs, disableTransitionOnChange, enableColorScheme, nonce, value]
|
|
130
|
+
);
|
|
131
|
+
const setBaseTheme = useCallback((newBaseTheme) => {
|
|
132
|
+
setBaseThemeState(newBaseTheme);
|
|
133
|
+
saveToLS(`${storageKey}-base`, newBaseTheme);
|
|
134
|
+
}, [storageKey]);
|
|
135
|
+
const toggleLiquid = useCallback(() => {
|
|
136
|
+
setIsLiquidState((prev) => {
|
|
137
|
+
const newValue = !prev;
|
|
138
|
+
saveToLS(`${storageKey}-liquid`, String(newValue));
|
|
139
|
+
return newValue;
|
|
140
|
+
});
|
|
141
|
+
}, [storageKey]);
|
|
142
|
+
const handleMediaQuery = useCallback(
|
|
143
|
+
(e) => {
|
|
144
|
+
const isDark = e.matches;
|
|
145
|
+
setSystemIsDark(isDark);
|
|
146
|
+
},
|
|
147
|
+
[]
|
|
148
|
+
);
|
|
149
|
+
useEffect(() => {
|
|
150
|
+
const media = window.matchMedia(MEDIA);
|
|
151
|
+
media.addListener(handleMediaQuery);
|
|
152
|
+
handleMediaQuery(media);
|
|
153
|
+
return () => media.removeListener(handleMediaQuery);
|
|
154
|
+
}, [handleMediaQuery]);
|
|
155
|
+
useEffect(() => {
|
|
156
|
+
const handleStorage = (e) => {
|
|
157
|
+
if (e.key === `${storageKey}-base` && e.newValue) {
|
|
158
|
+
setBaseThemeState(e.newValue);
|
|
159
|
+
} else if (e.key === `${storageKey}-liquid` && e.newValue !== null) {
|
|
160
|
+
setIsLiquidState(e.newValue === "true");
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
window.addEventListener("storage", handleStorage);
|
|
164
|
+
return () => window.removeEventListener("storage", handleStorage);
|
|
165
|
+
}, [storageKey]);
|
|
166
|
+
useEffect(() => {
|
|
167
|
+
applyTheme(resolvedTheme);
|
|
168
|
+
}, [applyTheme, resolvedTheme]);
|
|
169
|
+
const contextValue = useMemo(
|
|
170
|
+
() => ({
|
|
171
|
+
baseTheme,
|
|
172
|
+
setBaseTheme,
|
|
173
|
+
isLiquid,
|
|
174
|
+
toggleLiquid,
|
|
175
|
+
computedTheme,
|
|
176
|
+
resolvedTheme,
|
|
177
|
+
systemTheme: enableSystem ? systemIsDark ? "dark" : "light" : void 0,
|
|
178
|
+
forcedTheme,
|
|
179
|
+
storageKey
|
|
180
|
+
}),
|
|
181
|
+
[
|
|
182
|
+
baseTheme,
|
|
183
|
+
setBaseTheme,
|
|
184
|
+
isLiquid,
|
|
185
|
+
toggleLiquid,
|
|
186
|
+
computedTheme,
|
|
187
|
+
resolvedTheme,
|
|
188
|
+
systemIsDark,
|
|
189
|
+
enableSystem,
|
|
190
|
+
forcedTheme,
|
|
191
|
+
storageKey
|
|
192
|
+
]
|
|
193
|
+
);
|
|
194
|
+
return /* @__PURE__ */ jsxs(ThemeContext.Provider, { value: contextValue, children: [
|
|
195
|
+
/* @__PURE__ */ jsx(
|
|
196
|
+
ThemeScript,
|
|
197
|
+
{
|
|
198
|
+
...{
|
|
199
|
+
forcedTheme,
|
|
200
|
+
storageKey,
|
|
201
|
+
attribute,
|
|
202
|
+
enableSystem,
|
|
203
|
+
enableColorScheme,
|
|
204
|
+
defaultTheme: initialState.baseTheme === "system" ? "system" : initialState.isLiquid ? `liquid-${initialState.baseTheme}` : initialState.baseTheme,
|
|
205
|
+
value,
|
|
206
|
+
themes,
|
|
207
|
+
nonce,
|
|
208
|
+
scriptProps
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
children
|
|
213
|
+
] });
|
|
214
|
+
};
|
|
215
|
+
var getTheme = (key, fallback) => {
|
|
216
|
+
return getFromLS(key, fallback);
|
|
217
|
+
};
|
|
218
|
+
var disableAnimation = (nonce) => {
|
|
219
|
+
const css = document.createElement("style");
|
|
220
|
+
if (nonce) css.setAttribute("nonce", nonce);
|
|
221
|
+
css.appendChild(
|
|
222
|
+
document.createTextNode(
|
|
223
|
+
`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`
|
|
224
|
+
)
|
|
225
|
+
);
|
|
226
|
+
document.head.appendChild(css);
|
|
227
|
+
return () => {
|
|
228
|
+
(() => window.getComputedStyle(document.body))();
|
|
229
|
+
setTimeout(() => {
|
|
230
|
+
if (css && css.parentNode) {
|
|
231
|
+
css.parentNode.removeChild(css);
|
|
232
|
+
}
|
|
233
|
+
}, 1);
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
var getSystemTheme = (e) => {
|
|
237
|
+
if (isServer) return "liquid-light";
|
|
238
|
+
if (!e) e = window.matchMedia(MEDIA);
|
|
239
|
+
const isDark = e.matches;
|
|
240
|
+
return isDark ? "liquid-dark" : "liquid-light";
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
export { MEDIA, Theme, ThemeContext, ThemeProvider, colorSchemes, computeTheme, defaultThemes, disableAnimation, getFromLS, getSystemTheme, getTheme, isServer, parseOldTheme, saveToLS, useTheme };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
// src/ui/icons/MouseCursorIcons.tsx
|
|
6
|
+
var MouseCursorIcon = ({ strokeWidth = 2.25 }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
width: "16",
|
|
12
|
+
height: "16",
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
fill: "none",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
"stroke-width": strokeWidth,
|
|
17
|
+
"stroke-linecap": "round",
|
|
18
|
+
"stroke-linejoin": "round",
|
|
19
|
+
className: "lucide lucide-mouse-pointer2-icon lucide-mouse-pointer-2",
|
|
20
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z" })
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
var MouseCursorAltIcon = ({ strokeWidth = 2.25 }) => {
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
26
|
+
"svg",
|
|
27
|
+
{
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
+
width: "16",
|
|
30
|
+
height: "16",
|
|
31
|
+
viewBox: "0 0 24 24",
|
|
32
|
+
fill: "currentColor",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
"stroke-width": strokeWidth / 2,
|
|
35
|
+
className: "lucide lucide-mouse-pointer2-icon lucide-mouse-pointer-2",
|
|
36
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z" })
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.MouseCursorAltIcon = MouseCursorAltIcon;
|
|
42
|
+
exports.MouseCursorIcon = MouseCursorIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
4
4
|
var chunkP6DICGAV_cjs = require('./chunk-P6DICGAV.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var reactDom = require('react-dom');
|
|
@@ -192,7 +192,7 @@ var CursorProvider = ({
|
|
|
192
192
|
Component,
|
|
193
193
|
{
|
|
194
194
|
...props,
|
|
195
|
-
className:
|
|
195
|
+
className: chunkOHIB3TEN_cjs.cn(className),
|
|
196
196
|
style: {
|
|
197
197
|
cursor: isMouseInside && !hoveredElementId ? "none" : "auto",
|
|
198
198
|
...props.style
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createClientOnlyComponent } from './chunk-4F2GSF2T.mjs';
|
|
2
|
-
import { cn } from './chunk-
|
|
2
|
+
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
3
3
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import { createContext, useContext } from 'react';
|
|
@@ -58,7 +58,6 @@ var toggleGroupVariants = cva(
|
|
|
58
58
|
"bg-bg-secondary",
|
|
59
59
|
"hover:bg-group-hover",
|
|
60
60
|
"border-solid border border-transparent -mr-[1px]",
|
|
61
|
-
"dark:border-solid dark:border dark:-mr-[1px]",
|
|
62
61
|
"data-[state=on]:text-secondary-foreground",
|
|
63
62
|
"data-[state=on]:bg-group-primary",
|
|
64
63
|
"data-[state=on]:border-line-secondary",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTabsCursor, TabsCursorProvider } from './chunk-XMG3IVGZ.mjs';
|
|
2
2
|
import { createClientOnlyComponent } from './chunk-4F2GSF2T.mjs';
|
|
3
|
-
import { cn } from './chunk-
|
|
3
|
+
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
4
4
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { createContext, useContext } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
4
4
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -29,7 +29,7 @@ var Checkbox = ({ className, checkall, ...props }) => /* @__PURE__ */ jsxRuntime
|
|
|
29
29
|
CheckboxPrimitive__namespace.Root,
|
|
30
30
|
{
|
|
31
31
|
"data-slot": "checkbox",
|
|
32
|
-
className:
|
|
32
|
+
className: chunkOHIB3TEN_cjs.cn(
|
|
33
33
|
"group",
|
|
34
34
|
"relative",
|
|
35
35
|
"w-[16px]",
|
|
@@ -59,7 +59,7 @@ var Checkbox = ({ className, checkall, ...props }) => /* @__PURE__ */ jsxRuntime
|
|
|
59
59
|
CheckboxPrimitive__namespace.Indicator,
|
|
60
60
|
{
|
|
61
61
|
"data-slot": "checkbox-indicator",
|
|
62
|
-
className:
|
|
62
|
+
className: chunkOHIB3TEN_cjs.cn(
|
|
63
63
|
"absolute",
|
|
64
64
|
"inset-0",
|
|
65
65
|
"m-auto",
|
|
@@ -73,7 +73,7 @@ var Checkbox = ({ className, checkall, ...props }) => /* @__PURE__ */ jsxRuntime
|
|
|
73
73
|
CheckboxPrimitive__namespace.Indicator,
|
|
74
74
|
{
|
|
75
75
|
"data-slot": "checkbox-indicator",
|
|
76
|
-
className:
|
|
76
|
+
className: chunkOHIB3TEN_cjs.cn(
|
|
77
77
|
"flex",
|
|
78
78
|
"items-center",
|
|
79
79
|
"justify-center",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkT2RTITL6_cjs = require('./chunk-T2RTITL6.cjs');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
var DegInput = react.forwardRef(function DegInput2({ value = 0, onChange, ...props }, ref) {
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
+
chunkT2RTITL6_cjs.InputNumbers,
|
|
10
|
+
{
|
|
11
|
+
ref,
|
|
12
|
+
value: [value],
|
|
13
|
+
onValuesChange: (values) => onChange?.(values[0]),
|
|
14
|
+
suffix: ["\xB0"],
|
|
15
|
+
...props
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
exports.DegInput = DegInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncScroll, useScrollSlave, useSyncDrag } from './chunk-SAGQV2YZ.mjs';
|
|
2
|
-
import { cn } from './chunk-
|
|
2
|
+
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -239,5 +239,62 @@ var SyncDragSlaveX = ({
|
|
|
239
239
|
}
|
|
240
240
|
);
|
|
241
241
|
};
|
|
242
|
+
var SyncDragY = ({
|
|
243
|
+
ref: extRef,
|
|
244
|
+
children,
|
|
245
|
+
className,
|
|
246
|
+
asChild = false,
|
|
247
|
+
...props
|
|
248
|
+
}) => {
|
|
249
|
+
const ref = useSyncDrag({ ref: extRef, axis: "vertical" });
|
|
250
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
251
|
+
const dragStartY = useRef(0);
|
|
252
|
+
const scrollStartTop = useRef(0);
|
|
253
|
+
useEffect(() => {
|
|
254
|
+
const element = ref.current;
|
|
255
|
+
if (!element) return;
|
|
256
|
+
const handleMouseDown = (e) => {
|
|
257
|
+
setIsDragging(true);
|
|
258
|
+
dragStartY.current = e.clientY;
|
|
259
|
+
scrollStartTop.current = element.scrollTop;
|
|
260
|
+
e.preventDefault();
|
|
261
|
+
};
|
|
262
|
+
const handleMouseMove = (e) => {
|
|
263
|
+
if (!isDragging || !element) return;
|
|
264
|
+
const deltaY = e.clientY - dragStartY.current;
|
|
265
|
+
element.scrollTop = scrollStartTop.current - deltaY * 2;
|
|
266
|
+
};
|
|
267
|
+
const handleMouseUp = () => {
|
|
268
|
+
setIsDragging(false);
|
|
269
|
+
};
|
|
270
|
+
element.addEventListener("mousedown", handleMouseDown);
|
|
271
|
+
if (isDragging) {
|
|
272
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
273
|
+
document.addEventListener("mouseup", handleMouseUp);
|
|
274
|
+
document.addEventListener("mouseleave", handleMouseUp);
|
|
275
|
+
}
|
|
276
|
+
return () => {
|
|
277
|
+
element.removeEventListener("mousedown", handleMouseDown);
|
|
278
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
279
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
280
|
+
document.removeEventListener("mouseleave", handleMouseUp);
|
|
281
|
+
};
|
|
282
|
+
}, [isDragging, ref]);
|
|
283
|
+
const Comp = asChild ? Slot : "div";
|
|
284
|
+
return /* @__PURE__ */ jsx(
|
|
285
|
+
Comp,
|
|
286
|
+
{
|
|
287
|
+
ref,
|
|
288
|
+
className: cn(
|
|
289
|
+
"cursor-grab overflow-x-hidden overflow-y-auto",
|
|
290
|
+
isDragging && "cursor-grabbing",
|
|
291
|
+
className
|
|
292
|
+
),
|
|
293
|
+
style: { userSelect: isDragging ? "none" : "auto", ...props.style },
|
|
294
|
+
...props,
|
|
295
|
+
children
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
};
|
|
242
299
|
|
|
243
|
-
export { SyncDrag, SyncDragSlave, SyncDragSlaveX, SyncDragX, SyncScroll, SyncScrollSlave };
|
|
300
|
+
export { SyncDrag, SyncDragSlave, SyncDragSlaveX, SyncDragX, SyncDragY, SyncScroll, SyncScrollSlave };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useRef, useEffect, useCallback } from 'react';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
// src/ui/waterfall/WheelZoomContext.tsx
|
|
5
|
+
function WheelZoomContext({
|
|
6
|
+
ref,
|
|
7
|
+
className,
|
|
8
|
+
viewStart,
|
|
9
|
+
viewDuration,
|
|
10
|
+
onViewStartChange,
|
|
11
|
+
onWindowChange,
|
|
12
|
+
minWindow = 0.01,
|
|
13
|
+
maxWindow = Infinity,
|
|
14
|
+
zoomFactor = 1.1,
|
|
15
|
+
enabled = true,
|
|
16
|
+
children
|
|
17
|
+
}) {
|
|
18
|
+
const localRef = useRef(null);
|
|
19
|
+
const containerRef = ref || localRef;
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const container = containerRef.current;
|
|
22
|
+
if (!container || !enabled) return;
|
|
23
|
+
const preventScroll = (e) => {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
};
|
|
26
|
+
container.addEventListener("wheel", preventScroll, { passive: false });
|
|
27
|
+
return () => {
|
|
28
|
+
container.removeEventListener("wheel", preventScroll);
|
|
29
|
+
};
|
|
30
|
+
}, [enabled]);
|
|
31
|
+
const handleWheel = useCallback(
|
|
32
|
+
(e) => {
|
|
33
|
+
if (!enabled) return;
|
|
34
|
+
const container = containerRef.current;
|
|
35
|
+
if (!container) return;
|
|
36
|
+
if (e.shiftKey || e.altKey) {
|
|
37
|
+
const rect = container.getBoundingClientRect();
|
|
38
|
+
const cursorX = e.clientX - rect.left;
|
|
39
|
+
const cursorRatio = cursorX / container.offsetWidth;
|
|
40
|
+
const timeAtCursor = viewStart + cursorRatio * viewDuration;
|
|
41
|
+
const scaleFactor = e.deltaY < 0 ? 1 / zoomFactor : zoomFactor;
|
|
42
|
+
const newDuration = Math.max(minWindow, Math.min(maxWindow, viewDuration * scaleFactor));
|
|
43
|
+
if (newDuration === viewDuration) return;
|
|
44
|
+
const newViewStart = timeAtCursor - cursorRatio * newDuration;
|
|
45
|
+
onWindowChange(newDuration);
|
|
46
|
+
onViewStartChange(newViewStart);
|
|
47
|
+
} else {
|
|
48
|
+
const panAmount = (e.deltaX + e.deltaY) / container.offsetWidth * viewDuration;
|
|
49
|
+
onViewStartChange(viewStart + panAmount);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
[
|
|
53
|
+
enabled,
|
|
54
|
+
viewStart,
|
|
55
|
+
viewDuration,
|
|
56
|
+
onViewStartChange,
|
|
57
|
+
onWindowChange,
|
|
58
|
+
minWindow,
|
|
59
|
+
maxWindow,
|
|
60
|
+
zoomFactor
|
|
61
|
+
]
|
|
62
|
+
);
|
|
63
|
+
return /* @__PURE__ */ jsx("div", { ref: containerRef, className, onWheel: handleWheel, children });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { WheelZoomContext };
|