Radium: Bumped version to 0.18.1 (#11010)

* Changed version number
* Allowed Style.rules to take non-nested React.CSSProperties
This commit is contained in:
Mikael Hermansson
2016-09-07 19:26:02 +09:00
committed by Masahiro Wakame
parent eff6f01782
commit 092e7f33ba
2 changed files with 11 additions and 5 deletions
+6
View File
@@ -43,6 +43,12 @@ class TestComponentWithConfig extends React.Component<{ a?: number }, {}> {
}}
>
</Style>
<Style scopeSelector="test"
rules={{
background: "green"
}}
>
</Style>
</Radium.StyleRoot>
</div>
)
+5 -5
View File
@@ -1,6 +1,6 @@
// Type definitions for radium 0.17.1
// Type definitions for radium 0.18.1
// Project: https://github.com/formidablelabs/radium
// Definitions by: Alex Gorbatchev <https://github.com/alexgorbatchev/>, Philipp Holzer <https://github.com/nupplaphil/>, Alexey Svetliakov <https://github.com/asvetliakov/>
// Definitions by: Alex Gorbatchev <https://github.com/alexgorbatchev/>, Philipp Holzer <https://github.com/nupplaphil/>, Alexey Svetliakov <https://github.com/asvetliakov/>, Mikael Hermansson <https://github.com/mihe/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts"/>
@@ -19,10 +19,10 @@ declare module 'radium' {
*/
export interface StyleProps {
/**
* An object of CSS rules to render. Each key of the rules object is a CSS selector and the value is an object
* of styles. If rules is empty, the component will render nothing.
* An object of styles, or an object of CSS rules to render. Each key of the rules object is a CSS
* selector and the value is an object of styles. If rules is empty, the component will render nothing.
*/
rules: StyleRules;
rules: React.CSSProperties | StyleRules;
/**
* A string that any included selectors in rules will be appended to.
* Use to scope styles in the component to a particular element. A good use case might be to generate a unique