@zohodesk/dot 1.0.0-temp-50 → 1.0.0-temp-51
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 +77 -31
- package/es/Appearance/dark/mode/dotDarkMode.module.css +4 -4
- package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/green/greenDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/red/redDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +2 -0
- package/es/Appearance/default/mode/dotDefaultMode.module.css +4 -4
- package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/green/greenDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/red/redDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +2 -0
- package/es/Drawer/Drawer.js +6 -8
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +1 -0
- package/es/Link/Link.js +1 -1
- package/es/MessageBanner/MessageBanner.js +10 -5
- package/es/MessageBanner/MessageBanner.module.css +4 -3
- package/es/Provider.js +7 -1
- package/es/alert/AlertLookup/AlertLookup.js +1 -2
- package/es/avatar/AvatarThread/AvatarThread.js +7 -5
- package/es/docs/setupDocs.js +1 -3
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +5 -11
- package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
- package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
- package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
- package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
- package/es/errorstate/WillBack/WillBack.js +30 -34
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -0
- package/es/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/form/layout/Section/Section.js +7 -3
- package/es/list/ListLayout/ListLayout.js +10 -4
- package/es/list/ListLayout/ListLayout.module.css +29 -4
- package/es/list/SecondryPanel/docs/SecondryPanel__default.docs.js +46 -50
- package/es/list/UserTime/docs/UserTime__default.docs.js +30 -40
- package/es/list/status/StatusListItem/StatusListItem.js +2 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +4 -8
- package/es/utils/General.js +3 -7
- package/es/utils/KeyboardApi.js +1 -3
- package/es/utils/editorUtils.js +2 -5
- package/es/version2/lookup/AlertLookup/AlertLookup.js +1 -2
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +4 -4
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +2 -0
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +4 -4
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +2 -0
- package/lib/Drawer/Drawer.js +1 -1
- package/lib/FormAction/FormAction.js +1 -1
- package/lib/Link/Link.js +1 -1
- package/lib/Message/Message.js +1 -1
- package/lib/MessageBanner/MessageBanner.js +10 -5
- package/lib/MessageBanner/MessageBanner.module.css +4 -3
- package/lib/Provider.js +8 -1
- package/lib/avatar/AvatarThread/AvatarThread.js +7 -5
- package/lib/docs/formDocs.js +52 -52
- package/lib/docs/generalDocs.js +250 -250
- package/lib/docs/lookupDocs.js +70 -70
- package/lib/docs/setupDocs.js +32 -32
- package/lib/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/form/layout/Section/Section.js +7 -3
- package/lib/index.js +4 -4
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/layout/SetupDetailLayout/index.js +6 -6
- package/lib/layout/SubtabLayout/SubtabLayout.js +1 -1
- package/lib/layout/SubtabLayout/index.js +8 -8
- package/lib/list/ListLayout/ListLayout.js +12 -6
- package/lib/list/ListLayout/ListLayout.module.css +29 -4
- package/lib/list/SecondaryText/index.js +22 -22
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
- package/lib/utils/ChannelIconMapping.js +1 -1
- package/lib/utils/General.js +3 -3
- package/lib/utils/KeyboardApi.js +1 -3
- package/lib/utils/editorUtils.js +6 -6
- package/lib/version2/GlobalNotification/GlobalNotification.js +1 -1
- package/package.json +7 -7
- package/src/Appearance/dark/mode/dotDarkMode.module.css +4 -4
- package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +2 -0
- package/src/Appearance/default/mode/dotDefaultMode.module.css +4 -4
- package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +2 -0
- package/src/Link/Link.js +3 -1
- package/src/MessageBanner/MessageBanner.js +10 -6
- package/src/MessageBanner/MessageBanner.module.css +3 -2
- package/src/Provider.js +3 -0
- package/src/avatar/AvatarThread/AvatarThread.js +8 -3
- package/src/docs/setupDocs.js +0 -2
- package/src/form/fields/TextEditor/TextEditor.js +1 -1
- package/src/form/layout/Section/Section.js +14 -10
- package/src/list/ListLayout/ListLayout.js +11 -5
- package/src/list/ListLayout/ListLayout.module.css +18 -4
- package/es/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/es/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/es/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -40
- package/lib/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/lib/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/lib/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/lib/deprecated/Theme/palette/defaultPalette.module.css +0 -40
- package/src/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/src/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/src/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/src/deprecated/Theme/palette/defaultPalette.module.css +0 -40
|
@@ -5,16 +5,15 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
composes: varClass;
|
|
7
7
|
}
|
|
8
|
-
.listHover:hover {
|
|
9
|
-
background-color: var(--
|
|
8
|
+
.listHover:hover, .hoveredStyle{
|
|
9
|
+
background-color: var(--zdt_listLayout_hover_bg);
|
|
10
10
|
}
|
|
11
11
|
.active, .active:hover {
|
|
12
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--zdt_listLayout_active_bg);
|
|
13
13
|
}
|
|
14
14
|
.cursorPointer{
|
|
15
15
|
cursor: pointer
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
/* View */
|
|
19
18
|
.classic .innerContainer {
|
|
20
19
|
min-height: var(--zd_size70);
|
|
@@ -31,3 +30,29 @@
|
|
|
31
30
|
.compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
|
|
32
31
|
border-bottom: 1px dotted var(--listBorder);
|
|
33
32
|
}
|
|
33
|
+
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
34
|
+
border-left: var(--zd_size2) solid transparent;
|
|
35
|
+
}
|
|
36
|
+
[dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
|
|
37
|
+
border-right: var(--zd_size2) solid transparent;
|
|
38
|
+
}
|
|
39
|
+
[dir=ltr] .keyboardActive, [dir=ltr] .active{
|
|
40
|
+
border-top-left-radius: var(--zd_size5);
|
|
41
|
+
border-bottom-left-radius: var(--zd_size5);
|
|
42
|
+
}
|
|
43
|
+
[dir=rtl] .keyboardActive, [dir=rtl] .active{
|
|
44
|
+
border-top-right-radius: var(--zd_size5);
|
|
45
|
+
border-bottom-right-radius: var(--zd_size5);
|
|
46
|
+
}
|
|
47
|
+
[dir=ltr] .keyboardActive{
|
|
48
|
+
border-left-color: var(--zdt_listLayout_keyboard_active_border);
|
|
49
|
+
}
|
|
50
|
+
[dir=rtl] .keyboardActive{
|
|
51
|
+
border-right-color: var(--zdt_listLayout_keyboard_active_border);
|
|
52
|
+
}
|
|
53
|
+
[dir=ltr] .active{
|
|
54
|
+
border-left-color: var(--zdt_listLayout_active_border);
|
|
55
|
+
}
|
|
56
|
+
[dir=rtl] .active{
|
|
57
|
+
border-right-color: var(--zdt_listLayout_active_border);
|
|
58
|
+
}
|
|
@@ -3,40 +3,34 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "AccountName", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _AccountName["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "ContactName", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
15
9
|
return _ContactName["default"];
|
|
16
10
|
}
|
|
17
11
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "AccountName", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function get() {
|
|
21
|
-
return
|
|
15
|
+
return _AccountName["default"];
|
|
22
16
|
}
|
|
23
17
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "TicketId", {
|
|
25
19
|
enumerable: true,
|
|
26
20
|
get: function get() {
|
|
27
|
-
return
|
|
21
|
+
return _TicketId["default"];
|
|
28
22
|
}
|
|
29
23
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "StatusText", {
|
|
31
25
|
enumerable: true,
|
|
32
26
|
get: function get() {
|
|
33
|
-
return
|
|
27
|
+
return _StatusText["default"];
|
|
34
28
|
}
|
|
35
29
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "DepartmentText", {
|
|
37
31
|
enumerable: true,
|
|
38
32
|
get: function get() {
|
|
39
|
-
return
|
|
33
|
+
return _DepartmentText["default"];
|
|
40
34
|
}
|
|
41
35
|
});
|
|
42
36
|
Object.defineProperty(exports, "PriorityText", {
|
|
@@ -45,28 +39,34 @@ Object.defineProperty(exports, "PriorityText", {
|
|
|
45
39
|
return _PriorityText["default"];
|
|
46
40
|
}
|
|
47
41
|
});
|
|
48
|
-
Object.defineProperty(exports, "
|
|
42
|
+
Object.defineProperty(exports, "Email", {
|
|
49
43
|
enumerable: true,
|
|
50
44
|
get: function get() {
|
|
51
|
-
return
|
|
45
|
+
return _Email["default"];
|
|
52
46
|
}
|
|
53
47
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "PhoneNumber", {
|
|
55
49
|
enumerable: true,
|
|
56
50
|
get: function get() {
|
|
57
|
-
return
|
|
51
|
+
return _PhoneNumber["default"];
|
|
58
52
|
}
|
|
59
53
|
});
|
|
60
|
-
Object.defineProperty(exports, "
|
|
54
|
+
Object.defineProperty(exports, "Website", {
|
|
61
55
|
enumerable: true,
|
|
62
56
|
get: function get() {
|
|
63
|
-
return
|
|
57
|
+
return _Website["default"];
|
|
64
58
|
}
|
|
65
59
|
});
|
|
66
|
-
Object.defineProperty(exports, "
|
|
60
|
+
Object.defineProperty(exports, "SecondaryText", {
|
|
67
61
|
enumerable: true,
|
|
68
62
|
get: function get() {
|
|
69
|
-
return
|
|
63
|
+
return _SecondaryText["default"];
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "HappinessRating", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _HappinessRating["default"];
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.SecondryPanelItem = exports.SecondryPanelLI = exports.SecondryPanelUL = exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getActivitiesIconObj = getActivitiesIconObj;
|
|
7
6
|
exports.getChannelMappingObj = getChannelMappingObj;
|
|
7
|
+
exports.getActivitiesIconObj = getActivitiesIconObj;
|
|
8
8
|
|
|
9
9
|
function getChannelMappingObj() {
|
|
10
10
|
return {
|
package/lib/utils/General.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.formatPhoneUrl = formatPhoneUrl;
|
|
6
|
+
exports.stopBubbling = stopBubbling;
|
|
8
7
|
exports.getFullName = getFullName;
|
|
9
8
|
exports.shallowDiff = shallowDiff;
|
|
10
|
-
exports.
|
|
9
|
+
exports.formatPhoneUrl = formatPhoneUrl;
|
|
10
|
+
exports.formatCurrency = formatCurrency;
|
|
11
11
|
|
|
12
12
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
13
13
|
|
package/lib/utils/KeyboardApi.js
CHANGED
|
@@ -289,9 +289,7 @@ function _shortRestrictionPlaces(e) {
|
|
|
289
289
|
var keyCode = e.keyCode || e.charCode;
|
|
290
290
|
var isContentEditable = _target.contentEditable === 'true';
|
|
291
291
|
|
|
292
|
-
if (['TEXTAREA', 'INPUT', 'SELECT'].indexOf(tagName) !== -1 ||
|
|
293
|
-
//restrict_keyUI() ||
|
|
294
|
-
keyCode >= 112 && keyCode <= 123 || isContentEditable) {
|
|
292
|
+
if (['TEXTAREA', 'INPUT', 'SELECT'].indexOf(tagName) !== -1 || keyCode >= 112 && keyCode <= 123 || isContentEditable) {
|
|
295
293
|
return true;
|
|
296
294
|
}
|
|
297
295
|
|
package/lib/utils/editorUtils.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.bind = bind;
|
|
7
|
-
exports.changeContent = void 0;
|
|
8
6
|
exports.editorContentValidate = editorContentValidate;
|
|
9
|
-
exports.encodeForHtml = encodeForHtml;
|
|
10
7
|
exports.fixEncoding = fixEncoding;
|
|
11
|
-
exports.
|
|
12
|
-
exports.getRichEditorContent = getRichEditorContent;
|
|
8
|
+
exports.encodeForHtml = encodeForHtml;
|
|
13
9
|
exports.isFileNameSizeInvalid = isFileNameSizeInvalid;
|
|
14
10
|
exports.isImageFormat = isImageFormat;
|
|
15
|
-
exports.
|
|
11
|
+
exports.getExtensionFromFileName = getExtensionFromFileName;
|
|
16
12
|
exports.triggerKeyup = triggerKeyup;
|
|
13
|
+
exports.getRichEditorContent = getRichEditorContent;
|
|
17
14
|
exports.validateEditorContentOnInsertHtml = validateEditorContentOnInsertHtml;
|
|
15
|
+
exports.loadResource = loadResource;
|
|
16
|
+
exports.bind = bind;
|
|
17
|
+
exports.changeContent = void 0;
|
|
18
18
|
var ATTACHMENT_FILE_NAME_SIZE_LIMIT = 200; // editorUtils
|
|
19
19
|
|
|
20
20
|
function editorContentValidate(editorObj) {
|
|
@@ -5,8 +5,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.GlobalNotificationNew = GlobalNotificationNew;
|
|
9
8
|
exports.GlobalNotificationUI = GlobalNotificationUI;
|
|
9
|
+
exports.GlobalNotificationNew = GlobalNotificationNew;
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-51",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"jsnext:main": "es/index.js",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"dependencies": {},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"velocity-react": "^1.4.3",
|
|
33
|
-
"@zohodesk/variables": "1.0.0-
|
|
33
|
+
"@zohodesk/variables": "1.0.0-beta.25",
|
|
34
34
|
"@zohodesk/i18n": "^1.0.0-beta.7",
|
|
35
|
-
"@zohodesk/components": "1.0.0-
|
|
35
|
+
"@zohodesk/components": "1.0.0-alpha-219",
|
|
36
36
|
"@zohodesk/icons": "1.0.0-beta.85",
|
|
37
|
-
"@zohodesk/svg": "1.0.0-beta.
|
|
37
|
+
"@zohodesk/svg": "1.0.0-beta.37",
|
|
38
38
|
"@zohodesk/virtualizer": "1.0.3",
|
|
39
39
|
"react-sortable-hoc": "^0.8.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"velocity-react": "^1.4.3",
|
|
43
|
-
"@zohodesk/variables": "^1.0.0-beta.
|
|
43
|
+
"@zohodesk/variables": "^1.0.0-beta.25",
|
|
44
44
|
"@zohodesk/i18n": "^1.0.0-beta.7",
|
|
45
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
45
|
+
"@zohodesk/components": "1.0.0-alpha-219",
|
|
46
46
|
"@zohodesk/icons": "^1.0.0-beta.85",
|
|
47
|
-
"@zohodesk/svg": "^1.0.0-beta.
|
|
47
|
+
"@zohodesk/svg": "^1.0.0-beta.37"
|
|
48
48
|
},
|
|
49
49
|
"react-cli": {
|
|
50
50
|
"app": {
|
|
@@ -114,8 +114,6 @@
|
|
|
114
114
|
--zdt_commonEmptyState_default_description: #a8b0bd;
|
|
115
115
|
--zdt_commonEmptyState_default_link: var(--zdt_cta_primary_text);
|
|
116
116
|
--zdt_commonEmptyState_default_link_hover: var(--zdt_cta_primary_hover_text);
|
|
117
|
-
--zdt_commonEmptyState_dark_title: #fff;
|
|
118
|
-
--zdt_commonEmptyState_dark_description: #fff;
|
|
119
117
|
|
|
120
118
|
/* edition page */
|
|
121
119
|
--zdt_editionpage_footer_text: var(--zd_text_smoke5);
|
|
@@ -232,8 +230,10 @@
|
|
|
232
230
|
|
|
233
231
|
/* list layout */
|
|
234
232
|
--zdt_listLayout_border: var(--zdt_cta_grey_15_border);
|
|
235
|
-
--
|
|
236
|
-
--
|
|
233
|
+
--zdt_listLayout_hover_bg: var(--dot_listItemHover);
|
|
234
|
+
--zdt_listLayout_active_bg: var(--dot_listItemActive);
|
|
235
|
+
--zdt_listLayout_active_border: var(--zdt_cta_primary_border);
|
|
236
|
+
--zdt_listLayout_keyboard_active_border:#828994;
|
|
237
237
|
|
|
238
238
|
/* list stencils */
|
|
239
239
|
--zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #479dff;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #2469ff;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #45a159;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #0e7c1c;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #ff801f;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #a85100;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #e94f4f;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #a81111;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #d79835;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #9b6808;
|
|
8
10
|
}
|
|
@@ -114,8 +114,6 @@
|
|
|
114
114
|
--zdt_commonEmptyState_default_description: var(--dot_text_shuttleGrey);
|
|
115
115
|
--zdt_commonEmptyState_default_link: var(--zdt_cta_primary_text);
|
|
116
116
|
--zdt_commonEmptyState_default_link_hover: var(--zdt_cta_primary_hover_text);
|
|
117
|
-
--zdt_commonEmptyState_dark_title: #fff;
|
|
118
|
-
--zdt_commonEmptyState_dark_description: #fff;
|
|
119
117
|
|
|
120
118
|
/* edition page */
|
|
121
119
|
--zdt_editionpage_footer_text: var(--zd_text_smoke5);
|
|
@@ -232,8 +230,10 @@
|
|
|
232
230
|
|
|
233
231
|
/* list layout */
|
|
234
232
|
--zdt_listLayout_border: var(--zdt_cta_grey_15_border);
|
|
235
|
-
--
|
|
236
|
-
--
|
|
233
|
+
--zdt_listLayout_hover_bg: var(--dot_listItemHover);
|
|
234
|
+
--zdt_listLayout_active_bg: var(--dot_listItemActive);
|
|
235
|
+
--zdt_listLayout_active_border: var(--zdt_cta_primary_border);
|
|
236
|
+
--zdt_listLayout_keyboard_active_border:var(--dot_border_slateGrey);
|
|
237
237
|
|
|
238
238
|
/* list stencils */
|
|
239
239
|
--zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(44, 51, 77, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #6cbbfc;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #2469ff;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(15, 34, 38, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #4ac064;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #0e7526;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(36, 30, 19, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #e57717;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #b25900;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(34, 15, 27, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #ff6363;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #ab1a18;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(34, 36, 18, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #e8b923;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #b59100;
|
|
8
10
|
}
|
package/src/Link/Link.js
CHANGED
|
@@ -15,20 +15,22 @@ export default class MessageBanner extends React.Component {
|
|
|
15
15
|
onClick,
|
|
16
16
|
urlText,
|
|
17
17
|
palette,
|
|
18
|
-
customClass
|
|
18
|
+
customClass,
|
|
19
|
+
dataId
|
|
19
20
|
} = this.props;
|
|
20
21
|
|
|
21
22
|
return (
|
|
22
23
|
<Container
|
|
23
|
-
className={`${style[`type_${
|
|
24
|
-
style[`palette_${
|
|
24
|
+
className={`${style[`type_${type}`]} ${
|
|
25
|
+
style[`palette_${palette}`]
|
|
25
26
|
} ${customClass}`}
|
|
26
27
|
alignBox='row'
|
|
27
28
|
isCover={false}
|
|
29
|
+
dataId={dataId}
|
|
28
30
|
>
|
|
29
31
|
<Box className={style.content} flexible>
|
|
30
32
|
<Container alignBox='row' align='both'>
|
|
31
|
-
<Box className={style.message} adjust shrink>
|
|
33
|
+
<Box className={style.message} adjust shrink data-title={message}>
|
|
32
34
|
{message}
|
|
33
35
|
</Box>
|
|
34
36
|
{href && (
|
|
@@ -59,7 +61,8 @@ export default class MessageBanner extends React.Component {
|
|
|
59
61
|
MessageBanner.defaultProps = {
|
|
60
62
|
type: 'primary',
|
|
61
63
|
palette: 'default',
|
|
62
|
-
customClass: ''
|
|
64
|
+
customClass: '',
|
|
65
|
+
dataId:'MessageBanner'
|
|
63
66
|
};
|
|
64
67
|
MessageBanner.propTypes = {
|
|
65
68
|
customClass: PropTypes.string,
|
|
@@ -69,7 +72,8 @@ MessageBanner.propTypes = {
|
|
|
69
72
|
onClose: PropTypes.func,
|
|
70
73
|
palette: PropTypes.oneOf(['default', 'blue', 'white']),
|
|
71
74
|
type: PropTypes.oneOf(['primary', 'secondary']),
|
|
72
|
-
urlText: PropTypes.string
|
|
75
|
+
urlText: PropTypes.string,
|
|
76
|
+
dataId:PropTypes.string
|
|
73
77
|
};
|
|
74
78
|
|
|
75
79
|
if (__DOCS__) {
|
|
@@ -6,15 +6,16 @@
|
|
|
6
6
|
margin: 0 auto;
|
|
7
7
|
}
|
|
8
8
|
.message {
|
|
9
|
-
padding: var(--zd_size10)
|
|
9
|
+
padding: var(--zd_size10) 0;
|
|
10
10
|
color: var(--zdt_messagebanner_text);
|
|
11
|
-
margin:
|
|
11
|
+
margin-left: var(--zd_size10);
|
|
12
12
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
13
13
|
}
|
|
14
14
|
.link {
|
|
15
15
|
color: var(--zdt_messagebanner_link_text);
|
|
16
16
|
margin-left: var(--zd_size5);
|
|
17
17
|
}
|
|
18
|
+
.message,.link{font-size: var(--zd_font_size14);}
|
|
18
19
|
.close {
|
|
19
20
|
color: var(--zdt_messagebanner_close_text);
|
|
20
21
|
cursor: pointer;
|
package/src/Provider.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { I18NProvider } from '@zohodesk/i18n';
|
|
3
3
|
import { Container } from '@zohodesk/components/lib/Layout';
|
|
4
4
|
import AppContainer from '@zohodesk/components/lib/AppContainer/AppContainer';
|
|
5
|
+
import LibraryContext from '@zohodesk/components/lib/Provider/LibraryContextInit';
|
|
5
6
|
import datetime from '@zohodesk/datetimejs';
|
|
6
7
|
import i18n from './i18n';
|
|
7
8
|
/* component pkg - default mode & themes */
|
|
@@ -134,6 +135,7 @@ export default class Provider extends React.Component {
|
|
|
134
135
|
timeFormat={''}
|
|
135
136
|
direction={'ltr'}
|
|
136
137
|
>
|
|
138
|
+
<LibraryContext.Provider value={{isReducedMotion:false,direction:'ltr'}}>
|
|
137
139
|
<AppContainer
|
|
138
140
|
customProps={{ExtraProps:{'data-mode':appearanceName,'data-theme':themeName}}}
|
|
139
141
|
>
|
|
@@ -194,6 +196,7 @@ export default class Provider extends React.Component {
|
|
|
194
196
|
</div>
|
|
195
197
|
</div>
|
|
196
198
|
</AppContainer>
|
|
199
|
+
</LibraryContext.Provider>
|
|
197
200
|
</I18NProvider>
|
|
198
201
|
);
|
|
199
202
|
}
|
|
@@ -28,7 +28,8 @@ export default class AvatarThread extends React.Component {
|
|
|
28
28
|
customTextClass,
|
|
29
29
|
needTitle,
|
|
30
30
|
customProps,
|
|
31
|
-
iconClass
|
|
31
|
+
iconClass,
|
|
32
|
+
getCustomThread
|
|
32
33
|
} = this.props;
|
|
33
34
|
let { AvatarThreadProps = {}, AvatarProps = {} } = customProps;
|
|
34
35
|
let hoverEffect = showOnHover ? style.hover : '';
|
|
@@ -53,7 +54,7 @@ export default class AvatarThread extends React.Component {
|
|
|
53
54
|
needTitle={needTitle}
|
|
54
55
|
{...AvatarProps}
|
|
55
56
|
/>
|
|
56
|
-
{iconName && (
|
|
57
|
+
{(iconName || getCustomThread) && (
|
|
57
58
|
<span
|
|
58
59
|
className={`${style.thread} ${
|
|
59
60
|
onIconClick ? style.pointer : style.defaultCursor
|
|
@@ -64,6 +65,7 @@ export default class AvatarThread extends React.Component {
|
|
|
64
65
|
data-id={iconTitle === 'Remove Follower' && 'removeFollower'}
|
|
65
66
|
onClick={onIconClick}
|
|
66
67
|
>
|
|
68
|
+
{iconName &&
|
|
67
69
|
<span className={style.icon}>
|
|
68
70
|
<Icon
|
|
69
71
|
name={iconName}
|
|
@@ -75,6 +77,8 @@ export default class AvatarThread extends React.Component {
|
|
|
75
77
|
}
|
|
76
78
|
/>
|
|
77
79
|
</span>
|
|
80
|
+
}
|
|
81
|
+
{getCustomThread && getCustomThread()}
|
|
78
82
|
</span>
|
|
79
83
|
)}
|
|
80
84
|
</div>
|
|
@@ -121,7 +125,8 @@ AvatarThread.propTypes = {
|
|
|
121
125
|
AvatarThreadProps: PropTypes.object,
|
|
122
126
|
AvatarProps: PropTypes.object
|
|
123
127
|
}),
|
|
124
|
-
iconClass: PropTypes.string
|
|
128
|
+
iconClass: PropTypes.string,
|
|
129
|
+
getCustomThread: PropTypes.func
|
|
125
130
|
};
|
|
126
131
|
|
|
127
132
|
if (__DOCS__) {
|
package/src/docs/setupDocs.js
CHANGED
|
@@ -9,8 +9,6 @@ export { default as HelpTitle__default } from '../setup/helptips/Title/docs/Titl
|
|
|
9
9
|
export { default as HelpListGroup } from '../setup/helptips/ListGroup/ListGroup';
|
|
10
10
|
export { default as HelpListGroup__default } from '../setup/helptips/ListGroup/docs/ListGroup__default.docs';
|
|
11
11
|
|
|
12
|
-
// export { default as SelectDropdown } from '../setup/header/SelectDropdown/SelectDropdown';
|
|
13
|
-
// export { default as SelectDropdown__default } from '../setup/header/SelectDropdown/docs/SelectDropdown__default.docs';
|
|
14
12
|
export { default as SetupHeaderViews } from '../setup/header/Views/Views';
|
|
15
13
|
export { default as SetupHeaderViews__default } from '../setup/header/Views/docs/Views__default.docs';
|
|
16
14
|
export { default as SetupHeaderSearch } from '../setup/header/Search/Search';
|
|
@@ -228,7 +228,7 @@ export default class TextEditor extends Component {
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
let customFonts= document.createElement('style');
|
|
231
|
-
customFonts.innerText= `@font-face {font-family: 'ZohoPuviRegular';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/
|
|
231
|
+
customFonts.innerText= `@font-face {font-family: 'ZohoPuviRegular';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: normal;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: Regular;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: 'RobotoRegular';font-weight: 400;font-style: normal;font-display: swa;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}`
|
|
232
232
|
iframeHead.appendChild(customFonts);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -14,18 +14,21 @@ export default class Section extends Component {
|
|
|
14
14
|
titleClass,
|
|
15
15
|
className,
|
|
16
16
|
column,
|
|
17
|
-
formName
|
|
17
|
+
formName,
|
|
18
|
+
innerContainerClass
|
|
18
19
|
} = this.props;
|
|
19
20
|
return (
|
|
20
21
|
<div data-id={dataId} className={containerClass ? containerClass : ''}>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
<div className={innerContainerClass ? innerContainerClass : '' }>
|
|
23
|
+
{title && <div className={titleClass ? titleClass : ''}>{title}</div>}
|
|
24
|
+
<div
|
|
25
|
+
className={`${className ? className : ''} ${
|
|
26
|
+
column == 'single' ? style.singleColumn : ''
|
|
27
|
+
}`}
|
|
28
|
+
data-id={formName && formName}
|
|
29
|
+
>
|
|
30
|
+
{this.props.children}
|
|
31
|
+
</div>
|
|
29
32
|
</div>
|
|
30
33
|
</div>
|
|
31
34
|
);
|
|
@@ -37,7 +40,8 @@ Section.propTypes = {
|
|
|
37
40
|
containerClass: PropTypes.string,
|
|
38
41
|
dataId: PropTypes.string,
|
|
39
42
|
title: PropTypes.string,
|
|
40
|
-
titleClass: PropTypes.string
|
|
43
|
+
titleClass: PropTypes.string,
|
|
44
|
+
innerContainerClass: PropTypes.string
|
|
41
45
|
};
|
|
42
46
|
if (__DOCS__) {
|
|
43
47
|
Section.docs = {
|