@zohodesk/dot 1.0.0-temp-88 → 1.0.0-temp.777
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 +13 -0
- package/es/ActionButton/ActionButton.js +7 -4
- package/es/ActionButton/ActionButton.module.css +9 -25
- package/es/AlphabeticList/AlphabeticList.module.css +4 -7
- package/es/Attachment/Attachment.module.css +9 -20
- package/es/AttachmentViewer/AttachmentViewer.module.css +27 -89
- package/es/ChannelIcon/ChannelIcon.module.css +21 -30
- package/es/Drawer/Drawer.module.css +11 -59
- package/es/FlipCard/FlipCard.module.css +5 -14
- package/es/FormAction/FormAction.module.css +9 -34
- package/es/FreezeLayer/FreezeLayer.module.css +2 -6
- package/es/IconButton/IconButton.module.css +1 -1
- package/es/ImportantNotes/ImportantNotes.module.css +2 -7
- package/es/Loader/Loader.module.css +4 -25
- package/es/Message/Message.module.css +9 -42
- package/es/MessageBanner/MessageBanner.module.css +4 -12
- package/es/NewStar/NewStar.module.css +5 -42
- package/es/Provider.js +5 -105
- package/es/ToastMessage/ToastMessage.module.css +25 -96
- package/es/Upload/Upload.module.css +8 -27
- package/es/alert/AlertHeader/AlertHeader.module.css +3 -21
- package/es/alert/AlertLookup/AlertLookup.module.css +2 -6
- package/es/avatar/AvatarClose/AvatarClose.module.css +3 -9
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +4 -18
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +4 -3
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +9 -59
- package/es/avatar/AvatarThread/AvatarThread.module.css +5 -55
- package/es/avatar/AvatarUser/AvatarUser.module.css +10 -81
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +3 -10
- package/es/common/dot_animation.module.css +3 -16
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +3 -11
- package/es/docs/formDocs.js +5 -1
- package/es/docs/generalDocs.js +5 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +9 -21
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -12
- package/es/emptystate/EditionPage/EditionPage.css +3 -9
- package/es/errorstate/EmptyStates.module.css +10 -13
- package/es/errorstate/Inconvenience/Inconvenience.module.css +0 -3
- package/es/errorstate/LinkText/LinkText.module.css +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
- package/es/errorstate/WillBack/WillBack.module.css +3 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +16 -28
- package/es/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +8 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +16 -29
- package/es/form/fields/CurrencyField/docs/CurrencyField__default.docs.js +36 -0
- package/es/form/fields/DateField/DateField.js +16 -28
- package/es/form/fields/DateField/docs/DateField__default.docs.js +8 -1
- package/es/form/fields/FieldContainer/FieldContainer.js +82 -0
- package/es/form/fields/FieldContainer/docs/FieldContainer__default.docs.js +49 -0
- package/es/form/fields/Fields.module.css +14 -49
- package/es/form/fields/MultiSelectField/MultiSelectField.js +16 -28
- package/es/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +8 -1
- package/es/form/fields/SelectField/SelectField.js +16 -28
- package/es/form/fields/SelectField/docs/SelectField__default.docs.js +8 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +7 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +7 -19
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +32 -28
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +1 -4
- package/es/form/fields/TextBoxField/TextBoxField.js +18 -43
- package/es/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +28 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +72 -149
- package/es/form/fields/TextEditorField/TextEditorField.js +27 -44
- package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +9 -2
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +2 -13
- package/es/form/fields/TextareaField/TextareaField.js +16 -28
- package/es/form/fields/TextareaField/docs/TextareaField__default.docs.js +8 -1
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +4 -9
- package/es/form/fields/props/FieldCommonDefaultProps.js +10 -0
- package/es/form/fields/props/FieldCommonPropTypes.js +22 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +16 -52
- package/es/layout/SubtabLayout/SubtabLayout.module.css +29 -55
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +1 -4
- package/es/list/Comment/Comment.module.css +0 -5
- package/es/list/DotNew/DotNew.module.css +3 -3
- package/es/list/GridStencils/GridStencils.module.css +21 -82
- package/es/list/Icons/Icons.module.css +1 -1
- package/es/list/ListLayout/ListLayout.module.css +14 -22
- package/es/list/ListStencils/ListStencils.module.css +6 -11
- package/es/list/SecondaryText/AccountName.js +34 -38
- package/es/list/SecondaryText/ContactName.js +18 -13
- package/es/list/SecondaryText/SecondaryText.module.css +14 -39
- package/es/list/SecondaryText/docs/SecondaryText__default.docs.js +114 -0
- package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +2 -2
- package/es/list/SentimentStatus/SentimentStatus.module.css +1 -4
- package/es/list/TagNew/TagNew.module.css +7 -14
- package/es/list/Thread/Thread.module.css +1 -13
- package/es/list/UserTime/UserTime.module.css +0 -6
- package/es/list/listCommon.module.css +1 -9
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +6 -19
- package/es/list/status/StatusListItem/StatusListItem.module.css +15 -38
- package/es/lookup/Lookup/Lookup.module.css +2 -2
- package/es/lookup/Section/LookupSection.module.css +2 -2
- package/es/lookup/header/Close/LookupClose.module.css +4 -4
- package/es/lookup/header/Search/LookupSearch.module.css +12 -21
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +2 -5
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +3 -8
- package/es/lookup/header/lookupHeaderCommon.module.css +5 -15
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +3 -12
- package/es/setup/header/Button/HeaderButton.module.css +1 -3
- package/es/setup/header/Link/HeaderLink.module.css +1 -7
- package/es/setup/header/Search/Search.module.css +8 -19
- package/es/setup/header/Views/Views.module.css +5 -15
- package/es/setup/helptips/Link/HelpTipsLink.module.css +0 -1
- package/es/setup/helptips/ListGroup/ListGroup.module.css +1 -6
- package/es/setup/table/TableData/SetupTableData.module.css +3 -11
- package/es/setup/table/TableHead/SetupTableHead.module.css +0 -4
- package/es/setup/table/TableRow/SetupTableRow.module.css +2 -6
- package/es/utils/KeyboardApi.js +294 -0
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +9 -44
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +2 -25
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +3 -7
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -8
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -26
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +10 -47
- package/lib/ActionButton/ActionButton.js +3 -7
- package/lib/ActionButton/ActionButton.module.css +1 -0
- package/lib/FreezeLayer/FreezeLayer.js +4 -29
- package/lib/ImportantNotes/ImportantNotes.js +3 -5
- package/lib/Provider.js +38 -115
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +38 -60
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +0 -1
- package/lib/docs/generalDocs.js +0 -16
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +161 -182
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +0 -3
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +8 -9
- package/lib/form/fields/DateField/DateField.js +1 -1
- 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.js +73 -110
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +1 -4
- package/lib/form/fields/TextEditor/TextEditor.module.css +2 -13
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +1 -3
- package/lib/list/SecondaryText/AccountName.js +34 -38
- package/lib/list/SecondaryText/ContactName.js +18 -13
- package/lib/list/SecondaryText/SecondaryText.module.css +14 -29
- package/lib/list/status/StatusDropdown/StatusDropdown.js +118 -146
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +0 -3
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +3 -8
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +3 -13
- package/lib/lookup/header/TicketHeader/TicketHeader.js +4 -7
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +52 -75
- package/lib/lookup/header/lookupHeaderCommon.module.css +2 -8
- package/lib/setup/header/Views/Views.js +2 -2
- package/lib/utils/General.js +24 -0
- package/lib/{deprecated/utils → utils}/KeyboardApi.js +0 -0
- package/package.json +5 -5
- package/lib/AttachmentViewer/Attachment.js +0 -28
- package/lib/AttachmentViewer/AttachmentImage.js +0 -133
- package/lib/AttachmentViewer/AttachmentViewer.js +0 -646
- package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -354
- package/lib/AttachmentViewer/docs/AttachmentViewer__default.docs.js +0 -123
- package/lib/AttachmentViewer/utils.js +0 -134
- package/lib/Provider/Config.js +0 -21
- package/lib/common/dot_animation.module.css +0 -27
- package/lib/common/dot_common.module.css +0 -4
- package/lib/deprecated/utils/General.js +0 -29
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
.container {
|
|
2
|
-
transition: width var(--zd_transition3);
|
|
3
2
|
box-shadow: 0 6px 12px var(--zdt_drawer_default_box_shadow);
|
|
4
3
|
background-color: var(--zdt_drawer_default_bg);
|
|
4
|
+
transition: width var(--zd_transition3);
|
|
5
5
|
}
|
|
6
6
|
.isOverlay {
|
|
7
|
+
right: 0;
|
|
7
8
|
top: 0;
|
|
8
9
|
bottom: 0;
|
|
9
10
|
position: absolute;
|
|
10
11
|
pointer-events: none;
|
|
11
12
|
}
|
|
12
|
-
[dir=ltr] .isOverlay {
|
|
13
|
-
right: 0;
|
|
14
|
-
}
|
|
15
|
-
[dir=rtl] .isOverlay {
|
|
16
|
-
left: 0;
|
|
17
|
-
}
|
|
18
13
|
.columns {
|
|
19
14
|
pointer-events: initial;
|
|
20
15
|
}
|
|
@@ -26,29 +21,18 @@
|
|
|
26
21
|
box-shadow: 0 6px 12px var(--zdt_drawer_default_box_shadow);
|
|
27
22
|
}
|
|
28
23
|
.secondMobDrawer {
|
|
24
|
+
right: 0;
|
|
29
25
|
position: absolute;
|
|
30
26
|
top: 0;
|
|
31
27
|
z-index: 1;
|
|
32
28
|
}
|
|
33
|
-
[dir=ltr] .secondMobDrawer {
|
|
34
|
-
right: 0;
|
|
35
|
-
}
|
|
36
|
-
[dir=rtl] .secondMobDrawer {
|
|
37
|
-
left: 0;
|
|
38
|
-
}
|
|
39
29
|
.mobModal {
|
|
40
30
|
position: absolute;
|
|
41
31
|
top: 0;
|
|
42
|
-
bottom: 0;
|
|
43
|
-
}
|
|
44
|
-
[dir=ltr] .mobModal {
|
|
45
32
|
right: 0;
|
|
33
|
+
bottom: 0;
|
|
46
34
|
left: 0;
|
|
47
35
|
}
|
|
48
|
-
[dir=rtl] .mobModal {
|
|
49
|
-
left: 0;
|
|
50
|
-
right: 0;
|
|
51
|
-
}
|
|
52
36
|
.xsmall {
|
|
53
37
|
width: var(--zd_size360);
|
|
54
38
|
}
|
|
@@ -88,64 +72,32 @@
|
|
|
88
72
|
color: var( --zdt_drawer_title_text);
|
|
89
73
|
font: var(--zd_font_size16) var(--zd_semibold);
|
|
90
74
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
91
|
-
}
|
|
92
|
-
[dir=ltr] .title {
|
|
93
75
|
padding: 0 var(--zd_size10) 0 0;
|
|
94
76
|
}
|
|
95
|
-
|
|
96
|
-
padding: 0 0 0 var(--zd_size10);
|
|
97
|
-
}
|
|
98
|
-
[dir=ltr] .smallHeaderPadding {
|
|
77
|
+
.smallHeaderPadding {
|
|
99
78
|
padding-right: var(--zd_size11);
|
|
100
79
|
padding-left: var(--zd_size30);
|
|
101
80
|
}
|
|
102
|
-
|
|
103
|
-
padding-left: var(--zd_size11);
|
|
104
|
-
padding-right: var(--zd_size30);
|
|
105
|
-
}
|
|
106
|
-
[dir=ltr] .smallContentPadding {
|
|
81
|
+
.smallContentPadding {
|
|
107
82
|
padding-left: var(--zd_size30);
|
|
108
83
|
padding-right: var(--zd_size30);
|
|
109
84
|
}
|
|
110
|
-
|
|
111
|
-
padding-right: var(--zd_size30);
|
|
112
|
-
padding-left: var(--zd_size30);
|
|
113
|
-
}
|
|
114
|
-
[dir=ltr] .mediumHeaderPadding {
|
|
85
|
+
.mediumHeaderPadding {
|
|
115
86
|
padding-right: var(--zd_size15);
|
|
116
87
|
padding-left: var(--zd_size30);
|
|
117
88
|
}
|
|
118
|
-
|
|
119
|
-
padding-left: var(--zd_size15);
|
|
120
|
-
padding-right: var(--zd_size30);
|
|
121
|
-
}
|
|
122
|
-
[dir=ltr] .mediumContentPadding {
|
|
89
|
+
.mediumContentPadding {
|
|
123
90
|
padding-left: var(--zd_size30);
|
|
124
91
|
padding-right: var(--zd_size30);
|
|
125
92
|
}
|
|
126
|
-
|
|
127
|
-
padding-right: var(--zd_size30);
|
|
128
|
-
padding-left: var(--zd_size30);
|
|
129
|
-
}
|
|
130
|
-
[dir=ltr] .largeHeaderPadding {
|
|
93
|
+
.largeHeaderPadding {
|
|
131
94
|
padding-right: var(--zd_size15);
|
|
132
95
|
padding-left: var(--zd_size50);
|
|
133
96
|
}
|
|
134
|
-
|
|
135
|
-
padding-left: var(--zd_size15);
|
|
136
|
-
padding-right: var(--zd_size50);
|
|
137
|
-
}
|
|
138
|
-
[dir=ltr] .largeContentPadding {
|
|
97
|
+
.largeContentPadding {
|
|
139
98
|
padding-left: var(--zd_size50);
|
|
140
99
|
padding-right: var(--zd_size50);
|
|
141
100
|
}
|
|
142
|
-
|
|
143
|
-
padding-right: var(--zd_size50);
|
|
144
|
-
padding-left: var(--zd_size50);
|
|
145
|
-
}
|
|
146
|
-
[dir=ltr] .iconWrapper {
|
|
101
|
+
.iconWrapper {
|
|
147
102
|
margin-right: var(--zd_size10);
|
|
148
103
|
}
|
|
149
|
-
[dir=rtl] .iconWrapper {
|
|
150
|
-
margin-left: var(--zd_size10);
|
|
151
|
-
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
.flip,
|
|
2
2
|
.flipNone {
|
|
3
|
-
color: var(--zdt_flipcard_default_text);
|
|
4
|
-
}.flip, .flipNone {
|
|
5
3
|
background-color: var(--zdt_flipcard_default_bg);
|
|
4
|
+
color: var(--zdt_flipcard_default_text);
|
|
6
5
|
}
|
|
7
6
|
.container {
|
|
8
7
|
position: relative;
|
|
@@ -21,24 +20,16 @@
|
|
|
21
20
|
backface-visibility: hidden;
|
|
22
21
|
-webkit-backface-visibility: hidden;
|
|
23
22
|
}
|
|
24
|
-
|
|
23
|
+
.front {
|
|
25
24
|
transform: rotateY(180deg) perspective(1px);
|
|
26
25
|
}
|
|
27
|
-
[dir=rtl] .front {
|
|
28
|
-
transform: rotateY(-180deg) perspective(1px);
|
|
29
|
-
}
|
|
30
26
|
.back {
|
|
31
27
|
transform: rotateY(0deg) perspective(1px);
|
|
32
28
|
}
|
|
33
|
-
|
|
29
|
+
.notFlip .container {
|
|
34
30
|
transform: rotateY(180deg);
|
|
35
31
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
[dir=ltr] .flip:hover .container, [dir=ltr] .hoverContainer:hover .container {
|
|
32
|
+
.flip:hover .container,
|
|
33
|
+
.hoverContainer:hover .container {
|
|
40
34
|
transform: rotateY(180deg);
|
|
41
35
|
}
|
|
42
|
-
[dir=rtl] .flip:hover .container, [dir=rtl] .hoverContainer:hover .container {
|
|
43
|
-
transform: rotateY(-180deg);
|
|
44
|
-
}
|
|
@@ -25,58 +25,33 @@
|
|
|
25
25
|
padding-bottom: var(--zd_size10);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
.largePadding {
|
|
29
29
|
padding-left: var(--zd_size60);
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
[dir=rtl] .largePadding {
|
|
33
|
-
padding-right: var(--zd_size60);
|
|
34
|
-
}
|
|
35
|
-
[dir=ltr] .mediumPadding {
|
|
31
|
+
.mediumPadding {
|
|
36
32
|
padding-left: var(--zd_size50);
|
|
37
33
|
}
|
|
38
|
-
|
|
39
|
-
padding-right: var(--zd_size50);
|
|
40
|
-
}
|
|
41
|
-
[dir=ltr] .xmediumPadding {
|
|
34
|
+
.xmediumPadding {
|
|
42
35
|
padding-left: var(--zd_size30);
|
|
43
36
|
}
|
|
44
|
-
|
|
45
|
-
padding-right: var(--zd_size30);
|
|
46
|
-
}
|
|
47
|
-
[dir=ltr] .smallPadding {
|
|
37
|
+
.smallPadding {
|
|
48
38
|
padding-left: var(--zd_size25);
|
|
49
39
|
}
|
|
50
|
-
|
|
51
|
-
padding-right: var(--zd_size25);
|
|
52
|
-
}
|
|
53
|
-
[dir=ltr] .xsmallPadding {
|
|
40
|
+
.xsmallPadding {
|
|
54
41
|
padding-left: var(--zd_size20);
|
|
55
42
|
}
|
|
56
|
-
[dir=rtl] .xsmallPadding {
|
|
57
|
-
padding-right: var(--zd_size20);
|
|
58
|
-
}
|
|
59
43
|
|
|
60
44
|
.marginRight {
|
|
61
45
|
composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
|
|
62
46
|
}
|
|
63
|
-
|
|
47
|
+
.largeFooter .marginRight,
|
|
48
|
+
.mediumFooter .marginRight {
|
|
64
49
|
margin-right: var(--zd_size15);
|
|
65
50
|
}
|
|
66
|
-
|
|
67
|
-
margin-left: var(--zd_size15);
|
|
68
|
-
}
|
|
69
|
-
[dir=ltr] .smallFooter .marginRight {
|
|
51
|
+
.smallFooter .marginRight {
|
|
70
52
|
margin-right: var(--zd_size12);
|
|
71
53
|
}
|
|
72
|
-
[dir=rtl] .smallFooter .marginRight {
|
|
73
|
-
margin-left: var(--zd_size12);
|
|
74
|
-
}
|
|
75
54
|
|
|
76
|
-
|
|
55
|
+
.marginRight:last-child {
|
|
77
56
|
margin-right: 0;
|
|
78
57
|
}
|
|
79
|
-
|
|
80
|
-
[dir=rtl] .marginRight:last-child {
|
|
81
|
-
margin-left: 0;
|
|
82
|
-
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
top: 0;
|
|
3
|
+
left: 0;
|
|
3
4
|
bottom: 0;
|
|
5
|
+
right: 0;
|
|
4
6
|
position: absolute;
|
|
5
7
|
overflow: hidden;
|
|
6
|
-
}[dir=ltr] .container {
|
|
7
|
-
left: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
}[dir=rtl] .container {
|
|
10
|
-
right: 0;
|
|
11
|
-
left: 0;
|
|
12
8
|
}
|
|
13
9
|
.default {
|
|
14
10
|
background-color: var(--zdt_freezelayer_default_bg);
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
}
|
|
4
4
|
.wrapper {
|
|
5
5
|
height: var(--zd_size28);
|
|
6
|
+
cursor: pointer;
|
|
6
7
|
width: var(--zd_size28);
|
|
7
8
|
composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
|
|
8
9
|
composes: varClass;
|
|
9
10
|
color: var(--iconColor);
|
|
10
|
-
cursor: pointer;
|
|
11
11
|
}
|
|
12
12
|
.primary {
|
|
13
13
|
--iconColor: var(--zdt_iconButton_icon_primary);
|
|
@@ -8,13 +8,8 @@
|
|
|
8
8
|
color: var(--zdt_importantnotes_title_text);
|
|
9
9
|
}
|
|
10
10
|
.icon {
|
|
11
|
-
color: var(--zdt_importantnotes_icon);
|
|
12
|
-
font-size: 0;
|
|
13
11
|
margin-top: var(--zd_size1);
|
|
14
|
-
}
|
|
15
|
-
[dir=ltr] .icon {
|
|
16
12
|
margin-right: var(--zd_size5);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
margin-left: var(--zd_size5);
|
|
13
|
+
color: var(--zdt_importantnotes_icon);
|
|
14
|
+
font-size: 0;
|
|
20
15
|
}
|
|
@@ -1,33 +1,21 @@
|
|
|
1
1
|
.ajaxLoader {
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
|
-
}[dir=ltr] .ajaxLoader {
|
|
5
4
|
left: 0;
|
|
6
5
|
right: 0;
|
|
7
|
-
}[dir=rtl] .ajaxLoader {
|
|
8
|
-
right: 0;
|
|
9
|
-
left: 0;
|
|
10
6
|
}
|
|
11
7
|
.loader {
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 3px;
|
|
14
8
|
background-image: var(--zdt_loader_gradient_bg);
|
|
9
|
+
width: 100%;
|
|
15
10
|
background-size: 200% auto;
|
|
16
|
-
}
|
|
17
|
-
[dir=ltr] .loader {
|
|
18
11
|
background-position: 0 100%;
|
|
19
|
-
animation:
|
|
20
|
-
animation-fill-mode: forwards;
|
|
21
|
-
animation-timing-function: linear;
|
|
22
|
-
}
|
|
23
|
-
[dir=rtl] .loader {
|
|
24
|
-
background-position: 100% 100%;
|
|
25
|
-
animation: loading-rtl 3s infinite;
|
|
12
|
+
animation: loading 3s infinite;
|
|
26
13
|
animation-fill-mode: forwards;
|
|
27
14
|
animation-timing-function: linear;
|
|
15
|
+
height: 3px;
|
|
28
16
|
}
|
|
29
17
|
|
|
30
|
-
@keyframes loading
|
|
18
|
+
@keyframes loading {
|
|
31
19
|
0% {
|
|
32
20
|
background-position: 0 0;
|
|
33
21
|
}
|
|
@@ -35,12 +23,3 @@
|
|
|
35
23
|
background-position: -200% 0;
|
|
36
24
|
}
|
|
37
25
|
}
|
|
38
|
-
|
|
39
|
-
@keyframes loading-rtl {
|
|
40
|
-
0% {
|
|
41
|
-
background-position: 100% 0;
|
|
42
|
-
}
|
|
43
|
-
100% {
|
|
44
|
-
background-position: 300% 0;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -3,31 +3,20 @@
|
|
|
3
3
|
top: 0;
|
|
4
4
|
z-index: 1000;
|
|
5
5
|
/*Hook for editor alert*/
|
|
6
|
-
pointer-events: none;
|
|
7
|
-
text-align: center;
|
|
8
|
-
}[dir=ltr] .message {
|
|
9
6
|
right: 0;
|
|
7
|
+
text-align: center;
|
|
10
8
|
left: 0;
|
|
11
|
-
|
|
12
|
-
left: 0;
|
|
13
|
-
right: 0;
|
|
9
|
+
pointer-events: none;
|
|
14
10
|
}
|
|
15
11
|
|
|
16
12
|
.container {
|
|
17
|
-
|
|
18
|
-
display: inline-block;
|
|
19
|
-
pointer-events: initial;
|
|
13
|
+
padding: var(--zd_size13) var(--zd_size10) var(--zd_size13) var(--zd_size50);
|
|
20
14
|
box-shadow: 0 0 19px 1px var(--zdt_message_default_box_shadow);
|
|
21
15
|
border-radius: 0 0 5px 5px;
|
|
16
|
+
position: relative;
|
|
22
17
|
background: var(--zdt_message_default_bg);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[dir=ltr] .container {
|
|
26
|
-
padding: var(--zd_size13) var(--zd_size10) var(--zd_size13) var(--zd_size50);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[dir=rtl] .container {
|
|
30
|
-
padding: var(--zd_size13) var(--zd_size50) var(--zd_size13) var(--zd_size10);
|
|
18
|
+
display: inline-block;
|
|
19
|
+
pointer-events: initial;
|
|
31
20
|
}
|
|
32
21
|
|
|
33
22
|
.text {
|
|
@@ -36,32 +25,17 @@
|
|
|
36
25
|
word-break: break-word;
|
|
37
26
|
font-size: var(--zd_font_size14);
|
|
38
27
|
vertical-align: middle;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
[dir=ltr] .text {
|
|
42
28
|
text-align: left;
|
|
43
29
|
}
|
|
44
30
|
|
|
45
|
-
[dir=rtl] .text {
|
|
46
|
-
text-align: right;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
31
|
.icon {
|
|
50
32
|
position: absolute;
|
|
33
|
+
left: 0;
|
|
51
34
|
top: 0;
|
|
52
35
|
width: var(--zd_size40);
|
|
53
36
|
display: inline-block;
|
|
54
|
-
height: 100%;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[dir=ltr] .icon {
|
|
58
|
-
left: 0;
|
|
59
37
|
border-bottom-left-radius: 5px;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
[dir=rtl] .icon {
|
|
63
|
-
right: 0;
|
|
64
|
-
border-bottom-right-radius: 5px;
|
|
38
|
+
height: 100%;
|
|
65
39
|
}
|
|
66
40
|
|
|
67
41
|
.success {
|
|
@@ -89,15 +63,8 @@
|
|
|
89
63
|
.close {
|
|
90
64
|
color: var(--zdt_message_close_text);
|
|
91
65
|
font-size: var(--zd_font_size16);
|
|
66
|
+
cursor: pointer;
|
|
92
67
|
display: inline-block;
|
|
93
68
|
vertical-align: middle;
|
|
94
|
-
cursor: pointer;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
[dir=ltr] .close {
|
|
98
69
|
margin-left: var(--zd_size10);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
[dir=rtl] .close {
|
|
102
|
-
margin-right: var(--zd_size10);
|
|
103
70
|
}
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
+
.type_primary {
|
|
2
|
+
}
|
|
1
3
|
.type_secondary {
|
|
2
4
|
max-width: var(--zd_size468);
|
|
3
5
|
border-radius: 3px;
|
|
4
6
|
margin: 0 auto;
|
|
5
7
|
}
|
|
6
8
|
.message {
|
|
7
|
-
color: var(--zdt_messagebanner_text);
|
|
8
|
-
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
9
9
|
padding: var(--zd_size10) 0;
|
|
10
|
-
|
|
11
|
-
[dir=ltr] .message {
|
|
10
|
+
color: var(--zdt_messagebanner_text);
|
|
12
11
|
margin-left: var(--zd_size10);
|
|
13
|
-
|
|
14
|
-
[dir=rtl] .message {
|
|
15
|
-
margin-right: var(--zd_size10);
|
|
12
|
+
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
16
13
|
}
|
|
17
14
|
.link {
|
|
18
15
|
color: var(--zdt_messagebanner_link_text);
|
|
19
|
-
}
|
|
20
|
-
[dir=ltr] .link {
|
|
21
16
|
margin-left: var(--zd_size5);
|
|
22
17
|
}
|
|
23
|
-
[dir=rtl] .link {
|
|
24
|
-
margin-right: var(--zd_size5);
|
|
25
|
-
}
|
|
26
18
|
.message,.link{font-size: var(--zd_font_size14);}
|
|
27
19
|
.close {
|
|
28
20
|
color: var(--zdt_messagebanner_close_text);
|
|
@@ -5,53 +5,26 @@
|
|
|
5
5
|
width: var(--zd_size21);
|
|
6
6
|
}
|
|
7
7
|
.topLeft {
|
|
8
|
-
top: 0;
|
|
9
|
-
}
|
|
10
|
-
[dir=ltr] .topLeft {
|
|
11
8
|
transform: translate(-45%, -45%);
|
|
12
9
|
left: 0;
|
|
13
|
-
}
|
|
14
|
-
[dir=rtl] .topLeft {
|
|
15
|
-
transform: translate(45%, -45%);
|
|
16
|
-
right: 0;
|
|
17
|
-
}
|
|
18
|
-
.topRight {
|
|
19
10
|
top: 0;
|
|
20
11
|
}
|
|
21
|
-
|
|
12
|
+
.topRight {
|
|
22
13
|
transform: translate(45%, -45%);
|
|
23
14
|
right: 0;
|
|
24
|
-
|
|
25
|
-
[dir=rtl] .topRight {
|
|
26
|
-
transform: translate(-45%, -45%);
|
|
27
|
-
left: 0;
|
|
15
|
+
top: 0;
|
|
28
16
|
}
|
|
29
17
|
.bottomLeft {
|
|
30
|
-
bottom: 0;
|
|
31
|
-
}
|
|
32
|
-
[dir=ltr] .bottomLeft {
|
|
33
18
|
transform: translate(-45%, 45%);
|
|
34
19
|
left: 0;
|
|
35
|
-
}
|
|
36
|
-
[dir=rtl] .bottomLeft {
|
|
37
|
-
transform: translate(45%, 45%);
|
|
38
|
-
right: 0;
|
|
39
|
-
}
|
|
40
|
-
.bottomRight {
|
|
41
20
|
bottom: 0;
|
|
42
21
|
}
|
|
43
|
-
|
|
22
|
+
.bottomRight {
|
|
44
23
|
transform: translate(45%, 45%);
|
|
45
24
|
right: 0;
|
|
25
|
+
bottom: 0;
|
|
46
26
|
}
|
|
47
|
-
|
|
48
|
-
transform: translate(-45%, 45%);
|
|
49
|
-
left: 0;
|
|
50
|
-
}
|
|
51
|
-
[dir=ltr] .stars {
|
|
52
|
-
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
53
|
-
}
|
|
54
|
-
[dir=rtl] .stars {
|
|
27
|
+
.stars {
|
|
55
28
|
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
56
29
|
}
|
|
57
30
|
.green::before {
|
|
@@ -68,20 +41,10 @@
|
|
|
68
41
|
}
|
|
69
42
|
.starTwo {
|
|
70
43
|
composes: stars;
|
|
71
|
-
}
|
|
72
|
-
[dir=ltr] .starTwo {
|
|
73
|
-
animation-delay: 0.5s;
|
|
74
|
-
}
|
|
75
|
-
[dir=rtl] .starTwo {
|
|
76
44
|
animation-delay: 0.5s;
|
|
77
45
|
}
|
|
78
46
|
.starThree {
|
|
79
47
|
composes: stars;
|
|
80
|
-
}
|
|
81
|
-
[dir=ltr] .starThree {
|
|
82
|
-
animation-delay: 1s;
|
|
83
|
-
}
|
|
84
|
-
[dir=rtl] .starThree {
|
|
85
48
|
animation-delay: 1s;
|
|
86
49
|
}
|
|
87
50
|
|
package/es/Provider.js
CHANGED
|
@@ -4,6 +4,7 @@ import { Container } from '@zohodesk/components/lib/Layout';
|
|
|
4
4
|
import AppContainer from '@zohodesk/components/lib/AppContainer/AppContainer';
|
|
5
5
|
import LibraryContext from '@zohodesk/components/lib/Provider/LibraryContextInit';
|
|
6
6
|
import datetime from '@zohodesk/datetimejs';
|
|
7
|
+
import ThemeTool from '../../common/lib/ThemeTool/ThemeTool';
|
|
7
8
|
import i18n from './i18n';
|
|
8
9
|
/* component pkg - default mode & themes */
|
|
9
10
|
|
|
@@ -109,6 +110,7 @@ export default class Provider extends React.Component {
|
|
|
109
110
|
themeName: 'blue'
|
|
110
111
|
};
|
|
111
112
|
this.setTheme = this.setTheme.bind(this);
|
|
113
|
+
this.setAppearance = this.setAppearance.bind(this);
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
setAppearance(mode) {
|
|
@@ -128,51 +130,6 @@ export default class Provider extends React.Component {
|
|
|
128
130
|
appearanceName,
|
|
129
131
|
themeName
|
|
130
132
|
} = this.state;
|
|
131
|
-
let themeClass = {
|
|
132
|
-
width: '20px',
|
|
133
|
-
height: '20px',
|
|
134
|
-
borderRadius: '3px',
|
|
135
|
-
display: 'flex',
|
|
136
|
-
border: '1px solid #ccc',
|
|
137
|
-
margin: '0 5px',
|
|
138
|
-
cursor: 'pointer',
|
|
139
|
-
backgroundColor: '#0a73eb'
|
|
140
|
-
};
|
|
141
|
-
let green = {
|
|
142
|
-
backgroundColor: '#26a942'
|
|
143
|
-
};
|
|
144
|
-
let red = {
|
|
145
|
-
backgroundColor: '#de3535'
|
|
146
|
-
};
|
|
147
|
-
let orange = {
|
|
148
|
-
backgroundColor: '#e57717'
|
|
149
|
-
};
|
|
150
|
-
let yellow = {
|
|
151
|
-
backgroundColor: '#e8b923'
|
|
152
|
-
};
|
|
153
|
-
let light = {
|
|
154
|
-
backgroundColor: '#fff'
|
|
155
|
-
};
|
|
156
|
-
let night = {
|
|
157
|
-
backgroundColor: '#232b38'
|
|
158
|
-
};
|
|
159
|
-
let dark = {
|
|
160
|
-
backgroundColor: '#212121'
|
|
161
|
-
};
|
|
162
|
-
let fixedPosition = {
|
|
163
|
-
position: 'fixed',
|
|
164
|
-
bottom: '0',
|
|
165
|
-
backgroundColor: '#272727',
|
|
166
|
-
padding: '10px',
|
|
167
|
-
borderRadius: '15px 15px 0 0',
|
|
168
|
-
minWidth: '100px',
|
|
169
|
-
textAlign: 'center',
|
|
170
|
-
boxShadow: '0 0 3px #000',
|
|
171
|
-
fontSize: '12px',
|
|
172
|
-
zIndex: '3',
|
|
173
|
-
display: 'flex',
|
|
174
|
-
alignItems: 'center'
|
|
175
|
-
};
|
|
176
133
|
return /*#__PURE__*/React.createElement(I18NProvider, {
|
|
177
134
|
i18n: i18n,
|
|
178
135
|
timeZone: "Asia/Kolkata",
|
|
@@ -194,66 +151,9 @@ export default class Provider extends React.Component {
|
|
|
194
151
|
}
|
|
195
152
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
196
153
|
scroll: "vertical"
|
|
197
|
-
}, this.props.children), /*#__PURE__*/React.createElement(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
transform: 'translate(-20%)'
|
|
201
|
-
})
|
|
202
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
203
|
-
style: {
|
|
204
|
-
color: '#fff'
|
|
205
|
-
}
|
|
206
|
-
}, "Appearance:"), /*#__PURE__*/React.createElement("div", {
|
|
207
|
-
style: {
|
|
208
|
-
display: 'flex'
|
|
209
|
-
}
|
|
210
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
211
|
-
title: "Light Mode",
|
|
212
|
-
style: Object.assign({}, themeClass, light),
|
|
213
|
-
onClick: () => this.setAppearance('default')
|
|
214
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
215
|
-
title: "Night Mode",
|
|
216
|
-
style: Object.assign({}, themeClass, night),
|
|
217
|
-
onClick: () => this.setAppearance('dark')
|
|
218
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
219
|
-
title: "Dark Mode",
|
|
220
|
-
style: Object.assign({}, themeClass, dark),
|
|
221
|
-
onClick: () => this.setAppearance('pureDark')
|
|
222
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
223
|
-
style: Object.assign({}, fixedPosition, {
|
|
224
|
-
left: '80%',
|
|
225
|
-
transform: 'translate(-80%)'
|
|
226
|
-
})
|
|
227
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
228
|
-
style: {
|
|
229
|
-
color: '#fff'
|
|
230
|
-
}
|
|
231
|
-
}, "Themes:"), /*#__PURE__*/React.createElement("div", {
|
|
232
|
-
style: {
|
|
233
|
-
display: 'flex'
|
|
234
|
-
}
|
|
235
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
236
|
-
title: "Blue Theme",
|
|
237
|
-
style: themeClass,
|
|
238
|
-
onClick: () => this.setTheme('blue')
|
|
239
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
240
|
-
title: "Green Theme",
|
|
241
|
-
style: Object.assign({}, themeClass, green),
|
|
242
|
-
onClick: () => this.setTheme('green')
|
|
243
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
244
|
-
title: "Red Theme",
|
|
245
|
-
style: Object.assign({}, themeClass, red),
|
|
246
|
-
onClick: () => this.setTheme('red')
|
|
247
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
248
|
-
title: "Orange Theme",
|
|
249
|
-
style: Object.assign({}, themeClass, orange),
|
|
250
|
-
onClick: () => this.setTheme('orange')
|
|
251
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
252
|
-
title: "Yellow Theme",
|
|
253
|
-
style: Object.assign({}, themeClass, yellow),
|
|
254
|
-
onClick: () => this.setTheme('yellow')
|
|
255
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
256
|
-
"data-portal": "portal1"
|
|
154
|
+
}, this.props.children), /*#__PURE__*/React.createElement(ThemeTool, {
|
|
155
|
+
onThemeChange: this.setTheme,
|
|
156
|
+
onAppearanceChange: this.setAppearance
|
|
257
157
|
}))));
|
|
258
158
|
}
|
|
259
159
|
|