@zohodesk/dot 1.0.0-temp-138 → 1.0.0-temp.139
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 +6 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +66 -0
- package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +4 -0
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +66 -0
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +66 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +4 -0
- package/css_error.log +1 -0
- package/es/TagWithIcon/TagWithIcon.js +62 -0
- package/es/TagWithIcon/TagWithIcon.module.css +56 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +2 -2
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/es/dropdown/ToggleDropDown/props/propTypes.js +5 -1
- package/es/layout/List/CommentsList/CommentListItemCommon.module.css +143 -0
- package/es/layout/List/CommentsList/CommentListItemFromTab.module.css +50 -0
- package/es/layout/List/CommentsList/CommentListItemFromTabUI.js +121 -0
- package/es/layout/List/CommentsList/CommentListItemWeb.module.css +45 -0
- package/es/layout/List/CommentsList/CommentListItemWebUI.js +107 -0
- package/es/layout/List/ThreadsList/ThreadListItemCommon.module.css +345 -0
- package/es/layout/List/ThreadsList/ThreadListItemFromTab.module.css +35 -0
- package/es/layout/List/ThreadsList/ThreadListItemFromTabUI.js +282 -0
- package/es/layout/List/ThreadsList/ThreadListItemWeb.module.css +35 -0
- package/es/layout/List/ThreadsList/ThreadListItemWebUI.js +270 -0
- package/es/layout/List/common/SubTabListItemTabCommon.module.css +59 -0
- package/es/layout/List/common/SubTabListItemWebCommon.module.css +99 -0
- package/es/layout/List/common/twoToneIconColor.module.css +26 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +7 -5
- package/lib/TagWithIcon/TagWithIcon.js +92 -0
- package/lib/TagWithIcon/TagWithIcon.module.css +56 -0
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +4 -2
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +5 -1
- package/lib/layout/List/CommentsList/CommentListItemCommon.module.css +143 -0
- package/lib/layout/List/CommentsList/CommentListItemFromTab.module.css +50 -0
- package/lib/layout/List/CommentsList/CommentListItemFromTabUI.js +123 -0
- package/lib/layout/List/CommentsList/CommentListItemWeb.module.css +45 -0
- package/lib/layout/List/CommentsList/CommentListItemWebUI.js +109 -0
- package/lib/layout/List/ThreadsList/ThreadListItemCommon.module.css +345 -0
- package/lib/layout/List/ThreadsList/ThreadListItemFromTab.module.css +35 -0
- package/lib/layout/List/ThreadsList/ThreadListItemFromTabUI.js +283 -0
- package/lib/layout/List/ThreadsList/ThreadListItemWeb.module.css +35 -0
- package/lib/layout/List/ThreadsList/ThreadListItemWebUI.js +271 -0
- package/lib/layout/List/common/SubTabListItemTabCommon.module.css +59 -0
- package/lib/layout/List/common/SubTabListItemWebCommon.module.css +99 -0
- package/lib/layout/List/common/twoToneIconColor.module.css +26 -0
- package/lib/list/status/StatusListItem/StatusListItem.module.css +7 -5
- package/package.json +3 -3
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
.listWrapper .innerWrapper, .peekViewWrapper .innerWrapper {
|
|
2
|
+
padding-top: var(--zd_size15);
|
|
3
|
+
padding-bottom: var(--zd_size12);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
[dir=ltr] .listWrapper {
|
|
7
|
+
padding-left: var(--zd_size65);
|
|
8
|
+
padding-right: var(--zd_size65);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[dir=rtl] .listWrapper {
|
|
12
|
+
padding-right: var(--zd_size65);
|
|
13
|
+
padding-left: var(--zd_size65);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[dir=ltr] .peekViewWrapper {
|
|
17
|
+
padding-left: var(--zd_size42);
|
|
18
|
+
padding-right: var(--zd_size42);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[dir=rtl] .peekViewWrapper {
|
|
22
|
+
padding-right: var(--zd_size42);
|
|
23
|
+
padding-left: var(--zd_size42);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[dir=ltr] .avatarWrapper {
|
|
27
|
+
margin-right: var(--zd_size25);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[dir=rtl] .avatarWrapper {
|
|
31
|
+
margin-left: var(--zd_size25);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.secondaryWrapper {
|
|
35
|
+
line-height: var(--zd_size18);
|
|
36
|
+
margin-top: var(--zd_size2);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.floatingWrapper {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.wrapper {
|
|
44
|
+
transition: padding var(--zd_transition3);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.wrapper:hover .floatingWrapper {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.notAccessible {
|
|
52
|
+
cursor: not-allowed
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dot {
|
|
56
|
+
color: var(--zdt_dot_text);
|
|
57
|
+
font-size: var(--zd_font_size16);
|
|
58
|
+
display: none;
|
|
59
|
+
transform: perspective(1px);
|
|
60
|
+
margin: 0 var(--zd_size6)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[is-dot='true']+.dot {
|
|
64
|
+
display: block
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.posRel {
|
|
68
|
+
position: relative;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.dotted {
|
|
72
|
+
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.visibleOnHover {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
visibility: hidden;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.wrapper:hover .visibleOnHover {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
visibility: visible;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.pointer {
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.secondaryItem {
|
|
90
|
+
max-width: var(--zd_size232)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[dir=ltr] .icnSpace {
|
|
94
|
+
margin-left: var(--zd_size8)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[dir=rtl] .icnSpace {
|
|
98
|
+
margin-right: var(--zd_size8)
|
|
99
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.primary :global .path1:before {
|
|
2
|
+
color: var(--zdt_twotoneIcon_primary_bg);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.primary :global .path2:before {
|
|
6
|
+
color: var(--zdt_twotoneIcon_primary_border);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* .secondary :global .path1:before {
|
|
10
|
+
color: var(--zdt_twotoneIcon_secondary_bg);
|
|
11
|
+
}
|
|
12
|
+
.secondary :global .path2:before {
|
|
13
|
+
color: var(--zdt_twotoneIcon_secondary_border);
|
|
14
|
+
}
|
|
15
|
+
.danger :global .path1:before {
|
|
16
|
+
color: var(--zdt_twotoneIcon_danger_bg);
|
|
17
|
+
}
|
|
18
|
+
.danger :global .path2:before {
|
|
19
|
+
color: var(--zdt_twotoneIcon_danger_border);
|
|
20
|
+
}
|
|
21
|
+
.info :global .path1:before {
|
|
22
|
+
color: var(--zdt_twotoneIcon_info_bg);
|
|
23
|
+
}
|
|
24
|
+
.info :global .path2:before {
|
|
25
|
+
color: var(--zdt_twotoneIcon_info_border);
|
|
26
|
+
} */
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
font-size: var(--zd_font_size13);
|
|
4
4
|
position: relative;
|
|
5
5
|
list-style: none;
|
|
6
|
+
min-height: var(--zd_size35);
|
|
6
7
|
cursor: pointer;
|
|
7
8
|
}
|
|
8
9
|
[dir=ltr] .withBorder {
|
|
@@ -12,13 +13,13 @@
|
|
|
12
13
|
border-right: 1px solid var(--zdt_statuslistitem_default_border);
|
|
13
14
|
}
|
|
14
15
|
[dir=ltr] .small {
|
|
15
|
-
padding: var(--
|
|
16
|
+
padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
|
|
16
17
|
}
|
|
17
18
|
[dir=rtl] .small {
|
|
18
|
-
padding: var(--
|
|
19
|
+
padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
|
|
19
20
|
}
|
|
20
21
|
.medium {
|
|
21
|
-
padding: var(--
|
|
22
|
+
padding: var(--zd_size7) var(--zd_size20);
|
|
22
23
|
}
|
|
23
24
|
.large {
|
|
24
25
|
height: var(--zd_size48);
|
|
@@ -29,13 +30,14 @@
|
|
|
29
30
|
[dir=rtl] .large {
|
|
30
31
|
padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
.value,.multiLineValue {
|
|
34
|
+
line-height: var(--zd_size20);
|
|
35
|
+
}
|
|
33
36
|
.value {
|
|
34
37
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
35
38
|
}
|
|
36
39
|
.multiLineValue{
|
|
37
40
|
word-break: break-word;
|
|
38
|
-
line-height: var(--zd_size20);
|
|
39
41
|
composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
|
|
40
42
|
}
|
|
41
43
|
[dir=ltr] .withBorder.active {
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
11
|
+
var _Icon = _interopRequireDefault(require("@zohodesk/icons/es/Icon"));
|
|
12
|
+
var _TagWithIconModule = _interopRequireDefault(require("./TagWithIcon.module.css"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
20
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
22
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
23
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
25
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
|
+
var TagWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
27
|
+
_inherits(TagWithIcon, _React$Component);
|
|
28
|
+
var _super = _createSuper(TagWithIcon);
|
|
29
|
+
function TagWithIcon() {
|
|
30
|
+
_classCallCheck(this, TagWithIcon);
|
|
31
|
+
return _super.apply(this, arguments);
|
|
32
|
+
}
|
|
33
|
+
_createClass(TagWithIcon, [{
|
|
34
|
+
key: "render",
|
|
35
|
+
value: function render() {
|
|
36
|
+
var _this$props = this.props,
|
|
37
|
+
text = _this$props.text,
|
|
38
|
+
iconName = _this$props.iconName,
|
|
39
|
+
iconSize = _this$props.iconSize,
|
|
40
|
+
palette = _this$props.palette,
|
|
41
|
+
iconClass = _this$props.iconClass,
|
|
42
|
+
isBold = _this$props.isBold,
|
|
43
|
+
size = _this$props.size,
|
|
44
|
+
dataId = _this$props.dataId,
|
|
45
|
+
className = _this$props.className,
|
|
46
|
+
title = _this$props.title;
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
48
|
+
isInline: true,
|
|
49
|
+
alignBox: "row",
|
|
50
|
+
align: "vertical",
|
|
51
|
+
isCover: false,
|
|
52
|
+
className: "".concat(_TagWithIconModule["default"].wrapper, " ").concat(_TagWithIconModule["default"][palette], " ").concat(_TagWithIconModule["default"][size], " ").concat(className),
|
|
53
|
+
dataId: dataId,
|
|
54
|
+
title: title
|
|
55
|
+
}, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
56
|
+
name: iconName,
|
|
57
|
+
size: iconSize,
|
|
58
|
+
iconClass: "".concat(text ? _TagWithIconModule["default"].iconSpace : '', " ").concat(iconClass, " ")
|
|
59
|
+
}) : null, text ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
60
|
+
shrink: true,
|
|
61
|
+
"data-title": text,
|
|
62
|
+
className: "".concat(_TagWithIconModule["default"].text, " ").concat(_TagWithIconModule["default"][size], "_text ").concat(isBold ? _TagWithIconModule["default"].bold : '')
|
|
63
|
+
}, text) : null);
|
|
64
|
+
}
|
|
65
|
+
}]);
|
|
66
|
+
return TagWithIcon;
|
|
67
|
+
}(_react["default"].Component);
|
|
68
|
+
exports["default"] = TagWithIcon;
|
|
69
|
+
TagWithIcon.defaultProps = {
|
|
70
|
+
iconSize: '9',
|
|
71
|
+
size: 'large',
|
|
72
|
+
iconClass: '',
|
|
73
|
+
isBold: true,
|
|
74
|
+
palette: 'grey',
|
|
75
|
+
className: ''
|
|
76
|
+
};
|
|
77
|
+
TagWithIcon.propTypes = {
|
|
78
|
+
iconClass: _propTypes["default"].string,
|
|
79
|
+
iconName: _propTypes["default"].string,
|
|
80
|
+
iconSize: _propTypes["default"].string,
|
|
81
|
+
title: _propTypes["default"].string,
|
|
82
|
+
isBold: _propTypes["default"].bool,
|
|
83
|
+
palette: _propTypes["default"].oneOf(['yellow', 'blue', 'grey']),
|
|
84
|
+
size: _propTypes["default"].oneOf('small', 'large'),
|
|
85
|
+
className: _propTypes["default"].string,
|
|
86
|
+
text: _propTypes["default"].string
|
|
87
|
+
};
|
|
88
|
+
if (false) {
|
|
89
|
+
TagWithIcon.docs = {
|
|
90
|
+
componentGroup: 'TagWithIcon'
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.varClass {
|
|
2
|
+
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
3
|
+
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
4
|
+
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
5
|
+
--tag_small_fontSize: var(--zd_font_size10);
|
|
6
|
+
--tag_large_fontSize: var(--zd_font_size12);
|
|
7
|
+
}
|
|
8
|
+
.wrapper {
|
|
9
|
+
composes: varClass;
|
|
10
|
+
color: var(--tag_text_color);
|
|
11
|
+
background-color: var(--tag_bg_color);
|
|
12
|
+
}
|
|
13
|
+
.small,
|
|
14
|
+
.large {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
height: var(--zd_size18);
|
|
17
|
+
}
|
|
18
|
+
.small, .large {
|
|
19
|
+
border: 1px solid;
|
|
20
|
+
border-color: var(--tag_border_color);
|
|
21
|
+
border-radius: var(--zd_size4);
|
|
22
|
+
padding: 0 var(--zd_size6);
|
|
23
|
+
}
|
|
24
|
+
.bold {
|
|
25
|
+
composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
|
|
26
|
+
}
|
|
27
|
+
.small_text {
|
|
28
|
+
font-size: var(--tag_small_fontSize);
|
|
29
|
+
}
|
|
30
|
+
.large_text {
|
|
31
|
+
font-size: var(--tag_large_fontSize);
|
|
32
|
+
}
|
|
33
|
+
.text {
|
|
34
|
+
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
35
|
+
}
|
|
36
|
+
[dir=ltr] .iconSpace{
|
|
37
|
+
margin-right: var(--zd_size4);
|
|
38
|
+
}
|
|
39
|
+
[dir=rtl] .iconSpace{
|
|
40
|
+
margin-left: var(--zd_size4);
|
|
41
|
+
}
|
|
42
|
+
.yellow {
|
|
43
|
+
--tag_bg_color: var(--zdt_tagWithIconYellow_bg);
|
|
44
|
+
--tag_text_color: var(--zdt_tagWithIconYellow_text);
|
|
45
|
+
--tag_border_color: var(--zdt_tagWithIconYellow_border);
|
|
46
|
+
}
|
|
47
|
+
.grey {
|
|
48
|
+
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
49
|
+
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
50
|
+
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
51
|
+
}
|
|
52
|
+
.blue {
|
|
53
|
+
--tag_bg_color: var(--zdt_tagWithIconBlue_bg);
|
|
54
|
+
--tag_text_color: var(--zdt_tagWithIconBlue_text);
|
|
55
|
+
--tag_border_color: var(--zdt_tagWithIconBlue_border);
|
|
56
|
+
}
|
|
@@ -581,8 +581,10 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
581
581
|
ListItemWithIconProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
582
582
|
_customProps$ListItem2 = customProps.ListItemProps,
|
|
583
583
|
ListItemProps = _customProps$ListItem2 === void 0 ? {} : _customProps$ListItem2;
|
|
584
|
-
var
|
|
585
|
-
|
|
584
|
+
var _customClass$customDr = customClass.customDropBox,
|
|
585
|
+
customDropBox = _customClass$customDr === void 0 ? '' : _customClass$customDr,
|
|
586
|
+
_customClass$customLi = customClass.customListBox,
|
|
587
|
+
customListBox = _customClass$customLi === void 0 ? '' : _customClass$customLi;
|
|
586
588
|
var isPopupOpen = needExternalPopupState ? isPopupActive && isOpen : isOpen;
|
|
587
589
|
var Component = isToggleStateNeeded ? children.type : null,
|
|
588
590
|
componentProps = isToggleStateNeeded ? children.props : null;
|
|
@@ -75,6 +75,10 @@ var propTypes = {
|
|
|
75
75
|
ListItemProps: _propTypes["default"].object
|
|
76
76
|
}),
|
|
77
77
|
preventPopupClose: _propTypes["default"].bool,
|
|
78
|
-
needMultiLineText: _propTypes["default"].bool
|
|
78
|
+
needMultiLineText: _propTypes["default"].bool,
|
|
79
|
+
customClass: _propTypes["default"].shape({
|
|
80
|
+
customDropBox: _propTypes["default"].string,
|
|
81
|
+
customListBox: _propTypes["default"].string
|
|
82
|
+
})
|
|
79
83
|
};
|
|
80
84
|
exports.propTypes = propTypes;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
.private {
|
|
2
|
+
background-color: var(--zdt_commentList_private_bg);
|
|
3
|
+
border: 1px solid var(--zdt_commentList_private_border);
|
|
4
|
+
}
|
|
5
|
+
.public {
|
|
6
|
+
background-color: var(--zdt_commentList_public_bg);
|
|
7
|
+
border: 1px solid var(--zdt_commentList_public_border);
|
|
8
|
+
}
|
|
9
|
+
.normal {
|
|
10
|
+
background-color: var(--zdt_commentList_normal_bg);
|
|
11
|
+
border: 1px solid var(--zdt_conversationList_border);
|
|
12
|
+
}
|
|
13
|
+
.publicIcon :global .path2:before {
|
|
14
|
+
color: var(--zdt_commentList_publicIcon_border);
|
|
15
|
+
}
|
|
16
|
+
.publicIcon :global .path1:before {
|
|
17
|
+
color: var(--zdt_commentList_publicIcon_bg);
|
|
18
|
+
}
|
|
19
|
+
.privateIcon :global .path2:before {
|
|
20
|
+
color: var(--zdt_commentList_privateIcon_border);
|
|
21
|
+
}
|
|
22
|
+
.privateIcon :global .path1:before {
|
|
23
|
+
color: var(--zdt_commentList_privateIcon_bg);
|
|
24
|
+
}
|
|
25
|
+
[dir=ltr] .avatarWrapper {
|
|
26
|
+
margin-right: var(--zd_size15);
|
|
27
|
+
}
|
|
28
|
+
[dir=rtl] .avatarWrapper {
|
|
29
|
+
margin-left: var(--zd_size15);
|
|
30
|
+
}
|
|
31
|
+
.agentName {
|
|
32
|
+
font-size: var(--zd_font_size14);
|
|
33
|
+
composes: bold from '~@zohodesk/components/lib/common/common.module.css';
|
|
34
|
+
color: var(--zdt_conversationList_agentName_text);
|
|
35
|
+
}
|
|
36
|
+
.agentNameHover:hover {
|
|
37
|
+
color: var(--zdt_conversationList_agent_text);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
.editTxt {
|
|
41
|
+
font-size: var(--zd_font_size12);
|
|
42
|
+
color: var(--zdt_conversationList_secondaryText);
|
|
43
|
+
}
|
|
44
|
+
.editAccess {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
.editAccess:hover {
|
|
48
|
+
color: var(--zdt_commentList_edit_hover_text);
|
|
49
|
+
}
|
|
50
|
+
.attachCount {
|
|
51
|
+
top: calc(var(--zd_size4) * -1);
|
|
52
|
+
color: var(--zdt_conversationList_attachCount_text);
|
|
53
|
+
position: relative;
|
|
54
|
+
font-size: var(--zd_font_size10);
|
|
55
|
+
}
|
|
56
|
+
.contentWrapper {
|
|
57
|
+
margin-bottom: var(--zd_size12);
|
|
58
|
+
}
|
|
59
|
+
.attachmentWrapper {
|
|
60
|
+
margin-top: var(--zd_size4);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.thrdPlain {
|
|
64
|
+
font-size: var(--zd_font_size14);
|
|
65
|
+
word-break: break-word;
|
|
66
|
+
composes: oflowx from '~@zohodesk/components/lib/common/common.module.css';
|
|
67
|
+
color: var(--zdt_conversationList_thread_text);
|
|
68
|
+
}
|
|
69
|
+
.thrdPlain table {
|
|
70
|
+
word-break: initial;
|
|
71
|
+
}
|
|
72
|
+
.thrdPlainContent {
|
|
73
|
+
line-height: var(--zd_size20);
|
|
74
|
+
}
|
|
75
|
+
.thrdPlain a {
|
|
76
|
+
color: var(--zdt_conversationList_primary_text);
|
|
77
|
+
}
|
|
78
|
+
.thrdPlain a:hover {
|
|
79
|
+
color: var(--zdt_conversationList_primary_hover_text);
|
|
80
|
+
}
|
|
81
|
+
.thrdPlain img[src*='/ImageDisplay'], .thrdPlain img[src*='/inlineImages'], .thrdPlain img[src*='/ViewMailAttachment.do'] {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
[dir=ltr] .thrdPlain blockquote {
|
|
85
|
+
margin: 0 0 0 var(--zd_size4);
|
|
86
|
+
}
|
|
87
|
+
[dir=rtl] .thrdPlain blockquote {
|
|
88
|
+
margin: 0 var(--zd_size4) 0 0;
|
|
89
|
+
}
|
|
90
|
+
.thrdPlain img {
|
|
91
|
+
max-width: 100%;
|
|
92
|
+
}
|
|
93
|
+
.whiteBg.thrdPlain a,
|
|
94
|
+
.whiteBg .thrdPlain a {
|
|
95
|
+
color: var(--zdt_conversationList_agent_text);
|
|
96
|
+
}
|
|
97
|
+
.whiteBg.thrdPlain a:hover,
|
|
98
|
+
.whiteBg .thrdPlain a:hover {
|
|
99
|
+
color: var(--zdt_conversationList_agent_hover_text);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* opposite colors applied in variables to show original theme colors for selection area in inverted threads */
|
|
103
|
+
.invert .thrdPlain ::selection,
|
|
104
|
+
.invert.thrdPlain ::selection,
|
|
105
|
+
.invert .thrdPlain::selection,
|
|
106
|
+
.invert.thrdPlain::selection {
|
|
107
|
+
color: var(--zdt_inverted_selection_text);
|
|
108
|
+
}
|
|
109
|
+
.invert .thrdPlain ::selection, .invert.thrdPlain ::selection, .invert .thrdPlain::selection, .invert.thrdPlain::selection {
|
|
110
|
+
background-color: var(--zdt_selection_bg);
|
|
111
|
+
}
|
|
112
|
+
.invert .thrdPlain ::-moz-selection,
|
|
113
|
+
.invert.thrdPlain ::-moz-selection,
|
|
114
|
+
.invert .thrdPlain::-moz-selection,
|
|
115
|
+
.invert.thrdPlain::-moz-selection {
|
|
116
|
+
color: var(--zdt_inverted_selection_text);
|
|
117
|
+
}
|
|
118
|
+
.invert .thrdPlain ::-moz-selection, .invert.thrdPlain ::-moz-selection, .invert .thrdPlain::-moz-selection, .invert.thrdPlain::-moz-selection {
|
|
119
|
+
background-color: var(--zdt_selection_bg);
|
|
120
|
+
}
|
|
121
|
+
.invert .thrdPlain,
|
|
122
|
+
.invert.thrdPlain {
|
|
123
|
+
filter: invert(1) hue-rotate(180deg);
|
|
124
|
+
}
|
|
125
|
+
/* <img> and <a> elements selection inverted again below. So, to avoid opposite colors in <img> & <a> area original colors variables used below */
|
|
126
|
+
.invert .thrdPlain img::selection,
|
|
127
|
+
.invert.thrdPlain img::selection {
|
|
128
|
+
color: var(--zdt_selection_text);
|
|
129
|
+
}
|
|
130
|
+
.invert .thrdPlain img::selection, .invert.thrdPlain img::selection {
|
|
131
|
+
background-color: var(--zdt_selection_bg);
|
|
132
|
+
}
|
|
133
|
+
.invert .thrdPlain img::-moz-selection,
|
|
134
|
+
.invert.thrdPlain img::-moz-selection {
|
|
135
|
+
color: var(--zdt_selection_text);
|
|
136
|
+
}
|
|
137
|
+
.invert .thrdPlain img::-moz-selection, .invert.thrdPlain img::-moz-selection {
|
|
138
|
+
background-color: var(--zdt_selection_bg);
|
|
139
|
+
}
|
|
140
|
+
.invert img,
|
|
141
|
+
.invert video {
|
|
142
|
+
filter: invert(1) hue-rotate(180deg);
|
|
143
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.listWrapper,
|
|
2
|
+
.mobileListWrapper {
|
|
3
|
+
letter-spacing: 0.2px;
|
|
4
|
+
transition: var(--zd_transition3)
|
|
5
|
+
}.listWrapper, .mobileListWrapper {
|
|
6
|
+
padding-top: var(--zd_size12);
|
|
7
|
+
padding-bottom: var(--zd_size12);
|
|
8
|
+
margin: var(--zd_size8);
|
|
9
|
+
border-radius: var(--zd_size4)
|
|
10
|
+
}
|
|
11
|
+
[dir=ltr] .mobileListWrapper {
|
|
12
|
+
padding-left: var(--zd_size16);
|
|
13
|
+
padding-right: var(--zd_size16);
|
|
14
|
+
}
|
|
15
|
+
[dir=rtl] .mobileListWrapper {
|
|
16
|
+
padding-right: var(--zd_size16);
|
|
17
|
+
padding-left: var(--zd_size16);
|
|
18
|
+
}
|
|
19
|
+
[dir=ltr] .listWrapper {
|
|
20
|
+
padding-left: var(--zd_size20);
|
|
21
|
+
padding-right: var(--zd_size12);
|
|
22
|
+
}
|
|
23
|
+
[dir=rtl] .listWrapper {
|
|
24
|
+
padding-right: var(--zd_size20);
|
|
25
|
+
padding-left: var(--zd_size12);
|
|
26
|
+
}
|
|
27
|
+
.lightAgentTxt {
|
|
28
|
+
font-size: var(--zd_font_size12);
|
|
29
|
+
color: var(--zdt_conversationList_secondaryText);
|
|
30
|
+
}
|
|
31
|
+
[dir=ltr] .lightAgentTxt {
|
|
32
|
+
margin-left: var(--zd_size4);
|
|
33
|
+
}
|
|
34
|
+
[dir=rtl] .lightAgentTxt {
|
|
35
|
+
margin-right: var(--zd_size4);
|
|
36
|
+
}
|
|
37
|
+
.attachIconWrapper {
|
|
38
|
+
composes: dflex alignVertical alignHorizontal from '~@zohodesk/components/lib/common/common.module.css';
|
|
39
|
+
}
|
|
40
|
+
[dir=ltr] .attachIconWrapper {
|
|
41
|
+
margin-right: var(--zd_size8);
|
|
42
|
+
margin-left: var(--zd_size8);
|
|
43
|
+
}
|
|
44
|
+
[dir=rtl] .attachIconWrapper {
|
|
45
|
+
margin-left: var(--zd_size8);
|
|
46
|
+
margin-right: var(--zd_size8);
|
|
47
|
+
}
|
|
48
|
+
.time {
|
|
49
|
+
font-size: var(--zd_size11)
|
|
50
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = CommentListItemFromTabUI;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
9
|
+
var _CommentListItemFromTabModule = _interopRequireDefault(require("./CommentListItemFromTab.module.css"));
|
|
10
|
+
var _SubTabListItemTabCommonModule = _interopRequireDefault(require("../common/SubTabListItemTabCommon.module.css"));
|
|
11
|
+
var _CommentListItemCommonModule = _interopRequireDefault(require("./CommentListItemCommon.module.css"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function CommentListItemFromTabUI(props) {
|
|
14
|
+
var isPeekView = props.isPeekView,
|
|
15
|
+
isPublic = props.isPublic,
|
|
16
|
+
dataId = props.dataId,
|
|
17
|
+
getAvatar = props.getAvatar,
|
|
18
|
+
getName = props.getName,
|
|
19
|
+
getLightAgent = props.getLightAgent,
|
|
20
|
+
getTag = props.getTag,
|
|
21
|
+
getTime = props.getTime,
|
|
22
|
+
getEdit = props.getEdit,
|
|
23
|
+
getAttachmentIcon = props.getAttachmentIcon,
|
|
24
|
+
getAttachment = props.getAttachment,
|
|
25
|
+
getMoreDropdown = props.getMoreDropdown,
|
|
26
|
+
getContent = props.getContent,
|
|
27
|
+
from = props.from,
|
|
28
|
+
hasPrivacyMode = props.hasPrivacyMode,
|
|
29
|
+
hasEditHistoryPermission = props.hasEditHistoryPermission,
|
|
30
|
+
isPopupOpen = props.isPopupOpen,
|
|
31
|
+
isNightMode = props.isNightMode,
|
|
32
|
+
onContentWrapperClick = props.onContentWrapperClick,
|
|
33
|
+
contentWrapperRef = props.contentWrapperRef,
|
|
34
|
+
key = props.key,
|
|
35
|
+
id = props.id,
|
|
36
|
+
customList = props.customList,
|
|
37
|
+
isMobile = props.isMobile,
|
|
38
|
+
ViewInLightDarkBg = props.ViewInLightDarkBg,
|
|
39
|
+
getTheme = props.getTheme,
|
|
40
|
+
children = props.children;
|
|
41
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
|
+
"data-desk-mode": ViewInLightDarkBg ? 'default' : '',
|
|
43
|
+
"data-desk-theme": ViewInLightDarkBg ? getTheme : '',
|
|
44
|
+
className: "".concat(_SubTabListItemTabCommonModule["default"].wrapper, "\n ").concat(isMobile ? _CommentListItemFromTabModule["default"].mobileListWrapper : _CommentListItemFromTabModule["default"].listWrapper, "\n ").concat(hasPrivacyMode ? isPublic ? _CommentListItemCommonModule["default"]["public"] : _CommentListItemCommonModule["default"]["private"] : _CommentListItemCommonModule["default"].normal, "\n ").concat(customList),
|
|
45
|
+
"data-id": dataId,
|
|
46
|
+
key: key,
|
|
47
|
+
id: id
|
|
48
|
+
}, children ? children : null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
49
|
+
alignBox: "row",
|
|
50
|
+
align: "vertical",
|
|
51
|
+
isCover: false,
|
|
52
|
+
className: getContent || getAttachment ? _CommentListItemCommonModule["default"].contentWrapper : ''
|
|
53
|
+
}, getAvatar ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
54
|
+
shrink: true,
|
|
55
|
+
className: _CommentListItemCommonModule["default"].avatarWrapper
|
|
56
|
+
}, getAvatar({
|
|
57
|
+
size: 'xsmall',
|
|
58
|
+
iconColor: hasPrivacyMode ? isPublic ? _CommentListItemCommonModule["default"].publicIcon : _CommentListItemCommonModule["default"].privateIcon : ''
|
|
59
|
+
})) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
60
|
+
flexible: true
|
|
61
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
62
|
+
alignBox: "row",
|
|
63
|
+
align: "vertical",
|
|
64
|
+
isCover: false
|
|
65
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
66
|
+
flexible: true
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
68
|
+
alignBox: "row",
|
|
69
|
+
align: "vertical",
|
|
70
|
+
isCover: false,
|
|
71
|
+
"data-a11y-focus": true,
|
|
72
|
+
onClick: onContentWrapperClick
|
|
73
|
+
}, getName ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, getName({
|
|
74
|
+
'is-dot': 'true',
|
|
75
|
+
className: "".concat(_CommentListItemCommonModule["default"].agentName, " ").concat(from != 'editHistory' ? _CommentListItemCommonModule["default"].agentNameHover : '', " ").concat(_SubTabListItemTabCommonModule["default"].dotted)
|
|
76
|
+
})) : null, getLightAgent ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
77
|
+
className: _SubTabListItemTabCommonModule["default"].dot
|
|
78
|
+
}, "."), getLightAgent({
|
|
79
|
+
'is-dot': 'true',
|
|
80
|
+
className: "".concat(_CommentListItemFromTabModule["default"].lightAgentTxt, " ").concat(_SubTabListItemTabCommonModule["default"].dotted)
|
|
81
|
+
})) : null)), getAttachmentIcon ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, getAttachmentIcon({
|
|
82
|
+
innerProps: {
|
|
83
|
+
className: _CommentListItemCommonModule["default"].attachCount
|
|
84
|
+
},
|
|
85
|
+
wrapperProps: {
|
|
86
|
+
className: _CommentListItemFromTabModule["default"].attachIconWrapper
|
|
87
|
+
}
|
|
88
|
+
})) : null, getMoreDropdown ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
89
|
+
className: "".concat(_SubTabListItemTabCommonModule["default"].posRel, " ").concat(!isPopupOpen ? _SubTabListItemTabCommonModule["default"].floatingWrapper : '')
|
|
90
|
+
}, getMoreDropdown()) : null), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
91
|
+
alignBox: "row",
|
|
92
|
+
align: "vertical",
|
|
93
|
+
isCover: false
|
|
94
|
+
}, getTag ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
95
|
+
className: _SubTabListItemTabCommonModule["default"].dot
|
|
96
|
+
}, "."), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
97
|
+
shrink: true,
|
|
98
|
+
"is-dot": "true"
|
|
99
|
+
}, getTag())) : null, getTime ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
100
|
+
className: _SubTabListItemTabCommonModule["default"].dot
|
|
101
|
+
}, "."), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
102
|
+
shrink: true,
|
|
103
|
+
"is-dot": "true",
|
|
104
|
+
className: _SubTabListItemTabCommonModule["default"].dotted
|
|
105
|
+
}, getTime(isMobile ? {
|
|
106
|
+
textClass: _CommentListItemFromTabModule["default"].time
|
|
107
|
+
} : ''))) : null, getEdit ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
108
|
+
className: _SubTabListItemTabCommonModule["default"].dot
|
|
109
|
+
}, "."), getEdit({
|
|
110
|
+
'is-dot': 'true',
|
|
111
|
+
className: "".concat(_CommentListItemCommonModule["default"].editTxt, " ").concat(hasEditHistoryPermission ? _CommentListItemCommonModule["default"].editAccess : '', " ").concat(_SubTabListItemTabCommonModule["default"].dotted)
|
|
112
|
+
})) : null))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
|
+
onClick: onContentWrapperClick,
|
|
114
|
+
ref: contentWrapperRef
|
|
115
|
+
}, getContent ? getContent({
|
|
116
|
+
className: "".concat(isNightMode ? ViewInLightDarkBg ? _CommentListItemCommonModule["default"].whiteBg : _CommentListItemCommonModule["default"].invert : '', " ").concat(_CommentListItemCommonModule["default"].thrdPlain)
|
|
117
|
+
}) : null, getAttachment ? getAttachment({
|
|
118
|
+
customWrapperClass: {
|
|
119
|
+
className: _CommentListItemCommonModule["default"].attachmentWrapper
|
|
120
|
+
},
|
|
121
|
+
size: 'small'
|
|
122
|
+
}) : null));
|
|
123
|
+
}
|