@pandacss/types 0.0.0-dev-20230803105627 → 0.0.0-dev-20230804155540

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/config.d.ts CHANGED
@@ -126,6 +126,30 @@ type JsxOptions = {
126
126
  * ```
127
127
  */
128
128
  jsxFactory?: string
129
+ /**
130
+ * The style props allowed on generated JSX components
131
+ * - When set to 'all', all style props are allowed.
132
+ * - When set to 'minimal', only the `css` prop is allowed.
133
+ * - When set to 'none', no style props are allowed and therefore the jsxFactory will not be importable.
134
+ *
135
+ * @default 'all'
136
+ *
137
+ * @example with 'all':
138
+ * ```jsx
139
+ * <styled.button marginTop="40px">Click me</styled.button>
140
+ * ```
141
+ *
142
+ * @example with 'minimal':
143
+ * ```jsx
144
+ * <styled.button css={{ marginTop: "40px" }}>Click me</styled.button>
145
+ * ```
146
+ *
147
+ * @example with 'none':
148
+ * ```jsx
149
+ * <button className={css({ marginTop: "40px" })}>Click me</button>
150
+ * ```
151
+ */
152
+ jsxStyleProps?: 'all' | 'minimal' | 'none'
129
153
  }
130
154
 
131
155
  type CssgenOptions = {
@@ -198,7 +222,7 @@ type CodegenOptions = {
198
222
  */
199
223
  gitignore?: boolean
200
224
  /**
201
- * Whether to generate disabled shorthand properties
225
+ * Whether to allow shorthand properties
202
226
  * @default 'true'
203
227
  */
204
228
  shorthands?: boolean
@@ -50,11 +50,10 @@ export type CompositionStyleObject<Property extends string> = Nested<{
50
50
  /* -----------------------------------------------------------------------------
51
51
  * Jsx style props
52
52
  * -----------------------------------------------------------------------------*/
53
+ type WithCss = { css?: SystemStyleObject }
54
+ type StyleProps = SystemProperties & MinimalNested<SystemStyleObject>
53
55
 
54
- export type JsxStyleProps = SystemProperties &
55
- MinimalNested<SystemStyleObject> & {
56
- css?: SystemStyleObject
57
- }
56
+ export type JsxStyleProps = StyleProps & WithCss
58
57
 
59
58
  export type Assign<T, U> = Omit<T, keyof U> & U
60
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230803105627",
3
+ "version": "0.0.0-dev-20230804155540",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -17,8 +17,8 @@
17
17
  "hookable": "5.5.3",
18
18
  "ncp": "^2.0.0",
19
19
  "pkg-types": "1.0.3",
20
- "@pandacss/extractor": "0.0.0-dev-20230803105627",
21
- "@pandacss/token-dictionary": "0.0.0-dev-20230803105627"
20
+ "@pandacss/extractor": "0.0.0-dev-20230804155540",
21
+ "@pandacss/token-dictionary": "0.0.0-dev-20230804155540"
22
22
  },
23
23
  "scripts": {
24
24
  "build": "tsx scripts/build.ts",