@pandacss/node 0.0.0-dev-20221121163943 → 0.0.0-dev-20221122153914

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.ts CHANGED
@@ -120,15 +120,16 @@ declare function createContext(conf: LoadConfigResult, io?: IO): {
120
120
  keyframes?: _pandacss_types.Keyframes | undefined;
121
121
  minify?: boolean | undefined;
122
122
  utilities?: _pandacss_types.UtilityConfig | undefined;
123
- globalCss?: any;
123
+ globalCss?: _pandacss_types.GlobalCss<{
124
+ [x: string]: string;
125
+ }, {
126
+ __type?: "never" | undefined;
127
+ }, false> | undefined;
124
128
  logLevel?: "debug" | "info" | "warn" | "error" | "silent" | undefined;
125
129
  presets?: string[] | undefined;
126
130
  preflight?: boolean | undefined;
127
131
  clean?: boolean | undefined;
128
- cssVar?: {
129
- prefix?: string | undefined;
130
- root?: string | undefined;
131
- } | undefined;
132
+ cssVarPrefix?: string | undefined;
132
133
  watch?: boolean | undefined;
133
134
  poll?: boolean | undefined;
134
135
  textStyles?: _pandacss_types.TextStyles<_pandacss_types.TCondition> | undefined;
@@ -243,15 +244,16 @@ declare class Builder {
243
244
  keyframes?: _pandacss_types.Keyframes | undefined;
244
245
  minify?: boolean | undefined;
245
246
  utilities?: _pandacss_types.UtilityConfig | undefined;
246
- globalCss?: any;
247
+ globalCss?: _pandacss_types.GlobalCss<{
248
+ [x: string]: string;
249
+ }, {
250
+ __type?: "never" | undefined;
251
+ }, false> | undefined;
247
252
  logLevel?: "debug" | "info" | "warn" | "error" | "silent" | undefined;
248
253
  presets?: string[] | undefined;
249
254
  preflight?: boolean | undefined;
250
255
  clean?: boolean | undefined;
251
- cssVar?: {
252
- prefix?: string | undefined;
253
- root?: string | undefined;
254
- } | undefined;
256
+ cssVarPrefix?: string | undefined;
255
257
  watch?: boolean | undefined;
256
258
  poll?: boolean | undefined;
257
259
  textStyles?: _pandacss_types.TextStyles<_pandacss_types.TCondition> | undefined;
@@ -364,15 +366,16 @@ declare function loadConfigAndCreateContext(options?: {
364
366
  keyframes?: _pandacss_types.Keyframes | undefined;
365
367
  minify?: boolean | undefined;
366
368
  utilities?: _pandacss_types.UtilityConfig | undefined;
367
- globalCss?: any;
369
+ globalCss?: _pandacss_types.GlobalCss<{
370
+ [x: string]: string;
371
+ }, {
372
+ __type?: "never" | undefined;
373
+ }, false> | undefined;
368
374
  logLevel?: "debug" | "info" | "warn" | "error" | "silent" | undefined;
369
375
  presets?: string[] | undefined;
370
376
  preflight?: boolean | undefined;
371
377
  clean?: boolean | undefined;
372
- cssVar?: {
373
- prefix?: string | undefined;
374
- root?: string | undefined;
375
- } | undefined;
378
+ cssVarPrefix?: string | undefined;
376
379
  watch?: boolean | undefined;
377
380
  poll?: boolean | undefined;
378
381
  textStyles?: _pandacss_types.TextStyles<_pandacss_types.TCondition> | undefined;
package/dist/index.js CHANGED
@@ -3031,14 +3031,15 @@ var fileSystem = {
3031
3031
  function createContext(conf, io = fileSystem) {
3032
3032
  const { config } = conf;
3033
3033
  const {
3034
- cwd: _cwd = process.cwd(),
3034
+ cwd: cwdProp = process.cwd(),
3035
3035
  breakpoints = {},
3036
- conditions: _conditions = {},
3037
- tokens: _tokens = {},
3036
+ conditions: conditionsProp = {},
3037
+ tokens: tokensProp = {},
3038
3038
  semanticTokens = {},
3039
- cssVar,
3039
+ cssVarPrefix,
3040
+ cssVarRoot = ":where(:root, :host)",
3040
3041
  outdir,
3041
- exclude: _exclude = [],
3042
+ exclude: excludeProp = [],
3042
3043
  patterns = {},
3043
3044
  recipes = {},
3044
3045
  utilities = {},
@@ -3050,12 +3051,12 @@ function createContext(conf, io = fileSystem) {
3050
3051
  globalCss,
3051
3052
  separator
3052
3053
  } = config;
3053
- const cwd = (0, import_path3.resolve)(_cwd);
3054
- const exclude = [".git", "node_modules", "test-results"].concat(_exclude);
3054
+ const cwd = (0, import_path3.resolve)(cwdProp);
3055
+ const exclude = [".git", "node_modules", "test-results"].concat(excludeProp);
3055
3056
  const tokens = new import_token_dictionary.TokenDictionary({
3056
- tokens: _tokens,
3057
+ tokens: tokensProp,
3057
3058
  semanticTokens,
3058
- prefix: cssVar?.prefix
3059
+ prefix: cssVarPrefix
3059
3060
  });
3060
3061
  const utility = new import_core3.Utility({
3061
3062
  tokens,
@@ -3063,7 +3064,7 @@ function createContext(conf, io = fileSystem) {
3063
3064
  separator
3064
3065
  });
3065
3066
  const conditions = new import_core3.Conditions({
3066
- conditions: _conditions,
3067
+ conditions: conditionsProp,
3067
3068
  breakpoints
3068
3069
  });
3069
3070
  (0, import_core3.assignCompositions)(
@@ -3316,7 +3317,7 @@ function createContext(conf, io = fileSystem) {
3316
3317
  hasRecipes: Object.keys(recipes).length > 0,
3317
3318
  jsxFramework,
3318
3319
  jsxFactory,
3319
- cssVarRoot: config.cssVar?.root ?? ":where(:root, :host)",
3320
+ cssVarRoot,
3320
3321
  properties,
3321
3322
  isProperty,
3322
3323
  extract
package/dist/index.mjs CHANGED
@@ -3014,14 +3014,15 @@ var fileSystem = {
3014
3014
  function createContext(conf, io = fileSystem) {
3015
3015
  const { config } = conf;
3016
3016
  const {
3017
- cwd: _cwd = process.cwd(),
3017
+ cwd: cwdProp = process.cwd(),
3018
3018
  breakpoints = {},
3019
- conditions: _conditions = {},
3020
- tokens: _tokens = {},
3019
+ conditions: conditionsProp = {},
3020
+ tokens: tokensProp = {},
3021
3021
  semanticTokens = {},
3022
- cssVar,
3022
+ cssVarPrefix,
3023
+ cssVarRoot = ":where(:root, :host)",
3023
3024
  outdir,
3024
- exclude: _exclude = [],
3025
+ exclude: excludeProp = [],
3025
3026
  patterns = {},
3026
3027
  recipes = {},
3027
3028
  utilities = {},
@@ -3033,12 +3034,12 @@ function createContext(conf, io = fileSystem) {
3033
3034
  globalCss,
3034
3035
  separator
3035
3036
  } = config;
3036
- const cwd = resolve(_cwd);
3037
- const exclude = [".git", "node_modules", "test-results"].concat(_exclude);
3037
+ const cwd = resolve(cwdProp);
3038
+ const exclude = [".git", "node_modules", "test-results"].concat(excludeProp);
3038
3039
  const tokens = new TokenDictionary({
3039
- tokens: _tokens,
3040
+ tokens: tokensProp,
3040
3041
  semanticTokens,
3041
- prefix: cssVar?.prefix
3042
+ prefix: cssVarPrefix
3042
3043
  });
3043
3044
  const utility = new Utility({
3044
3045
  tokens,
@@ -3046,7 +3047,7 @@ function createContext(conf, io = fileSystem) {
3046
3047
  separator
3047
3048
  });
3048
3049
  const conditions = new Conditions({
3049
- conditions: _conditions,
3050
+ conditions: conditionsProp,
3050
3051
  breakpoints
3051
3052
  });
3052
3053
  assignCompositions(
@@ -3299,7 +3300,7 @@ function createContext(conf, io = fileSystem) {
3299
3300
  hasRecipes: Object.keys(recipes).length > 0,
3300
3301
  jsxFramework,
3301
3302
  jsxFactory,
3302
- cssVarRoot: config.cssVar?.root ?? ":where(:root, :host)",
3303
+ cssVarRoot,
3303
3304
  properties,
3304
3305
  isProperty,
3305
3306
  extract
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20221121163943",
3
+ "version": "0.0.0-dev-20221122153914",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -29,16 +29,16 @@
29
29
  "pluralize": "8.0.0",
30
30
  "telejson": "6.0.8",
31
31
  "ts-pattern": "4.0.6",
32
- "ts-morph": "17.0.0",
33
- "@pandacss/types": "0.0.0-dev-20221121163943",
34
- "@pandacss/is-valid-prop": "0.0.0-dev-20221121163943",
35
- "@pandacss/error": "0.0.0-dev-20221121163943",
36
- "@pandacss/parser": "0.0.0-dev-20221121163943",
37
- "@pandacss/shared": "0.0.0-dev-20221121163943",
38
- "@pandacss/token-dictionary": "0.0.0-dev-20221121163943",
39
- "@pandacss/logger": "0.0.0-dev-20221121163943",
40
- "@pandacss/core": "0.0.0-dev-20221121163943",
41
- "@pandacss/config": "0.0.0-dev-20221121163943"
32
+ "ts-morph": "17.0.1",
33
+ "@pandacss/types": "0.0.0-dev-20221122153914",
34
+ "@pandacss/is-valid-prop": "0.0.0-dev-20221122153914",
35
+ "@pandacss/error": "0.0.0-dev-20221122153914",
36
+ "@pandacss/parser": "0.0.0-dev-20221122153914",
37
+ "@pandacss/shared": "0.0.0-dev-20221122153914",
38
+ "@pandacss/token-dictionary": "0.0.0-dev-20221122153914",
39
+ "@pandacss/logger": "0.0.0-dev-20221122153914",
40
+ "@pandacss/core": "0.0.0-dev-20221122153914",
41
+ "@pandacss/config": "0.0.0-dev-20221122153914"
42
42
  },
43
43
  "devDependencies": {
44
44
  "boxen": "^7.0.0",
@@ -47,7 +47,7 @@
47
47
  "@types/glob-parent": "^5.1.1",
48
48
  "@types/pluralize": "0.0.29",
49
49
  "@types/lodash.merge": "4.6.7",
50
- "@pandacss/fixture": "0.0.0-dev-20221121163943"
50
+ "@pandacss/fixture": "0.0.0-dev-20221122153914"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",