@compiled/react 0.18.5 → 0.18.6
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/browser/types.d.ts +2 -2
- package/dist/cjs/types.d.ts +2 -2
- package/dist/esm/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/types.ts +9 -2
package/dist/browser/types.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export type CssObject<TProps> = Readonly<{
|
|
|
19
19
|
}>;
|
|
20
20
|
export type CssFunction<TProps = unknown> = CssType<TProps> | BasicTemplateInterpolations | null | boolean | undefined;
|
|
21
21
|
export type CSSPseudoElements = '&::after' | '&::backdrop' | '&::before' | '&::cue' | '&::cue-region' | '&::first-letter' | '&::first-line' | '&::grammar-error' | '&::marker' | '&::placeholder' | '&::selection' | '&::spelling-error' | '&::target-text' | '&::view-transition';
|
|
22
|
-
export type
|
|
22
|
+
export type CSSFlattenedChainedPsuedos = '&:visited:active' | '&:visited:hover' | '&:visited:focus' | '&:visited:focus-visible' | '&:visited:focus-within' | '&:active:visited' | '&:hover::before' | '&:hover::after' | '&:focus-visible::before' | '&:focus-visible::after' | '&:focus::before' | '&:focus::after' | '&:focus-within::before' | '&:focus-within::after' | '&:focus:not(:focus-visible)';
|
|
23
23
|
export type CSSPseudoClasses = '&:active' | '&:autofill' | '&:blank' | '&:checked' | '&:default' | '&:defined' | '&:disabled' | '&:empty' | '&:enabled' | '&:first' | '&:focus' | '&:focus-visible' | '&:focus-within' | '&:fullscreen' | '&:hover' | '&:in-range' | '&:indeterminate' | '&:invalid' | '&:left' | '&:link' | '&:local-link' | '&:optional' | '&:out-of-range' | '&:paused' | '&:picture-in-picture' | '&:placeholder-shown' | '&:playing' | '&:read-only' | '&:read-write' | '&:required' | '&:right' | '&:target' | '&:user-invalid' | '&:user-valid' | '&:valid' | '&:visited';
|
|
24
|
-
export type AllCSSPseudoClasses = CSSPseudoClasses |
|
|
24
|
+
export type AllCSSPseudoClasses = CSSPseudoClasses | CSSFlattenedChainedPsuedos;
|
|
25
25
|
export type CSSPseudos = CSSPseudoElements | AllCSSPseudoClasses;
|
|
26
26
|
/**
|
|
27
27
|
* The XCSSProp must be given all known available properties even
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export type CssObject<TProps> = Readonly<{
|
|
|
19
19
|
}>;
|
|
20
20
|
export type CssFunction<TProps = unknown> = CssType<TProps> | BasicTemplateInterpolations | null | boolean | undefined;
|
|
21
21
|
export type CSSPseudoElements = '&::after' | '&::backdrop' | '&::before' | '&::cue' | '&::cue-region' | '&::first-letter' | '&::first-line' | '&::grammar-error' | '&::marker' | '&::placeholder' | '&::selection' | '&::spelling-error' | '&::target-text' | '&::view-transition';
|
|
22
|
-
export type
|
|
22
|
+
export type CSSFlattenedChainedPsuedos = '&:visited:active' | '&:visited:hover' | '&:visited:focus' | '&:visited:focus-visible' | '&:visited:focus-within' | '&:active:visited' | '&:hover::before' | '&:hover::after' | '&:focus-visible::before' | '&:focus-visible::after' | '&:focus::before' | '&:focus::after' | '&:focus-within::before' | '&:focus-within::after' | '&:focus:not(:focus-visible)';
|
|
23
23
|
export type CSSPseudoClasses = '&:active' | '&:autofill' | '&:blank' | '&:checked' | '&:default' | '&:defined' | '&:disabled' | '&:empty' | '&:enabled' | '&:first' | '&:focus' | '&:focus-visible' | '&:focus-within' | '&:fullscreen' | '&:hover' | '&:in-range' | '&:indeterminate' | '&:invalid' | '&:left' | '&:link' | '&:local-link' | '&:optional' | '&:out-of-range' | '&:paused' | '&:picture-in-picture' | '&:placeholder-shown' | '&:playing' | '&:read-only' | '&:read-write' | '&:required' | '&:right' | '&:target' | '&:user-invalid' | '&:user-valid' | '&:valid' | '&:visited';
|
|
24
|
-
export type AllCSSPseudoClasses = CSSPseudoClasses |
|
|
24
|
+
export type AllCSSPseudoClasses = CSSPseudoClasses | CSSFlattenedChainedPsuedos;
|
|
25
25
|
export type CSSPseudos = CSSPseudoElements | AllCSSPseudoClasses;
|
|
26
26
|
/**
|
|
27
27
|
* The XCSSProp must be given all known available properties even
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export type CssObject<TProps> = Readonly<{
|
|
|
19
19
|
}>;
|
|
20
20
|
export type CssFunction<TProps = unknown> = CssType<TProps> | BasicTemplateInterpolations | null | boolean | undefined;
|
|
21
21
|
export type CSSPseudoElements = '&::after' | '&::backdrop' | '&::before' | '&::cue' | '&::cue-region' | '&::first-letter' | '&::first-line' | '&::grammar-error' | '&::marker' | '&::placeholder' | '&::selection' | '&::spelling-error' | '&::target-text' | '&::view-transition';
|
|
22
|
-
export type
|
|
22
|
+
export type CSSFlattenedChainedPsuedos = '&:visited:active' | '&:visited:hover' | '&:visited:focus' | '&:visited:focus-visible' | '&:visited:focus-within' | '&:active:visited' | '&:hover::before' | '&:hover::after' | '&:focus-visible::before' | '&:focus-visible::after' | '&:focus::before' | '&:focus::after' | '&:focus-within::before' | '&:focus-within::after' | '&:focus:not(:focus-visible)';
|
|
23
23
|
export type CSSPseudoClasses = '&:active' | '&:autofill' | '&:blank' | '&:checked' | '&:default' | '&:defined' | '&:disabled' | '&:empty' | '&:enabled' | '&:first' | '&:focus' | '&:focus-visible' | '&:focus-within' | '&:fullscreen' | '&:hover' | '&:in-range' | '&:indeterminate' | '&:invalid' | '&:left' | '&:link' | '&:local-link' | '&:optional' | '&:out-of-range' | '&:paused' | '&:picture-in-picture' | '&:placeholder-shown' | '&:playing' | '&:read-only' | '&:read-write' | '&:required' | '&:right' | '&:target' | '&:user-invalid' | '&:user-valid' | '&:valid' | '&:visited';
|
|
24
|
-
export type AllCSSPseudoClasses = CSSPseudoClasses |
|
|
24
|
+
export type AllCSSPseudoClasses = CSSPseudoClasses | CSSFlattenedChainedPsuedos;
|
|
25
25
|
export type CSSPseudos = CSSPseudoElements | AllCSSPseudoClasses;
|
|
26
26
|
/**
|
|
27
27
|
* The XCSSProp must be given all known available properties even
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -51,14 +51,21 @@ export type CSSPseudoElements =
|
|
|
51
51
|
| '&::target-text'
|
|
52
52
|
| '&::view-transition';
|
|
53
53
|
|
|
54
|
-
export type
|
|
54
|
+
export type CSSFlattenedChainedPsuedos =
|
|
55
55
|
| '&:visited:active'
|
|
56
56
|
| '&:visited:hover'
|
|
57
|
+
| '&:visited:focus'
|
|
58
|
+
| '&:visited:focus-visible'
|
|
59
|
+
| '&:visited:focus-within'
|
|
57
60
|
| '&:active:visited'
|
|
58
61
|
| '&:hover::before'
|
|
59
62
|
| '&:hover::after'
|
|
60
63
|
| '&:focus-visible::before'
|
|
61
64
|
| '&:focus-visible::after'
|
|
65
|
+
| '&:focus::before'
|
|
66
|
+
| '&:focus::after'
|
|
67
|
+
| '&:focus-within::before'
|
|
68
|
+
| '&:focus-within::after'
|
|
62
69
|
| '&:focus:not(:focus-visible)';
|
|
63
70
|
|
|
64
71
|
export type CSSPseudoClasses =
|
|
@@ -99,7 +106,7 @@ export type CSSPseudoClasses =
|
|
|
99
106
|
| '&:valid'
|
|
100
107
|
| '&:visited';
|
|
101
108
|
|
|
102
|
-
export type AllCSSPseudoClasses = CSSPseudoClasses |
|
|
109
|
+
export type AllCSSPseudoClasses = CSSPseudoClasses | CSSFlattenedChainedPsuedos;
|
|
103
110
|
|
|
104
111
|
/*
|
|
105
112
|
* This list of pseudo-classes, chained pseudo-classes, and pseudo-elements are from csstype
|