@@ -135,6 +135,24 @@ export const defaultMarker = (): StaticStyles<> => {
135135 throw errorForFn ( 'defaultMarker' ) ;
136136} ;
137137
138+ export const when = {
139+ ancestor : ( _pseudo ? : string ) : string => {
140+ throw errorForFn ( 'when.ancestor' ) ;
141+ } ,
142+ descendant : ( _pseudo ? : string ) : string => {
143+ throw errorForFn ( 'when.descendant' ) ;
144+ } ,
145+ siblingBefore : ( _pseudo ? : string ) : string => {
146+ throw errorForFn ( 'when.siblingBefore' ) ;
147+ } ,
148+ siblingAfter : ( _pseudo ? : string ) : string => {
149+ throw errorForFn ( 'when.siblingAfter' ) ;
150+ } ,
151+ anySibling : ( _pseudo ? : string ) : string => {
152+ throw errorForFn ( 'when.anySibling' ) ;
153+ } ,
154+ } ;
155+
138156export const types = {
139157 angle : < T : string | 0 = string | 0 > (
140158 _v : ValueWithDefault < T > ,
@@ -222,6 +240,7 @@ type IStyleX = {
222240 } > ,
223241 viewTransitionClass : ( viewTransitionClass : ViewTransitionClass ) = > string ,
224242 types : typeof types ,
243+ when : typeof when ,
225244 __customProperties ? : { [ string ] : mixed } ,
226245 ...
227246} ;
@@ -242,6 +261,7 @@ _legacyMerge.keyframes = keyframes;
242261_legacyMerge . positionTry = positionTry ;
243262_legacyMerge . props = props ;
244263_legacyMerge . types = types ;
264+ _legacyMerge . when = when ;
245265_legacyMerge . viewTransitionClass = viewTransitionClass ;
246266
247267export const legacyMerge : IStyleX = _legacyMerge ;
0 commit comments