@pandacss/shared
Advanced tools
Comparing version 0.0.0-dev-20221122153914 to 0.0.0-dev-20221123192035
@@ -1,3 +0,3 @@ | ||
import { W as WalkObjectStopFn } from './walk-styles-90a9feaa.js'; | ||
export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, a as isImportant, m as mapObject, t as toHash, e as walkObject, g as walkStyles, w as withoutImportant, b as withoutSpace } from './walk-styles-90a9feaa.js'; | ||
import { W as WalkObjectStopFn } from './walk-styles-747d3c0e.js'; | ||
export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, a as isImportant, m as mapObject, t as toHash, e as walkObject, g as walkStyles, w as withoutImportant, b as withoutSpace } from './walk-styles-747d3c0e.js'; | ||
@@ -4,0 +4,0 @@ declare const isString: (v: any) => v is string; |
@@ -154,4 +154,10 @@ "use strict"; | ||
// src/walk-styles.ts | ||
function walkStyles(obj, fn, scopes = []) { | ||
const { selectors = {}, "@media": mediaQueries = {}, "@container": containerQueries = {}, ...baseStyles } = obj; | ||
function walkStyles(mixedStyles, fn, scopes = []) { | ||
const { | ||
selectors = {}, | ||
"@media": mediaQueries = {}, | ||
"@container": containerQueries = {}, | ||
"@supports": supportQueries, | ||
...baseStyles | ||
} = mixedStyles; | ||
fn(baseStyles, scopes); | ||
@@ -167,2 +173,5 @@ for (const [selector, selectorStyles] of Object.entries(selectors)) { | ||
} | ||
for (const [supportQuery, supportQueryStyles] of Object.entries(supportQueries)) { | ||
walkStyles(supportQueryStyles, fn, [...scopes, `@supports ${supportQuery}`]); | ||
} | ||
} | ||
@@ -169,0 +178,0 @@ |
@@ -1,1 +0,1 @@ | ||
export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, m as mapObject, t as toHash, e as walkObject, g as walkStyles, b as withoutSpace } from './walk-styles-90a9feaa.js'; | ||
export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, m as mapObject, t as toHash, e as walkObject, g as walkStyles, b as withoutSpace } from './walk-styles-747d3c0e.js'; |
@@ -104,4 +104,10 @@ "use strict"; | ||
// src/walk-styles.ts | ||
function walkStyles(obj, fn, scopes = []) { | ||
const { selectors = {}, "@media": mediaQueries = {}, "@container": containerQueries = {}, ...baseStyles } = obj; | ||
function walkStyles(mixedStyles, fn, scopes = []) { | ||
const { | ||
selectors = {}, | ||
"@media": mediaQueries = {}, | ||
"@container": containerQueries = {}, | ||
"@supports": supportQueries, | ||
...baseStyles | ||
} = mixedStyles; | ||
fn(baseStyles, scopes); | ||
@@ -117,2 +123,5 @@ for (const [selector, selectorStyles] of Object.entries(selectors)) { | ||
} | ||
for (const [supportQuery, supportQueryStyles] of Object.entries(supportQueries)) { | ||
walkStyles(supportQueryStyles, fn, [...scopes, `@supports ${supportQuery}`]); | ||
} | ||
} | ||
@@ -119,0 +128,0 @@ |
{ | ||
"name": "@pandacss/shared", | ||
"version": "0.0.0-dev-20221122153914", | ||
"version": "0.0.0-dev-20221123192035", | ||
"description": "Shared utilities for css panda", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36962
1105