@zohodesk/dot 1.0.0-temp-159 → 1.0.0-temp-162
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/.cli/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +3 -2
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +7 -7
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +11 -11
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +17 -17
- package/coverage/index.html +11 -11
- package/es/Attachment/Attachment.module.css +2 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/IconButton/IconButton.js +2 -2
- package/es/ImportantNotes/ImportantNotes.module.css +6 -2
- package/es/ToastMessage/ToastMessage.module.css +2 -2
- package/es/Upload/Upload.module.css +1 -1
- package/es/alert/AlertLookup/AlertLookup.module.css +1 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
- package/es/errorstate/EmptyStates.module.css +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/es/form/fields/Fields.module.css +2 -2
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/es/list/status/StatusDropdown/StatusDropdown.js +1 -2
- package/es/list/status/StatusListItem/StatusListItem.js +1 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +1 -1
- package/es/lookup/Lookup/Lookup.js +1 -1
- package/es/lookup/header/Close/LookupClose.module.css +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/es/version2/errorstate/V2_ErrorStates.module.css +1 -1
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
- package/lib/Attachment/Attachment.module.css +2 -2
- package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/lib/Drawer/Drawer.js +1 -1
- package/lib/IconButton/IconButton.js +2 -2
- package/lib/ImportantNotes/ImportantNotes.module.css +6 -2
- package/lib/ToastMessage/ToastMessage.module.css +2 -2
- package/lib/Upload/Upload.module.css +1 -1
- package/lib/alert/AlertLookup/AlertLookup.module.css +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
- package/lib/errorstate/EmptyStates.module.css +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/lib/form/fields/Fields.module.css +2 -2
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -2
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +1 -1
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/header/Close/LookupClose.module.css +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/lib/version2/errorstate/V2_ErrorStates.module.css +1 -1
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
- package/package.json +7 -7
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -5,13 +5,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = StatusListItem;
|
|
9
9
|
|
|
10
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _defaultProps = require("
|
|
12
|
+
var _defaultProps = require("../../../../list/status/StatusListItem/props/defaultProps");
|
|
13
13
|
|
|
14
|
-
var _propTypes = require("
|
|
14
|
+
var _propTypes = require("../../../../list/status/StatusListItem/props/propTypes");
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
17
|
|
|
@@ -19,150 +19,94 @@ var _icons = require("@zohodesk/icons");
|
|
|
19
19
|
|
|
20
20
|
var _CssProvider = _interopRequireDefault(require("@zohodesk/components/es/v1/Provider/CssProvider"));
|
|
21
21
|
|
|
22
|
-
var _StatusListItemModule = _interopRequireDefault(require("
|
|
22
|
+
var _StatusListItemModule = _interopRequireDefault(require("../../../../list/status/StatusListItem/StatusListItem.module.css"));
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
30
|
-
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, descriptor.key, descriptor); } }
|
|
31
|
-
|
|
32
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
|
-
|
|
34
|
-
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); }
|
|
35
|
-
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
-
|
|
38
|
-
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); }; }
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
27
|
|
|
40
|
-
function
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
29
|
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
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; } }
|
|
45
|
-
|
|
46
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
47
31
|
|
|
48
|
-
|
|
49
|
-
|
|
32
|
+
function StatusListItem(props) {
|
|
33
|
+
var size = props.size,
|
|
34
|
+
active = props.active,
|
|
35
|
+
highlight = props.highlight,
|
|
36
|
+
value = props.value,
|
|
37
|
+
autoHover = props.autoHover,
|
|
38
|
+
palette = props.palette,
|
|
39
|
+
title = props.title,
|
|
40
|
+
disableTitle = props.disableTitle,
|
|
41
|
+
needTick = props.needTick,
|
|
42
|
+
isLink = props.isLink,
|
|
43
|
+
href = props.href,
|
|
44
|
+
target = props.target,
|
|
45
|
+
needBorder = props.needBorder,
|
|
46
|
+
isDisabled = props.isDisabled,
|
|
47
|
+
bulletColor = props.bulletColor,
|
|
48
|
+
a11y = props.a11y,
|
|
49
|
+
needMultiLineText = props.needMultiLineText,
|
|
50
|
+
index = props.index,
|
|
51
|
+
getRef = props.getRef,
|
|
52
|
+
id = props.id,
|
|
53
|
+
onClick = props.onClick,
|
|
54
|
+
onMouseEnter = props.onMouseEnter;
|
|
55
|
+
var options = {};
|
|
56
|
+
var role = a11y.role,
|
|
57
|
+
ariaSelected = a11y.ariaSelected,
|
|
58
|
+
_a11y$ariaHidden = a11y.ariaHidden,
|
|
59
|
+
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
60
|
+
|
|
61
|
+
if (isLink) {
|
|
62
|
+
options.href = href;
|
|
63
|
+
options.target = "_".concat(target);
|
|
64
|
+
}
|
|
50
65
|
|
|
51
|
-
var
|
|
66
|
+
var element = (0, _react.useRef)(null);
|
|
52
67
|
|
|
53
|
-
function
|
|
54
|
-
|
|
68
|
+
function getReference(ele) {
|
|
69
|
+
element.current = ele;
|
|
70
|
+
getRef && getRef(element.current, index, id);
|
|
71
|
+
}
|
|
55
72
|
|
|
56
|
-
|
|
73
|
+
function handleClick(e) {
|
|
74
|
+
onClick && onClick(id, value, index, e);
|
|
75
|
+
}
|
|
57
76
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
|
|
61
|
-
_this.handleMouseEnter = _this.handleMouseEnter.bind(_assertThisInitialized(_this));
|
|
62
|
-
return _this;
|
|
77
|
+
function handleMouseEnter(e) {
|
|
78
|
+
onMouseEnter && onMouseEnter(id, value, index, e);
|
|
63
79
|
}
|
|
64
80
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
key: "render",
|
|
97
|
-
value: function render() {
|
|
98
|
-
var _this$props4 = this.props,
|
|
99
|
-
size = _this$props4.size,
|
|
100
|
-
active = _this$props4.active,
|
|
101
|
-
highlight = _this$props4.highlight,
|
|
102
|
-
value = _this$props4.value,
|
|
103
|
-
autoHover = _this$props4.autoHover,
|
|
104
|
-
palette = _this$props4.palette,
|
|
105
|
-
title = _this$props4.title,
|
|
106
|
-
disableTitle = _this$props4.disableTitle,
|
|
107
|
-
needTick = _this$props4.needTick,
|
|
108
|
-
isLink = _this$props4.isLink,
|
|
109
|
-
href = _this$props4.href,
|
|
110
|
-
target = _this$props4.target,
|
|
111
|
-
needBorder = _this$props4.needBorder,
|
|
112
|
-
isDisabled = _this$props4.isDisabled,
|
|
113
|
-
bulletColor = _this$props4.bulletColor,
|
|
114
|
-
a11y = _this$props4.a11y,
|
|
115
|
-
needMultiLineText = _this$props4.needMultiLineText;
|
|
116
|
-
var options = {};
|
|
117
|
-
var role = a11y.role,
|
|
118
|
-
ariaSelected = a11y.ariaSelected,
|
|
119
|
-
_a11y$ariaHidden = a11y.ariaHidden,
|
|
120
|
-
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
121
|
-
|
|
122
|
-
if (isLink) {
|
|
123
|
-
options.href = href;
|
|
124
|
-
options.target = "_".concat(target);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
128
|
-
role: role,
|
|
129
|
-
"aria-selected": ariaSelected,
|
|
130
|
-
isCover: false,
|
|
131
|
-
align: "baseline",
|
|
132
|
-
alignBox: "row",
|
|
133
|
-
className: "".concat(_StatusListItemModule["default"].list, " ").concat(_StatusListItemModule["default"][size], " ").concat(_StatusListItemModule["default"][palette], " ").concat(active ? _StatusListItemModule["default"].active : highlight && !isDisabled ? _StatusListItemModule["default"].hover : '', " ").concat(autoHover && !isDisabled ? _StatusListItemModule["default"].effect : '', " ").concat(needTick ? _StatusListItemModule["default"].withTick : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? _StatusListItemModule["default"].withBorder : ''),
|
|
134
|
-
dataId: String(value).replace("'", '_'),
|
|
135
|
-
onClick: !isDisabled && this.handleClick,
|
|
136
|
-
onMouseEnter: this.handleMouseEnter,
|
|
137
|
-
eleRef: this.getRef,
|
|
138
|
-
tagName: isLink ? 'a' : 'li',
|
|
139
|
-
"data-title": isDisabled ? disableTitle : null,
|
|
140
|
-
tabindex: isDisabled ? '-1' : '0'
|
|
141
|
-
}, options), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
142
|
-
className: "".concat(_StatusListItemModule["default"].statusType, " ").concat(_StatusListItemModule["default"][bulletColor])
|
|
143
|
-
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
144
|
-
"data-title": isDisabled ? null : title,
|
|
145
|
-
flexible: true,
|
|
146
|
-
shrink: true,
|
|
147
|
-
className: needMultiLineText ? _StatusListItemModule["default"].multiLineValue : _StatusListItemModule["default"].value
|
|
148
|
-
}, value), needTick && active ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
-
className: _StatusListItemModule["default"].tickIcon,
|
|
150
|
-
"aria-hidden": ariaHidden
|
|
151
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
152
|
-
name: "ZD-ticknew",
|
|
153
|
-
size: "8"
|
|
154
|
-
})) : null);
|
|
155
|
-
}
|
|
156
|
-
}]);
|
|
157
|
-
|
|
158
|
-
return StatusListItem;
|
|
159
|
-
}(_react["default"].Component);
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
82
|
+
role: role,
|
|
83
|
+
"aria-selected": ariaSelected,
|
|
84
|
+
isCover: false,
|
|
85
|
+
align: "baseline",
|
|
86
|
+
alignBox: "row",
|
|
87
|
+
className: "".concat(_StatusListItemModule["default"].list, " ").concat(_StatusListItemModule["default"][size], " ").concat(_StatusListItemModule["default"][palette], " ").concat(active ? _StatusListItemModule["default"].active : highlight && !isDisabled ? _StatusListItemModule["default"].hover : '', " ").concat(autoHover && !isDisabled ? _StatusListItemModule["default"].effect : '', " ").concat(needTick ? _StatusListItemModule["default"].withTick : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? _StatusListItemModule["default"].withBorder : ''),
|
|
88
|
+
dataId: String(value).replace("'", '_'),
|
|
89
|
+
onClick: !isDisabled && handleClick,
|
|
90
|
+
onMouseEnter: handleMouseEnter,
|
|
91
|
+
eleRef: getReference,
|
|
92
|
+
tagName: isLink ? 'a' : 'li',
|
|
93
|
+
"data-title": isDisabled ? disableTitle : null,
|
|
94
|
+
tabindex: isDisabled ? '-1' : '0'
|
|
95
|
+
}, options), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
96
|
+
className: "".concat(_StatusListItemModule["default"].statusType, " ").concat(_StatusListItemModule["default"][bulletColor])
|
|
97
|
+
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
98
|
+
"data-title": isDisabled ? null : title,
|
|
99
|
+
flexible: true,
|
|
100
|
+
shrink: true,
|
|
101
|
+
className: needMultiLineText ? _StatusListItemModule["default"].multiLineValue : _StatusListItemModule["default"].value
|
|
102
|
+
}, value), needTick && active ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
|
+
className: _StatusListItemModule["default"].tickIcon,
|
|
104
|
+
"aria-hidden": ariaHidden
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
106
|
+
name: "ZD-ticknew",
|
|
107
|
+
size: "8"
|
|
108
|
+
})) : null);
|
|
109
|
+
}
|
|
160
110
|
|
|
161
|
-
exports["default"] = StatusListItem;
|
|
162
111
|
StatusListItem.defaultProps = _defaultProps.defaultProps;
|
|
163
|
-
StatusListItem.propTypes = _propTypes.propTypes;
|
|
164
|
-
// StatusListItem.docs = {
|
|
165
|
-
// componentGroup: 'StatusListItem',
|
|
166
|
-
// folderName: 'List'
|
|
167
|
-
// };
|
|
168
|
-
// }
|
|
112
|
+
StatusListItem.propTypes = _propTypes.propTypes;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = EmptyPage;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../lookup/EmptyPage/props/defaultProps");
|
|
13
11
|
|
|
@@ -25,96 +23,48 @@ var _LookupEmptyPageModule = _interopRequireDefault(require("../../../lookup/Emp
|
|
|
25
23
|
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_classCallCheck(this, EmptyPage);
|
|
61
|
-
|
|
62
|
-
_this = _super.call(this, props);
|
|
63
|
-
_this.renderEmptyState = _this.renderEmptyState.bind();
|
|
64
|
-
return _this;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
_createClass(EmptyPage, [{
|
|
68
|
-
key: "renderEmptyState",
|
|
69
|
-
value: function renderEmptyState(type) {
|
|
70
|
-
switch (type) {
|
|
71
|
-
case 'search':
|
|
72
|
-
return /*#__PURE__*/_react["default"].createElement(_EmptySearch["default"], {
|
|
73
|
-
className: _LookupEmptyPageModule["default"].image
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
case 'account':
|
|
77
|
-
return /*#__PURE__*/_react["default"].createElement(_EmptyAccounts["default"], {
|
|
78
|
-
className: _LookupEmptyPageModule["default"].image
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
case 'contact':
|
|
82
|
-
return /*#__PURE__*/_react["default"].createElement(_EmptyContact["default"], {
|
|
83
|
-
className: _LookupEmptyPageModule["default"].image
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
case 'product':
|
|
87
|
-
return /*#__PURE__*/_react["default"].createElement(_EmptyProducts["default"], {
|
|
88
|
-
className: _LookupEmptyPageModule["default"].image
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
default:
|
|
92
|
-
return null;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
key: "render",
|
|
97
|
-
value: function render() {
|
|
98
|
-
var _this$props = this.props,
|
|
99
|
-
type = _this$props.type,
|
|
100
|
-
title = _this$props.title;
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
-
className: _LookupEmptyPageModule["default"].container,
|
|
103
|
-
"data-id": "empty_".concat(type),
|
|
104
|
-
"data-test-id": "empty_".concat(type)
|
|
105
|
-
}, this.renderEmptyState(type), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
-
className: _LookupEmptyPageModule["default"].contentDiv
|
|
107
|
-
}, title));
|
|
26
|
+
/*** Libraries ***/
|
|
27
|
+
|
|
28
|
+
/*** CSS ***/
|
|
29
|
+
function EmptyPage(props) {
|
|
30
|
+
var type = props.type,
|
|
31
|
+
title = props.title;
|
|
32
|
+
|
|
33
|
+
function renderEmptyState(type) {
|
|
34
|
+
switch (type) {
|
|
35
|
+
case 'search':
|
|
36
|
+
return /*#__PURE__*/_react["default"].createElement(_EmptySearch["default"], {
|
|
37
|
+
className: _LookupEmptyPageModule["default"].image
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
case 'account':
|
|
41
|
+
return /*#__PURE__*/_react["default"].createElement(_EmptyAccounts["default"], {
|
|
42
|
+
className: _LookupEmptyPageModule["default"].image
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
case 'contact':
|
|
46
|
+
return /*#__PURE__*/_react["default"].createElement(_EmptyContact["default"], {
|
|
47
|
+
className: _LookupEmptyPageModule["default"].image
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
case 'product':
|
|
51
|
+
return /*#__PURE__*/_react["default"].createElement(_EmptyProducts["default"], {
|
|
52
|
+
className: _LookupEmptyPageModule["default"].image
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
default:
|
|
56
|
+
return null;
|
|
108
57
|
}
|
|
109
|
-
}
|
|
58
|
+
}
|
|
110
59
|
|
|
111
|
-
return
|
|
112
|
-
|
|
60
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: _LookupEmptyPageModule["default"].container,
|
|
62
|
+
"data-id": "empty_".concat(type),
|
|
63
|
+
"data-test-id": "empty_".concat(type)
|
|
64
|
+
}, renderEmptyState(type), /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
+
className: _LookupEmptyPageModule["default"].contentDiv
|
|
66
|
+
}, title));
|
|
67
|
+
}
|
|
113
68
|
|
|
114
|
-
exports["default"] = EmptyPage;
|
|
115
69
|
EmptyPage.propTypes = _propTypes.propTypes;
|
|
116
|
-
EmptyPage.defaultProps = _defaultProps.defaultProps;
|
|
117
|
-
// EmptyPage.docs = {
|
|
118
|
-
// componentGroup: 'Lookup'
|
|
119
|
-
// };
|
|
120
|
-
// }
|
|
70
|
+
EmptyPage.defaultProps = _defaultProps.defaultProps;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = Section;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _propTypes = require("../../../lookup/Section/props/propTypes");
|
|
13
11
|
|
|
@@ -17,59 +15,17 @@ var _LookupSectionModule = _interopRequireDefault(require("../../../lookup/Secti
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
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); }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
18
|
+
function Section(props) {
|
|
19
|
+
var alignBox = props.alignBox,
|
|
20
|
+
className = props.className,
|
|
21
|
+
children = props.children;
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
23
|
+
"data-drag-container": "true",
|
|
24
|
+
alignBox: alignBox,
|
|
25
|
+
className: "".concat(_LookupSectionModule["default"].section, " ").concat(className ? className : '')
|
|
26
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
27
|
+
flexible: true
|
|
28
|
+
}, children));
|
|
29
|
+
}
|
|
37
30
|
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
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; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var Section = /*#__PURE__*/function (_Component) {
|
|
45
|
-
_inherits(Section, _Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(Section);
|
|
48
|
-
|
|
49
|
-
function Section(props) {
|
|
50
|
-
_classCallCheck(this, Section);
|
|
51
|
-
|
|
52
|
-
return _super.call(this, props);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(Section, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
alignBox = _this$props.alignBox,
|
|
60
|
-
className = _this$props.className;
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
62
|
-
"data-drag-container": "true",
|
|
63
|
-
alignBox: alignBox,
|
|
64
|
-
className: "".concat(_LookupSectionModule["default"].section, " ").concat(className ? className : '')
|
|
65
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
66
|
-
flexible: true
|
|
67
|
-
}, this.props.children));
|
|
68
|
-
}
|
|
69
|
-
}]);
|
|
70
|
-
|
|
71
|
-
return Section;
|
|
72
|
-
}(_react.Component);
|
|
73
|
-
|
|
74
|
-
exports["default"] = Section;
|
|
75
31
|
Section.propTypes = _propTypes.propTypes;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
font-size: var(--zd_font_size14) ;
|
|
100
100
|
font-family: var(--zd_semibold);
|
|
101
101
|
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
102
|
-
line-height:
|
|
102
|
+
line-height: 1.4285714285714286;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
[dir=ltr] .text {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
.title {
|
|
56
56
|
color: var(--zdt_alertlookupnew_text);
|
|
57
57
|
font-size: var(--zd_font_size18) ;
|
|
58
|
-
line-height:
|
|
58
|
+
line-height: 1.2222222222222223;
|
|
59
59
|
font-family: var(--zd_bold);
|
|
60
60
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
61
61
|
vertical-align: middle;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.innerSection {
|
|
6
6
|
color: var(--zdt_alertlookupnew_text);
|
|
7
7
|
font-size: var(--zd_font_size14) ;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.2857142857142858;
|
|
9
9
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
10
10
|
padding: var(--zd_size17) var(--zd_size30) var(--zd_size30) ;
|
|
11
11
|
}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
.subTitle {
|
|
104
104
|
font-size: var(--zd_font_size15) ;
|
|
105
|
-
line-height:
|
|
105
|
+
line-height: 1.3333333333333333;
|
|
106
106
|
font-family: var(--zd_semibold);
|
|
107
107
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
108
108
|
}
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
.infoText {
|
|
115
115
|
font-size: var(--zd_font_size14) ;
|
|
116
|
-
line-height:
|
|
116
|
+
line-height: 1.2857142857142858;
|
|
117
117
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
118
118
|
}
|
|
119
119
|
|
package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
.title {
|
|
16
16
|
font-size: var(--zd_font_size18) ;
|
|
17
|
-
line-height:
|
|
17
|
+
line-height: 1.2222222222222223;
|
|
18
18
|
font-family: var(--zd_bold);
|
|
19
19
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
20
20
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.primary .infoText {
|
|
73
|
-
line-height:
|
|
73
|
+
line-height: 1;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.primary .close {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.secondary .infoText {
|
|
102
|
-
line-height:
|
|
102
|
+
line-height: 1.42857142857;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.secondary .iconContainer {
|
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-162",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@zohodesk-private/css-variable-migrator": "^1.0.7",
|
|
51
51
|
"@zohodesk-private/node-plugins": "^1.0.0",
|
|
52
52
|
"@zohodesk-private/color-variable-preprocessor": "1.0.6",
|
|
53
|
-
"@zohodesk-private/react-prop-validator": "
|
|
54
|
-
"@zohodesk/components": "1.0.0-temp-
|
|
55
|
-
"@zohodesk/a11y": "1.0
|
|
53
|
+
"@zohodesk-private/react-prop-validator": "1.1.0",
|
|
54
|
+
"@zohodesk/components": "1.0.0-temp-173",
|
|
55
|
+
"@zohodesk/a11y": "2.1.0",
|
|
56
56
|
"@zohodesk/i18n": "1.0.0-beta.23",
|
|
57
57
|
"@zohodesk/icons": "1.0.10",
|
|
58
58
|
"@zohodesk/svg": "1.1.4",
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"velocity-react": "1.4.3",
|
|
72
72
|
"@zohodesk/variables": "1.0.0",
|
|
73
73
|
"@zohodesk/i18n": "1.0.0-beta.23",
|
|
74
|
-
"@zohodesk/components": "
|
|
74
|
+
"@zohodesk/components": "1.2.13",
|
|
75
75
|
"@zohodesk/icons": "1.0.10",
|
|
76
76
|
"@zohodesk/svg": "1.1.4",
|
|
77
77
|
"@zohodesk/virtualizer": "1.0.3",
|
|
78
78
|
"react-sortable-hoc": "^0.8.3",
|
|
79
79
|
"@zohodesk/hooks": "2.0.2",
|
|
80
80
|
"@zohodesk/utils": "1.3.13",
|
|
81
|
-
"@zohodesk/a11y": "
|
|
81
|
+
"@zohodesk/a11y": "2.1.0"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|