-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathColors.js
More file actions
72 lines (72 loc) · 3.58 KB
/
Colors.js
File metadata and controls
72 lines (72 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var options_1 = require("../../options");
function makeColor(name, color) {
var ColorComponent = /** @class */ (function (_super) {
__extends(ColorComponent, _super);
function ColorComponent() {
return _super !== null && _super.apply(this, arguments) || this;
}
ColorComponent.prototype.render = function () {
return (React.createElement("g", { id: 'Color/Palette/Gray-01', mask: "url(#" + this.props.maskID + ")", fillRule: 'evenodd', fill: color },
React.createElement("rect", { id: '🖍Color', x: '0', y: '0', width: '264', height: '110' })));
};
return ColorComponent;
}(React.Component));
var anyComponent = ColorComponent;
anyComponent.displayName = name;
anyComponent.optionValue = name;
return anyComponent;
}
var Black = makeColor('Black', '#262E33');
var Blue01 = makeColor('Blue01', '#65C9FF');
var Blue02 = makeColor('Blue02', '#5199E4');
var Blue03 = makeColor('Blue03', '#25557C');
var Gray01 = makeColor('Gray01', '#E6E6E6');
var Gray02 = makeColor('Gray02', '#929598');
var Heather = makeColor('Heather', '#3C4F5C');
var PastelBlue = makeColor('PastelBlue', '#B1E2FF');
var PastelGreen = makeColor('PastelGreen', '#A7FFC4');
var PastelOrange = makeColor('PastelOrange', '#FFDEB5');
var PastelRed = makeColor('PastelRed', '#FFAFB9');
var PastelYellow = makeColor('PastelYellow', '#FFFFB1');
var Pink = makeColor('Pink', '#FF488E');
var Red = makeColor('Red', '#FF5C5C');
var White = makeColor('White', '#FFFFFF');
var Colors = /** @class */ (function (_super) {
__extends(Colors, _super);
function Colors() {
return _super !== null && _super.apply(this, arguments) || this;
}
Colors.prototype.render = function () {
return (React.createElement(options_1.Selector, { option: options_1.ClotheColorOption, defaultOption: Gray01 },
React.createElement(Black, { maskID: this.props.maskID }),
React.createElement(Blue01, { maskID: this.props.maskID }),
React.createElement(Blue02, { maskID: this.props.maskID }),
React.createElement(Blue03, { maskID: this.props.maskID }),
React.createElement(Gray01, { maskID: this.props.maskID }),
React.createElement(Gray02, { maskID: this.props.maskID }),
React.createElement(Heather, { maskID: this.props.maskID }),
React.createElement(PastelBlue, { maskID: this.props.maskID }),
React.createElement(PastelGreen, { maskID: this.props.maskID }),
React.createElement(PastelOrange, { maskID: this.props.maskID }),
React.createElement(PastelRed, { maskID: this.props.maskID }),
React.createElement(PastelYellow, { maskID: this.props.maskID }),
React.createElement(Pink, { maskID: this.props.maskID }),
React.createElement(Red, { maskID: this.props.maskID }),
React.createElement(White, { maskID: this.props.maskID })));
};
return Colors;
}(React.Component));
exports.default = Colors;