@ant-design/web3-icons
Version:
A collection of Web3 icons.
105 lines (104 loc) • 8.52 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ScanColorful = void 0;
var _react = require("@inline-svg-unique-id/react");
var React = _interopRequireWildcard(require("react"));
var _icons = _interopRequireDefault(require("@ant-design/icons"));
var _antd = require("antd");
var _classnames = _interopRequireDefault(require("classnames"));
var _utils = require("../utils");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var SVGComponent = function SVGComponent(props) {
const _id2 = (0, _react.useUniqueInlineId)();
const _id = (0, _react.useUniqueInlineId)();
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
...props,
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("defs", {
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("linearGradient", {
x1: "33.456%",
y1: "89.561%",
x2: "69.008%",
y2: "4.569%",
id: _id,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
stopColor: "#2F52FF",
offset: "0%"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
stopColor: "#8658FF",
offset: "56.143%"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
stopColor: "#E51DFF",
offset: "100%"
})]
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("linearGradient", {
x1: "50%",
y1: "0%",
x2: "50%",
y2: "100%",
id: _id2,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
stopColor: "#FFF",
stopOpacity: "0",
offset: "0%"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
stopColor: "#FFF",
stopOpacity: ".724",
offset: "100%"
})]
})]
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
fill: "none",
fillRule: "evenodd",
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
fill: `url(#${_id})`,
fillRule: "nonzero",
width: "40",
height: "40",
rx: "8"
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
transform: "translate(11.5 14)",
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
fill: `url(#${_id2})`,
d: "M0 0h17v13H0z"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
fill: "#FFF",
y: "12",
width: "17",
height: "2",
rx: "1"
})]
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
stroke: "#FFF",
strokeWidth: "2",
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M13 7.997H7.992V13M13 34H7.992v-5.003M26.992 7.997H32V13M26.992 34H32v-5.003"
})]
})]
});
};
SVGComponent.defaultProps = {
viewBox: "0 0 40 40",
xmlns: "http://www.w3.org/2000/svg"
};
/** */
const ScanColorful = exports.ScanColorful = /*#__PURE__*/React.forwardRef((props, ref) => {
const {
getPrefixCls
} = React.useContext(_antd.ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-scan-colorful');
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.default, {
...props,
className: (0, _classnames.default)(prefixCls, props.className),
ref: ref,
component: (0, _utils.eraseDefaultProps)(SVGComponent)
});
});
ScanColorful.displayName = 'ScanColorful';