File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @netdata/netdata-ui" ,
3- "version" : " 5.4.3 " ,
3+ "version" : " 5.4.4 " ,
44 "description" : " netdata UI kit" ,
55 "main" : " dist/index.js" ,
66 "module" : " dist/es6/index.js" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { getColor } from "@/theme"
33import margin from "@/mixins/margin"
44import alignSelf from "@/mixins/alignSelf"
55import cursor from "@/mixins/cursor"
6+ import css from "@styled-system/css"
67
78const SIZES = {
89 small : "14px" ,
@@ -15,6 +16,8 @@ const styledHoverColor = ({ theme, hoverColor }) =>
1516 hoverColor && `&:hover { fill: ${ getColor ( hoverColor ) ( { theme } ) } ; }`
1617const styledRotate = ( { rotate } ) => ! isNaN ( rotate ) && `transform: rotate(${ rotate * 90 } deg);`
1718
19+ const sx = props => css ( props . sx ) ( props )
20+
1821export const StyledIcon = styled . svg `
1922 height: ${ ( { size, height } ) => height || SIZES [ size ] } ;
2023 width: ${ ( { size, width } ) => width || SIZES [ size ] } ;
@@ -26,4 +29,5 @@ export const StyledIcon = styled.svg`
2629 ${ margin }
2730 ${ alignSelf }
2831 ${ cursor }
32+ ${ sx }
2933`
You can’t perform that action at this time.
0 commit comments