@zohodesk/svg 1.0.0-beta.46 → 1.0.0-beta.49
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 +9 -1
- package/assets/Appearance/pureDark/mode/pureDarkEmptyStates.module.css +37 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +10 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +10 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +10 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +10 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +10 -0
- package/es/{svg → Loader}/Loader.js +12 -15
- package/es/Loader/props/defaultProps.js +3 -0
- package/es/Loader/props/propTypes.js +4 -0
- package/es/Provider.js +18 -84
- package/es/{svg → SVG}/SVG.js +5 -27
- package/es/{svg → SVG}/SVG.module.css +0 -0
- package/es/{svg → SVG}/SvgLoader.js +3 -3
- package/es/SVG/props/defaultProps.js +11 -0
- package/es/SVG/props/propTypes.js +15 -0
- package/es/{svg → css}/EmptyStateVariables.module.css +0 -0
- package/es/docs/Emptystate__version1.docs.js +29 -0
- package/es/docs/Emptystate__version2.docs.js +45 -0
- package/es/docs/Emptystate__version3.docs.js +148 -0
- package/es/docs/Errorstate__version1.docs.js +41 -0
- package/es/docs/Errorstate__version2.docs.js +33 -0
- package/es/docs/Errorstate__version3.docs.js +39 -0
- package/es/docs/SVG__common.docs.js +29 -0
- package/es/docs/SVGdocstyle.module.css +53 -0
- package/es/emptystate/props/defaultProps.js +8 -0
- package/es/emptystate/props/propTypes.js +9 -0
- package/es/emptystate/version1/EmptyCustomDomain.js +31 -0
- package/es/emptystate/version2/EmptyBusinessHoliday.js +31 -0
- package/es/emptystate/version2/EmptyBusinessHour.js +31 -0
- package/es/emptystate/version2/EmptyFromAddress.js +31 -0
- package/es/emptystate/version2/EmptyImportHistory.js +31 -0
- package/es/emptystate/version2/EmptyNetwork.js +31 -0
- package/es/emptystate/version2/EmptyRecycleBin.js +31 -0
- package/es/emptystate/version2/EmptyRoles.js +31 -0
- package/es/emptystate/version2/EmptyWebhook.js +31 -0
- package/es/emptystate/version2/FailureLog.js +31 -0
- package/es/{svg → emptystate/version3}/CustomModule.js +10 -20
- package/es/{svg → emptystate/version3}/EmptyAccounts.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyActiveCalls.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyActivity.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyAgent.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyAgentQueue.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyApproval.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyArchived.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyAttach.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyBlueprint.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyCallHistory.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyCollision.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyColumn.js +10 -20
- package/es/{svg → emptystate/version3}/EmptyContact.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyContract.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyConversation.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyCrm.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyCrmNotes.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyCrmPotential.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyDashboard.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyDelete.js +12 -22
- package/es/{svg → emptystate/version3}/EmptyDepartment.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyError.js +8 -17
- package/es/{svg → emptystate/version3}/EmptyFeed.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyFollowers.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyFrame.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyHappiness.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyHistory.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyInvoice.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyNotification.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyProducts.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyReply.js +8 -18
- package/es/{svg → emptystate/version3}/EmptyReports.js +9 -19
- package/es/{svg → emptystate/version3}/EmptySchedule.js +9 -19
- package/es/{svg → emptystate/version3}/EmptySearch.js +9 -19
- package/es/{svg → emptystate/version3}/EmptySkills.js +9 -19
- package/es/{svg → emptystate/version3}/EmptySla.js +8 -18
- package/es/{svg → emptystate/version3}/EmptySnippet.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTag.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTask.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTeams.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTemplate.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTicket.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTimeEntry.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTimeline.js +9 -19
- package/es/{svg → emptystate/version3}/EmptyTopic.js +9 -19
- package/es/{svg → emptystate/version3}/Export.js +15 -25
- package/es/{svg → emptystate/version3}/Extensions.js +9 -19
- package/es/{svg → emptystate/version3}/Extractor.js +9 -19
- package/es/{svg → emptystate/version3}/GCBot.js +11 -21
- package/es/{svg → emptystate/version3}/GCConversation.js +15 -25
- package/es/{svg → emptystate/version3}/Import.js +8 -18
- package/es/{svg → emptystate/version3}/KBBot.js +11 -21
- package/es/{svg → emptystate/version3}/Multilingual.js +10 -20
- package/es/{svg → emptystate/version3}/NetworkError.js +16 -26
- package/es/{svg → emptystate/version3}/Predictor.js +9 -19
- package/es/{svg → emptystate/version3}/ReadRecipients.js +11 -21
- package/es/{svg → emptystate/version3}/Variable.js +11 -21
- package/es/{svg → emptystate/version3}/ZiaAnamoly.js +9 -19
- package/es/errorstate/props/defaultProps.js +8 -0
- package/es/errorstate/props/propTypes.js +9 -0
- package/es/errorstate/version1/EmptyInconvenience.js +34 -0
- package/es/errorstate/version1/NoRequestFound.js +34 -0
- package/es/errorstate/version1/PageNotFound.js +35 -0
- package/es/errorstate/version1/UnableToProcessRequest.js +35 -0
- package/es/errorstate/version1/UnauthorizedLogin.js +35 -0
- package/es/errorstate/version1/UrlNotFound.js +35 -0
- package/es/errorstate/version1/WillBeRightBack.js +35 -0
- package/es/{svg → errorstate/version2}/EmptyUnauthorizedLogin.js +8 -19
- package/es/{svg → errorstate/version2}/EmptyWillBeRightBack.js +9 -20
- package/es/{svg → errorstate/version2}/NotImpossible.js +9 -18
- package/es/{svg → errorstate/version3}/ErrorInconvenience.js +8 -15
- package/es/{svg → errorstate/version3}/ErrorOopsSomethingMiss.js +8 -15
- package/es/{svg → errorstate/version3}/ErrorUnableToProcessRequest.js +8 -15
- package/es/{svg → errorstate/version3}/ErrorUnauthorizedLogin.js +22 -29
- package/es/{svg → errorstate/version3}/ErrorUrlNotFound.js +8 -15
- package/es/{svg → errorstate/version3}/ErrorWillBeRightBack.js +8 -15
- package/es/index.js +7 -4
- package/{es/svg/images → images}/EmptyBusinessHoliday.svg +0 -0
- package/{es/svg/images → images}/EmptyBusinessHour.svg +0 -0
- package/{es/svg/images → images}/EmptyContactInfo.svg +0 -0
- package/{es/svg/images → images}/EmptyCustomDomain.svg +0 -0
- package/{es/svg/images → images}/EmptyFilter.svg +0 -0
- package/{es/svg/images → images}/EmptyFromAddress.svg +0 -0
- package/{es/svg/images → images}/EmptyImportHistory.svg +0 -0
- package/{es/svg/images → images}/EmptyNetwork.svg +0 -0
- package/{es/svg/images → images}/EmptyRecycleBin.svg +0 -0
- package/{es/svg/images → images}/EmptyRoles.svg +0 -0
- package/{es/svg/images → images}/EmptySkills.svg +0 -0
- package/{es/svg/images → images}/EmptyWebhook.svg +0 -0
- package/{es/svg/images → images}/FailureLog.svg +0 -0
- package/{es/svg/images → images}/Inconvenience.svg +0 -0
- package/{es/svg/images → images}/NoRequestFound.svg +0 -0
- package/{es/svg/images → images}/PageNotFound.svg +0 -0
- package/{es/svg/images → images}/ReguestUrlNotFound.svg +0 -0
- package/{es/svg/images → images}/UnableToProcess.svg +0 -0
- package/{es/svg/images → images}/UnauthorizedLogin.svg +0 -0
- package/{es/svg/images → images}/WillBack.svg +0 -0
- package/lib/{svg → Loader}/Loader.js +15 -17
- package/lib/Loader/props/defaultProps.js +10 -0
- package/lib/Loader/props/propTypes.js +15 -0
- package/lib/Provider.js +25 -99
- package/lib/{svg → SVG}/SVG.js +8 -29
- package/lib/{svg → SVG}/SVG.module.css +0 -0
- package/lib/{svg → SVG}/SvgLoader.js +3 -3
- package/lib/SVG/props/defaultProps.js +18 -0
- package/lib/SVG/props/propTypes.js +26 -0
- package/lib/{svg → css}/EmptyStateVariables.module.css +0 -0
- package/lib/{svg/EmptyRoles.js → docs/Emptystate__version1.docs.js} +28 -39
- package/lib/docs/Emptystate__version2.docs.js +103 -0
- package/lib/docs/Emptystate__version3.docs.js +256 -0
- package/lib/docs/Errorstate__version1.docs.js +97 -0
- package/lib/docs/Errorstate__version2.docs.js +85 -0
- package/lib/docs/Errorstate__version3.docs.js +94 -0
- package/lib/docs/SVG__common.docs.js +79 -0
- package/lib/docs/SVGdocstyle.module.css +53 -0
- package/lib/emptystate/props/defaultProps.js +15 -0
- package/lib/{svg/utils.js → emptystate/props/propTypes.js} +7 -13
- package/lib/{svg → emptystate/version1}/EmptyCustomDomain.js +18 -20
- package/lib/{svg → emptystate/version2}/EmptyBusinessHoliday.js +18 -20
- package/lib/{svg → emptystate/version2}/EmptyBusinessHour.js +18 -20
- package/lib/{svg → emptystate/version2}/EmptyFromAddress.js +18 -20
- package/lib/{svg → emptystate/version2}/EmptyImportHistory.js +18 -20
- package/lib/{svg → emptystate/version2}/EmptyNetwork.js +18 -20
- package/lib/{svg → emptystate/version2}/EmptyRecycleBin.js +18 -20
- package/lib/emptystate/version2/EmptyRoles.js +88 -0
- package/lib/{svg → emptystate/version2}/EmptyWebhook.js +18 -20
- package/lib/{svg → emptystate/version2}/FailureLog.js +18 -20
- package/lib/{svg → emptystate/version3}/CustomModule.js +20 -24
- package/lib/{svg → emptystate/version3}/EmptyAccounts.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyActiveCalls.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyActivity.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyAgent.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyAgentQueue.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyApproval.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyArchived.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyAttach.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyBlueprint.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyCallHistory.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyCollision.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyColumn.js +20 -24
- package/lib/{svg → emptystate/version3}/EmptyContact.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyContract.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyConversation.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyCrm.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyCrmNotes.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyCrmPotential.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyDashboard.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyDelete.js +22 -26
- package/lib/{svg → emptystate/version3}/EmptyDepartment.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyError.js +18 -21
- package/lib/{svg → emptystate/version3}/EmptyFeed.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyFollowers.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyFrame.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyHappiness.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyHistory.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyInvoice.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyNotification.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyProducts.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyReply.js +18 -22
- package/lib/{svg → emptystate/version3}/EmptyReports.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptySchedule.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptySearch.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptySkills.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptySla.js +18 -22
- package/lib/{svg → emptystate/version3}/EmptySnippet.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTag.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTask.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTeams.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTemplate.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTicket.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTimeEntry.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTimeline.js +19 -23
- package/lib/{svg → emptystate/version3}/EmptyTopic.js +19 -23
- package/lib/{svg → emptystate/version3}/Export.js +25 -29
- package/lib/{svg → emptystate/version3}/Extensions.js +19 -23
- package/lib/{svg → emptystate/version3}/Extractor.js +19 -23
- package/lib/{svg → emptystate/version3}/GCBot.js +21 -25
- package/lib/{svg → emptystate/version3}/GCConversation.js +25 -29
- package/lib/{svg → emptystate/version3}/Import.js +18 -22
- package/lib/{svg → emptystate/version3}/KBBot.js +21 -25
- package/lib/{svg → emptystate/version3}/Multilingual.js +20 -24
- package/lib/{svg → emptystate/version3}/NetworkError.js +26 -30
- package/lib/{svg → emptystate/version3}/Predictor.js +19 -23
- package/lib/{svg → emptystate/version3}/ReadRecipients.js +21 -25
- package/lib/{svg → emptystate/version3}/Variable.js +21 -25
- package/lib/{svg → emptystate/version3}/ZiaAnamoly.js +19 -23
- package/lib/errorstate/props/defaultProps.js +15 -0
- package/lib/errorstate/props/propTypes.js +20 -0
- package/lib/{svg → errorstate/version1}/EmptyInconvenience.js +18 -19
- package/lib/{svg → errorstate/version1}/NoRequestFound.js +18 -19
- package/lib/{svg → errorstate/version1}/PageNotFound.js +18 -19
- package/lib/{svg → errorstate/version1}/UnableToProcessRequest.js +18 -19
- package/lib/{svg → errorstate/version1}/UnauthorizedLogin.js +18 -19
- package/lib/{svg → errorstate/version1}/UrlNotFound.js +18 -19
- package/lib/{svg → errorstate/version1}/WillBeRightBack.js +18 -19
- package/lib/{svg → errorstate/version2}/EmptyUnauthorizedLogin.js +18 -22
- package/lib/{svg → errorstate/version2}/EmptyWillBeRightBack.js +19 -23
- package/lib/{svg → errorstate/version2}/NotImpossible.js +19 -21
- package/lib/{svg → errorstate/version3}/ErrorInconvenience.js +18 -18
- package/lib/{svg → errorstate/version3}/ErrorOopsSomethingMiss.js +18 -18
- package/lib/{svg → errorstate/version3}/ErrorUnableToProcessRequest.js +18 -18
- package/lib/{svg → errorstate/version3}/ErrorUnauthorizedLogin.js +32 -32
- package/lib/{svg → errorstate/version3}/ErrorUrlNotFound.js +18 -18
- package/lib/{svg → errorstate/version3}/ErrorWillBeRightBack.js +18 -18
- package/lib/index.js +40 -16
- package/package.json +3 -3
- package/es/svg/EmptyBusinessHoliday.js +0 -39
- package/es/svg/EmptyBusinessHour.js +0 -39
- package/es/svg/EmptyCustomDomain.js +0 -39
- package/es/svg/EmptyFromAddress.js +0 -39
- package/es/svg/EmptyImportHistory.js +0 -39
- package/es/svg/EmptyInconvenience.js +0 -42
- package/es/svg/EmptyNetwork.js +0 -39
- package/es/svg/EmptyRecycleBin.js +0 -39
- package/es/svg/EmptyRoles.js +0 -39
- package/es/svg/EmptyWebhook.js +0 -39
- package/es/svg/FailureLog.js +0 -39
- package/es/svg/NoRequestFound.js +0 -42
- package/es/svg/PageNotFound.js +0 -43
- package/es/svg/UnableToProcessRequest.js +0 -43
- package/es/svg/UnauthorizedLogin.js +0 -43
- package/es/svg/UrlNotFound.js +0 -43
- package/es/svg/WillBeRightBack.js +0 -43
- package/es/svg/utils.js +0 -14
- package/lib/svg/images/EmptyBusinessHoliday.svg +0 -50
- package/lib/svg/images/EmptyBusinessHour.svg +0 -42
- package/lib/svg/images/EmptyContactInfo.svg +0 -27
- package/lib/svg/images/EmptyCustomDomain.svg +0 -85
- package/lib/svg/images/EmptyFilter.svg +0 -62
- package/lib/svg/images/EmptyFromAddress.svg +0 -41
- package/lib/svg/images/EmptyImportHistory.svg +0 -43
- package/lib/svg/images/EmptyNetwork.svg +0 -50
- package/lib/svg/images/EmptyRecycleBin.svg +0 -58
- package/lib/svg/images/EmptyRoles.svg +0 -30
- package/lib/svg/images/EmptySkills.svg +0 -83
- package/lib/svg/images/EmptyWebhook.svg +0 -44
- package/lib/svg/images/FailureLog.svg +0 -46
- package/lib/svg/images/Inconvenience.svg +0 -719
- package/lib/svg/images/NoRequestFound.svg +0 -247
- package/lib/svg/images/PageNotFound.svg +0 -405
- package/lib/svg/images/ReguestUrlNotFound.svg +0 -267
- package/lib/svg/images/UnableToProcess.svg +0 -752
- package/lib/svg/images/UnauthorizedLogin.svg +0 -1047
- package/lib/svg/images/WillBack.svg +0 -633
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
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); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { ErrorStateProps } from './../props/propTypes';
|
|
5
|
+
import { ErrorStateDefaultProps } from './../props/defaultProps';
|
|
6
|
+
import SVG from './../../SVG/SVG';
|
|
6
7
|
export default class UnauthorizedLogin extends React.Component {
|
|
7
8
|
render() {
|
|
8
9
|
return /*#__PURE__*/React.createElement(SVG, _extends({
|
|
9
10
|
viewBox: "0 -30 500 500",
|
|
10
11
|
name: "UnauthorizedLogin"
|
|
11
|
-
}, this.props), /*#__PURE__*/React.createElement("style", null,
|
|
12
|
+
}, this.props), /*#__PURE__*/React.createElement("style", null, '.bouncer_svg__st0{opacity:5.000000e-02;fill:var(--zd_emptysvg_primary_fill);enable-background:new}.bouncer_svg__st5,.bouncer_svg__st7{fill:none;stroke:var(--zd_emptysvg_plus);stroke-linecap:round;stroke-linejoin:round}.bouncer_svg__st7{stroke:var(--zd_emptysvg_cross)}.bouncer_svg__st9{opacity:.2;fill:var(--zd_emptysvg_primary_fill);enable-background:new}'), /*#__PURE__*/React.createElement("path", {
|
|
12
13
|
className: "bouncer_svg__st0",
|
|
13
14
|
d: "M135.6 156.5s33.8-54.8 54.8-11 32.9 82.2 94 33.8 86.7-55.7 109.5-25.6S438.2 440.4 215 387.5c0 0-176.7-66.6-79.4-231z"
|
|
14
15
|
}), /*#__PURE__*/React.createElement("circle", {
|
|
@@ -40,8 +41,8 @@ export default class UnauthorizedLogin extends React.Component {
|
|
|
40
41
|
cx: 319.4,
|
|
41
42
|
cy: 65.1,
|
|
42
43
|
style: {
|
|
43
|
-
fill:
|
|
44
|
-
stroke:
|
|
44
|
+
fill: 'none',
|
|
45
|
+
stroke: 'var(--zd_emptysvg_medium_circle)',
|
|
45
46
|
strokeMiterlimit: 10
|
|
46
47
|
},
|
|
47
48
|
r: 3.5
|
|
@@ -49,15 +50,15 @@ export default class UnauthorizedLogin extends React.Component {
|
|
|
49
50
|
cx: 254.7,
|
|
50
51
|
cy: 426,
|
|
51
52
|
style: {
|
|
52
|
-
fill:
|
|
53
|
+
fill: 'var(--zd_emptysvg_medium_circle)'
|
|
53
54
|
},
|
|
54
55
|
r: 3.5
|
|
55
56
|
}), /*#__PURE__*/React.createElement("circle", {
|
|
56
57
|
cx: 60.3,
|
|
57
58
|
cy: 276.1,
|
|
58
59
|
style: {
|
|
59
|
-
fill:
|
|
60
|
-
stroke:
|
|
60
|
+
fill: 'none',
|
|
61
|
+
stroke: 'var(--zd_emptysvg_tiny_circle)',
|
|
61
62
|
strokeMiterlimit: 10
|
|
62
63
|
},
|
|
63
64
|
r: 3.3
|
|
@@ -65,7 +66,7 @@ export default class UnauthorizedLogin extends React.Component {
|
|
|
65
66
|
cx: 434.4,
|
|
66
67
|
cy: 281.3,
|
|
67
68
|
style: {
|
|
68
|
-
fill:
|
|
69
|
+
fill: 'var(--zd_emptysvg_tiny_circle)'
|
|
69
70
|
},
|
|
70
71
|
r: 3.3
|
|
71
72
|
}), /*#__PURE__*/React.createElement("path", {
|
|
@@ -77,10 +78,10 @@ export default class UnauthorizedLogin extends React.Component {
|
|
|
77
78
|
rx: 2.5,
|
|
78
79
|
ry: 2.4,
|
|
79
80
|
style: {
|
|
80
|
-
fill:
|
|
81
|
-
stroke:
|
|
82
|
-
strokeLinecap:
|
|
83
|
-
strokeLinejoin:
|
|
81
|
+
fill: 'none',
|
|
82
|
+
stroke: 'var(--zd_emptysvg_small_circle)',
|
|
83
|
+
strokeLinecap: 'round',
|
|
84
|
+
strokeLinejoin: 'round'
|
|
84
85
|
}
|
|
85
86
|
}), /*#__PURE__*/React.createElement("path", {
|
|
86
87
|
className: "bouncer_svg__st7",
|
|
@@ -88,11 +89,11 @@ export default class UnauthorizedLogin extends React.Component {
|
|
|
88
89
|
}), /*#__PURE__*/React.createElement("path", {
|
|
89
90
|
d: "M304.9 307.9s-49.7 71.4-153 62.2c0 0-31.2-42.1-19.8-66.2 11.4-24.1 54.4-21.1 55-19.4.6 1.7-30 11.6-26.8 21.1 0 0 1.3 2.6 1.6 2.5.4-.1 8.6-13.4 21.7-18 0 0-25 18.3-22.8 23s7.6 3.1 7.6 3.1 5.8-19.2 21.2-21.8c0 0-16.7 10.1-16.2 16.3 0 0 2.4 6.2 5.6 5.9 3.2-.4 7.9-13.3 15.7-19.1 0 0-10.8 12.2-8.5 16.3 2.3 4 12.2-4 14.6-9 0 0 11.8-.8 15-2.9 3.2-2.1-22.1-13.5-27.3-14.2-5.2-.7 24.1 5.9 30.5 13.5l17.9 2.3s45.9-16.4 64.6-13.3c18.7 3.1 19.6 13.6 19.6 13.6 3.8-1 7.8-.8 11.6.4s7 3.6 9.5 6.7c0 0-15.6-10.3-36.4-1.2 0 0-19.5 31.4-58.4 48 0 0 31.8 18.7 76.1 9.2 0 0-37.1 1.3-49-7.8 0 0 56.4 7.5 79.5 4.6 0 0 39.1-22.7 21.3-61.9 0 0-18.8-17.4-53.6-11l-2.4 6s4.5-18.6 14.2-28.3c-4.2 1.7-7.7 4.8-9.9 8.7 0 0-3.6-28.1 6.9-37.9 0 0 47.4 0 45.8 41.9 0 0-1 11.7-14-1s12.3 10.7 12.7 16.2c.4 5.5 10.2-48.5-47.4-60.9s-71.5 23.5-69.9 30.1c1.6 6.6-7.6-22.2-55-29.8l14.9-13.6s37.5 17.4 75.7 0l23.6 8.2s-12.1-6.7-23.2-10c0 0-6.5-9.4-6.7-34.2 0-2.8-.1-5.6-.4-8.4-.4-4.8-.9-12.1.4-13.1 1.9-1.5 5.2 9.5 2.6 13.4-2.6 3.9-1.3-17.5-5-21.1-3.7-3.7-23.8-5.3-24.4-3.2-.6 2.1-.4 11.4 10.4 10.3 10.8-1.1 13.4-2.5 12.5-11.3-.9-8.8-2-23.8-28.1-23.4-26.1.4-26.8 18.8-27.2 26.1.4-.1.8-.1 1.2.1.4.2.7.4.9.8.9 1.3 1.1 6.7 7.6 7.3 6.5.7 14.9.9 16-7.6 0 0 3.4-2.1 5.7-1.3 2.4.7-6.2-.6-6.2-.6s-7.4-5.9-19.3-1.9c-1.8.9-3.4 2.2-4.7 3.8s-2.2 3.4-2.7 5.4l.5 3.2s1-4.3 3.2-5.8l-3-2.9c-1.1 3-1.5 6.2-1.2 9.3 0 0 1.7 16-.8 15.1-2.5-.9-5-8.1-1.9-15 0 0 3.5 9.8 1.6 11.1-1.9 1.2-1.3-10.8-.1-12.1 1.2-1.3 8.1 30-5.1 54 0 0-29.3 16.4-27.2 16.4 2.1 0-66.5 11.2-59.5 58.6 0 0 12.6-22.9 40.9-28.5 0 0-15.2-.7-32.9 11.7 0 0 4.5-23.9 54.8-41.1l24.5-15.8s8.7-17.6 8-27.2c0 0 6.2 15.8 27.6 14.3s12.6-31.3 12.6-31.3-12-8.3-24.6.9c0 0-6.6 24.2 11.3 24.5 17.8.3 12.8-22.4 11.9-24-.9-1.7-16-4.7-20.2.1 0 0-3.5 15.1 3.6 13.3 0 0 4.4.8 4.3-7l4.5-.2s-1.8 6.6 3.1 7.6c4.8 1-2.1 16.3.8 16 3-.3 22.6.5 22.6-25.5",
|
|
90
91
|
style: {
|
|
91
|
-
fill:
|
|
92
|
-
stroke:
|
|
92
|
+
fill: 'none',
|
|
93
|
+
stroke: 'var(--zd_emptysvg_primary_stroke)',
|
|
93
94
|
strokeWidth: 1.5,
|
|
94
|
-
strokeLinecap:
|
|
95
|
-
strokeLinejoin:
|
|
95
|
+
strokeLinecap: 'round',
|
|
96
|
+
strokeLinejoin: 'round'
|
|
96
97
|
}
|
|
97
98
|
}), /*#__PURE__*/React.createElement("path", {
|
|
98
99
|
className: "bouncer_svg__st9",
|
|
@@ -101,21 +102,13 @@ export default class UnauthorizedLogin extends React.Component {
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
}
|
|
104
|
-
UnauthorizedLogin.propTypes =
|
|
105
|
-
|
|
106
|
-
className: PropTypes.string,
|
|
107
|
-
dataId: PropTypes.string,
|
|
108
|
-
isRender: PropTypes.bool
|
|
109
|
-
};
|
|
110
|
-
UnauthorizedLogin.defaultProps = {
|
|
111
|
-
alignHorizontal: true,
|
|
112
|
-
isRender: true,
|
|
113
|
-
className: '',
|
|
105
|
+
UnauthorizedLogin.propTypes = ErrorStateProps;
|
|
106
|
+
UnauthorizedLogin.defaultProps = { ...ErrorStateDefaultProps,
|
|
114
107
|
dataId: 'unauthorizedlogin'
|
|
115
108
|
};
|
|
116
109
|
|
|
117
110
|
if (false) {
|
|
118
111
|
UnauthorizedLogin.docs = {
|
|
119
|
-
componentGroup: '
|
|
112
|
+
componentGroup: 'Emptystate'
|
|
120
113
|
};
|
|
121
114
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
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); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { ErrorStateProps } from './../props/propTypes';
|
|
5
|
+
import { ErrorStateDefaultProps } from './../props/defaultProps';
|
|
6
|
+
import SVG from './../../SVG/SVG';
|
|
6
7
|
export default class UrlNotFound extends React.Component {
|
|
7
8
|
render() {
|
|
8
9
|
return /*#__PURE__*/React.createElement(SVG, _extends({
|
|
9
10
|
viewBox: "0 0 500 500",
|
|
10
11
|
name: "UrlNotFound"
|
|
11
|
-
}, this.props), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("style", null,
|
|
12
|
+
}, this.props), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("style", null, '.ErrorUrlNotFound_svg__cls-1{fill:var(--zd_emptysvg_primary_fill);opacity:.05}.ErrorUrlNotFound_svg__cls-10,.ErrorUrlNotFound_svg__cls-8{fill:none;stroke-linecap:round;stroke-linejoin:round}.ErrorUrlNotFound_svg__cls-10{stroke:var(--zd_emptysvg_cross)}.ErrorUrlNotFound_svg__cls-8{stroke:var(--zd_emptysvg_cross)}')), /*#__PURE__*/React.createElement("path", {
|
|
12
13
|
className: "ErrorUrlNotFound_svg__cls-1",
|
|
13
14
|
d: "M148.89 174.69s33.77-54.78 54.77-11 32.87 82.17 94 33.78 86.77-55.65 109.59-25.47 44.28 286.67-178.94 233.72c0-.05-176.65-66.72-79.42-231.03z"
|
|
14
15
|
}), /*#__PURE__*/React.createElement("circle", {
|
|
@@ -94,21 +95,13 @@ export default class UrlNotFound extends React.Component {
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
}
|
|
97
|
-
UrlNotFound.propTypes =
|
|
98
|
-
|
|
99
|
-
className: PropTypes.string,
|
|
100
|
-
dataId: PropTypes.string,
|
|
101
|
-
isRender: PropTypes.bool
|
|
102
|
-
};
|
|
103
|
-
UrlNotFound.defaultProps = {
|
|
104
|
-
alignHorizontal: true,
|
|
105
|
-
isRender: true,
|
|
106
|
-
className: '',
|
|
98
|
+
UrlNotFound.propTypes = ErrorStateProps;
|
|
99
|
+
UrlNotFound.defaultProps = { ...ErrorStateDefaultProps,
|
|
107
100
|
dataId: 'urlnotfound'
|
|
108
101
|
};
|
|
109
102
|
|
|
110
103
|
if (false) {
|
|
111
104
|
UrlNotFound.docs = {
|
|
112
|
-
componentGroup: '
|
|
105
|
+
componentGroup: 'Emptystate'
|
|
113
106
|
};
|
|
114
107
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
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); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { ErrorStateProps } from './../props/propTypes';
|
|
5
|
+
import { ErrorStateDefaultProps } from './../props/defaultProps';
|
|
6
|
+
import SVG from './../../SVG/SVG';
|
|
6
7
|
export default class WillBeRightBack extends React.Component {
|
|
7
8
|
render() {
|
|
8
9
|
return /*#__PURE__*/React.createElement(SVG, _extends({
|
|
9
10
|
viewBox: "0 0 695.38 500",
|
|
10
11
|
name: "WillBeRightBack"
|
|
11
|
-
}, this.props), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("style", null,
|
|
12
|
+
}, this.props), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("style", null, '.ErrorWillBeRightBack_svg__cls-1,.ErrorWillBeRightBack_svg__cls-2{fill:var(--zd_emptysvg_primary_fill)}.ErrorWillBeRightBack_svg__cls-1{opacity:.05}.ErrorWillBeRightBack_svg__cls-2{opacity:.2}.ErrorWillBeRightBack_svg__cls-10,.ErrorWillBeRightBack_svg__cls-8{fill:none;stroke-linecap:round;stroke-linejoin:round}.ErrorWillBeRightBack_svg__cls-10{stroke:var(--zd_emptysvg_cross)}.ErrorWillBeRightBack_svg__cls-8{stroke:var(--zd_emptysvg_plus)}')), /*#__PURE__*/React.createElement("path", {
|
|
12
13
|
className: "ErrorWillBeRightBack_svg__cls-1",
|
|
13
14
|
d: "M138.24 163.53S172 108.75 193 152.58s32.87 82.16 94 33.77 86.73-55.69 109.55-25.56 44.28 286.67-178.94 233.72c.05 0-176.61-66.65-79.37-230.98z"
|
|
14
15
|
}), /*#__PURE__*/React.createElement("circle", {
|
|
@@ -93,21 +94,13 @@ export default class WillBeRightBack extends React.Component {
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
}
|
|
96
|
-
WillBeRightBack.propTypes =
|
|
97
|
-
|
|
98
|
-
className: PropTypes.string,
|
|
99
|
-
dataId: PropTypes.string,
|
|
100
|
-
isRender: PropTypes.bool
|
|
101
|
-
};
|
|
102
|
-
WillBeRightBack.defaultProps = {
|
|
103
|
-
alignHorizontal: true,
|
|
104
|
-
isRender: true,
|
|
105
|
-
className: '',
|
|
97
|
+
WillBeRightBack.propTypes = ErrorStateProps;
|
|
98
|
+
WillBeRightBack.defaultProps = { ...ErrorStateDefaultProps,
|
|
106
99
|
dataId: 'willberightback'
|
|
107
100
|
};
|
|
108
101
|
|
|
109
102
|
if (false) {
|
|
110
103
|
WillBeRightBack.docs = {
|
|
111
|
-
componentGroup: '
|
|
104
|
+
componentGroup: 'Emptystate'
|
|
112
105
|
};
|
|
113
106
|
}
|
package/es/index.js
CHANGED
|
@@ -3,7 +3,10 @@ export { default as ReactDOM } from 'react-dom';
|
|
|
3
3
|
export { renderToStaticMarkup } from 'react-dom/server';
|
|
4
4
|
import '@zohodesk/variables/assets/sizeVariables.module.css';
|
|
5
5
|
export { default as _provider } from './Provider';
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
6
|
+
export { default as Emptystate__version1 } from './docs/Emptystate__version1.docs';
|
|
7
|
+
export { default as Emptystate__version2 } from './docs/Emptystate__version2.docs';
|
|
8
|
+
export { default as Emptystate__version3 } from './docs/Emptystate__version3.docs';
|
|
9
|
+
export { default as Errorstate__version1 } from './docs/Errorstate__version1.docs';
|
|
10
|
+
export { default as Errorstate__version2 } from './docs/Errorstate__version2.docs';
|
|
11
|
+
export { default as Errorstate__version3 } from './docs/Errorstate__version3.docs';
|
|
12
|
+
export { default as Svg__common } from './docs/SVG__common.docs';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,11 +9,13 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _defaultProps = require("./props/defaultProps");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _SVG = _interopRequireDefault(require("./../SVG/SVG"));
|
|
17
|
+
|
|
18
|
+
var _SVGModule = _interopRequireDefault(require("./../SVG/SVG.module.css"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
@@ -25,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
27
|
|
|
26
28
|
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
29
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
31
|
|
|
30
32
|
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
33
|
|
|
@@ -35,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
37
|
|
|
36
38
|
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
39
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
41
|
|
|
40
42
|
var Loader = /*#__PURE__*/function (_React$PureComponent) {
|
|
41
43
|
_inherits(Loader, _React$PureComponent);
|
|
@@ -49,15 +51,15 @@ var Loader = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
49
51
|
|
|
50
52
|
_this = _super.call(this, props);
|
|
51
53
|
_this.viewBoxStyle = {
|
|
52
|
-
animation:
|
|
54
|
+
animation: 'loaderone 2s linear infinite'
|
|
53
55
|
};
|
|
54
56
|
_this.defsStyle = {
|
|
55
|
-
animation:
|
|
56
|
-
transformOrigin:
|
|
57
|
+
animation: 'circleAnimation_1 1.5s linear infinite',
|
|
58
|
+
transformOrigin: 'center'
|
|
57
59
|
};
|
|
58
60
|
_this.circleStyle = {
|
|
59
|
-
animation:
|
|
60
|
-
transformOrigin:
|
|
61
|
+
animation: 'circleAnimation_2 1.2s linear infinite',
|
|
62
|
+
transformOrigin: 'center'
|
|
61
63
|
};
|
|
62
64
|
return _this;
|
|
63
65
|
}
|
|
@@ -74,7 +76,7 @@ var Loader = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
74
76
|
className: "".concat(_SVGModule["default"].loaderWrapper),
|
|
75
77
|
dataId: dataId,
|
|
76
78
|
styleName: this.viewBoxStyle
|
|
77
|
-
}, /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("style", null,
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("style", null, '@keyframes circleAnimation_1{to{stroke-dashoffset:-82}}@keyframes circleAnimation_2{to{stroke-dashoffset:-50}}@keyframes loaderone{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}')), /*#__PURE__*/_react["default"].createElement("title", null, 'loader'), /*#__PURE__*/_react["default"].createElement("circle", {
|
|
78
80
|
fill: "none",
|
|
79
81
|
stroke: "#089949",
|
|
80
82
|
strokeWidth: 2,
|
|
@@ -105,12 +107,8 @@ var Loader = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
105
107
|
}(_react["default"].PureComponent);
|
|
106
108
|
|
|
107
109
|
exports["default"] = Loader;
|
|
108
|
-
Loader.propTypes =
|
|
109
|
-
|
|
110
|
-
};
|
|
111
|
-
Loader.defaultProps = {
|
|
112
|
-
dataId: 'loader'
|
|
113
|
-
};
|
|
110
|
+
Loader.propTypes = _propTypes.LoaderProps;
|
|
111
|
+
Loader.defaultProps = _defaultProps.LoaderDefaultProps;
|
|
114
112
|
|
|
115
113
|
if (false) {
|
|
116
114
|
Loader.docs = {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.LoaderProps = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var LoaderProps = {
|
|
13
|
+
dataId: _propTypes["default"].string
|
|
14
|
+
};
|
|
15
|
+
exports.LoaderProps = LoaderProps;
|
package/lib/Provider.js
CHANGED
|
@@ -13,7 +13,7 @@ var _AppContainer = _interopRequireDefault(require("@zohodesk/components/lib/App
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ThemeTool = _interopRequireDefault(require("../../common/lib/ThemeTool/ThemeTool"));
|
|
17
17
|
|
|
18
18
|
require("@zohodesk/components/assets/Appearance/default/mode/defaultMode.module.css");
|
|
19
19
|
|
|
@@ -43,6 +43,18 @@ require("../assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css")
|
|
|
43
43
|
|
|
44
44
|
require("../assets/Appearance/dark/mode/darkEmptyStates.module.css");
|
|
45
45
|
|
|
46
|
+
require("../assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css");
|
|
47
|
+
|
|
48
|
+
require("../assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css");
|
|
49
|
+
|
|
50
|
+
require("../assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css");
|
|
51
|
+
|
|
52
|
+
require("../assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css");
|
|
53
|
+
|
|
54
|
+
require("../assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css");
|
|
55
|
+
|
|
56
|
+
require("../assets/Appearance/pureDark/mode/pureDarkEmptyStates.module.css");
|
|
57
|
+
|
|
46
58
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
47
59
|
|
|
48
60
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -53,7 +65,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
53
65
|
|
|
54
66
|
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); }
|
|
55
67
|
|
|
56
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
68
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
57
69
|
|
|
58
70
|
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); }; }
|
|
59
71
|
|
|
@@ -63,7 +75,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
63
75
|
|
|
64
76
|
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; } }
|
|
65
77
|
|
|
66
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
78
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
67
79
|
|
|
68
80
|
var Provider = /*#__PURE__*/function (_React$Component) {
|
|
69
81
|
_inherits(Provider, _React$Component);
|
|
@@ -80,25 +92,17 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
80
92
|
appearanceName: 'default',
|
|
81
93
|
themeName: 'blue'
|
|
82
94
|
};
|
|
83
|
-
_this.switchMode = _this.switchMode.bind(_assertThisInitialized(_this));
|
|
84
95
|
_this.setTheme = _this.setTheme.bind(_assertThisInitialized(_this));
|
|
96
|
+
_this.setAppearance = _this.setAppearance.bind(_assertThisInitialized(_this));
|
|
85
97
|
return _this;
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
_createClass(Provider, [{
|
|
89
|
-
key: "
|
|
90
|
-
value: function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this.setState({
|
|
95
|
-
appearanceName: 'dark'
|
|
96
|
-
});
|
|
97
|
-
} else {
|
|
98
|
-
this.setState({
|
|
99
|
-
appearanceName: 'default'
|
|
100
|
-
});
|
|
101
|
-
}
|
|
101
|
+
key: "setAppearance",
|
|
102
|
+
value: function setAppearance(mode) {
|
|
103
|
+
this.setState({
|
|
104
|
+
appearanceName: mode
|
|
105
|
+
});
|
|
102
106
|
}
|
|
103
107
|
}, {
|
|
104
108
|
key: "setTheme",
|
|
@@ -110,33 +114,9 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
110
114
|
}, {
|
|
111
115
|
key: "render",
|
|
112
116
|
value: function render() {
|
|
113
|
-
var _this2 = this;
|
|
114
|
-
|
|
115
117
|
var _this$state = this.state,
|
|
116
118
|
appearanceName = _this$state.appearanceName,
|
|
117
119
|
themeName = _this$state.themeName;
|
|
118
|
-
var themeClass = {
|
|
119
|
-
width: '20px',
|
|
120
|
-
height: '20px',
|
|
121
|
-
borderRadius: '3px',
|
|
122
|
-
display: 'flex',
|
|
123
|
-
border: '1px solid #ccc',
|
|
124
|
-
margin: '0 5px',
|
|
125
|
-
cursor: 'pointer',
|
|
126
|
-
backgroundColor: '#0a73eb'
|
|
127
|
-
};
|
|
128
|
-
var green = {
|
|
129
|
-
backgroundColor: '#26a942'
|
|
130
|
-
};
|
|
131
|
-
var red = {
|
|
132
|
-
backgroundColor: '#de3535'
|
|
133
|
-
};
|
|
134
|
-
var orange = {
|
|
135
|
-
backgroundColor: '#e57717'
|
|
136
|
-
};
|
|
137
|
-
var yellow = {
|
|
138
|
-
backgroundColor: '#e8b923'
|
|
139
|
-
};
|
|
140
120
|
return /*#__PURE__*/_react["default"].createElement(_AppContainer["default"], {
|
|
141
121
|
customProps: {
|
|
142
122
|
ExtraProps: {
|
|
@@ -146,64 +126,10 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
146
126
|
}
|
|
147
127
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
148
128
|
scroll: "vertical"
|
|
149
|
-
}, this.props.children), /*#__PURE__*/_react["default"].createElement("
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
backgroundColor: '#272727',
|
|
154
|
-
padding: '10px',
|
|
155
|
-
borderRadius: '15px 15px 0 0',
|
|
156
|
-
minWidth: '100px',
|
|
157
|
-
textAlign: 'center',
|
|
158
|
-
left: '50%',
|
|
159
|
-
transform: 'translate(-50%)',
|
|
160
|
-
boxShadow: '0 0 3px #000',
|
|
161
|
-
fontSize: '12px',
|
|
162
|
-
zIndex: '3',
|
|
163
|
-
display: 'flex',
|
|
164
|
-
alignItems: 'center'
|
|
165
|
-
}
|
|
166
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
|
|
167
|
-
id: "switchMode",
|
|
168
|
-
text: "Light/Night Mode",
|
|
169
|
-
labelSize: "small",
|
|
170
|
-
onChange: this.switchMode,
|
|
171
|
-
checked: appearanceName == 'dark'
|
|
172
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
|
-
style: {
|
|
174
|
-
display: 'flex'
|
|
175
|
-
}
|
|
176
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
177
|
-
title: "Blue Theme",
|
|
178
|
-
style: themeClass,
|
|
179
|
-
onClick: function onClick() {
|
|
180
|
-
return _this2.setTheme('blue');
|
|
181
|
-
}
|
|
182
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
183
|
-
title: "Green Theme",
|
|
184
|
-
style: Object.assign({}, themeClass, green),
|
|
185
|
-
onClick: function onClick() {
|
|
186
|
-
return _this2.setTheme('green');
|
|
187
|
-
}
|
|
188
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
189
|
-
title: "Red Theme",
|
|
190
|
-
style: Object.assign({}, themeClass, red),
|
|
191
|
-
onClick: function onClick() {
|
|
192
|
-
return _this2.setTheme('red');
|
|
193
|
-
}
|
|
194
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
|
-
title: "Orange Theme",
|
|
196
|
-
style: Object.assign({}, themeClass, orange),
|
|
197
|
-
onClick: function onClick() {
|
|
198
|
-
return _this2.setTheme('orange');
|
|
199
|
-
}
|
|
200
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
201
|
-
title: "Yellow Theme",
|
|
202
|
-
style: Object.assign({}, themeClass, yellow),
|
|
203
|
-
onClick: function onClick() {
|
|
204
|
-
return _this2.setTheme('yellow');
|
|
205
|
-
}
|
|
206
|
-
}))));
|
|
129
|
+
}, this.props.children), /*#__PURE__*/_react["default"].createElement(_ThemeTool["default"], {
|
|
130
|
+
onThemeChange: this.setTheme,
|
|
131
|
+
onAppearanceChange: this.setAppearance
|
|
132
|
+
}));
|
|
207
133
|
}
|
|
208
134
|
}]);
|
|
209
135
|
|
package/lib/{svg → SVG}/SVG.js
RENAMED
|
@@ -9,11 +9,13 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var _propTypes =
|
|
12
|
+
var _propTypes = require("./props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _defaultProps = require("./props/defaultProps");
|
|
13
15
|
|
|
14
16
|
var _SVGModule = _interopRequireDefault(require("./SVG.module.css"));
|
|
15
17
|
|
|
16
|
-
var _EmptyStateVariablesModule = _interopRequireDefault(require("
|
|
18
|
+
var _EmptyStateVariablesModule = _interopRequireDefault(require("./../css/EmptyStateVariables.module.css"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
@@ -25,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
27
|
|
|
26
28
|
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
29
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
31
|
|
|
30
32
|
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
33
|
|
|
@@ -35,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
37
|
|
|
36
38
|
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
39
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
41
|
|
|
40
42
|
var SVG = /*#__PURE__*/function (_React$Component) {
|
|
41
43
|
_inherits(SVG, _React$Component);
|
|
@@ -95,31 +97,8 @@ var SVG = /*#__PURE__*/function (_React$Component) {
|
|
|
95
97
|
}(_react["default"].Component);
|
|
96
98
|
|
|
97
99
|
exports["default"] = SVG;
|
|
98
|
-
SVG.propTypes =
|
|
99
|
-
|
|
100
|
-
children: _propTypes["default"].node,
|
|
101
|
-
className: _propTypes["default"].string,
|
|
102
|
-
dataId: _propTypes["default"].string,
|
|
103
|
-
isFluid: _propTypes["default"].bool,
|
|
104
|
-
isRender: _propTypes["default"].bool,
|
|
105
|
-
isSymbol: _propTypes["default"].bool,
|
|
106
|
-
name: _propTypes["default"].string,
|
|
107
|
-
size: _propTypes["default"].oneOf(['small', 'large']),
|
|
108
|
-
viewBox: _propTypes["default"].string,
|
|
109
|
-
palette: _propTypes["default"].oneOf(['default', 'dark']),
|
|
110
|
-
styleName: _propTypes["default"].node
|
|
111
|
-
};
|
|
112
|
-
SVG.defaultProps = {
|
|
113
|
-
alignHorizontal: true,
|
|
114
|
-
isRender: true,
|
|
115
|
-
className: '',
|
|
116
|
-
dataId: 'SVG',
|
|
117
|
-
name: '',
|
|
118
|
-
viewBox: '',
|
|
119
|
-
isSymbol: false,
|
|
120
|
-
isFluid: false,
|
|
121
|
-
palette: 'default'
|
|
122
|
-
};
|
|
100
|
+
SVG.propTypes = _propTypes.SvgProps;
|
|
101
|
+
SVG.defaultProps = _defaultProps.SvgDefaultProps;
|
|
123
102
|
|
|
124
103
|
if (false) {
|
|
125
104
|
SVG.docs = {
|
|
File without changes
|