@zohodesk/dot 1.0.0-temp-193.10 → 1.0.0-temp-195

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 (182) hide show
  1. package/.cli/UnValidatedFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +13 -0
  4. package/es/ActionButton/ActionButton.module.css +192 -192
  5. package/es/AlphabeticList/AlphabeticList.module.css +57 -57
  6. package/es/AttachmentViewer/AttachmentViewer.js +0 -1
  7. package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
  8. package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +0 -1
  9. package/es/ChannelIcon/ChannelIcon.module.css +225 -225
  10. package/es/FormAction/FormAction.module.css +100 -100
  11. package/es/IconButton/IconButton.module.css +22 -22
  12. package/es/TagWithIcon/TagWithIcon.module.css +66 -66
  13. package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  14. package/es/common/dot_boxShadow.module.css +2 -0
  15. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
  16. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  17. package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  18. package/es/list/Comment/Comment.module.css +29 -29
  19. package/es/list/Dot/Dot.module.css +15 -15
  20. package/es/list/ListLayout/ListLayout.module.css +79 -79
  21. package/es/list/Subject/Subject.js +7 -3
  22. package/es/list/Subject/Subject.module.css +34 -34
  23. package/es/list/Subject/__tests__/Subject.spec.js +9 -0
  24. package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +56 -1
  25. package/es/list/Subject/props/defaultProps.js +2 -1
  26. package/es/list/Subject/props/propTypes.js +2 -1
  27. package/es/list/Thread/Thread.module.css +42 -42
  28. package/es/v1/AttachmentViewer/AttachmentViewer.js +0 -1
  29. package/es/v1/list/Subject/Subject.js +7 -3
  30. package/es/v1/list/Subject/props/defaultProps.js +2 -1
  31. package/es/v1/list/Subject/props/propTypes.js +2 -1
  32. package/es/version2/GlobalNotification/GlobalNotification.module.css +177 -177
  33. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
  34. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
  35. package/lib/ActionButton/ActionButton.module.css +192 -192
  36. package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
  37. package/lib/AttachmentViewer/AttachmentViewer.js +0 -1
  38. package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
  39. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +0 -1
  40. package/lib/ChannelIcon/ChannelIcon.module.css +225 -225
  41. package/lib/FormAction/FormAction.module.css +100 -100
  42. package/lib/IconButton/IconButton.module.css +22 -22
  43. package/lib/TagWithIcon/TagWithIcon.module.css +66 -66
  44. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  45. package/lib/common/dot_boxShadow.module.css +2 -0
  46. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
  47. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  48. package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  49. package/lib/list/Comment/Comment.module.css +29 -29
  50. package/lib/list/Dot/Dot.module.css +15 -15
  51. package/lib/list/ListLayout/ListLayout.module.css +79 -79
  52. package/lib/list/Subject/Subject.js +10 -5
  53. package/lib/list/Subject/Subject.module.css +34 -34
  54. package/lib/list/Subject/__tests__/Subject.spec.js +9 -0
  55. package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +56 -1
  56. package/lib/list/Subject/props/defaultProps.js +2 -1
  57. package/lib/list/Subject/props/propTypes.js +2 -1
  58. package/lib/list/Thread/Thread.module.css +42 -42
  59. package/lib/v1/AttachmentViewer/AttachmentViewer.js +0 -1
  60. package/lib/v1/list/Subject/Subject.js +10 -5
  61. package/lib/v1/list/Subject/props/defaultProps.js +2 -1
  62. package/lib/v1/list/Subject/props/propTypes.js +2 -1
  63. package/lib/version2/GlobalNotification/GlobalNotification.module.css +177 -177
  64. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
  65. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
  66. package/package.json +5 -5
  67. package/result.json +1 -1
  68. package/unittest/index.html +1 -1
  69. package/es/v1/DotProvider/DotProvider.js +0 -67
  70. package/es/v1/DotProvider/hooks/useDotProvider.js +0 -55
  71. package/es/v1/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +0 -88
  72. package/es/v1/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -3
  73. package/es/v1/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -3
  74. package/es/v1/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -3
  75. package/es/v1/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -3
  76. package/es/v1/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -3
  77. package/es/v1/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -3
  78. package/es/v1/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -3
  79. package/es/v1/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -3
  80. package/es/v1/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -3
  81. package/es/v1/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -3
  82. package/es/v1/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -3
  83. package/es/v1/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -3
  84. package/es/v1/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -3
  85. package/es/v1/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -3
  86. package/es/v1/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -3
  87. package/es/v1/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -1
  88. package/es/v1/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -1
  89. package/es/v1/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -1
  90. package/es/v1/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -1
  91. package/es/v1/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -1
  92. package/es/v1/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -1
  93. package/es/v1/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -1
  94. package/es/v1/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -1
  95. package/es/v1/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -1
  96. package/es/v1/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -1
  97. package/es/v1/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -1
  98. package/es/v1/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -1
  99. package/es/v1/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -1
  100. package/es/v1/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -1
  101. package/es/v1/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -1
  102. package/es/v1/DotProvider/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +0 -1
  103. package/es/v1/DotProvider/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +0 -1
  104. package/es/v1/DotProvider/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +0 -1
  105. package/es/v1/DotProvider/libraryChunks/themes/svg/green/Green_Dark_SVG.js +0 -1
  106. package/es/v1/DotProvider/libraryChunks/themes/svg/green/Green_Light_SVG.js +0 -1
  107. package/es/v1/DotProvider/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +0 -1
  108. package/es/v1/DotProvider/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +0 -1
  109. package/es/v1/DotProvider/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +0 -1
  110. package/es/v1/DotProvider/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +0 -1
  111. package/es/v1/DotProvider/libraryChunks/themes/svg/red/Red_Dark_SVG.js +0 -1
  112. package/es/v1/DotProvider/libraryChunks/themes/svg/red/Red_Light_SVG.js +0 -1
  113. package/es/v1/DotProvider/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +0 -1
  114. package/es/v1/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +0 -1
  115. package/es/v1/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +0 -1
  116. package/es/v1/DotProvider/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +0 -1
  117. package/es/v1/DotProvider/props/defaultProps.js +0 -11
  118. package/es/v1/DotProvider/props/propTypes.js +0 -16
  119. package/es/v1/DotProvider/utils/assetPromiseHandlers.js +0 -61
  120. package/es/v1/DotProvider/utils/constants.js +0 -14
  121. package/es/v1/DotProvider/utils/errorValidation.js +0 -14
  122. package/es/v1/DotProvider/utils/getAssetsImportPromises.js +0 -17
  123. package/es/v1/DotProvider/utils/sizeAssetsConfig.js +0 -12
  124. package/es/v1/DotProvider/utils/themeAppearanceAssetsConfig.js +0 -47
  125. package/es/v1/DotProvider/utils/themeColorAssetsConfig.js +0 -221
  126. package/lib/v1/DotProvider/DotProvider.js +0 -110
  127. package/lib/v1/DotProvider/hooks/useDotProvider.js +0 -83
  128. package/lib/v1/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +0 -107
  129. package/lib/v1/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -7
  130. package/lib/v1/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -7
  131. package/lib/v1/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -7
  132. package/lib/v1/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -7
  133. package/lib/v1/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -7
  134. package/lib/v1/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -7
  135. package/lib/v1/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -7
  136. package/lib/v1/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -7
  137. package/lib/v1/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -7
  138. package/lib/v1/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -7
  139. package/lib/v1/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -7
  140. package/lib/v1/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -7
  141. package/lib/v1/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -7
  142. package/lib/v1/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -7
  143. package/lib/v1/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -7
  144. package/lib/v1/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +0 -3
  145. package/lib/v1/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +0 -3
  146. package/lib/v1/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +0 -3
  147. package/lib/v1/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +0 -3
  148. package/lib/v1/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +0 -3
  149. package/lib/v1/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +0 -3
  150. package/lib/v1/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +0 -3
  151. package/lib/v1/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +0 -3
  152. package/lib/v1/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +0 -3
  153. package/lib/v1/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +0 -3
  154. package/lib/v1/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +0 -3
  155. package/lib/v1/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +0 -3
  156. package/lib/v1/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +0 -3
  157. package/lib/v1/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +0 -3
  158. package/lib/v1/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +0 -3
  159. package/lib/v1/DotProvider/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +0 -3
  160. package/lib/v1/DotProvider/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +0 -3
  161. package/lib/v1/DotProvider/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +0 -3
  162. package/lib/v1/DotProvider/libraryChunks/themes/svg/green/Green_Dark_SVG.js +0 -3
  163. package/lib/v1/DotProvider/libraryChunks/themes/svg/green/Green_Light_SVG.js +0 -3
  164. package/lib/v1/DotProvider/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +0 -3
  165. package/lib/v1/DotProvider/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +0 -3
  166. package/lib/v1/DotProvider/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +0 -3
  167. package/lib/v1/DotProvider/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +0 -3
  168. package/lib/v1/DotProvider/libraryChunks/themes/svg/red/Red_Dark_SVG.js +0 -3
  169. package/lib/v1/DotProvider/libraryChunks/themes/svg/red/Red_Light_SVG.js +0 -3
  170. package/lib/v1/DotProvider/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +0 -3
  171. package/lib/v1/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +0 -3
  172. package/lib/v1/DotProvider/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +0 -3
  173. package/lib/v1/DotProvider/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +0 -3
  174. package/lib/v1/DotProvider/props/defaultProps.js +0 -20
  175. package/lib/v1/DotProvider/props/propTypes.js +0 -28
  176. package/lib/v1/DotProvider/utils/assetPromiseHandlers.js +0 -80
  177. package/lib/v1/DotProvider/utils/constants.js +0 -34
  178. package/lib/v1/DotProvider/utils/errorValidation.js +0 -22
  179. package/lib/v1/DotProvider/utils/getAssetsImportPromises.js +0 -22
  180. package/lib/v1/DotProvider/utils/sizeAssetsConfig.js +0 -31
  181. package/lib/v1/DotProvider/utils/themeAppearanceAssetsConfig.js +0 -69
  182. package/lib/v1/DotProvider/utils/themeColorAssetsConfig.js +0 -249
@@ -8,4 +8,13 @@ describe('Subject', () => {
8
8
  } = render( /*#__PURE__*/React.createElement(Subject, null));
9
9
  expect(asFragment()).toMatchSnapshot();
10
10
  });
11
+ const whiteSpace = ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'];
12
+ test.each(whiteSpace)('rendering the whiteSpace of -%s', whiteSpace => {
13
+ const {
14
+ asFragment
15
+ } = render( /*#__PURE__*/React.createElement(Subject, {
16
+ whiteSpace: whiteSpace
17
+ }));
18
+ expect(asFragment()).toMatchSnapshot();
19
+ });
11
20
  });
@@ -3,7 +3,62 @@
3
3
  exports[`Subject rendering the defult props 1`] = `
4
4
  <DocumentFragment>
5
5
  <span
6
- class="subject dotted font_regular"
6
+ class="subject dotted whiteSpace_pre font_regular"
7
+ data-title-wrap="pre"
8
+ />
9
+ </DocumentFragment>
10
+ `;
11
+
12
+ exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
13
+ <DocumentFragment>
14
+ <span
15
+ class="subject dotted whiteSpace_breakSpaces font_regular"
16
+ data-title-wrap="break-spaces"
17
+ />
18
+ </DocumentFragment>
19
+ `;
20
+
21
+ exports[`Subject rendering the whiteSpace of -normal 1`] = `
22
+ <DocumentFragment>
23
+ <span
24
+ class="subject dotted whiteSpace_normal font_regular"
25
+ data-title-wrap="normal"
26
+ />
27
+ </DocumentFragment>
28
+ `;
29
+
30
+ exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
31
+ <DocumentFragment>
32
+ <span
33
+ class="subject dotted whiteSpace_nowrap font_regular"
34
+ data-title-wrap="nowrap"
35
+ />
36
+ </DocumentFragment>
37
+ `;
38
+
39
+ exports[`Subject rendering the whiteSpace of -pre 1`] = `
40
+ <DocumentFragment>
41
+ <span
42
+ class="subject dotted whiteSpace_pre font_regular"
43
+ data-title-wrap="pre"
44
+ />
45
+ </DocumentFragment>
46
+ `;
47
+
48
+ exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
49
+ <DocumentFragment>
50
+ <span
51
+ class="subject dotted whiteSpace_preLine font_regular"
52
+ data-title-wrap="pre-line"
53
+ />
54
+ </DocumentFragment>
55
+ `;
56
+
57
+ exports[`Subject rendering the whiteSpace of -pre-wrap 1`] = `
58
+ <DocumentFragment>
59
+ <span
60
+ class="subject dotted whiteSpace_preWrap font_regular"
61
+ data-title-wrap="pre-wrap"
7
62
  />
8
63
  </DocumentFragment>
9
64
  `;
@@ -3,5 +3,6 @@ export const defaultProps = {
3
3
  fontWeight: 'regular',
4
4
  className: '',
5
5
  isDotted: true,
6
- customProps: {}
6
+ customProps: {},
7
+ whiteSpace: 'pre'
7
8
  };
@@ -15,5 +15,6 @@ export const propTypes = {
15
15
  customProps: PropTypes.shape({
16
16
  LinkProps: PropTypes.object,
17
17
  TextProps: PropTypes.object
18
- })
18
+ }),
19
+ whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
19
20
  };
@@ -1,43 +1,43 @@
1
- .varClass {
2
- --icon_color: var(--zdt_thread_iconText);
3
- }
4
- .container {
5
- composes: varClass;
6
- position: relative;
7
- color: var(--icon_color);
8
- cursor: pointer;
9
- }
10
- .container:hover {
11
- --icon_color: var(--zdt_thread_hover_iconText);
12
- }
13
- .count {
14
- font-size: var(--zd_font_size9) ;
15
- }
16
- .align_left .count {
17
- position: absolute;
18
- line-height: normal;
19
- top: var(--zd_size3) ;
20
- }
21
- [dir=ltr] .align_left .count {
22
- text-align: left;
23
- left: var(--zd_size8) ;
24
- }
25
- [dir=rtl] .align_left .count {
26
- text-align: right;
27
- right: var(--zd_size8) ;
28
- }
29
- .align_right {
30
- composes: dInflex alignFend from '~@zohodesk/components/lib/common/common.module.css';
31
- }
32
- .align_right .count {
33
- position: relative;
34
- bottom: var(--zd_size2) ;
35
- }
36
- [dir=ltr] .align_right .count {
37
- right: var(--zd_size5) ;
38
- float: right;
39
- }
40
- [dir=rtl] .align_right .count {
41
- left: var(--zd_size5) ;
42
- float: left;
1
+ .varClass {
2
+ --icon_color: var(--zdt_thread_iconText);
3
+ }
4
+ .container {
5
+ composes: varClass;
6
+ position: relative;
7
+ color: var(--icon_color);
8
+ cursor: pointer;
9
+ }
10
+ .container:hover {
11
+ --icon_color: var(--zdt_thread_hover_iconText);
12
+ }
13
+ .count {
14
+ font-size: var(--zd_font_size9) ;
15
+ }
16
+ .align_left .count {
17
+ position: absolute;
18
+ line-height: normal;
19
+ top: var(--zd_size3) ;
20
+ }
21
+ [dir=ltr] .align_left .count {
22
+ text-align: left;
23
+ left: var(--zd_size8) ;
24
+ }
25
+ [dir=rtl] .align_left .count {
26
+ text-align: right;
27
+ right: var(--zd_size8) ;
28
+ }
29
+ .align_right {
30
+ composes: dInflex alignFend from '~@zohodesk/components/lib/common/common.module.css';
31
+ }
32
+ .align_right .count {
33
+ position: relative;
34
+ bottom: var(--zd_size2) ;
35
+ }
36
+ [dir=ltr] .align_right .count {
37
+ right: var(--zd_size5) ;
38
+ float: right;
39
+ }
40
+ [dir=rtl] .align_right .count {
41
+ left: var(--zd_size5) ;
42
+ float: left;
43
43
  }
@@ -452,7 +452,6 @@ export default class AttachmentViewer extends Component {
452
452
  isBold: true
453
453
  }))), /*#__PURE__*/React.createElement(Box, {
454
454
  className: style.previewBox,
455
- role: "option",
456
455
  tabindex: "0",
457
456
  "aria-describedby": ariaId,
458
457
  isShrink: false,
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { defaultProps } from "./props/defaultProps";
3
3
  import { propTypes } from "./props/propTypes";
4
4
  import Link from "../../Link/Link";
5
+ import { whiteSpaceClassMapping } from '@zohodesk/components/es/utils/cssUtils';
5
6
  import style from "../../../list/Subject/Subject.module.css";
6
7
 
7
8
  const Subject = props => {
@@ -18,7 +19,8 @@ const Subject = props => {
18
19
  className,
19
20
  isDotted,
20
21
  children,
21
- customProps
22
+ customProps,
23
+ whiteSpace
22
24
  } = props;
23
25
  const {
24
26
  LinkProps = {},
@@ -29,16 +31,18 @@ const Subject = props => {
29
31
  href: href,
30
32
  urlData: urlData,
31
33
  onClick: onClick,
32
- className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
34
+ className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
33
35
  dataId: dataId,
34
36
  title: text,
35
37
  target: target,
38
+ "data-title-wrap": whiteSpace,
36
39
  ...LinkProps
37
40
  }, children ? children : text) : /*#__PURE__*/React.createElement("span", {
38
- className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
41
+ className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]}`,
39
42
  "data-title": text,
40
43
  "data-id": dataId,
41
44
  "data-test-id": dataId,
45
+ "data-title-wrap": whiteSpace,
42
46
  ...TextProps
43
47
  }, text));
44
48
  };
@@ -3,5 +3,6 @@ export const defaultProps = {
3
3
  fontWeight: 'regular',
4
4
  className: '',
5
5
  isDotted: true,
6
- customProps: {}
6
+ customProps: {},
7
+ whiteSpace: 'pre'
7
8
  };
@@ -15,5 +15,6 @@ export const propTypes = {
15
15
  customProps: PropTypes.shape({
16
16
  LinkProps: PropTypes.object,
17
17
  TextProps: PropTypes.object
18
- })
18
+ }),
19
+ whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
19
20
  };
@@ -1,178 +1,178 @@
1
- .varClass {
2
- /* globalnotfication default variables */
3
- --commonalert_border_color: var(--zdt_commonalert_default_border);
4
- --globalnotification_bg_color: var(--zdt_globalnotification_default_bg);
5
- --globalnotification_text_color: var(--zdt_globalnotification_default_text);
6
- }
7
-
8
- .message {
9
- composes: varClass;
10
- position: absolute;
11
- top: 0 ;
12
- z-index: 1000;
13
- width: var(--zd_size420) ;
14
- text-align: center;
15
- margin: auto ;
16
- }
17
-
18
- [dir=ltr] .message {
19
- left: 0 ;
20
- right: 0 ;
21
- }
22
-
23
- [dir=rtl] .message {
24
- right: 0 ;
25
- left: 0 ;
26
- }
27
-
28
- .stackShadowOne::after,
29
- .stackShadowTwo::before {
30
- content: '';
31
- position: absolute;
32
- height: var(--zd_size20) ;
33
- }
34
-
35
- .stackShadowOne::after, .stackShadowTwo::before {
36
- background-color: var(--globalnotification_bg_color);
37
- border-radius: 0 0 6px 6px;
38
- box-shadow: var(--zd_bs_globalnotification_container);
39
- }
40
-
41
- [dir=ltr] .stackShadowOne::after, [dir=ltr] .stackShadowTwo::before {
42
- left: 50% ;
43
- right: 50% ;
44
- transform: translate(-50%);
45
- animation: behindInfo 0.8s forwards;
46
- }
47
-
48
- [dir=rtl] .stackShadowOne::after, [dir=rtl] .stackShadowTwo::before {
49
- right: 50% ;
50
- left: 50% ;
51
- transform: translate(50%);
52
- animation: behindInfo 0.8s forwards;
53
- }
54
-
55
- .stackShadowTwo::before {
56
- width: 90% ;
57
- bottom: calc( var(--zd_size10) * -1 ) ;
58
- }
59
-
60
- .stackShadowOne::after {
61
- width: 95% ;
62
- bottom: calc( var(--zd_size5) * -1 ) ;
63
- }
64
-
65
- @keyframes behindInfo {
66
-
67
- 0%,
68
- 40% {
69
- opacity: 0;
70
- }
71
-
72
- 100% {
73
- opacity: 1;
74
- }
75
- }
76
-
77
- .container {
78
- position: relative;
79
- pointer-events: initial;
80
- color: var(--globalnotification_text_color);
81
- z-index: 1;
82
- composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
83
- width: 100% ;
84
- box-shadow: var(--zd_bs_globalnotification_container);
85
- border-radius: 0 0 var(--zd_size10) var(--zd_size10);
86
- background-color: var(--globalnotification_bg_color);
87
- border-style: solid;
88
- border-color: var(--commonalert_border_color);
89
- border-width: 2px 1px 1px 1px;
90
- }
91
-
92
- [dir=ltr] .container {
93
- padding: var(--zd_size18) var(--zd_size70) var(--zd_size19) var(--zd_size75) ;
94
- }
95
-
96
- [dir=rtl] .container {
97
- padding: var(--zd_size18) var(--zd_size75) var(--zd_size19) var(--zd_size70) ;
98
- }
99
-
100
- .icon {
101
- width: var(--zd_size44) ;
102
- height: var(--zd_size44) ;
103
- position: absolute;
104
- top: 0 ;
105
- bottom: 0 ;
106
- margin: auto 0 ;
107
- }
108
-
109
- [dir=ltr] .icon {
110
- left: var(--zd_size18) ;
111
- }
112
-
113
- [dir=rtl] .icon {
114
- right: var(--zd_size18) ;
115
- }
116
-
117
- .success {
118
- --commonalert_border_color: var(--zdt_commonalert_success_border);
119
- --globalnotification_bg_color: var(--zdt_globalnotification_success_bg);
120
- --globalnotification_text_color: var(--zdt_globalnotification_success_text);
121
- }
122
-
123
- .info {
124
- --commonalert_border_color: var(--zdt_commonalert_info_border);
125
- --globalnotification_bg_color: var(--zdt_globalnotification_info_bg);
126
- --globalnotification_text_color: var(--zdt_globalnotification_info_text);
127
- }
128
-
129
- .danger {
130
- --commonalert_border_color: var(--zdt_commonalert_danger_border);
131
- --globalnotification_bg_color: var(--zdt_globalnotification_danger_bg);
132
- --globalnotification_text_color: var(--zdt_globalnotification_danger_text);
133
- }
134
-
135
- .error {
136
- --commonalert_border_color: var(--zdt_commonalert_error_border);
137
- --globalnotification_bg_color: var(--zdt_globalnotification_error_bg);
138
- --globalnotification_text_color: var(--zdt_globalnotification_error_text);
139
- }
140
-
141
- .warning {
142
- --commonalert_border_color: var(--zdt_commonalert_warning_border);
143
- --globalnotification_bg_color: var(--zdt_globalnotification_warning_bg);
144
- --globalnotification_text_color: var(--zdt_globalnotification_warning_text);
145
- }
146
-
147
- .text {
148
- font-size: var(--zd_font_size14) ;
149
- font-family: var(--zd_semibold);
150
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
151
- line-height: 1.4286;
152
- overflow: hidden;
153
- }
154
-
155
- [dir=ltr] .text {
156
- text-align: left;
157
- }
158
-
159
- [dir=rtl] .text {
160
- text-align: right;
161
- }
162
-
163
- .close {
164
- position: absolute;
165
- top: 0 ;
166
- bottom: 0 ;
167
- height: var(--zd_size25) ;
168
- }
169
-
170
- [dir=ltr] .close {
171
- right: var(--zd_size12) ;
172
- margin: auto 0 auto var(--zd_size25) ;
173
- }
174
-
175
- [dir=rtl] .close {
176
- left: var(--zd_size12) ;
177
- margin: auto var(--zd_size25) auto 0 ;
1
+ .varClass {
2
+ /* globalnotfication default variables */
3
+ --commonalert_border_color: var(--zdt_commonalert_default_border);
4
+ --globalnotification_bg_color: var(--zdt_globalnotification_default_bg);
5
+ --globalnotification_text_color: var(--zdt_globalnotification_default_text);
6
+ }
7
+
8
+ .message {
9
+ composes: varClass;
10
+ position: absolute;
11
+ top: 0 ;
12
+ z-index: 1000;
13
+ width: var(--zd_size420) ;
14
+ text-align: center;
15
+ margin: auto ;
16
+ }
17
+
18
+ [dir=ltr] .message {
19
+ left: 0 ;
20
+ right: 0 ;
21
+ }
22
+
23
+ [dir=rtl] .message {
24
+ right: 0 ;
25
+ left: 0 ;
26
+ }
27
+
28
+ .stackShadowOne::after,
29
+ .stackShadowTwo::before {
30
+ content: '';
31
+ position: absolute;
32
+ height: var(--zd_size20) ;
33
+ }
34
+
35
+ .stackShadowOne::after, .stackShadowTwo::before {
36
+ background-color: var(--globalnotification_bg_color);
37
+ border-radius: 0 0 6px 6px;
38
+ box-shadow: var(--zd_bs_globalnotification_container);
39
+ }
40
+
41
+ [dir=ltr] .stackShadowOne::after, [dir=ltr] .stackShadowTwo::before {
42
+ left: 50% ;
43
+ right: 50% ;
44
+ transform: translate(-50%);
45
+ animation: behindInfo 0.8s forwards;
46
+ }
47
+
48
+ [dir=rtl] .stackShadowOne::after, [dir=rtl] .stackShadowTwo::before {
49
+ right: 50% ;
50
+ left: 50% ;
51
+ transform: translate(50%);
52
+ animation: behindInfo 0.8s forwards;
53
+ }
54
+
55
+ .stackShadowTwo::before {
56
+ width: 90% ;
57
+ bottom: calc( var(--zd_size10) * -1 ) ;
58
+ }
59
+
60
+ .stackShadowOne::after {
61
+ width: 95% ;
62
+ bottom: calc( var(--zd_size5) * -1 ) ;
63
+ }
64
+
65
+ @keyframes behindInfo {
66
+
67
+ 0%,
68
+ 40% {
69
+ opacity: 0;
70
+ }
71
+
72
+ 100% {
73
+ opacity: 1;
74
+ }
75
+ }
76
+
77
+ .container {
78
+ position: relative;
79
+ pointer-events: initial;
80
+ color: var(--globalnotification_text_color);
81
+ z-index: 1;
82
+ composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
83
+ width: 100% ;
84
+ box-shadow: var(--zd_bs_globalnotification_container);
85
+ border-radius: 0 0 var(--zd_size10) var(--zd_size10);
86
+ background-color: var(--globalnotification_bg_color);
87
+ border-style: solid;
88
+ border-color: var(--commonalert_border_color);
89
+ border-width: 2px 1px 1px 1px;
90
+ }
91
+
92
+ [dir=ltr] .container {
93
+ padding: var(--zd_size18) var(--zd_size70) var(--zd_size19) var(--zd_size75) ;
94
+ }
95
+
96
+ [dir=rtl] .container {
97
+ padding: var(--zd_size18) var(--zd_size75) var(--zd_size19) var(--zd_size70) ;
98
+ }
99
+
100
+ .icon {
101
+ width: var(--zd_size44) ;
102
+ height: var(--zd_size44) ;
103
+ position: absolute;
104
+ top: 0 ;
105
+ bottom: 0 ;
106
+ margin: auto 0 ;
107
+ }
108
+
109
+ [dir=ltr] .icon {
110
+ left: var(--zd_size18) ;
111
+ }
112
+
113
+ [dir=rtl] .icon {
114
+ right: var(--zd_size18) ;
115
+ }
116
+
117
+ .success {
118
+ --commonalert_border_color: var(--zdt_commonalert_success_border);
119
+ --globalnotification_bg_color: var(--zdt_globalnotification_success_bg);
120
+ --globalnotification_text_color: var(--zdt_globalnotification_success_text);
121
+ }
122
+
123
+ .info {
124
+ --commonalert_border_color: var(--zdt_commonalert_info_border);
125
+ --globalnotification_bg_color: var(--zdt_globalnotification_info_bg);
126
+ --globalnotification_text_color: var(--zdt_globalnotification_info_text);
127
+ }
128
+
129
+ .danger {
130
+ --commonalert_border_color: var(--zdt_commonalert_danger_border);
131
+ --globalnotification_bg_color: var(--zdt_globalnotification_danger_bg);
132
+ --globalnotification_text_color: var(--zdt_globalnotification_danger_text);
133
+ }
134
+
135
+ .error {
136
+ --commonalert_border_color: var(--zdt_commonalert_error_border);
137
+ --globalnotification_bg_color: var(--zdt_globalnotification_error_bg);
138
+ --globalnotification_text_color: var(--zdt_globalnotification_error_text);
139
+ }
140
+
141
+ .warning {
142
+ --commonalert_border_color: var(--zdt_commonalert_warning_border);
143
+ --globalnotification_bg_color: var(--zdt_globalnotification_warning_bg);
144
+ --globalnotification_text_color: var(--zdt_globalnotification_warning_text);
145
+ }
146
+
147
+ .text {
148
+ font-size: var(--zd_font_size14) ;
149
+ font-family: var(--zd_semibold);
150
+ composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
151
+ line-height: 1.4286;
152
+ overflow: hidden;
153
+ }
154
+
155
+ [dir=ltr] .text {
156
+ text-align: left;
157
+ }
158
+
159
+ [dir=rtl] .text {
160
+ text-align: right;
161
+ }
162
+
163
+ .close {
164
+ position: absolute;
165
+ top: 0 ;
166
+ bottom: 0 ;
167
+ height: var(--zd_size25) ;
168
+ }
169
+
170
+ [dir=ltr] .close {
171
+ right: var(--zd_size12) ;
172
+ margin: auto 0 auto var(--zd_size25) ;
173
+ }
174
+
175
+ [dir=rtl] .close {
176
+ left: var(--zd_size12) ;
177
+ margin: auto var(--zd_size25) auto 0 ;
178
178
  }