@pandacss/types 0.0.0-dev-20230106112845 → 0.0.0-dev-20230106195931

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.
@@ -1,12 +1,9 @@
1
1
  import type * as CSS from './csstype'
2
2
 
3
- type Dict<T = unknown> = Record<string, T>
4
-
3
+ type Dict = Record<string, unknown>
5
4
  type String = string & {}
6
-
7
5
  type Number = number & {}
8
6
 
9
- // list of aria states selectors
10
7
  type AriaAttributes =
11
8
  | '[aria-disabled]'
12
9
  | '[aria-hidden]'
@@ -101,28 +98,6 @@ export type Conditional<C extends Cond, V> =
101
98
  [K in keyof C]?: Conditional<C, V>
102
99
  }
103
100
 
104
- /* -----------------------------------------------------------------------------
105
- * Groupings and Conditions
106
- * -----------------------------------------------------------------------------*/
107
-
108
- /**
109
- * Group properties for better maintainability
110
- */
111
- type Grouped<T> = T & {
112
- selectors?: {
113
- [key in Selectors]?: T
114
- }
115
- '@media'?: {
116
- [query: string]: T
117
- }
118
- '@container'?: {
119
- [query: string]: T
120
- }
121
- '@supports'?: {
122
- [query: string]: T
123
- }
124
- }
125
-
126
101
  type Nested<C extends Cond, P> = P & {
127
102
  [K in Selectors | keyof C]?: Nested<C, P>
128
103
  } & {
@@ -183,7 +158,7 @@ export type StyleObject<
183
158
  PropTypes extends Dict = {},
184
159
  StrictMode extends boolean = false,
185
160
  Overrides extends Dict = {},
186
- > = Grouped<Nested<Conditions, Css<Conditions, PropTypes, StrictMode, Overrides>>>
161
+ > = Nested<Conditions, Css<Conditions, PropTypes, StrictMode, Overrides>>
187
162
 
188
163
  export type JsxStyleProps<
189
164
  Conditions extends Cond = {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20230106112845",
3
+ "version": "0.0.0-dev-20230106195931",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",