@zohodesk/dot 1.0.0-temp-200.2 → 1.0.0-temp-187.4

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.
Files changed (37) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/es/Attachment/Attachment.js +1 -2
  3. package/es/Attachment/Attachment.module.css +3 -7
  4. package/es/AttachmentViewer/Attachment.js +1 -60
  5. package/es/AttachmentViewer/AttachmentViewer.js +14 -148
  6. package/es/AttachmentViewer/AttachmentViewer.module.css +5 -125
  7. package/es/common/dot_common.module.css +2 -37
  8. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
  9. package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  10. package/es/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
  11. package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
  12. package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
  13. package/es/list/status/StatusListItem/StatusListItem.module.css +35 -5
  14. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
  15. package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  16. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
  17. package/es/v1/list/DepartmentDropDown/props/defaultProps.js +2 -1
  18. package/es/v1/list/DepartmentDropDown/props/propTypes.js +3 -0
  19. package/lib/Attachment/Attachment.js +1 -3
  20. package/lib/Attachment/Attachment.module.css +3 -7
  21. package/lib/AttachmentViewer/Attachment.js +1 -88
  22. package/lib/AttachmentViewer/AttachmentViewer.js +15 -148
  23. package/lib/AttachmentViewer/AttachmentViewer.module.css +5 -125
  24. package/lib/common/dot_common.module.css +2 -37
  25. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
  26. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  27. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
  28. package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
  29. package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
  30. package/lib/list/status/StatusListItem/StatusListItem.module.css +35 -5
  31. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
  32. package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  33. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
  34. package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +2 -1
  35. package/lib/v1/list/DepartmentDropDown/props/propTypes.js +2 -0
  36. package/package.json +6 -6
  37. /package/images/{audio_thumbnail_old.png → audio_thumbnail.png} +0 -0
@@ -79,7 +79,7 @@
79
79
  font-size: var(--zd_font_size22) ;
80
80
  height: var(--zd_size38) ;
81
81
  width: var(--zd_size38) ;
82
- line-height: 1.6;
82
+ line-height: 1.6364;
83
83
  border-radius: 50%;
84
84
  cursor: pointer;
85
85
  }
@@ -154,7 +154,6 @@
154
154
  .imgItem {
155
155
  height: var(--zd_size60) ;
156
156
  min-width: var(--zd_size40) ;
157
- /* css:theme-validation:ignore */
158
157
  position: relative;
159
158
  transition: border var(--zd_transition3);
160
159
  border-width: 2px;
@@ -169,10 +168,6 @@
169
168
  border-color: var(--zdt_attachmentviewer_hover_border);
170
169
  }
171
170
 
172
- .imgItem+.imgItem {
173
- /* margin-left: 6px; */
174
- }
175
-
176
171
  [dir=ltr] .imgItem+.imgItem {
177
172
  margin-left: var(--zd_size12) ;
178
173
  }
@@ -235,71 +230,16 @@
235
230
  transform: rotateX(0deg);
236
231
  }
237
232
 
238
- .isAudio,
239
- .isVideo,
240
- .isPdf,
241
- .isMail,
242
- .isWriter,
243
- .isSheet,
244
- .isShow,
245
- .otherFile {
246
- width: var(--zd_size60) ;
247
- }
248
-
249
- .isAudio, .isVideo, .isPdf, .isMail, .isWriter, .isSheet, .isShow, .otherFile {
250
- background-size: 100% 100%;
251
- }
252
-
253
- /* .isAudio {
233
+ .isAudio {
254
234
  composes: audioImage from '../common/dot_common.module.css';
235
+ width: var(--zd_size100) ;
236
+ background-size: 100% 100%;
255
237
  }
256
238
 
257
- .isVideo {
258
- composes: videoImage from '../common/dot_common.module.css';
259
- }
260
-
261
- .isPdf {
262
- composes: pdfImage from '../common/dot_common.module.css';
263
- }
264
-
265
- .isWriter {
266
- composes: writerImage from '../common/dot_common.module.css';
267
- }
268
-
269
- .isSheet {
270
- composes: sheetImage from '../common/dot_common.module.css';
271
- }
272
-
273
- .isShow {
274
- composes: showImage from '../common/dot_common.module.css';
275
- }
276
-
277
-
278
- .isMail {
279
- composes: mailImage from '../common/dot_common.module.css';
280
- }
281
-
282
- .otherFile {
283
- composes: otherImage from '../common/dot_common.module.css';
284
- } */
285
-
286
- .isAudio .image,
287
- .isVideo .image,
288
- .isPdf .image,
289
- .isWriter .image,
290
- .isSheet .image,
291
- .isShow .image,
292
- .isMail .image,
293
- .otherFile .image {
239
+ .isAudio .image {
294
240
  opacity: 0;
295
241
  }
296
242
 
297
- .pdfFrame {
298
- height: 100% ;
299
- width: 100% ;
300
- border: 0;
301
- }
302
-
303
243
  .video {
304
244
  position: absolute;
305
245
  top: 0 ;
@@ -417,69 +357,9 @@
417
357
  }
418
358
 
419
359
  .btn {
420
- /* css:theme-validation:ignore */
421
360
  height: 100% ;
422
361
  width: 100% ;
423
362
  background-color: var(--dot_mirror);
424
363
  border: 0;
425
364
  cursor: pointer;
426
- }
427
-
428
- .fileTypeImg {
429
- margin: 0 auto var(--zd_size20) ;
430
- }
431
-
432
- .previewNone {
433
- /* css:theme-validation:ignore */
434
- color: #fff;
435
- text-align: center;
436
- margin: auto ;
437
- }
438
-
439
- .downloadLink {
440
- /* css:theme-validation:ignore */
441
- color: #0a73eb;
442
- display: inline-block;
443
- padding-top: var(--zd_size10) ;
444
- }
445
-
446
- .previewIconDiv {
447
- width: var(--zd_size60) ;
448
- composes: dflex from '~@zohodesk/components/lib/common/common.module.css';
449
- }
450
-
451
- .prevFooterIcon,
452
- .prevIcon {
453
- /* css:theme-validation:ignore */
454
- color: #fff;
455
- }
456
-
457
- .prevFooterIcon, .prevIcon {
458
- padding: var(--zd_size2) ;
459
- margin: auto ;
460
- }
461
-
462
- .prevFooterIcon::before,
463
- .prevIcon::before {
464
- /* css:theme-validation:ignore */
465
- }
466
-
467
- .prevFooterIcon::before, .prevIcon::before {
468
- background-color: transparent;
469
- }
470
-
471
- [dir=ltr] .prevIcon::before {
472
- border-radius: 10px 30px 10px 10px;
473
- }
474
-
475
- [dir=rtl] .prevIcon::before {
476
- border-radius: 30px 10px 10px 10px;
477
- }
478
-
479
- [dir=ltr] .prevFooterIcon::before {
480
- border-radius: 5px 17px 5px 5px
481
- }
482
-
483
- [dir=rtl] .prevFooterIcon::before {
484
- border-radius: 17px 5px 5px 5px
485
365
  }
@@ -1,39 +1,4 @@
1
- /* .audioImage {
1
+ .audioImage {
2
2
  background-image: url('../../images/audio_thumbnail.png');
3
3
  background-repeat: no-repeat;
4
- }
5
-
6
- .videoImage {
7
- background-image: url('../../images/video_thumbnail.png');
8
- background-repeat: no-repeat;
9
- }
10
-
11
- .pdfImage {
12
- background-image: url('../../images/pdf_thumbnail.png');
13
- background-repeat: no-repeat;
14
- }
15
-
16
- .writerImage {
17
- background-image: url('../../images/writer_thumbnail.png');
18
- background-repeat: no-repeat;
19
- }
20
-
21
- .showImage {
22
- background-image: url('../../images/show_thumbnail.png');
23
- background-repeat: no-repeat;
24
- }
25
-
26
- .sheetImage {
27
- background-image: url('../../images/sheet_thumbnail.png');
28
- background-repeat: no-repeat;
29
- }
30
-
31
- .mailImage {
32
- background-image: url('../../images/mail_thumbnail.png');
33
- background-repeat: no-repeat;
34
- }
35
-
36
- .otherImage {
37
- background-image: url('../../images/otherfile_thumbnail.png');
38
- background-repeat: no-repeat;
39
- } */
4
+ }
@@ -227,7 +227,9 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
227
227
  _customProps$TagWrapp = customProps.TagWrapperProps,
228
228
  TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
229
229
  _customProps$TagProps = customProps.TagProps,
230
- TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
230
+ TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps,
231
+ _customProps$listProp = customProps.listProps,
232
+ listProps = _customProps$listProp === void 0 ? {} : _customProps$listProp;
231
233
  return /*#__PURE__*/_react["default"].createElement("div", {
232
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 ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
233
235
  onClick: _General.stopBubbling,
@@ -336,7 +338,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
336
338
  var name = item.name,
337
339
  isNew = item.isNew,
338
340
  listItemProps = item.listItemProps;
339
- 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"], {
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"], _extends({
340
342
  key: index,
341
343
  index: index,
342
344
  autoHover: true,
@@ -349,7 +351,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
349
351
  isDisabled: listDisabled,
350
352
  customProps: listItemProps,
351
353
  customClass: listItemClass
352
- }, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
354
+ }, listProps), isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
353
355
  alignBox: "row",
354
356
  align: "vertical"
355
357
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
@@ -62,7 +62,8 @@ 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
65
+ TagProps: _propTypes["default"].object,
66
+ listProps: _propTypes["default"].object
66
67
  })
67
68
  };
68
69
  exports.propTypes = propTypes;
@@ -25,6 +25,8 @@ 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
+
28
30
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
31
 
30
32
  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); } }
@@ -100,7 +102,10 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
100
102
  onSearch = _this$props3.onSearch,
101
103
  needSearchFetching = _this$props3.needSearchFetching,
102
104
  searchStr = _this$props3.searchStr,
103
- i18nKeys = _this$props3.i18nKeys;
105
+ i18nKeys = _this$props3.i18nKeys,
106
+ customProps = _this$props3.customProps;
107
+ var _customProps$toggleDr = customProps.toggleDropDownProps,
108
+ toggleDropDownProps = _customProps$toggleDr === void 0 ? {} : _customProps$toggleDr;
104
109
  var _i18nKeys$title = i18nKeys.title,
105
110
  title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
106
111
  _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
@@ -109,7 +114,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
109
114
  searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
110
115
  _i18nKeys$placeholder = i18nKeys.placeholder,
111
116
  placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
112
- return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
117
+ return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], _extends({
113
118
  title: title,
114
119
  options: departmentList,
115
120
  value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
@@ -138,7 +143,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
138
143
  isNextOptions: isNextOptions,
139
144
  onSearch: onSearch,
140
145
  needSearchFetching: needSearchFetching
141
- });
146
+ }, toggleDropDownProps));
142
147
  }
143
148
  }]);
144
149
 
@@ -9,6 +9,7 @@ var defaultProps = {
9
9
  isPopupActive: true,
10
10
  isNextOptions: false,
11
11
  searchStr: '',
12
- i18nKeys: {}
12
+ i18nKeys: {},
13
+ customProps: {}
13
14
  };
14
15
  exports.defaultProps = defaultProps;
@@ -31,5 +31,7 @@ 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
34
36
  })), _propTypes);
35
37
  exports.propTypes = propTypes;
@@ -6,43 +6,58 @@
6
6
  min-height: var(--zd_size35) ;
7
7
  cursor: pointer;
8
8
  }
9
+
9
10
  [dir=ltr] .withBorder {
10
11
  border-left: 1px solid var(--zdt_statuslistitem_default_border);
11
12
  }
13
+
12
14
  [dir=rtl] .withBorder {
13
15
  border-right: 1px solid var(--zdt_statuslistitem_default_border);
14
16
  }
17
+
15
18
  [dir=ltr] .small {
16
19
  padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5) ;
17
20
  }
21
+
18
22
  [dir=rtl] .small {
19
23
  padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3) ;
20
24
  }
25
+
21
26
  .medium {
22
27
  padding: var(--zd_size7) var(--zd_size20) ;
23
28
  }
29
+
24
30
  .large {
25
31
  height: var(--zd_size48) ;
26
32
  }
33
+
27
34
  [dir=ltr] .large {
28
35
  padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
29
36
  }
37
+
30
38
  [dir=rtl] .large {
31
39
  padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
32
40
  }
33
- .value,.multiLineValue {
41
+
42
+ .value,
43
+ .multiLineValue {
34
44
  line-height: 1.5385;
35
45
  }
46
+
36
47
  .value {
37
48
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
38
49
  }
39
- .multiLineValue{
50
+
51
+ .multiLineValue {
40
52
  word-break: break-word;
53
+ -webkit-line-clamp: 3;
41
54
  composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
42
55
  }
56
+
43
57
  [dir=ltr] .withBorder.active {
44
58
  border-left-color: var(--zdt_statuslistitem_default_active_border);
45
59
  }
60
+
46
61
  [dir=rtl] .withBorder.active {
47
62
  border-right-color: var(--zdt_statuslistitem_default_active_border);
48
63
  }
@@ -50,44 +65,56 @@
50
65
  .default.hover, .default.effect:hover {
51
66
  background-color: var(--zdt_statuslistitem_default_effect_bg);
52
67
  }
68
+
53
69
  .primary.hover, .primary.effect:hover, .selected {
54
70
  background-color: var(--zdt_statuslistitem_primary_efffect_bg);
55
71
  }
72
+
56
73
  .secondary.hover, .secondary.effect:hover {
57
74
  background-color: var(--zdt_statuslistitem_secondary_effect_bg);
58
75
  }
76
+
59
77
  .list.active.default, .list.active.primary {
60
78
  background-color: var(--zdt_statuslistitem_primary_efffect_bg);
61
79
  }
80
+
62
81
  .list.active.secondary {
63
82
  background-color: var(--zdt_statuslistitem_secondary_effect_bg);
64
83
  }
84
+
65
85
  .secondary.hover,
66
86
  .secondary.effect:hover,
67
87
  .list.active.secondary {
68
88
  color: var(--zdt_statuslistitem_secondary_effect_text);
69
89
  }
90
+
70
91
  .tickIcon {
71
92
  color: var(--zdt_statuslistitem_tickicon);
72
93
  position: absolute;
73
- top:50% ;
94
+ top: 50% ;
74
95
  transform: translateY(-50%);
75
96
  }
97
+
76
98
  [dir=ltr] .tickIcon {
77
99
  right: var(--zd_size20) ;
78
100
  }
101
+
79
102
  [dir=rtl] .tickIcon {
80
103
  left: var(--zd_size20) ;
81
104
  }
82
- .tickIcon > i {
105
+
106
+ .tickIcon>i {
83
107
  display: block;
84
108
  }
109
+
85
110
  [dir=ltr] .active.withTick {
86
111
  padding-right: var(--zd_size39) ;
87
112
  }
113
+
88
114
  [dir=rtl] .active.withTick {
89
115
  padding-left: var(--zd_size39) ;
90
116
  }
117
+
91
118
  /* Status Type */
92
119
  .statusType {
93
120
  width: var(--zd_size8) ;
@@ -100,12 +127,15 @@
100
127
  [dir=rtl] .statusType {
101
128
  margin-left: var(--zd_size13) ;
102
129
  }
130
+
103
131
  .black {
104
132
  background-color: var(--zdt_statuslistitem_black_bg);
105
133
  }
134
+
106
135
  .orange {
107
136
  background-color: var(--zdt_statuslistitem_orange_bg);
108
137
  }
138
+
109
139
  .green {
110
140
  background-color: var(--zdt_statuslistitem_green_bg);
111
- }
141
+ }
@@ -227,7 +227,9 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
227
227
  _customProps$TagWrapp = customProps.TagWrapperProps,
228
228
  TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
229
229
  _customProps$TagProps = customProps.TagProps,
230
- TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
230
+ TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps,
231
+ _customProps$listProp = customProps.listProps,
232
+ listProps = _customProps$listProp === void 0 ? {} : _customProps$listProp;
231
233
  return /*#__PURE__*/_react["default"].createElement("div", {
232
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 ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
233
235
  onClick: _General.stopBubbling,
@@ -336,7 +338,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
336
338
  var name = item.name,
337
339
  isNew = item.isNew,
338
340
  listItemProps = item.listItemProps;
339
- 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"], {
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"], _extends({
340
342
  key: index,
341
343
  index: index,
342
344
  autoHover: true,
@@ -349,7 +351,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
349
351
  isDisabled: listDisabled,
350
352
  customProps: listItemProps,
351
353
  customClass: listItemClass
352
- }, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
354
+ }, listProps), isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
353
355
  alignBox: "row",
354
356
  align: "vertical"
355
357
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
@@ -62,7 +62,8 @@ 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
65
+ TagProps: _propTypes["default"].object,
66
+ listProps: _propTypes["default"].object
66
67
  })
67
68
  };
68
69
  exports.propTypes = propTypes;
@@ -19,6 +19,8 @@ var _DepartmentDropDownModule = _interopRequireDefault(require("../../../list/De
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
21
 
22
+ 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); }
23
+
22
24
  function DepartmentDropDown(props) {
23
25
  var departmentName = props.departmentName,
24
26
  _props$departmentList = props.departmentList,
@@ -35,7 +37,10 @@ function DepartmentDropDown(props) {
35
37
  searchStr = props.searchStr,
36
38
  i18nKeys = props.i18nKeys,
37
39
  onMoveDepartment = props.onMoveDepartment,
38
- getDepartment = props.getDepartment;
40
+ getDepartment = props.getDepartment,
41
+ customProps = props.customProps;
42
+ var _customProps$toggleDr = customProps.toggleDropDownProps,
43
+ toggleDropDownProps = _customProps$toggleDr === void 0 ? {} : _customProps$toggleDr;
39
44
  var _i18nKeys$title = i18nKeys.title,
40
45
  title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
41
46
  _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
@@ -58,7 +63,7 @@ function DepartmentDropDown(props) {
58
63
  onMoveDepartment(deptId);
59
64
  }
60
65
 
61
- return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
66
+ return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], _extends({
62
67
  title: title,
63
68
  options: departmentList,
64
69
  value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
@@ -87,7 +92,7 @@ function DepartmentDropDown(props) {
87
92
  isNextOptions: isNextOptions,
88
93
  onSearch: onSearch,
89
94
  needSearchFetching: needSearchFetching
90
- });
95
+ }, toggleDropDownProps));
91
96
  }
92
97
 
93
98
  DepartmentDropDown.defaultProps = _defaultProps.defaultProps;
@@ -9,6 +9,7 @@ var defaultProps = {
9
9
  isPopupActive: true,
10
10
  isNextOptions: false,
11
11
  searchStr: '',
12
- i18nKeys: {}
12
+ i18nKeys: {},
13
+ customProps: {}
13
14
  };
14
15
  exports.defaultProps = defaultProps;
@@ -31,5 +31,7 @@ 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
34
36
  })), _propTypes);
35
37
  exports.propTypes = propTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-200.2",
3
+ "version": "1.0.0-temp-187.4",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -37,7 +37,7 @@
37
37
  "sstest": "react-cli sstest",
38
38
  "common_package_build": "cd ../common && npm run build && cd ../dot",
39
39
  "docs": "npm run css:review && review:props && react-cli docs",
40
- "prepublishOnly": "node prePublish.js && npm run download",
40
+ "prepublishOnly": "node prePublish.js && npm run download && npm run css:review",
41
41
  "postpublish": "node postPublish.js",
42
42
  "test-clean": "react-cli clean coverage",
43
43
  "download": "react-cli clean ./node_modules ./package-lock.json && npm install",
@@ -63,9 +63,9 @@
63
63
  "@zohodesk-private/node-plugins": "1.1.8",
64
64
  "@zohodesk-private/react-prop-validator": "1.2.3",
65
65
  "@zohodesk/a11y": "2.2.6",
66
- "@zohodesk/components": "1.2.48",
66
+ "@zohodesk/components": "../components",
67
67
  "@zohodesk/hooks": "2.0.5",
68
- "@zohodesk/icons": "1.0.64",
68
+ "@zohodesk/icons": "1.0.66",
69
69
  "@zohodesk/svg": "1.1.22",
70
70
  "@zohodesk/utils": "1.3.14",
71
71
  "@zohodesk/variables": "1.0.0",
@@ -76,8 +76,8 @@
76
76
  "peerDependencies": {
77
77
  "velocity-react": "1.4.3",
78
78
  "@zohodesk/variables": "1.0.0",
79
- "@zohodesk/components": "1.2.48",
80
- "@zohodesk/icons": "1.0.64",
79
+ "@zohodesk/components": "1.2.49",
80
+ "@zohodesk/icons": "1.0.66",
81
81
  "@zohodesk/svg": "1.1.22",
82
82
  "@zohodesk/virtualizer": "1.0.3",
83
83
  "react-sortable-hoc": "^0.8.3",