@pandacss/types 0.0.0-dev-20231222115330 → 0.0.0-dev-20231223024151
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 +1 -1
- package/dist/static-css.d.ts +23 -17
- package/package.json +8 -2
package/dist/config.d.ts
CHANGED
package/dist/static-css.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface WithConditions {
|
|
2
2
|
/**
|
|
3
|
-
* The css
|
|
4
|
-
* @example ['margin', 'padding']
|
|
5
|
-
*/
|
|
6
|
-
properties: {
|
|
7
|
-
[property: string]: string[]
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The css conditions to generate utilities for.
|
|
3
|
+
* The css conditions to generate for the rule.
|
|
11
4
|
* @example ['hover', 'focus']
|
|
12
5
|
*/
|
|
13
6
|
conditions?: string[]
|
|
7
|
+
responsive?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CssRule extends WithConditions {
|
|
14
11
|
/**
|
|
15
|
-
*
|
|
12
|
+
* The css properties to generate utilities for.
|
|
13
|
+
* @example ['margin', 'padding']
|
|
16
14
|
*/
|
|
17
|
-
|
|
15
|
+
properties: {
|
|
16
|
+
[property: string]: Array<string | number>
|
|
17
|
+
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
interface RecipeRuleVariants {
|
|
21
|
+
[variant: string]: boolean | string[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type RecipeRule = '*' | (RecipeRuleVariants & WithConditions)
|
|
25
|
+
export type PatternRule = '*' | CssRule
|
|
26
26
|
|
|
27
27
|
export interface StaticCssOptions {
|
|
28
28
|
/**
|
|
@@ -35,4 +35,10 @@ export interface StaticCssOptions {
|
|
|
35
35
|
recipes?: {
|
|
36
36
|
[recipe: string]: RecipeRule[]
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* The css patterns to generate.
|
|
40
|
+
*/
|
|
41
|
+
patterns?: {
|
|
42
|
+
[pattern: string]: PatternRule[]
|
|
43
|
+
}
|
|
38
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20231223024151",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
"./package.json": "./package.json"
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": false,
|
|
16
|
+
"homepage": "https://panda-css.com",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/chakra-ui/panda.git",
|
|
20
|
+
"directory": "packages/types"
|
|
21
|
+
},
|
|
16
22
|
"publishConfig": {
|
|
17
23
|
"access": "public"
|
|
18
24
|
},
|
|
@@ -24,7 +30,7 @@
|
|
|
24
30
|
"hookable": "5.5.3",
|
|
25
31
|
"ncp": "^2.0.0",
|
|
26
32
|
"pkg-types": "1.0.3",
|
|
27
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
33
|
+
"@pandacss/extractor": "0.0.0-dev-20231223024151"
|
|
28
34
|
},
|
|
29
35
|
"scripts": {
|
|
30
36
|
"dev": "tsx scripts/watch.ts",
|