@pandacss/generator 0.0.0-dev-20240501183327 → 0.0.0-dev-20240501191510
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 +2 -10
- package/dist/index.mjs +2 -10
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2812,7 +2812,7 @@ var import_ts_pattern10 = require("ts-pattern");
|
|
|
2812
2812
|
|
|
2813
2813
|
// src/artifacts/generated/composition.d.ts.json
|
|
2814
2814
|
var composition_d_ts_default = {
|
|
2815
|
-
content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'fontSize'\n | 'fontSizeAdjust'\n | '
|
|
2815
|
+
content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'font'\n | 'fontFamily'\n | 'fontFeatureSettings'\n | 'fontKerning'\n | 'fontLanguageOverride'\n | 'fontOpticalSizing'\n | 'fontPalette'\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontStretch'\n | 'fontStyle'\n | 'fontSynthesis'\n | 'fontVariant'\n | 'fontVariantAlternates'\n | 'fontVariantCaps'\n | 'fontVariantLigatures'\n | 'fontVariantNumeric'\n | 'fontVariantPosition'\n | 'fontVariationSettings'\n | 'fontWeight'\n | 'hypens'\n | 'hyphenateCharacter'\n | 'hyphenateLimitChars'\n | 'letterSpacing'\n | 'lineBreak'\n | 'lineHeight'\n | 'quotes'\n | 'overflowWrap'\n | 'textCombineUpright'\n | 'textDecoration'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationSkipInk'\n | 'textDecorationStyle'\n | 'textDecorationThickness'\n | 'textEmphasis'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'textIndent'\n | 'textJustify'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\n | 'textShadow'\n | 'textTransform'\n | 'textUnderlineOffset'\n | 'textUnderlinePosition'\n | 'textWrap'\n | 'textWrapMode'\n | 'textWrapStyle'\n | 'verticalAlign'\n | 'whiteSpace'\n | 'wordBreak'\n | 'wordSpacing'\n\nexport type TextStyle = CompositionStyleObject<TextStyleProperty>\n\nexport type TextStyles = Recursive<Token<TextStyle>>\n\n/* -----------------------------------------------------------------------------\n * Layer styles\n * -----------------------------------------------------------------------------*/\n\ntype Placement =\n | 'Top'\n | 'Right'\n | 'Bottom'\n | 'Left'\n | 'Inline'\n | 'Block'\n | 'InlineStart'\n | 'InlineEnd'\n | 'BlockStart'\n | 'BlockEnd'\n\ntype Radius =\n | `Top${'Right' | 'Left'}`\n | `Bottom${'Right' | 'Left'}`\n | `Start${'Start' | 'End'}`\n | `End${'Start' | 'End'}`\n\ntype LayerStyleProperty =\n | 'background'\n | 'backgroundColor'\n | 'backgroundImage'\n | 'borderRadius'\n | 'border'\n | 'borderWidth'\n | 'borderColor'\n | 'borderStyle'\n | 'boxShadow'\n | 'filter'\n | 'backdropFilter'\n | 'transform'\n | 'color'\n | 'opacity'\n | 'backgroundBlendMode'\n | 'backgroundAttachment'\n | 'backgroundClip'\n | 'backgroundOrigin'\n | 'backgroundPosition'\n | 'backgroundRepeat'\n | 'backgroundSize'\n | `border${Placement}`\n | `border${Placement}Width`\n | 'borderRadius'\n | `border${Radius}Radius`\n | `border${Placement}Color`\n | `border${Placement}Style`\n | 'padding'\n | `padding${Placement}`\n\nexport type LayerStyle = CompositionStyleObject<LayerStyleProperty>\n\nexport type LayerStyles = Recursive<Token<LayerStyle>>\n\nexport interface CompositionStyles {\n textStyles: TextStyles\n layerStyles: LayerStyles\n}\n"
|
|
2816
2816
|
};
|
|
2817
2817
|
|
|
2818
2818
|
// src/artifacts/generated/csstype.d.ts.json
|
|
@@ -3832,10 +3832,7 @@ var categories = [
|
|
|
3832
3832
|
"assets"
|
|
3833
3833
|
];
|
|
3834
3834
|
function generateTokenTypes(ctx) {
|
|
3835
|
-
const {
|
|
3836
|
-
tokens,
|
|
3837
|
-
config: { theme }
|
|
3838
|
-
} = ctx;
|
|
3835
|
+
const { tokens } = ctx;
|
|
3839
3836
|
const set = /* @__PURE__ */ new Set();
|
|
3840
3837
|
set.add(`export type Token = ${tokens.isEmpty ? "string" : (0, import_shared4.unionType)(Array.from(tokens.byName.keys()))}`);
|
|
3841
3838
|
const result = /* @__PURE__ */ new Set(["export type Tokens = {"]);
|
|
@@ -3851,11 +3848,6 @@ function generateTokenTypes(ctx) {
|
|
|
3851
3848
|
set.add(`export type ${typeName}Token = ${(0, import_shared4.unionType)(value.keys())}`);
|
|
3852
3849
|
result.add(` ${key}: ${typeName}Token`);
|
|
3853
3850
|
}
|
|
3854
|
-
const keyframes = Object.keys(theme?.keyframes ?? {});
|
|
3855
|
-
if (keyframes.length) {
|
|
3856
|
-
set.add(`export type AnimationName = ${(0, import_shared4.unionType)(keyframes)}`);
|
|
3857
|
-
result.add(` animationName: AnimationName`);
|
|
3858
|
-
}
|
|
3859
3851
|
}
|
|
3860
3852
|
result.add("} & { [token: string]: never }");
|
|
3861
3853
|
set.add(Array.from(result).join("\n"));
|
package/dist/index.mjs
CHANGED
|
@@ -2776,7 +2776,7 @@ import { match as match10 } from "ts-pattern";
|
|
|
2776
2776
|
|
|
2777
2777
|
// src/artifacts/generated/composition.d.ts.json
|
|
2778
2778
|
var composition_d_ts_default = {
|
|
2779
|
-
content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'fontSize'\n | 'fontSizeAdjust'\n | '
|
|
2779
|
+
content: "import type { CompositionStyleObject } from './system-types'\n\ninterface Token<T> {\n value: T\n description?: string\n}\n\ninterface Recursive<T> {\n [key: string]: Recursive<T> | T\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'font'\n | 'fontFamily'\n | 'fontFeatureSettings'\n | 'fontKerning'\n | 'fontLanguageOverride'\n | 'fontOpticalSizing'\n | 'fontPalette'\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontStretch'\n | 'fontStyle'\n | 'fontSynthesis'\n | 'fontVariant'\n | 'fontVariantAlternates'\n | 'fontVariantCaps'\n | 'fontVariantLigatures'\n | 'fontVariantNumeric'\n | 'fontVariantPosition'\n | 'fontVariationSettings'\n | 'fontWeight'\n | 'hypens'\n | 'hyphenateCharacter'\n | 'hyphenateLimitChars'\n | 'letterSpacing'\n | 'lineBreak'\n | 'lineHeight'\n | 'quotes'\n | 'overflowWrap'\n | 'textCombineUpright'\n | 'textDecoration'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationSkipInk'\n | 'textDecorationStyle'\n | 'textDecorationThickness'\n | 'textEmphasis'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'textIndent'\n | 'textJustify'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\n | 'textShadow'\n | 'textTransform'\n | 'textUnderlineOffset'\n | 'textUnderlinePosition'\n | 'textWrap'\n | 'textWrapMode'\n | 'textWrapStyle'\n | 'verticalAlign'\n | 'whiteSpace'\n | 'wordBreak'\n | 'wordSpacing'\n\nexport type TextStyle = CompositionStyleObject<TextStyleProperty>\n\nexport type TextStyles = Recursive<Token<TextStyle>>\n\n/* -----------------------------------------------------------------------------\n * Layer styles\n * -----------------------------------------------------------------------------*/\n\ntype Placement =\n | 'Top'\n | 'Right'\n | 'Bottom'\n | 'Left'\n | 'Inline'\n | 'Block'\n | 'InlineStart'\n | 'InlineEnd'\n | 'BlockStart'\n | 'BlockEnd'\n\ntype Radius =\n | `Top${'Right' | 'Left'}`\n | `Bottom${'Right' | 'Left'}`\n | `Start${'Start' | 'End'}`\n | `End${'Start' | 'End'}`\n\ntype LayerStyleProperty =\n | 'background'\n | 'backgroundColor'\n | 'backgroundImage'\n | 'borderRadius'\n | 'border'\n | 'borderWidth'\n | 'borderColor'\n | 'borderStyle'\n | 'boxShadow'\n | 'filter'\n | 'backdropFilter'\n | 'transform'\n | 'color'\n | 'opacity'\n | 'backgroundBlendMode'\n | 'backgroundAttachment'\n | 'backgroundClip'\n | 'backgroundOrigin'\n | 'backgroundPosition'\n | 'backgroundRepeat'\n | 'backgroundSize'\n | `border${Placement}`\n | `border${Placement}Width`\n | 'borderRadius'\n | `border${Radius}Radius`\n | `border${Placement}Color`\n | `border${Placement}Style`\n | 'padding'\n | `padding${Placement}`\n\nexport type LayerStyle = CompositionStyleObject<LayerStyleProperty>\n\nexport type LayerStyles = Recursive<Token<LayerStyle>>\n\nexport interface CompositionStyles {\n textStyles: TextStyles\n layerStyles: LayerStyles\n}\n"
|
|
2780
2780
|
};
|
|
2781
2781
|
|
|
2782
2782
|
// src/artifacts/generated/csstype.d.ts.json
|
|
@@ -3796,10 +3796,7 @@ var categories = [
|
|
|
3796
3796
|
"assets"
|
|
3797
3797
|
];
|
|
3798
3798
|
function generateTokenTypes(ctx) {
|
|
3799
|
-
const {
|
|
3800
|
-
tokens,
|
|
3801
|
-
config: { theme }
|
|
3802
|
-
} = ctx;
|
|
3799
|
+
const { tokens } = ctx;
|
|
3803
3800
|
const set = /* @__PURE__ */ new Set();
|
|
3804
3801
|
set.add(`export type Token = ${tokens.isEmpty ? "string" : unionType4(Array.from(tokens.byName.keys()))}`);
|
|
3805
3802
|
const result = /* @__PURE__ */ new Set(["export type Tokens = {"]);
|
|
@@ -3815,11 +3812,6 @@ function generateTokenTypes(ctx) {
|
|
|
3815
3812
|
set.add(`export type ${typeName}Token = ${unionType4(value.keys())}`);
|
|
3816
3813
|
result.add(` ${key}: ${typeName}Token`);
|
|
3817
3814
|
}
|
|
3818
|
-
const keyframes = Object.keys(theme?.keyframes ?? {});
|
|
3819
|
-
if (keyframes.length) {
|
|
3820
|
-
set.add(`export type AnimationName = ${unionType4(keyframes)}`);
|
|
3821
|
-
result.add(` animationName: AnimationName`);
|
|
3822
|
-
}
|
|
3823
3815
|
}
|
|
3824
3816
|
result.add("} & { [token: string]: never }");
|
|
3825
3817
|
set.add(Array.from(result).join("\n"));
|
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-20240501191510",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"pluralize": "8.0.0",
|
|
38
38
|
"postcss": "8.4.35",
|
|
39
39
|
"ts-pattern": "5.0.8",
|
|
40
|
-
"@pandacss/core": "0.0.0-dev-
|
|
41
|
-
"@pandacss/is-valid-prop": "^0.0.0-dev-
|
|
42
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
43
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
44
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
45
|
-
"@pandacss/types": "0.0.0-dev-
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20240501191510",
|
|
41
|
+
"@pandacss/is-valid-prop": "^0.0.0-dev-20240501191510",
|
|
42
|
+
"@pandacss/logger": "0.0.0-dev-20240501191510",
|
|
43
|
+
"@pandacss/shared": "0.0.0-dev-20240501191510",
|
|
44
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20240501191510",
|
|
45
|
+
"@pandacss/types": "0.0.0-dev-20240501191510"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/pluralize": "0.0.33"
|