@zohodesk/components 1.0.0-temp-199.22 → 1.0.0-temp-249.1
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 +29 -0
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +6 -0
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +6 -0
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +6 -0
- package/es/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +5 -5
- package/es/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +6 -6
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +3 -3
- package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +1 -1
- package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +3 -3
- package/es/ListItem/ListItem.js +0 -1
- package/es/ListItem/ListItem.module.css +18 -17
- package/es/ListItem/ListItemWithAvatar.js +2 -4
- package/es/ListItem/ListItemWithCheckBox.js +2 -4
- package/es/ListItem/ListItemWithIcon.js +2 -4
- package/es/ListItem/ListItemWithRadio.js +2 -4
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -6
- package/es/MultiSelect/MultiSelect.js +2 -2
- package/es/MultiSelect/Suggestions.js +2 -7
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +1 -1
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +3 -3
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +3 -3
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +1 -1
- package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +1 -1
- package/es/MultiSelect/props/defaultProps.js +0 -2
- package/es/MultiSelect/props/propTypes.js +3 -11
- package/es/Provider/LibraryContext.js +11 -3
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/Select.js +5 -3
- package/es/Select/SelectWithAvatar.js +3 -3
- package/es/Select/SelectWithIcon.js +3 -10
- package/es/Select/__tests__/Select.spec.js +5 -0
- package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +1 -1
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +111 -121
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/es/Select/props/defaultProps.js +2 -4
- package/es/Select/props/propTypes.js +5 -12
- package/es/TextBoxIcon/TextBoxIcon.js +0 -1
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +39 -39
- package/es/common/common.module.css +1 -1
- package/es/shared/InputFieldLine/InputFieldLine.js +2 -1
- package/es/shared/InputFieldLine/InputFieldLine.module.css +13 -7
- package/es/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/es/shared/InputFieldLine/props/defaultProps.js +2 -2
- package/es/shared/InputFieldLine/props/propTypes.js +1 -1
- package/es/v1/Label/Label.js +95 -33
- package/es/v1/Label/__tests__/Label.spec.js +214 -0
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +451 -0
- package/es/v1/Label/constants/index.js +8 -0
- package/es/v1/Label/css/Label_v1.module.css +42 -0
- package/es/v1/Label/css/cssJSLogic.js +44 -0
- package/es/v1/Label/props/defaultProps.js +14 -9
- package/es/v1/Label/props/propTypes.js +34 -14
- package/lib/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +5 -5
- package/lib/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +6 -6
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +3 -3
- package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +1 -1
- package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +3 -3
- package/lib/ListItem/ListItem.js +0 -1
- package/lib/ListItem/ListItem.module.css +18 -17
- package/lib/ListItem/ListItemWithAvatar.js +3 -5
- package/lib/ListItem/ListItemWithCheckBox.js +2 -4
- package/lib/ListItem/ListItemWithIcon.js +3 -5
- package/lib/ListItem/ListItemWithRadio.js +2 -4
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -8
- package/lib/MultiSelect/MultiSelect.js +2 -2
- package/lib/MultiSelect/Suggestions.js +2 -6
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +1 -1
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +3 -3
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +3 -3
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +1 -1
- package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +1 -1
- package/lib/MultiSelect/props/defaultProps.js +0 -2
- package/lib/MultiSelect/props/propTypes.js +5 -13
- package/lib/Provider/LibraryContext.js +11 -3
- package/lib/Select/GroupSelect.js +1 -2
- package/lib/Select/Select.js +8 -5
- package/lib/Select/SelectWithAvatar.js +3 -4
- package/lib/Select/SelectWithIcon.js +3 -10
- package/lib/Select/__tests__/Select.spec.js +5 -0
- package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +1 -1
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +111 -121
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/lib/Select/props/defaultProps.js +3 -5
- package/lib/Select/props/propTypes.js +5 -12
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -1
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +39 -39
- package/lib/common/common.module.css +1 -1
- package/lib/shared/InputFieldLine/InputFieldLine.js +2 -1
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +13 -7
- package/lib/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/lib/shared/InputFieldLine/props/defaultProps.js +2 -2
- package/lib/shared/InputFieldLine/props/propTypes.js +1 -1
- package/lib/v1/Label/Label.js +103 -36
- package/lib/v1/Label/__tests__/Label.spec.js +221 -0
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +451 -0
- package/lib/v1/Label/constants/index.js +16 -0
- package/lib/v1/Label/css/Label_v1.module.css +42 -0
- package/lib/v1/Label/css/cssJSLogic.js +45 -0
- package/lib/v1/Label/props/defaultProps.js +16 -11
- package/lib/v1/Label/props/propTypes.js +36 -16
- package/package.json +10 -10
|
@@ -18,7 +18,7 @@ exports[`ColorSingleSelect Should render the default selected value 1`] = `
|
|
|
18
18
|
aria-haspopup="listbox"
|
|
19
19
|
aria-owns="3"
|
|
20
20
|
aria-readonly="false"
|
|
21
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
21
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
22
22
|
data-selector-id="container"
|
|
23
23
|
data-title=""
|
|
24
24
|
role="button"
|
|
@@ -96,7 +96,7 @@ exports[`ColorSingleSelect Should render the selected value 1`] = `
|
|
|
96
96
|
aria-haspopup="listbox"
|
|
97
97
|
aria-owns="6"
|
|
98
98
|
aria-readonly="false"
|
|
99
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
99
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
100
100
|
data-selector-id="container"
|
|
101
101
|
data-title=""
|
|
102
102
|
role="button"
|
|
@@ -170,7 +170,7 @@ exports[`ColorSingleSelect rendering the defult props 1`] = `
|
|
|
170
170
|
aria-haspopup="listbox"
|
|
171
171
|
aria-owns="1"
|
|
172
172
|
aria-readonly="false"
|
|
173
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
173
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
174
174
|
data-selector-id="container"
|
|
175
175
|
data-title=""
|
|
176
176
|
role="button"
|
|
@@ -233,7 +233,7 @@ exports[`ColorSingleSelect rendering with isDefaultSelectValue is false 1`] = `
|
|
|
233
233
|
aria-haspopup="listbox"
|
|
234
234
|
aria-owns="9"
|
|
235
235
|
aria-readonly="false"
|
|
236
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
236
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
237
237
|
data-selector-id="container"
|
|
238
238
|
data-title=""
|
|
239
239
|
role="button"
|
|
@@ -298,7 +298,7 @@ exports[`ColorSingleSelect renders with renderCustomColorIndicator 1`] = `
|
|
|
298
298
|
aria-haspopup="listbox"
|
|
299
299
|
aria-owns="11"
|
|
300
300
|
aria-readonly="false"
|
|
301
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
301
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
302
302
|
data-selector-id="container"
|
|
303
303
|
data-title=""
|
|
304
304
|
role="button"
|
|
@@ -376,7 +376,7 @@ exports[`ColorSingleSelect renders with renderCustomSelectedValue 1`] = `
|
|
|
376
376
|
aria-haspopup="listbox"
|
|
377
377
|
aria-owns="14"
|
|
378
378
|
aria-readonly="false"
|
|
379
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
379
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
380
380
|
data-selector-id="container"
|
|
381
381
|
data-title=""
|
|
382
382
|
role="button"
|
|
@@ -618,7 +618,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
618
618
|
data-test-id="hourField"
|
|
619
619
|
>
|
|
620
620
|
<div
|
|
621
|
-
class="varClass customContainer
|
|
621
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
622
622
|
data-selector-id="textBoxIcon"
|
|
623
623
|
>
|
|
624
624
|
<div
|
|
@@ -713,7 +713,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
713
713
|
data-test-id="minuteField"
|
|
714
714
|
>
|
|
715
715
|
<div
|
|
716
|
-
class="varClass customContainer
|
|
716
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
717
717
|
data-selector-id="textBoxIcon"
|
|
718
718
|
>
|
|
719
719
|
<div
|
|
@@ -808,7 +808,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
808
808
|
data-test-id="ampmField"
|
|
809
809
|
>
|
|
810
810
|
<div
|
|
811
|
-
class="varClass customContainer
|
|
811
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
812
812
|
data-selector-id="textBoxIcon"
|
|
813
813
|
>
|
|
814
814
|
<div
|
|
@@ -11,7 +11,7 @@ exports[`DateWidget rendering the defult props 1`] = `
|
|
|
11
11
|
data-test-id="dateWidget_widget"
|
|
12
12
|
>
|
|
13
13
|
<div
|
|
14
|
-
class="varClass customContainer
|
|
14
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container placeHolder flex rowdir"
|
|
15
15
|
data-selector-id="textBoxIcon"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
@@ -27,7 +27,7 @@ exports[`Time rendering the defult props 1`] = `
|
|
|
27
27
|
data-test-id="hourField"
|
|
28
28
|
>
|
|
29
29
|
<div
|
|
30
|
-
class="varClass customContainer
|
|
30
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
31
31
|
data-selector-id="textBoxIcon"
|
|
32
32
|
>
|
|
33
33
|
<div
|
|
@@ -120,7 +120,7 @@ exports[`Time rendering the defult props 1`] = `
|
|
|
120
120
|
data-test-id="minuteField"
|
|
121
121
|
>
|
|
122
122
|
<div
|
|
123
|
-
class="varClass customContainer
|
|
123
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
124
124
|
data-selector-id="textBoxIcon"
|
|
125
125
|
>
|
|
126
126
|
<div
|
|
@@ -213,7 +213,7 @@ exports[`Time rendering the defult props 1`] = `
|
|
|
213
213
|
data-test-id="ampmField"
|
|
214
214
|
>
|
|
215
215
|
<div
|
|
216
|
-
class="varClass customContainer
|
|
216
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
217
217
|
data-selector-id="textBoxIcon"
|
|
218
218
|
>
|
|
219
219
|
<div
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -175,7 +175,6 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
175
175
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
176
176
|
className: _ListItemModule["default"].titleBox
|
|
177
177
|
}, (0, _utils.isRenderable)(renderBeforeChildren) ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
178
|
-
shrink: true,
|
|
179
178
|
adjust: true,
|
|
180
179
|
className: _ListItemModule["default"].beforeChild
|
|
181
180
|
}, (0, _utils.renderNode)(renderBeforeChildren)) : null, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* css:lineheight-validation:ignore */
|
|
2
1
|
.varClass {
|
|
3
2
|
/* listitem default variables */
|
|
4
3
|
--listitem_font_size: var(--zd_font_size13);
|
|
@@ -16,14 +15,9 @@
|
|
|
16
15
|
|
|
17
16
|
/* listitem tick icon default variables */
|
|
18
17
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
19
|
-
|
|
20
|
-
/* multiLine value for list item */
|
|
21
|
-
--listitem_multiline_lineheight: 1.5385;
|
|
22
|
-
}
|
|
23
|
-
[dir=ltr] .varClass {
|
|
18
|
+
}[dir=ltr] .varClass {
|
|
24
19
|
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
25
|
-
}
|
|
26
|
-
[dir=rtl] .varClass {
|
|
20
|
+
}[dir=rtl] .varClass {
|
|
27
21
|
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
28
22
|
}
|
|
29
23
|
.list {
|
|
@@ -82,9 +76,8 @@
|
|
|
82
76
|
[dir=rtl] .beforeChild{
|
|
83
77
|
margin-left: var(--zd_size10) ;
|
|
84
78
|
}
|
|
85
|
-
/* css:lineheight-validation:ignore */
|
|
86
79
|
.value, .multiLineValue {
|
|
87
|
-
line-height:
|
|
80
|
+
line-height: 1.5385;
|
|
88
81
|
}
|
|
89
82
|
.multiLineValue,.multiLine{
|
|
90
83
|
composes: lineClamp from '../common/common.module.css';
|
|
@@ -122,18 +115,26 @@
|
|
|
122
115
|
composes: justifyFend from '../common/common.module.css';
|
|
123
116
|
}
|
|
124
117
|
|
|
125
|
-
.contentWrapper {
|
|
126
|
-
composes: dflex flexrow alignVertical from '../common/common.module.css';
|
|
127
|
-
width: 100% ;
|
|
128
|
-
}
|
|
129
118
|
.lhsBox {
|
|
130
119
|
composes: dflex from '../common/common.module.css';
|
|
131
120
|
align-self: stretch;
|
|
132
121
|
}
|
|
133
|
-
.
|
|
134
|
-
|
|
122
|
+
.lhsBox_small,
|
|
123
|
+
.lhsBox_medium,
|
|
124
|
+
.lhsBox_large{
|
|
125
|
+
composes: varClass;
|
|
126
|
+
--listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
|
|
135
127
|
height: 100% ;
|
|
136
|
-
|
|
128
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
129
|
+
}
|
|
130
|
+
.lhsBox_small {
|
|
131
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size7)); /* 7px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
132
|
+
}
|
|
133
|
+
.lhsBox_medium {
|
|
134
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size8)); /* 8px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
135
|
+
}
|
|
136
|
+
.lhsBox_large {
|
|
137
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size15)); /* 15px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
137
138
|
}
|
|
138
139
|
.defaultHover, .primaryHover, .dangerHover, .secondaryHover, .darkHover {
|
|
139
140
|
background-color: var(--listitem_highlight_bg_color);
|
|
@@ -178,13 +178,11 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
178
178
|
disableTitle: disableTitle,
|
|
179
179
|
title: null,
|
|
180
180
|
customProps: ListItemProps
|
|
181
|
-
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
182
|
-
className: _ListItemModule["default"].contentWrapper
|
|
183
|
-
}, name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
181
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
184
182
|
className: "".concat(_ListItemModule["default"].leftAvatar, " ").concat(lhsAlignContent !== 'center' ? "".concat(_ListItemModule["default"].lhsBox) : '')
|
|
185
183
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
186
184
|
align: lhsAlignContent,
|
|
187
|
-
className: _ListItemModule["default"].
|
|
185
|
+
className: _ListItemModule["default"]["lhsBox_".concat(size)]
|
|
188
186
|
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], _extends({
|
|
189
187
|
name: name,
|
|
190
188
|
size: "small",
|
|
@@ -228,7 +226,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
228
226
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
229
227
|
name: "ZD-ticknew",
|
|
230
228
|
size: "8"
|
|
231
|
-
})) : null)
|
|
229
|
+
})) : null);
|
|
232
230
|
}
|
|
233
231
|
}]);
|
|
234
232
|
|
|
@@ -160,13 +160,11 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
160
160
|
title: null,
|
|
161
161
|
customProps: ListItemProps
|
|
162
162
|
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
163
|
-
className: _ListItemModule["default"].contentWrapper
|
|
164
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
165
163
|
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"].lhsBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)]),
|
|
166
164
|
dataId: "".concat(dataId ? dataId : value, "_checkBox")
|
|
167
165
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
168
166
|
align: lhsAlignContent,
|
|
169
|
-
className: lhsAlignContent !== 'center' ? _ListItemModule["default"].
|
|
167
|
+
className: lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''
|
|
170
168
|
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
|
|
171
169
|
checked: checked,
|
|
172
170
|
a11y: {
|
|
@@ -191,7 +189,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
191
189
|
}, (0, _utils.renderNode)(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
192
190
|
"data-title": isDisabled ? null : secondaryValue,
|
|
193
191
|
className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLine : _ListItemModule["default"].secondaryValue)
|
|
194
|
-
}, secondaryValue) : null))
|
|
192
|
+
}, secondaryValue) : null));
|
|
195
193
|
}
|
|
196
194
|
}]);
|
|
197
195
|
|
|
@@ -166,16 +166,14 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
166
166
|
disableTitle: disableTitle,
|
|
167
167
|
title: null,
|
|
168
168
|
customProps: ListItemProps
|
|
169
|
-
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
170
|
-
className: _ListItemModule["default"].contentWrapper
|
|
171
|
-
}, iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
169
|
+
}, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
172
170
|
"aria-hidden": true,
|
|
173
171
|
align: lhsAlignContent,
|
|
174
172
|
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"].lhsBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)]),
|
|
175
173
|
dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
|
|
176
174
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
177
175
|
align: lhsAlignContent,
|
|
178
|
-
className: lhsAlignContent !== 'center' ? _ListItemModule["default"].
|
|
176
|
+
className: lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''
|
|
179
177
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
180
178
|
iconClass: iconClass,
|
|
181
179
|
name: iconName,
|
|
@@ -206,7 +204,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
206
204
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
207
205
|
name: "ZD-ticknew",
|
|
208
206
|
size: "8"
|
|
209
|
-
})) : null)
|
|
207
|
+
})) : null);
|
|
210
208
|
}
|
|
211
209
|
}]);
|
|
212
210
|
|
|
@@ -161,14 +161,12 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
161
161
|
title: null,
|
|
162
162
|
customProps: ListItemProps
|
|
163
163
|
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
164
|
-
className: _ListItemModule["default"].contentWrapper
|
|
165
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
166
164
|
align: lhsAlignContent,
|
|
167
165
|
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"].lhsBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)]),
|
|
168
166
|
dataId: "".concat(dataId, "_radio")
|
|
169
167
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
170
168
|
align: lhsAlignContent,
|
|
171
|
-
className: lhsAlignContent !== 'center' ? _ListItemModule["default"].
|
|
169
|
+
className: lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''
|
|
172
170
|
}, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
173
171
|
checked: checked,
|
|
174
172
|
id: id,
|
|
@@ -194,7 +192,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
194
192
|
}, (0, _utils.renderNode)(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
195
193
|
"data-title": isDisabled ? null : secondaryValue,
|
|
196
194
|
className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLine : _ListItemModule["default"].secondaryValue)
|
|
197
|
-
}, secondaryValue) : null))
|
|
195
|
+
}, secondaryValue) : null));
|
|
198
196
|
}
|
|
199
197
|
}]);
|
|
200
198
|
|
|
@@ -102,7 +102,7 @@ exports[`ListItem Should render with renderBeforeChildren 1`] = `
|
|
|
102
102
|
data-test-id="boxComponent"
|
|
103
103
|
>
|
|
104
104
|
<div
|
|
105
|
-
class="beforeChild basisAuto
|
|
105
|
+
class="beforeChild basisAuto shrinkOff"
|
|
106
106
|
data-id="boxComponent"
|
|
107
107
|
data-selector-id="box"
|
|
108
108
|
data-test-id="boxComponent"
|
|
@@ -55,8 +55,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
55
55
|
|
|
56
56
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
57
57
|
|
|
58
|
-
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); }
|
|
59
|
-
|
|
60
58
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
61
59
|
|
|
62
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."); }
|
|
@@ -981,10 +979,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
981
979
|
autoComplete = _this$props9.autoComplete,
|
|
982
980
|
getTargetRef = _this$props9.getTargetRef,
|
|
983
981
|
isFocus = _this$props9.isFocus,
|
|
984
|
-
limit = _this$props9.limit
|
|
985
|
-
customProps = _this$props9.customProps;
|
|
986
|
-
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
987
|
-
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
982
|
+
limit = _this$props9.limit;
|
|
988
983
|
var _i18nKeys = i18nKeys,
|
|
989
984
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
990
985
|
clearText = _i18nKeys$clearText === void 0 ? _constants.MULTISELECT_I18N_KEYS.clearText : _i18nKeys$clearText,
|
|
@@ -1150,7 +1145,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1150
1145
|
a11y: {
|
|
1151
1146
|
role: 'heading'
|
|
1152
1147
|
}
|
|
1153
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
1148
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1154
1149
|
suggestions: suggestions,
|
|
1155
1150
|
selectedOptions: selectedOptionIds,
|
|
1156
1151
|
getRef: _this5.suggestionItemRef,
|
|
@@ -1165,7 +1160,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1165
1160
|
limit: limit,
|
|
1166
1161
|
limitReachedMessage: limitReachedMessage,
|
|
1167
1162
|
dataId: "".concat(dataId, "_Options")
|
|
1168
|
-
}))
|
|
1163
|
+
}));
|
|
1169
1164
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1170
1165
|
options: revampedGroups,
|
|
1171
1166
|
searchString: searchStr,
|
|
@@ -1171,9 +1171,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1171
1171
|
isLoading = _this$props15.isLoading,
|
|
1172
1172
|
selectAllText = _this$props15.selectAllText,
|
|
1173
1173
|
needSelectAll = _this$props15.needSelectAll,
|
|
1174
|
+
customProps = _this$props15.customProps,
|
|
1174
1175
|
isVirtualizerEnabled = _this$props15.isVirtualizerEnabled,
|
|
1175
|
-
limit = _this$props15.limit
|
|
1176
|
-
customProps = _this$props15.customProps;
|
|
1176
|
+
limit = _this$props15.limit;
|
|
1177
1177
|
var _this$state9 = this.state,
|
|
1178
1178
|
selectedOptions = _this$state9.selectedOptions,
|
|
1179
1179
|
searchStr = _this$state9.searchStr,
|
|
@@ -247,19 +247,15 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
247
247
|
htmlId = _this$props2.htmlId,
|
|
248
248
|
a11y = _this$props2.a11y,
|
|
249
249
|
getVirtualizerPublicMethods = _this$props2.getVirtualizerPublicMethods,
|
|
250
|
-
setVirtualizerContainerRefFunction = _this$props2.setVirtualizerContainerRefFunction
|
|
251
|
-
customClass = _this$props2.customClass;
|
|
250
|
+
setVirtualizerContainerRefFunction = _this$props2.setVirtualizerContainerRefFunction;
|
|
252
251
|
var ariaParentRole = a11y.ariaParentRole,
|
|
253
252
|
ariaMultiselectable = a11y.ariaMultiselectable;
|
|
254
|
-
var _customClass$containe = customClass.containerClass,
|
|
255
|
-
containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
|
|
256
253
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
257
254
|
isCover: false,
|
|
258
255
|
role: ariaParentRole,
|
|
259
256
|
id: htmlId,
|
|
260
257
|
tabindex: "0",
|
|
261
|
-
"aria-multiselectable": ariaMultiselectable
|
|
262
|
-
className: containerClass
|
|
258
|
+
"aria-multiselectable": ariaMultiselectable
|
|
263
259
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
264
260
|
dataId: "".concat(dataId),
|
|
265
261
|
className: className ? className : ''
|
|
@@ -25,7 +25,7 @@ exports[`AdvancedGroupMultiSelect rendering the defult props 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`AdvancedMultiSelect rendering the defult props 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -96,7 +96,7 @@ exports[`AdvancedMultiSelect rendering the options array with objects and string
|
|
|
96
96
|
"
|
|
97
97
|
/>
|
|
98
98
|
<div
|
|
99
|
-
class="varClass customContainer
|
|
99
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
100
100
|
data-selector-id="textBoxIcon"
|
|
101
101
|
>
|
|
102
102
|
<div
|
|
@@ -342,7 +342,7 @@ exports[`AdvancedMultiSelect rendering the options array with only objects using
|
|
|
342
342
|
"
|
|
343
343
|
/>
|
|
344
344
|
<div
|
|
345
|
-
class="varClass customContainer
|
|
345
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
346
346
|
data-selector-id="textBoxIcon"
|
|
347
347
|
>
|
|
348
348
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`MultiSelect Should render with renderCustomSelectedValue 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -108,7 +108,7 @@ exports[`MultiSelect rendering the defult props 1`] = `
|
|
|
108
108
|
"
|
|
109
109
|
/>
|
|
110
110
|
<div
|
|
111
|
-
class="varClass customContainer
|
|
111
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
112
112
|
data-selector-id="textBoxIcon"
|
|
113
113
|
>
|
|
114
114
|
<div
|
|
@@ -341,7 +341,7 @@ exports[`MultiSelect rendering with limit feature 1`] = `
|
|
|
341
341
|
"
|
|
342
342
|
/>
|
|
343
343
|
<div
|
|
344
|
-
class="varClass customContainer
|
|
344
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
345
345
|
data-selector-id="textBoxIcon"
|
|
346
346
|
>
|
|
347
347
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`MultiSelectWithAvatar rendering the defult props 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -41,7 +41,7 @@ exports[`Suggestions Should render with renderBeforeChildren 1`] = `
|
|
|
41
41
|
data-test-id="boxComponent"
|
|
42
42
|
>
|
|
43
43
|
<div
|
|
44
|
-
class="beforeChild basisAuto
|
|
44
|
+
class="beforeChild basisAuto shrinkOff"
|
|
45
45
|
data-id="boxComponent"
|
|
46
46
|
data-selector-id="box"
|
|
47
47
|
data-test-id="boxComponent"
|
|
@@ -46,7 +46,6 @@ var AdvancedGroupMultiSelect_defaultProps = {
|
|
|
46
46
|
palette: 'default',
|
|
47
47
|
isLoading: false,
|
|
48
48
|
dataSelectorId: 'advancedGroupMultiSelect',
|
|
49
|
-
customProps: {},
|
|
50
49
|
allowValueFallback: true
|
|
51
50
|
};
|
|
52
51
|
exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
|
|
@@ -185,7 +184,6 @@ exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
|
|
|
185
184
|
var Suggestions_defaultProps = {
|
|
186
185
|
a11y: {},
|
|
187
186
|
isVirtualizerEnabled: false,
|
|
188
|
-
customClass: {},
|
|
189
187
|
needMultiLineText: false
|
|
190
188
|
};
|
|
191
189
|
exports.Suggestions_defaultProps = Suggestions_defaultProps;
|
|
@@ -133,8 +133,7 @@ var MultiSelect_propTypes = {
|
|
|
133
133
|
setAriaId: _propTypes["default"].string,
|
|
134
134
|
ariaErrorId: _propTypes["default"].string,
|
|
135
135
|
customProps: _propTypes["default"].shape({
|
|
136
|
-
TextBoxIconProps: _propTypes["default"].object
|
|
137
|
-
SuggestionsProps: _propTypes["default"].object
|
|
136
|
+
TextBoxIconProps: _propTypes["default"].object
|
|
138
137
|
}),
|
|
139
138
|
isFocus: _propTypes["default"].bool,
|
|
140
139
|
allowValueFallback: _propTypes["default"].bool,
|
|
@@ -190,8 +189,7 @@ var SelectedOptions_propTypes = {
|
|
|
190
189
|
limit: _propTypes["default"].number
|
|
191
190
|
};
|
|
192
191
|
exports.SelectedOptions_propTypes = SelectedOptions_propTypes;
|
|
193
|
-
|
|
194
|
-
var Suggestions_propTypes = _defineProperty({
|
|
192
|
+
var Suggestions_propTypes = {
|
|
195
193
|
a11y: _propTypes["default"].shape({
|
|
196
194
|
ariaParentRole: _propTypes["default"].string,
|
|
197
195
|
ariaMultiselectable: _propTypes["default"].bool
|
|
@@ -225,12 +223,8 @@ var Suggestions_propTypes = _defineProperty({
|
|
|
225
223
|
})),
|
|
226
224
|
renderBeforeChildren: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node]),
|
|
227
225
|
limit: _propTypes["default"].number,
|
|
228
|
-
limitReachedMessage: _propTypes["default"].string
|
|
229
|
-
|
|
230
|
-
containerClass: _propTypes["default"].string
|
|
231
|
-
})
|
|
232
|
-
}, "needMultiLineText", _propTypes["default"].bool);
|
|
233
|
-
|
|
226
|
+
limitReachedMessage: _propTypes["default"].string
|
|
227
|
+
};
|
|
234
228
|
exports.Suggestions_propTypes = Suggestions_propTypes;
|
|
235
229
|
var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
236
230
|
animationStyle: _propTypes["default"].string,
|
|
@@ -301,9 +295,7 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
|
301
295
|
needToCloseOnSelect: _propTypes["default"].func,
|
|
302
296
|
searchStr: _propTypes["default"].string,
|
|
303
297
|
children: _propTypes["default"].node
|
|
304
|
-
}, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "limit", _propTypes["default"].number),
|
|
305
|
-
SuggestionsProps: _propTypes["default"].object
|
|
306
|
-
})), _AdvancedGroupMultiSe);
|
|
298
|
+
}, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "limit", _propTypes["default"].number), _AdvancedGroupMultiSe);
|
|
307
299
|
exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
|
|
308
300
|
|
|
309
301
|
var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
|
|
@@ -46,6 +46,8 @@ var LibraryContextProvider = function LibraryContextProvider(_ref) {
|
|
|
46
46
|
hasTagColorInheritedToText = _ref.hasTagColorInheritedToText,
|
|
47
47
|
shouldIndicateSwitchState = _ref.shouldIndicateSwitchState,
|
|
48
48
|
shouldStrikeThroughDisabledButton = _ref.shouldStrikeThroughDisabledButton,
|
|
49
|
+
labelRequiredType = _ref.labelRequiredType,
|
|
50
|
+
shouldHighlightRequiredLabel = _ref.shouldHighlightRequiredLabel,
|
|
49
51
|
children = _ref.children;
|
|
50
52
|
|
|
51
53
|
var _useState = (0, _react.useState)({
|
|
@@ -54,7 +56,9 @@ var LibraryContextProvider = function LibraryContextProvider(_ref) {
|
|
|
54
56
|
coloredTagVariant: coloredTagVariant,
|
|
55
57
|
hasTagColorInheritedToText: hasTagColorInheritedToText,
|
|
56
58
|
shouldIndicateSwitchState: shouldIndicateSwitchState,
|
|
57
|
-
shouldStrikeThroughDisabledButton: shouldStrikeThroughDisabledButton
|
|
59
|
+
shouldStrikeThroughDisabledButton: shouldStrikeThroughDisabledButton,
|
|
60
|
+
labelRequiredType: labelRequiredType,
|
|
61
|
+
shouldHighlightRequiredLabel: shouldHighlightRequiredLabel
|
|
58
62
|
}),
|
|
59
63
|
_useState2 = _slicedToArray(_useState, 2),
|
|
60
64
|
value = _useState2[0],
|
|
@@ -80,7 +84,9 @@ LibraryContextProvider.propTypes = {
|
|
|
80
84
|
hasTagColorInheritedToText: _propTypes["default"].bool,
|
|
81
85
|
direction: _propTypes["default"].string,
|
|
82
86
|
shouldIndicateSwitchState: _propTypes["default"].bool,
|
|
83
|
-
shouldStrikeThroughDisabledButton: _propTypes["default"].bool
|
|
87
|
+
shouldStrikeThroughDisabledButton: _propTypes["default"].bool,
|
|
88
|
+
labelRequiredType: _propTypes["default"].oneOf(['asterisk', 'text']),
|
|
89
|
+
shouldHighlightRequiredLabel: _propTypes["default"].bool
|
|
84
90
|
};
|
|
85
91
|
LibraryContextProvider.defaultProps = {
|
|
86
92
|
isReducedMotion: (0, _Config.getLibraryConfig)('isReducedMotion'),
|
|
@@ -88,7 +94,9 @@ LibraryContextProvider.defaultProps = {
|
|
|
88
94
|
coloredTagVariant: 'bold',
|
|
89
95
|
hasTagColorInheritedToText: true,
|
|
90
96
|
shouldIndicateSwitchState: false,
|
|
91
|
-
shouldStrikeThroughDisabledButton: false
|
|
97
|
+
shouldStrikeThroughDisabledButton: false,
|
|
98
|
+
labelRequiredType: 'asterisk',
|
|
99
|
+
shouldHighlightRequiredLabel: true
|
|
92
100
|
};
|
|
93
101
|
var _default = LibraryContextProvider;
|
|
94
102
|
exports["default"] = _default;
|
|
@@ -700,8 +700,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
700
700
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
701
701
|
_customProps$TextBoxP = customProps.TextBoxProps,
|
|
702
702
|
TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP,
|
|
703
|
-
|
|
704
|
-
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
703
|
+
SuggestionsProps = customProps.SuggestionsProps;
|
|
705
704
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
706
705
|
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 : ''),
|
|
707
706
|
"data-id": dataIdSlctComp,
|
package/lib/Select/Select.js
CHANGED
|
@@ -885,7 +885,9 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
885
885
|
_customProps$Suggesti = customProps.SuggestionsProps,
|
|
886
886
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
|
|
887
887
|
_customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
888
|
-
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI
|
|
888
|
+
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
889
|
+
_customProps$InputFie = customProps.InputFieldLineProps,
|
|
890
|
+
InputFieldLineProps = _customProps$InputFie === void 0 ? {} : _customProps$InputFie;
|
|
889
891
|
var inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
|
|
890
892
|
setAriaId: setAriaId,
|
|
891
893
|
isReadOnly: isReadOnly,
|
|
@@ -903,17 +905,18 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
903
905
|
ref: getTargetRef,
|
|
904
906
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
905
907
|
"data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
|
|
906
|
-
}, (0, _utils.isRenderable)(renderCustomSelectedValue) ? /*#__PURE__*/_react["default"].createElement(_InputFieldLine["default"], {
|
|
907
|
-
isActive: isPopupReady,
|
|
908
|
+
}, (0, _utils.isRenderable)(renderCustomSelectedValue) ? /*#__PURE__*/_react["default"].createElement(_InputFieldLine["default"], _extends({
|
|
908
909
|
border: needBorder ? 'bottom' : 'none',
|
|
910
|
+
hasPadding: true
|
|
911
|
+
}, InputFieldLineProps, {
|
|
912
|
+
isActive: isPopupReady,
|
|
909
913
|
size: size,
|
|
910
914
|
borderColor: borderColor,
|
|
911
915
|
isDisabled: isDisabled,
|
|
912
916
|
isReadOnly: isReadOnly,
|
|
913
917
|
onKeyDown: this.handleKeyDown,
|
|
914
|
-
hasPadding: true,
|
|
915
918
|
a11yAttributes: inputFieldLineA11yAttributes
|
|
916
|
-
}, (0, _utils.renderNode)(renderCustomSelectedValue, {
|
|
919
|
+
}), (0, _utils.renderNode)(renderCustomSelectedValue, {
|
|
917
920
|
isDisabled: isDisabled,
|
|
918
921
|
isPopupOpen: isPopupOpen,
|
|
919
922
|
isReadOnly: isReadOnly,
|