@pandacss/node 0.0.0-dev-20221124151316 → 0.0.0-dev-20221124153151
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 +5 -5
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as _pandacss_types_dist_recipe from '@pandacss/types/dist/recipe';
|
|
|
7
7
|
import * as _pandacss_types_dist_system_types from '@pandacss/types/dist/system-types';
|
|
8
8
|
import * as ts_morph from 'ts-morph';
|
|
9
9
|
import * as _pandacss_types from '@pandacss/types';
|
|
10
|
-
import { RecipeConfig, Config } from '@pandacss/types';
|
|
10
|
+
import { PatternConfig, RecipeConfig, Config } from '@pandacss/types';
|
|
11
11
|
import * as _pandacss_parser from '@pandacss/parser';
|
|
12
12
|
import { Collector } from '@pandacss/parser';
|
|
13
13
|
import * as _pandacss_config from '@pandacss/config';
|
|
@@ -87,9 +87,9 @@ declare function createContext(conf: LoadConfigResult, io?: IO): {
|
|
|
87
87
|
css: string;
|
|
88
88
|
file: string;
|
|
89
89
|
} | undefined;
|
|
90
|
-
patterns: Record<string,
|
|
90
|
+
patterns: Record<string, PatternConfig>;
|
|
91
91
|
hasPattern: boolean;
|
|
92
|
-
getPattern: (name: string) =>
|
|
92
|
+
getPattern: (name: string) => PatternConfig | undefined;
|
|
93
93
|
execPattern: (name: string, data: Record<string, any>) => _pandacss_types.StyleObject<_pandacss_types_dist_system_types.TCondition, _pandacss_types_dist_system_types.NeverType, false>;
|
|
94
94
|
patternNodes: {
|
|
95
95
|
name: string;
|
|
@@ -205,7 +205,7 @@ declare class Builder {
|
|
|
205
205
|
} | undefined;
|
|
206
206
|
patterns: Record<string, _pandacss_types.PatternConfig>;
|
|
207
207
|
hasPattern: boolean;
|
|
208
|
-
getPattern: (name: string) => _pandacss_types.PatternConfig;
|
|
208
|
+
getPattern: (name: string) => _pandacss_types.PatternConfig | undefined;
|
|
209
209
|
execPattern: (name: string, data: Record<string, any>) => _pandacss_types.StyleObject<_pandacss_types_dist_system_types.TCondition, _pandacss_types_dist_system_types.NeverType, false>;
|
|
210
210
|
patternNodes: {
|
|
211
211
|
name: string;
|
|
@@ -319,7 +319,7 @@ declare function loadConfigAndCreateContext(options?: {
|
|
|
319
319
|
} | undefined;
|
|
320
320
|
patterns: Record<string, _pandacss_types.PatternConfig>;
|
|
321
321
|
hasPattern: boolean;
|
|
322
|
-
getPattern: (name: string) => _pandacss_types.PatternConfig;
|
|
322
|
+
getPattern: (name: string) => _pandacss_types.PatternConfig | undefined;
|
|
323
323
|
execPattern: (name: string, data: Record<string, any>) => _pandacss_types.StyleObject<_pandacss_types_dist_system_types.TCondition, _pandacss_types_dist_system_types.NeverType, false>;
|
|
324
324
|
patternNodes: {
|
|
325
325
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -1641,16 +1641,17 @@ function createContext(conf, io = fileSystem) {
|
|
|
1641
1641
|
return utility.resolve(prop, value);
|
|
1642
1642
|
}
|
|
1643
1643
|
});
|
|
1644
|
+
const patternExclude = ["layoutGrid"];
|
|
1644
1645
|
function getPattern(name) {
|
|
1645
1646
|
const pattern = patterns[name];
|
|
1646
|
-
if (!pattern) {
|
|
1647
|
+
if (!pattern && !patternExclude.includes(name)) {
|
|
1647
1648
|
throw new import_error.NotFoundError({ type: "pattern", name });
|
|
1648
1649
|
}
|
|
1649
1650
|
return pattern;
|
|
1650
1651
|
}
|
|
1651
1652
|
function execPattern(name, data) {
|
|
1652
1653
|
const pattern = getPattern(name);
|
|
1653
|
-
return pattern
|
|
1654
|
+
return pattern?.transform?.(data, helpers) ?? {};
|
|
1654
1655
|
}
|
|
1655
1656
|
const patternNodes = Object.entries(patterns).map(([name, pattern]) => ({
|
|
1656
1657
|
name: pattern.jsx ?? (0, import_shared11.capitalize)(name),
|
package/dist/index.mjs
CHANGED
|
@@ -1602,16 +1602,17 @@ function createContext(conf, io = fileSystem) {
|
|
|
1602
1602
|
return utility.resolve(prop, value);
|
|
1603
1603
|
}
|
|
1604
1604
|
});
|
|
1605
|
+
const patternExclude = ["layoutGrid"];
|
|
1605
1606
|
function getPattern(name) {
|
|
1606
1607
|
const pattern = patterns[name];
|
|
1607
|
-
if (!pattern) {
|
|
1608
|
+
if (!pattern && !patternExclude.includes(name)) {
|
|
1608
1609
|
throw new NotFoundError({ type: "pattern", name });
|
|
1609
1610
|
}
|
|
1610
1611
|
return pattern;
|
|
1611
1612
|
}
|
|
1612
1613
|
function execPattern(name, data) {
|
|
1613
1614
|
const pattern = getPattern(name);
|
|
1614
|
-
return pattern
|
|
1615
|
+
return pattern?.transform?.(data, helpers) ?? {};
|
|
1615
1616
|
}
|
|
1616
1617
|
const patternNodes = Object.entries(patterns).map(([name, pattern]) => ({
|
|
1617
1618
|
name: pattern.jsx ?? capitalize10(name),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20221124153151",
|
|
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.1",
|
|
33
|
-
"@pandacss/types": "0.0.0-dev-
|
|
34
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
35
|
-
"@pandacss/error": "0.0.0-dev-
|
|
36
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
37
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
38
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/core": "0.0.0-dev-
|
|
41
|
-
"@pandacss/config": "0.0.0-dev-
|
|
33
|
+
"@pandacss/types": "0.0.0-dev-20221124153151",
|
|
34
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20221124153151",
|
|
35
|
+
"@pandacss/error": "0.0.0-dev-20221124153151",
|
|
36
|
+
"@pandacss/parser": "0.0.0-dev-20221124153151",
|
|
37
|
+
"@pandacss/shared": "0.0.0-dev-20221124153151",
|
|
38
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20221124153151",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20221124153151",
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20221124153151",
|
|
41
|
+
"@pandacss/config": "0.0.0-dev-20221124153151"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/fs-extra": "9.0.13",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/glob-parent": "^5.1.1",
|
|
47
47
|
"@types/pluralize": "0.0.29",
|
|
48
48
|
"@types/lodash.merge": "4.6.7",
|
|
49
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
49
|
+
"@pandacss/fixture": "0.0.0-dev-20221124153151"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|