@pandacss/types 0.0.0-dev-20230608121457 → 0.0.0-dev-20230608163155

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,4 +1,4 @@
1
- import type { Conditions as TConditions } from './conditions'
1
+ import type { Conditions } from './conditions'
2
2
  import type { PatternConfig } from './pattern'
3
3
  import type { Extendable, RequiredBy, UnwrapExtend } from './shared'
4
4
  import type { StaticCssOptions } from './static-css'
@@ -17,28 +17,32 @@ type StudioOptions = {
17
17
  }
18
18
  }
19
19
 
20
- type ExtendableOptions = {
20
+ type PresetCore = {
21
21
  /**
22
22
  * The css selectors or media queries shortcuts.
23
23
  * @example `{ hover: "&:hover" }`
24
24
  */
25
- conditions?: Extendable<TConditions>
25
+ conditions: Conditions
26
26
  /**
27
27
  * The global styles for your project.
28
28
  */
29
- globalCss?: Extendable<GlobalStyleObject>
29
+ globalCss: GlobalStyleObject
30
30
  /**
31
31
  * The theme configuration for your project.
32
32
  */
33
- theme?: Extendable<Theme>
33
+ theme: Theme
34
34
  /**
35
35
  * The css utility definitions.
36
36
  */
37
- utilities?: Extendable<UtilityConfig>
37
+ utilities: UtilityConfig
38
38
  /**
39
39
  * Common styling or layout patterns for your project.
40
40
  */
41
- patterns?: Extendable<Record<string, PatternConfig>>
41
+ patterns: Record<string, PatternConfig>
42
+ }
43
+
44
+ type ExtendableOptions = {
45
+ [K in keyof PresetCore]?: Extendable<PresetCore[K]>
42
46
  }
43
47
 
44
48
  type FileSystemOptions = {
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  export type {
2
- ReportInstanceItem,
3
- ReportItem,
4
- ReportItemType,
5
2
  AnalysisReport,
6
3
  AnalysisReportJSON,
4
+ ReportInstanceItem,
7
5
  ReportInstanceItemJSON,
6
+ ReportItem,
8
7
  ReportItemJSON,
8
+ ReportItemType,
9
9
  } from './analyze-report'
10
10
  export type { CompositionStyles, LayerStyles, TextStyles } from './composition'
11
- export type { ConditionDetails, Conditions, ConditionType, RawCondition } from './conditions'
11
+ export type { ConditionDetails, ConditionType, Conditions, RawCondition } from './conditions'
12
12
  export type { Config, LoadConfigResult, Preset, UserConfig } from './config'
13
13
  export type { ParserResultType, ResultItem } from './parser'
14
14
  export type { Part, Parts } from './parts'
@@ -18,5 +18,6 @@ export type { Runtime } from './runtime'
18
18
  export type { AnyFunction, Artifact, Dict, RequiredBy } from './shared'
19
19
  export type { StaticCssOptions } from './static-css'
20
20
  export type { CssKeyframes, GlobalStyleObject, SystemStyleObject } from './system-types'
21
+ export type { Theme } from './theme'
21
22
  export type { SemanticToken, SemanticTokens, Token, TokenCategory, TokenDataTypes, Tokens } from './tokens'
22
23
  export type { PropertyConfig, PropertyTransform, PropertyValues, UtilityConfig } from './utility'
package/dist/shared.d.ts CHANGED
@@ -14,11 +14,11 @@ type DeepPartial<T> = {
14
14
  [P in keyof T]+?: DeepPartial<T[P]>
15
15
  }
16
16
 
17
- export type Extendable<T> = T | { extend?: T | DeepPartial<T> }
17
+ export type Extendable<T extends Record<any, any>> = T | { extend?: DeepPartial<T> }
18
18
 
19
19
  type Nullable<T> = T | null | undefined
20
20
 
21
- export type UnwrapExtend<T extends Record<string, unknown>> = {
21
+ export type UnwrapExtend<T> = {
22
22
  [K in keyof T]: T[K] extends Nullable<Extendable<infer U>> ? U : T[K]
23
23
  }
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230608121457",
3
+ "version": "0.0.0-dev-20230608163155",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -16,7 +16,7 @@
16
16
  "csstype": "3.1.2"
17
17
  },
18
18
  "dependencies": {
19
- "@pandacss/extractor": "0.0.0-dev-20230608121457"
19
+ "@pandacss/extractor": "0.0.0-dev-20230608163155"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsx scripts/build.ts",