UNPKG

phx-react

Version:

PHX REACT

12 lines 3.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Icon; const tslib_1 = require("tslib"); const react_1 = tslib_1.__importDefault(require("react")); const helper_1 = require("../../helper"); function Icon({ activeColor = 'currentColor', isActive = false, isBoldIcon }) { return isActive || isBoldIcon ? (react_1.default.createElement("svg", { fill: 'none', height: '20', viewBox: '0 0 20 20', width: '20', xmlns: 'http://www.w3.org/2000/svg' }, react_1.default.createElement("path", { d: 'M15.2 18H4.8C4.4412 18 4.15 17.702 4.15 17.3333C4.15 15.1273 5.89915 13.3333 8.05 13.3333H11.95C14.1008 13.3333 15.85 15.1273 15.85 17.3333C15.85 17.702 15.5588 18 15.2 18ZM15.525 6H15.2C15.2 4.52933 14.0339 3.33333 12.6 3.33333H10.65V2.66667C10.65 2.298 10.3588 2 10 2C9.6412 2 9.35 2.298 9.35 2.66667V3.33333H7.4C5.9661 3.33333 4.8 4.52933 4.8 6H4.475C3.93745 6 3.5 6.44867 3.5 7V8.33333C3.5 8.88467 3.93745 9.33333 4.475 9.33333H4.8C4.8 10.804 5.9661 12 7.4 12H12.6C14.0339 12 15.2 10.804 15.2 9.33333H15.525C16.0625 9.33333 16.5 8.88467 16.5 8.33333V7C16.5 6.44867 16.0625 6 15.525 6ZM8.375 8.66667C7.8368 8.66667 7.4 8.21867 7.4 7.66667C7.4 7.11467 7.8368 6.66667 8.375 6.66667C8.9132 6.66667 9.35 7.11467 9.35 7.66667C9.35 8.21867 8.9132 8.66667 8.375 8.66667ZM11.625 8.66667C11.0868 8.66667 10.65 8.21867 10.65 7.66667C10.65 7.11467 11.0868 6.66667 11.625 6.66667C12.1632 6.66667 12.6 7.11467 12.6 7.66667C12.6 8.21867 12.1632 8.66667 11.625 8.66667Z', fill: isBoldIcon ? (0, helper_1.getBoldIconColor)(isActive) : activeColor }))) : (react_1.default.createElement("svg", { fill: 'none', height: '20', viewBox: '0 0 20 20', width: '20', xmlns: 'http://www.w3.org/2000/svg' }, react_1.default.createElement("path", { d: 'M15.85 17.3333C15.85 17.702 15.5588 18 15.2 18C14.8412 18 14.55 17.702 14.55 17.3333C14.55 15.8627 13.3839 14.6667 11.95 14.6667H8.05C6.6161 14.6667 5.45 15.8627 5.45 17.3333C5.45 17.702 5.1588 18 4.8 18C4.4412 18 4.15 17.702 4.15 17.3333C4.15 15.1273 5.89915 13.3333 8.05 13.3333H11.95C14.1008 13.3333 15.85 15.1273 15.85 17.3333ZM16.5 7V8.33333C16.5 8.88467 16.0625 9.33333 15.525 9.33333H15.2C15.2 10.804 14.0339 12 12.6 12H7.4C5.9661 12 4.8 10.804 4.8 9.33333H4.475C3.93745 9.33333 3.5 8.88467 3.5 8.33333V7C3.5 6.44867 3.93745 6 4.475 6H4.8C4.8 4.52933 5.9661 3.33333 7.4 3.33333H9.35V2.66667C9.35 2.298 9.6412 2 10 2C10.3588 2 10.65 2.298 10.65 2.66667V3.33333H12.6C14.0339 3.33333 15.2 4.52933 15.2 6H15.525C16.0625 6 16.5 6.44867 16.5 7ZM13.9 6C13.9 5.26467 13.3169 4.66667 12.6 4.66667H7.4C6.68305 4.66667 6.1 5.26467 6.1 6V9.33333C6.1 10.0687 6.68305 10.6667 7.4 10.6667H12.6C13.3169 10.6667 13.9 10.0687 13.9 9.33333V6ZM8.375 6.66667C7.8368 6.66667 7.4 7.11467 7.4 7.66667C7.4 8.21867 7.8368 8.66667 8.375 8.66667C8.9132 8.66667 9.35 8.21867 9.35 7.66667C9.35 7.11467 8.9132 6.66667 8.375 6.66667ZM11.625 6.66667C11.0868 6.66667 10.65 7.11467 10.65 7.66667C10.65 8.21867 11.0868 8.66667 11.625 8.66667C12.1632 8.66667 12.6 8.21867 12.6 7.66667C12.6 7.11467 12.1632 6.66667 11.625 6.66667Z', fill: 'currentColor' }))); } //# sourceMappingURL=robot-motion.js.map