@zohodesk/svg 1.0.0-beta.47 → 1.0.0-beta.48
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 +4 -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 +6 -104
- 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 +9 -124
- 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 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,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 _ThemeTool = _interopRequireDefault(require("../../common/lib/ThemeTool/ThemeTool"));
|
|
17
|
+
|
|
16
18
|
require("@zohodesk/components/assets/Appearance/default/mode/defaultMode.module.css");
|
|
17
19
|
|
|
18
20
|
require("@zohodesk/components/assets/Appearance/dark/mode/darkMode.module.css");
|
|
@@ -63,7 +65,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
63
65
|
|
|
64
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); }
|
|
65
67
|
|
|
66
|
-
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); }
|
|
67
69
|
|
|
68
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); }; }
|
|
69
71
|
|
|
@@ -73,7 +75,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
73
75
|
|
|
74
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; } }
|
|
75
77
|
|
|
76
|
-
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); }
|
|
77
79
|
|
|
78
80
|
var Provider = /*#__PURE__*/function (_React$Component) {
|
|
79
81
|
_inherits(Provider, _React$Component);
|
|
@@ -91,6 +93,7 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
91
93
|
themeName: 'blue'
|
|
92
94
|
};
|
|
93
95
|
_this.setTheme = _this.setTheme.bind(_assertThisInitialized(_this));
|
|
96
|
+
_this.setAppearance = _this.setAppearance.bind(_assertThisInitialized(_this));
|
|
94
97
|
return _this;
|
|
95
98
|
}
|
|
96
99
|
|
|
@@ -111,56 +114,9 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
111
114
|
}, {
|
|
112
115
|
key: "render",
|
|
113
116
|
value: function render() {
|
|
114
|
-
var _this2 = this;
|
|
115
|
-
|
|
116
117
|
var _this$state = this.state,
|
|
117
118
|
appearanceName = _this$state.appearanceName,
|
|
118
119
|
themeName = _this$state.themeName;
|
|
119
|
-
var themeClass = {
|
|
120
|
-
width: '20px',
|
|
121
|
-
height: '20px',
|
|
122
|
-
borderRadius: '3px',
|
|
123
|
-
display: 'flex',
|
|
124
|
-
border: '1px solid #ccc',
|
|
125
|
-
margin: '0 5px',
|
|
126
|
-
cursor: 'pointer',
|
|
127
|
-
backgroundColor: '#0a73eb'
|
|
128
|
-
};
|
|
129
|
-
var green = {
|
|
130
|
-
backgroundColor: '#26a942'
|
|
131
|
-
};
|
|
132
|
-
var red = {
|
|
133
|
-
backgroundColor: '#de3535'
|
|
134
|
-
};
|
|
135
|
-
var orange = {
|
|
136
|
-
backgroundColor: '#e57717'
|
|
137
|
-
};
|
|
138
|
-
var yellow = {
|
|
139
|
-
backgroundColor: '#e8b923'
|
|
140
|
-
};
|
|
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
120
|
return /*#__PURE__*/_react["default"].createElement(_AppContainer["default"], {
|
|
165
121
|
customProps: {
|
|
166
122
|
ExtraProps: {
|
|
@@ -170,81 +126,10 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
170
126
|
}
|
|
171
127
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
172
128
|
scroll: "vertical"
|
|
173
|
-
}, this.props.children), /*#__PURE__*/_react["default"].createElement("
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
style: {
|
|
211
|
-
color: '#fff'
|
|
212
|
-
}
|
|
213
|
-
}, "Themes:"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
214
|
-
style: {
|
|
215
|
-
display: 'flex'
|
|
216
|
-
}
|
|
217
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
218
|
-
title: "Blue Theme",
|
|
219
|
-
style: themeClass,
|
|
220
|
-
onClick: function onClick() {
|
|
221
|
-
return _this2.setTheme('blue');
|
|
222
|
-
}
|
|
223
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
224
|
-
title: "Green Theme",
|
|
225
|
-
style: Object.assign({}, themeClass, green),
|
|
226
|
-
onClick: function onClick() {
|
|
227
|
-
return _this2.setTheme('green');
|
|
228
|
-
}
|
|
229
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
230
|
-
title: "Red Theme",
|
|
231
|
-
style: Object.assign({}, themeClass, red),
|
|
232
|
-
onClick: function onClick() {
|
|
233
|
-
return _this2.setTheme('red');
|
|
234
|
-
}
|
|
235
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
236
|
-
title: "Orange Theme",
|
|
237
|
-
style: Object.assign({}, themeClass, orange),
|
|
238
|
-
onClick: function onClick() {
|
|
239
|
-
return _this2.setTheme('orange');
|
|
240
|
-
}
|
|
241
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
242
|
-
title: "Yellow Theme",
|
|
243
|
-
style: Object.assign({}, themeClass, yellow),
|
|
244
|
-
onClick: function onClick() {
|
|
245
|
-
return _this2.setTheme('yellow');
|
|
246
|
-
}
|
|
247
|
-
}))));
|
|
129
|
+
}, this.props.children), /*#__PURE__*/_react["default"].createElement(_ThemeTool["default"], {
|
|
130
|
+
onThemeChange: this.setTheme,
|
|
131
|
+
onAppearanceChange: this.setAppearance
|
|
132
|
+
}));
|
|
248
133
|
}
|
|
249
134
|
}]);
|
|
250
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
|
|
@@ -26,12 +26,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
26
26
|
|
|
27
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
28
|
|
|
29
|
-
function _extends() { _extends = Object.assign
|
|
29
|
+
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); }
|
|
30
30
|
|
|
31
31
|
function SvgLoader(props) {
|
|
32
32
|
var uiProps = {};
|
|
33
33
|
Object.keys(props).filter(function (prop) {
|
|
34
|
-
return prop !=
|
|
34
|
+
return prop != 'imageUrl';
|
|
35
35
|
}).map(function (prop) {
|
|
36
36
|
uiProps[prop] = props[prop];
|
|
37
37
|
});
|
|
@@ -51,7 +51,7 @@ function StaticSvg(props) {
|
|
|
51
51
|
setImage = _useState2[1];
|
|
52
52
|
|
|
53
53
|
Object.keys(props).filter(function (prop) {
|
|
54
|
-
return prop !=
|
|
54
|
+
return prop != 'getImage';
|
|
55
55
|
}).map(function (prop) {
|
|
56
56
|
uiProps[prop] = props[prop];
|
|
57
57
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SvgDefaultProps = void 0;
|
|
7
|
+
var SvgDefaultProps = {
|
|
8
|
+
alignHorizontal: true,
|
|
9
|
+
isRender: true,
|
|
10
|
+
className: '',
|
|
11
|
+
dataId: 'SVG',
|
|
12
|
+
name: '',
|
|
13
|
+
viewBox: '',
|
|
14
|
+
isSymbol: false,
|
|
15
|
+
isFluid: false,
|
|
16
|
+
palette: 'default'
|
|
17
|
+
};
|
|
18
|
+
exports.SvgDefaultProps = SvgDefaultProps;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SvgProps = 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 SvgProps = {
|
|
13
|
+
alignHorizontal: _propTypes["default"].bool,
|
|
14
|
+
children: _propTypes["default"].node,
|
|
15
|
+
className: _propTypes["default"].string,
|
|
16
|
+
dataId: _propTypes["default"].string,
|
|
17
|
+
isFluid: _propTypes["default"].bool,
|
|
18
|
+
isRender: _propTypes["default"].bool,
|
|
19
|
+
isSymbol: _propTypes["default"].bool,
|
|
20
|
+
name: _propTypes["default"].string,
|
|
21
|
+
size: _propTypes["default"].oneOf(['small', 'large']),
|
|
22
|
+
viewBox: _propTypes["default"].string,
|
|
23
|
+
palette: _propTypes["default"].oneOf(['default', 'dark']),
|
|
24
|
+
styleName: _propTypes["default"].node
|
|
25
|
+
};
|
|
26
|
+
exports.SvgProps = SvgProps;
|
|
File without changes
|