styled-components 6.0.0-beta.8 → 6.0.0-rc.0
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 +2 -8
- package/dist/constructors/constructWithOptions.d.ts +10 -7
- package/dist/constructors/styled.d.ts +176 -176
- package/dist/hoc/withTheme.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/models/ComponentStyle.d.ts +0 -1
- package/dist/models/StyleSheetManager.d.ts +27 -9
- package/dist/models/ThemeProvider.d.ts +4 -3
- package/dist/native/index.d.ts +26 -27
- package/dist/sheet/GroupedTag.d.ts +1 -1
- package/dist/sheet/Sheet.d.ts +3 -3
- package/dist/sheet/types.d.ts +1 -1
- package/dist/styled-components-macro.cjs.js +5 -6
- package/dist/styled-components-macro.cjs.js.map +1 -1
- package/dist/styled-components-macro.esm.js +0 -1
- package/dist/styled-components-macro.esm.js.map +1 -1
- package/dist/styled-components.browser.cjs.js +1 -1844
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +1 -1818
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +1 -1864
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +1 -1838
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +269 -249
- 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/types.d.ts +9 -0
- package/dist/test/utils.d.ts +176 -176
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +34 -41
- package/dist/utils/determineTheme.d.ts +4 -2
- package/dist/utils/domElements.d.ts +1 -1
- package/dist/utils/flatten.d.ts +1 -1
- package/dist/utils/hoist.d.ts +3 -3
- package/dist/utils/isFunction.d.ts +1 -1
- package/dist/utils/isPlainObject.d.ts +1 -1
- package/dist/utils/isStatelessFunction.d.ts +1 -1
- package/dist/utils/joinStrings.d.ts +2 -1
- package/dist/utils/stylis.d.ts +1 -1
- package/native/dist/base.d.ts +2 -8
- package/native/dist/constructors/constructWithOptions.d.ts +10 -7
- package/native/dist/constructors/styled.d.ts +176 -176
- package/native/dist/hoc/withTheme.d.ts +1 -1
- package/native/dist/index.d.ts +1 -1
- package/native/dist/models/ComponentStyle.d.ts +0 -1
- package/native/dist/models/StyleSheetManager.d.ts +27 -9
- package/native/dist/models/ThemeProvider.d.ts +4 -3
- package/native/dist/native/index.d.ts +26 -27
- package/native/dist/sheet/GroupedTag.d.ts +1 -1
- package/native/dist/sheet/Sheet.d.ts +3 -3
- package/native/dist/sheet/types.d.ts +1 -1
- package/native/dist/styled-components.native.cjs.js +1 -1305
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +1 -1287
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/native/dist/test/types.d.ts +9 -0
- package/native/dist/test/utils.d.ts +176 -176
- package/native/dist/types.d.ts +34 -41
- package/native/dist/utils/determineTheme.d.ts +4 -2
- package/native/dist/utils/domElements.d.ts +1 -1
- package/native/dist/utils/flatten.d.ts +1 -1
- package/native/dist/utils/hoist.d.ts +3 -3
- package/native/dist/utils/isFunction.d.ts +1 -1
- package/native/dist/utils/isPlainObject.d.ts +1 -1
- package/native/dist/utils/isStatelessFunction.d.ts +1 -1
- package/native/dist/utils/joinStrings.d.ts +2 -1
- package/native/dist/utils/stylis.d.ts +1 -1
- package/package.json +22 -34
- package/dist/hooks/useTheme.d.ts +0 -3
package/native/dist/types.d.ts
CHANGED
|
@@ -6,23 +6,24 @@ interface ExoticComponentWithDisplayName<P = any> extends React.ExoticComponent<
|
|
|
6
6
|
defaultProps?: Partial<P>;
|
|
7
7
|
displayName?: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type OmitNever<T> = {
|
|
10
10
|
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type Runtime = 'web' | 'native';
|
|
13
13
|
export { DefaultTheme };
|
|
14
|
-
export
|
|
14
|
+
export type AnyComponent<P = any> = ExoticComponentWithDisplayName<P> | React.ComponentType<P>;
|
|
15
|
+
export type KnownTarget = keyof JSX.IntrinsicElements | AnyComponent;
|
|
16
|
+
export type WebTarget = string | KnownTarget;
|
|
17
|
+
export type NativeTarget = AnyComponent;
|
|
18
|
+
export type StyledTarget<R extends Runtime> = R extends 'web' ? WebTarget : NativeTarget;
|
|
15
19
|
export interface StyledOptions<R extends Runtime, Props extends object> {
|
|
16
|
-
attrs?:
|
|
20
|
+
attrs?: Attrs<Props>[];
|
|
17
21
|
componentId?: R extends 'web' ? string : never;
|
|
18
22
|
displayName?: string;
|
|
19
23
|
parentComponentId?: R extends 'web' ? string : never;
|
|
20
24
|
shouldForwardProp?: ShouldForwardProp<R>;
|
|
21
25
|
}
|
|
22
|
-
export
|
|
23
|
-
export declare type WebTarget = string | KnownTarget;
|
|
24
|
-
export declare type NativeTarget = AnyComponent;
|
|
25
|
-
export declare type Dict<T> = {
|
|
26
|
+
export type Dict<T> = {
|
|
26
27
|
[key: string]: T;
|
|
27
28
|
};
|
|
28
29
|
export interface ExecutionProps {
|
|
@@ -47,14 +48,13 @@ export interface ExecutionContext extends ExecutionProps {
|
|
|
47
48
|
theme: DefaultTheme;
|
|
48
49
|
}
|
|
49
50
|
export interface StyleFunction<Props extends object> {
|
|
50
|
-
(executionContext: Omit<
|
|
51
|
-
}
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export declare type NameGenerator = (hash: number) => string;
|
|
51
|
+
(executionContext: ExecutionContext & Omit<Props, keyof ExecutionContext>): Interpolation<Props>;
|
|
52
|
+
}
|
|
53
|
+
export type Interpolation<Props extends object> = StyleFunction<Props> | StyledObject<Props> | TemplateStringsArray | string | number | false | undefined | null | Keyframes | IStyledComponent<'web', any, any> | Interpolation<Props>[];
|
|
54
|
+
export type Attrs<Props extends object = object> = (ExecutionProps & Props) | ((props: ExecutionContext & Props) => Partial<Props>);
|
|
55
|
+
export type RuleSet<Props extends object> = Interpolation<Props>[];
|
|
56
|
+
export type Styles<Props extends object> = TemplateStringsArray | StyledObject<Props> | StyleFunction<Props>;
|
|
57
|
+
export type NameGenerator = (hash: number) => string;
|
|
58
58
|
export interface StyleSheet {
|
|
59
59
|
create: Function;
|
|
60
60
|
}
|
|
@@ -66,7 +66,7 @@ export interface Keyframes {
|
|
|
66
66
|
export interface Flattener<Props extends object> {
|
|
67
67
|
(chunks: Interpolation<Props>[], executionContext: Object | null | undefined, styleSheet: Object | null | undefined): Interpolation<Props>[];
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type FlattenerResult<Props extends object> = RuleSet<Props> | number | string | string[] | IStyledComponent<'web', any, any> | Keyframes;
|
|
70
70
|
export interface Stringifier {
|
|
71
71
|
(css: string, selector?: string, prefix?: string, componentId?: string): string[];
|
|
72
72
|
hash: string;
|
|
@@ -75,13 +75,13 @@ export interface ShouldForwardProp<R extends Runtime> {
|
|
|
75
75
|
(prop: string, elementToBeCreated: StyledTarget<R>): boolean;
|
|
76
76
|
}
|
|
77
77
|
export interface CommonStatics<R extends Runtime, Props extends object> {
|
|
78
|
-
attrs:
|
|
78
|
+
attrs: Attrs<Props>[];
|
|
79
79
|
target: StyledTarget<R>;
|
|
80
80
|
shouldForwardProp?: ShouldForwardProp<R>;
|
|
81
81
|
}
|
|
82
82
|
export interface IStyledStatics<R extends Runtime, OuterProps extends object> extends CommonStatics<R, OuterProps> {
|
|
83
83
|
componentStyle: R extends 'web' ? ComponentStyle : never;
|
|
84
|
-
foldedComponentIds: R extends 'web' ?
|
|
84
|
+
foldedComponentIds: R extends 'web' ? string : never;
|
|
85
85
|
inlineStyle: R extends 'native' ? InstanceType<IInlineStyleConstructor<OuterProps>> : never;
|
|
86
86
|
target: StyledTarget<R>;
|
|
87
87
|
styledComponentId: R extends 'web' ? string : never;
|
|
@@ -90,24 +90,19 @@ export interface IStyledStatics<R extends Runtime, OuterProps extends object> ex
|
|
|
90
90
|
/**
|
|
91
91
|
* Used by PolymorphicComponent to define prop override cascading order.
|
|
92
92
|
*/
|
|
93
|
-
export
|
|
93
|
+
export type PolymorphicComponentProps<R extends Runtime, E extends StyledTarget<R>, P extends object> = Omit<E extends KnownTarget ? P & Omit<React.ComponentPropsWithRef<E>, keyof P> : P, 'as' | 'theme'> & {
|
|
94
94
|
as?: P extends {
|
|
95
95
|
as?: string | AnyComponent;
|
|
96
96
|
} ? P['as'] : E;
|
|
97
97
|
theme?: DefaultTheme;
|
|
98
98
|
};
|
|
99
|
-
/**
|
|
100
|
-
* Remove the function call signature, keeping the additional properties.
|
|
101
|
-
* https://stackoverflow.com/a/62502740/347386
|
|
102
|
-
*/
|
|
103
|
-
declare type OmitSignatures<T> = Pick<T, keyof T>;
|
|
104
99
|
/**
|
|
105
100
|
* This type forms the signature for a forwardRef-enabled component that accepts
|
|
106
101
|
* the "as" prop to dynamically change the underlying rendered JSX. The interface will
|
|
107
102
|
* automatically attempt to extract props from the given rendering target to
|
|
108
103
|
* get proper typing for any specialized props in the target component.
|
|
109
104
|
*/
|
|
110
|
-
export interface PolymorphicComponent<R extends Runtime, P extends object, FallbackComponent extends StyledTarget<R>> extends
|
|
105
|
+
export interface PolymorphicComponent<R extends Runtime, P extends object, FallbackComponent extends StyledTarget<R>> extends React.ForwardRefExoticComponent<P> {
|
|
111
106
|
<E extends StyledTarget<R> = FallbackComponent>(props: PolymorphicComponentProps<R, E, P>): React.ReactElement | null;
|
|
112
107
|
}
|
|
113
108
|
export interface IStyledComponent<R extends Runtime, Target extends StyledTarget<R>, Props extends object> extends PolymorphicComponent<R, Props, Target>, IStyledStatics<R, Props> {
|
|
@@ -115,7 +110,7 @@ export interface IStyledComponent<R extends Runtime, Target extends StyledTarget
|
|
|
115
110
|
toString: () => string;
|
|
116
111
|
}
|
|
117
112
|
export interface IStyledComponentFactory<R extends Runtime, Target extends StyledTarget<R>, OuterProps extends object, OuterStatics extends object = object> {
|
|
118
|
-
<Props extends object = object, Statics extends object = object>(target: Target, options: StyledOptions<R, OuterProps>, rules: RuleSet<OuterProps & Props>): IStyledComponent<R, Target, OuterProps & Props> & OuterStatics & Statics;
|
|
113
|
+
<Props extends object = object, Statics extends object = object>(target: Target, options: StyledOptions<R, OuterProps & Props>, rules: RuleSet<OuterProps & Props>): IStyledComponent<R, Target, OuterProps & Props> & OuterStatics & Statics;
|
|
119
114
|
}
|
|
120
115
|
export interface IInlineStyleConstructor<Props extends object> {
|
|
121
116
|
new (rules: RuleSet<Props>): IInlineStyle<Props>;
|
|
@@ -124,30 +119,28 @@ export interface IInlineStyle<Props extends object> {
|
|
|
124
119
|
rules: RuleSet<Props>;
|
|
125
120
|
generateStyleObject(executionContext: Object): Object;
|
|
126
121
|
}
|
|
127
|
-
export declare type StyledTarget<R extends Runtime> = R extends 'web' ? WebTarget : NativeTarget;
|
|
128
122
|
export interface StyledObject<Props extends object> {
|
|
129
123
|
[key: string]: Dict<any> | string | number | StyleFunction<Props> | StyledObject<Props>;
|
|
130
124
|
}
|
|
131
125
|
/**
|
|
132
|
-
*
|
|
126
|
+
* The `css` prop is not declared by default in the types as it would cause `css` to be present
|
|
127
|
+
* on the types of anything that uses styled-components indirectly, even if they do not use the
|
|
128
|
+
* babel plugin.
|
|
133
129
|
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* // if it isn't being picked up, check tsconfig compilerOptions.types
|
|
137
|
-
* import type { CSSProp } from "styled-components";
|
|
138
|
-
* import Theme from './theme';
|
|
130
|
+
* To enable support for the `css` prop in TypeScript, create a `styled-components.d.ts` file in
|
|
131
|
+
* your project source with the following contents:
|
|
139
132
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* declare module "styled-components" {
|
|
143
|
-
* export interface DefaultTheme extends ThemeType {}
|
|
144
|
-
* }
|
|
133
|
+
* ```ts
|
|
134
|
+
* import type { CSSProp } from "styled-components";
|
|
145
135
|
*
|
|
146
136
|
* declare module "react" {
|
|
147
|
-
* interface
|
|
137
|
+
* interface Attributes {
|
|
148
138
|
* css?: CSSProp;
|
|
149
139
|
* }
|
|
150
140
|
* }
|
|
151
141
|
* ```
|
|
142
|
+
*
|
|
143
|
+
* In order to get accurate typings for `props.theme` in `css` interpolations, see
|
|
144
|
+
* {@link DefaultTheme}.
|
|
152
145
|
*/
|
|
153
|
-
export
|
|
146
|
+
export type CSSProp = RuleSet<any>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { ExecutionProps } from '../types';
|
|
2
|
-
export default function determineTheme(props: ExecutionProps, providedTheme
|
|
1
|
+
import { DefaultTheme, ExecutionProps } from '../types';
|
|
2
|
+
export default function determineTheme(props: ExecutionProps, providedTheme?: DefaultTheme, defaultProps?: {
|
|
3
|
+
theme?: DefaultTheme;
|
|
4
|
+
}): DefaultTheme | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: Set<"object" | "g" | "big" | "link" | "small" | "sub" | "sup" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "summary" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "svg" | "circle" | "clipPath" | "defs" | "ellipse" | "foreignObject" | "image" | "line" | "linearGradient" | "marker" | "mask" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "text" | "tspan" | "use">;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import StyleSheet from '../sheet';
|
|
2
2
|
import { Dict, ExecutionContext, Interpolation, RuleSet, Stringifier } from '../types';
|
|
3
|
-
export declare const objToCssArray: (obj: Dict<any
|
|
3
|
+
export declare const objToCssArray: (obj: Dict<any>) => string[];
|
|
4
4
|
export default function flatten<Props extends object>(chunk: Interpolation<Props>, executionContext?: ExecutionContext & Props, styleSheet?: StyleSheet, stylisInstance?: Stringifier): RuleSet<Props>;
|
|
@@ -40,11 +40,11 @@ declare const MEMO_STATICS: {
|
|
|
40
40
|
propTypes: boolean;
|
|
41
41
|
type: boolean;
|
|
42
42
|
};
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
type OmniComponent = AnyComponent;
|
|
44
|
+
type ExcludeList = {
|
|
45
45
|
[key: string]: true;
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
type NonReactStatics<S extends OmniComponent, C extends ExcludeList = {}> = {
|
|
48
48
|
[key in Exclude<keyof S, S extends React.MemoExoticComponent<any> ? keyof typeof MEMO_STATICS | keyof C : S extends React.ForwardRefExoticComponent<any> ? keyof typeof FORWARD_REF_STATICS | keyof C : keyof typeof REACT_STATICS | keyof typeof KNOWN_STATICS | keyof C>]: S[key];
|
|
49
49
|
};
|
|
50
50
|
export default function hoistNonReactStatics<T extends OmniComponent, S extends OmniComponent, C extends ExcludeList = {}>(targetComponent: T, sourceComponent: S, excludelist?: C): T & NonReactStatics<S, C>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isFunction(test: any):
|
|
1
|
+
export default function isFunction(test: any): test is Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isPlainObject(x: any):
|
|
1
|
+
export default function isPlainObject(x: any): x is Record<any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isStatelessFunction(test: any):
|
|
1
|
+
export default function isStatelessFunction(test: any): test is Function;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Convenience function for joining strings to form className chains
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export declare function joinStrings(a?: string, b?: string): string;
|
|
5
|
+
export declare function joinStringArray(arr: string[], sep?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styled-components",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-rc.0",
|
|
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",
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
"./dist/styled-components.esm.js": "./dist/styled-components.browser.esm.js",
|
|
11
11
|
"./dist/styled-components.cjs.js": "./dist/styled-components.browser.cjs.js"
|
|
12
12
|
},
|
|
13
|
-
"sideEffects":
|
|
14
|
-
"./src/base.js"
|
|
15
|
-
],
|
|
13
|
+
"sideEffects": false,
|
|
16
14
|
"scripts": {
|
|
17
15
|
"generateErrors": "node scripts/generateErrorMap.js",
|
|
18
16
|
"prebuild": "rimraf dist && yarn generateErrors",
|
|
@@ -23,8 +21,6 @@
|
|
|
23
21
|
"test:web": "jest -c jest.config.main.js",
|
|
24
22
|
"test:native": "jest -c jest.config.native.js --forceExit",
|
|
25
23
|
"test:integration": "jest -c jest.config.integration.js --runInBand --forceExit",
|
|
26
|
-
"format": "eslint ./**/*.js --fix",
|
|
27
|
-
"lint": "eslint src",
|
|
28
24
|
"lint:size": "bundlewatch",
|
|
29
25
|
"prettier": "prettier src/** --write",
|
|
30
26
|
"prepublishOnly": "cp ../../README.md . && yarn build"
|
|
@@ -34,10 +30,8 @@
|
|
|
34
30
|
"url": "git+https://github.com/styled-components/styled-components.git"
|
|
35
31
|
},
|
|
36
32
|
"files": [
|
|
37
|
-
"CHANGELOG.md",
|
|
38
|
-
"CODE_OF_CONDUCT.md",
|
|
39
|
-
"CONTRIBUTING.md",
|
|
40
33
|
"LICENSE",
|
|
34
|
+
"README.md",
|
|
41
35
|
"dist",
|
|
42
36
|
"native",
|
|
43
37
|
"test-utils",
|
|
@@ -59,20 +53,21 @@
|
|
|
59
53
|
},
|
|
60
54
|
"homepage": "https://styled-components.com",
|
|
61
55
|
"dependencies": {
|
|
62
|
-
"@babel/cli": "^7.
|
|
63
|
-
"@babel/core": "^7.
|
|
56
|
+
"@babel/cli": "^7.21.0",
|
|
57
|
+
"@babel/core": "^7.21.0",
|
|
64
58
|
"@babel/helper-module-imports": "^7.18.6",
|
|
65
59
|
"@babel/plugin-external-helpers": "^7.18.6",
|
|
66
60
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
67
61
|
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
68
62
|
"@babel/preset-env": "^7.20.2",
|
|
69
63
|
"@babel/preset-react": "^7.18.6",
|
|
70
|
-
"@babel/preset-typescript": "^7.
|
|
71
|
-
"@babel/traverse": "^7.
|
|
64
|
+
"@babel/preset-typescript": "^7.21.0",
|
|
65
|
+
"@babel/traverse": "^7.21.2",
|
|
72
66
|
"@emotion/unitless": "^0.8.0",
|
|
73
|
-
"css-to-react-native": "^3.
|
|
67
|
+
"css-to-react-native": "^3.2.0",
|
|
74
68
|
"shallowequal": "^1.1.0",
|
|
75
|
-
"stylis": "^4.1.
|
|
69
|
+
"stylis": "^4.1.4",
|
|
70
|
+
"tslib": "^2.5.0"
|
|
76
71
|
},
|
|
77
72
|
"peerDependencies": {
|
|
78
73
|
"babel-plugin-styled-components": ">= 2",
|
|
@@ -85,13 +80,13 @@
|
|
|
85
80
|
}
|
|
86
81
|
},
|
|
87
82
|
"devDependencies": {
|
|
88
|
-
"@babel/plugin-transform-flow-strip-types": "^7.
|
|
89
|
-
"@rollup/plugin-typescript": "^
|
|
83
|
+
"@babel/plugin-transform-flow-strip-types": "^7.21.0",
|
|
84
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
90
85
|
"@types/babel-plugin-macros": "^2.8.4",
|
|
91
86
|
"@types/enzyme": "^3.10.12",
|
|
92
|
-
"@types/jest": "^29.
|
|
87
|
+
"@types/jest": "^29.4.0",
|
|
93
88
|
"@types/js-beautify": "^1.13.1",
|
|
94
|
-
"@types/node": "^18.
|
|
89
|
+
"@types/node": "^18.14.2",
|
|
95
90
|
"@types/react": "^17.0.22",
|
|
96
91
|
"@types/react-dom": "^17.0.9",
|
|
97
92
|
"@types/react-frame-component": "^4.1.3",
|
|
@@ -99,33 +94,26 @@
|
|
|
99
94
|
"@types/react-test-renderer": "^17.0.1",
|
|
100
95
|
"@types/shallowequal": "^1.1.1",
|
|
101
96
|
"@types/stylis": "^4.0.2",
|
|
102
|
-
"
|
|
103
|
-
"@typescript-eslint/parser": "^5.47.0",
|
|
104
|
-
"babel-eslint": "^10.0.1",
|
|
105
|
-
"babel-jest": "^29.3.1",
|
|
97
|
+
"babel-jest": "^29.4.3",
|
|
106
98
|
"babel-plugin-add-module-exports": "^1.0.4",
|
|
107
99
|
"babel-plugin-macros": "^3.1.0",
|
|
108
100
|
"babel-plugin-styled-components": "^2.0.7",
|
|
109
101
|
"babel-plugin-tester": "^10.0.0",
|
|
110
102
|
"bundlewatch": "^0.3.3",
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"eslint-plugin-react": "^7.31.11",
|
|
115
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
116
|
-
"jest": "^29.3.1",
|
|
117
|
-
"jest-environment-jsdom": "^29.3.1",
|
|
103
|
+
"csstype": "^3.1.2",
|
|
104
|
+
"jest": "^29.4.3",
|
|
105
|
+
"jest-environment-jsdom": "^29.4.3",
|
|
118
106
|
"jest-serializer-html": "^7.0.0",
|
|
119
|
-
"jest-watch-typeahead": "^2.
|
|
107
|
+
"jest-watch-typeahead": "^2.2.2",
|
|
120
108
|
"js-beautify": "^1.14.7",
|
|
121
|
-
"prettier": "^2.8.
|
|
109
|
+
"prettier": "^2.8.4",
|
|
122
110
|
"prop-types": "^15.8.1",
|
|
123
111
|
"react": "^17.0.2",
|
|
124
112
|
"react-dom": "^17.0.2",
|
|
125
113
|
"react-frame-component": "^4.0.2",
|
|
126
114
|
"react-native": "^0.70.6",
|
|
127
115
|
"react-test-renderer": "^17.0.2",
|
|
128
|
-
"rollup": "^
|
|
116
|
+
"rollup": "^3.18.0",
|
|
129
117
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
130
118
|
"rollup-plugin-json": "^4.0.0",
|
|
131
119
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
@@ -133,7 +121,7 @@
|
|
|
133
121
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
134
122
|
"rollup-plugin-terser": "^7.0.2",
|
|
135
123
|
"stylis-plugin-rtl": "^2.1.1",
|
|
136
|
-
"typescript": "^4.
|
|
124
|
+
"typescript": "^4.9.5",
|
|
137
125
|
"utility-types": "^3.10.0"
|
|
138
126
|
},
|
|
139
127
|
"bundlewatch": {
|
package/dist/hooks/useTheme.d.ts
DELETED