@pandacss/studio 0.7.0 → 0.9.0
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 +9 -9
- package/styled-system/css/css.d.ts +7 -1
- package/styled-system/css/css.mjs +1 -0
- package/styled-system/patterns/aspect-ratio.d.ts +6 -1
- package/styled-system/patterns/aspect-ratio.mjs +1 -0
- package/styled-system/patterns/box.d.ts +6 -1
- package/styled-system/patterns/box.mjs +1 -0
- package/styled-system/patterns/center.d.ts +6 -1
- package/styled-system/patterns/center.mjs +1 -0
- package/styled-system/patterns/circle.d.ts +6 -1
- package/styled-system/patterns/circle.mjs +1 -0
- package/styled-system/patterns/container.d.ts +6 -1
- package/styled-system/patterns/container.mjs +1 -0
- package/styled-system/patterns/divider.d.ts +6 -1
- package/styled-system/patterns/divider.mjs +1 -0
- package/styled-system/patterns/flex.d.ts +6 -1
- package/styled-system/patterns/flex.mjs +1 -0
- package/styled-system/patterns/float.d.ts +6 -1
- package/styled-system/patterns/float.mjs +1 -0
- package/styled-system/patterns/grid-item.d.ts +6 -1
- package/styled-system/patterns/grid-item.mjs +1 -0
- package/styled-system/patterns/grid.d.ts +6 -1
- package/styled-system/patterns/grid.mjs +1 -0
- package/styled-system/patterns/hstack.d.ts +6 -1
- package/styled-system/patterns/hstack.mjs +1 -0
- package/styled-system/patterns/link-box.d.ts +6 -1
- package/styled-system/patterns/link-box.mjs +1 -0
- package/styled-system/patterns/link-overlay.d.ts +6 -1
- package/styled-system/patterns/link-overlay.mjs +1 -0
- package/styled-system/patterns/spacer.d.ts +6 -1
- package/styled-system/patterns/spacer.mjs +1 -0
- package/styled-system/patterns/square.d.ts +6 -1
- package/styled-system/patterns/square.mjs +1 -0
- package/styled-system/patterns/stack.d.ts +6 -1
- package/styled-system/patterns/stack.mjs +1 -0
- package/styled-system/patterns/styled-link.d.ts +6 -1
- package/styled-system/patterns/styled-link.mjs +1 -0
- package/styled-system/patterns/vstack.d.ts +6 -1
- package/styled-system/patterns/vstack.mjs +1 -0
- package/styled-system/patterns/wrap.d.ts +6 -1
- package/styled-system/patterns/wrap.mjs +1 -0
- package/styled-system/tokens/index.css +0 -11
- package/styled-system/types/jsx.d.ts +5 -1
- package/styled-system/types/pattern.d.ts +8 -1
- package/styled-system/types/recipe.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ark-ui/react": "0.7.2",
|
|
30
30
|
"@astrojs/react": "2.2.1",
|
|
31
|
-
"astro": "2.8.
|
|
31
|
+
"astro": "2.8.4",
|
|
32
32
|
"javascript-stringify": "2.1.0",
|
|
33
33
|
"react": "18.2.0",
|
|
34
34
|
"react-dom": "18.2.0",
|
|
35
35
|
"vite": "4.4.2",
|
|
36
|
-
"@pandacss/types": "0.
|
|
37
|
-
"@pandacss/config": "0.
|
|
38
|
-
"@pandacss/shared": "0.
|
|
39
|
-
"@pandacss/token-dictionary": "0.
|
|
40
|
-
"@pandacss/logger": "0.
|
|
41
|
-
"@pandacss/node": "0.
|
|
36
|
+
"@pandacss/types": "0.9.0",
|
|
37
|
+
"@pandacss/config": "0.9.0",
|
|
38
|
+
"@pandacss/shared": "0.9.0",
|
|
39
|
+
"@pandacss/token-dictionary": "0.9.0",
|
|
40
|
+
"@pandacss/logger": "0.9.0",
|
|
41
|
+
"@pandacss/node": "0.9.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "18.2.14",
|
|
45
45
|
"@types/react-dom": "18.2.6",
|
|
46
46
|
"@vitejs/plugin-react": "4.0.3",
|
|
47
47
|
"execa": "7.1.1",
|
|
48
|
-
"@pandacss/dev": "0.
|
|
48
|
+
"@pandacss/dev": "0.9.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"codegen": "panda",
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject } from '../types'
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
interface CssFunction {
|
|
5
|
+
(styles: SystemStyleObject): string
|
|
6
|
+
raw: (styles: SystemStyleObject) => SystemStyleObject
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare const css: CssFunction;
|
|
@@ -11,5 +11,10 @@ export type AspectRatioProperties = {
|
|
|
11
11
|
|
|
12
12
|
type AspectRatioOptions = AspectRatioProperties & Omit<SystemStyleObject, keyof AspectRatioProperties | 'aspectRatio'>
|
|
13
13
|
|
|
14
|
+
interface AspectRatioPatternFn {
|
|
15
|
+
(options?: AspectRatioOptions): string
|
|
16
|
+
raw: (options: AspectRatioOptions) => AspectRatioOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const aspectRatio: AspectRatioPatternFn;
|
|
@@ -11,5 +11,10 @@ export type BoxProperties = {
|
|
|
11
11
|
|
|
12
12
|
type BoxOptions = BoxProperties & Omit<SystemStyleObject, keyof BoxProperties >
|
|
13
13
|
|
|
14
|
+
interface BoxPatternFn {
|
|
15
|
+
(options?: BoxOptions): string
|
|
16
|
+
raw: (options: BoxOptions) => BoxOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const box: BoxPatternFn;
|
|
@@ -11,5 +11,10 @@ export type CenterProperties = {
|
|
|
11
11
|
|
|
12
12
|
type CenterOptions = CenterProperties & Omit<SystemStyleObject, keyof CenterProperties >
|
|
13
13
|
|
|
14
|
+
interface CenterPatternFn {
|
|
15
|
+
(options?: CenterOptions): string
|
|
16
|
+
raw: (options: CenterOptions) => CenterOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const center: CenterPatternFn;
|
|
@@ -11,5 +11,10 @@ export type CircleProperties = {
|
|
|
11
11
|
|
|
12
12
|
type CircleOptions = CircleProperties & Omit<SystemStyleObject, keyof CircleProperties >
|
|
13
13
|
|
|
14
|
+
interface CirclePatternFn {
|
|
15
|
+
(options?: CircleOptions): string
|
|
16
|
+
raw: (options: CircleOptions) => CircleOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const circle: CirclePatternFn;
|
|
@@ -11,5 +11,10 @@ export type ContainerProperties = {
|
|
|
11
11
|
|
|
12
12
|
type ContainerOptions = ContainerProperties & Omit<SystemStyleObject, keyof ContainerProperties >
|
|
13
13
|
|
|
14
|
+
interface ContainerPatternFn {
|
|
15
|
+
(options?: ContainerOptions): string
|
|
16
|
+
raw: (options: ContainerOptions) => ContainerOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const container: ContainerPatternFn;
|
|
@@ -13,5 +13,10 @@ export type DividerProperties = {
|
|
|
13
13
|
|
|
14
14
|
type DividerOptions = DividerProperties & Omit<SystemStyleObject, keyof DividerProperties >
|
|
15
15
|
|
|
16
|
+
interface DividerPatternFn {
|
|
17
|
+
(options?: DividerOptions): string
|
|
18
|
+
raw: (options: DividerOptions) => DividerOptions
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
|
|
17
|
-
export declare
|
|
22
|
+
export declare const divider: DividerPatternFn;
|
|
@@ -17,5 +17,10 @@ export type FlexProperties = {
|
|
|
17
17
|
|
|
18
18
|
type FlexOptions = FlexProperties & Omit<SystemStyleObject, keyof FlexProperties >
|
|
19
19
|
|
|
20
|
+
interface FlexPatternFn {
|
|
21
|
+
(options?: FlexOptions): string
|
|
22
|
+
raw: (options: FlexOptions) => FlexOptions
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
|
|
21
|
-
export declare
|
|
26
|
+
export declare const flex: FlexPatternFn;
|
|
@@ -14,5 +14,10 @@ export type FloatProperties = {
|
|
|
14
14
|
|
|
15
15
|
type FloatOptions = FloatProperties & Omit<SystemStyleObject, keyof FloatProperties >
|
|
16
16
|
|
|
17
|
+
interface FloatPatternFn {
|
|
18
|
+
(options?: FloatOptions): string
|
|
19
|
+
raw: (options: FloatOptions) => FloatOptions
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
|
|
18
|
-
export declare
|
|
23
|
+
export declare const float: FloatPatternFn;
|
|
@@ -16,5 +16,10 @@ export type GridItemProperties = {
|
|
|
16
16
|
|
|
17
17
|
type GridItemOptions = GridItemProperties & Omit<SystemStyleObject, keyof GridItemProperties >
|
|
18
18
|
|
|
19
|
+
interface GridItemPatternFn {
|
|
20
|
+
(options?: GridItemOptions): string
|
|
21
|
+
raw: (options: GridItemOptions) => GridItemOptions
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
|
|
20
|
-
export declare
|
|
25
|
+
export declare const gridItem: GridItemPatternFn;
|
|
@@ -15,5 +15,10 @@ export type GridProperties = {
|
|
|
15
15
|
|
|
16
16
|
type GridOptions = GridProperties & Omit<SystemStyleObject, keyof GridProperties >
|
|
17
17
|
|
|
18
|
+
interface GridPatternFn {
|
|
19
|
+
(options?: GridOptions): string
|
|
20
|
+
raw: (options: GridOptions) => GridOptions
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
|
|
19
|
-
export declare
|
|
24
|
+
export declare const grid: GridPatternFn;
|
|
@@ -12,5 +12,10 @@ export type HstackProperties = {
|
|
|
12
12
|
|
|
13
13
|
type HstackOptions = HstackProperties & Omit<SystemStyleObject, keyof HstackProperties >
|
|
14
14
|
|
|
15
|
+
interface HstackPatternFn {
|
|
16
|
+
(options?: HstackOptions): string
|
|
17
|
+
raw: (options: HstackOptions) => HstackOptions
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
|
|
16
|
-
export declare
|
|
21
|
+
export declare const hstack: HstackPatternFn;
|
|
@@ -11,5 +11,10 @@ export type LinkBoxProperties = {
|
|
|
11
11
|
|
|
12
12
|
type LinkBoxOptions = LinkBoxProperties & Omit<SystemStyleObject, keyof LinkBoxProperties >
|
|
13
13
|
|
|
14
|
+
interface LinkBoxPatternFn {
|
|
15
|
+
(options?: LinkBoxOptions): string
|
|
16
|
+
raw: (options: LinkBoxOptions) => LinkBoxOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const linkBox: LinkBoxPatternFn;
|
|
@@ -11,5 +11,10 @@ export type LinkOverlayProperties = {
|
|
|
11
11
|
|
|
12
12
|
type LinkOverlayOptions = LinkOverlayProperties & Omit<SystemStyleObject, keyof LinkOverlayProperties >
|
|
13
13
|
|
|
14
|
+
interface LinkOverlayPatternFn {
|
|
15
|
+
(options?: LinkOverlayOptions): string
|
|
16
|
+
raw: (options: LinkOverlayOptions) => LinkOverlayOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const linkOverlay: LinkOverlayPatternFn;
|
|
@@ -11,5 +11,10 @@ export type SpacerProperties = {
|
|
|
11
11
|
|
|
12
12
|
type SpacerOptions = SpacerProperties & Omit<SystemStyleObject, keyof SpacerProperties >
|
|
13
13
|
|
|
14
|
+
interface SpacerPatternFn {
|
|
15
|
+
(options?: SpacerOptions): string
|
|
16
|
+
raw: (options: SpacerOptions) => SpacerOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const spacer: SpacerPatternFn;
|
|
@@ -11,5 +11,10 @@ export type SquareProperties = {
|
|
|
11
11
|
|
|
12
12
|
type SquareOptions = SquareProperties & Omit<SystemStyleObject, keyof SquareProperties >
|
|
13
13
|
|
|
14
|
+
interface SquarePatternFn {
|
|
15
|
+
(options?: SquareOptions): string
|
|
16
|
+
raw: (options: SquareOptions) => SquareOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const square: SquarePatternFn;
|
|
@@ -14,5 +14,10 @@ export type StackProperties = {
|
|
|
14
14
|
|
|
15
15
|
type StackOptions = StackProperties & Omit<SystemStyleObject, keyof StackProperties >
|
|
16
16
|
|
|
17
|
+
interface StackPatternFn {
|
|
18
|
+
(options?: StackOptions): string
|
|
19
|
+
raw: (options: StackOptions) => StackOptions
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
|
|
18
|
-
export declare
|
|
23
|
+
export declare const stack: StackPatternFn;
|
|
@@ -11,5 +11,10 @@ export type StyledLinkProperties = {
|
|
|
11
11
|
|
|
12
12
|
type StyledLinkOptions = StyledLinkProperties & Omit<SystemStyleObject, keyof StyledLinkProperties >
|
|
13
13
|
|
|
14
|
+
interface StyledLinkPatternFn {
|
|
15
|
+
(options?: StyledLinkOptions): string
|
|
16
|
+
raw: (options: StyledLinkOptions) => StyledLinkOptions
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
|
|
15
|
-
export declare
|
|
20
|
+
export declare const styledLink: StyledLinkPatternFn;
|
|
@@ -12,5 +12,10 @@ export type VstackProperties = {
|
|
|
12
12
|
|
|
13
13
|
type VstackOptions = VstackProperties & Omit<SystemStyleObject, keyof VstackProperties >
|
|
14
14
|
|
|
15
|
+
interface VstackPatternFn {
|
|
16
|
+
(options?: VstackOptions): string
|
|
17
|
+
raw: (options: VstackOptions) => VstackOptions
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
|
|
16
|
-
export declare
|
|
21
|
+
export declare const vstack: VstackPatternFn;
|
|
@@ -15,5 +15,10 @@ export type WrapProperties = {
|
|
|
15
15
|
|
|
16
16
|
type WrapOptions = WrapProperties & Omit<SystemStyleObject, keyof WrapProperties >
|
|
17
17
|
|
|
18
|
+
interface WrapPatternFn {
|
|
19
|
+
(options?: WrapOptions): string
|
|
20
|
+
raw: (options: WrapOptions) => WrapOptions
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
|
|
19
|
-
export declare
|
|
24
|
+
export declare const wrap: WrapPatternFn;
|
|
@@ -425,17 +425,6 @@
|
|
|
425
425
|
--colors-bg: #fff;
|
|
426
426
|
--colors-card: #e5e5e5;
|
|
427
427
|
--colors-border: #d4d4d4;
|
|
428
|
-
--colors-color-palette-50: var(--colors-color-palette-50);
|
|
429
|
-
--colors-color-palette-100: var(--colors-color-palette-100);
|
|
430
|
-
--colors-color-palette-200: var(--colors-color-palette-200);
|
|
431
|
-
--colors-color-palette-300: var(--colors-color-palette-300);
|
|
432
|
-
--colors-color-palette-400: var(--colors-color-palette-400);
|
|
433
|
-
--colors-color-palette-500: var(--colors-color-palette-500);
|
|
434
|
-
--colors-color-palette-600: var(--colors-color-palette-600);
|
|
435
|
-
--colors-color-palette-700: var(--colors-color-palette-700);
|
|
436
|
-
--colors-color-palette-800: var(--colors-color-palette-800);
|
|
437
|
-
--colors-color-palette-900: var(--colors-color-palette-900);
|
|
438
|
-
--colors-color-palette-950: var(--colors-color-palette-950);
|
|
439
428
|
}
|
|
440
429
|
|
|
441
430
|
.dark {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type {
|
|
2
|
+
import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
|
|
3
3
|
import type { Assign, JsxStyleProps, JsxHTMLProps } from './system-types'
|
|
4
4
|
import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe'
|
|
5
5
|
|
|
6
6
|
type Dict = Record<string, unknown>
|
|
7
7
|
|
|
8
|
+
type ComponentProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
9
|
+
ref?: Ref<ElementRef<T>>
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export type PandaComponent<T extends ElementType, P extends Dict = {}> = {
|
|
9
13
|
(props: JsxHTMLProps<ComponentProps<T>, Assign<JsxStyleProps, P>>): JSX.Element
|
|
10
14
|
displayName?: string
|
|
@@ -40,7 +40,14 @@ export type PatternConfig<T extends PatternProperties = PatternProperties> = {
|
|
|
40
40
|
/**
|
|
41
41
|
* The jsx element name this pattern will generate.
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
jsxName?: string
|
|
44
|
+
/**
|
|
45
|
+
* The jsx elements to track for this pattern. Can be string or Regexp.
|
|
46
|
+
*
|
|
47
|
+
* @default capitalize(pattern.name)
|
|
48
|
+
* @example ['Button', 'Link', /Button$/]
|
|
49
|
+
*/
|
|
50
|
+
jsx?: Array<string | RegExp>
|
|
44
51
|
/**
|
|
45
52
|
* Whether to only generate types for the specified properties.
|
|
46
53
|
* This will disallow css properties
|