@@ -4,13 +4,15 @@ import { tokenizeBackground } from "../token-background";
44import { BoxShape } from "@reflect-ui/core/lib/box-shape" ;
55import { keyFromNode } from "../key" ;
66import { tokenizeBorder } from "../token-border" ;
7+ import { BoxShadowManifest } from "@reflect-ui/core" ;
8+
79function fromRectangle ( rect : nodes . ReflectRectangleNode ) : core . Container {
810 const container = new core . Container ( {
911 key : keyFromNode ( rect ) ,
1012 width : rect . width ,
1113 height : rect . height ,
1214 borderRadius : rect . cornerRadius ,
13- boxShadow : rect . primaryShadow ,
15+ boxShadow : rect . shadows as BoxShadowManifest [ ] ,
1416 border : tokenizeBorder . fromNode ( rect ) ,
1517 background : tokenizeBackground . fromFills ( rect . fills ) ,
1618 } ) ;
@@ -26,7 +28,7 @@ function fromEllipse(ellipse: nodes.ReflectEllipseNode): core.Container {
2628 key : keyFromNode ( ellipse ) ,
2729 width : ellipse . width ,
2830 height : ellipse . height ,
29- boxShadow : ellipse . primaryShadow ,
31+ boxShadow : ellipse . shadows as BoxShadowManifest [ ] ,
3032 border : tokenizeBorder . fromNode ( ellipse ) ,
3133 borderRadius : { all : Math . max ( ellipse . width , ellipse . height ) / 2 } ,
3234 background : tokenizeBackground . fromFills ( ellipse . fills ) ,
0 commit comments