@zohodesk/svg 1.0.0-beta.45 → 1.0.0-beta.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This Bundle Contains EmptyState Images.
4
4
 
5
+ #1.0.0-beta.46
6
+
7
+ - CustomModule SVG added
8
+
5
9
  # 1.0.0-beta.45
6
10
 
7
11
  - Delete, GCBot, GCConversation, KBBot, NetworkError, Variable & ReadRecipients SVG added
@@ -0,0 +1,70 @@
1
+ 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); }
2
+
3
+ import React from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import SVG from './SVG';
6
+ export default class CustomModule extends React.Component {
7
+ render() {
8
+ return /*#__PURE__*/React.createElement(SVG, _extends({
9
+ viewBox: "0 0 200 200",
10
+ name: "CustomModule"
11
+ }, this.props), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("style", null, ".customModule_svg__cls-6{fill:var(--zd_emptysvg_secondary_fill)}.customModule_svg__cls-2{fill:var(--zd_emptysvg_plus)}.customModule_svg__cls-3{fill:var(--zd_emptysvg_cross)}")), /*#__PURE__*/React.createElement("path", {
12
+ d: "M84.86 69.05s45.64-29.14 68.74-20.37 38.88 82.57-25.35 115.68S35 125.45 34.71 112.68c-.24-12.35 0-41.8 50.15-43.63z",
13
+ style: {
14
+ isolation: "isolate"
15
+ },
16
+ opacity: 0.1,
17
+ fill: "var(--zd_emptysvg_primary_fill)"
18
+ }), /*#__PURE__*/React.createElement("path", {
19
+ className: "customModule_svg__cls-2",
20
+ d: "M19.31 111.51a.5.5 0 01-.47-.52l.4-6.7a.49.49 0 01.52-.47.49.49 0 01.47.52l-.42 6.66a.5.5 0 01-.5.51z"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ className: "customModule_svg__cls-2",
23
+ d: "M23 108.34l-7-.34a.48.48 0 01-.47-.52.49.49 0 01.53-.47l7 .38a.5.5 0 010 1z"
24
+ }), /*#__PURE__*/React.createElement("path", {
25
+ d: "M140.88 186.47a3.15 3.15 0 113.24-3.15 3.2 3.2 0 01-3.24 3.15zm0-5.3a2.15 2.15 0 102.24 2.15 2.21 2.21 0 00-2.24-2.15z",
26
+ fill: "var(--zd_emptysvg_small_circle)"
27
+ }), /*#__PURE__*/React.createElement("path", {
28
+ className: "customModule_svg__cls-3",
29
+ d: "M185.75 146a.5.5 0 01-.37-.16l-4.64-5a.48.48 0 010-.7.5.5 0 01.7 0l4.65 5a.49.49 0 010 .7.5.5 0 01-.34.16z"
30
+ }), /*#__PURE__*/React.createElement("path", {
31
+ className: "customModule_svg__cls-3",
32
+ d: "M180.83 145.75a.52.52 0 01-.38-.17.49.49 0 01.05-.7l5.2-4.47a.5.5 0 11.66.75l-5.2 4.47a.52.52 0 01-.33.12zM77.39 31.09a3.31 3.31 0 113.33-3.31 3.33 3.33 0 01-3.33 3.31zm0-5.62a2.31 2.31 0 102.33 2.31 2.33 2.33 0 00-2.33-2.31z"
33
+ }), /*#__PURE__*/React.createElement("path", {
34
+ d: "M157.33 25.35A4.33 4.33 0 11161.7 21a4.36 4.36 0 01-4.37 4.35zm0-7.67A3.34 3.34 0 10160.7 21a3.37 3.37 0 00-3.37-3.32z",
35
+ fill: "var(--zd_emptysvg_medium_circle)"
36
+ }), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
37
+ d: "M66.43 47.65c-.5 1.49-15.52 26.14-22.34 20.35-1.69-1.44 48.16-25.81 48.16-25.81s58.57 24.32 60.06 26.31-62 35.24-62 35.24L36.15 73l-3 66.53 55.6 32.26 68-29.5-.05-38.36c-6.31.46-10.84 9.56-4.9 15.88 5 5.35 15.35 2.72 16.18-6.46.93-10.26-10.19-10.66-10.19-10.66l.21-16.26a33.14 33.14 0 013.55 0c.77.13 0 6.6 3 9.15s8.27-3.28 9.54-3.27 4.93 5.73 4.93 5.73-4.84 6.2-4.34 8.11 8.37 2.69 9.52 2.82 0 8.51 0 8.51-8-.66-9.78 2.26 4.67 7.88 4.8 8.65-5.61 6.33-5.61 6.33l-5.07-4.21c-1.77-1.65-3.72-.59-5.33 0a2.51 2.51 0 00-1.39 1.33l-.13 5.49a34.64 34.64 0 01-8 .29c-2.3-.24.57-9.28-3.69-8.42s-5.91 5.66-9.29 3.58-3.7-3.51-3.26-4.6 5-7.08 4.18-8.5-8.62-2.1-9.06-2.76-.64-5.35 0-7.21 6.23-.74 8-2-.42-7-2.92-10.27c0 0 2.09-4.58 4.28-5.23s7.4 5.92 10.25 3.42.78-8 2.59-9.22h1.62c-.17-6.36-.27-11.2-.64-11.94-1.49-3-58.08 31.77-58.08 31.77l-.85 55.44",
38
+ fill: "none",
39
+ stroke: "var(--zd_emptysvg_primary_stroke)",
40
+ strokeLinecap: "round",
41
+ strokeLinejoin: "round"
42
+ }), /*#__PURE__*/React.createElement("path", {
43
+ className: "customModule_svg__cls-6",
44
+ d: "M132.21 72.4S93.39 48 89.51 49.67s-8.88 4.43-6.66 14.42-22.18-2.78-21.63 1.66 29.24 29.1 32 27.44 38.99-20.79 38.99-20.79zM80.63 152.43S56.67 94.3 50 95.83s-10.2 37.73-7.14 39.26 37.77 17.34 37.77 17.34zM161 111c-.07 2.33 2.1 1.08 2.78 1.88 1 1.19 1.76 3-.56 4.8-4 3.09-11 3.46-12.3-3.5s8.62-10.15 10.8-7c.81 1.2-.72 3.15-.72 3.82z"
45
+ })));
46
+ }
47
+
48
+ }
49
+ CustomModule.propTypes = {
50
+ alignHorizontal: PropTypes.bool,
51
+ className: PropTypes.string,
52
+ dataId: PropTypes.string,
53
+ isRender: PropTypes.bool,
54
+ size: PropTypes.oneOf(['small', 'large']),
55
+ palette: PropTypes.oneOf(['default', 'dark'])
56
+ };
57
+ CustomModule.defaultProps = {
58
+ size: 'large',
59
+ alignHorizontal: true,
60
+ isRender: true,
61
+ className: '',
62
+ dataId: 'CustomModule',
63
+ palette: 'default'
64
+ };
65
+
66
+ if (false) {
67
+ CustomModule.docs = {
68
+ componentGroup: 'SVG'
69
+ };
70
+ }
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _SVG = _interopRequireDefault(require("./SVG"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ 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); }
19
+
20
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
+
22
+ 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); } }
23
+
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
+
26
+ 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); }
27
+
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
+
30
+ 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); }; }
31
+
32
+ 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); }
33
+
34
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
+
36
+ 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; } }
37
+
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
+
40
+ var CustomModule = /*#__PURE__*/function (_React$Component) {
41
+ _inherits(CustomModule, _React$Component);
42
+
43
+ var _super = _createSuper(CustomModule);
44
+
45
+ function CustomModule() {
46
+ _classCallCheck(this, CustomModule);
47
+
48
+ return _super.apply(this, arguments);
49
+ }
50
+
51
+ _createClass(CustomModule, [{
52
+ key: "render",
53
+ value: function render() {
54
+ return /*#__PURE__*/_react["default"].createElement(_SVG["default"], _extends({
55
+ viewBox: "0 0 200 200",
56
+ name: "CustomModule"
57
+ }, this.props), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("style", null, ".customModule_svg__cls-6{fill:var(--zd_emptysvg_secondary_fill)}.customModule_svg__cls-2{fill:var(--zd_emptysvg_plus)}.customModule_svg__cls-3{fill:var(--zd_emptysvg_cross)}")), /*#__PURE__*/_react["default"].createElement("path", {
58
+ d: "M84.86 69.05s45.64-29.14 68.74-20.37 38.88 82.57-25.35 115.68S35 125.45 34.71 112.68c-.24-12.35 0-41.8 50.15-43.63z",
59
+ style: {
60
+ isolation: "isolate"
61
+ },
62
+ opacity: 0.1,
63
+ fill: "var(--zd_emptysvg_primary_fill)"
64
+ }), /*#__PURE__*/_react["default"].createElement("path", {
65
+ className: "customModule_svg__cls-2",
66
+ d: "M19.31 111.51a.5.5 0 01-.47-.52l.4-6.7a.49.49 0 01.52-.47.49.49 0 01.47.52l-.42 6.66a.5.5 0 01-.5.51z"
67
+ }), /*#__PURE__*/_react["default"].createElement("path", {
68
+ className: "customModule_svg__cls-2",
69
+ d: "M23 108.34l-7-.34a.48.48 0 01-.47-.52.49.49 0 01.53-.47l7 .38a.5.5 0 010 1z"
70
+ }), /*#__PURE__*/_react["default"].createElement("path", {
71
+ d: "M140.88 186.47a3.15 3.15 0 113.24-3.15 3.2 3.2 0 01-3.24 3.15zm0-5.3a2.15 2.15 0 102.24 2.15 2.21 2.21 0 00-2.24-2.15z",
72
+ fill: "var(--zd_emptysvg_small_circle)"
73
+ }), /*#__PURE__*/_react["default"].createElement("path", {
74
+ className: "customModule_svg__cls-3",
75
+ d: "M185.75 146a.5.5 0 01-.37-.16l-4.64-5a.48.48 0 010-.7.5.5 0 01.7 0l4.65 5a.49.49 0 010 .7.5.5 0 01-.34.16z"
76
+ }), /*#__PURE__*/_react["default"].createElement("path", {
77
+ className: "customModule_svg__cls-3",
78
+ d: "M180.83 145.75a.52.52 0 01-.38-.17.49.49 0 01.05-.7l5.2-4.47a.5.5 0 11.66.75l-5.2 4.47a.52.52 0 01-.33.12zM77.39 31.09a3.31 3.31 0 113.33-3.31 3.33 3.33 0 01-3.33 3.31zm0-5.62a2.31 2.31 0 102.33 2.31 2.33 2.33 0 00-2.33-2.31z"
79
+ }), /*#__PURE__*/_react["default"].createElement("path", {
80
+ d: "M157.33 25.35A4.33 4.33 0 11161.7 21a4.36 4.36 0 01-4.37 4.35zm0-7.67A3.34 3.34 0 10160.7 21a3.37 3.37 0 00-3.37-3.32z",
81
+ fill: "var(--zd_emptysvg_medium_circle)"
82
+ }), /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("path", {
83
+ d: "M66.43 47.65c-.5 1.49-15.52 26.14-22.34 20.35-1.69-1.44 48.16-25.81 48.16-25.81s58.57 24.32 60.06 26.31-62 35.24-62 35.24L36.15 73l-3 66.53 55.6 32.26 68-29.5-.05-38.36c-6.31.46-10.84 9.56-4.9 15.88 5 5.35 15.35 2.72 16.18-6.46.93-10.26-10.19-10.66-10.19-10.66l.21-16.26a33.14 33.14 0 013.55 0c.77.13 0 6.6 3 9.15s8.27-3.28 9.54-3.27 4.93 5.73 4.93 5.73-4.84 6.2-4.34 8.11 8.37 2.69 9.52 2.82 0 8.51 0 8.51-8-.66-9.78 2.26 4.67 7.88 4.8 8.65-5.61 6.33-5.61 6.33l-5.07-4.21c-1.77-1.65-3.72-.59-5.33 0a2.51 2.51 0 00-1.39 1.33l-.13 5.49a34.64 34.64 0 01-8 .29c-2.3-.24.57-9.28-3.69-8.42s-5.91 5.66-9.29 3.58-3.7-3.51-3.26-4.6 5-7.08 4.18-8.5-8.62-2.1-9.06-2.76-.64-5.35 0-7.21 6.23-.74 8-2-.42-7-2.92-10.27c0 0 2.09-4.58 4.28-5.23s7.4 5.92 10.25 3.42.78-8 2.59-9.22h1.62c-.17-6.36-.27-11.2-.64-11.94-1.49-3-58.08 31.77-58.08 31.77l-.85 55.44",
84
+ fill: "none",
85
+ stroke: "var(--zd_emptysvg_primary_stroke)",
86
+ strokeLinecap: "round",
87
+ strokeLinejoin: "round"
88
+ }), /*#__PURE__*/_react["default"].createElement("path", {
89
+ className: "customModule_svg__cls-6",
90
+ d: "M132.21 72.4S93.39 48 89.51 49.67s-8.88 4.43-6.66 14.42-22.18-2.78-21.63 1.66 29.24 29.1 32 27.44 38.99-20.79 38.99-20.79zM80.63 152.43S56.67 94.3 50 95.83s-10.2 37.73-7.14 39.26 37.77 17.34 37.77 17.34zM161 111c-.07 2.33 2.1 1.08 2.78 1.88 1 1.19 1.76 3-.56 4.8-4 3.09-11 3.46-12.3-3.5s8.62-10.15 10.8-7c.81 1.2-.72 3.15-.72 3.82z"
91
+ })));
92
+ }
93
+ }]);
94
+
95
+ return CustomModule;
96
+ }(_react["default"].Component);
97
+
98
+ exports["default"] = CustomModule;
99
+ CustomModule.propTypes = {
100
+ alignHorizontal: _propTypes["default"].bool,
101
+ className: _propTypes["default"].string,
102
+ dataId: _propTypes["default"].string,
103
+ isRender: _propTypes["default"].bool,
104
+ size: _propTypes["default"].oneOf(['small', 'large']),
105
+ palette: _propTypes["default"].oneOf(['default', 'dark'])
106
+ };
107
+ CustomModule.defaultProps = {
108
+ size: 'large',
109
+ alignHorizontal: true,
110
+ isRender: true,
111
+ className: '',
112
+ dataId: 'CustomModule',
113
+ palette: 'default'
114
+ };
115
+
116
+ if (false) {
117
+ CustomModule.docs = {
118
+ componentGroup: 'SVG'
119
+ };
120
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/svg",
3
- "version": "1.0.0-beta.45",
3
+ "version": "1.0.0-beta.46",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",