UNPKG

phosphor-solid

Version:

A clean and friendly icon family for Solid-js

188 lines (135 loc) 11.4 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="127.99707" cy="128" r="96" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></circle></svg>`, 4, true), _tmpl$2 = template(`<svg><path d="M49.58344,183.394l12.0855-7.29563a8,8,0,0,0,3.82681-6.06228l3.65864-37.03127a8,8,0,0,1,1.21718-3.51665l19.71585-30.899a8,8,0,0,1,11.88909-1.82285l15.42768,12.95708a8,8,0,0,0,6.21864,1.80156l31.14623-4.218a8,8,0,0,0,4.97543-2.69227L181.9016,79.01382a8,8,0,0,0,1.94172-5.61949L182.675,49.09089" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></path></svg>`, 4, true), _tmpl$3 = template(`<svg><path d="M187.064,203.68283l-10.73163-10.75292a8,8,0,0,0-3.6318-2.08674l-21.45845-5.63128a8,8,0,0,1-5.884-8.90337l2.38477-16.19606a8,8,0,0,1,4.84416-6.22191l30.45053-12.65666a8,8,0,0,1,8.46961,1.48392l24.8944,22.768" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"></path></svg>`, 4, true), _tmpl$4 = template(`<svg><g opacity="0.2"><path d="M187.06231,203.68216l-10.731-10.75225a7.99991,7.99991,0,0,0-3.6318-2.08674l-21.45845-5.63128a8,8,0,0,1-5.884-8.90337l2.38477-16.19606a8,8,0,0,1,4.84416-6.22191l30.45054-12.65666a8,8,0,0,1,8.4696,1.48392l24.89413,22.76769.05166-.118a96.30537,96.30537,0,0,1-29.18668,38.157Z"></path></g></svg>`, 6, true), _tmpl$5 = template(`<svg><g opacity="0.2"><path d="M49.58112,183.39494A96.011,96.011,0,0,1,182.678,49.08523l-.004.00566,1.16831,24.30344a8,8,0,0,1-1.94173,5.61949l-22.1571,25.60081a8,8,0,0,1-4.97544,2.69227l-31.48043,4.2633a8,8,0,0,1-5.76724-1.44922L97.86462,95.88032a8,8,0,0,0-11.43769,2.17521L66.58435,129.15314a8.0001,8.0001,0,0,0-1.25581,4.2583l-.2028,36.12908a8,8,0,0,1-3.86545,6.80393L49.58246,183.394Z"></path></g></svg>`, 6, true), _tmpl$6 = template(`<svg><circle cx="127.99609" cy="128" r="96" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle></svg>`, 4, true), _tmpl$7 = template(`<svg><path d="M49.58246,183.394l11.67783-7.04953a8,8,0,0,0,3.86545-6.80393l.2028-36.12908a8.0001,8.0001,0,0,1,1.25581-4.2583L86.42693,98.05553a8,8,0,0,1,11.43769-2.17521L117.52041,110.121a8,8,0,0,0,5.76724,1.44922l31.48043-4.2633a8,8,0,0,0,4.97544-2.69227l22.1571-25.60081a8,8,0,0,0,1.94173-5.61949L182.674,49.09089" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$8 = template(`<svg><path d="M187.063,203.68283l-10.73163-10.75292a7.99991,7.99991,0,0,0-3.6318-2.08674l-21.45845-5.63128a8,8,0,0,1-5.884-8.90337l2.38477-16.19606a8,8,0,0,1,4.84416-6.22191l30.45054-12.65666a8,8,0,0,1,8.4696,1.48392l24.89441,22.768" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$9 = template(`<svg><path d="M223.4873,169.18066a7.96262,7.96262,0,0,0,.49805-1.166A103.91753,103.91753,0,0,0,187.772,42.94336a8.06306,8.06306,0,0,0-1.13965-.79053A103.94567,103.94567,0,0,0,42.61768,187.31152c.04.07129.07324.145.11572.21582a7.9667,7.9667,0,0,0,.80664,1.08985A103.847,103.847,0,0,0,191.2627,210.48242a7.98,7.98,0,0,0,1.40283-1.0957A104.572,104.572,0,0,0,223.4873,169.18066ZM61.48,185.55664l3.91345-2.362A16.00133,16.00133,0,0,0,73.126,169.585l.18967-33.81841a8.0001,8.0001,0,0,1,1.25578-4.2583L88.60582,109.513a8,8,0,0,1,11.43777-2.17522l12.78356,9.26186a15.95634,15.95634,0,0,0,11.53418,2.89844l31.48144-4.26367a15.99269,15.99269,0,0,0,9.94971-5.38477L187.94873,84.25A15.92874,15.92874,0,0,0,191.833,73.01074l-.2793-5.813a87.914,87.914,0,0,1,21.28272,84.187l-15.93116-14.57032a16.05451,16.05451,0,0,0-16.939-2.96777l-30.45166,12.65723a15.99852,15.99852,0,0,0-9.68738,12.44255l-2.38489,16.19612a15.98468,15.98468,0,0,0,11.76807,17.80762l21.4585,5.63085,3.98828,3.9961A87.85932,87.85932,0,0,1,61.48,185.55664Z"></path></svg>`, 4, true), _tmpl$10 = template(`<svg><circle cx="127.99805" cy="128" r="96" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></circle></svg>`, 4, true), _tmpl$11 = template(`<svg><path d="M49.58442,183.394l11.67782-7.04953a8,8,0,0,0,3.86545-6.80393l.20281-36.12908a7.99993,7.99993,0,0,1,1.25581-4.2583L86.42888,98.05553a8,8,0,0,1,11.43769-2.17521L117.52236,110.121a8,8,0,0,0,5.76724,1.44922L154.77,107.3069a8,8,0,0,0,4.97543-2.69227l22.15711-25.60081a8.00006,8.00006,0,0,0,1.94172-5.61949L182.676,49.09089" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></path></svg>`, 4, true), _tmpl$12 = template(`<svg><path d="M187.06492,203.68283,176.3333,192.92991a8,8,0,0,0-3.6318-2.08674L151.243,185.21189a8,8,0,0,1-5.884-8.90337l2.38476-16.19606a8,8,0,0,1,4.84416-6.22191l30.45054-12.65666a8,8,0,0,1,8.4696,1.48392l24.89441,22.768" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="12"></path></svg>`, 4, true), _tmpl$13 = template(`<svg><circle cx="127.99902" cy="128" r="96" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></circle></svg>`, 4, true), _tmpl$14 = template(`<svg><path d="M49.58539,183.394l11.67783-7.04953a8,8,0,0,0,3.86545-6.80393l.2028-36.12908a8.0001,8.0001,0,0,1,1.25581-4.2583L86.42986,98.05553a8,8,0,0,1,11.43769-2.17521L117.52334,110.121a8,8,0,0,0,5.76724,1.44922l31.48043-4.2633a8,8,0,0,0,4.97544-2.69227l22.1571-25.60081a8,8,0,0,0,1.94172-5.61949L182.677,49.09089" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></path></svg>`, 4, true), _tmpl$15 = template(`<svg><path d="M187.0659,203.68283l-10.73163-10.75292a8,8,0,0,0-3.6318-2.08674L151.244,185.21189a8,8,0,0,1-5.884-8.90337l2.38477-16.19606a8,8,0,0,1,4.84416-6.22191l30.45054-12.65666a8,8,0,0,1,8.4696,1.48392l24.89441,22.768" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"></path></svg>`, 4, true), _tmpl$16 = template(`<svg><circle cx="128" cy="128" r="96" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle></svg>`, 4, true), _tmpl$17 = template(`<svg><path d="M49.58637,183.394l11.67782-7.04953a8,8,0,0,0,3.86546-6.80393l.2028-36.12908a7.99993,7.99993,0,0,1,1.25581-4.2583L86.43083,98.05553a8,8,0,0,1,11.43769-2.17521l19.6558,14.24066a8,8,0,0,0,5.76724,1.44922l31.48043-4.2633a8,8,0,0,0,4.97543-2.69227l22.15711-25.60081a8,8,0,0,0,1.94172-5.61949L182.678,49.09089" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$18 = template(`<svg><path d="M187.06688,203.68283l-10.73163-10.75292a8,8,0,0,0-3.6318-2.08674L151.245,185.21189a8,8,0,0,1-5.884-8.90337l2.38477-16.19606a8,8,0,0,1,4.84416-6.22191l30.45053-12.65666a8,8,0,0,1,8.46961,1.48392l24.8944,22.768" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>`, 4, true), _tmpl$19 = 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; }()]; case "duotone": return [_tmpl$4.cloneNode(true), _tmpl$5.cloneNode(true), 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 "fill": return _tmpl$9.cloneNode(true); case "light": return [function () { var _el$10 = _tmpl$10.cloneNode(true); setAttribute(_el$10, "stroke", color); return _el$10; }(), function () { var _el$11 = _tmpl$11.cloneNode(true); setAttribute(_el$11, "stroke", color); return _el$11; }(), function () { var _el$12 = _tmpl$12.cloneNode(true); setAttribute(_el$12, "stroke", color); return _el$12; }()]; case "thin": return [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; }()]; case "regular": return [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; }()]; default: console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'); return null; } }; var GlobeHemisphereEast = function GlobeHemisphereEast(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$19 = _tmpl$19.cloneNode(true), _el$20 = _el$19.firstChild; var _ref$ = ref; typeof _ref$ === "function" ? _ref$(_el$19) : ref = _el$19; setAttribute(_el$19, "width", size != null ? size : contextSize); setAttribute(_el$19, "height", size != null ? size : contextSize); setAttribute(_el$19, "fill", color != null ? color : contextColor); setAttribute(_el$19, "transform", mirrored || contextMirrored ? "scale(-1, 1)" : undefined); spread(_el$19, restContext, true, true); spread(_el$19, restProps, true, true); insert(_el$19, children, _el$20); insert(_el$19, function () { return renderPathFor(weight != null ? weight : contextWeight, color != null ? color : contextColor); }, null); return _el$19; }(); }; export default GlobeHemisphereEast; //# sourceMappingURL=GlobeHemisphereEast.esm.js.map