styled-components 6.0.0-beta.3 → 6.0.0-beta.4
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/base.d.ts +1 -1
- package/dist/constructors/constructWithOptions.d.ts +8 -14
- package/dist/constructors/createGlobalStyle.d.ts +1 -1
- package/dist/constructors/css.d.ts +4 -4
- package/dist/constructors/styled.d.ts +1 -1
- package/dist/native/index.d.ts +25 -25
- package/dist/styled-components.browser.cjs.js +38 -44
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +38 -44
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +38 -44
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +38 -44
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +38 -44
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +1 -1
- package/dist/styled-components.min.js.map +1 -1
- package/dist/test/utils.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +22 -14
- package/dist/utils/flatten.d.ts +1 -1
- package/dist/utils/interleave.d.ts +1 -1
- package/dist/utils/joinStrings.d.ts +1 -1
- package/dist/utils/mixinDeep.d.ts +1 -2
- package/native/dist/base.d.ts +1 -1
- package/native/dist/constructors/constructWithOptions.d.ts +8 -14
- package/native/dist/constructors/createGlobalStyle.d.ts +1 -1
- package/native/dist/constructors/css.d.ts +4 -4
- package/native/dist/constructors/styled.d.ts +1 -1
- package/native/dist/native/index.d.ts +25 -25
- package/native/dist/styled-components.native.cjs.js +15 -21
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +15 -21
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/native/dist/test/utils.d.ts +1 -1
- package/native/dist/types.d.ts +22 -14
- package/native/dist/utils/flatten.d.ts +1 -1
- package/native/dist/utils/interleave.d.ts +1 -1
- package/native/dist/utils/joinStrings.d.ts +1 -1
- package/native/dist/utils/mixinDeep.d.ts +1 -2
- package/package.json +3 -3
- package/test-utils/index.ts +10 -6
- package/native/dist/base.d.ts.map +0 -1
- package/native/dist/constants.d.ts.map +0 -1
- package/native/dist/constructors/constructWithOptions.d.ts.map +0 -1
- package/native/dist/constructors/createGlobalStyle.d.ts.map +0 -1
- package/native/dist/constructors/css.d.ts.map +0 -1
- package/native/dist/constructors/keyframes.d.ts.map +0 -1
- package/native/dist/constructors/styled.d.ts.map +0 -1
- package/native/dist/dist/base.d.ts +0 -18
- package/native/dist/dist/base.d.ts.map +0 -1
- package/native/dist/dist/constants.d.ts +0 -9
- package/native/dist/dist/constants.d.ts.map +0 -1
- package/native/dist/dist/constructors/constructWithOptions.d.ts +0 -20
- package/native/dist/dist/constructors/constructWithOptions.d.ts.map +0 -1
- package/native/dist/dist/constructors/createGlobalStyle.d.ts +0 -4
- package/native/dist/dist/constructors/createGlobalStyle.d.ts.map +0 -1
- package/native/dist/dist/constructors/css.d.ts +0 -5
- package/native/dist/dist/constructors/css.d.ts.map +0 -1
- package/native/dist/dist/constructors/keyframes.d.ts +0 -4
- package/native/dist/dist/constructors/keyframes.d.ts.map +0 -1
- package/native/dist/dist/constructors/styled.d.ts +0 -186
- package/native/dist/dist/constructors/styled.d.ts.map +0 -1
- package/native/dist/dist/hoc/withTheme.d.ts +0 -4
- package/native/dist/dist/hoc/withTheme.d.ts.map +0 -1
- package/native/dist/dist/hoc/withTheme.spec.d.ts +0 -2
- package/native/dist/dist/hoc/withTheme.spec.d.ts.map +0 -1
- package/native/dist/dist/hooks/useTheme.d.ts +0 -4
- package/native/dist/dist/hooks/useTheme.d.ts.map +0 -1
- package/native/dist/dist/index-standalone.d.ts +0 -3
- package/native/dist/dist/index-standalone.d.ts.map +0 -1
- package/native/dist/dist/index.d.ts +0 -4
- package/native/dist/dist/index.d.ts.map +0 -1
- package/native/dist/dist/macro/index.d.ts +0 -3
- package/native/dist/dist/macro/index.d.ts.map +0 -1
- package/native/dist/dist/macro/test/babel.config.d.ts +0 -1
- package/native/dist/dist/macro/test/babel.config.d.ts.map +0 -1
- package/native/dist/dist/models/ComponentStyle.d.ts +0 -16
- package/native/dist/dist/models/ComponentStyle.d.ts.map +0 -1
- package/native/dist/dist/models/GlobalStyle.d.ts +0 -12
- package/native/dist/dist/models/GlobalStyle.d.ts.map +0 -1
- package/native/dist/dist/models/InlineStyle.d.ts +0 -7
- package/native/dist/dist/models/InlineStyle.d.ts.map +0 -1
- package/native/dist/dist/models/Keyframes.d.ts +0 -12
- package/native/dist/dist/models/Keyframes.d.ts.map +0 -1
- package/native/dist/dist/models/ServerStyleSheet.d.ts +0 -16
- package/native/dist/dist/models/ServerStyleSheet.d.ts.map +0 -1
- package/native/dist/dist/models/StyleSheetManager.d.ts +0 -22
- package/native/dist/dist/models/StyleSheetManager.d.ts.map +0 -1
- package/native/dist/dist/models/StyledComponent.d.ts +0 -4
- package/native/dist/dist/models/StyledComponent.d.ts.map +0 -1
- package/native/dist/dist/models/StyledNativeComponent.d.ts +0 -4
- package/native/dist/dist/models/StyledNativeComponent.d.ts.map +0 -1
- package/native/dist/dist/models/ThemeProvider.d.ts +0 -18
- package/native/dist/dist/models/ThemeProvider.d.ts.map +0 -1
- package/native/dist/dist/native/index.d.ts +0 -65
- package/native/dist/dist/native/index.d.ts.map +0 -1
- package/native/dist/dist/primitives/index.d.ts +0 -23
- package/native/dist/dist/primitives/index.d.ts.map +0 -1
- package/native/dist/dist/secretInternals.d.ts +0 -6
- package/native/dist/dist/secretInternals.d.ts.map +0 -1
- package/native/dist/dist/sheet/GroupIDAllocator.d.ts +0 -5
- package/native/dist/dist/sheet/GroupIDAllocator.d.ts.map +0 -1
- package/native/dist/dist/sheet/GroupedTag.d.ts +0 -12
- package/native/dist/dist/sheet/GroupedTag.d.ts.map +0 -1
- package/native/dist/dist/sheet/Rehydration.d.ts +0 -4
- package/native/dist/dist/sheet/Rehydration.d.ts.map +0 -1
- package/native/dist/dist/sheet/Sheet.d.ts +0 -41
- package/native/dist/dist/sheet/Sheet.d.ts.map +0 -1
- package/native/dist/dist/sheet/Tag.d.ts +0 -55
- package/native/dist/dist/sheet/Tag.d.ts.map +0 -1
- package/native/dist/dist/sheet/dom.d.ts +0 -5
- package/native/dist/dist/sheet/dom.d.ts.map +0 -1
- package/native/dist/dist/sheet/index.d.ts +0 -2
- package/native/dist/dist/sheet/index.d.ts.map +0 -1
- package/native/dist/dist/sheet/types.d.ts +0 -35
- package/native/dist/dist/sheet/types.d.ts.map +0 -1
- package/native/dist/dist/test/globals.d.ts +0 -3
- package/native/dist/dist/test/globals.d.ts.map +0 -1
- package/native/dist/dist/test/utils.d.ts +0 -192
- package/native/dist/dist/test/utils.d.ts.map +0 -1
- package/native/dist/dist/types.d.ts +0 -121
- package/native/dist/dist/types.d.ts.map +0 -1
- package/native/dist/dist/utils/addUnitIfNeeded.d.ts +0 -2
- package/native/dist/dist/utils/addUnitIfNeeded.d.ts.map +0 -1
- package/native/dist/dist/utils/checkDynamicCreation.d.ts +0 -2
- package/native/dist/dist/utils/checkDynamicCreation.d.ts.map +0 -1
- package/native/dist/dist/utils/createWarnTooManyClasses.d.ts +0 -4
- package/native/dist/dist/utils/createWarnTooManyClasses.d.ts.map +0 -1
- package/native/dist/dist/utils/determineTheme.d.ts +0 -3
- package/native/dist/dist/utils/determineTheme.d.ts.map +0 -1
- package/native/dist/dist/utils/domElements.d.ts +0 -3
- package/native/dist/dist/utils/domElements.d.ts.map +0 -1
- package/native/dist/dist/utils/empties.d.ts +0 -4
- package/native/dist/dist/utils/empties.d.ts.map +0 -1
- package/native/dist/dist/utils/error.d.ts +0 -6
- package/native/dist/dist/utils/error.d.ts.map +0 -1
- package/native/dist/dist/utils/errors.d.ts +0 -21
- package/native/dist/dist/utils/errors.d.ts.map +0 -1
- package/native/dist/dist/utils/escape.d.ts +0 -6
- package/native/dist/dist/utils/escape.d.ts.map +0 -1
- package/native/dist/dist/utils/flatten.d.ts +0 -5
- package/native/dist/dist/utils/flatten.d.ts.map +0 -1
- package/native/dist/dist/utils/generateAlphabeticName.d.ts +0 -2
- package/native/dist/dist/utils/generateAlphabeticName.d.ts.map +0 -1
- package/native/dist/dist/utils/generateComponentId.d.ts +0 -2
- package/native/dist/dist/utils/generateComponentId.d.ts.map +0 -1
- package/native/dist/dist/utils/generateDisplayName.d.ts +0 -3
- package/native/dist/dist/utils/generateDisplayName.d.ts.map +0 -1
- package/native/dist/dist/utils/getComponentName.d.ts +0 -3
- package/native/dist/dist/utils/getComponentName.d.ts.map +0 -1
- package/native/dist/dist/utils/hash.d.ts +0 -4
- package/native/dist/dist/utils/hash.d.ts.map +0 -1
- package/native/dist/dist/utils/hoist.d.ts +0 -52
- package/native/dist/dist/utils/hoist.d.ts.map +0 -1
- package/native/dist/dist/utils/hyphenateStyleName.d.ts +0 -15
- package/native/dist/dist/utils/hyphenateStyleName.d.ts.map +0 -1
- package/native/dist/dist/utils/interleave.d.ts +0 -3
- package/native/dist/dist/utils/interleave.d.ts.map +0 -1
- package/native/dist/dist/utils/isFunction.d.ts +0 -2
- package/native/dist/dist/utils/isFunction.d.ts.map +0 -1
- package/native/dist/dist/utils/isPlainObject.d.ts +0 -2
- package/native/dist/dist/utils/isPlainObject.d.ts.map +0 -1
- package/native/dist/dist/utils/isStatelessFunction.d.ts +0 -2
- package/native/dist/dist/utils/isStatelessFunction.d.ts.map +0 -1
- package/native/dist/dist/utils/isStaticRules.d.ts +0 -3
- package/native/dist/dist/utils/isStaticRules.d.ts.map +0 -1
- package/native/dist/dist/utils/isStyledComponent.d.ts +0 -3
- package/native/dist/dist/utils/isStyledComponent.d.ts.map +0 -1
- package/native/dist/dist/utils/isTag.d.ts +0 -3
- package/native/dist/dist/utils/isTag.d.ts.map +0 -1
- package/native/dist/dist/utils/joinStrings.d.ts +0 -5
- package/native/dist/dist/utils/joinStrings.d.ts.map +0 -1
- package/native/dist/dist/utils/mixinDeep.d.ts +0 -8
- package/native/dist/dist/utils/mixinDeep.d.ts.map +0 -1
- package/native/dist/dist/utils/nonce.d.ts +0 -2
- package/native/dist/dist/utils/nonce.d.ts.map +0 -1
- package/native/dist/dist/utils/stylis.d.ts +0 -10
- package/native/dist/dist/utils/stylis.d.ts.map +0 -1
- package/native/dist/hoc/withTheme.d.ts.map +0 -1
- package/native/dist/hoc/withTheme.spec.d.ts.map +0 -1
- package/native/dist/hooks/useTheme.d.ts.map +0 -1
- package/native/dist/index-standalone.d.ts.map +0 -1
- package/native/dist/index.d.ts.map +0 -1
- package/native/dist/macro/index.d.ts.map +0 -1
- package/native/dist/macro/test/babel.config.d.ts +0 -1
- package/native/dist/macro/test/babel.config.d.ts.map +0 -1
- package/native/dist/models/ComponentStyle.d.ts.map +0 -1
- package/native/dist/models/GlobalStyle.d.ts.map +0 -1
- package/native/dist/models/InlineStyle.d.ts.map +0 -1
- package/native/dist/models/Keyframes.d.ts.map +0 -1
- package/native/dist/models/ServerStyleSheet.d.ts.map +0 -1
- package/native/dist/models/StyleSheetManager.d.ts.map +0 -1
- package/native/dist/models/StyledComponent.d.ts.map +0 -1
- package/native/dist/models/StyledNativeComponent.d.ts.map +0 -1
- package/native/dist/models/ThemeProvider.d.ts.map +0 -1
- package/native/dist/native/index.d.ts.map +0 -1
- package/native/dist/primitives/index.d.ts +0 -23
- package/native/dist/primitives/index.d.ts.map +0 -1
- package/native/dist/secretInternals.d.ts.map +0 -1
- package/native/dist/sheet/GroupIDAllocator.d.ts.map +0 -1
- package/native/dist/sheet/GroupedTag.d.ts.map +0 -1
- package/native/dist/sheet/Rehydration.d.ts.map +0 -1
- package/native/dist/sheet/Sheet.d.ts.map +0 -1
- package/native/dist/sheet/Tag.d.ts.map +0 -1
- package/native/dist/sheet/dom.d.ts.map +0 -1
- package/native/dist/sheet/index.d.ts.map +0 -1
- package/native/dist/sheet/types.d.ts.map +0 -1
- package/native/dist/test/globals.d.ts.map +0 -1
- package/native/dist/test/utils.d.ts.map +0 -1
- package/native/dist/types.d.ts.map +0 -1
- package/native/dist/utils/addUnitIfNeeded.d.ts.map +0 -1
- package/native/dist/utils/checkDynamicCreation.d.ts.map +0 -1
- package/native/dist/utils/createWarnTooManyClasses.d.ts.map +0 -1
- package/native/dist/utils/determineTheme.d.ts.map +0 -1
- package/native/dist/utils/domElements.d.ts.map +0 -1
- package/native/dist/utils/empties.d.ts.map +0 -1
- package/native/dist/utils/error.d.ts.map +0 -1
- package/native/dist/utils/errors.d.ts.map +0 -1
- package/native/dist/utils/escape.d.ts.map +0 -1
- package/native/dist/utils/flatten.d.ts.map +0 -1
- package/native/dist/utils/generateAlphabeticName.d.ts.map +0 -1
- package/native/dist/utils/generateComponentId.d.ts.map +0 -1
- package/native/dist/utils/generateDisplayName.d.ts.map +0 -1
- package/native/dist/utils/getComponentName.d.ts.map +0 -1
- package/native/dist/utils/hash.d.ts.map +0 -1
- package/native/dist/utils/hoist.d.ts.map +0 -1
- package/native/dist/utils/hyphenateStyleName.d.ts.map +0 -1
- package/native/dist/utils/interleave.d.ts.map +0 -1
- package/native/dist/utils/isFunction.d.ts.map +0 -1
- package/native/dist/utils/isPlainObject.d.ts.map +0 -1
- package/native/dist/utils/isStatelessFunction.d.ts.map +0 -1
- package/native/dist/utils/isStaticRules.d.ts.map +0 -1
- package/native/dist/utils/isStyledComponent.d.ts.map +0 -1
- package/native/dist/utils/isTag.d.ts.map +0 -1
- package/native/dist/utils/joinStrings.d.ts.map +0 -1
- package/native/dist/utils/mixinDeep.d.ts.map +0 -1
- package/native/dist/utils/nonce.d.ts.map +0 -1
- package/native/dist/utils/stylis.d.ts.map +0 -1
package/native/dist/types.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare type Runtime = 'web' | 'native';
|
|
|
13
13
|
export { DefaultTheme };
|
|
14
14
|
export declare type AnyComponent<P = any> = ExoticComponentWithDisplayName<P> | React.ComponentType<P>;
|
|
15
15
|
export interface StyledOptions<R extends Runtime, Props extends object> {
|
|
16
|
-
attrs?:
|
|
16
|
+
attrs?: AttrsArg<Props>[];
|
|
17
17
|
componentId?: R extends 'web' ? string : never;
|
|
18
18
|
displayName?: string;
|
|
19
19
|
parentComponentId?: R extends 'web' ? string : never;
|
|
@@ -44,11 +44,12 @@ export interface ExecutionContext extends ExecutionProps {
|
|
|
44
44
|
theme: DefaultTheme;
|
|
45
45
|
}
|
|
46
46
|
export interface StyleFunction<Props extends object> {
|
|
47
|
-
(executionContext: ExecutionContext & Props): Interpolation<Props>;
|
|
47
|
+
(executionContext: Omit<ExecutionContext, keyof Props> & Props): Interpolation<Props>;
|
|
48
48
|
}
|
|
49
|
-
export declare type Interpolation<Props extends object> = StyleFunction<Props> | StyledObject<Props> | TemplateStringsArray | string | number | false | undefined | null | Keyframes | IStyledComponent<'web', any, any
|
|
50
|
-
export declare type
|
|
51
|
-
export declare type
|
|
49
|
+
export declare type Interpolation<Props extends object> = StyleFunction<Props> | StyledObject<Props> | TemplateStringsArray | string | number | false | undefined | null | Keyframes | OmitSignatures<IStyledComponent<'web', any, any>> | Interpolation<Props>[];
|
|
50
|
+
export declare type AttrsArg<Props extends object> = (Omit<ExecutionProps, keyof Props> & Props) | ((props: Omit<ExecutionContext, keyof Props> & Props) => Partial<Props>);
|
|
51
|
+
export declare type Attrs = object | ((...args: any) => object);
|
|
52
|
+
export declare type RuleSet<Props extends object> = Interpolation<Props>[];
|
|
52
53
|
export declare type Styles<Props extends object> = TemplateStringsArray | StyledObject<Props> | StyleFunction<Props>;
|
|
53
54
|
export declare type NameGenerator = (hash: number) => string;
|
|
54
55
|
export interface StyleSheet {
|
|
@@ -62,7 +63,7 @@ export interface Keyframes {
|
|
|
62
63
|
export interface Flattener<Props extends object> {
|
|
63
64
|
(chunks: Interpolation<Props>[], executionContext: Object | null | undefined, styleSheet: Object | null | undefined): Interpolation<Props>[];
|
|
64
65
|
}
|
|
65
|
-
export declare type FlattenerResult<Props extends object> = RuleSet<Props> | number | string | string[] | IStyledComponent<
|
|
66
|
+
export declare type FlattenerResult<Props extends object> = RuleSet<Props> | number | string | string[] | IStyledComponent<'web', any, any> | Keyframes;
|
|
66
67
|
export interface Stringifier {
|
|
67
68
|
(css: string, selector?: string, prefix?: string, componentId?: string): string[];
|
|
68
69
|
hash: string;
|
|
@@ -71,7 +72,7 @@ export interface ShouldForwardProp<R extends Runtime> {
|
|
|
71
72
|
(prop: string, elementToBeCreated: StyledTarget<R>): boolean;
|
|
72
73
|
}
|
|
73
74
|
export interface CommonStatics<R extends Runtime, Props extends object> {
|
|
74
|
-
attrs:
|
|
75
|
+
attrs: AttrsArg<Props>[];
|
|
75
76
|
target: StyledTarget<R>;
|
|
76
77
|
shouldForwardProp?: ShouldForwardProp<R>;
|
|
77
78
|
withComponent: any;
|
|
@@ -85,11 +86,18 @@ export interface IStyledStatics<R extends Runtime, OuterProps extends object> ex
|
|
|
85
86
|
warnTooManyClasses?: R extends 'web' ? ReturnType<typeof createWarnTooManyClasses> : never;
|
|
86
87
|
withComponent: <Target extends StyledTarget<R>, Props extends object = object>(tag: Target) => IStyledComponent<R, Target, OuterProps & Props>;
|
|
87
88
|
}
|
|
88
|
-
declare type PolymorphicComponentProps<R extends Runtime, E extends StyledTarget<R>, P extends object> = {
|
|
89
|
-
as?:
|
|
89
|
+
declare type PolymorphicComponentProps<R extends Runtime, E extends StyledTarget<R>, P extends object> = Omit<P & (E extends KnownTarget ? Omit<React.ComponentProps<E>, keyof P> : object), 'as' | 'theme'> & {
|
|
90
|
+
as?: P extends {
|
|
91
|
+
as?: string | AnyComponent;
|
|
92
|
+
} ? P['as'] : E;
|
|
90
93
|
theme?: DefaultTheme;
|
|
91
|
-
}
|
|
92
|
-
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Remove the function call signature, keeping the additional properties.
|
|
97
|
+
* https://stackoverflow.com/a/62502740/347386
|
|
98
|
+
*/
|
|
99
|
+
declare type OmitSignatures<T> = Pick<T, keyof T>;
|
|
100
|
+
interface PolymorphicComponent<R extends Runtime, P extends object, FallbackComponent extends StyledTarget<R>> extends OmitSignatures<React.ForwardRefExoticComponent<P>> {
|
|
93
101
|
<E extends StyledTarget<R> = FallbackComponent>(props: PolymorphicComponentProps<R, E, P>): React.ReactElement | null;
|
|
94
102
|
}
|
|
95
103
|
export interface IStyledComponent<R extends Runtime, Target extends StyledTarget<R>, Props extends object> extends PolymorphicComponent<R, Props, Target>, IStyledStatics<R, Props> {
|
|
@@ -107,8 +115,8 @@ export interface IInlineStyle<Props extends object> {
|
|
|
107
115
|
generateStyleObject(executionContext: Object): Object;
|
|
108
116
|
}
|
|
109
117
|
export declare type StyledTarget<R extends Runtime> = R extends 'web' ? WebTarget : NativeTarget;
|
|
110
|
-
export interface StyledObject<Props extends object
|
|
111
|
-
[key: string]: Dict<any> | string | number | StyleFunction<Props>;
|
|
118
|
+
export interface StyledObject<Props extends object> {
|
|
119
|
+
[key: string]: Dict<any> | string | number | StyleFunction<Props> | StyledObject<Props>;
|
|
112
120
|
}
|
|
113
121
|
/**
|
|
114
122
|
* Override DefaultTheme to get accurate typings for your project.
|
|
@@ -132,4 +140,4 @@ export interface StyledObject<Props extends object = ExecutionContext> {
|
|
|
132
140
|
* }
|
|
133
141
|
* ```
|
|
134
142
|
*/
|
|
135
|
-
export declare type CSSProp = string | StyledObject | StyleFunction<any>;
|
|
143
|
+
export declare type CSSProp = string | StyledObject<any> | StyleFunction<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import StyleSheet from '../sheet';
|
|
2
2
|
import { Dict, ExecutionContext, Interpolation, RuleSet, Stringifier } from '../types';
|
|
3
3
|
export declare const objToCssArray: (obj: Dict<any>, prevKey?: string) => string[];
|
|
4
|
-
export default function flatten<Props extends object>(chunk: Interpolation<Props>, executionContext?: ExecutionContext & Props, styleSheet?: StyleSheet, stylisInstance?: Stringifier):
|
|
4
|
+
export default function flatten<Props extends object>(chunk: Interpolation<Props>, executionContext?: ExecutionContext & Props, styleSheet?: StyleSheet, stylisInstance?: Stringifier): RuleSet<Props>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Interpolation } from '../types';
|
|
2
|
-
export default function interleave<Props extends object>(strings:
|
|
2
|
+
export default function interleave<Props extends object>(strings: readonly string[], interpolations: Interpolation<Props>[]): Interpolation<Props>[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ExecutionProps } from '../types';
|
|
2
1
|
/**
|
|
3
2
|
* Arrays & POJOs merged recursively, other objects and value types are overridden
|
|
4
3
|
* If target is not a POJO or an Array, it will get source properties injected via shallow merge
|
|
5
4
|
* Source objects applied left to right. Mutates & returns target. Similar to lodash merge.
|
|
6
5
|
*/
|
|
7
|
-
export default function mixinDeep(target
|
|
6
|
+
export default function mixinDeep(target: any, ...sources: any[]): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styled-components",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.4",
|
|
4
4
|
"description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/styled-components.cjs.js",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@emotion/unitless": "^0.7.4",
|
|
73
73
|
"css-to-react-native": "^3.0.0",
|
|
74
74
|
"shallowequal": "^1.1.0",
|
|
75
|
-
"stylis": "^4.1.
|
|
75
|
+
"stylis": "^4.1.2"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"babel-plugin-styled-components": ">= 2",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
135
135
|
"rollup-plugin-terser": "^7.0.2",
|
|
136
136
|
"stylis-plugin-rtl": "^2.1.1",
|
|
137
|
-
"typescript": "^4.8.
|
|
137
|
+
"typescript": "^4.8.4",
|
|
138
138
|
"utility-types": "^3.10.0"
|
|
139
139
|
},
|
|
140
140
|
"bundlewatch": {
|
package/test-utils/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactWrapper } from
|
|
2
|
-
import { IStyledComponent } from
|
|
1
|
+
import { ReactWrapper } from 'enzyme';
|
|
2
|
+
import { IStyledComponent } from '../src/types';
|
|
3
3
|
|
|
4
4
|
function assertElement(element: any) {
|
|
5
5
|
if (!(element instanceof HTMLElement)) {
|
|
@@ -9,7 +9,8 @@ function assertElement(element: any) {
|
|
|
9
9
|
|
|
10
10
|
function assertStyledComponent(styledComponent: any) {
|
|
11
11
|
if (
|
|
12
|
-
!
|
|
12
|
+
!styledComponent?.styledComponentId ||
|
|
13
|
+
typeof styledComponent.styledComponentId !== 'string'
|
|
13
14
|
) {
|
|
14
15
|
throw new Error(
|
|
15
16
|
`${
|
|
@@ -19,19 +20,22 @@ function assertStyledComponent(styledComponent: any) {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
export function enzymeFind(
|
|
23
|
+
export function enzymeFind(
|
|
24
|
+
wrapper: ReactWrapper,
|
|
25
|
+
styledComponent: IStyledComponent<'web', any, any>
|
|
26
|
+
) {
|
|
23
27
|
assertStyledComponent(styledComponent);
|
|
24
28
|
|
|
25
29
|
return wrapper.find(`.${styledComponent.styledComponentId}`);
|
|
26
30
|
}
|
|
27
31
|
|
|
28
|
-
export function find(element: Element, styledComponent: IStyledComponent) {
|
|
32
|
+
export function find(element: Element, styledComponent: IStyledComponent<'web', any, any>) {
|
|
29
33
|
assertElement(element);
|
|
30
34
|
assertStyledComponent(styledComponent);
|
|
31
35
|
return element.querySelector(`.${styledComponent.styledComponentId}`);
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
export function findAll(element: Element, styledComponent: IStyledComponent) {
|
|
38
|
+
export function findAll(element: Element, styledComponent: IStyledComponent<'web', any, any>) {
|
|
35
39
|
assertElement(element);
|
|
36
40
|
assertStyledComponent(styledComponent);
|
|
37
41
|
return element.querySelectorAll(`.${styledComponent.styledComponentId}`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["src/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,iBAAiB,EAAE,EACxB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,aAAa,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAI1D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,4BAA4B,CAAC,EAAE,MAAM,CAAC;KACvC;CACF;AAsCD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,GAAG,EACH,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,UAAU,IAAI,OAAO,EACrB,SAAS,GACV,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,EAAE,MAEP,CAAC;AAEhB,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,UAAU,QAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,cAAc,CAAC;AAEpC,eAAO,MAAM,UAAU,SAA2D,CAAC;AAEnF,eAAO,MAAM,cAAc,SAgB1B,CAAC;AAGF,eAAO,MAAM,wBAAwB,IAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constructWithOptions.d.ts","sourceRoot":"","sources":["../src/constructors/constructWithOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,YAAY,EAEZ,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,SAAS,EACV,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,YAAY,CAC3B,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EACpB,YAAY,GAAG,OAAO;IAEtB,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,OAAO,CAAC,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,GACrF,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IAC/E,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAChF,UAAU,CACR,MAAM,EAAE,mBAAmB,CAAC,UAAU,CAAC,GACtC,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,SAAS,CAAC,MAAM,SAAS,SAAS,EAAE,UAAU,GAAG,OAAO,EAAE,YAAY,GAAG,OAAO;IAC/F,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,GACrD,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IACzE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAC7E,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CAC5F;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,WAAW,SAAS,KAAK,GAAG,QAAQ,EACpC,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EAAE,yEAAyE;AAC/F,YAAY,GAAG,OAAO,EAEtB,oBAAoB,EAAE,WAAW,SAAS,KAAK,GAC3C,uBAAuB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GACtC,6BAA6B,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAChD,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAW,SAAS,KAAK,GAC9B,aAAa,CAAC,UAAU,CAAC,GACzB,mBAAmB,CAAC,UAAU,CAA6C;;iBA6B9C,MAAM,UAAU,CAAC;IAMlD;yFACqF;uBAE3E,WAAW,SAAS,KAAK,GAAG,cAAc,UAAU,CAAC,GAAG,oBAAoB,UAAU,CAAC;EAQlG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createGlobalStyle.d.ts","sourceRoot":"","sources":["../src/constructors/createGlobalStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAMnE,OAAO,EAEL,gBAAgB,EAChB,aAAa,EAGb,MAAM,EACP,MAAM,UAAU,CAAC;AAMlB,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,GAAG,OAAO,EACvD,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,gDA6E/C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../src/constructors/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA+B,MAAM,EAAE,MAAM,UAAU,CAAC;AAmB9E,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,KAAK,EAC/B,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,EACrB,GAAG,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;;GA0B1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyframes.d.ts","sourceRoot":"","sources":["../src/constructors/keyframes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIjD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,GAAG,OAAO,EAC/C,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC7C,SAAS,CAgBX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../src/constructors/styled.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAA6B,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKzE,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEX,CAAC;AAQF,eAAe,MAAM,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SC_VERSION } from './constants';
|
|
2
|
-
import createGlobalStyle from './constructors/createGlobalStyle';
|
|
3
|
-
import css from './constructors/css';
|
|
4
|
-
import keyframes from './constructors/keyframes';
|
|
5
|
-
import withTheme from './hoc/withTheme';
|
|
6
|
-
import useTheme from './hooks/useTheme';
|
|
7
|
-
import ServerStyleSheet from './models/ServerStyleSheet';
|
|
8
|
-
import StyleSheetManager, { StyleSheetConsumer, StyleSheetContext } from './models/StyleSheetManager';
|
|
9
|
-
import ThemeProvider, { ThemeConsumer, ThemeContext } from './models/ThemeProvider';
|
|
10
|
-
import isStyledComponent from './utils/isStyledComponent';
|
|
11
|
-
declare global {
|
|
12
|
-
interface Window {
|
|
13
|
-
'__styled-components-init__'?: number;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export * from './secretInternals';
|
|
17
|
-
export { createGlobalStyle, css, isStyledComponent, keyframes, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, useTheme, SC_VERSION as version, withTheme, };
|
|
18
|
-
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AACzD,OAAO,iBAAiB,EAAE,EACxB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,aAAa,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAI1D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,4BAA4B,CAAC,EAAE,MAAM,CAAC;KACvC;CACF;AAsCD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,GAAG,EACH,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,UAAU,IAAI,OAAO,EACrB,SAAS,GACV,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const SC_ATTR: string;
|
|
2
|
-
export declare const SC_ATTR_ACTIVE = "active";
|
|
3
|
-
export declare const SC_ATTR_VERSION = "data-styled-version";
|
|
4
|
-
export declare const SC_VERSION: string;
|
|
5
|
-
export declare const SPLITTER = "/*!sc*/\n";
|
|
6
|
-
export declare const IS_BROWSER: boolean;
|
|
7
|
-
export declare const DISABLE_SPEEDY: boolean;
|
|
8
|
-
export declare const STATIC_EXECUTION_CONTEXT: {};
|
|
9
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,EAAE,MAEP,CAAC;AAEhB,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,UAAU,QAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,cAAc,CAAC;AAEpC,eAAO,MAAM,UAAU,SAA2D,CAAC;AAEnF,eAAO,MAAM,cAAc,SAgB1B,CAAC;AAGF,eAAO,MAAM,wBAAwB,IAAK,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Attrs, Interpolation, IStyledComponent, IStyledComponentFactory, IStyledNativeComponent, IStyledNativeComponentFactory, NativeTarget, StyledNativeOptions, StyledOptions, StyledTarget, Styles, WebTarget } from '../types';
|
|
2
|
-
export interface NativeStyled<Target extends NativeTarget, OuterProps = unknown, OuterStatics = unknown> {
|
|
3
|
-
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Exclude<Interpolation<OuterProps & Props>, IStyledComponent<any>>[]): IStyledNativeComponent<Target, OuterProps & Props> & OuterStatics & Statics;
|
|
4
|
-
attrs(attrs: Attrs<OuterProps>): NativeStyled<Target, OuterProps, OuterStatics>;
|
|
5
|
-
withConfig(config: StyledNativeOptions<OuterProps>): NativeStyled<Target, OuterProps, OuterStatics>;
|
|
6
|
-
}
|
|
7
|
-
export interface WebStyled<Target extends WebTarget, OuterProps = unknown, OuterStatics = unknown> {
|
|
8
|
-
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Interpolation<OuterProps & Props>[]): IStyledComponent<Target, OuterProps & Props> & OuterStatics & Statics;
|
|
9
|
-
attrs(attrs: Attrs<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;
|
|
10
|
-
withConfig(config: StyledOptions<OuterProps>): WebStyled<Target, OuterProps, OuterStatics>;
|
|
11
|
-
}
|
|
12
|
-
export default function constructWithOptions<Environment extends 'web' | 'native', Target extends StyledTarget, OuterProps = unknown, // used for styled<{}>().attrs() so attrs() gets the generic prop context
|
|
13
|
-
OuterStatics = unknown>(componentConstructor: Environment extends 'web' ? IStyledComponentFactory<any, any, any> : IStyledNativeComponentFactory<any, any, any>, tag: Target, options?: Environment extends 'web' ? StyledOptions<OuterProps> : StyledNativeOptions<OuterProps>): {
|
|
14
|
-
<Props = unknown, Statics = unknown>(initialStyles: Styles<OuterProps & Props>, ...interpolations: Interpolation<OuterProps & Props>[]): ReturnType<Environment extends "web" ? IStyledComponentFactory<Target, OuterProps & Props, OuterStatics & Statics> : IStyledNativeComponentFactory<Target, OuterProps & Props, OuterStatics & Statics>>;
|
|
15
|
-
attrs(attrs: Attrs<OuterProps>): any;
|
|
16
|
-
/**
|
|
17
|
-
* If config methods are called, wrap up a new template function and merge options */
|
|
18
|
-
withConfig(config: Environment extends 'web' ? StyledOptions<OuterProps> : StyledNativeOptions<OuterProps>): any;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=constructWithOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constructWithOptions.d.ts","sourceRoot":"","sources":["../../src/constructors/constructWithOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,YAAY,EAEZ,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,SAAS,EACV,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,YAAY,CAC3B,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EACpB,YAAY,GAAG,OAAO;IAEtB,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,OAAO,CAAC,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,GACrF,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IAC/E,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAChF,UAAU,CACR,MAAM,EAAE,mBAAmB,CAAC,UAAU,CAAC,GACtC,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,SAAS,CAAC,MAAM,SAAS,SAAS,EAAE,UAAU,GAAG,OAAO,EAAE,YAAY,GAAG,OAAO;IAC/F,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACjC,aAAa,EAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,EACzC,GAAG,cAAc,EAAE,aAAa,CAAC,UAAU,GAAG,KAAK,CAAC,EAAE,GACrD,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,YAAY,GAAG,OAAO,CAAC;IACzE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAC7E,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;CAC5F;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,WAAW,SAAS,KAAK,GAAG,QAAQ,EACpC,MAAM,SAAS,YAAY,EAC3B,UAAU,GAAG,OAAO,EAAE,yEAAyE;AAC/F,YAAY,GAAG,OAAO,EAEtB,oBAAoB,EAAE,WAAW,SAAS,KAAK,GAC3C,uBAAuB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,GACtC,6BAA6B,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAChD,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAW,SAAS,KAAK,GAC9B,aAAa,CAAC,UAAU,CAAC,GACzB,mBAAmB,CAAC,UAAU,CAA6C;;iBA6B9C,MAAM,UAAU,CAAC;IAMlD;yFACqF;uBAE3E,WAAW,SAAS,KAAK,GAAG,cAAc,UAAU,CAAC,GAAG,oBAAoB,UAAU,CAAC;EAQlG"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ExtensibleObject, Interpolation, Styles } from '../types';
|
|
3
|
-
export default function createGlobalStyle<Props = unknown>(strings: Styles<Props>, ...interpolations: Array<Interpolation<Props>>): React.NamedExoticComponent<ExtensibleObject>;
|
|
4
|
-
//# sourceMappingURL=createGlobalStyle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createGlobalStyle.d.ts","sourceRoot":"","sources":["../../src/constructors/createGlobalStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAMnE,OAAO,EAEL,gBAAgB,EAChB,aAAa,EAGb,MAAM,EACP,MAAM,UAAU,CAAC;AAMlB,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,GAAG,OAAO,EACvD,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,gDA6E/C"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Interpolation, Styles } from '../types';
|
|
2
|
-
export default function css<Props>(styles: Styles<Props>, ...interpolations: Interpolation<Props>[]): TemplateStringsArray | (Interpolation<Props> & {
|
|
3
|
-
isCss?: boolean | undefined;
|
|
4
|
-
});
|
|
5
|
-
//# sourceMappingURL=css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/constructors/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA+B,MAAM,EAAE,MAAM,UAAU,CAAC;AAmB9E,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,KAAK,EAC/B,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,EACrB,GAAG,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;;GA0B1C"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import Keyframes from '../models/Keyframes';
|
|
2
|
-
import { Interpolation, Styles } from '../types';
|
|
3
|
-
export default function keyframes<Props = unknown>(strings: Styles<Props>, ...interpolations: Array<Interpolation<Props>>): Keyframes;
|
|
4
|
-
//# sourceMappingURL=keyframes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyframes.d.ts","sourceRoot":"","sources":["../../src/constructors/keyframes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIjD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,GAAG,OAAO,EAC/C,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EACtB,GAAG,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAC7C,SAAS,CAgBX"}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WebTarget } from '../types';
|
|
3
|
-
import { WebStyled } from './constructWithOptions';
|
|
4
|
-
declare const styled: (<Target extends WebTarget>(tag: Target) => {
|
|
5
|
-
<Props = unknown, Statics = unknown>(initialStyles: import("../types").Styles<Props>, ...interpolations: import("../types").Interpolation<Props>[]): import("../types").IStyledComponent<Target, Props> & Statics;
|
|
6
|
-
attrs(attrs: import("../types").Attrs<unknown>): any;
|
|
7
|
-
withConfig(config: import("../types").StyledOptions<unknown>): any;
|
|
8
|
-
}) & {
|
|
9
|
-
a: WebStyled<"a", import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, unknown>;
|
|
10
|
-
abbr: WebStyled<"abbr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
11
|
-
address: WebStyled<"address", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
12
|
-
area: WebStyled<"area", import("react").DetailedHTMLProps<import("react").AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>, unknown>;
|
|
13
|
-
article: WebStyled<"article", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
14
|
-
aside: WebStyled<"aside", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
15
|
-
audio: WebStyled<"audio", import("react").DetailedHTMLProps<import("react").AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, unknown>;
|
|
16
|
-
b: WebStyled<"b", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
17
|
-
base: WebStyled<"base", import("react").DetailedHTMLProps<import("react").BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>, unknown>;
|
|
18
|
-
bdi: WebStyled<"bdi", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
19
|
-
bdo: WebStyled<"bdo", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
20
|
-
big: WebStyled<"big", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
21
|
-
blockquote: WebStyled<"blockquote", import("react").DetailedHTMLProps<import("react").BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
22
|
-
body: WebStyled<"body", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>, unknown>;
|
|
23
|
-
br: WebStyled<"br", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBRElement>, HTMLBRElement>, unknown>;
|
|
24
|
-
button: WebStyled<"button", import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, unknown>;
|
|
25
|
-
canvas: WebStyled<"canvas", import("react").DetailedHTMLProps<import("react").CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>, unknown>;
|
|
26
|
-
caption: WebStyled<"caption", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
27
|
-
cite: WebStyled<"cite", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
28
|
-
code: WebStyled<"code", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
29
|
-
col: WebStyled<"col", import("react").DetailedHTMLProps<import("react").ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, unknown>;
|
|
30
|
-
colgroup: WebStyled<"colgroup", import("react").DetailedHTMLProps<import("react").ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, unknown>;
|
|
31
|
-
data: WebStyled<"data", import("react").DetailedHTMLProps<import("react").DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>, unknown>;
|
|
32
|
-
datalist: WebStyled<"datalist", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>, unknown>;
|
|
33
|
-
dd: WebStyled<"dd", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
34
|
-
del: WebStyled<"del", import("react").DetailedHTMLProps<import("react").DelHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
35
|
-
details: WebStyled<"details", import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
36
|
-
dfn: WebStyled<"dfn", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
37
|
-
dialog: WebStyled<"dialog", import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, unknown>;
|
|
38
|
-
div: WebStyled<"div", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, unknown>;
|
|
39
|
-
dl: WebStyled<"dl", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDListElement>, HTMLDListElement>, unknown>;
|
|
40
|
-
dt: WebStyled<"dt", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
41
|
-
em: WebStyled<"em", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
42
|
-
embed: WebStyled<"embed", import("react").DetailedHTMLProps<import("react").EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>, unknown>;
|
|
43
|
-
fieldset: WebStyled<"fieldset", import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, unknown>;
|
|
44
|
-
figcaption: WebStyled<"figcaption", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
45
|
-
figure: WebStyled<"figure", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
46
|
-
footer: WebStyled<"footer", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
47
|
-
form: WebStyled<"form", import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, unknown>;
|
|
48
|
-
h1: WebStyled<"h1", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
49
|
-
h2: WebStyled<"h2", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
50
|
-
h3: WebStyled<"h3", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
51
|
-
h4: WebStyled<"h4", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
52
|
-
h5: WebStyled<"h5", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
53
|
-
h6: WebStyled<"h6", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, unknown>;
|
|
54
|
-
head: WebStyled<"head", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadElement>, HTMLHeadElement>, unknown>;
|
|
55
|
-
header: WebStyled<"header", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
56
|
-
hgroup: WebStyled<"hgroup", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
57
|
-
hr: WebStyled<"hr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, unknown>;
|
|
58
|
-
html: WebStyled<"html", import("react").DetailedHTMLProps<import("react").HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>, unknown>;
|
|
59
|
-
i: WebStyled<"i", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
60
|
-
iframe: WebStyled<"iframe", import("react").DetailedHTMLProps<import("react").IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, unknown>;
|
|
61
|
-
img: WebStyled<"img", import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, unknown>;
|
|
62
|
-
input: WebStyled<"input", import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, unknown>;
|
|
63
|
-
ins: WebStyled<"ins", import("react").DetailedHTMLProps<import("react").InsHTMLAttributes<HTMLModElement>, HTMLModElement>, unknown>;
|
|
64
|
-
kbd: WebStyled<"kbd", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
65
|
-
keygen: WebStyled<"keygen", import("react").DetailedHTMLProps<import("react").KeygenHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
66
|
-
label: WebStyled<"label", import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, unknown>;
|
|
67
|
-
legend: WebStyled<"legend", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, unknown>;
|
|
68
|
-
li: WebStyled<"li", import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, unknown>;
|
|
69
|
-
link: WebStyled<"link", import("react").DetailedHTMLProps<import("react").LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>, unknown>;
|
|
70
|
-
main: WebStyled<"main", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
71
|
-
map: WebStyled<"map", import("react").DetailedHTMLProps<import("react").MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>, unknown>;
|
|
72
|
-
mark: WebStyled<"mark", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
73
|
-
menu: WebStyled<"menu", import("react").DetailedHTMLProps<import("react").MenuHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
74
|
-
menuitem: WebStyled<"menuitem", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
75
|
-
meta: WebStyled<"meta", import("react").DetailedHTMLProps<import("react").MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>, unknown>;
|
|
76
|
-
meter: WebStyled<"meter", import("react").DetailedHTMLProps<import("react").MeterHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
77
|
-
nav: WebStyled<"nav", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
78
|
-
noindex: WebStyled<"noindex", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
79
|
-
noscript: WebStyled<"noscript", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
80
|
-
object: WebStyled<"object", import("react").DetailedHTMLProps<import("react").ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>, unknown>;
|
|
81
|
-
ol: WebStyled<"ol", import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, unknown>;
|
|
82
|
-
optgroup: WebStyled<"optgroup", import("react").DetailedHTMLProps<import("react").OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>, unknown>;
|
|
83
|
-
option: WebStyled<"option", import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, unknown>;
|
|
84
|
-
output: WebStyled<"output", import("react").DetailedHTMLProps<import("react").OutputHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
85
|
-
p: WebStyled<"p", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, unknown>;
|
|
86
|
-
param: WebStyled<"param", import("react").DetailedHTMLProps<import("react").ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>, unknown>;
|
|
87
|
-
picture: WebStyled<"picture", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
88
|
-
pre: WebStyled<"pre", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLPreElement>, HTMLPreElement>, unknown>;
|
|
89
|
-
progress: WebStyled<"progress", import("react").DetailedHTMLProps<import("react").ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>, unknown>;
|
|
90
|
-
q: WebStyled<"q", import("react").DetailedHTMLProps<import("react").QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, unknown>;
|
|
91
|
-
rp: WebStyled<"rp", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
92
|
-
rt: WebStyled<"rt", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
93
|
-
ruby: WebStyled<"ruby", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
94
|
-
s: WebStyled<"s", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
95
|
-
samp: WebStyled<"samp", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
96
|
-
slot: WebStyled<"slot", import("react").DetailedHTMLProps<import("react").SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>, unknown>;
|
|
97
|
-
script: WebStyled<"script", import("react").DetailedHTMLProps<import("react").ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>, unknown>;
|
|
98
|
-
section: WebStyled<"section", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
99
|
-
select: WebStyled<"select", import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, unknown>;
|
|
100
|
-
small: WebStyled<"small", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
101
|
-
source: WebStyled<"source", import("react").DetailedHTMLProps<import("react").SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>, unknown>;
|
|
102
|
-
span: WebStyled<"span", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, unknown>;
|
|
103
|
-
strong: WebStyled<"strong", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
104
|
-
style: WebStyled<"style", import("react").DetailedHTMLProps<import("react").StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>, unknown>;
|
|
105
|
-
sub: WebStyled<"sub", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
106
|
-
summary: WebStyled<"summary", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
107
|
-
sup: WebStyled<"sup", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
108
|
-
table: WebStyled<"table", import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, unknown>;
|
|
109
|
-
template: WebStyled<"template", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTemplateElement>, HTMLTemplateElement>, unknown>;
|
|
110
|
-
tbody: WebStyled<"tbody", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, unknown>;
|
|
111
|
-
td: WebStyled<"td", import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, unknown>;
|
|
112
|
-
textarea: WebStyled<"textarea", import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, unknown>;
|
|
113
|
-
tfoot: WebStyled<"tfoot", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, unknown>;
|
|
114
|
-
th: WebStyled<"th", import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, unknown>;
|
|
115
|
-
thead: WebStyled<"thead", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, unknown>;
|
|
116
|
-
time: WebStyled<"time", import("react").DetailedHTMLProps<import("react").TimeHTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
117
|
-
title: WebStyled<"title", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, unknown>;
|
|
118
|
-
tr: WebStyled<"tr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, unknown>;
|
|
119
|
-
track: WebStyled<"track", import("react").DetailedHTMLProps<import("react").TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>, unknown>;
|
|
120
|
-
u: WebStyled<"u", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
121
|
-
ul: WebStyled<"ul", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, unknown>;
|
|
122
|
-
var: WebStyled<"var", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
123
|
-
video: WebStyled<"video", import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, unknown>;
|
|
124
|
-
wbr: WebStyled<"wbr", import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, unknown>;
|
|
125
|
-
webview: WebStyled<"webview", import("react").DetailedHTMLProps<import("react").WebViewHTMLAttributes<HTMLWebViewElement>, HTMLWebViewElement>, unknown>;
|
|
126
|
-
svg: WebStyled<"svg", import("react").SVGProps<SVGSVGElement>, unknown>;
|
|
127
|
-
animate: WebStyled<"animate", import("react").SVGProps<SVGElement>, unknown>;
|
|
128
|
-
animateMotion: WebStyled<"animateMotion", import("react").SVGProps<SVGElement>, unknown>;
|
|
129
|
-
animateTransform: WebStyled<"animateTransform", import("react").SVGProps<SVGElement>, unknown>;
|
|
130
|
-
circle: WebStyled<"circle", import("react").SVGProps<SVGCircleElement>, unknown>;
|
|
131
|
-
clipPath: WebStyled<"clipPath", import("react").SVGProps<SVGClipPathElement>, unknown>;
|
|
132
|
-
defs: WebStyled<"defs", import("react").SVGProps<SVGDefsElement>, unknown>;
|
|
133
|
-
desc: WebStyled<"desc", import("react").SVGProps<SVGDescElement>, unknown>;
|
|
134
|
-
ellipse: WebStyled<"ellipse", import("react").SVGProps<SVGEllipseElement>, unknown>;
|
|
135
|
-
feBlend: WebStyled<"feBlend", import("react").SVGProps<SVGFEBlendElement>, unknown>;
|
|
136
|
-
feColorMatrix: WebStyled<"feColorMatrix", import("react").SVGProps<SVGFEColorMatrixElement>, unknown>;
|
|
137
|
-
feComponentTransfer: WebStyled<"feComponentTransfer", import("react").SVGProps<SVGFEComponentTransferElement>, unknown>;
|
|
138
|
-
feComposite: WebStyled<"feComposite", import("react").SVGProps<SVGFECompositeElement>, unknown>;
|
|
139
|
-
feConvolveMatrix: WebStyled<"feConvolveMatrix", import("react").SVGProps<SVGFEConvolveMatrixElement>, unknown>;
|
|
140
|
-
feDiffuseLighting: WebStyled<"feDiffuseLighting", import("react").SVGProps<SVGFEDiffuseLightingElement>, unknown>;
|
|
141
|
-
feDisplacementMap: WebStyled<"feDisplacementMap", import("react").SVGProps<SVGFEDisplacementMapElement>, unknown>;
|
|
142
|
-
feDistantLight: WebStyled<"feDistantLight", import("react").SVGProps<SVGFEDistantLightElement>, unknown>;
|
|
143
|
-
feDropShadow: WebStyled<"feDropShadow", import("react").SVGProps<SVGFEDropShadowElement>, unknown>;
|
|
144
|
-
feFlood: WebStyled<"feFlood", import("react").SVGProps<SVGFEFloodElement>, unknown>;
|
|
145
|
-
feFuncA: WebStyled<"feFuncA", import("react").SVGProps<SVGFEFuncAElement>, unknown>;
|
|
146
|
-
feFuncB: WebStyled<"feFuncB", import("react").SVGProps<SVGFEFuncBElement>, unknown>;
|
|
147
|
-
feFuncG: WebStyled<"feFuncG", import("react").SVGProps<SVGFEFuncGElement>, unknown>;
|
|
148
|
-
feFuncR: WebStyled<"feFuncR", import("react").SVGProps<SVGFEFuncRElement>, unknown>;
|
|
149
|
-
feGaussianBlur: WebStyled<"feGaussianBlur", import("react").SVGProps<SVGFEGaussianBlurElement>, unknown>;
|
|
150
|
-
feImage: WebStyled<"feImage", import("react").SVGProps<SVGFEImageElement>, unknown>;
|
|
151
|
-
feMerge: WebStyled<"feMerge", import("react").SVGProps<SVGFEMergeElement>, unknown>;
|
|
152
|
-
feMergeNode: WebStyled<"feMergeNode", import("react").SVGProps<SVGFEMergeNodeElement>, unknown>;
|
|
153
|
-
feMorphology: WebStyled<"feMorphology", import("react").SVGProps<SVGFEMorphologyElement>, unknown>;
|
|
154
|
-
feOffset: WebStyled<"feOffset", import("react").SVGProps<SVGFEOffsetElement>, unknown>;
|
|
155
|
-
fePointLight: WebStyled<"fePointLight", import("react").SVGProps<SVGFEPointLightElement>, unknown>;
|
|
156
|
-
feSpecularLighting: WebStyled<"feSpecularLighting", import("react").SVGProps<SVGFESpecularLightingElement>, unknown>;
|
|
157
|
-
feSpotLight: WebStyled<"feSpotLight", import("react").SVGProps<SVGFESpotLightElement>, unknown>;
|
|
158
|
-
feTile: WebStyled<"feTile", import("react").SVGProps<SVGFETileElement>, unknown>;
|
|
159
|
-
feTurbulence: WebStyled<"feTurbulence", import("react").SVGProps<SVGFETurbulenceElement>, unknown>;
|
|
160
|
-
filter: WebStyled<"filter", import("react").SVGProps<SVGFilterElement>, unknown>;
|
|
161
|
-
foreignObject: WebStyled<"foreignObject", import("react").SVGProps<SVGForeignObjectElement>, unknown>;
|
|
162
|
-
g: WebStyled<"g", import("react").SVGProps<SVGGElement>, unknown>;
|
|
163
|
-
image: WebStyled<"image", import("react").SVGProps<SVGImageElement>, unknown>;
|
|
164
|
-
line: WebStyled<"line", import("react").SVGProps<SVGLineElement>, unknown>;
|
|
165
|
-
linearGradient: WebStyled<"linearGradient", import("react").SVGProps<SVGLinearGradientElement>, unknown>;
|
|
166
|
-
marker: WebStyled<"marker", import("react").SVGProps<SVGMarkerElement>, unknown>;
|
|
167
|
-
mask: WebStyled<"mask", import("react").SVGProps<SVGMaskElement>, unknown>;
|
|
168
|
-
metadata: WebStyled<"metadata", import("react").SVGProps<SVGMetadataElement>, unknown>;
|
|
169
|
-
mpath: WebStyled<"mpath", import("react").SVGProps<SVGElement>, unknown>;
|
|
170
|
-
path: WebStyled<"path", import("react").SVGProps<SVGPathElement>, unknown>;
|
|
171
|
-
pattern: WebStyled<"pattern", import("react").SVGProps<SVGPatternElement>, unknown>;
|
|
172
|
-
polygon: WebStyled<"polygon", import("react").SVGProps<SVGPolygonElement>, unknown>;
|
|
173
|
-
polyline: WebStyled<"polyline", import("react").SVGProps<SVGPolylineElement>, unknown>;
|
|
174
|
-
radialGradient: WebStyled<"radialGradient", import("react").SVGProps<SVGRadialGradientElement>, unknown>;
|
|
175
|
-
rect: WebStyled<"rect", import("react").SVGProps<SVGRectElement>, unknown>;
|
|
176
|
-
stop: WebStyled<"stop", import("react").SVGProps<SVGStopElement>, unknown>;
|
|
177
|
-
switch: WebStyled<"switch", import("react").SVGProps<SVGSwitchElement>, unknown>;
|
|
178
|
-
symbol: WebStyled<"symbol", import("react").SVGProps<SVGSymbolElement>, unknown>;
|
|
179
|
-
text: WebStyled<"text", import("react").SVGProps<SVGTextElement>, unknown>;
|
|
180
|
-
textPath: WebStyled<"textPath", import("react").SVGProps<SVGTextPathElement>, unknown>;
|
|
181
|
-
tspan: WebStyled<"tspan", import("react").SVGProps<SVGTSpanElement>, unknown>;
|
|
182
|
-
use: WebStyled<"use", import("react").SVGProps<SVGUseElement>, unknown>;
|
|
183
|
-
view: WebStyled<"view", import("react").SVGProps<SVGViewElement>, unknown>;
|
|
184
|
-
};
|
|
185
|
-
export default styled;
|
|
186
|
-
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../src/constructors/styled.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAA6B,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKzE,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEX,CAAC;AAQF,eAAe,MAAM,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AnyComponent, ExecutionContext } from '../types';
|
|
3
|
-
export default function withTheme<T extends AnyComponent>(Component: T): React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<T, ExecutionContext>> & React.RefAttributes<T>> & { [key in Exclude<keyof T, T extends React.MemoExoticComponent<any> ? "propTypes" | "type" | "defaultProps" | "displayName" | "$$typeof" | "compare" : T extends React.ForwardRefExoticComponent<any> ? "propTypes" | "defaultProps" | "displayName" | "$$typeof" | "render" : "length" | "propTypes" | "type" | "contextType" | "contextTypes" | "childContextTypes" | "defaultProps" | "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromError" | "getDefaultProps" | "mixins" | "name" | "prototype" | "caller" | "callee" | "arguments" | "arity">]: T[key]; };
|
|
4
|
-
//# sourceMappingURL=withTheme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withTheme.d.ts","sourceRoot":"","sources":["../../src/hoc/withTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK1D,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,SAAS,YAAY,EAAE,SAAS,EAAE,CAAC,0rBAsBrE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withTheme.spec.d.ts","sourceRoot":"","sources":["../../src/hoc/withTheme.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAgB,MAAM,yBAAyB,CAAC;AAErE,QAAA,MAAM,QAAQ,QAAO,YAAY,GAAG,SAAqC,CAAC;AAE1E,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-standalone.d.ts","sourceRoot":"","sources":["../src/index-standalone.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAW3C,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/macro/index.ts"],"names":[],"mappings":";AA+CA,wBAEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=babel.config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"babel.config.d.ts","sourceRoot":"","sources":["../../../src/macro/test/babel.config.ts"],"names":[],"mappings":""}
|