Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
            t[p[i]] = s[p[i]];
    return t;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const Vector_1 = __importDefault(require("atoms/Vector"));
const wording = {
    description: 'An Icon which represents lock or unlock',
    title: 'Lock Icon',
};
function fromBreedToComponent(type) {
    switch (type) {
        case 'open':
            return 'M 1.6 13.91 a 20.74 19.74 0 0 1 38.9 11.22';
        case 'close':
        default:
            return 'M 1.2 20.91 a 19.74 20.74 0 0 1 39 0.22';
    }
}
class LockIcon extends react_1.default.PureComponent {
    render() {
        const _a = this.props, { type } = _a, remainingProps = __rest(_a, ["type"]);
        const stateDPath = fromBreedToComponent(type);
        return (react_1.default.createElement(Vector_1.default, Object.assign({}, remainingProps, wording),
            react_1.default.createElement("g", { fill: "none", strokeWidth: "2" },
                react_1.default.createElement("path", { d: stateDPath, strokeMiterlimit: "10", strokeLinecap: "round" }),
                react_1.default.createElement("path", { d: "M1 24.25h39.47v22.2a4.93 4.93 0 0 1-4.93 4.93H5.93A4.93 4.93 0 0 1 1 46.46V24.25z", strokeLinejoin: "round" }),
                react_1.default.createElement("line", { x1: "21.41", y1: "34.74", x2: "21.41", y2: "39.74", strokeLinecap: "round", strokeLinejoin: "round" }))));
    }
}
LockIcon.defaultProps = {
    width: '42px',
    height: '52.39px',
    viewBox: '0 0 42 52.39',
    stroke: '#000000',
    type: 'close',
};
exports.LockIcon = LockIcon;
exports.default = LockIcon;
//# sourceMappingURL=LockIcon.js.map