1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | function css() {
|
9 | var args = [];
|
10 | for (var _i = 0; _i < arguments.length; _i++) {
|
11 | args[_i] = arguments[_i];
|
12 | }
|
13 | var classes = [];
|
14 | for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {
|
15 | var arg = args_1[_a];
|
16 | if (arg) {
|
17 | if (typeof arg === 'string') {
|
18 | classes.push(arg);
|
19 | }
|
20 | else if (arg.hasOwnProperty('toString') && typeof arg.toString === 'function') {
|
21 | classes.push(arg.toString());
|
22 | }
|
23 | else {
|
24 |
|
25 | for (var key in arg) {
|
26 |
|
27 | if (arg[key]) {
|
28 | classes.push(key);
|
29 | }
|
30 | }
|
31 | }
|
32 | }
|
33 | }
|
34 | return classes.join(' ');
|
35 | }
|
36 | exports.css = css;
|
37 |
|
\ | No newline at end of file |