@pandacss/types 0.4.0 → 0.5.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
@@ -1,3 +1,4 @@
1
+ import type { TSConfig } from 'pkg-types'
1
2
  import type { Conditions } from './conditions'
2
3
  import type { PandaHooks } from './hooks'
3
4
  import type { PatternConfig } from './pattern'
@@ -7,6 +8,8 @@ import type { GlobalStyleObject } from './system-types'
7
8
  import type { Theme } from './theme'
8
9
  import type { UtilityConfig } from './utility'
9
10
 
11
+ export type { TSConfig }
12
+
10
13
  type StudioOptions = {
11
14
  /**
12
15
  * Used to customize the design system studio
@@ -161,6 +164,11 @@ type CssgenOptions = {
161
164
  * Used to generate css utility classes for your project.
162
165
  */
163
166
  staticCss?: StaticCssOptions
167
+ /**
168
+ * The css syntax kind to use
169
+ * @default 'object-literal'
170
+ */
171
+ syntax?: 'template-literal' | 'object-literal'
164
172
  }
165
173
 
166
174
  type CodegenOptions = {
@@ -201,6 +209,11 @@ type PresetOptions = {
201
209
  * Used to create reusable config presets for your project or team.
202
210
  */
203
211
  presets?: (string | Preset | Promise<Preset>)[]
212
+ /**
213
+ * Whether to opt-out of the defaults config presets: [`@pandacss/preset-base`, `@pandacss/preset-panda`]
214
+ * @default 'false'
215
+ */
216
+ eject?: boolean
204
217
  }
205
218
 
206
219
  type HooksOptions = {
@@ -220,8 +233,10 @@ export type Preset = ExtendableOptions & PresetOptions
220
233
 
221
234
  export type UserConfig = UnwrapExtend<RequiredBy<Config, 'outdir' | 'cwd' | 'include'>>
222
235
 
223
- export type LoadConfigResult = {
236
+ export interface LoadConfigResult {
224
237
  path: string
225
238
  config: UserConfig
239
+ tsconfig?: TSConfig
240
+ tsconfigFile?: string
226
241
  dependencies: string[]
227
242
  }
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 } from './config'
12
+ export type { Config, 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/parser.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { BoxNodeMap, Unboxed } from '@pandacss/extractor'
1
+ import type { BoxNodeMap, BoxNodeLiteral, Unboxed } from '@pandacss/extractor'
2
2
 
3
3
  export type ResultItem = {
4
4
  name?: string
5
5
  data: Array<Unboxed['raw']>
6
6
  type?: 'object' | 'cva' | 'pattern' | 'recipe' | 'jsx-factory' | 'jsx-pattern' | 'jsx-recipe' | 'jsx'
7
- box: BoxNodeMap
7
+ box: BoxNodeMap | BoxNodeLiteral
8
8
  }
9
9
 
10
10
  export type ParserResultType = {
package/dist/pattern.d.ts CHANGED
@@ -31,7 +31,7 @@ export type PatternConfig<T extends PatternProperties = PatternProperties> = {
31
31
  /**
32
32
  * The properties of the pattern.
33
33
  */
34
- properties: T
34
+ properties?: T
35
35
  /**
36
36
  * The css object this pattern will generate.
37
37
  */
@@ -17,10 +17,12 @@ type CssRule = {
17
17
  responsive?: boolean
18
18
  }
19
19
 
20
- type RecipeRule = {
21
- conditions?: string[]
22
- responsive?: boolean
23
- } & { [variant: string]: boolean | string[] }
20
+ type RecipeRule =
21
+ | '*'
22
+ | ({
23
+ conditions?: string[]
24
+ responsive?: boolean
25
+ } & { [variant: string]: boolean | string[] })
24
26
 
25
27
  export type StaticCssOptions = {
26
28
  /**
package/dist/tokens.d.ts CHANGED
@@ -83,7 +83,6 @@ export type TokenDataTypes = {
83
83
  animations: string
84
84
  blurs: string
85
85
  gradients: string | Gradient
86
- breakpoints: string
87
86
  assets: string | Asset
88
87
  }
89
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -15,8 +15,9 @@
15
15
  "chokidar-cli": "^3.0.0",
16
16
  "csstype": "3.1.2",
17
17
  "hookable": "5.5.3",
18
- "@pandacss/extractor": "0.4.0",
19
- "@pandacss/token-dictionary": "0.4.0"
18
+ "pkg-types": "1.0.3",
19
+ "@pandacss/extractor": "0.5.1",
20
+ "@pandacss/token-dictionary": "0.5.1"
20
21
  },
21
22
  "scripts": {
22
23
  "build": "tsx scripts/build.ts",