@zohodesk/dot 1.0.0-temp-200.8 → 1.0.0-temp-214

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 (155) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +12 -0
  3. package/es/ActionButton/ActionButton.module.css +2 -2
  4. package/es/AlphabeticList/AlphabeticList.module.css +2 -2
  5. package/es/Attachment/Attachment.module.css +1 -1
  6. package/es/AttachmentViewer/Attachment.js +96 -41
  7. package/es/AttachmentViewer/AttachmentViewer.js +8 -8
  8. package/es/AttachmentViewer/AttachmentViewer.module.css +9 -9
  9. package/es/AttachmentViewer/utils.js +19 -1
  10. package/es/ChannelIcon/ChannelIcon.module.css +2 -2
  11. package/es/DotProvider/hooks/useDotProvider.js +2 -2
  12. package/es/Drawer/Drawer.module.css +1 -1
  13. package/es/FormAction/FormAction.module.css +1 -1
  14. package/es/IconButton/IconButton.module.css +2 -2
  15. package/es/Message/Message.js +1 -1
  16. package/es/Message/Message.module.css +1 -1
  17. package/es/MessageBanner/MessageBanner.module.css +1 -1
  18. package/es/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +3 -3
  19. package/es/Onboarding/css/Onboarding.module.css +2 -2
  20. package/es/PlusIcon/PlusIcon.module.css +1 -1
  21. package/es/TagWithIcon/TagWithIcon.module.css +2 -2
  22. package/es/ToastMessage/ToastMessage.module.css +8 -8
  23. package/es/Upload/Upload.module.css +1 -1
  24. package/es/avatar/AvatarClose/AvatarClose.module.css +3 -3
  25. package/es/avatar/AvatarCollision/AvatarCollision.module.css +3 -3
  26. package/es/avatar/AvatarIcon/AvatarIcon.module.css +1 -1
  27. package/es/avatar/AvatarStatus/AvatarStatus.module.css +2 -2
  28. package/es/avatar/AvatarThread/AvatarThread.module.css +2 -2
  29. package/es/avatar/AvatarUser/AvatarUser.module.css +3 -3
  30. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +1 -1
  31. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +2 -2
  32. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +1 -1
  33. package/es/errorstate/EmptyStates.module.css +1 -1
  34. package/es/errorstate/WillBack/WillBack.module.css +1 -1
  35. package/es/form/fields/CheckBoxField/CheckBoxField.js +7 -9
  36. package/es/form/fields/CurrencyField/CurrencyField.js +5 -5
  37. package/es/form/fields/DateField/DateField.js +7 -8
  38. package/es/form/fields/Fields.module.css +12 -9
  39. package/es/form/fields/MultiSelectField/MultiSelectField.js +5 -6
  40. package/es/form/fields/RadioField/RadioField.js +1 -1
  41. package/es/form/fields/SelectField/SelectField.js +5 -6
  42. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +2 -2
  43. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +6 -8
  44. package/es/form/fields/TextBoxField/TextBoxField.js +7 -7
  45. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  46. package/es/form/fields/TextareaField/TextareaField.js +6 -6
  47. package/es/form/layout/Section/ModuleFormSection.module.css +1 -1
  48. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  49. package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
  50. package/es/list/DotNew/DotNew.module.css +1 -1
  51. package/es/list/ListStencils/ListStencils.module.css +3 -3
  52. package/es/list/SecondaryText/SecondaryText.module.css +4 -4
  53. package/es/list/SecondryPanel/SecondryPanel.module.css +1 -1
  54. package/es/list/Subject/Subject.module.css +2 -2
  55. package/es/list/TagNew/TagNew.module.css +1 -1
  56. package/es/list/Thread/Thread.module.css +1 -1
  57. package/es/list/listCommon.module.css +3 -3
  58. package/es/list/status/StatusDropdown/StatusDropdown.js +2 -2
  59. package/es/list/status/StatusDropdown/StatusDropdown.module.css +1 -1
  60. package/es/list/status/StatusListItem/StatusListItem.module.css +2 -2
  61. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +1 -1
  62. package/es/lookup/Lookup/Lookup.js +2 -1
  63. package/es/lookup/Lookup/Lookup.module.css +6 -1
  64. package/es/lookup/Lookup/props/propTypes.js +1 -0
  65. package/es/lookup/Section/LookupSection.module.css +1 -1
  66. package/es/lookup/header/Title/LookupTitle.module.css +1 -1
  67. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +4 -4
  68. package/es/lookup/header/lookupHeaderCommon.module.css +1 -1
  69. package/es/setup/header/Link/HeaderLink.module.css +2 -2
  70. package/es/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
  71. package/es/setup/table/Text/TableText.module.css +4 -4
  72. package/es/version2/GlobalNotification/GlobalNotification.module.css +2 -2
  73. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  74. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +4 -4
  75. package/es/version2/lookup/alertLookupCommonNew.module.css +1 -1
  76. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +6 -6
  77. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
  78. package/lib/ActionButton/ActionButton.module.css +2 -2
  79. package/lib/AlphabeticList/AlphabeticList.module.css +2 -2
  80. package/lib/Attachment/Attachment.module.css +1 -1
  81. package/lib/AttachmentViewer/Attachment.js +93 -45
  82. package/lib/AttachmentViewer/AttachmentViewer.js +8 -14
  83. package/lib/AttachmentViewer/AttachmentViewer.module.css +9 -9
  84. package/lib/AttachmentViewer/utils.js +21 -4
  85. package/lib/ChannelIcon/ChannelIcon.module.css +2 -2
  86. package/lib/DotProvider/hooks/useDotProvider.js +2 -2
  87. package/lib/Drawer/Drawer.module.css +1 -1
  88. package/lib/FormAction/FormAction.module.css +1 -1
  89. package/lib/IconButton/IconButton.module.css +2 -2
  90. package/lib/Message/Message.js +2 -2
  91. package/lib/Message/Message.module.css +1 -1
  92. package/lib/MessageBanner/MessageBanner.module.css +1 -1
  93. package/lib/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +3 -3
  94. package/lib/Onboarding/css/Onboarding.module.css +2 -2
  95. package/lib/PlusIcon/PlusIcon.module.css +1 -1
  96. package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
  97. package/lib/ToastMessage/ToastMessage.module.css +8 -8
  98. package/lib/Upload/Upload.module.css +1 -1
  99. package/lib/avatar/AvatarClose/AvatarClose.module.css +3 -3
  100. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +3 -3
  101. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +1 -1
  102. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +2 -2
  103. package/lib/avatar/AvatarThread/AvatarThread.module.css +2 -2
  104. package/lib/avatar/AvatarUser/AvatarUser.module.css +3 -3
  105. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +1 -1
  106. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +2 -2
  107. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +1 -1
  108. package/lib/errorstate/EmptyStates.module.css +1 -1
  109. package/lib/errorstate/WillBack/WillBack.module.css +1 -1
  110. package/lib/form/fields/CheckBoxField/CheckBoxField.js +7 -10
  111. package/lib/form/fields/CurrencyField/CurrencyField.js +4 -5
  112. package/lib/form/fields/DateField/DateField.js +6 -9
  113. package/lib/form/fields/Fields.module.css +12 -9
  114. package/lib/form/fields/MultiSelectField/MultiSelectField.js +5 -7
  115. package/lib/form/fields/RadioField/RadioField.js +1 -1
  116. package/lib/form/fields/SelectField/SelectField.js +5 -7
  117. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +2 -2
  118. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +5 -8
  119. package/lib/form/fields/TextBoxField/TextBoxField.js +6 -8
  120. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -2
  121. package/lib/form/fields/TextareaField/TextareaField.js +5 -6
  122. package/lib/form/layout/Section/ModuleFormSection.module.css +1 -1
  123. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  124. package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
  125. package/lib/list/DotNew/DotNew.module.css +1 -1
  126. package/lib/list/ListStencils/ListStencils.module.css +3 -3
  127. package/lib/list/SecondaryText/SecondaryText.module.css +4 -4
  128. package/lib/list/SecondryPanel/SecondryPanel.module.css +1 -1
  129. package/lib/list/Subject/Subject.module.css +2 -2
  130. package/lib/list/TagNew/TagNew.module.css +1 -1
  131. package/lib/list/Thread/Thread.module.css +1 -1
  132. package/lib/list/listCommon.module.css +3 -3
  133. package/lib/list/status/StatusDropdown/StatusDropdown.js +3 -3
  134. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +1 -1
  135. package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -2
  136. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +1 -1
  137. package/lib/lookup/Lookup/Lookup.js +2 -1
  138. package/lib/lookup/Lookup/Lookup.module.css +6 -1
  139. package/lib/lookup/Lookup/props/propTypes.js +1 -0
  140. package/lib/lookup/Section/LookupSection.module.css +1 -1
  141. package/lib/lookup/header/Title/LookupTitle.module.css +1 -1
  142. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +4 -4
  143. package/lib/lookup/header/lookupHeaderCommon.module.css +1 -1
  144. package/lib/setup/header/Link/HeaderLink.module.css +2 -2
  145. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
  146. package/lib/setup/table/Text/TableText.module.css +4 -4
  147. package/lib/version2/GlobalNotification/GlobalNotification.module.css +2 -2
  148. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  149. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +4 -4
  150. package/lib/version2/lookup/alertLookupCommonNew.module.css +1 -1
  151. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +6 -6
  152. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
  153. package/package.json +17 -15
  154. package/result.json +1 -1
  155. package/unittest/index.html +1 -1
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .dotted {
13
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
13
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
14
14
  }
15
15
 
16
16
  .font_regular {
@@ -27,7 +27,7 @@
27
27
 
28
28
  .font_semibold,
29
29
  .font_bold {
30
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
30
+ composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
31
31
  }
32
32
 
33
33
  .cursorPointer {
@@ -4,7 +4,7 @@
4
4
  font-size: var(--zd_font_size13) ;
5
5
  color: var(--zdt_tagnew_default_text);
6
6
  composes: inlineFlex from '../listCommon.module.css';
7
- composes: alignHorizontal from '~@zohodesk/components/lib/common/common.module.css';
7
+ composes: alignHorizontal from '~@zohodesk/components/es/common/common.module.css';
8
8
  transition: all var(--zd_transition2) ease 0s;
9
9
  opacity: 0;
10
10
  visibility: hidden;
@@ -27,7 +27,7 @@
27
27
  right: var(--zd_size8) ;
28
28
  }
29
29
  .align_right {
30
- composes: dInflex alignFend from '~@zohodesk/components/lib/common/common.module.css';
30
+ composes: dInflex alignFend from '~@zohodesk/components/es/common/common.module.css';
31
31
  }
32
32
  .align_right .count {
33
33
  position: relative;
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .inlineFlex {
7
- composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
7
+ composes: dInflex alignVertical from '~@zohodesk/components/es/common/common.module.css';
8
8
  }
9
9
 
10
10
  [dir=ltr] .avatarMargin {
@@ -16,14 +16,14 @@
16
16
  }
17
17
 
18
18
  .subject {
19
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
19
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
20
20
  font-size: var(--zd_font_size16) ;
21
21
  }
22
22
 
23
23
  /* css:lineheight-validation:ignore */
24
24
  .secondaryPanel {
25
25
  line-height: var(--zd_size18);
26
- composes: dflex alignVertical flexwrap from '~@zohodesk/components/lib/common/common.module.css';
26
+ composes: dflex alignVertical flexwrap from '~@zohodesk/components/es/common/common.module.css';
27
27
  }
28
28
 
29
29
  .statusColumn {
@@ -10,7 +10,7 @@ import Loader from '@zohodesk/svg/lib/Loader/Loader';
10
10
  import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
11
11
  import CommonEmptyState from "../../../emptystate/CommonEmptyState/CommonEmptyState";
12
12
  import StatusListItem from "../StatusListItem/StatusListItem";
13
- import commonStyle from '@zohodesk/components/lib/common/common.module.css';
13
+ import commonStyle from '@zohodesk/components/es/common/common.module.css';
14
14
  import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
15
15
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
16
16
  import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
@@ -52,7 +52,7 @@ export class StatusDropdown extends React.Component {
52
52
  togglePopup(e, boxPosition);
53
53
  }
54
54
 
55
- componentWillReceiveProps(nextProps) {
55
+ UNSAFE_componentWillReceiveProps(nextProps) {
56
56
  if (nextProps.options.length != this.props.options.length) {
57
57
  this.setState({
58
58
  options: nextProps.options
@@ -40,7 +40,7 @@
40
40
  visibility: visible;
41
41
  }
42
42
  .value {
43
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
43
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
44
44
  }
45
45
  .search {
46
46
  padding: var(--zd_size6) var(--zd_size20) 0 ;
@@ -34,11 +34,11 @@
34
34
  line-height: 1.5385;
35
35
  }
36
36
  .value {
37
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
37
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
38
38
  }
39
39
  .multiLineValue{
40
40
  word-break: break-word;
41
- composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
41
+ composes: clamp from '~@zohodesk/components/es/common/common.module.css';
42
42
  }
43
43
  [dir=ltr] .withBorder.active {
44
44
  border-left-color: var(--zdt_statuslistitem_default_active_border);
@@ -7,6 +7,6 @@
7
7
  .contentDiv {
8
8
  font-size: var(--zd_font_size20) ;
9
9
  font-family: var(--zd_semibold);
10
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
10
+ composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
11
11
  margin-top: var(--zd_size15) ;
12
12
  }
@@ -56,6 +56,7 @@ export default class Lookup extends Component {
56
56
  needFocusScope,
57
57
  customProps,
58
58
  isMinHeight,
59
+ containerClass,
59
60
  lookupClass
60
61
  } = this.props;
61
62
  const {
@@ -93,7 +94,7 @@ export default class Lookup extends Component {
93
94
  }, /*#__PURE__*/React.createElement(Container, {
94
95
  "data-drag-container": "true",
95
96
  isCover: false,
96
- className: isMinHeight ? `${style.wrapper}` : `${style.coverwrap}`
97
+ className: `${isMinHeight ? style.wrapper : style.coverwrap} ${style.containerWidth} ${containerClass}`
97
98
  }, children));
98
99
  return /*#__PURE__*/React.createElement(FreezeLayer, {
99
100
  align: "horizontal",
@@ -19,6 +19,10 @@
19
19
  margin: auto ;
20
20
  }
21
21
 
22
+ .containerWidth {
23
+ width: 100% ;
24
+ }
25
+
22
26
  /* Size */
23
27
  .smallSize {
24
28
  max-width: var(--zd_size470) ;
@@ -35,10 +39,11 @@
35
39
  .largeSize {
36
40
  max-width: 70% ;
37
41
  }
42
+
38
43
  .xlargeSize {
39
44
  max-width: 80% ;
40
45
  }
41
46
 
42
47
  .fullSize {
43
48
  max-width: 90% ;
44
- }
49
+ }
@@ -20,5 +20,6 @@ export const propTypes = {
20
20
  onClick: PropTypes.func,
21
21
  onClose: PropTypes.func,
22
22
  isMinHeight: PropTypes.bool,
23
+ containerClass: PropTypes.string,
23
24
  lookupClass: PropTypes.string
24
25
  };
@@ -2,7 +2,7 @@
2
2
  /* max-height: 80%; */
3
3
  /* min-height: 390px; */
4
4
  /* height: auto; */
5
- composes: flexgrow from '~@zohodesk/components/lib/common/common.module.css';
5
+ composes: flexgrow from '~@zohodesk/components/es/common/common.module.css';
6
6
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
7
7
  background-color: var(--zdt_lookupsection_bg);
8
8
  box-shadow: var(--zd_bs_lookupsection_shadow)
@@ -1,7 +1,7 @@
1
1
  .title {
2
2
  font-size: var(--zd_font_size16) ;
3
3
  font-family: var(--zd_semibold);
4
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
4
+ composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
5
5
  vertical-align: middle;
6
6
  word-break: break-all;
7
7
  cursor: initial;
@@ -11,11 +11,11 @@
11
11
  font-size: var(--zd_font_size14) ;
12
12
  color: var(--zdt_viewdropdown_empty_text);
13
13
  font-family: var(--zd_semibold);
14
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
14
+ composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
15
15
  padding: var(--zd_size12) var(--zd_size15) ;
16
16
  }
17
17
  .hide {
18
- composes: vishidden from '~@zohodesk/components/lib/common/common.module.css';
18
+ composes: vishidden from '~@zohodesk/components/es/common/common.module.css';
19
19
  }
20
20
  .container {
21
21
  position: relative;
@@ -25,7 +25,7 @@
25
25
  }
26
26
  /* Label Style */
27
27
  .labelCnt {
28
- composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
28
+ composes: dInflex alignVertical from '~@zohodesk/components/es/common/common.module.css';
29
29
  line-height: 1.6667;
30
30
  color: var(--zdt_viewdropdown_label_text);
31
31
  cursor: pointer;
@@ -33,7 +33,7 @@
33
33
  .labelText {
34
34
  font-size: var(--zd_font_size12) ;
35
35
  max-width: var(--zd_size180) ;
36
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
36
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
37
37
  }
38
38
  [dir=ltr] .labelText {
39
39
  margin-right: var(--zd_size5) ;
@@ -27,7 +27,7 @@
27
27
  /* position: absolute;
28
28
  right: 30px;
29
29
  top: 50%;
30
- composes: middleY from '~@zohodesk/components/lib/common/common.module.css'; */
30
+ composes: middleY from '~@zohodesk/components/es/common/common.module.css'; */
31
31
  }
32
32
  .para {
33
33
  font-size: var(--zd_font_size12) ;
@@ -1,5 +1,5 @@
1
1
  .container {
2
- composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
2
+ composes: dInflex alignVertical from '~@zohodesk/components/es/common/common.module.css';
3
3
  color: var(--zdt_headerlink_text);
4
4
  font-size: var(--zd_font_size12) ;
5
5
  }[dir=ltr] .container {
@@ -17,5 +17,5 @@
17
17
  border-bottom: 1px solid var(--zdt_headerlink_hover_text);
18
18
  }
19
19
  .text {
20
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
20
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
21
21
  }
@@ -1,5 +1,5 @@
1
1
  .title {
2
2
  font-size: var(--zd_font_size17) ;
3
- composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
3
+ composes: semibold from '~@zohodesk/components/es/common/common.module.css';
4
4
  color: var(--zdt_helptipstitle_text);
5
5
  }
@@ -1,8 +1,8 @@
1
1
  .bold {
2
- composes: bold from '~@zohodesk/components/lib/common/common.module.css';
2
+ composes: bold from '~@zohodesk/components/es/common/common.module.css';
3
3
  }
4
4
  .semiBold {
5
- composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
5
+ composes: semibold from '~@zohodesk/components/es/common/common.module.css';
6
6
  }
7
7
  .primaryColor {
8
8
  color: var(--zdt_tabletext_primary_text);
@@ -19,12 +19,12 @@
19
19
  .small {
20
20
  font-size: var(--zd_font_size13) ;
21
21
  max-width: 100% ;
22
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
22
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
23
23
  }
24
24
  .medium {
25
25
  font-size: var(--zd_font_size14) ;
26
26
  max-width: 100% ;
27
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
27
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
28
28
  }
29
29
  .heading {
30
30
  text-transform: uppercase;
@@ -79,7 +79,7 @@
79
79
  pointer-events: initial;
80
80
  color: var(--globalnotification_text_color);
81
81
  z-index: 1;
82
- composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
82
+ composes: wbreak from '~@zohodesk/components/es/common/common.module.css';
83
83
  width: 100% ;
84
84
  box-shadow: var(--zd_bs_globalnotification_container);
85
85
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
@@ -149,7 +149,7 @@
149
149
  .text {
150
150
  font-size: var(--zd_font_size14) ;
151
151
  font-family: var(--zd_semibold);
152
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
152
+ composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
153
153
  line-height: 1.4286;
154
154
  overflow: hidden;
155
155
  }
@@ -53,7 +53,7 @@
53
53
  font-size: var(--zd_font_size18) ;
54
54
  line-height: 1.2222;
55
55
  font-family: var(--zd_bold);
56
- composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
56
+ composes: ftsmooth wbreak from '~@zohodesk/components/es/common/common.module.css';
57
57
  vertical-align: middle;
58
58
  cursor: default;
59
59
  }
@@ -6,7 +6,7 @@
6
6
  color: var(--zdt_alertlookupnew_text);
7
7
  font-size: var(--zd_font_size14) ;
8
8
  line-height: 1.428;
9
- composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
9
+ composes: wbreak from '~@zohodesk/components/es/common/common.module.css';
10
10
  padding: var(--zd_size17) var(--zd_size30) var(--zd_size30) ;
11
11
  }
12
12
 
@@ -34,11 +34,11 @@
34
34
  height: 100% ;
35
35
  }
36
36
  .horizontalScroll {
37
- composes: oflowx from '~@zohodesk/components/lib/common/common.module.css';
37
+ composes: oflowx from '~@zohodesk/components/es/common/common.module.css';
38
38
  }
39
39
  .verticalScroll {
40
- composes: oflowy from '~@zohodesk/components/lib/common/common.module.css';
40
+ composes: oflowy from '~@zohodesk/components/es/common/common.module.css';
41
41
  }
42
42
  .bothScroll {
43
- composes: oflowA from '~@zohodesk/components/lib/common/common.module.css';
43
+ composes: oflowA from '~@zohodesk/components/es/common/common.module.css';
44
44
  }
@@ -15,7 +15,7 @@
15
15
  .noteTitle {
16
16
  font-size: var(--zd_font_size13) ;
17
17
  font-family: var(--zd_semibold);
18
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
18
+ composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
19
19
  }
20
20
 
21
21
  .noteUl {
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  .animation {
52
- composes: modeForward from '~@zohodesk/components/lib/common/animation.module.css';
52
+ composes: modeForward from '~@zohodesk/components/es/common/animation.module.css';
53
53
  }
54
54
 
55
55
  [dir=ltr] .animation {
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  .leftanimate {
66
- composes: slideLeft from '~@zohodesk/components/lib/common/animation.module.css';
66
+ composes: slideLeft from '~@zohodesk/components/es/common/animation.module.css';
67
67
  composes: animation;
68
68
  }
69
69
 
@@ -73,7 +73,7 @@
73
73
  }
74
74
 
75
75
  .rightanimate {
76
- composes: slideRight from '~@zohodesk/components/lib/common/animation.module.css';
76
+ composes: slideRight from '~@zohodesk/components/es/common/animation.module.css';
77
77
  composes: animation;
78
78
  composes: closeAnimation;
79
79
  }
@@ -83,7 +83,7 @@
83
83
  position: relative;
84
84
  color: var(--zdt_desktopnotification_message_text);
85
85
  font-size: var(--zd_font_size11) ;
86
- composes: dotted textCap from '~@zohodesk/components/lib/common/common.module.css';
86
+ composes: dotted textCap from '~@zohodesk/components/es/common/common.module.css';
87
87
  height: var(--zd_size33) ;
88
88
  transition: padding var(--zd_transition3), height var(--zd_transition3);
89
89
  border-top: 1px solid var(--zdt_desktopnotification_message_border);
@@ -110,7 +110,7 @@
110
110
  font-size: var(--zd_font_size15) ;
111
111
  line-height: 1.3333;
112
112
  font-family: var(--zd_semibold);
113
- composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
113
+ composes: ftsmooth wbreak from '~@zohodesk/components/es/common/common.module.css';
114
114
  }
115
115
 
116
116
  .subTitleMargin {
@@ -120,7 +120,7 @@
120
120
  .infoText {
121
121
  font-size: var(--zd_font_size14) ;
122
122
  line-height: 1.43;
123
- composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
123
+ composes: wbreak from '~@zohodesk/components/es/common/common.module.css';
124
124
  }
125
125
 
126
126
  .secondaryInfo {
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .title {
17
- composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
17
+ composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
18
18
  }
19
19
 
20
20
  [dir=ltr] .title {
@@ -89,7 +89,7 @@
89
89
 
90
90
  /* Secondary Header */
91
91
  .secondary_header {
92
- composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
92
+ composes: wbreak from '~@zohodesk/components/es/common/common.module.css';
93
93
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
94
94
  }
95
95
  [dir=ltr] .secondary_header {
@@ -114,14 +114,14 @@
114
114
 
115
115
  .txt,
116
116
  .subTxt {
117
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
117
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
118
118
  /* css:theme-validation:ignore */
119
119
  color: var(--buttonText);
120
120
  }
121
121
 
122
122
  .arrowWrapper {
123
123
  position: relative;
124
- composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
124
+ composes: offSelection from '~@zohodesk/components/es/common/common.module.css';
125
125
  cursor: pointer;
126
126
  }
127
127
 
@@ -5,7 +5,7 @@
5
5
  }
6
6
  .container {
7
7
  composes: varClass;
8
- composes: h100 from '~@zohodesk/components/lib/common/common.module.css';
8
+ composes: h100 from '~@zohodesk/components/es/common/common.module.css';
9
9
  list-style: none;
10
10
  pointer-events: initial;
11
11
  margin: 0 ;
@@ -27,7 +27,7 @@
27
27
  padding: var(--zd_size3) 0 ;
28
28
  }
29
29
  .heading {
30
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
30
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
31
31
  max-width: 100% ;
32
32
  }
33
33
  .list {
@@ -119,7 +119,7 @@
119
119
 
120
120
  .atatchName,
121
121
  .attachSize {
122
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
122
+ composes: dotted from '~@zohodesk/components/es/common/common.module.css';
123
123
  }
124
124
 
125
125
  .medium .attachSize {
@@ -10,7 +10,9 @@ exports.isBrowserSupportedFile = isBrowserSupportedFile;
10
10
 
11
11
  var _General = require("../utils/General");
12
12
 
13
- var UNASSIGNED = 'Unassigned';
13
+ var _utils = require("./utils");
14
+
15
+ // const UNASSIGNED = 'Unassigned';
14
16
  var BROWSER_SUPPORTED_FILES = ['pdf', 'text', 'txt', 'css', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'ico', 'sh', 'mp3', 'wav', 'ogg'];
15
17
 
16
18
  function isAudioFile(fileName) {
@@ -32,55 +34,101 @@ function isBrowserSupportedFile(fileName) {
32
34
  }
33
35
 
34
36
  function getAttachmentIconDetails(fileName) {
35
- var _getExtensionFromFile;
36
-
37
- var extension = (_getExtensionFromFile = getExtensionFromFileName(fileName)) === null || _getExtensionFromFile === void 0 ? void 0 : _getExtensionFromFile.toLowerCase();
38
- if (!extension) return 'ZD-GN-fileUnknown';
39
- var imageExtensions = ['jpeg', 'jpg', 'png', 'apng', 'gif', 'bmp', 'tiff', 'tif', 'ico', 'svg', 'heic', 'webp'];
40
- var docExtensions = ['txt'];
41
- var pdfExtensions = ['pdf'];
42
- var htmlExtensions = ['html', 'htm', 'xhtml'];
43
- var pptExtensions = ['ppt', 'pps', 'odp', 'sxi', 'pptx', 'ppsx', 'pot', 'potx', 'key'];
44
- var zipExtensions = ['rar', 'jar', 'zip'];
45
- var wordExtensions = ['doc', 'docx', 'sxw', 'odt', 'docm', 'dot', 'dotm', 'dotx', 'rtf', 'pages'];
46
- var xmlExtensions = ['xml'];
47
- var sheetExtensions = ['xls', 'xlsx', 'xlsm', 'xlsb', 'sxc', 'ods', 'csv', 'tsv', 'numbers'];
48
- var audioExtensions = ['mp3', 'wav', 'wma', 'aac', 'm4r', 'ogg', 'opus'];
49
- var videoExtensions = ['mp4', 'mkv', 'mov', 'mpeg', 'flv', 'wmv', 'avi', 'webm', 'ogv'];
50
- var mailExtensions = ['eml', 'msg'];
51
- var linuxExtensions = ['sh', 'bin'];
52
- var cssExtensions = ['css'];
53
- var exeExtensions = ['exe'];
54
- var eventExtensions = ['ics'];
55
- if (imageExtensions.includes(extension)) return 'ZD-EF-fileImage';
56
- if (docExtensions.includes(extension)) return 'ZD-GN-fileDoc';
57
- if (pdfExtensions.includes(extension)) return 'ZD-EF-filePdf';
58
- if (pptExtensions.includes(extension)) return 'ZD-GN-filePpt';
59
- if (zipExtensions.includes(extension)) return 'ZD-EF-fileZip';
60
-
61
- if (wordExtensions.includes(extension)) {
62
- var _navigator$platform;
63
-
64
- var OSName = ((_navigator$platform = navigator.platform) === null || _navigator$platform === void 0 ? void 0 : _navigator$platform.toLowerCase()) || '';
37
+ var extension = (getExtensionFromFileName(fileName) || '').toLowerCase();
38
+
39
+ if (!extension) {
40
+ return 'ZD-GN-fileUnknown';
41
+ }
42
+
43
+ var image = _utils.SUPPORTED_FILE_EXTENSIONS.image,
44
+ doc = _utils.SUPPORTED_FILE_EXTENSIONS.doc,
45
+ pdf = _utils.SUPPORTED_FILE_EXTENSIONS.pdf,
46
+ html = _utils.SUPPORTED_FILE_EXTENSIONS.html,
47
+ ppt = _utils.SUPPORTED_FILE_EXTENSIONS.ppt,
48
+ zip = _utils.SUPPORTED_FILE_EXTENSIONS.zip,
49
+ word = _utils.SUPPORTED_FILE_EXTENSIONS.word,
50
+ xml = _utils.SUPPORTED_FILE_EXTENSIONS.xml,
51
+ sheet = _utils.SUPPORTED_FILE_EXTENSIONS.sheet,
52
+ audio = _utils.SUPPORTED_FILE_EXTENSIONS.audio,
53
+ video = _utils.SUPPORTED_FILE_EXTENSIONS.video,
54
+ mail = _utils.SUPPORTED_FILE_EXTENSIONS.mail,
55
+ linux = _utils.SUPPORTED_FILE_EXTENSIONS.linux,
56
+ css = _utils.SUPPORTED_FILE_EXTENSIONS.css,
57
+ exe = _utils.SUPPORTED_FILE_EXTENSIONS.exe,
58
+ event = _utils.SUPPORTED_FILE_EXTENSIONS.event;
59
+
60
+ if (image.includes(extension)) {
61
+ return 'ZD-EF-fileImage';
62
+ }
63
+
64
+ if (doc.includes(extension)) {
65
+ return 'ZD-GN-fileDoc';
66
+ }
67
+
68
+ if (pdf.includes(extension)) {
69
+ return 'ZD-EF-filePdf';
70
+ }
71
+
72
+ if (ppt.includes(extension)) {
73
+ return 'ZD-GN-filePpt';
74
+ }
75
+
76
+ if (zip.includes(extension)) {
77
+ return 'ZD-EF-fileZip';
78
+ }
79
+
80
+ if (word.includes(extension)) {
81
+ var OSName = (navigator.platform || '').toLowerCase();
65
82
  return OSName.includes('mac') || OSName.includes('linux') ? 'ZD-EF-fileOffice' : 'ZD-EF-fileWord';
66
83
  }
67
84
 
68
- if (xmlExtensions.includes(extension)) return 'ZD-EF-fileXml';
69
- if (sheetExtensions.includes(extension)) return 'ZD-GN-fileSheet';
70
- if (audioExtensions.includes(extension)) return 'ZD-EF-fileMp3';
71
- if (videoExtensions.includes(extension)) return 'ZD-EF-fileMp4';
72
- if (mailExtensions.includes(extension)) return 'ZD-GN-fileMail';
73
- if (linuxExtensions.includes(extension)) return 'ZD-EF-linux';
74
- if (cssExtensions.includes(extension)) return 'ZD-EF-clrCss';
75
- if (exeExtensions.includes(extension)) return 'ZD-EF-exe';
76
- if (eventExtensions.includes(extension)) return 'ZD-TK-event';
85
+ if (xml.includes(extension)) {
86
+ return 'ZD-EF-fileXml';
87
+ }
88
+
89
+ if (sheet.includes(extension)) {
90
+ return 'ZD-GN-fileSheet';
91
+ }
92
+
93
+ if (audio.includes(extension)) {
94
+ return 'ZD-EF-fileMp3';
95
+ }
96
+
97
+ if (video.includes(extension)) {
98
+ return 'ZD-EF-fileMp4';
99
+ }
100
+
101
+ if (mail.includes(extension)) {
102
+ return 'ZD-GN-fileMail';
103
+ }
104
+
105
+ if (linux.includes(extension)) {
106
+ return 'ZD-EF-linux';
107
+ }
108
+
109
+ if (css.includes(extension)) {
110
+ return 'ZD-EF-clrCss';
111
+ }
112
+
113
+ if (exe.includes(extension)) {
114
+ return 'ZD-EF-exe';
115
+ }
116
+
117
+ if (event.includes(extension)) {
118
+ return 'ZD-TK-event';
119
+ }
120
+
121
+ if (html.includes(extension)) {
122
+ var browser = ((0, _General.getBrowserWithVersion)() || '').toLowerCase();
123
+
124
+ if (browser.includes('chrome') || browser.includes('safari')) {
125
+ return 'ZD-EF-fileXml';
126
+ }
77
127
 
78
- if (htmlExtensions.includes(extension)) {
79
- var _getBrowserWithVersio;
128
+ if (browser.includes('ie') || browser.includes('edge')) {
129
+ return 'ZD-EF-explorer';
130
+ }
80
131
 
81
- var browser = ((_getBrowserWithVersio = (0, _General.getBrowserWithVersion)()) === null || _getBrowserWithVersio === void 0 ? void 0 : _getBrowserWithVersio.toLowerCase()) || '';
82
- if (browser.includes('chrome') || browser.includes('safari')) return 'ZD-EF-fileXml';
83
- if (browser.includes('ie') || browser.includes('edge')) return 'ZD-EF-explorer';
84
132
  return 'ZD-EF-firebox';
85
133
  }
86
134