@pandacss/types
Advanced tools
Comparing version 0.0.0-dev-20230103101637 to 0.0.0-dev-20230104123837
@@ -126,5 +126,2 @@ import type * as CSS from './csstype' | ||
/** | ||
* Support arbitrary nesting of selectors | ||
*/ | ||
type Nested<C extends Cond, P> = P & { | ||
@@ -136,2 +133,6 @@ [K in Selectors | keyof C]?: Nested<C, P> | ||
type MinimalNested<C extends Cond, P> = P & { | ||
[K in keyof C]?: Nested<C, P> | ||
} | ||
/* ----------------------------------------------------------------------------- | ||
@@ -167,6 +168,9 @@ * Mixed css properties (native + conditional + custom properties) | ||
type MinimalCss<Conditions extends Cond, PropTypes extends Dict, StrictMode extends boolean, Overrides extends Dict> = | ||
| Partial<Overrides> & | ||
NativeProperties<Conditions, PropTypes, Overrides> & | ||
CustomProperties<Conditions, PropTypes, StrictMode, Overrides> | ||
type Css<Conditions extends Cond, PropTypes extends Dict, StrictMode extends boolean, Overrides extends Dict> = | ||
| (Partial<Overrides> & | ||
NativeProperties<Conditions, PropTypes, Overrides> & | ||
CustomProperties<Conditions, PropTypes, StrictMode, Overrides>) | ||
| MinimalCss<Conditions, PropTypes, StrictMode, Overrides> | ||
| GenericProperties<Conditions> | ||
@@ -187,7 +191,2 @@ | ||
type WithJsxStyleProps<P> = P & { | ||
css?: P | ||
sx?: P | ||
} | ||
export type JsxStyleProps< | ||
@@ -198,3 +197,6 @@ Conditions extends Cond = {}, | ||
Overrides extends Dict = {}, | ||
> = WithJsxStyleProps<StyleObject<Conditions, PropTypes, StrictMode, Overrides>> | ||
> = MinimalNested<Conditions, MinimalCss<Conditions, PropTypes, StrictMode, Overrides>> & { | ||
css?: StyleObject<Conditions, PropTypes, StrictMode, Overrides> | ||
sx?: StyleObject<Conditions, PropTypes, StrictMode, Overrides> | ||
} | ||
@@ -201,0 +203,0 @@ export type GlobalStyleObject< |
{ | ||
"name": "@pandacss/types", | ||
"version": "0.0.0-dev-20230103101637", | ||
"version": "0.0.0-dev-20230104123837", | ||
"description": "The types for css panda", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
880960
20495