From 092e7f33ba65b4162419b7c5d56e8f1a55ffdbf9 Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Wed, 7 Sep 2016 12:26:02 +0200 Subject: [PATCH] Radium: Bumped version to 0.18.1 (#11010) * Changed version number * Allowed Style.rules to take non-nested React.CSSProperties --- radium/radium-tests.tsx | 6 ++++++ radium/radium.d.ts | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/radium/radium-tests.tsx b/radium/radium-tests.tsx index c8379b39b2..b8ad3928dd 100644 --- a/radium/radium-tests.tsx +++ b/radium/radium-tests.tsx @@ -43,6 +43,12 @@ class TestComponentWithConfig extends React.Component<{ a?: number }, {}> { }} > + ) diff --git a/radium/radium.d.ts b/radium/radium.d.ts index 1989156877..0cb4304d96 100644 --- a/radium/radium.d.ts +++ b/radium/radium.d.ts @@ -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 , Philipp Holzer , Alexey Svetliakov +// Definitions by: Alex Gorbatchev , Philipp Holzer , Alexey Svetliakov , Mikael Hermansson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -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