@pandacss/types 0.25.0 → 0.26.1

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
@@ -107,13 +107,20 @@ export interface ExtendableOptions {
107
107
  patterns?: ExtendablePatterns
108
108
  }
109
109
 
110
- export interface OutdirImportMap {
110
+ export interface ImportMapInput {
111
111
  css: string
112
112
  recipes: string
113
113
  patterns: string
114
114
  jsx?: string
115
115
  }
116
116
 
117
+ export interface ImportMapOutput<T = string[]> {
118
+ css: T
119
+ recipe: T
120
+ pattern: T
121
+ jsx: T
122
+ }
123
+
117
124
  interface FileSystemOptions {
118
125
  /**
119
126
  * Whether to clean the output directory before generating the css.
@@ -137,7 +144,7 @@ interface FileSystemOptions {
137
144
  * }
138
145
  * ```
139
146
  */
140
- importMap?: string | OutdirImportMap
147
+ importMap?: string | ImportMapInput
141
148
  /**
142
149
  * List of files glob to watch for changes.
143
150
  * @default []
@@ -269,9 +276,13 @@ interface CodegenOptions {
269
276
  */
270
277
  hash?: boolean | { cssVar: boolean; className: boolean }
271
278
  /**
272
- * Options for the generated typescript definitions.
279
+ * Change generated typescript definitions to be more strict for property having a token or utility.
273
280
  */
274
281
  strictTokens?: boolean
282
+ /**
283
+ * Change generated typescript definitions to be more strict for built-in CSS properties to only allow valid CSS values.
284
+ */
285
+ strictPropertyValues?: boolean
275
286
  /**
276
287
  * Whether to update the .gitignore file.
277
288
  * @default 'true'
@@ -305,11 +316,6 @@ interface PresetOptions {
305
316
  * Used to create reusable config presets for your project or team.
306
317
  */
307
318
  presets?: (string | Preset | Promise<Preset>)[]
308
- /**
309
- * Whether to opt-out of the defaults config presets: [`@pandacss/preset-base`, `@pandacss/preset-panda`]
310
- * @default 'false'
311
- */
312
- eject?: boolean
313
319
  }
314
320
 
315
321
  interface HooksOptions {
@@ -324,7 +330,13 @@ export interface Config
324
330
  FileSystemOptions,
325
331
  JsxOptions,
326
332
  PresetOptions,
327
- HooksOptions {}
333
+ HooksOptions {
334
+ /**
335
+ * Whether to opt-out of the defaults config presets: [`@pandacss/preset-base`, `@pandacss/preset-panda`]
336
+ * @default 'false'
337
+ */
338
+ eject?: boolean
339
+ }
328
340
 
329
341
  export interface Preset extends ExtendableOptions, PresetOptions {}
330
342
 
package/dist/tokens.d.ts CHANGED
@@ -88,6 +88,7 @@ export interface TokenDataTypes {
88
88
  blurs: string
89
89
  gradients: string | Gradient
90
90
  assets: string | Asset
91
+ borderWidths: string
91
92
  }
92
93
 
93
94
  export type Tokens = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.25.0",
3
+ "version": "0.26.1",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -30,7 +30,7 @@
30
30
  "hookable": "5.5.3",
31
31
  "ncp": "^2.0.0",
32
32
  "pkg-types": "1.0.3",
33
- "@pandacss/extractor": "0.25.0"
33
+ "@pandacss/extractor": "0.26.1"
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "tsx scripts/watch.ts",