Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"classnames": "^2.3.2",
"clsx": "2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-scroll-parallax": "^3.4.5"
},
"browserslist": {
Expand Down
451 changes: 223 additions & 228 deletions documentation/pnpm-lock.yaml

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"release": "np"
},
"peerDependencies": {
"react": "^16.8.0-0 || >=17.0.1 || ^18.0.0",
"react-dom": "^16.8.0-0 || >=17.0.1 || ^18.0.0"
"react": "^16.8.0-0 || >=17.0.1 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0-0 || >=17.0.1 || ^18.0.0 || ^19.0.0"
},
"author": "J Scott Smith",
"license": "MIT",
Expand Down Expand Up @@ -86,8 +86,8 @@
"@testing-library/dom": "^10.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^16.0.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react": "^19.1.1",
"@types/react-dom": "^19.1.1",
"@typescript-eslint/eslint-plugin": "^8.44.1",
"@typescript-eslint/parser": "^8.44.1",
"@vitest/coverage-v8": "^3.2.4",
Expand All @@ -100,10 +100,10 @@
"np": "^10.2.0",
"postcss": "^8",
"prettier": "^3.6.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"react-test-renderer": "^18.2.0",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-is": "^19.1.1",
"react-test-renderer": "^19.1.1",
"sass": "^1.49.11",
"sass-loader": "^10.1.0",
"size-limit": "^6.0.4",
Expand Down
185 changes: 77 additions & 108 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

205 changes: 0 additions & 205 deletions src/components/Parallax/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -204,208 +204,3 @@ exports[`given the <Parallax> component > when the prop { translateY: [ -100, 10
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when normal configurations are given then it renders correctly 1`] = `
<DocumentFragment>
<div
class="class-foo"
style="border: 2px solid red; will-change: transform; transform: translateX(100%)translateY(100%);"
>
<div
class="foo"
/>
</div>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { disabled: true } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { easing: 'easeInQuad' } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { easing: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { onChange: [Function: onChange] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { onEnter: [Function: onEnter] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { onExit: [Function: onExit] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { onProgressChange: [Function: onProgressChange] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { opacity: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform,opacity; opacity: 1;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { rootMargin: [Object] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { rotate: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: rotate(1turn);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { rotateX: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: rotateX(1turn);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { rotateY: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: rotateY(1turn);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { rotateZ: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: rotateZ(1turn);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { scale: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: scale(1);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { scaleX: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: scaleX(1);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { scaleY: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: scaleY(1);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { scaleZ: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: scaleZ(1);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { shouldAlwaysCompleteAnimation: true } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { shouldDisableScalingTranslations: true } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { speed: 10 } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: translateY(-100px);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { startScroll: 0, endScroll: 1000 } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { targetElement: HTMLDivElement {} } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform;"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { translateX: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: translateX(100%);"
/>
</DocumentFragment>
`;

exports[`given the <Parallax> component when the prop { translateY: [Array] } is given then it renders without issue and calls create element with props 1`] = `
<DocumentFragment>
<div
style="will-change: transform; transform: translateY(100%);"
/>
</DocumentFragment>
`;
Loading
Loading