@pandacss/shared
Advanced tools
Comparing version 0.0.0-dev-20221125142901 to 0.0.0-dev-20221125162640
@@ -1,3 +0,3 @@ | ||
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'; | ||
import { W as WalkObjectStopFn } from './walk-styles-622088f0.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-622088f0.js'; | ||
@@ -4,0 +4,0 @@ declare const isString: (v: any) => v is string; |
@@ -179,3 +179,9 @@ "use strict"; | ||
function createCss(context) { | ||
const { transform, hash, conditions: conds = { shift: (v) => v }, resolveShorthand, hasShorthand } = context; | ||
const { | ||
transform, | ||
hash, | ||
conditions: conds = { shift: (v) => v, finalize: (v) => v }, | ||
resolveShorthand, | ||
hasShorthand | ||
} = context; | ||
return (styleObject) => { | ||
@@ -196,3 +202,3 @@ const normalizedObject = hasShorthand ? walkObject(styleObject, (v) => v, { getKey: resolveShorthand }) : styleObject; | ||
} | ||
const baseArray = [...conditions, transformedClassName]; | ||
const baseArray = [...conds.finalize(conditions), transformedClassName]; | ||
if (scope && scope.length > 0) { | ||
@@ -199,0 +205,0 @@ baseArray.unshift(`[${withoutSpace(scope.join("__"))}]`); |
@@ -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-747d3c0e.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-622088f0.js'; |
@@ -129,3 +129,9 @@ "use strict"; | ||
function createCss(context) { | ||
const { transform, hash, conditions: conds = { shift: (v) => v }, resolveShorthand, hasShorthand } = context; | ||
const { | ||
transform, | ||
hash, | ||
conditions: conds = { shift: (v) => v, finalize: (v) => v }, | ||
resolveShorthand, | ||
hasShorthand | ||
} = context; | ||
return (styleObject) => { | ||
@@ -146,3 +152,3 @@ const normalizedObject = hasShorthand ? walkObject(styleObject, (v) => v, { getKey: resolveShorthand }) : styleObject; | ||
} | ||
const baseArray = [...conditions, transformedClassName]; | ||
const baseArray = [...conds.finalize(conditions), transformedClassName]; | ||
if (scope && scope.length > 0) { | ||
@@ -149,0 +155,0 @@ baseArray.unshift(`[${withoutSpace(scope.join("__"))}]`); |
{ | ||
"name": "@pandacss/shared", | ||
"version": "0.0.0-dev-20221125142901", | ||
"version": "0.0.0-dev-20221125162640", | ||
"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
37263
1130