Skip to content

Commit aed573f

Browse files
committed
WIP: upgrade to styled-components v6
1 parent 5713461 commit aed573f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+423
-245
lines changed

apps/docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"react": "^17.0.2",
2323
"react-dom": "^17.0.2",
2424
"react-is": "^17.0.2",
25-
"styled-components": "^5.3.11"
25+
"styled-components": "^6.1.8"
2626
},
2727
"devDependencies": {
2828
"@mdx-js/loader": "^0.15.5",
2929
"babel-loader": "^8.2.3",
30-
"babel-plugin-styled-components": "^1.13.3",
30+
"babel-plugin-styled-components": "^2.1.4",
3131
"next": "^12.0.7",
3232
"eslint": "^8.33.0",
3333
"eslint-config-next": "^12.0.7",

apps/docs/pages/palette.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const ColorList = (props) =>
1818
</Column>
1919
))
2020

21-
export const SectionTitle = (props) => <Heading.h3 fontSize={[2, 3]} bold mt={[2, 4]} {...props} />
21+
export const SectionTitle = (props) => (
22+
<Heading.h3 fontSize={[2, 3]} fontWeight='bold' mt={[2, 4]} {...props} />
23+
)
2224

2325
const defaultPalette = createTheme().palette
2426

apps/docs/pages/typography.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Typography = () => (
2121
</Box>
2222
<Box py={4}>
2323
<Heading mb={4}>Font Weight Regular</Heading>
24-
<Heading bold mb={4}>
24+
<Heading fontWeight='bold' mb={4}>
2525
Font Weight Bold
2626
</Heading>
2727
</Box>

apps/docs/src/SideNav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const SideNav = () => (
1717
{navigation.map((section) =>
1818
section.section ? (
1919
<Box key={section.section}>
20-
<Heading color='text' p={3} bold caps fontSize={0}>
20+
<Heading color='text' p={3} fontWeight='bold' caps fontSize={0}>
2121
{section.section}
2222
</Heading>
2323
{section.links.map((link) => (

apps/docs/src/components.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ Table.defaultProps = {
106106
my: 3,
107107
}
108108

109-
export const PageTitle = (props) => <Heading.h1 fontSize={[5, 6]} bold mt={[2, 5]} mb={3} {...props} />
109+
export const PageTitle = (props) => (
110+
<Heading.h1 fontSize={[5, 6]} fontWeight='bold' mt={[2, 5]} mb={3} {...props} />
111+
)
110112

111113
export const Description = (props) => <Text fontSize={[2, 3]} mb={3} {...props} />
112114

apps/storybook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"react-is": "^18.2.0",
5151
"require-from-string": "2.0.2",
5252
"storybook": "^7.6.19",
53-
"styled-components": "^5.3.11",
53+
"styled-components": "^6.1.8",
5454
"typescript": "^5.3.3",
5555
"vite": "^4.5.3",
5656
"vite-plugin-turbosnap": "^1.0.3"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Upgrade to styled-components v6",
5+
"type": "patch",
6+
"packageName": "pcln-autocomplete"
7+
}
8+
],
9+
"packageName": "pcln-autocomplete",
10+
"email": "steven.dalonzo@priceline.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Upgrade to styled-components v6",
5+
"type": "patch",
6+
"packageName": "pcln-carousel"
7+
}
8+
],
9+
"packageName": "pcln-carousel",
10+
"email": "steven.dalonzo@priceline.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Upgrade to styled-components v6",
5+
"type": "patch",
6+
"packageName": "pcln-codemods"
7+
}
8+
],
9+
"packageName": "pcln-codemods",
10+
"email": "steven.dalonzo@priceline.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Upgrade to styled-components v6",
5+
"type": "patch",
6+
"packageName": "pcln-design-system"
7+
}
8+
],
9+
"packageName": "pcln-design-system",
10+
"email": "steven.dalonzo@priceline.com"
11+
}

0 commit comments

Comments
 (0)