@pandacss/types 0.0.0-dev-20221123192035 → 0.0.0-dev-20221124074636
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/package.json +1 -1
- package/src/system-types.ts +9 -1
package/package.json
CHANGED
package/src/system-types.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type * as CSS from './csstype'
|
|
|
2
2
|
|
|
3
3
|
type Loose<T = string> = T & { __type?: never }
|
|
4
4
|
|
|
5
|
+
type NeverType = { __type?: 'never' }
|
|
6
|
+
|
|
5
7
|
// list of aria states selectors
|
|
6
8
|
type AriaAttributes =
|
|
7
9
|
| '[aria-disabled]'
|
|
@@ -114,7 +116,9 @@ type NestedConditional<C extends TCondition, V> = {
|
|
|
114
116
|
[K in keyof V]?: Conditional<C, V[K]>
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
|
|
119
|
+
/* -----------------------------------------------------------------------------
|
|
120
|
+
* Mixed css properties (native + conditional + custom properties)
|
|
121
|
+
* -----------------------------------------------------------------------------*/
|
|
118
122
|
|
|
119
123
|
type UnionOf<Key extends string, Native extends Record<Key, any>, Custom> = Custom extends NeverType
|
|
120
124
|
? Native[Key]
|
|
@@ -145,6 +149,10 @@ type MixedCssProperties<
|
|
|
145
149
|
[Key in keyof C]?: MixedCssProperties<Omit<C, Key>, P, S>
|
|
146
150
|
}
|
|
147
151
|
|
|
152
|
+
/* -----------------------------------------------------------------------------
|
|
153
|
+
* Exported types
|
|
154
|
+
* -----------------------------------------------------------------------------*/
|
|
155
|
+
|
|
148
156
|
export type NestedCssProperties = Nested<CssProperties>
|
|
149
157
|
|
|
150
158
|
export type StyleObject<
|