@pandacss/types 0.0.0-dev-20230614142625 → 0.0.0-dev-20230614164728

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
@@ -13,6 +13,10 @@ type StudioOptions = {
13
13
  * @default { title: 'Panda', logo: '🐼' }
14
14
  */
15
15
  studio?: {
16
+ /**
17
+ * The output directory for the design system studio when the build command is run.
18
+ */
19
+ outdir?: string
16
20
  /**
17
21
  * The logo url for the design system studio.
18
22
  */
package/dist/hooks.d.ts CHANGED
@@ -1,7 +1,7 @@
1
+ import type { TokenDictionary } from '@pandacss/token-dictionary'
2
+ import type { HookKeys, Hookable } from 'hookable'
1
3
  import type { LoadConfigResult, UserConfig } from './config'
2
- import type { Hookable, HookKeys } from 'hookable'
3
4
  import type { ParserResultType } from './parser'
4
- import type { TokenDictionary } from '@pandacss/token-dictionary'
5
5
 
6
6
  type MaybeAsyncReturn = Promise<void> | void
7
7
 
package/dist/pattern.d.ts CHANGED
@@ -14,7 +14,11 @@ export type PatternHelpers = {
14
14
  map: (value: any, fn: (value: string) => string | undefined) => any
15
15
  }
16
16
 
17
- export type PatternConfig<T = PatternProperty> = {
17
+ type PatternProperties = Record<string, PatternProperty>
18
+
19
+ type Props<T> = Record<LiteralUnion<keyof T>, any>
20
+
21
+ export type PatternConfig<T extends PatternProperties = PatternProperties> = {
18
22
  /**
19
23
  * The description of the pattern. This will be used in the JSDoc comment.
20
24
  */
@@ -27,14 +31,11 @@ export type PatternConfig<T = PatternProperty> = {
27
31
  /**
28
32
  * The properties of the pattern.
29
33
  */
30
- properties: T extends Record<string, PatternProperty> ? T : Record<string, PatternProperty>
34
+ properties: T
31
35
  /**
32
36
  * The css object this pattern will generate.
33
37
  */
34
- transform?: (
35
- props: T extends Record<infer Keys, PatternProperty> ? Record<Keys, any> : Record<string, PatternProperty>,
36
- helpers: PatternHelpers,
37
- ) => SystemStyleObject
38
+ transform?: (props: Props<T>, helpers: PatternHelpers) => SystemStyleObject
38
39
  /**
39
40
  * The jsx element name this pattern will generate.
40
41
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230614142625",
3
+ "version": "0.0.0-dev-20230614164728",
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,8 @@
15
15
  "chokidar-cli": "^3.0.0",
16
16
  "csstype": "3.1.2",
17
17
  "hookable": "5.5.3",
18
- "@pandacss/extractor": "0.0.0-dev-20230614142625",
19
- "@pandacss/token-dictionary": "0.0.0-dev-20230614142625"
18
+ "@pandacss/extractor": "0.0.0-dev-20230614164728",
19
+ "@pandacss/token-dictionary": "0.0.0-dev-20230614164728"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsx scripts/build.ts",