@zohodesk/dot 1.0.0-temp-187.21 → 1.0.0-temp-223.5
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/Dot_DarkMode.module.css +315 -315
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +15 -15
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +307 -307
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +15 -15
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +317 -317
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +15 -15
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +15 -15
- package/es/common/dot_boxShadow.module.css +1 -2
- package/es/form/fields/Fields.module.css +1 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +6 -10
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/es/form/fields/TextEditor/TextEditor.js +6 -2
- package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/es/form/fields/TextEditor/props/propTypes.js +2 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +2 -6
- package/es/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/es/list/DepartmentDropDown/props/propTypes.js +0 -3
- package/es/list/status/StatusDropdown/StatusDropdown.js +2 -7
- package/es/list/status/StatusDropdown/props/defaultProps.js +1 -2
- package/es/list/status/StatusDropdown/props/propTypes.js +1 -4
- package/es/list/status/StatusListItem/StatusListItem.js +2 -4
- package/es/list/status/StatusListItem/StatusListItem.module.css +17 -40
- package/lib/common/dot_boxShadow.module.css +1 -2
- package/lib/form/fields/Fields.module.css +1 -4
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +7 -12
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
- package/lib/form/fields/TextEditor/TextEditor.js +5 -2
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +2 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
- package/lib/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/lib/list/DepartmentDropDown/props/propTypes.js +0 -2
- package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -6
- package/lib/list/status/StatusDropdown/props/defaultProps.js +1 -2
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -3
- package/lib/list/status/StatusListItem/StatusListItem.js +2 -4
- package/lib/list/status/StatusListItem/StatusListItem.module.css +17 -40
- package/package.json +7 -7
|
@@ -222,17 +222,13 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
222
222
|
_customClass$listItem = customClass.listItemClass,
|
|
223
223
|
listItemClass = _customClass$listItem === void 0 ? '' : _customClass$listItem,
|
|
224
224
|
_customClass$textBoxI = customClass.textBoxIconWrapperClass,
|
|
225
|
-
textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI
|
|
226
|
-
_customClass$dropBoxC = customClass.dropBoxClass,
|
|
227
|
-
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
225
|
+
textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI;
|
|
228
226
|
var _customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
229
227
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
230
228
|
_customProps$TagWrapp = customProps.TagWrapperProps,
|
|
231
229
|
TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
|
|
232
230
|
_customProps$TagProps = customProps.TagProps,
|
|
233
|
-
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps
|
|
234
|
-
_customProps$ListItem = customProps.ListItemProps,
|
|
235
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
231
|
+
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
|
|
236
232
|
var isEditable = !isReadOnly;
|
|
237
233
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
238
234
|
className: "".concat(_TagsMultiSelectModule["default"].container, " ").concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder || isEditable && isFocus ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
|
|
@@ -310,8 +306,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
310
306
|
boxPosition: boxPosition,
|
|
311
307
|
isPadding: false,
|
|
312
308
|
customClass: {
|
|
313
|
-
customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown
|
|
314
|
-
customDropBox: dropBoxClass
|
|
309
|
+
customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown
|
|
315
310
|
},
|
|
316
311
|
dataId: "".concat(dataId, "_dropbox"),
|
|
317
312
|
isResponsivePadding: true,
|
|
@@ -342,8 +337,8 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
342
337
|
}, searchList.map(function (item, index) {
|
|
343
338
|
var name = item.name,
|
|
344
339
|
isNew = item.isNew,
|
|
345
|
-
|
|
346
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"],
|
|
340
|
+
listItemProps = item.listItemProps;
|
|
341
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
347
342
|
key: index,
|
|
348
343
|
index: index,
|
|
349
344
|
autoHover: true,
|
|
@@ -354,9 +349,9 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
354
349
|
highlight: selectSearchIndex === index,
|
|
355
350
|
getRef: _this3.getSelectedItemRef,
|
|
356
351
|
isDisabled: listDisabled,
|
|
357
|
-
customProps:
|
|
352
|
+
customProps: listItemProps,
|
|
358
353
|
customClass: listItemClass
|
|
359
|
-
},
|
|
354
|
+
}, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
360
355
|
alignBox: "row",
|
|
361
356
|
align: "vertical"
|
|
362
357
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -62,8 +62,7 @@ var propTypes = {
|
|
|
62
62
|
customProps: _propTypes["default"].shape({
|
|
63
63
|
TextBoxIconProps: _propTypes["default"].object,
|
|
64
64
|
TagWrapperProps: _propTypes["default"].object,
|
|
65
|
-
TagProps: _propTypes["default"].object
|
|
66
|
-
ListItemProps: _propTypes["default"].object
|
|
65
|
+
TagProps: _propTypes["default"].object
|
|
67
66
|
}),
|
|
68
67
|
isFocus: _propTypes["default"].bool
|
|
69
68
|
};
|
|
@@ -427,13 +427,16 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
427
427
|
isNightMode = _this$props9.isNightMode,
|
|
428
428
|
isReadOnly = _this$props9.isReadOnly,
|
|
429
429
|
dataSelectorId = _this$props9.dataSelectorId,
|
|
430
|
-
isDisabled = _this$props9.isDisabled
|
|
430
|
+
isDisabled = _this$props9.isDisabled,
|
|
431
|
+
customClass = _this$props9.customClass;
|
|
432
|
+
var _customClass$containe = customClass.containerClass,
|
|
433
|
+
containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
|
|
431
434
|
var _this$state = this.state,
|
|
432
435
|
isEditorLoad = _this$state.isEditorLoad,
|
|
433
436
|
isEditorShow = _this$state.isEditorShow;
|
|
434
437
|
var editorDoc = ImgLazyLoad && global.editor && global.editor[id] ? global.editor[id].doc : null;
|
|
435
438
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
436
|
-
className: "".concat(_TextEditorModule["default"].textEditor, " ").concat(_TextEditorModule["default"][type], " ").concat(_TextEditorModule["default"][border], "\n ").concat(isNightMode ? _TextEditorModule["default"].night : _TextEditorModule["default"].light, " ").concat(isReadOnly ? _TextEditorModule["default"].readOnly : '', " ").concat(isDisabled ? _TextEditorModule["default"].disable : '', " ").concat(!isEditorShow ? _TextEditorModule["default"].editorHide : ''),
|
|
439
|
+
className: "".concat(_TextEditorModule["default"].textEditor, " ").concat(_TextEditorModule["default"][type], " ").concat(_TextEditorModule["default"][border], "\n ").concat(isNightMode ? _TextEditorModule["default"].night : _TextEditorModule["default"].light, " ").concat(isReadOnly ? _TextEditorModule["default"].readOnly : '', " ").concat(isDisabled ? _TextEditorModule["default"].disable : '', " ").concat(!isEditorShow ? _TextEditorModule["default"].editorHide : '', " ").concat(containerClass),
|
|
437
440
|
dataId: dataId,
|
|
438
441
|
"data-isEditor": true,
|
|
439
442
|
dataSelectorId: dataSelectorId
|
|
@@ -59,6 +59,7 @@ var propTypes = {
|
|
|
59
59
|
allowedFileExtensions: _propTypes["default"].array,
|
|
60
60
|
fileNameMaxCharacters: _propTypes["default"].number,
|
|
61
61
|
fileSizeMaxBytes: _propTypes["default"].number
|
|
62
|
-
})
|
|
62
|
+
}),
|
|
63
|
+
customClass: _propTypes["default"].string
|
|
63
64
|
};
|
|
64
65
|
exports.propTypes = propTypes;
|
|
@@ -25,8 +25,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
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; }
|
|
27
27
|
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
29
|
|
|
32
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); } }
|
|
@@ -102,10 +100,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
102
100
|
onSearch = _this$props3.onSearch,
|
|
103
101
|
needSearchFetching = _this$props3.needSearchFetching,
|
|
104
102
|
searchStr = _this$props3.searchStr,
|
|
105
|
-
i18nKeys = _this$props3.i18nKeys
|
|
106
|
-
customProps = _this$props3.customProps;
|
|
107
|
-
var _customProps$ToggleDr = customProps.ToggleDropDownProps,
|
|
108
|
-
ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr;
|
|
103
|
+
i18nKeys = _this$props3.i18nKeys;
|
|
109
104
|
var _i18nKeys$title = i18nKeys.title,
|
|
110
105
|
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
111
106
|
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
@@ -114,7 +109,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
114
109
|
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
115
110
|
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
116
111
|
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
117
|
-
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"],
|
|
112
|
+
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
118
113
|
title: title,
|
|
119
114
|
options: departmentList,
|
|
120
115
|
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
@@ -143,7 +138,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
143
138
|
isNextOptions: isNextOptions,
|
|
144
139
|
onSearch: onSearch,
|
|
145
140
|
needSearchFetching: needSearchFetching
|
|
146
|
-
})
|
|
141
|
+
});
|
|
147
142
|
}
|
|
148
143
|
}]);
|
|
149
144
|
|
|
@@ -31,7 +31,5 @@ var propTypes = (_propTypes = {
|
|
|
31
31
|
searchEmptyText: _propTypes2["default"].string,
|
|
32
32
|
searchErrorText: _propTypes2["default"].string,
|
|
33
33
|
placeholder: _propTypes2["default"].string
|
|
34
|
-
})), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
|
|
35
|
-
ToggleDropDownProps: _propTypes2["default"].object
|
|
36
34
|
})), _propTypes);
|
|
37
35
|
exports.propTypes = propTypes;
|
|
@@ -247,10 +247,7 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
247
247
|
renderTargetElement = _this$props4.renderTargetElement,
|
|
248
248
|
renderFooterElement = _this$props4.renderFooterElement,
|
|
249
249
|
_this$props4$a11y = _this$props4.a11y,
|
|
250
|
-
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y
|
|
251
|
-
customClass = _this$props4.customClass;
|
|
252
|
-
var _customClass$dropBoxC = customClass.dropBoxClass,
|
|
253
|
-
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
250
|
+
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y;
|
|
254
251
|
var _a11y$tabIndex = a11y.tabIndex,
|
|
255
252
|
tabIndex = _a11y$tabIndex === void 0 ? 0 : _a11y$tabIndex,
|
|
256
253
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
@@ -313,8 +310,7 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
313
310
|
isAnimate: true,
|
|
314
311
|
getRef: getContainerRef,
|
|
315
312
|
customClass: {
|
|
316
|
-
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
317
|
-
customDropBox: dropBoxClass
|
|
313
|
+
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
318
314
|
},
|
|
319
315
|
needResponsive: needResponsive,
|
|
320
316
|
isResponsivePadding: true,
|
|
@@ -30,7 +30,5 @@ var propTypes = (_propTypes = {
|
|
|
30
30
|
idName: _propTypes2["default"].string,
|
|
31
31
|
isArrow: _propTypes2["default"].bool,
|
|
32
32
|
isDataLoaded: _propTypes2["default"].bool
|
|
33
|
-
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object),
|
|
34
|
-
dropBoxClass: _propTypes2["default"].string
|
|
35
|
-
})), _propTypes);
|
|
33
|
+
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _propTypes);
|
|
36
34
|
exports.propTypes = propTypes;
|
|
@@ -135,7 +135,7 @@ var StatusListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
135
135
|
"aria-label": ariaLabel,
|
|
136
136
|
"data-a11y-inset-focus": insetFocus,
|
|
137
137
|
isCover: false,
|
|
138
|
-
align: "
|
|
138
|
+
align: "baseline",
|
|
139
139
|
alignBox: "row",
|
|
140
140
|
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 : '', " ").concat(customClass),
|
|
141
141
|
dataId: String(value).replace("'", '_'),
|
|
@@ -146,8 +146,6 @@ var StatusListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
146
146
|
"data-title": isDisabled ? disableTitle : null,
|
|
147
147
|
tabindex: isDisabled ? '-1' : '0'
|
|
148
148
|
}, options, a11y), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
149
|
-
className: _StatusListItemModule["default"].contentWrapper
|
|
150
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
151
149
|
className: "".concat(_StatusListItemModule["default"].statusType, " ").concat(_StatusListItemModule["default"][bulletColor])
|
|
152
150
|
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
153
151
|
flexible: true,
|
|
@@ -165,7 +163,7 @@ var StatusListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
165
163
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
166
164
|
name: "ZD-ticknew",
|
|
167
165
|
size: "8"
|
|
168
|
-
})) : null)
|
|
166
|
+
})) : null);
|
|
169
167
|
}
|
|
170
168
|
}]);
|
|
171
169
|
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
.varClass {
|
|
2
|
-
--statuslistitem_multiline_lineheight: 1.5385;
|
|
3
|
-
--statuslistitem_font_size: var(--zd_font_size13);
|
|
4
|
-
--statuslistitem_min_height: var(--zd_size35);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
1
|
.list {
|
|
8
|
-
composes: varClass;
|
|
9
2
|
color: var(--zdt_statuslistitem_list_text);
|
|
10
|
-
font-size: var(--
|
|
3
|
+
font-size: var(--zd_font_size13) ;
|
|
11
4
|
position: relative;
|
|
12
5
|
list-style: none;
|
|
13
|
-
min-height: var(--
|
|
6
|
+
min-height: var(--zd_size35) ;
|
|
14
7
|
cursor: pointer;
|
|
15
8
|
}
|
|
16
9
|
[dir=ltr] .withBorder {
|
|
@@ -29,7 +22,7 @@
|
|
|
29
22
|
padding: var(--zd_size7) var(--zd_size20) ;
|
|
30
23
|
}
|
|
31
24
|
.large {
|
|
32
|
-
|
|
25
|
+
height: var(--zd_size48) ;
|
|
33
26
|
}
|
|
34
27
|
[dir=ltr] .large {
|
|
35
28
|
padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
|
|
@@ -43,8 +36,9 @@
|
|
|
43
36
|
.value {
|
|
44
37
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
45
38
|
}
|
|
46
|
-
.multiLineValue
|
|
47
|
-
|
|
39
|
+
.multiLineValue{
|
|
40
|
+
word-break: break-word;
|
|
41
|
+
composes: clamp from '~@zohodesk/components/es/common/common.module.css';
|
|
48
42
|
}
|
|
49
43
|
[dir=ltr] .withBorder.active {
|
|
50
44
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -94,41 +88,24 @@
|
|
|
94
88
|
[dir=rtl] .active.withTick {
|
|
95
89
|
padding-left: var(--zd_size39) ;
|
|
96
90
|
}
|
|
97
|
-
.contentWrapper {
|
|
98
|
-
composes: dflex flexrow alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
99
|
-
width: 100% ;
|
|
100
|
-
}
|
|
101
91
|
/* Status Type */
|
|
102
|
-
.statusType{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
align-self: flex-start;
|
|
106
|
-
min-height: calc(var(--statuslistitem_font_size) * var(--statuslistitem_multiline_lineheight));
|
|
107
|
-
min-width: var(--zd_size20) ;
|
|
108
|
-
}
|
|
109
|
-
.statusType::after{
|
|
110
|
-
content: '';
|
|
111
|
-
--status_listitem_bullet_min_height: var(--zd_size8);
|
|
112
|
-
--status_listitem_bullet_min_width: var(--zd_size8);
|
|
113
|
-
height: var(--status_listitem_bullet_min_height);
|
|
114
|
-
width: var(--status_listitem_bullet_min_width);
|
|
115
|
-
/* css:theme-validation:ignore */
|
|
92
|
+
.statusType {
|
|
93
|
+
width: var(--zd_size8) ;
|
|
94
|
+
height: var(--zd_size8) ;
|
|
116
95
|
border-radius: 50%;
|
|
117
|
-
background-color: var(--zdt_statuslistitem_black_bg);
|
|
118
96
|
}
|
|
119
|
-
[dir=ltr] .statusType
|
|
120
|
-
margin-right: var(--
|
|
97
|
+
[dir=ltr] .statusType {
|
|
98
|
+
margin-right: var(--zd_size13) ;
|
|
121
99
|
}
|
|
122
|
-
[dir=rtl] .statusType
|
|
123
|
-
margin-left: var(--
|
|
100
|
+
[dir=rtl] .statusType {
|
|
101
|
+
margin-left: var(--zd_size13) ;
|
|
124
102
|
}
|
|
125
|
-
|
|
126
|
-
.black.statusType::after {
|
|
103
|
+
.black {
|
|
127
104
|
background-color: var(--zdt_statuslistitem_black_bg);
|
|
128
105
|
}
|
|
129
|
-
.orange
|
|
106
|
+
.orange {
|
|
130
107
|
background-color: var(--zdt_statuslistitem_orange_bg);
|
|
131
108
|
}
|
|
132
|
-
.green
|
|
109
|
+
.green {
|
|
133
110
|
background-color: var(--zdt_statuslistitem_green_bg);
|
|
134
|
-
}
|
|
111
|
+
}
|
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-223.5",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"sstest": "react-cli sstest",
|
|
40
40
|
"common_package_build": "cd ../common && npm run build && cd ../dot",
|
|
41
41
|
"docs": "npm run css:review && review:props && react-cli docs",
|
|
42
|
-
"prepublishOnly": "node prePublish.js && npm run
|
|
42
|
+
"prepublishOnly": "node prePublish.js && npm run downloadOnly",
|
|
43
43
|
"postpublish": "node postPublish.js",
|
|
44
44
|
"test-clean": "react-cli clean ./coverage && react-cli clean ./unittest react-cli clean ./es && react-cli clean ./lib && react-cli clean ./package-lock.json && react-cli clean ./result.json",
|
|
45
45
|
"download": "npm run downloadOnly && cd ../ && npm run download",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"@testing-library/react": "^11.2.5",
|
|
69
69
|
"@testing-library/react-hooks": "^7.0.2",
|
|
70
70
|
"@testing-library/user-event": "^13.0.10",
|
|
71
|
-
"@zohodesk-private/color-variable-preprocessor": "1.
|
|
71
|
+
"@zohodesk-private/color-variable-preprocessor": "1.0.0-temp-13.4",
|
|
72
72
|
"@zohodesk-private/css-variable-migrator": "1.0.9",
|
|
73
73
|
"@zohodesk-private/node-plugins": "1.1.13",
|
|
74
74
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
75
75
|
"@zohodesk/a11y": "2.3.8",
|
|
76
|
-
"@zohodesk/components": "
|
|
76
|
+
"@zohodesk/components": "1.0.0-temp-247.3",
|
|
77
77
|
"@zohodesk/hooks": "2.0.6",
|
|
78
78
|
"@zohodesk/icons": "1.1.6",
|
|
79
79
|
"@zohodesk/layout": "^3.1.0",
|
|
80
|
-
"@zohodesk/svg": "1.
|
|
80
|
+
"@zohodesk/svg": "1.0.0-temp.60.3",
|
|
81
81
|
"@zohodesk/utils": "1.3.16",
|
|
82
82
|
"@zohodesk/variables": "1.2.0",
|
|
83
83
|
"@zohodesk/virtualizer": "1.0.13",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"velocity-react": "1.4.3",
|
|
91
91
|
"@zohodesk/variables": "1.2.0",
|
|
92
|
-
"@zohodesk/components": "1.
|
|
92
|
+
"@zohodesk/components": "1.0.0-temp-247.3",
|
|
93
93
|
"@zohodesk/icons": "1.1.6",
|
|
94
|
-
"@zohodesk/svg": "1.
|
|
94
|
+
"@zohodesk/svg": "1.0.0-temp.60.3",
|
|
95
95
|
"@zohodesk/virtualizer": "1.0.13",
|
|
96
96
|
"react-sortable-hoc": "^0.8.3",
|
|
97
97
|
"@zohodesk/hooks": "2.0.6",
|