@pandacss/generator 0.0.0-dev-20230419091337 → 0.0.0-dev-20230420131830

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/dist/index.js CHANGED
@@ -810,11 +810,11 @@ function generateTokenJs(ctx) {
810
810
  return {
811
811
  js: import_outdent10.default`
812
812
  const tokens = ${JSON.stringify(obj, null, 2)}
813
-
813
+
814
814
  export function token(path, fallback) {
815
815
  return tokens[path]?.value || fallback
816
816
  }
817
-
817
+
818
818
  function tokenVar(path, fallback) {
819
819
  return tokens[path]?.variable || fallback
820
820
  }
@@ -824,7 +824,8 @@ function generateTokenJs(ctx) {
824
824
  dts: import_outdent10.default`
825
825
  import type { Token } from '../types/token'
826
826
 
827
- export declare function token(path: Token, fallback?: string): string & {
827
+ export declare const token: {
828
+ (path: Token, fallback?: string): string
828
829
  var: (path: Token, fallback?: string) => string
829
830
  }
830
831
  `
package/dist/index.mjs CHANGED
@@ -779,11 +779,11 @@ function generateTokenJs(ctx) {
779
779
  return {
780
780
  js: outdent10`
781
781
  const tokens = ${JSON.stringify(obj, null, 2)}
782
-
782
+
783
783
  export function token(path, fallback) {
784
784
  return tokens[path]?.value || fallback
785
785
  }
786
-
786
+
787
787
  function tokenVar(path, fallback) {
788
788
  return tokens[path]?.variable || fallback
789
789
  }
@@ -793,7 +793,8 @@ function generateTokenJs(ctx) {
793
793
  dts: outdent10`
794
794
  import type { Token } from '../types/token'
795
795
 
796
- export declare function token(path: Token, fallback?: string): string & {
796
+ export declare const token: {
797
+ (path: Token, fallback?: string): string
797
798
  var: (path: Token, fallback?: string) => string
798
799
  }
799
800
  `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230419091337",
3
+ "version": "0.0.0-dev-20230420131830",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,16 +20,16 @@
20
20
  "pluralize": "8.0.0",
21
21
  "postcss": "8.4.22",
22
22
  "ts-pattern": "4.2.2",
23
- "@pandacss/core": "0.0.0-dev-20230419091337",
24
- "@pandacss/logger": "0.0.0-dev-20230419091337",
25
- "@pandacss/is-valid-prop": "0.0.0-dev-20230419091337",
26
- "@pandacss/shared": "0.0.0-dev-20230419091337",
27
- "@pandacss/types": "0.0.0-dev-20230419091337",
28
- "@pandacss/token-dictionary": "0.0.0-dev-20230419091337"
23
+ "@pandacss/core": "0.0.0-dev-20230420131830",
24
+ "@pandacss/logger": "0.0.0-dev-20230420131830",
25
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230420131830",
26
+ "@pandacss/shared": "0.0.0-dev-20230420131830",
27
+ "@pandacss/types": "0.0.0-dev-20230420131830",
28
+ "@pandacss/token-dictionary": "0.0.0-dev-20230420131830"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.29",
32
- "@pandacss/fixture": "0.0.0-dev-20230419091337"
32
+ "@pandacss/fixture": "0.0.0-dev-20230420131830"
33
33
  },
34
34
  "scripts": {
35
35
  "prebuild": "tsx scripts/prebuild.ts",