@pandacss/node 0.25.0 → 0.26.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.
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -15
- package/dist/index.mjs +2 -13
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -228,7 +228,6 @@ declare class Builder {
|
|
|
228
228
|
extractFile: (ctx: PandaContext, file: string) => _pandacss_parser.ParserResult | undefined;
|
|
229
229
|
extract: () => void;
|
|
230
230
|
isValidRoot: (root: Root) => boolean;
|
|
231
|
-
private initialRoot;
|
|
232
231
|
write: (root: Root) => void;
|
|
233
232
|
registerDependency: (fn: (dep: Message) => void) => void;
|
|
234
233
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -228,7 +228,6 @@ declare class Builder {
|
|
|
228
228
|
extractFile: (ctx: PandaContext, file: string) => _pandacss_parser.ParserResult | undefined;
|
|
229
229
|
extract: () => void;
|
|
230
230
|
isValidRoot: (root: Root) => boolean;
|
|
231
|
-
private initialRoot;
|
|
232
231
|
write: (root: Root) => void;
|
|
233
232
|
registerDependency: (fn: (dep: Message) => void) => void;
|
|
234
233
|
}
|
package/dist/index.js
CHANGED
|
@@ -2529,7 +2529,6 @@ async function loadConfigAndCreateContext(options = {}) {
|
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
|
-
conf.config.outdir ??= "styled-system";
|
|
2533
2532
|
const hooks = (0, import_hookable.createHooks)();
|
|
2534
2533
|
if (conf.config.hooks) {
|
|
2535
2534
|
hooks.addHooks(conf.config.hooks);
|
|
@@ -2707,23 +2706,13 @@ var Builder = class {
|
|
|
2707
2706
|
});
|
|
2708
2707
|
return valid;
|
|
2709
2708
|
};
|
|
2710
|
-
initialRoot;
|
|
2711
2709
|
write = (root) => {
|
|
2712
|
-
if (!this.initialRoot) {
|
|
2713
|
-
this.initialRoot = root.toString();
|
|
2714
|
-
}
|
|
2715
|
-
root.removeAll();
|
|
2716
2710
|
const ctx = this.getContextOrThrow();
|
|
2717
2711
|
const sheet = ctx.createSheet();
|
|
2718
2712
|
ctx.appendBaselineCss(sheet);
|
|
2719
2713
|
ctx.appendParserCss(sheet);
|
|
2720
2714
|
const css = ctx.getCss(sheet);
|
|
2721
|
-
root.append(
|
|
2722
|
-
(0, import_core.optimizeCss)(`
|
|
2723
|
-
${this.initialRoot}
|
|
2724
|
-
${css}
|
|
2725
|
-
`)
|
|
2726
|
-
);
|
|
2715
|
+
root.append((0, import_core.optimizeCss)(css));
|
|
2727
2716
|
};
|
|
2728
2717
|
registerDependency = (fn) => {
|
|
2729
2718
|
const ctx = this.getContextOrThrow();
|
|
@@ -2930,7 +2919,7 @@ function setupGitIgnore(ctx) {
|
|
|
2930
2919
|
// src/setup-config.ts
|
|
2931
2920
|
init_cjs_shims();
|
|
2932
2921
|
var import_config6 = require("@pandacss/config");
|
|
2933
|
-
var
|
|
2922
|
+
var import_core2 = require("@pandacss/core");
|
|
2934
2923
|
var import_logger10 = require("@pandacss/logger");
|
|
2935
2924
|
var import_fs_extra2 = __toESM(require("fs-extra"));
|
|
2936
2925
|
var import_look_it_up2 = require("look-it-up");
|
|
@@ -2948,7 +2937,7 @@ async function setupConfig(cwd, opts = {}) {
|
|
|
2948
2937
|
const file = isTs ? "panda.config.ts" : "panda.config.mjs";
|
|
2949
2938
|
import_logger10.logger.info("init:config", `creating panda config file: ${(0, import_logger10.quote)(file)}`);
|
|
2950
2939
|
if (!force && configFile) {
|
|
2951
|
-
import_logger10.logger.warn("init:config",
|
|
2940
|
+
import_logger10.logger.warn("init:config", import_core2.messages.configExists(cmd));
|
|
2952
2941
|
} else {
|
|
2953
2942
|
const content = import_outdent2.outdent`
|
|
2954
2943
|
import { defineConfig } from "@pandacss/dev"
|
|
@@ -2981,7 +2970,7 @@ syntax: '${syntax}'` : ""}
|
|
|
2981
2970
|
})
|
|
2982
2971
|
`;
|
|
2983
2972
|
await import_fs_extra2.default.writeFile((0, import_pathe5.join)(cwd, file), import_prettier.default.format(content));
|
|
2984
|
-
import_logger10.logger.log(
|
|
2973
|
+
import_logger10.logger.log(import_core2.messages.thankYou());
|
|
2985
2974
|
}
|
|
2986
2975
|
}
|
|
2987
2976
|
async function setupPostcss(cwd) {
|
package/dist/index.mjs
CHANGED
|
@@ -2505,7 +2505,6 @@ async function loadConfigAndCreateContext(options = {}) {
|
|
|
2505
2505
|
};
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
2508
|
-
conf.config.outdir ??= "styled-system";
|
|
2509
2508
|
const hooks = createHooks();
|
|
2510
2509
|
if (conf.config.hooks) {
|
|
2511
2510
|
hooks.addHooks(conf.config.hooks);
|
|
@@ -2683,23 +2682,13 @@ var Builder = class {
|
|
|
2683
2682
|
});
|
|
2684
2683
|
return valid;
|
|
2685
2684
|
};
|
|
2686
|
-
initialRoot;
|
|
2687
2685
|
write = (root) => {
|
|
2688
|
-
if (!this.initialRoot) {
|
|
2689
|
-
this.initialRoot = root.toString();
|
|
2690
|
-
}
|
|
2691
|
-
root.removeAll();
|
|
2692
2686
|
const ctx = this.getContextOrThrow();
|
|
2693
2687
|
const sheet = ctx.createSheet();
|
|
2694
2688
|
ctx.appendBaselineCss(sheet);
|
|
2695
2689
|
ctx.appendParserCss(sheet);
|
|
2696
2690
|
const css = ctx.getCss(sheet);
|
|
2697
|
-
root.append(
|
|
2698
|
-
optimizeCss(`
|
|
2699
|
-
${this.initialRoot}
|
|
2700
|
-
${css}
|
|
2701
|
-
`)
|
|
2702
|
-
);
|
|
2691
|
+
root.append(optimizeCss(css));
|
|
2703
2692
|
};
|
|
2704
2693
|
registerDependency = (fn) => {
|
|
2705
2694
|
const ctx = this.getContextOrThrow();
|
|
@@ -2906,7 +2895,7 @@ function setupGitIgnore(ctx) {
|
|
|
2906
2895
|
// src/setup-config.ts
|
|
2907
2896
|
init_esm_shims();
|
|
2908
2897
|
import { findConfig as findConfig2 } from "@pandacss/config";
|
|
2909
|
-
import { messages } from "@pandacss/
|
|
2898
|
+
import { messages } from "@pandacss/core";
|
|
2910
2899
|
import { logger as logger10, quote } from "@pandacss/logger";
|
|
2911
2900
|
import fsExtra2 from "fs-extra";
|
|
2912
2901
|
import { lookItUpSync as lookItUpSync2 } from "look-it-up";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
"ts-morph": "19.0.0",
|
|
54
54
|
"ts-pattern": "5.0.5",
|
|
55
55
|
"tsconfck": "^2.1.2",
|
|
56
|
-
"@pandacss/config": "0.
|
|
57
|
-
"@pandacss/core": "0.
|
|
58
|
-
"@pandacss/error": "0.
|
|
59
|
-
"@pandacss/
|
|
60
|
-
"@pandacss/
|
|
61
|
-
"@pandacss/
|
|
62
|
-
"@pandacss/
|
|
63
|
-
"@pandacss/
|
|
64
|
-
"@pandacss/
|
|
65
|
-
"@pandacss/
|
|
56
|
+
"@pandacss/config": "0.26.0",
|
|
57
|
+
"@pandacss/core": "0.26.0",
|
|
58
|
+
"@pandacss/error": "0.26.0",
|
|
59
|
+
"@pandacss/extractor": "0.26.0",
|
|
60
|
+
"@pandacss/generator": "0.26.0",
|
|
61
|
+
"@pandacss/logger": "0.26.0",
|
|
62
|
+
"@pandacss/parser": "0.26.0",
|
|
63
|
+
"@pandacss/shared": "0.26.0",
|
|
64
|
+
"@pandacss/token-dictionary": "0.26.0",
|
|
65
|
+
"@pandacss/types": "0.26.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/fs-extra": "11.0.4",
|