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

WIP: upgrade to styled-components v6 #1482

Open
wants to merge 1 commit into
base: main
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
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": "[email protected]"
}
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": "[email protected]"
}
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": "[email protected]"
}
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": "[email protected]"
}
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": "[email protected]"
}
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": "[email protected]"
}
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": "[email protected]"
}
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": "[email protected]"
}
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": "[email protected]"
}
Loading
Loading