@zohodesk/svg 1.0.0-beta.51 → 1.0.0-beta.53
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 +204 -196
- package/css_error.log +0 -0
- package/deprecated/june_2022/ErrorUnauthorizedLogin.js +127 -127
- package/es/Loader/Loader.js +5 -7
- package/es/SVG/SVG.js +5 -6
- package/es/SVG/SVG.module.css +26 -26
- package/es/SVG/SvgLoader.js +1 -4
- package/es/css/EmptyStateVariables.module.css +38 -38
- package/es/emptystate/index.js +6 -0
- package/es/emptystate/version1/EmptyCustomDomain.js +7 -9
- package/es/emptystate/version1/index.js +1 -0
- package/es/emptystate/version2/EmptyBusinessHoliday.js +7 -8
- package/es/emptystate/version2/EmptyBusinessHour.js +7 -8
- package/es/emptystate/version2/EmptyFromAddress.js +7 -9
- package/es/emptystate/version2/EmptyImportHistory.js +7 -8
- package/es/emptystate/version2/EmptyNetwork.js +7 -9
- package/es/emptystate/version2/EmptyRecycleBin.js +7 -9
- package/es/emptystate/version2/EmptyRoles.js +7 -9
- package/es/emptystate/version2/EmptyWebhook.js +7 -9
- package/es/emptystate/version2/FailureLog.js +7 -8
- package/es/emptystate/version2/index.js +9 -0
- package/es/emptystate/version3/AuditLog.js +7 -9
- package/es/emptystate/version3/Contract.js +90 -0
- package/es/emptystate/version3/CustomModule.js +7 -9
- package/es/emptystate/version3/EmptyAPIs.js +64 -0
- package/es/emptystate/version3/EmptyAccounts.js +7 -9
- package/es/emptystate/version3/EmptyActiveCalls.js +7 -8
- package/es/emptystate/version3/EmptyActivity.js +7 -8
- package/es/emptystate/version3/EmptyAgent.js +7 -8
- package/es/emptystate/version3/EmptyAgentQueue.js +7 -8
- package/es/emptystate/version3/EmptyApplechat.js +7 -9
- package/es/emptystate/version3/EmptyApproval.js +7 -9
- package/es/emptystate/version3/EmptyArchived.js +7 -9
- package/es/emptystate/version3/EmptyArticle.js +7 -9
- package/es/emptystate/version3/EmptyAsapchat.js +7 -8
- package/es/emptystate/version3/EmptyAttach.js +7 -8
- package/es/emptystate/version3/EmptyBlueprint.js +7 -8
- package/es/emptystate/version3/EmptyCallHistory.js +7 -8
- package/es/emptystate/version3/EmptyCanned.js +7 -8
- package/es/emptystate/version3/EmptyChat.js +7 -8
- package/es/emptystate/version3/EmptyCollision.js +7 -9
- package/es/emptystate/version3/EmptyColumn.js +7 -9
- package/es/emptystate/version3/EmptyContact.js +7 -8
- package/es/emptystate/version3/EmptyContract.js +7 -9
- package/es/emptystate/version3/EmptyConversation.js +7 -8
- package/es/emptystate/version3/EmptyCrm.js +7 -9
- package/es/emptystate/version3/EmptyCrmNotes.js +7 -9
- package/es/emptystate/version3/EmptyCrmPotential.js +7 -8
- package/es/emptystate/version3/EmptyDashboard.js +7 -9
- package/es/emptystate/version3/EmptyDelete.js +7 -9
- package/es/emptystate/version3/EmptyDepartment.js +7 -9
- package/es/emptystate/version3/EmptyError.js +7 -8
- package/es/emptystate/version3/EmptyFeed.js +7 -9
- package/es/emptystate/version3/EmptyFollowers.js +7 -9
- package/es/emptystate/version3/EmptyFrame.js +7 -8
- package/es/emptystate/version3/EmptyHappiness.js +7 -8
- package/es/emptystate/version3/EmptyHistory.js +7 -9
- package/es/emptystate/version3/EmptyInstagram.js +7 -8
- package/es/emptystate/version3/EmptyInstantmessage.js +7 -8
- package/es/emptystate/version3/EmptyInvoice.js +7 -9
- package/es/emptystate/version3/EmptyLine.js +7 -8
- package/es/emptystate/version3/EmptyMessenger.js +7 -9
- package/es/emptystate/version3/EmptyNoData.js +7 -9
- package/es/emptystate/version3/EmptyNotification.js +7 -9
- package/es/emptystate/version3/EmptyPreference.js +7 -9
- package/es/emptystate/version3/EmptyProducts.js +7 -9
- package/es/emptystate/version3/EmptyReply.js +7 -9
- package/es/emptystate/version3/EmptyReports.js +7 -9
- package/es/emptystate/version3/EmptySandbox.js +7 -9
- package/es/emptystate/version3/EmptySchedule.js +7 -9
- package/es/emptystate/version3/EmptySearch.js +7 -9
- package/es/emptystate/version3/EmptySkills.js +7 -9
- package/es/emptystate/version3/EmptySla.js +7 -9
- package/es/emptystate/version3/EmptySnippet.js +7 -9
- package/es/emptystate/version3/EmptyTag.js +7 -9
- package/es/emptystate/version3/EmptyTask.js +7 -9
- package/es/emptystate/version3/EmptyTeams.js +7 -8
- package/es/emptystate/version3/EmptyTelegram.js +7 -8
- package/es/emptystate/version3/EmptyTemplate.js +7 -9
- package/es/emptystate/version3/EmptyTicket.js +7 -8
- package/es/emptystate/version3/EmptyTimeEntry.js +7 -9
- package/es/emptystate/version3/EmptyTimeline.js +7 -8
- package/es/emptystate/version3/EmptyTopic.js +7 -9
- package/es/emptystate/version3/EmptyTwilio.js +7 -8
- package/es/emptystate/version3/EmptyWechat.js +7 -8
- package/es/emptystate/version3/EmptyWhatsapp.js +7 -8
- package/es/emptystate/version3/Export.js +7 -8
- package/es/emptystate/version3/Extensions.js +7 -8
- package/es/emptystate/version3/Extractor.js +7 -8
- package/es/emptystate/version3/GCBot.js +7 -8
- package/es/emptystate/version3/GCConversation.js +7 -8
- package/es/emptystate/version3/Import.js +7 -8
- package/es/emptystate/version3/KBBot.js +7 -8
- package/es/emptystate/version3/Multilingual.js +7 -8
- package/es/emptystate/version3/NetworkError.js +7 -8
- package/es/emptystate/version3/Predictor.js +7 -8
- package/es/emptystate/version3/ReadRecipients.js +7 -8
- package/es/emptystate/version3/SupportPlan.js +7 -9
- package/es/emptystate/version3/Variable.js +7 -8
- package/es/emptystate/version3/ZiaAnamoly.js +7 -8
- package/es/emptystate/version3/index.js +78 -0
- package/es/errorstate/index.js +6 -0
- package/es/errorstate/version1/EmptyInconvenience.js +7 -8
- package/es/errorstate/version1/NoRequestFound.js +7 -8
- package/es/errorstate/version1/PageNotFound.js +7 -8
- package/es/errorstate/version1/UnableToProcessRequest.js +7 -8
- package/es/errorstate/version1/UnauthorizedLogin.js +7 -8
- package/es/errorstate/version1/UrlNotFound.js +7 -8
- package/es/errorstate/version1/WillBeRightBack.js +7 -8
- package/es/errorstate/version1/index.js +7 -0
- package/es/errorstate/version2/EmptyUnauthorizedLogin.js +7 -8
- package/es/errorstate/version2/EmptyWillBeRightBack.js +7 -8
- package/es/errorstate/version2/NotImpossible.js +7 -8
- package/es/errorstate/version2/index.js +2 -0
- package/es/errorstate/version3/ErrorInconvenience.js +7 -8
- package/es/errorstate/version3/ErrorOopsSomethingMiss.js +7 -8
- package/es/errorstate/version3/ErrorUnableToProcessRequest.js +7 -8
- package/es/errorstate/version3/ErrorUnauthorizedLogin.js +7 -8
- package/es/errorstate/version3/ErrorUrlNotFound.js +7 -8
- package/es/errorstate/version3/ErrorWillBeRightBack.js +7 -8
- package/es/errorstate/version3/index.js +6 -0
- package/es/index.js +21 -12
- package/images/EmptyBusinessHoliday.svg +50 -50
- package/images/EmptyBusinessHour.svg +42 -42
- package/images/EmptyContactInfo.svg +27 -27
- package/images/EmptyCustomDomain.svg +85 -85
- package/images/EmptyFilter.svg +62 -62
- package/images/EmptyFromAddress.svg +41 -41
- package/images/EmptyImportHistory.svg +43 -43
- package/images/EmptyNetwork.svg +50 -50
- package/images/EmptyRecycleBin.svg +58 -58
- package/images/EmptyRoles.svg +30 -30
- package/images/EmptySkills.svg +83 -83
- package/images/EmptyWebhook.svg +44 -44
- package/images/FailureLog.svg +46 -46
- package/images/Inconvenience.svg +719 -719
- package/images/NoRequestFound.svg +247 -247
- package/images/PageNotFound.svg +405 -405
- package/images/ReguestUrlNotFound.svg +267 -267
- package/images/UnableToProcess.svg +752 -752
- package/images/UnauthorizedLogin.svg +1047 -1047
- package/images/WillBack.svg +633 -633
- package/install.md +11 -0
- package/lib/Loader/Loader.js +5 -30
- package/lib/Loader/props/propTypes.js +0 -3
- package/lib/SVG/SVG.js +17 -41
- package/lib/SVG/SVG.module.css +26 -26
- package/lib/SVG/SvgLoader.js +4 -20
- package/lib/SVG/props/propTypes.js +0 -3
- package/lib/css/EmptyStateVariables.module.css +38 -38
- package/lib/emptystate/index.js +15 -0
- package/lib/emptystate/props/propTypes.js +0 -3
- package/lib/emptystate/version1/EmptyCustomDomain.js +5 -34
- package/lib/emptystate/version1/index.js +13 -0
- package/lib/emptystate/version2/EmptyBusinessHoliday.js +5 -33
- package/lib/emptystate/version2/EmptyBusinessHour.js +5 -33
- package/lib/emptystate/version2/EmptyFromAddress.js +5 -34
- package/lib/emptystate/version2/EmptyImportHistory.js +5 -33
- package/lib/emptystate/version2/EmptyNetwork.js +5 -34
- package/lib/emptystate/version2/EmptyRecycleBin.js +5 -34
- package/lib/emptystate/version2/EmptyRoles.js +5 -34
- package/lib/emptystate/version2/EmptyWebhook.js +5 -34
- package/lib/emptystate/version2/FailureLog.js +5 -33
- package/lib/emptystate/version2/index.js +69 -0
- package/lib/emptystate/version3/AuditLog.js +5 -33
- package/lib/emptystate/version3/Contract.js +121 -0
- package/lib/emptystate/version3/CustomModule.js +5 -33
- package/lib/emptystate/version3/EmptyAPIs.js +95 -0
- package/lib/emptystate/version3/EmptyAccounts.js +5 -33
- package/lib/emptystate/version3/EmptyActiveCalls.js +5 -32
- package/lib/emptystate/version3/EmptyActivity.js +5 -32
- package/lib/emptystate/version3/EmptyAgent.js +5 -32
- package/lib/emptystate/version3/EmptyAgentQueue.js +5 -32
- package/lib/emptystate/version3/EmptyApplechat.js +5 -33
- package/lib/emptystate/version3/EmptyApproval.js +5 -33
- package/lib/emptystate/version3/EmptyArchived.js +5 -33
- package/lib/emptystate/version3/EmptyArticle.js +5 -33
- package/lib/emptystate/version3/EmptyAsapchat.js +5 -32
- package/lib/emptystate/version3/EmptyAttach.js +5 -32
- package/lib/emptystate/version3/EmptyBlueprint.js +5 -32
- package/lib/emptystate/version3/EmptyCallHistory.js +5 -32
- package/lib/emptystate/version3/EmptyCanned.js +5 -32
- package/lib/emptystate/version3/EmptyChat.js +5 -32
- package/lib/emptystate/version3/EmptyCollision.js +5 -33
- package/lib/emptystate/version3/EmptyColumn.js +5 -33
- package/lib/emptystate/version3/EmptyContact.js +5 -32
- package/lib/emptystate/version3/EmptyContract.js +5 -33
- package/lib/emptystate/version3/EmptyConversation.js +5 -32
- package/lib/emptystate/version3/EmptyCrm.js +5 -33
- package/lib/emptystate/version3/EmptyCrmNotes.js +5 -33
- package/lib/emptystate/version3/EmptyCrmPotential.js +5 -32
- package/lib/emptystate/version3/EmptyDashboard.js +5 -33
- package/lib/emptystate/version3/EmptyDelete.js +5 -33
- package/lib/emptystate/version3/EmptyDepartment.js +5 -33
- package/lib/emptystate/version3/EmptyError.js +5 -32
- package/lib/emptystate/version3/EmptyFeed.js +5 -33
- package/lib/emptystate/version3/EmptyFollowers.js +5 -33
- package/lib/emptystate/version3/EmptyFrame.js +5 -32
- package/lib/emptystate/version3/EmptyHappiness.js +5 -32
- package/lib/emptystate/version3/EmptyHistory.js +5 -33
- package/lib/emptystate/version3/EmptyInstagram.js +5 -32
- package/lib/emptystate/version3/EmptyInstantmessage.js +5 -32
- package/lib/emptystate/version3/EmptyInvoice.js +5 -33
- package/lib/emptystate/version3/EmptyLine.js +5 -32
- package/lib/emptystate/version3/EmptyMessenger.js +5 -33
- package/lib/emptystate/version3/EmptyNoData.js +5 -33
- package/lib/emptystate/version3/EmptyNotification.js +5 -33
- package/lib/emptystate/version3/EmptyPreference.js +5 -33
- package/lib/emptystate/version3/EmptyProducts.js +5 -33
- package/lib/emptystate/version3/EmptyReply.js +5 -33
- package/lib/emptystate/version3/EmptyReports.js +5 -33
- package/lib/emptystate/version3/EmptySandbox.js +5 -33
- package/lib/emptystate/version3/EmptySchedule.js +5 -33
- package/lib/emptystate/version3/EmptySearch.js +5 -33
- package/lib/emptystate/version3/EmptySkills.js +5 -33
- package/lib/emptystate/version3/EmptySla.js +5 -33
- package/lib/emptystate/version3/EmptySnippet.js +5 -33
- package/lib/emptystate/version3/EmptyTag.js +5 -33
- package/lib/emptystate/version3/EmptyTask.js +5 -33
- package/lib/emptystate/version3/EmptyTeams.js +5 -32
- package/lib/emptystate/version3/EmptyTelegram.js +5 -32
- package/lib/emptystate/version3/EmptyTemplate.js +5 -33
- package/lib/emptystate/version3/EmptyTicket.js +5 -32
- package/lib/emptystate/version3/EmptyTimeEntry.js +5 -33
- package/lib/emptystate/version3/EmptyTimeline.js +5 -32
- package/lib/emptystate/version3/EmptyTopic.js +5 -33
- package/lib/emptystate/version3/EmptyTwilio.js +5 -32
- package/lib/emptystate/version3/EmptyWechat.js +5 -32
- package/lib/emptystate/version3/EmptyWhatsapp.js +5 -32
- package/lib/emptystate/version3/Export.js +5 -32
- package/lib/emptystate/version3/Extensions.js +5 -32
- package/lib/emptystate/version3/Extractor.js +5 -32
- package/lib/emptystate/version3/GCBot.js +5 -32
- package/lib/emptystate/version3/GCConversation.js +5 -32
- package/lib/emptystate/version3/Import.js +5 -32
- package/lib/emptystate/version3/KBBot.js +5 -32
- package/lib/emptystate/version3/Multilingual.js +5 -32
- package/lib/emptystate/version3/NetworkError.js +5 -32
- package/lib/emptystate/version3/Predictor.js +5 -32
- package/lib/emptystate/version3/ReadRecipients.js +5 -32
- package/lib/emptystate/version3/SupportPlan.js +5 -33
- package/lib/emptystate/version3/Variable.js +5 -32
- package/lib/emptystate/version3/ZiaAnamoly.js +5 -32
- package/lib/emptystate/version3/index.js +552 -0
- package/lib/errorstate/index.js +15 -0
- package/lib/errorstate/props/propTypes.js +0 -3
- package/lib/errorstate/version1/EmptyInconvenience.js +5 -33
- package/lib/errorstate/version1/NoRequestFound.js +5 -33
- package/lib/errorstate/version1/PageNotFound.js +5 -33
- package/lib/errorstate/version1/UnableToProcessRequest.js +5 -33
- package/lib/errorstate/version1/UnauthorizedLogin.js +5 -33
- package/lib/errorstate/version1/UrlNotFound.js +5 -33
- package/lib/errorstate/version1/WillBeRightBack.js +5 -33
- package/lib/errorstate/version1/index.js +55 -0
- package/lib/errorstate/version2/EmptyUnauthorizedLogin.js +5 -32
- package/lib/errorstate/version2/EmptyWillBeRightBack.js +5 -32
- package/lib/errorstate/version2/NotImpossible.js +5 -32
- package/lib/errorstate/version2/index.js +20 -0
- package/lib/errorstate/version3/ErrorInconvenience.js +5 -32
- package/lib/errorstate/version3/ErrorOopsSomethingMiss.js +5 -32
- package/lib/errorstate/version3/ErrorUnableToProcessRequest.js +5 -32
- package/lib/errorstate/version3/ErrorUnauthorizedLogin.js +5 -32
- package/lib/errorstate/version3/ErrorUrlNotFound.js +5 -32
- package/lib/errorstate/version3/ErrorWillBeRightBack.js +5 -32
- package/lib/errorstate/version3/index.js +48 -0
- package/lib/index.js +14 -83
- package/package.json +54 -54
- package/es/Provider.js +0 -74
- package/es/docs/Emptystate__version1.docs.js +0 -29
- package/es/docs/Emptystate__version2.docs.js +0 -45
- package/es/docs/Emptystate__version3.docs.js +0 -184
- package/es/docs/Errorstate__version1.docs.js +0 -41
- package/es/docs/Errorstate__version2.docs.js +0 -33
- package/es/docs/Errorstate__version3.docs.js +0 -39
- package/es/docs/SVG__common.docs.js +0 -29
- package/es/docs/SVGdocstyle.module.css +0 -53
- package/lib/Provider.js +0 -139
- package/lib/docs/Emptystate__version1.docs.js +0 -79
- package/lib/docs/Emptystate__version2.docs.js +0 -103
- package/lib/docs/Emptystate__version3.docs.js +0 -310
- package/lib/docs/Errorstate__version1.docs.js +0 -97
- package/lib/docs/Errorstate__version2.docs.js +0 -85
- package/lib/docs/Errorstate__version3.docs.js +0 -94
- package/lib/docs/SVG__common.docs.js +0 -79
- package/lib/docs/SVGdocstyle.module.css +0 -53
|
@@ -1,61 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = require("./../props/propTypes");
|
|
13
|
-
|
|
14
10
|
var _defaultProps = require("./../props/defaultProps");
|
|
15
|
-
|
|
16
11
|
var _SVG = _interopRequireDefault(require("./../../SVG/SVG"));
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
13
|
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; }
|
|
21
|
-
|
|
22
14
|
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; }
|
|
23
|
-
|
|
24
15
|
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; }
|
|
25
|
-
|
|
26
16
|
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); }
|
|
27
|
-
|
|
28
17
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
30
18
|
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); } }
|
|
31
|
-
|
|
32
19
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
|
-
|
|
34
20
|
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); }
|
|
35
|
-
|
|
36
21
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
-
|
|
38
22
|
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); }; }
|
|
39
|
-
|
|
40
23
|
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); }
|
|
41
|
-
|
|
42
24
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
-
|
|
44
25
|
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; } }
|
|
45
|
-
|
|
46
26
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
-
|
|
48
27
|
var UrlNotFound = /*#__PURE__*/function (_React$Component) {
|
|
49
28
|
_inherits(UrlNotFound, _React$Component);
|
|
50
|
-
|
|
51
29
|
var _super = _createSuper(UrlNotFound);
|
|
52
|
-
|
|
53
30
|
function UrlNotFound() {
|
|
54
31
|
_classCallCheck(this, UrlNotFound);
|
|
55
|
-
|
|
56
32
|
return _super.apply(this, arguments);
|
|
57
33
|
}
|
|
58
|
-
|
|
59
34
|
_createClass(UrlNotFound, [{
|
|
60
35
|
key: "render",
|
|
61
36
|
value: function render() {
|
|
@@ -147,18 +122,16 @@ var UrlNotFound = /*#__PURE__*/function (_React$Component) {
|
|
|
147
122
|
}));
|
|
148
123
|
}
|
|
149
124
|
}]);
|
|
150
|
-
|
|
151
125
|
return UrlNotFound;
|
|
152
126
|
}(_react["default"].Component);
|
|
153
|
-
|
|
154
127
|
exports["default"] = UrlNotFound;
|
|
155
128
|
UrlNotFound.propTypes = _propTypes.ErrorStateProps;
|
|
156
129
|
UrlNotFound.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.ErrorStateDefaultProps), {}, {
|
|
157
130
|
dataId: 'urlnotfound'
|
|
158
131
|
});
|
|
159
132
|
|
|
160
|
-
if (
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
133
|
+
// if (__DOCS__) {
|
|
134
|
+
// UrlNotFound.docs = {
|
|
135
|
+
// componentGroup: 'Emptystate'
|
|
136
|
+
// };
|
|
137
|
+
// }
|
|
@@ -1,61 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = require("./../props/propTypes");
|
|
13
|
-
|
|
14
10
|
var _defaultProps = require("./../props/defaultProps");
|
|
15
|
-
|
|
16
11
|
var _SVG = _interopRequireDefault(require("./../../SVG/SVG"));
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
13
|
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; }
|
|
21
|
-
|
|
22
14
|
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; }
|
|
23
|
-
|
|
24
15
|
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; }
|
|
25
|
-
|
|
26
16
|
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); }
|
|
27
|
-
|
|
28
17
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
30
18
|
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); } }
|
|
31
|
-
|
|
32
19
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
|
-
|
|
34
20
|
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); }
|
|
35
|
-
|
|
36
21
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
-
|
|
38
22
|
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); }; }
|
|
39
|
-
|
|
40
23
|
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); }
|
|
41
|
-
|
|
42
24
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
-
|
|
44
25
|
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; } }
|
|
45
|
-
|
|
46
26
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
-
|
|
48
27
|
var WillBeRightBack = /*#__PURE__*/function (_React$Component) {
|
|
49
28
|
_inherits(WillBeRightBack, _React$Component);
|
|
50
|
-
|
|
51
29
|
var _super = _createSuper(WillBeRightBack);
|
|
52
|
-
|
|
53
30
|
function WillBeRightBack() {
|
|
54
31
|
_classCallCheck(this, WillBeRightBack);
|
|
55
|
-
|
|
56
32
|
return _super.apply(this, arguments);
|
|
57
33
|
}
|
|
58
|
-
|
|
59
34
|
_createClass(WillBeRightBack, [{
|
|
60
35
|
key: "render",
|
|
61
36
|
value: function render() {
|
|
@@ -146,18 +121,16 @@ var WillBeRightBack = /*#__PURE__*/function (_React$Component) {
|
|
|
146
121
|
}));
|
|
147
122
|
}
|
|
148
123
|
}]);
|
|
149
|
-
|
|
150
124
|
return WillBeRightBack;
|
|
151
125
|
}(_react["default"].Component);
|
|
152
|
-
|
|
153
126
|
exports["default"] = WillBeRightBack;
|
|
154
127
|
WillBeRightBack.propTypes = _propTypes.ErrorStateProps;
|
|
155
128
|
WillBeRightBack.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.ErrorStateDefaultProps), {}, {
|
|
156
129
|
dataId: 'willberightback'
|
|
157
130
|
});
|
|
158
131
|
|
|
159
|
-
if (
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
132
|
+
// if (__DOCS__) {
|
|
133
|
+
// WillBeRightBack.docs = {
|
|
134
|
+
// componentGroup: 'Emptystate'
|
|
135
|
+
// };
|
|
136
|
+
// }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ErrorInconvenience", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _ErrorInconvenience["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ErrorOopsSomethingMiss", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _ErrorOopsSomethingMiss["default"];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ErrorUnableToProcessRequest", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _ErrorUnableToProcessRequest["default"];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "ErrorUnauthorizedLogin", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _ErrorUnauthorizedLogin["default"];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "ErrorUrlNotFound", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _ErrorUrlNotFound["default"];
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "ErrorWillBeRightBack", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _ErrorWillBeRightBack["default"];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _ErrorInconvenience = _interopRequireDefault(require("./ErrorInconvenience"));
|
|
43
|
+
var _ErrorOopsSomethingMiss = _interopRequireDefault(require("./ErrorOopsSomethingMiss"));
|
|
44
|
+
var _ErrorUnableToProcessRequest = _interopRequireDefault(require("./ErrorUnableToProcessRequest"));
|
|
45
|
+
var _ErrorUnauthorizedLogin = _interopRequireDefault(require("./ErrorUnauthorizedLogin"));
|
|
46
|
+
var _ErrorUrlNotFound = _interopRequireDefault(require("./ErrorUrlNotFound"));
|
|
47
|
+
var _ErrorWillBeRightBack = _interopRequireDefault(require("./ErrorWillBeRightBack"));
|
|
48
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/lib/index.js
CHANGED
|
@@ -1,97 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
+
exports.ErrorState = exports.EmptyState = void 0;
|
|
8
|
+
Object.defineProperty(exports, "Loader", {
|
|
7
9
|
enumerable: true,
|
|
8
10
|
get: function get() {
|
|
9
|
-
return
|
|
11
|
+
return _Loader["default"];
|
|
10
12
|
}
|
|
11
13
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
14
|
+
Object.defineProperty(exports, "SVG", {
|
|
13
15
|
enumerable: true,
|
|
14
16
|
get: function get() {
|
|
15
|
-
return
|
|
17
|
+
return _SVG["default"];
|
|
16
18
|
}
|
|
17
19
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _Errorstate__version["default"];
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "Errorstate__version2", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _Errorstate__version2["default"];
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "Errorstate__version3", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _Errorstate__version3["default"];
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "React", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _react["default"];
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "ReactDOM", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _reactDom["default"];
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "Svg__common", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _SVG__common["default"];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "_provider", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _Provider["default"];
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "renderToStaticMarkup", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _server.renderToStaticMarkup;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
var _react = _interopRequireDefault(require("react"));
|
|
74
|
-
|
|
75
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
76
|
-
|
|
77
|
-
var _server = require("react-dom/server");
|
|
78
|
-
|
|
79
|
-
require("@zohodesk/variables/assets/sizeVariables.module.css");
|
|
80
|
-
|
|
81
|
-
var _Provider = _interopRequireDefault(require("./Provider"));
|
|
82
|
-
|
|
83
|
-
var _Emptystate__version = _interopRequireDefault(require("./docs/Emptystate__version1.docs"));
|
|
84
|
-
|
|
85
|
-
var _Emptystate__version2 = _interopRequireDefault(require("./docs/Emptystate__version2.docs"));
|
|
86
|
-
|
|
87
|
-
var _Emptystate__version3 = _interopRequireDefault(require("./docs/Emptystate__version3.docs"));
|
|
88
|
-
|
|
89
|
-
var _Errorstate__version = _interopRequireDefault(require("./docs/Errorstate__version1.docs"));
|
|
90
|
-
|
|
91
|
-
var _Errorstate__version2 = _interopRequireDefault(require("./docs/Errorstate__version2.docs"));
|
|
92
|
-
|
|
93
|
-
var _Errorstate__version3 = _interopRequireDefault(require("./docs/Errorstate__version3.docs"));
|
|
94
|
-
|
|
95
|
-
var _SVG__common = _interopRequireDefault(require("./docs/SVG__common.docs"));
|
|
96
|
-
|
|
20
|
+
var _SVG = _interopRequireDefault(require("./SVG/SVG"));
|
|
21
|
+
var _Loader = _interopRequireDefault(require("./Loader/Loader"));
|
|
22
|
+
var _EmptyState = _interopRequireWildcard(require("./emptystate/"));
|
|
23
|
+
exports.EmptyState = _EmptyState;
|
|
24
|
+
var _ErrorState = _interopRequireWildcard(require("./errorstate"));
|
|
25
|
+
exports.ErrorState = _ErrorState;
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
|
|
97
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zohodesk/svg",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
4
|
-
"main": "lib/index",
|
|
5
|
-
"module": "es/index.js",
|
|
6
|
-
"jsnext:main": "es/index.js",
|
|
7
|
-
"private": false,
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"docs":
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@zohodesk/svg",
|
|
3
|
+
"version": "1.0.0-beta.53",
|
|
4
|
+
"main": "lib/index",
|
|
5
|
+
"module": "es/index.js",
|
|
6
|
+
"jsnext:main": "es/index.js",
|
|
7
|
+
"private": false,
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"author": "Z Team",
|
|
12
|
+
"homepage": "https://www.npmjs.com/search?q=@zohodesk",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"DOT",
|
|
16
|
+
"ZOHODESK",
|
|
17
|
+
"ZTEAM",
|
|
18
|
+
"LIBRARY"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"clean": "react-cli clean lib es coverage",
|
|
22
|
+
"build": "react-cli build:component:cmjs",
|
|
23
|
+
"build:es": "react-cli build:library:es",
|
|
24
|
+
"build:dev": "npm run clean && npm run build:variables && npm run build:es --module:mode=dev -- -w",
|
|
25
|
+
"rtl:watch": "react-cli rtl ./src ./es -w",
|
|
26
|
+
"prepare": "npm run init && npm run build && npm run build:es",
|
|
27
|
+
"init": "npm run clean && npm run build:variables",
|
|
28
|
+
"build:variables": "node ./preprocess/index",
|
|
29
|
+
"lint": "react-cli lint",
|
|
30
|
+
"common_package_build": "cd ../common && npm run build && cd ../svg",
|
|
31
|
+
"docs": "react-cli docs",
|
|
32
|
+
"postpublish": "react-cli postpublish",
|
|
33
|
+
"download": "rm package-lock.json && rm -rf node_modules/ && npm install",
|
|
34
|
+
"expublish": "npm publish --tag experimental-version"
|
|
35
|
+
},
|
|
36
|
+
"react-cli": {
|
|
37
|
+
"preprocess": {
|
|
38
|
+
"runner": "./preprocess/index.js"
|
|
39
|
+
},
|
|
40
|
+
"docs": {
|
|
41
|
+
"cssUniqueness": "false",
|
|
42
|
+
"disableES5Transpile": true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@zohodesk/variables": "1.0.0-beta.29",
|
|
48
|
+
"@zohodesk/components": "1.0.0-alpha-233",
|
|
49
|
+
"@svgr/cli": "6.2.1"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@zohodesk/variables": "1.0.0-beta.29",
|
|
53
|
+
"@zohodesk/components": "1.0.0-alpha-233"
|
|
54
|
+
}
|
|
55
55
|
}
|
package/es/Provider.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import AppContainer from '@zohodesk/components/lib/AppContainer/AppContainer';
|
|
3
|
-
import { Container } from '@zohodesk/components/lib/Layout';
|
|
4
|
-
import ThemeTool from '../../common/lib/ThemeTool/ThemeTool';
|
|
5
|
-
import '@zohodesk/components/assets/Appearance/default/mode/defaultMode.module.css';
|
|
6
|
-
import '@zohodesk/components/assets/Appearance/dark/mode/darkMode.module.css';
|
|
7
|
-
/* default mode & themes */
|
|
8
|
-
|
|
9
|
-
import '../assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css';
|
|
10
|
-
import '../assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css';
|
|
11
|
-
import '../assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css';
|
|
12
|
-
import '../assets/Appearance/default/themes/red/redDefaultCTATheme.module.css';
|
|
13
|
-
import '../assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css';
|
|
14
|
-
import '../assets/Appearance/default/mode/defaultEmptyStates.module.css';
|
|
15
|
-
/* dark mode & themes */
|
|
16
|
-
|
|
17
|
-
import '../assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css';
|
|
18
|
-
import '../assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css';
|
|
19
|
-
import '../assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css';
|
|
20
|
-
import '../assets/Appearance/dark/themes/red/redDarkCTATheme.module.css';
|
|
21
|
-
import '../assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css';
|
|
22
|
-
import '../assets/Appearance/dark/mode/darkEmptyStates.module.css';
|
|
23
|
-
/* pure dark mode & themes */
|
|
24
|
-
|
|
25
|
-
import '../assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css';
|
|
26
|
-
import '../assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css';
|
|
27
|
-
import '../assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css';
|
|
28
|
-
import '../assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css';
|
|
29
|
-
import '../assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css';
|
|
30
|
-
import '../assets/Appearance/pureDark/mode/pureDarkEmptyStates.module.css';
|
|
31
|
-
export default class Provider extends React.Component {
|
|
32
|
-
constructor(props) {
|
|
33
|
-
super(props);
|
|
34
|
-
this.state = {
|
|
35
|
-
appearanceName: 'default',
|
|
36
|
-
themeName: 'blue'
|
|
37
|
-
};
|
|
38
|
-
this.setTheme = this.setTheme.bind(this);
|
|
39
|
-
this.setAppearance = this.setAppearance.bind(this);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
setAppearance(mode) {
|
|
43
|
-
this.setState({
|
|
44
|
-
appearanceName: mode
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
setTheme(theme) {
|
|
49
|
-
this.setState({
|
|
50
|
-
themeName: theme
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
render() {
|
|
55
|
-
let {
|
|
56
|
-
appearanceName,
|
|
57
|
-
themeName
|
|
58
|
-
} = this.state;
|
|
59
|
-
return /*#__PURE__*/React.createElement(AppContainer, {
|
|
60
|
-
customProps: {
|
|
61
|
-
ExtraProps: {
|
|
62
|
-
'data-mode': appearanceName,
|
|
63
|
-
'data-theme': themeName
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
67
|
-
scroll: "vertical"
|
|
68
|
-
}, this.props.children), /*#__PURE__*/React.createElement(ThemeTool, {
|
|
69
|
-
onThemeChange: this.setTheme,
|
|
70
|
-
onAppearanceChange: this.setAppearance
|
|
71
|
-
}));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import EmptyCustomDomain from '../emptystate/version1/EmptyCustomDomain';
|
|
3
|
-
import style from './SVGdocstyle.module.css';
|
|
4
|
-
export default class Emptystate__version1 extends React.Component {
|
|
5
|
-
render() {
|
|
6
|
-
let allSvg = {
|
|
7
|
-
EmptyCustomDomain: /*#__PURE__*/React.createElement(EmptyCustomDomain, null)
|
|
8
|
-
};
|
|
9
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: style.parent
|
|
11
|
-
}, Object.keys(allSvg).map(item => {
|
|
12
|
-
let filterDarkPalettes = item.endsWith('DarkPalette');
|
|
13
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
className: filterDarkPalettes ? style.darkPalette : style.defaultPalette
|
|
15
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
className: style.box
|
|
17
|
-
}, allSvg[item]), /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
className: style.textStyle
|
|
19
|
-
}, item));
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (false) {
|
|
26
|
-
Emptystate__version1.docs = {
|
|
27
|
-
componentGroup: 'Emptystate'
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import EmptyBusinessHoliday from '../emptystate/version2/EmptyBusinessHoliday';
|
|
3
|
-
import EmptyBusinessHour from '../emptystate/version2/EmptyBusinessHour';
|
|
4
|
-
import EmptyImportHistory from '../emptystate/version2/EmptyImportHistory';
|
|
5
|
-
import EmptyRecycleBin from '../emptystate/version2/EmptyRecycleBin';
|
|
6
|
-
import EmptyRoles from '../emptystate/version2/EmptyRoles';
|
|
7
|
-
import EmptyNetwork from '../emptystate/version2/EmptyNetwork';
|
|
8
|
-
import FailureLog from '../emptystate/version2/FailureLog';
|
|
9
|
-
import EmptyFromAddress from '../emptystate/version2/EmptyFromAddress';
|
|
10
|
-
import EmptyWebhook from '../emptystate/version2/EmptyWebhook';
|
|
11
|
-
import style from './SVGdocstyle.module.css';
|
|
12
|
-
export default class Emptystate__version2 extends React.Component {
|
|
13
|
-
render() {
|
|
14
|
-
let allSvg = {
|
|
15
|
-
EmptyBusinessHoliday: /*#__PURE__*/React.createElement(EmptyBusinessHoliday, null),
|
|
16
|
-
EmptyBusinessHour: /*#__PURE__*/React.createElement(EmptyBusinessHour, null),
|
|
17
|
-
EmptyImportHistory: /*#__PURE__*/React.createElement(EmptyImportHistory, null),
|
|
18
|
-
EmptyRecycleBin: /*#__PURE__*/React.createElement(EmptyRecycleBin, null),
|
|
19
|
-
EmptyRoles: /*#__PURE__*/React.createElement(EmptyRoles, null),
|
|
20
|
-
EmptyNetwork: /*#__PURE__*/React.createElement(EmptyNetwork, null),
|
|
21
|
-
FailureLog: /*#__PURE__*/React.createElement(FailureLog, null),
|
|
22
|
-
EmptyFromAddress: /*#__PURE__*/React.createElement(EmptyFromAddress, null),
|
|
23
|
-
EmptyWebhook: /*#__PURE__*/React.createElement(EmptyWebhook, null)
|
|
24
|
-
};
|
|
25
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
className: style.parent
|
|
27
|
-
}, Object.keys(allSvg).map(item => {
|
|
28
|
-
let filterDarkPalettes = item.endsWith('DarkPalette');
|
|
29
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: filterDarkPalettes ? style.darkPalette : style.defaultPalette
|
|
31
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: style.box
|
|
33
|
-
}, allSvg[item]), /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: style.textStyle
|
|
35
|
-
}, item));
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (false) {
|
|
42
|
-
Emptystate__version2.docs = {
|
|
43
|
-
componentGroup: 'Emptystate'
|
|
44
|
-
};
|
|
45
|
-
}
|