@zohodesk/components 1.6.4 → 1.6.5
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 +9 -0
- package/es/Select/GroupSelect.js +11 -3
- package/es/Select/Select.js +12 -3
- package/es/Select/SelectWithAvatar.js +11 -3
- package/es/Select/SelectWithIcon.js +3 -2
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +22 -22
- package/es/Select/props/defaultProps.js +6 -3
- package/es/Select/props/propTypes.js +16 -3
- package/lib/Select/GroupSelect.js +11 -3
- package/lib/Select/Select.js +11 -3
- package/lib/Select/SelectWithAvatar.js +11 -3
- package/lib/Select/SelectWithIcon.js +5 -3
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +22 -22
- package/lib/Select/props/defaultProps.js +7 -7
- package/lib/Select/props/propTypes.js +16 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
|
|
4
4
|
|
|
5
|
+
# 1.6.5
|
|
6
|
+
|
|
7
|
+
- Added cardContent support in **SelectWithIcon**.
|
|
8
|
+
- Added dropBoxClass replaced to dropBox support in **SelectWithIcon**. <span style="color:red">Impacted</span>
|
|
9
|
+
- Added dropBox,cardContent support in **Select**.
|
|
10
|
+
- Added dropBox,cardContent support in **GroupSelect**.
|
|
11
|
+
- Added dropBox,cardContent support in **SelectWithAvatar**.
|
|
12
|
+
|
|
5
13
|
# 1.6.4
|
|
14
|
+
|
|
6
15
|
- **Popup**
|
|
7
16
|
- Fixed an issue where the popup did not reposition correctly when the `mobileWidth` configuration was updated dynamically.
|
|
8
17
|
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -594,7 +594,8 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
594
594
|
iconOnHover,
|
|
595
595
|
isLoading,
|
|
596
596
|
dataSelectorId,
|
|
597
|
-
customProps
|
|
597
|
+
customProps,
|
|
598
|
+
customClass
|
|
598
599
|
} = this.props;
|
|
599
600
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
600
601
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -628,6 +629,10 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
628
629
|
TextBoxProps = {},
|
|
629
630
|
SuggestionsProps = {}
|
|
630
631
|
} = customProps;
|
|
632
|
+
const {
|
|
633
|
+
dropBox: dropBoxClass = '',
|
|
634
|
+
cardContent: cardContentClass = ''
|
|
635
|
+
} = customClass;
|
|
631
636
|
return /*#__PURE__*/React.createElement("div", {
|
|
632
637
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
633
638
|
"data-id": dataIdSlctComp,
|
|
@@ -731,7 +736,10 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
731
736
|
isRestrictScroll: isRestrictScroll,
|
|
732
737
|
isResponsivePadding: getFooter ? false : true,
|
|
733
738
|
alignBox: "row",
|
|
734
|
-
dataId: `${dataId}_suggestionBox
|
|
739
|
+
dataId: `${dataId}_suggestionBox`,
|
|
740
|
+
customClass: {
|
|
741
|
+
customDropBox: dropBoxClass
|
|
742
|
+
}
|
|
735
743
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
736
744
|
align: "both",
|
|
737
745
|
className: style.loader
|
|
@@ -760,7 +768,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
760
768
|
dataId: `${dataId}_search`
|
|
761
769
|
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
762
770
|
shrink: true,
|
|
763
|
-
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : ''
|
|
771
|
+
customClass: `${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''} ${cardContentClass}`,
|
|
764
772
|
eleRef: this.suggestionContainerRef
|
|
765
773
|
}, suggestionGroups.length ? suggestionGroups.map(group => {
|
|
766
774
|
let {
|
package/es/Select/Select.js
CHANGED
|
@@ -812,7 +812,8 @@ export class SelectComponent extends Component {
|
|
|
812
812
|
renderCustomToggleIndicator,
|
|
813
813
|
renderCustomSearchClearComponent,
|
|
814
814
|
renderCustomSelectedValue,
|
|
815
|
-
inputFieldLineA11y
|
|
815
|
+
inputFieldLineA11y,
|
|
816
|
+
customClass
|
|
816
817
|
} = this.props;
|
|
817
818
|
let {
|
|
818
819
|
TextBoxIcon_i18n,
|
|
@@ -841,6 +842,10 @@ export class SelectComponent extends Component {
|
|
|
841
842
|
TextBoxIconProps = {},
|
|
842
843
|
InputFieldLineProps = {}
|
|
843
844
|
} = customProps;
|
|
845
|
+
const {
|
|
846
|
+
dropBox: dropBoxClass = '',
|
|
847
|
+
cardContent: cardContentClass = ''
|
|
848
|
+
} = customClass;
|
|
844
849
|
const inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
|
|
845
850
|
setAriaId,
|
|
846
851
|
isReadOnly,
|
|
@@ -1014,7 +1019,10 @@ export class SelectComponent extends Component {
|
|
|
1014
1019
|
positionsOffset: positionsOffset,
|
|
1015
1020
|
targetOffset: targetOffset,
|
|
1016
1021
|
isRestrictScroll: isRestrictScroll,
|
|
1017
|
-
portalId: dropBoxPortalId
|
|
1022
|
+
portalId: dropBoxPortalId,
|
|
1023
|
+
customClass: {
|
|
1024
|
+
customDropBox: dropBoxClass
|
|
1025
|
+
}
|
|
1018
1026
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
1019
1027
|
align: "both",
|
|
1020
1028
|
className: style.loader
|
|
@@ -1047,7 +1055,8 @@ export class SelectComponent extends Component {
|
|
|
1047
1055
|
renderCustomClearComponent: renderCustomSearchClearComponent
|
|
1048
1056
|
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
1049
1057
|
shrink: true,
|
|
1050
|
-
customClass:
|
|
1058
|
+
customClass: `
|
|
1059
|
+
${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''} ${cardContentClass}`,
|
|
1051
1060
|
eleRef: this.suggestionContainerRef
|
|
1052
1061
|
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
1053
1062
|
key: searchStr.trim(),
|
|
@@ -173,7 +173,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
173
173
|
isLoading,
|
|
174
174
|
dataSelectorId,
|
|
175
175
|
getTargetRef,
|
|
176
|
-
customProps
|
|
176
|
+
customProps,
|
|
177
|
+
customClass
|
|
177
178
|
} = this.props;
|
|
178
179
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
179
180
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -200,6 +201,10 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
200
201
|
DropdownSearchTextBoxProps,
|
|
201
202
|
SuggestionsProps = {}
|
|
202
203
|
} = customProps;
|
|
204
|
+
const {
|
|
205
|
+
dropBox: dropBoxClass = '',
|
|
206
|
+
cardContent: cardContentClass = ''
|
|
207
|
+
} = customClass;
|
|
203
208
|
return /*#__PURE__*/React.createElement("div", {
|
|
204
209
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
|
|
205
210
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
@@ -283,7 +288,10 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
283
288
|
isPadding: false,
|
|
284
289
|
isResponsivePadding: true,
|
|
285
290
|
alignBox: "row",
|
|
286
|
-
dataId: `${dataId}_dropbox
|
|
291
|
+
dataId: `${dataId}_dropbox`,
|
|
292
|
+
customClass: {
|
|
293
|
+
customDropBox: dropBoxClass
|
|
294
|
+
}
|
|
287
295
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
288
296
|
align: "both",
|
|
289
297
|
className: style.loader
|
|
@@ -311,7 +319,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
311
319
|
autoComplete: false
|
|
312
320
|
}, DropdownSearchTextBoxProps)))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
313
321
|
shrink: true,
|
|
314
|
-
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : ''
|
|
322
|
+
customClass: `${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''} ${cardContentClass}`,
|
|
315
323
|
eleRef: this.suggestionContainerRef
|
|
316
324
|
}, groupName ? /*#__PURE__*/React.createElement("div", {
|
|
317
325
|
className: style.title
|
|
@@ -382,7 +382,8 @@ class SelectWithIcon extends Component {
|
|
|
382
382
|
ListItemProps = {}
|
|
383
383
|
} = customProps;
|
|
384
384
|
const {
|
|
385
|
-
dropBoxClass = ''
|
|
385
|
+
dropBox: dropBoxClass = '',
|
|
386
|
+
cardContent: cardContentClass = ''
|
|
386
387
|
} = customClass;
|
|
387
388
|
return /*#__PURE__*/React.createElement("div", {
|
|
388
389
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
@@ -514,7 +515,7 @@ class SelectWithIcon extends Component {
|
|
|
514
515
|
TextBoxProps: DropdownSearchTextBoxProps
|
|
515
516
|
}
|
|
516
517
|
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
517
|
-
customClass: `${tabletMode ? style.responsivedropBoxList : style.dropBoxList} ${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''}`,
|
|
518
|
+
customClass: `${tabletMode ? style.responsivedropBoxList : style.dropBoxList} ${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''} ${cardContentClass}`,
|
|
518
519
|
shrink: true,
|
|
519
520
|
eleRef: this.scrollContentRef,
|
|
520
521
|
dataId: `${dataId}_Options`
|
|
@@ -219,7 +219,7 @@ exports[`Select - Should highlight the next list-items, when arrow keys pressed
|
|
|
219
219
|
data-test-id="containerComponent"
|
|
220
220
|
>
|
|
221
221
|
<div
|
|
222
|
-
class="small
|
|
222
|
+
class="small grow basis shrinkOn scrolly"
|
|
223
223
|
data-id="CardContent"
|
|
224
224
|
data-selector-id="cardContent"
|
|
225
225
|
data-test-id="CardContent"
|
|
@@ -692,7 +692,7 @@ exports[`Select - Should open the dropdown, when click on the input 1`] = `
|
|
|
692
692
|
data-test-id="containerComponent"
|
|
693
693
|
>
|
|
694
694
|
<div
|
|
695
|
-
class="small
|
|
695
|
+
class="small grow basis shrinkOn scrolly"
|
|
696
696
|
data-id="CardContent"
|
|
697
697
|
data-selector-id="cardContent"
|
|
698
698
|
data-test-id="CardContent"
|
|
@@ -890,7 +890,7 @@ exports[`Select - Should render all the options when search value is cleared 1`]
|
|
|
890
890
|
</div>
|
|
891
891
|
</div>
|
|
892
892
|
<div
|
|
893
|
-
class="small
|
|
893
|
+
class="small grow basis shrinkOn scrolly"
|
|
894
894
|
data-id="CardContent"
|
|
895
895
|
data-selector-id="cardContent"
|
|
896
896
|
data-test-id="CardContent"
|
|
@@ -1177,7 +1177,7 @@ exports[`Select - Should render given the options 1`] = `
|
|
|
1177
1177
|
data-test-id="containerComponent"
|
|
1178
1178
|
>
|
|
1179
1179
|
<div
|
|
1180
|
-
class="small
|
|
1180
|
+
class="small grow basis shrinkOn scrolly"
|
|
1181
1181
|
data-id="CardContent"
|
|
1182
1182
|
data-selector-id="cardContent"
|
|
1183
1183
|
data-test-id="CardContent"
|
|
@@ -1790,7 +1790,7 @@ exports[`Select - Should render the only options matching search value 1`] = `
|
|
|
1790
1790
|
</div>
|
|
1791
1791
|
</div>
|
|
1792
1792
|
<div
|
|
1793
|
-
class="small
|
|
1793
|
+
class="small grow basis shrinkOn scrolly"
|
|
1794
1794
|
data-id="CardContent"
|
|
1795
1795
|
data-selector-id="cardContent"
|
|
1796
1796
|
data-test-id="CardContent"
|
|
@@ -2060,7 +2060,7 @@ exports[`Select - Should render the only options matching search value even with
|
|
|
2060
2060
|
</div>
|
|
2061
2061
|
</div>
|
|
2062
2062
|
<div
|
|
2063
|
-
class="small
|
|
2063
|
+
class="small grow basis shrinkOn scrolly"
|
|
2064
2064
|
data-id="CardContent"
|
|
2065
2065
|
data-selector-id="cardContent"
|
|
2066
2066
|
data-test-id="CardContent"
|
|
@@ -2398,7 +2398,7 @@ exports[`Select - Should show the custom empty state using getCustomEmptyState p
|
|
|
2398
2398
|
</div>
|
|
2399
2399
|
</div>
|
|
2400
2400
|
<div
|
|
2401
|
-
class="small
|
|
2401
|
+
class="small grow basis shrinkOn scrolly"
|
|
2402
2402
|
data-id="CardContent"
|
|
2403
2403
|
data-selector-id="cardContent"
|
|
2404
2404
|
data-test-id="CardContent"
|
|
@@ -2541,7 +2541,7 @@ exports[`Select - Should show the empty message when open the dropdown with no o
|
|
|
2541
2541
|
data-test-id="containerComponent"
|
|
2542
2542
|
>
|
|
2543
2543
|
<div
|
|
2544
|
-
class="small
|
|
2544
|
+
class="small grow basis shrinkOn scrolly"
|
|
2545
2545
|
data-id="CardContent"
|
|
2546
2546
|
data-selector-id="cardContent"
|
|
2547
2547
|
data-test-id="CardContent"
|
|
@@ -2691,7 +2691,7 @@ exports[`Select - Should trigger getNextOptions, when scroll to the end of the d
|
|
|
2691
2691
|
data-test-id="containerComponent"
|
|
2692
2692
|
>
|
|
2693
2693
|
<div
|
|
2694
|
-
class="small
|
|
2694
|
+
class="small grow basis shrinkOn scrolly"
|
|
2695
2695
|
data-id="CardContent"
|
|
2696
2696
|
data-selector-id="cardContent"
|
|
2697
2697
|
data-test-id="CardContent"
|
|
@@ -3335,7 +3335,7 @@ exports[`Select - Should trigger getNextOptions, when search with needLocalSearc
|
|
|
3335
3335
|
</div>
|
|
3336
3336
|
</div>
|
|
3337
3337
|
<div
|
|
3338
|
-
class="small
|
|
3338
|
+
class="small grow basis shrinkOn scrolly"
|
|
3339
3339
|
data-id="CardContent"
|
|
3340
3340
|
data-selector-id="cardContent"
|
|
3341
3341
|
data-test-id="CardContent"
|
|
@@ -3720,7 +3720,7 @@ exports[`Select - Should trigger onAddNewOption, when click on the custom search
|
|
|
3720
3720
|
</div>
|
|
3721
3721
|
</div>
|
|
3722
3722
|
<div
|
|
3723
|
-
class="small
|
|
3723
|
+
class="small grow basis shrinkOn scrolly"
|
|
3724
3724
|
data-id="CardContent"
|
|
3725
3725
|
data-selector-id="cardContent"
|
|
3726
3726
|
data-test-id="CardContent"
|
|
@@ -3865,7 +3865,7 @@ exports[`Select - Should update the value when select the option 1`] = `
|
|
|
3865
3865
|
data-test-id="containerComponent"
|
|
3866
3866
|
>
|
|
3867
3867
|
<div
|
|
3868
|
-
class="small
|
|
3868
|
+
class="small grow basis shrinkOn scrolly"
|
|
3869
3869
|
data-id="CardContent"
|
|
3870
3870
|
data-selector-id="cardContent"
|
|
3871
3871
|
data-test-id="CardContent"
|
|
@@ -5165,7 +5165,7 @@ exports[`Select box needSelectDownIcon snapshot - Should render with isPopupOpe
|
|
|
5165
5165
|
data-test-id="containerComponent"
|
|
5166
5166
|
>
|
|
5167
5167
|
<div
|
|
5168
|
-
class="small
|
|
5168
|
+
class="small grow basis shrinkOn scrolly"
|
|
5169
5169
|
data-id="CardContent"
|
|
5170
5170
|
data-selector-id="cardContent"
|
|
5171
5171
|
data-test-id="CardContent"
|
|
@@ -5312,7 +5312,7 @@ exports[`Select box needSelectDownIcon snapshot - Should render with isPopupOpe
|
|
|
5312
5312
|
data-test-id="containerComponent"
|
|
5313
5313
|
>
|
|
5314
5314
|
<div
|
|
5315
|
-
class="small
|
|
5315
|
+
class="small grow basis shrinkOn scrolly"
|
|
5316
5316
|
data-id="CardContent"
|
|
5317
5317
|
data-selector-id="cardContent"
|
|
5318
5318
|
data-test-id="CardContent"
|
|
@@ -7138,7 +7138,7 @@ exports[`Select dataId snapshot - Should render with dataId prop - dropbox open
|
|
|
7138
7138
|
</div>
|
|
7139
7139
|
</div>
|
|
7140
7140
|
<div
|
|
7141
|
-
class="small
|
|
7141
|
+
class="small grow basis shrinkOn scrolly"
|
|
7142
7142
|
data-id="CardContent"
|
|
7143
7143
|
data-selector-id="cardContent"
|
|
7144
7144
|
data-test-id="CardContent"
|
|
@@ -7365,7 +7365,7 @@ exports[`Select dataId snapshot - Should render with dataId prop - empty state
|
|
|
7365
7365
|
data-test-id="containerComponent"
|
|
7366
7366
|
>
|
|
7367
7367
|
<div
|
|
7368
|
-
class="small
|
|
7368
|
+
class="small grow basis shrinkOn scrolly"
|
|
7369
7369
|
data-id="CardContent"
|
|
7370
7370
|
data-selector-id="cardContent"
|
|
7371
7371
|
data-test-id="CardContent"
|
|
@@ -7840,7 +7840,7 @@ exports[`Select snapshot - Should render with children and dropdown open 1`] =
|
|
|
7840
7840
|
data-test-id="containerComponent"
|
|
7841
7841
|
>
|
|
7842
7842
|
<div
|
|
7843
|
-
class="small
|
|
7843
|
+
class="small grow basis shrinkOn scrolly"
|
|
7844
7844
|
data-id="CardContent"
|
|
7845
7845
|
data-selector-id="cardContent"
|
|
7846
7846
|
data-test-id="CardContent"
|
|
@@ -8132,7 +8132,7 @@ exports[`Select snapshot - Should render with customProps 1`] = `
|
|
|
8132
8132
|
</div>
|
|
8133
8133
|
</div>
|
|
8134
8134
|
<div
|
|
8135
|
-
class="small
|
|
8135
|
+
class="small grow basis shrinkOn scrolly"
|
|
8136
8136
|
data-id="CardContent"
|
|
8137
8137
|
data-selector-id="cardContent"
|
|
8138
8138
|
data-test-id="CardContent"
|
|
@@ -8561,7 +8561,7 @@ exports[`Select snapshot - Should render with dropBoxSize as large 1`] = `
|
|
|
8561
8561
|
</div>
|
|
8562
8562
|
</div>
|
|
8563
8563
|
<div
|
|
8564
|
-
class="large
|
|
8564
|
+
class="large grow basis shrinkOn scrolly"
|
|
8565
8565
|
data-id="CardContent"
|
|
8566
8566
|
data-selector-id="cardContent"
|
|
8567
8567
|
data-test-id="CardContent"
|
|
@@ -8758,7 +8758,7 @@ exports[`Select snapshot - Should render with dropBoxSize as medium 1`] = `
|
|
|
8758
8758
|
</div>
|
|
8759
8759
|
</div>
|
|
8760
8760
|
<div
|
|
8761
|
-
class="medium
|
|
8761
|
+
class="medium grow basis shrinkOn scrolly"
|
|
8762
8762
|
data-id="CardContent"
|
|
8763
8763
|
data-selector-id="cardContent"
|
|
8764
8764
|
data-test-id="CardContent"
|
|
@@ -8955,7 +8955,7 @@ exports[`Select snapshot - Should render with dropBoxSize as small 1`] = `
|
|
|
8955
8955
|
</div>
|
|
8956
8956
|
</div>
|
|
8957
8957
|
<div
|
|
8958
|
-
class="small
|
|
8958
|
+
class="small grow basis shrinkOn scrolly"
|
|
8959
8959
|
data-id="CardContent"
|
|
8960
8960
|
data-selector-id="cardContent"
|
|
8961
8961
|
data-test-id="CardContent"
|
|
@@ -9231,7 +9231,7 @@ exports[`Select snapshot - Should render with getFooter 1`] = `
|
|
|
9231
9231
|
data-test-id="containerComponent"
|
|
9232
9232
|
>
|
|
9233
9233
|
<div
|
|
9234
|
-
class="small
|
|
9234
|
+
class="small grow basis shrinkOn scrolly"
|
|
9235
9235
|
data-id="CardContent"
|
|
9236
9236
|
data-selector-id="cardContent"
|
|
9237
9237
|
data-test-id="CardContent"
|
|
@@ -37,7 +37,8 @@ export const Select_defaultProps = {
|
|
|
37
37
|
isLoading: false,
|
|
38
38
|
isAbsolutePositioningNeeded: true,
|
|
39
39
|
allowValueFallback: true,
|
|
40
|
-
inputFieldLineA11y: {}
|
|
40
|
+
inputFieldLineA11y: {},
|
|
41
|
+
customClass: {}
|
|
41
42
|
};
|
|
42
43
|
export const GroupSelect_defaultProps = {
|
|
43
44
|
animationStyle: 'bounce',
|
|
@@ -75,7 +76,8 @@ export const GroupSelect_defaultProps = {
|
|
|
75
76
|
iconOnHover: false,
|
|
76
77
|
isLoading: false,
|
|
77
78
|
customProps: {},
|
|
78
|
-
allowValueFallback: true
|
|
79
|
+
allowValueFallback: true,
|
|
80
|
+
customClass: {}
|
|
79
81
|
};
|
|
80
82
|
export const SelectWithAvatar_defaultProps = {
|
|
81
83
|
animationStyle: 'bounce',
|
|
@@ -103,7 +105,8 @@ export const SelectWithAvatar_defaultProps = {
|
|
|
103
105
|
customProps: {},
|
|
104
106
|
needEffect: true,
|
|
105
107
|
isLoading: false,
|
|
106
|
-
customProps: {}
|
|
108
|
+
customProps: {},
|
|
109
|
+
customClass: {}
|
|
107
110
|
};
|
|
108
111
|
export const SelectWithIcon_defaultProps = {
|
|
109
112
|
isReadOnly: false,
|
|
@@ -104,7 +104,11 @@ export const Select_propTypes = {
|
|
|
104
104
|
renderCustomToggleIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
105
105
|
renderCustomSearchClearComponent: PropTypes.func,
|
|
106
106
|
renderCustomSelectedValue: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
107
|
-
inputFieldLineA11y: PropTypes.object
|
|
107
|
+
inputFieldLineA11y: PropTypes.object,
|
|
108
|
+
customClass: PropTypes.shape({
|
|
109
|
+
dropBox: PropTypes.string,
|
|
110
|
+
cardContent: PropTypes.string
|
|
111
|
+
})
|
|
108
112
|
};
|
|
109
113
|
export const GroupSelect_propTypes = {
|
|
110
114
|
groupedOptions: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -192,7 +196,11 @@ export const GroupSelect_propTypes = {
|
|
|
192
196
|
TextBoxIconProps: PropTypes.object,
|
|
193
197
|
SuggestionsProps: PropTypes.object
|
|
194
198
|
}),
|
|
195
|
-
allowValueFallback: PropTypes.bool
|
|
199
|
+
allowValueFallback: PropTypes.bool,
|
|
200
|
+
customClass: PropTypes.shape({
|
|
201
|
+
dropBox: PropTypes.string,
|
|
202
|
+
cardContent: PropTypes.string
|
|
203
|
+
})
|
|
196
204
|
};
|
|
197
205
|
export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
198
206
|
textBoxClass: PropTypes.string,
|
|
@@ -256,6 +264,10 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
|
256
264
|
dataSelectorId: PropTypes.string,
|
|
257
265
|
customProps: PropTypes.shape({
|
|
258
266
|
SuggestionsProps: PropTypes.object
|
|
267
|
+
}),
|
|
268
|
+
customClass: PropTypes.shape({
|
|
269
|
+
dropBox: PropTypes.string,
|
|
270
|
+
cardContent: PropTypes.string
|
|
259
271
|
})
|
|
260
272
|
};
|
|
261
273
|
export const SelectWithIcon_propTypes = {
|
|
@@ -326,6 +338,7 @@ export const SelectWithIcon_propTypes = {
|
|
|
326
338
|
ListItemProps: PropTypes.object
|
|
327
339
|
}),
|
|
328
340
|
customClass: PropTypes.shape({
|
|
329
|
-
|
|
341
|
+
dropBox: PropTypes.string,
|
|
342
|
+
cardContent: PropTypes.string
|
|
330
343
|
})
|
|
331
344
|
};
|
|
@@ -670,7 +670,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
670
670
|
iconOnHover = _this$props9.iconOnHover,
|
|
671
671
|
isLoading = _this$props9.isLoading,
|
|
672
672
|
dataSelectorId = _this$props9.dataSelectorId,
|
|
673
|
-
customProps = _this$props9.customProps
|
|
673
|
+
customProps = _this$props9.customProps,
|
|
674
|
+
customClass = _this$props9.customClass;
|
|
674
675
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
675
676
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
676
677
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -703,6 +704,10 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
703
704
|
TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP,
|
|
704
705
|
_customProps$Suggesti = customProps.SuggestionsProps,
|
|
705
706
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
707
|
+
var _customClass$dropBox = customClass.dropBox,
|
|
708
|
+
dropBoxClass = _customClass$dropBox === void 0 ? '' : _customClass$dropBox,
|
|
709
|
+
_customClass$cardCont = customClass.cardContent,
|
|
710
|
+
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont;
|
|
706
711
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
707
712
|
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 : ''),
|
|
708
713
|
"data-id": dataIdSlctComp,
|
|
@@ -804,7 +809,10 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
804
809
|
isRestrictScroll: isRestrictScroll,
|
|
805
810
|
isResponsivePadding: getFooter ? false : true,
|
|
806
811
|
alignBox: "row",
|
|
807
|
-
dataId: "".concat(dataId, "_suggestionBox")
|
|
812
|
+
dataId: "".concat(dataId, "_suggestionBox"),
|
|
813
|
+
customClass: {
|
|
814
|
+
customDropBox: dropBoxClass
|
|
815
|
+
}
|
|
808
816
|
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
809
817
|
align: "both",
|
|
810
818
|
className: _SelectModule["default"].loader
|
|
@@ -833,7 +841,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
833
841
|
dataId: "".concat(dataId, "_search")
|
|
834
842
|
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
835
843
|
shrink: true,
|
|
836
|
-
customClass: !tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
|
|
844
|
+
customClass: "".concat(!tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '', " ").concat(cardContentClass),
|
|
837
845
|
eleRef: _this7.suggestionContainerRef
|
|
838
846
|
}, suggestionGroups.length ? suggestionGroups.map(function (group) {
|
|
839
847
|
var groupId = group.id,
|
package/lib/Select/Select.js
CHANGED
|
@@ -859,7 +859,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
859
859
|
renderCustomToggleIndicator = _this$props11.renderCustomToggleIndicator,
|
|
860
860
|
renderCustomSearchClearComponent = _this$props11.renderCustomSearchClearComponent,
|
|
861
861
|
renderCustomSelectedValue = _this$props11.renderCustomSelectedValue,
|
|
862
|
-
inputFieldLineA11y = _this$props11.inputFieldLineA11y
|
|
862
|
+
inputFieldLineA11y = _this$props11.inputFieldLineA11y,
|
|
863
|
+
customClass = _this$props11.customClass;
|
|
863
864
|
var _i18nKeys = i18nKeys,
|
|
864
865
|
TextBoxIcon_i18n = _i18nKeys.TextBoxIcon_i18n,
|
|
865
866
|
_i18nKeys$TextBox_all = _i18nKeys.TextBox_ally_label,
|
|
@@ -889,6 +890,10 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
889
890
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
890
891
|
_customProps$InputFie = customProps.InputFieldLineProps,
|
|
891
892
|
InputFieldLineProps = _customProps$InputFie === void 0 ? {} : _customProps$InputFie;
|
|
893
|
+
var _customClass$dropBox = customClass.dropBox,
|
|
894
|
+
dropBoxClass = _customClass$dropBox === void 0 ? '' : _customClass$dropBox,
|
|
895
|
+
_customClass$cardCont = customClass.cardContent,
|
|
896
|
+
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont;
|
|
892
897
|
var inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
|
|
893
898
|
setAriaId: setAriaId,
|
|
894
899
|
isReadOnly: isReadOnly,
|
|
@@ -1058,7 +1063,10 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
1058
1063
|
positionsOffset: positionsOffset,
|
|
1059
1064
|
targetOffset: targetOffset,
|
|
1060
1065
|
isRestrictScroll: isRestrictScroll,
|
|
1061
|
-
portalId: dropBoxPortalId
|
|
1066
|
+
portalId: dropBoxPortalId,
|
|
1067
|
+
customClass: {
|
|
1068
|
+
customDropBox: dropBoxClass
|
|
1069
|
+
}
|
|
1062
1070
|
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1063
1071
|
align: "both",
|
|
1064
1072
|
className: _SelectModule["default"].loader
|
|
@@ -1091,7 +1099,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
1091
1099
|
renderCustomClearComponent: renderCustomSearchClearComponent
|
|
1092
1100
|
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1093
1101
|
shrink: true,
|
|
1094
|
-
customClass: !tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
|
|
1102
|
+
customClass: "\n ".concat(!tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '', " ").concat(cardContentClass),
|
|
1095
1103
|
eleRef: _this7.suggestionContainerRef
|
|
1096
1104
|
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1097
1105
|
key: searchStr.trim(),
|
|
@@ -223,7 +223,8 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
223
223
|
isLoading = _this$props.isLoading,
|
|
224
224
|
dataSelectorId = _this$props.dataSelectorId,
|
|
225
225
|
getTargetRef = _this$props.getTargetRef,
|
|
226
|
-
customProps = _this$props.customProps
|
|
226
|
+
customProps = _this$props.customProps,
|
|
227
|
+
customClass = _this$props.customClass;
|
|
227
228
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
228
229
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
229
230
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -248,6 +249,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
248
249
|
DropdownSearchTextBoxProps = customProps.DropdownSearchTextBoxProps,
|
|
249
250
|
_customProps$Suggesti = customProps.SuggestionsProps,
|
|
250
251
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
252
|
+
var _customClass$dropBox = customClass.dropBox,
|
|
253
|
+
dropBoxClass = _customClass$dropBox === void 0 ? '' : _customClass$dropBox,
|
|
254
|
+
_customClass$cardCont = customClass.cardContent,
|
|
255
|
+
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont;
|
|
251
256
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
252
257
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : '', " ").concat(className ? className : ''),
|
|
253
258
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
@@ -329,7 +334,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
329
334
|
isPadding: false,
|
|
330
335
|
isResponsivePadding: true,
|
|
331
336
|
alignBox: "row",
|
|
332
|
-
dataId: "".concat(dataId, "_dropbox")
|
|
337
|
+
dataId: "".concat(dataId, "_dropbox"),
|
|
338
|
+
customClass: {
|
|
339
|
+
customDropBox: dropBoxClass
|
|
340
|
+
}
|
|
333
341
|
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
334
342
|
align: "both",
|
|
335
343
|
className: _MultiSelectModule["default"].loader
|
|
@@ -357,7 +365,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
357
365
|
autoComplete: false
|
|
358
366
|
}, DropdownSearchTextBoxProps)))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
359
367
|
shrink: true,
|
|
360
|
-
customClass: !tabletMode && dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
368
|
+
customClass: "".concat(!tabletMode && dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '', " ").concat(cardContentClass),
|
|
361
369
|
eleRef: _this2.suggestionContainerRef
|
|
362
370
|
}, groupName ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
363
371
|
className: _MultiSelectModule["default"].title
|
|
@@ -453,8 +453,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
453
453
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
454
454
|
_customProps$ListItem = customProps.ListItemProps,
|
|
455
455
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
456
|
-
var _customClass$
|
|
457
|
-
dropBoxClass = _customClass$
|
|
456
|
+
var _customClass$dropBox = customClass.dropBox,
|
|
457
|
+
dropBoxClass = _customClass$dropBox === void 0 ? '' : _customClass$dropBox,
|
|
458
|
+
_customClass$cardCont = customClass.cardContent,
|
|
459
|
+
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont;
|
|
458
460
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
459
461
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : ''),
|
|
460
462
|
"data-title": isDisabled ? title : null,
|
|
@@ -582,7 +584,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
582
584
|
TextBoxProps: DropdownSearchTextBoxProps
|
|
583
585
|
}
|
|
584
586
|
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
585
|
-
customClass: "".concat(tabletMode ? _SelectModule["default"].responsivedropBoxList : _SelectModule["default"].dropBoxList, " ").concat(!tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : ''),
|
|
587
|
+
customClass: "".concat(tabletMode ? _SelectModule["default"].responsivedropBoxList : _SelectModule["default"].dropBoxList, " ").concat(!tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '', " ").concat(cardContentClass),
|
|
586
588
|
shrink: true,
|
|
587
589
|
eleRef: _this5.scrollContentRef,
|
|
588
590
|
dataId: "".concat(dataId, "_Options")
|
|
@@ -219,7 +219,7 @@ exports[`Select - Should highlight the next list-items, when arrow keys pressed
|
|
|
219
219
|
data-test-id="containerComponent"
|
|
220
220
|
>
|
|
221
221
|
<div
|
|
222
|
-
class="small
|
|
222
|
+
class="small grow basis shrinkOn scrolly"
|
|
223
223
|
data-id="CardContent"
|
|
224
224
|
data-selector-id="cardContent"
|
|
225
225
|
data-test-id="CardContent"
|
|
@@ -692,7 +692,7 @@ exports[`Select - Should open the dropdown, when click on the input 1`] = `
|
|
|
692
692
|
data-test-id="containerComponent"
|
|
693
693
|
>
|
|
694
694
|
<div
|
|
695
|
-
class="small
|
|
695
|
+
class="small grow basis shrinkOn scrolly"
|
|
696
696
|
data-id="CardContent"
|
|
697
697
|
data-selector-id="cardContent"
|
|
698
698
|
data-test-id="CardContent"
|
|
@@ -890,7 +890,7 @@ exports[`Select - Should render all the options when search value is cleared 1`]
|
|
|
890
890
|
</div>
|
|
891
891
|
</div>
|
|
892
892
|
<div
|
|
893
|
-
class="small
|
|
893
|
+
class="small grow basis shrinkOn scrolly"
|
|
894
894
|
data-id="CardContent"
|
|
895
895
|
data-selector-id="cardContent"
|
|
896
896
|
data-test-id="CardContent"
|
|
@@ -1177,7 +1177,7 @@ exports[`Select - Should render given the options 1`] = `
|
|
|
1177
1177
|
data-test-id="containerComponent"
|
|
1178
1178
|
>
|
|
1179
1179
|
<div
|
|
1180
|
-
class="small
|
|
1180
|
+
class="small grow basis shrinkOn scrolly"
|
|
1181
1181
|
data-id="CardContent"
|
|
1182
1182
|
data-selector-id="cardContent"
|
|
1183
1183
|
data-test-id="CardContent"
|
|
@@ -1790,7 +1790,7 @@ exports[`Select - Should render the only options matching search value 1`] = `
|
|
|
1790
1790
|
</div>
|
|
1791
1791
|
</div>
|
|
1792
1792
|
<div
|
|
1793
|
-
class="small
|
|
1793
|
+
class="small grow basis shrinkOn scrolly"
|
|
1794
1794
|
data-id="CardContent"
|
|
1795
1795
|
data-selector-id="cardContent"
|
|
1796
1796
|
data-test-id="CardContent"
|
|
@@ -2060,7 +2060,7 @@ exports[`Select - Should render the only options matching search value even with
|
|
|
2060
2060
|
</div>
|
|
2061
2061
|
</div>
|
|
2062
2062
|
<div
|
|
2063
|
-
class="small
|
|
2063
|
+
class="small grow basis shrinkOn scrolly"
|
|
2064
2064
|
data-id="CardContent"
|
|
2065
2065
|
data-selector-id="cardContent"
|
|
2066
2066
|
data-test-id="CardContent"
|
|
@@ -2398,7 +2398,7 @@ exports[`Select - Should show the custom empty state using getCustomEmptyState p
|
|
|
2398
2398
|
</div>
|
|
2399
2399
|
</div>
|
|
2400
2400
|
<div
|
|
2401
|
-
class="small
|
|
2401
|
+
class="small grow basis shrinkOn scrolly"
|
|
2402
2402
|
data-id="CardContent"
|
|
2403
2403
|
data-selector-id="cardContent"
|
|
2404
2404
|
data-test-id="CardContent"
|
|
@@ -2541,7 +2541,7 @@ exports[`Select - Should show the empty message when open the dropdown with no o
|
|
|
2541
2541
|
data-test-id="containerComponent"
|
|
2542
2542
|
>
|
|
2543
2543
|
<div
|
|
2544
|
-
class="small
|
|
2544
|
+
class="small grow basis shrinkOn scrolly"
|
|
2545
2545
|
data-id="CardContent"
|
|
2546
2546
|
data-selector-id="cardContent"
|
|
2547
2547
|
data-test-id="CardContent"
|
|
@@ -2691,7 +2691,7 @@ exports[`Select - Should trigger getNextOptions, when scroll to the end of the d
|
|
|
2691
2691
|
data-test-id="containerComponent"
|
|
2692
2692
|
>
|
|
2693
2693
|
<div
|
|
2694
|
-
class="small
|
|
2694
|
+
class="small grow basis shrinkOn scrolly"
|
|
2695
2695
|
data-id="CardContent"
|
|
2696
2696
|
data-selector-id="cardContent"
|
|
2697
2697
|
data-test-id="CardContent"
|
|
@@ -3335,7 +3335,7 @@ exports[`Select - Should trigger getNextOptions, when search with needLocalSearc
|
|
|
3335
3335
|
</div>
|
|
3336
3336
|
</div>
|
|
3337
3337
|
<div
|
|
3338
|
-
class="small
|
|
3338
|
+
class="small grow basis shrinkOn scrolly"
|
|
3339
3339
|
data-id="CardContent"
|
|
3340
3340
|
data-selector-id="cardContent"
|
|
3341
3341
|
data-test-id="CardContent"
|
|
@@ -3720,7 +3720,7 @@ exports[`Select - Should trigger onAddNewOption, when click on the custom search
|
|
|
3720
3720
|
</div>
|
|
3721
3721
|
</div>
|
|
3722
3722
|
<div
|
|
3723
|
-
class="small
|
|
3723
|
+
class="small grow basis shrinkOn scrolly"
|
|
3724
3724
|
data-id="CardContent"
|
|
3725
3725
|
data-selector-id="cardContent"
|
|
3726
3726
|
data-test-id="CardContent"
|
|
@@ -3865,7 +3865,7 @@ exports[`Select - Should update the value when select the option 1`] = `
|
|
|
3865
3865
|
data-test-id="containerComponent"
|
|
3866
3866
|
>
|
|
3867
3867
|
<div
|
|
3868
|
-
class="small
|
|
3868
|
+
class="small grow basis shrinkOn scrolly"
|
|
3869
3869
|
data-id="CardContent"
|
|
3870
3870
|
data-selector-id="cardContent"
|
|
3871
3871
|
data-test-id="CardContent"
|
|
@@ -5165,7 +5165,7 @@ exports[`Select box needSelectDownIcon snapshot - Should render with isPopupOpe
|
|
|
5165
5165
|
data-test-id="containerComponent"
|
|
5166
5166
|
>
|
|
5167
5167
|
<div
|
|
5168
|
-
class="small
|
|
5168
|
+
class="small grow basis shrinkOn scrolly"
|
|
5169
5169
|
data-id="CardContent"
|
|
5170
5170
|
data-selector-id="cardContent"
|
|
5171
5171
|
data-test-id="CardContent"
|
|
@@ -5312,7 +5312,7 @@ exports[`Select box needSelectDownIcon snapshot - Should render with isPopupOpe
|
|
|
5312
5312
|
data-test-id="containerComponent"
|
|
5313
5313
|
>
|
|
5314
5314
|
<div
|
|
5315
|
-
class="small
|
|
5315
|
+
class="small grow basis shrinkOn scrolly"
|
|
5316
5316
|
data-id="CardContent"
|
|
5317
5317
|
data-selector-id="cardContent"
|
|
5318
5318
|
data-test-id="CardContent"
|
|
@@ -7138,7 +7138,7 @@ exports[`Select dataId snapshot - Should render with dataId prop - dropbox open
|
|
|
7138
7138
|
</div>
|
|
7139
7139
|
</div>
|
|
7140
7140
|
<div
|
|
7141
|
-
class="small
|
|
7141
|
+
class="small grow basis shrinkOn scrolly"
|
|
7142
7142
|
data-id="CardContent"
|
|
7143
7143
|
data-selector-id="cardContent"
|
|
7144
7144
|
data-test-id="CardContent"
|
|
@@ -7365,7 +7365,7 @@ exports[`Select dataId snapshot - Should render with dataId prop - empty state
|
|
|
7365
7365
|
data-test-id="containerComponent"
|
|
7366
7366
|
>
|
|
7367
7367
|
<div
|
|
7368
|
-
class="small
|
|
7368
|
+
class="small grow basis shrinkOn scrolly"
|
|
7369
7369
|
data-id="CardContent"
|
|
7370
7370
|
data-selector-id="cardContent"
|
|
7371
7371
|
data-test-id="CardContent"
|
|
@@ -7840,7 +7840,7 @@ exports[`Select snapshot - Should render with children and dropdown open 1`] =
|
|
|
7840
7840
|
data-test-id="containerComponent"
|
|
7841
7841
|
>
|
|
7842
7842
|
<div
|
|
7843
|
-
class="small
|
|
7843
|
+
class="small grow basis shrinkOn scrolly"
|
|
7844
7844
|
data-id="CardContent"
|
|
7845
7845
|
data-selector-id="cardContent"
|
|
7846
7846
|
data-test-id="CardContent"
|
|
@@ -8132,7 +8132,7 @@ exports[`Select snapshot - Should render with customProps 1`] = `
|
|
|
8132
8132
|
</div>
|
|
8133
8133
|
</div>
|
|
8134
8134
|
<div
|
|
8135
|
-
class="small
|
|
8135
|
+
class="small grow basis shrinkOn scrolly"
|
|
8136
8136
|
data-id="CardContent"
|
|
8137
8137
|
data-selector-id="cardContent"
|
|
8138
8138
|
data-test-id="CardContent"
|
|
@@ -8561,7 +8561,7 @@ exports[`Select snapshot - Should render with dropBoxSize as large 1`] = `
|
|
|
8561
8561
|
</div>
|
|
8562
8562
|
</div>
|
|
8563
8563
|
<div
|
|
8564
|
-
class="large
|
|
8564
|
+
class="large grow basis shrinkOn scrolly"
|
|
8565
8565
|
data-id="CardContent"
|
|
8566
8566
|
data-selector-id="cardContent"
|
|
8567
8567
|
data-test-id="CardContent"
|
|
@@ -8758,7 +8758,7 @@ exports[`Select snapshot - Should render with dropBoxSize as medium 1`] = `
|
|
|
8758
8758
|
</div>
|
|
8759
8759
|
</div>
|
|
8760
8760
|
<div
|
|
8761
|
-
class="medium
|
|
8761
|
+
class="medium grow basis shrinkOn scrolly"
|
|
8762
8762
|
data-id="CardContent"
|
|
8763
8763
|
data-selector-id="cardContent"
|
|
8764
8764
|
data-test-id="CardContent"
|
|
@@ -8955,7 +8955,7 @@ exports[`Select snapshot - Should render with dropBoxSize as small 1`] = `
|
|
|
8955
8955
|
</div>
|
|
8956
8956
|
</div>
|
|
8957
8957
|
<div
|
|
8958
|
-
class="small
|
|
8958
|
+
class="small grow basis shrinkOn scrolly"
|
|
8959
8959
|
data-id="CardContent"
|
|
8960
8960
|
data-selector-id="cardContent"
|
|
8961
8961
|
data-test-id="CardContent"
|
|
@@ -9231,7 +9231,7 @@ exports[`Select snapshot - Should render with getFooter 1`] = `
|
|
|
9231
9231
|
data-test-id="containerComponent"
|
|
9232
9232
|
>
|
|
9233
9233
|
<div
|
|
9234
|
-
class="small
|
|
9234
|
+
class="small grow basis shrinkOn scrolly"
|
|
9235
9235
|
data-id="CardContent"
|
|
9236
9236
|
data-selector-id="cardContent"
|
|
9237
9237
|
data-test-id="CardContent"
|
|
@@ -7,7 +7,7 @@ exports.Select_defaultProps = exports.SelectWithIcon_defaultProps = exports.Sele
|
|
|
7
7
|
|
|
8
8
|
var _Config = require("../../Provider/Config");
|
|
9
9
|
|
|
10
|
-
var _SelectWithIcon_defau;
|
|
10
|
+
var _SelectWithAvatar_def, _SelectWithIcon_defau;
|
|
11
11
|
|
|
12
12
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
|
|
@@ -49,7 +49,8 @@ var Select_defaultProps = {
|
|
|
49
49
|
isLoading: false,
|
|
50
50
|
isAbsolutePositioningNeeded: true,
|
|
51
51
|
allowValueFallback: true,
|
|
52
|
-
inputFieldLineA11y: {}
|
|
52
|
+
inputFieldLineA11y: {},
|
|
53
|
+
customClass: {}
|
|
53
54
|
};
|
|
54
55
|
exports.Select_defaultProps = Select_defaultProps;
|
|
55
56
|
var GroupSelect_defaultProps = {
|
|
@@ -88,11 +89,11 @@ var GroupSelect_defaultProps = {
|
|
|
88
89
|
iconOnHover: false,
|
|
89
90
|
isLoading: false,
|
|
90
91
|
customProps: {},
|
|
91
|
-
allowValueFallback: true
|
|
92
|
+
allowValueFallback: true,
|
|
93
|
+
customClass: {}
|
|
92
94
|
};
|
|
93
95
|
exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
|
|
94
|
-
|
|
95
|
-
var SelectWithAvatar_defaultProps = _defineProperty({
|
|
96
|
+
var SelectWithAvatar_defaultProps = (_SelectWithAvatar_def = {
|
|
96
97
|
animationStyle: 'bounce',
|
|
97
98
|
defaultDropBoxPosition: 'bottom',
|
|
98
99
|
dropBoxSize: 'small',
|
|
@@ -118,8 +119,7 @@ var SelectWithAvatar_defaultProps = _defineProperty({
|
|
|
118
119
|
customProps: {},
|
|
119
120
|
needEffect: true,
|
|
120
121
|
isLoading: false
|
|
121
|
-
}, "customProps", {});
|
|
122
|
-
|
|
122
|
+
}, _defineProperty(_SelectWithAvatar_def, "customProps", {}), _defineProperty(_SelectWithAvatar_def, "customClass", {}), _SelectWithAvatar_def);
|
|
123
123
|
exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
|
|
124
124
|
var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
125
125
|
isReadOnly: false,
|
|
@@ -120,7 +120,11 @@ var Select_propTypes = {
|
|
|
120
120
|
renderCustomToggleIndicator: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node]),
|
|
121
121
|
renderCustomSearchClearComponent: _propTypes["default"].func,
|
|
122
122
|
renderCustomSelectedValue: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node]),
|
|
123
|
-
inputFieldLineA11y: _propTypes["default"].object
|
|
123
|
+
inputFieldLineA11y: _propTypes["default"].object,
|
|
124
|
+
customClass: _propTypes["default"].shape({
|
|
125
|
+
dropBox: _propTypes["default"].string,
|
|
126
|
+
cardContent: _propTypes["default"].string
|
|
127
|
+
})
|
|
124
128
|
};
|
|
125
129
|
exports.Select_propTypes = Select_propTypes;
|
|
126
130
|
var GroupSelect_propTypes = {
|
|
@@ -209,7 +213,11 @@ var GroupSelect_propTypes = {
|
|
|
209
213
|
TextBoxIconProps: _propTypes["default"].object,
|
|
210
214
|
SuggestionsProps: _propTypes["default"].object
|
|
211
215
|
}),
|
|
212
|
-
allowValueFallback: _propTypes["default"].bool
|
|
216
|
+
allowValueFallback: _propTypes["default"].bool,
|
|
217
|
+
customClass: _propTypes["default"].shape({
|
|
218
|
+
dropBox: _propTypes["default"].string,
|
|
219
|
+
cardContent: _propTypes["default"].string
|
|
220
|
+
})
|
|
213
221
|
};
|
|
214
222
|
exports.GroupSelect_propTypes = GroupSelect_propTypes;
|
|
215
223
|
|
|
@@ -275,6 +283,10 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
|
|
|
275
283
|
dataSelectorId: _propTypes["default"].string,
|
|
276
284
|
customProps: _propTypes["default"].shape({
|
|
277
285
|
SuggestionsProps: _propTypes["default"].object
|
|
286
|
+
}),
|
|
287
|
+
customClass: _propTypes["default"].shape({
|
|
288
|
+
dropBox: _propTypes["default"].string,
|
|
289
|
+
cardContent: _propTypes["default"].string
|
|
278
290
|
})
|
|
279
291
|
});
|
|
280
292
|
|
|
@@ -347,7 +359,8 @@ var SelectWithIcon_propTypes = {
|
|
|
347
359
|
ListItemProps: _propTypes["default"].object
|
|
348
360
|
}),
|
|
349
361
|
customClass: _propTypes["default"].shape({
|
|
350
|
-
|
|
362
|
+
dropBox: _propTypes["default"].string,
|
|
363
|
+
cardContent: _propTypes["default"].string
|
|
351
364
|
})
|
|
352
365
|
};
|
|
353
366
|
exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
77
77
|
"@zohodesk/a11y": "2.3.8",
|
|
78
78
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
79
|
-
"@zohodesk/dotkit": "1.0.
|
|
79
|
+
"@zohodesk/dotkit": "1.0.9",
|
|
80
80
|
"@zohodesk/hooks": "2.0.8",
|
|
81
|
-
"@zohodesk/icons": "1.2.
|
|
81
|
+
"@zohodesk/icons": "1.2.7",
|
|
82
82
|
"@zohodesk/layout": "3.1.0",
|
|
83
|
-
"@zohodesk/svg": "1.3.
|
|
83
|
+
"@zohodesk/svg": "1.3.3",
|
|
84
84
|
"@zohodesk/utils": "1.3.16",
|
|
85
85
|
"@zohodesk/variables": "1.2.0",
|
|
86
86
|
"@zohodesk/virtualizer": "1.0.13",
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"selectn": "1.1.2"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@zohodesk/icons": "1.2.
|
|
100
|
+
"@zohodesk/icons": "1.2.7",
|
|
101
101
|
"@zohodesk/variables": "1.2.0",
|
|
102
|
-
"@zohodesk/svg": "1.3.
|
|
102
|
+
"@zohodesk/svg": "1.3.3",
|
|
103
103
|
"@zohodesk/virtualizer": "1.0.13",
|
|
104
104
|
"velocity-react": "1.4.3",
|
|
105
105
|
"react-sortable-hoc": "^0.8.3",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@zohodesk/utils": "1.3.16",
|
|
108
108
|
"@zohodesk/a11y": "2.3.8",
|
|
109
109
|
"@zohodesk/layout": "3.1.0",
|
|
110
|
-
"@zohodesk/dotkit": "1.0.
|
|
110
|
+
"@zohodesk/dotkit": "1.0.9",
|
|
111
111
|
"color": "4.2.3"
|
|
112
112
|
}
|
|
113
113
|
}
|