From 5659b2adc5a2b9483edef3b263ba8e6ef3bd6558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Tue, 8 Oct 2024 14:06:12 +0200 Subject: [PATCH] Patch styled-components types --- package.json | 5 +++++ patches/styled-components@6.1.13.patch | 9 +++++++++ pnpm-lock.yaml | 19 ++++++++++++------- 3 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 patches/styled-components@6.1.13.patch diff --git a/package.json b/package.json index c02f85313c53ca..9eedc44f7bb29d 100644 --- a/package.json +++ b/package.json @@ -290,5 +290,10 @@ ] } } + }, + "pnpm": { + "patchedDependencies": { + "styled-components@6.1.13": "patches/styled-components@6.1.13.patch" + } } } diff --git a/patches/styled-components@6.1.13.patch b/patches/styled-components@6.1.13.patch new file mode 100644 index 00000000000000..ffbd8db6597f2a --- /dev/null +++ b/patches/styled-components@6.1.13.patch @@ -0,0 +1,9 @@ +diff --git a/dist/hoc/withTheme.d.ts b/dist/hoc/withTheme.d.ts +index ccc495498f5088f8985ea715a3874b145b54c6ef..daae64e8ef825e99e820c18f0c73c4fc1e3b330a 100644 +--- a/dist/hoc/withTheme.d.ts ++++ b/dist/hoc/withTheme.d.ts +@@ -1,3 +1,3 @@ + import React from 'react'; + import { AnyComponent, ExecutionProps } from '../types'; +-export default function withTheme(Component: T): React.ForwardRefExoticComponent> & React.RefAttributes> & { [key in Exclude ? "propTypes" | "defaultProps" | "displayName" | "$$typeof" | "type" | "compare" : T extends React.ForwardRefExoticComponent ? "propTypes" | "defaultProps" | "displayName" | "$$typeof" | "render" : "length" | "propTypes" | "contextType" | "contextTypes" | "childContextTypes" | "defaultProps" | "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromError" | "name" | "type" | "getDefaultProps" | "mixins" | "prototype" | "caller" | "callee" | "arguments" | "arity">]: T[key]; }; ++export default function withTheme(Component: T): React.ForwardRefExoticComponent> & React.RefAttributes> & { [key in Exclude ? "propTypes" | "defaultProps" | "displayName" | "$$typeof" | "type" | "compare" : T extends React.ForwardRefExoticComponent ? "propTypes" | "defaultProps" | "displayName" | "$$typeof" | "render" : "length" | "propTypes" | "contextType" | "contextTypes" | "childContextTypes" | "defaultProps" | "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromError" | "name" | "type" | "getDefaultProps" | "mixins" | "prototype" | "caller" | "callee" | "arguments" | "arity">]: T[key]; }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e3ee973e4cffa9..a2351c9d0d50a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,6 +28,11 @@ overrides: '@pigment-css/nextjs-plugin': 0.0.24 '@pigment-css/vite-plugin': 0.0.24 +patchedDependencies: + styled-components@6.1.13: + hash: edvr6tup7ehm6qsu6ry7453gva + path: patches/styled-components@6.1.13.patch + importers: .: @@ -535,7 +540,7 @@ importers: version: 6.1.5 styled-components: specifier: ^6.1.13 - version: 6.1.13(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) + version: 6.1.13(patch_hash=edvr6tup7ehm6qsu6ry7453gva)(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) styled-system: specifier: ^5.1.5 version: 5.1.5 @@ -808,7 +813,7 @@ importers: version: 6.0.1 styled-components: specifier: ^6.1.13 - version: 6.1.13(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) + version: 6.1.13(patch_hash=edvr6tup7ehm6qsu6ry7453gva)(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) stylis: specifier: 4.2.0 version: 4.2.0 @@ -1965,7 +1970,7 @@ importers: version: 19.0.0-rc-0751fac7-20241002 styled-components: specifier: ^6.1.13 - version: 6.1.13(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) + version: 6.1.13(patch_hash=edvr6tup7ehm6qsu6ry7453gva)(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) publishDirectory: build packages/mui-styles: @@ -2122,7 +2127,7 @@ importers: version: 18.0.1 styled-components: specifier: ^6.1.13 - version: 6.1.13(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) + version: 6.1.13(patch_hash=edvr6tup7ehm6qsu6ry7453gva)(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) publishDirectory: build packages/mui-types: @@ -2349,7 +2354,7 @@ importers: version: 18.0.1 styled-components: specifier: ^6.1.13 - version: 6.1.13(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) + version: 6.1.13(patch_hash=edvr6tup7ehm6qsu6ry7453gva)(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002) stylis: specifier: 4.2.0 version: 4.2.0 @@ -25338,7 +25343,7 @@ snapshots: style-search@0.1.0: {} - styled-components@6.1.13(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002): + styled-components@6.1.13(patch_hash=edvr6tup7ehm6qsu6ry7453gva)(react-dom@19.0.0-rc-0751fac7-20241002(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002): dependencies: '@emotion/is-prop-valid': 1.2.2 '@emotion/unitless': 0.8.1 @@ -25352,7 +25357,7 @@ snapshots: stylis: 4.3.2 tslib: 2.6.2 - styled-components@6.1.13(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002): + styled-components@6.1.13(patch_hash=edvr6tup7ehm6qsu6ry7453gva)(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-0751fac7-20241002))(react@19.0.0-rc-0751fac7-20241002): dependencies: '@emotion/is-prop-valid': 1.2.2 '@emotion/unitless': 0.8.1