@zohodesk/components 1.0.0-temp-221.1 → 1.0.0-temp-199.13
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/.cli/propValidation_report.html +1 -1
- package/es/ListItem/ListContainer.js +3 -2
- package/es/ListItem/ListItem.js +5 -3
- package/es/ListItem/ListItem.module.css +25 -2
- package/es/ListItem/ListItemWithAvatar.js +10 -4
- package/es/ListItem/ListItemWithCheckBox.js +9 -3
- package/es/ListItem/ListItemWithIcon.js +11 -4
- package/es/ListItem/ListItemWithRadio.js +9 -3
- package/es/ListItem/props/defaultProps.js +12 -6
- package/es/ListItem/props/propTypes.js +7 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
- package/es/MultiSelect/MultiSelect.js +7 -2
- package/es/MultiSelect/Suggestions.js +9 -2
- package/es/MultiSelect/props/defaultProps.js +4 -1
- package/es/MultiSelect/props/propTypes.js +11 -3
- package/es/Select/GroupSelect.js +5 -1
- package/es/Select/SelectWithAvatar.js +7 -2
- package/es/Select/SelectWithIcon.js +4 -2
- package/es/Select/props/defaultProps.js +2 -1
- package/es/Select/props/propTypes.js +8 -3
- package/es/common/common.module.css +5 -0
- package/lib/ListItem/ListContainer.js +3 -2
- package/lib/ListItem/ListItem.js +5 -3
- package/lib/ListItem/ListItem.module.css +25 -2
- package/lib/ListItem/ListItemWithAvatar.js +10 -4
- package/lib/ListItem/ListItemWithCheckBox.js +9 -3
- package/lib/ListItem/ListItemWithIcon.js +11 -4
- package/lib/ListItem/ListItemWithRadio.js +9 -3
- package/lib/ListItem/props/defaultProps.js +12 -6
- package/lib/ListItem/props/propTypes.js +7 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelect.js +6 -3
- package/lib/MultiSelect/Suggestions.js +9 -3
- package/lib/MultiSelect/props/defaultProps.js +4 -1
- package/lib/MultiSelect/props/propTypes.js +10 -3
- package/lib/Select/GroupSelect.js +4 -2
- package/lib/Select/SelectWithAvatar.js +8 -3
- package/lib/Select/SelectWithIcon.js +5 -3
- package/lib/Select/props/defaultProps.js +2 -1
- package/lib/Select/props/propTypes.js +8 -3
- package/lib/common/common.module.css +5 -0
- package/package.json +2 -2
- package/result.json +1 -1
- package/assets/Appearance/dark/mode/Component_v2_DarkMode.module.css +0 -4
- package/assets/Appearance/light/mode/Component_v2_LightMode.module.css +0 -4
- package/assets/Appearance/pureDark/mode/Component_v2_PureDarkMode.module.css +0 -4
- package/es/components-v2/Label/Label.js +0 -86
- package/es/components-v2/Label/css/Label_v2.module.css +0 -41
- package/es/components-v2/Label/css/cssJSLogic.js +0 -27
- package/es/components-v2/Label/props/defaultProps.js +0 -8
- package/es/components-v2/Label/props/propTypes.js +0 -26
- package/lib/components-v2/Label/Label.js +0 -104
- package/lib/components-v2/Label/css/Label_v2.module.css +0 -41
- package/lib/components-v2/Label/css/cssJSLogic.js +0 -30
- package/lib/components-v2/Label/props/defaultProps.js +0 -15
- package/lib/components-v2/Label/props/propTypes.js +0 -37
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -122,7 +122,8 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
122
122
|
a11y = _this$props4.a11y,
|
|
123
123
|
customClass = _this$props4.customClass,
|
|
124
124
|
customProps = _this$props4.customProps,
|
|
125
|
-
needMultiLineText = _this$props4.needMultiLineText
|
|
125
|
+
needMultiLineText = _this$props4.needMultiLineText,
|
|
126
|
+
lhsBoxAlign = _this$props4.lhsBoxAlign;
|
|
126
127
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
127
128
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
128
129
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -150,7 +151,8 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
150
151
|
autoHover: autoHover,
|
|
151
152
|
needTick: needTick,
|
|
152
153
|
needBorder: needBorder,
|
|
153
|
-
customClass: customListItem,
|
|
154
|
+
customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
|
|
155
|
+
align: lhsBoxAlign,
|
|
154
156
|
dataId: dataIdString,
|
|
155
157
|
dataSelectorId: "".concat(dataSelectorId),
|
|
156
158
|
isLink: isLink,
|
|
@@ -171,7 +173,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
171
173
|
adjust: true,
|
|
172
174
|
className: _ListItemModule["default"].children
|
|
173
175
|
}, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
174
|
-
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
|
|
176
|
+
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : '', " ").concat(customTickIcon),
|
|
175
177
|
"aria-hidden": ariaHidden,
|
|
176
178
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
177
179
|
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
@@ -73,8 +73,7 @@
|
|
|
73
73
|
line-height: 1.5385;
|
|
74
74
|
}
|
|
75
75
|
.multiLineValue{
|
|
76
|
-
|
|
77
|
-
composes: clamp from '../common/common.module.css'
|
|
76
|
+
composes: lineClamp from '../common/common.module.css';
|
|
78
77
|
}
|
|
79
78
|
.iconBox {
|
|
80
79
|
width: var(--zd_size20) ;
|
|
@@ -86,6 +85,10 @@
|
|
|
86
85
|
[dir=rtl] .iconBox {
|
|
87
86
|
margin-left: var(--zd_size10) ;
|
|
88
87
|
}
|
|
88
|
+
.iconBoxTopAlign {
|
|
89
|
+
align-self: start;
|
|
90
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
91
|
+
}
|
|
89
92
|
.iconBox,
|
|
90
93
|
.leftAvatar {
|
|
91
94
|
font-size: 0 ;
|
|
@@ -93,6 +96,18 @@
|
|
|
93
96
|
.leftAvatar {
|
|
94
97
|
margin: var(--listitem_avatar_margin);
|
|
95
98
|
}
|
|
99
|
+
.smallIconBox {
|
|
100
|
+
/* Variable:Ignore */
|
|
101
|
+
height: var(--zd_font_size20);
|
|
102
|
+
}
|
|
103
|
+
.mediumIconBox {
|
|
104
|
+
/* Variable:Ignore */
|
|
105
|
+
height: var(--zd_font_size21);
|
|
106
|
+
}
|
|
107
|
+
.largeIconBox {
|
|
108
|
+
/* Variable:Ignore */
|
|
109
|
+
height: var(--zd_font_size28);
|
|
110
|
+
}
|
|
96
111
|
|
|
97
112
|
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
98
113
|
background-color: var(--listitem_highlight_bg_color);
|
|
@@ -197,9 +212,17 @@
|
|
|
197
212
|
[dir=rtl] .largewithTick {
|
|
198
213
|
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
|
|
199
214
|
}
|
|
215
|
+
.largeSizeContainer{
|
|
216
|
+
--listitem_height: auto;
|
|
217
|
+
--listitem_min_height: var(--zd_size48);
|
|
218
|
+
}
|
|
200
219
|
.responsiveHeight {
|
|
201
220
|
--listitem_min_height: var(--zd_size45);
|
|
202
221
|
font-size: var(--zd_font_size15) ;
|
|
203
222
|
padding-top: var(--zd_size10) ;
|
|
204
223
|
padding-bottom: var(--zd_size10) ;
|
|
205
224
|
}
|
|
225
|
+
.tickIconCenter {
|
|
226
|
+
top: 50% ;
|
|
227
|
+
transform: translateY(-50%);
|
|
228
|
+
}
|
|
@@ -128,7 +128,8 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
128
128
|
a11y = _this$props4.a11y,
|
|
129
129
|
customClass = _this$props4.customClass,
|
|
130
130
|
customProps = _this$props4.customProps,
|
|
131
|
-
needMultiLineText = _this$props4.needMultiLineText
|
|
131
|
+
needMultiLineText = _this$props4.needMultiLineText,
|
|
132
|
+
lhsBoxAlign = _this$props4.lhsBoxAlign;
|
|
132
133
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
133
134
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
134
135
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -152,6 +153,11 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
152
153
|
var ariaHidden = listA11y.ariaHidden;
|
|
153
154
|
var isDarkPalette = palette === 'dark';
|
|
154
155
|
var dataIdString = value ? value : dataId;
|
|
156
|
+
var sizeClassMap = {
|
|
157
|
+
small: _ListItemModule["default"].smallIconBox,
|
|
158
|
+
medium: _ListItemModule["default"].mediumIconBox,
|
|
159
|
+
large: _ListItemModule["default"].largeIconBox
|
|
160
|
+
};
|
|
155
161
|
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
156
162
|
a11y: listA11y,
|
|
157
163
|
size: size,
|
|
@@ -162,7 +168,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
162
168
|
autoHover: autoHover,
|
|
163
169
|
needTick: needTick,
|
|
164
170
|
needBorder: needBorder,
|
|
165
|
-
customClass: customListItem,
|
|
171
|
+
customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
|
|
166
172
|
dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
|
|
167
173
|
dataSelectorId: "".concat(dataSelectorId),
|
|
168
174
|
onClick: this.handleClick,
|
|
@@ -172,7 +178,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
172
178
|
title: null,
|
|
173
179
|
customProps: ListItemProps
|
|
174
180
|
}, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
175
|
-
className: _ListItemModule["default"].leftAvatar
|
|
181
|
+
className: " ".concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : '', " ").concat(_ListItemModule["default"].leftAvatar)
|
|
176
182
|
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], _extends({
|
|
177
183
|
name: name,
|
|
178
184
|
size: "small",
|
|
@@ -199,7 +205,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
199
205
|
"data-title": isDisabled ? null : title,
|
|
200
206
|
className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
|
|
201
207
|
}, value) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
202
|
-
className: _ListItemModule["default"].tickIcon,
|
|
208
|
+
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
|
|
203
209
|
"aria-hidden": ariaHidden,
|
|
204
210
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
205
211
|
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
@@ -116,7 +116,8 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
116
116
|
a11y = _this$props4.a11y,
|
|
117
117
|
customClass = _this$props4.customClass,
|
|
118
118
|
customProps = _this$props4.customProps,
|
|
119
|
-
needMultiLineText = _this$props4.needMultiLineText
|
|
119
|
+
needMultiLineText = _this$props4.needMultiLineText,
|
|
120
|
+
lhsBoxAlign = _this$props4.lhsBoxAlign;
|
|
120
121
|
|
|
121
122
|
var listA11y = _objectSpread({
|
|
122
123
|
role: 'option'
|
|
@@ -132,6 +133,11 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
132
133
|
customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
|
|
133
134
|
_customClass$customLa = customClass.customLabel,
|
|
134
135
|
customLabel = _customClass$customLa === void 0 ? '' : _customClass$customLa;
|
|
136
|
+
var sizeClassMap = {
|
|
137
|
+
small: _ListItemModule["default"].smallIconBox,
|
|
138
|
+
medium: _ListItemModule["default"].mediumIconBox,
|
|
139
|
+
large: _ListItemModule["default"].largeIconBox
|
|
140
|
+
};
|
|
135
141
|
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
136
142
|
a11y: listA11y,
|
|
137
143
|
size: size,
|
|
@@ -140,7 +146,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
140
146
|
isDisabled: isDisabled,
|
|
141
147
|
active: active,
|
|
142
148
|
autoHover: autoHover,
|
|
143
|
-
customClass: customListItem,
|
|
149
|
+
customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
|
|
144
150
|
dataId: "".concat(dataId ? dataId : value, "_ListItemWithCheckBox"),
|
|
145
151
|
dataSelectorId: dataSelectorId,
|
|
146
152
|
onClick: this.onClick,
|
|
@@ -150,7 +156,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
150
156
|
title: null,
|
|
151
157
|
customProps: ListItemProps
|
|
152
158
|
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
153
|
-
className: _ListItemModule["default"].iconBox,
|
|
159
|
+
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
|
|
154
160
|
dataId: "".concat(dataId ? dataId : value, "_checkBox")
|
|
155
161
|
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
|
|
156
162
|
checked: checked,
|
|
@@ -124,7 +124,8 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
124
124
|
a11y = _this$props4.a11y,
|
|
125
125
|
customClass = _this$props4.customClass,
|
|
126
126
|
customProps = _this$props4.customProps,
|
|
127
|
-
needMultiLineText = _this$props4.needMultiLineText
|
|
127
|
+
needMultiLineText = _this$props4.needMultiLineText,
|
|
128
|
+
lhsBoxAlign = _this$props4.lhsBoxAlign;
|
|
128
129
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
129
130
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
130
131
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -137,6 +138,11 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
137
138
|
|
|
138
139
|
var ariaHidden = listA11y.ariaHidden;
|
|
139
140
|
var dataIdString = dataId ? "".concat(dataId.replace("'", '_')) : value.toLowerCase().replace("'", '_');
|
|
141
|
+
var sizeClassMap = {
|
|
142
|
+
small: _ListItemModule["default"].smallIconBox,
|
|
143
|
+
medium: _ListItemModule["default"].mediumIconBox,
|
|
144
|
+
large: _ListItemModule["default"].largeIconBox
|
|
145
|
+
};
|
|
140
146
|
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
141
147
|
a11y: listA11y,
|
|
142
148
|
size: size,
|
|
@@ -147,7 +153,8 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
147
153
|
autoHover: autoHover,
|
|
148
154
|
needTick: needTick,
|
|
149
155
|
needBorder: needBorder,
|
|
150
|
-
customClass: customClass,
|
|
156
|
+
customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customClass),
|
|
157
|
+
align: needMultiLineText && iconClass && !iconName ? 'baseline' : 'vertical',
|
|
151
158
|
dataId: dataIdString,
|
|
152
159
|
dataSelectorId: dataSelectorId,
|
|
153
160
|
isLink: isLink,
|
|
@@ -161,7 +168,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
161
168
|
customProps: ListItemProps
|
|
162
169
|
}, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
163
170
|
"aria-hidden": true,
|
|
164
|
-
className: _ListItemModule["default"].iconBox,
|
|
171
|
+
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
|
|
165
172
|
dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
|
|
166
173
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
167
174
|
iconClass: iconClass,
|
|
@@ -176,7 +183,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
176
183
|
"data-title": isDisabled ? null : title,
|
|
177
184
|
dataId: "".concat(dataIdString, "_Text")
|
|
178
185
|
}, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
179
|
-
className: _ListItemModule["default"].tickIcon,
|
|
186
|
+
className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
|
|
180
187
|
"aria-hidden": ariaHidden,
|
|
181
188
|
dataId: "".concat(dataIdString, "_tickIcon"),
|
|
182
189
|
dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
|
|
@@ -117,7 +117,8 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
117
117
|
a11y = _this$props4.a11y,
|
|
118
118
|
customClass = _this$props4.customClass,
|
|
119
119
|
customProps = _this$props4.customProps,
|
|
120
|
-
needMultiLineText = _this$props4.needMultiLineText
|
|
120
|
+
needMultiLineText = _this$props4.needMultiLineText,
|
|
121
|
+
lhsBoxAlign = _this$props4.lhsBoxAlign;
|
|
121
122
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
122
123
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
123
124
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -133,6 +134,11 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
133
134
|
customRadio = _customClass$customRa === void 0 ? '' : _customClass$customRa,
|
|
134
135
|
_customClass$customRa2 = customClass.customRadioWrap,
|
|
135
136
|
customRadioWrap = _customClass$customRa2 === void 0 ? '' : _customClass$customRa2;
|
|
137
|
+
var sizeClassMap = {
|
|
138
|
+
small: _ListItemModule["default"].smallIconBox,
|
|
139
|
+
medium: _ListItemModule["default"].mediumIconBox,
|
|
140
|
+
large: _ListItemModule["default"].largeIconBox
|
|
141
|
+
};
|
|
136
142
|
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
137
143
|
a11y: listA11y,
|
|
138
144
|
size: size,
|
|
@@ -141,7 +147,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
141
147
|
isDisabled: isDisabled,
|
|
142
148
|
active: active,
|
|
143
149
|
autoHover: autoHover,
|
|
144
|
-
customClass: customListItem,
|
|
150
|
+
customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
|
|
145
151
|
dataId: dataId,
|
|
146
152
|
dataSelectorId: dataSelectorId,
|
|
147
153
|
onClick: this.onClick,
|
|
@@ -151,7 +157,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
151
157
|
title: null,
|
|
152
158
|
customProps: ListItemProps
|
|
153
159
|
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
154
|
-
className: _ListItemModule["default"].iconBox,
|
|
160
|
+
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
|
|
155
161
|
dataId: "".concat(dataId, "_radio")
|
|
156
162
|
}, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
157
163
|
checked: checked,
|
|
@@ -18,7 +18,8 @@ var ListContainerDefaultProps = {
|
|
|
18
18
|
customClass: '',
|
|
19
19
|
customProps: {},
|
|
20
20
|
dataSelectorId: 'listContainer',
|
|
21
|
-
needMultiLineText: false
|
|
21
|
+
needMultiLineText: false,
|
|
22
|
+
align: 'vertical'
|
|
22
23
|
};
|
|
23
24
|
exports.ListContainerDefaultProps = ListContainerDefaultProps;
|
|
24
25
|
var ListItemDefaultProps = {
|
|
@@ -36,7 +37,8 @@ var ListItemDefaultProps = {
|
|
|
36
37
|
customClass: {},
|
|
37
38
|
customProps: {},
|
|
38
39
|
dataSelectorId: 'listItem',
|
|
39
|
-
needMultiLineText: false
|
|
40
|
+
needMultiLineText: false,
|
|
41
|
+
lhsBoxAlign: 'baseline'
|
|
40
42
|
};
|
|
41
43
|
exports.ListItemDefaultProps = ListItemDefaultProps;
|
|
42
44
|
var ListItemWithAvatarDefaultProps = {
|
|
@@ -55,7 +57,8 @@ var ListItemWithAvatarDefaultProps = {
|
|
|
55
57
|
customClass: {},
|
|
56
58
|
customProps: {},
|
|
57
59
|
dataSelectorId: 'listItemWithAvatar',
|
|
58
|
-
needMultiLineText: false
|
|
60
|
+
needMultiLineText: false,
|
|
61
|
+
lhsBoxAlign: 'baseline'
|
|
59
62
|
};
|
|
60
63
|
exports.ListItemWithAvatarDefaultProps = ListItemWithAvatarDefaultProps;
|
|
61
64
|
var ListItemWithCheckBoxDefaultProps = {
|
|
@@ -70,7 +73,8 @@ var ListItemWithCheckBoxDefaultProps = {
|
|
|
70
73
|
customClass: {},
|
|
71
74
|
customProps: {},
|
|
72
75
|
dataSelectorId: 'listItemWithCheckBox',
|
|
73
|
-
needMultiLineText: false
|
|
76
|
+
needMultiLineText: false,
|
|
77
|
+
lhsBoxAlign: 'baseline'
|
|
74
78
|
};
|
|
75
79
|
exports.ListItemWithCheckBoxDefaultProps = ListItemWithCheckBoxDefaultProps;
|
|
76
80
|
var ListItemWithIconDefaultProps = {
|
|
@@ -88,7 +92,8 @@ var ListItemWithIconDefaultProps = {
|
|
|
88
92
|
customClass: '',
|
|
89
93
|
customProps: {},
|
|
90
94
|
dataSelectorId: 'listItemWithIcon',
|
|
91
|
-
needMultiLineText: false
|
|
95
|
+
needMultiLineText: false,
|
|
96
|
+
lhsBoxAlign: 'baseline'
|
|
92
97
|
};
|
|
93
98
|
exports.ListItemWithIconDefaultProps = ListItemWithIconDefaultProps;
|
|
94
99
|
var ListItemWithRadioDefaultProps = {
|
|
@@ -104,6 +109,7 @@ var ListItemWithRadioDefaultProps = {
|
|
|
104
109
|
customClass: {},
|
|
105
110
|
customProps: {},
|
|
106
111
|
dataSelectorId: 'listItemWithRadio',
|
|
107
|
-
needMultiLineText: false
|
|
112
|
+
needMultiLineText: false,
|
|
113
|
+
lhsBoxAlign: 'baseline'
|
|
108
114
|
};
|
|
109
115
|
exports.ListItemWithRadioDefaultProps = ListItemWithRadioDefaultProps;
|
|
@@ -43,7 +43,8 @@ var ListContainer_Props = {
|
|
|
43
43
|
}),
|
|
44
44
|
customClass: _propTypes["default"].string,
|
|
45
45
|
customProps: _propTypes["default"].object,
|
|
46
|
-
eleRef: _propTypes["default"].func
|
|
46
|
+
eleRef: _propTypes["default"].func,
|
|
47
|
+
align: _propTypes["default"].string
|
|
47
48
|
};
|
|
48
49
|
exports.ListContainer_Props = ListContainer_Props;
|
|
49
50
|
var ListItem_Props = {
|
|
@@ -74,6 +75,7 @@ var ListItem_Props = {
|
|
|
74
75
|
ariaSelected: _propTypes["default"].bool
|
|
75
76
|
}),
|
|
76
77
|
needMultiLineText: _propTypes["default"].bool,
|
|
78
|
+
lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
|
|
77
79
|
customClass: _propTypes["default"].shape({
|
|
78
80
|
customListItem: _propTypes["default"].string,
|
|
79
81
|
customTickIcon: _propTypes["default"].string
|
|
@@ -95,7 +97,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
|
|
|
95
97
|
customListItem: _propTypes["default"].string,
|
|
96
98
|
customAvatar: _propTypes["default"].string,
|
|
97
99
|
customAvatarTeam: _propTypes["default"].string
|
|
98
|
-
})), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
|
|
100
|
+
})), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "lhsBoxAlign", _propTypes["default"].oneOf(['baseline', 'vertical'])), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
|
|
99
101
|
ListItemProps: _propTypes["default"].object,
|
|
100
102
|
ContainerProps: _propTypes["default"].object,
|
|
101
103
|
AvatarTeamProps: _propTypes["default"].exact(_propTypes3.propTypes),
|
|
@@ -125,6 +127,7 @@ var ListItemWithCheckBox_Props = {
|
|
|
125
127
|
ariaSelected: _propTypes["default"].bool
|
|
126
128
|
}),
|
|
127
129
|
needMultiLineText: _propTypes["default"].bool,
|
|
130
|
+
lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
|
|
128
131
|
customClass: _propTypes["default"].shape({
|
|
129
132
|
customListItem: _propTypes["default"].string,
|
|
130
133
|
customCheckBox: _propTypes["default"].string,
|
|
@@ -161,6 +164,7 @@ var ListItemWithIcon_Props = {
|
|
|
161
164
|
ariaHidden: _propTypes["default"].bool
|
|
162
165
|
}),
|
|
163
166
|
needMultiLineText: _propTypes["default"].bool,
|
|
167
|
+
lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
|
|
164
168
|
customClass: _propTypes["default"].string,
|
|
165
169
|
customProps: _propTypes["default"].shape({
|
|
166
170
|
ListItemProps: _propTypes["default"].object
|
|
@@ -193,6 +197,7 @@ var ListItemWithRadio_Props = {
|
|
|
193
197
|
ariaSelected: _propTypes["default"].bool
|
|
194
198
|
}),
|
|
195
199
|
needMultiLineText: _propTypes["default"].bool,
|
|
200
|
+
lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
|
|
196
201
|
customClass: _propTypes["default"].shape({
|
|
197
202
|
customListItem: _propTypes["default"].string,
|
|
198
203
|
customRadio: _propTypes["default"].string,
|
|
@@ -53,6 +53,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
53
53
|
|
|
54
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
55
55
|
|
|
56
|
+
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); }
|
|
57
|
+
|
|
56
58
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
59
|
|
|
58
60
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -972,7 +974,10 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
972
974
|
needEffect = _this$props8.needEffect,
|
|
973
975
|
autoComplete = _this$props8.autoComplete,
|
|
974
976
|
getTargetRef = _this$props8.getTargetRef,
|
|
975
|
-
isFocus = _this$props8.isFocus
|
|
977
|
+
isFocus = _this$props8.isFocus,
|
|
978
|
+
customProps = _this$props8.customProps;
|
|
979
|
+
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
980
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
976
981
|
var _i18nKeys = i18nKeys,
|
|
977
982
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
978
983
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -1136,7 +1141,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1136
1141
|
a11y: {
|
|
1137
1142
|
role: 'heading'
|
|
1138
1143
|
}
|
|
1139
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1144
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1140
1145
|
suggestions: suggestions,
|
|
1141
1146
|
selectedOptions: selectedOptionIds,
|
|
1142
1147
|
getRef: _this5.suggestionItemRef,
|
|
@@ -1149,7 +1154,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1149
1154
|
role: 'option'
|
|
1150
1155
|
},
|
|
1151
1156
|
dataId: "".concat(dataId, "_Options")
|
|
1152
|
-
}));
|
|
1157
|
+
}, SuggestionsProps)));
|
|
1153
1158
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1154
1159
|
options: revampedGroups,
|
|
1155
1160
|
searchString: searchStr,
|
|
@@ -1093,7 +1093,10 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1093
1093
|
boxSize = _this$props15.boxSize,
|
|
1094
1094
|
isLoading = _this$props15.isLoading,
|
|
1095
1095
|
selectAllText = _this$props15.selectAllText,
|
|
1096
|
-
needSelectAll = _this$props15.needSelectAll
|
|
1096
|
+
needSelectAll = _this$props15.needSelectAll,
|
|
1097
|
+
customProps = _this$props15.customProps;
|
|
1098
|
+
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
1099
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
1097
1100
|
var _this$state9 = this.state,
|
|
1098
1101
|
selectedOptions = _this$state9.selectedOptions,
|
|
1099
1102
|
searchStr = _this$state9.searchStr,
|
|
@@ -1170,7 +1173,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1170
1173
|
eleRef: this.suggestionContainerRef
|
|
1171
1174
|
}, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1172
1175
|
className: _MultiSelectModule["default"][palette]
|
|
1173
|
-
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1176
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1174
1177
|
suggestions: suggestions,
|
|
1175
1178
|
getRef: this.suggestionItemRef,
|
|
1176
1179
|
hoverOption: hoverOption,
|
|
@@ -1183,7 +1186,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1183
1186
|
a11y: {
|
|
1184
1187
|
role: 'option'
|
|
1185
1188
|
}
|
|
1186
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1189
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1187
1190
|
isLoading: isFetchingOptions,
|
|
1188
1191
|
options: options,
|
|
1189
1192
|
searchString: searchStr,
|
|
@@ -83,15 +83,20 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
83
83
|
avatarPalette = _this$props.avatarPalette,
|
|
84
84
|
palette = _this$props.palette,
|
|
85
85
|
htmlId = _this$props.htmlId,
|
|
86
|
-
a11y = _this$props.a11y
|
|
86
|
+
a11y = _this$props.a11y,
|
|
87
|
+
customClass = _this$props.customClass,
|
|
88
|
+
needMultiLineText = _this$props.needMultiLineText;
|
|
87
89
|
var ariaParentRole = a11y.ariaParentRole,
|
|
88
90
|
ariaMultiselectable = a11y.ariaMultiselectable;
|
|
91
|
+
var _customClass$containe = customClass.containerClass,
|
|
92
|
+
containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
|
|
89
93
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
90
94
|
isCover: false,
|
|
91
95
|
role: ariaParentRole,
|
|
92
96
|
id: htmlId,
|
|
93
97
|
tabindex: "0",
|
|
94
|
-
"aria-multiselectable": ariaMultiselectable
|
|
98
|
+
"aria-multiselectable": ariaMultiselectable,
|
|
99
|
+
className: containerClass
|
|
95
100
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
96
101
|
dataId: "".concat(dataId),
|
|
97
102
|
className: className ? className : ''
|
|
@@ -115,7 +120,8 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
115
120
|
});
|
|
116
121
|
|
|
117
122
|
var commonProps = _objectSpread({
|
|
118
|
-
isDisabled: isDisabled
|
|
123
|
+
isDisabled: isDisabled,
|
|
124
|
+
needMultiLineText: needMultiLineText
|
|
119
125
|
}, listItemCustomProps);
|
|
120
126
|
|
|
121
127
|
if (listItemProps) {
|
|
@@ -46,6 +46,7 @@ var AdvancedGroupMultiSelect_defaultProps = {
|
|
|
46
46
|
palette: 'default',
|
|
47
47
|
isLoading: false,
|
|
48
48
|
dataSelectorId: 'advancedGroupMultiSelect',
|
|
49
|
+
customProps: {},
|
|
49
50
|
allowValueFallback: true
|
|
50
51
|
};
|
|
51
52
|
exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
|
|
@@ -181,6 +182,8 @@ var SelectedOptions_defaultProps = {
|
|
|
181
182
|
};
|
|
182
183
|
exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
|
|
183
184
|
var Suggestions_defaultProps = {
|
|
184
|
-
a11y: {}
|
|
185
|
+
a11y: {},
|
|
186
|
+
customClass: {},
|
|
187
|
+
needMultiLineText: false
|
|
185
188
|
};
|
|
186
189
|
exports.Suggestions_defaultProps = Suggestions_defaultProps;
|
|
@@ -129,7 +129,8 @@ var MultiSelect_propTypes = {
|
|
|
129
129
|
setAriaId: _propTypes["default"].string,
|
|
130
130
|
ariaErrorId: _propTypes["default"].string,
|
|
131
131
|
customProps: _propTypes["default"].shape({
|
|
132
|
-
TextBoxIconProps: _propTypes["default"].object
|
|
132
|
+
TextBoxIconProps: _propTypes["default"].object,
|
|
133
|
+
SuggestionsProps: _propTypes["default"].object
|
|
133
134
|
}),
|
|
134
135
|
isFocus: _propTypes["default"].bool,
|
|
135
136
|
allowValueFallback: _propTypes["default"].bool
|
|
@@ -202,7 +203,11 @@ var Suggestions_propTypes = {
|
|
|
202
203
|
logo: _propTypes["default"].string,
|
|
203
204
|
optionType: _propTypes["default"].string,
|
|
204
205
|
listItemProps: _propTypes["default"].object
|
|
205
|
-
}))
|
|
206
|
+
})),
|
|
207
|
+
customClass: _propTypes["default"].shape({
|
|
208
|
+
containerClass: _propTypes["default"].string
|
|
209
|
+
}),
|
|
210
|
+
needMultiLineText: _propTypes["default"].bool
|
|
206
211
|
};
|
|
207
212
|
exports.Suggestions_propTypes = Suggestions_propTypes;
|
|
208
213
|
var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
@@ -273,7 +278,9 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
|
273
278
|
needToCloseOnSelect: _propTypes["default"].func,
|
|
274
279
|
searchStr: _propTypes["default"].string,
|
|
275
280
|
children: _propTypes["default"].node
|
|
276
|
-
}, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _AdvancedGroupMultiSe
|
|
281
|
+
}, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].shape({
|
|
282
|
+
SuggestionsProps: _propTypes["default"].object
|
|
283
|
+
})), _AdvancedGroupMultiSe);
|
|
277
284
|
exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
|
|
278
285
|
|
|
279
286
|
var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
|
|
@@ -670,6 +670,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
670
670
|
isLoading = _this$props9.isLoading,
|
|
671
671
|
dataSelectorId = _this$props9.dataSelectorId,
|
|
672
672
|
customProps = _this$props9.customProps;
|
|
673
|
+
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
674
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
673
675
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
674
676
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
675
677
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -846,7 +848,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
846
848
|
a11y: {
|
|
847
849
|
role: 'heading'
|
|
848
850
|
}
|
|
849
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
851
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
850
852
|
activeId: selectedId,
|
|
851
853
|
suggestions: options,
|
|
852
854
|
getRef: _this7.suggestionItemRef,
|
|
@@ -862,7 +864,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
862
864
|
role: 'option'
|
|
863
865
|
},
|
|
864
866
|
dataId: "".concat(dataId, "_Options")
|
|
865
|
-
}));
|
|
867
|
+
}, SuggestionsProps)));
|
|
866
868
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
867
869
|
options: revampedGroups,
|
|
868
870
|
searchString: searchStr,
|
|
@@ -51,6 +51,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
51
51
|
|
|
52
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
53
53
|
|
|
54
|
+
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); }
|
|
55
|
+
|
|
54
56
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
55
57
|
|
|
56
58
|
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); } }
|
|
@@ -215,7 +217,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
215
217
|
needEffect = _this$props.needEffect,
|
|
216
218
|
isLoading = _this$props.isLoading,
|
|
217
219
|
dataSelectorId = _this$props.dataSelectorId,
|
|
218
|
-
getTargetRef = _this$props.getTargetRef
|
|
220
|
+
getTargetRef = _this$props.getTargetRef,
|
|
221
|
+
customProps = _this$props.customProps;
|
|
222
|
+
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
223
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
219
224
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
220
225
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
221
226
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -354,7 +359,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
354
359
|
a11y: {
|
|
355
360
|
role: 'heading'
|
|
356
361
|
}
|
|
357
|
-
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
362
|
+
})) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
358
363
|
dataId: "".concat(dataId, "_Options"),
|
|
359
364
|
activeId: selectedId,
|
|
360
365
|
suggestions: suggestions,
|
|
@@ -371,7 +376,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
371
376
|
ariaParentRole: 'listbox',
|
|
372
377
|
role: 'option'
|
|
373
378
|
}
|
|
374
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
379
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
375
380
|
isLoading: isFetchingOptions,
|
|
376
381
|
options: options,
|
|
377
382
|
searchString: searchStr,
|
|
@@ -440,7 +440,9 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
440
440
|
_customProps$Dropdown = customProps.DropdownSearchTextBoxProps,
|
|
441
441
|
DropdownSearchTextBoxProps = _customProps$Dropdown === void 0 ? {} : _customProps$Dropdown,
|
|
442
442
|
_customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
443
|
-
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI
|
|
443
|
+
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
444
|
+
_customProps$ListItem = customProps.ListItemProps,
|
|
445
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
444
446
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
445
447
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : ''),
|
|
446
448
|
"data-title": isDisabled ? title : null,
|
|
@@ -573,7 +575,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
573
575
|
var iconName = options.iconName,
|
|
574
576
|
iconSize = options.iconSize,
|
|
575
577
|
iconColor = options.iconColor;
|
|
576
|
-
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
|
|
578
|
+
return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
|
|
577
579
|
key: options[idKey],
|
|
578
580
|
value: options[valueKey],
|
|
579
581
|
size: "medium",
|
|
@@ -597,7 +599,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
597
599
|
ariaSelected: selectedId === options[idKey],
|
|
598
600
|
ariaLabel: options[valueKey]
|
|
599
601
|
}
|
|
600
|
-
});
|
|
602
|
+
}, ListItemProps));
|
|
601
603
|
})) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
602
604
|
isLoading: isFetchingOptions,
|
|
603
605
|
options: options,
|
|
@@ -112,7 +112,8 @@ var SelectWithAvatar_defaultProps = {
|
|
|
112
112
|
isRestrictScroll: false,
|
|
113
113
|
i18nKeys: {},
|
|
114
114
|
needEffect: true,
|
|
115
|
-
isLoading: false
|
|
115
|
+
isLoading: false,
|
|
116
|
+
customProps: {}
|
|
116
117
|
};
|
|
117
118
|
exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
|
|
118
119
|
var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|