@pandacss/token-dictionary 0.0.0-dev-20230321103030 → 0.0.0-dev-20230323194924
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 +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -187,7 +187,7 @@ var Token = class {
|
|
|
187
187
|
if (this.type)
|
|
188
188
|
return;
|
|
189
189
|
if (this.extensions.category) {
|
|
190
|
-
this.type =
|
|
190
|
+
this.type = TOKEN_TYPES[this.extensions.category];
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
};
|
|
@@ -203,7 +203,7 @@ function cloneDeep(value) {
|
|
|
203
203
|
}
|
|
204
204
|
return value;
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var TOKEN_TYPES = {
|
|
207
207
|
colors: "color",
|
|
208
208
|
spacing: "dimension",
|
|
209
209
|
sizing: "dimension",
|
|
@@ -635,7 +635,7 @@ function dataURIPayload(string) {
|
|
|
635
635
|
return encodeURIComponent(string).replace(REGEX.urlHexPairs, specialHexEncode);
|
|
636
636
|
}
|
|
637
637
|
function colorCodeToShorterNames(string) {
|
|
638
|
-
|
|
638
|
+
objectKeys(shorterNames).forEach((key) => {
|
|
639
639
|
if (shorterNames[key].test(string)) {
|
|
640
640
|
string = string.replace(shorterNames[key], key);
|
|
641
641
|
}
|
|
@@ -666,6 +666,7 @@ function svgToDataUri(svgString) {
|
|
|
666
666
|
const body = colorCodeToShorterNames(collapseWhitespace(svgString)).replace(REGEX.quotes, "'");
|
|
667
667
|
return "data:image/svg+xml," + dataURIPayload(body);
|
|
668
668
|
}
|
|
669
|
+
var objectKeys = (obj) => Object.keys(obj);
|
|
669
670
|
|
|
670
671
|
// src/transform.ts
|
|
671
672
|
var isCompositeShadow = (0, import_ts_pattern2.isMatching)({
|
package/dist/index.mjs
CHANGED
|
@@ -161,7 +161,7 @@ var Token = class {
|
|
|
161
161
|
if (this.type)
|
|
162
162
|
return;
|
|
163
163
|
if (this.extensions.category) {
|
|
164
|
-
this.type =
|
|
164
|
+
this.type = TOKEN_TYPES[this.extensions.category];
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
};
|
|
@@ -177,7 +177,7 @@ function cloneDeep(value) {
|
|
|
177
177
|
}
|
|
178
178
|
return value;
|
|
179
179
|
}
|
|
180
|
-
var
|
|
180
|
+
var TOKEN_TYPES = {
|
|
181
181
|
colors: "color",
|
|
182
182
|
spacing: "dimension",
|
|
183
183
|
sizing: "dimension",
|
|
@@ -609,7 +609,7 @@ function dataURIPayload(string) {
|
|
|
609
609
|
return encodeURIComponent(string).replace(REGEX.urlHexPairs, specialHexEncode);
|
|
610
610
|
}
|
|
611
611
|
function colorCodeToShorterNames(string) {
|
|
612
|
-
|
|
612
|
+
objectKeys(shorterNames).forEach((key) => {
|
|
613
613
|
if (shorterNames[key].test(string)) {
|
|
614
614
|
string = string.replace(shorterNames[key], key);
|
|
615
615
|
}
|
|
@@ -640,6 +640,7 @@ function svgToDataUri(svgString) {
|
|
|
640
640
|
const body = colorCodeToShorterNames(collapseWhitespace(svgString)).replace(REGEX.quotes, "'");
|
|
641
641
|
return "data:image/svg+xml," + dataURIPayload(body);
|
|
642
642
|
}
|
|
643
|
+
var objectKeys = (obj) => Object.keys(obj);
|
|
643
644
|
|
|
644
645
|
// src/transform.ts
|
|
645
646
|
var isCompositeShadow = isMatching2({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/token-dictionary",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230323194924",
|
|
4
4
|
"description": "Common error messages for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ts-pattern": "4.2.1",
|
|
18
|
-
"@pandacss/types": "0.0.0-dev-
|
|
19
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
18
|
+
"@pandacss/types": "0.0.0-dev-20230323194924",
|
|
19
|
+
"@pandacss/shared": "0.0.0-dev-20230323194924"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
22
|
+
"@pandacss/fixture": "0.0.0-dev-20230323194924"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|