@pandacss/types 0.7.0 → 0.9.0
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 +11 -0
- package/dist/index.d.ts +1 -1
- package/dist/pattern.d.ts +8 -1
- package/dist/recipe.d.ts +1 -1
- package/package.json +3 -3
package/dist/config.d.ts
CHANGED
|
@@ -233,10 +233,21 @@ export type Preset = ExtendableOptions & PresetOptions
|
|
|
233
233
|
|
|
234
234
|
export type UserConfig = UnwrapExtend<RequiredBy<Config, 'outdir' | 'cwd' | 'include'>>
|
|
235
235
|
|
|
236
|
+
export type PathMapping = {
|
|
237
|
+
pattern: RegExp
|
|
238
|
+
paths: string[]
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export type ConfigTsOptions = {
|
|
242
|
+
baseUrl?: string | undefined
|
|
243
|
+
pathMappings: PathMapping[]
|
|
244
|
+
}
|
|
245
|
+
|
|
236
246
|
export interface LoadConfigResult {
|
|
237
247
|
path: string
|
|
238
248
|
config: UserConfig
|
|
239
249
|
tsconfig?: TSConfig
|
|
250
|
+
tsOptions?: ConfigTsOptions
|
|
240
251
|
tsconfigFile?: string
|
|
241
252
|
dependencies: string[]
|
|
242
253
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type {
|
|
|
9
9
|
} from './analyze-report'
|
|
10
10
|
export type { CompositionStyles, LayerStyles, TextStyles } from './composition'
|
|
11
11
|
export type { ConditionDetails, ConditionType, Conditions, RawCondition } from './conditions'
|
|
12
|
-
export type { Config, LoadConfigResult, Preset, UserConfig, TSConfig } from './config'
|
|
12
|
+
export type { Config, ConfigTsOptions, LoadConfigResult, Preset, UserConfig, TSConfig } from './config'
|
|
13
13
|
export type { ConfigResultWithHooks, PandaHooks, PandaHookable } from './hooks'
|
|
14
14
|
export type { ParserResultType, ResultItem } from './parser'
|
|
15
15
|
export type { Part, Parts } from './parts'
|
package/dist/pattern.d.ts
CHANGED
|
@@ -39,7 +39,14 @@ export type PatternConfig<T extends PatternProperties = PatternProperties> = {
|
|
|
39
39
|
/**
|
|
40
40
|
* The jsx element name this pattern will generate.
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
jsxName?: string
|
|
43
|
+
/**
|
|
44
|
+
* The jsx elements to track for this pattern. Can be string or Regexp.
|
|
45
|
+
*
|
|
46
|
+
* @default capitalize(pattern.name)
|
|
47
|
+
* @example ['Button', 'Link', /Button$/]
|
|
48
|
+
*/
|
|
49
|
+
jsx?: Array<string | RegExp>
|
|
43
50
|
/**
|
|
44
51
|
* Whether to only generate types for the specified properties.
|
|
45
52
|
* This will disallow css properties
|
package/dist/recipe.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"csstype": "3.1.2",
|
|
17
17
|
"hookable": "5.5.3",
|
|
18
18
|
"pkg-types": "1.0.3",
|
|
19
|
-
"@pandacss/extractor": "0.
|
|
20
|
-
"@pandacss/token-dictionary": "0.
|
|
19
|
+
"@pandacss/extractor": "0.9.0",
|
|
20
|
+
"@pandacss/token-dictionary": "0.9.0"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsx scripts/build.ts",
|