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

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/README.md +6 -0
  3. package/es/form/fields/Fields.module.css +1 -1
  4. package/es/form/fields/RadioField/RadioField.js +69 -6
  5. package/es/form/fields/RadioField/props/defaultProps.js +1 -0
  6. package/es/form/fields/RadioField/props/propTypes.js +3 -0
  7. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -4
  8. package/es/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  9. package/es/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
  10. package/es/list/DepartmentDropDown/props/defaultProps.js +1 -2
  11. package/es/list/DepartmentDropDown/props/propTypes.js +0 -3
  12. package/es/list/status/StatusListItem/StatusListItem.module.css +5 -35
  13. package/es/v1/form/fields/RadioField/RadioField.js +3 -2
  14. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -4
  15. package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  16. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
  17. package/es/v1/list/DepartmentDropDown/props/defaultProps.js +1 -2
  18. package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -3
  19. package/lib/form/fields/Fields.module.css +1 -1
  20. package/lib/form/fields/RadioField/RadioField.js +100 -31
  21. package/lib/form/fields/RadioField/props/defaultProps.js +1 -0
  22. package/lib/form/fields/RadioField/props/propTypes.js +3 -0
  23. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -5
  24. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  25. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
  26. package/lib/list/DepartmentDropDown/props/defaultProps.js +1 -2
  27. package/lib/list/DepartmentDropDown/props/propTypes.js +0 -2
  28. package/lib/list/status/StatusListItem/StatusListItem.module.css +5 -35
  29. package/lib/v1/form/fields/RadioField/RadioField.js +3 -2
  30. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -5
  31. package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  32. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
  33. package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +1 -2
  34. package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -2
  35. package/package.json +6 -6
  36. package/result.json +1 -1
  37. package/unittest/index.html +1 -1
@@ -29,6 +29,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
29
29
 
30
30
  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; }
31
31
 
32
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
33
+
34
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35
+
36
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
37
+
32
38
  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); }
33
39
 
34
40
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -62,45 +68,98 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
62
68
  _classCallCheck(this, RadioField);
63
69
 
64
70
  _this = _super.call(this, props);
71
+ _this.data = {
72
+ radios: {},
73
+ focus: _this.handleFocus
74
+ };
65
75
  _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
76
+ _this.updateData = _this.updateData.bind(_assertThisInitialized(_this));
77
+ _this.handleFocus = _this.handleFocus.bind(_assertThisInitialized(_this));
66
78
  return _this;
67
79
  }
68
80
 
69
81
  _createClass(RadioField, [{
82
+ key: "componentDidMount",
83
+ value: function componentDidMount() {
84
+ var _this$props = this.props,
85
+ getRef = _this$props.getRef,
86
+ id = _this$props.id;
87
+ getRef && getRef(this.data, id);
88
+ }
89
+ }, {
90
+ key: "componentDidUpdate",
91
+ value: function componentDidUpdate(prevProps) {
92
+ var _this$props2 = this.props,
93
+ getRef = _this$props2.getRef,
94
+ id = _this$props2.id;
95
+
96
+ if (getRef !== prevProps.getRef) {
97
+ getRef && getRef(this.data, id);
98
+ }
99
+ }
100
+ }, {
101
+ key: "componentWillUnmount",
102
+ value: function componentWillUnmount() {
103
+ var _this$props3 = this.props,
104
+ getRef = _this$props3.getRef,
105
+ id = _this$props3.id;
106
+ getRef && getRef(null, id);
107
+ }
108
+ }, {
70
109
  key: "handleChange",
71
110
  value: function handleChange(value) {
72
- var _this$props = this.props,
73
- id = _this$props.id,
74
- onChange = _this$props.onChange;
111
+ var _this$props4 = this.props,
112
+ id = _this$props4.id,
113
+ onChange = _this$props4.onChange;
75
114
  onChange && onChange(id, value);
76
115
  }
116
+ }, {
117
+ key: "updateData",
118
+ value: function updateData(ele, val) {
119
+ this.data.radios[val] = ele;
120
+ }
121
+ }, {
122
+ key: "handleFocus",
123
+ value: function handleFocus() {
124
+ var _this$props5 = this.props,
125
+ selectedValue = _this$props5.selectedValue,
126
+ options = _this$props5.options;
127
+ var firstRadioValue = options[0].value;
128
+
129
+ if (selectedValue) {
130
+ this.data.radios[selectedValue].focus();
131
+ } else {
132
+ this.data.radios[firstRadioValue].focus();
133
+ }
134
+ }
77
135
  }, {
78
136
  key: "render",
79
137
  value: function render() {
80
138
  var _this2 = this;
81
139
 
82
- var _this$props2 = this.props,
83
- labelName = _this$props2.labelName,
84
- id = _this$props2.id,
85
- isMandatory = _this$props2.isMandatory,
86
- options = _this$props2.options,
87
- validationMessage = _this$props2.validationMessage,
88
- validationPalette = _this$props2.validationPalette,
89
- errorType = _this$props2.errorType,
90
- isDisabled = _this$props2.isDisabled,
91
- title = _this$props2.title,
92
- labelPalette = _this$props2.labelPalette,
93
- labelSize = _this$props2.labelSize,
94
- size = _this$props2.size,
95
- selectedValue = _this$props2.selectedValue,
96
- isActive = _this$props2.isActive,
97
- dataId = _this$props2.dataId,
98
- dataSelectorId = _this$props2.dataSelectorId,
99
- validationRuleMessage = _this$props2.validationRuleMessage,
100
- validationRulePalette = _this$props2.validationRulePalette,
101
- isReadOnly = _this$props2.isReadOnly,
102
- variant = _this$props2.variant,
103
- customProps = _this$props2.customProps;
140
+ var _this$props6 = this.props,
141
+ labelName = _this$props6.labelName,
142
+ id = _this$props6.id,
143
+ isMandatory = _this$props6.isMandatory,
144
+ options = _this$props6.options,
145
+ validationMessage = _this$props6.validationMessage,
146
+ validationPalette = _this$props6.validationPalette,
147
+ errorType = _this$props6.errorType,
148
+ isDisabled = _this$props6.isDisabled,
149
+ title = _this$props6.title,
150
+ labelPalette = _this$props6.labelPalette,
151
+ labelSize = _this$props6.labelSize,
152
+ size = _this$props6.size,
153
+ selectedValue = _this$props6.selectedValue,
154
+ isActive = _this$props6.isActive,
155
+ dataId = _this$props6.dataId,
156
+ dataSelectorId = _this$props6.dataSelectorId,
157
+ validationRuleMessage = _this$props6.validationRuleMessage,
158
+ validationRulePalette = _this$props6.validationRulePalette,
159
+ isReadOnly = _this$props6.isReadOnly,
160
+ isBoxStyle = _this$props6.isBoxStyle,
161
+ variant = _this$props6.variant,
162
+ customProps = _this$props6.customProps;
104
163
  var _customProps$LabelPro = customProps.LabelProps,
105
164
  LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
106
165
  _customProps$RadioPro = customProps.RadioProps,
@@ -123,7 +182,7 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
123
182
  customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
124
183
  dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
125
184
  }, LabelProps)), /*#__PURE__*/_react["default"].createElement("div", {
126
- className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"].fieldMargin_medium : '', " ").concat(_FieldsModule["default"].radioContainer)
185
+ className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(isBoxStyle ? _FieldsModule["default"].radiosWrapper : '', " ").concat(labelName ? _FieldsModule["default"].fieldMargin_medium : '', " ").concat(_FieldsModule["default"].radioContainer)
127
186
  }, options.map(function (option, index) {
128
187
  var text = option.text,
129
188
  value = option.value,
@@ -131,9 +190,11 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
131
190
  disabled = _option$disabled === void 0 ? false : _option$disabled,
132
191
  tooltip = option.tooltip,
133
192
  infoTooltip = option.infoTooltip;
193
+ var isDisabledState = disabled || isDisabled;
194
+ var isChecked = selectedValue == value;
134
195
  return /*#__PURE__*/_react["default"].createElement("span", {
135
196
  key: index,
136
- className: "".concat(_FieldsModule["default"].radio)
197
+ className: "".concat(!isBoxStyle ? _FieldsModule["default"].radio : '', " ").concat(_FieldsModule["default"].radioWrap)
137
198
  }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], _extends({
138
199
  id: index,
139
200
  value: value,
@@ -141,17 +202,25 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
141
202
  text: text,
142
203
  labelPalette: labelPalette,
143
204
  labelSize: labelSize,
144
- active: isActive,
145
- disabled: disabled || isDisabled,
205
+ active: isActive || isBoxStyle && isChecked,
206
+ disabled: isDisabledState,
146
207
  disabledTitle: tooltip,
147
208
  title: tooltip,
148
209
  onChange: _this2.handleChange,
210
+ getRef: _this2.updateData,
149
211
  size: size,
150
- checked: selectedValue == value,
212
+ checked: isChecked,
151
213
  dataId: dataId,
152
214
  isReadOnly: isReadOnly,
153
215
  variant: variant
154
- }, RadioProps), !!infoTooltip ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], _extends({
216
+ }, RadioProps, {
217
+ a11y: _objectSpread({
218
+ tabIndex: !!selectedValue ? isChecked ? '0' : '-1' : index === 0 ? '0' : '-1'
219
+ }, RadioProps.a11y),
220
+ customClass: _objectSpread({
221
+ customRadioWrap: isBoxStyle ? "".concat(_FieldsModule["default"].radioBox, " ").concat(!isDisabledState ? _FieldsModule["default"].hoverableRadioBox : '', " ").concat(isChecked ? _FieldsModule["default"].radioBoxActive : '') : ''
222
+ }, RadioProps.customClass)
223
+ }), !!infoTooltip ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], _extends({
155
224
  name: "ZD-GN-info",
156
225
  size: "16",
157
226
  title: infoTooltip,
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.defaultProps = void 0;
7
7
  var defaultProps = {
8
8
  errorType: 'primary',
9
+ isBoxStyle: false,
9
10
  isMandatory: false,
10
11
  isDisabled: false,
11
12
  isReadOnly: false,
@@ -12,8 +12,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
12
12
  var propTypes = {
13
13
  dataId: _propTypes["default"].string,
14
14
  errorType: _propTypes["default"].oneOf(['primary', 'secondary']),
15
+ getRef: _propTypes["default"].func,
15
16
  id: _propTypes["default"].string,
16
17
  isActive: _propTypes["default"].bool,
18
+ isBoxStyle: _propTypes["default"].bool,
17
19
  isDisabled: _propTypes["default"].bool,
18
20
  isMandatory: _propTypes["default"].bool,
19
21
  isReadOnly: _propTypes["default"].bool,
@@ -33,6 +35,7 @@ var propTypes = {
33
35
  customProps: _propTypes["default"].shape({
34
36
  LabelProps: _propTypes["default"].object,
35
37
  RadioProps: _propTypes["default"].object,
38
+ InfoIconProps: _propTypes["default"].object,
36
39
  ValidationMessageProps1: _propTypes["default"].object,
37
40
  ValidationMessageProps2: _propTypes["default"].object
38
41
  }),
@@ -227,9 +227,7 @@ 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,
231
- _customProps$listProp = customProps.listProps,
232
- listProps = _customProps$listProp === void 0 ? {} : _customProps$listProp;
230
+ TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
233
231
  return /*#__PURE__*/_react["default"].createElement("div", {
234
232
  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),
235
233
  onClick: _General.stopBubbling,
@@ -338,7 +336,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
338
336
  var name = item.name,
339
337
  isNew = item.isNew,
340
338
  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"], _extends({
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"], {
342
340
  key: index,
343
341
  index: index,
344
342
  autoHover: true,
@@ -351,7 +349,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
351
349
  isDisabled: listDisabled,
352
350
  customProps: listItemProps,
353
351
  customClass: listItemClass
354
- }, listProps), isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
352
+ }, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
355
353
  alignBox: "row",
356
354
  align: "vertical"
357
355
  }, /*#__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
- listProps: _propTypes["default"].object
65
+ TagProps: _propTypes["default"].object
67
66
  })
68
67
  };
69
68
  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"], _extends({
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
- }, toggleDropDownProps));
141
+ });
147
142
  }
148
143
  }]);
149
144
 
@@ -9,7 +9,6 @@ var defaultProps = {
9
9
  isPopupActive: true,
10
10
  isNextOptions: false,
11
11
  searchStr: '',
12
- i18nKeys: {},
13
- customProps: {}
12
+ i18nKeys: {}
14
13
  };
15
14
  exports.defaultProps = defaultProps;
@@ -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;
@@ -6,58 +6,43 @@
6
6
  min-height: var(--zd_size35) ;
7
7
  cursor: pointer;
8
8
  }
9
-
10
9
  [dir=ltr] .withBorder {
11
10
  border-left: 1px solid var(--zdt_statuslistitem_default_border);
12
11
  }
13
-
14
12
  [dir=rtl] .withBorder {
15
13
  border-right: 1px solid var(--zdt_statuslistitem_default_border);
16
14
  }
17
-
18
15
  [dir=ltr] .small {
19
16
  padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5) ;
20
17
  }
21
-
22
18
  [dir=rtl] .small {
23
19
  padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3) ;
24
20
  }
25
-
26
21
  .medium {
27
22
  padding: var(--zd_size7) var(--zd_size20) ;
28
23
  }
29
-
30
24
  .large {
31
25
  height: var(--zd_size48) ;
32
26
  }
33
-
34
27
  [dir=ltr] .large {
35
28
  padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
36
29
  }
37
-
38
30
  [dir=rtl] .large {
39
31
  padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
40
32
  }
41
-
42
- .value,
43
- .multiLineValue {
33
+ .value,.multiLineValue {
44
34
  line-height: 1.5385;
45
35
  }
46
-
47
36
  .value {
48
37
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
49
38
  }
50
-
51
- .multiLineValue {
39
+ .multiLineValue{
52
40
  word-break: break-word;
53
- -webkit-line-clamp: 3;
54
41
  composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
55
42
  }
56
-
57
43
  [dir=ltr] .withBorder.active {
58
44
  border-left-color: var(--zdt_statuslistitem_default_active_border);
59
45
  }
60
-
61
46
  [dir=rtl] .withBorder.active {
62
47
  border-right-color: var(--zdt_statuslistitem_default_active_border);
63
48
  }
@@ -65,56 +50,44 @@
65
50
  .default.hover, .default.effect:hover {
66
51
  background-color: var(--zdt_statuslistitem_default_effect_bg);
67
52
  }
68
-
69
53
  .primary.hover, .primary.effect:hover, .selected {
70
54
  background-color: var(--zdt_statuslistitem_primary_efffect_bg);
71
55
  }
72
-
73
56
  .secondary.hover, .secondary.effect:hover {
74
57
  background-color: var(--zdt_statuslistitem_secondary_effect_bg);
75
58
  }
76
-
77
59
  .list.active.default, .list.active.primary {
78
60
  background-color: var(--zdt_statuslistitem_primary_efffect_bg);
79
61
  }
80
-
81
62
  .list.active.secondary {
82
63
  background-color: var(--zdt_statuslistitem_secondary_effect_bg);
83
64
  }
84
-
85
65
  .secondary.hover,
86
66
  .secondary.effect:hover,
87
67
  .list.active.secondary {
88
68
  color: var(--zdt_statuslistitem_secondary_effect_text);
89
69
  }
90
-
91
70
  .tickIcon {
92
71
  color: var(--zdt_statuslistitem_tickicon);
93
72
  position: absolute;
94
- top: 50% ;
73
+ top:50% ;
95
74
  transform: translateY(-50%);
96
75
  }
97
-
98
76
  [dir=ltr] .tickIcon {
99
77
  right: var(--zd_size20) ;
100
78
  }
101
-
102
79
  [dir=rtl] .tickIcon {
103
80
  left: var(--zd_size20) ;
104
81
  }
105
-
106
- .tickIcon>i {
82
+ .tickIcon > i {
107
83
  display: block;
108
84
  }
109
-
110
85
  [dir=ltr] .active.withTick {
111
86
  padding-right: var(--zd_size39) ;
112
87
  }
113
-
114
88
  [dir=rtl] .active.withTick {
115
89
  padding-left: var(--zd_size39) ;
116
90
  }
117
-
118
91
  /* Status Type */
119
92
  .statusType {
120
93
  width: var(--zd_size8) ;
@@ -127,15 +100,12 @@
127
100
  [dir=rtl] .statusType {
128
101
  margin-left: var(--zd_size13) ;
129
102
  }
130
-
131
103
  .black {
132
104
  background-color: var(--zdt_statuslistitem_black_bg);
133
105
  }
134
-
135
106
  .orange {
136
107
  background-color: var(--zdt_statuslistitem_orange_bg);
137
108
  }
138
-
139
109
  .green {
140
110
  background-color: var(--zdt_statuslistitem_green_bg);
141
- }
111
+ }
@@ -105,6 +105,7 @@ var RadioField = function RadioField(props) {
105
105
  disabled = _option$disabled === void 0 ? false : _option$disabled,
106
106
  tooltip = option.tooltip,
107
107
  infoTooltip = option.infoTooltip;
108
+ var isDisabledState = disabled || isDisabled;
108
109
  var isChecked = selectedValue == value;
109
110
  return /*#__PURE__*/_react["default"].createElement("span", {
110
111
  key: index,
@@ -117,7 +118,7 @@ var RadioField = function RadioField(props) {
117
118
  labelPalette: labelPalette,
118
119
  labelSize: labelSize,
119
120
  active: isActive || isBoxStyle && isChecked,
120
- disabled: disabled || isDisabled,
121
+ disabled: isDisabledState,
121
122
  disabledTitle: tooltip,
122
123
  title: tooltip,
123
124
  onChange: handleChange,
@@ -132,7 +133,7 @@ var RadioField = function RadioField(props) {
132
133
  tabIndex: !!selectedValue ? isChecked ? '0' : '-1' : index === 0 ? '0' : '-1'
133
134
  }, RadioProps.a11y),
134
135
  customClass: _objectSpread({
135
- customRadioWrap: "".concat(isBoxStyle ? _FieldsModule["default"].radioBox : '', " ").concat(isBoxStyle && isChecked ? _FieldsModule["default"].radioBoxActive : '')
136
+ customRadioWrap: isBoxStyle ? "".concat(_FieldsModule["default"].radioBox, " ").concat(!isDisabledState ? _FieldsModule["default"].hoverableRadioBox : '', " ").concat(isChecked ? _FieldsModule["default"].radioBoxActive : '') : ''
136
137
  }, RadioProps.customClass)
137
138
  }), !!infoTooltip ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], _extends({
138
139
  name: "ZD-GN-info",
@@ -227,9 +227,7 @@ 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,
231
- _customProps$listProp = customProps.listProps,
232
- listProps = _customProps$listProp === void 0 ? {} : _customProps$listProp;
230
+ TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
233
231
  return /*#__PURE__*/_react["default"].createElement("div", {
234
232
  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),
235
233
  onClick: _General.stopBubbling,
@@ -338,7 +336,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
338
336
  var name = item.name,
339
337
  isNew = item.isNew,
340
338
  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"], _extends({
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"], {
342
340
  key: index,
343
341
  index: index,
344
342
  autoHover: true,
@@ -351,7 +349,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
351
349
  isDisabled: listDisabled,
352
350
  customProps: listItemProps,
353
351
  customClass: listItemClass
354
- }, listProps), isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
352
+ }, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
355
353
  alignBox: "row",
356
354
  align: "vertical"
357
355
  }, /*#__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
- listProps: _propTypes["default"].object
65
+ TagProps: _propTypes["default"].object
67
66
  })
68
67
  };
69
68
  exports.propTypes = propTypes;
@@ -19,8 +19,6 @@ 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
-
24
22
  function DepartmentDropDown(props) {
25
23
  var departmentName = props.departmentName,
26
24
  _props$departmentList = props.departmentList,
@@ -37,10 +35,7 @@ function DepartmentDropDown(props) {
37
35
  searchStr = props.searchStr,
38
36
  i18nKeys = props.i18nKeys,
39
37
  onMoveDepartment = props.onMoveDepartment,
40
- getDepartment = props.getDepartment,
41
- customProps = props.customProps;
42
- var _customProps$toggleDr = customProps.toggleDropDownProps,
43
- toggleDropDownProps = _customProps$toggleDr === void 0 ? {} : _customProps$toggleDr;
38
+ getDepartment = props.getDepartment;
44
39
  var _i18nKeys$title = i18nKeys.title,
45
40
  title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
46
41
  _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
@@ -63,7 +58,7 @@ function DepartmentDropDown(props) {
63
58
  onMoveDepartment(deptId);
64
59
  }
65
60
 
66
- return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], _extends({
61
+ return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
67
62
  title: title,
68
63
  options: departmentList,
69
64
  value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
@@ -92,7 +87,7 @@ function DepartmentDropDown(props) {
92
87
  isNextOptions: isNextOptions,
93
88
  onSearch: onSearch,
94
89
  needSearchFetching: needSearchFetching
95
- }, toggleDropDownProps));
90
+ });
96
91
  }
97
92
 
98
93
  DepartmentDropDown.defaultProps = _defaultProps.defaultProps;
@@ -9,7 +9,6 @@ var defaultProps = {
9
9
  isPopupActive: true,
10
10
  isNextOptions: false,
11
11
  searchStr: '',
12
- i18nKeys: {},
13
- customProps: {}
12
+ i18nKeys: {}
14
13
  };
15
14
  exports.defaultProps = defaultProps;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-187.4",
3
+ "version": "1.0.0-temp-201",
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 && npm run css:review",
40
+ "prepublishOnly": "node prePublish.js && npm run css:review && npm run review:props",
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": "../components",
66
+ "@zohodesk/components": "1.2.50",
67
67
  "@zohodesk/hooks": "2.0.5",
68
- "@zohodesk/icons": "1.0.66",
68
+ "@zohodesk/icons": "1.0.67",
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.49",
80
- "@zohodesk/icons": "1.0.66",
79
+ "@zohodesk/components": "1.2.50",
80
+ "@zohodesk/icons": "1.0.67",
81
81
  "@zohodesk/svg": "1.1.22",
82
82
  "@zohodesk/virtualizer": "1.0.3",
83
83
  "react-sortable-hoc": "^0.8.3",