@pandacss/node 0.0.0-dev-20221121161713 → 0.0.0-dev-20221121175259

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
@@ -125,10 +125,7 @@ declare function createContext(conf: LoadConfigResult, io?: IO): {
125
125
  presets?: string[] | undefined;
126
126
  preflight?: boolean | undefined;
127
127
  clean?: boolean | undefined;
128
- cssVar?: {
129
- prefix?: string | undefined;
130
- root?: string | undefined;
131
- } | undefined;
128
+ cssVarPrefix?: string | undefined;
132
129
  watch?: boolean | undefined;
133
130
  poll?: boolean | undefined;
134
131
  textStyles?: _pandacss_types.TextStyles<_pandacss_types.TCondition> | undefined;
@@ -248,10 +245,7 @@ declare class Builder {
248
245
  presets?: string[] | undefined;
249
246
  preflight?: boolean | undefined;
250
247
  clean?: boolean | undefined;
251
- cssVar?: {
252
- prefix?: string | undefined;
253
- root?: string | undefined;
254
- } | undefined;
248
+ cssVarPrefix?: string | undefined;
255
249
  watch?: boolean | undefined;
256
250
  poll?: boolean | undefined;
257
251
  textStyles?: _pandacss_types.TextStyles<_pandacss_types.TCondition> | undefined;
@@ -369,10 +363,7 @@ declare function loadConfigAndCreateContext(options?: {
369
363
  presets?: string[] | undefined;
370
364
  preflight?: boolean | undefined;
371
365
  clean?: boolean | undefined;
372
- cssVar?: {
373
- prefix?: string | undefined;
374
- root?: string | undefined;
375
- } | undefined;
366
+ cssVarPrefix?: string | undefined;
376
367
  watch?: boolean | undefined;
377
368
  poll?: boolean | undefined;
378
369
  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-20221121161713",
3
+ "version": "0.0.0-dev-20221121175259",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30,15 +30,15 @@
30
30
  "telejson": "6.0.8",
31
31
  "ts-pattern": "4.0.6",
32
32
  "ts-morph": "17.0.0",
33
- "@pandacss/types": "0.0.0-dev-20221121161713",
34
- "@pandacss/is-valid-prop": "0.0.0-dev-20221121161713",
35
- "@pandacss/error": "0.0.0-dev-20221121161713",
36
- "@pandacss/parser": "0.0.0-dev-20221121161713",
37
- "@pandacss/shared": "0.0.0-dev-20221121161713",
38
- "@pandacss/token-dictionary": "0.0.0-dev-20221121161713",
39
- "@pandacss/logger": "0.0.0-dev-20221121161713",
40
- "@pandacss/core": "0.0.0-dev-20221121161713",
41
- "@pandacss/config": "0.0.0-dev-20221121161713"
33
+ "@pandacss/types": "0.0.0-dev-20221121175259",
34
+ "@pandacss/is-valid-prop": "0.0.0-dev-20221121175259",
35
+ "@pandacss/error": "0.0.0-dev-20221121175259",
36
+ "@pandacss/parser": "0.0.0-dev-20221121175259",
37
+ "@pandacss/shared": "0.0.0-dev-20221121175259",
38
+ "@pandacss/token-dictionary": "0.0.0-dev-20221121175259",
39
+ "@pandacss/logger": "0.0.0-dev-20221121175259",
40
+ "@pandacss/core": "0.0.0-dev-20221121175259",
41
+ "@pandacss/config": "0.0.0-dev-20221121175259"
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-20221121161713"
50
+ "@pandacss/fixture": "0.0.0-dev-20221121175259"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",