@pandacss/generator 1.4.1 → 1.4.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.
package/dist/index.js CHANGED
@@ -36,6 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
 
37
37
  // src/generator.ts
38
38
  var import_core5 = require("@pandacss/core");
39
+ var import_shared7 = require("@pandacss/shared");
39
40
  var import_ts_pattern15 = require("ts-pattern");
40
41
 
41
42
  // src/artifacts/setup-artifacts.ts
@@ -5628,7 +5629,10 @@ var Generator = class extends import_core5.Context {
5628
5629
  };
5629
5630
  appendCssOfType = (type, sheet) => {
5630
5631
  (0, import_ts_pattern15.match)(type).with("preflight", () => generateResetCss(this, sheet)).with("tokens", () => generateTokenCss(this, sheet)).with("static", () => generateStaticCss(this, sheet)).with("global", () => generateGlobalCss(this, sheet)).with("keyframes", () => generateKeyframeCss(this, sheet)).otherwise(() => {
5631
- throw new Error(`Unknown css artifact type <${type}>`);
5632
+ throw new import_shared7.PandaError(
5633
+ "UNKNOWN_ARTIFACT",
5634
+ `Unknown CSS artifact type: "${type}". Expected one of: preflight, tokens, static, global, keyframes`
5635
+ );
5632
5636
  });
5633
5637
  };
5634
5638
  appendLayerParams = (sheet) => {
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/generator.ts
2
2
  import { Context as Context2 } from "@pandacss/core";
3
+ import { PandaError } from "@pandacss/shared";
3
4
  import { match as match15 } from "ts-pattern";
4
5
 
5
6
  // src/artifacts/setup-artifacts.ts
@@ -5592,7 +5593,10 @@ var Generator = class extends Context2 {
5592
5593
  };
5593
5594
  appendCssOfType = (type, sheet) => {
5594
5595
  match15(type).with("preflight", () => generateResetCss(this, sheet)).with("tokens", () => generateTokenCss(this, sheet)).with("static", () => generateStaticCss(this, sheet)).with("global", () => generateGlobalCss(this, sheet)).with("keyframes", () => generateKeyframeCss(this, sheet)).otherwise(() => {
5595
- throw new Error(`Unknown css artifact type <${type}>`);
5596
+ throw new PandaError(
5597
+ "UNKNOWN_ARTIFACT",
5598
+ `Unknown CSS artifact type: "${type}". Expected one of: preflight, tokens, static, global, keyframes`
5599
+ );
5596
5600
  });
5597
5601
  };
5598
5602
  appendLayerParams = (sheet) => {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "author": "Segun Adebayo <joseshegs@gmail.com>",
9
+ "license": "MIT",
9
10
  "sideEffects": false,
10
11
  "homepage": "https://panda-css.com",
11
12
  "repository": {
@@ -37,12 +38,12 @@
37
38
  "pluralize": "8.0.0",
38
39
  "postcss": "8.4.49",
39
40
  "ts-pattern": "5.8.0",
40
- "@pandacss/core": "1.4.1",
41
- "@pandacss/is-valid-prop": "^1.4.1",
42
- "@pandacss/logger": "1.4.1",
43
- "@pandacss/shared": "1.4.1",
44
- "@pandacss/token-dictionary": "1.4.1",
45
- "@pandacss/types": "1.4.1"
41
+ "@pandacss/core": "1.4.2",
42
+ "@pandacss/is-valid-prop": "^1.4.2",
43
+ "@pandacss/logger": "1.4.2",
44
+ "@pandacss/shared": "1.4.2",
45
+ "@pandacss/token-dictionary": "1.4.2",
46
+ "@pandacss/types": "1.4.2"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@types/pluralize": "0.0.33"