adwaita-web
Version:
A GTK inspired toolkit designed to build awesome web apps
92 lines (91 loc) • 2.81 kB
JavaScript
import * as React from "react";
import { memo } from "react";
import cx from "clsx";
const SvgViewWrappedSymbolic = (passedProps, ...restArgs) => {
const {
colored,
containerProps = {},
...rest
} = passedProps;
if (colored && typeof colored === "string") {
if (!containerProps.style) {
containerProps.style = {};
}
Object.assign(containerProps.style, {
"--custom-icon-color": colored
});
}
const render = (props) => /* @__PURE__ */ React.createElement("span", {
...containerProps,
className: cx("Icon", containerProps.className, {
colored
})
}, /* @__PURE__ */ React.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 16 16",
...props
}, /* @__PURE__ */ React.createElement("g", {
color: "#000",
fill: "#474747"
}, /* @__PURE__ */ React.createElement("path", {
d: "M9.99 4.99a1 1 0 00-.697 1.717L12 9.414l2.707-2.707a1 1 0 10-1.414-1.414L12 6.586l-1.293-1.293a1 1 0 00-.717-.303z",
style: {
lineHeight: "normal",
fontVariantLigatures: "normal",
fontVariantPosition: "normal",
fontVariantCaps: "normal",
fontVariantNumeric: "normal",
fontVariantAlternates: "normal",
fontFeatureSettings: "normal",
textIndent: 0,
textAlign: "start",
textDecorationLine: "none",
textDecorationStyle: "solid",
textDecorationColor: "#000",
textTransform: "none",
textOrientation: "mixed",
shapePadding: 0,
isolation: "auto",
mixBlendMode: "normal"
},
fontWeight: 400,
fontFamily: "sans-serif",
overflow: "visible"
}), /* @__PURE__ */ React.createElement("path", {
d: "M6 1C4.356 1 3 2.355 3 4v8c0 1.645 1.356 3 3 3h4v-2H6c-.571 0-1-.429-1-1V4c0-.571.429-1 1-1h4c.572 0 1 .429 1 1v4h2V4c0-1.645-1.355-3-3-3z",
style: {
lineHeight: "normal",
fontVariantLigatures: "normal",
fontVariantPosition: "normal",
fontVariantCaps: "normal",
fontVariantNumeric: "normal",
fontVariantAlternates: "normal",
fontFeatureSettings: "normal",
textIndent: 0,
textAlign: "start",
textDecorationLine: "none",
textDecorationStyle: "solid",
textDecorationColor: "#000",
textTransform: "none",
textOrientation: "mixed",
shapePadding: 0,
isolation: "auto",
mixBlendMode: "normal"
},
fontWeight: 400,
fontFamily: "sans-serif",
overflow: "visible"
}), /* @__PURE__ */ React.createElement("path", {
d: "M9 6V5h1v1zm5 0V5h1v1z",
style: {
marker: "none"
},
overflow: "visible"
}))));
return render(rest, ...restArgs);
};
const Memo = memo(SvgViewWrappedSymbolic);
var view_wrapped_symbolic_default = Memo;
export {
view_wrapped_symbolic_default as default
};