@zohodesk/components 1.5.7 → 1.5.9
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 +17 -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/__tests__/__snapshots__/ListItem.spec.js.snap +1 -1
- package/es/Modal/Portal/Portal.js +11 -10
- 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/Select/Select.js +5 -3
- 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 +105 -115
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/es/Select/props/propTypes.js +2 -1
- package/es/TextBoxIcon/TextBoxIcon.js +0 -1
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +39 -39
- 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/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/__tests__/__snapshots__/ListItem.spec.js.snap +1 -1
- package/lib/Modal/Portal/Portal.js +17 -10
- 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/Select/Select.js +8 -5
- 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 +105 -115
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/lib/Select/props/propTypes.js +2 -1
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -1
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +39 -39
- 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/package.json +8 -6
|
@@ -25,7 +25,7 @@ exports[`ColorMultiSelect Should render the default selected value 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
|
|
@@ -210,7 +210,7 @@ exports[`ColorMultiSelect Should render the selected value 1`] = `
|
|
|
210
210
|
"
|
|
211
211
|
/>
|
|
212
212
|
<div
|
|
213
|
-
class="varClass customContainer
|
|
213
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
214
214
|
data-selector-id="textBoxIcon"
|
|
215
215
|
>
|
|
216
216
|
<div
|
|
@@ -311,7 +311,7 @@ exports[`ColorMultiSelect rendering the defult props 1`] = `
|
|
|
311
311
|
"
|
|
312
312
|
/>
|
|
313
313
|
<div
|
|
314
|
-
class="varClass customContainer
|
|
314
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
315
315
|
data-selector-id="textBoxIcon"
|
|
316
316
|
>
|
|
317
317
|
<div
|
|
@@ -394,7 +394,7 @@ exports[`ColorMultiSelect renders with renderCustomColorIndicator 1`] = `
|
|
|
394
394
|
"
|
|
395
395
|
/>
|
|
396
396
|
<div
|
|
397
|
-
class="varClass customContainer
|
|
397
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
398
398
|
data-selector-id="textBoxIcon"
|
|
399
399
|
>
|
|
400
400
|
<div
|
|
@@ -477,7 +477,7 @@ exports[`ColorMultiSelect renders with renderCustomSelectedValue 1`] = `
|
|
|
477
477
|
"
|
|
478
478
|
/>
|
|
479
479
|
<div
|
|
480
|
-
class="varClass customContainer
|
|
480
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
481
481
|
data-selector-id="textBoxIcon"
|
|
482
482
|
>
|
|
483
483
|
<div
|
|
@@ -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, {
|
|
@@ -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"
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = Portal;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
11
|
|
|
10
12
|
var _Portal = _interopRequireDefault(require("@zohodesk/dotkit/es/react/components/Portal/Portal"));
|
|
11
13
|
|
|
@@ -17,16 +19,18 @@ var _propTypes = require("./props/propTypes");
|
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
20
26
|
function Portal(_ref) {
|
|
21
27
|
var children = _ref.children,
|
|
22
28
|
portalId = _ref.portalId;
|
|
23
|
-
var
|
|
29
|
+
var getPortalContainer = (0, _react.useCallback)(function () {
|
|
30
|
+
var getConfigPortalContainer = (0, _Config.getLibraryConfig)('getPortalContainer');
|
|
24
31
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (getPortalContainer && typeof getPortalContainer === 'function') {
|
|
29
|
-
var portal = getPortalContainer();
|
|
32
|
+
if (getConfigPortalContainer && typeof getConfigPortalContainer === 'function') {
|
|
33
|
+
var portal = getConfigPortalContainer();
|
|
30
34
|
|
|
31
35
|
if (portal) {
|
|
32
36
|
return portal;
|
|
@@ -34,10 +38,13 @@ function Portal(_ref) {
|
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
return null;
|
|
37
|
-
};
|
|
38
|
-
|
|
41
|
+
}, []);
|
|
42
|
+
var memoizedPortalId = (0, _react.useMemo)(function () {
|
|
43
|
+
var portalPrefix = (0, _Config.getLibraryConfig)("portalPrefix");
|
|
44
|
+
return "".concat(portalPrefix ? "".concat(portalPrefix) : '').concat(portalId);
|
|
45
|
+
}, [portalId]);
|
|
39
46
|
return /*#__PURE__*/_react["default"].createElement(_Portal["default"], {
|
|
40
|
-
portalId:
|
|
47
|
+
portalId: memoizedPortalId,
|
|
41
48
|
getFallbackElement: getPortalContainer
|
|
42
49
|
}, children);
|
|
43
50
|
}
|
|
@@ -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"
|
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,
|
|
@@ -14,7 +14,7 @@ exports[`GroupSelect rendering the defult props 1`] = `
|
|
|
14
14
|
data-test-id="GroupSelect"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
17
|
-
class="varClass customContainer
|
|
17
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
18
18
|
data-selector-id="textBoxIcon"
|
|
19
19
|
>
|
|
20
20
|
<div
|