@pandacss/node 0.0.0-dev-20221126091729 → 0.0.0-dev-20221126121755
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 +22 -15
- package/dist/index.mjs +22 -15
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -160,7 +160,7 @@ function generateConditions(ctx) {
|
|
|
160
160
|
var import_outdent2 = require("outdent");
|
|
161
161
|
var stringify = (v) => JSON.stringify(Object.fromEntries(v), null, 2);
|
|
162
162
|
function generateCssFn(ctx) {
|
|
163
|
-
const { utility, hash } = ctx;
|
|
163
|
+
const { utility, hash, conditions } = ctx;
|
|
164
164
|
const { separator } = utility;
|
|
165
165
|
return {
|
|
166
166
|
dts: import_outdent2.outdent`
|
|
@@ -172,7 +172,10 @@ function generateCssFn(ctx) {
|
|
|
172
172
|
import { sortConditions, finalizeConditions } from "./conditions"
|
|
173
173
|
|
|
174
174
|
const classNameMap = ${stringify(utility.entries())}
|
|
175
|
+
|
|
175
176
|
const shorthands = ${stringify(utility.shorthands)}
|
|
177
|
+
|
|
178
|
+
const breakpointKeys = ${JSON.stringify(conditions.breakpoints.keys)}
|
|
176
179
|
|
|
177
180
|
const hasShorthand = ${utility.hasShorthand ? "true" : "false"}
|
|
178
181
|
|
|
@@ -186,11 +189,17 @@ function generateCssFn(ctx) {
|
|
|
186
189
|
}
|
|
187
190
|
|
|
188
191
|
const context = {
|
|
189
|
-
transform,
|
|
190
|
-
conditions: { shift: sortConditions, finalize: finalizeConditions },
|
|
191
192
|
hash: ${hash ? "true" : "false"},
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
conditions: {
|
|
194
|
+
shift: sortConditions,
|
|
195
|
+
finalize: finalizeConditions,
|
|
196
|
+
breakpoints: { keys: breakpointKeys }
|
|
197
|
+
},
|
|
198
|
+
utility: {
|
|
199
|
+
transform,
|
|
200
|
+
hasShorthand,
|
|
201
|
+
resolveShorthand,
|
|
202
|
+
}
|
|
194
203
|
}
|
|
195
204
|
|
|
196
205
|
export const css = createCss(context)
|
|
@@ -987,7 +996,13 @@ function generateRecipes(ctx) {
|
|
|
987
996
|
return { className: \`\${name}--\${prop}${separator}\${value}\` }
|
|
988
997
|
}
|
|
989
998
|
|
|
990
|
-
const context =
|
|
999
|
+
const context = {
|
|
1000
|
+
hash: ${hash ? "true" : "false"},
|
|
1001
|
+
utility: {
|
|
1002
|
+
transform,
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
991
1006
|
const css = createCss(context)
|
|
992
1007
|
|
|
993
1008
|
return css({ [name]: '__ignore__' , ...styles })
|
|
@@ -1645,18 +1660,10 @@ function createContext(conf, io = fileSystem) {
|
|
|
1645
1660
|
);
|
|
1646
1661
|
const context = () => ({
|
|
1647
1662
|
root: import_postcss.default.root(),
|
|
1648
|
-
breakpoints,
|
|
1649
1663
|
conditions,
|
|
1650
1664
|
hash,
|
|
1651
1665
|
helpers,
|
|
1652
|
-
utility
|
|
1653
|
-
hasShorthand: utility.hasShorthand,
|
|
1654
|
-
resolveShorthand(prop) {
|
|
1655
|
-
return utility.resolveShorthand(prop);
|
|
1656
|
-
},
|
|
1657
|
-
transform(prop, value) {
|
|
1658
|
-
return utility.resolve(prop, value);
|
|
1659
|
-
}
|
|
1666
|
+
utility
|
|
1660
1667
|
});
|
|
1661
1668
|
const patternExclude = ["layoutGrid"];
|
|
1662
1669
|
function getPattern(name) {
|
package/dist/index.mjs
CHANGED
|
@@ -115,7 +115,7 @@ function generateConditions(ctx) {
|
|
|
115
115
|
import { outdent as outdent2 } from "outdent";
|
|
116
116
|
var stringify = (v) => JSON.stringify(Object.fromEntries(v), null, 2);
|
|
117
117
|
function generateCssFn(ctx) {
|
|
118
|
-
const { utility, hash } = ctx;
|
|
118
|
+
const { utility, hash, conditions } = ctx;
|
|
119
119
|
const { separator } = utility;
|
|
120
120
|
return {
|
|
121
121
|
dts: outdent2`
|
|
@@ -127,7 +127,10 @@ function generateCssFn(ctx) {
|
|
|
127
127
|
import { sortConditions, finalizeConditions } from "./conditions"
|
|
128
128
|
|
|
129
129
|
const classNameMap = ${stringify(utility.entries())}
|
|
130
|
+
|
|
130
131
|
const shorthands = ${stringify(utility.shorthands)}
|
|
132
|
+
|
|
133
|
+
const breakpointKeys = ${JSON.stringify(conditions.breakpoints.keys)}
|
|
131
134
|
|
|
132
135
|
const hasShorthand = ${utility.hasShorthand ? "true" : "false"}
|
|
133
136
|
|
|
@@ -141,11 +144,17 @@ function generateCssFn(ctx) {
|
|
|
141
144
|
}
|
|
142
145
|
|
|
143
146
|
const context = {
|
|
144
|
-
transform,
|
|
145
|
-
conditions: { shift: sortConditions, finalize: finalizeConditions },
|
|
146
147
|
hash: ${hash ? "true" : "false"},
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
conditions: {
|
|
149
|
+
shift: sortConditions,
|
|
150
|
+
finalize: finalizeConditions,
|
|
151
|
+
breakpoints: { keys: breakpointKeys }
|
|
152
|
+
},
|
|
153
|
+
utility: {
|
|
154
|
+
transform,
|
|
155
|
+
hasShorthand,
|
|
156
|
+
resolveShorthand,
|
|
157
|
+
}
|
|
149
158
|
}
|
|
150
159
|
|
|
151
160
|
export const css = createCss(context)
|
|
@@ -942,7 +951,13 @@ function generateRecipes(ctx) {
|
|
|
942
951
|
return { className: \`\${name}--\${prop}${separator}\${value}\` }
|
|
943
952
|
}
|
|
944
953
|
|
|
945
|
-
const context =
|
|
954
|
+
const context = {
|
|
955
|
+
hash: ${hash ? "true" : "false"},
|
|
956
|
+
utility: {
|
|
957
|
+
transform,
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
|
|
946
961
|
const css = createCss(context)
|
|
947
962
|
|
|
948
963
|
return css({ [name]: '__ignore__' , ...styles })
|
|
@@ -1606,18 +1621,10 @@ function createContext(conf, io = fileSystem) {
|
|
|
1606
1621
|
);
|
|
1607
1622
|
const context = () => ({
|
|
1608
1623
|
root: postcss.root(),
|
|
1609
|
-
breakpoints,
|
|
1610
1624
|
conditions,
|
|
1611
1625
|
hash,
|
|
1612
1626
|
helpers,
|
|
1613
|
-
utility
|
|
1614
|
-
hasShorthand: utility.hasShorthand,
|
|
1615
|
-
resolveShorthand(prop) {
|
|
1616
|
-
return utility.resolveShorthand(prop);
|
|
1617
|
-
},
|
|
1618
|
-
transform(prop, value) {
|
|
1619
|
-
return utility.resolve(prop, value);
|
|
1620
|
-
}
|
|
1627
|
+
utility
|
|
1621
1628
|
});
|
|
1622
1629
|
const patternExclude = ["layoutGrid"];
|
|
1623
1630
|
function getPattern(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-20221126121755",
|
|
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-20221126121755",
|
|
34
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20221126121755",
|
|
35
|
+
"@pandacss/error": "0.0.0-dev-20221126121755",
|
|
36
|
+
"@pandacss/parser": "0.0.0-dev-20221126121755",
|
|
37
|
+
"@pandacss/shared": "0.0.0-dev-20221126121755",
|
|
38
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20221126121755",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20221126121755",
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20221126121755",
|
|
41
|
+
"@pandacss/config": "0.0.0-dev-20221126121755"
|
|
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-20221126121755"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|