@pandacss/types 0.0.0-dev-20230122144203 → 0.0.0-dev-20230124104736

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.
@@ -1,6 +1,9 @@
1
- import type { Recursive } from './shared'
2
1
  import type { CompositionStyleObject } from './system-types'
3
2
 
3
+ type Recursive<T> = {
4
+ [key: string]: Recursive<T> | T
5
+ }
6
+
4
7
  export type Token<Value = any> = {
5
8
  value: Value
6
9
  description?: string
package/dist/config.d.ts CHANGED
@@ -18,6 +18,10 @@ export type Config<
18
18
  Breakpoints extends Dict = Dict,
19
19
  Tokens extends PartialTokens = PartialTokens,
20
20
  > = {
21
+ /**
22
+ * Whether to emit the artifacts to `node_modules` as a package.
23
+ */
24
+ emitPackage?: boolean
21
25
  /**
22
26
  * Whether to update the .gitignore file.
23
27
  */
@@ -1,4 +1,4 @@
1
- import type { Conditional, ConditionalValue, Conditions, Nested } from './conditions'
1
+ import type { ConditionalValue, Conditions, Nested } from './conditions'
2
2
  import type { PropertiesFallback } from './csstype'
3
3
  import type { SystemProperties } from './style-props'
4
4
 
@@ -56,7 +56,7 @@ export type GlobalStyleObject = {
56
56
  }
57
57
 
58
58
  export type CompositionStyleObject<Property extends string> = Nested<{
59
- [K in Property]?: Conditional<K extends NativeCssProperty ? NativeCssProperties[K] : unknown>
59
+ [K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
60
60
  }>
61
61
 
62
62
  /* -----------------------------------------------------------------------------
package/dist/tokens.d.ts CHANGED
@@ -79,6 +79,7 @@ export type TokenDataTypes = {
79
79
  animations: string
80
80
  blurs: string
81
81
  gradients: string | Gradient
82
+ screens: string
82
83
  }
83
84
 
84
85
  export type Tokens = {
package/dist/utility.d.ts CHANGED
@@ -1,11 +1,17 @@
1
1
  import type { LiteralUnion } from './shared'
2
2
  import type { NativeCssProperty, NestedCssProperties } from './system-types'
3
+ import type { TokenCategory } from './tokens'
3
4
 
4
5
  type Getter = (path: string) => any
5
6
 
6
7
  type ThemeFn = (token: Getter) => Record<string, string>
7
8
 
8
- export type PropertyValues = string | string[] | { type: string } | Record<string, string> | ThemeFn
9
+ export type PropertyValues =
10
+ | LiteralUnion<TokenCategory>
11
+ | string[]
12
+ | { type: string }
13
+ | Record<string, string>
14
+ | ThemeFn
9
15
 
10
16
  export type PropertyTransform = (value: any, token: Getter) => NestedCssProperties | undefined
11
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230122144203",
3
+ "version": "0.0.0-dev-20230124104736",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",