1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var concatStyleSets_1 = require("./concatStyleSets");
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | function concatStyleSetsWithProps(styleProps) {
|
10 | var allStyles = [];
|
11 | for (var _i = 1; _i < arguments.length; _i++) {
|
12 | allStyles[_i - 1] = arguments[_i];
|
13 | }
|
14 | var result = [];
|
15 | for (var _a = 0, allStyles_1 = allStyles; _a < allStyles_1.length; _a++) {
|
16 | var styles = allStyles_1[_a];
|
17 | if (styles) {
|
18 | result.push(typeof styles === 'function' ? styles(styleProps) : styles);
|
19 | }
|
20 | }
|
21 | if (result.length === 1) {
|
22 | return result[0];
|
23 | }
|
24 | else if (result.length) {
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | return concatStyleSets_1.concatStyleSets.apply(void 0, result);
|
30 | }
|
31 | return {};
|
32 | }
|
33 | exports.concatStyleSetsWithProps = concatStyleSetsWithProps;
|
34 |
|
\ | No newline at end of file |