@compiled/react 0.11.0 → 0.11.2

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 (81) hide show
  1. package/dist/browser/class-names/index.js.flow +1 -2
  2. package/dist/browser/css/index.js.flow +1 -1
  3. package/dist/browser/index.js.flow +1 -1
  4. package/dist/browser/keyframes/index.js.flow +1 -1
  5. package/dist/browser/runtime/ax.js.flow +1 -1
  6. package/dist/browser/runtime/cache.js.flow +1 -1
  7. package/dist/browser/runtime/css-custom-property.js +1 -1
  8. package/dist/browser/runtime/css-custom-property.js.flow +1 -1
  9. package/dist/browser/runtime/css-custom-property.js.map +1 -1
  10. package/dist/browser/runtime/dev-warnings.js.flow +1 -1
  11. package/dist/browser/runtime/index.js.flow +1 -1
  12. package/dist/browser/runtime/is-server-environment.js.flow +1 -1
  13. package/dist/browser/runtime/sheet.js.flow +1 -1
  14. package/dist/browser/runtime/style-cache.js.flow +1 -1
  15. package/dist/browser/runtime/style.js.flow +1 -2
  16. package/dist/browser/runtime/types.js.flow +1 -1
  17. package/dist/browser/runtime.js.flow +1 -1
  18. package/dist/browser/styled/index.js.flow +1 -1
  19. package/dist/browser/types.js.flow +1 -2
  20. package/dist/browser/utils/error.js.flow +1 -1
  21. package/dist/cjs/class-names/index.js.flow +1 -2
  22. package/dist/cjs/css/index.js.flow +1 -1
  23. package/dist/cjs/index.js.flow +1 -1
  24. package/dist/cjs/keyframes/index.js.flow +1 -1
  25. package/dist/cjs/runtime/ax.js.flow +1 -1
  26. package/dist/cjs/runtime/cache.js.flow +1 -1
  27. package/dist/cjs/runtime/css-custom-property.js +1 -1
  28. package/dist/cjs/runtime/css-custom-property.js.flow +1 -1
  29. package/dist/cjs/runtime/css-custom-property.js.map +1 -1
  30. package/dist/cjs/runtime/dev-warnings.js.flow +1 -1
  31. package/dist/cjs/runtime/index.js.flow +1 -1
  32. package/dist/cjs/runtime/is-server-environment.js.flow +1 -1
  33. package/dist/cjs/runtime/sheet.js.flow +1 -1
  34. package/dist/cjs/runtime/style-cache.js.flow +1 -1
  35. package/dist/cjs/runtime/style.js.flow +1 -2
  36. package/dist/cjs/runtime/types.js.flow +1 -1
  37. package/dist/cjs/runtime.js.flow +1 -1
  38. package/dist/cjs/styled/index.js.flow +1 -1
  39. package/dist/cjs/types.js.flow +1 -2
  40. package/dist/cjs/utils/error.js.flow +1 -1
  41. package/dist/esm/class-names/index.js.flow +1 -2
  42. package/dist/esm/css/index.js.flow +1 -1
  43. package/dist/esm/index.js.flow +1 -1
  44. package/dist/esm/keyframes/index.js.flow +1 -1
  45. package/dist/esm/runtime/ax.js.flow +1 -1
  46. package/dist/esm/runtime/cache.js.flow +1 -1
  47. package/dist/esm/runtime/css-custom-property.js +1 -1
  48. package/dist/esm/runtime/css-custom-property.js.flow +1 -1
  49. package/dist/esm/runtime/css-custom-property.js.map +1 -1
  50. package/dist/esm/runtime/dev-warnings.js.flow +1 -1
  51. package/dist/esm/runtime/index.js.flow +1 -1
  52. package/dist/esm/runtime/is-server-environment.js.flow +1 -1
  53. package/dist/esm/runtime/sheet.js.flow +1 -1
  54. package/dist/esm/runtime/style-cache.js.flow +1 -1
  55. package/dist/esm/runtime/style.js.flow +1 -2
  56. package/dist/esm/runtime/types.js.flow +1 -1
  57. package/dist/esm/runtime.js.flow +1 -1
  58. package/dist/esm/styled/index.js.flow +1 -1
  59. package/dist/esm/types.js.flow +1 -2
  60. package/dist/esm/utils/error.js.flow +1 -1
  61. package/package.json +2 -2
  62. package/src/class-names/index.js.flow +1 -2
  63. package/src/css/index.js.flow +1 -1
  64. package/src/index.js.flow +1 -1
  65. package/src/keyframes/index.js.flow +1 -1
  66. package/src/runtime/__tests__/css-custom-property.test.ts +2 -2
  67. package/src/runtime/ax.js.flow +1 -1
  68. package/src/runtime/cache.js.flow +1 -1
  69. package/src/runtime/css-custom-property.js.flow +1 -1
  70. package/src/runtime/css-custom-property.ts +1 -1
  71. package/src/runtime/dev-warnings.js.flow +1 -1
  72. package/src/runtime/index.js.flow +1 -1
  73. package/src/runtime/is-server-environment.js.flow +1 -1
  74. package/src/runtime/sheet.js.flow +1 -1
  75. package/src/runtime/style-cache.js.flow +1 -1
  76. package/src/runtime/style.js.flow +1 -2
  77. package/src/runtime/types.js.flow +1 -1
  78. package/src/runtime.js.flow +1 -1
  79. package/src/styled/index.js.flow +1 -1
  80. package/src/types.js.flow +1 -2
  81. package/src/utils/error.js.flow +1 -1
@@ -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 { Node } from 'react';
@@ -51,4 +51,3 @@ export interface ClassNamesProps<TProps> {
51
51
  * ```
52
52
  */
53
53
  declare export function ClassNames<TProps>(x: ClassNamesProps<TProps>): React$Node;
54
- declare export {};
@@ -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 { CSSProps, CssObject, CssFunction } from '../types';
@@ -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 { CssFunction, CSSProps, CssType } from './types';
@@ -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 { BasicTemplateInterpolations, CSSProps } from '../types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for ax
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for 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
  /**
@@ -20,6 +20,6 @@ export default function cssCustomPropertyValue(value, suffix, prefix) {
20
20
  // Currently React trims these values so we can't use a space " " to block the value.
21
21
  // Instead we use a CSS variable that doesn't exist which falls back to " ".
22
22
  // Bug raised here: https://github.com/facebook/react/issues/20497
23
- return 'var(--, )';
23
+ return 'var(--c-, )';
24
24
  }
25
25
  //# sourceMappingURL=css-custom-property.js.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for css-custom-property
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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"css-custom-property.js","sourceRoot":"","sources":["../../../src/runtime/css-custom-property.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,KAAyC,EACzC,MAAkC,EAClC,MAAkC;IAElC,IAAI,KAAK,IAAI,SAAS,EAAE;QACtB,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,EAAE;gBACV,OAAO,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;aAChC;YAED,OAAO,KAAK,GAAG,MAAM,CAAC;SACvB;QAED,OAAO,KAAK,CAAC;KACd;IAED,qFAAqF;IACrF,4EAA4E;IAC5E,kEAAkE;IAClE,OAAO,WAAW,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"css-custom-property.js","sourceRoot":"","sources":["../../../src/runtime/css-custom-property.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,KAAyC,EACzC,MAAkC,EAClC,MAAkC;IAElC,IAAI,KAAK,IAAI,SAAS,EAAE;QACtB,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,EAAE;gBACV,OAAO,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;aAChC;YAED,OAAO,KAAK,GAAG,MAAM,CAAC;SACvB;QAED,OAAO,KAAK,CAAC;KACd;IAED,qFAAqF;IACrF,4EAA4E;IAC5E,kEAAkE;IAClE,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for dev-warnings
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 analyzeCssInDev: (sheet: string) => void;
@@ -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
  declare export { default as CS } from './style';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for is-server-environment
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for sheet
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 { Bucket, StyleSheetOpts } from './types';
@@ -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';
@@ -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;
@@ -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 { Node } from 'react';
@@ -51,4 +51,3 @@ export interface ClassNamesProps<TProps> {
51
51
  * ```
52
52
  */
53
53
  declare export function ClassNames<TProps>(x: ClassNamesProps<TProps>): React$Node;
54
- declare export {};
@@ -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 { CSSProps, CssObject, CssFunction } from '../types';
@@ -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 { CssFunction, CSSProps, CssType } from './types';
@@ -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 { BasicTemplateInterpolations, CSSProps } from '../types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for ax
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for 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
  /**
@@ -22,7 +22,7 @@ function cssCustomPropertyValue(value, suffix, prefix) {
22
22
  // Currently React trims these values so we can't use a space " " to block the value.
23
23
  // Instead we use a CSS variable that doesn't exist which falls back to " ".
24
24
  // Bug raised here: https://github.com/facebook/react/issues/20497
25
- return 'var(--, )';
25
+ return 'var(--c-, )';
26
26
  }
27
27
  exports.default = cssCustomPropertyValue;
28
28
  //# sourceMappingURL=css-custom-property.js.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for css-custom-property
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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"css-custom-property.js","sourceRoot":"","sources":["../../../src/runtime/css-custom-property.ts"],"names":[],"mappings":";;AAAA;;;;;;;;GAQG;AACH,SAAwB,sBAAsB,CAC5C,KAAyC,EACzC,MAAkC,EAClC,MAAkC;IAElC,IAAI,KAAK,IAAI,SAAS,EAAE;QACtB,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,EAAE;gBACV,OAAO,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;aAChC;YAED,OAAO,KAAK,GAAG,MAAM,CAAC;SACvB;QAED,OAAO,KAAK,CAAC;KACd;IAED,qFAAqF;IACrF,4EAA4E;IAC5E,kEAAkE;IAClE,OAAO,WAAW,CAAC;AACrB,CAAC;AArBD,yCAqBC"}
1
+ {"version":3,"file":"css-custom-property.js","sourceRoot":"","sources":["../../../src/runtime/css-custom-property.ts"],"names":[],"mappings":";;AAAA;;;;;;;;GAQG;AACH,SAAwB,sBAAsB,CAC5C,KAAyC,EACzC,MAAkC,EAClC,MAAkC;IAElC,IAAI,KAAK,IAAI,SAAS,EAAE;QACtB,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,EAAE;gBACV,OAAO,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;aAChC;YAED,OAAO,KAAK,GAAG,MAAM,CAAC;SACvB;QAED,OAAO,KAAK,CAAC;KACd;IAED,qFAAqF;IACrF,4EAA4E;IAC5E,kEAAkE;IAClE,OAAO,aAAa,CAAC;AACvB,CAAC;AArBD,yCAqBC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for dev-warnings
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 analyzeCssInDev: (sheet: string) => void;
@@ -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
  declare export { default as CS } from './style';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for is-server-environment
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for sheet
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 { Bucket, StyleSheetOpts } from './types';
@@ -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';
@@ -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;
@@ -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 { Node } from 'react';
@@ -51,4 +51,3 @@ export interface ClassNamesProps<TProps> {
51
51
  * ```
52
52
  */
53
53
  declare export function ClassNames<TProps>(x: ClassNamesProps<TProps>): React$Node;
54
- declare export {};
@@ -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 { CSSProps, CssObject, CssFunction } from '../types';
@@ -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 { CssFunction, CSSProps, CssType } from './types';
@@ -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 { BasicTemplateInterpolations, CSSProps } from '../types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for ax
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for 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
  /**
@@ -20,6 +20,6 @@ export default function cssCustomPropertyValue(value, suffix, prefix) {
20
20
  // Currently React trims these values so we can't use a space " " to block the value.
21
21
  // Instead we use a CSS variable that doesn't exist which falls back to " ".
22
22
  // Bug raised here: https://github.com/facebook/react/issues/20497
23
- return 'var(--, )';
23
+ return 'var(--c-, )';
24
24
  }
25
25
  //# sourceMappingURL=css-custom-property.js.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for css-custom-property
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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"css-custom-property.js","sourceRoot":"","sources":["../../../src/runtime/css-custom-property.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,KAAyC,EACzC,MAAkC,EAClC,MAAkC;IAElC,IAAI,KAAK,IAAI,SAAS,EAAE;QACtB,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,EAAE;gBACV,OAAO,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;aAChC;YAED,OAAO,KAAK,GAAG,MAAM,CAAC;SACvB;QAED,OAAO,KAAK,CAAC;KACd;IAED,qFAAqF;IACrF,4EAA4E;IAC5E,kEAAkE;IAClE,OAAO,WAAW,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"css-custom-property.js","sourceRoot":"","sources":["../../../src/runtime/css-custom-property.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,KAAyC,EACzC,MAAkC,EAClC,MAAkC;IAElC,IAAI,KAAK,IAAI,SAAS,EAAE;QACtB,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,EAAE;gBACV,OAAO,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;aAChC;YAED,OAAO,KAAK,GAAG,MAAM,CAAC;SACvB;QAED,OAAO,KAAK,CAAC;KACd;IAED,qFAAqF;IACrF,4EAA4E;IAC5E,kEAAkE;IAClE,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for dev-warnings
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 analyzeCssInDev: (sheet: string) => void;
@@ -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
  declare export { default as CS } from './style';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for is-server-environment
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for sheet
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 { Bucket, StyleSheetOpts } from './types';
@@ -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';
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compiled/react",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "A familiar and performant compile time CSS-in-JS library for React.",
5
5
  "keywords": [
6
6
  "compiled",
@@ -77,7 +77,7 @@
77
77
  "devDependencies": {
78
78
  "@compiled/benchmark": "^1.0.1",
79
79
  "@testing-library/react": "^12.1.5",
80
- "@types/jsdom": "^16.2.14",
80
+ "@types/jsdom": "^16.2.15",
81
81
  "@types/react-dom": "^17.0.17",
82
82
  "jsdom": "^19.0.0",
83
83
  "react": "^17.0.2",
@@ -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 { Node } from 'react';
@@ -51,4 +51,3 @@ export interface ClassNamesProps<TProps> {
51
51
  * ```
52
52
  */
53
53
  declare export function ClassNames<TProps>(x: ClassNamesProps<TProps>): React$Node;
54
- declare export {};
@@ -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 { CSSProps, CssObject, CssFunction } from '../types';
package/src/index.js.flow CHANGED
@@ -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 { CssFunction, CSSProps, CssType } from './types';
@@ -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 { BasicTemplateInterpolations, CSSProps } from '../types';
@@ -4,13 +4,13 @@ describe('interpolation', () => {
4
4
  it('should return an empty CSS comment when undefined', () => {
5
5
  const actual = interpolation(undefined, undefined, undefined);
6
6
 
7
- expect(actual).toEqual('var(--, )');
7
+ expect(actual).toEqual('var(--c-, )');
8
8
  });
9
9
 
10
10
  it('should return an empty CSS comment when null', () => {
11
11
  const actual = interpolation(null, undefined, undefined);
12
12
 
13
- expect(actual).toEqual('var(--, )');
13
+ expect(actual).toEqual('var(--c-, )');
14
14
  });
15
15
 
16
16
  it('should pass through the value if there are no suffix prefix', () => {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for ax
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for 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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for css-custom-property
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
  /**
@@ -27,5 +27,5 @@ export default function cssCustomPropertyValue(
27
27
  // Currently React trims these values so we can't use a space " " to block the value.
28
28
  // Instead we use a CSS variable that doesn't exist which falls back to " ".
29
29
  // Bug raised here: https://github.com/facebook/react/issues/20497
30
- return 'var(--, )';
30
+ return 'var(--c-, )';
31
31
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for dev-warnings
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 analyzeCssInDev: (sheet: string) => void;
@@ -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
  declare export { default as CS } from './style';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for is-server-environment
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
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for sheet
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 { Bucket, StyleSheetOpts } from './types';
@@ -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';
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;