@compiled/react 0.16.3 → 0.16.4

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.
@@ -1,4 +1,4 @@
1
- import { createSetupError } from '../utils/error';
1
+ import { createStrictSetupError } from '../utils/error';
2
2
  import { cx } from '../xcss-prop';
3
3
  /**
4
4
  * ## Create Strict API
@@ -51,14 +51,14 @@ import { cx } from '../xcss-prop';
51
51
  export function createStrictAPI() {
52
52
  return {
53
53
  css() {
54
- throw createSetupError();
54
+ throw createStrictSetupError();
55
55
  },
56
56
  cssMap() {
57
- throw createSetupError();
57
+ throw createStrictSetupError();
58
58
  },
59
59
  cx,
60
60
  XCSSProp() {
61
- throw createSetupError();
61
+ throw createStrictSetupError();
62
62
  },
63
63
  };
64
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAuB,EAAE,EAA0B,MAAM,cAAc,CAAC;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC;QACD,MAAM;YACJ,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC;QACD,EAAE;QACF,QAAQ;YACN,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAuB,EAAE,EAA0B,MAAM,cAAc,CAAC;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,MAAM;YACJ,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,EAAE;QACF,QAAQ;YACN,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const createSetupError: () => Error;
2
+ export declare const createStrictSetupError: () => Error;
@@ -17,4 +17,23 @@ export const createSetupError = () => {
17
17
  Good luck!
18
18
  `);
19
19
  };
20
+ export const createStrictSetupError = () => {
21
+ return new Error(`
22
+ ██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
23
+ ██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
24
+ ██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
25
+ ██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
26
+ ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
27
+ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
28
+
29
+ @compiled/react
30
+
31
+ Code was executed when it shouldn't have. To resolve make sure to:
32
+
33
+ 1. Set up Compiled.
34
+ 2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
35
+
36
+ For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
37
+ `);
38
+ };
20
39
  //# sourceMappingURL=error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAU,EAAE;IAChD,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
@@ -54,14 +54,14 @@ const xcss_prop_1 = require("../xcss-prop");
54
54
  function createStrictAPI() {
55
55
  return {
56
56
  css() {
57
- throw (0, error_1.createSetupError)();
57
+ throw (0, error_1.createStrictSetupError)();
58
58
  },
59
59
  cssMap() {
60
- throw (0, error_1.createSetupError)();
60
+ throw (0, error_1.createStrictSetupError)();
61
61
  },
62
62
  cx: xcss_prop_1.cx,
63
63
  XCSSProp() {
64
- throw (0, error_1.createSetupError)();
64
+ throw (0, error_1.createStrictSetupError)();
65
65
  },
66
66
  };
67
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":";;;AACA,0CAAkD;AAClD,4CAA+E;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,SAAgB,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,IAAA,wBAAgB,GAAE,CAAC;QAC3B,CAAC;QACD,MAAM;YACJ,MAAM,IAAA,wBAAgB,GAAE,CAAC;QAC3B,CAAC;QACD,EAAE,EAAF,cAAE;QACF,QAAQ;YACN,MAAM,IAAA,wBAAgB,GAAE,CAAC;QAC3B,CAAC;KACF,CAAC;AACJ,CAAC;AAbD,0CAaC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":";;;AACA,0CAAwD;AACxD,4CAA+E;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,SAAgB,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,IAAA,8BAAsB,GAAE,CAAC;QACjC,CAAC;QACD,MAAM;YACJ,MAAM,IAAA,8BAAsB,GAAE,CAAC;QACjC,CAAC;QACD,EAAE,EAAF,cAAE;QACF,QAAQ;YACN,MAAM,IAAA,8BAAsB,GAAE,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC;AAbD,0CAaC"}
@@ -1 +1,2 @@
1
1
  export declare const createSetupError: () => Error;
2
+ export declare const createStrictSetupError: () => Error;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSetupError = void 0;
3
+ exports.createStrictSetupError = exports.createSetupError = void 0;
4
4
  const createSetupError = () => {
5
5
  return new Error(`
6
6
  ██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
@@ -21,4 +21,24 @@ const createSetupError = () => {
21
21
  `);
22
22
  };
23
23
  exports.createSetupError = createSetupError;
24
+ const createStrictSetupError = () => {
25
+ return new Error(`
26
+ ██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
27
+ ██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
28
+ ██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
29
+ ██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
30
+ ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
31
+ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
32
+
33
+ @compiled/react
34
+
35
+ Code was executed when it shouldn't have. To resolve make sure to:
36
+
37
+ 1. Set up Compiled.
38
+ 2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
39
+
40
+ For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
41
+ `);
42
+ };
43
+ exports.createStrictSetupError = createStrictSetupError;
24
44
  //# sourceMappingURL=error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B;AAEK,MAAM,sBAAsB,GAAG,GAAU,EAAE;IAChD,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,sBAAsB,0BAkBjC"}
@@ -1,4 +1,4 @@
1
- import { createSetupError } from '../utils/error';
1
+ import { createStrictSetupError } from '../utils/error';
2
2
  import { cx } from '../xcss-prop';
3
3
  /**
4
4
  * ## Create Strict API
@@ -51,14 +51,14 @@ import { cx } from '../xcss-prop';
51
51
  export function createStrictAPI() {
52
52
  return {
53
53
  css() {
54
- throw createSetupError();
54
+ throw createStrictSetupError();
55
55
  },
56
56
  cssMap() {
57
- throw createSetupError();
57
+ throw createStrictSetupError();
58
58
  },
59
59
  cx,
60
60
  XCSSProp() {
61
- throw createSetupError();
61
+ throw createStrictSetupError();
62
62
  },
63
63
  };
64
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAuB,EAAE,EAA0B,MAAM,cAAc,CAAC;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC;QACD,MAAM;YACJ,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC;QACD,EAAE;QACF,QAAQ;YACN,MAAM,gBAAgB,EAAE,CAAC;QAC3B,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-strict-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAuB,EAAE,EAA0B,MAAM,cAAc,CAAC;AA+J/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,GAAG;YACD,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,MAAM;YACJ,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;QACD,EAAE;QACF,QAAQ;YACN,MAAM,sBAAsB,EAAE,CAAC;QACjC,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const createSetupError: () => Error;
2
+ export declare const createStrictSetupError: () => Error;
@@ -17,4 +17,23 @@ export const createSetupError = () => {
17
17
  Good luck!
18
18
  `);
19
19
  };
20
+ export const createStrictSetupError = () => {
21
+ return new Error(`
22
+ ██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
23
+ ██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
24
+ ██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
25
+ ██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
26
+ ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
27
+ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
28
+
29
+ @compiled/react
30
+
31
+ Code was executed when it shouldn't have. To resolve make sure to:
32
+
33
+ 1. Set up Compiled.
34
+ 2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
35
+
36
+ For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
37
+ `);
38
+ };
20
39
  //# sourceMappingURL=error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAU,EAAE;IAC1C,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAU,EAAE;IAChD,OAAO,IAAI,KAAK,CAAC;;;;;;;;;;;;;;;;CAgBlB,CAAC,CAAC;AACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compiled/react",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "description": "A familiar and performant compile time CSS-in-JS library for React.",
5
5
  "keywords": [
6
6
  "compiled",
@@ -1,5 +1,5 @@
1
1
  import type { StrictCSSProperties, CSSPseudos } from '../types';
2
- import { createSetupError } from '../utils/error';
2
+ import { createStrictSetupError } from '../utils/error';
3
3
  import { type CompiledStyles, cx, type Internal$XCSSProp } from '../xcss-prop';
4
4
 
5
5
  type PseudosDeclarations = {
@@ -210,14 +210,14 @@ type CompiledSchema = StrictCSSProperties & PseudosDeclarations;
210
210
  export function createStrictAPI<TSchema extends CompiledSchema>(): CompiledAPI<TSchema> {
211
211
  return {
212
212
  css() {
213
- throw createSetupError();
213
+ throw createStrictSetupError();
214
214
  },
215
215
  cssMap() {
216
- throw createSetupError();
216
+ throw createStrictSetupError();
217
217
  },
218
218
  cx,
219
219
  XCSSProp() {
220
- throw createSetupError();
220
+ throw createStrictSetupError();
221
221
  },
222
222
  };
223
223
  }
@@ -17,3 +17,23 @@ export const createSetupError = (): Error => {
17
17
  Good luck!
18
18
  `);
19
19
  };
20
+
21
+ export const createStrictSetupError = (): Error => {
22
+ return new Error(`
23
+ ██████╗ ██████╗ ███╗ ███╗██████╗ ██╗██╗ ███████╗██████╗
24
+ ██╔════╝██╔═══██╗████╗ ████║██╔══██╗██║██║ ██╔════╝██╔══██╗
25
+ ██║ ██║ ██║██╔████╔██║██████╔╝██║██║ █████╗ ██║ ██║
26
+ ██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██║██║ ██╔══╝ ██║ ██║
27
+ ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║███████╗███████╗██████╔╝
28
+ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝
29
+
30
+ @compiled/react
31
+
32
+ Code was executed when it shouldn't have. To resolve make sure to:
33
+
34
+ 1. Set up Compiled.
35
+ 2. Configure importSources in your Compiled config to point to the module that exports the output of createStrictAPI().
36
+
37
+ For more information visit https://compiledcssinjs.com/docs/installation and follow the instructions.
38
+ `);
39
+ };