@pandacss/types 0.3.1 → 0.4.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
@@ -189,6 +189,11 @@ type CodegenOptions = {
189
189
  * @default 'true'
190
190
  */
191
191
  gitignore?: boolean
192
+ /**
193
+ * Whether to generate disabled shorthand properties
194
+ * @default 'true'
195
+ */
196
+ shorthands?: boolean
192
197
  }
193
198
 
194
199
  type PresetOptions = {
@@ -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.1",
3
+ "version": "0.4.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.1",
19
- "@pandacss/token-dictionary": "0.3.1"
18
+ "@pandacss/extractor": "0.4.0",
19
+ "@pandacss/token-dictionary": "0.4.0"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsx scripts/build.ts",