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/styled-components.browser.cjs.js +3 -3
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +3 -3
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +3 -3
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +3 -3
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +2 -2
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +2 -2
- package/dist/styled-components.min.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/native/dist/dist/types.d.ts +2 -2
- package/native/dist/types.d.ts +2 -2
- package/package.json +1 -1
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>
|
|
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>
|
|
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/native/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>
|
|
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;
|