@xiping/react-components 0.0.69 → 0.0.71
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/cjs/components/hyper-text/index.js +1 -1
- package/dist/cjs/components/image-compare/ImageCompare.d.ts +7 -0
- package/dist/cjs/components/image-compare/ImageCompare.js +1 -0
- package/dist/cjs/components/image-compare/ImageCompare.stories.js +1 -0
- package/dist/cjs/components/image-compare/index.d.ts +3 -0
- package/dist/cjs/components/image-viewer/ImageViewer.js +1 -1
- package/dist/cjs/components/pinch-content/PinchContent.js +1 -1
- package/dist/cjs/components/shimmer-button/ShimmerButton.js +1 -0
- package/dist/cjs/components/shimmer-button/index.d.ts +3 -0
- package/dist/cjs/components/text-animate/TextAnimate.js +2 -0
- package/dist/cjs/components/txt-reader/TxtReader.js +1 -1
- package/dist/cjs/components/typing-animation/index.js +1 -1
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-24BRZQJF.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-2ZJD7MKZ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-3F27QTJW.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-3GPQ2LUY.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-3Z37Y6B2.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-43N2UFQU.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-4M7CXV44.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-5D35SWPH.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-5FBIXRBD.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6AAYEFVP.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6FO5QCQQ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6FP7AFFM.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6O4D66VA.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6X25BMGN.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-A422CE5A.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-A4Y2TLYC.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-BXMXMVXO.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-CNIWQETC.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-CNJZSIML.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-CUX6X6GY.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DCJ3HHNV.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DLPY5TR4.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DQULUOQ4.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DUXITTME.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DXHLWLGK.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EHAMMO3P.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EHM5NMIX.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EL7E726V.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ENFQEI2P.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ETQLBG6X.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EVTSQNBU.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EZ5YFNAZ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-F4DBCRTM.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-FCO72CCF.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-FM2GNVRP.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-FY53I2VT.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-GBVWLY6G.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-GD4MHNDP.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-GRWTKNXR.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-HPBAFMBJ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-HUFA3TKM.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-IXET6VTM.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-J2KVC2WG.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-J6GQDZ26.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-J6YN5Q6Y.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-JAKXOQM3.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-JDP4O6HJ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KAEAQCFF.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KHNAWBJV.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KRMY7ATX.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KVLHDMYV.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KXKIL4EI.js +11 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LDPZT6U3.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LH3JPWVA.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LVIYI3TP.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LVNZ4CWJ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-MLTTHHPT.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-NCUDWWYB.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-O3FRUTFM.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-O7YISX2Z.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-OV3KSZE2.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-PIBRD2HF.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-SKTRHTW6.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-T5LUYR7I.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-THY6XJI2.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-TJU6EFG7.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-U5ML4RDM.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-VDP43VBQ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WF535NTE.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WGCBKSUO.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WGFXVCCE.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WLVMHISZ.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-X5AIMSKG.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-XV6ZCPLC.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ZRCSBYIY.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ZY5TEA7T.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ZYSYPWD7.js +1 -0
- package/dist/cjs/react-components.css +1 -1
- package/dist/es/components/hyper-text/index.js +9 -8
- package/dist/es/components/image-compare/ImageCompare.d.ts +7 -0
- package/dist/es/components/image-compare/ImageCompare.js +101 -0
- package/dist/es/components/image-compare/ImageCompare.stories.js +36 -0
- package/dist/es/components/image-compare/index.d.ts +3 -0
- package/dist/es/components/image-viewer/ImageViewer.js +1 -0
- package/dist/es/components/shimmer-button/ShimmerButton.js +75 -0
- package/dist/es/components/shimmer-button/index.d.ts +3 -0
- package/dist/es/components/text-animate/TextAnimate.js +309 -0
- package/dist/es/components/typing-animation/index.js +5 -4
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.js +10 -4
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-24BRZQJF.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-2ZJD7MKZ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-3F27QTJW.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-3GPQ2LUY.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-3Z37Y6B2.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-43N2UFQU.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-4M7CXV44.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-5D35SWPH.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-5FBIXRBD.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6AAYEFVP.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6FO5QCQQ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6FP7AFFM.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6O4D66VA.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-6X25BMGN.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-A422CE5A.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-A4Y2TLYC.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-BXMXMVXO.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-CNIWQETC.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-CNJZSIML.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-CUX6X6GY.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DCJ3HHNV.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DLPY5TR4.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DQULUOQ4.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DUXITTME.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-DXHLWLGK.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EHAMMO3P.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EHM5NMIX.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EL7E726V.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ENFQEI2P.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ETQLBG6X.js +2 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EVTSQNBU.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-EZ5YFNAZ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-F4DBCRTM.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-FCO72CCF.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-FM2GNVRP.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-FY53I2VT.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-GBVWLY6G.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-GD4MHNDP.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-GRWTKNXR.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-HPBAFMBJ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-HUFA3TKM.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-IXET6VTM.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-J2KVC2WG.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-J6GQDZ26.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-J6YN5Q6Y.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-JAKXOQM3.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-JDP4O6HJ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KAEAQCFF.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KHNAWBJV.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KRMY7ATX.js +6 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KVLHDMYV.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KXKIL4EI.js +1756 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LDPZT6U3.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LH3JPWVA.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LVIYI3TP.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-LVNZ4CWJ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-MLTTHHPT.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-NCUDWWYB.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-O3FRUTFM.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-O7YISX2Z.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-OV3KSZE2.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-PIBRD2HF.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-SKTRHTW6.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-T5LUYR7I.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-THY6XJI2.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-TJU6EFG7.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-U5ML4RDM.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-VDP43VBQ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WF535NTE.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WGCBKSUO.js +4 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WGFXVCCE.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-WLVMHISZ.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-X5AIMSKG.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-XV6ZCPLC.js +7 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ZRCSBYIY.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ZY5TEA7T.js +8 -0
- package/dist/es/node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-ZYSYPWD7.js +8 -0
- package/dist/es/react-components.css +1 -1
- package/package.json +24 -23
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
3
|
import { cn as g } from "../../utils/utils.js";
|
|
3
4
|
import { motion as v, AnimatePresence as H } from "motion/react";
|
|
@@ -8,10 +9,10 @@ const N = Object.freeze(
|
|
|
8
9
|
function L({
|
|
9
10
|
children: e,
|
|
10
11
|
className: A,
|
|
11
|
-
duration:
|
|
12
|
+
duration: l = 800,
|
|
12
13
|
delay: s = 0,
|
|
13
14
|
as: M = "div",
|
|
14
|
-
startOnView:
|
|
15
|
+
startOnView: m = !1,
|
|
15
16
|
animateOnHover: h = !0,
|
|
16
17
|
characterSet: i = N,
|
|
17
18
|
...C
|
|
@@ -24,7 +25,7 @@ function L({
|
|
|
24
25
|
h && !a && (r.current = 0, o(!0));
|
|
25
26
|
};
|
|
26
27
|
return d(() => {
|
|
27
|
-
if (!
|
|
28
|
+
if (!m) {
|
|
28
29
|
const n = setTimeout(() => {
|
|
29
30
|
o(!0);
|
|
30
31
|
}, s);
|
|
@@ -39,17 +40,17 @@ function L({
|
|
|
39
40
|
{ threshold: 0.1, rootMargin: "-30% 0px -30% 0px" }
|
|
40
41
|
);
|
|
41
42
|
return c.current && t.observe(c.current), () => t.disconnect();
|
|
42
|
-
}, [s,
|
|
43
|
+
}, [s, m]), d(() => {
|
|
43
44
|
if (!a) return;
|
|
44
|
-
const t =
|
|
45
|
+
const t = l / (e.length * 10), n = e.length, f = setInterval(() => {
|
|
45
46
|
r.current < n ? (b(
|
|
46
47
|
(w) => w.map(
|
|
47
48
|
(p, T) => p === " " ? p : T <= r.current ? e[T] : i[P(i.length)]
|
|
48
49
|
)
|
|
49
|
-
), r.current = r.current + 0.1) : (o(!1), clearInterval(
|
|
50
|
+
), r.current = r.current + 0.1) : (o(!1), clearInterval(f));
|
|
50
51
|
}, t);
|
|
51
|
-
return () => clearInterval(
|
|
52
|
-
}, [e,
|
|
52
|
+
return () => clearInterval(f);
|
|
53
|
+
}, [e, l, a, i]), /* @__PURE__ */ u(
|
|
53
54
|
E,
|
|
54
55
|
{
|
|
55
56
|
ref: c,
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsxs as R, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import y from "clsx";
|
|
3
|
+
import { useState as d, useRef as I, useCallback as t, useEffect as N } from "react";
|
|
4
|
+
const T = (i, o) => {
|
|
5
|
+
let n;
|
|
6
|
+
return function(...l) {
|
|
7
|
+
n || (i.apply(this, l), n = !0, setTimeout(() => n = !1, o));
|
|
8
|
+
};
|
|
9
|
+
}, P = (i) => {
|
|
10
|
+
const { originalImage: o, modifiedImage: n, className: l } = i, [h, v] = d(50), [a, g] = d(!1), [w, b] = d(16 / 9), c = I(null), f = t(
|
|
11
|
+
(e) => {
|
|
12
|
+
if (!a || !c.current) return;
|
|
13
|
+
const p = c.current.getBoundingClientRect(), x = (e - p.left) / p.width * 100;
|
|
14
|
+
v(Math.min(100, Math.max(0, x)));
|
|
15
|
+
},
|
|
16
|
+
[a]
|
|
17
|
+
), r = t(
|
|
18
|
+
T((e) => f(e), 16),
|
|
19
|
+
[f]
|
|
20
|
+
), M = t((e) => {
|
|
21
|
+
r(e.clientX);
|
|
22
|
+
}, [r]), k = t((e) => {
|
|
23
|
+
r(e.touches[0].clientX);
|
|
24
|
+
}, [r]), m = t(() => {
|
|
25
|
+
g(!0);
|
|
26
|
+
}, []), u = t(() => {
|
|
27
|
+
g(!1);
|
|
28
|
+
}, []);
|
|
29
|
+
return N(() => {
|
|
30
|
+
const e = new Image();
|
|
31
|
+
e.onload = () => {
|
|
32
|
+
b(e.width / e.height);
|
|
33
|
+
}, e.src = o;
|
|
34
|
+
}, [o]), /* @__PURE__ */ R(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
ref: c,
|
|
38
|
+
className: y("relative select-none overflow-hidden w-full", l),
|
|
39
|
+
style: {
|
|
40
|
+
backgroundRepeat: "no-repeat",
|
|
41
|
+
backgroundPosition: "top left",
|
|
42
|
+
backgroundImage: `url(${o})`,
|
|
43
|
+
backgroundSize: "contain",
|
|
44
|
+
aspectRatio: w
|
|
45
|
+
},
|
|
46
|
+
onMouseMove: a ? M : void 0,
|
|
47
|
+
onTouchMove: a ? k : void 0,
|
|
48
|
+
onMouseUp: u,
|
|
49
|
+
onMouseLeave: u,
|
|
50
|
+
onTouchEnd: u,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ s(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: "absolute inset-0 h-full overflow-hidden",
|
|
56
|
+
style: {
|
|
57
|
+
width: `${h}%`,
|
|
58
|
+
backgroundImage: `url(${n})`,
|
|
59
|
+
backgroundRepeat: "no-repeat",
|
|
60
|
+
backgroundPosition: "top left",
|
|
61
|
+
backgroundSize: "auto 100%"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ s(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: "absolute top-0 bottom-0 w-1 bg-white cursor-ew-resize",
|
|
69
|
+
style: {
|
|
70
|
+
left: `${h}%`,
|
|
71
|
+
transform: "translateX(-50%)"
|
|
72
|
+
},
|
|
73
|
+
onMouseDown: m,
|
|
74
|
+
onTouchStart: m,
|
|
75
|
+
children: /* @__PURE__ */ s("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-8 rounded-full bg-white shadow-lg flex items-center justify-center", children: /* @__PURE__ */ s(
|
|
76
|
+
"svg",
|
|
77
|
+
{
|
|
78
|
+
className: "w-6 h-6 text-gray-600",
|
|
79
|
+
fill: "none",
|
|
80
|
+
stroke: "currentColor",
|
|
81
|
+
viewBox: "0 0 24 24",
|
|
82
|
+
children: /* @__PURE__ */ s(
|
|
83
|
+
"path",
|
|
84
|
+
{
|
|
85
|
+
strokeLinecap: "round",
|
|
86
|
+
strokeLinejoin: "round",
|
|
87
|
+
strokeWidth: 2,
|
|
88
|
+
d: "M8 9l4-4 4 4m0 6l-4 4-4-4"
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
) })
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
P as default
|
|
101
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import o from "./ImageCompare.js";
|
|
3
|
+
import { a as t } from "../../node_modules/.pnpm/@faker-js_faker@9.5.0/node_modules/@faker-js/faker/dist/chunk-KRMY7ATX.js";
|
|
4
|
+
t.image.dataUri({
|
|
5
|
+
width: 1920,
|
|
6
|
+
height: 1080
|
|
7
|
+
});
|
|
8
|
+
t.image.dataUri({
|
|
9
|
+
width: 1920,
|
|
10
|
+
height: 1080
|
|
11
|
+
});
|
|
12
|
+
const r = {
|
|
13
|
+
title: "Components/ImageCompare",
|
|
14
|
+
component: o,
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: "centered"
|
|
17
|
+
},
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
originalImage: {
|
|
21
|
+
control: "text",
|
|
22
|
+
description: "URL or path of the original image"
|
|
23
|
+
},
|
|
24
|
+
modifiedImage: {
|
|
25
|
+
control: "text",
|
|
26
|
+
description: "URL or path of the modified/comparison image"
|
|
27
|
+
},
|
|
28
|
+
className: {
|
|
29
|
+
control: "text",
|
|
30
|
+
description: "Additional CSS classes to apply to the component"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
r as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { cn as e } from "../../utils/utils.js";
|
|
4
|
+
const m = p.forwardRef(
|
|
5
|
+
({
|
|
6
|
+
shimmerColor: a = "#ffffff",
|
|
7
|
+
shimmerSize: t = "0.05em",
|
|
8
|
+
shimmerDuration: s = "3s",
|
|
9
|
+
borderRadius: i = "100px",
|
|
10
|
+
background: o = "rgba(0, 0, 0, 1)",
|
|
11
|
+
className: n,
|
|
12
|
+
children: d,
|
|
13
|
+
...f
|
|
14
|
+
}, u) => /* @__PURE__ */ l(
|
|
15
|
+
"button",
|
|
16
|
+
{
|
|
17
|
+
style: {
|
|
18
|
+
"--spread": "90deg",
|
|
19
|
+
"--shimmer-color": a,
|
|
20
|
+
"--radius": i,
|
|
21
|
+
"--speed": s,
|
|
22
|
+
"--cut": t,
|
|
23
|
+
"--bg": o
|
|
24
|
+
},
|
|
25
|
+
className: e(
|
|
26
|
+
"group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border border-white/10 px-6 py-3 text-white [background:var(--bg)] [border-radius:var(--radius)] dark:text-black",
|
|
27
|
+
"transform-gpu transition-transform duration-300 ease-in-out active:translate-y-px",
|
|
28
|
+
n
|
|
29
|
+
),
|
|
30
|
+
ref: u,
|
|
31
|
+
...f,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ r(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: e(
|
|
37
|
+
"-z-30 blur-[2px]",
|
|
38
|
+
"absolute inset-0 overflow-visible [container-type:size]"
|
|
39
|
+
),
|
|
40
|
+
children: /* @__PURE__ */ r("div", { className: "absolute inset-0 h-[100cqh] animate-shimmer-slide [aspect-ratio:1] [border-radius:0] [mask:none]", children: /* @__PURE__ */ r("div", { className: "absolute -inset-full w-auto rotate-0 animate-spin-around [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))] [translate:0_0]" }) })
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
d,
|
|
44
|
+
/* @__PURE__ */ r(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: e(
|
|
48
|
+
"insert-0 absolute size-full",
|
|
49
|
+
"rounded-2xl px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#ffffff1f]",
|
|
50
|
+
// transition
|
|
51
|
+
"transform-gpu transition-all duration-300 ease-in-out",
|
|
52
|
+
// on hover
|
|
53
|
+
"group-hover:shadow-[inset_0_-6px_10px_#ffffff3f]",
|
|
54
|
+
// on click
|
|
55
|
+
"group-active:shadow-[inset_0_-10px_10px_#ffffff3f]"
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ r(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: e(
|
|
63
|
+
"absolute -z-20 [background:var(--bg)] [border-radius:var(--radius)] [inset:var(--cut)]"
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
m.displayName = "ShimmerButton";
|
|
72
|
+
export {
|
|
73
|
+
m as ShimmerButton,
|
|
74
|
+
m as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { cn as y } from "../../utils/utils.js";
|
|
4
|
+
import { motion as u, AnimatePresence as g } from "motion/react";
|
|
5
|
+
const s = {
|
|
6
|
+
text: 0.06,
|
|
7
|
+
word: 0.05,
|
|
8
|
+
character: 0.03,
|
|
9
|
+
line: 0.06
|
|
10
|
+
}, t = {
|
|
11
|
+
hidden: { opacity: 1 },
|
|
12
|
+
show: {
|
|
13
|
+
opacity: 1,
|
|
14
|
+
transition: {
|
|
15
|
+
staggerChildren: 0.05
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
exit: {
|
|
19
|
+
opacity: 0,
|
|
20
|
+
transition: {
|
|
21
|
+
staggerChildren: 0.05,
|
|
22
|
+
staggerDirection: -1
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, b = {
|
|
26
|
+
hidden: { opacity: 0 },
|
|
27
|
+
show: {
|
|
28
|
+
opacity: 1
|
|
29
|
+
},
|
|
30
|
+
exit: {
|
|
31
|
+
opacity: 0
|
|
32
|
+
}
|
|
33
|
+
}, o = {
|
|
34
|
+
fadeIn: {
|
|
35
|
+
container: t,
|
|
36
|
+
item: {
|
|
37
|
+
hidden: { opacity: 0, y: 20 },
|
|
38
|
+
show: (i) => ({
|
|
39
|
+
opacity: 1,
|
|
40
|
+
y: 0,
|
|
41
|
+
transition: {
|
|
42
|
+
delay: i,
|
|
43
|
+
duration: 0.3
|
|
44
|
+
}
|
|
45
|
+
}),
|
|
46
|
+
exit: {
|
|
47
|
+
opacity: 0,
|
|
48
|
+
y: 20,
|
|
49
|
+
transition: { duration: 0.3 }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
blurIn: {
|
|
54
|
+
container: t,
|
|
55
|
+
item: {
|
|
56
|
+
hidden: { opacity: 0, filter: "blur(10px)" },
|
|
57
|
+
show: (i) => ({
|
|
58
|
+
opacity: 1,
|
|
59
|
+
filter: "blur(0px)",
|
|
60
|
+
transition: {
|
|
61
|
+
delay: i * 0.1,
|
|
62
|
+
duration: 0.3
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
65
|
+
exit: {
|
|
66
|
+
opacity: 0,
|
|
67
|
+
filter: "blur(10px)",
|
|
68
|
+
transition: { duration: 0.3 }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
blurInUp: {
|
|
73
|
+
container: t,
|
|
74
|
+
item: {
|
|
75
|
+
hidden: { opacity: 0, filter: "blur(10px)", y: 20 },
|
|
76
|
+
show: (i) => ({
|
|
77
|
+
opacity: 1,
|
|
78
|
+
filter: "blur(0px)",
|
|
79
|
+
y: 0,
|
|
80
|
+
transition: {
|
|
81
|
+
y: { duration: 0.3 },
|
|
82
|
+
opacity: { duration: 0.4 },
|
|
83
|
+
filter: { duration: 0.3 }
|
|
84
|
+
}
|
|
85
|
+
}),
|
|
86
|
+
exit: {
|
|
87
|
+
opacity: 0,
|
|
88
|
+
filter: "blur(10px)",
|
|
89
|
+
y: 20,
|
|
90
|
+
transition: {
|
|
91
|
+
y: { duration: 0.3 },
|
|
92
|
+
opacity: { duration: 0.4 },
|
|
93
|
+
filter: { duration: 0.3 }
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
blurInDown: {
|
|
99
|
+
container: t,
|
|
100
|
+
item: {
|
|
101
|
+
hidden: { opacity: 0, filter: "blur(10px)", y: -20 },
|
|
102
|
+
show: (i) => ({
|
|
103
|
+
opacity: 1,
|
|
104
|
+
filter: "blur(0px)",
|
|
105
|
+
y: 0,
|
|
106
|
+
transition: {
|
|
107
|
+
y: { duration: 0.3 },
|
|
108
|
+
opacity: { duration: 0.4 },
|
|
109
|
+
filter: { duration: 0.3 }
|
|
110
|
+
}
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
slideUp: {
|
|
115
|
+
container: t,
|
|
116
|
+
item: {
|
|
117
|
+
hidden: { y: 20, opacity: 0 },
|
|
118
|
+
show: (i) => ({
|
|
119
|
+
y: 0,
|
|
120
|
+
opacity: 1,
|
|
121
|
+
transition: {
|
|
122
|
+
delay: i,
|
|
123
|
+
duration: 0.3
|
|
124
|
+
}
|
|
125
|
+
}),
|
|
126
|
+
exit: {
|
|
127
|
+
y: -20,
|
|
128
|
+
opacity: 0,
|
|
129
|
+
transition: {
|
|
130
|
+
duration: 0.3
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
slideDown: {
|
|
136
|
+
container: t,
|
|
137
|
+
item: {
|
|
138
|
+
hidden: { y: -20, opacity: 0 },
|
|
139
|
+
show: {
|
|
140
|
+
y: 0,
|
|
141
|
+
opacity: 1,
|
|
142
|
+
transition: { duration: 0.3 }
|
|
143
|
+
},
|
|
144
|
+
exit: {
|
|
145
|
+
y: 20,
|
|
146
|
+
opacity: 0,
|
|
147
|
+
transition: { duration: 0.3 }
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
slideLeft: {
|
|
152
|
+
container: t,
|
|
153
|
+
item: {
|
|
154
|
+
hidden: { x: 20, opacity: 0 },
|
|
155
|
+
show: {
|
|
156
|
+
x: 0,
|
|
157
|
+
opacity: 1,
|
|
158
|
+
transition: { duration: 0.3 }
|
|
159
|
+
},
|
|
160
|
+
exit: {
|
|
161
|
+
x: -20,
|
|
162
|
+
opacity: 0,
|
|
163
|
+
transition: { duration: 0.3 }
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
slideRight: {
|
|
168
|
+
container: t,
|
|
169
|
+
item: {
|
|
170
|
+
hidden: { x: -20, opacity: 0 },
|
|
171
|
+
show: {
|
|
172
|
+
x: 0,
|
|
173
|
+
opacity: 1,
|
|
174
|
+
transition: { duration: 0.3 }
|
|
175
|
+
},
|
|
176
|
+
exit: {
|
|
177
|
+
x: 20,
|
|
178
|
+
opacity: 0,
|
|
179
|
+
transition: { duration: 0.3 }
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
scaleUp: {
|
|
184
|
+
container: t,
|
|
185
|
+
item: {
|
|
186
|
+
hidden: { scale: 0.5, opacity: 0 },
|
|
187
|
+
show: {
|
|
188
|
+
scale: 1,
|
|
189
|
+
opacity: 1,
|
|
190
|
+
transition: {
|
|
191
|
+
duration: 0.3,
|
|
192
|
+
scale: {
|
|
193
|
+
type: "spring",
|
|
194
|
+
damping: 15,
|
|
195
|
+
stiffness: 300
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
exit: {
|
|
200
|
+
scale: 0.5,
|
|
201
|
+
opacity: 0,
|
|
202
|
+
transition: { duration: 0.3 }
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
scaleDown: {
|
|
207
|
+
container: t,
|
|
208
|
+
item: {
|
|
209
|
+
hidden: { scale: 1.5, opacity: 0 },
|
|
210
|
+
show: (i) => ({
|
|
211
|
+
scale: 1,
|
|
212
|
+
opacity: 1,
|
|
213
|
+
transition: {
|
|
214
|
+
delay: i,
|
|
215
|
+
duration: 0.3,
|
|
216
|
+
scale: {
|
|
217
|
+
type: "spring",
|
|
218
|
+
damping: 15,
|
|
219
|
+
stiffness: 300
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}),
|
|
223
|
+
exit: {
|
|
224
|
+
scale: 1.5,
|
|
225
|
+
opacity: 0,
|
|
226
|
+
transition: { duration: 0.3 }
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
function U({
|
|
232
|
+
children: i,
|
|
233
|
+
delay: I = 0,
|
|
234
|
+
duration: k = 0.3,
|
|
235
|
+
variants: C,
|
|
236
|
+
className: h,
|
|
237
|
+
segmentClassName: x,
|
|
238
|
+
as: m = "p",
|
|
239
|
+
startOnView: c = !0,
|
|
240
|
+
once: v = !1,
|
|
241
|
+
by: a = "word",
|
|
242
|
+
animation: n = "fadeIn",
|
|
243
|
+
...f
|
|
244
|
+
}) {
|
|
245
|
+
const w = u.create(m), d = n ? {
|
|
246
|
+
container: {
|
|
247
|
+
...o[n].container,
|
|
248
|
+
show: {
|
|
249
|
+
...o[n].container.show,
|
|
250
|
+
transition: {
|
|
251
|
+
staggerChildren: s[a]
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
exit: {
|
|
255
|
+
...o[n].container.exit,
|
|
256
|
+
transition: {
|
|
257
|
+
staggerChildren: s[a],
|
|
258
|
+
staggerDirection: -1
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
item: o[n].item
|
|
263
|
+
} : { container: t, item: b };
|
|
264
|
+
let e = [];
|
|
265
|
+
switch (a) {
|
|
266
|
+
case "word":
|
|
267
|
+
e = i.split(/(\s+)/);
|
|
268
|
+
break;
|
|
269
|
+
case "character":
|
|
270
|
+
e = i.split("");
|
|
271
|
+
break;
|
|
272
|
+
case "line":
|
|
273
|
+
e = i.split(`
|
|
274
|
+
`);
|
|
275
|
+
break;
|
|
276
|
+
case "text":
|
|
277
|
+
default:
|
|
278
|
+
e = [i];
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
return /* @__PURE__ */ r(g, { mode: "popLayout", children: /* @__PURE__ */ r(
|
|
282
|
+
w,
|
|
283
|
+
{
|
|
284
|
+
variants: d.container,
|
|
285
|
+
initial: "hidden",
|
|
286
|
+
whileInView: c ? "show" : void 0,
|
|
287
|
+
animate: c ? void 0 : "show",
|
|
288
|
+
exit: "exit",
|
|
289
|
+
className: y("whitespace-pre-wrap", h),
|
|
290
|
+
...f,
|
|
291
|
+
children: e.map((p, l) => /* @__PURE__ */ r(
|
|
292
|
+
u.span,
|
|
293
|
+
{
|
|
294
|
+
variants: d.item,
|
|
295
|
+
custom: l * s[a],
|
|
296
|
+
className: y(
|
|
297
|
+
a === "line" ? "block" : "inline-block whitespace-pre",
|
|
298
|
+
x
|
|
299
|
+
),
|
|
300
|
+
children: p
|
|
301
|
+
},
|
|
302
|
+
`${a}-${p}-${l}`
|
|
303
|
+
))
|
|
304
|
+
}
|
|
305
|
+
) });
|
|
306
|
+
}
|
|
307
|
+
export {
|
|
308
|
+
U as TextAnimate
|
|
309
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
3
|
import { cn as x } from "../../utils/utils.js";
|
|
3
4
|
import { motion as b } from "motion/react";
|
|
4
|
-
import { useState as
|
|
5
|
+
import { useState as u, useRef as I, useEffect as a } from "react";
|
|
5
6
|
function R({
|
|
6
7
|
children: r,
|
|
7
8
|
className: l,
|
|
@@ -13,8 +14,8 @@ function R({
|
|
|
13
14
|
}) {
|
|
14
15
|
const d = b.create(m, {
|
|
15
16
|
forwardMotionProps: !0
|
|
16
|
-
}), [g, v] =
|
|
17
|
-
return
|
|
17
|
+
}), [g, v] = u(""), [c, f] = u(!1), o = I(null);
|
|
18
|
+
return a(() => {
|
|
18
19
|
if (!i) {
|
|
19
20
|
const t = setTimeout(() => {
|
|
20
21
|
f(!0);
|
|
@@ -30,7 +31,7 @@ function R({
|
|
|
30
31
|
{ threshold: 0.1 }
|
|
31
32
|
);
|
|
32
33
|
return o.current && e.observe(o.current), () => e.disconnect();
|
|
33
|
-
}, [n, i]),
|
|
34
|
+
}, [n, i]), a(() => {
|
|
34
35
|
if (!c) return;
|
|
35
36
|
let e = 0;
|
|
36
37
|
const t = setInterval(() => {
|
package/dist/es/index.d.ts
CHANGED
|
@@ -4,3 +4,6 @@ export * from './components/pinch-content';
|
|
|
4
4
|
export * from './components/image-viewer';
|
|
5
5
|
export * from './components/hyper-text';
|
|
6
6
|
export * from './components/typing-animation';
|
|
7
|
+
export * from './components/text-animate';
|
|
8
|
+
export * from './components/shimmer-button';
|
|
9
|
+
export * from './components/image-compare';
|
package/dist/es/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { Button as t } from "./components/button/Button.js";
|
|
3
3
|
import { TxtReader as p } from "./components/txt-reader/TxtReader.js";
|
|
4
|
-
import { HyperText as
|
|
4
|
+
import { HyperText as f } from "./components/hyper-text/index.js";
|
|
5
5
|
import { TypingAnimation as n } from "./components/typing-animation/index.js";
|
|
6
|
-
import { default as
|
|
6
|
+
import { default as u } from "./components/pinch-content/PinchContent.js";
|
|
7
7
|
import { default as T } from "./components/image-viewer/ImageViewer.js";
|
|
8
|
+
import { ShimmerButton as l } from "./components/shimmer-button/ShimmerButton.js";
|
|
9
|
+
import { default as h } from "./components/image-compare/ImageCompare.stories.js";
|
|
10
|
+
import { TextAnimate as A } from "./components/text-animate/TextAnimate.js";
|
|
8
11
|
export {
|
|
9
12
|
t as Button,
|
|
10
|
-
|
|
13
|
+
f as HyperText,
|
|
14
|
+
h as ImageCompare,
|
|
11
15
|
T as ImageViewer,
|
|
12
|
-
|
|
16
|
+
u as PinchContent,
|
|
17
|
+
l as ShimmerButton,
|
|
18
|
+
A as TextAnimate,
|
|
13
19
|
p as TxtReader,
|
|
14
20
|
n as TypingAnimation
|
|
15
21
|
};
|