Repository URL to install this package:
|
Version:
0.9.5 ▾
|
"use strict";
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: 'A rounded rectangle shaped switch,with a circle toggle button inside which likely changes state when moved from left to right or viceversa',
title: 'Switch icon',
};
class SwitchIcon extends react_1.default.PureComponent {
render() {
const { fill, stroke } = this.props;
return (react_1.default.createElement(Vector_1.default, Object.assign({}, this.props, wording),
react_1.default.createElement("g", { fill: "none" },
react_1.default.createElement("use", null),
react_1.default.createElement("rect", { stroke: stroke, x: ".5", y: ".5", width: "29", height: "19", rx: "9.5" }),
react_1.default.createElement("rect", { fill: fill, x: "12", y: "2.5", width: "15", height: "15", rx: "7.5" }))));
}
}
SwitchIcon.defaultProps = {
width: '46px',
height: '46px',
viewBox: '0 0 46 46',
stroke: '#000000',
fill: '#000000',
};
exports.SwitchIcon = SwitchIcon;
exports.default = SwitchIcon;
//# sourceMappingURL=SwitchIcon.js.map