@pandacss/types 1.4.1 → 1.4.3

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.
@@ -34,6 +34,7 @@ export type ArtifactId =
34
34
  | 'types-conditions'
35
35
  | 'types-gen'
36
36
  | 'types-gen-system'
37
+ | 'static-css'
37
38
  | `recipes.${string}`
38
39
  | `patterns.${string}`
39
40
 
package/dist/config.d.ts CHANGED
@@ -209,6 +209,7 @@ export interface ImportMapInput {
209
209
  recipes?: string | string[]
210
210
  patterns?: string | string[]
211
211
  jsx?: string | string[]
212
+ tokens?: string | string[]
212
213
  }
213
214
 
214
215
  export interface ImportMapOutput<T = string> {
@@ -216,6 +217,7 @@ export interface ImportMapOutput<T = string> {
216
217
  recipe: T[]
217
218
  pattern: T[]
218
219
  jsx: T[]
220
+ tokens: T[]
219
221
  }
220
222
 
221
223
  type ImportMapOption = string | ImportMapInput
package/dist/parser.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { BoxNodeArray, BoxNodeLiteral, BoxNodeMap, Unboxed } from '@pandacs
3
3
  export interface ResultItem {
4
4
  name?: string
5
5
  data: Array<Unboxed['raw']>
6
- type?: 'css' | 'cva' | 'sva' | 'pattern' | 'recipe' | 'jsx-factory' | 'jsx-pattern' | 'jsx-recipe' | 'jsx'
6
+ type?: 'css' | 'cva' | 'sva' | 'token' | 'pattern' | 'recipe' | 'jsx-factory' | 'jsx-pattern' | 'jsx-recipe' | 'jsx'
7
7
  box?: BoxNodeMap | BoxNodeLiteral | BoxNodeArray
8
8
  }
9
9
 
@@ -13,15 +13,17 @@ export interface ParserResultInterface {
13
13
  css: Set<ResultItem>
14
14
  cva: Set<ResultItem>
15
15
  sva: Set<ResultItem>
16
+ token: Set<ResultItem>
16
17
  recipe: Map<string, Set<ResultItem>>
17
18
  pattern: Map<string, Set<ResultItem>>
18
19
  filePath: string | undefined
19
20
  isEmpty: () => boolean
20
21
  toArray: () => Array<ResultItem>
21
- set: (name: 'cva' | 'css' | 'sva', result: ResultItem) => void
22
+ set: (name: 'cva' | 'css' | 'sva' | 'token', result: ResultItem) => void
22
23
  setCss: (result: ResultItem) => void
23
24
  setCva: (result: ResultItem) => void
24
25
  setSva: (result: ResultItem) => void
26
+ setToken: (result: ResultItem) => void
25
27
  setJsx: (result: ResultItem) => void
26
28
  setPattern: (name: string, result: ResultItem) => void
27
29
  setRecipe: (name: string, result: ResultItem) => void
@@ -4,6 +4,7 @@ export type ReportItemType =
4
4
  | 'css'
5
5
  | 'cva'
6
6
  | 'sva'
7
+ | 'token'
7
8
  | 'pattern'
8
9
  | 'recipe'
9
10
  | 'jsx-factory'
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
7
+ "license": "MIT",
7
8
  "exports": {
8
9
  ".": {
9
10
  "source": "./src/index.ts",
@@ -27,11 +28,11 @@
27
28
  ],
28
29
  "devDependencies": {
29
30
  "csstype": "3.1.3",
30
- "microdiff": "1.3.2",
31
+ "microdiff": "1.5.0",
31
32
  "ncp": "2.0.0",
32
- "pkg-types": "2.2.0",
33
+ "pkg-types": "2.3.0",
33
34
  "ts-morph": "26.0.0",
34
- "@pandacss/extractor": "1.4.1"
35
+ "@pandacss/extractor": "1.4.3"
35
36
  },
36
37
  "scripts": {
37
38
  "dev": "tsx scripts/watch.ts",