@zohodesk/svg 1.0.0-temp-7 → 1.0.0-temp-8
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/es/Provider.js +34 -67
- package/es/svg/Appearance/dark/themes/green/greenDarkCTATheme.module.css +2 -2
- package/es/svg/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +2 -2
- package/es/svg/Appearance/dark/themes/red/redDarkCTATheme.module.css +2 -2
- package/es/svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +2 -2
- package/es/svg/docs/SVGdocstyle.module.css +2 -6
- package/lib/Provider.js +37 -79
- package/lib/svg/Appearance/dark/themes/green/greenDarkCTATheme.module.css +2 -2
- package/lib/svg/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +2 -2
- package/lib/svg/Appearance/dark/themes/red/redDarkCTATheme.module.css +2 -2
- package/lib/svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +2 -2
- package/lib/svg/EmptyAccounts.js +1 -1
- package/lib/svg/EmptyActiveCalls.js +1 -1
- package/lib/svg/EmptyActivity.js +1 -1
- package/lib/svg/EmptyAgent.js +1 -1
- package/lib/svg/EmptyAgentQueue.js +1 -1
- package/lib/svg/EmptyApproval.js +1 -1
- package/lib/svg/EmptyArchived.js +1 -1
- package/lib/svg/EmptyAttach.js +1 -1
- package/lib/svg/EmptyBlueprint.js +1 -1
- package/lib/svg/EmptyBusinessHoliday.js +1 -1
- package/lib/svg/EmptyBusinessHour.js +1 -1
- package/lib/svg/EmptyCallHistory.js +1 -1
- package/lib/svg/EmptyCollision.js +1 -1
- package/lib/svg/EmptyColumn.js +1 -1
- package/lib/svg/EmptyContact.js +1 -1
- package/lib/svg/EmptyContract.js +1 -1
- package/lib/svg/EmptyConversation.js +1 -1
- package/lib/svg/EmptyCrm.js +1 -1
- package/lib/svg/EmptyCrmNotes.js +1 -1
- package/lib/svg/EmptyCrmPotential.js +1 -1
- package/lib/svg/EmptyCustomDomain.js +1 -1
- package/lib/svg/EmptyDashboard.js +1 -1
- package/lib/svg/EmptyDepartment.js +1 -1
- package/lib/svg/EmptyFeed.js +1 -1
- package/lib/svg/EmptyFollowers.js +1 -1
- package/lib/svg/EmptyFrame.js +1 -1
- package/lib/svg/EmptyFromAddress.js +1 -1
- package/lib/svg/EmptyHappiness.js +1 -1
- package/lib/svg/EmptyHistory.js +1 -1
- package/lib/svg/EmptyImportHistory.js +1 -1
- package/lib/svg/EmptyInconvenience.js +1 -1
- package/lib/svg/EmptyInvoice.js +1 -1
- package/lib/svg/EmptyNetwork.js +1 -1
- package/lib/svg/EmptyNotification.js +1 -1
- package/lib/svg/EmptyProducts.js +1 -1
- package/lib/svg/EmptyRecycleBin.js +1 -1
- package/lib/svg/EmptyReply.js +1 -1
- package/lib/svg/EmptyReports.js +1 -1
- package/lib/svg/EmptyRoles.js +1 -1
- package/lib/svg/EmptySchedule.js +1 -1
- package/lib/svg/EmptySearch.js +1 -1
- package/lib/svg/EmptySkills.js +1 -1
- package/lib/svg/EmptySla.js +1 -1
- package/lib/svg/EmptySnippet.js +1 -1
- package/lib/svg/EmptyTag.js +1 -1
- package/lib/svg/EmptyTask.js +1 -1
- package/lib/svg/EmptyTeams.js +1 -1
- package/lib/svg/EmptyTemplate.js +1 -1
- package/lib/svg/EmptyTicket.js +1 -1
- package/lib/svg/EmptyTimeEntry.js +1 -1
- package/lib/svg/EmptyTimeline.js +1 -1
- package/lib/svg/EmptyTopic.js +1 -1
- package/lib/svg/EmptyUnauthorizedLogin.js +1 -1
- package/lib/svg/EmptyWebhook.js +1 -1
- package/lib/svg/EmptyWillBeRightBack.js +1 -1
- package/lib/svg/ErrorInconvenience.js +1 -1
- package/lib/svg/ErrorOopsSomethingMiss.js +1 -1
- package/lib/svg/ErrorUnableToProcessRequest.js +1 -1
- package/lib/svg/ErrorUnauthorizedLogin.js +1 -1
- package/lib/svg/ErrorUrlNotFound.js +1 -1
- package/lib/svg/ErrorWillBeRightBack.js +1 -1
- package/lib/svg/Extractor.js +1 -1
- package/lib/svg/FailureLog.js +1 -1
- package/lib/svg/Import.js +1 -1
- package/lib/svg/Loader.js +1 -1
- package/lib/svg/NoRequestFound.js +1 -1
- package/lib/svg/NotImpossible.js +1 -1
- package/lib/svg/PageNotFound.js +1 -1
- package/lib/svg/Predictor.js +1 -1
- package/lib/svg/SVG.js +1 -1
- package/lib/svg/SvgLoader.js +1 -1
- package/lib/svg/UnableToProcessRequest.js +1 -1
- package/lib/svg/UnauthorizedLogin.js +1 -1
- package/lib/svg/UrlNotFound.js +1 -1
- package/lib/svg/WillBeRightBack.js +1 -1
- package/lib/svg/ZiaAnamoly.js +1 -1
- package/lib/svg/deprecated/21_07_2021/EmptyPageNotFound.js +1 -1
- package/lib/svg/deprecated/21_07_2021/EmptyUnableToProcess.js +1 -1
- package/lib/svg/deprecated/21_07_2021/EmptyUrlNotFound.js +1 -1
- package/lib/svg/deprecated/21_07_2021/InvalidUrl.js +1 -1
- package/lib/svg/docs/SVG__common.docs.js +1 -1
- package/lib/svg/docs/SVG__default.docs.js +1 -1
- package/lib/svg/docs/SVG__errorstate.docs.js +1 -1
- package/lib/svg/docs/SVGdocstyle.module.css +2 -6
- package/package.json +1 -1
- package/src/Provider.js +38 -68
- package/src/svg/Appearance/dark/themes/green/greenDarkCTATheme.module.css +2 -2
- package/src/svg/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +2 -2
- package/src/svg/Appearance/dark/themes/red/redDarkCTATheme.module.css +2 -2
- package/src/svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +2 -2
- package/src/svg/docs/SVGdocstyle.module.css +2 -6
- package/es/svg/Appearance/pureDark/mode/pureDarkEmptyStates.module.css +0 -37
- package/es/svg/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +0 -10
- package/es/svg/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +0 -10
- package/es/svg/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +0 -10
- package/es/svg/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +0 -10
- package/es/svg/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +0 -10
- package/lib/svg/Appearance/pureDark/mode/pureDarkEmptyStates.module.css +0 -37
- package/lib/svg/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +0 -10
- package/lib/svg/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +0 -10
- package/lib/svg/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +0 -10
- package/lib/svg/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +0 -10
- package/lib/svg/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +0 -10
- package/src/svg/Appearance/pureDark/mode/pureDarkEmptyStates.module.css +0 -37
- package/src/svg/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +0 -10
- package/src/svg/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +0 -10
- package/src/svg/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +0 -10
- package/src/svg/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +0 -10
- package/src/svg/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +0 -10
package/es/Provider.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AppContainer from '@zohodesk/components/lib/AppContainer/AppContainer';
|
|
3
3
|
import { Container } from '@zohodesk/components/lib/Layout';
|
|
4
|
+
import Switch from '@zohodesk/components/lib/Switch/Switch';
|
|
4
5
|
import '@zohodesk/components/lib/Appearance/default/mode/defaultMode.module.css';
|
|
5
6
|
import '@zohodesk/components/lib/Appearance/dark/mode/darkMode.module.css';
|
|
6
7
|
/* default mode & themes */
|
|
@@ -19,14 +20,6 @@ import './svg/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css';
|
|
|
19
20
|
import './svg/Appearance/dark/themes/red/redDarkCTATheme.module.css';
|
|
20
21
|
import './svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css';
|
|
21
22
|
import './svg/Appearance/dark/mode/darkEmptyStates.module.css';
|
|
22
|
-
/* pure dark mode & themes */
|
|
23
|
-
|
|
24
|
-
import './svg/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css';
|
|
25
|
-
import './svg/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css';
|
|
26
|
-
import './svg/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css';
|
|
27
|
-
import './svg/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css';
|
|
28
|
-
import './svg/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css';
|
|
29
|
-
import './svg/Appearance/pureDark/mode/pureDarkEmptyStates.module.css';
|
|
30
23
|
export default class Provider extends React.Component {
|
|
31
24
|
constructor(props) {
|
|
32
25
|
super(props);
|
|
@@ -34,13 +27,22 @@ export default class Provider extends React.Component {
|
|
|
34
27
|
appearanceName: 'default',
|
|
35
28
|
themeName: 'blue'
|
|
36
29
|
};
|
|
30
|
+
this.switchMode = this.switchMode.bind(this);
|
|
37
31
|
this.setTheme = this.setTheme.bind(this);
|
|
38
32
|
}
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
switchMode() {
|
|
35
|
+
let appearanceName = this.state.appearanceName;
|
|
36
|
+
|
|
37
|
+
if (appearanceName == 'default') {
|
|
38
|
+
this.setState({
|
|
39
|
+
appearanceName: 'dark'
|
|
40
|
+
});
|
|
41
|
+
} else {
|
|
42
|
+
this.setState({
|
|
43
|
+
appearanceName: 'default'
|
|
44
|
+
});
|
|
45
|
+
}
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
setTheme(theme) {
|
|
@@ -76,29 +78,6 @@ export default class Provider extends React.Component {
|
|
|
76
78
|
let yellow = {
|
|
77
79
|
backgroundColor: '#e8b923'
|
|
78
80
|
};
|
|
79
|
-
let light = {
|
|
80
|
-
backgroundColor: '#fff'
|
|
81
|
-
};
|
|
82
|
-
let night = {
|
|
83
|
-
backgroundColor: '#232b38'
|
|
84
|
-
};
|
|
85
|
-
let dark = {
|
|
86
|
-
backgroundColor: '#212121'
|
|
87
|
-
};
|
|
88
|
-
let fixedPosition = {
|
|
89
|
-
position: 'fixed',
|
|
90
|
-
bottom: '0',
|
|
91
|
-
backgroundColor: '#272727',
|
|
92
|
-
padding: '10px',
|
|
93
|
-
borderRadius: '15px 15px 0 0',
|
|
94
|
-
minWidth: '100px',
|
|
95
|
-
textAlign: 'center',
|
|
96
|
-
boxShadow: '0 0 3px #000',
|
|
97
|
-
fontSize: '12px',
|
|
98
|
-
zIndex: '3',
|
|
99
|
-
display: 'flex',
|
|
100
|
-
alignItems: 'center'
|
|
101
|
-
};
|
|
102
81
|
return /*#__PURE__*/React.createElement(AppContainer, {
|
|
103
82
|
customProps: {
|
|
104
83
|
ExtraProps: {
|
|
@@ -109,41 +88,29 @@ export default class Provider extends React.Component {
|
|
|
109
88
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
110
89
|
scroll: "vertical"
|
|
111
90
|
}, this.props.children), /*#__PURE__*/React.createElement("div", {
|
|
112
|
-
style: Object.assign({}, fixedPosition, {
|
|
113
|
-
left: '20%',
|
|
114
|
-
transform: 'translate(-20%)'
|
|
115
|
-
})
|
|
116
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
117
|
-
style: {
|
|
118
|
-
color: '#fff'
|
|
119
|
-
}
|
|
120
|
-
}, "Appearance:"), /*#__PURE__*/React.createElement("div", {
|
|
121
|
-
style: {
|
|
122
|
-
display: 'flex'
|
|
123
|
-
}
|
|
124
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
125
|
-
title: "Light Mode",
|
|
126
|
-
style: Object.assign({}, themeClass, light),
|
|
127
|
-
onClick: () => this.setAppearance('default')
|
|
128
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
129
|
-
title: "Night Mode",
|
|
130
|
-
style: Object.assign({}, themeClass, night),
|
|
131
|
-
onClick: () => this.setAppearance('dark')
|
|
132
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
133
|
-
title: "Dark Mode",
|
|
134
|
-
style: Object.assign({}, themeClass, dark),
|
|
135
|
-
onClick: () => this.setAppearance('pureDark')
|
|
136
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
137
|
-
style: Object.assign({}, fixedPosition, {
|
|
138
|
-
left: '80%',
|
|
139
|
-
transform: 'translate(-80%)'
|
|
140
|
-
})
|
|
141
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
142
91
|
style: {
|
|
92
|
+
position: 'fixed',
|
|
93
|
+
bottom: '0',
|
|
94
|
+
backgroundColor: '#272727',
|
|
95
|
+
padding: '10px',
|
|
96
|
+
borderRadius: '15px 15px 0 0',
|
|
97
|
+
minWidth: '100px',
|
|
98
|
+
textAlign: 'center',
|
|
99
|
+
left: '50%',
|
|
100
|
+
transform: 'translate(-50%)',
|
|
101
|
+
boxShadow: '0 0 3px #000',
|
|
102
|
+
fontSize: '12px',
|
|
103
|
+
zIndex: '3',
|
|
143
104
|
display: 'flex',
|
|
144
|
-
|
|
105
|
+
alignItems: 'center'
|
|
145
106
|
}
|
|
146
|
-
}, "
|
|
107
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Switch, {
|
|
108
|
+
id: "switchMode",
|
|
109
|
+
text: "Light/Night Mode",
|
|
110
|
+
labelSize: "small",
|
|
111
|
+
onChange: this.switchMode,
|
|
112
|
+
checked: appearanceName == 'dark'
|
|
113
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
147
114
|
style: {
|
|
148
115
|
display: 'flex'
|
|
149
116
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='green'] {
|
|
2
2
|
--zdt_cta_primary_fill: #45a159;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #45a159;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(69, 161, 89, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #45a159;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #45a159;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #45a159;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(69, 161, 89, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #45a159;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='orange'] {
|
|
2
2
|
--zdt_cta_primary_fill: #ff801f;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #ff801f;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(255, 128, 31, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #ff801f;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #ff801f;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #ff801f;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(255, 128, 31, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #ff801f;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='red'] {
|
|
2
2
|
--zdt_cta_primary_fill: #e94f4f;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #e94f4f;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(233, 79, 79, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #e94f4f;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #e94f4f;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e94f4f;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(233, 79, 79, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #e94f4f;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='yellow'] {
|
|
2
2
|
--zdt_cta_primary_fill: #d79835;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #d79835;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(215, 152, 53, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #d79835;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #d79835;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #d79835;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(215, 152, 53, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #d79835;
|
|
10
10
|
}
|
package/lib/Provider.js
CHANGED
|
@@ -13,6 +13,8 @@ var _AppContainer = _interopRequireDefault(require("@zohodesk/components/lib/App
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
15
15
|
|
|
16
|
+
var _Switch = _interopRequireDefault(require("@zohodesk/components/lib/Switch/Switch"));
|
|
17
|
+
|
|
16
18
|
require("@zohodesk/components/lib/Appearance/default/mode/defaultMode.module.css");
|
|
17
19
|
|
|
18
20
|
require("@zohodesk/components/lib/Appearance/dark/mode/darkMode.module.css");
|
|
@@ -41,18 +43,6 @@ require("./svg/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css");
|
|
|
41
43
|
|
|
42
44
|
require("./svg/Appearance/dark/mode/darkEmptyStates.module.css");
|
|
43
45
|
|
|
44
|
-
require("./svg/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css");
|
|
45
|
-
|
|
46
|
-
require("./svg/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css");
|
|
47
|
-
|
|
48
|
-
require("./svg/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css");
|
|
49
|
-
|
|
50
|
-
require("./svg/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css");
|
|
51
|
-
|
|
52
|
-
require("./svg/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css");
|
|
53
|
-
|
|
54
|
-
require("./svg/Appearance/pureDark/mode/pureDarkEmptyStates.module.css");
|
|
55
|
-
|
|
56
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
57
47
|
|
|
58
48
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -67,7 +57,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
67
57
|
|
|
68
58
|
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); }; }
|
|
69
59
|
|
|
70
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
60
|
+
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); }
|
|
71
61
|
|
|
72
62
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
73
63
|
|
|
@@ -90,16 +80,25 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
90
80
|
appearanceName: 'default',
|
|
91
81
|
themeName: 'blue'
|
|
92
82
|
};
|
|
83
|
+
_this.switchMode = _this.switchMode.bind(_assertThisInitialized(_this));
|
|
93
84
|
_this.setTheme = _this.setTheme.bind(_assertThisInitialized(_this));
|
|
94
85
|
return _this;
|
|
95
86
|
}
|
|
96
87
|
|
|
97
88
|
_createClass(Provider, [{
|
|
98
|
-
key: "
|
|
99
|
-
value: function
|
|
100
|
-
this.
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
key: "switchMode",
|
|
90
|
+
value: function switchMode() {
|
|
91
|
+
var appearanceName = this.state.appearanceName;
|
|
92
|
+
|
|
93
|
+
if (appearanceName == 'default') {
|
|
94
|
+
this.setState({
|
|
95
|
+
appearanceName: 'dark'
|
|
96
|
+
});
|
|
97
|
+
} else {
|
|
98
|
+
this.setState({
|
|
99
|
+
appearanceName: 'default'
|
|
100
|
+
});
|
|
101
|
+
}
|
|
103
102
|
}
|
|
104
103
|
}, {
|
|
105
104
|
key: "setTheme",
|
|
@@ -138,29 +137,6 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
138
137
|
var yellow = {
|
|
139
138
|
backgroundColor: '#e8b923'
|
|
140
139
|
};
|
|
141
|
-
var light = {
|
|
142
|
-
backgroundColor: '#fff'
|
|
143
|
-
};
|
|
144
|
-
var night = {
|
|
145
|
-
backgroundColor: '#232b38'
|
|
146
|
-
};
|
|
147
|
-
var dark = {
|
|
148
|
-
backgroundColor: '#212121'
|
|
149
|
-
};
|
|
150
|
-
var fixedPosition = {
|
|
151
|
-
position: 'fixed',
|
|
152
|
-
bottom: '0',
|
|
153
|
-
backgroundColor: '#272727',
|
|
154
|
-
padding: '10px',
|
|
155
|
-
borderRadius: '15px 15px 0 0',
|
|
156
|
-
minWidth: '100px',
|
|
157
|
-
textAlign: 'center',
|
|
158
|
-
boxShadow: '0 0 3px #000',
|
|
159
|
-
fontSize: '12px',
|
|
160
|
-
zIndex: '3',
|
|
161
|
-
display: 'flex',
|
|
162
|
-
alignItems: 'center'
|
|
163
|
-
};
|
|
164
140
|
return /*#__PURE__*/_react["default"].createElement(_AppContainer["default"], {
|
|
165
141
|
customProps: {
|
|
166
142
|
ExtraProps: {
|
|
@@ -171,47 +147,29 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
171
147
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
172
148
|
scroll: "vertical"
|
|
173
149
|
}, this.props.children), /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
|
-
style: Object.assign({}, fixedPosition, {
|
|
175
|
-
left: '20%',
|
|
176
|
-
transform: 'translate(-20%)'
|
|
177
|
-
})
|
|
178
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
179
|
-
style: {
|
|
180
|
-
color: '#fff'
|
|
181
|
-
}
|
|
182
|
-
}, "Appearance:"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
|
-
style: {
|
|
184
|
-
display: 'flex'
|
|
185
|
-
}
|
|
186
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
187
|
-
title: "Light Mode",
|
|
188
|
-
style: Object.assign({}, themeClass, light),
|
|
189
|
-
onClick: function onClick() {
|
|
190
|
-
return _this2.setAppearance('default');
|
|
191
|
-
}
|
|
192
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
193
|
-
title: "Night Mode",
|
|
194
|
-
style: Object.assign({}, themeClass, night),
|
|
195
|
-
onClick: function onClick() {
|
|
196
|
-
return _this2.setAppearance('dark');
|
|
197
|
-
}
|
|
198
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
199
|
-
title: "Dark Mode",
|
|
200
|
-
style: Object.assign({}, themeClass, dark),
|
|
201
|
-
onClick: function onClick() {
|
|
202
|
-
return _this2.setAppearance('pureDark');
|
|
203
|
-
}
|
|
204
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
-
style: Object.assign({}, fixedPosition, {
|
|
206
|
-
left: '80%',
|
|
207
|
-
transform: 'translate(-80%)'
|
|
208
|
-
})
|
|
209
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
150
|
style: {
|
|
151
|
+
position: 'fixed',
|
|
152
|
+
bottom: '0',
|
|
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',
|
|
211
163
|
display: 'flex',
|
|
212
|
-
|
|
164
|
+
alignItems: 'center'
|
|
213
165
|
}
|
|
214
|
-
}, "
|
|
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", {
|
|
215
173
|
style: {
|
|
216
174
|
display: 'flex'
|
|
217
175
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='green'] {
|
|
2
2
|
--zdt_cta_primary_fill: #45a159;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #45a159;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(69, 161, 89, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #45a159;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #45a159;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #45a159;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(69, 161, 89, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #45a159;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='orange'] {
|
|
2
2
|
--zdt_cta_primary_fill: #ff801f;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #ff801f;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(255, 128, 31, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #ff801f;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #ff801f;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #ff801f;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(255, 128, 31, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #ff801f;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='red'] {
|
|
2
2
|
--zdt_cta_primary_fill: #e94f4f;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #e94f4f;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(233, 79, 79, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #e94f4f;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #e94f4f;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e94f4f;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(233, 79, 79, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #e94f4f;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[data-mode='dark'][data-theme='yellow'] {
|
|
2
2
|
--zdt_cta_primary_fill: #d79835;
|
|
3
|
-
--zdt_cta_primary_stroke: #
|
|
3
|
+
--zdt_cta_primary_stroke: #d79835;
|
|
4
4
|
--zdt_cta_secondary_fill: rgba(215, 152, 53, 0.25);
|
|
5
5
|
--zdt_cta_secondary_plainfill: #d79835;
|
|
6
6
|
--zdt_cta_primary_dark_fill: #d79835;
|
|
7
|
-
--zdt_cta_primary_dark_stroke: #
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #d79835;
|
|
8
8
|
--zdt_cta_secondary_dark_fill: rgba(215, 152, 53, 0.25);
|
|
9
9
|
--zdt_cta_secondary_dark_plainfill: #d79835;
|
|
10
10
|
}
|
package/lib/svg/EmptyAccounts.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyActivity.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyAgent.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyApproval.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyArchived.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyAttach.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -31,7 +31,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
31
31
|
|
|
32
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); }; }
|
|
33
33
|
|
|
34
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
34
|
+
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); }
|
|
35
35
|
|
|
36
36
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
37
|
|
|
@@ -31,7 +31,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
31
31
|
|
|
32
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); }; }
|
|
33
33
|
|
|
34
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
34
|
+
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); }
|
|
35
35
|
|
|
36
36
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
37
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyColumn.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyContact.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyContract.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
package/lib/svg/EmptyCrm.js
CHANGED
|
@@ -29,7 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|