react-css-themr
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -181,2 +181,3 @@ 'use strict'; | ||
* Merges passed themes by concatenating string keys and processing nested themes | ||
* | ||
* @param {...TReactCSSThemrTheme} themes - Themes | ||
@@ -298,2 +299,3 @@ * @returns {TReactCSSThemrTheme} - Resulting theme | ||
* Validates compose option | ||
* | ||
* @param {String|Boolean} composeTheme - Compose them option | ||
@@ -311,2 +313,3 @@ * @throws | ||
* Removes namespace from key | ||
* | ||
* @param {String} key - Key | ||
@@ -321,2 +324,10 @@ * @param {String} themeNamespace - Theme namespace | ||
/** | ||
* Maps props and theme to an object that will be used to pass down props to the | ||
* decorated component. | ||
* | ||
* @param {Object} ownProps - All props given to the decorated component | ||
* @param {Object} theme - Calculated then that should be passed down | ||
* @returns {Object} - Props that will be passed down to the decorated component | ||
*/ | ||
function defaultMapThemrProps(ownProps, theme) { | ||
@@ -326,3 +337,4 @@ var composeTheme = ownProps.composeTheme, | ||
themeNamespace = ownProps.themeNamespace, | ||
rest = _objectWithoutProperties(ownProps, ['composeTheme', 'innerRef', 'themeNamespace']); | ||
mapThemrProps = ownProps.mapThemrProps, | ||
rest = _objectWithoutProperties(ownProps, ['composeTheme', 'innerRef', 'themeNamespace', 'mapThemrProps']); | ||
@@ -329,0 +341,0 @@ return _extends({}, rest, { |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/javivelasco/react-css-themr#readme", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"main": "./lib", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -160,2 +160,3 @@ import React, { Component } from 'react' | ||
* Merges passed themes by concatenating string keys and processing nested themes | ||
* | ||
* @param {...TReactCSSThemrTheme} themes - Themes | ||
@@ -257,2 +258,3 @@ * @returns {TReactCSSThemrTheme} - Resulting theme | ||
* Validates compose option | ||
* | ||
* @param {String|Boolean} composeTheme - Compose them option | ||
@@ -274,2 +276,3 @@ * @throws | ||
* Removes namespace from key | ||
* | ||
* @param {String} key - Key | ||
@@ -284,2 +287,10 @@ * @param {String} themeNamespace - Theme namespace | ||
/** | ||
* Maps props and theme to an object that will be used to pass down props to the | ||
* decorated component. | ||
* | ||
* @param {Object} ownProps - All props given to the decorated component | ||
* @param {Object} theme - Calculated then that should be passed down | ||
* @returns {Object} - Props that will be passed down to the decorated component | ||
*/ | ||
function defaultMapThemrProps(ownProps, theme) { | ||
@@ -290,2 +301,3 @@ const { | ||
themeNamespace, //eslint-disable-line no-unused-vars | ||
mapThemrProps, //eslint-disable-line no-unused-vars | ||
...rest | ||
@@ -292,0 +304,0 @@ } = ownProps |
39160
669