phosphor-solid
Version:
A clean and friendly icon family for Solid-js
65 lines (64 loc) • 5.57 kB
JSX
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext } from "../lib";
const renderPathFor = (weight, color) => {
switch (weight) {
case "bold":
return (<>
<polyline points="144 167.994 184 207.994 223.999 168" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/>
<line x1="184" y1="111.99347" x2="184" y2="207.99347" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/>
<line x1="48" y1="127.99353" x2="119.99902" y2="127.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/>
<line x1="48" y1="63.99353" x2="183.99902" y2="63.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/>
<line x1="48" y1="191.99353" x2="104" y2="191.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/>
</>);
case "duotone":
return (<>
<polyline points="144 167.994 184 207.994 223.999 168" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="184" y1="111.99347" x2="184" y2="207.99347" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="48" y1="127.99353" x2="119.99902" y2="127.99353" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="48" y1="63.99353" x2="183.99902" y2="63.99353" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="48" y1="191.99353" x2="104" y2="191.99353" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
</>);
case "fill":
return (<>
<path d="M229.65527,173.65759l-39.999,39.99317a8,8,0,0,1-11.313,0l-40-40A8.00037,8.00037,0,0,1,144,159.99353h.001l31.999.00293V111.99353a8,8,0,0,1,16,0v48.00391l32,.00293a7.99976,7.99976,0,0,1,5.65527,13.65722ZM119.999,119.99353H48a8,8,0,0,0,0,16h71.999a8,8,0,1,0,0-16Zm-71.999-48H183.999a8,8,0,0,0,0-16H48a8,8,0,1,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Z"/>
</>);
case "light":
return (<>
<polyline points="144 167.994 184 207.994 223.999 168" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="12"/>
<line x1="184" y1="111.99347" x2="184" y2="207.99347" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="12"/>
<line x1="48" y1="127.99353" x2="119.99902" y2="127.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="12"/>
<line x1="48" y1="63.99353" x2="183.99902" y2="63.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="12"/>
<line x1="48" y1="191.99353" x2="104" y2="191.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="12"/>
</>);
case "thin":
return (<>
<polyline points="144 167.994 184 207.994 223.999 168" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/>
<line x1="184" y1="111.99347" x2="184" y2="207.99347" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/>
<line x1="48" y1="127.99353" x2="119.99902" y2="127.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/>
<line x1="48" y1="63.99353" x2="183.99902" y2="63.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/>
<line x1="48" y1="191.99353" x2="104" y2="191.99353" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/>
</>);
case "regular":
return (<>
<polyline points="144 167.994 184 207.994 223.999 168" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="184" y1="111.99347" x2="184" y2="207.99347" fill="none" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="48" y1="127.99353" x2="119.99902" y2="127.99353" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="48" y1="63.99353" x2="183.99902" y2="63.99353" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
<line x1="48" y1="191.99353" x2="104" y2="191.99353" stroke={color} stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
</>);
default:
console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".');
return null;
}
};
const SortAscending = (props, ref) => {
const { color, size, weight, mirrored, children, ...restProps } = props;
const { color: contextColor, size: contextSize, weight: contextWeight, mirrored: contextMirrored, ...restContext } = useContext(IconContext);
return (<svg ref={ref} xmlns="http://www.w3.org/2000/svg" width={size ?? contextSize} height={size ?? contextSize} fill={color ?? contextColor} viewBox="0 0 256 256" transform={mirrored || contextMirrored ? "scale(-1, 1)" : undefined} {...restContext} {...restProps}>
{children}
<rect width="256" height="256" fill="none"/>
{renderPathFor(weight ?? contextWeight, color ?? contextColor)}
</svg>);
};
export default SortAscending;