1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
|
4 |
|
5 |
|
6 | function calc(exp) {
|
7 | return "calc(" + exp + ")";
|
8 | }
|
9 | exports.calc = calc;
|
10 |
|
11 |
|
12 |
|
13 | function quote(val) {
|
14 | var val2 = (val || val === 0 ? val.toString() : '').replace(/\'/g, "\\'");
|
15 | return "'" + val2 + "'";
|
16 | }
|
17 | exports.quote = quote;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | function important(val) {
|
23 | if (!val && val !== 0) {
|
24 | return '';
|
25 | }
|
26 | return val.toString() + " !important";
|
27 | }
|
28 | exports.important = important;
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | function url(val) {
|
34 | return "url(" + (val || '') + ")";
|
35 | }
|
36 | exports.url = url;
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | function coalesce(value) {
|
43 | return !value && value !== 0 ? '' : value.toString();
|
44 | }
|
45 | exports.coalesce = coalesce;
|