Skip to content

Commit

Permalink
WIP: upgrade to styled-components v6
Browse files Browse the repository at this point in the history
  • Loading branch information
sdalonzo committed May 30, 2024
1 parent 5713461 commit aed573f
Show file tree
Hide file tree
Showing 55 changed files with 423 additions and 245 deletions.
4 changes: 2 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"styled-components": "^5.3.11"
"styled-components": "^6.1.8"
},
"devDependencies": {
"@mdx-js/loader": "^0.15.5",
"babel-loader": "^8.2.3",
"babel-plugin-styled-components": "^1.13.3",
"babel-plugin-styled-components": "^2.1.4",
"next": "^12.0.7",
"eslint": "^8.33.0",
"eslint-config-next": "^12.0.7",
Expand Down
4 changes: 3 additions & 1 deletion apps/docs/pages/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const ColorList = (props) =>
</Column>
))

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

const defaultPalette = createTheme().palette

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/pages/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Typography = () => (
</Box>
<Box py={4}>
<Heading mb={4}>Font Weight Regular</Heading>
<Heading bold mb={4}>
<Heading fontWeight='bold' mb={4}>
Font Weight Bold
</Heading>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SideNav = () => (
{navigation.map((section) =>
section.section ? (
<Box key={section.section}>
<Heading color='text' p={3} bold caps fontSize={0}>
<Heading color='text' p={3} fontWeight='bold' caps fontSize={0}>
{section.section}
</Heading>
{section.links.map((link) => (
Expand Down
4 changes: 3 additions & 1 deletion apps/docs/src/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ Table.defaultProps = {
my: 3,
}

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

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

Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"react-is": "^18.2.0",
"require-from-string": "2.0.2",
"storybook": "^7.6.19",
"styled-components": "^5.3.11",
"styled-components": "^6.1.8",
"typescript": "^5.3.3",
"vite": "^4.5.3",
"vite-plugin-turbosnap": "^1.0.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-autocomplete"
}
],
"packageName": "pcln-autocomplete",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-carousel"
}
],
"packageName": "pcln-carousel",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-codemods"
}
],
"packageName": "pcln-codemods",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-design-system"
}
],
"packageName": "pcln-design-system",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-icons"
}
],
"packageName": "pcln-icons",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-menu"
}
],
"packageName": "pcln-menu",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-modal"
}
],
"packageName": "pcln-modal",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-popover"
}
],
"packageName": "pcln-popover",
"email": "steven.dalonzo@priceline.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Upgrade to styled-components v6",
"type": "patch",
"packageName": "pcln-slider"
}
],
"packageName": "pcln-slider",
"email": "steven.dalonzo@priceline.com"
}
Loading

0 comments on commit aed573f

Please sign in to comment.