@pandacss/types 0.0.0-dev-20221217182653 → 0.0.0-dev-20221218093122
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/config.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { RecipeConfig } from './recipe'
|
|
|
6
6
|
import type { Dict, RequiredBy, StringKeyOf } from './shared'
|
|
7
7
|
import type { SemanticTokens, Tokens as PartialTokens } from './tokens'
|
|
8
8
|
import type { UtilityConfig } from './utility'
|
|
9
|
-
import type {
|
|
9
|
+
import type { StaticCssOptions } from './static-css'
|
|
10
10
|
|
|
11
11
|
export type Config<
|
|
12
12
|
Conditions extends TConditions = TConditions,
|
|
@@ -145,7 +145,7 @@ export type Config<
|
|
|
145
145
|
* @experimental
|
|
146
146
|
* Used to generate css utility classes for your project.
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
static?: StaticCssOptions
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
export type TConfig = Config<TConditions, Dict, Dict>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface CssRule {
|
|
2
2
|
/**
|
|
3
3
|
* The css properties to generate utilities for.
|
|
4
4
|
* @example ['margin', 'padding']
|
|
@@ -9,11 +9,16 @@ interface UtilityProperties {
|
|
|
9
9
|
* @example ['hover', 'focus']
|
|
10
10
|
*/
|
|
11
11
|
conditions?: string[]
|
|
12
|
+
/**
|
|
13
|
+
* Whether to generate responsive utilities.
|
|
14
|
+
*/
|
|
15
|
+
responsive?: boolean
|
|
12
16
|
/**
|
|
13
17
|
* The values to generate utilities for.
|
|
14
18
|
* @example ['2', '40px']
|
|
19
|
+
* @example "colors"
|
|
15
20
|
*/
|
|
16
|
-
values?: string[]
|
|
21
|
+
values?: string | string[]
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
interface RecipeProperties {
|
|
@@ -21,15 +26,11 @@ interface RecipeProperties {
|
|
|
21
26
|
[variant: string]: string[]
|
|
22
27
|
}
|
|
23
28
|
|
|
24
|
-
export type
|
|
25
|
-
/**
|
|
26
|
-
* The output path for the generated css file.
|
|
27
|
-
*/
|
|
28
|
-
outfile?: string
|
|
29
|
+
export type StaticCssOptions = {
|
|
29
30
|
/**
|
|
30
31
|
* The css utility classes to generate.
|
|
31
32
|
*/
|
|
32
|
-
css?:
|
|
33
|
+
css?: CssRule[]
|
|
33
34
|
/**
|
|
34
35
|
* The css recipes to generate.
|
|
35
36
|
*/
|