UNPKG

react-flaticons

Version:

A React component library that provides easy access to free vector icons from the Flaticon website.

40 lines 5.13 kB
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } var _excluded = ["color", "size"]; function _extends() { _extends = Object.assign ? Object.assign.bind() : 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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } import React, { forwardRef, useContext } from 'react'; import PropTypes from 'prop-types'; import IconContext from '../context'; var Skiing = /*#__PURE__*/forwardRef(function (_ref, ref) { var _ref2, _ref3; var color = _ref.color, size = _ref.size, rest = _objectWithoutProperties(_ref, _excluded); var iconContext = useContext(IconContext); var mergedProps = _objectSpread({ color: (_ref2 = color !== null && color !== void 0 ? color : iconContext.color) !== null && _ref2 !== void 0 ? _ref2 : 'currentColor', size: (_ref3 = size !== null && size !== void 0 ? size : iconContext.size) !== null && _ref3 !== void 0 ? _ref3 : '20px' }, rest); return /*#__PURE__*/React.createElement("svg", _extends({ ref: ref, xmlns: "http://www.w3.org/2000/svg", width: mergedProps.size, height: mergedProps.size, viewBox: "0 0 24 24", fill: mergedProps.color }, mergedProps), /*#__PURE__*/React.createElement("path", { d: "M23.9 21.729A4.014 4.014 0 0 1 20.253 24a4.324 4.324 0 0 1-1.768-.383L.483 14.9a1 1 0 0 1 .872-1.8l8.913 4.316 1.636-3.3-2-1.469a1.077 1.077 0 0 1-.106-.086A2.772 2.772 0 0 1 9.74 8.61L5.027 6.393l-.386.815a1 1 0 0 1-.9.571.988.988 0 0 1-.428-.1 1 1 0 0 1-.475-1.332l.384-.809-.7-.329A1 1 0 0 1 3.37 3.4l.705.332.37-.781a1 1 0 1 1 1.807.858l-.367.774 5.366 2.527 1.224-1.193A3.022 3.022 0 0 1 14.731 5a2.91 2.91 0 0 1 1.849.748 3.4 3.4 0 0 1 1.339 2.72V9.7a1 1 0 0 0 .579.908l2.714 1.258a1 1 0 0 1-.842 1.815l-2.714-1.259A3.01 3.01 0 0 1 15.919 9.7V8.47a1.448 1.448 0 0 0-.59-1.163A1.018 1.018 0 0 0 14.667 7a.986.986 0 0 0-.764.316l-.72.7.162.076a1 1 0 0 1-.852 1.81l-.839-.395-.4.386c-.121.131-.572.69-.121 1.17l1.959 1.4a2.014 2.014 0 0 1 .587 2.562l-1.614 3.258 7.263 3.517a2.1 2.1 0 0 0 2.767-.941 1 1 0 0 1 1.8.865ZM18.419 5a2.5 2.5 0 1 0-2.5-2.5 2.5 2.5 0 0 0 2.5 2.5Z" })); }); Skiing.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; Skiing.displayName = 'Skiing'; export default Skiing;