styled-components 6.0.0-beta.9 → 6.0.0-rc.1

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.
Files changed (67) hide show
  1. package/dist/base.d.ts +2 -8
  2. package/dist/constructors/constructWithOptions.d.ts +6 -6
  3. package/dist/hoc/withTheme.d.ts +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/models/ComponentStyle.d.ts +0 -1
  6. package/dist/models/StyleSheetManager.d.ts +27 -9
  7. package/dist/models/ThemeProvider.d.ts +4 -3
  8. package/dist/native/index.d.ts +25 -26
  9. package/dist/sheet/GroupedTag.d.ts +1 -1
  10. package/dist/sheet/Sheet.d.ts +3 -3
  11. package/dist/sheet/types.d.ts +1 -1
  12. package/dist/styled-components-macro.cjs.js +0 -1
  13. package/dist/styled-components-macro.cjs.js.map +1 -1
  14. package/dist/styled-components-macro.esm.js +0 -1
  15. package/dist/styled-components-macro.esm.js.map +1 -1
  16. package/dist/styled-components.browser.cjs.js +1 -1845
  17. package/dist/styled-components.browser.cjs.js.map +1 -1
  18. package/dist/styled-components.browser.esm.js +1 -1819
  19. package/dist/styled-components.browser.esm.js.map +1 -1
  20. package/dist/styled-components.cjs.js +1 -1865
  21. package/dist/styled-components.cjs.js.map +1 -1
  22. package/dist/styled-components.esm.js +1 -1839
  23. package/dist/styled-components.esm.js.map +1 -1
  24. package/dist/styled-components.js +258 -235
  25. package/dist/styled-components.js.map +1 -1
  26. package/dist/styled-components.min.js +1 -1
  27. package/dist/styled-components.min.js.map +1 -1
  28. package/dist/test/types.d.ts +9 -0
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/dist/types.d.ts +34 -41
  31. package/dist/utils/determineTheme.d.ts +4 -2
  32. package/dist/utils/domElements.d.ts +1 -1
  33. package/dist/utils/flatten.d.ts +1 -1
  34. package/dist/utils/hoist.d.ts +3 -3
  35. package/dist/utils/isFunction.d.ts +1 -1
  36. package/dist/utils/isPlainObject.d.ts +1 -1
  37. package/dist/utils/isStatelessFunction.d.ts +1 -1
  38. package/dist/utils/joinStrings.d.ts +2 -1
  39. package/dist/utils/stylis.d.ts +1 -1
  40. package/native/dist/base.d.ts +2 -8
  41. package/native/dist/constructors/constructWithOptions.d.ts +6 -6
  42. package/native/dist/hoc/withTheme.d.ts +1 -1
  43. package/native/dist/index.d.ts +1 -1
  44. package/native/dist/models/ComponentStyle.d.ts +0 -1
  45. package/native/dist/models/StyleSheetManager.d.ts +27 -9
  46. package/native/dist/models/ThemeProvider.d.ts +4 -3
  47. package/native/dist/native/index.d.ts +25 -26
  48. package/native/dist/sheet/GroupedTag.d.ts +1 -1
  49. package/native/dist/sheet/Sheet.d.ts +3 -3
  50. package/native/dist/sheet/types.d.ts +1 -1
  51. package/native/dist/styled-components.native.cjs.js +1 -1305
  52. package/native/dist/styled-components.native.cjs.js.map +1 -1
  53. package/native/dist/styled-components.native.esm.js +1 -1287
  54. package/native/dist/styled-components.native.esm.js.map +1 -1
  55. package/native/dist/test/types.d.ts +9 -0
  56. package/native/dist/types.d.ts +34 -41
  57. package/native/dist/utils/determineTheme.d.ts +4 -2
  58. package/native/dist/utils/domElements.d.ts +1 -1
  59. package/native/dist/utils/flatten.d.ts +1 -1
  60. package/native/dist/utils/hoist.d.ts +3 -3
  61. package/native/dist/utils/isFunction.d.ts +1 -1
  62. package/native/dist/utils/isPlainObject.d.ts +1 -1
  63. package/native/dist/utils/isStatelessFunction.d.ts +1 -1
  64. package/native/dist/utils/joinStrings.d.ts +2 -1
  65. package/native/dist/utils/stylis.d.ts +1 -1
  66. package/package.json +23 -48
  67. package/dist/hooks/useTheme.d.ts +0 -3
@@ -6,24 +6,24 @@ interface ExoticComponentWithDisplayName<P = any> extends React.ExoticComponent<
6
6
  defaultProps?: Partial<P>;
7
7
  displayName?: string;
8
8
  }
9
- export declare type OmitNever<T> = {
9
+ export type OmitNever<T> = {
10
10
  [K in keyof T as T[K] extends never ? never : K]: T[K];
11
11
  };
12
- export declare type Runtime = 'web' | 'native';
12
+ export type Runtime = 'web' | 'native';
13
13
  export { DefaultTheme };
14
- export declare type AnyComponent<P = any> = ExoticComponentWithDisplayName<P> | React.ComponentType<P>;
15
- export declare type KnownTarget = keyof JSX.IntrinsicElements | AnyComponent;
16
- export declare type WebTarget = string | KnownTarget;
17
- export declare type NativeTarget = AnyComponent;
18
- export declare type StyledTarget<R extends Runtime> = R extends 'web' ? WebTarget : NativeTarget;
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;
19
19
  export interface StyledOptions<R extends Runtime, Props extends object> {
20
- attrs?: AttrsArg<Props>[];
20
+ attrs?: Attrs<Props>[];
21
21
  componentId?: R extends 'web' ? string : never;
22
22
  displayName?: string;
23
23
  parentComponentId?: R extends 'web' ? string : never;
24
24
  shouldForwardProp?: ShouldForwardProp<R>;
25
25
  }
26
- export declare type Dict<T> = {
26
+ export type Dict<T> = {
27
27
  [key: string]: T;
28
28
  };
29
29
  export interface ExecutionProps {
@@ -48,14 +48,13 @@ export interface ExecutionContext extends ExecutionProps {
48
48
  theme: DefaultTheme;
49
49
  }
50
50
  export interface StyleFunction<Props extends object> {
51
- (executionContext: Omit<ExecutionContext, keyof Props> & Props): Interpolation<Props>;
52
- }
53
- 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>[];
54
- export declare type AttrsArg<Props extends object> = (Omit<ExecutionProps, keyof Props> & Props) | ((props: Omit<ExecutionContext, keyof Props> & Props) => Partial<Props>);
55
- export declare type Attrs = object | ((...args: any) => object);
56
- export declare type RuleSet<Props extends object> = Interpolation<Props>[];
57
- export declare type Styles<Props extends object> = TemplateStringsArray | StyledObject<Props> | StyleFunction<Props>;
58
- 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;
59
58
  export interface StyleSheet {
60
59
  create: Function;
61
60
  }
@@ -67,7 +66,7 @@ export interface Keyframes {
67
66
  export interface Flattener<Props extends object> {
68
67
  (chunks: Interpolation<Props>[], executionContext: Object | null | undefined, styleSheet: Object | null | undefined): Interpolation<Props>[];
69
68
  }
70
- export declare type FlattenerResult<Props extends object> = RuleSet<Props> | number | string | string[] | IStyledComponent<'web', any, any> | Keyframes;
69
+ export type FlattenerResult<Props extends object> = RuleSet<Props> | number | string | string[] | IStyledComponent<'web', any, any> | Keyframes;
71
70
  export interface Stringifier {
72
71
  (css: string, selector?: string, prefix?: string, componentId?: string): string[];
73
72
  hash: string;
@@ -76,13 +75,13 @@ export interface ShouldForwardProp<R extends Runtime> {
76
75
  (prop: string, elementToBeCreated: StyledTarget<R>): boolean;
77
76
  }
78
77
  export interface CommonStatics<R extends Runtime, Props extends object> {
79
- attrs: AttrsArg<Props>[];
78
+ attrs: Attrs<Props>[];
80
79
  target: StyledTarget<R>;
81
80
  shouldForwardProp?: ShouldForwardProp<R>;
82
81
  }
83
82
  export interface IStyledStatics<R extends Runtime, OuterProps extends object> extends CommonStatics<R, OuterProps> {
84
83
  componentStyle: R extends 'web' ? ComponentStyle : never;
85
- foldedComponentIds: R extends 'web' ? Array<string> : never;
84
+ foldedComponentIds: R extends 'web' ? string : never;
86
85
  inlineStyle: R extends 'native' ? InstanceType<IInlineStyleConstructor<OuterProps>> : never;
87
86
  target: StyledTarget<R>;
88
87
  styledComponentId: R extends 'web' ? string : never;
@@ -91,24 +90,19 @@ export interface IStyledStatics<R extends Runtime, OuterProps extends object> ex
91
90
  /**
92
91
  * Used by PolymorphicComponent to define prop override cascading order.
93
92
  */
94
- export declare 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'> & {
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'> & {
95
94
  as?: P extends {
96
95
  as?: string | AnyComponent;
97
96
  } ? P['as'] : E;
98
97
  theme?: DefaultTheme;
99
98
  };
100
- /**
101
- * Remove the function call signature, keeping the additional properties.
102
- * https://stackoverflow.com/a/62502740/347386
103
- */
104
- declare type OmitSignatures<T> = Pick<T, keyof T>;
105
99
  /**
106
100
  * This type forms the signature for a forwardRef-enabled component that accepts
107
101
  * the "as" prop to dynamically change the underlying rendered JSX. The interface will
108
102
  * automatically attempt to extract props from the given rendering target to
109
103
  * get proper typing for any specialized props in the target component.
110
104
  */
111
- export interface PolymorphicComponent<R extends Runtime, P extends object, FallbackComponent extends StyledTarget<R>> extends OmitSignatures<React.ForwardRefExoticComponent<P>> {
105
+ export interface PolymorphicComponent<R extends Runtime, P extends object, FallbackComponent extends StyledTarget<R>> extends React.ForwardRefExoticComponent<P> {
112
106
  <E extends StyledTarget<R> = FallbackComponent>(props: PolymorphicComponentProps<R, E, P>): React.ReactElement | null;
113
107
  }
114
108
  export interface IStyledComponent<R extends Runtime, Target extends StyledTarget<R>, Props extends object> extends PolymorphicComponent<R, Props, Target>, IStyledStatics<R, Props> {
@@ -116,7 +110,7 @@ export interface IStyledComponent<R extends Runtime, Target extends StyledTarget
116
110
  toString: () => string;
117
111
  }
118
112
  export interface IStyledComponentFactory<R extends Runtime, Target extends StyledTarget<R>, OuterProps extends object, OuterStatics extends object = object> {
119
- <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;
120
114
  }
121
115
  export interface IInlineStyleConstructor<Props extends object> {
122
116
  new (rules: RuleSet<Props>): IInlineStyle<Props>;
@@ -129,25 +123,24 @@ export interface StyledObject<Props extends object> {
129
123
  [key: string]: Dict<any> | string | number | StyleFunction<Props> | StyledObject<Props>;
130
124
  }
131
125
  /**
132
- * Override DefaultTheme to get accurate typings for your project.
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
- * // create styled-components.d.ts in your project source
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
- * type ThemeType = typeof Theme;
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 DOMAttributes<T> {
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 declare type CSSProp = string | StyledObject<any> | StyleFunction<any>;
146
+ export type CSSProp = RuleSet<any>;
@@ -1,2 +1,4 @@
1
- import { ExecutionProps } from '../types';
2
- export default function determineTheme(props: ExecutionProps, providedTheme: any, defaultProps?: any): any;
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: readonly ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "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", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"];
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>, prevKey?: string) => string[];
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
- declare type OmniComponent = AnyComponent;
44
- declare type ExcludeList = {
43
+ type OmniComponent = AnyComponent;
44
+ type ExcludeList = {
45
45
  [key: string]: true;
46
46
  };
47
- declare type NonReactStatics<S extends OmniComponent, C extends ExcludeList = {}> = {
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): boolean;
1
+ export default function isFunction(test: any): test is Function;
@@ -1 +1 @@
1
- export default function isPlainObject(x: any): boolean;
1
+ export default function isPlainObject(x: any): x is Record<any, any>;
@@ -1 +1 @@
1
- export default function isStatelessFunction(test: any): boolean;
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 default function joinStrings(...args: any[]): string;
4
+ export declare function joinStrings(a?: string, b?: string): string;
5
+ export declare function joinStringArray(arr: string[], sep?: string): string;
@@ -1,6 +1,6 @@
1
1
  import { Middleware } from 'stylis';
2
2
  import { Stringifier } from '../types';
3
- export declare type ICreateStylisInstance = {
3
+ export type ICreateStylisInstance = {
4
4
  options?: {
5
5
  namespace?: string;
6
6
  prefix?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "styled-components",
3
- "version": "6.0.0-beta.9",
3
+ "version": "6.0.0-rc.1",
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,52 +53,40 @@
59
53
  },
60
54
  "homepage": "https://styled-components.com",
61
55
  "dependencies": {
62
- "@babel/cli": "^7.20.7",
63
- "@babel/core": "^7.20.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.18.6",
71
- "@babel/traverse": "^7.20.10",
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.0.0",
67
+ "css-to-react-native": "^3.2.0",
74
68
  "shallowequal": "^1.1.0",
75
- "stylis": "^4.1.3",
76
- "tslib": "^2.4.1"
69
+ "stylis": "^4.2.0",
70
+ "tslib": "^2.5.0"
77
71
  },
78
72
  "peerDependencies": {
79
73
  "babel-plugin-styled-components": ">= 2",
80
74
  "react": ">= 16.8.0",
81
- "react-dom": ">= 16.8.0",
82
- "shallowequal": ">= 1",
83
- "stylis": "^4.0.0",
84
- "tslib": "^2.0.0"
75
+ "react-dom": ">= 16.8.0"
85
76
  },
86
77
  "peerDependenciesMeta": {
87
78
  "babel-plugin-styled-components": {
88
79
  "optional": true
89
- },
90
- "shallowequal": {
91
- "optional": true
92
- },
93
- "stylis": {
94
- "optional": true
95
- },
96
- "tslib": {
97
- "optional": true
98
80
  }
99
81
  },
100
82
  "devDependencies": {
101
- "@babel/plugin-transform-flow-strip-types": "^7.19.0",
102
- "@rollup/plugin-typescript": "^10.0.1",
83
+ "@babel/plugin-transform-flow-strip-types": "^7.21.0",
84
+ "@rollup/plugin-typescript": "^11.0.0",
103
85
  "@types/babel-plugin-macros": "^2.8.4",
104
86
  "@types/enzyme": "^3.10.12",
105
- "@types/jest": "^29.2.4",
87
+ "@types/jest": "^29.4.0",
106
88
  "@types/js-beautify": "^1.13.1",
107
- "@types/node": "^18.11.17",
89
+ "@types/node": "^18.14.2",
108
90
  "@types/react": "^17.0.22",
109
91
  "@types/react-dom": "^17.0.9",
110
92
  "@types/react-frame-component": "^4.1.3",
@@ -112,33 +94,26 @@
112
94
  "@types/react-test-renderer": "^17.0.1",
113
95
  "@types/shallowequal": "^1.1.1",
114
96
  "@types/stylis": "^4.0.2",
115
- "@typescript-eslint/eslint-plugin": "^5.47.0",
116
- "@typescript-eslint/parser": "^5.47.0",
117
- "babel-eslint": "^10.0.1",
118
- "babel-jest": "^29.3.1",
97
+ "babel-jest": "^29.4.3",
119
98
  "babel-plugin-add-module-exports": "^1.0.4",
120
99
  "babel-plugin-macros": "^3.1.0",
121
100
  "babel-plugin-styled-components": "^2.0.7",
122
101
  "babel-plugin-tester": "^10.0.0",
123
102
  "bundlewatch": "^0.3.3",
124
- "eslint": "^8.30.0",
125
- "eslint-config-prettier": "^8.5.0",
126
- "eslint-plugin-prettier": "^4.2.1",
127
- "eslint-plugin-react": "^7.31.11",
128
- "eslint-plugin-react-hooks": "^4.6.0",
129
- "jest": "^29.3.1",
130
- "jest-environment-jsdom": "^29.3.1",
103
+ "csstype": "^3.1.2",
104
+ "jest": "^29.4.3",
105
+ "jest-environment-jsdom": "^29.4.3",
131
106
  "jest-serializer-html": "^7.0.0",
132
- "jest-watch-typeahead": "^2.0.0",
107
+ "jest-watch-typeahead": "^2.2.2",
133
108
  "js-beautify": "^1.14.7",
134
- "prettier": "^2.8.1",
109
+ "prettier": "^2.8.4",
135
110
  "prop-types": "^15.8.1",
136
111
  "react": "^17.0.2",
137
112
  "react-dom": "^17.0.2",
138
113
  "react-frame-component": "^4.0.2",
139
114
  "react-native": "^0.70.6",
140
115
  "react-test-renderer": "^17.0.2",
141
- "rollup": "^3.0.0",
116
+ "rollup": "^3.18.0",
142
117
  "rollup-plugin-commonjs": "^10.1.0",
143
118
  "rollup-plugin-json": "^4.0.0",
144
119
  "rollup-plugin-node-resolve": "^5.2.0",
@@ -146,7 +121,7 @@
146
121
  "rollup-plugin-sourcemaps": "^0.6.3",
147
122
  "rollup-plugin-terser": "^7.0.2",
148
123
  "stylis-plugin-rtl": "^2.1.1",
149
- "typescript": "^4.8.4",
124
+ "typescript": "^4.9.5",
150
125
  "utility-types": "^3.10.0"
151
126
  },
152
127
  "bundlewatch": {
@@ -1,3 +0,0 @@
1
- import { DefaultTheme } from '../models/ThemeProvider';
2
- declare const useTheme: () => DefaultTheme | undefined;
3
- export default useTheme;