UNPKG

phosphor-solid

Version:

A clean and friendly icon family for Solid-js

357 lines (254 loc) 16.5 kB
import { useContext } from 'solid-js'; import { IconContext } from '../lib/index.esm.js'; import { template, setAttribute, spread, insert } from 'solid-js/web'; import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose } from '../_virtual/_rollupPluginBabelHelpers.js'; const _tmpl$ = template(`<svg><circle cx="80" cy="172" r="28" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></circle></svg>`, 4, true), _tmpl$2 = template(`<svg><path d="M31.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></path></svg>`, 4, true), _tmpl$3 = template(`<svg><circle cx="80" cy="64" r="28" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></circle></svg>`, 4, true), _tmpl$4 = template(`<svg><path d="M31.99717,115.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></path></svg>`, 4, true), _tmpl$5 = template(`<svg><circle cx="176" cy="172" r="28" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></circle></svg>`, 4, true), _tmpl$6 = template(`<svg><path d="M127.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></path></svg>`, 4, true), _tmpl$7 = template(`<svg><circle cx="176" cy="64" r="28" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></circle></svg>`, 4, true), _tmpl$8 = template(`<svg><path d="M127.99717,115.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></path></svg>`, 4, true), _tmpl$9 = template(`<svg><circle cx="80" cy="168" r="32" opacity="0.2"></circle></svg>`, 4, true), _tmpl$10 = template(`<svg><circle cx="80" cy="64" r="32" opacity="0.2"></circle></svg>`, 4, true), _tmpl$11 = template(`<svg><circle cx="176" cy="168" r="32" opacity="0.2"></circle></svg>`, 4, true), _tmpl$12 = template(`<svg><circle cx="176" cy="64" r="32" opacity="0.2"></circle></svg>`, 4, true), _tmpl$13 = template(`<svg><circle cx="80" cy="168" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle></svg>`, 4, true), _tmpl$14 = template(`<svg><path d="M31.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$15 = template(`<svg><circle cx="80" cy="64" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle></svg>`, 4, true), _tmpl$16 = template(`<svg><path d="M31.99717,119.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$17 = template(`<svg><circle cx="176" cy="168" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle></svg>`, 4, true), _tmpl$18 = template(`<svg><path d="M127.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$19 = template(`<svg><circle cx="176" cy="64" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle></svg>`, 4, true), _tmpl$20 = template(`<svg><path d="M127.99717,119.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$21 = template(`<svg><path d="M25.60059,115.19336A67.8103,67.8103,0,0,1,53.0293,93.51074a40,40,0,1,1,53.9414,0A67.30469,67.30469,0,0,1,128,107.81421a67.29094,67.29094,0,0,1,21.0293-14.30347,40,40,0,1,1,53.9414,0,67.81009,67.81009,0,0,1,27.42676,21.68067,7.99981,7.99981,0,1,1-12.79248,9.60937,52.0088,52.0088,0,0,0-83.21143.00195c-.01318.01758-.0288.032-.042.04932a7.86941,7.86941,0,0,1-.5166.60791c-.05957.064-.1206.12476-.18213.18628q-.21019.20983-.43847.406c-.08838.07666-.17725.15185-.26807.22387-.04785.03784-.09082.07959-.13965.11646-.09131.06836-.1875.12524-.28076.18921-.10156.07007-.20166.14184-.30615.20654-.16358.10181-.33155.19238-.5.281-.084.04419-.165.0935-.25.13452a7.94481,7.94481,0,0,1-1.62012.57348c-.08057.01905-.16211.0315-.24365.0481-.19434.03979-.38916.07544-.58545.10034-.11035.01416-.22071.02295-.33106.03272-.16552.01416-.33056.02417-.49609.02807-.06738.00171-.13477.01148-.20215.01148-.0459,0-.09082-.00977-.13623-.01075a8.03172,8.03172,0,0,1-1.03027-.08081c-.09424-.01391-.187-.03637-.28076-.05371a7.99507,7.99507,0,0,1-.83692-.2019c-.09424-.02832-.18945-.05078-.2832-.08276a8.00518,8.00518,0,0,1-.96045-.40381c-.09326-.04615-.18555-.09375-.27783-.14405a7.8885,7.8885,0,0,1-.92823-.58471c-.021-.01538-.04443-.02539-.06494-.041-.1167-.0874-.22168-.18408-.332-.27637-.064-.0542-.13037-.10473-.19287-.16088-.166-.1482-.32129-.304-.47266-.4629-.02636-.02807-.05468-.054-.08056-.08251a7.99527,7.99527,0,0,1-.61231-.74,52.00276,52.00276,0,0,0-83.1084.13085,8,8,0,1,1-12.793-9.60937ZM202.9707,197.51074a40,40,0,1,0-53.9414,0A67.29094,67.29094,0,0,0,128,211.81421a67.30469,67.30469,0,0,0-21.0293-14.30347,40,40,0,1,0-53.9414,0,67.8103,67.8103,0,0,0-27.42871,21.68262,8,8,0,0,0,6.39648,12.80469l95.97266-.002.02734.002,96.00439-.002a7.9996,7.9996,0,0,0,6.396-12.80468A67.81009,67.81009,0,0,0,202.9707,197.51074Z"></path></svg>`, 4, true), _tmpl$22 = template(`<svg><circle cx="80" cy="168" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></circle></svg>`, 4, true), _tmpl$23 = template(`<svg><path d="M31.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></path></svg>`, 4, true), _tmpl$24 = template(`<svg><circle cx="80" cy="64" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></circle></svg>`, 4, true), _tmpl$25 = template(`<svg><path d="M31.99717,119.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></path></svg>`, 4, true), _tmpl$26 = template(`<svg><circle cx="176" cy="168" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></circle></svg>`, 4, true), _tmpl$27 = template(`<svg><path d="M127.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></path></svg>`, 4, true), _tmpl$28 = template(`<svg><circle cx="176" cy="64" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></circle></svg>`, 4, true), _tmpl$29 = template(`<svg><path d="M127.99717,119.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></path></svg>`, 4, true), _tmpl$30 = template(`<svg><circle cx="80" cy="168" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></circle></svg>`, 4, true), _tmpl$31 = template(`<svg><path d="M31.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></path></svg>`, 4, true), _tmpl$32 = template(`<svg><circle cx="80" cy="64" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></circle></svg>`, 4, true), _tmpl$33 = template(`<svg><path d="M31.99717,119.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></path></svg>`, 4, true), _tmpl$34 = template(`<svg><circle cx="176" cy="168" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></circle></svg>`, 4, true), _tmpl$35 = template(`<svg><path d="M127.99717,223.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></path></svg>`, 4, true), _tmpl$36 = template(`<svg><circle cx="176" cy="64" r="32" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></circle></svg>`, 4, true), _tmpl$37 = template(`<svg><path d="M127.99717,119.99792a60.00878,60.00878,0,0,1,96.004-.00225" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></path></svg>`, 4, true), _tmpl$38 = template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect></svg>`, 4); var renderPathFor = function renderPathFor(weight, color) { switch (weight) { case "bold": return [function () { var _el$ = _tmpl$.cloneNode(true); setAttribute(_el$, "stroke", color); return _el$; }(), function () { var _el$2 = _tmpl$2.cloneNode(true); setAttribute(_el$2, "stroke", color); return _el$2; }(), function () { var _el$3 = _tmpl$3.cloneNode(true); setAttribute(_el$3, "stroke", color); return _el$3; }(), function () { var _el$4 = _tmpl$4.cloneNode(true); setAttribute(_el$4, "stroke", color); return _el$4; }(), function () { var _el$5 = _tmpl$5.cloneNode(true); setAttribute(_el$5, "stroke", color); return _el$5; }(), function () { var _el$6 = _tmpl$6.cloneNode(true); setAttribute(_el$6, "stroke", color); return _el$6; }(), function () { var _el$7 = _tmpl$7.cloneNode(true); setAttribute(_el$7, "stroke", color); return _el$7; }(), function () { var _el$8 = _tmpl$8.cloneNode(true); setAttribute(_el$8, "stroke", color); return _el$8; }()]; case "duotone": return [_tmpl$9.cloneNode(true), _tmpl$10.cloneNode(true), _tmpl$11.cloneNode(true), _tmpl$12.cloneNode(true), function () { var _el$13 = _tmpl$13.cloneNode(true); setAttribute(_el$13, "stroke", color); return _el$13; }(), function () { var _el$14 = _tmpl$14.cloneNode(true); setAttribute(_el$14, "stroke", color); return _el$14; }(), function () { var _el$15 = _tmpl$15.cloneNode(true); setAttribute(_el$15, "stroke", color); return _el$15; }(), function () { var _el$16 = _tmpl$16.cloneNode(true); setAttribute(_el$16, "stroke", color); return _el$16; }(), function () { var _el$17 = _tmpl$17.cloneNode(true); setAttribute(_el$17, "stroke", color); return _el$17; }(), function () { var _el$18 = _tmpl$18.cloneNode(true); setAttribute(_el$18, "stroke", color); return _el$18; }(), function () { var _el$19 = _tmpl$19.cloneNode(true); setAttribute(_el$19, "stroke", color); return _el$19; }(), function () { var _el$20 = _tmpl$20.cloneNode(true); setAttribute(_el$20, "stroke", color); return _el$20; }()]; case "fill": return _tmpl$21.cloneNode(true); case "light": return [function () { var _el$22 = _tmpl$22.cloneNode(true); setAttribute(_el$22, "stroke", color); return _el$22; }(), function () { var _el$23 = _tmpl$23.cloneNode(true); setAttribute(_el$23, "stroke", color); return _el$23; }(), function () { var _el$24 = _tmpl$24.cloneNode(true); setAttribute(_el$24, "stroke", color); return _el$24; }(), function () { var _el$25 = _tmpl$25.cloneNode(true); setAttribute(_el$25, "stroke", color); return _el$25; }(), function () { var _el$26 = _tmpl$26.cloneNode(true); setAttribute(_el$26, "stroke", color); return _el$26; }(), function () { var _el$27 = _tmpl$27.cloneNode(true); setAttribute(_el$27, "stroke", color); return _el$27; }(), function () { var _el$28 = _tmpl$28.cloneNode(true); setAttribute(_el$28, "stroke", color); return _el$28; }(), function () { var _el$29 = _tmpl$29.cloneNode(true); setAttribute(_el$29, "stroke", color); return _el$29; }()]; case "thin": return [function () { var _el$30 = _tmpl$30.cloneNode(true); setAttribute(_el$30, "stroke", color); return _el$30; }(), function () { var _el$31 = _tmpl$31.cloneNode(true); setAttribute(_el$31, "stroke", color); return _el$31; }(), function () { var _el$32 = _tmpl$32.cloneNode(true); setAttribute(_el$32, "stroke", color); return _el$32; }(), function () { var _el$33 = _tmpl$33.cloneNode(true); setAttribute(_el$33, "stroke", color); return _el$33; }(), function () { var _el$34 = _tmpl$34.cloneNode(true); setAttribute(_el$34, "stroke", color); return _el$34; }(), function () { var _el$35 = _tmpl$35.cloneNode(true); setAttribute(_el$35, "stroke", color); return _el$35; }(), function () { var _el$36 = _tmpl$36.cloneNode(true); setAttribute(_el$36, "stroke", color); return _el$36; }(), function () { var _el$37 = _tmpl$37.cloneNode(true); setAttribute(_el$37, "stroke", color); return _el$37; }()]; case "regular": return [function () { var _el$38 = _tmpl$13.cloneNode(true); setAttribute(_el$38, "stroke", color); return _el$38; }(), function () { var _el$39 = _tmpl$14.cloneNode(true); setAttribute(_el$39, "stroke", color); return _el$39; }(), function () { var _el$40 = _tmpl$15.cloneNode(true); setAttribute(_el$40, "stroke", color); return _el$40; }(), function () { var _el$41 = _tmpl$16.cloneNode(true); setAttribute(_el$41, "stroke", color); return _el$41; }(), function () { var _el$42 = _tmpl$17.cloneNode(true); setAttribute(_el$42, "stroke", color); return _el$42; }(), function () { var _el$43 = _tmpl$18.cloneNode(true); setAttribute(_el$43, "stroke", color); return _el$43; }(), function () { var _el$44 = _tmpl$19.cloneNode(true); setAttribute(_el$44, "stroke", color); return _el$44; }(), function () { var _el$45 = _tmpl$20.cloneNode(true); setAttribute(_el$45, "stroke", color); return _el$45; }()]; default: console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'); return null; } }; var UsersFour = function UsersFour(props, ref) { var color = props.color, size = props.size, weight = props.weight, mirrored = props.mirrored, children = props.children, restProps = _objectWithoutPropertiesLoose(props, ["color", "size", "weight", "mirrored", "children"]); var _useContext = useContext(IconContext), contextColor = _useContext.color, contextSize = _useContext.size, contextWeight = _useContext.weight, contextMirrored = _useContext.mirrored, restContext = _objectWithoutPropertiesLoose(_useContext, ["color", "size", "weight", "mirrored"]); return function () { var _el$46 = _tmpl$38.cloneNode(true), _el$47 = _el$46.firstChild; var _ref$ = ref; typeof _ref$ === "function" ? _ref$(_el$46) : ref = _el$46; setAttribute(_el$46, "width", size != null ? size : contextSize); setAttribute(_el$46, "height", size != null ? size : contextSize); setAttribute(_el$46, "fill", color != null ? color : contextColor); setAttribute(_el$46, "transform", mirrored || contextMirrored ? "scale(-1, 1)" : undefined); spread(_el$46, restContext, true, true); spread(_el$46, restProps, true, true); insert(_el$46, children, _el$47); insert(_el$46, function () { return renderPathFor(weight != null ? weight : contextWeight, color != null ? color : contextColor); }, null); return _el$46; }(); }; export default UsersFour; //# sourceMappingURL=UsersFour.esm.js.map