@zohodesk/dot 1.9.6 → 1.9.7

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 CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.9.7
6
+
7
+ - **Upload** => upload_overlay_bg color contrast fixed
8
+ - **DepartmentDropDown** Added DepartmentTextProps support under customProps
9
+
5
10
  # 1.9.5, # 1.9.6
6
11
 
7
12
  - **listCommon.module.css** A css active ignore comment has been added to fix the hover and click pseudo-class collision issue on iOS tablets.
@@ -427,7 +427,7 @@
427
427
 
428
428
  /* upload */
429
429
  --zdt_upload_default_bg:hsla(216, calc(var(--zd-saturation, 1) * 38.46%), calc(97.45% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
430
- --zdt_upload_overlay_bg:hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(0.00% + var(--zdc_default)), calc( 0.2 + var(--zdc_alpha_high)));
430
+ --zdt_upload_overlay_bg:hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 0.00%, 0.2);
431
431
  --zdt_upload_loader_default_bg:hsla(223, calc(var(--zd-saturation, 1) * 9.09%), calc(30.20% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
432
432
  --zdt_upload_attachsize_default_text:hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
433
433
  --zdt_upload_uploadclose_default_bg:hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
@@ -427,7 +427,7 @@
427
427
 
428
428
  /* upload */
429
429
  --zdt_upload_default_bg:hsla(216, calc(var(--zd-saturation, 1) * 38.46%), calc(97.45% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
430
- --zdt_upload_overlay_bg:hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(0.00% + var(--zdc_default)), calc( 0.2 + var(--zdc_alpha_high)));
430
+ --zdt_upload_overlay_bg:hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 0.00%, 0.2);
431
431
  --zdt_upload_loader_default_bg:hsla(223, calc(var(--zd-saturation, 1) * 9.09%), calc(30.20% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
432
432
  --zdt_upload_attachsize_default_text:hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
433
433
  --zdt_upload_uploadclose_default_bg:hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
@@ -427,7 +427,7 @@
427
427
 
428
428
  /* upload */
429
429
  --zdt_upload_default_bg:hsla(216, calc(var(--zd-saturation, 1) * 38.46%), calc(97.45% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
430
- --zdt_upload_overlay_bg:hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(0.00% + var(--zdc_default)), calc( 0.2 + var(--zdc_alpha_high)));
430
+ --zdt_upload_overlay_bg:hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 0.00%, 0.2);
431
431
  --zdt_upload_loader_default_bg:hsla(223, calc(var(--zd-saturation, 1) * 9.09%), calc(30.20% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
432
432
  --zdt_upload_attachsize_default_text:hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
433
433
  --zdt_upload_uploadclose_default_bg:hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
@@ -54,7 +54,8 @@ class DepartmentDropDown extends Component {
54
54
  customProps
55
55
  } = this.props;
56
56
  const {
57
- ToggleDropDownProps = {}
57
+ ToggleDropDownProps = {},
58
+ DepartmentTextProps = {}
58
59
  } = customProps;
59
60
  let {
60
61
  title = 'Move Department',
@@ -73,10 +74,10 @@ class DepartmentDropDown extends Component {
73
74
  }, ToggleDropDownProps, {
74
75
  title: title,
75
76
  options: departmentList,
76
- value: /*#__PURE__*/React.createElement(DepartmentText, {
77
+ value: /*#__PURE__*/React.createElement(DepartmentText, _extends({}, DepartmentTextProps, {
77
78
  text: departmentName,
78
79
  dataTitle: departmentName
79
- }),
80
+ })),
80
81
  onClick: this.onMoveDepartment,
81
82
  isEditable: isEditable,
82
83
  onSelectLabel: onSelectLabel,
@@ -22,6 +22,7 @@ export const propTypes = {
22
22
  placeholder: PropTypes.string
23
23
  }),
24
24
  customProps: PropTypes.shape({
25
- ToggleDropDownProps: PropTypes.object
25
+ ToggleDropDownProps: PropTypes.object,
26
+ DepartmentTextProps: PropTypes.object
26
27
  })
27
28
  };
@@ -105,7 +105,9 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
105
105
  i18nKeys = _this$props3.i18nKeys,
106
106
  customProps = _this$props3.customProps;
107
107
  var _customProps$ToggleDr = customProps.ToggleDropDownProps,
108
- ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr;
108
+ ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr,
109
+ _customProps$Departme = customProps.DepartmentTextProps,
110
+ DepartmentTextProps = _customProps$Departme === void 0 ? {} : _customProps$Departme;
109
111
  var _i18nKeys$title = i18nKeys.title,
110
112
  title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
111
113
  _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
@@ -125,10 +127,10 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
125
127
  }, ToggleDropDownProps, {
126
128
  title: title,
127
129
  options: departmentList,
128
- value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
130
+ value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, _extends({}, DepartmentTextProps, {
129
131
  text: departmentName,
130
132
  dataTitle: departmentName
131
- }),
133
+ })),
132
134
  onClick: this.onMoveDepartment,
133
135
  isEditable: isEditable,
134
136
  onSelectLabel: onSelectLabel,
@@ -32,6 +32,7 @@ var propTypes = (_propTypes = {
32
32
  searchErrorText: _propTypes2["default"].string,
33
33
  placeholder: _propTypes2["default"].string
34
34
  })), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
35
- ToggleDropDownProps: _propTypes2["default"].object
35
+ ToggleDropDownProps: _propTypes2["default"].object,
36
+ DepartmentTextProps: _propTypes2["default"].object
36
37
  })), _propTypes);
37
38
  exports.propTypes = propTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -68,26 +68,26 @@
68
68
  "@zohodesk-private/node-plugins": "1.1.13",
69
69
  "@zohodesk-private/react-prop-validator": "1.2.3",
70
70
  "@zohodesk/a11y": "2.3.8",
71
- "@zohodesk/components": "1.6.3",
71
+ "@zohodesk/components": "1.6.5",
72
72
  "@zohodesk/hooks": "2.0.8",
73
- "@zohodesk/icons": "1.2.4",
73
+ "@zohodesk/icons": "1.2.8",
74
74
  "@zohodesk/layout": "^3.1.0",
75
- "@zohodesk/svg": "1.3.2",
75
+ "@zohodesk/svg": "1.3.3",
76
76
  "@zohodesk/utils": "1.3.16",
77
77
  "@zohodesk/variables": "1.2.0",
78
78
  "@zohodesk/virtualizer": "1.0.13",
79
79
  "react-sortable-hoc": "^0.8.3",
80
80
  "velocity-react": "1.4.3",
81
- "@zohodesk/dotkit": "1.0.7",
81
+ "@zohodesk/dotkit": "1.0.9",
82
82
  "@zohodesk/react-cli": "1.1.27",
83
83
  "@zohodesk/client_build_tool": "0.0.20"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "velocity-react": "1.4.3",
87
87
  "@zohodesk/variables": "1.2.0",
88
- "@zohodesk/components": "1.6.3",
89
- "@zohodesk/icons": "1.2.4",
90
- "@zohodesk/svg": "1.3.2",
88
+ "@zohodesk/components": "1.6.5",
89
+ "@zohodesk/icons": "1.2.8",
90
+ "@zohodesk/svg": "1.3.3",
91
91
  "@zohodesk/virtualizer": "1.0.13",
92
92
  "react-sortable-hoc": "^0.8.3",
93
93
  "@zohodesk/hooks": "2.0.8",