@zohodesk/components 1.0.0-temp-252.1 → 1.0.0-temp-253.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 +0 -6
- package/es/DropBox/DropBoxElement/DropBoxElement.js +21 -11
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +5 -3
- package/es/DropBox/DropBoxElement/props/propTypes.js +2 -1
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -7
- package/es/Select/Select.js +75 -88
- package/es/Select/Select.module.css +10 -37
- package/es/Select/props/defaultProps.js +1 -2
- package/es/Select/props/propTypes.js +2 -4
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +22 -11
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +5 -3
- package/lib/DropBox/DropBoxElement/props/propTypes.js +2 -1
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +5 -6
- package/lib/Select/Select.js +75 -89
- package/lib/Select/Select.module.css +10 -37
- package/lib/Select/props/defaultProps.js +1 -2
- package/lib/Select/props/propTypes.js +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
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.13
|
|
6
|
-
|
|
7
|
-
- **Select**
|
|
8
|
-
- Added `renderCustomDropBoxHeader` prop to render a custom node at the top of the dropdown, above the suggestions list.
|
|
9
|
-
- Added `customDropBoxHeader` key under the `customClass` prop to style the custom header wrapper.
|
|
10
|
-
|
|
11
5
|
# 1.6.12
|
|
12
6
|
|
|
13
7
|
- v1/Button/_shared/SuccessTick/SuccessTick.module.css file renamed to SuccessTick_v1.module.css
|
|
@@ -6,6 +6,7 @@ import { positionMapping } from '@zohodesk/dotkit/es/react/components/Popup/util
|
|
|
6
6
|
import { DropBoxElementDefaultProps } from "./props/defaultProps";
|
|
7
7
|
import { DropBoxElementPropTypes } from "./props/propTypes";
|
|
8
8
|
import { mergeStyle } from '@zohodesk/utils';
|
|
9
|
+
import { Container, Box } from "../../Layout";
|
|
9
10
|
import style from "./css/DropBoxElement.module.css";
|
|
10
11
|
export default function DropBoxElement(props) {
|
|
11
12
|
let {
|
|
@@ -27,6 +28,7 @@ export default function DropBoxElement(props) {
|
|
|
27
28
|
tabIndex,
|
|
28
29
|
palette,
|
|
29
30
|
subContainerRef,
|
|
31
|
+
getSubContainerRef,
|
|
30
32
|
customStyle,
|
|
31
33
|
animationStyle
|
|
32
34
|
} = props;
|
|
@@ -54,6 +56,14 @@ export default function DropBoxElement(props) {
|
|
|
54
56
|
}
|
|
55
57
|
};
|
|
56
58
|
|
|
59
|
+
const setSubContainerRef = ele => {
|
|
60
|
+
if (subContainerRef) {
|
|
61
|
+
subContainerRef.current = ele;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
getSubContainerRef && getSubContainerRef(ele);
|
|
65
|
+
};
|
|
66
|
+
|
|
57
67
|
if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
|
|
58
68
|
isAbsolute = true;
|
|
59
69
|
}
|
|
@@ -94,14 +104,14 @@ export default function DropBoxElement(props) {
|
|
|
94
104
|
isAbsolute
|
|
95
105
|
}
|
|
96
106
|
});
|
|
97
|
-
return /*#__PURE__*/React.createElement(
|
|
107
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
108
|
+
scroll: "none",
|
|
98
109
|
className: boxClassName,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
ref: getRef,
|
|
110
|
+
dataId: `${dataId}`,
|
|
111
|
+
dataSelectorId: dataSelectorId,
|
|
112
|
+
eleRef: getRef,
|
|
103
113
|
style: inlineStyle,
|
|
104
|
-
|
|
114
|
+
tourId: tourId,
|
|
105
115
|
"data-position": boxPosition,
|
|
106
116
|
"data-box-direction": boxDirection,
|
|
107
117
|
"data-arrow-position": arrowPosition,
|
|
@@ -113,14 +123,14 @@ export default function DropBoxElement(props) {
|
|
|
113
123
|
onAnimationEnd: isAnimate && FireOnAnimationEnd,
|
|
114
124
|
"data-a11y-focus-main-area": true,
|
|
115
125
|
"dot-ui-element": "dropbox"
|
|
116
|
-
}, /*#__PURE__*/React.createElement(
|
|
126
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
127
|
+
flexible: true,
|
|
117
128
|
tabIndex: "-1",
|
|
118
129
|
className: `${subContainerClass} ${style[`${palette}Palette`]}`,
|
|
119
130
|
onClick: onClick,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
ref: subContainerRef
|
|
131
|
+
dataId: `${dataId}_subcontainer`,
|
|
132
|
+
dataSelectorId: `${dataSelectorId}_subcontainer`,
|
|
133
|
+
eleRef: setSubContainerRef
|
|
124
134
|
}, isModel ? /*#__PURE__*/React.createElement("div", {
|
|
125
135
|
className: style.closeBar
|
|
126
136
|
}) : null, isArrow && !isModel && /*#__PURE__*/React.createElement("div", {
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
.subContainer {
|
|
15
15
|
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
16
18
|
border-radius: var(--dropbox_border_radius);
|
|
17
19
|
padding: var(--dropbox_padding);
|
|
18
20
|
box-shadow: var(--dropbox_box_shadow);
|
|
@@ -430,8 +432,8 @@
|
|
|
430
432
|
height: 6px;
|
|
431
433
|
/*css:theme-validation:ignore*/
|
|
432
434
|
width: 20% ;
|
|
433
|
-
margin-block:0 var(--zd_size10) ;
|
|
434
|
-
margin-inline:auto ;
|
|
435
|
+
margin-block: 0 var(--zd_size10) ;
|
|
436
|
+
margin-inline: auto ;
|
|
435
437
|
border-radius: 5px;
|
|
436
438
|
background-color: var(--dropbox_mob_close_bg_color);
|
|
437
439
|
cursor: pointer;
|
|
@@ -443,4 +445,4 @@
|
|
|
443
445
|
|
|
444
446
|
.darkPalette {
|
|
445
447
|
--dropbox_bg_color: var(--zdt_dropbox_dark_bg);
|
|
446
|
-
}
|
|
448
|
+
}
|
|
@@ -4,7 +4,7 @@ import React, { Component } from 'react';
|
|
|
4
4
|
import { defaultProps } from "./props/defaultProps";
|
|
5
5
|
import { propTypes } from "./props/propTypes";
|
|
6
6
|
import DropBox from "../DropBox/DropBox";
|
|
7
|
-
import {
|
|
7
|
+
import { Box } from "../Layout";
|
|
8
8
|
import { ResponsiveReceiver } from "../Responsive/CustomResponsive";
|
|
9
9
|
import style from "./ResponsiveDropBox.module.css";
|
|
10
10
|
export default class ResponsiveDropBox extends Component {
|
|
@@ -28,8 +28,7 @@ export default class ResponsiveDropBox extends Component {
|
|
|
28
28
|
const {
|
|
29
29
|
children,
|
|
30
30
|
customClass = {},
|
|
31
|
-
isResponsivePadding
|
|
32
|
-
alignBox
|
|
31
|
+
isResponsivePadding
|
|
33
32
|
} = this.props;
|
|
34
33
|
const {
|
|
35
34
|
customDropBox = '',
|
|
@@ -54,10 +53,10 @@ export default class ResponsiveDropBox extends Component {
|
|
|
54
53
|
let {
|
|
55
54
|
tabletMode
|
|
56
55
|
} = _ref2;
|
|
57
|
-
return /*#__PURE__*/React.createElement(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
className: `${tabletMode ? style.dropBoxContainer : ''} ${tabletMode && isResponsivePadding ? style.boxPadding : ''}
|
|
56
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
flexible: true,
|
|
58
|
+
shrink: true,
|
|
59
|
+
className: `${tabletMode ? style.dropBoxContainer : ''} ${tabletMode && isResponsivePadding ? style.boxPadding : ''}`
|
|
61
60
|
}, children);
|
|
62
61
|
}));
|
|
63
62
|
}
|
package/es/Select/Select.js
CHANGED
|
@@ -813,8 +813,7 @@ export class SelectComponent extends Component {
|
|
|
813
813
|
renderCustomSearchClearComponent,
|
|
814
814
|
renderCustomSelectedValue,
|
|
815
815
|
inputFieldLineA11y,
|
|
816
|
-
customClass
|
|
817
|
-
renderCustomDropBoxHeader
|
|
816
|
+
customClass
|
|
818
817
|
} = this.props;
|
|
819
818
|
let {
|
|
820
819
|
TextBoxIcon_i18n,
|
|
@@ -845,8 +844,7 @@ export class SelectComponent extends Component {
|
|
|
845
844
|
} = customProps;
|
|
846
845
|
const {
|
|
847
846
|
dropBox: dropBoxClass = '',
|
|
848
|
-
cardContent: cardContentClass = ''
|
|
849
|
-
customDropBoxHeader: customDropBoxHeaderClass = ''
|
|
847
|
+
cardContent: cardContentClass = ''
|
|
850
848
|
} = customClass;
|
|
851
849
|
const inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
|
|
852
850
|
setAriaId,
|
|
@@ -1023,92 +1021,81 @@ export class SelectComponent extends Component {
|
|
|
1023
1021
|
isRestrictScroll: isRestrictScroll,
|
|
1024
1022
|
portalId: dropBoxPortalId,
|
|
1025
1023
|
customClass: {
|
|
1026
|
-
customDropBox:
|
|
1024
|
+
customDropBox: dropBoxClass
|
|
1027
1025
|
}
|
|
1028
|
-
}, (
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
customClass: `
|
|
1026
|
+
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
1027
|
+
align: "both",
|
|
1028
|
+
className: style.loader
|
|
1029
|
+
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, !getChildren ? /*#__PURE__*/React.createElement(Box, {
|
|
1030
|
+
flexible: true
|
|
1031
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
1032
|
+
onScroll: this.handleScroll
|
|
1033
|
+
}, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
|
|
1034
|
+
className: `${style.search} ${style[size]}`
|
|
1035
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
1036
|
+
a11y: {
|
|
1037
|
+
ariaControls: setAriaId,
|
|
1038
|
+
ariaAutocomplete: 'list',
|
|
1039
|
+
ariaDescribedby: ariaErrorId
|
|
1040
|
+
},
|
|
1041
|
+
inputRef: this.searchInputRef,
|
|
1042
|
+
maxLength: maxLength,
|
|
1043
|
+
onChange: this.handleSearch,
|
|
1044
|
+
onKeyDown: this.handleKeyDown,
|
|
1045
|
+
placeHolder: searchBoxPlaceHolder,
|
|
1046
|
+
size: searchBoxSize,
|
|
1047
|
+
value: searchStr,
|
|
1048
|
+
onClear: this.handleClearSearch,
|
|
1049
|
+
dataId: `${dataId}_search`,
|
|
1050
|
+
i18nKeys: TextBoxIcon_i18n,
|
|
1051
|
+
autoComplete: autoComplete,
|
|
1052
|
+
customProps: {
|
|
1053
|
+
TextBoxProps: DropdownSearchTextBoxProps
|
|
1054
|
+
},
|
|
1055
|
+
renderCustomClearComponent: renderCustomSearchClearComponent
|
|
1056
|
+
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
1057
|
+
shrink: true,
|
|
1058
|
+
customClass: `
|
|
1062
1059
|
${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''} ${cardContentClass}`,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
return renderCustomDropBoxHeader ? /*#__PURE__*/React.createElement("div", {
|
|
1103
|
-
className: style.dropBoxListContainer
|
|
1104
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
1105
|
-
className: `${customDropBoxHeaderClass} ${style.customDropBoxHeaderContainer}`
|
|
1106
|
-
}, renderNode(renderCustomDropBoxHeader, {
|
|
1107
|
-
closePopup: this.handlePopupClose
|
|
1108
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
1109
|
-
className: style.dropdownOptions
|
|
1110
|
-
}, dropdownContent)) : dropdownContent;
|
|
1111
|
-
})());
|
|
1060
|
+
eleRef: this.suggestionContainerRef
|
|
1061
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
1062
|
+
key: searchStr.trim(),
|
|
1063
|
+
activeId: selectedId,
|
|
1064
|
+
isVirtualizerEnabled: isVirtualizerEnabled,
|
|
1065
|
+
getVirtualizerPublicMethods: this.getVirtualizerPublicMethods,
|
|
1066
|
+
setVirtualizerContainerRefFunction: this.setSuggestionsVirtualizerContainerRefFunction,
|
|
1067
|
+
suggestions: suggestions,
|
|
1068
|
+
getRef: this.suggestionItemRef,
|
|
1069
|
+
hoverOption: hoverIndex,
|
|
1070
|
+
onClick: this.handleChange,
|
|
1071
|
+
onMouseEnter: this.handleMouseEnter,
|
|
1072
|
+
dataId: `${dataId}_Options`,
|
|
1073
|
+
needTick: needTick,
|
|
1074
|
+
needBorder: needListBorder,
|
|
1075
|
+
selectedOptions: [selectedId],
|
|
1076
|
+
className: `${tabletMode ? style.responsivelistItemContainer : style.listItemContainer}`,
|
|
1077
|
+
listItemSize: listItemSize,
|
|
1078
|
+
htmlId: setAriaId,
|
|
1079
|
+
a11y: {
|
|
1080
|
+
ariaParentRole: 'listbox',
|
|
1081
|
+
role: 'option'
|
|
1082
|
+
}
|
|
1083
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1084
|
+
isLoading: isFetchingOptions,
|
|
1085
|
+
options: options,
|
|
1086
|
+
searchString: searchStr,
|
|
1087
|
+
suggestions: suggestions,
|
|
1088
|
+
dataId: dataId,
|
|
1089
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
1090
|
+
getCustomEmptyState: getCustomEmptyState ? this.handleGetAddNewOptionText : null,
|
|
1091
|
+
i18nKeys: i18nKeys,
|
|
1092
|
+
htmlId: ariaErrorId
|
|
1093
|
+
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
1094
|
+
isCover: false,
|
|
1095
|
+
align: "both"
|
|
1096
|
+
}, /*#__PURE__*/React.createElement(Loader, null))), getFooter ? /*#__PURE__*/React.createElement(CardFooter, null, getFooter()) : null)) : /*#__PURE__*/React.createElement(Box, {
|
|
1097
|
+
flexible: true
|
|
1098
|
+
}, getChildren())));
|
|
1112
1099
|
}) : null);
|
|
1113
1100
|
}
|
|
1114
1101
|
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
|
|
23
23
|
.box_small .emptyState {
|
|
24
24
|
padding-block: var(--zd_size12) ;
|
|
25
|
-
padding-inline:
|
|
25
|
+
padding-inline:var(--zd_size6) ;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.box_medium .emptyState {
|
|
29
29
|
padding-block: var(--zd_size12) ;
|
|
30
|
-
padding-inline:
|
|
30
|
+
padding-inline:var(--zd_size15) ;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.hide {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
|
|
46
46
|
.small.search {
|
|
47
47
|
padding-block: 0 ;
|
|
48
|
-
padding-inline:
|
|
48
|
+
padding-inline:var(--zd_size5) ;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.medium.search {
|
|
52
52
|
padding-block: var(--zd_size3) 0 ;
|
|
53
|
-
padding-inline:
|
|
53
|
+
padding-inline:var(--zd_size20) ;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.title {
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
|
|
60
60
|
.groupTitle {
|
|
61
61
|
margin-block: var(--zd_size6) ;
|
|
62
|
-
margin-inline:
|
|
62
|
+
margin-inline:0 ;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.listItemContainer {
|
|
66
66
|
padding-block: var(--zd_size10) ;
|
|
67
|
-
padding-inline:
|
|
67
|
+
padding-inline:0 ;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.responsivelistItemContainer {
|
|
71
71
|
padding-block: var(--zd_size10) 0 ;
|
|
72
|
-
padding-inline:
|
|
72
|
+
padding-inline:0 ;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.readonly {
|
|
@@ -111,19 +111,18 @@
|
|
|
111
111
|
|
|
112
112
|
.dropBoxList {
|
|
113
113
|
padding-block: var(--zd_size10) ;
|
|
114
|
-
padding-inline:
|
|
114
|
+
padding-inline:0 ;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.responsivedropBoxList {
|
|
118
118
|
padding-block: var(--zd_size10) 0 ;
|
|
119
|
-
padding-inline:
|
|
119
|
+
padding-inline:0 ;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.rotate {
|
|
123
123
|
transform: rotateX(180deg);
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
.rightPlaceholder {
|
|
125
|
+
.rightPlaceholder{
|
|
127
126
|
height: 100% ;
|
|
128
127
|
}
|
|
129
128
|
|
|
@@ -142,29 +141,3 @@
|
|
|
142
141
|
.loader {
|
|
143
142
|
padding: var(--zd_size10) ;
|
|
144
143
|
}
|
|
145
|
-
|
|
146
|
-
.dropBoxWithCustomHeader {
|
|
147
|
-
border-radius: 7px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.dropBoxListContainer {
|
|
151
|
-
width: 100% ;
|
|
152
|
-
border-radius: 7px;
|
|
153
|
-
padding: var(--zd_size10) ;
|
|
154
|
-
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
155
|
-
background: var(--zdt_statusdropdown_wrapper_container_bg);
|
|
156
|
-
box-shadow: var(--zd_bs_statusdropdown_wrapper_container);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.dropdownOptions {
|
|
160
|
-
padding-inline: var(--zd_size1) ;
|
|
161
|
-
padding-block: var(--zd_size1) ;
|
|
162
|
-
background-color: var(--zdt_statusdropdown_wrapper_dropdown_bg);
|
|
163
|
-
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
164
|
-
border-radius: 7px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.customDropBoxHeaderContainer {
|
|
168
|
-
margin-block-end: var(--zd_size6) ;
|
|
169
|
-
margin-inline: var(--zd_size1) ;
|
|
170
|
-
}
|
|
@@ -38,8 +38,7 @@ export const Select_defaultProps = {
|
|
|
38
38
|
isAbsolutePositioningNeeded: true,
|
|
39
39
|
allowValueFallback: true,
|
|
40
40
|
inputFieldLineA11y: {},
|
|
41
|
-
customClass: {}
|
|
42
|
-
renderCustomDropBoxHeader: null
|
|
41
|
+
customClass: {}
|
|
43
42
|
};
|
|
44
43
|
export const GroupSelect_defaultProps = {
|
|
45
44
|
animationStyle: 'bounce',
|
|
@@ -107,10 +107,8 @@ export const Select_propTypes = {
|
|
|
107
107
|
inputFieldLineA11y: PropTypes.object,
|
|
108
108
|
customClass: PropTypes.shape({
|
|
109
109
|
dropBox: PropTypes.string,
|
|
110
|
-
cardContent: PropTypes.string
|
|
111
|
-
|
|
112
|
-
}),
|
|
113
|
-
renderCustomDropBoxHeader: PropTypes.oneOfType([PropTypes.func, PropTypes.node])
|
|
110
|
+
cardContent: PropTypes.string
|
|
111
|
+
})
|
|
114
112
|
};
|
|
115
113
|
export const GroupSelect_propTypes = {
|
|
116
114
|
groupedOptions: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -19,6 +19,8 @@ var _propTypes = require("./props/propTypes");
|
|
|
19
19
|
|
|
20
20
|
var _utils = require("@zohodesk/utils");
|
|
21
21
|
|
|
22
|
+
var _Layout = require("../../Layout");
|
|
23
|
+
|
|
22
24
|
var _DropBoxElementModule = _interopRequireDefault(require("./css/DropBoxElement.module.css"));
|
|
23
25
|
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,6 +45,7 @@ function DropBoxElement(props) {
|
|
|
43
45
|
tabIndex = props.tabIndex,
|
|
44
46
|
palette = props.palette,
|
|
45
47
|
subContainerRef = props.subContainerRef,
|
|
48
|
+
getSubContainerRef = props.getSubContainerRef,
|
|
46
49
|
customStyle = props.customStyle,
|
|
47
50
|
animationStyle = props.animationStyle;
|
|
48
51
|
var isAbsolute = isAbsolutePositioningNeeded;
|
|
@@ -67,6 +70,14 @@ function DropBoxElement(props) {
|
|
|
67
70
|
}
|
|
68
71
|
};
|
|
69
72
|
|
|
73
|
+
var setSubContainerRef = function setSubContainerRef(ele) {
|
|
74
|
+
if (subContainerRef) {
|
|
75
|
+
subContainerRef.current = ele;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
getSubContainerRef && getSubContainerRef(ele);
|
|
79
|
+
};
|
|
80
|
+
|
|
70
81
|
if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
|
|
71
82
|
isAbsolute = true;
|
|
72
83
|
}
|
|
@@ -106,14 +117,14 @@ function DropBoxElement(props) {
|
|
|
106
117
|
subContainerClass = _cssJSLogic.subContainerClass,
|
|
107
118
|
inlineStyle = _cssJSLogic.inlineStyle;
|
|
108
119
|
|
|
109
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
120
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
121
|
+
scroll: "none",
|
|
110
122
|
className: boxClassName,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
ref: getRef,
|
|
123
|
+
dataId: "".concat(dataId),
|
|
124
|
+
dataSelectorId: dataSelectorId,
|
|
125
|
+
eleRef: getRef,
|
|
115
126
|
style: inlineStyle,
|
|
116
|
-
|
|
127
|
+
tourId: tourId,
|
|
117
128
|
"data-position": boxPosition,
|
|
118
129
|
"data-box-direction": boxDirection,
|
|
119
130
|
"data-arrow-position": arrowPosition,
|
|
@@ -125,14 +136,14 @@ function DropBoxElement(props) {
|
|
|
125
136
|
onAnimationEnd: isAnimate && FireOnAnimationEnd,
|
|
126
137
|
"data-a11y-focus-main-area": true,
|
|
127
138
|
"dot-ui-element": "dropbox"
|
|
128
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
139
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
140
|
+
flexible: true,
|
|
129
141
|
tabIndex: "-1",
|
|
130
142
|
className: "".concat(subContainerClass, " ").concat(_DropBoxElementModule["default"]["".concat(palette, "Palette")]),
|
|
131
143
|
onClick: onClick,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
ref: subContainerRef
|
|
144
|
+
dataId: "".concat(dataId, "_subcontainer"),
|
|
145
|
+
dataSelectorId: "".concat(dataSelectorId, "_subcontainer"),
|
|
146
|
+
eleRef: setSubContainerRef
|
|
136
147
|
}, isModel ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
148
|
className: _DropBoxElementModule["default"].closeBar
|
|
138
149
|
}) : null, isArrow && !isModel && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
.subContainer {
|
|
15
15
|
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
16
18
|
border-radius: var(--dropbox_border_radius);
|
|
17
19
|
padding: var(--dropbox_padding);
|
|
18
20
|
box-shadow: var(--dropbox_box_shadow);
|
|
@@ -430,8 +432,8 @@
|
|
|
430
432
|
height: 6px;
|
|
431
433
|
/*css:theme-validation:ignore*/
|
|
432
434
|
width: 20% ;
|
|
433
|
-
margin-block:0 var(--zd_size10) ;
|
|
434
|
-
margin-inline:auto ;
|
|
435
|
+
margin-block: 0 var(--zd_size10) ;
|
|
436
|
+
margin-inline: auto ;
|
|
435
437
|
border-radius: 5px;
|
|
436
438
|
background-color: var(--dropbox_mob_close_bg_color);
|
|
437
439
|
cursor: pointer;
|
|
@@ -443,4 +445,4 @@
|
|
|
443
445
|
|
|
444
446
|
.darkPalette {
|
|
445
447
|
--dropbox_bg_color: var(--zdt_dropbox_dark_bg);
|
|
446
|
-
}
|
|
448
|
+
}
|
|
@@ -57,6 +57,7 @@ var DropBoxElementPropTypes = {
|
|
|
57
57
|
positionsOffset: _propTypes["default"].object,
|
|
58
58
|
targetOffset: _propTypes["default"].object,
|
|
59
59
|
zIndexStyle: _propTypes["default"].object,
|
|
60
|
-
subContainerRef: _propTypes["default"].func
|
|
60
|
+
subContainerRef: _propTypes["default"].func,
|
|
61
|
+
getSubContainerRef: _propTypes["default"].func
|
|
61
62
|
};
|
|
62
63
|
exports.DropBoxElementPropTypes = DropBoxElementPropTypes;
|
|
@@ -81,8 +81,7 @@ var ResponsiveDropBox = /*#__PURE__*/function (_Component) {
|
|
|
81
81
|
children = _this$props.children,
|
|
82
82
|
_this$props$customCla = _this$props.customClass,
|
|
83
83
|
customClass = _this$props$customCla === void 0 ? {} : _this$props$customCla,
|
|
84
|
-
isResponsivePadding = _this$props.isResponsivePadding
|
|
85
|
-
alignBox = _this$props.alignBox;
|
|
84
|
+
isResponsivePadding = _this$props.isResponsivePadding;
|
|
86
85
|
var _customClass$customDr = customClass.customDropBox,
|
|
87
86
|
customDropBox = _customClass$customDr === void 0 ? '' : _customClass$customDr,
|
|
88
87
|
_customClass$customMo = customClass.customMobileDropBox,
|
|
@@ -107,10 +106,10 @@ var ResponsiveDropBox = /*#__PURE__*/function (_Component) {
|
|
|
107
106
|
responsiveId: "Helmet"
|
|
108
107
|
}, function (_ref2) {
|
|
109
108
|
var tabletMode = _ref2.tabletMode;
|
|
110
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
className: "".concat(tabletMode ? _ResponsiveDropBoxModule["default"].dropBoxContainer : '', " ").concat(tabletMode && isResponsivePadding ? _ResponsiveDropBoxModule["default"].boxPadding : ''
|
|
109
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
110
|
+
flexible: true,
|
|
111
|
+
shrink: true,
|
|
112
|
+
className: "".concat(tabletMode ? _ResponsiveDropBoxModule["default"].dropBoxContainer : '', " ").concat(tabletMode && isResponsivePadding ? _ResponsiveDropBoxModule["default"].boxPadding : '')
|
|
114
113
|
}, children);
|
|
115
114
|
}));
|
|
116
115
|
}
|
package/lib/Select/Select.js
CHANGED
|
@@ -860,8 +860,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
860
860
|
renderCustomSearchClearComponent = _this$props11.renderCustomSearchClearComponent,
|
|
861
861
|
renderCustomSelectedValue = _this$props11.renderCustomSelectedValue,
|
|
862
862
|
inputFieldLineA11y = _this$props11.inputFieldLineA11y,
|
|
863
|
-
customClass = _this$props11.customClass
|
|
864
|
-
renderCustomDropBoxHeader = _this$props11.renderCustomDropBoxHeader;
|
|
863
|
+
customClass = _this$props11.customClass;
|
|
865
864
|
var _i18nKeys = i18nKeys,
|
|
866
865
|
TextBoxIcon_i18n = _i18nKeys.TextBoxIcon_i18n,
|
|
867
866
|
_i18nKeys$TextBox_all = _i18nKeys.TextBox_ally_label,
|
|
@@ -894,9 +893,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
894
893
|
var _customClass$dropBox = customClass.dropBox,
|
|
895
894
|
dropBoxClass = _customClass$dropBox === void 0 ? '' : _customClass$dropBox,
|
|
896
895
|
_customClass$cardCont = customClass.cardContent,
|
|
897
|
-
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont
|
|
898
|
-
_customClass$customDr = customClass.customDropBoxHeader,
|
|
899
|
-
customDropBoxHeaderClass = _customClass$customDr === void 0 ? '' : _customClass$customDr;
|
|
896
|
+
cardContentClass = _customClass$cardCont === void 0 ? '' : _customClass$cardCont;
|
|
900
897
|
var inputFieldLineA11yAttributes = this.getInputFieldLineA11y({
|
|
901
898
|
setAriaId: setAriaId,
|
|
902
899
|
isReadOnly: isReadOnly,
|
|
@@ -1068,91 +1065,80 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
1068
1065
|
isRestrictScroll: isRestrictScroll,
|
|
1069
1066
|
portalId: dropBoxPortalId,
|
|
1070
1067
|
customClass: {
|
|
1071
|
-
customDropBox:
|
|
1068
|
+
customDropBox: dropBoxClass
|
|
1072
1069
|
}
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
}, getChildren()));
|
|
1146
|
-
return renderCustomDropBoxHeader ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1147
|
-
className: _SelectModule["default"].dropBoxListContainer
|
|
1148
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
1149
|
-
className: "".concat(customDropBoxHeaderClass, " ").concat(_SelectModule["default"].customDropBoxHeaderContainer)
|
|
1150
|
-
}, (0, _utils.renderNode)(renderCustomDropBoxHeader, {
|
|
1151
|
-
closePopup: _this7.handlePopupClose
|
|
1152
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
1153
|
-
className: _SelectModule["default"].dropdownOptions
|
|
1154
|
-
}, dropdownContent)) : dropdownContent;
|
|
1155
|
-
}());
|
|
1070
|
+
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1071
|
+
align: "both",
|
|
1072
|
+
className: _SelectModule["default"].loader
|
|
1073
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, !getChildren ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1074
|
+
flexible: true
|
|
1075
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
1076
|
+
onScroll: _this7.handleScroll
|
|
1077
|
+
}, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
1078
|
+
className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
|
|
1079
|
+
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
1080
|
+
a11y: {
|
|
1081
|
+
ariaControls: setAriaId,
|
|
1082
|
+
ariaAutocomplete: 'list',
|
|
1083
|
+
ariaDescribedby: ariaErrorId
|
|
1084
|
+
},
|
|
1085
|
+
inputRef: _this7.searchInputRef,
|
|
1086
|
+
maxLength: maxLength,
|
|
1087
|
+
onChange: _this7.handleSearch,
|
|
1088
|
+
onKeyDown: _this7.handleKeyDown,
|
|
1089
|
+
placeHolder: searchBoxPlaceHolder,
|
|
1090
|
+
size: searchBoxSize,
|
|
1091
|
+
value: searchStr,
|
|
1092
|
+
onClear: _this7.handleClearSearch,
|
|
1093
|
+
dataId: "".concat(dataId, "_search"),
|
|
1094
|
+
i18nKeys: TextBoxIcon_i18n,
|
|
1095
|
+
autoComplete: autoComplete,
|
|
1096
|
+
customProps: {
|
|
1097
|
+
TextBoxProps: DropdownSearchTextBoxProps
|
|
1098
|
+
},
|
|
1099
|
+
renderCustomClearComponent: renderCustomSearchClearComponent
|
|
1100
|
+
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1101
|
+
shrink: true,
|
|
1102
|
+
customClass: "\n ".concat(!tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '', " ").concat(cardContentClass),
|
|
1103
|
+
eleRef: _this7.suggestionContainerRef
|
|
1104
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1105
|
+
key: searchStr.trim(),
|
|
1106
|
+
activeId: selectedId,
|
|
1107
|
+
isVirtualizerEnabled: isVirtualizerEnabled,
|
|
1108
|
+
getVirtualizerPublicMethods: _this7.getVirtualizerPublicMethods,
|
|
1109
|
+
setVirtualizerContainerRefFunction: _this7.setSuggestionsVirtualizerContainerRefFunction,
|
|
1110
|
+
suggestions: suggestions,
|
|
1111
|
+
getRef: _this7.suggestionItemRef,
|
|
1112
|
+
hoverOption: hoverIndex,
|
|
1113
|
+
onClick: _this7.handleChange,
|
|
1114
|
+
onMouseEnter: _this7.handleMouseEnter,
|
|
1115
|
+
dataId: "".concat(dataId, "_Options"),
|
|
1116
|
+
needTick: needTick,
|
|
1117
|
+
needBorder: needListBorder,
|
|
1118
|
+
selectedOptions: [selectedId],
|
|
1119
|
+
className: "".concat(tabletMode ? _SelectModule["default"].responsivelistItemContainer : _SelectModule["default"].listItemContainer),
|
|
1120
|
+
listItemSize: listItemSize,
|
|
1121
|
+
htmlId: setAriaId,
|
|
1122
|
+
a11y: {
|
|
1123
|
+
ariaParentRole: 'listbox',
|
|
1124
|
+
role: 'option'
|
|
1125
|
+
}
|
|
1126
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1127
|
+
isLoading: isFetchingOptions,
|
|
1128
|
+
options: options,
|
|
1129
|
+
searchString: searchStr,
|
|
1130
|
+
suggestions: suggestions,
|
|
1131
|
+
dataId: dataId,
|
|
1132
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
1133
|
+
getCustomEmptyState: getCustomEmptyState ? _this7.handleGetAddNewOptionText : null,
|
|
1134
|
+
i18nKeys: i18nKeys,
|
|
1135
|
+
htmlId: ariaErrorId
|
|
1136
|
+
}), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1137
|
+
isCover: false,
|
|
1138
|
+
align: "both"
|
|
1139
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1140
|
+
flexible: true
|
|
1141
|
+
}, getChildren())));
|
|
1156
1142
|
}) : null);
|
|
1157
1143
|
}
|
|
1158
1144
|
}]);
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
|
|
23
23
|
.box_small .emptyState {
|
|
24
24
|
padding-block: var(--zd_size12) ;
|
|
25
|
-
padding-inline:
|
|
25
|
+
padding-inline:var(--zd_size6) ;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.box_medium .emptyState {
|
|
29
29
|
padding-block: var(--zd_size12) ;
|
|
30
|
-
padding-inline:
|
|
30
|
+
padding-inline:var(--zd_size15) ;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.hide {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
|
|
46
46
|
.small.search {
|
|
47
47
|
padding-block: 0 ;
|
|
48
|
-
padding-inline:
|
|
48
|
+
padding-inline:var(--zd_size5) ;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.medium.search {
|
|
52
52
|
padding-block: var(--zd_size3) 0 ;
|
|
53
|
-
padding-inline:
|
|
53
|
+
padding-inline:var(--zd_size20) ;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.title {
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
|
|
60
60
|
.groupTitle {
|
|
61
61
|
margin-block: var(--zd_size6) ;
|
|
62
|
-
margin-inline:
|
|
62
|
+
margin-inline:0 ;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.listItemContainer {
|
|
66
66
|
padding-block: var(--zd_size10) ;
|
|
67
|
-
padding-inline:
|
|
67
|
+
padding-inline:0 ;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.responsivelistItemContainer {
|
|
71
71
|
padding-block: var(--zd_size10) 0 ;
|
|
72
|
-
padding-inline:
|
|
72
|
+
padding-inline:0 ;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.readonly {
|
|
@@ -111,19 +111,18 @@
|
|
|
111
111
|
|
|
112
112
|
.dropBoxList {
|
|
113
113
|
padding-block: var(--zd_size10) ;
|
|
114
|
-
padding-inline:
|
|
114
|
+
padding-inline:0 ;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.responsivedropBoxList {
|
|
118
118
|
padding-block: var(--zd_size10) 0 ;
|
|
119
|
-
padding-inline:
|
|
119
|
+
padding-inline:0 ;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.rotate {
|
|
123
123
|
transform: rotateX(180deg);
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
.rightPlaceholder {
|
|
125
|
+
.rightPlaceholder{
|
|
127
126
|
height: 100% ;
|
|
128
127
|
}
|
|
129
128
|
|
|
@@ -142,29 +141,3 @@
|
|
|
142
141
|
.loader {
|
|
143
142
|
padding: var(--zd_size10) ;
|
|
144
143
|
}
|
|
145
|
-
|
|
146
|
-
.dropBoxWithCustomHeader {
|
|
147
|
-
border-radius: 7px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.dropBoxListContainer {
|
|
151
|
-
width: 100% ;
|
|
152
|
-
border-radius: 7px;
|
|
153
|
-
padding: var(--zd_size10) ;
|
|
154
|
-
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
155
|
-
background: var(--zdt_statusdropdown_wrapper_container_bg);
|
|
156
|
-
box-shadow: var(--zd_bs_statusdropdown_wrapper_container);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.dropdownOptions {
|
|
160
|
-
padding-inline: var(--zd_size1) ;
|
|
161
|
-
padding-block: var(--zd_size1) ;
|
|
162
|
-
background-color: var(--zdt_statusdropdown_wrapper_dropdown_bg);
|
|
163
|
-
border: 1px solid var(--zdt_statusdropdown_wrapper_container_border);
|
|
164
|
-
border-radius: 7px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.customDropBoxHeaderContainer {
|
|
168
|
-
margin-block-end: var(--zd_size6) ;
|
|
169
|
-
margin-inline: var(--zd_size1) ;
|
|
170
|
-
}
|
|
@@ -50,8 +50,7 @@ var Select_defaultProps = {
|
|
|
50
50
|
isAbsolutePositioningNeeded: true,
|
|
51
51
|
allowValueFallback: true,
|
|
52
52
|
inputFieldLineA11y: {},
|
|
53
|
-
customClass: {}
|
|
54
|
-
renderCustomDropBoxHeader: null
|
|
53
|
+
customClass: {}
|
|
55
54
|
};
|
|
56
55
|
exports.Select_defaultProps = Select_defaultProps;
|
|
57
56
|
var GroupSelect_defaultProps = {
|
|
@@ -123,10 +123,8 @@ var Select_propTypes = {
|
|
|
123
123
|
inputFieldLineA11y: _propTypes["default"].object,
|
|
124
124
|
customClass: _propTypes["default"].shape({
|
|
125
125
|
dropBox: _propTypes["default"].string,
|
|
126
|
-
cardContent: _propTypes["default"].string
|
|
127
|
-
|
|
128
|
-
}),
|
|
129
|
-
renderCustomDropBoxHeader: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node])
|
|
126
|
+
cardContent: _propTypes["default"].string
|
|
127
|
+
})
|
|
130
128
|
};
|
|
131
129
|
exports.Select_propTypes = Select_propTypes;
|
|
132
130
|
var GroupSelect_propTypes = {
|