@zohodesk/dot 1.0.0-temp-73 → 1.0.0-temp-76

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 (122) hide show
  1. package/README.md +8 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +2 -0
  3. package/assets/Appearance/default/mode/dotDefaultMode.module.css +2 -0
  4. package/es/ActionButton/ActionButton.module.css +25 -9
  5. package/es/AlphabeticList/AlphabeticList.module.css +7 -4
  6. package/es/Attachment/Attachment.module.css +20 -9
  7. package/es/AttachmentViewer/AttachmentViewer.module.css +82 -27
  8. package/es/ChannelIcon/ChannelIcon.module.css +30 -21
  9. package/es/Drawer/Drawer.module.css +59 -11
  10. package/es/FlipCard/FlipCard.module.css +14 -5
  11. package/es/FormAction/FormAction.module.css +34 -9
  12. package/es/FreezeLayer/FreezeLayer.module.css +6 -2
  13. package/es/IconButton/IconButton.module.css +1 -1
  14. package/es/ImportantNotes/ImportantNotes.js +5 -3
  15. package/es/ImportantNotes/ImportantNotes.module.css +7 -2
  16. package/es/Loader/Loader.module.css +25 -4
  17. package/es/Message/Message.module.css +42 -9
  18. package/es/MessageBanner/MessageBanner.module.css +12 -4
  19. package/es/NewStar/NewStar.module.css +42 -5
  20. package/es/ToastMessage/ToastMessage.module.css +96 -25
  21. package/es/Upload/Upload.module.css +27 -8
  22. package/es/alert/AlertHeader/AlertHeader.module.css +21 -3
  23. package/es/alert/AlertLookup/AlertLookup.module.css +6 -2
  24. package/es/avatar/AvatarClose/AvatarClose.module.css +9 -3
  25. package/es/avatar/AvatarCollision/AvatarCollision.module.css +18 -4
  26. package/es/avatar/AvatarIcon/AvatarIcon.module.css +3 -4
  27. package/es/avatar/AvatarStatus/AvatarStatus.module.css +59 -9
  28. package/es/avatar/AvatarThread/AvatarThread.module.css +55 -5
  29. package/es/avatar/AvatarUser/AvatarUser.module.css +81 -10
  30. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +10 -3
  31. package/es/common/dot_animation.module.css +16 -3
  32. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -3
  33. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +19 -6
  34. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +12 -4
  35. package/es/emptystate/EditionPage/EditionPage.css +9 -3
  36. package/es/errorstate/EmptyStates.module.css +13 -10
  37. package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -0
  38. package/es/errorstate/LinkText/LinkText.module.css +1 -1
  39. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
  40. package/es/errorstate/WillBack/WillBack.module.css +1 -3
  41. package/es/form/fields/Fields.module.css +49 -14
  42. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -7
  43. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +19 -7
  44. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +4 -1
  45. package/es/form/fields/TextEditor/TextEditor.js +4 -1
  46. package/es/form/fields/TextEditor/TextEditor.module.css +149 -72
  47. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +13 -2
  48. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +9 -4
  49. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +52 -16
  50. package/es/layout/SubtabLayout/SubtabLayout.module.css +55 -29
  51. package/es/list/BluePrintStatus/BluePrintStatus.module.css +4 -1
  52. package/es/list/Comment/Comment.module.css +5 -0
  53. package/es/list/DotNew/DotNew.module.css +3 -3
  54. package/es/list/GridStencils/GridStencils.module.css +70 -16
  55. package/es/list/Icons/Icons.module.css +1 -1
  56. package/es/list/ListLayout/ListLayout.module.css +22 -14
  57. package/es/list/ListStencils/ListStencils.module.css +11 -6
  58. package/es/list/SecondaryText/SecondaryText.module.css +13 -3
  59. package/es/list/SentimentStatus/SentimentStatus.module.css +4 -1
  60. package/es/list/TagNew/TagNew.module.css +14 -7
  61. package/es/list/Thread/Thread.module.css +13 -1
  62. package/es/list/UserTime/UserTime.module.css +6 -0
  63. package/es/list/listCommon.module.css +9 -1
  64. package/es/list/status/StatusDropdown/StatusDropdown.module.css +19 -6
  65. package/es/list/status/StatusListItem/StatusListItem.module.css +38 -15
  66. package/es/lookup/Lookup/Lookup.module.css +2 -2
  67. package/es/lookup/Section/LookupSection.module.css +2 -2
  68. package/es/lookup/header/Close/LookupClose.module.css +4 -4
  69. package/es/lookup/header/ModuleHeader/ModuleHeader.js +8 -3
  70. package/es/lookup/header/Search/LookupSearch.module.css +21 -12
  71. package/es/lookup/header/TicketHeader/TicketHeader.js +7 -4
  72. package/es/lookup/header/TicketHeader/TicketHeader.module.css +5 -2
  73. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +8 -3
  74. package/es/lookup/header/lookupHeaderCommon.module.css +21 -5
  75. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +12 -3
  76. package/es/setup/header/Button/HeaderButton.module.css +3 -1
  77. package/es/setup/header/Link/HeaderLink.module.css +7 -1
  78. package/es/setup/header/Search/Search.module.css +19 -8
  79. package/es/setup/header/Views/Views.module.css +15 -5
  80. package/es/setup/helptips/Link/HelpTipsLink.module.css +1 -0
  81. package/es/setup/helptips/ListGroup/ListGroup.module.css +6 -1
  82. package/es/setup/table/TableData/SetupTableData.module.css +11 -3
  83. package/es/setup/table/TableHead/SetupTableHead.module.css +4 -0
  84. package/es/setup/table/TableRow/SetupTableRow.module.css +6 -2
  85. package/es/version2/AlertClose/AlertClose.module.css +1 -1
  86. package/es/version2/GlobalNotification/GlobalNotification.module.css +44 -9
  87. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +25 -2
  88. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +7 -3
  89. package/es/version2/lookup/alertLookupCommonNew.module.css +8 -1
  90. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +26 -10
  91. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +47 -10
  92. package/lib/ActionButton/ActionButton.module.css +0 -1
  93. package/lib/AttachmentViewer/Attachment.js +28 -0
  94. package/lib/AttachmentViewer/AttachmentImage.js +129 -0
  95. package/lib/AttachmentViewer/AttachmentViewer.js +645 -0
  96. package/lib/AttachmentViewer/AttachmentViewer.module.css +346 -0
  97. package/lib/AttachmentViewer/utils.js +134 -0
  98. package/lib/FreezeLayer/FreezeLayer.js +31 -4
  99. package/lib/ImportantNotes/ImportantNotes.js +5 -3
  100. package/lib/Provider/Config.js +21 -0
  101. package/lib/common/dot_animation.module.css +27 -0
  102. package/lib/common/dot_common.module.css +4 -0
  103. package/lib/deprecated/utils/General.js +29 -0
  104. package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  105. package/lib/form/fields/CurrencyField/CurrencyField.js +9 -8
  106. package/lib/form/fields/DateField/DateField.js +1 -1
  107. package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  108. package/lib/form/fields/PhoneField/PhoneField.js +1 -1
  109. package/lib/form/fields/RadioField/RadioField.js +1 -1
  110. package/lib/form/fields/SelectField/SelectField.js +1 -1
  111. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +20 -11
  112. package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
  113. package/lib/form/fields/TextEditor/TextEditor.js +4 -1
  114. package/lib/form/fields/TextEditor/TextEditor.module.css +13 -2
  115. package/lib/form/fields/TextareaField/TextareaField.js +1 -1
  116. package/lib/list/status/StatusDropdown/StatusDropdown.js +44 -37
  117. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +8 -3
  118. package/lib/lookup/header/TicketHeader/TicketHeader.js +7 -4
  119. package/lib/lookup/header/lookupHeaderCommon.module.css +8 -2
  120. package/lib/setup/header/Views/Views.js +2 -2
  121. package/lib/utils/General.js +0 -24
  122. package/package.json +3 -3
@@ -1,9 +1,12 @@
1
1
 
2
- .rotate{
3
- animation-name: rotate;
2
+ [dir=ltr] .rotate{
3
+ animation-name: rotate-ltr ;
4
+ }
5
+ [dir=rtl] .rotate{
6
+ animation-name: rotate-rtl ;
4
7
  }
5
8
 
6
- @keyframes rotate {
9
+ @keyframes rotate-ltr {
7
10
  from {
8
11
  transform: rotate(0);
9
12
  }
@@ -11,4 +14,14 @@
11
14
  to {
12
15
  transform: rotate(360deg);
13
16
  }
17
+ }
18
+
19
+ @keyframes rotate-rtl {
20
+ from {
21
+ transform: rotate(0);
22
+ }
23
+
24
+ to {
25
+ transform: rotate(-360deg);
26
+ }
14
27
  }
@@ -1,10 +1,13 @@
1
1
  .container {
2
- padding: var(--zd_size3) var(--zd_size15);
3
- margin-left: var(--zd_size15);
4
2
  position: relative;
5
3
  line-height: var(--zd_size18);
6
4
  composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
5
+ padding: var(--zd_size3) var(--zd_size15);
7
6
  cursor: pointer;
7
+ }[dir=ltr] .container {
8
+ margin-left: var(--zd_size15);
9
+ }[dir=rtl] .container {
10
+ margin-right: var(--zd_size15);
8
11
  }
9
12
  .container:hover {
10
13
  background: var(--zdt_selectdropzdt_selectdropdown_hover_bg down_hover_bg);
@@ -16,9 +19,14 @@
16
19
  }
17
20
  .departIcon {
18
21
  color: var(--zdt_selectdropdown_departicon);
19
- margin-left: var(--zd_size5);
20
22
  cursor: pointer;
21
23
  }
24
+ [dir=ltr] .departIcon {
25
+ margin-left: var(--zd_size5);
26
+ }
27
+ [dir=rtl] .departIcon {
28
+ margin-right: var(--zd_size5);
29
+ }
22
30
  .rulesPopup {
23
31
  max-height: var(--zd_size260);
24
32
  padding: var(--zd_size10) 0;
@@ -9,16 +9,23 @@
9
9
  .title {
10
10
  padding-top: var(--zd_size6);
11
11
  }
12
- .default_arrow,
13
- .overlay_arrow {
12
+ [dir=ltr] .default_arrow, [dir=ltr] .overlay_arrow {
14
13
  padding: 0 0 0 var(--zd_size5);
15
14
  }
15
+ [dir=rtl] .default_arrow, [dir=rtl] .overlay_arrow {
16
+ padding: 0 var(--zd_size5) 0 0;
17
+ }
16
18
  .overlay_arrow {
17
19
  position: absolute;
18
- left: 100%;
19
20
  top: 50%;
20
21
  transform: translateY(-50%) perspective(1px);
21
22
  }
23
+ [dir=ltr] .overlay_arrow {
24
+ left: 100%;
25
+ }
26
+ [dir=rtl] .overlay_arrow {
27
+ right: 100%;
28
+ }
22
29
  .hoverIcon .arrow {
23
30
  opacity: 0;
24
31
  visibility: hidden;
@@ -44,12 +51,18 @@
44
51
  .cursor {
45
52
  cursor: pointer;
46
53
  }
47
- .dropBoxContainer {
54
+ [dir=ltr] .dropBoxContainer {
48
55
  text-align: left;
49
56
  }
50
- .iconBox {
57
+ [dir=rtl] .dropBoxContainer {
58
+ text-align: right;
59
+ }
60
+ [dir=ltr] .iconBox {
51
61
  margin-right: var(--zd_size4);
52
62
  }
63
+ [dir=rtl] .iconBox {
64
+ margin-left: var(--zd_size4);
65
+ }
53
66
  .iconBox > i {
54
67
  display: block;
55
68
  }
@@ -70,10 +83,10 @@
70
83
  }
71
84
  .hiddenInputElement{
72
85
  width: 100%;
73
- padding: 0;
74
86
  -webkit-appearance: none;
75
87
  -moz-appearance: none;
76
88
  appearance: none;
89
+ padding: 0;
77
90
  border: 0;
78
91
  }
79
92
  .groupName {
@@ -5,10 +5,16 @@
5
5
  --linkHoverColor: var(--zdt_commonEmptyState_default_link_hover);
6
6
  }
7
7
  .container {
8
+ composes: varClass;
8
9
  text-align: center;
10
+ }
11
+ [dir=ltr] .container {
9
12
  margin-left: auto;
10
13
  margin-right: auto;
11
- composes: varClass;
14
+ }
15
+ [dir=rtl] .container {
16
+ margin-right: auto;
17
+ margin-left: auto;
12
18
  }
13
19
  .fluid {
14
20
  max-width: var(--zd_size430);
@@ -44,17 +50,19 @@
44
50
  .linkDescWrapper {
45
51
  margin-top: var(--zd_size20);
46
52
  }
47
- .linkDesc,
48
- .desc {
53
+ [dir=ltr] .linkDesc, [dir=ltr] .desc {
49
54
  margin-right: var(--zd_size4);
50
55
  }
56
+ [dir=rtl] .linkDesc, [dir=rtl] .desc {
57
+ margin-left: var(--zd_size4);
58
+ }
51
59
  .desc {
52
60
  line-height: var(--zd_size19);
53
61
  }
54
62
  .link {
55
- cursor: pointer;
56
63
  color: var(--linkColor);
57
64
  display: inline-block;
65
+ cursor: pointer;
58
66
  }
59
67
  .link:hover {
60
68
  color: var(--linkHoverColor);
@@ -19,17 +19,23 @@
19
19
  }
20
20
  .footer {
21
21
  font-size: var(--zd_font_size13);
22
- margin: var(--zd_size10) 0 var(--zd_size80) 0;
23
22
  position: relative;
24
23
  display: inline-block;
24
+ margin: var(--zd_size10) 0 var(--zd_size80) 0;
25
25
  }
26
26
  .footer::before {
27
27
  content: '';
28
- border-top: var(--zd_size1) solid var(--zdt_editionpage_footer_text);
29
28
  position: absolute;
29
+ top: calc(var(--zd_size10) * -1);
30
+ border-top: var(--zd_size1) solid var(--zdt_editionpage_footer_text);
31
+ }
32
+ [dir=ltr] .footer::before {
30
33
  left: calc(var(--zd_size20) * -1);
31
34
  right: calc(var(--zd_size20) * -1);
32
- top: calc(var(--zd_size10) * -1);
35
+ }
36
+ [dir=rtl] .footer::before {
37
+ right: calc(var(--zd_size20) * -1);
38
+ left: calc(var(--zd_size20) * -1);
33
39
  }
34
40
  .button {
35
41
  color: var(--zdt_editionpage_primary_text);
@@ -1,5 +1,4 @@
1
- .container,
2
- .tabletContainer {
1
+ .container, .tabletContainer {
3
2
  text-align: center;
4
3
  background-color: var(--zdt_emptystate_default_bg);
5
4
  }
@@ -14,17 +13,24 @@
14
13
  }
15
14
  .header {
16
15
  min-width: var(--zd_size400);
17
- margin: 0 auto;
18
16
  display: inline-block;
17
+ margin: 0 auto;
18
+ }
19
+ [dir=ltr] .header {
19
20
  text-align: left;
20
21
  }
22
+ [dir=rtl] .header {
23
+ text-align: right;
24
+ }
21
25
  .title,
22
26
  .tabletTitle,
23
27
  .mobileTitle {
24
28
  composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
25
- margin-bottom: var(--zd_size5);
26
29
  letter-spacing: var(--zd_size1);
27
30
  }
31
+ .title, .tabletTitle, .mobileTitle {
32
+ margin-bottom: var(--zd_size5);
33
+ }
28
34
  .title {
29
35
  font-size: var(--zd_font_size50);
30
36
  line-height: var(--zd_size70);
@@ -52,15 +58,14 @@
52
58
  }
53
59
 
54
60
  .footer {
61
+ display: inline-block;
55
62
  text-align: center;
56
63
  margin: 0 auto;
57
- display: inline-block;
58
64
  }
59
65
  .footerWidth {
60
66
  min-width: var(--zd_size400);
61
67
  }
62
- .btmText,
63
- .tabletBtmText {
68
+ .btmText, .tabletBtmText {
64
69
  margin-bottom: var(--zd_size10);
65
70
  }
66
71
  .btmText {
@@ -69,9 +74,7 @@
69
74
  .tabletBtmText {
70
75
  font-size: var(--zd_font_size12);
71
76
  }
72
- .imageContainer,
73
- .tabletImageContainer,
74
- .mobileImageContainer {
77
+ .imageContainer, .tabletImageContainer, .mobileImageContainer {
75
78
  margin-bottom: var(--zd_size30);
76
79
  }
77
80
  .imageContainer {
@@ -1,4 +1,7 @@
1
1
  .imageContainer {
2
2
  margin-top: calc(var(--zd_size35) * -1);
3
+ }[dir=ltr] .imageContainer {
3
4
  margin-left: calc(var(--zd_size30) * -1);
5
+ }[dir=rtl] .imageContainer {
6
+ margin-right: calc(var(--zd_size30) * -1);
4
7
  }
@@ -1,6 +1,6 @@
1
1
  .text {
2
2
  color: var(--zdt_linktext_default_text);
3
3
  display: inline-block;
4
- cursor: pointer;
5
4
  font-size: var(--zd_font_size15);
5
+ cursor: pointer;
6
6
  }
@@ -1,8 +1,8 @@
1
1
  .headtingText {
2
2
  font-family: var(--zd_semibold);
3
3
  font-size: var(--zd_font_size50);
4
- margin-bottom: var(--zd_size5);
5
4
  letter-spacing: var(--zd_size1);
5
+ margin-bottom: var(--zd_size5);
6
6
  }
7
7
  .title,
8
8
  .headtingText,
@@ -13,9 +13,9 @@
13
13
  font-size: var(--zd_font_size30);
14
14
  }
15
15
  .lastBox {
16
- margin: 0 auto;
17
16
  line-height: var(--zd_size24);
18
17
  font-size: var(--zd_font_size14);
18
+ margin: 0 auto;
19
19
  margin-bottom: var(--zd_size20);
20
20
  }
21
21
  .lineText {
@@ -16,9 +16,7 @@
16
16
  .header {
17
17
  min-width: var(--zd_size450);
18
18
  }
19
- .imageContainer,
20
- .tabletImageContainer,
21
- .mobileImageContainer {
19
+ .imageContainer, .tabletImageContainer, .mobileImageContainer {
22
20
  margin-top: calc(var(--zd_size70) * -1);
23
21
  margin-bottom: var(--zd_size30);
24
22
  }
@@ -34,15 +34,19 @@
34
34
  -webkit-line-clamp: 2;
35
35
  }
36
36
  .checkboxText {
37
- padding-left: var(--zd_size6);
38
37
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
39
38
  line-height: normal;
40
39
  }
40
+ [dir=ltr] .checkboxText {
41
+ padding-left: var(--zd_size6);
42
+ }
43
+ [dir=rtl] .checkboxText {
44
+ padding-right: var(--zd_size6);
45
+ }
41
46
  .cbTextPointer {
42
47
  cursor: pointer;
43
48
  }
44
- .disabled,
45
- .readonly {
49
+ .disabled, .readonly {
46
50
  cursor: not-allowed;
47
51
  }
48
52
  .cbTextReadonly,
@@ -50,12 +54,18 @@
50
54
  .readonly .fieldLabel {
51
55
  --label_cursor: not-allowed;
52
56
  }
53
- .radio {
57
+ [dir=ltr] .radio {
54
58
  margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0;
55
59
  }
56
- .duration {
60
+ [dir=rtl] .radio {
61
+ margin: var(--zd_size5) 0 var(--zd_size5) var(--zd_size32);
62
+ }
63
+ [dir=ltr] .duration {
57
64
  margin-right: var(--zd_size15);
58
65
  }
66
+ [dir=rtl] .duration {
67
+ margin-left: var(--zd_size15);
68
+ }
59
69
  .durationWidth {
60
70
  width: var(--zd_size94);
61
71
  }
@@ -69,8 +79,8 @@
69
79
  }
70
80
  .phoneIcon {
71
81
  color: var(--zdt_fields_phoneicon_icon);
72
- margin: var(--zd_size15) var(--zd_size10) 0 var(--zd_size10);
73
82
  display: inline-block;
83
+ margin: var(--zd_size15) var(--zd_size10) 0 var(--zd_size10);
74
84
  cursor: pointer;
75
85
  }
76
86
  .phoneIcon:hover {
@@ -89,9 +99,14 @@
89
99
  .lockIcon,
90
100
  .infoIcon {
91
101
  color: var(--zdt_fields_lockicon_icon);
92
- margin-left: var(--zd_size5);
93
102
  composes: dInflex from '~@zohodesk/components/lib/common/common.module.css';
94
103
  }
104
+ [dir=ltr] .lockIcon, [dir=ltr] .infoIcon {
105
+ margin-left: var(--zd_size5);
106
+ }
107
+ [dir=rtl] .lockIcon, [dir=rtl] .infoIcon {
108
+ margin-right: var(--zd_size5);
109
+ }
95
110
  /* .infoIcon {
96
111
  opacity: 0;
97
112
  visibility: hidden;
@@ -108,15 +123,25 @@
108
123
  }
109
124
  .timeFormat {
110
125
  font-size: var(--zd_font_size11);
111
- margin-left: var(--zd_size4);
112
126
  color: var(--zdt_fields_lockicon_icon);
113
127
  }
128
+ [dir=ltr] .timeFormat {
129
+ margin-left: var(--zd_size4);
130
+ }
131
+ [dir=rtl] .timeFormat {
132
+ margin-right: var(--zd_size4);
133
+ }
114
134
  .newTab {
115
- margin-left: var(--zd_size6);
116
- cursor: pointer;
117
135
  color: var(--zdt_fields_lockicon_icon);
118
136
  font-size: 0;
119
137
  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);
120
145
  }
121
146
  .newTab:hover {
122
147
  color: var(--zdt_fields_phoneicon_icon);
@@ -131,18 +156,28 @@
131
156
  }
132
157
  .labelMandatory:after {
133
158
  content: '*';
134
- padding-left: var(--zd_size2);
135
159
  color: var(--zdt_fields_lockicon_hover_icon);
136
160
  }
161
+ [dir=ltr] .labelMandatory:after {
162
+ padding-left: var(--zd_size2);
163
+ }
164
+ [dir=rtl] .labelMandatory:after {
165
+ padding-right: var(--zd_size2);
166
+ }
137
167
  .ePhiTag {
138
168
  composes: flexshrink from '~@zohodesk/components/lib/common/common.module.css';
139
169
  color: var(--zdt_fields_phitag_text);
170
+ font-size: var(--zd_font_size12);
171
+ height: var(--zd_size18);
172
+ line-height: var(--zd_size18);
140
173
  background-color: var(--zdt_fields_phitag_bg);
141
174
  border: 1px solid var(--zdt_fields_phitag_border);
142
- font-size: var(--zd_font_size12);
143
175
  padding: 0 var(--zd_size5);
144
176
  border-radius: var(--zd_size3);
177
+ }
178
+ [dir=ltr] .ePhiTag {
145
179
  margin-left: var(--zd_size8);
146
- height: var(--zd_size18);
147
- line-height: var(--zd_size18);
180
+ }
181
+ [dir=rtl] .ePhiTag {
182
+ margin-right: var(--zd_size8);
148
183
  }
@@ -18,12 +18,20 @@ export default class TagsMultiSelect extends React.Component {
18
18
  this.state = {
19
19
  showAll: false
20
20
  };
21
- this.textBoxRef = /*#__PURE__*/React.createRef();
22
21
  this.emptySearchSVG = this.emptySearchSVG.bind(this);
23
22
  this.onShowAllClick = this.onShowAllClick.bind(this);
24
23
  this.getContainerRef = this.getContainerRef.bind(this);
25
24
  this.onScroll = this.onScroll.bind(this);
26
25
  this.getSelectedItemRef = this.getSelectedItemRef.bind(this);
26
+ this.textInputRef = this.textInputRef.bind(this);
27
+ }
28
+
29
+ textInputRef(el) {
30
+ const {
31
+ getTextInputRef
32
+ } = this.props;
33
+ this.inputEl = el;
34
+ getTextInputRef && getTextInputRef(el);
27
35
  }
28
36
 
29
37
  onScroll() {
@@ -58,10 +66,8 @@ export default class TagsMultiSelect extends React.Component {
58
66
 
59
67
  if (prevProps.isTagListLoading !== isTagListLoading && !isTagListLoading || isPopupReady && prevProps.tagsList.length !== tagsList.length) {
60
68
  setTimeout(() => {
61
- let textBoxElementRef = this.textBoxRef.current;
62
-
63
- if (textBoxElementRef && typeof textBoxElementRef.handleFocus === 'function') {
64
- this.textBoxRef.current.handleFocus();
69
+ if (this.inputEl) {
70
+ this.inputEl.focus();
65
71
  }
66
72
  }, 300);
67
73
  }
@@ -171,7 +177,6 @@ export default class TagsMultiSelect extends React.Component {
171
177
  onChange: handleChange,
172
178
  maxLength: 50,
173
179
  isReadOnly: isReadOnly,
174
- ref: this.textBoxRef,
175
180
  needBorder: false,
176
181
  placeHolder: tagsList.length ? '' : i18nKeys.placeholderText || '-',
177
182
  onClick: !isReadOnly ? handleTogglePopup : undefined,
@@ -179,7 +184,8 @@ export default class TagsMultiSelect extends React.Component {
179
184
  customTBoxWrap: style.custmInp,
180
185
  customTextBox: style.input
181
186
  },
182
- size: "xsmall"
187
+ size: "xsmall",
188
+ inputRef: this.textInputRef
183
189
  }, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
184
190
  isAnimate: true,
185
191
  isActive: isPopupReady,
@@ -251,6 +257,7 @@ TagsMultiSelect.propTypes = {
251
257
  deleteTag: PropTypes.func,
252
258
  getContainerRef: PropTypes.func,
253
259
  getTargetRef: PropTypes.func,
260
+ getTextInputRef: PropTypes.func,
254
261
  handleChange: PropTypes.func,
255
262
  handleKeyUp: PropTypes.func,
256
263
  handleTogglePopup: PropTypes.func,
@@ -1,26 +1,28 @@
1
1
  .tag {
2
2
  max-width: 100%;
3
3
  }
4
- .moreLess,
5
- .tag {
4
+ [dir=ltr] .moreLess, [dir=ltr] .tag {
6
5
  margin: 0 var(--zd_size6) var(--zd_size6) 0;
7
6
  }
7
+ [dir=rtl] .moreLess, [dir=rtl] .tag {
8
+ margin: 0 0 var(--zd_size6) var(--zd_size6);
9
+ }
8
10
  .input {
9
11
  height: var(--zd_size20);
10
- margin-bottom: var(--zd_size4);
11
12
  width: 100%;
13
+ margin-bottom: var(--zd_size4);
12
14
  }
13
15
  .viewpopNew {
14
16
  max-height: var(--zd_size250);
15
17
  }
16
18
  .tagDiv {
17
- margin-top: var(--zd_size5);
18
19
  max-height: var(--zd_size160);
20
+ margin-top: var(--zd_size5);
19
21
  }
20
22
  .hasBorder {
23
+ transition: border var(--zd_transition2) linear 0s;
21
24
  border-bottom-style: solid;
22
25
  border-bottom-width: 1px;
23
- transition: border var(--zd_transition2) linear 0s;
24
26
  }
25
27
  .borderColor_transparent {
26
28
  border-bottom-color: var(--zdt_tagsmultiselect_transparent_border);
@@ -64,10 +66,15 @@
64
66
  font-size: 0;
65
67
  }
66
68
  .newTagLabel {
67
- margin-right: var(--zd_size5);
68
69
  color: var(--zdt_tagsmultiselect_labelt_text);
69
70
  composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
70
71
  }
72
+ [dir=ltr] .newTagLabel {
73
+ margin-right: var(--zd_size5);
74
+ }
75
+ [dir=rtl] .newTagLabel {
76
+ margin-left: var(--zd_size5);
77
+ }
71
78
  .dotted {
72
79
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
73
80
  }
@@ -87,9 +94,14 @@
87
94
  .custmInp {
88
95
  position: absolute;
89
96
  top: 0;
90
- left: 0;
91
97
  width: 100%;
92
98
  }
99
+ [dir=ltr] .custmInp {
100
+ left: 0;
101
+ }
102
+ [dir=rtl] .custmInp {
103
+ right: 0;
104
+ }
93
105
  .newTagText {
94
106
  color: var(--zdt_tagsmultiselect_more_text);
95
107
  }
@@ -1,6 +1,9 @@
1
1
  .count {
2
2
  color: var(--zdt_tagsmultiselectField_count_text);
3
3
  font-size: var(--zd_font_size12);
4
- margin-left: var(--zd_size4);
5
4
  word-break: break-word;
5
+ }[dir=ltr] .count {
6
+ margin-left: var(--zd_size4);
7
+ }[dir=rtl] .count {
8
+ margin-right: var(--zd_size4);
6
9
  }
@@ -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,