@@ -157,6 +157,7 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
157
157
158
158
/**
159
159
* Merges passed themes by concatenating string keys and processing nested themes
160
+ *
160
161
* @param {...TReactCSSThemrTheme } themes - Themes
161
162
* @returns {TReactCSSThemrTheme } - Resulting theme
162
163
*/
@@ -253,6 +254,7 @@ function merge(original = {}, mixin = {}) {
253
254
254
255
/**
255
256
* Validates compose option
257
+ *
256
258
* @param {String|Boolean } composeTheme - Compose them option
257
259
* @throws
258
260
* @returns {undefined }
@@ -269,6 +271,7 @@ function validateComposeOption(composeTheme) {
269
271
270
272
/**
271
273
* Removes namespace from key
274
+ *
272
275
* @param {String } key - Key
273
276
* @param {String } themeNamespace - Theme namespace
274
277
* @returns {String } - Key
@@ -278,6 +281,14 @@ function removeNamespace(key, themeNamespace) {
278
281
return capitalized . slice ( 0 , 1 ) . toLowerCase ( ) + capitalized . slice ( 1 )
279
282
}
280
283
284
+ /**
285
+ * Maps props and theme to an object that will be used to pass down props to the
286
+ * decorated component.
287
+ *
288
+ * @param {Object } ownProps - All props given to the decorated component
289
+ * @param {Object } theme - Calculated then that should be passed down
290
+ * @returns {Object } - Props that will be passed down to the decorated component
291
+ */
281
292
function defaultMapThemrProps ( ownProps , theme ) {
282
293
const {
283
294
composeTheme, //eslint-disable-line no-unused-vars
0 commit comments