1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 | require('./unsupportedIterableToArray-8a00e599.js');
|
6 | var toConsumableArray = require('./toConsumableArray-7f36359f.js');
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | function forwardProps(instance, names) {
|
15 | return names.reduce(function (props, name) {
|
16 | if (instance.props[name]) {
|
17 | props[name] = instance.props[name];
|
18 | }
|
19 |
|
20 | return props;
|
21 | }, {});
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 | function stylingProps(instance) {
|
27 | var names = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
28 | return forwardProps(instance, ['style', 'className'].concat(toConsumableArray._toConsumableArray(names)));
|
29 | }
|
30 |
|
31 | exports.forwardProps = forwardProps;
|
32 | exports.stylingProps = stylingProps;
|
33 |
|