@pandacss/types 0.3.2 → 0.5.0

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
@@ -161,6 +161,11 @@ type CssgenOptions = {
161
161
  * Used to generate css utility classes for your project.
162
162
  */
163
163
  staticCss?: StaticCssOptions
164
+ /**
165
+ * The css syntax kind to use
166
+ * @default 'object-literal'
167
+ */
168
+ syntax?: 'template-literal' | 'object-literal'
164
169
  }
165
170
 
166
171
  type CodegenOptions = {
@@ -189,6 +194,11 @@ type CodegenOptions = {
189
194
  * @default 'true'
190
195
  */
191
196
  gitignore?: boolean
197
+ /**
198
+ * Whether to generate disabled shorthand properties
199
+ * @default 'true'
200
+ */
201
+ shorthands?: boolean
192
202
  }
193
203
 
194
204
  type PresetOptions = {
@@ -196,6 +206,11 @@ type PresetOptions = {
196
206
  * Used to create reusable config presets for your project or team.
197
207
  */
198
208
  presets?: (string | Preset | Promise<Preset>)[]
209
+ /**
210
+ * Whether to opt-out of the defaults config presets: [`@pandacss/preset-base`, `@pandacss/preset-panda`]
211
+ * @default 'false'
212
+ */
213
+ eject?: boolean
199
214
  }
200
215
 
201
216
  type HooksOptions = {
package/dist/parser.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { BoxNodeMap, Unboxed } from '@pandacss/extractor'
1
+ import type { BoxNodeMap, BoxNodeLiteral, Unboxed } from '@pandacss/extractor'
2
2
 
3
3
  export type ResultItem = {
4
4
  name?: string
5
5
  data: Array<Unboxed['raw']>
6
6
  type?: 'object' | 'cva' | 'pattern' | 'recipe' | 'jsx-factory' | 'jsx-pattern' | 'jsx-recipe' | 'jsx'
7
- box: BoxNodeMap
7
+ box: BoxNodeMap | BoxNodeLiteral
8
8
  }
9
9
 
10
10
  export type ParserResultType = {
package/dist/pattern.d.ts CHANGED
@@ -31,7 +31,7 @@ export type PatternConfig<T extends PatternProperties = PatternProperties> = {
31
31
  /**
32
32
  * The properties of the pattern.
33
33
  */
34
- properties: T
34
+ properties?: T
35
35
  /**
36
36
  * The css object this pattern will generate.
37
37
  */
@@ -52,5 +52,7 @@ type DataAttributes =
52
52
  type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
53
53
  type ParentSelector = `${DataAttributes | AriaAttributes} &`
54
54
 
55
- export type AnySelector = `${string}&` | `&${string}`
55
+ type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
56
+
57
+ export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
56
58
  export type Selectors = AttributeSelector | ParentSelector
@@ -56,7 +56,7 @@ export type JsxStyleProps = SystemProperties &
56
56
  css?: SystemStyleObject
57
57
  }
58
58
 
59
- type Assign<T, U> = Omit<T, keyof U> & U
59
+ export type Assign<T, U> = Omit<T, keyof U> & U
60
60
 
61
61
  export type PatchedHTMLProps = {
62
62
  htmlSize?: string | number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.3.2",
3
+ "version": "0.5.0",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -15,8 +15,8 @@
15
15
  "chokidar-cli": "^3.0.0",
16
16
  "csstype": "3.1.2",
17
17
  "hookable": "5.5.3",
18
- "@pandacss/extractor": "0.3.2",
19
- "@pandacss/token-dictionary": "0.3.2"
18
+ "@pandacss/extractor": "0.5.0",
19
+ "@pandacss/token-dictionary": "0.5.0"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsx scripts/build.ts",