@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.
Files changed (167) hide show
  1. package/README.md +19 -6
  2. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +7 -7
  3. package/assets/Appearance/dark/themes/blue/blue_DotCTA_DarkModifyCategory.module.css +13 -0
  4. package/assets/Appearance/dark/themes/green/green_DotCTA_DarkModifyCategory.module.css +13 -0
  5. package/assets/Appearance/dark/themes/orange/orange_DotCTA_DarkModifyCategory.module.css +13 -0
  6. package/assets/Appearance/dark/themes/red/red_DotCTA_DarkModifyCategory.module.css +13 -0
  7. package/assets/Appearance/dark/themes/yellow/yellow_DotCTA_DarkModifyCategory.module.css +13 -0
  8. package/assets/Appearance/light/mode/Dot_LightMode.module.css +13 -13
  9. package/assets/Appearance/light/themes/blue/blue_DotCTA_LightModifyCategory.module.css +13 -0
  10. package/assets/Appearance/light/themes/green/green_DotCTA_LightModifyCategory.module.css +13 -0
  11. package/assets/Appearance/light/themes/orange/orange_DotCTA_LightModifyCategory.module.css +13 -0
  12. package/assets/Appearance/light/themes/red/red_DotCTA_LightModifyCategory.module.css +13 -0
  13. package/assets/Appearance/light/themes/yellow/yellow_DotCTA_LightModifyCategory.module.css +13 -0
  14. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +5 -5
  15. package/assets/Appearance/pureDark/themes/blue/blue_DotCTA_PureDarkModifyCategory.module.css +13 -0
  16. package/assets/Appearance/pureDark/themes/green/green_DotCTA_PureDarkModifyCategory.module.css +13 -0
  17. package/assets/Appearance/pureDark/themes/orange/orange_DotCTA_PureDarkModifyCategory.module.css +13 -0
  18. package/assets/Appearance/pureDark/themes/red/red_DotCTA_PureDarkModifyCategory.module.css +13 -0
  19. package/assets/Appearance/pureDark/themes/yellow/yellow_DotCTA_PureDarkModifyCategory.module.css +13 -0
  20. package/cbt.config.js +12 -3
  21. package/es/ActionButton/__tests__/ActionButton.spec.js +4 -5
  22. package/es/AttachmentViewer/AttachmentImage.js +3 -1
  23. package/es/AttachmentViewer/AttachmentViewer.js +340 -273
  24. package/es/AttachmentViewer/AttachmentViewer.module.css +8 -15
  25. package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +104 -100
  26. package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  27. package/es/AttachmentViewer/props/defaultProps.js +4 -2
  28. package/es/AttachmentViewer/props/propTypes.js +9 -2
  29. package/es/AttachmentViewer/utils.js +6 -7
  30. package/es/AudioPlayer/utils/utils.js +2 -5
  31. package/es/DotProvider/hooks/useDotProvider.js +14 -15
  32. package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +12 -13
  33. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +2 -1
  34. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +2 -1
  35. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +2 -1
  36. package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +2 -1
  37. package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +2 -1
  38. package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +2 -1
  39. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +2 -1
  40. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +2 -1
  41. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +2 -1
  42. package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +2 -1
  43. package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +2 -1
  44. package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +2 -1
  45. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +2 -1
  46. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +2 -1
  47. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +2 -1
  48. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
  49. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
  50. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
  51. package/es/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
  52. package/es/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
  53. package/es/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
  54. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
  55. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
  56. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
  57. package/es/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
  58. package/es/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
  59. package/es/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
  60. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
  61. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
  62. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
  63. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +1 -2
  64. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +1 -2
  65. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +1 -2
  66. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +1 -2
  67. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +1 -2
  68. package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +1 -2
  69. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +1 -2
  70. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +1 -2
  71. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +1 -2
  72. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +1 -2
  73. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +1 -2
  74. package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +1 -2
  75. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +1 -2
  76. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +1 -2
  77. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +1 -2
  78. package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +3 -4
  79. package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +4 -5
  80. package/es/DotProvider/utils/errorValidation.js +5 -6
  81. package/es/DotProvider/utils/getAssetsImportPromises.js +4 -5
  82. package/es/Drawer/Drawer.js +6 -8
  83. package/es/FreezeLayer/css/cssJSLogic.js +4 -5
  84. package/es/Hooks/Dragger/useDragger.js +5 -6
  85. package/es/Hooks/Dragger/utils/DraggerUtil.js +7 -8
  86. package/es/Hooks/useFreezeLayer.js +4 -5
  87. package/es/Link/Link.js +4 -3
  88. package/es/Link/props/propTypes.js +1 -0
  89. package/es/Onboarding/CarouselDots/CarouselDots.js +29 -32
  90. package/es/Onboarding/Onboarding.js +23 -24
  91. package/es/Onboarding/hooks/useOnboarding.js +4 -5
  92. package/es/Onboarding/hooks/useOnboardingSlider.js +5 -6
  93. package/es/deprecated/SelectDropdown/SelectDropdown.js +43 -47
  94. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +214 -225
  95. package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
  96. package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
  97. package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
  98. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
  99. package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
  100. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
  101. package/es/errorstate/WillBack/WillBack.js +30 -34
  102. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +81 -85
  103. package/es/list/status/StatusDropdown/StatusDropdown.js +109 -113
  104. package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +3 -4
  105. package/es/lookup/header/Search/Search.js +4 -5
  106. package/es/lookup/header/Search/__tests__/Search.spec.js +3 -4
  107. package/es/lookup/header/ViewDropDown/ViewDropDown.js +67 -75
  108. package/es/utils/General.js +2 -7
  109. package/es/utils/editorUtils.js +1 -5
  110. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -5
  111. package/es/version2/notification/DesktopNotification/DesktopNotification.js +59 -63
  112. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +40 -44
  113. package/lib/AttachmentViewer/AttachmentImage.js +3 -1
  114. package/lib/AttachmentViewer/AttachmentViewer.js +158 -82
  115. package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
  116. package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
  117. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  118. package/lib/AttachmentViewer/props/defaultProps.js +6 -2
  119. package/lib/AttachmentViewer/props/propTypes.js +9 -2
  120. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -1
  121. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -1
  122. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -1
  123. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -1
  124. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +3 -1
  125. package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -1
  126. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -1
  127. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -1
  128. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -1
  129. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -1
  130. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +3 -1
  131. package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -1
  132. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -1
  133. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -1
  134. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -1
  135. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +2 -0
  136. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +2 -0
  137. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +2 -0
  138. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +2 -0
  139. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +2 -0
  140. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +2 -0
  141. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +2 -0
  142. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +2 -0
  143. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +2 -0
  144. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +2 -0
  145. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +2 -0
  146. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +2 -0
  147. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +2 -0
  148. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +2 -0
  149. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +2 -0
  150. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +1 -3
  151. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +1 -3
  152. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +1 -3
  153. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +1 -3
  154. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +1 -3
  155. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +1 -3
  156. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +1 -3
  157. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +1 -3
  158. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +1 -3
  159. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +1 -3
  160. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +1 -3
  161. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +1 -3
  162. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +1 -3
  163. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +1 -3
  164. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +1 -3
  165. package/lib/Link/Link.js +4 -3
  166. package/lib/Link/props/propTypes.js +1 -0
  167. 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"].string,
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,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/dark/themes/blue/blue_DotCTA_DarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/light/themes/blue/blue_DotCTA_LightModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/pureDark/themes/blue/blue_DotCTA_PureDarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/dark/themes/green/green_DotCTA_DarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/light/themes/green/green_DotCTA_LightModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/pureDark/themes/green/green_DotCTA_PureDarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/dark/themes/orange/orange_DotCTA_DarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/light/themes/orange/orange_DotCTA_LightModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/pureDark/themes/orange/orange_DotCTA_PureDarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/dark/themes/red/red_DotCTA_DarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/light/themes/red/red_DotCTA_LightModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/pureDark/themes/red/red_DotCTA_PureDarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/dark/themes/yellow/yellow_DotCTA_DarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/light/themes/yellow/yellow_DotCTA_LightModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css");
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
+ require("./../../../../../../assets/Appearance/pureDark/themes/yellow/yellow_DotCTA_PureDarkModifyCategory.module.css");
4
+
3
5
  require("./../../../../../../assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.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.12",
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.1",
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.20",
74
- "@zohodesk/components": "1.6.13",
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.1.0",
78
+ "@zohodesk/layout": "3.2.0",
79
79
  "@zohodesk/react-cli": "1.1.27",
80
- "@zohodesk/svg": "1.3.5",
80
+ "@zohodesk/svg": "1.3.6",
81
81
  "@zohodesk/utils": "1.3.16",
82
- "@zohodesk/variables": "1.3.1",
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.1",
92
- "@zohodesk/components": "1.6.13",
92
+ "@zohodesk/variables": "1.3.2",
93
+ "@zohodesk/components": "1.6.16",
93
94
  "@zohodesk/icons": "1.3.3",
94
- "@zohodesk/svg": "1.3.5",
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.1.0",
101
+ "@zohodesk/layout": "3.2.0",
101
102
  "@dot-system/css-utility": "0.1.1"
102
103
  }
103
104
  }