@zohodesk/dot 1.9.12 → 1.9.14
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 +19 -6
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +7 -7
- package/assets/Appearance/dark/themes/blue/blue_DotCTA_DarkModifyCategory.module.css +13 -0
- package/assets/Appearance/dark/themes/green/green_DotCTA_DarkModifyCategory.module.css +13 -0
- package/assets/Appearance/dark/themes/orange/orange_DotCTA_DarkModifyCategory.module.css +13 -0
- package/assets/Appearance/dark/themes/red/red_DotCTA_DarkModifyCategory.module.css +13 -0
- package/assets/Appearance/dark/themes/yellow/yellow_DotCTA_DarkModifyCategory.module.css +13 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +13 -13
- package/assets/Appearance/light/themes/blue/blue_DotCTA_LightModifyCategory.module.css +13 -0
- package/assets/Appearance/light/themes/green/green_DotCTA_LightModifyCategory.module.css +13 -0
- package/assets/Appearance/light/themes/orange/orange_DotCTA_LightModifyCategory.module.css +13 -0
- package/assets/Appearance/light/themes/red/red_DotCTA_LightModifyCategory.module.css +13 -0
- package/assets/Appearance/light/themes/yellow/yellow_DotCTA_LightModifyCategory.module.css +13 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +5 -5
- package/assets/Appearance/pureDark/themes/blue/blue_DotCTA_PureDarkModifyCategory.module.css +13 -0
- package/assets/Appearance/pureDark/themes/green/green_DotCTA_PureDarkModifyCategory.module.css +13 -0
- package/assets/Appearance/pureDark/themes/orange/orange_DotCTA_PureDarkModifyCategory.module.css +13 -0
- package/assets/Appearance/pureDark/themes/red/red_DotCTA_PureDarkModifyCategory.module.css +13 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotCTA_PureDarkModifyCategory.module.css +13 -0
- package/cbt.config.js +12 -3
- package/es/ActionButton/__tests__/ActionButton.spec.js +4 -5
- package/es/AttachmentViewer/AttachmentImage.js +3 -1
- package/es/AttachmentViewer/AttachmentViewer.js +340 -273
- package/es/AttachmentViewer/AttachmentViewer.module.css +8 -15
- package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +104 -100
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
- package/es/AttachmentViewer/props/defaultProps.js +4 -2
- package/es/AttachmentViewer/props/propTypes.js +9 -2
- package/es/AttachmentViewer/utils.js +6 -7
- package/es/AudioPlayer/utils/utils.js +2 -5
- package/es/DotProvider/hooks/useDotProvider.js +14 -15
- package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +12 -13
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +2 -1
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +1 -2
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +1 -2
- package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +3 -4
- package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +4 -5
- package/es/DotProvider/utils/errorValidation.js +5 -6
- package/es/DotProvider/utils/getAssetsImportPromises.js +4 -5
- package/es/Drawer/Drawer.js +6 -8
- package/es/FreezeLayer/css/cssJSLogic.js +4 -5
- package/es/Hooks/Dragger/useDragger.js +5 -6
- package/es/Hooks/Dragger/utils/DraggerUtil.js +7 -8
- package/es/Hooks/useFreezeLayer.js +4 -5
- package/es/Link/Link.js +4 -3
- package/es/Link/props/propTypes.js +1 -0
- package/es/Onboarding/CarouselDots/CarouselDots.js +29 -32
- package/es/Onboarding/Onboarding.js +23 -24
- package/es/Onboarding/hooks/useOnboarding.js +4 -5
- package/es/Onboarding/hooks/useOnboardingSlider.js +5 -6
- package/es/deprecated/SelectDropdown/SelectDropdown.js +43 -47
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +214 -225
- package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
- package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
- package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
- package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
- package/es/errorstate/WillBack/WillBack.js +30 -34
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +81 -85
- package/es/list/status/StatusDropdown/StatusDropdown.js +109 -113
- package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +3 -4
- package/es/lookup/header/Search/Search.js +4 -5
- package/es/lookup/header/Search/__tests__/Search.spec.js +3 -4
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +67 -75
- package/es/utils/General.js +2 -7
- package/es/utils/editorUtils.js +1 -5
- package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -5
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +59 -63
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +40 -44
- package/lib/AttachmentViewer/AttachmentImage.js +3 -1
- package/lib/AttachmentViewer/AttachmentViewer.js +158 -82
- package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
- package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
- package/lib/AttachmentViewer/props/defaultProps.js +6 -2
- package/lib/AttachmentViewer/props/propTypes.js +9 -2
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -1
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +2 -0
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +1 -3
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +1 -3
- package/lib/Link/Link.js +4 -3
- package/lib/Link/props/propTypes.js +1 -0
- package/package.json +12 -11
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.AttachmentViewer_defaultProps = exports.AttachmentImage_defaultProps = void 0;
|
|
7
|
+
|
|
8
|
+
var _General = require("../../utils/General");
|
|
9
|
+
|
|
7
10
|
var AttachmentImage_defaultProps = {
|
|
8
11
|
dataId: 'AttachmentImage',
|
|
9
12
|
customClass: {
|
|
@@ -18,7 +21,8 @@ var AttachmentViewer_defaultProps = {
|
|
|
18
21
|
maintainZoom: false,
|
|
19
22
|
isActive: false,
|
|
20
23
|
dataId: 'AttachmentViewer',
|
|
21
|
-
i18nKeys:
|
|
22
|
-
customProps:
|
|
24
|
+
i18nKeys: _General.DUMMY_OBJECT,
|
|
25
|
+
customProps: _General.DUMMY_OBJECT,
|
|
26
|
+
hasCount: true
|
|
23
27
|
};
|
|
24
28
|
exports.AttachmentViewer_defaultProps = AttachmentViewer_defaultProps;
|
|
@@ -13,6 +13,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
var AttachmentImage_propTypes = {
|
|
15
15
|
alt: _propTypes["default"].string,
|
|
16
|
+
imageRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].shape({
|
|
17
|
+
current: _propTypes["default"].any
|
|
18
|
+
})]),
|
|
16
19
|
customClass: _propTypes["default"].shape({
|
|
17
20
|
customImageClass: _propTypes["default"].string,
|
|
18
21
|
customChildrenClass: _propTypes["default"].string
|
|
@@ -41,7 +44,7 @@ var AttachmentViewer_propTypes = {
|
|
|
41
44
|
showText: _propTypes["default"].string,
|
|
42
45
|
previewUnsupportedText: _propTypes["default"].string
|
|
43
46
|
}),
|
|
44
|
-
needDownload: _propTypes["default"].
|
|
47
|
+
needDownload: _propTypes["default"].bool,
|
|
45
48
|
previewObj: _propTypes["default"].object,
|
|
46
49
|
responsiveId: _propTypes["default"].string,
|
|
47
50
|
maintainZoom: _propTypes["default"].bool,
|
|
@@ -54,8 +57,12 @@ var AttachmentViewer_propTypes = {
|
|
|
54
57
|
document: _propTypes["default"].arrayOf(_propTypes["default"].string)
|
|
55
58
|
}),
|
|
56
59
|
renderUnSupportedElement: _propTypes["default"].func,
|
|
60
|
+
renderCustomImagePreviewElement: _propTypes["default"].func,
|
|
57
61
|
customProps: _propTypes["default"].shape({
|
|
58
62
|
avatarProps: _propTypes["default"].exact(_propTypes2.propTypes)
|
|
59
|
-
})
|
|
63
|
+
}),
|
|
64
|
+
hasCount: _propTypes["default"].bool,
|
|
65
|
+
renderCustomIcons: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node]),
|
|
66
|
+
onSelectedAttachmentChange: _propTypes["default"].func
|
|
60
67
|
};
|
|
61
68
|
exports.AttachmentViewer_propTypes = AttachmentViewer_propTypes;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css");
|
|
3
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css");
|
|
4
|
+
|
|
5
|
+
require("@zohodesk/components/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/blue/blue_ctaTokens_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/blue/blue_ctaTokens_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/dark/themes/blue/blue_ctaTokens_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/blue/blue_ctaTokens_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/blue/blue_ctaTokens_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/light/themes/blue/blue_ctaTokens_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/blue/blue_ctaTokens_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/blue/blue_ctaTokens_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/pureDark/themes/blue/blue_ctaTokens_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/green/green_ctaTokens_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/green/green_ctaTokens_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/dark/themes/green/green_ctaTokens_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/green/green_ctaTokens_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/green/green_ctaTokens_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/light/themes/green/green_ctaTokens_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/green/green_ctaTokens_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/green/green_ctaTokens_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/pureDark/themes/green/green_ctaTokens_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/orange/orange_ctaTokens_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/orange/orange_ctaTokens_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/dark/themes/orange/orange_ctaTokens_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/orange/orange_ctaTokens_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/orange/orange_ctaTokens_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/light/themes/orange/orange_ctaTokens_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/orange/orange_ctaTokens_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/orange/orange_ctaTokens_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/pureDark/themes/orange/orange_ctaTokens_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/red/red_ctaTokens_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/red/red_ctaTokens_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/dark/themes/red/red_ctaTokens_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/red/red_ctaTokens_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/red/red_ctaTokens_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/light/themes/red/red_ctaTokens_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/red/red_ctaTokens_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/red/red_ctaTokens_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/pureDark/themes/red/red_ctaTokens_PureDarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/yellow/yellow_ctaTokens_DarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/dark/themes/yellow/yellow_ctaTokens_DarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/dark/themes/yellow/yellow_ctaTokens_DarkTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/yellow/yellow_ctaTokens_LightTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/light/themes/yellow/yellow_ctaTokens_LightModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/light/themes/yellow/yellow_ctaTokens_LightTheme.module.css");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/yellow/yellow_ctaTokens_PureDarkTheme.module.css");
|
|
4
|
-
|
|
5
|
-
require("@zohodesk/variables/assets/Appearance/pureDark/themes/yellow/yellow_ctaTokens_PureDarkModifyCategory.module.css");
|
|
3
|
+
require("@zohodesk/variables/assets/Appearance/pureDark/themes/yellow/yellow_ctaTokens_PureDarkTheme.module.css");
|
package/lib/Link/Link.js
CHANGED
|
@@ -110,7 +110,8 @@ var Link = /*#__PURE__*/function (_React$Component) {
|
|
|
110
110
|
rel = _this$props2.rel,
|
|
111
111
|
dataId = _this$props2.dataId,
|
|
112
112
|
customProps = _this$props2.customProps,
|
|
113
|
-
ariaLabel = _this$props2.ariaLabel
|
|
113
|
+
ariaLabel = _this$props2.ariaLabel,
|
|
114
|
+
downloadName = _this$props2.downloadName;
|
|
114
115
|
var _this$context$options = this.context.options,
|
|
115
116
|
isLink = _this$context$options.isLink,
|
|
116
117
|
constructURL = _this$context$options.constructURL;
|
|
@@ -118,10 +119,10 @@ var Link = /*#__PURE__*/function (_React$Component) {
|
|
|
118
119
|
var option = {};
|
|
119
120
|
|
|
120
121
|
if (download) {
|
|
121
|
-
option.download = true;
|
|
122
|
+
option.download = downloadName || true;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
|
-
var ignoreKeys = ['children', 'href', 'target', 'urlData', 'urlName', 'className', 'title', 'download', 'rel', 'dataId', 'hasReload', 'customProps', 'option', 'ariaLabel'];
|
|
125
|
+
var ignoreKeys = ['children', 'href', 'target', 'urlData', 'urlName', 'className', 'title', 'download', 'downloadName', 'rel', 'dataId', 'hasReload', 'customProps', 'option', 'ariaLabel'];
|
|
125
126
|
var others = Object.keys(this.props).filter(function (key) {
|
|
126
127
|
return ignoreKeys.indexOf(key) == -1;
|
|
127
128
|
}).reduce(function (res, key) {
|
|
@@ -23,6 +23,7 @@ var propTypes = {
|
|
|
23
23
|
customProps: _propTypes["default"].object,
|
|
24
24
|
onClick: _propTypes["default"].func,
|
|
25
25
|
download: _propTypes["default"].bool,
|
|
26
|
+
downloadName: _propTypes["default"].string,
|
|
26
27
|
ariaLabel: _propTypes["default"].string,
|
|
27
28
|
key: _propTypes["default"].string
|
|
28
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.14",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -65,39 +65,40 @@
|
|
|
65
65
|
"@testing-library/react": "^11.2.5",
|
|
66
66
|
"@testing-library/react-hooks": "^7.0.2",
|
|
67
67
|
"@testing-library/user-event": "^13.0.10",
|
|
68
|
-
"@zohodesk-private/color-variable-preprocessor": "1.3.
|
|
68
|
+
"@zohodesk-private/color-variable-preprocessor": "1.3.3",
|
|
69
69
|
"@zohodesk-private/css-variable-migrator": "1.0.11",
|
|
70
70
|
"@zohodesk-private/node-plugins": "1.1.14",
|
|
71
71
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
72
72
|
"@zohodesk/a11y": "2.3.9",
|
|
73
|
-
"@zohodesk/client_build_tool": "0.0.
|
|
74
|
-
"@zohodesk/components": "1.6.
|
|
73
|
+
"@zohodesk/client_build_tool": "0.0.23",
|
|
74
|
+
"@zohodesk/components": "1.6.16",
|
|
75
75
|
"@zohodesk/dotkit": "1.0.9",
|
|
76
76
|
"@zohodesk/hooks": "2.0.8",
|
|
77
77
|
"@zohodesk/icons": "1.3.3",
|
|
78
|
-
"@zohodesk/layout": "3.
|
|
78
|
+
"@zohodesk/layout": "3.2.0",
|
|
79
79
|
"@zohodesk/react-cli": "1.1.27",
|
|
80
|
-
"@zohodesk/svg": "1.3.
|
|
80
|
+
"@zohodesk/svg": "1.3.6",
|
|
81
81
|
"@zohodesk/utils": "1.3.16",
|
|
82
|
-
"@zohodesk/variables": "1.3.
|
|
82
|
+
"@zohodesk/variables": "1.3.2",
|
|
83
83
|
"@zohodesk/virtualizer": "1.0.13",
|
|
84
84
|
"postcss-discard-comments": "^7.0.5",
|
|
85
85
|
"react-sortable-hoc": "^0.8.3",
|
|
86
86
|
"velocity-react": "1.4.3",
|
|
87
|
+
"@zohodesk/jsx_attribute_wrapper": "1.0.0",
|
|
87
88
|
"@dot-system/css-utility": "0.1.1"
|
|
88
89
|
},
|
|
89
90
|
"peerDependencies": {
|
|
90
91
|
"velocity-react": "1.4.3",
|
|
91
|
-
"@zohodesk/variables": "1.3.
|
|
92
|
-
"@zohodesk/components": "1.6.
|
|
92
|
+
"@zohodesk/variables": "1.3.2",
|
|
93
|
+
"@zohodesk/components": "1.6.16",
|
|
93
94
|
"@zohodesk/icons": "1.3.3",
|
|
94
|
-
"@zohodesk/svg": "1.3.
|
|
95
|
+
"@zohodesk/svg": "1.3.6",
|
|
95
96
|
"@zohodesk/virtualizer": "1.0.13",
|
|
96
97
|
"react-sortable-hoc": "^0.8.3",
|
|
97
98
|
"@zohodesk/hooks": "2.0.8",
|
|
98
99
|
"@zohodesk/utils": "1.3.16",
|
|
99
100
|
"@zohodesk/a11y": "2.3.9",
|
|
100
|
-
"@zohodesk/layout": "3.
|
|
101
|
+
"@zohodesk/layout": "3.2.0",
|
|
101
102
|
"@dot-system/css-utility": "0.1.1"
|
|
102
103
|
}
|
|
103
104
|
}
|