@zohodesk/dot 1.0.0-temp-148 → 1.0.0-temp-150
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.
- package/README.md +26 -1
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +1 -1
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +1 -1
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +1 -1
- package/es/ActionButton/ActionButton.module.css +14 -14
- package/es/AlphabeticList/AlphabeticList.module.css +10 -10
- package/es/Attachment/Attachment.module.css +26 -24
- package/es/AttachmentViewer/AttachmentViewer.module.css +41 -41
- package/es/ChannelIcon/ChannelIcon.module.css +22 -22
- package/es/Drawer/Drawer.js +2 -3
- package/es/Drawer/Drawer.module.css +41 -40
- package/es/FormAction/FormAction.module.css +20 -20
- package/es/FreezeLayer/FreezeLayer.js +14 -2
- package/es/Hooks/Dragger/css/Dragger.module.css +3 -0
- package/es/Hooks/Dragger/useDragger.js +82 -0
- package/es/Hooks/Dragger/utils/DraggerUtil.js +66 -0
- package/es/IconButton/IconButton.module.css +2 -2
- package/es/Image/Image.module.css +1 -0
- package/es/ImportantNotes/ImportantNotes.module.css +5 -5
- package/es/Loader/Loader.module.css +1 -0
- package/es/Message/Message.module.css +9 -9
- package/es/MessageBanner/MessageBanner.module.css +7 -7
- package/es/NewStar/NewStar.module.css +18 -10
- package/es/Provider/Config.js +7 -0
- package/es/Separator/Separator.module.css +6 -6
- package/es/TagWithIcon/TagWithIcon.module.css +6 -6
- package/es/ToastMessage/ToastMessage.module.css +23 -23
- package/es/Upload/Upload.module.css +15 -15
- package/es/alert/AlertHeader/AlertHeader.module.css +12 -12
- package/es/alert/AlertLookup/AlertLookup.module.css +6 -6
- package/es/avatar/AvatarClose/AvatarClose.module.css +1 -1
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +7 -7
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +32 -32
- package/es/avatar/AvatarThread/AvatarThread.module.css +24 -24
- package/es/avatar/AvatarUser/AvatarUser.module.css +40 -40
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +4 -4
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -11
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +3 -3
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +13 -13
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +11 -11
- package/es/emptystate/EditionPage/EditionPage.css +13 -13
- package/es/errorstate/EmptyStates.module.css +18 -18
- package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -3
- package/es/errorstate/LinkText/LinkText.module.css +1 -1
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +8 -8
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
- package/es/errorstate/WillBack/WillBack.module.css +10 -10
- package/es/form/fields/Fields.module.css +26 -26
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +13 -13
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +3 -3
- package/es/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +84 -77
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +3 -2
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +3 -3
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +31 -31
- package/es/layout/SubtabLayout/SubtabLayout.module.css +32 -32
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +3 -3
- package/es/list/Comment/Comment.module.css +4 -4
- package/es/list/Dot/Dot.module.css +3 -3
- package/es/list/DotNew/DotNew.module.css +4 -4
- package/es/list/GridStencils/GridStencils.module.css +24 -24
- package/es/list/Icons/Icons.module.css +2 -2
- package/es/list/ListLayout/ListLayout.module.css +6 -6
- package/es/list/ListStencils/ListStencils.module.css +12 -12
- package/es/list/SecondaryText/SecondaryText.module.css +11 -11
- package/es/list/SentimentStatus/SentimentStatus.module.css +3 -3
- package/es/list/TagNew/TagNew.module.css +4 -4
- package/es/list/Thread/Thread.module.css +7 -7
- package/es/list/UserTime/UserTime.module.css +8 -8
- package/es/list/listCommon.module.css +4 -4
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +13 -13
- package/es/list/status/StatusListItem/StatusListItem.module.css +16 -16
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
- package/es/lookup/Lookup/Lookup.module.css +5 -5
- package/es/lookup/Section/LookupSection.module.css +1 -1
- package/es/lookup/Section/Section.js +1 -0
- package/es/lookup/header/Close/LookupClose.module.css +3 -3
- package/es/lookup/header/Search/LookupSearch.module.css +14 -14
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +2 -2
- package/es/lookup/header/Title/LookupTitle.module.css +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +11 -11
- package/es/lookup/header/lookupHeaderCommon.module.css +8 -8
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +3 -3
- package/es/setup/header/Button/HeaderButton.module.css +2 -2
- package/es/setup/header/Link/HeaderLink.module.css +5 -5
- package/es/setup/header/Search/Search.module.css +8 -8
- package/es/setup/header/Views/Views.module.css +4 -4
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
- package/es/setup/helptips/Link/HelpTipsLink.module.css +2 -2
- package/es/setup/helptips/ListGroup/ListGroup.module.css +3 -3
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
- package/es/setup/table/TableData/SetupTableData.module.css +6 -6
- package/es/setup/table/TableHead/SetupTableHead.module.css +5 -5
- package/es/setup/table/TableRow/SetupTableRow.module.css +5 -5
- package/es/setup/table/Text/TableText.module.css +2 -2
- package/es/version2/AlertClose/AlertClose.module.css +2 -2
- package/es/version2/GlobalNotification/GlobalNotification.module.css +13 -13
- package/es/version2/errorstate/V2_ErrorStates.module.css +17 -17
- package/es/version2/lookup/AlertHeader/AlertHeader.js +2 -2
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +14 -13
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +6 -6
- package/es/version2/lookup/alertLookupCommonNew.module.css +5 -5
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +14 -14
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +23 -23
- package/lib/ActionButton/ActionButton.module.css +14 -14
- package/lib/AlphabeticList/AlphabeticList.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.module.css +10 -10
- package/lib/Attachment/Attachment.module.css +26 -24
- package/lib/AttachmentViewer/AttachmentImage.js +1 -1
- package/lib/AttachmentViewer/AttachmentViewer.module.css +41 -41
- package/lib/ChannelIcon/ChannelIcon.module.css +22 -22
- package/lib/Drawer/Drawer.js +2 -3
- package/lib/Drawer/Drawer.module.css +41 -40
- package/lib/ExternalLink/ExternalLink.js +1 -1
- package/lib/FormAction/FormAction.module.css +20 -20
- package/lib/FreezeLayer/FreezeLayer.js +17 -2
- package/lib/Hooks/Dragger/css/Dragger.module.css +3 -0
- package/lib/Hooks/Dragger/useDragger.js +88 -0
- package/lib/Hooks/Dragger/utils/DraggerUtil.js +70 -0
- package/lib/IconButton/IconButton.module.css +2 -2
- package/lib/Image/Image.module.css +1 -0
- package/lib/ImportantNotes/ImportantNotes.module.css +5 -5
- package/lib/Loader/Loader.module.css +1 -0
- package/lib/Message/Message.module.css +9 -9
- package/lib/MessageBanner/MessageBanner.module.css +7 -7
- package/lib/NewStar/NewStar.module.css +18 -10
- package/lib/Provider/Config.js +7 -0
- package/lib/Separator/Separator.module.css +6 -6
- package/lib/TagWithIcon/TagWithIcon.module.css +6 -6
- package/lib/ToastMessage/ToastMessage.js +1 -2
- package/lib/ToastMessage/ToastMessage.module.css +23 -23
- package/lib/Upload/Upload.module.css +15 -15
- package/lib/alert/AlertHeader/AlertHeader.module.css +12 -12
- package/lib/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.module.css +6 -6
- package/lib/avatar/AvatarClose/AvatarClose.module.css +1 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +7 -7
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +32 -32
- package/lib/avatar/AvatarThread/AvatarThread.module.css +24 -24
- package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/avatar/AvatarUser/AvatarUser.module.css +40 -40
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +4 -4
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +11 -11
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -3
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +13 -13
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +11 -11
- package/lib/emptystate/EditionPage/EditionPage.css +13 -13
- package/lib/errorstate/EmptyStates.module.css +18 -18
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +3 -3
- package/lib/errorstate/LinkText/LinkText.module.css +1 -1
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +8 -8
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
- package/lib/errorstate/WillBack/WillBack.module.css +10 -10
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/FieldContainer/FieldContainer.js +1 -1
- package/lib/form/fields/Fields.module.css +26 -26
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/PhoneField/PhoneField.js +1 -1
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +13 -13
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +3 -3
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +2 -3
- package/lib/form/fields/TextEditor/TextEditor.module.css +84 -77
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +3 -2
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +3 -3
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +31 -31
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +32 -32
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +3 -3
- package/lib/list/Comment/Comment.module.css +4 -4
- package/lib/list/Dot/Dot.module.css +3 -3
- package/lib/list/DotNew/DotNew.module.css +4 -4
- package/lib/list/GridStencils/GridStencils.module.css +24 -24
- package/lib/list/Icons/Icons.module.css +2 -2
- package/lib/list/ListLayout/ListLayout.module.css +6 -6
- package/lib/list/ListStencils/ListStencils.js +1 -1
- package/lib/list/ListStencils/ListStencils.module.css +12 -12
- package/lib/list/SecondaryText/AccountName.js +1 -1
- package/lib/list/SecondaryText/Email.js +1 -1
- package/lib/list/SecondaryText/HappinessRating.js +1 -1
- package/lib/list/SecondaryText/PhoneNumber.js +1 -1
- package/lib/list/SecondaryText/SecondaryText.module.css +11 -11
- package/lib/list/SecondaryText/Website.js +1 -1
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
- package/lib/list/SentimentStatus/SentimentStatus.module.css +3 -3
- package/lib/list/TagNew/TagNew.module.css +4 -4
- package/lib/list/Thread/Thread.module.css +7 -7
- package/lib/list/UserTime/UserTime.module.css +8 -8
- package/lib/list/listCommon.module.css +4 -4
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +13 -13
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +16 -16
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/Lookup/Lookup.module.css +5 -5
- package/lib/lookup/Section/LookupSection.module.css +1 -1
- package/lib/lookup/Section/Section.js +1 -0
- package/lib/lookup/header/Close/Close.js +1 -1
- package/lib/lookup/header/Close/LookupClose.module.css +3 -3
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/lookup/header/Search/LookupSearch.module.css +14 -14
- package/lib/lookup/header/Search/Search.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +2 -2
- package/lib/lookup/header/Title/LookupTitle.module.css +1 -1
- package/lib/lookup/header/Title/Title.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +11 -11
- package/lib/lookup/header/lookupHeaderCommon.module.css +8 -8
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +3 -3
- package/lib/setup/header/Button/HeaderButton.module.css +2 -2
- package/lib/setup/header/Link/HeaderLink.module.css +5 -5
- package/lib/setup/header/Search/Search.module.css +8 -8
- package/lib/setup/header/Views/Views.module.css +4 -4
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +2 -2
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +3 -3
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
- package/lib/setup/table/TableData/SetupTableData.module.css +6 -6
- package/lib/setup/table/TableHead/SetupTableHead.module.css +5 -5
- package/lib/setup/table/TableRow/SetupTableRow.module.css +5 -5
- package/lib/setup/table/Text/TableText.module.css +2 -2
- package/lib/version2/AlertClose/AlertClose.js +1 -1
- package/lib/version2/AlertClose/AlertClose.module.css +2 -2
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +13 -13
- package/lib/version2/errorstate/V2_ErrorStates.module.css +17 -17
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +2 -2
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +14 -13
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -1
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +6 -6
- package/lib/version2/lookup/alertLookupCommonNew.module.css +5 -5
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +14 -14
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +23 -23
- package/package.json +25 -10
- package/dubFinder.js +0 -96
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
.thread {
|
|
14
14
|
composes: dflex alignVertical alignHorizontal rounded from '~@zohodesk/components/lib/common/common.module.css';
|
|
15
15
|
position: absolute;
|
|
16
|
-
top:
|
|
17
|
-
height:
|
|
18
|
-
width:
|
|
16
|
+
top: -4px;
|
|
17
|
+
height: 15px;
|
|
18
|
+
width: 15px;
|
|
19
19
|
background-color: var(--topIconBg);
|
|
20
20
|
}
|
|
21
21
|
[dir=ltr] .thread {
|
|
22
|
-
right:
|
|
22
|
+
right: -1px;
|
|
23
23
|
}
|
|
24
24
|
[dir=rtl] .thread {
|
|
25
|
-
left:
|
|
25
|
+
left: -1px;
|
|
26
26
|
}
|
|
27
27
|
.threadBorder {
|
|
28
28
|
border: 1px solid var(--topIconBorderColor);
|
|
@@ -103,22 +103,22 @@
|
|
|
103
103
|
.email_incoming,
|
|
104
104
|
.email_missed,
|
|
105
105
|
.email_outgoing {
|
|
106
|
-
bottom:
|
|
106
|
+
bottom: 2px;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/* twitter */
|
|
110
110
|
.twitter_incoming,
|
|
111
111
|
.twitter_outgoing,
|
|
112
112
|
.twitter_missed {
|
|
113
|
-
bottom:
|
|
113
|
+
bottom: 1px;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/* facebook */
|
|
117
117
|
[dir=ltr] .facebook_incoming, [dir=ltr] .facebook_missed, [dir=ltr] .facebook_outgoing {
|
|
118
|
-
right:
|
|
118
|
+
right: 2px;
|
|
119
119
|
}
|
|
120
120
|
[dir=rtl] .facebook_incoming, [dir=rtl] .facebook_missed, [dir=rtl] .facebook_outgoing {
|
|
121
|
-
left:
|
|
121
|
+
left: 2px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/* chat */
|
|
@@ -131,33 +131,33 @@
|
|
|
131
131
|
.chat_outgoing,
|
|
132
132
|
.offline_chat_outgoing,
|
|
133
133
|
.online_chat_outgoing {
|
|
134
|
-
bottom:
|
|
134
|
+
bottom: 1px;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/* forums */
|
|
138
138
|
.forums_default {
|
|
139
|
-
top:
|
|
139
|
+
top: 1px;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/* feedback */
|
|
143
143
|
.feedback_incoming,
|
|
144
144
|
.feedback_missed,
|
|
145
145
|
.feedback_out {
|
|
146
|
-
top:
|
|
146
|
+
top: 1px;
|
|
147
147
|
}
|
|
148
148
|
[dir=ltr] .feedback_incoming, [dir=ltr] .feedback_missed, [dir=ltr] .feedback_out {
|
|
149
|
-
right:
|
|
149
|
+
right: 1px;
|
|
150
150
|
}
|
|
151
151
|
[dir=rtl] .feedback_incoming, [dir=rtl] .feedback_missed, [dir=rtl] .feedback_out {
|
|
152
|
-
left:
|
|
152
|
+
left: 1px;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/* draft */
|
|
156
156
|
[dir=ltr] .email_draft, [dir=ltr] .facebook_draft, [dir=ltr] .twitter_draft, [dir=ltr] .forums_draft, [dir=ltr] .chat_draft, [dir=ltr] .offline_chat_draft, [dir=ltr] .online_chat_draft, [dir=ltr] .phone_draft, [dir=ltr] .web_draft, [dir=ltr] .customerportal_draft, [dir=ltr] .feedback_draft {
|
|
157
|
-
left:
|
|
157
|
+
left: 1px;
|
|
158
158
|
}
|
|
159
159
|
[dir=rtl] .email_draft, [dir=rtl] .facebook_draft, [dir=rtl] .twitter_draft, [dir=rtl] .forums_draft, [dir=rtl] .chat_draft, [dir=rtl] .offline_chat_draft, [dir=rtl] .online_chat_draft, [dir=rtl] .phone_draft, [dir=rtl] .web_draft, [dir=rtl] .customerportal_draft, [dir=rtl] .feedback_draft {
|
|
160
|
-
right:
|
|
160
|
+
right: 1px;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/* forward */
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
.web_forward,
|
|
174
174
|
.customerportal_forward,
|
|
175
175
|
.feedback_forward {
|
|
176
|
-
bottom:
|
|
176
|
+
bottom: 1px;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
/* forwarddraft */
|
|
@@ -188,21 +188,21 @@
|
|
|
188
188
|
.web_forwarddraft,
|
|
189
189
|
.customerportal_forwarddraft,
|
|
190
190
|
.feedback_forwarddraft {
|
|
191
|
-
bottom:
|
|
191
|
+
bottom: 1px;
|
|
192
192
|
}
|
|
193
193
|
[dir=ltr] .email_forwarddraft, [dir=ltr] .facebook_forwarddraft, [dir=ltr] .twitter_forwarddraft, [dir=ltr] .forums_forwarddraft, [dir=ltr] .chat_forwarddraft, [dir=ltr] .offline_chat_forwarddraft, [dir=ltr] .online_chat_forwarddraft, [dir=ltr] .phone_forwarddraft, [dir=ltr] .web_forwarddraft, [dir=ltr] .customerportal_forwarddraft, [dir=ltr] .feedback_forwarddraft {
|
|
194
|
-
left:
|
|
194
|
+
left: 1px;
|
|
195
195
|
}
|
|
196
196
|
[dir=rtl] .email_forwarddraft, [dir=rtl] .facebook_forwarddraft, [dir=rtl] .twitter_forwarddraft, [dir=rtl] .forums_forwarddraft, [dir=rtl] .chat_forwarddraft, [dir=rtl] .offline_chat_forwarddraft, [dir=rtl] .online_chat_forwarddraft, [dir=rtl] .phone_forwarddraft, [dir=rtl] .web_forwarddraft, [dir=rtl] .customerportal_forwarddraft, [dir=rtl] .feedback_forwarddraft {
|
|
197
|
-
right:
|
|
197
|
+
right: 1px;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
/* facebook_dm */
|
|
201
201
|
[dir=ltr] .facebook_dm_default, [dir=ltr] .facebook_dm_incoming, [dir=ltr] .facebook_dm_outgoing, [dir=ltr] .facebook_dm_missed {
|
|
202
|
-
right:
|
|
202
|
+
right: 2px;
|
|
203
203
|
}
|
|
204
204
|
[dir=rtl] .facebook_dm_default, [dir=rtl] .facebook_dm_incoming, [dir=rtl] .facebook_dm_outgoing, [dir=rtl] .facebook_dm_missed {
|
|
205
|
-
left:
|
|
205
|
+
left: 2px;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/*Topic Icon colors*/
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from './props/defaultProps';
|
|
3
3
|
import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from './props/propTypes';
|
|
4
4
|
import FreezeLayer from '../FreezeLayer/FreezeLayer';
|
|
5
|
-
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
6
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
7
6
|
import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
|
|
8
7
|
import FormAction from '../FormAction/FormAction';
|
|
@@ -167,7 +166,7 @@ export default class Drawer extends React.Component {
|
|
|
167
166
|
eleRef: this.createRef
|
|
168
167
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
169
168
|
onClick: e => {
|
|
170
|
-
|
|
169
|
+
e && e.stopPropagation && e.stopPropagation();
|
|
171
170
|
onBodyClick(e);
|
|
172
171
|
}
|
|
173
172
|
}, childrenWithProps));
|
|
@@ -179,7 +178,7 @@ export default class Drawer extends React.Component {
|
|
|
179
178
|
}, /*#__PURE__*/React.createElement(ResponsiveSender, null, /*#__PURE__*/React.createElement(Container, {
|
|
180
179
|
className: styleByResolutions,
|
|
181
180
|
onClick: e => {
|
|
182
|
-
|
|
181
|
+
e && e.stopPropagation && e.stopPropagation();
|
|
183
182
|
}
|
|
184
183
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
185
184
|
flexible: true
|
|
@@ -63,31 +63,31 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.xsmall {
|
|
66
|
-
width:
|
|
66
|
+
width: 360px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.small {
|
|
70
|
-
width:
|
|
70
|
+
width: 410px;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.medium {
|
|
74
|
-
width:
|
|
74
|
+
width: 660px;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.xmedium {
|
|
78
|
-
width:
|
|
78
|
+
width: 730px;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.large {
|
|
82
|
-
width:
|
|
82
|
+
width: 936px;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.xlarge {
|
|
86
|
-
width:
|
|
86
|
+
width: 840px;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.xxlarge {
|
|
90
|
-
width:
|
|
90
|
+
width: 1142px;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.mbleSize,
|
|
@@ -96,95 +96,96 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.header {
|
|
99
|
-
min-height:
|
|
99
|
+
min-height: 50px;
|
|
100
100
|
background-color: var(--zdt_drawer_header_bg);
|
|
101
101
|
border-bottom: solid 1px var(--zdt_drawer_header_border);
|
|
102
|
-
padding-top:
|
|
103
|
-
padding-bottom:
|
|
102
|
+
padding-top: 10px;
|
|
103
|
+
padding-bottom: 10px;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.subheader {
|
|
107
|
-
min-height:
|
|
107
|
+
min-height: 28px;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.title {
|
|
111
111
|
color: var(--zdt_drawer_title_text);
|
|
112
|
-
font: var(--
|
|
112
|
+
font-family: var(--zd_semibold);
|
|
113
113
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
114
|
+
font-size: 16px;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
[dir=ltr] .title {
|
|
117
|
-
padding: 0
|
|
118
|
+
padding: 0 10px 0 0;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
[dir=rtl] .title {
|
|
121
|
-
padding: 0 0 0
|
|
122
|
+
padding: 0 0 0 10px;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
[dir=ltr] .smallHeaderPadding {
|
|
125
|
-
padding-right:
|
|
126
|
-
padding-left:
|
|
126
|
+
padding-right: 11px;
|
|
127
|
+
padding-left: 30px;
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
[dir=rtl] .smallHeaderPadding {
|
|
130
|
-
padding-left:
|
|
131
|
-
padding-right:
|
|
131
|
+
padding-left: 11px;
|
|
132
|
+
padding-right: 30px;
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
[dir=ltr] .smallContentPadding {
|
|
135
|
-
padding-left:
|
|
136
|
-
padding-right:
|
|
136
|
+
padding-left: 30px;
|
|
137
|
+
padding-right: 30px;
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
[dir=rtl] .smallContentPadding {
|
|
140
|
-
padding-right:
|
|
141
|
-
padding-left:
|
|
141
|
+
padding-right: 30px;
|
|
142
|
+
padding-left: 30px;
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
[dir=ltr] .mediumHeaderPadding {
|
|
145
|
-
padding-right:
|
|
146
|
-
padding-left:
|
|
146
|
+
padding-right: 15px;
|
|
147
|
+
padding-left: 30px;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
[dir=rtl] .mediumHeaderPadding {
|
|
150
|
-
padding-left:
|
|
151
|
-
padding-right:
|
|
151
|
+
padding-left: 15px;
|
|
152
|
+
padding-right: 30px;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
[dir=ltr] .mediumContentPadding {
|
|
155
|
-
padding-left:
|
|
156
|
-
padding-right:
|
|
156
|
+
padding-left: 30px;
|
|
157
|
+
padding-right: 30px;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
[dir=rtl] .mediumContentPadding {
|
|
160
|
-
padding-right:
|
|
161
|
-
padding-left:
|
|
161
|
+
padding-right: 30px;
|
|
162
|
+
padding-left: 30px;
|
|
162
163
|
}
|
|
163
164
|
|
|
164
165
|
[dir=ltr] .largeHeaderPadding {
|
|
165
|
-
padding-right:
|
|
166
|
-
padding-left:
|
|
166
|
+
padding-right: 15px;
|
|
167
|
+
padding-left: 50px;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
[dir=rtl] .largeHeaderPadding {
|
|
170
|
-
padding-left:
|
|
171
|
-
padding-right:
|
|
171
|
+
padding-left: 15px;
|
|
172
|
+
padding-right: 50px;
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
[dir=ltr] .largeContentPadding {
|
|
175
|
-
padding-left:
|
|
176
|
-
padding-right:
|
|
176
|
+
padding-left: 50px;
|
|
177
|
+
padding-right: 50px;
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
[dir=rtl] .largeContentPadding {
|
|
180
|
-
padding-right:
|
|
181
|
-
padding-left:
|
|
181
|
+
padding-right: 50px;
|
|
182
|
+
padding-left: 50px;
|
|
182
183
|
}
|
|
183
184
|
|
|
184
185
|
[dir=ltr] .iconWrapper {
|
|
185
|
-
margin-right:
|
|
186
|
+
margin-right: 10px;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
[dir=rtl] .iconWrapper {
|
|
189
|
-
margin-left:
|
|
190
|
+
margin-left: 10px;
|
|
190
191
|
}
|
|
@@ -13,64 +13,64 @@
|
|
|
13
13
|
border-top: solid 1px var(--footerBorder);
|
|
14
14
|
}
|
|
15
15
|
.largeFooter {
|
|
16
|
-
padding-top:
|
|
17
|
-
padding-bottom:
|
|
16
|
+
padding-top: 24px;
|
|
17
|
+
padding-bottom: 24px;
|
|
18
18
|
}
|
|
19
19
|
.mediumFooter {
|
|
20
|
-
padding-top:
|
|
21
|
-
padding-bottom:
|
|
20
|
+
padding-top: 20px;
|
|
21
|
+
padding-bottom: 20px;
|
|
22
22
|
}
|
|
23
23
|
.smallFooter {
|
|
24
|
-
padding-top:
|
|
25
|
-
padding-bottom:
|
|
24
|
+
padding-top: 10px;
|
|
25
|
+
padding-bottom: 10px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
[dir=ltr] .largePadding {
|
|
29
|
-
padding-left:
|
|
29
|
+
padding-left: 60px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
[dir=rtl] .largePadding {
|
|
33
|
-
padding-right:
|
|
33
|
+
padding-right: 60px;
|
|
34
34
|
}
|
|
35
35
|
[dir=ltr] .mediumPadding {
|
|
36
|
-
padding-left:
|
|
36
|
+
padding-left: 50px;
|
|
37
37
|
}
|
|
38
38
|
[dir=rtl] .mediumPadding {
|
|
39
|
-
padding-right:
|
|
39
|
+
padding-right: 50px;
|
|
40
40
|
}
|
|
41
41
|
[dir=ltr] .xmediumPadding {
|
|
42
|
-
padding-left:
|
|
42
|
+
padding-left: 30px;
|
|
43
43
|
}
|
|
44
44
|
[dir=rtl] .xmediumPadding {
|
|
45
|
-
padding-right:
|
|
45
|
+
padding-right: 30px;
|
|
46
46
|
}
|
|
47
47
|
[dir=ltr] .smallPadding {
|
|
48
|
-
padding-left:
|
|
48
|
+
padding-left: 25px;
|
|
49
49
|
}
|
|
50
50
|
[dir=rtl] .smallPadding {
|
|
51
|
-
padding-right:
|
|
51
|
+
padding-right: 25px;
|
|
52
52
|
}
|
|
53
53
|
[dir=ltr] .xsmallPadding {
|
|
54
|
-
padding-left:
|
|
54
|
+
padding-left: 20px;
|
|
55
55
|
}
|
|
56
56
|
[dir=rtl] .xsmallPadding {
|
|
57
|
-
padding-right:
|
|
57
|
+
padding-right: 20px;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.marginRight {
|
|
61
61
|
composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
|
|
62
62
|
}
|
|
63
63
|
[dir=ltr] .largeFooter .marginRight, [dir=ltr] .mediumFooter .marginRight {
|
|
64
|
-
margin-right:
|
|
64
|
+
margin-right: 15px;
|
|
65
65
|
}
|
|
66
66
|
[dir=rtl] .largeFooter .marginRight, [dir=rtl] .mediumFooter .marginRight {
|
|
67
|
-
margin-left:
|
|
67
|
+
margin-left: 15px;
|
|
68
68
|
}
|
|
69
69
|
[dir=ltr] .smallFooter .marginRight {
|
|
70
|
-
margin-right:
|
|
70
|
+
margin-right: 12px;
|
|
71
71
|
}
|
|
72
72
|
[dir=rtl] .smallFooter .marginRight {
|
|
73
|
-
margin-left:
|
|
73
|
+
margin-left: 12px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
[dir=ltr] .marginRight:last-child {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
4
|
import { Container } from '@zohodesk/components/lib/Layout';
|
|
@@ -8,6 +8,7 @@ import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
|
8
8
|
import cssJSLogic from './css/cssJSLogic';
|
|
9
9
|
import useFreezeLayer from './useFreezeLayer';
|
|
10
10
|
import style from './css/FreezeLayer.module.css';
|
|
11
|
+
import useDragger from '../Hooks/Dragger/useDragger';
|
|
11
12
|
export default function FreezeLayer(props) {
|
|
12
13
|
let {
|
|
13
14
|
isActive: propsActive,
|
|
@@ -24,6 +25,7 @@ export default function FreezeLayer(props) {
|
|
|
24
25
|
customStyle
|
|
25
26
|
} = props;
|
|
26
27
|
const finalStyle = mergeStyle(style, customStyle);
|
|
28
|
+
const dragRef = useRef(null);
|
|
27
29
|
const {
|
|
28
30
|
freezeClass
|
|
29
31
|
} = cssJSLogic({
|
|
@@ -39,6 +41,16 @@ export default function FreezeLayer(props) {
|
|
|
39
41
|
isActive: propsActive,
|
|
40
42
|
onClick
|
|
41
43
|
});
|
|
44
|
+
let refEle = forwardRef || dragRef;
|
|
45
|
+
useDragger({
|
|
46
|
+
ParentRef: refEle,
|
|
47
|
+
boundaryLimit: {
|
|
48
|
+
top: 0,
|
|
49
|
+
left: 50,
|
|
50
|
+
right: 50,
|
|
51
|
+
bottom: 50
|
|
52
|
+
}
|
|
53
|
+
});
|
|
42
54
|
return /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
43
55
|
name: animationName && animationName,
|
|
44
56
|
isActive: isActive,
|
|
@@ -49,7 +61,7 @@ export default function FreezeLayer(props) {
|
|
|
49
61
|
} : {},
|
|
50
62
|
className: freezeClass,
|
|
51
63
|
onClick: handleClick,
|
|
52
|
-
ref:
|
|
64
|
+
ref: refEle
|
|
53
65
|
}, children && /*#__PURE__*/React.createElement(React.Fragment, null, childAnimationName ? /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
54
66
|
name: childAnimationName,
|
|
55
67
|
isActive: isChildActive,
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { getDotLibraryConfig } from '../../Provider/Config';
|
|
3
|
+
import { elementFinder, DragPosCalc } from './utils/DraggerUtil';
|
|
4
|
+
import style from './css/Dragger.module.css';
|
|
5
|
+
export default function useDragger(_ref) {
|
|
6
|
+
let {
|
|
7
|
+
ParentRef,
|
|
8
|
+
boundaryLimit = getDotLibraryConfig('boundaryLimit')
|
|
9
|
+
} = _ref;
|
|
10
|
+
let draggableEle = useRef(null); //To set the Draggable Element
|
|
11
|
+
let parentEle = useRef(null); // To set the Parent Boundary Element
|
|
12
|
+
let offset = useRef({
|
|
13
|
+
x: 0,
|
|
14
|
+
y: 0
|
|
15
|
+
}); //To set the x and y Positions
|
|
16
|
+
let draggable = useRef(false); // To get track of draggable
|
|
17
|
+
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
parentEle.current = ParentRef.current || getDotLibraryConfig('draggerBoundary') || document.body;
|
|
20
|
+
}, [ParentRef.current]);
|
|
21
|
+
const elementDrag = e => {
|
|
22
|
+
e = e || window.event;
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
if (draggable.current) {
|
|
25
|
+
const left = offset.current.x + e.clientX;
|
|
26
|
+
const top = offset.current.y + e.clientY;
|
|
27
|
+
if (parentEle.current) {
|
|
28
|
+
const calcValue = DragPosCalc({
|
|
29
|
+
x: left,
|
|
30
|
+
y: top,
|
|
31
|
+
dragWrapper: parentEle.current,
|
|
32
|
+
element: draggableEle.current,
|
|
33
|
+
boundaryLimit
|
|
34
|
+
});
|
|
35
|
+
draggableEle.current.style.left = calcValue.x + 'px';
|
|
36
|
+
draggableEle.current.style.top = calcValue.y + 'px';
|
|
37
|
+
} else {
|
|
38
|
+
draggableEle.current.style.left = left + 'px';
|
|
39
|
+
draggableEle.current.style.top = top + 'px';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const closeDragElement = () => {
|
|
44
|
+
document.removeEventListener('mouseup', closeDragElement);
|
|
45
|
+
document.removeEventListener('mousemove', elementDrag);
|
|
46
|
+
};
|
|
47
|
+
const dragMouseDown = e => {
|
|
48
|
+
//Initial position
|
|
49
|
+
requestAnimationFrame(() => {
|
|
50
|
+
let draggableEleRect = draggableEle.current.getBoundingClientRect();
|
|
51
|
+
let parentEleRect = parentEle.current.getBoundingClientRect();
|
|
52
|
+
const relativeRect = {
|
|
53
|
+
left: draggableEleRect.left - parentEleRect.left,
|
|
54
|
+
top: draggableEleRect.top - parentEleRect.top
|
|
55
|
+
};
|
|
56
|
+
e = e || window.event;
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
draggableEle.current.style.top = relativeRect.top + 'px';
|
|
59
|
+
draggableEle.current.style.left = relativeRect.left + 'px';
|
|
60
|
+
draggableEle.current.style.width = draggableEleRect.width + 'px';
|
|
61
|
+
draggableEle.current.style.position = 'fixed';
|
|
62
|
+
offset.current.x = draggableEle.current.offsetLeft - e.clientX;
|
|
63
|
+
offset.current.y = draggableEle.current.offsetTop - e.clientY;
|
|
64
|
+
draggable.current = true;
|
|
65
|
+
document.addEventListener('mouseup', closeDragElement);
|
|
66
|
+
document.addEventListener('mousemove', elementDrag);
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
elementFinder(parentEle.current, '[data-drag-container=true]').then(draggableElement => {
|
|
71
|
+
draggableEle.current = draggableElement;
|
|
72
|
+
let dragController = draggableEle.current && draggableEle.current.querySelector('[data-drag-hook=true]');
|
|
73
|
+
// ? draggableEle.current.querySelector("[data-drag-hook=true]")
|
|
74
|
+
// : draggableEle.current;
|
|
75
|
+
dragController && dragController.addEventListener('mousedown', dragMouseDown);
|
|
76
|
+
dragController && dragController.classList.add(style.dragCursor);
|
|
77
|
+
});
|
|
78
|
+
}, [parentEle.current]);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
//data-drag-container => To Mention Draggable Element
|
|
82
|
+
//data-drag-hook =>To Mention Draggable target element
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export function DragPosCalc(_ref) {
|
|
2
|
+
let {
|
|
3
|
+
x,
|
|
4
|
+
y,
|
|
5
|
+
element,
|
|
6
|
+
dragWrapper,
|
|
7
|
+
boundaryLimit
|
|
8
|
+
} = _ref;
|
|
9
|
+
//percent = 50%
|
|
10
|
+
// const percentobj = { top: 0, left: 10, right: 2, bottom: 90 };
|
|
11
|
+
let {
|
|
12
|
+
top,
|
|
13
|
+
left,
|
|
14
|
+
right,
|
|
15
|
+
bottom
|
|
16
|
+
} = boundaryLimit;
|
|
17
|
+
const offsetWidth = element ? element.offsetWidth : 0;
|
|
18
|
+
const offsetHeight = element ? element.offsetHeight : 0;
|
|
19
|
+
const topOffset = top ? offsetHeight - top : 0;
|
|
20
|
+
const leftOffset = left ? offsetWidth - left : 0;
|
|
21
|
+
const rightOffset = right ? offsetWidth - right : 0;
|
|
22
|
+
const bottomOffset = bottom ? offsetHeight - bottom : 0;
|
|
23
|
+
if (x < -leftOffset) {
|
|
24
|
+
//LEFT
|
|
25
|
+
x = -leftOffset;
|
|
26
|
+
}
|
|
27
|
+
if (x > dragWrapper.offsetWidth - element.offsetWidth + rightOffset) {
|
|
28
|
+
//RIGHT
|
|
29
|
+
x = dragWrapper.offsetWidth - element.offsetWidth + rightOffset;
|
|
30
|
+
}
|
|
31
|
+
if (y < -topOffset) {
|
|
32
|
+
//TOP
|
|
33
|
+
y = -topOffset;
|
|
34
|
+
}
|
|
35
|
+
if (y > dragWrapper.offsetHeight - element.offsetHeight + bottomOffset) {
|
|
36
|
+
//BOTTOM
|
|
37
|
+
y = dragWrapper.offsetHeight - element.offsetHeight + bottomOffset;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
x,
|
|
41
|
+
y
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// export const elementFinder = async (Parent, selector) => {
|
|
46
|
+
// while (Parent && Parent.querySelector(selector) === null) {
|
|
47
|
+
// await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
48
|
+
// }
|
|
49
|
+
// return Parent && Parent.querySelector(selector);
|
|
50
|
+
// };
|
|
51
|
+
|
|
52
|
+
export const elementFinder = (Parent, selector) => {
|
|
53
|
+
return new Promise(resolve => {
|
|
54
|
+
const observer = new MutationObserver(mutations => {
|
|
55
|
+
const element = Parent.querySelector(selector);
|
|
56
|
+
if (element) {
|
|
57
|
+
observer.disconnect();
|
|
58
|
+
resolve(element);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
observer.observe(Parent, {
|
|
62
|
+
childList: true,
|
|
63
|
+
subtree: true
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
--iconColor: var(--zdt_iconButton_icon_black);
|
|
3
3
|
}
|
|
4
4
|
.wrapper {
|
|
5
|
-
height:
|
|
6
|
-
width:
|
|
5
|
+
height: 28px;
|
|
6
|
+
width: 28px;
|
|
7
7
|
composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
|
|
8
8
|
composes: varClass;
|
|
9
9
|
color: var(--iconColor);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
.section {
|
|
2
2
|
background: var(--zdt_importantnotes_bg);
|
|
3
|
-
padding:
|
|
3
|
+
padding: 5px 10px;
|
|
4
4
|
}
|
|
5
5
|
.title {
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 13px;
|
|
7
7
|
line-height: var(--zd_font_size18);
|
|
8
8
|
color: var(--zdt_importantnotes_title_text);
|
|
9
9
|
}
|
|
10
10
|
.icon {
|
|
11
11
|
color: var(--zdt_importantnotes_icon);
|
|
12
12
|
font-size: 0;
|
|
13
|
-
margin-top:
|
|
13
|
+
margin-top: 1px;
|
|
14
14
|
}
|
|
15
15
|
[dir=ltr] .icon {
|
|
16
|
-
margin-right:
|
|
16
|
+
margin-right: 5px;
|
|
17
17
|
}
|
|
18
18
|
[dir=rtl] .icon {
|
|
19
|
-
margin-left:
|
|
19
|
+
margin-left: 5px;
|
|
20
20
|
}
|