@pandacss/studio 0.0.0-dev-20240501191510 → 0.0.0-dev-20240503130204

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-20240501191510",
3
+ "version": "0.0.0-dev-20240503130204",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -48,12 +48,12 @@
48
48
  "react": "18.2.0",
49
49
  "react-dom": "18.2.0",
50
50
  "vite": "5.1.7",
51
- "@pandacss/config": "0.0.0-dev-20240501191510",
52
- "@pandacss/logger": "0.0.0-dev-20240501191510",
53
- "@pandacss/shared": "0.0.0-dev-20240501191510",
54
- "@pandacss/token-dictionary": "0.0.0-dev-20240501191510",
55
- "@pandacss/types": "0.0.0-dev-20240501191510",
56
- "@pandacss/astro-plugin-studio": "0.0.0-dev-20240501191510"
51
+ "@pandacss/config": "0.0.0-dev-20240503130204",
52
+ "@pandacss/logger": "0.0.0-dev-20240503130204",
53
+ "@pandacss/shared": "0.0.0-dev-20240503130204",
54
+ "@pandacss/token-dictionary": "0.0.0-dev-20240503130204",
55
+ "@pandacss/types": "0.0.0-dev-20240503130204",
56
+ "@pandacss/astro-plugin-studio": "0.0.0-dev-20240503130204"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "18.2.55",
@@ -1,9 +1,18 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject } from '../types/index';
3
3
 
4
+ type Styles = SystemStyleObject | undefined | null | false
5
+
4
6
  interface CssFunction {
5
- (...styles: Array<SystemStyleObject | undefined | null | false>): string
6
- raw: (...styles: Array<SystemStyleObject | undefined | null | false>) => SystemStyleObject
7
+ (styles: Styles): string
8
+ (styles: Styles[]): string
9
+ (...styles: Array<Styles | Styles[]>): string
10
+ (styles: Styles): string
11
+
12
+ raw: (styles: Styles) => string
13
+ raw: (styles: Styles[]) => string
14
+ raw: (...styles: Array<Styles | Styles[]>) => string
15
+ raw: (styles: Styles) => string
7
16
  }
8
17
 
9
18
  export declare const css: CssFunction;
@@ -180,7 +180,7 @@ function createCss(context) {
180
180
  });
181
181
  }
182
182
  function compactStyles(...styles) {
183
- return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
183
+ return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
184
184
  }
185
185
  function createMergeCss(context) {
186
186
  function resolve(styles) {
@@ -31,13 +31,13 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
31
31
  function recipeClass() {
32
32
  const { css: cssStyles, ...propStyles } = styleProps
33
33
  const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps)
34
- return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.className)
34
+ return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.className)
35
35
  }
36
36
 
37
37
  function cvaClass() {
38
38
  const { css: cssStyles, ...propStyles } = styleProps
39
39
  const cvaStyles = __cvaFn__.raw(variantProps)
40
- return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.className)
40
+ return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.className)
41
41
  }
42
42
 
43
43
  const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
@@ -10,7 +10,6 @@ export * from './spacer';
10
10
  export * from './square';
11
11
  export * from './circle';
12
12
  export * from './center';
13
- export * from './link-box';
14
13
  export * from './link-overlay';
15
14
  export * from './aspect-ratio';
16
15
  export * from './grid';
@@ -9,7 +9,6 @@ export * from './spacer.mjs';
9
9
  export * from './square.mjs';
10
10
  export * from './circle.mjs';
11
11
  export * from './center.mjs';
12
- export * from './link-box.mjs';
13
12
  export * from './link-overlay.mjs';
14
13
  export * from './aspect-ratio.mjs';
15
14
  export * from './grid.mjs';
@@ -8,7 +8,6 @@ export * from './spacer';
8
8
  export * from './square';
9
9
  export * from './circle';
10
10
  export * from './center';
11
- export * from './link-box';
12
11
  export * from './link-overlay';
13
12
  export * from './aspect-ratio';
14
13
  export * from './grid';
@@ -7,7 +7,6 @@ export * from './spacer.mjs';
7
7
  export * from './square.mjs';
8
8
  export * from './circle.mjs';
9
9
  export * from './center.mjs';
10
- export * from './link-box.mjs';
11
10
  export * from './link-overlay.mjs';
12
11
  export * from './aspect-ratio.mjs';
13
12
  export * from './grid.mjs';
@@ -4,12 +4,9 @@ import { css } from '../css/index.mjs';
4
4
  const linkOverlayConfig = {
5
5
  transform(props) {
6
6
  return {
7
- position: "static",
8
7
  _before: {
9
8
  content: '""',
10
- display: "block",
11
9
  position: "absolute",
12
- cursor: "inherit",
13
10
  inset: "0",
14
11
  zIndex: "0",
15
12
  ...props["_before"]