@pandacss/shared 0.0.0-dev-20240722130804 → 0.0.0-dev-20240726092655
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 +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -584,11 +584,17 @@ var esc2 = (sel) => {
|
|
|
584
584
|
};
|
|
585
585
|
|
|
586
586
|
// src/flatten.ts
|
|
587
|
+
function filterDefault(path) {
|
|
588
|
+
if (path[0] === "DEFAULT")
|
|
589
|
+
return path;
|
|
590
|
+
return path.filter((item) => item !== "DEFAULT");
|
|
591
|
+
}
|
|
587
592
|
function flatten(values, stop) {
|
|
588
593
|
const result = {};
|
|
589
594
|
walkObject(
|
|
590
595
|
values,
|
|
591
596
|
(token, paths) => {
|
|
597
|
+
paths = filterDefault(paths);
|
|
592
598
|
if (token) {
|
|
593
599
|
result[paths.join(".")] = token.value;
|
|
594
600
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -492,11 +492,17 @@ var esc2 = (sel) => {
|
|
|
492
492
|
};
|
|
493
493
|
|
|
494
494
|
// src/flatten.ts
|
|
495
|
+
function filterDefault(path) {
|
|
496
|
+
if (path[0] === "DEFAULT")
|
|
497
|
+
return path;
|
|
498
|
+
return path.filter((item) => item !== "DEFAULT");
|
|
499
|
+
}
|
|
495
500
|
function flatten(values, stop) {
|
|
496
501
|
const result = {};
|
|
497
502
|
walkObject(
|
|
498
503
|
values,
|
|
499
504
|
(token, paths) => {
|
|
505
|
+
paths = filterDefault(paths);
|
|
500
506
|
if (token) {
|
|
501
507
|
result[paths.join(".")] = token.value;
|
|
502
508
|
}
|