1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports["default"] = void 0;
|
5 | var _curry = _interopRequireDefault(require("../internalHelpers/_curry"));
|
6 | var _mix = _interopRequireDefault(require("./mix"));
|
7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | function tint(percentage, color) {
|
31 | if (color === 'transparent') return color;
|
32 | return (0, _mix["default"])(parseFloat(percentage), 'rgb(255, 255, 255)', color);
|
33 | }
|
34 |
|
35 |
|
36 | var curriedTint = (0, _curry["default"] )(tint);
|
37 | var _default = exports["default"] = curriedTint;
|
38 | module.exports = exports.default; |
\ | No newline at end of file |