@pandacss/shared 0.0.0-dev-20221126165718 → 0.0.0-dev-20221127075519

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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './walk-styles-4fcd344a.js';
2
- export { C as CreateCssContext, 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-4fcd344a.js';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './walk-styles-9f7bfdbf.js';
2
+ export { C as CreateCssContext, 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-9f7bfdbf.js';
3
3
 
4
4
  declare const isString: (v: any) => v is string;
5
5
  type AnyFunction = (...args: any[]) => any;
package/dist/index.js CHANGED
@@ -210,7 +210,7 @@ var fallbackCondition = {
210
210
  };
211
211
  function createCss(context) {
212
212
  const { utility, hash, conditions: conds = fallbackCondition } = context;
213
- return (styleObject) => {
213
+ return (styleObject = {}) => {
214
214
  const normalizedObject = normalizeStyleObject(styleObject, context);
215
215
  const classNames = /* @__PURE__ */ new Set();
216
216
  walkStyles(normalizedObject, (props, scope) => {
package/dist/index.mjs CHANGED
@@ -152,7 +152,7 @@ var fallbackCondition = {
152
152
  };
153
153
  function createCss(context) {
154
154
  const { utility, hash, conditions: conds = fallbackCondition } = context;
155
- return (styleObject) => {
155
+ return (styleObject = {}) => {
156
156
  const normalizedObject = normalizeStyleObject(styleObject, context);
157
157
  const classNames = /* @__PURE__ */ new Set();
158
158
  walkStyles(normalizedObject, (props, scope) => {
package/dist/shared.d.ts CHANGED
@@ -1 +1 @@
1
- export { C as CreateCssContext, 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-4fcd344a.js';
1
+ export { C as CreateCssContext, 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-9f7bfdbf.js';
package/dist/shared.js CHANGED
@@ -159,7 +159,7 @@ var fallbackCondition = {
159
159
  };
160
160
  function createCss(context) {
161
161
  const { utility, hash, conditions: conds = fallbackCondition } = context;
162
- return (styleObject) => {
162
+ return (styleObject = {}) => {
163
163
  const normalizedObject = normalizeStyleObject(styleObject, context);
164
164
  const classNames = /* @__PURE__ */ new Set();
165
165
  walkStyles(normalizedObject, (props, scope) => {
package/dist/shared.mjs CHANGED
@@ -126,7 +126,7 @@ var fallbackCondition = {
126
126
  };
127
127
  function createCss(context) {
128
128
  const { utility, hash, conditions: conds = fallbackCondition } = context;
129
- return (styleObject) => {
129
+ return (styleObject = {}) => {
130
130
  const normalizedObject = normalizeStyleObject(styleObject, context);
131
131
  const classNames = /* @__PURE__ */ new Set();
132
132
  walkStyles(normalizedObject, (props, scope) => {
@@ -21,7 +21,7 @@ type CreateCssContext = {
21
21
  finalize: (paths: string[]) => string[];
22
22
  };
23
23
  };
24
- declare function createCss(context: CreateCssContext): (styleObject: Record<string, any>) => string;
24
+ declare function createCss(context: CreateCssContext): (styleObject?: Record<string, any>) => string;
25
25
 
26
26
  declare const isBaseCondition: (c: string) => boolean;
27
27
  declare function filterBaseConditions(c: string[]): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.0.0-dev-20221126165718",
3
+ "version": "0.0.0-dev-20221127075519",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",