cos-design 3.8.1 → 4.0.0
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/CHANGELOG.md +55 -6
- package/README.md +51 -33
- package/dist/core-CszjZZo9.cjs +1 -0
- package/dist/core-On5bp2VI.js +178 -0
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +3 -0
- package/dist/elements.cjs +1 -0
- package/dist/elements.d.ts +1 -0
- package/dist/elements.js +3844 -0
- package/dist/engine-DAYJbw0W.cjs +246 -0
- package/dist/engine-jGjtPKCP.js +12740 -0
- package/dist/index.cjs +1 -249
- package/dist/index.js +2049 -13779
- package/dist/src/components/audioVisualizer/core/engine.d.ts +2 -0
- package/dist/src/components/audioVisualizer/core/index.d.ts +2 -0
- package/dist/src/components/audioVisualizer/core/types.d.ts +11 -0
- package/dist/src/components/audioVisualizer/element/index.d.ts +9 -0
- package/dist/src/components/audioVisualizer/index.d.ts +3 -9
- package/dist/src/components/audioVisualizer/react/index.d.ts +4 -0
- package/dist/src/components/aurora/core/engine.d.ts +2 -0
- package/dist/src/components/aurora/core/index.d.ts +2 -0
- package/dist/src/components/aurora/core/types.d.ts +11 -0
- package/dist/src/components/aurora/element/index.d.ts +13 -0
- package/dist/src/components/aurora/index.d.ts +3 -11
- package/dist/src/components/aurora/react/index.d.ts +4 -0
- package/dist/src/components/auroraVeil/core/engine.d.ts +2 -0
- package/dist/src/components/auroraVeil/core/index.d.ts +2 -0
- package/dist/src/components/auroraVeil/core/types.d.ts +15 -0
- package/dist/src/components/auroraVeil/element/index.d.ts +13 -0
- package/dist/src/components/auroraVeil/index.d.ts +3 -19
- package/dist/src/components/auroraVeil/react/index.d.ts +4 -0
- package/dist/src/components/barcodeScan/core/engine.d.ts +2 -0
- package/dist/src/components/barcodeScan/core/index.d.ts +2 -0
- package/dist/src/components/barcodeScan/core/types.d.ts +12 -0
- package/dist/src/components/barcodeScan/element/index.d.ts +14 -0
- package/dist/src/components/barcodeScan/index.d.ts +3 -11
- package/dist/src/components/barcodeScan/react/index.d.ts +6 -0
- package/dist/src/components/blurText/core/engine.d.ts +2 -0
- package/dist/src/components/blurText/core/index.d.ts +2 -0
- package/dist/src/components/blurText/core/types.d.ts +15 -0
- package/dist/src/components/blurText/element/index.d.ts +16 -0
- package/dist/src/components/blurText/index.d.ts +3 -21
- package/dist/src/components/blurText/react/index.d.ts +4 -0
- package/dist/src/components/bubbleField/core/engine.d.ts +2 -0
- package/dist/src/components/bubbleField/core/index.d.ts +2 -0
- package/dist/src/components/bubbleField/core/types.d.ts +14 -0
- package/dist/src/components/bubbleField/element/index.d.ts +9 -0
- package/dist/src/components/bubbleField/index.d.ts +3 -5
- package/dist/src/components/bubbleField/react/index.d.ts +4 -0
- package/dist/src/components/burnAway/core/engine.d.ts +2 -0
- package/dist/src/components/burnAway/core/index.d.ts +2 -0
- package/dist/src/components/burnAway/core/types.d.ts +13 -0
- package/dist/src/components/burnAway/element/index.d.ts +10 -0
- package/dist/src/components/burnAway/index.d.ts +3 -13
- package/dist/src/components/burnAway/react/index.d.ts +4 -0
- package/dist/src/components/canvasClock/core/engine.d.ts +2 -0
- package/dist/src/components/canvasClock/core/index.d.ts +2 -0
- package/dist/src/components/canvasClock/core/types.d.ts +9 -0
- package/dist/src/components/canvasClock/element/index.d.ts +9 -0
- package/dist/src/components/canvasClock/index.d.ts +3 -9
- package/dist/src/components/canvasClock/react/index.d.ts +4 -0
- package/dist/src/components/charge/core/engine.d.ts +2 -0
- package/dist/src/components/charge/core/index.d.ts +2 -0
- package/dist/src/components/charge/core/types.d.ts +14 -0
- package/dist/src/components/charge/element/index.d.ts +9 -0
- package/dist/src/components/charge/index.d.ts +3 -19
- package/dist/src/components/charge/react/index.d.ts +4 -0
- package/dist/src/components/circularText/core/engine.d.ts +2 -0
- package/dist/src/components/circularText/core/index.d.ts +2 -0
- package/dist/src/components/circularText/core/types.d.ts +13 -0
- package/dist/src/components/circularText/element/index.d.ts +13 -0
- package/dist/src/components/circularText/index.d.ts +3 -17
- package/dist/src/components/circularText/react/index.d.ts +4 -0
- package/dist/src/components/clickSpark/core/engine.d.ts +2 -0
- package/dist/src/components/clickSpark/core/index.d.ts +2 -0
- package/dist/src/components/clickSpark/core/types.d.ts +13 -0
- package/dist/src/components/clickSpark/element/index.d.ts +13 -0
- package/dist/src/components/clickSpark/index.d.ts +3 -10
- package/dist/src/components/clickSpark/react/index.d.ts +6 -0
- package/dist/src/components/confetti/core/engine.d.ts +2 -0
- package/dist/src/components/confetti/core/index.d.ts +2 -0
- package/dist/src/components/confetti/core/types.d.ts +19 -0
- package/dist/src/components/confetti/element/index.d.ts +10 -0
- package/dist/src/components/confetti/index.d.ts +3 -25
- package/dist/src/components/confetti/react/index.d.ts +5 -0
- package/dist/src/components/countUp/core/engine.d.ts +2 -0
- package/dist/src/components/countUp/core/index.d.ts +2 -0
- package/dist/src/components/countUp/core/types.d.ts +14 -0
- package/dist/src/components/countUp/element/index.d.ts +9 -0
- package/dist/src/components/countUp/index.d.ts +3 -19
- package/dist/src/components/countUp/react/index.d.ts +4 -0
- package/dist/src/components/countdown/core/engine.d.ts +2 -0
- package/dist/src/components/countdown/core/index.d.ts +2 -0
- package/dist/src/components/countdown/core/types.d.ts +14 -0
- package/dist/src/components/countdown/element/index.d.ts +13 -0
- package/dist/src/components/countdown/index.d.ts +3 -26
- package/dist/src/components/countdown/react/index.d.ts +4 -0
- package/dist/src/components/cursorTrail/core/engine.d.ts +2 -0
- package/dist/src/components/cursorTrail/core/index.d.ts +2 -0
- package/dist/src/components/cursorTrail/core/types.d.ts +12 -0
- package/dist/src/components/cursorTrail/element/index.d.ts +9 -0
- package/dist/src/components/cursorTrail/index.d.ts +3 -13
- package/dist/src/components/cursorTrail/react/index.d.ts +4 -0
- package/dist/src/components/curvedLoop/core/engine.d.ts +2 -0
- package/dist/src/components/curvedLoop/core/index.d.ts +2 -0
- package/dist/src/components/curvedLoop/core/types.d.ts +14 -0
- package/dist/src/components/curvedLoop/element/index.d.ts +13 -0
- package/dist/src/components/curvedLoop/index.d.ts +3 -19
- package/dist/src/components/curvedLoop/react/index.d.ts +4 -0
- package/dist/src/components/cyberGrid/core/engine.d.ts +2 -0
- package/dist/src/components/cyberGrid/core/index.d.ts +2 -0
- package/dist/src/components/cyberGrid/core/types.d.ts +12 -0
- package/dist/src/components/cyberGrid/element/index.d.ts +9 -0
- package/dist/src/components/cyberGrid/index.d.ts +3 -13
- package/dist/src/components/cyberGrid/react/index.d.ts +4 -0
- package/dist/src/components/dandelionField/core/engine.d.ts +2 -0
- package/dist/src/components/dandelionField/core/index.d.ts +2 -0
- package/dist/src/components/dandelionField/core/types.d.ts +15 -0
- package/dist/src/components/dandelionField/element/index.d.ts +9 -0
- package/dist/src/components/dandelionField/index.d.ts +3 -5
- package/dist/src/components/dandelionField/react/index.d.ts +4 -0
- package/dist/src/components/diceRoll/core/engine.d.ts +2 -0
- package/dist/src/components/diceRoll/core/index.d.ts +2 -0
- package/dist/src/components/diceRoll/core/types.d.ts +12 -0
- package/dist/src/components/diceRoll/element/index.d.ts +13 -0
- package/dist/src/components/diceRoll/index.d.ts +3 -15
- package/dist/src/components/diceRoll/react/index.d.ts +4 -0
- package/dist/src/components/dnaHelix/core/engine.d.ts +2 -0
- package/dist/src/components/dnaHelix/core/index.d.ts +2 -0
- package/dist/src/components/dnaHelix/core/types.d.ts +11 -0
- package/dist/src/components/dnaHelix/element/index.d.ts +9 -0
- package/dist/src/components/dnaHelix/index.d.ts +3 -9
- package/dist/src/components/dnaHelix/react/index.d.ts +4 -0
- package/dist/src/components/doublePendulum/core/engine.d.ts +2 -0
- package/dist/src/components/doublePendulum/core/index.d.ts +2 -0
- package/dist/src/components/doublePendulum/core/types.d.ts +12 -0
- package/dist/src/components/doublePendulum/element/index.d.ts +9 -0
- package/dist/src/components/doublePendulum/index.d.ts +3 -10
- package/dist/src/components/doublePendulum/react/index.d.ts +4 -0
- package/dist/src/components/electricArc/core/engine.d.ts +2 -0
- package/dist/src/components/electricArc/core/index.d.ts +2 -0
- package/dist/src/components/electricArc/core/types.d.ts +10 -0
- package/dist/src/components/electricArc/element/index.d.ts +9 -0
- package/dist/src/components/electricArc/index.d.ts +3 -8
- package/dist/src/components/electricArc/react/index.d.ts +4 -0
- package/dist/src/components/fireworks/core/engine.d.ts +2 -0
- package/dist/src/components/fireworks/core/index.d.ts +2 -0
- package/dist/src/components/fireworks/core/types.d.ts +23 -0
- package/dist/src/components/fireworks/element/index.d.ts +10 -0
- package/dist/src/components/fireworks/index.d.ts +3 -23
- package/dist/src/components/fireworks/react/index.d.ts +4 -0
- package/dist/src/components/flipCard/core/engine.d.ts +2 -0
- package/dist/src/components/flipCard/core/index.d.ts +2 -0
- package/dist/src/components/flipCard/core/types.d.ts +22 -0
- package/dist/src/components/flipCard/element/index.d.ts +11 -0
- package/dist/src/components/flipCard/index.d.ts +3 -29
- package/dist/src/components/flipCard/react/index.d.ts +5 -0
- package/dist/src/components/flipCounter/core/engine.d.ts +2 -0
- package/dist/src/components/flipCounter/core/index.d.ts +2 -0
- package/dist/src/components/flipCounter/core/types.d.ts +15 -0
- package/dist/src/components/flipCounter/element/index.d.ts +9 -0
- package/dist/src/components/flipCounter/index.d.ts +3 -13
- package/dist/src/components/flipCounter/react/index.d.ts +4 -0
- package/dist/src/components/fuzzyText/core/engine.d.ts +2 -0
- package/dist/src/components/fuzzyText/core/index.d.ts +2 -0
- package/dist/src/components/fuzzyText/core/types.d.ts +15 -0
- package/dist/src/components/fuzzyText/element/index.d.ts +9 -0
- package/dist/src/components/fuzzyText/index.d.ts +3 -21
- package/dist/src/components/fuzzyText/react/index.d.ts +4 -0
- package/dist/src/components/gameOfLife/core/engine.d.ts +2 -0
- package/dist/src/components/gameOfLife/core/index.d.ts +2 -0
- package/dist/src/components/gameOfLife/core/types.d.ts +21 -0
- package/dist/src/components/gameOfLife/element/index.d.ts +13 -0
- package/dist/src/components/gameOfLife/index.d.ts +3 -25
- package/dist/src/components/gameOfLife/react/index.d.ts +4 -0
- package/dist/src/components/glitchText/core/engine.d.ts +2 -0
- package/dist/src/components/glitchText/core/index.d.ts +2 -0
- package/dist/src/components/glitchText/core/types.d.ts +12 -0
- package/dist/src/components/glitchText/element/index.d.ts +9 -0
- package/dist/src/components/glitchText/index.d.ts +3 -15
- package/dist/src/components/glitchText/react/index.d.ts +4 -0
- package/dist/src/components/gradientFlow/core/engine.d.ts +2 -0
- package/dist/src/components/gradientFlow/core/index.d.ts +2 -0
- package/dist/src/components/gradientFlow/core/types.d.ts +10 -0
- package/dist/src/components/gradientFlow/element/index.d.ts +13 -0
- package/dist/src/components/gradientFlow/index.d.ts +3 -11
- package/dist/src/components/gradientFlow/react/index.d.ts +4 -0
- package/dist/src/components/gravityBalls/core/engine.d.ts +2 -0
- package/dist/src/components/gravityBalls/core/index.d.ts +2 -0
- package/dist/src/components/gravityBalls/core/types.d.ts +10 -0
- package/dist/src/components/gravityBalls/element/index.d.ts +9 -0
- package/dist/src/components/gravityBalls/index.d.ts +3 -8
- package/dist/src/components/gravityBalls/react/index.d.ts +4 -0
- package/dist/src/components/holographicCard/core/engine.d.ts +2 -0
- package/dist/src/components/holographicCard/core/index.d.ts +2 -0
- package/dist/src/components/holographicCard/core/types.d.ts +10 -0
- package/dist/src/components/holographicCard/element/index.d.ts +9 -0
- package/dist/src/components/holographicCard/index.d.ts +3 -8
- package/dist/src/components/holographicCard/react/index.d.ts +4 -0
- package/dist/src/components/index.d.ts +7 -7
- package/dist/src/components/inkBloom/core/engine.d.ts +6 -0
- package/dist/src/components/inkBloom/core/index.d.ts +2 -0
- package/dist/src/components/inkBloom/core/types.d.ts +14 -0
- package/dist/src/components/inkBloom/element/index.d.ts +9 -0
- package/dist/src/components/inkBloom/index.d.ts +3 -21
- package/dist/src/components/inkBloom/react/index.d.ts +4 -0
- package/dist/src/components/lavaBubble/core/engine.d.ts +2 -0
- package/dist/src/components/lavaBubble/core/index.d.ts +2 -0
- package/dist/src/components/lavaBubble/core/types.d.ts +16 -0
- package/dist/src/components/lavaBubble/element/index.d.ts +9 -0
- package/dist/src/components/lavaBubble/index.d.ts +3 -24
- package/dist/src/components/lavaBubble/react/index.d.ts +4 -0
- package/dist/src/components/liquidGlass/core/engine.d.ts +2 -0
- package/dist/src/components/liquidGlass/core/index.d.ts +2 -0
- package/dist/src/components/liquidGlass/core/types.d.ts +12 -0
- package/dist/src/components/liquidGlass/element/index.d.ts +14 -0
- package/dist/src/components/liquidGlass/index.d.ts +3 -10
- package/dist/src/components/liquidGlass/react/index.d.ts +6 -0
- package/dist/src/components/liquidProgress/core/engine.d.ts +2 -0
- package/dist/src/components/liquidProgress/core/index.d.ts +2 -0
- package/dist/src/components/liquidProgress/core/types.d.ts +11 -0
- package/dist/src/components/liquidProgress/element/index.d.ts +9 -0
- package/dist/src/components/liquidProgress/index.d.ts +3 -9
- package/dist/src/components/liquidProgress/react/index.d.ts +4 -0
- package/dist/src/components/lorenzAttractor/core/engine.d.ts +2 -0
- package/dist/src/components/lorenzAttractor/core/index.d.ts +2 -0
- package/dist/src/components/lorenzAttractor/core/types.d.ts +12 -0
- package/dist/src/components/lorenzAttractor/element/index.d.ts +9 -0
- package/dist/src/components/lorenzAttractor/index.d.ts +3 -10
- package/dist/src/components/lorenzAttractor/react/index.d.ts +4 -0
- package/dist/src/components/magneticButton/core/engine.d.ts +2 -0
- package/dist/src/components/magneticButton/core/index.d.ts +2 -0
- package/dist/src/components/magneticButton/core/types.d.ts +12 -0
- package/dist/src/components/magneticButton/element/index.d.ts +14 -0
- package/dist/src/components/magneticButton/index.d.ts +3 -10
- package/dist/src/components/magneticButton/react/index.d.ts +6 -0
- package/dist/src/components/matrixRain/core/engine.d.ts +2 -0
- package/dist/src/components/matrixRain/core/index.d.ts +2 -0
- package/dist/src/components/matrixRain/core/types.d.ts +15 -0
- package/dist/src/components/matrixRain/element/index.d.ts +9 -0
- package/dist/src/components/matrixRain/index.d.ts +3 -19
- package/dist/src/components/matrixRain/react/index.d.ts +4 -0
- package/dist/src/components/mazeGenerator/core/engine.d.ts +2 -0
- package/dist/src/components/mazeGenerator/core/index.d.ts +2 -0
- package/dist/src/components/mazeGenerator/core/types.d.ts +11 -0
- package/dist/src/components/mazeGenerator/element/index.d.ts +9 -0
- package/dist/src/components/mazeGenerator/index.d.ts +3 -9
- package/dist/src/components/mazeGenerator/react/index.d.ts +4 -0
- package/dist/src/components/metaballPool/core/engine.d.ts +2 -0
- package/dist/src/components/metaballPool/core/index.d.ts +2 -0
- package/dist/src/components/metaballPool/core/types.d.ts +11 -0
- package/dist/src/components/metaballPool/element/index.d.ts +9 -0
- package/dist/src/components/metaballPool/index.d.ts +3 -9
- package/dist/src/components/metaballPool/react/index.d.ts +4 -0
- package/dist/src/components/meteorRain/core/engine.d.ts +2 -0
- package/dist/src/components/meteorRain/core/index.d.ts +2 -0
- package/dist/src/components/meteorRain/core/types.d.ts +11 -0
- package/dist/src/components/meteorRain/element/index.d.ts +9 -0
- package/dist/src/components/meteorRain/index.d.ts +3 -11
- package/dist/src/components/meteorRain/react/index.d.ts +4 -0
- package/dist/src/components/neonText/core/engine.d.ts +2 -0
- package/dist/src/components/neonText/core/index.d.ts +2 -0
- package/dist/src/components/neonText/core/types.d.ts +11 -0
- package/dist/src/components/neonText/element/index.d.ts +9 -0
- package/dist/src/components/neonText/index.d.ts +3 -13
- package/dist/src/components/neonText/react/index.d.ts +4 -0
- package/dist/src/components/networkGraph/core/engine.d.ts +2 -0
- package/dist/src/components/networkGraph/core/index.d.ts +2 -0
- package/dist/src/components/networkGraph/core/types.d.ts +23 -0
- package/dist/src/components/networkGraph/element/index.d.ts +16 -0
- package/dist/src/components/networkGraph/index.d.ts +3 -26
- package/dist/src/components/networkGraph/react/index.d.ts +4 -0
- package/dist/src/components/newtonCradle/core/engine.d.ts +2 -0
- package/dist/src/components/newtonCradle/core/index.d.ts +2 -0
- package/dist/src/components/newtonCradle/core/types.d.ts +11 -0
- package/dist/src/components/newtonCradle/element/index.d.ts +9 -0
- package/dist/src/components/newtonCradle/index.d.ts +3 -9
- package/dist/src/components/newtonCradle/react/index.d.ts +4 -0
- package/dist/src/components/nineGrid/core/engine.d.ts +2 -0
- package/dist/src/components/nineGrid/core/index.d.ts +2 -0
- package/dist/src/components/nineGrid/core/types.d.ts +31 -0
- package/dist/src/components/nineGrid/element/index.d.ts +15 -0
- package/dist/src/components/nineGrid/index.d.ts +3 -29
- package/dist/src/components/nineGrid/react/index.d.ts +5 -0
- package/dist/src/components/orbitalChart/core/engine.d.ts +2 -0
- package/dist/src/components/orbitalChart/core/index.d.ts +2 -0
- package/dist/src/components/orbitalChart/core/types.d.ts +14 -0
- package/dist/src/components/orbitalChart/element/index.d.ts +13 -0
- package/dist/src/components/orbitalChart/index.d.ts +3 -12
- package/dist/src/components/orbitalChart/react/index.d.ts +4 -0
- package/dist/src/components/particleNetwork/core/engine.d.ts +2 -0
- package/dist/src/components/particleNetwork/core/index.d.ts +2 -0
- package/dist/src/components/particleNetwork/core/types.d.ts +15 -0
- package/dist/src/components/particleNetwork/element/index.d.ts +9 -0
- package/dist/src/components/particleNetwork/index.d.ts +3 -19
- package/dist/src/components/particleNetwork/react/index.d.ts +4 -0
- package/dist/src/components/photoAlbum/core/engine.d.ts +2 -0
- package/dist/src/components/photoAlbum/core/index.d.ts +2 -0
- package/dist/src/components/photoAlbum/core/types.d.ts +7 -0
- package/dist/src/components/photoAlbum/element/index.d.ts +16 -0
- package/dist/src/components/photoAlbum/index.d.ts +3 -5
- package/dist/src/components/photoAlbum/react/index.d.ts +3 -0
- package/dist/src/components/photoAlbum/types.d.ts +3 -3
- package/dist/src/components/photoCarousel/core/engine.d.ts +2 -0
- package/dist/src/components/photoCarousel/core/index.d.ts +2 -0
- package/dist/src/components/photoCarousel/core/types.d.ts +7 -0
- package/dist/src/components/photoCarousel/element/index.d.ts +13 -0
- package/dist/src/components/photoCarousel/index.d.ts +3 -9
- package/dist/src/components/photoCarousel/react/index.d.ts +3 -0
- package/dist/src/components/photoCarousel/types.d.ts +2 -2
- package/dist/src/components/photoClothesline/core/engine.d.ts +2 -0
- package/dist/src/components/photoClothesline/core/index.d.ts +2 -0
- package/dist/src/components/photoClothesline/core/types.d.ts +7 -0
- package/dist/src/components/photoClothesline/element/index.d.ts +13 -0
- package/dist/src/components/photoClothesline/index.d.ts +3 -5
- package/dist/src/components/photoClothesline/layout.d.ts +2 -2
- package/dist/src/components/photoClothesline/react/index.d.ts +3 -0
- package/dist/src/components/photoClothesline/types.d.ts +3 -3
- package/dist/src/components/photoFilmstrip/core/engine.d.ts +2 -0
- package/dist/src/components/photoFilmstrip/core/index.d.ts +2 -0
- package/dist/src/components/photoFilmstrip/core/types.d.ts +7 -0
- package/dist/src/components/photoFilmstrip/element/index.d.ts +13 -0
- package/dist/src/components/photoFilmstrip/index.d.ts +3 -5
- package/dist/src/components/photoFilmstrip/react/index.d.ts +3 -0
- package/dist/src/components/photoFilmstrip/types.d.ts +2 -2
- package/dist/src/components/photoFridge/core/engine.d.ts +2 -0
- package/dist/src/components/photoFridge/core/index.d.ts +2 -0
- package/dist/src/components/photoFridge/core/types.d.ts +7 -0
- package/dist/src/components/photoFridge/element/index.d.ts +13 -0
- package/dist/src/components/photoFridge/index.d.ts +3 -5
- package/dist/src/components/photoFridge/react/index.d.ts +3 -0
- package/dist/src/components/photoFridge/types.d.ts +2 -2
- package/dist/src/components/photoLantern/core/engine.d.ts +2 -0
- package/dist/src/components/photoLantern/core/index.d.ts +2 -0
- package/dist/src/components/photoLantern/core/types.d.ts +7 -0
- package/dist/src/components/photoLantern/element/index.d.ts +13 -0
- package/dist/src/components/photoLantern/index.d.ts +3 -5
- package/dist/src/components/photoLantern/react/index.d.ts +3 -0
- package/dist/src/components/photoLantern/types.d.ts +3 -3
- package/dist/src/components/photoLightbox/core/engine.d.ts +2 -0
- package/dist/src/components/photoLightbox/core/index.d.ts +2 -0
- package/dist/src/components/photoLightbox/core/types.d.ts +7 -0
- package/dist/src/components/photoLightbox/element/index.d.ts +13 -0
- package/dist/src/components/photoLightbox/index.d.ts +3 -5
- package/dist/src/components/photoLightbox/react/index.d.ts +3 -0
- package/dist/src/components/photoLightbox/types.d.ts +2 -2
- package/dist/src/components/photoPolaroid/core/engine.d.ts +2 -0
- package/dist/src/components/photoPolaroid/core/index.d.ts +2 -0
- package/dist/src/components/photoPolaroid/core/types.d.ts +7 -0
- package/dist/src/components/photoPolaroid/element/index.d.ts +13 -0
- package/dist/src/components/photoPolaroid/index.d.ts +3 -5
- package/dist/src/components/photoPolaroid/react/index.d.ts +3 -0
- package/dist/src/components/photoPolaroid/types.d.ts +2 -2
- package/dist/src/components/photoPostcard/core/engine.d.ts +6 -0
- package/dist/src/components/photoPostcard/core/index.d.ts +2 -0
- package/dist/src/components/photoPostcard/core/types.d.ts +7 -0
- package/dist/src/components/photoPostcard/element/index.d.ts +13 -0
- package/dist/src/components/photoPostcard/index.d.ts +3 -8
- package/dist/src/components/photoPostcard/react/index.d.ts +10 -0
- package/dist/src/components/photoPostcard/types.d.ts +2 -2
- package/dist/src/components/photoPrism/core/engine.d.ts +2 -0
- package/dist/src/components/photoPrism/core/index.d.ts +2 -0
- package/dist/src/components/photoPrism/core/types.d.ts +7 -0
- package/dist/src/components/photoPrism/element/index.d.ts +13 -0
- package/dist/src/components/photoPrism/index.d.ts +3 -9
- package/dist/src/components/photoPrism/react/index.d.ts +3 -0
- package/dist/src/components/photoPrism/types.d.ts +2 -2
- package/dist/src/components/photoScroll/core/engine.d.ts +2 -0
- package/dist/src/components/photoScroll/core/index.d.ts +2 -0
- package/dist/src/components/photoScroll/core/types.d.ts +7 -0
- package/dist/src/components/photoScroll/element/index.d.ts +13 -0
- package/dist/src/components/photoScroll/index.d.ts +3 -9
- package/dist/src/components/photoScroll/react/index.d.ts +3 -0
- package/dist/src/components/photoScroll/types.d.ts +2 -2
- package/dist/src/components/photoTunnel/core/engine.d.ts +2 -0
- package/dist/src/components/photoTunnel/core/index.d.ts +2 -0
- package/dist/src/components/photoTunnel/core/types.d.ts +7 -0
- package/dist/src/components/photoTunnel/element/index.d.ts +13 -0
- package/dist/src/components/photoTunnel/index.d.ts +3 -9
- package/dist/src/components/photoTunnel/react/index.d.ts +3 -0
- package/dist/src/components/photoTunnel/types.d.ts +2 -2
- package/dist/src/components/photoViewMaster/core/engine.d.ts +2 -0
- package/dist/src/components/photoViewMaster/core/index.d.ts +2 -0
- package/dist/src/components/photoViewMaster/core/types.d.ts +7 -0
- package/dist/src/components/photoViewMaster/element/index.d.ts +13 -0
- package/dist/src/components/photoViewMaster/index.d.ts +3 -9
- package/dist/src/components/photoViewMaster/react/index.d.ts +3 -0
- package/dist/src/components/photoViewMaster/types.d.ts +2 -2
- package/dist/src/components/plasmaBall/core/engine.d.ts +2 -0
- package/dist/src/components/plasmaBall/core/index.d.ts +2 -0
- package/dist/src/components/plasmaBall/core/types.d.ts +11 -0
- package/dist/src/components/plasmaBall/element/index.d.ts +9 -0
- package/dist/src/components/plasmaBall/index.d.ts +3 -9
- package/dist/src/components/plasmaBall/react/index.d.ts +4 -0
- package/dist/src/components/progressChest/core/engine.d.ts +2 -0
- package/dist/src/components/progressChest/core/index.d.ts +2 -0
- package/dist/src/components/progressChest/core/types.d.ts +14 -0
- package/dist/src/components/progressChest/element/index.d.ts +9 -0
- package/dist/src/components/progressChest/index.d.ts +3 -13
- package/dist/src/components/progressChest/react/index.d.ts +4 -0
- package/dist/src/components/radarScan/core/engine.d.ts +2 -0
- package/dist/src/components/radarScan/core/index.d.ts +2 -0
- package/dist/src/components/radarScan/core/types.d.ts +10 -0
- package/dist/src/components/radarScan/element/index.d.ts +9 -0
- package/dist/src/components/radarScan/index.d.ts +3 -9
- package/dist/src/components/radarScan/react/index.d.ts +4 -0
- package/dist/src/components/redPacketRain/core/engine.d.ts +2 -0
- package/dist/src/components/redPacketRain/core/index.d.ts +2 -0
- package/dist/src/components/redPacketRain/core/types.d.ts +25 -0
- package/dist/src/components/redPacketRain/element/index.d.ts +12 -0
- package/dist/src/components/redPacketRain/index.d.ts +3 -33
- package/dist/src/components/redPacketRain/react/index.d.ts +5 -0
- package/dist/src/components/returnCity/core/engine.d.ts +2 -0
- package/dist/src/components/returnCity/core/index.d.ts +2 -0
- package/dist/src/components/returnCity/core/types.d.ts +10 -0
- package/dist/src/components/returnCity/element/index.d.ts +9 -0
- package/dist/src/components/returnCity/index.d.ts +3 -11
- package/dist/src/components/returnCity/react/index.d.ts +4 -0
- package/dist/src/components/rippleWater/core/engine.d.ts +2 -0
- package/dist/src/components/rippleWater/core/index.d.ts +2 -0
- package/dist/src/components/rippleWater/core/types.d.ts +24 -0
- package/dist/src/components/rippleWater/element/index.d.ts +9 -0
- package/dist/src/components/rippleWater/index.d.ts +3 -37
- package/dist/src/components/rippleWater/react/index.d.ts +4 -0
- package/dist/src/components/ropeChain/core/engine.d.ts +2 -0
- package/dist/src/components/ropeChain/core/index.d.ts +2 -0
- package/dist/src/components/ropeChain/core/types.d.ts +12 -0
- package/dist/src/components/ropeChain/element/index.d.ts +9 -0
- package/dist/src/components/ropeChain/index.d.ts +3 -10
- package/dist/src/components/ropeChain/react/index.d.ts +4 -0
- package/dist/src/components/rotatingText/core/engine.d.ts +2 -0
- package/dist/src/components/rotatingText/core/index.d.ts +2 -0
- package/dist/src/components/rotatingText/core/types.d.ts +14 -0
- package/dist/src/components/rotatingText/element/index.d.ts +13 -0
- package/dist/src/components/rotatingText/index.d.ts +3 -19
- package/dist/src/components/rotatingText/react/index.d.ts +4 -0
- package/dist/src/components/sandFall/core/engine.d.ts +2 -0
- package/dist/src/components/sandFall/core/index.d.ts +2 -0
- package/dist/src/components/sandFall/core/types.d.ts +14 -0
- package/dist/src/components/sandFall/element/index.d.ts +13 -0
- package/dist/src/components/sandFall/index.d.ts +3 -17
- package/dist/src/components/sandFall/react/index.d.ts +4 -0
- package/dist/src/components/scrambleText/core/engine.d.ts +2 -0
- package/dist/src/components/scrambleText/core/index.d.ts +2 -0
- package/dist/src/components/scrambleText/core/types.d.ts +10 -0
- package/dist/src/components/scrambleText/element/index.d.ts +9 -0
- package/dist/src/components/scrambleText/index.d.ts +3 -11
- package/dist/src/components/scrambleText/react/index.d.ts +4 -0
- package/dist/src/components/scratchCard/core/engine.d.ts +2 -0
- package/dist/src/components/scratchCard/core/index.d.ts +2 -0
- package/dist/src/components/scratchCard/core/types.d.ts +25 -0
- package/dist/src/components/scratchCard/element/index.d.ts +11 -0
- package/dist/src/components/scratchCard/index.d.ts +3 -23
- package/dist/src/components/scratchCard/react/index.d.ts +5 -0
- package/dist/src/components/shinyText/core/engine.d.ts +2 -0
- package/dist/src/components/shinyText/core/index.d.ts +2 -0
- package/dist/src/components/shinyText/core/types.d.ts +13 -0
- package/dist/src/components/shinyText/element/index.d.ts +9 -0
- package/dist/src/components/shinyText/index.d.ts +3 -17
- package/dist/src/components/shinyText/react/index.d.ts +4 -0
- package/dist/src/components/slotMachine/core/engine.d.ts +2 -0
- package/dist/src/components/slotMachine/core/index.d.ts +2 -0
- package/dist/src/components/slotMachine/core/types.d.ts +31 -0
- package/dist/src/components/slotMachine/element/index.d.ts +18 -0
- package/dist/src/components/slotMachine/index.d.ts +3 -29
- package/dist/src/components/slotMachine/react/index.d.ts +5 -0
- package/dist/src/components/smokeFog/core/engine.d.ts +2 -0
- package/dist/src/components/smokeFog/core/index.d.ts +2 -0
- package/dist/src/components/smokeFog/core/types.d.ts +18 -0
- package/dist/src/components/smokeFog/element/index.d.ts +9 -0
- package/dist/src/components/smokeFog/index.d.ts +3 -25
- package/dist/src/components/smokeFog/react/index.d.ts +4 -0
- package/dist/src/components/snowfall/core/engine.d.ts +2 -0
- package/dist/src/components/snowfall/core/index.d.ts +2 -0
- package/dist/src/components/snowfall/core/types.d.ts +12 -0
- package/dist/src/components/snowfall/element/index.d.ts +13 -0
- package/dist/src/components/snowfall/index.d.ts +3 -13
- package/dist/src/components/snowfall/react/index.d.ts +4 -0
- package/dist/src/components/soapBubbles/core/engine.d.ts +2 -0
- package/dist/src/components/soapBubbles/core/index.d.ts +2 -0
- package/dist/src/components/soapBubbles/core/types.d.ts +14 -0
- package/dist/src/components/soapBubbles/element/index.d.ts +9 -0
- package/dist/src/components/soapBubbles/index.d.ts +3 -20
- package/dist/src/components/soapBubbles/react/index.d.ts +4 -0
- package/dist/src/components/solarSystem/core/engine.d.ts +2 -0
- package/dist/src/components/solarSystem/core/index.d.ts +2 -0
- package/dist/src/components/solarSystem/core/types.d.ts +11 -0
- package/dist/src/components/solarSystem/element/index.d.ts +9 -0
- package/dist/src/components/solarSystem/index.d.ts +3 -9
- package/dist/src/components/solarSystem/react/index.d.ts +4 -0
- package/dist/src/components/speedometer/core/engine.d.ts +2 -0
- package/dist/src/components/speedometer/core/index.d.ts +2 -0
- package/dist/src/components/speedometer/core/types.d.ts +11 -0
- package/dist/src/components/speedometer/element/index.d.ts +9 -0
- package/dist/src/components/speedometer/index.d.ts +3 -9
- package/dist/src/components/speedometer/react/index.d.ts +4 -0
- package/dist/src/components/splitReveal/core/engine.d.ts +2 -0
- package/dist/src/components/splitReveal/core/index.d.ts +2 -0
- package/dist/src/components/splitReveal/core/types.d.ts +10 -0
- package/dist/src/components/splitReveal/element/index.d.ts +9 -0
- package/dist/src/components/splitReveal/index.d.ts +3 -11
- package/dist/src/components/splitReveal/react/index.d.ts +4 -0
- package/dist/src/components/splitText/core/engine.d.ts +2 -0
- package/dist/src/components/splitText/core/index.d.ts +2 -0
- package/dist/src/components/splitText/core/types.d.ts +15 -0
- package/dist/src/components/splitText/element/index.d.ts +13 -0
- package/dist/src/components/splitText/index.d.ts +3 -21
- package/dist/src/components/splitText/react/index.d.ts +4 -0
- package/dist/src/components/spotlight/core/engine.d.ts +2 -0
- package/dist/src/components/spotlight/core/index.d.ts +2 -0
- package/dist/src/components/spotlight/core/types.d.ts +13 -0
- package/dist/src/components/spotlight/element/index.d.ts +14 -0
- package/dist/src/components/spotlight/index.d.ts +3 -10
- package/dist/src/components/spotlight/react/index.d.ts +6 -0
- package/dist/src/components/springMass/core/engine.d.ts +2 -0
- package/dist/src/components/springMass/core/index.d.ts +2 -0
- package/dist/src/components/springMass/core/types.d.ts +21 -0
- package/dist/src/components/springMass/element/index.d.ts +9 -0
- package/dist/src/components/springMass/index.d.ts +3 -19
- package/dist/src/components/springMass/react/index.d.ts +4 -0
- package/dist/src/components/starfield/core/engine.d.ts +2 -0
- package/dist/src/components/starfield/core/index.d.ts +2 -0
- package/dist/src/components/starfield/core/types.d.ts +12 -0
- package/dist/src/components/starfield/element/index.d.ts +9 -0
- package/dist/src/components/starfield/index.d.ts +3 -13
- package/dist/src/components/starfield/react/index.d.ts +4 -0
- package/dist/src/components/textMorph/core/engine.d.ts +2 -0
- package/dist/src/components/textMorph/core/index.d.ts +2 -0
- package/dist/src/components/textMorph/core/types.d.ts +12 -0
- package/dist/src/components/textMorph/element/index.d.ts +13 -0
- package/dist/src/components/textMorph/index.d.ts +3 -15
- package/dist/src/components/textMorph/react/index.d.ts +4 -0
- package/dist/src/components/timelinePulse/core/engine.d.ts +2 -0
- package/dist/src/components/timelinePulse/core/index.d.ts +2 -0
- package/dist/src/components/timelinePulse/core/types.d.ts +10 -0
- package/dist/src/components/timelinePulse/element/index.d.ts +13 -0
- package/dist/src/components/timelinePulse/index.d.ts +3 -8
- package/dist/src/components/timelinePulse/react/index.d.ts +4 -0
- package/dist/src/components/trueFocus/core/engine.d.ts +2 -0
- package/dist/src/components/trueFocus/core/index.d.ts +2 -0
- package/dist/src/components/trueFocus/core/types.d.ts +17 -0
- package/dist/src/components/trueFocus/element/index.d.ts +9 -0
- package/dist/src/components/trueFocus/index.d.ts +3 -25
- package/dist/src/components/trueFocus/react/index.d.ts +4 -0
- package/dist/src/components/turntable/core/engine.d.ts +2 -0
- package/dist/src/components/turntable/core/index.d.ts +2 -0
- package/dist/src/components/turntable/core/types.d.ts +35 -0
- package/dist/src/components/turntable/element/index.d.ts +15 -0
- package/dist/src/components/turntable/index.d.ts +3 -33
- package/dist/src/components/turntable/react/index.d.ts +5 -0
- package/dist/src/components/typewriter/core/engine.d.ts +2 -0
- package/dist/src/components/typewriter/core/index.d.ts +2 -0
- package/dist/src/components/typewriter/core/types.d.ts +11 -0
- package/dist/src/components/typewriter/element/index.d.ts +13 -0
- package/dist/src/components/typewriter/index.d.ts +3 -13
- package/dist/src/components/typewriter/react/index.d.ts +4 -0
- package/dist/src/components/waveButton/core/engine.d.ts +2 -0
- package/dist/src/components/waveButton/core/index.d.ts +2 -0
- package/dist/src/components/waveButton/core/types.d.ts +13 -0
- package/dist/src/components/waveButton/element/index.d.ts +14 -0
- package/dist/src/components/waveButton/index.d.ts +3 -9
- package/dist/src/components/waveButton/react/index.d.ts +4 -0
- package/dist/src/components/waveText/core/engine.d.ts +2 -0
- package/dist/src/components/waveText/core/index.d.ts +2 -0
- package/dist/src/components/waveText/core/types.d.ts +11 -0
- package/dist/src/components/waveText/element/index.d.ts +9 -0
- package/dist/src/components/waveText/index.d.ts +3 -13
- package/dist/src/components/waveText/react/index.d.ts +4 -0
- package/dist/src/components/weatherBackground/core/engine.d.ts +2 -0
- package/dist/src/components/weatherBackground/core/index.d.ts +14 -0
- package/dist/src/components/weatherBackground/core/types.d.ts +7 -0
- package/dist/src/components/weatherBackground/element/index.d.ts +13 -0
- package/dist/src/components/weatherBackground/index.d.ts +5 -5
- package/dist/src/components/weatherBackground/live-weather-core.d.ts +79 -0
- package/dist/src/components/weatherBackground/live-weather.d.ts +3 -69
- package/dist/src/components/weatherBackground/react/index.d.ts +3 -0
- package/dist/src/core.d.ts +91 -0
- package/dist/src/elements.d.ts +0 -0
- package/dist/src/vite-env.d.ts +6 -0
- package/dist/src/vue.d.ts +91 -0
- package/dist/style.css +1 -0
- package/dist/vue.cjs +1 -0
- package/dist/vue.d.ts +1 -0
- package/dist/vue.js +2444 -0
- package/package.json +39 -3
- package/dist/index.css +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoClotheslineItem, PhotoClotheslineProps } from '../types';
|
|
2
|
+
export type { PhotoClotheslineItem, PhotoClotheslineProps };
|
|
3
|
+
export type PhotoClotheslineOptions = PhotoClotheslineProps;
|
|
4
|
+
export interface PhotoClotheslineController {
|
|
5
|
+
update(options: Partial<PhotoClotheslineOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoClotheslineOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-clothesline";
|
|
3
|
+
declare class CosPhotoClotheslineElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoClotheslineOptions['photos'];
|
|
6
|
+
get photos(): PhotoClotheslineOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoClotheslineOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoClotheslineElement, TAG };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type { PhotoClotheslineItem, PhotoClotheslineProps } from './types';
|
|
5
|
-
export default PhotoClothesline;
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoClothesline } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -12,7 +12,7 @@ export interface LayoutInput {
|
|
|
12
12
|
maxPull: number;
|
|
13
13
|
tilt: number;
|
|
14
14
|
}
|
|
15
|
-
export declare const buildLayout: ({ count, viewportWidth, viewportHeight, photoWidth, photoHeight, photoGap, ropeTop, ropeSag, bandLength, maxPull, tilt }: LayoutInput) => Layout;
|
|
15
|
+
export declare const buildLayout: ({ count, viewportWidth, viewportHeight, photoWidth, photoHeight, photoGap, ropeTop, ropeSag, bandLength, maxPull, tilt, }: LayoutInput) => Layout;
|
|
16
16
|
export interface PhysicsInput {
|
|
17
17
|
bandLength: number;
|
|
18
18
|
damping: number;
|
|
@@ -20,4 +20,4 @@ export interface PhysicsInput {
|
|
|
20
20
|
stiffness: number;
|
|
21
21
|
tension: number;
|
|
22
22
|
}
|
|
23
|
-
export declare const buildPhysics: ({ bandLength, damping, maxPull, stiffness, tension }: PhysicsInput) => Physics;
|
|
23
|
+
export declare const buildPhysics: ({ bandLength, damping, maxPull, stiffness, tension, }: PhysicsInput) => Physics;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
export interface PhotoClotheslineItem {
|
|
3
3
|
/** 图片地址 */
|
|
4
4
|
src: string;
|
|
@@ -51,7 +51,7 @@ export interface PhotoClotheslineProps {
|
|
|
51
51
|
/** 背景(任意 CSS background 值) */
|
|
52
52
|
background?: string;
|
|
53
53
|
/** 照片填充方式 */
|
|
54
|
-
objectFit?:
|
|
54
|
+
objectFit?: string;
|
|
55
55
|
/** 是否显示照片标题与说明 */
|
|
56
56
|
showCaption?: boolean;
|
|
57
57
|
/** 初始居中显示的照片索引 */
|
|
@@ -65,5 +65,5 @@ export interface PhotoClotheslineProps {
|
|
|
65
65
|
/** 自定义类名 */
|
|
66
66
|
className?: string;
|
|
67
67
|
/** 自定义样式 */
|
|
68
|
-
style?:
|
|
68
|
+
style?: StyleMap;
|
|
69
69
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoFilmstripItem, PhotoFilmstripProps } from '../types';
|
|
2
|
+
export type { PhotoFilmstripItem, PhotoFilmstripProps };
|
|
3
|
+
export type PhotoFilmstripOptions = PhotoFilmstripProps;
|
|
4
|
+
export interface PhotoFilmstripController {
|
|
5
|
+
update(options: Partial<PhotoFilmstripOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoFilmstripOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-filmstrip";
|
|
3
|
+
declare class CosPhotoFilmstripElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoFilmstripOptions['photos'];
|
|
6
|
+
get photos(): PhotoFilmstripOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoFilmstripOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoFilmstripElement, TAG };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type { PhotoFilmstripItem, PhotoFilmstripProps } from './types';
|
|
5
|
-
export default PhotoFilmstrip;
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoFilmstrip } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
export interface PhotoFilmstripItem {
|
|
3
3
|
/** 图片地址 */
|
|
4
4
|
src: string;
|
|
@@ -39,5 +39,5 @@ export interface PhotoFilmstripProps {
|
|
|
39
39
|
/** 自定义类名 */
|
|
40
40
|
className?: string;
|
|
41
41
|
/** 自定义样式 */
|
|
42
|
-
style?:
|
|
42
|
+
style?: StyleMap;
|
|
43
43
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoFridgeItem, PhotoFridgeProps } from '../types';
|
|
2
|
+
export type { PhotoFridgeItem, PhotoFridgeProps };
|
|
3
|
+
export type PhotoFridgeOptions = PhotoFridgeProps;
|
|
4
|
+
export interface PhotoFridgeController {
|
|
5
|
+
update(options: Partial<PhotoFridgeOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoFridgeOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-fridge";
|
|
3
|
+
declare class CosPhotoFridgeElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoFridgeOptions['photos'];
|
|
6
|
+
get photos(): PhotoFridgeOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoFridgeOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoFridgeElement, TAG };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default PhotoFridge;
|
|
5
|
-
export type { PhotoFridgeItem, PhotoFridgeProps } from './types';
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoFridge } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
/** 单张冰箱磁贴照片数据 */
|
|
3
3
|
export interface PhotoFridgeItem {
|
|
4
4
|
/** 图片地址 */
|
|
@@ -37,5 +37,5 @@ export interface PhotoFridgeProps {
|
|
|
37
37
|
/** 自定义类名 */
|
|
38
38
|
className?: string;
|
|
39
39
|
/** 自定义样式 */
|
|
40
|
-
style?:
|
|
40
|
+
style?: StyleMap;
|
|
41
41
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoLanternItem, PhotoLanternProps } from '../types';
|
|
2
|
+
export type { PhotoLanternItem, PhotoLanternProps };
|
|
3
|
+
export type PhotoLanternOptions = PhotoLanternProps;
|
|
4
|
+
export interface PhotoLanternController {
|
|
5
|
+
update(options: Partial<PhotoLanternOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoLanternOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-lantern";
|
|
3
|
+
declare class CosPhotoLanternElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoLanternOptions['photos'];
|
|
6
|
+
get photos(): PhotoLanternOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoLanternOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoLanternElement, TAG };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type { PhotoLanternItem, PhotoLanternProps } from './types';
|
|
5
|
-
export default PhotoLantern;
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoLantern } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
export interface PhotoLanternItem {
|
|
3
3
|
/** 图片地址 */
|
|
4
4
|
src: string;
|
|
@@ -39,7 +39,7 @@ export interface PhotoLanternProps {
|
|
|
39
39
|
/** 流苏颜色 */
|
|
40
40
|
tasselColor?: string;
|
|
41
41
|
/** 照片填充方式 */
|
|
42
|
-
objectFit?:
|
|
42
|
+
objectFit?: string;
|
|
43
43
|
/** 是否以剪影风格呈现图片(更接近传统走马灯) */
|
|
44
44
|
silhouette?: boolean;
|
|
45
45
|
/** 是否在照片底部嵌入标题与说明 */
|
|
@@ -57,5 +57,5 @@ export interface PhotoLanternProps {
|
|
|
57
57
|
/** 自定义类名 */
|
|
58
58
|
className?: string;
|
|
59
59
|
/** 自定义样式 */
|
|
60
|
-
style?:
|
|
60
|
+
style?: StyleMap;
|
|
61
61
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoLightboxItem, PhotoLightboxProps } from '../types';
|
|
2
|
+
export type { PhotoLightboxItem, PhotoLightboxProps };
|
|
3
|
+
export type PhotoLightboxOptions = PhotoLightboxProps;
|
|
4
|
+
export interface PhotoLightboxController {
|
|
5
|
+
update(options: Partial<PhotoLightboxOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoLightboxOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-lightbox";
|
|
3
|
+
declare class CosPhotoLightboxElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoLightboxOptions['photos'];
|
|
6
|
+
get photos(): PhotoLightboxOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoLightboxOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoLightboxElement, TAG };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default PhotoLightbox;
|
|
5
|
-
export type { PhotoLightboxItem, PhotoLightboxProps } from './types';
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoLightbox } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
export interface PhotoLightboxItem {
|
|
3
3
|
/** 图片地址 */
|
|
4
4
|
src: string;
|
|
@@ -35,5 +35,5 @@ export interface PhotoLightboxProps {
|
|
|
35
35
|
/** 自定义类名 */
|
|
36
36
|
className?: string;
|
|
37
37
|
/** 自定义样式 */
|
|
38
|
-
style?:
|
|
38
|
+
style?: StyleMap;
|
|
39
39
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoPolaroidItem, PhotoPolaroidProps } from '../types';
|
|
2
|
+
export type { PhotoPolaroidItem, PhotoPolaroidProps };
|
|
3
|
+
export type PhotoPolaroidOptions = PhotoPolaroidProps;
|
|
4
|
+
export interface PhotoPolaroidController {
|
|
5
|
+
update(options: Partial<PhotoPolaroidOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoPolaroidOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-polaroid";
|
|
3
|
+
declare class CosPhotoPolaroidElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoPolaroidOptions['photos'];
|
|
6
|
+
get photos(): PhotoPolaroidOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoPolaroidOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoPolaroidElement, TAG };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default PhotoPolaroid;
|
|
5
|
-
export type { PhotoPolaroidItem, PhotoPolaroidProps } from './types';
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoPolaroid } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
/** 单张拍立得照片数据 */
|
|
3
3
|
export interface PhotoPolaroidItem {
|
|
4
4
|
/** 图片地址 */
|
|
@@ -35,5 +35,5 @@ export interface PhotoPolaroidProps {
|
|
|
35
35
|
/** 自定义类名 */
|
|
36
36
|
className?: string;
|
|
37
37
|
/** 自定义样式 */
|
|
38
|
-
style?:
|
|
38
|
+
style?: StyleMap;
|
|
39
39
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PhotoPostcardController, PhotoPostcardOptions } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Imperative port of the v3.8.x PhotoPostcard React behavior.
|
|
4
|
+
* Motion updates only touch transform/opacity/class — never detach the active card.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createPhotoPostcard(container: HTMLElement, initial?: PhotoPostcardOptions): PhotoPostcardController;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoPostcardItem, PhotoPostcardProps } from '../types';
|
|
2
|
+
export type { PhotoPostcardItem, PhotoPostcardProps };
|
|
3
|
+
export type PhotoPostcardOptions = PhotoPostcardProps;
|
|
4
|
+
export interface PhotoPostcardController {
|
|
5
|
+
update(options: Partial<PhotoPostcardOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoPostcardOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-postcard";
|
|
3
|
+
declare class CosPhotoPostcardElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoPostcardOptions['photos'];
|
|
6
|
+
get photos(): PhotoPostcardOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoPostcardOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoPostcardElement, TAG };
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* 旅行明信片堆叠:单张特色明信片可 3D 翻转,水平拖拽切换上一张/下一张。
|
|
5
|
-
*/
|
|
6
|
-
declare const PhotoPostcard: React.FC<PhotoPostcardProps>;
|
|
7
|
-
export default PhotoPostcard;
|
|
8
|
-
export type { PhotoPostcardItem, PhotoPostcardProps } from './types';
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoPostcard } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PhotoPostcardProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* 旅行明信片堆叠:单张特色明信片可 3D 翻转,水平拖拽切换上一张/下一张。
|
|
5
|
+
* React 端保持 v3.8.x 声明式实现与交互逻辑。
|
|
6
|
+
*/
|
|
7
|
+
declare const PhotoPostcard: React.FC<PhotoPostcardProps>;
|
|
8
|
+
export default PhotoPostcard;
|
|
9
|
+
export type { PhotoPostcardItem, PhotoPostcardProps } from '../types';
|
|
10
|
+
export type { PhotoPostcardOptions } from '../core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
/** 单张旅行明信片数据 */
|
|
3
3
|
export interface PhotoPostcardItem {
|
|
4
4
|
/** 图片地址 */
|
|
@@ -41,5 +41,5 @@ export interface PhotoPostcardProps {
|
|
|
41
41
|
/** 自定义类名 */
|
|
42
42
|
className?: string;
|
|
43
43
|
/** 自定义样式 */
|
|
44
|
-
style?:
|
|
44
|
+
style?: StyleMap;
|
|
45
45
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoPrismItem, PhotoPrismProps } from '../types';
|
|
2
|
+
export type { PhotoPrismItem, PhotoPrismProps };
|
|
3
|
+
export type PhotoPrismOptions = PhotoPrismProps;
|
|
4
|
+
export interface PhotoPrismController {
|
|
5
|
+
update(options: Partial<PhotoPrismOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoPrismOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-prism";
|
|
3
|
+
declare class CosPhotoPrismElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoPrismOptions['photos'];
|
|
6
|
+
get photos(): PhotoPrismOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoPrismOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoPrismElement, TAG };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* 照片棱镜:CSS 3D 立方体,最多六面贴图。
|
|
5
|
-
* 拖拽翻滚并带惯性,空闲时缓慢自转与轻微浮动。
|
|
6
|
-
*/
|
|
7
|
-
declare const PhotoPrism: React.FC<PhotoPrismProps>;
|
|
8
|
-
export type { PhotoPrismItem, PhotoPrismProps } from './types';
|
|
9
|
-
export default PhotoPrism;
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoPrism } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
/** 棱镜单面照片数据 */
|
|
3
3
|
export interface PhotoPrismItem {
|
|
4
4
|
/** 图片地址 */
|
|
@@ -35,5 +35,5 @@ export interface PhotoPrismProps {
|
|
|
35
35
|
/** 自定义类名 */
|
|
36
36
|
className?: string;
|
|
37
37
|
/** 自定义样式 */
|
|
38
|
-
style?:
|
|
38
|
+
style?: StyleMap;
|
|
39
39
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PhotoScrollItem, PhotoScrollProps } from '../types';
|
|
2
|
+
export type { PhotoScrollItem, PhotoScrollProps };
|
|
3
|
+
export type PhotoScrollOptions = PhotoScrollProps;
|
|
4
|
+
export interface PhotoScrollController {
|
|
5
|
+
update(options: Partial<PhotoScrollOptions>): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PhotoScrollOptions } from '../core';
|
|
2
|
+
declare const TAG = "cos-photo-scroll";
|
|
3
|
+
declare class CosPhotoScrollElement extends HTMLElement {
|
|
4
|
+
private ctrl;
|
|
5
|
+
_photos?: PhotoScrollOptions['photos'];
|
|
6
|
+
get photos(): PhotoScrollOptions['photos'] | undefined;
|
|
7
|
+
set photos(value: PhotoScrollOptions['photos']);
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
attributeChangedCallback(): void;
|
|
12
|
+
}
|
|
13
|
+
export { CosPhotoScrollElement, TAG };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* 中式手卷轴照片浏览:左右木轴固定,中间宣纸横向拖拽滚动,
|
|
5
|
-
* 松手后带指数摩擦惯性并吸附到最近照片中心。
|
|
6
|
-
*/
|
|
7
|
-
declare const PhotoScroll: React.FC<PhotoScrollProps>;
|
|
8
|
-
export default PhotoScroll;
|
|
9
|
-
export type { PhotoScrollItem, PhotoScrollProps } from './types';
|
|
1
|
+
export { default } from './react';
|
|
2
|
+
export { default as PhotoScroll } from './react';
|
|
3
|
+
export type * from './core/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export type StyleMap = Record<string, string | number | undefined>;
|
|
2
2
|
export interface PhotoScrollItem {
|
|
3
3
|
/** 图片地址 */
|
|
4
4
|
src: string;
|
|
@@ -39,5 +39,5 @@ export interface PhotoScrollProps {
|
|
|
39
39
|
/** 自定义类名 */
|
|
40
40
|
className?: string;
|
|
41
41
|
/** 自定义样式 */
|
|
42
|
-
style?:
|
|
42
|
+
style?: StyleMap;
|
|
43
43
|
}
|