@pandacss/shared 0.15.0 → 0.15.1

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.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-70ada69d.js';
2
- export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-70ada69d.js';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-b874b673.js';
2
+ export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-b874b673.js';
3
3
  export { astish } from './astish.mjs';
4
4
 
5
5
  type Operand = string | number | {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-70ada69d.js';
2
- export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-70ada69d.js';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-b874b673.js';
2
+ export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-b874b673.js';
3
3
  export { astish } from './astish.js';
4
4
 
5
5
  type Operand = string | number | {
package/dist/index.js CHANGED
@@ -445,7 +445,7 @@ var createRegex = (item) => {
445
445
  };
446
446
 
447
447
  // src/slot.ts
448
- var getSlotRecipes = (recipe) => {
448
+ var getSlotRecipes = (recipe = {}) => {
449
449
  const init = (slot) => ({
450
450
  className: [recipe.className, slot].filter(Boolean).join("__"),
451
451
  base: recipe.base?.[slot] ?? {},
@@ -453,7 +453,8 @@ var getSlotRecipes = (recipe) => {
453
453
  defaultVariants: recipe.defaultVariants ?? {},
454
454
  compoundVariants: recipe.compoundVariants ? getSlotCompoundVariant(recipe.compoundVariants, slot) : []
455
455
  });
456
- const recipeParts = recipe.slots.map((slot) => [slot, init(slot)]);
456
+ const slots = recipe.slots ?? [];
457
+ const recipeParts = slots.map((slot) => [slot, init(slot)]);
457
458
  for (const [variantsKey, variantsSpec] of Object.entries(recipe.variants ?? {})) {
458
459
  for (const [variantKey, variantSpec] of Object.entries(variantsSpec)) {
459
460
  recipeParts.forEach(([slot, slotRecipe]) => {
package/dist/index.mjs CHANGED
@@ -378,7 +378,7 @@ var createRegex = (item) => {
378
378
  };
379
379
 
380
380
  // src/slot.ts
381
- var getSlotRecipes = (recipe) => {
381
+ var getSlotRecipes = (recipe = {}) => {
382
382
  const init = (slot) => ({
383
383
  className: [recipe.className, slot].filter(Boolean).join("__"),
384
384
  base: recipe.base?.[slot] ?? {},
@@ -386,7 +386,8 @@ var getSlotRecipes = (recipe) => {
386
386
  defaultVariants: recipe.defaultVariants ?? {},
387
387
  compoundVariants: recipe.compoundVariants ? getSlotCompoundVariant(recipe.compoundVariants, slot) : []
388
388
  });
389
- const recipeParts = recipe.slots.map((slot) => [slot, init(slot)]);
389
+ const slots = recipe.slots ?? [];
390
+ const recipeParts = slots.map((slot) => [slot, init(slot)]);
390
391
  for (const [variantsKey, variantsSpec] of Object.entries(recipe.variants ?? {})) {
391
392
  for (const [variantKey, variantSpec] of Object.entries(variantsSpec)) {
392
393
  recipeParts.forEach(([slot, slotRecipe]) => {
@@ -63,7 +63,7 @@ declare const memo: <T extends (...args: any[]) => any>(fn: T) => T;
63
63
 
64
64
  declare function mergeProps<T extends Record<string, unknown>>(...sources: T[]): T;
65
65
 
66
- declare const getSlotRecipes: (recipe: any) => Record<string, any>;
66
+ declare const getSlotRecipes: (recipe?: Record<string, any>) => Record<string, any>;
67
67
  declare const getSlotCompoundVariant: <T extends {
68
68
  css: any;
69
69
  }>(compoundVariants: T[], slotName: string) => (T & {
package/dist/shared.d.mts CHANGED
@@ -1 +1 @@
1
- export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, j as withoutSpace } from './shared-70ada69d.js';
1
+ export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, j as withoutSpace } from './shared-b874b673.js';
package/dist/shared.d.ts CHANGED
@@ -1 +1 @@
1
- export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, j as withoutSpace } from './shared-70ada69d.js';
1
+ export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, q as walkObject, j as withoutSpace } from './shared-b874b673.js';
package/dist/shared.js CHANGED
@@ -251,7 +251,7 @@ var hypenateProperty = memo((property) => {
251
251
  });
252
252
 
253
253
  // src/slot.ts
254
- var getSlotRecipes = (recipe) => {
254
+ var getSlotRecipes = (recipe = {}) => {
255
255
  const init = (slot) => ({
256
256
  className: [recipe.className, slot].filter(Boolean).join("__"),
257
257
  base: recipe.base?.[slot] ?? {},
@@ -259,7 +259,8 @@ var getSlotRecipes = (recipe) => {
259
259
  defaultVariants: recipe.defaultVariants ?? {},
260
260
  compoundVariants: recipe.compoundVariants ? getSlotCompoundVariant(recipe.compoundVariants, slot) : []
261
261
  });
262
- const recipeParts = recipe.slots.map((slot) => [slot, init(slot)]);
262
+ const slots = recipe.slots ?? [];
263
+ const recipeParts = slots.map((slot) => [slot, init(slot)]);
263
264
  for (const [variantsKey, variantsSpec] of Object.entries(recipe.variants ?? {})) {
264
265
  for (const [variantKey, variantSpec] of Object.entries(variantsSpec)) {
265
266
  recipeParts.forEach(([slot, slotRecipe]) => {
package/dist/shared.mjs CHANGED
@@ -210,7 +210,7 @@ var hypenateProperty = memo((property) => {
210
210
  });
211
211
 
212
212
  // src/slot.ts
213
- var getSlotRecipes = (recipe) => {
213
+ var getSlotRecipes = (recipe = {}) => {
214
214
  const init = (slot) => ({
215
215
  className: [recipe.className, slot].filter(Boolean).join("__"),
216
216
  base: recipe.base?.[slot] ?? {},
@@ -218,7 +218,8 @@ var getSlotRecipes = (recipe) => {
218
218
  defaultVariants: recipe.defaultVariants ?? {},
219
219
  compoundVariants: recipe.compoundVariants ? getSlotCompoundVariant(recipe.compoundVariants, slot) : []
220
220
  });
221
- const recipeParts = recipe.slots.map((slot) => [slot, init(slot)]);
221
+ const slots = recipe.slots ?? [];
222
+ const recipeParts = slots.map((slot) => [slot, init(slot)]);
222
223
  for (const [variantsKey, variantsSpec] of Object.entries(recipe.variants ?? {})) {
223
224
  for (const [variantKey, variantSpec] of Object.entries(variantsSpec)) {
224
225
  recipeParts.forEach(([slot, slotRecipe]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",