@pandacss/studio 0.0.0-dev-20230905135910 → 0.0.0-dev-20230905150548

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "0.0.0-dev-20230905135910",
3
+ "version": "0.0.0-dev-20230905150548",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -33,19 +33,19 @@
33
33
  "react": "18.2.0",
34
34
  "react-dom": "18.2.0",
35
35
  "vite": "4.4.9",
36
- "@pandacss/types": "0.0.0-dev-20230905135910",
37
- "@pandacss/config": "0.0.0-dev-20230905135910",
38
- "@pandacss/shared": "0.0.0-dev-20230905135910",
39
- "@pandacss/token-dictionary": "0.0.0-dev-20230905135910",
40
- "@pandacss/logger": "0.0.0-dev-20230905135910",
41
- "@pandacss/node": "0.0.0-dev-20230905135910"
36
+ "@pandacss/types": "0.0.0-dev-20230905150548",
37
+ "@pandacss/config": "0.0.0-dev-20230905150548",
38
+ "@pandacss/shared": "0.0.0-dev-20230905150548",
39
+ "@pandacss/token-dictionary": "0.0.0-dev-20230905150548",
40
+ "@pandacss/logger": "0.0.0-dev-20230905150548",
41
+ "@pandacss/node": "0.0.0-dev-20230905150548"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/react": "18.2.18",
45
45
  "@types/react-dom": "18.2.7",
46
46
  "@vitejs/plugin-react": "4.0.4",
47
47
  "execa": "7.2.0",
48
- "@pandacss/dev": "0.0.0-dev-20230905135910"
48
+ "@pandacss/dev": "0.0.0-dev-20230905150548"
49
49
  },
50
50
  "scripts": {
51
51
  "codegen": "panda",
@@ -25,4 +25,4 @@ export * from './bleed';
25
25
  export * from './visually-hidden';
26
26
  export * from './styled-link';
27
27
 
28
- export type { HTMLPandaProps } from '../types/jsx';
28
+ export type { HTMLPandaProps, PandaComponent } from '../types/jsx';
@@ -14,7 +14,7 @@ type AspectRatioStyles = AspectRatioProperties & DistributiveOmit<SystemStyleObj
14
14
 
15
15
  interface AspectRatioPatternFn {
16
16
  (styles?: AspectRatioStyles): string
17
- raw: (styles: AspectRatioStyles) => SystemStyleObject
17
+ raw: (styles?: AspectRatioStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -15,7 +15,7 @@ type BleedStyles = BleedProperties & DistributiveOmit<SystemStyleObject, keyof B
15
15
 
16
16
  interface BleedPatternFn {
17
17
  (styles?: BleedStyles): string
18
- raw: (styles: BleedStyles) => SystemStyleObject
18
+ raw: (styles?: BleedStyles) => SystemStyleObject
19
19
  }
20
20
 
21
21
 
@@ -14,7 +14,7 @@ type BoxStyles = BoxProperties & DistributiveOmit<SystemStyleObject, keyof BoxPr
14
14
 
15
15
  interface BoxPatternFn {
16
16
  (styles?: BoxStyles): string
17
- raw: (styles: BoxStyles) => SystemStyleObject
17
+ raw: (styles?: BoxStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -14,7 +14,7 @@ type CenterStyles = CenterProperties & DistributiveOmit<SystemStyleObject, keyof
14
14
 
15
15
  interface CenterPatternFn {
16
16
  (styles?: CenterStyles): string
17
- raw: (styles: CenterStyles) => SystemStyleObject
17
+ raw: (styles?: CenterStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -14,7 +14,7 @@ type CircleStyles = CircleProperties & DistributiveOmit<SystemStyleObject, keyof
14
14
 
15
15
  interface CirclePatternFn {
16
16
  (styles?: CircleStyles): string
17
- raw: (styles: CircleStyles) => SystemStyleObject
17
+ raw: (styles?: CircleStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -14,7 +14,7 @@ type ContainerStyles = ContainerProperties & DistributiveOmit<SystemStyleObject,
14
14
 
15
15
  interface ContainerPatternFn {
16
16
  (styles?: ContainerStyles): string
17
- raw: (styles: ContainerStyles) => SystemStyleObject
17
+ raw: (styles?: ContainerStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -16,7 +16,7 @@ type DividerStyles = DividerProperties & DistributiveOmit<SystemStyleObject, key
16
16
 
17
17
  interface DividerPatternFn {
18
18
  (styles?: DividerStyles): string
19
- raw: (styles: DividerStyles) => SystemStyleObject
19
+ raw: (styles?: DividerStyles) => SystemStyleObject
20
20
  }
21
21
 
22
22
 
@@ -20,7 +20,7 @@ type FlexStyles = FlexProperties & DistributiveOmit<SystemStyleObject, keyof Fle
20
20
 
21
21
  interface FlexPatternFn {
22
22
  (styles?: FlexStyles): string
23
- raw: (styles: FlexStyles) => SystemStyleObject
23
+ raw: (styles?: FlexStyles) => SystemStyleObject
24
24
  }
25
25
 
26
26
 
@@ -17,7 +17,7 @@ type FloatStyles = FloatProperties & DistributiveOmit<SystemStyleObject, keyof F
17
17
 
18
18
  interface FloatPatternFn {
19
19
  (styles?: FloatStyles): string
20
- raw: (styles: FloatStyles) => SystemStyleObject
20
+ raw: (styles?: FloatStyles) => SystemStyleObject
21
21
  }
22
22
 
23
23
 
@@ -19,7 +19,7 @@ type GridItemStyles = GridItemProperties & DistributiveOmit<SystemStyleObject, k
19
19
 
20
20
  interface GridItemPatternFn {
21
21
  (styles?: GridItemStyles): string
22
- raw: (styles: GridItemStyles) => SystemStyleObject
22
+ raw: (styles?: GridItemStyles) => SystemStyleObject
23
23
  }
24
24
 
25
25
 
@@ -18,7 +18,7 @@ type GridStyles = GridProperties & DistributiveOmit<SystemStyleObject, keyof Gri
18
18
 
19
19
  interface GridPatternFn {
20
20
  (styles?: GridStyles): string
21
- raw: (styles: GridStyles) => SystemStyleObject
21
+ raw: (styles?: GridStyles) => SystemStyleObject
22
22
  }
23
23
 
24
24
 
@@ -15,7 +15,7 @@ type HstackStyles = HstackProperties & DistributiveOmit<SystemStyleObject, keyof
15
15
 
16
16
  interface HstackPatternFn {
17
17
  (styles?: HstackStyles): string
18
- raw: (styles: HstackStyles) => SystemStyleObject
18
+ raw: (styles?: HstackStyles) => SystemStyleObject
19
19
  }
20
20
 
21
21
 
@@ -14,7 +14,7 @@ type LinkBoxStyles = LinkBoxProperties & DistributiveOmit<SystemStyleObject, key
14
14
 
15
15
  interface LinkBoxPatternFn {
16
16
  (styles?: LinkBoxStyles): string
17
- raw: (styles: LinkBoxStyles) => SystemStyleObject
17
+ raw: (styles?: LinkBoxStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -14,7 +14,7 @@ type LinkOverlayStyles = LinkOverlayProperties & DistributiveOmit<SystemStyleObj
14
14
 
15
15
  interface LinkOverlayPatternFn {
16
16
  (styles?: LinkOverlayStyles): string
17
- raw: (styles: LinkOverlayStyles) => SystemStyleObject
17
+ raw: (styles?: LinkOverlayStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -14,7 +14,7 @@ type SpacerStyles = SpacerProperties & DistributiveOmit<SystemStyleObject, keyof
14
14
 
15
15
  interface SpacerPatternFn {
16
16
  (styles?: SpacerStyles): string
17
- raw: (styles: SpacerStyles) => SystemStyleObject
17
+ raw: (styles?: SpacerStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -14,7 +14,7 @@ type SquareStyles = SquareProperties & DistributiveOmit<SystemStyleObject, keyof
14
14
 
15
15
  interface SquarePatternFn {
16
16
  (styles?: SquareStyles): string
17
- raw: (styles: SquareStyles) => SystemStyleObject
17
+ raw: (styles?: SquareStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -17,7 +17,7 @@ type StackStyles = StackProperties & DistributiveOmit<SystemStyleObject, keyof S
17
17
 
18
18
  interface StackPatternFn {
19
19
  (styles?: StackStyles): string
20
- raw: (styles: StackStyles) => SystemStyleObject
20
+ raw: (styles?: StackStyles) => SystemStyleObject
21
21
  }
22
22
 
23
23
 
@@ -14,7 +14,7 @@ type StyledLinkStyles = StyledLinkProperties & DistributiveOmit<SystemStyleObjec
14
14
 
15
15
  interface StyledLinkPatternFn {
16
16
  (styles?: StyledLinkStyles): string
17
- raw: (styles: StyledLinkStyles) => SystemStyleObject
17
+ raw: (styles?: StyledLinkStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -14,7 +14,7 @@ type VisuallyHiddenStyles = VisuallyHiddenProperties & DistributiveOmit<SystemSt
14
14
 
15
15
  interface VisuallyHiddenPatternFn {
16
16
  (styles?: VisuallyHiddenStyles): string
17
- raw: (styles: VisuallyHiddenStyles) => SystemStyleObject
17
+ raw: (styles?: VisuallyHiddenStyles) => SystemStyleObject
18
18
  }
19
19
 
20
20
 
@@ -15,7 +15,7 @@ type VstackStyles = VstackProperties & DistributiveOmit<SystemStyleObject, keyof
15
15
 
16
16
  interface VstackPatternFn {
17
17
  (styles?: VstackStyles): string
18
- raw: (styles: VstackStyles) => SystemStyleObject
18
+ raw: (styles?: VstackStyles) => SystemStyleObject
19
19
  }
20
20
 
21
21
 
@@ -18,7 +18,7 @@ type WrapStyles = WrapProperties & DistributiveOmit<SystemStyleObject, keyof Wra
18
18
 
19
19
  interface WrapPatternFn {
20
20
  (styles?: WrapStyles): string
21
- raw: (styles: WrapStyles) => SystemStyleObject
21
+ raw: (styles?: WrapStyles) => SystemStyleObject
22
22
  }
23
23
 
24
24
 
@@ -1,4 +1,6 @@
1
1
  /* eslint-disable */
2
2
  import './global.d.ts'
3
3
  export type { ConditionalValue } from './conditions';
4
+ export type { PatternConfig, PatternProperties } from './pattern';
5
+ export type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe';
4
6
  export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types';
@@ -100,6 +100,7 @@ export type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord>
100
100
  ) => SlotRecord<S, string>
101
101
 
102
102
  export type SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>> = SlotRecipeVariantFn<S, T> & {
103
+ raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
103
104
  variantKeys: (keyof T)[]
104
105
  variantMap: RecipeVariantMap<T>
105
106
  splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]