@pandacss/studio 0.0.0-dev-20230903133825 → 0.0.0-dev-20230904141355

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-20230903133825",
3
+ "version": "0.0.0-dev-20230904141355",
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-20230903133825",
37
- "@pandacss/config": "0.0.0-dev-20230903133825",
38
- "@pandacss/shared": "0.0.0-dev-20230903133825",
39
- "@pandacss/token-dictionary": "0.0.0-dev-20230903133825",
40
- "@pandacss/logger": "0.0.0-dev-20230903133825",
41
- "@pandacss/node": "0.0.0-dev-20230903133825"
36
+ "@pandacss/types": "0.0.0-dev-20230904141355",
37
+ "@pandacss/config": "0.0.0-dev-20230904141355",
38
+ "@pandacss/shared": "0.0.0-dev-20230904141355",
39
+ "@pandacss/token-dictionary": "0.0.0-dev-20230904141355",
40
+ "@pandacss/logger": "0.0.0-dev-20230904141355",
41
+ "@pandacss/node": "0.0.0-dev-20230904141355"
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-20230903133825"
48
+ "@pandacss/dev": "0.0.0-dev-20230904141355"
49
49
  },
50
50
  "scripts": {
51
51
  "codegen": "panda",
@@ -0,0 +1,21 @@
1
+ @layer utilities {
2
+ .\ \*\:text_token\(colors\.red\) {
3
+ color: 'colors.red'
4
+ }
5
+
6
+ .\ \*\:border_1px_solid_token\(colors\.blue\) {
7
+ border: 1px solid 'colors.blue'
8
+ }
9
+
10
+ .\ \*\:background-image_linear-gradient\(token\(colors\.red\)\,_token\(colors\.blue\)\) {
11
+ background-image: linear-gradient('colors.red', 'colors.blue')
12
+ }
13
+
14
+ .\ \*\:text_token\(colors\.red\,_colors\.blue\) {
15
+ color: var('colors.red', 'colors.blue')
16
+ }
17
+
18
+ .\ \*\:text_token\(colors\.magenta\,_pink\) {
19
+ color: var('colors.magenta', pink)
20
+ }
21
+ }
@@ -3,7 +3,7 @@ import type { SystemStyleObject } from '../types/index';
3
3
 
4
4
  interface CssFunction {
5
5
  (...styles: Array<SystemStyleObject | undefined | null | false>): string
6
- raw: (styles: SystemStyleObject) => SystemStyleObject
6
+ raw: (...styles: Array<SystemStyleObject | undefined | null | false>) => SystemStyleObject
7
7
  }
8
8
 
9
9
  export declare const css: CssFunction;
@@ -39,6 +39,6 @@ const context = {
39
39
 
40
40
  const cssFn = createCss(context)
41
41
  export const css = (...styles) => cssFn(mergeCss(...styles))
42
- css.raw = (styles) => styles
42
+ css.raw = (...styles) => mergeCss(...styles)
43
43
 
44
44
  export const { mergeCss, assignCss } = createMergeCss(context)
@@ -16,6 +16,26 @@
16
16
  color: green500;
17
17
  }
18
18
 
19
+ .\ \*\:text_token\(colors\.red\) {
20
+ color: 'colors.red'
21
+ }
22
+
23
+ .\ \*\:border_1px_solid_token\(colors\.blue\) {
24
+ border: 1px solid 'colors.blue'
25
+ }
26
+
27
+ .\ \*\:background-image_linear-gradient\(token\(colors\.red\)\,_token\(colors\.blue\)\) {
28
+ background-image: linear-gradient('colors.red', 'colors.blue')
29
+ }
30
+
31
+ .\ \*\:text_token\(colors\.red\,_colors\.blue\) {
32
+ color: var('colors.red', 'colors.blue')
33
+ }
34
+
35
+ .\ \*\:text_token\(colors\.magenta\,_pink\) {
36
+ color: var('colors.magenta', pink)
37
+ }
38
+
19
39
  .font_12px\/1\.5_Helvetica\,_Arial\,_sans-serif {
20
40
  font: 12px/1.5 Helvetica, Arial, sans-serif;
21
41
  }
@@ -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>>]