@pandacss/types 0.14.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/shared.d.ts CHANGED
@@ -10,9 +10,10 @@ export type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pi
10
10
 
11
11
  export type AnyFunction<T = any> = (...args: T[]) => any
12
12
 
13
- type DeepPartial<T> = {
14
- [P in keyof T]+?: DeepPartial<T[P]>
13
+ type DeepPartialObject<T extends object> = {
14
+ [K in keyof T]?: DeepPartial<T[K]>
15
15
  }
16
+ export type DeepPartial<T> = T extends object ? DeepPartialObject<T> : T
16
17
 
17
18
  export type Extendable<T extends Record<any, any>> = T | { extend?: DeepPartial<T> }
18
19
 
package/dist/tokens.d.ts CHANGED
@@ -65,8 +65,8 @@ type Gradient = {
65
65
  type Asset = { type: 'url' | 'svg'; value: string }
66
66
 
67
67
  export type TokenDataTypes = {
68
- zIndex: number
69
- opacity: number
68
+ zIndex: string | number
69
+ opacity: string | number
70
70
  colors: string
71
71
  fonts: string | string[]
72
72
  fontSizes: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -17,7 +17,7 @@
17
17
  "hookable": "5.5.3",
18
18
  "ncp": "^2.0.0",
19
19
  "pkg-types": "1.0.3",
20
- "@pandacss/extractor": "0.14.0"
20
+ "@pandacss/extractor": "0.15.1"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsx scripts/build.ts",