@pandacss/generator 0.0.0-dev-20230511092049 → 0.0.0-dev-20230511105643
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 +5 -11
- package/dist/index.mjs +5 -11
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -626,7 +626,7 @@ function generatePattern(ctx) {
|
|
|
626
626
|
import type { SystemStyleObject, ConditionalValue } from '../types'
|
|
627
627
|
import type { PropertyValue } from '../types/prop-type'
|
|
628
628
|
import type { Properties } from '../types/csstype'
|
|
629
|
-
import type { Tokens } from '../
|
|
629
|
+
import type { Tokens } from '../tokens/tokens'
|
|
630
630
|
|
|
631
631
|
export type ${upperName}Properties = {
|
|
632
632
|
${Object.keys(properties ?? {}).map((key) => {
|
|
@@ -801,7 +801,7 @@ function generateTokenJs(ctx) {
|
|
|
801
801
|
token.var = tokenVar
|
|
802
802
|
`,
|
|
803
803
|
dts: import_outdent9.default`
|
|
804
|
-
import type { Token } from '
|
|
804
|
+
import type { Token } from './tokens'
|
|
805
805
|
|
|
806
806
|
export declare const token: {
|
|
807
807
|
(path: Token, fallback?: string): string
|
|
@@ -1816,7 +1816,8 @@ function setupDesignTokens(ctx) {
|
|
|
1816
1816
|
files: [
|
|
1817
1817
|
{ file: "index.css", code: css2 },
|
|
1818
1818
|
{ file: "index.d.ts", code: code.dts },
|
|
1819
|
-
{ file: ctx.file.ext("index"), code: code.js }
|
|
1819
|
+
{ file: ctx.file.ext("index"), code: code.js },
|
|
1820
|
+
{ file: "tokens.d.ts", code: generateTokenTypes(ctx) }
|
|
1820
1821
|
]
|
|
1821
1822
|
};
|
|
1822
1823
|
}
|
|
@@ -1839,19 +1840,12 @@ function setupTypes(ctx) {
|
|
|
1839
1840
|
{ file: "pattern.d.ts", code: gen.pattern },
|
|
1840
1841
|
{ file: "parts.d.ts", code: gen.parts },
|
|
1841
1842
|
{ file: "index.d.ts", code: entry.index },
|
|
1842
|
-
{ file: "tokens.d.ts", code: generateTokenTypes(ctx) },
|
|
1843
1843
|
{ file: "prop-type.d.ts", code: generatePropTypes(ctx) },
|
|
1844
1844
|
{ file: "style-props.d.ts", code: generateStyleProps(ctx) },
|
|
1845
1845
|
{ file: "conditions.d.ts", code: conditions.dts }
|
|
1846
1846
|
].filter(Boolean)
|
|
1847
1847
|
};
|
|
1848
1848
|
}
|
|
1849
|
-
function setupTokenTypes(ctx) {
|
|
1850
|
-
return {
|
|
1851
|
-
dir: ctx.paths.types,
|
|
1852
|
-
files: [{ file: "tokens.d.ts", code: generateTokenTypes(ctx) }]
|
|
1853
|
-
};
|
|
1854
|
-
}
|
|
1855
1849
|
function setupCss(ctx) {
|
|
1856
1850
|
const code = generateCssFn(ctx);
|
|
1857
1851
|
const conditions = generateConditions(ctx);
|
|
@@ -1996,7 +1990,7 @@ function setupPackageJson(ctx) {
|
|
|
1996
1990
|
}
|
|
1997
1991
|
var generateArtifacts = (ctx) => () => {
|
|
1998
1992
|
if (ctx.config.emitTokensOnly) {
|
|
1999
|
-
return [setupDesignTokens(ctx)
|
|
1993
|
+
return [setupDesignTokens(ctx)];
|
|
2000
1994
|
}
|
|
2001
1995
|
return [
|
|
2002
1996
|
setupHelpers(ctx),
|
package/dist/index.mjs
CHANGED
|
@@ -595,7 +595,7 @@ function generatePattern(ctx) {
|
|
|
595
595
|
import type { SystemStyleObject, ConditionalValue } from '../types'
|
|
596
596
|
import type { PropertyValue } from '../types/prop-type'
|
|
597
597
|
import type { Properties } from '../types/csstype'
|
|
598
|
-
import type { Tokens } from '../
|
|
598
|
+
import type { Tokens } from '../tokens/tokens'
|
|
599
599
|
|
|
600
600
|
export type ${upperName}Properties = {
|
|
601
601
|
${Object.keys(properties ?? {}).map((key) => {
|
|
@@ -770,7 +770,7 @@ function generateTokenJs(ctx) {
|
|
|
770
770
|
token.var = tokenVar
|
|
771
771
|
`,
|
|
772
772
|
dts: outdent9`
|
|
773
|
-
import type { Token } from '
|
|
773
|
+
import type { Token } from './tokens'
|
|
774
774
|
|
|
775
775
|
export declare const token: {
|
|
776
776
|
(path: Token, fallback?: string): string
|
|
@@ -1785,7 +1785,8 @@ function setupDesignTokens(ctx) {
|
|
|
1785
1785
|
files: [
|
|
1786
1786
|
{ file: "index.css", code: css2 },
|
|
1787
1787
|
{ file: "index.d.ts", code: code.dts },
|
|
1788
|
-
{ file: ctx.file.ext("index"), code: code.js }
|
|
1788
|
+
{ file: ctx.file.ext("index"), code: code.js },
|
|
1789
|
+
{ file: "tokens.d.ts", code: generateTokenTypes(ctx) }
|
|
1789
1790
|
]
|
|
1790
1791
|
};
|
|
1791
1792
|
}
|
|
@@ -1808,19 +1809,12 @@ function setupTypes(ctx) {
|
|
|
1808
1809
|
{ file: "pattern.d.ts", code: gen.pattern },
|
|
1809
1810
|
{ file: "parts.d.ts", code: gen.parts },
|
|
1810
1811
|
{ file: "index.d.ts", code: entry.index },
|
|
1811
|
-
{ file: "tokens.d.ts", code: generateTokenTypes(ctx) },
|
|
1812
1812
|
{ file: "prop-type.d.ts", code: generatePropTypes(ctx) },
|
|
1813
1813
|
{ file: "style-props.d.ts", code: generateStyleProps(ctx) },
|
|
1814
1814
|
{ file: "conditions.d.ts", code: conditions.dts }
|
|
1815
1815
|
].filter(Boolean)
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
|
-
function setupTokenTypes(ctx) {
|
|
1819
|
-
return {
|
|
1820
|
-
dir: ctx.paths.types,
|
|
1821
|
-
files: [{ file: "tokens.d.ts", code: generateTokenTypes(ctx) }]
|
|
1822
|
-
};
|
|
1823
|
-
}
|
|
1824
1818
|
function setupCss(ctx) {
|
|
1825
1819
|
const code = generateCssFn(ctx);
|
|
1826
1820
|
const conditions = generateConditions(ctx);
|
|
@@ -1965,7 +1959,7 @@ function setupPackageJson(ctx) {
|
|
|
1965
1959
|
}
|
|
1966
1960
|
var generateArtifacts = (ctx) => () => {
|
|
1967
1961
|
if (ctx.config.emitTokensOnly) {
|
|
1968
|
-
return [setupDesignTokens(ctx)
|
|
1962
|
+
return [setupDesignTokens(ctx)];
|
|
1969
1963
|
}
|
|
1970
1964
|
return [
|
|
1971
1965
|
setupHelpers(ctx),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230511105643",
|
|
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.23",
|
|
22
22
|
"ts-pattern": "4.3.0",
|
|
23
|
-
"@pandacss/core": "0.0.0-dev-
|
|
24
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
25
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
26
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
27
|
-
"@pandacss/types": "0.0.0-dev-
|
|
28
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
23
|
+
"@pandacss/core": "0.0.0-dev-20230511105643",
|
|
24
|
+
"@pandacss/logger": "0.0.0-dev-20230511105643",
|
|
25
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230511105643",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230511105643",
|
|
27
|
+
"@pandacss/types": "0.0.0-dev-20230511105643",
|
|
28
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230511105643"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.29",
|
|
32
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
32
|
+
"@pandacss/fixture": "0.0.0-dev-20230511105643"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"prebuild": "tsx scripts/prebuild.ts",
|