@pandacss/node 0.0.0-dev-20230207095721 → 0.0.0-dev-20230208150234
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 +39 -3
- package/dist/index.mjs +39 -3
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -24,14 +24,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
24
24
|
return to;
|
|
25
25
|
};
|
|
26
26
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
27
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
28
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
29
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
31
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
32
|
mod
|
|
29
33
|
));
|
|
30
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
35
|
|
|
32
|
-
// ../../node_modules/.pnpm/tsup@6.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@6.6.0_typescript@4.9.5/node_modules/tsup/assets/cjs_shims.js
|
|
33
37
|
var init_cjs_shims = __esm({
|
|
34
|
-
"../../node_modules/.pnpm/tsup@6.
|
|
38
|
+
"../../node_modules/.pnpm/tsup@6.6.0_typescript@4.9.5/node_modules/tsup/assets/cjs_shims.js"() {
|
|
35
39
|
}
|
|
36
40
|
});
|
|
37
41
|
|
|
@@ -265,7 +269,22 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
265
269
|
if (Number.isNaN(codePoint)) {
|
|
266
270
|
return false;
|
|
267
271
|
}
|
|
268
|
-
if (codePoint >= 4352 && (codePoint <= 4447 ||
|
|
272
|
+
if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
|
|
273
|
+
codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
|
|
274
|
+
codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
|
|
275
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
276
|
+
11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
277
|
+
12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
|
|
278
|
+
19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
|
|
279
|
+
43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
|
|
280
|
+
44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
|
|
281
|
+
63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
|
|
282
|
+
65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
|
|
283
|
+
65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
|
|
284
|
+
65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
|
|
285
|
+
110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
|
|
286
|
+
127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
287
|
+
131072 <= codePoint && codePoint <= 262141)) {
|
|
269
288
|
return true;
|
|
270
289
|
}
|
|
271
290
|
return false;
|
|
@@ -681,6 +700,7 @@ function assembleStyles() {
|
|
|
681
700
|
const styles2 = {
|
|
682
701
|
modifier: {
|
|
683
702
|
reset: [0, 0],
|
|
703
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
684
704
|
bold: [1, 22],
|
|
685
705
|
dim: [2, 22],
|
|
686
706
|
italic: [3, 23],
|
|
@@ -699,6 +719,7 @@ function assembleStyles() {
|
|
|
699
719
|
magenta: [35, 39],
|
|
700
720
|
cyan: [36, 39],
|
|
701
721
|
white: [37, 39],
|
|
722
|
+
// Bright color
|
|
702
723
|
blackBright: [90, 39],
|
|
703
724
|
redBright: [91, 39],
|
|
704
725
|
greenBright: [92, 39],
|
|
@@ -717,6 +738,7 @@ function assembleStyles() {
|
|
|
717
738
|
bgMagenta: [45, 49],
|
|
718
739
|
bgCyan: [46, 49],
|
|
719
740
|
bgWhite: [47, 49],
|
|
741
|
+
// Bright color
|
|
720
742
|
bgBlackBright: [100, 49],
|
|
721
743
|
bgRedBright: [101, 49],
|
|
722
744
|
bgGreenBright: [102, 49],
|
|
@@ -785,9 +807,11 @@ function assembleStyles() {
|
|
|
785
807
|
}
|
|
786
808
|
const integer = Number.parseInt(colorString, 16);
|
|
787
809
|
return [
|
|
810
|
+
/* eslint-disable no-bitwise */
|
|
788
811
|
integer >> 16 & 255,
|
|
789
812
|
integer >> 8 & 255,
|
|
790
813
|
integer & 255
|
|
814
|
+
/* eslint-enable no-bitwise */
|
|
791
815
|
];
|
|
792
816
|
},
|
|
793
817
|
enumerable: false
|
|
@@ -1252,6 +1276,7 @@ function assembleStyles2() {
|
|
|
1252
1276
|
const styles2 = {
|
|
1253
1277
|
modifier: {
|
|
1254
1278
|
reset: [0, 0],
|
|
1279
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
1255
1280
|
bold: [1, 22],
|
|
1256
1281
|
dim: [2, 22],
|
|
1257
1282
|
italic: [3, 23],
|
|
@@ -1270,6 +1295,7 @@ function assembleStyles2() {
|
|
|
1270
1295
|
magenta: [35, 39],
|
|
1271
1296
|
cyan: [36, 39],
|
|
1272
1297
|
white: [37, 39],
|
|
1298
|
+
// Bright color
|
|
1273
1299
|
blackBright: [90, 39],
|
|
1274
1300
|
redBright: [91, 39],
|
|
1275
1301
|
greenBright: [92, 39],
|
|
@@ -1288,6 +1314,7 @@ function assembleStyles2() {
|
|
|
1288
1314
|
bgMagenta: [45, 49],
|
|
1289
1315
|
bgCyan: [46, 49],
|
|
1290
1316
|
bgWhite: [47, 49],
|
|
1317
|
+
// Bright color
|
|
1291
1318
|
bgBlackBright: [100, 49],
|
|
1292
1319
|
bgRedBright: [101, 49],
|
|
1293
1320
|
bgGreenBright: [102, 49],
|
|
@@ -1356,9 +1383,11 @@ function assembleStyles2() {
|
|
|
1356
1383
|
}
|
|
1357
1384
|
const integer = Number.parseInt(colorString, 16);
|
|
1358
1385
|
return [
|
|
1386
|
+
/* eslint-disable no-bitwise */
|
|
1359
1387
|
integer >> 16 & 255,
|
|
1360
1388
|
integer >> 8 & 255,
|
|
1361
1389
|
integer & 255
|
|
1390
|
+
/* eslint-enable no-bitwise */
|
|
1362
1391
|
];
|
|
1363
1392
|
},
|
|
1364
1393
|
enumerable: false
|
|
@@ -1958,7 +1987,13 @@ function getConfigHash() {
|
|
|
1958
1987
|
}
|
|
1959
1988
|
var setupCount = 0;
|
|
1960
1989
|
var Builder = class {
|
|
1990
|
+
/**
|
|
1991
|
+
* Map of file path to modified time
|
|
1992
|
+
*/
|
|
1961
1993
|
fileModifiedMap = /* @__PURE__ */ new Map();
|
|
1994
|
+
/**
|
|
1995
|
+
* Map of file path to css
|
|
1996
|
+
*/
|
|
1962
1997
|
fileCssMap = /* @__PURE__ */ new Map();
|
|
1963
1998
|
context;
|
|
1964
1999
|
configChanged = true;
|
|
@@ -2018,6 +2053,7 @@ var Builder = class {
|
|
|
2018
2053
|
resolve: true
|
|
2019
2054
|
});
|
|
2020
2055
|
}
|
|
2056
|
+
// ASSUMPTION: Layer structure is an exact match (no extra layers)
|
|
2021
2057
|
isValidRoot(root) {
|
|
2022
2058
|
const params = "reset, base, tokens, recipes, utilities";
|
|
2023
2059
|
let found = false;
|
package/dist/index.mjs
CHANGED
|
@@ -19,13 +19,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
return to;
|
|
20
20
|
};
|
|
21
21
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
26
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
27
|
mod
|
|
24
28
|
));
|
|
25
29
|
|
|
26
|
-
// ../../node_modules/.pnpm/tsup@6.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@6.6.0_typescript@4.9.5/node_modules/tsup/assets/esm_shims.js
|
|
27
31
|
var init_esm_shims = __esm({
|
|
28
|
-
"../../node_modules/.pnpm/tsup@6.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@6.6.0_typescript@4.9.5/node_modules/tsup/assets/esm_shims.js"() {
|
|
29
33
|
}
|
|
30
34
|
});
|
|
31
35
|
|
|
@@ -259,7 +263,22 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
259
263
|
if (Number.isNaN(codePoint)) {
|
|
260
264
|
return false;
|
|
261
265
|
}
|
|
262
|
-
if (codePoint >= 4352 && (codePoint <= 4447 ||
|
|
266
|
+
if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
|
|
267
|
+
codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
|
|
268
|
+
codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
|
|
269
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
270
|
+
11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
271
|
+
12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
|
|
272
|
+
19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
|
|
273
|
+
43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
|
|
274
|
+
44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
|
|
275
|
+
63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
|
|
276
|
+
65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
|
|
277
|
+
65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
|
|
278
|
+
65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
|
|
279
|
+
110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
|
|
280
|
+
127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
281
|
+
131072 <= codePoint && codePoint <= 262141)) {
|
|
263
282
|
return true;
|
|
264
283
|
}
|
|
265
284
|
return false;
|
|
@@ -668,6 +687,7 @@ function assembleStyles() {
|
|
|
668
687
|
const styles2 = {
|
|
669
688
|
modifier: {
|
|
670
689
|
reset: [0, 0],
|
|
690
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
671
691
|
bold: [1, 22],
|
|
672
692
|
dim: [2, 22],
|
|
673
693
|
italic: [3, 23],
|
|
@@ -686,6 +706,7 @@ function assembleStyles() {
|
|
|
686
706
|
magenta: [35, 39],
|
|
687
707
|
cyan: [36, 39],
|
|
688
708
|
white: [37, 39],
|
|
709
|
+
// Bright color
|
|
689
710
|
blackBright: [90, 39],
|
|
690
711
|
redBright: [91, 39],
|
|
691
712
|
greenBright: [92, 39],
|
|
@@ -704,6 +725,7 @@ function assembleStyles() {
|
|
|
704
725
|
bgMagenta: [45, 49],
|
|
705
726
|
bgCyan: [46, 49],
|
|
706
727
|
bgWhite: [47, 49],
|
|
728
|
+
// Bright color
|
|
707
729
|
bgBlackBright: [100, 49],
|
|
708
730
|
bgRedBright: [101, 49],
|
|
709
731
|
bgGreenBright: [102, 49],
|
|
@@ -772,9 +794,11 @@ function assembleStyles() {
|
|
|
772
794
|
}
|
|
773
795
|
const integer = Number.parseInt(colorString, 16);
|
|
774
796
|
return [
|
|
797
|
+
/* eslint-disable no-bitwise */
|
|
775
798
|
integer >> 16 & 255,
|
|
776
799
|
integer >> 8 & 255,
|
|
777
800
|
integer & 255
|
|
801
|
+
/* eslint-enable no-bitwise */
|
|
778
802
|
];
|
|
779
803
|
},
|
|
780
804
|
enumerable: false
|
|
@@ -1239,6 +1263,7 @@ function assembleStyles2() {
|
|
|
1239
1263
|
const styles2 = {
|
|
1240
1264
|
modifier: {
|
|
1241
1265
|
reset: [0, 0],
|
|
1266
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
1242
1267
|
bold: [1, 22],
|
|
1243
1268
|
dim: [2, 22],
|
|
1244
1269
|
italic: [3, 23],
|
|
@@ -1257,6 +1282,7 @@ function assembleStyles2() {
|
|
|
1257
1282
|
magenta: [35, 39],
|
|
1258
1283
|
cyan: [36, 39],
|
|
1259
1284
|
white: [37, 39],
|
|
1285
|
+
// Bright color
|
|
1260
1286
|
blackBright: [90, 39],
|
|
1261
1287
|
redBright: [91, 39],
|
|
1262
1288
|
greenBright: [92, 39],
|
|
@@ -1275,6 +1301,7 @@ function assembleStyles2() {
|
|
|
1275
1301
|
bgMagenta: [45, 49],
|
|
1276
1302
|
bgCyan: [46, 49],
|
|
1277
1303
|
bgWhite: [47, 49],
|
|
1304
|
+
// Bright color
|
|
1278
1305
|
bgBlackBright: [100, 49],
|
|
1279
1306
|
bgRedBright: [101, 49],
|
|
1280
1307
|
bgGreenBright: [102, 49],
|
|
@@ -1343,9 +1370,11 @@ function assembleStyles2() {
|
|
|
1343
1370
|
}
|
|
1344
1371
|
const integer = Number.parseInt(colorString, 16);
|
|
1345
1372
|
return [
|
|
1373
|
+
/* eslint-disable no-bitwise */
|
|
1346
1374
|
integer >> 16 & 255,
|
|
1347
1375
|
integer >> 8 & 255,
|
|
1348
1376
|
integer & 255
|
|
1377
|
+
/* eslint-enable no-bitwise */
|
|
1349
1378
|
];
|
|
1350
1379
|
},
|
|
1351
1380
|
enumerable: false
|
|
@@ -1945,7 +1974,13 @@ function getConfigHash() {
|
|
|
1945
1974
|
}
|
|
1946
1975
|
var setupCount = 0;
|
|
1947
1976
|
var Builder = class {
|
|
1977
|
+
/**
|
|
1978
|
+
* Map of file path to modified time
|
|
1979
|
+
*/
|
|
1948
1980
|
fileModifiedMap = /* @__PURE__ */ new Map();
|
|
1981
|
+
/**
|
|
1982
|
+
* Map of file path to css
|
|
1983
|
+
*/
|
|
1949
1984
|
fileCssMap = /* @__PURE__ */ new Map();
|
|
1950
1985
|
context;
|
|
1951
1986
|
configChanged = true;
|
|
@@ -2005,6 +2040,7 @@ var Builder = class {
|
|
|
2005
2040
|
resolve: true
|
|
2006
2041
|
});
|
|
2007
2042
|
}
|
|
2043
|
+
// ASSUMPTION: Layer structure is an exact match (no extra layers)
|
|
2008
2044
|
isValidRoot(root) {
|
|
2009
2045
|
const params = "reset, base, tokens, recipes, utilities";
|
|
2010
2046
|
let found = false;
|
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-20230208150234",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"preferred-pm": "^3.0.3",
|
|
32
32
|
"ts-pattern": "4.1.4",
|
|
33
33
|
"ts-morph": "17.0.1",
|
|
34
|
-
"@pandacss/config": "0.0.0-dev-
|
|
35
|
-
"@pandacss/generator": "0.0.0-dev-
|
|
36
|
-
"@pandacss/core": "0.0.0-dev-
|
|
37
|
-
"@pandacss/error": "0.0.0-dev-
|
|
38
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
41
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
42
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
43
|
-
"@pandacss/types": "0.0.0-dev-
|
|
34
|
+
"@pandacss/config": "0.0.0-dev-20230208150234",
|
|
35
|
+
"@pandacss/generator": "0.0.0-dev-20230208150234",
|
|
36
|
+
"@pandacss/core": "0.0.0-dev-20230208150234",
|
|
37
|
+
"@pandacss/error": "0.0.0-dev-20230208150234",
|
|
38
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230208150234",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20230208150234",
|
|
40
|
+
"@pandacss/parser": "0.0.0-dev-20230208150234",
|
|
41
|
+
"@pandacss/shared": "0.0.0-dev-20230208150234",
|
|
42
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230208150234",
|
|
43
|
+
"@pandacss/types": "0.0.0-dev-20230208150234"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/fs-extra": "11.0.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/lodash.merge": "4.6.7",
|
|
50
50
|
"@types/pluralize": "0.0.29",
|
|
51
51
|
"boxen": "^7.0.1",
|
|
52
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
52
|
+
"@pandacss/fixture": "0.0.0-dev-20230208150234"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|