@pandacss/types 0.10.0 → 0.11.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
@@ -10,6 +10,10 @@ import type { UtilityConfig } from './utility'
10
10
 
11
11
  export type { TSConfig }
12
12
 
13
+ export type CascadeLayer = 'reset' | 'base' | 'tokens' | 'recipes' | 'utilities'
14
+
15
+ export type CascadeLayers = Record<CascadeLayer, string>
16
+
13
17
  type StudioOptions = {
14
18
  /**
15
19
  * Used to customize the design system studio
@@ -226,6 +230,11 @@ type CodegenOptions = {
226
230
  * @default 'true'
227
231
  */
228
232
  shorthands?: boolean
233
+ /**
234
+ * Layer mappings used in the generated css.
235
+ * @default 'true'
236
+ */
237
+ layers?: Partial<CascadeLayers>
229
238
  }
230
239
 
231
240
  type PresetOptions = {
package/dist/hooks.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import type { TokenDictionary } from '@pandacss/token-dictionary'
2
1
  import type { HookKeys, Hookable } from 'hookable'
3
2
  import type { LoadConfigResult, UserConfig } from './config'
4
3
  import type { ParserResultType } from './parser'
@@ -14,10 +13,6 @@ export interface PandaHooks {
14
13
  * Called when the config file or one of its dependencies (imports) has changed.
15
14
  */
16
15
  'config:change': (ctx: UserConfig) => MaybeAsyncReturn
17
- /**
18
- * Called after creating the TokenDictionary from the resolved config.
19
- */
20
- 'generator:tokens': (tokenDictionary: TokenDictionary) => void
21
16
  /**
22
17
  * Called after reading the file content but before parsing it.
23
18
  */
@@ -34,7 +29,7 @@ export interface PandaHooks {
34
29
  * Called before generating the design-system CSS files (global, static, preflight, tokens, keyframes)
35
30
  */
36
31
  'generator:css': (
37
- file: 'global.css' | 'static.css' | 'reset.css' | 'tokens.css' | 'keyframes.css',
32
+ file: 'global.css' | 'static.css' | 'reset.css' | 'tokens.css' | 'keyframes.css' | 'styles.css',
38
33
  css: string,
39
34
  ) => void
40
35
  }
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, ConfigTsOptions, LoadConfigResult, Preset, UserConfig, TSConfig } from './config'
12
+ export type { Config, ConfigTsOptions, LoadConfigResult, Preset, UserConfig, TSConfig, CascadeLayers } 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -17,8 +17,7 @@
17
17
  "hookable": "5.5.3",
18
18
  "ncp": "^2.0.0",
19
19
  "pkg-types": "1.0.3",
20
- "@pandacss/extractor": "0.10.0",
21
- "@pandacss/token-dictionary": "0.10.0"
20
+ "@pandacss/extractor": "0.11.1"
22
21
  },
23
22
  "scripts": {
24
23
  "build": "tsx scripts/build.ts",