@@ -27,7 +27,6 @@ import {
2727import { ButtonContext } from './Button' ;
2828import { Card } from './Card' ;
2929import { CheckboxContext } from './Checkbox' ;
30- import { colorScheme , getAllowedOverrides , StyleProps } from './style-utils' with { type : 'macro' } ;
3130import { ColorSchemeContext } from './Provider' ;
3231import { ContentContext , FooterContext , KeyboardContext , TextContext } from './Content' ;
3332import {
@@ -38,16 +37,17 @@ import {
3837 useContext ,
3938 useRef
4039} from 'react' ;
40+ import { css , keyframes } from '../style/style-macro' with { type : 'macro' } ;
4141import { DividerContext } from './Divider' ;
4242import { forwardRefType } from './types' ;
43+ import { getAllowedOverrides , StyleProps } from './style-utils' with { type : 'macro' } ;
4344import { GlobalDOMAttributes } from '@react-types/shared' ;
4445import { ImageContext } from './Image' ;
4546import { ImageCoordinator } from './ImageCoordinator' ;
46- import { keyframes , raw } from '../style/style-macro' with { type : 'macro' } ;
4747import { mergeStyles } from '../style/runtime' ;
4848import { PressResponder } from '@react-aria/interactions' ;
49+ import { setColorScheme , space , style } from '../style' with { type : 'macro' } ;
4950import { SliderContext } from './Slider' ;
50- import { space , style } from '../style' with { type : 'macro' } ;
5151import { useId , useObjectRef , useOverlayTrigger } from 'react-aria' ;
5252import { useLayoutEffect } from '@react-aria/utils' ;
5353import { useMenuTriggerState } from 'react-stately' ;
@@ -106,7 +106,7 @@ const slideLeftKeyframes = keyframes(`
106106` ) ;
107107
108108let popover = style ( {
109- ...colorScheme ( ) ,
109+ ...setColorScheme ( ) ,
110110 '--s2-container-bg' : {
111111 type : 'backgroundColor' ,
112112 value : 'layer-2'
@@ -474,7 +474,7 @@ const indicator = style({
474474 }
475475} ) ;
476476
477- const pulse = raw ( `&:before { content: ""; display: inline-block; position: absolute; top: var(--borderOffset); bottom: var(--borderOffset); left: var(--borderOffset); right: var(--borderOffset); border-radius: var(--ringRadius); outline-style: solid; outline-color: var(--activeElement); outline-width: 4px; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-fill-mode: forwards; animation-name: ${ pulseAnimation } }` ) ;
477+ const pulse = css ( `&:before { content: ""; display: inline-block; position: absolute; top: var(--borderOffset); bottom: var(--borderOffset); left: var(--borderOffset); right: var(--borderOffset); border-radius: var(--ringRadius); outline-style: solid; outline-color: var(--activeElement); outline-width: 4px; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-fill-mode: forwards; animation-name: ${ pulseAnimation } }` ) ;
478478
479479interface CoachMarkIndicatorProps {
480480 children : ReactNode ,
0 commit comments