@compiled/react 0.11.0 → 0.11.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.
@@ -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 +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"}
@@ -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 +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"}
@@ -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 +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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compiled/react",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
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",
@@ -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', () => {
@@ -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
  }