react-parallax-tilt
Advanced tools
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import { PureComponent } from 'react'; | ||
type ElementSizePosition = { | ||
width: number | null; | ||
height: number | null; | ||
left: number | null; | ||
top: number | null; | ||
}; | ||
type ClientPosition = { | ||
x: number | null; | ||
y: number | null; | ||
xPercentage: number; | ||
yPercentage: number; | ||
}; | ||
type DOMSupportedEvent = MouseEvent | React.MouseEvent | TouchEvent | React.TouchEvent | DeviceOrientationEvent; | ||
@@ -76,2 +92,6 @@ type SupportedEvent = DOMSupportedEvent | CustomEvent<CustomEventType>; | ||
type OnMoveParams = { | ||
@@ -151,2 +171,5 @@ tiltAngleX: number; | ||
declare class ReactParallaxTilt extends PureComponent<ReactParallaxTiltProps> { | ||
@@ -184,2 +207,3 @@ static defaultProps: ReactParallaxTiltProps; | ||
export { type Axis, type GlarePosition, type GlareProps, type OnEnter, type OnEnterParams, type OnLeave, type OnLeaveParams, type OnMove, type OnMoveParams, type ReactParallaxTiltProps, type TiltProps, ReactParallaxTilt as default }; | ||
export { ReactParallaxTilt as default }; | ||
export type { Axis, GlarePosition, GlareProps, OnEnter, OnEnterParams, OnLeave, OnLeaveParams, OnMove, OnMoveParams, ReactParallaxTiltProps, TiltProps }; |
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import { PureComponent } from 'react'; | ||
type ElementSizePosition = { | ||
width: number | null; | ||
height: number | null; | ||
left: number | null; | ||
top: number | null; | ||
}; | ||
type ClientPosition = { | ||
x: number | null; | ||
y: number | null; | ||
xPercentage: number; | ||
yPercentage: number; | ||
}; | ||
type DOMSupportedEvent = MouseEvent | React.MouseEvent | TouchEvent | React.TouchEvent | DeviceOrientationEvent; | ||
@@ -76,2 +92,6 @@ type SupportedEvent = DOMSupportedEvent | CustomEvent<CustomEventType>; | ||
type OnMoveParams = { | ||
@@ -151,2 +171,5 @@ tiltAngleX: number; | ||
declare class ReactParallaxTilt extends PureComponent<ReactParallaxTiltProps> { | ||
@@ -184,2 +207,3 @@ static defaultProps: ReactParallaxTiltProps; | ||
export { type Axis, type GlarePosition, type GlareProps, type OnEnter, type OnEnterParams, type OnLeave, type OnLeaveParams, type OnMove, type OnMoveParams, type ReactParallaxTiltProps, type TiltProps, ReactParallaxTilt as default }; | ||
export { ReactParallaxTilt as default }; | ||
export type { Axis, GlarePosition, GlareProps, OnEnter, OnEnterParams, OnLeave, OnLeaveParams, OnMove, OnMoveParams, ReactParallaxTiltProps, TiltProps }; |
{ | ||
"name": "react-parallax-tilt", | ||
"description": "Easily apply tilt hover effect on React components - lightweight/zero dependencies", | ||
"version": "1.7.286", | ||
"version": "1.7.287", | ||
"type": "module", | ||
@@ -52,11 +52,11 @@ "types": "./dist/legacy/index.d.ts", | ||
"@eslint/js": "9.22.0", | ||
"@playwright/test": "1.51.0", | ||
"@playwright/test": "1.51.1", | ||
"@rollup/plugin-commonjs": "28.0.3", | ||
"@rollup/plugin-terser": "0.4.4", | ||
"@rollup/plugin-typescript": "11.1.6", | ||
"@storybook/addon-webpack5-compiler-swc": "2.1.0", | ||
"@storybook/manager-api": "8.6.4", | ||
"@storybook/react": "8.6.4", | ||
"@storybook/react-webpack5": "8.6.4", | ||
"@storybook/theming": "8.6.4", | ||
"@storybook/addon-webpack5-compiler-swc": "3.0.0", | ||
"@storybook/manager-api": "8.6.7", | ||
"@storybook/react": "8.6.7", | ||
"@storybook/react-webpack5": "8.6.7", | ||
"@storybook/theming": "8.6.7", | ||
"@testing-library/dom": "10.4.0", | ||
@@ -68,7 +68,7 @@ "@testing-library/jest-dom": "6.6.3", | ||
"@types/node": "22.13.10", | ||
"@types/react": "19.0.10", | ||
"@types/react": "19.0.11", | ||
"@types/react-dom": "19.0.4", | ||
"@vitest/coverage-v8": "3.0.8", | ||
"@vitest/eslint-plugin": "1.1.36", | ||
"@vitest/ui": "3.0.8", | ||
"@vitest/coverage-v8": "3.0.9", | ||
"@vitest/eslint-plugin": "1.1.38", | ||
"@vitest/ui": "3.0.9", | ||
"commitizen": "4.3.1", | ||
@@ -78,3 +78,3 @@ "demozap": "1.3.82", | ||
"eslint-config-prettier": "10.1.1", | ||
"eslint-import-resolver-typescript": "3.7.0", | ||
"eslint-import-resolver-typescript": "4.2.2", | ||
"eslint-plugin-import": "2.31.0", | ||
@@ -91,4 +91,4 @@ "eslint-plugin-jest-dom": "5.5.0", | ||
"jsdom": "26.0.0", | ||
"knip": "5.45.0", | ||
"lint-staged": "15.4.3", | ||
"knip": "5.46.0", | ||
"lint-staged": "15.5.0", | ||
"prettier": "3.5.3", | ||
@@ -99,10 +99,10 @@ "react": "19.0.0", | ||
"react-joystick-component": "6.2.1", | ||
"rollup": "4.35.0", | ||
"rollup-plugin-dts": "6.1.1", | ||
"rollup": "4.36.0", | ||
"rollup-plugin-dts": "6.2.0", | ||
"semantic-release": "24.2.3", | ||
"storybook": "8.6.4", | ||
"storybook": "8.6.7", | ||
"typescript": "5.8.2", | ||
"typescript-eslint": "8.26.0", | ||
"typescript-eslint": "8.26.1", | ||
"vite-tsconfig-paths": "5.1.4", | ||
"vitest": "3.0.8" | ||
"vitest": "3.0.9" | ||
}, | ||
@@ -109,0 +109,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
73066
0.94%538
5.08%