@zohodesk/dot 1.0.0-beta.219 → 1.0.0-beta.221

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 (112) hide show
  1. package/README.md +5 -1
  2. package/es/ActionButton/ActionButton.module.css +9 -25
  3. package/es/AlphabeticList/AlphabeticList.module.css +4 -7
  4. package/es/Attachment/Attachment.module.css +9 -20
  5. package/es/AttachmentViewer/AttachmentViewer.js +27 -0
  6. package/es/AttachmentViewer/AttachmentViewer.module.css +27 -82
  7. package/es/ChannelIcon/ChannelIcon.module.css +21 -30
  8. package/es/Drawer/Drawer.module.css +11 -59
  9. package/es/FlipCard/FlipCard.module.css +5 -14
  10. package/es/FormAction/FormAction.module.css +9 -34
  11. package/es/FreezeLayer/FreezeLayer.module.css +2 -6
  12. package/es/IconButton/IconButton.module.css +1 -1
  13. package/es/ImportantNotes/ImportantNotes.module.css +2 -7
  14. package/es/Loader/Loader.module.css +4 -25
  15. package/es/Message/Message.module.css +9 -42
  16. package/es/MessageBanner/MessageBanner.module.css +4 -12
  17. package/es/NewStar/NewStar.module.css +5 -42
  18. package/es/ToastMessage/ToastMessage.module.css +25 -96
  19. package/es/Upload/Upload.module.css +8 -27
  20. package/es/alert/AlertHeader/AlertHeader.module.css +3 -21
  21. package/es/alert/AlertLookup/AlertLookup.module.css +2 -6
  22. package/es/avatar/AvatarClose/AvatarClose.module.css +3 -9
  23. package/es/avatar/AvatarCollision/AvatarCollision.module.css +4 -18
  24. package/es/avatar/AvatarIcon/AvatarIcon.module.css +4 -3
  25. package/es/avatar/AvatarStatus/AvatarStatus.module.css +9 -59
  26. package/es/avatar/AvatarThread/AvatarThread.module.css +5 -55
  27. package/es/avatar/AvatarUser/AvatarUser.module.css +10 -81
  28. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +3 -10
  29. package/es/common/dot_animation.module.css +3 -16
  30. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +3 -11
  31. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +6 -19
  32. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -12
  33. package/es/emptystate/EditionPage/EditionPage.css +3 -9
  34. package/es/errorstate/EmptyStates.module.css +10 -13
  35. package/es/errorstate/Inconvenience/Inconvenience.module.css +0 -3
  36. package/es/errorstate/LinkText/LinkText.module.css +1 -1
  37. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
  38. package/es/errorstate/WillBack/WillBack.module.css +3 -1
  39. package/es/form/fields/Fields.module.css +14 -49
  40. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +7 -19
  41. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +1 -4
  42. package/es/form/fields/TextEditor/TextEditor.js +4 -1
  43. package/es/form/fields/TextEditor/TextEditor.module.css +72 -149
  44. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +2 -13
  45. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +4 -9
  46. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +16 -52
  47. package/es/layout/SubtabLayout/SubtabLayout.module.css +29 -55
  48. package/es/list/BluePrintStatus/BluePrintStatus.module.css +1 -4
  49. package/es/list/Comment/Comment.module.css +0 -5
  50. package/es/list/DotNew/DotNew.module.css +3 -3
  51. package/es/list/GridStencils/GridStencils.module.css +16 -70
  52. package/es/list/Icons/Icons.module.css +1 -1
  53. package/es/list/ListLayout/ListLayout.module.css +14 -22
  54. package/es/list/ListStencils/ListStencils.module.css +6 -11
  55. package/es/list/SecondaryText/SecondaryText.module.css +3 -13
  56. package/es/list/SentimentStatus/SentimentStatus.module.css +1 -4
  57. package/es/list/TagNew/TagNew.module.css +7 -14
  58. package/es/list/Thread/Thread.module.css +1 -13
  59. package/es/list/UserTime/UserTime.module.css +0 -6
  60. package/es/list/listCommon.module.css +1 -9
  61. package/es/list/status/StatusDropdown/StatusDropdown.module.css +6 -19
  62. package/es/list/status/StatusListItem/StatusListItem.module.css +15 -38
  63. package/es/lookup/Lookup/Lookup.module.css +2 -2
  64. package/es/lookup/Section/LookupSection.module.css +2 -2
  65. package/es/lookup/header/Close/LookupClose.module.css +4 -4
  66. package/es/lookup/header/Search/LookupSearch.module.css +12 -21
  67. package/es/lookup/header/TicketHeader/TicketHeader.module.css +2 -5
  68. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +3 -8
  69. package/es/lookup/header/lookupHeaderCommon.module.css +6 -16
  70. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +3 -12
  71. package/es/setup/header/Button/HeaderButton.module.css +1 -3
  72. package/es/setup/header/Link/HeaderLink.module.css +1 -7
  73. package/es/setup/header/Search/Search.module.css +8 -19
  74. package/es/setup/header/Views/Views.module.css +5 -15
  75. package/es/setup/helptips/Link/HelpTipsLink.module.css +0 -1
  76. package/es/setup/helptips/ListGroup/ListGroup.module.css +1 -6
  77. package/es/setup/table/TableData/SetupTableData.module.css +3 -11
  78. package/es/setup/table/TableHead/SetupTableHead.module.css +0 -4
  79. package/es/setup/table/TableRow/SetupTableRow.module.css +2 -6
  80. package/es/version2/AlertClose/AlertClose.module.css +1 -1
  81. package/es/version2/GlobalNotification/GlobalNotification.module.css +9 -44
  82. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +2 -25
  83. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +3 -7
  84. package/es/version2/lookup/alertLookupCommonNew.module.css +1 -8
  85. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -26
  86. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +10 -47
  87. package/lib/ActionButton/ActionButton.module.css +1 -0
  88. package/lib/FreezeLayer/FreezeLayer.js +4 -31
  89. package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  90. package/lib/form/fields/CurrencyField/CurrencyField.js +8 -9
  91. package/lib/form/fields/DateField/DateField.js +1 -1
  92. package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  93. package/lib/form/fields/PhoneField/PhoneField.js +1 -1
  94. package/lib/form/fields/RadioField/RadioField.js +1 -1
  95. package/lib/form/fields/SelectField/SelectField.js +1 -1
  96. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -7
  97. package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
  98. package/lib/form/fields/TextEditor/TextEditor.module.css +2 -13
  99. package/lib/form/fields/TextareaField/TextareaField.js +1 -1
  100. package/lib/list/status/StatusDropdown/StatusDropdown.js +37 -44
  101. package/lib/setup/header/Views/Views.js +2 -2
  102. package/lib/utils/General.js +24 -0
  103. package/package.json +1 -1
  104. package/lib/AttachmentViewer/Attachment.js +0 -28
  105. package/lib/AttachmentViewer/AttachmentImage.js +0 -129
  106. package/lib/AttachmentViewer/AttachmentViewer.js +0 -618
  107. package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -346
  108. package/lib/AttachmentViewer/utils.js +0 -134
  109. package/lib/Provider/Config.js +0 -21
  110. package/lib/common/dot_animation.module.css +0 -27
  111. package/lib/common/dot_common.module.css +0 -4
  112. package/lib/deprecated/utils/General.js +0 -29
@@ -34,19 +34,15 @@
34
34
  -webkit-line-clamp: 2;
35
35
  }
36
36
  .checkboxText {
37
+ padding-left: var(--zd_size6);
37
38
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
38
39
  line-height: normal;
39
40
  }
40
- [dir=ltr] .checkboxText {
41
- padding-left: var(--zd_size6);
42
- }
43
- [dir=rtl] .checkboxText {
44
- padding-right: var(--zd_size6);
45
- }
46
41
  .cbTextPointer {
47
42
  cursor: pointer;
48
43
  }
49
- .disabled, .readonly {
44
+ .disabled,
45
+ .readonly {
50
46
  cursor: not-allowed;
51
47
  }
52
48
  .cbTextReadonly,
@@ -54,18 +50,12 @@
54
50
  .readonly .fieldLabel {
55
51
  --label_cursor: not-allowed;
56
52
  }
57
- [dir=ltr] .radio {
53
+ .radio {
58
54
  margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0;
59
55
  }
60
- [dir=rtl] .radio {
61
- margin: var(--zd_size5) 0 var(--zd_size5) var(--zd_size32);
62
- }
63
- [dir=ltr] .duration {
56
+ .duration {
64
57
  margin-right: var(--zd_size15);
65
58
  }
66
- [dir=rtl] .duration {
67
- margin-left: var(--zd_size15);
68
- }
69
59
  .durationWidth {
70
60
  width: var(--zd_size94);
71
61
  }
@@ -79,8 +69,8 @@
79
69
  }
80
70
  .phoneIcon {
81
71
  color: var(--zdt_fields_phoneicon_icon);
82
- display: inline-block;
83
72
  margin: var(--zd_size15) var(--zd_size10) 0 var(--zd_size10);
73
+ display: inline-block;
84
74
  cursor: pointer;
85
75
  }
86
76
  .phoneIcon:hover {
@@ -99,13 +89,8 @@
99
89
  .lockIcon,
100
90
  .infoIcon {
101
91
  color: var(--zdt_fields_lockicon_icon);
102
- composes: dInflex from '~@zohodesk/components/lib/common/common.module.css';
103
- }
104
- [dir=ltr] .lockIcon, [dir=ltr] .infoIcon {
105
92
  margin-left: var(--zd_size5);
106
- }
107
- [dir=rtl] .lockIcon, [dir=rtl] .infoIcon {
108
- margin-right: var(--zd_size5);
93
+ composes: dInflex from '~@zohodesk/components/lib/common/common.module.css';
109
94
  }
110
95
  /* .infoIcon {
111
96
  opacity: 0;
@@ -123,25 +108,15 @@
123
108
  }
124
109
  .timeFormat {
125
110
  font-size: var(--zd_font_size11);
126
- color: var(--zdt_fields_lockicon_icon);
127
- }
128
- [dir=ltr] .timeFormat {
129
111
  margin-left: var(--zd_size4);
130
- }
131
- [dir=rtl] .timeFormat {
132
- margin-right: var(--zd_size4);
112
+ color: var(--zdt_fields_lockicon_icon);
133
113
  }
134
114
  .newTab {
115
+ margin-left: var(--zd_size6);
116
+ cursor: pointer;
135
117
  color: var(--zdt_fields_lockicon_icon);
136
118
  font-size: 0;
137
119
  display: none;
138
- cursor: pointer;
139
- }
140
- [dir=ltr] .newTab {
141
- margin-left: var(--zd_size6);
142
- }
143
- [dir=rtl] .newTab {
144
- margin-right: var(--zd_size6);
145
120
  }
146
121
  .newTab:hover {
147
122
  color: var(--zdt_fields_phoneicon_icon);
@@ -156,28 +131,18 @@
156
131
  }
157
132
  .labelMandatory:after {
158
133
  content: '*';
159
- color: var(--zdt_fields_lockicon_hover_icon);
160
- }
161
- [dir=ltr] .labelMandatory:after {
162
134
  padding-left: var(--zd_size2);
163
- }
164
- [dir=rtl] .labelMandatory:after {
165
- padding-right: var(--zd_size2);
135
+ color: var(--zdt_fields_lockicon_hover_icon);
166
136
  }
167
137
  .ePhiTag {
168
138
  composes: flexshrink from '~@zohodesk/components/lib/common/common.module.css';
169
139
  color: var(--zdt_fields_phitag_text);
170
- font-size: var(--zd_font_size12);
171
- height: var(--zd_size18);
172
- line-height: var(--zd_size18);
173
140
  background-color: var(--zdt_fields_phitag_bg);
174
141
  border: 1px solid var(--zdt_fields_phitag_border);
142
+ font-size: var(--zd_font_size12);
175
143
  padding: 0 var(--zd_size5);
176
144
  border-radius: var(--zd_size3);
177
- }
178
- [dir=ltr] .ePhiTag {
179
145
  margin-left: var(--zd_size8);
180
- }
181
- [dir=rtl] .ePhiTag {
182
- margin-right: var(--zd_size8);
146
+ height: var(--zd_size18);
147
+ line-height: var(--zd_size18);
183
148
  }
@@ -1,28 +1,26 @@
1
1
  .tag {
2
2
  max-width: 100%;
3
3
  }
4
- [dir=ltr] .moreLess, [dir=ltr] .tag {
4
+ .moreLess,
5
+ .tag {
5
6
  margin: 0 var(--zd_size6) var(--zd_size6) 0;
6
7
  }
7
- [dir=rtl] .moreLess, [dir=rtl] .tag {
8
- margin: 0 0 var(--zd_size6) var(--zd_size6);
9
- }
10
8
  .input {
11
9
  height: var(--zd_size20);
12
- width: 100%;
13
10
  margin-bottom: var(--zd_size4);
11
+ width: 100%;
14
12
  }
15
13
  .viewpopNew {
16
14
  max-height: var(--zd_size250);
17
15
  }
18
16
  .tagDiv {
19
- max-height: var(--zd_size160);
20
17
  margin-top: var(--zd_size5);
18
+ max-height: var(--zd_size160);
21
19
  }
22
20
  .hasBorder {
23
- transition: border var(--zd_transition2) linear 0s;
24
21
  border-bottom-style: solid;
25
22
  border-bottom-width: 1px;
23
+ transition: border var(--zd_transition2) linear 0s;
26
24
  }
27
25
  .borderColor_transparent {
28
26
  border-bottom-color: var(--zdt_tagsmultiselect_transparent_border);
@@ -66,15 +64,10 @@
66
64
  font-size: 0;
67
65
  }
68
66
  .newTagLabel {
67
+ margin-right: var(--zd_size5);
69
68
  color: var(--zdt_tagsmultiselect_labelt_text);
70
69
  composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
71
70
  }
72
- [dir=ltr] .newTagLabel {
73
- margin-right: var(--zd_size5);
74
- }
75
- [dir=rtl] .newTagLabel {
76
- margin-left: var(--zd_size5);
77
- }
78
71
  .dotted {
79
72
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
80
73
  }
@@ -94,13 +87,8 @@
94
87
  .custmInp {
95
88
  position: absolute;
96
89
  top: 0;
97
- width: 100%;
98
- }
99
- [dir=ltr] .custmInp {
100
90
  left: 0;
101
- }
102
- [dir=rtl] .custmInp {
103
- right: 0;
91
+ width: 100%;
104
92
  }
105
93
  .newTagText {
106
94
  color: var(--zdt_tagsmultiselect_more_text);
@@ -1,9 +1,6 @@
1
1
  .count {
2
2
  color: var(--zdt_tagsmultiselectField_count_text);
3
3
  font-size: var(--zd_font_size12);
4
- word-break: break-word;
5
- }[dir=ltr] .count {
6
4
  margin-left: var(--zd_size4);
7
- }[dir=rtl] .count {
8
- margin-right: var(--zd_size4);
5
+ word-break: break-word;
9
6
  }
@@ -54,6 +54,7 @@ export default class TextEditor extends Component {
54
54
  needEditorFocus = true,
55
55
  handleDropUpload,
56
56
  fontFamily,
57
+ fontSize,
57
58
  initCallback,
58
59
  handleAlertMessage,
59
60
  needInlineAttachment
@@ -92,7 +93,7 @@ export default class TextEditor extends Component {
92
93
  }
93
94
 
94
95
  defaultObj = Object.assign(defaultObj, editorOptions);
95
- ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback);
96
+ ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback, fontSize);
96
97
  ZohoDeskEditor.create && ZohoDeskEditor.create(defaultObj);
97
98
  }
98
99
  }
@@ -405,6 +406,7 @@ TextEditor.defaultProps = {
405
406
  type: 'large',
406
407
  changeEditorContent: false,
407
408
  fontFamily: 'Lato',
409
+ fontSize: '16',
408
410
  shouldUpdateContent: true,
409
411
  i18nKeys: {},
410
412
  needInlineAttachment: false,
@@ -421,6 +423,7 @@ TextEditor.propTypes = {
421
423
  editorMode: PropTypes.string,
422
424
  editorOptions: PropTypes.object,
423
425
  fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
426
+ fontSize: PropTypes.string,
424
427
  getRef: PropTypes.func,
425
428
  handleAlertMessage: PropTypes.func,
426
429
  handleDropUpload: PropTypes.func,