UNPKG

@zohodesk/svg

Version:

This Bundle Contains EmptyState Images.

116 lines (88 loc) 9.11 kB
"use strict"; 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); } Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = require("./../props/propTypes"); var _defaultProps = require("./../props/defaultProps"); var _SVG = _interopRequireDefault(require("./../../SVG/SVG")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } 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) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } var EmptyTeams = /*#__PURE__*/function (_React$Component) { _inherits(EmptyTeams, _React$Component); var _super = _createSuper(EmptyTeams); function EmptyTeams() { _classCallCheck(this, EmptyTeams); return _super.apply(this, arguments); } _createClass(EmptyTeams, [{ key: "render", value: function render() { return /*#__PURE__*/_react["default"].createElement(_SVG["default"], _extends({ viewBox: "0 0 200 200", name: "team" }, this.props), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("style", null, '.EmptyTeams_svg__cls-7{fill:var(--zd_emptysvg_secondary_fill)}.EmptyTeams_svg__cls-4,.EmptyTeams_svg__cls-5,.EmptyTeams_svg__cls-6,.EmptyTeams_svg__cls-8,.EmptyTeams_svg__cls-9{fill:none}.EmptyTeams_svg__cls-4{stroke-miterlimit:10;stroke:var(--zd_emptysvg_tiny_circle)}.EmptyTeams_svg__cls-8{stroke-miterlimit:10;stroke:var(--zd_emptysvg_cross)}.EmptyTeams_svg__cls-5,.EmptyTeams_svg__cls-6{stroke:var(--zd_emptysvg_plus);stroke-linecap:round;stroke-linejoin:round}.EmptyTeams_svg__cls-6{stroke:var(--zd_emptysvg_primary_stroke)}.EmptyTeams_svg__cls-9{stroke:var(--zd_emptysvg_small_circle);stroke-linecap:round;stroke-linejoin:round}')), /*#__PURE__*/_react["default"].createElement("path", { d: "M86.51 62.52S133.43 31.67 157.17 41s40 87.37-26.06 122.41S35.22 122.19 35 108.68c-.28-13.07 0-44.23 51.51-46.16z", fill: "var(--zd_emptysvg_primary_fill)", opacity: 0.05 }), /*#__PURE__*/_react["default"].createElement("ellipse", { cx: 156.04, cy: 31.69, rx: 3.54, ry: 3.51, strokeMiterlimit: 10, stroke: "var(--zd_emptysvg_medium_circle)", fill: "none" }), /*#__PURE__*/_react["default"].createElement("ellipse", { className: "EmptyTeams_svg__cls-4", cx: 79.62, cy: 29.6, rx: 2.12, ry: 2.1 }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyTeams_svg__cls-5", d: "M23.28 100.86l-.35 6.16M20 103.76l6.22.35" }), /*#__PURE__*/_react["default"].createElement("ellipse", { className: "EmptyTeams_svg__cls-9", cx: 165.88, cy: 154.09, rx: 2.45, ry: 2.43 }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyTeams_svg__cls-8", d: "M175.6 117.21l4.15 4.6M175.36 121.57l4.64-4.12" }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyTeams_svg__cls-7", d: "M80.06 113.44s.91 20.72-13 19.13-7.94-24.92-7.94-24.92 10.06 7.35 20.94 5.79zM93.18 68.15s-1.87 5-3.85 7.13c0 0-3.54 17.77 13.45 18.78 0 0 10.14 2 13-15.13a27 27 0 01-22.6-10.78zM122.61 127.05s1.68-16 5.8-14 2 1.09 11.37-2c0 0 7.62-1.56 9.18 10.63 0 0-.3 7.33-1.66 10.27 0 0-6.2-5.51-14-3.82a85.63 85.63 0 00-10.69 2.87z" }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyTeams_svg__cls-6", d: "M79.93 111.64s2.31 19-10.4 20.93S58 107.65 59.14 107.65s13.24 9.55 25.08 4.61c0 0-3.27-16.21-15.91-14.23s-12.63 14-14 21.66-5.22 13.84-2.2 19.86 28.17 14.12 34-5.72c4.76-16.26-2-31-10.1-37.08a6.43 6.43 0 01-1-9.31 32 32 0 018.28-7c8.59-5 10.51-13.83 10.34-15s-2.49-.3-1.93.79S101.66 81 119 78.68c0 0 3.29-22.93-13.47-23.37s-16.57 13.36-16 25.94S101.39 94.06 105 94.06c8.2 0 11.5-14.28 11.13-19.53s-6.86 1.86 4.07 7.62c6.56 3.46 11.92 10.11 15.15 15 2.49 3.75 2.82 6.93 5.83 10 3.16 3.22 7.38 8 6.79 14.95 0 0-1.69-12.37-8.17-11s-7.44 4.53-11.37 2-5.8 14-5.8 14-6.27-19.34 10.24-22.24 17.52 11.25 15.16 24.44-18.89 19.55-25.4 1.72c0 0 14.49-6.6 21.72 0s-28 17.46-57.43 9.71" })); } }]); return EmptyTeams; }(_react["default"].Component); exports["default"] = EmptyTeams; EmptyTeams.propTypes = _propTypes.EmptyStateProps; EmptyTeams.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.EmptyStateDefaultProps), {}, { dataId: 'emptyTeams' }); // if (__DOCS__) { // EmptyTeams.docs = { // componentGroup: 'Emptystate' // }; // }