@pandacss/shared 0.0.2 → 0.3.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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Segun Adebayo
3
+ Copyright (c) 2023 Segun Adebayo
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.ts CHANGED
@@ -38,7 +38,7 @@ type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
38
38
  declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
39
39
  declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
40
40
 
41
- declare function splitBy(value: string, separator?: string): string[];
41
+ declare function splitBy(value: string, separator?: string): any[];
42
42
  declare function splitDotPath(path: string): string[];
43
43
  declare function getNegativePath(path: string[]): string[];
44
44
  declare function getDotPath(obj: any, path: string, fallback?: any): any;
package/dist/index.js CHANGED
@@ -356,7 +356,9 @@ function flatten(values, stop) {
356
356
  walkObject(
357
357
  values,
358
358
  (token, paths) => {
359
- result[paths.join(".")] = token.value;
359
+ if (token) {
360
+ result[paths.join(".")] = token.value;
361
+ }
360
362
  },
361
363
  {
362
364
  stop: stop ?? ((v) => {
package/dist/index.mjs CHANGED
@@ -294,7 +294,9 @@ function flatten(values, stop) {
294
294
  walkObject(
295
295
  values,
296
296
  (token, paths) => {
297
- result[paths.join(".")] = token.value;
297
+ if (token) {
298
+ result[paths.join(".")] = token.value;
299
+ }
298
300
  },
299
301
  {
300
302
  stop: stop ?? ((v) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.0.2",
3
+ "version": "0.3.1",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",