@ant-design/web3-icons
Version:
A collection of Web3 icons.
68 lines (67 loc) • 5.97 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.HexColorful = 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 _id = (0, _react.useUniqueInlineId)();
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
...props,
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("defs", {
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("linearGradient", {
id: _id,
x1: "84.63",
y1: "295.19",
x2: "253.89",
y2: "2.04",
gradientUnits: "userSpaceOnUse",
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
offset: "0",
stopColor: "#ffdc00"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
offset: ".33",
stopColor: "#e58e2f"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
offset: ".67",
stopColor: "#db2d72"
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
offset: "1",
stopColor: "#f0f"
})]
})
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
d: "m79.56 290.47-22.92-39.7a5.28 5.28 0 0 1 0-4.65l25.45-44.07a5.24 5.24 0 0 1 4.06-2.35h50.89a5.26 5.26 0 0 1 4.07 2.35l25.45 44.07a5.32 5.32 0 0 1 0 4.7l-25.45 44.07a5.33 5.33 0 0 1-4 2.34H91.36a15.43 15.43 0 0 1-11.8-6.76Zm165.27-90.69L194.13 112a7.21 7.21 0 0 0-5.56-3.21H87.17a7.21 7.21 0 0 0-5.56 3.21l-50.7 87.82a7.18 7.18 0 0 0 0 6.42L45.77 232l26-45a8.22 8.22 0 0 1 6.43-3.72H145a8.22 8.22 0 0 1 6.43 3.72l33.41 57.86a8.24 8.24 0 0 1 0 7.43l-26 45h29.7a7.19 7.19 0 0 0 5.56-3.22l50.7-87.81a7.18 7.18 0 0 0 .03-6.48Zm92-58.09L259.06 6.93a15.37 15.37 0 0 0-12-6.93H91.45a15.37 15.37 0 0 0-12 6.93L1.65 141.69a15.36 15.36 0 0 0 0 13.85l17.83 30.88 51.7-89.56a10.14 10.14 0 0 1 7.94-4.58h117.41a10.14 10.14 0 0 1 7.94 4.58l58.71 101.69a10.13 10.13 0 0 1 0 9.16l-51.69 89.52h35.57a15.37 15.37 0 0 0 12-6.93l77.8-134.76a15.36 15.36 0 0 0 0-13.85Z",
fill: `url(#${_id})`
})]
});
};
SVGComponent.defaultProps = {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 338.51 297.23"
};
/** */
const HexColorful = exports.HexColorful = /*#__PURE__*/React.forwardRef((props, ref) => {
const {
getPrefixCls
} = React.useContext(_antd.ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-hex-colorful');
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.default, {
...props,
className: (0, _classnames.default)(prefixCls, props.className),
ref: ref,
component: (0, _utils.eraseDefaultProps)(SVGComponent)
});
});
HexColorful.displayName = 'HexColorful';