@pandacss/shared 0.0.0-dev-20240730122032 → 0.0.0-dev-20240804095701

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 CHANGED
@@ -512,17 +512,15 @@ function cssVar(name, options = {}) {
512
512
  var deepSet = (target, path, value) => {
513
513
  const isValueObject = isObject(value);
514
514
  if (!path.length && isValueObject) {
515
- return Object.assign(target, value);
515
+ return mergeProps(target, value);
516
516
  }
517
517
  let current = target;
518
518
  for (let i = 0; i < path.length; i++) {
519
519
  const key = path[i];
520
- if (!current[key]) {
521
- current[key] = {};
522
- }
520
+ current[key] ||= {};
523
521
  if (i === path.length - 1) {
524
522
  if (isValueObject && isObject(current[key])) {
525
- current[key] = Object.assign({ ...current[key] }, value);
523
+ current[key] = mergeProps(current[key], value);
526
524
  } else {
527
525
  current[key] = value;
528
526
  }
package/dist/index.mjs CHANGED
@@ -420,17 +420,15 @@ function cssVar(name, options = {}) {
420
420
  var deepSet = (target, path, value) => {
421
421
  const isValueObject = isObject(value);
422
422
  if (!path.length && isValueObject) {
423
- return Object.assign(target, value);
423
+ return mergeProps(target, value);
424
424
  }
425
425
  let current = target;
426
426
  for (let i = 0; i < path.length; i++) {
427
427
  const key = path[i];
428
- if (!current[key]) {
429
- current[key] = {};
430
- }
428
+ current[key] ||= {};
431
429
  if (i === path.length - 1) {
432
430
  if (isValueObject && isObject(current[key])) {
433
- current[key] = Object.assign({ ...current[key] }, value);
431
+ current[key] = mergeProps(current[key], value);
434
432
  } else {
435
433
  current[key] = value;
436
434
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.0.0-dev-20240730122032",
3
+ "version": "0.0.0-dev-20240804095701",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",