@pandacss/studio 0.0.0-dev-20230904084900 → 0.0.0-dev-20230904144746

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-20230904084900",
3
+ "version": "0.0.0-dev-20230904144746",
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-20230904084900",
37
- "@pandacss/config": "0.0.0-dev-20230904084900",
38
- "@pandacss/shared": "0.0.0-dev-20230904084900",
39
- "@pandacss/token-dictionary": "0.0.0-dev-20230904084900",
40
- "@pandacss/logger": "0.0.0-dev-20230904084900",
41
- "@pandacss/node": "0.0.0-dev-20230904084900"
36
+ "@pandacss/types": "0.0.0-dev-20230904144746",
37
+ "@pandacss/config": "0.0.0-dev-20230904144746",
38
+ "@pandacss/shared": "0.0.0-dev-20230904144746",
39
+ "@pandacss/token-dictionary": "0.0.0-dev-20230904144746",
40
+ "@pandacss/logger": "0.0.0-dev-20230904144746",
41
+ "@pandacss/node": "0.0.0-dev-20230904144746"
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-20230904084900"
48
+ "@pandacss/dev": "0.0.0-dev-20230904144746"
49
49
  },
50
50
  "scripts": {
51
51
  "codegen": "panda",
@@ -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>>]
@@ -1,19 +0,0 @@
1
- @layer utilities {
2
- .styles\:dark\:text_green500 {
3
- &.dark,
4
- .dark & {
5
- color: green500;
6
- }
7
- }
8
-
9
- .styles\:dark\:sm\:md\:text_red200 {
10
- &.dark,
11
- .dark & {
12
- @media screen and (min-width: 640px) {
13
- @media screen and (min-width: 768px) {
14
- color: red200;
15
- }
16
- }
17
- }
18
- }
19
- }
@@ -1,15 +0,0 @@
1
- @layer utilities {
2
- .font_12px\/1\.5_Helvetica\,_Arial\,_sans-serif {
3
- font: 12px/1.5 Helvetica, Arial, sans-serif;
4
- }
5
-
6
- .text_red {
7
- color: red;
8
- }
9
-
10
- .\[\&\:hover\]\:text_blue {
11
- &:hover {
12
- color: blue;
13
- }
14
- }
15
- }