@zohodesk/components 1.0.0-temp-49 → 1.0.0-temp-50
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 +4 -0
- package/es/Avatar/Avatar.js +1 -1
- package/es/Button/Button.js +5 -10
- package/es/ListItem/ListItem.js +58 -37
- package/es/ListItem/ListItem.module.css +11 -0
- package/es/ListItem/ListItemWithAvatar.js +74 -53
- package/es/ListItem/ListItemWithCheckBox.js +54 -33
- package/es/ListItem/ListItemWithIcon.js +66 -45
- package/es/ListItem/ListItemWithRadio.js +55 -34
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/es/MultiSelect/MultiSelect.js +1 -1
- package/es/MultiSelect/MultiSelectWithAvatar.js +1 -1
- package/es/Responsive/sizeObservers.js +8 -1
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/Select.js +1 -1
- package/es/Select/SelectWithAvatar.js +1 -1
- package/es/Select/SelectWithIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/lib/Avatar/Avatar.js +1 -1
- package/lib/Button/Button.js +5 -10
- package/lib/ListItem/ListItem.js +58 -37
- package/lib/ListItem/ListItem.module.css +11 -0
- package/lib/ListItem/ListItemWithAvatar.js +74 -53
- package/lib/ListItem/ListItemWithCheckBox.js +54 -33
- package/lib/ListItem/ListItemWithIcon.js +66 -45
- package/lib/ListItem/ListItemWithRadio.js +55 -34
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/lib/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/lib/MultiSelect/MultiSelect.js +1 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -1
- package/lib/Responsive/sizeObservers.js +8 -1
- package/lib/Select/GroupSelect.js +1 -1
- package/lib/Select/Select.js +1 -1
- package/lib/Select/SelectWithAvatar.js +1 -1
- package/lib/Select/SelectWithIcon.js +1 -1
- package/lib/TextBoxIcon/TextBoxIcon.js +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,8 @@ var _Layout = require("../Layout");
|
|
|
19
19
|
|
|
20
20
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
21
|
|
|
22
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -57,6 +59,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
57
59
|
_this.onClick = _this.onClick.bind(_assertThisInitialized(_this));
|
|
58
60
|
_this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
|
|
59
61
|
_this.onHover = _this.onHover.bind(_assertThisInitialized(_this));
|
|
62
|
+
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
60
63
|
return _this;
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -89,9 +92,21 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
89
92
|
index = _this$props3.index;
|
|
90
93
|
onHover && onHover(id, value, index, e);
|
|
91
94
|
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "responsiveFunc",
|
|
97
|
+
value: function responsiveFunc(_ref) {
|
|
98
|
+
var mediaQueryOR = _ref.mediaQueryOR;
|
|
99
|
+
return {
|
|
100
|
+
mobileToTab: mediaQueryOR([{
|
|
101
|
+
maxWidth: 700
|
|
102
|
+
}])
|
|
103
|
+
};
|
|
104
|
+
}
|
|
92
105
|
}, {
|
|
93
106
|
key: "render",
|
|
94
107
|
value: function render() {
|
|
108
|
+
var _this2 = this;
|
|
109
|
+
|
|
95
110
|
var _this$props4 = this.props,
|
|
96
111
|
size = _this$props4.size,
|
|
97
112
|
active = _this$props4.active,
|
|
@@ -117,39 +132,45 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
117
132
|
customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
|
|
118
133
|
_customClass$customLa = customClass.customLabel,
|
|
119
134
|
customLabel = _customClass$customLa === void 0 ? '' : _customClass$customLa;
|
|
120
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
135
|
+
return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
136
|
+
query: this.responsiveFunc,
|
|
137
|
+
responsiveId: "Helmet"
|
|
138
|
+
}, function (_ref2) {
|
|
139
|
+
var mobileToTab = _ref2.mobileToTab;
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
141
|
+
a11y: a11y,
|
|
142
|
+
size: size,
|
|
143
|
+
palette: palette,
|
|
144
|
+
highlight: highlight,
|
|
145
|
+
isDisabled: isDisabled,
|
|
146
|
+
active: active,
|
|
147
|
+
autoHover: autoHover,
|
|
148
|
+
customClass: "".concat(customListItem, " ").concat(mobileToTab && _ListItemModule["default"].responsiveHeight),
|
|
149
|
+
dataId: "".concat(dataId ? dataId : value, "_ListItemWithCheckBox"),
|
|
150
|
+
onClick: _this2.onClick,
|
|
151
|
+
onMouseOver: _this2.onHover,
|
|
152
|
+
eleRef: _this2.getRef,
|
|
153
|
+
disableTitle: disableTitle,
|
|
154
|
+
title: null,
|
|
155
|
+
customProps: ListItemProps
|
|
156
|
+
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
157
|
+
className: _ListItemModule["default"].iconBox
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
|
|
159
|
+
checked: checked,
|
|
160
|
+
a11y: {
|
|
161
|
+
ariaHidden: true
|
|
162
|
+
},
|
|
163
|
+
customClass: {
|
|
164
|
+
customCheckBox: customCheckBox,
|
|
165
|
+
customLabel: customLabel
|
|
166
|
+
}
|
|
167
|
+
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
168
|
+
flexible: true,
|
|
169
|
+
shrink: true,
|
|
170
|
+
"data-title": isDisabled ? null : title,
|
|
171
|
+
className: _ListItemModule["default"].value
|
|
172
|
+
}, value));
|
|
173
|
+
});
|
|
153
174
|
}
|
|
154
175
|
}]);
|
|
155
176
|
|
|
@@ -17,6 +17,8 @@ var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
|
17
17
|
|
|
18
18
|
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
19
19
|
|
|
20
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
21
|
+
|
|
20
22
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -57,6 +59,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
57
59
|
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
58
60
|
_this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
|
|
59
61
|
_this.handleMouseEnter = _this.handleMouseEnter.bind(_assertThisInitialized(_this));
|
|
62
|
+
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
60
63
|
return _this;
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -90,9 +93,21 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
90
93
|
index = _this$props3.index;
|
|
91
94
|
onMouseEnter && onMouseEnter(id, value, index, e);
|
|
92
95
|
}
|
|
96
|
+
}, {
|
|
97
|
+
key: "responsiveFunc",
|
|
98
|
+
value: function responsiveFunc(_ref) {
|
|
99
|
+
var mediaQueryOR = _ref.mediaQueryOR;
|
|
100
|
+
return {
|
|
101
|
+
mobileToTab: mediaQueryOR([{
|
|
102
|
+
maxWidth: 700
|
|
103
|
+
}])
|
|
104
|
+
};
|
|
105
|
+
}
|
|
93
106
|
}, {
|
|
94
107
|
key: "render",
|
|
95
108
|
value: function render() {
|
|
109
|
+
var _this2 = this;
|
|
110
|
+
|
|
96
111
|
var _this$props4 = this.props,
|
|
97
112
|
size = _this$props4.size,
|
|
98
113
|
active = _this$props4.active,
|
|
@@ -122,51 +137,57 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
122
137
|
var _a11y$ariaHidden = a11y.ariaHidden,
|
|
123
138
|
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
124
139
|
var dataIdString = dataId ? "".concat(dataId.replace("'", '_')) : value.toLowerCase().replace("'", '_');
|
|
125
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
141
|
+
query: this.responsiveFunc,
|
|
142
|
+
responsiveId: "Helmet"
|
|
143
|
+
}, function (_ref2) {
|
|
144
|
+
var mobileToTab = _ref2.mobileToTab;
|
|
145
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
146
|
+
a11y: a11y,
|
|
147
|
+
size: size,
|
|
148
|
+
palette: palette,
|
|
149
|
+
highlight: highlight,
|
|
150
|
+
isDisabled: isDisabled,
|
|
151
|
+
active: active,
|
|
152
|
+
autoHover: autoHover,
|
|
153
|
+
needTick: needTick,
|
|
154
|
+
needBorder: needBorder,
|
|
155
|
+
customClass: "".concat(customListItem, " ").concat(mobileToTab && _ListItemModule["default"].responsiveHeight),
|
|
156
|
+
dataId: dataIdString,
|
|
157
|
+
isLink: isLink,
|
|
158
|
+
href: href,
|
|
159
|
+
target: target,
|
|
160
|
+
onClick: _this2.handleClick,
|
|
161
|
+
onMouseOver: _this2.handleMouseEnter,
|
|
162
|
+
eleRef: _this2.getRef,
|
|
163
|
+
disableTitle: disableTitle,
|
|
164
|
+
title: null,
|
|
165
|
+
customProps: ListItemProps
|
|
166
|
+
}, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
167
|
+
"aria-hidden": true,
|
|
168
|
+
className: _ListItemModule["default"].iconBox,
|
|
169
|
+
dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
|
|
170
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
171
|
+
iconClass: iconClass,
|
|
172
|
+
name: iconName,
|
|
173
|
+
size: iconSize
|
|
174
|
+
})), iconClass && !iconName ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
175
|
+
className: iconClass
|
|
176
|
+
}) : null, value && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
177
|
+
flexible: true,
|
|
178
|
+
shrink: true,
|
|
179
|
+
className: _ListItemModule["default"].value,
|
|
180
|
+
"data-title": isDisabled ? null : title,
|
|
181
|
+
dataId: "".concat(dataIdString, "_Text")
|
|
182
|
+
}, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
183
|
+
className: _ListItemModule["default"].tickIcon,
|
|
184
|
+
"aria-hidden": ariaHidden,
|
|
185
|
+
dataId: "".concat(dataIdString, "_tickIcon")
|
|
186
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
187
|
+
name: "ZD-ticknew",
|
|
188
|
+
size: "8"
|
|
189
|
+
})) : null);
|
|
190
|
+
});
|
|
170
191
|
}
|
|
171
192
|
}]);
|
|
172
193
|
|
|
@@ -19,6 +19,8 @@ var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
|
19
19
|
|
|
20
20
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
21
|
|
|
22
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -57,6 +59,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
57
59
|
_this.onClick = _this.onClick.bind(_assertThisInitialized(_this));
|
|
58
60
|
_this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
|
|
59
61
|
_this.onHover = _this.onHover.bind(_assertThisInitialized(_this));
|
|
62
|
+
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
60
63
|
return _this;
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -89,9 +92,21 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
89
92
|
index = _this$props3.index;
|
|
90
93
|
onHover && onHover(id, value, index, e);
|
|
91
94
|
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "responsiveFunc",
|
|
97
|
+
value: function responsiveFunc(_ref) {
|
|
98
|
+
var mediaQueryOR = _ref.mediaQueryOR;
|
|
99
|
+
return {
|
|
100
|
+
mobileToTab: mediaQueryOR([{
|
|
101
|
+
maxWidth: 700
|
|
102
|
+
}])
|
|
103
|
+
};
|
|
104
|
+
}
|
|
92
105
|
}, {
|
|
93
106
|
key: "render",
|
|
94
107
|
value: function render() {
|
|
108
|
+
var _this2 = this;
|
|
109
|
+
|
|
95
110
|
var _this$props4 = this.props,
|
|
96
111
|
size = _this$props4.size,
|
|
97
112
|
active = _this$props4.active,
|
|
@@ -118,40 +133,46 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
118
133
|
customRadio = _customClass$customRa === void 0 ? '' : _customClass$customRa,
|
|
119
134
|
_customClass$customRa2 = customClass.customRadioWrap,
|
|
120
135
|
customRadioWrap = _customClass$customRa2 === void 0 ? '' : _customClass$customRa2;
|
|
121
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
136
|
+
return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
137
|
+
query: this.responsiveFunc,
|
|
138
|
+
responsiveId: "Helmet"
|
|
139
|
+
}, function (_ref2) {
|
|
140
|
+
var mobileToTab = _ref2.mobileToTab;
|
|
141
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
142
|
+
a11y: a11y,
|
|
143
|
+
size: size,
|
|
144
|
+
palette: palette,
|
|
145
|
+
highlight: highlight,
|
|
146
|
+
isDisabled: isDisabled,
|
|
147
|
+
active: active,
|
|
148
|
+
autoHover: autoHover,
|
|
149
|
+
customClass: "".concat(customListItem, " ").concat(mobileToTab && _ListItemModule["default"].responsiveHeight),
|
|
150
|
+
dataId: dataId,
|
|
151
|
+
onClick: _this2.onClick,
|
|
152
|
+
onMouseOver: _this2.onHover,
|
|
153
|
+
eleRef: _this2.getRef,
|
|
154
|
+
disableTitle: disableTitle,
|
|
155
|
+
title: null,
|
|
156
|
+
customProps: ListItemProps
|
|
157
|
+
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
158
|
+
className: _ListItemModule["default"].iconBox
|
|
159
|
+
}, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
160
|
+
checked: checked,
|
|
161
|
+
id: id,
|
|
162
|
+
a11y: {
|
|
163
|
+
ariaHidden: true
|
|
164
|
+
},
|
|
165
|
+
customClass: {
|
|
166
|
+
customRadio: customRadio,
|
|
167
|
+
customRadioWrap: customRadioWrap
|
|
168
|
+
}
|
|
169
|
+
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
170
|
+
flexible: true,
|
|
171
|
+
shrink: true,
|
|
172
|
+
"data-title": disableTitle ? null : title,
|
|
173
|
+
className: _ListItemModule["default"].value
|
|
174
|
+
}, value));
|
|
175
|
+
});
|
|
155
176
|
}
|
|
156
177
|
}]);
|
|
157
178
|
|
|
@@ -976,7 +976,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
976
976
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
977
977
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
978
978
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
979
|
-
"data-title": isDisabled ? title :
|
|
979
|
+
"data-title": isDisabled ? title : null,
|
|
980
980
|
onClick: this.handleInputFocus
|
|
981
981
|
}, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
982
982
|
align: "vertical",
|
|
@@ -456,7 +456,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
456
456
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
457
457
|
className: "".concat(_AdvancedMultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _AdvancedMultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _AdvancedMultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _AdvancedMultiSelectModule["default"].effect : ''),
|
|
458
458
|
"data-id": dataIdMultiSelectComp,
|
|
459
|
-
"data-title": isDisabled ? title :
|
|
459
|
+
"data-title": isDisabled ? title : null,
|
|
460
460
|
onClick: this.handleInputFocus
|
|
461
461
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
462
462
|
align: "vertical",
|
|
@@ -980,7 +980,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
980
980
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
981
981
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
982
982
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
983
|
-
"data-title": isDisabled ? title :
|
|
983
|
+
"data-title": isDisabled ? title : null,
|
|
984
984
|
onClick: this.handleInputFocus
|
|
985
985
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
986
986
|
align: "vertical",
|
|
@@ -168,7 +168,7 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
168
168
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
169
|
className: " ".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
170
170
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
171
|
-
"data-title": isDisabled ? title :
|
|
171
|
+
"data-title": isDisabled ? title : null,
|
|
172
172
|
onClick: this.handleInputFocus
|
|
173
173
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
174
174
|
align: "vertical",
|
|
@@ -62,7 +62,14 @@ function rangeCheck(minValue, maxValue, screenValue) {
|
|
|
62
62
|
return minValue <= screenValue && maxValue >= screenValue;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
function isTouchDeviceFunc() {
|
|
66
|
+
// return window.matchMedia("(pointer: coarse)").matches
|
|
67
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
68
|
+
} // export const isTouchDevice =
|
|
69
|
+
// 'ontouchstart' in window && navigator.userAgent.match(/mobi/i) ? true : false;
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
var isTouchDevice = isTouchDeviceFunc();
|
|
66
73
|
exports.isTouchDevice = isTouchDevice;
|
|
67
74
|
|
|
68
75
|
function isBreackPointMatched(object, screen) {
|
|
@@ -669,7 +669,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
669
669
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
670
670
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : '', " ").concat(iconOnHover && (isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverStyle : ''),
|
|
671
671
|
"data-id": dataIdSlctComp,
|
|
672
|
-
"data-title": isDisabled ? title :
|
|
672
|
+
"data-title": isDisabled ? title : null
|
|
673
673
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
674
674
|
className: "".concat(className ? className : ''),
|
|
675
675
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
package/lib/Select/Select.js
CHANGED
|
@@ -778,7 +778,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
778
778
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
779
779
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
780
780
|
className: "".concat(isParentBased || isReadOnly || isDisabled ? _SelectModule["default"].container : '', " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : '', " ").concat(iconOnHover && (isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverStyle : ''),
|
|
781
|
-
"data-title": isDisabled ? title :
|
|
781
|
+
"data-title": isDisabled ? title : null
|
|
782
782
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
783
783
|
className: "".concat(className ? className : ''),
|
|
784
784
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
|
@@ -212,7 +212,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
212
212
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
213
213
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : '', " ").concat(className ? className : ''),
|
|
214
214
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
215
|
-
"data-title": isDisabled ? title :
|
|
215
|
+
"data-title": isDisabled ? title : null
|
|
216
216
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
217
217
|
align: "vertical",
|
|
218
218
|
alignBox: "row",
|
|
@@ -352,7 +352,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
352
352
|
var ariaErrorId = this.getNextAriaId();
|
|
353
353
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
354
354
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : ''),
|
|
355
|
-
"data-title": isDisabled ? title :
|
|
355
|
+
"data-title": isDisabled ? title : null
|
|
356
356
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
357
357
|
className: "".concat(className ? className : ''),
|
|
358
358
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
|
@@ -145,7 +145,7 @@ var TextBoxIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
145
145
|
alignBox: "row",
|
|
146
146
|
isCover: false,
|
|
147
147
|
className: "".concat(_TextBoxIconModule["default"].container, " ").concat(isDisabled ? _TextBoxIconModule["default"].disabled : isReadOnly ? needEffect ? _TextBoxIconModule["default"].effect : _TextBoxIconModule["default"].readonly : _TextBoxIconModule["default"].effect, " ").concat(isActive || isFocus ? _TextBoxIconModule["default"].effectFocused : '', " ").concat(customTBoxWrap, " ").concat(iconOnHover && (isReadOnly || isDisabled) ? _TextBoxIconModule["default"].iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? _TextBoxIconModule["default"].iconOnHoverStyle : ''),
|
|
148
|
-
"data-title": isDisabled ? title :
|
|
148
|
+
"data-title": isDisabled ? title : null
|
|
149
149
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
150
150
|
flexible: true
|
|
151
151
|
}, /*#__PURE__*/_react["default"].createElement(_TextBox["default"], _extends({}, this.props, {
|