@compiled/react 0.13.0 → 0.14.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.
Files changed (114) hide show
  1. package/dist/browser/class-names/index.js.flow +1 -1
  2. package/dist/browser/css/index.js.flow +1 -1
  3. package/dist/browser/css-map/index.d.ts +21 -0
  4. package/dist/browser/css-map/index.js +5 -0
  5. package/dist/browser/css-map/index.js.flow +26 -0
  6. package/dist/browser/css-map/index.js.map +1 -0
  7. package/dist/browser/index.d.ts +1 -0
  8. package/dist/browser/index.js +1 -0
  9. package/dist/browser/index.js.flow +2 -1
  10. package/dist/browser/index.js.map +1 -1
  11. package/dist/browser/keyframes/index.js.flow +1 -1
  12. package/dist/browser/runtime/ac.js.flow +1 -1
  13. package/dist/browser/runtime/ax.js.flow +1 -1
  14. package/dist/browser/runtime/cache.js.flow +1 -1
  15. package/dist/browser/runtime/css-custom-property.js.flow +1 -1
  16. package/dist/browser/runtime/dev-warnings.js.flow +1 -1
  17. package/dist/browser/runtime/index.js +0 -8
  18. package/dist/browser/runtime/index.js.flow +1 -1
  19. package/dist/browser/runtime/index.js.map +1 -1
  20. package/dist/browser/runtime/is-server-environment.js.flow +1 -1
  21. package/dist/browser/runtime/sheet.js.flow +1 -1
  22. package/dist/browser/runtime/style-cache.js.flow +1 -1
  23. package/dist/browser/runtime/style.js.flow +1 -1
  24. package/dist/browser/runtime/types.js.flow +1 -1
  25. package/dist/browser/runtime.js.flow +1 -1
  26. package/dist/browser/styled/index.js.flow +1 -1
  27. package/dist/browser/types.d.ts +3 -3
  28. package/dist/browser/types.js.flow +4 -4
  29. package/dist/browser/utils/error.js.flow +1 -1
  30. package/dist/cjs/class-names/index.js.flow +1 -1
  31. package/dist/cjs/css/index.js.flow +1 -1
  32. package/dist/cjs/css-map/index.d.ts +21 -0
  33. package/dist/cjs/css-map/index.js +8 -0
  34. package/dist/cjs/css-map/index.js.flow +26 -0
  35. package/dist/cjs/css-map/index.js.map +1 -0
  36. package/dist/cjs/index.d.ts +1 -0
  37. package/dist/cjs/index.js +3 -1
  38. package/dist/cjs/index.js.flow +2 -1
  39. package/dist/cjs/index.js.map +1 -1
  40. package/dist/cjs/keyframes/index.js.flow +1 -1
  41. package/dist/cjs/runtime/ac.js.flow +1 -1
  42. package/dist/cjs/runtime/ax.js.flow +1 -1
  43. package/dist/cjs/runtime/cache.js.flow +1 -1
  44. package/dist/cjs/runtime/css-custom-property.js.flow +1 -1
  45. package/dist/cjs/runtime/dev-warnings.js.flow +1 -1
  46. package/dist/cjs/runtime/index.js +0 -8
  47. package/dist/cjs/runtime/index.js.flow +1 -1
  48. package/dist/cjs/runtime/index.js.map +1 -1
  49. package/dist/cjs/runtime/is-server-environment.js.flow +1 -1
  50. package/dist/cjs/runtime/sheet.js.flow +1 -1
  51. package/dist/cjs/runtime/style-cache.js.flow +1 -1
  52. package/dist/cjs/runtime/style.js.flow +1 -1
  53. package/dist/cjs/runtime/types.js.flow +1 -1
  54. package/dist/cjs/runtime.js.flow +1 -1
  55. package/dist/cjs/styled/index.js.flow +1 -1
  56. package/dist/cjs/types.d.ts +3 -3
  57. package/dist/cjs/types.js.flow +4 -4
  58. package/dist/cjs/utils/error.js.flow +1 -1
  59. package/dist/esm/class-names/index.js.flow +1 -1
  60. package/dist/esm/css/index.js.flow +1 -1
  61. package/dist/esm/css-map/index.d.ts +21 -0
  62. package/dist/esm/css-map/index.js +5 -0
  63. package/dist/esm/css-map/index.js.flow +26 -0
  64. package/dist/esm/css-map/index.js.map +1 -0
  65. package/dist/esm/index.d.ts +1 -0
  66. package/dist/esm/index.js +1 -0
  67. package/dist/esm/index.js.flow +2 -1
  68. package/dist/esm/index.js.map +1 -1
  69. package/dist/esm/keyframes/index.js.flow +1 -1
  70. package/dist/esm/runtime/ac.js.flow +1 -1
  71. package/dist/esm/runtime/ax.js.flow +1 -1
  72. package/dist/esm/runtime/cache.js.flow +1 -1
  73. package/dist/esm/runtime/css-custom-property.js.flow +1 -1
  74. package/dist/esm/runtime/dev-warnings.js.flow +1 -1
  75. package/dist/esm/runtime/index.js +0 -8
  76. package/dist/esm/runtime/index.js.flow +1 -1
  77. package/dist/esm/runtime/index.js.map +1 -1
  78. package/dist/esm/runtime/is-server-environment.js.flow +1 -1
  79. package/dist/esm/runtime/sheet.js.flow +1 -1
  80. package/dist/esm/runtime/style-cache.js.flow +1 -1
  81. package/dist/esm/runtime/style.js.flow +1 -1
  82. package/dist/esm/runtime/types.js.flow +1 -1
  83. package/dist/esm/runtime.js.flow +1 -1
  84. package/dist/esm/styled/index.js.flow +1 -1
  85. package/dist/esm/types.d.ts +3 -3
  86. package/dist/esm/types.js.flow +4 -4
  87. package/dist/esm/utils/error.js.flow +1 -1
  88. package/package.json +4 -8
  89. package/src/class-names/index.js.flow +1 -1
  90. package/src/css/index.js.flow +1 -1
  91. package/src/css-map/__tests__/index.test.tsx +52 -0
  92. package/src/css-map/index.js.flow +26 -0
  93. package/src/css-map/index.ts +27 -0
  94. package/src/index.js.flow +2 -1
  95. package/src/index.ts +1 -0
  96. package/src/keyframes/index.js.flow +1 -1
  97. package/src/runtime/ac.js.flow +1 -1
  98. package/src/runtime/ax.js.flow +1 -1
  99. package/src/runtime/cache.js.flow +1 -1
  100. package/src/runtime/css-custom-property.js.flow +1 -1
  101. package/src/runtime/dev-warnings.js.flow +1 -1
  102. package/src/runtime/index.js.flow +1 -1
  103. package/src/runtime/index.ts +0 -11
  104. package/src/runtime/is-server-environment.js.flow +1 -1
  105. package/src/runtime/sheet.js.flow +1 -1
  106. package/src/runtime/style-cache.js.flow +1 -1
  107. package/src/runtime/style.js.flow +1 -1
  108. package/src/runtime/types.js.flow +1 -1
  109. package/src/runtime.js.flow +1 -1
  110. package/src/styled/index.js.flow +1 -1
  111. package/src/types.js.flow +4 -4
  112. package/src/types.ts +3 -3
  113. package/src/utils/error.js.flow +1 -1
  114. package/src/global.d.ts +0 -7
@@ -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.20.1
4
+ * Flowgen v1.21.0
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.20.1
4
+ * Flowgen v1.21.0
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.20.1
4
+ * Flowgen v1.21.0
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.20.1
4
+ * Flowgen v1.21.0
5
5
  * @flow
6
6
  */
7
7
  import type { StyleSheetOpts } from './types';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for types
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.20.1
4
+ * Flowgen v1.21.0
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.20.1
4
+ * Flowgen v1.21.0
5
5
  * @flow
6
6
  */
7
7
  declare export { CC, CS, ax, ac, clearAcCache, 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.20.1
4
+ * Flowgen v1.21.0
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.20.1
4
+ * Flowgen v1.21.0
5
5
  * @flow
6
6
  */
7
7
  import * as CSS from 'csstype';
@@ -19,11 +19,11 @@ export type CssType<TProps> = CssObject<TProps> | FunctionInterpolation<TProps>
19
19
  /**
20
20
  * These are all the CSS props that will exist.
21
21
  */
22
- export type CSSProps<TProps> = CSS.Properties<CssFunction<TProps>>;
23
- export type CssObject<TProps> = {
22
+ export type CSSProps<TProps> = $ReadOnly<CSS.Properties<CssFunction<TProps>>>;
23
+ export type CssObject<TProps> = $ReadOnly<{
24
24
  ...CSSProps<TProps>,
25
25
  [key: string]: CssFunction<TProps>,
26
- };
26
+ }>;
27
27
  export type CssFunction<TProps = mixed> =
28
28
  | CssType<TProps>
29
29
  | BasicTemplateInterpolations
package/src/types.ts CHANGED
@@ -21,11 +21,11 @@ export type CssType<TProps> =
21
21
  /**
22
22
  * These are all the CSS props that will exist.
23
23
  */
24
- export type CSSProps<TProps> = CSS.Properties<CssFunction<TProps>>;
24
+ export type CSSProps<TProps> = Readonly<CSS.Properties<CssFunction<TProps>>>;
25
25
 
26
- export type CssObject<TProps> = {
26
+ export type CssObject<TProps> = Readonly<{
27
27
  [key: string]: CssFunction<TProps>;
28
- };
28
+ }>;
29
29
 
30
30
  // CSS inside of a CSS expression
31
31
  export type CssFunction<TProps = unknown> =
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for error
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.20.1
4
+ * Flowgen v1.21.0
5
5
  * @flow
6
6
  */
7
7
  declare export var createSetupError: () => Error;
package/src/global.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export {};
2
-
3
- declare global {
4
- interface Window {
5
- __COMPILED_IMPORTED__: undefined | true;
6
- }
7
- }