UNPKG

adwaita-web

Version:

A GTK inspired toolkit designed to build awesome web apps

65 lines (64 loc) 1.99 kB
import * as React from "react"; import { memo } from "react"; import cx from "clsx"; const SvgTextEditorSymbolic = (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", { fill: "#474747" }, /* @__PURE__ */ React.createElement("path", { d: "M5.002 10L12 3l2 2-7 7H5z", fillRule: "evenodd" }), /* @__PURE__ */ React.createElement("path", { d: "M1.094 0C.525 0 0 .503 0 1.063v13.874C0 15.498.525 16 1.094 16h10.812c.558 0 1.074-.485 1.094-1.031V8l-2 2v4H2V2h5l2 2 1.531-1.531L8.344.344A1.12 1.12 0 007.563 0z", style: { lineHeight: "normal", InkscapeFontSpecification: "Sans", textIndent: 0, textAlign: "start", textDecorationLine: "none", textTransform: "none", marker: "none" }, color: "#000", fontWeight: 400, fontFamily: "Sans", overflow: "visible" }), /* @__PURE__ */ React.createElement("path", { d: "M14.19 1.011a.513.513 0 00-.364.152l-1.162 1.16 2.004 2.005 1.163-1.162a.514.514 0 000-.728l-1.277-1.275a.514.514 0 00-.364-.152z", style: { isolation: "auto", mixBlendMode: "normal", marker: "none" }, color: "#000", overflow: "visible", fillRule: "evenodd" })))); return render(rest, ...restArgs); }; const Memo = memo(SvgTextEditorSymbolic); var text_editor_symbolic_default = Memo; export { text_editor_symbolic_default as default };