@compiled/react 0.11.1 → 0.11.3

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 (103) hide show
  1. package/dist/browser/class-names/index.d.ts +2 -2
  2. package/dist/browser/class-names/index.js.flow +1 -2
  3. package/dist/browser/css/index.js.flow +1 -1
  4. package/dist/browser/index.js.flow +1 -1
  5. package/dist/browser/jsx/jsx-local-namespace.d.ts +9 -9
  6. package/dist/browser/keyframes/index.d.ts +1 -1
  7. package/dist/browser/keyframes/index.js.flow +1 -1
  8. package/dist/browser/runtime/ax.js +2 -2
  9. package/dist/browser/runtime/ax.js.flow +1 -1
  10. package/dist/browser/runtime/ax.js.map +1 -1
  11. package/dist/browser/runtime/cache.js.flow +1 -1
  12. package/dist/browser/runtime/css-custom-property.js.flow +1 -1
  13. package/dist/browser/runtime/dev-warnings.js.flow +1 -1
  14. package/dist/browser/runtime/index.js.flow +1 -1
  15. package/dist/browser/runtime/is-server-environment.js.flow +1 -1
  16. package/dist/browser/runtime/sheet.js.flow +1 -1
  17. package/dist/browser/runtime/style-cache.js.flow +1 -1
  18. package/dist/browser/runtime/style.js.flow +1 -2
  19. package/dist/browser/runtime/types.d.ts +3 -3
  20. package/dist/browser/runtime/types.js.flow +1 -1
  21. package/dist/browser/runtime.js.flow +1 -1
  22. package/dist/browser/styled/index.d.ts +5 -5
  23. package/dist/browser/styled/index.js.flow +3 -5
  24. package/dist/browser/styled/index.js.map +1 -1
  25. package/dist/browser/types.d.ts +5 -5
  26. package/dist/browser/types.js.flow +1 -2
  27. package/dist/browser/utils/error.js.flow +1 -1
  28. package/dist/cjs/class-names/index.d.ts +2 -2
  29. package/dist/cjs/class-names/index.js.flow +1 -2
  30. package/dist/cjs/css/index.js.flow +1 -1
  31. package/dist/cjs/index.js.flow +1 -1
  32. package/dist/cjs/jsx/jsx-local-namespace.d.ts +9 -9
  33. package/dist/cjs/keyframes/index.d.ts +1 -1
  34. package/dist/cjs/keyframes/index.js.flow +1 -1
  35. package/dist/cjs/runtime/ax.js +2 -2
  36. package/dist/cjs/runtime/ax.js.flow +1 -1
  37. package/dist/cjs/runtime/ax.js.map +1 -1
  38. package/dist/cjs/runtime/cache.js.flow +1 -1
  39. package/dist/cjs/runtime/css-custom-property.js.flow +1 -1
  40. package/dist/cjs/runtime/dev-warnings.js.flow +1 -1
  41. package/dist/cjs/runtime/index.js.flow +1 -1
  42. package/dist/cjs/runtime/is-server-environment.js.flow +1 -1
  43. package/dist/cjs/runtime/sheet.js.flow +1 -1
  44. package/dist/cjs/runtime/style-cache.js.flow +1 -1
  45. package/dist/cjs/runtime/style.js.flow +1 -2
  46. package/dist/cjs/runtime/types.d.ts +3 -3
  47. package/dist/cjs/runtime/types.js.flow +1 -1
  48. package/dist/cjs/runtime.js.flow +1 -1
  49. package/dist/cjs/styled/index.d.ts +5 -5
  50. package/dist/cjs/styled/index.js.flow +3 -5
  51. package/dist/cjs/styled/index.js.map +1 -1
  52. package/dist/cjs/types.d.ts +5 -5
  53. package/dist/cjs/types.js.flow +1 -2
  54. package/dist/cjs/utils/error.js.flow +1 -1
  55. package/dist/esm/class-names/index.d.ts +2 -2
  56. package/dist/esm/class-names/index.js.flow +1 -2
  57. package/dist/esm/css/index.js.flow +1 -1
  58. package/dist/esm/index.js.flow +1 -1
  59. package/dist/esm/jsx/jsx-local-namespace.d.ts +9 -9
  60. package/dist/esm/keyframes/index.d.ts +1 -1
  61. package/dist/esm/keyframes/index.js.flow +1 -1
  62. package/dist/esm/runtime/ax.js +2 -2
  63. package/dist/esm/runtime/ax.js.flow +1 -1
  64. package/dist/esm/runtime/ax.js.map +1 -1
  65. package/dist/esm/runtime/cache.js.flow +1 -1
  66. package/dist/esm/runtime/css-custom-property.js.flow +1 -1
  67. package/dist/esm/runtime/dev-warnings.js.flow +1 -1
  68. package/dist/esm/runtime/index.js.flow +1 -1
  69. package/dist/esm/runtime/is-server-environment.js.flow +1 -1
  70. package/dist/esm/runtime/sheet.js.flow +1 -1
  71. package/dist/esm/runtime/style-cache.js.flow +1 -1
  72. package/dist/esm/runtime/style.js.flow +1 -2
  73. package/dist/esm/runtime/types.d.ts +3 -3
  74. package/dist/esm/runtime/types.js.flow +1 -1
  75. package/dist/esm/runtime.js.flow +1 -1
  76. package/dist/esm/styled/index.d.ts +5 -5
  77. package/dist/esm/styled/index.js.flow +3 -5
  78. package/dist/esm/styled/index.js.map +1 -1
  79. package/dist/esm/types.d.ts +5 -5
  80. package/dist/esm/types.js.flow +1 -2
  81. package/dist/esm/utils/error.js.flow +1 -1
  82. package/package.json +3 -3
  83. package/src/class-names/index.js.flow +1 -2
  84. package/src/css/index.js.flow +1 -1
  85. package/src/index.js.flow +1 -1
  86. package/src/keyframes/index.js.flow +1 -1
  87. package/src/runtime/__tests__/ax.test.ts +20 -2
  88. package/src/runtime/ax.js.flow +1 -1
  89. package/src/runtime/ax.ts +2 -2
  90. package/src/runtime/cache.js.flow +1 -1
  91. package/src/runtime/css-custom-property.js.flow +1 -1
  92. package/src/runtime/dev-warnings.js.flow +1 -1
  93. package/src/runtime/index.js.flow +1 -1
  94. package/src/runtime/is-server-environment.js.flow +1 -1
  95. package/src/runtime/sheet.js.flow +1 -1
  96. package/src/runtime/style-cache.js.flow +1 -1
  97. package/src/runtime/style.js.flow +1 -2
  98. package/src/runtime/types.js.flow +1 -1
  99. package/src/runtime.js.flow +1 -1
  100. package/src/styled/index.js.flow +3 -5
  101. package/src/styled/index.ts +2 -4
  102. package/src/types.js.flow +1 -2
  103. package/src/utils/error.js.flow +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for style-cache
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.17.0
4
+ * Flowgen v1.20.1
5
5
  * @flow
6
6
  */
7
7
  import type { ProviderComponent, UseCacheHook } from './types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for style
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.17.0
4
+ * Flowgen v1.20.1
5
5
  * @flow
6
6
  */
7
7
  import type { StyleSheetOpts } from './types';
@@ -14,4 +14,3 @@ declare type StyleProps = {
14
14
  ...
15
15
  } & StyleSheetOpts;
16
16
  declare export default function Style(props: StyleProps): React$Node | null;
17
- declare export {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for types
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.17.0
4
+ * Flowgen v1.20.1
5
5
  * @flow
6
6
  */
7
7
  export interface StyleSheetOpts {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for runtime
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.17.0
4
+ * Flowgen v1.20.1
5
5
  * @flow
6
6
  */
7
7
  declare export { CC, CS, ax, ix } from './runtime/index';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for index
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.17.0
4
+ * Flowgen v1.20.1
5
5
  * @flow
6
6
  */
7
7
  import type { ComponentType } from 'react';
@@ -14,7 +14,7 @@ export type StyledProps = {
14
14
  };
15
15
  export type ObjectInterpolation<TProps> = CssType<TProps> | CssType<TProps>[];
16
16
  export type TemplateStringsInterpolation<TProps> = CssFunction<TProps> | CssFunction<TProps>[];
17
- export interface StyledComponent<ComponentProps: mixed> {
17
+ export interface StyledComponent<ComponentProps> {
18
18
  <TProps>(
19
19
  ...css: ObjectInterpolation<TProps>[]
20
20
  ): React$ComponentType<{ ...TProps, ...ComponentProps, ...StyledProps }>;
@@ -25,9 +25,7 @@ export interface StyledComponent<ComponentProps: mixed> {
25
25
  }
26
26
  export type StyledComponentMap = $ObjMapi<$JSXIntrinsics, <Tag>(Tag) => StyledComponent<mixed>>;
27
27
  export type CreateStyledComponent = {
28
- <TInheritedProps: mixed>(
29
- Component: ComponentType<TInheritedProps>
30
- ): StyledComponent<TInheritedProps>,
28
+ <TInheritedProps>(Component: ComponentType<TInheritedProps>): StyledComponent<TInheritedProps>,
31
29
  ...
32
30
  } & StyledComponentMap;
33
31
  /**
@@ -13,7 +13,7 @@ export interface StyledProps {
13
13
  export type ObjectInterpolation<TProps> = CssType<TProps> | CssType<TProps>[];
14
14
  export type TemplateStringsInterpolation<TProps> = CssFunction<TProps> | CssFunction<TProps>[];
15
15
 
16
- export interface StyledComponent<ComponentProps extends unknown> {
16
+ export interface StyledComponent<ComponentProps> {
17
17
  // Allows either string or object (`` or ({}))
18
18
  // We disable the ban types rule here as we need to join the empty object default with other props
19
19
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -34,9 +34,7 @@ export type StyledComponentMap = {
34
34
 
35
35
  export interface CreateStyledComponent extends StyledComponentMap {
36
36
  // Typing to enable consumers to compose components, e.g: `styled(Component)`
37
- <TInheritedProps extends unknown>(
38
- Component: ComponentType<TInheritedProps>
39
- ): StyledComponent<TInheritedProps>;
37
+ <TInheritedProps>(Component: ComponentType<TInheritedProps>): StyledComponent<TInheritedProps>;
40
38
  }
41
39
 
42
40
  /**
package/src/types.js.flow CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for types
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.17.0
4
+ * Flowgen v1.20.1
5
5
  * @flow
6
6
  */
7
7
  import * as CSS from 'csstype';
@@ -23,7 +23,6 @@ export type CSSProps<TProps> = CSS.Properties<CssFunction<TProps>>;
23
23
  export type CssObject<TProps> = {
24
24
  ...CSSProps<TProps>,
25
25
  [key: string]: CssFunction<TProps>,
26
- ...
27
26
  };
28
27
  export type CssFunction<TProps = mixed> =
29
28
  | CssType<TProps>
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for error
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.17.0
4
+ * Flowgen v1.20.1
5
5
  * @flow
6
6
  */
7
7
  declare export var createSetupError: () => Error;