styled-components 6.4.0-prerelease.11 → 6.4.0-prerelease.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -26,7 +26,7 @@ export type FastOmit<T extends BaseObject, U extends string | number | symbol> =
26
26
  export type Runtime = 'web' | 'native';
27
27
  export type AnyComponent<P extends BaseObject = any> = ExoticComponentWithDisplayName<P> | React.ComponentType<P>;
28
28
  export type KnownTarget = SupportedHTMLElements | AnyComponent;
29
- export type WebTarget = string | KnownTarget;
29
+ export type WebTarget = (string & {}) | KnownTarget;
30
30
  export type NativeTarget = AnyComponent;
31
31
  export type StyledTarget<R extends Runtime> = R extends 'web' ? WebTarget : NativeTarget;
32
32
  export interface StyledOptions<R extends Runtime, Props extends BaseObject> {
@@ -136,7 +136,7 @@ export interface PolymorphicComponent<R extends Runtime, BaseProps extends BaseO
136
136
  as?: StyledTarget<R> | undefined;
137
137
  forwardedAs?: StyledTarget<R> | undefined;
138
138
  }> {
139
- <AsTarget extends StyledTarget<R> | void = void, ForwardedAsTarget extends StyledTarget<R> | void = void>(props: PolymorphicComponentProps<R, BaseProps, AsTarget, ForwardedAsTarget> & React.RefAttributes<any>): React.JSX.Element;
139
+ <AsTarget extends StyledTarget<R> | void = void, ForwardedAsTarget extends StyledTarget<R> | void = void>(props: PolymorphicComponentProps<R, BaseProps, AsTarget, ForwardedAsTarget>): React.JSX.Element;
140
140
  }
141
141
  export interface IStyledComponentBase<R extends Runtime, Props extends BaseObject = BaseObject> extends PolymorphicComponent<R, Props>, IStyledStatics<R, Props>, StyledComponentBrand {
142
142
  defaultProps?: (ExecutionProps & Partial<Props>) | undefined;
@@ -26,7 +26,7 @@ export type FastOmit<T extends BaseObject, U extends string | number | symbol> =
26
26
  export type Runtime = 'web' | 'native';
27
27
  export type AnyComponent<P extends BaseObject = any> = ExoticComponentWithDisplayName<P> | React.ComponentType<P>;
28
28
  export type KnownTarget = SupportedHTMLElements | AnyComponent;
29
- export type WebTarget = string | KnownTarget;
29
+ export type WebTarget = (string & {}) | KnownTarget;
30
30
  export type NativeTarget = AnyComponent;
31
31
  export type StyledTarget<R extends Runtime> = R extends 'web' ? WebTarget : NativeTarget;
32
32
  export interface StyledOptions<R extends Runtime, Props extends BaseObject> {
@@ -136,7 +136,7 @@ export interface PolymorphicComponent<R extends Runtime, BaseProps extends BaseO
136
136
  as?: StyledTarget<R> | undefined;
137
137
  forwardedAs?: StyledTarget<R> | undefined;
138
138
  }> {
139
- <AsTarget extends StyledTarget<R> | void = void, ForwardedAsTarget extends StyledTarget<R> | void = void>(props: PolymorphicComponentProps<R, BaseProps, AsTarget, ForwardedAsTarget> & React.RefAttributes<any>): React.JSX.Element;
139
+ <AsTarget extends StyledTarget<R> | void = void, ForwardedAsTarget extends StyledTarget<R> | void = void>(props: PolymorphicComponentProps<R, BaseProps, AsTarget, ForwardedAsTarget>): React.JSX.Element;
140
140
  }
141
141
  export interface IStyledComponentBase<R extends Runtime, Props extends BaseObject = BaseObject> extends PolymorphicComponent<R, Props>, IStyledStatics<R, Props>, StyledComponentBrand {
142
142
  defaultProps?: (ExecutionProps & Partial<Props>) | undefined;
@@ -26,7 +26,7 @@ export type FastOmit<T extends BaseObject, U extends string | number | symbol> =
26
26
  export type Runtime = 'web' | 'native';
27
27
  export type AnyComponent<P extends BaseObject = any> = ExoticComponentWithDisplayName<P> | React.ComponentType<P>;
28
28
  export type KnownTarget = SupportedHTMLElements | AnyComponent;
29
- export type WebTarget = string | KnownTarget;
29
+ export type WebTarget = (string & {}) | KnownTarget;
30
30
  export type NativeTarget = AnyComponent;
31
31
  export type StyledTarget<R extends Runtime> = R extends 'web' ? WebTarget : NativeTarget;
32
32
  export interface StyledOptions<R extends Runtime, Props extends BaseObject> {
@@ -136,7 +136,7 @@ export interface PolymorphicComponent<R extends Runtime, BaseProps extends BaseO
136
136
  as?: StyledTarget<R> | undefined;
137
137
  forwardedAs?: StyledTarget<R> | undefined;
138
138
  }> {
139
- <AsTarget extends StyledTarget<R> | void = void, ForwardedAsTarget extends StyledTarget<R> | void = void>(props: PolymorphicComponentProps<R, BaseProps, AsTarget, ForwardedAsTarget> & React.RefAttributes<any>): React.JSX.Element;
139
+ <AsTarget extends StyledTarget<R> | void = void, ForwardedAsTarget extends StyledTarget<R> | void = void>(props: PolymorphicComponentProps<R, BaseProps, AsTarget, ForwardedAsTarget>): React.JSX.Element;
140
140
  }
141
141
  export interface IStyledComponentBase<R extends Runtime, Props extends BaseObject = BaseObject> extends PolymorphicComponent<R, Props>, IStyledStatics<R, Props>, StyledComponentBrand {
142
142
  defaultProps?: (ExecutionProps & Partial<Props>) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "styled-components",
3
- "version": "6.4.0-prerelease.11",
3
+ "version": "6.4.0-prerelease.13",
4
4
  "description": "Fast, expressive styling for React.",
5
5
  "publishConfig": {
6
6
  "access": "public"