UNPKG

@zohodesk/svg

Version:

This Bundle Contains EmptyState Images.

116 lines (88 loc) 11.5 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 EmptyDepartment = /*#__PURE__*/function (_React$Component) { _inherits(EmptyDepartment, _React$Component); var _super = _createSuper(EmptyDepartment); function EmptyDepartment() { _classCallCheck(this, EmptyDepartment); return _super.apply(this, arguments); } _createClass(EmptyDepartment, [{ key: "render", value: function render() { return /*#__PURE__*/_react["default"].createElement(_SVG["default"], _extends({ viewBox: "0 0 200 200", name: "department" }, this.props), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("style", null, '.EmptyDepartment_svg__cls-4{fill:var(--zd_emptysvg_primary_fill)}.EmptyDepartment_svg__cls-6{fill:var(--zd_emptysvg_secondary_fill)}.EmptyDepartment_svg__cls-3{fill:var(--zd_emptysvg_tiny_circle)}.EmptyDepartment_svg__cls-5{fill:var(--zd_emptysvg_medium_circle)}')), /*#__PURE__*/_react["default"].createElement("path", { d: "M85.65 63.06s46.91-30.84 70.66-21.55 40 87.37-26.07 122.41-95.89-41.18-96.14-54.69c-.24-13.07 0-44.23 51.55-46.17z", opacity: 0.05, className: "EmptyDepartment_svg__cls-4" }), /*#__PURE__*/_react["default"].createElement("path", { d: "M155.17 36.25a4 4 0 114-4 4 4 0 01-4 4zm0-7a3 3 0 103 3 3 3 0 00-3-3.02z", className: "EmptyDepartment_svg__cls-5" }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyDepartment_svg__cls-3", d: "M78.75 32.74a2.6 2.6 0 112.62-2.59 2.6 2.6 0 01-2.62 2.59zm0-4.19a1.6 1.6 0 101.62 1.6 1.6 1.6 0 00-1.62-1.6z" }), /*#__PURE__*/_react["default"].createElement("path", { fill: "var(--zd_emptysvg_plus)", d: "M22.07 108.07a.5.5 0 01-.47-.53l.35-6.16a.49.49 0 01.53-.47.5.5 0 01.47.52l-.35 6.17a.51.51 0 01-.53.47z" }), /*#__PURE__*/_react["default"].createElement("path", { fill: "var(--zd_emptysvg_plus)", d: "M25.35 105.16l-6.22-.35a.5.5 0 01.06-1l6.22.35a.5.5 0 010 1z" }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyDepartment_svg__cls-5", d: "M165 157.57a2.93 2.93 0 112.95-2.93 2.95 2.95 0 01-2.95 2.93zm0-4.86a1.93 1.93 0 101.95 1.93 1.94 1.94 0 00-1.95-1.93z" }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyDepartment_svg__cls-3", transform: "rotate(-42.02 176.822 120.063)", d: "M176.31 116.96h1v6.2h-1z" }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyDepartment_svg__cls-3", transform: "rotate(-41.56 176.809 120.062)", d: "M173.71 119.56h6.2v1h-6.2z" }), /*#__PURE__*/_react["default"].createElement("path", { fill: "var(--zd_emptysvg_primary_stroke)", d: "M124.9 96.51a.51.51 0 00.13-.37c-.85-11.83-1.23-24.68-.42-26 1.46-.43 6.63-.52 8.53-.52a.51.51 0 00.5-.5 24 24 0 011.73-7.88c2.2-5.3 6-8.38 11.35-9.14a21.68 21.68 0 0118.55 6.25 15.15 15.15 0 014.3 13.53 19.59 19.59 0 01-11.46 13.74 17.84 17.84 0 01-16.72-.94 15.28 15.28 0 01-7.2-12.56.5.5 0 10-1 .06 16.31 16.31 0 007.67 13.35 18.81 18.81 0 0017.64 1 20.56 20.56 0 0012-14.46 16.31 16.31 0 00-4.5-14.38 22.7 22.7 0 00-19.41-6.55c-12.23 1.75-13.74 14.8-13.92 17.51-1.63 0-6.91.09-8.44.59-1.69.57-1.07 14.57-.23 26.44l-7.92.16a.49.49 0 00-.48.44 45.47 45.47 0 01-3.22 12.64c6.14-17.46-.88-29.52-8-38.27-6.93-8.48-21.61-12.48-34.89-9.51C56.92 64 48 72.34 45.1 84.16 41 100.41 45 113.85 56.62 123c.16.14.3.24.4.32a.64.64 0 00.12.21.59.59 0 00.9-.18.51.51 0 00-.18-.6c-.44-2.1-.29-17.64-.19-28 .08-7.78.15-14.49 0-15.94A.85.85 0 0158 78c1.67-1.65 8.84-1.44 12.18-1.17a6.64 6.64 0 00.24 4.47c1 2.27 3.27 4 6.79 5.12 3.76 1.21 6.9.93 9.32-.84a9 9 0 003.61-6.44c.61-.9 8.28.13 10.8.47 1.31.18 2.3.31 2.84.34 1 2.28 1 25.08.74 39.3-.83 1.29-9.37 13.61-30.24 11.81-26-2.25-30.8-27.48-30.84-27.73a.5.5 0 10-1 .17c0 .27 4.95 26.24 31.74 28.56 1.44.12 2.83.18 4.16.18 19.43 0 27-12.45 27.09-12.58a.45.45 0 00.07-.25c.16-9 .54-38.63-1.06-40.25A.65.65 0 00104 79c-.4 0-1.56-.16-2.91-.34-5.62-.76-10.37-1.3-11.58-.25a1 1 0 00-.35.75 8.11 8.11 0 01-3.21 5.65c-2.15 1.57-5 1.8-8.43.7-3.22-1-5.3-2.57-6.16-4.55a5.66 5.66 0 010-4.32.53.53 0 000-.46.5.5 0 00-.39-.25c-1.14-.11-11.19-1-13.62 1.4a1.88 1.88 0 00-.58 1.53c.13 1.4.06 8.09 0 15.84-.16 16.74-.15 24.18.1 27.15C43 110.64 43.34 95.33 46.07 84.4 48.92 73 57.52 64.84 69.68 62.12c12.94-2.9 27.19 1 33.89 9.16 7.79 9.53 15.42 23.09 5.22 43.48a.48.48 0 00.15.62.5.5 0 00.64 0c.21-.21 5.24-5.08 7-18.52l8-.16a.52.52 0 00.32-.19z" }), /*#__PURE__*/_react["default"].createElement("path", { fill: "var(--zd_emptysvg_primary_stroke)", d: "M169.59 117.92a19.31 19.31 0 00-22.27-10.69c-12.22 2.89-13.58 15.15-13.73 18.44a11.94 11.94 0 00-1.51.31.52.52 0 00-.36.57 16.87 16.87 0 00.41 1.78 43.94 43.94 0 01-7.79-2.21l.19-27.76a.5.5 0 00-.5-.5.5.5 0 00-.5.5l-.19 28.1a.5.5 0 00.32.47 42.33 42.33 0 008.83 2.46c2.35 6.22 8.83 12.1 15.72 13.85a17.51 17.51 0 004.31.55c5.29 0 10.15-2.58 14-7.53 4.7-6.11 5.74-12.26 3.07-18.34zm-36.8 8.91c.26-.06.55-.11.84-.15a.49.49 0 00.46.29.52.52 0 00.47-.37 1.84 1.84 0 011.3.29c.19.2.09.59 0 .89a.84.84 0 01-.49.47 4.82 4.82 0 01-2.13.21 13.5 13.5 0 01-.45-1.63zm32.91 8.82c-5.88 7.6-12.62 7.79-17.25 6.62a23.24 23.24 0 01-14.86-12.8 5 5 0 002.16-.31 1.8 1.8 0 001-1 1.75 1.75 0 00-.18-1.92 2.6 2.6 0 00-2-.62c.15-3.24 1.52-14.68 13-17.39a18.34 18.34 0 0121.13 10.12c2.49 5.65 1.49 11.5-3 17.3z" }), /*#__PURE__*/_react["default"].createElement("path", { className: "EmptyDepartment_svg__cls-6", d: "M150.11 76.26c-4.09-2.45-4.55 2-6.8 2.2-3.42.29-7.57-.45-7.92-5.67-.62-9 7.36-19.63 21.46-14.52s7.57 22.9-.82 22.9c-3.14 0-4.76-4.17-5.92-4.91zM152.85 131.68c-4.09-2.45-4.54 2-6.8 2.19-3.42.3-7.56-.44-7.92-5.67-.61-9 7.36-19.62 21.47-14.51s7.56 22.9-.82 22.9c-3.15 0-4.78-4.21-5.93-4.91zM59.89 125.62s-1.69-46.78-.22-46.36 7-1.05 8.22.63 4 12.43 13.28 10.54 10.53-9.27 10.53-9.27l9.91.63 1.26 37.5s-15.38 18.13-42.98 6.33z" })); } }]); return EmptyDepartment; }(_react["default"].Component); exports["default"] = EmptyDepartment; EmptyDepartment.propTypes = _propTypes.EmptyStateProps; EmptyDepartment.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.EmptyStateDefaultProps), {}, { dataId: 'emptyDepartment' }); // if (__DOCS__) { // EmptyDepartment.docs = { // componentGroup: 'Emptystate' // }; // }