@zohodesk/svg 1.0.0-temp.44 → 1.0.0-temp.45
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 +8 -0
- package/assets/Appearance/dark/mode/contrast/darkContrastEmptyStates.module.css +37 -0
- package/assets/Appearance/dark/themes/blue/contrast/blueDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/dark/themes/green/contrast/greenDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/dark/themes/orange/contrast/orangeDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/dark/themes/red/contrast/redDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/dark/themes/yellow/contrast/yellowDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/default/mode/contrast/defaultContrastEmptyStates.module.css +37 -0
- package/assets/Appearance/default/themes/blue/contrast/blueDefaultCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/default/themes/green/contrast/greenDefaultCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/default/themes/orange/contrast/orangeDefaultCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/default/themes/red/contrast/redDefaultCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/default/themes/yellow/contrast/yellowDefaultCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/pureDark/mode/contrast/pureDarkContrastEmptyStates.module.css +37 -0
- package/assets/Appearance/pureDark/themes/blue/contrast/bluePureDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/pureDark/themes/green/contrast/greenPureDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/pureDark/themes/orange/contrast/orangePureDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/pureDark/themes/red/contrast/redPureDarkCTAThemeContrast.module.css +10 -0
- package/assets/Appearance/pureDark/themes/yellow/contrast/yellowPureDarkCTAThemeContrast.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 +55 -107
- 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 +74 -0
- package/es/emptystate/props/defaultProps.js +8 -0
- package/es/emptystate/props/propTypes.js +9 -0
- package/es/emptystate/version1/EmptyCustomDomain.js +30 -0
- package/es/emptystate/version2/EmptyBusinessHoliday.js +30 -0
- package/es/emptystate/version2/EmptyBusinessHour.js +30 -0
- package/es/emptystate/version2/EmptyFromAddress.js +30 -0
- package/es/emptystate/version2/EmptyImportHistory.js +30 -0
- package/es/emptystate/version2/EmptyNetwork.js +30 -0
- package/es/emptystate/version2/EmptyRecycleBin.js +30 -0
- package/es/emptystate/version2/EmptyRoles.js +30 -0
- package/es/emptystate/version2/EmptyWebhook.js +30 -0
- package/es/emptystate/version2/FailureLog.js +30 -0
- package/es/{svg → emptystate/version3}/CustomModule.js +10 -21
- package/es/{svg → emptystate/version3}/EmptyAccounts.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyActiveCalls.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyActivity.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyAgent.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyAgentQueue.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyApproval.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyArchived.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyAttach.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyBlueprint.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyCallHistory.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyCollision.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyColumn.js +10 -21
- package/es/{svg → emptystate/version3}/EmptyContact.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyContract.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyConversation.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyCrm.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyCrmNotes.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyCrmPotential.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyDashboard.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyDelete.js +12 -23
- package/es/{svg → emptystate/version3}/EmptyDepartment.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyError.js +8 -18
- package/es/{svg → emptystate/version3}/EmptyFeed.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyFollowers.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyFrame.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyHappiness.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyHistory.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyInvoice.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyNotification.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyProducts.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyReply.js +8 -19
- package/es/{svg → emptystate/version3}/EmptyReports.js +9 -20
- package/es/{svg → emptystate/version3}/EmptySchedule.js +9 -20
- package/es/{svg → emptystate/version3}/EmptySearch.js +9 -20
- package/es/{svg → emptystate/version3}/EmptySkills.js +9 -20
- package/es/{svg → emptystate/version3}/EmptySla.js +8 -19
- package/es/{svg → emptystate/version3}/EmptySnippet.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTag.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTask.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTeams.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTemplate.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTicket.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTimeEntry.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTimeline.js +9 -20
- package/es/{svg → emptystate/version3}/EmptyTopic.js +9 -20
- package/es/{svg → emptystate/version3}/Export.js +15 -26
- package/es/{svg → emptystate/version3}/Extensions.js +9 -20
- package/es/{svg → emptystate/version3}/Extractor.js +9 -20
- package/es/{svg → emptystate/version3}/GCBot.js +11 -22
- package/es/{svg → emptystate/version3}/GCConversation.js +15 -26
- package/es/{svg → emptystate/version3}/Import.js +8 -19
- package/es/{svg → emptystate/version3}/KBBot.js +11 -22
- package/es/{svg → emptystate/version3}/Multilingual.js +10 -21
- package/es/{svg → emptystate/version3}/NetworkError.js +16 -27
- package/es/{svg → emptystate/version3}/Predictor.js +9 -20
- package/es/{svg → emptystate/version3}/ReadRecipients.js +11 -22
- package/es/{svg → emptystate/version3}/Variable.js +11 -22
- package/es/{svg → emptystate/version3}/ZiaAnamoly.js +9 -20
- 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/SVG.js +5 -27
- package/es/svg/SvgLoader.js +3 -3
- package/es/svg/props/defaultProps.js +11 -0
- package/es/svg/props/propTypes.js +15 -0
- 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 +95 -127
- package/lib/{svg → css}/EmptyStateVariables.module.css +0 -0
- package/lib/docs/Emptystate__version1.docs.js +79 -0
- 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 +74 -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/{svg → emptystate/version2}/EmptyRoles.js +18 -20
- 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/lib/svg/SVG.js +8 -29
- package/lib/svg/SvgLoader.js +3 -3
- package/lib/svg/props/defaultProps.js +18 -0
- package/lib/svg/props/propTypes.js +26 -0
- package/package.json +10 -9
- 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
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This Bundle Contains EmptyState Images.
|
|
4
4
|
|
|
5
|
+
# 1.0.0-beta.48,49
|
|
6
|
+
|
|
7
|
+
- errorstate, emptystate files separated , EmptyCrm dataId changed to EmptyCrm from EmptyFeed
|
|
8
|
+
|
|
9
|
+
# 1.0.0-beta.47
|
|
10
|
+
|
|
11
|
+
- PureDark mode implemented via preprocess
|
|
12
|
+
|
|
5
13
|
# 1.0.0-beta.46
|
|
6
14
|
|
|
7
15
|
- CustomModule SVG added
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[data-mode='dark']:global(.contrast) {
|
|
2
|
+
/* default palette */
|
|
3
|
+
--zdt_svg_default_primary_fill: var(--zdt_cta_primary_fill);
|
|
4
|
+
--zdt_svg_default_primary_stroke: var(--zdt_cta_primary_stroke);
|
|
5
|
+
--zdt_svg_default_secondary_fill: var(--zdt_cta_secondary_fill);
|
|
6
|
+
--zdt_svg_default_secondary_plainfill: var(--zdt_cta_secondary_plainfill);
|
|
7
|
+
--zdt_svg_default_plus: #1482ff;
|
|
8
|
+
--zdt_svg_default_cross: #41aa8c;
|
|
9
|
+
--zdt_svg_default_medium_circle: #ff3838;
|
|
10
|
+
--zdt_svg_default_tiny_circle: #389f4e;
|
|
11
|
+
--zdt_svg_default_small_circle: #ff3838;
|
|
12
|
+
--zdt_svg_default_circle_fill: #e6e6e6;
|
|
13
|
+
|
|
14
|
+
/* dark palette */
|
|
15
|
+
--zdt_svg_dark_primary_fill: var(--zdt_cta_primary_dark_fill);
|
|
16
|
+
--zdt_svg_dark_primary_stroke: var(--zdt_cta_primary_dark_stroke);
|
|
17
|
+
--zdt_svg_dark_secondary_fill: var(--zdt_cta_secondary_dark_fill);
|
|
18
|
+
--zdt_svg_dark_secondary_plainfill: var(--zdt_cta_secondary_dark_plainfill);
|
|
19
|
+
--zdt_svg_dark_plus: #1482ff;
|
|
20
|
+
--zdt_svg_dark_cross: #41aa8c;
|
|
21
|
+
--zdt_svg_dark_medium_circle: #ff3838;
|
|
22
|
+
--zdt_svg_dark_tiny_circle: #389f4e;
|
|
23
|
+
--zdt_svg_dark_small_circle: #ff3838;
|
|
24
|
+
--zdt_svg_dark_circle_fill: #e6e6e6;
|
|
25
|
+
|
|
26
|
+
/* danger palette */
|
|
27
|
+
--zdt_svg_danger_primary_fill: #cc5800;
|
|
28
|
+
--zdt_svg_danger_primary_stroke: #1482ff;
|
|
29
|
+
--zdt_svg_danger_secondary_fill: #223144;
|
|
30
|
+
--zdt_svg_danger_secondary_plainfill: #223144;
|
|
31
|
+
--zdt_svg_danger_plus: #1482ff;
|
|
32
|
+
--zdt_svg_danger_cross: #41aa8c;
|
|
33
|
+
--zdt_svg_danger_medium_circle: #ff3838;
|
|
34
|
+
--zdt_svg_danger_tiny_circle: #389f4e;
|
|
35
|
+
--zdt_svg_danger_small_circle: #ff3838;
|
|
36
|
+
--zdt_svg_danger_circle_fill: #e6e6e6;
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='dark'][data-theme='blue']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #6a717c;
|
|
3
|
+
--zdt_cta_primary_stroke: #1482ff;
|
|
4
|
+
--zdt_cta_secondary_fill: #NaNNaNNaN;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #223144;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #6a717c;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #1482ff;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #223144;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #223144
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='dark'][data-theme='green']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #367d45;
|
|
3
|
+
--zdt_cta_primary_stroke: #367d45;
|
|
4
|
+
--zdt_cta_secondary_fill: #367d45;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #367d45;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #367d45;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #367d45;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #367d45;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #367d45
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='dark'][data-theme='orange']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #eb6600;
|
|
3
|
+
--zdt_cta_primary_stroke: #eb6600;
|
|
4
|
+
--zdt_cta_secondary_fill: #eb6600;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #eb6600;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #eb6600;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #eb6600;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #eb6600;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #eb6600
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='dark'][data-theme='red']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #e42121;
|
|
3
|
+
--zdt_cta_primary_stroke: #e42121;
|
|
4
|
+
--zdt_cta_secondary_fill: #e42121;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #e42121;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #e42121;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e42121;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #e42121;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #e42121
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='dark'][data-theme='yellow']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #b77f24;
|
|
3
|
+
--zdt_cta_primary_stroke: #b77f24;
|
|
4
|
+
--zdt_cta_secondary_fill: #b77f24;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #b77f24;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #b77f24;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #b77f24;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #b77f24;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #b77f24
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[data-mode='default']:global(.contrast) {
|
|
2
|
+
/* default palette */
|
|
3
|
+
--zdt_svg_default_primary_fill: var(--zdt_cta_primary_fill);
|
|
4
|
+
--zdt_svg_default_primary_stroke: var(--zdt_cta_primary_stroke);
|
|
5
|
+
--zdt_svg_default_secondary_fill: var(--zdt_cta_secondary_fill);
|
|
6
|
+
--zdt_svg_default_secondary_plainfill: var(--zdt_cta_secondary_plainfill);
|
|
7
|
+
--zdt_svg_default_plus: #315790;
|
|
8
|
+
--zdt_svg_default_cross: #41aa8c;
|
|
9
|
+
--zdt_svg_default_medium_circle: #de3b4b;
|
|
10
|
+
--zdt_svg_default_tiny_circle: #41aa8c;
|
|
11
|
+
--zdt_svg_default_small_circle: #000000;
|
|
12
|
+
--zdt_svg_default_circle_fill: #e6e6e6;
|
|
13
|
+
|
|
14
|
+
/* dark palette */
|
|
15
|
+
--zdt_svg_dark_primary_fill: var(--zdt_cta_primary_dark_fill);
|
|
16
|
+
--zdt_svg_dark_primary_stroke: var(--zdt_cta_primary_dark_stroke);
|
|
17
|
+
--zdt_svg_dark_secondary_fill: var(--zdt_cta_secondary_dark_fill);
|
|
18
|
+
--zdt_svg_dark_secondary_plainfill: var(--zdt_cta_secondary_dark_plainfill);
|
|
19
|
+
--zdt_svg_dark_plus: #1482ff;
|
|
20
|
+
--zdt_svg_dark_cross: #41aa8c;
|
|
21
|
+
--zdt_svg_dark_medium_circle: #de3b4b;
|
|
22
|
+
--zdt_svg_dark_tiny_circle: #41aa8c;
|
|
23
|
+
--zdt_svg_dark_small_circle: #000000;
|
|
24
|
+
--zdt_svg_dark_circle_fill: #e6e6e6;
|
|
25
|
+
|
|
26
|
+
/* danger palette */
|
|
27
|
+
--zdt_svg_danger_primary_fill: #cc5800;
|
|
28
|
+
--zdt_svg_danger_primary_stroke: #000000;
|
|
29
|
+
--zdt_svg_danger_secondary_fill: #315790;
|
|
30
|
+
--zdt_svg_danger_secondary_plainfill: #315790;
|
|
31
|
+
--zdt_svg_danger_plus: #315790;
|
|
32
|
+
--zdt_svg_danger_cross: #41aa8c;
|
|
33
|
+
--zdt_svg_danger_medium_circle: #de3b4b;
|
|
34
|
+
--zdt_svg_danger_tiny_circle: #41aa8c;
|
|
35
|
+
--zdt_svg_danger_small_circle: #000000;
|
|
36
|
+
--zdt_svg_danger_circle_fill: #e6e6e6;
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='blue']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #085bba;
|
|
3
|
+
--zdt_cta_primary_stroke: #080707;
|
|
4
|
+
--zdt_cta_secondary_fill: #085bba;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #085bba;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #848ec8;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e6e6e6;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #315790;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #315790
|
|
10
|
+
}
|
package/assets/Appearance/default/themes/green/contrast/greenDefaultCTAThemeContrast.module.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='green']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #1d8133;
|
|
3
|
+
--zdt_cta_primary_stroke: #000000;
|
|
4
|
+
--zdt_cta_secondary_fill: #1d8133;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #1d8133;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #1d8133;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e6e6e6;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #1d8133;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #1d8133
|
|
10
|
+
}
|
package/assets/Appearance/default/themes/orange/contrast/orangeDefaultCTAThemeContrast.module.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='orange']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #b55e12;
|
|
3
|
+
--zdt_cta_primary_stroke: #000000;
|
|
4
|
+
--zdt_cta_secondary_fill: #b55e12;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #b55e12;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #b55e12;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e6e6e6;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #b55e12;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #b55e12
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='red']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #c11f1f;
|
|
3
|
+
--zdt_cta_primary_stroke: #000000;
|
|
4
|
+
--zdt_cta_secondary_fill: #c11f1f;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #c11f1f;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #c11f1f;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e6e6e6;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #c11f1f;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #c11f1f
|
|
10
|
+
}
|
package/assets/Appearance/default/themes/yellow/contrast/yellowDefaultCTAThemeContrast.module.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='default'][data-theme='yellow']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #c29914;
|
|
3
|
+
--zdt_cta_primary_stroke: #000000;
|
|
4
|
+
--zdt_cta_secondary_fill: #c29914;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #c29914;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #c29914;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #e6e6e6;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #c29914;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #c29914
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[data-mode='pureDark']:global(.contrast) {
|
|
2
|
+
/* default palette */
|
|
3
|
+
--zdt_svg_default_primary_fill: var(--zdt_cta_primary_fill);
|
|
4
|
+
--zdt_svg_default_primary_stroke: var(--zdt_cta_primary_stroke);
|
|
5
|
+
--zdt_svg_default_secondary_fill: var(--zdt_cta_secondary_fill);
|
|
6
|
+
--zdt_svg_default_secondary_plainfill: var(--zdt_cta_secondary_plainfill);
|
|
7
|
+
--zdt_svg_default_plus: #1482ff;
|
|
8
|
+
--zdt_svg_default_cross: #41aa8c;
|
|
9
|
+
--zdt_svg_default_medium_circle: #ff3838;
|
|
10
|
+
--zdt_svg_default_tiny_circle: #389f4e;
|
|
11
|
+
--zdt_svg_default_small_circle: #ff3838;
|
|
12
|
+
--zdt_svg_default_circle_fill: #e6e6e6;
|
|
13
|
+
|
|
14
|
+
/* dark palette */
|
|
15
|
+
--zdt_svg_dark_primary_fill: var(--zdt_cta_primary_dark_fill);
|
|
16
|
+
--zdt_svg_dark_primary_stroke: var(--zdt_cta_primary_dark_stroke);
|
|
17
|
+
--zdt_svg_dark_secondary_fill: var(--zdt_cta_secondary_dark_fill);
|
|
18
|
+
--zdt_svg_dark_secondary_plainfill: var(--zdt_cta_secondary_dark_plainfill);
|
|
19
|
+
--zdt_svg_dark_plus: #1482ff;
|
|
20
|
+
--zdt_svg_dark_cross: #41aa8c;
|
|
21
|
+
--zdt_svg_dark_medium_circle: #ff3838;
|
|
22
|
+
--zdt_svg_dark_tiny_circle: #389f4e;
|
|
23
|
+
--zdt_svg_dark_small_circle: #ff3838;
|
|
24
|
+
--zdt_svg_dark_circle_fill: #e6e6e6;
|
|
25
|
+
|
|
26
|
+
/* danger palette */
|
|
27
|
+
--zdt_svg_danger_primary_fill: #cc5800;
|
|
28
|
+
--zdt_svg_danger_primary_stroke: #1482ff;
|
|
29
|
+
--zdt_svg_danger_secondary_fill: #223144;
|
|
30
|
+
--zdt_svg_danger_secondary_plainfill: #223144;
|
|
31
|
+
--zdt_svg_danger_plus: #1482ff;
|
|
32
|
+
--zdt_svg_danger_cross: #41aa8c;
|
|
33
|
+
--zdt_svg_danger_medium_circle: #ff3838;
|
|
34
|
+
--zdt_svg_danger_tiny_circle: #389f4e;
|
|
35
|
+
--zdt_svg_danger_small_circle: #ff3838;
|
|
36
|
+
--zdt_svg_danger_circle_fill: #e6e6e6;
|
|
37
|
+
}
|
package/assets/Appearance/pureDark/themes/blue/contrast/bluePureDarkCTAThemeContrast.module.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='pureDark'][data-theme='blue']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #6a717c;
|
|
3
|
+
--zdt_cta_primary_stroke: #1482ff;
|
|
4
|
+
--zdt_cta_secondary_fill: #223144;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #223144;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #6a717c;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #1482ff;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #223144;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #223144
|
|
10
|
+
}
|
package/assets/Appearance/pureDark/themes/green/contrast/greenPureDarkCTAThemeContrast.module.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='pureDark'][data-theme='green']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #367d45;
|
|
3
|
+
--zdt_cta_primary_stroke: #094e12;
|
|
4
|
+
--zdt_cta_secondary_fill: #367d45;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #367d45;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #367d45;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #094918;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #367d45;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #367d45
|
|
10
|
+
}
|
package/assets/Appearance/pureDark/themes/orange/contrast/orangePureDarkCTAThemeContrast.module.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='pureDark'][data-theme='orange']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #eb6600;
|
|
3
|
+
--zdt_cta_primary_stroke: #753900;
|
|
4
|
+
--zdt_cta_secondary_fill: #eb6600;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #eb6600;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #eb6600;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #753900;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #eb6600;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #eb6600
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='pureDark'][data-theme='red']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #790c0c;
|
|
3
|
+
--zdt_cta_primary_stroke: #e42121;
|
|
4
|
+
--zdt_cta_secondary_fill: #e42121;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #e42121;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #e42121;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #790c0c;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #e42121;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #e42121
|
|
10
|
+
}
|
package/assets/Appearance/pureDark/themes/yellow/contrast/yellowPureDarkCTAThemeContrast.module.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[data-mode='pureDark'][data-theme='yellow']:global(.contrast) {
|
|
2
|
+
--zdt_cta_primary_fill: #b77f24;
|
|
3
|
+
--zdt_cta_primary_stroke: #6b4706;
|
|
4
|
+
--zdt_cta_secondary_fill: #b77f24;
|
|
5
|
+
--zdt_cta_secondary_plainfill: #b77f24;
|
|
6
|
+
--zdt_cta_primary_dark_fill: #b77f24;
|
|
7
|
+
--zdt_cta_primary_dark_stroke: #6b4706;
|
|
8
|
+
--zdt_cta_secondary_dark_fill: #b77f24;
|
|
9
|
+
--zdt_cta_secondary_dark_plainfill: #b77f24
|
|
10
|
+
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { LoaderDefaultProps } from './props/defaultProps';
|
|
3
|
+
import { LoaderProps } from './props/propTypes';
|
|
4
|
+
import SVG from './../SVG/SVG';
|
|
5
|
+
import cssStyle from './../SVG/SVG.module.css';
|
|
5
6
|
export default class Loader extends React.PureComponent {
|
|
6
7
|
constructor(props) {
|
|
7
8
|
super(props);
|
|
8
9
|
this.viewBoxStyle = {
|
|
9
|
-
animation:
|
|
10
|
+
animation: 'loaderone 2s linear infinite'
|
|
10
11
|
};
|
|
11
12
|
this.defsStyle = {
|
|
12
|
-
animation:
|
|
13
|
-
transformOrigin:
|
|
13
|
+
animation: 'circleAnimation_1 1.5s linear infinite',
|
|
14
|
+
transformOrigin: 'center'
|
|
14
15
|
};
|
|
15
16
|
this.circleStyle = {
|
|
16
|
-
animation:
|
|
17
|
-
transformOrigin:
|
|
17
|
+
animation: 'circleAnimation_2 1.2s linear infinite',
|
|
18
|
+
transformOrigin: 'center'
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -30,7 +31,7 @@ export default class Loader extends React.PureComponent {
|
|
|
30
31
|
className: `${cssStyle.loaderWrapper}`,
|
|
31
32
|
dataId: dataId,
|
|
32
33
|
styleName: this.viewBoxStyle
|
|
33
|
-
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("style", null,
|
|
34
|
+
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.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.createElement("title", null, 'loader'), /*#__PURE__*/React.createElement("circle", {
|
|
34
35
|
fill: "none",
|
|
35
36
|
stroke: "#089949",
|
|
36
37
|
strokeWidth: 2,
|
|
@@ -57,12 +58,8 @@ export default class Loader extends React.PureComponent {
|
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
}
|
|
60
|
-
Loader.propTypes =
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
Loader.defaultProps = {
|
|
64
|
-
dataId: 'loader'
|
|
65
|
-
};
|
|
61
|
+
Loader.propTypes = LoaderProps;
|
|
62
|
+
Loader.defaultProps = LoaderDefaultProps;
|
|
66
63
|
|
|
67
64
|
if (false) {
|
|
68
65
|
Loader.docs = {
|
package/es/Provider.js
CHANGED
|
@@ -1,40 +1,78 @@
|
|
|
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 ThemeTool from '../../common/lib/ThemeTool/ThemeTool';
|
|
4
5
|
import '@zohodesk/components/assets/Appearance/default/mode/defaultMode.module.css';
|
|
6
|
+
import '@zohodesk/components/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css';
|
|
7
|
+
import '@zohodesk/components/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css';
|
|
8
|
+
import '@zohodesk/components/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css';
|
|
9
|
+
import '@zohodesk/components/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css';
|
|
10
|
+
import '@zohodesk/components/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css';
|
|
5
11
|
import '@zohodesk/components/assets/Appearance/dark/mode/darkMode.module.css';
|
|
12
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css';
|
|
13
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css';
|
|
14
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css';
|
|
15
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css';
|
|
16
|
+
import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css';
|
|
17
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css';
|
|
18
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css';
|
|
19
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css';
|
|
20
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css';
|
|
21
|
+
import '@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css';
|
|
22
|
+
import '@zohodesk/components/assets/Appearance/pureDark/mode/pureDarkMode.module.css';
|
|
6
23
|
/* default mode & themes */
|
|
7
24
|
|
|
8
25
|
import '../assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css';
|
|
26
|
+
import '../assets/Appearance/default/themes/blue/contrast/blueDefaultCTAThemeContrast.module.css';
|
|
9
27
|
import '../assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css';
|
|
28
|
+
import '../assets/Appearance/default/themes/green/contrast/greenDefaultCTAThemeContrast.module.css';
|
|
10
29
|
import '../assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css';
|
|
30
|
+
import '../assets/Appearance/default/themes/orange/contrast/orangeDefaultCTAThemeContrast.module.css';
|
|
11
31
|
import '../assets/Appearance/default/themes/red/redDefaultCTATheme.module.css';
|
|
32
|
+
import '../assets/Appearance/default/themes/red/contrast/redDefaultCTAThemeContrast.module.css';
|
|
12
33
|
import '../assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css';
|
|
34
|
+
import '../assets/Appearance/default/themes/yellow/contrast/yellowDefaultCTAThemeContrast.module.css';
|
|
13
35
|
import '../assets/Appearance/default/mode/defaultEmptyStates.module.css';
|
|
36
|
+
import '../assets/Appearance/default/mode/contrast/defaultContrastEmptyStates.module.css';
|
|
14
37
|
/* dark mode & themes */
|
|
15
38
|
|
|
16
39
|
import '../assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css';
|
|
40
|
+
import '../assets/Appearance/dark/themes/blue/contrast/blueDarkCTAThemeContrast.module.css';
|
|
17
41
|
import '../assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css';
|
|
42
|
+
import '../assets/Appearance/dark/themes/green/contrast/greenDarkCTAThemeContrast.module.css';
|
|
18
43
|
import '../assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css';
|
|
44
|
+
import '../assets/Appearance/dark/themes/orange/contrast/orangeDarkCTAThemeContrast.module.css';
|
|
19
45
|
import '../assets/Appearance/dark/themes/red/redDarkCTATheme.module.css';
|
|
46
|
+
import '../assets/Appearance/dark/themes/red/contrast/redDarkCTAThemeContrast.module.css';
|
|
20
47
|
import '../assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css';
|
|
48
|
+
import '../assets/Appearance/dark/themes/yellow/contrast/yellowDarkCTAThemeContrast.module.css';
|
|
21
49
|
import '../assets/Appearance/dark/mode/darkEmptyStates.module.css';
|
|
50
|
+
import '../assets/Appearance/dark/mode/contrast/darkContrastEmptyStates.module.css';
|
|
22
51
|
/* pure dark mode & themes */
|
|
23
52
|
|
|
24
53
|
import '../assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css';
|
|
54
|
+
import '../assets/Appearance/pureDark/themes/blue/contrast/bluePureDarkCTAThemeContrast.module.css';
|
|
25
55
|
import '../assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css';
|
|
56
|
+
import '../assets/Appearance/pureDark/themes/green/contrast/greenPureDarkCTAThemeContrast.module.css';
|
|
26
57
|
import '../assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css';
|
|
58
|
+
import '../assets/Appearance/pureDark/themes/orange/contrast/orangePureDarkCTAThemeContrast.module.css';
|
|
27
59
|
import '../assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css';
|
|
60
|
+
import '../assets/Appearance/pureDark/themes/red/contrast/redPureDarkCTAThemeContrast.module.css';
|
|
28
61
|
import '../assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css';
|
|
62
|
+
import '../assets/Appearance/pureDark/themes/yellow/contrast/yellowPureDarkCTAThemeContrast.module.css';
|
|
29
63
|
import '../assets/Appearance/pureDark/mode/pureDarkEmptyStates.module.css';
|
|
64
|
+
import '../assets/Appearance/pureDark/mode/contrast/pureDarkContrastEmptyStates.module.css';
|
|
30
65
|
export default class Provider extends React.Component {
|
|
31
66
|
constructor(props) {
|
|
32
67
|
super(props);
|
|
33
68
|
this.state = {
|
|
34
69
|
appearanceName: 'default',
|
|
35
|
-
themeName: 'blue'
|
|
70
|
+
themeName: 'blue',
|
|
71
|
+
isContrastChecked: false
|
|
36
72
|
};
|
|
37
73
|
this.setTheme = this.setTheme.bind(this);
|
|
74
|
+
this.setAppearance = this.setAppearance.bind(this);
|
|
75
|
+
this.setContrast = this.setContrast.bind(this);
|
|
38
76
|
}
|
|
39
77
|
|
|
40
78
|
setAppearance(mode) {
|
|
@@ -49,124 +87,34 @@ export default class Provider extends React.Component {
|
|
|
49
87
|
});
|
|
50
88
|
}
|
|
51
89
|
|
|
90
|
+
setContrast() {
|
|
91
|
+
this.setState(prevState => ({
|
|
92
|
+
isContrastChecked: !prevState.isContrastChecked
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
|
|
52
96
|
render() {
|
|
53
97
|
let {
|
|
54
98
|
appearanceName,
|
|
55
|
-
themeName
|
|
99
|
+
themeName,
|
|
100
|
+
isContrastChecked
|
|
56
101
|
} = this.state;
|
|
57
|
-
let themeClass = {
|
|
58
|
-
width: '20px',
|
|
59
|
-
height: '20px',
|
|
60
|
-
borderRadius: '3px',
|
|
61
|
-
display: 'flex',
|
|
62
|
-
border: '1px solid #ccc',
|
|
63
|
-
margin: '0 5px',
|
|
64
|
-
cursor: 'pointer',
|
|
65
|
-
backgroundColor: '#0a73eb'
|
|
66
|
-
};
|
|
67
|
-
let green = {
|
|
68
|
-
backgroundColor: '#26a942'
|
|
69
|
-
};
|
|
70
|
-
let red = {
|
|
71
|
-
backgroundColor: '#de3535'
|
|
72
|
-
};
|
|
73
|
-
let orange = {
|
|
74
|
-
backgroundColor: '#e57717'
|
|
75
|
-
};
|
|
76
|
-
let yellow = {
|
|
77
|
-
backgroundColor: '#e8b923'
|
|
78
|
-
};
|
|
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
102
|
return /*#__PURE__*/React.createElement(AppContainer, {
|
|
103
103
|
customProps: {
|
|
104
104
|
ExtraProps: {
|
|
105
105
|
'data-mode': appearanceName,
|
|
106
106
|
'data-theme': themeName
|
|
107
107
|
}
|
|
108
|
-
}
|
|
108
|
+
},
|
|
109
|
+
className: isContrastChecked ? 'contrast' : ''
|
|
109
110
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
110
111
|
scroll: "vertical"
|
|
111
|
-
}, this.props.children), /*#__PURE__*/React.createElement(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
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
|
-
style: {
|
|
143
|
-
color: '#fff'
|
|
144
|
-
}
|
|
145
|
-
}, "Themes:"), /*#__PURE__*/React.createElement("div", {
|
|
146
|
-
style: {
|
|
147
|
-
display: 'flex'
|
|
148
|
-
}
|
|
149
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
150
|
-
title: "Blue Theme",
|
|
151
|
-
style: themeClass,
|
|
152
|
-
onClick: () => this.setTheme('blue')
|
|
153
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
154
|
-
title: "Green Theme",
|
|
155
|
-
style: Object.assign({}, themeClass, green),
|
|
156
|
-
onClick: () => this.setTheme('green')
|
|
157
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
158
|
-
title: "Red Theme",
|
|
159
|
-
style: Object.assign({}, themeClass, red),
|
|
160
|
-
onClick: () => this.setTheme('red')
|
|
161
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
162
|
-
title: "Orange Theme",
|
|
163
|
-
style: Object.assign({}, themeClass, orange),
|
|
164
|
-
onClick: () => this.setTheme('orange')
|
|
165
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
166
|
-
title: "Yellow Theme",
|
|
167
|
-
style: Object.assign({}, themeClass, yellow),
|
|
168
|
-
onClick: () => this.setTheme('yellow')
|
|
169
|
-
}))));
|
|
112
|
+
}, this.props.children), /*#__PURE__*/React.createElement(ThemeTool, {
|
|
113
|
+
onThemeChange: this.setTheme,
|
|
114
|
+
onAppearanceChange: this.setAppearance,
|
|
115
|
+
onContrastChange: this.setContrast,
|
|
116
|
+
isChecked: isContrastChecked
|
|
117
|
+
}));
|
|
170
118
|
}
|
|
171
119
|
|
|
172
120
|
}
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import EmptyCustomDomain from '../emptystate/version1/EmptyCustomDomain';
|
|
3
|
+
import style from './SVGdocstyle.module.css';
|
|
4
|
+
export default class Emptystate__version1 extends React.Component {
|
|
5
|
+
render() {
|
|
6
|
+
let allSvg = {
|
|
7
|
+
EmptyCustomDomain: /*#__PURE__*/React.createElement(EmptyCustomDomain, null)
|
|
8
|
+
};
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: style.parent
|
|
11
|
+
}, Object.keys(allSvg).map(item => {
|
|
12
|
+
let filterDarkPalettes = item.endsWith('DarkPalette');
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: filterDarkPalettes ? style.darkPalette : style.defaultPalette
|
|
15
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: style.box
|
|
17
|
+
}, allSvg[item]), /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
className: style.textStyle
|
|
19
|
+
}, item));
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (false) {
|
|
26
|
+
Emptystate__version1.docs = {
|
|
27
|
+
componentGroup: 'Emptystate'
|
|
28
|
+
};
|
|
29
|
+
}
|