@pandacss/generator 0.0.0-dev-20230522105203 → 0.0.0-dev-20230523074619

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
@@ -157,6 +157,8 @@ var css = String.raw;
157
157
  var reset = css`
158
158
  * {
159
159
  margin: 0;
160
+ padding: 0;
161
+ font: inherit;
160
162
  }
161
163
 
162
164
  *,
@@ -191,13 +193,6 @@ var reset = css`
191
193
  max-width: 100%;
192
194
  }
193
195
 
194
- input,
195
- button,
196
- textarea,
197
- select {
198
- font: inherit;
199
- }
200
-
201
196
  p,
202
197
  h1,
203
198
  h2,
@@ -904,7 +899,8 @@ function generatePreactJsxPattern(ctx) {
904
899
  ${(0, import_ts_pattern2.match)(props.length).with(
905
900
  0,
906
901
  () => import_outdent11.outdent`
907
- return h(${factoryName}.${jsxElement}, { ref, ...props })
902
+ const styleProps = ${styleFnName}()
903
+ return h(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
908
904
  `
909
905
  ).otherwise(
910
906
  () => import_outdent11.outdent`
@@ -1042,7 +1038,8 @@ function generateReactJsxPattern(ctx) {
1042
1038
  ${(0, import_ts_pattern3.match)(props.length).with(
1043
1039
  0,
1044
1040
  () => import_outdent14.outdent`
1045
- return createElement(${factoryName}.${jsxElement}, { ref, ...props })
1041
+ const styleProps = ${styleFnName}()
1042
+ return createElement(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
1046
1043
  `
1047
1044
  ).otherwise(
1048
1045
  () => import_outdent14.outdent`
@@ -1190,7 +1187,8 @@ function generateSolidJsxPattern(ctx) {
1190
1187
  ${(0, import_ts_pattern4.match)(props.length).with(
1191
1188
  0,
1192
1189
  () => import_outdent17.outdent`
1193
- return createComponent(${factoryName}.${jsxElement}, props)
1190
+ const styleProps = ${styleFnName}()
1191
+ return createComponent(${factoryName}.${jsxElement}, mergeProps(styleProps, props))
1194
1192
  `
1195
1193
  ).otherwise(
1196
1194
  () => import_outdent17.outdent`
@@ -1557,7 +1555,7 @@ var system_types_d_ts_default = {
1557
1555
 
1558
1556
  // src/artifacts/generated/composition.d.ts.json
1559
1557
  var composition_d_ts_default = {
1560
- content: "import type { CompositionStyleObject } from './system-types'\n\ntype Recursive<T> = {\n [key: string]: Recursive<T> | T\n}\n\nexport type Token<Value = any> = {\n value: Value\n description?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontVariationSettings'\n | 'fontVariantPosition'\n | 'fontVariantCaps'\n | 'fontVariantNumeric'\n | 'fontVariantAlternates'\n | 'fontVariantLigatures'\n | 'fontFamily'\n | 'fontWeight'\n | 'fontSynthesis'\n | 'fontStyle'\n | 'fontVariant'\n | 'lineHeight'\n | 'letterSpacing'\n | 'textDecoration'\n | 'textTransform'\n | 'textIndent'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationStyle'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'hyphenateCharacter'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\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' | 'Start' | 'End'}`\n | `Bottom${'Right' | 'Left' | 'Start' | 'End'}`\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 | `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 type CompositionStyles = {\n textStyles: TextStyles\n layerStyles: LayerStyles\n}\n"
1558
+ content: "import type { CompositionStyleObject } from './system-types'\n\ntype Recursive<T> = {\n [key: string]: Recursive<T> | T\n}\n\nexport type Token<Value = any> = {\n value: Value\n description?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontVariationSettings'\n | 'fontVariantPosition'\n | 'fontVariantCaps'\n | 'fontVariantNumeric'\n | 'fontVariantAlternates'\n | 'fontVariantLigatures'\n | 'fontFamily'\n | 'fontWeight'\n | 'fontSynthesis'\n | 'fontStyle'\n | 'fontVariant'\n | 'lineHeight'\n | 'letterSpacing'\n | 'textDecoration'\n | 'textTransform'\n | 'textIndent'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationStyle'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'hyphenateCharacter'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\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 type CompositionStyles = {\n textStyles: TextStyles\n layerStyles: LayerStyles\n}\n"
1561
1559
  };
1562
1560
 
1563
1561
  // src/artifacts/generated/recipe.d.ts.json
package/dist/index.mjs CHANGED
@@ -126,6 +126,8 @@ var css = String.raw;
126
126
  var reset = css`
127
127
  * {
128
128
  margin: 0;
129
+ padding: 0;
130
+ font: inherit;
129
131
  }
130
132
 
131
133
  *,
@@ -160,13 +162,6 @@ var reset = css`
160
162
  max-width: 100%;
161
163
  }
162
164
 
163
- input,
164
- button,
165
- textarea,
166
- select {
167
- font: inherit;
168
- }
169
-
170
165
  p,
171
166
  h1,
172
167
  h2,
@@ -873,7 +868,8 @@ function generatePreactJsxPattern(ctx) {
873
868
  ${match2(props.length).with(
874
869
  0,
875
870
  () => outdent11`
876
- return h(${factoryName}.${jsxElement}, { ref, ...props })
871
+ const styleProps = ${styleFnName}()
872
+ return h(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
877
873
  `
878
874
  ).otherwise(
879
875
  () => outdent11`
@@ -1011,7 +1007,8 @@ function generateReactJsxPattern(ctx) {
1011
1007
  ${match3(props.length).with(
1012
1008
  0,
1013
1009
  () => outdent14`
1014
- return createElement(${factoryName}.${jsxElement}, { ref, ...props })
1010
+ const styleProps = ${styleFnName}()
1011
+ return createElement(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
1015
1012
  `
1016
1013
  ).otherwise(
1017
1014
  () => outdent14`
@@ -1159,7 +1156,8 @@ function generateSolidJsxPattern(ctx) {
1159
1156
  ${match4(props.length).with(
1160
1157
  0,
1161
1158
  () => outdent17`
1162
- return createComponent(${factoryName}.${jsxElement}, props)
1159
+ const styleProps = ${styleFnName}()
1160
+ return createComponent(${factoryName}.${jsxElement}, mergeProps(styleProps, props))
1163
1161
  `
1164
1162
  ).otherwise(
1165
1163
  () => outdent17`
@@ -1526,7 +1524,7 @@ var system_types_d_ts_default = {
1526
1524
 
1527
1525
  // src/artifacts/generated/composition.d.ts.json
1528
1526
  var composition_d_ts_default = {
1529
- content: "import type { CompositionStyleObject } from './system-types'\n\ntype Recursive<T> = {\n [key: string]: Recursive<T> | T\n}\n\nexport type Token<Value = any> = {\n value: Value\n description?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontVariationSettings'\n | 'fontVariantPosition'\n | 'fontVariantCaps'\n | 'fontVariantNumeric'\n | 'fontVariantAlternates'\n | 'fontVariantLigatures'\n | 'fontFamily'\n | 'fontWeight'\n | 'fontSynthesis'\n | 'fontStyle'\n | 'fontVariant'\n | 'lineHeight'\n | 'letterSpacing'\n | 'textDecoration'\n | 'textTransform'\n | 'textIndent'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationStyle'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'hyphenateCharacter'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\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' | 'Start' | 'End'}`\n | `Bottom${'Right' | 'Left' | 'Start' | 'End'}`\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 | `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 type CompositionStyles = {\n textStyles: TextStyles\n layerStyles: LayerStyles\n}\n"
1527
+ content: "import type { CompositionStyleObject } from './system-types'\n\ntype Recursive<T> = {\n [key: string]: Recursive<T> | T\n}\n\nexport type Token<Value = any> = {\n value: Value\n description?: string\n}\n\n/* -----------------------------------------------------------------------------\n * Text styles\n * -----------------------------------------------------------------------------*/\n\ntype TextStyleProperty =\n | 'fontSize'\n | 'fontSizeAdjust'\n | 'fontVariationSettings'\n | 'fontVariantPosition'\n | 'fontVariantCaps'\n | 'fontVariantNumeric'\n | 'fontVariantAlternates'\n | 'fontVariantLigatures'\n | 'fontFamily'\n | 'fontWeight'\n | 'fontSynthesis'\n | 'fontStyle'\n | 'fontVariant'\n | 'lineHeight'\n | 'letterSpacing'\n | 'textDecoration'\n | 'textTransform'\n | 'textIndent'\n | 'textDecorationColor'\n | 'textDecorationLine'\n | 'textDecorationStyle'\n | 'textEmphasisColor'\n | 'textEmphasisPosition'\n | 'textEmphasisStyle'\n | 'hyphenateCharacter'\n | 'textOrientation'\n | 'textOverflow'\n | 'textRendering'\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 type CompositionStyles = {\n textStyles: TextStyles\n layerStyles: LayerStyles\n}\n"
1530
1528
  };
1531
1529
 
1532
1530
  // src/artifacts/generated/recipe.d.ts.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230522105203",
3
+ "version": "0.0.0-dev-20230523074619",
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-20230522105203",
24
- "@pandacss/logger": "0.0.0-dev-20230522105203",
25
- "@pandacss/is-valid-prop": "0.0.0-dev-20230522105203",
26
- "@pandacss/shared": "0.0.0-dev-20230522105203",
27
- "@pandacss/types": "0.0.0-dev-20230522105203",
28
- "@pandacss/token-dictionary": "0.0.0-dev-20230522105203"
23
+ "@pandacss/core": "0.0.0-dev-20230523074619",
24
+ "@pandacss/logger": "0.0.0-dev-20230523074619",
25
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230523074619",
26
+ "@pandacss/shared": "0.0.0-dev-20230523074619",
27
+ "@pandacss/types": "0.0.0-dev-20230523074619",
28
+ "@pandacss/token-dictionary": "0.0.0-dev-20230523074619"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.29",
32
- "@pandacss/fixture": "0.0.0-dev-20230522105203"
32
+ "@pandacss/fixture": "0.0.0-dev-20230523074619"
33
33
  },
34
34
  "scripts": {
35
35
  "prebuild": "tsx scripts/prebuild.ts",