@pandacss/types 0.0.0-dev-20221218120149 → 0.0.0-dev-20221218210650

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.d.ts CHANGED
@@ -8,3 +8,4 @@ export type { Composition, TextStyles, LayerStyles } from './composition'
8
8
  export type { Token, TokenCategory, TokenDataTypes, Tokens, SemanticToken, SemanticTokens } from './tokens'
9
9
  export type { Dict, RequiredBy, AnyFunction } from './shared'
10
10
  export type { Parts, Part } from './parts'
11
+ export type { StaticCssOptions } from './static-css'
@@ -1,9 +1,11 @@
1
- interface CssRule {
1
+ type CssRule = {
2
2
  /**
3
3
  * The css properties to generate utilities for.
4
4
  * @example ['margin', 'padding']
5
5
  */
6
- properties: string[]
6
+ properties: {
7
+ [property: string]: string[] | boolean
8
+ }
7
9
  /**
8
10
  * The css conditions to generate utilities for.
9
11
  * @example ['hover', 'focus']
@@ -13,18 +15,12 @@ interface CssRule {
13
15
  * Whether to generate responsive utilities.
14
16
  */
15
17
  responsive?: boolean
16
- /**
17
- * The values to generate utilities for.
18
- * @example ['2', '40px']
19
- * @example "colors"
20
- */
21
- values?: string | string[]
22
18
  }
23
19
 
24
- interface RecipeProperties {
25
- conditions: string[]
26
- [variant: string]: string[]
27
- }
20
+ type RecipeRule = {
21
+ conditions?: string[]
22
+ responsive?: boolean
23
+ } & { [variant: string]: boolean | string[] }
28
24
 
29
25
  export type StaticCssOptions = {
30
26
  /**
@@ -35,6 +31,6 @@ export type StaticCssOptions = {
35
31
  * The css recipes to generate.
36
32
  */
37
33
  recipes?: {
38
- [recipe: string]: RecipeProperties[]
34
+ [recipe: string]: RecipeRule[]
39
35
  }
40
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20221218120149",
3
+ "version": "0.0.0-dev-20221218210650",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",