@pandacss/node 0.47.1 → 0.48.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.
package/dist/index.js CHANGED
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.47_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.9.2_postcss@8.4.49_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.47_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.9.2_postcss@8.4.49_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
@@ -432,7 +432,7 @@ var import_node_path = __toESM(require("path"));
432
432
  var import_zlib = __toESM(require("zlib"));
433
433
 
434
434
  // package.json
435
- var version = "0.47.1";
435
+ var version = "0.48.1";
436
436
 
437
437
  // src/classify.ts
438
438
  init_cjs_shims();
@@ -873,8 +873,12 @@ var import_logger2 = require("@pandacss/logger");
873
873
  async function buildInfo(ctx, outfile) {
874
874
  const { filesWithCss, files } = ctx.parseFiles();
875
875
  import_logger2.logger.info("cli", `Found ${import_logger2.colors.bold(`${filesWithCss.length}/${files.length}`)} files using Panda`);
876
- const minify = ctx.config.minify;
876
+ const { minify, staticCss } = ctx.config;
877
877
  import_logger2.logger.info("cli", `Writing ${minify ? "[min] " : " "}${import_logger2.colors.bold(outfile)}`);
878
+ if (staticCss) {
879
+ import_logger2.logger.info("cli", "Adding staticCss definitions...");
880
+ ctx.staticCss.process(staticCss);
881
+ }
878
882
  const output = JSON.stringify(ctx.encoder.toJSON(), null, minify ? 0 : 2);
879
883
  ctx.output.ensure(outfile, process.cwd());
880
884
  await ctx.runtime.fs.writeFile(outfile, output);
@@ -1055,12 +1059,13 @@ init_cjs_shims();
1055
1059
  // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
1056
1060
  init_cjs_shims();
1057
1061
 
1058
- // ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
1062
+ // ../../node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
1059
1063
  init_cjs_shims();
1060
1064
  function ansiRegex({ onlyFirst = false } = {}) {
1065
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
1061
1066
  const pattern = [
1062
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
1063
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
1067
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
1068
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
1064
1069
  ].join("|");
1065
1070
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
1066
1071
  }
package/dist/index.mjs CHANGED
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
 
30
- // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.47_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.9.2_postcss@8.4.49_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
31
31
  var init_esm_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.47_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
32
+ "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.9.2_postcss@8.4.49_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
@@ -406,7 +406,7 @@ import path from "node:path";
406
406
  import zlib from "zlib";
407
407
 
408
408
  // package.json
409
- var version = "0.47.1";
409
+ var version = "0.48.1";
410
410
 
411
411
  // src/classify.ts
412
412
  init_esm_shims();
@@ -847,8 +847,12 @@ import { colors, logger as logger2 } from "@pandacss/logger";
847
847
  async function buildInfo(ctx, outfile) {
848
848
  const { filesWithCss, files } = ctx.parseFiles();
849
849
  logger2.info("cli", `Found ${colors.bold(`${filesWithCss.length}/${files.length}`)} files using Panda`);
850
- const minify = ctx.config.minify;
850
+ const { minify, staticCss } = ctx.config;
851
851
  logger2.info("cli", `Writing ${minify ? "[min] " : " "}${colors.bold(outfile)}`);
852
+ if (staticCss) {
853
+ logger2.info("cli", "Adding staticCss definitions...");
854
+ ctx.staticCss.process(staticCss);
855
+ }
852
856
  const output = JSON.stringify(ctx.encoder.toJSON(), null, minify ? 0 : 2);
853
857
  ctx.output.ensure(outfile, process.cwd());
854
858
  await ctx.runtime.fs.writeFile(outfile, output);
@@ -1029,12 +1033,13 @@ init_esm_shims();
1029
1033
  // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
1030
1034
  init_esm_shims();
1031
1035
 
1032
- // ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
1036
+ // ../../node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
1033
1037
  init_esm_shims();
1034
1038
  function ansiRegex({ onlyFirst = false } = {}) {
1039
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
1035
1040
  const pattern = [
1036
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
1037
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
1041
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
1042
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
1038
1043
  ].join("|");
1039
1044
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
1040
1045
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.47.1",
3
+ "version": "0.48.1",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -47,20 +47,20 @@
47
47
  "perfect-debounce": "1.0.0",
48
48
  "pkg-types": "1.0.3",
49
49
  "pluralize": "8.0.0",
50
- "postcss": "8.4.47",
50
+ "postcss": "8.4.49",
51
51
  "prettier": "3.2.5",
52
52
  "ts-morph": "21.0.1",
53
53
  "ts-pattern": "5.0.8",
54
54
  "tsconfck": "3.0.2",
55
- "@pandacss/config": "0.47.1",
56
- "@pandacss/core": "0.47.1",
57
- "@pandacss/extractor": "0.47.1",
58
- "@pandacss/generator": "0.47.1",
59
- "@pandacss/logger": "0.47.1",
60
- "@pandacss/parser": "0.47.1",
61
- "@pandacss/shared": "0.47.1",
62
- "@pandacss/token-dictionary": "0.47.1",
63
- "@pandacss/types": "0.47.1"
55
+ "@pandacss/config": "0.48.1",
56
+ "@pandacss/core": "0.48.1",
57
+ "@pandacss/extractor": "0.48.1",
58
+ "@pandacss/generator": "0.48.1",
59
+ "@pandacss/logger": "0.48.1",
60
+ "@pandacss/parser": "0.48.1",
61
+ "@pandacss/shared": "0.48.1",
62
+ "@pandacss/token-dictionary": "0.48.1",
63
+ "@pandacss/types": "0.48.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/fs-extra": "11.0.4",