UNPKG

@rsuite/icon-font

Version:

All rsuite icon resource file and icon fonts

34 lines (26 loc) 3.3 kB
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(require("react")); function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function BtnOn(props, svgRef) { return /*#__PURE__*/React.createElement("svg", _extends({ width: "1em", height: "1em", viewBox: "0 0 32 32", fill: "currentColor", ref: svgRef }, props), /*#__PURE__*/React.createElement("path", { d: "M30.51 5.559H1.491c-.823 0-1.493.667-1.493 1.49v17.899c0 .823.67 1.49 1.493 1.49h29.024c.818 0 1.488-.667 1.488-1.49V7.049a1.498 1.498 0 00-1.493-1.49zM30 23.696a.748.748 0 01-.743.745H6.711a.748.748 0 01-.745-.745V8.304c0-.411.336-.745.745-.745h22.544a.748.748 0 01.743.747v15.39z" }), /*#__PURE__*/React.createElement("path", { d: "M16.741 12.757a3.59 3.59 0 00-1.113-.77 4.465 4.465 0 00-1.909-.402c-.697 0-1.307.11-1.842.338-.4.165-.77.423-1.102.773a4.01 4.01 0 00-.793 1.168c-.265.59-.393 1.319-.393 2.19 0 1.36.375 2.425 1.127 3.2.75.777 1.76 1.161 3.031 1.161 1.255 0 2.256-.386 3.006-1.168.672-.697 1.024-1.646 1.097-2.821.007-.137.03-.267.03-.414-.002-1.387-.382-2.475-1.138-3.255zm-3.004 5.684c-.304 0-.585-.087-.889-.267-.199-.117-.341-.197-.446-.315-.359-.398-.542-1.024-.542-1.865 0-.853.176-1.479.523-1.87.338-.379.777-.567 1.346-.567.263 0 .505.043.738.135l.064.025h.005c.037.023.521.377.535.393.345.382.517 1.01.517 1.861.002.862-.178 1.502-.533 1.899-.345.384-.777.571-1.319.571zM24.414 17.095l-3.259-5.365H19.24v8.544h1.915v-5.275l3.127 5.275h2.03V11.73h-1.897z" })); } var ForwardRef = /*#__PURE__*/React.forwardRef(BtnOn); var _default = ForwardRef; exports["default"] = _default;