Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update stable branch and styled-components #3880

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
46 changes: 23 additions & 23 deletions aries-site/src/components/home/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const moveAnimation = css`
100% {
y: ${Number(props.y) + Number(props.offset)}px;
}
`} 1s ${props => props.moveStart || 0}s 1 forwards
`} 1s ${props => props.movestart || 0}s 1 forwards
`;

const popAnimation = css`
Expand All @@ -23,7 +23,7 @@ const popAnimation = css`
to {
opacity: 1;
}
`} 0s ${props => props.popStart || 0}s 1 forwards`;
`} 0s ${props => props.popstart || 0}s 1 forwards`;

const roundAnimation = css`
${keyframes`
Expand All @@ -33,7 +33,7 @@ const roundAnimation = css`
100% {
rx: 14.439px;
}
`} 3s ${props => props.roundStart}s 1 forwards
`} 3s ${props => props.roundstart}s 1 forwards
`;

const fadeAnimation = css`
Expand All @@ -44,7 +44,7 @@ const fadeAnimation = css`
100% {
opacity: 1;
}
`} 2s ${props => props.fadeStart || 0}s 1 forwards`;
`} 2s ${props => props.fadestart || 0}s 1 forwards`;

const StyledLines = styled.g`
opacity: 0;
Expand Down Expand Up @@ -102,7 +102,7 @@ export const Hero = props => {
>
<StyledLines
stroke={normalizeColor('status-unknown', theme, darkMode.value)}
fadeStart={sequence(11)}
fadesstart={sequence(11)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised these aren't camelcase anymore. Is that coming from styled components v6?

>
<path d="M587 385.724H649.076" />
<path d="M680.725 385.724H708.314" />
Expand All @@ -114,7 +114,7 @@ export const Hero = props => {
</StyledLines>
<StyledLines
stroke={normalizeColor('status-unknown', theme, darkMode.value)}
fadeStart={sequence(11)}
fadestart={sequence(11)}
>
<path d="M2 2.72432H64.0756" />
<path d="M95.7246 2.72432H123.314" />
Expand All @@ -132,9 +132,9 @@ export const Hero = props => {
rx="6"
fill={purple}
offset={142}
popStart={sequence(0)}
moveStart={sequence(2)}
roundStart={sequence(ROUND_STEP)}
popstart={sequence(0)}
movestart={sequence(2)}
roundstart={sequence(ROUND_STEP)}
/>
<MovingRect
x="125"
Expand All @@ -144,9 +144,9 @@ export const Hero = props => {
rx="6"
fill={normalizeColor('orange!', theme, darkMode.value)}
offset={-142}
popStart={sequence(1)}
moveStart={sequence(2)}
roundStart={sequence(ROUND_STEP)}
popstart={sequence(1)}
movestart={sequence(2)}
roundstart={sequence(ROUND_STEP)}
/>
<PoppingRect
x="289.78"
Expand All @@ -156,28 +156,28 @@ export const Hero = props => {
rx="21.6585"
stroke={normalizeColor('blue!', theme, darkMode.value)}
strokeWidth="14.439"
popStart={sequence(3)}
popstart={sequence(3)}
/>
<StyledCircle
cx="417"
cy="269.5"
r="12"
fill={purple}
popStart={sequence(4)}
popstart={sequence(4)}
/>
<StyledCircle
cx="453"
cy="269.5"
r="12"
fill={purple}
popStart={sequence(5)}
popstart={sequence(5)}
/>
<StyledCircle
cx="489"
cy="269.5"
r="12"
fill={purple}
popStart={sequence(6)}
popstart={sequence(6)}
/>
<PoppingRoundRect
opacity="0"
Expand All @@ -187,8 +187,8 @@ export const Hero = props => {
height="121"
rx="6"
fill={normalizeColor('blue', theme, false)}
popStart={sequence(7)}
roundStart={sequence(ROUND_STEP)}
popstart={sequence(7)}
roundstart={sequence(ROUND_STEP)}
/>
<PoppingRoundRect
opacity="0"
Expand All @@ -198,8 +198,8 @@ export const Hero = props => {
height="115"
rx="6"
fill="#FFD63E"
popStart={sequence(8)}
roundStart={sequence(ROUND_STEP)}
popstart={sequence(8)}
roundstart={sequence(ROUND_STEP)}
/>
<PoppingRoundRect
opacity="0"
Expand All @@ -209,12 +209,12 @@ export const Hero = props => {
height="115"
rx="6"
fill={normalizeColor('green', theme, false)}
popStart={sequence(9)}
roundStart={sequence(ROUND_STEP)}
popstart={sequence(9)}
roundstart={sequence(ROUND_STEP)}
/>
<StyledType
fill={normalizeColor('text', theme, darkMode.value)}
popStart={sequence(10)}
popstart={sequence(10)}
>
{/* eslint-disable-next-line max-len */}
<path d="M549.623 271.426H515.188L466.057 399.973H499.441L508.47 375.059H555.292L564.53 399.973H598.754L549.623 271.426ZM518.758 347.423L531.986 311.204L545.213 347.423H518.758Z" />
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"grommet": "https://github.com/grommet/grommet/tarball/stable",
"grommet-icons": "https://github.com/grommet/grommet-icons/tarball/stable",
"grommet-theme-hpe": "https://github.com/grommet/grommet-theme-hpe/tarball/stable",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"styled-components": "^5.3.11"
"react": "18.2.0",
"react-dom": "18.2.0",
"styled-components": "^6.1.11"
},
"scripts": {
"prepare": "husky install"
Expand Down
Loading
Loading