@pandacss/types 0.0.0-dev-20230905135910 → 0.0.0-dev-20230905150548

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/utility.d.ts CHANGED
@@ -1,10 +1,13 @@
1
1
  import type { LiteralUnion } from './shared'
2
2
  import type { CssProperty, NestedCssProperties } from './system-types'
3
- import type { TokenCategory } from './tokens'
3
+ import type { Token, TokenCategory } from './tokens'
4
4
 
5
- type Getter = (path: string) => any
5
+ interface TokenFn {
6
+ (path: string): string | undefined
7
+ raw: (path: string) => Token | undefined
8
+ }
6
9
 
7
- type ThemeFn = (token: Getter) => Record<string, string>
10
+ type ThemeFn = (token: (path: string) => any) => Record<string, string>
8
11
 
9
12
  export type PropertyValues =
10
13
  | LiteralUnion<TokenCategory>
@@ -14,7 +17,7 @@ export type PropertyValues =
14
17
  | ThemeFn
15
18
 
16
19
  type TransformArgs = {
17
- token: Getter
20
+ token: TokenFn
18
21
  raw: any
19
22
  }
20
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230905135910",
3
+ "version": "0.0.0-dev-20230905150548",
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.0.0-dev-20230905135910"
20
+ "@pandacss/extractor": "0.0.0-dev-20230905150548"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsx scripts/build.ts",