@zohodesk/components 1.0.0-temp-242.5 → 1.0.0-temp-199.23
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 -3
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +4 -2
- package/es/ListItem/ListItem.js +5 -3
- package/es/ListItem/ListItem.module.css +35 -25
- package/es/ListItem/ListItemWithAvatar.js +4 -2
- package/es/ListItem/ListItemWithCheckBox.js +4 -2
- package/es/ListItem/ListItemWithIcon.js +4 -4
- package/es/ListItem/ListItemWithRadio.js +4 -2
- package/es/ListItem/props/defaultProps.js +2 -1
- package/es/ListItem/props/propTypes.js +4 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +6 -2
- package/es/MultiSelect/MultiSelect.js +2 -2
- package/es/MultiSelect/Suggestions.js +7 -2
- package/es/MultiSelect/props/defaultProps.js +2 -0
- package/es/MultiSelect/props/propTypes.js +11 -3
- package/es/Popup/Popup.js +4 -11
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/SelectWithAvatar.js +3 -3
- package/es/Select/SelectWithIcon.js +10 -3
- package/es/Select/props/defaultProps.js +4 -2
- package/es/Select/props/propTypes.js +11 -3
- package/es/common/common.module.css +1 -1
- package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +4 -2
- package/lib/ListItem/ListItem.js +6 -3
- package/lib/ListItem/ListItem.module.css +35 -25
- package/lib/ListItem/ListItemWithAvatar.js +5 -3
- package/lib/ListItem/ListItemWithCheckBox.js +4 -2
- package/lib/ListItem/ListItemWithIcon.js +5 -5
- package/lib/ListItem/ListItemWithRadio.js +4 -2
- package/lib/ListItem/props/defaultProps.js +2 -1
- package/lib/ListItem/props/propTypes.js +4 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelect.js +2 -2
- package/lib/MultiSelect/Suggestions.js +6 -2
- package/lib/MultiSelect/props/defaultProps.js +2 -0
- package/lib/MultiSelect/props/propTypes.js +13 -5
- package/lib/Popup/Popup.js +4 -11
- package/lib/Select/GroupSelect.js +2 -1
- package/lib/Select/SelectWithAvatar.js +4 -3
- package/lib/Select/SelectWithIcon.js +10 -3
- package/lib/Select/props/defaultProps.js +5 -3
- package/lib/Select/props/propTypes.js +11 -3
- package/lib/common/common.module.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,9 +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.2
|
|
6
|
-
- **Popup**
|
|
7
|
-
- Fixed an issue where the popup did not reposition correctly when the `mobileWidth` configuration was updated dynamically.
|
|
8
5
|
|
|
9
6
|
# 1.6.1
|
|
10
7
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
|
|
3
|
-
--local-colorIndicator-
|
|
2
|
+
/* css:validation:ignore */
|
|
3
|
+
--local-colorIndicator-height: var(--zd_font_size10);
|
|
4
|
+
/* css:validation:ignore */
|
|
5
|
+
--local-colorIndicator-width: var(--zd_font_size10);
|
|
4
6
|
--local-colorIndicator-border-radius: 10px;
|
|
5
7
|
}
|
|
6
8
|
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -76,7 +76,8 @@ export default class ListItem extends React.Component {
|
|
|
76
76
|
needMultiLineText,
|
|
77
77
|
secondaryValue,
|
|
78
78
|
renderBeforeChildren,
|
|
79
|
-
renderValueRightPlaceholderNode
|
|
79
|
+
renderValueRightPlaceholderNode,
|
|
80
|
+
lhsAlignContent
|
|
80
81
|
} = this.props;
|
|
81
82
|
let {
|
|
82
83
|
ListItemProps = {},
|
|
@@ -85,7 +86,8 @@ export default class ListItem extends React.Component {
|
|
|
85
86
|
let {
|
|
86
87
|
customListItem = '',
|
|
87
88
|
customTickIcon = '',
|
|
88
|
-
customValueRightPlaceholder = ''
|
|
89
|
+
customValueRightPlaceholder = '',
|
|
90
|
+
titleBoxClass = ''
|
|
89
91
|
} = customClass;
|
|
90
92
|
const listA11y = {
|
|
91
93
|
ariaHidden: true,
|
|
@@ -124,7 +126,7 @@ export default class ListItem extends React.Component {
|
|
|
124
126
|
flexible: true,
|
|
125
127
|
className: style.leftBox
|
|
126
128
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
127
|
-
className: style.titleBox
|
|
129
|
+
className: `${style.titleBox} ${lhsAlignContent !== 'start' ? `${style[`alignLhsBox_${lhsAlignContent}`]}` : ''} ${titleBoxClass}`
|
|
128
130
|
}, isRenderable(renderBeforeChildren) ? /*#__PURE__*/React.createElement(Box, {
|
|
129
131
|
adjust: true,
|
|
130
132
|
className: style.beforeChild
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* css:lineheight-validation:ignore */
|
|
1
2
|
.varClass {
|
|
2
3
|
/* listitem default variables */
|
|
3
4
|
--listitem_font_size: var(--zd_font_size13);
|
|
@@ -15,9 +16,14 @@
|
|
|
15
16
|
|
|
16
17
|
/* listitem tick icon default variables */
|
|
17
18
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
/* line-height for multiline text */
|
|
21
|
+
--listitem_multiline_lineheight: 1.5385;
|
|
22
|
+
}
|
|
23
|
+
[dir=ltr] .varClass {
|
|
19
24
|
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
20
|
-
}
|
|
25
|
+
}
|
|
26
|
+
[dir=rtl] .varClass {
|
|
21
27
|
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
22
28
|
}
|
|
23
29
|
.list {
|
|
@@ -70,14 +76,9 @@
|
|
|
70
76
|
.children,.secondaryValue {
|
|
71
77
|
composes: dotted from '../common/common.module.css';
|
|
72
78
|
}
|
|
73
|
-
|
|
74
|
-
margin-right: var(--zd_size10) ;
|
|
75
|
-
}
|
|
76
|
-
[dir=rtl] .beforeChild{
|
|
77
|
-
margin-left: var(--zd_size10) ;
|
|
78
|
-
}
|
|
79
|
+
/* css:lineheight-validation:ignore */
|
|
79
80
|
.value, .multiLineValue {
|
|
80
|
-
line-height:
|
|
81
|
+
line-height: var(--listitem_multiline_lineheight);
|
|
81
82
|
}
|
|
82
83
|
.multiLineValue,.multiLine{
|
|
83
84
|
composes: lineClamp from '../common/common.module.css';
|
|
@@ -115,26 +116,39 @@
|
|
|
115
116
|
composes: justifyFend from '../common/common.module.css';
|
|
116
117
|
}
|
|
117
118
|
|
|
119
|
+
.contentWrapper {
|
|
120
|
+
composes: dflex flexrow from '../common/common.module.css';
|
|
121
|
+
align-items: stretch;
|
|
122
|
+
width: 100% ;
|
|
123
|
+
}
|
|
118
124
|
.lhsBox {
|
|
119
125
|
composes: dflex from '../common/common.module.css';
|
|
120
126
|
align-self: stretch;
|
|
121
127
|
}
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
.lhsBox_large{
|
|
125
|
-
composes: varClass;
|
|
126
|
-
--listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
|
|
127
|
-
height: 100% ;
|
|
128
|
+
.beforeChild{
|
|
129
|
+
height: calc(var(--listitem_font_size) * var(--listitem_multiline_lineheight));
|
|
128
130
|
composes: dflex alignVertical from '../common/common.module.css';
|
|
129
131
|
}
|
|
130
|
-
.
|
|
131
|
-
|
|
132
|
+
[dir=ltr] .beforeChild{
|
|
133
|
+
margin-right: var(--zd_size10) ;
|
|
132
134
|
}
|
|
133
|
-
.
|
|
134
|
-
|
|
135
|
+
[dir=rtl] .beforeChild{
|
|
136
|
+
margin-left: var(--zd_size10) ;
|
|
135
137
|
}
|
|
136
|
-
.
|
|
137
|
-
|
|
138
|
+
.titleBox {
|
|
139
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
140
|
+
align-items: stretch;
|
|
141
|
+
}
|
|
142
|
+
.alignLhsBox_end {
|
|
143
|
+
align-items: flex-end;
|
|
144
|
+
}
|
|
145
|
+
.alignLhsBox_center {
|
|
146
|
+
align-items: center;
|
|
147
|
+
}
|
|
148
|
+
.lhsBoxInner{
|
|
149
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
150
|
+
height: 100% ;
|
|
151
|
+
max-height: calc((var(--listitem_font_size) * var(--listitem_multiline_lineheight)) * 2 );
|
|
138
152
|
}
|
|
139
153
|
.defaultHover, .primaryHover, .dangerHover, .secondaryHover, .darkHover {
|
|
140
154
|
background-color: var(--listitem_highlight_bg_color);
|
|
@@ -271,8 +285,4 @@
|
|
|
271
285
|
|
|
272
286
|
.leftBox {
|
|
273
287
|
composes: dflex flexcolumn from '../common/common.module.css';
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.titleBox {
|
|
277
|
-
composes: dflex alignVertical from '../common/common.module.css';
|
|
278
288
|
}
|
|
@@ -124,11 +124,13 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
124
124
|
title: null,
|
|
125
125
|
customProps: ListItemProps,
|
|
126
126
|
...ContainerProps
|
|
127
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
128
|
+
className: style.contentWrapper
|
|
127
129
|
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
128
130
|
className: `${style.leftAvatar} ${lhsAlignContent !== 'center' ? `${style.lhsBox}` : ''}`
|
|
129
131
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
130
132
|
align: lhsAlignContent,
|
|
131
|
-
className: style
|
|
133
|
+
className: style.lhsBoxInner
|
|
132
134
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
133
135
|
name: name,
|
|
134
136
|
size: "small",
|
|
@@ -174,7 +176,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
174
176
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
175
177
|
name: "ZD-ticknew",
|
|
176
178
|
size: "8"
|
|
177
|
-
})) : null);
|
|
179
|
+
})) : null));
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
}
|
|
@@ -100,12 +100,14 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
100
100
|
title: null,
|
|
101
101
|
customProps: ListItemProps,
|
|
102
102
|
...ContainerProps
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
|
+
className: style.contentWrapper
|
|
103
105
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
106
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
105
107
|
dataId: `${dataId ? dataId : value}_checkBox`
|
|
106
108
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
107
109
|
align: lhsAlignContent,
|
|
108
|
-
className: lhsAlignContent !== 'center' ? style
|
|
110
|
+
className: lhsAlignContent !== 'center' ? style.lhsBoxInner : ''
|
|
109
111
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
110
112
|
checked: checked,
|
|
111
113
|
a11y: {
|
|
@@ -130,7 +132,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
130
132
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
131
133
|
"data-title": isDisabled ? null : secondaryValue,
|
|
132
134
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
133
|
-
}, secondaryValue) : null));
|
|
135
|
+
}, secondaryValue) : null)));
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
}
|
|
@@ -116,14 +116,14 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
116
116
|
title: null,
|
|
117
117
|
customProps: ListItemProps,
|
|
118
118
|
...ContainerProps
|
|
119
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
120
|
+
className: `${style.contentWrapper} ${!iconName && lhsAlignContent !== 'start' ? style[`alignLhsBox_${lhsAlignContent}`] : ''}`
|
|
119
121
|
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
120
122
|
"aria-hidden": true,
|
|
121
|
-
align: lhsAlignContent,
|
|
122
123
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
123
124
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
124
125
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
125
|
-
align: lhsAlignContent
|
|
126
|
-
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
126
|
+
align: lhsAlignContent
|
|
127
127
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
128
128
|
iconClass: iconClass,
|
|
129
129
|
name: iconName,
|
|
@@ -154,7 +154,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
154
154
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
155
155
|
name: "ZD-ticknew",
|
|
156
156
|
size: "8"
|
|
157
|
-
})) : null);
|
|
157
|
+
})) : null));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
}
|
|
@@ -101,13 +101,15 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
101
101
|
title: null,
|
|
102
102
|
customProps: ListItemProps,
|
|
103
103
|
...ContainerProps
|
|
104
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
105
|
+
className: style.contentWrapper
|
|
104
106
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
105
107
|
align: lhsAlignContent,
|
|
106
108
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
107
109
|
dataId: `${dataId}_radio`
|
|
108
110
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
109
111
|
align: lhsAlignContent,
|
|
110
|
-
className: lhsAlignContent !== 'center' ? style
|
|
112
|
+
className: lhsAlignContent !== 'center' ? style.lhsBoxInner : ''
|
|
111
113
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
112
114
|
checked: checked,
|
|
113
115
|
id: id,
|
|
@@ -133,7 +135,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
133
135
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
134
136
|
"data-title": isDisabled ? null : secondaryValue,
|
|
135
137
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
136
|
-
}, secondaryValue) : null));
|
|
138
|
+
}, secondaryValue) : null)));
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
}
|
|
@@ -30,7 +30,8 @@ export const ListItemDefaultProps = {
|
|
|
30
30
|
customClass: {},
|
|
31
31
|
customProps: {},
|
|
32
32
|
dataSelectorId: 'listItem',
|
|
33
|
-
needMultiLineText: false
|
|
33
|
+
needMultiLineText: false,
|
|
34
|
+
lhsAlignContent: 'start'
|
|
34
35
|
};
|
|
35
36
|
export const ListItemWithAvatarDefaultProps = {
|
|
36
37
|
active: false,
|
|
@@ -61,14 +61,16 @@ export const ListItem_Props = {
|
|
|
61
61
|
customClass: PropTypes.shape({
|
|
62
62
|
customListItem: PropTypes.string,
|
|
63
63
|
customTickIcon: PropTypes.string,
|
|
64
|
-
customValueRightPlaceholder: PropTypes.string
|
|
64
|
+
customValueRightPlaceholder: PropTypes.string,
|
|
65
|
+
titleBoxClass: PropTypes.string
|
|
65
66
|
}),
|
|
66
67
|
customProps: PropTypes.shape({
|
|
67
68
|
ListItemProps: PropTypes.object
|
|
68
69
|
}),
|
|
69
70
|
secondaryValue: PropTypes.string,
|
|
70
71
|
renderBeforeChildren: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
71
|
-
renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
|
|
72
|
+
renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
73
|
+
lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end'])
|
|
72
74
|
};
|
|
73
75
|
export const ListItemWithAvatar_Props = {
|
|
74
76
|
active: PropTypes.bool,
|
|
@@ -889,8 +889,12 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
889
889
|
autoComplete,
|
|
890
890
|
getTargetRef,
|
|
891
891
|
isFocus,
|
|
892
|
-
limit
|
|
892
|
+
limit,
|
|
893
|
+
customProps
|
|
893
894
|
} = this.props;
|
|
895
|
+
const {
|
|
896
|
+
SuggestionsProps = {}
|
|
897
|
+
} = customProps;
|
|
894
898
|
let {
|
|
895
899
|
clearText = MULTISELECT_I18N_KEYS.clearText,
|
|
896
900
|
limitReachedMessage = MULTISELECT_I18N_KEYS.limitReachedMessage
|
|
@@ -1059,7 +1063,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1059
1063
|
a11y: {
|
|
1060
1064
|
role: 'heading'
|
|
1061
1065
|
}
|
|
1062
|
-
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1066
|
+
})), /*#__PURE__*/React.createElement(Suggestions, { ...SuggestionsProps,
|
|
1063
1067
|
suggestions: suggestions,
|
|
1064
1068
|
selectedOptions: selectedOptionIds,
|
|
1065
1069
|
getRef: this.suggestionItemRef,
|
|
@@ -1095,9 +1095,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1095
1095
|
isLoading,
|
|
1096
1096
|
selectAllText,
|
|
1097
1097
|
needSelectAll,
|
|
1098
|
-
customProps,
|
|
1099
1098
|
isVirtualizerEnabled,
|
|
1100
|
-
limit
|
|
1099
|
+
limit,
|
|
1100
|
+
customProps
|
|
1101
1101
|
} = this.props;
|
|
1102
1102
|
const {
|
|
1103
1103
|
selectedOptions,
|
|
@@ -193,18 +193,23 @@ export default class Suggestions extends React.PureComponent {
|
|
|
193
193
|
htmlId,
|
|
194
194
|
a11y,
|
|
195
195
|
getVirtualizerPublicMethods,
|
|
196
|
-
setVirtualizerContainerRefFunction
|
|
196
|
+
setVirtualizerContainerRefFunction,
|
|
197
|
+
customClass
|
|
197
198
|
} = this.props;
|
|
198
199
|
const {
|
|
199
200
|
ariaParentRole,
|
|
200
201
|
ariaMultiselectable
|
|
201
202
|
} = a11y;
|
|
203
|
+
const {
|
|
204
|
+
containerClass = ''
|
|
205
|
+
} = customClass;
|
|
202
206
|
return /*#__PURE__*/React.createElement(Container, {
|
|
203
207
|
isCover: false,
|
|
204
208
|
role: ariaParentRole,
|
|
205
209
|
id: htmlId,
|
|
206
210
|
tabindex: "0",
|
|
207
|
-
"aria-multiselectable": ariaMultiselectable
|
|
211
|
+
"aria-multiselectable": ariaMultiselectable,
|
|
212
|
+
className: containerClass
|
|
208
213
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
209
214
|
dataId: `${dataId}`,
|
|
210
215
|
className: className ? className : ''
|
|
@@ -38,6 +38,7 @@ export const AdvancedGroupMultiSelect_defaultProps = {
|
|
|
38
38
|
palette: 'default',
|
|
39
39
|
isLoading: false,
|
|
40
40
|
dataSelectorId: 'advancedGroupMultiSelect',
|
|
41
|
+
customProps: {},
|
|
41
42
|
allowValueFallback: true
|
|
42
43
|
};
|
|
43
44
|
export const AdvancedMultiSelect_defaultProps = {
|
|
@@ -169,5 +170,6 @@ export const SelectedOptions_defaultProps = {
|
|
|
169
170
|
export const Suggestions_defaultProps = {
|
|
170
171
|
a11y: {},
|
|
171
172
|
isVirtualizerEnabled: false,
|
|
173
|
+
customClass: {},
|
|
172
174
|
needMultiLineText: false
|
|
173
175
|
};
|
|
@@ -114,7 +114,8 @@ export const MultiSelect_propTypes = {
|
|
|
114
114
|
setAriaId: PropTypes.string,
|
|
115
115
|
ariaErrorId: PropTypes.string,
|
|
116
116
|
customProps: PropTypes.shape({
|
|
117
|
-
TextBoxIconProps: PropTypes.object
|
|
117
|
+
TextBoxIconProps: PropTypes.object,
|
|
118
|
+
SuggestionsProps: PropTypes.object
|
|
118
119
|
}),
|
|
119
120
|
isFocus: PropTypes.bool,
|
|
120
121
|
allowValueFallback: PropTypes.bool,
|
|
@@ -199,7 +200,11 @@ export const Suggestions_propTypes = {
|
|
|
199
200
|
})),
|
|
200
201
|
renderBeforeChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
201
202
|
limit: PropTypes.number,
|
|
202
|
-
limitReachedMessage: PropTypes.string
|
|
203
|
+
limitReachedMessage: PropTypes.string,
|
|
204
|
+
customClass: PropTypes.shape({
|
|
205
|
+
containerClass: PropTypes.string
|
|
206
|
+
}),
|
|
207
|
+
needMultiLineText: PropTypes.bool
|
|
203
208
|
};
|
|
204
209
|
export const AdvancedGroupMultiSelect_propTypes = {
|
|
205
210
|
animationStyle: PropTypes.string,
|
|
@@ -273,7 +278,10 @@ export const AdvancedGroupMultiSelect_propTypes = {
|
|
|
273
278
|
dataSelectorId: PropTypes.string,
|
|
274
279
|
isFocus: PropTypes.bool,
|
|
275
280
|
allowValueFallback: PropTypes.bool,
|
|
276
|
-
limit: PropTypes.number
|
|
281
|
+
limit: PropTypes.number,
|
|
282
|
+
customProps: PropTypes.shape({
|
|
283
|
+
SuggestionsProps: PropTypes.object
|
|
284
|
+
})
|
|
277
285
|
};
|
|
278
286
|
export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
|
|
279
287
|
selectedOptionDetails: PropTypes.string,
|
package/es/Popup/Popup.js
CHANGED
|
@@ -17,15 +17,8 @@ const Popup = function (Component) {
|
|
|
17
17
|
closeOnScroll = false,
|
|
18
18
|
isOutsideScrollBlocked = false
|
|
19
19
|
} = options;
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
return getLibraryConfig('getRootElement');
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const getMobileWidth = () => {
|
|
26
|
-
return getLibraryConfig('mobileWidth');
|
|
27
|
-
};
|
|
28
|
-
|
|
20
|
+
const getRootElement = getLibraryConfig('getRootElement');
|
|
21
|
+
const mobileWidth = getLibraryConfig('mobileWidth');
|
|
29
22
|
const middleware = {
|
|
30
23
|
useAbsolutePositioning: isAbsolutePositioningNeeded,
|
|
31
24
|
positionOrder: customOrder,
|
|
@@ -37,8 +30,8 @@ const Popup = function (Component) {
|
|
|
37
30
|
};
|
|
38
31
|
const popupConfig = {
|
|
39
32
|
group,
|
|
40
|
-
|
|
41
|
-
getRootElement,
|
|
33
|
+
mobileWidth,
|
|
34
|
+
rootElementCallback: getRootElement,
|
|
42
35
|
middleware
|
|
43
36
|
};
|
|
44
37
|
return DotkitPopup(Component, popupConfig);
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -623,7 +623,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
623
623
|
let {
|
|
624
624
|
TextBoxIconProps = {},
|
|
625
625
|
TextBoxProps = {},
|
|
626
|
-
SuggestionsProps
|
|
626
|
+
SuggestionsProps = {}
|
|
627
627
|
} = customProps;
|
|
628
628
|
return /*#__PURE__*/React.createElement("div", {
|
|
629
629
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
@@ -169,8 +169,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
169
169
|
needEffect,
|
|
170
170
|
isLoading,
|
|
171
171
|
dataSelectorId,
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
getTargetRef,
|
|
173
|
+
customProps
|
|
174
174
|
} = this.props;
|
|
175
175
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
176
176
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -195,7 +195,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
195
195
|
let {
|
|
196
196
|
TextBoxProps,
|
|
197
197
|
DropdownSearchTextBoxProps,
|
|
198
|
-
SuggestionsProps
|
|
198
|
+
SuggestionsProps = {}
|
|
199
199
|
} = customProps;
|
|
200
200
|
return /*#__PURE__*/React.createElement("div", {
|
|
201
201
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
|
|
@@ -357,7 +357,8 @@ class SelectWithIcon extends Component {
|
|
|
357
357
|
htmlId,
|
|
358
358
|
isLoading,
|
|
359
359
|
dataSelectorId,
|
|
360
|
-
customProps
|
|
360
|
+
customProps,
|
|
361
|
+
customClass
|
|
361
362
|
} = this.props;
|
|
362
363
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
363
364
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -375,8 +376,11 @@ class SelectWithIcon extends Component {
|
|
|
375
376
|
TextBoxProps = {},
|
|
376
377
|
DropdownSearchTextBoxProps = {},
|
|
377
378
|
TextBoxIconProps = {},
|
|
378
|
-
ListItemProps
|
|
379
|
+
ListItemProps = {}
|
|
379
380
|
} = customProps;
|
|
381
|
+
const {
|
|
382
|
+
dropBoxClass = ''
|
|
383
|
+
} = customClass;
|
|
380
384
|
return /*#__PURE__*/React.createElement("div", {
|
|
381
385
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
382
386
|
"data-title": isDisabled ? title : null,
|
|
@@ -473,7 +477,10 @@ class SelectWithIcon extends Component {
|
|
|
473
477
|
size: boxSize,
|
|
474
478
|
isPadding: false,
|
|
475
479
|
isResponsivePadding: true,
|
|
476
|
-
alignBox: "row"
|
|
480
|
+
alignBox: "row",
|
|
481
|
+
customClass: {
|
|
482
|
+
customDropBox: dropBoxClass
|
|
483
|
+
}
|
|
477
484
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
478
485
|
align: "both",
|
|
479
486
|
className: style.loader
|
|
@@ -102,7 +102,8 @@ export const SelectWithAvatar_defaultProps = {
|
|
|
102
102
|
i18nKeys: {},
|
|
103
103
|
customProps: {},
|
|
104
104
|
needEffect: true,
|
|
105
|
-
isLoading: false
|
|
105
|
+
isLoading: false,
|
|
106
|
+
customProps: {}
|
|
106
107
|
};
|
|
107
108
|
export const SelectWithIcon_defaultProps = {
|
|
108
109
|
isReadOnly: false,
|
|
@@ -131,5 +132,6 @@ export const SelectWithIcon_defaultProps = {
|
|
|
131
132
|
isLoading: false,
|
|
132
133
|
isAbsolutePositioningNeeded: true,
|
|
133
134
|
isRestrictScroll: false,
|
|
134
|
-
customProps: {}
|
|
135
|
+
customProps: {},
|
|
136
|
+
customClass: {}
|
|
135
137
|
};
|
|
@@ -187,7 +187,8 @@ export const GroupSelect_propTypes = {
|
|
|
187
187
|
isDefaultSelectValue: PropTypes.bool,
|
|
188
188
|
customProps: PropTypes.shape({
|
|
189
189
|
TextBoxProps: PropTypes.object,
|
|
190
|
-
TextBoxIconProps: PropTypes.object
|
|
190
|
+
TextBoxIconProps: PropTypes.object,
|
|
191
|
+
SuggestionsProps: PropTypes.object
|
|
191
192
|
}),
|
|
192
193
|
allowValueFallback: PropTypes.bool
|
|
193
194
|
};
|
|
@@ -250,7 +251,10 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
|
250
251
|
htmlId: PropTypes.string,
|
|
251
252
|
needEffect: PropTypes.bool,
|
|
252
253
|
isLoading: PropTypes.bool,
|
|
253
|
-
dataSelectorId: PropTypes.string
|
|
254
|
+
dataSelectorId: PropTypes.string,
|
|
255
|
+
customProps: PropTypes.shape({
|
|
256
|
+
SuggestionsProps: PropTypes.object
|
|
257
|
+
})
|
|
254
258
|
};
|
|
255
259
|
export const SelectWithIcon_propTypes = {
|
|
256
260
|
animationStyle: PropTypes.oneOf(['default', 'bounce']),
|
|
@@ -315,6 +319,10 @@ export const SelectWithIcon_propTypes = {
|
|
|
315
319
|
TextBoxProps: PropTypes.object,
|
|
316
320
|
DropdownSearchTextBoxProps: PropTypes.object,
|
|
317
321
|
SuggestionsProps: PropTypes.object,
|
|
318
|
-
TextBoxIconProps: PropTypes.object
|
|
322
|
+
TextBoxIconProps: PropTypes.object,
|
|
323
|
+
ListItemProps: PropTypes.object
|
|
324
|
+
}),
|
|
325
|
+
customClass: PropTypes.shape({
|
|
326
|
+
dropBoxClass: PropTypes.string
|
|
319
327
|
})
|
|
320
328
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
|
|
3
|
-
--local-colorIndicator-
|
|
2
|
+
/* css:validation:ignore */
|
|
3
|
+
--local-colorIndicator-height: var(--zd_font_size10);
|
|
4
|
+
/* css:validation:ignore */
|
|
5
|
+
--local-colorIndicator-width: var(--zd_font_size10);
|
|
4
6
|
--local-colorIndicator-border-radius: 10px;
|
|
5
7
|
}
|
|
6
8
|
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -127,7 +127,8 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
127
127
|
needMultiLineText = _this$props4.needMultiLineText,
|
|
128
128
|
secondaryValue = _this$props4.secondaryValue,
|
|
129
129
|
renderBeforeChildren = _this$props4.renderBeforeChildren,
|
|
130
|
-
renderValueRightPlaceholderNode = _this$props4.renderValueRightPlaceholderNode
|
|
130
|
+
renderValueRightPlaceholderNode = _this$props4.renderValueRightPlaceholderNode,
|
|
131
|
+
lhsAlignContent = _this$props4.lhsAlignContent;
|
|
131
132
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
132
133
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
133
134
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -137,7 +138,9 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
137
138
|
_customClass$customTi = customClass.customTickIcon,
|
|
138
139
|
customTickIcon = _customClass$customTi === void 0 ? '' : _customClass$customTi,
|
|
139
140
|
_customClass$customVa = customClass.customValueRightPlaceholder,
|
|
140
|
-
customValueRightPlaceholder = _customClass$customVa === void 0 ? '' : _customClass$customVa
|
|
141
|
+
customValueRightPlaceholder = _customClass$customVa === void 0 ? '' : _customClass$customVa,
|
|
142
|
+
_customClass$titleBox = customClass.titleBoxClass,
|
|
143
|
+
titleBoxClass = _customClass$titleBox === void 0 ? '' : _customClass$titleBox;
|
|
141
144
|
|
|
142
145
|
var listA11y = _objectSpread({
|
|
143
146
|
ariaHidden: true,
|
|
@@ -173,7 +176,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
173
176
|
flexible: true,
|
|
174
177
|
className: _ListItemModule["default"].leftBox
|
|
175
178
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
176
|
-
className: _ListItemModule["default"].titleBox
|
|
179
|
+
className: "".concat(_ListItemModule["default"].titleBox, " ").concat(lhsAlignContent !== 'start' ? "".concat(_ListItemModule["default"]["alignLhsBox_".concat(lhsAlignContent)]) : '', " ").concat(titleBoxClass)
|
|
177
180
|
}, (0, _utils.isRenderable)(renderBeforeChildren) ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
178
181
|
adjust: true,
|
|
179
182
|
className: _ListItemModule["default"].beforeChild
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* css:lineheight-validation:ignore */
|
|
1
2
|
.varClass {
|
|
2
3
|
/* listitem default variables */
|
|
3
4
|
--listitem_font_size: var(--zd_font_size13);
|
|
@@ -15,9 +16,14 @@
|
|
|
15
16
|
|
|
16
17
|
/* listitem tick icon default variables */
|
|
17
18
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
/* line-height for multiline text */
|
|
21
|
+
--listitem_multiline_lineheight: 1.5385;
|
|
22
|
+
}
|
|
23
|
+
[dir=ltr] .varClass {
|
|
19
24
|
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
20
|
-
}
|
|
25
|
+
}
|
|
26
|
+
[dir=rtl] .varClass {
|
|
21
27
|
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
22
28
|
}
|
|
23
29
|
.list {
|
|
@@ -70,14 +76,9 @@
|
|
|
70
76
|
.children,.secondaryValue {
|
|
71
77
|
composes: dotted from '../common/common.module.css';
|
|
72
78
|
}
|
|
73
|
-
|
|
74
|
-
margin-right: var(--zd_size10) ;
|
|
75
|
-
}
|
|
76
|
-
[dir=rtl] .beforeChild{
|
|
77
|
-
margin-left: var(--zd_size10) ;
|
|
78
|
-
}
|
|
79
|
+
/* css:lineheight-validation:ignore */
|
|
79
80
|
.value, .multiLineValue {
|
|
80
|
-
line-height:
|
|
81
|
+
line-height: var(--listitem_multiline_lineheight);
|
|
81
82
|
}
|
|
82
83
|
.multiLineValue,.multiLine{
|
|
83
84
|
composes: lineClamp from '../common/common.module.css';
|
|
@@ -115,26 +116,39 @@
|
|
|
115
116
|
composes: justifyFend from '../common/common.module.css';
|
|
116
117
|
}
|
|
117
118
|
|
|
119
|
+
.contentWrapper {
|
|
120
|
+
composes: dflex flexrow from '../common/common.module.css';
|
|
121
|
+
align-items: stretch;
|
|
122
|
+
width: 100% ;
|
|
123
|
+
}
|
|
118
124
|
.lhsBox {
|
|
119
125
|
composes: dflex from '../common/common.module.css';
|
|
120
126
|
align-self: stretch;
|
|
121
127
|
}
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
.lhsBox_large{
|
|
125
|
-
composes: varClass;
|
|
126
|
-
--listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
|
|
127
|
-
height: 100% ;
|
|
128
|
+
.beforeChild{
|
|
129
|
+
height: calc(var(--listitem_font_size) * var(--listitem_multiline_lineheight));
|
|
128
130
|
composes: dflex alignVertical from '../common/common.module.css';
|
|
129
131
|
}
|
|
130
|
-
.
|
|
131
|
-
|
|
132
|
+
[dir=ltr] .beforeChild{
|
|
133
|
+
margin-right: var(--zd_size10) ;
|
|
132
134
|
}
|
|
133
|
-
.
|
|
134
|
-
|
|
135
|
+
[dir=rtl] .beforeChild{
|
|
136
|
+
margin-left: var(--zd_size10) ;
|
|
135
137
|
}
|
|
136
|
-
.
|
|
137
|
-
|
|
138
|
+
.titleBox {
|
|
139
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
140
|
+
align-items: stretch;
|
|
141
|
+
}
|
|
142
|
+
.alignLhsBox_end {
|
|
143
|
+
align-items: flex-end;
|
|
144
|
+
}
|
|
145
|
+
.alignLhsBox_center {
|
|
146
|
+
align-items: center;
|
|
147
|
+
}
|
|
148
|
+
.lhsBoxInner{
|
|
149
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
150
|
+
height: 100% ;
|
|
151
|
+
max-height: calc((var(--listitem_font_size) * var(--listitem_multiline_lineheight)) * 2 );
|
|
138
152
|
}
|
|
139
153
|
.defaultHover, .primaryHover, .dangerHover, .secondaryHover, .darkHover {
|
|
140
154
|
background-color: var(--listitem_highlight_bg_color);
|
|
@@ -271,8 +285,4 @@
|
|
|
271
285
|
|
|
272
286
|
.leftBox {
|
|
273
287
|
composes: dflex flexcolumn from '../common/common.module.css';
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.titleBox {
|
|
277
|
-
composes: dflex alignVertical from '../common/common.module.css';
|
|
278
288
|
}
|
|
@@ -178,11 +178,13 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
178
178
|
disableTitle: disableTitle,
|
|
179
179
|
title: null,
|
|
180
180
|
customProps: ListItemProps
|
|
181
|
-
}, ContainerProps),
|
|
181
|
+
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
182
|
+
className: _ListItemModule["default"].contentWrapper
|
|
183
|
+
}, name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
182
184
|
className: "".concat(_ListItemModule["default"].leftAvatar, " ").concat(lhsAlignContent !== 'center' ? "".concat(_ListItemModule["default"].lhsBox) : '')
|
|
183
185
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
184
186
|
align: lhsAlignContent,
|
|
185
|
-
className: _ListItemModule["default"]
|
|
187
|
+
className: _ListItemModule["default"].lhsBoxInner
|
|
186
188
|
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], _extends({
|
|
187
189
|
name: name,
|
|
188
190
|
size: "small",
|
|
@@ -226,7 +228,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
226
228
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
227
229
|
name: "ZD-ticknew",
|
|
228
230
|
size: "8"
|
|
229
|
-
})) : null);
|
|
231
|
+
})) : null));
|
|
230
232
|
}
|
|
231
233
|
}]);
|
|
232
234
|
|
|
@@ -160,11 +160,13 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
160
160
|
title: null,
|
|
161
161
|
customProps: ListItemProps
|
|
162
162
|
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
163
|
+
className: _ListItemModule["default"].contentWrapper
|
|
164
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
163
165
|
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"].lhsBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)]),
|
|
164
166
|
dataId: "".concat(dataId ? dataId : value, "_checkBox")
|
|
165
167
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
166
168
|
align: lhsAlignContent,
|
|
167
|
-
className: lhsAlignContent !== 'center' ? _ListItemModule["default"]
|
|
169
|
+
className: lhsAlignContent !== 'center' ? _ListItemModule["default"].lhsBoxInner : ''
|
|
168
170
|
}, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
|
|
169
171
|
checked: checked,
|
|
170
172
|
a11y: {
|
|
@@ -189,7 +191,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
189
191
|
}, (0, _utils.renderNode)(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
190
192
|
"data-title": isDisabled ? null : secondaryValue,
|
|
191
193
|
className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLine : _ListItemModule["default"].secondaryValue)
|
|
192
|
-
}, secondaryValue) : null));
|
|
194
|
+
}, secondaryValue) : null)));
|
|
193
195
|
}
|
|
194
196
|
}]);
|
|
195
197
|
|
|
@@ -166,14 +166,14 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
166
166
|
disableTitle: disableTitle,
|
|
167
167
|
title: null,
|
|
168
168
|
customProps: ListItemProps
|
|
169
|
-
}, ContainerProps),
|
|
169
|
+
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
170
|
+
className: "".concat(_ListItemModule["default"].contentWrapper, " ").concat(!iconName && lhsAlignContent !== 'start' ? _ListItemModule["default"]["alignLhsBox_".concat(lhsAlignContent)] : '')
|
|
171
|
+
}, iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
170
172
|
"aria-hidden": true,
|
|
171
|
-
align: lhsAlignContent,
|
|
172
173
|
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"].lhsBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)]),
|
|
173
174
|
dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
|
|
174
175
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
175
|
-
align: lhsAlignContent
|
|
176
|
-
className: lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''
|
|
176
|
+
align: lhsAlignContent
|
|
177
177
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
178
178
|
iconClass: iconClass,
|
|
179
179
|
name: iconName,
|
|
@@ -204,7 +204,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
204
204
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
205
205
|
name: "ZD-ticknew",
|
|
206
206
|
size: "8"
|
|
207
|
-
})) : null);
|
|
207
|
+
})) : null));
|
|
208
208
|
}
|
|
209
209
|
}]);
|
|
210
210
|
|
|
@@ -161,12 +161,14 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
161
161
|
title: null,
|
|
162
162
|
customProps: ListItemProps
|
|
163
163
|
}, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
164
|
+
className: _ListItemModule["default"].contentWrapper
|
|
165
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
164
166
|
align: lhsAlignContent,
|
|
165
167
|
className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"].lhsBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)]),
|
|
166
168
|
dataId: "".concat(dataId, "_radio")
|
|
167
169
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
168
170
|
align: lhsAlignContent,
|
|
169
|
-
className: lhsAlignContent !== 'center' ? _ListItemModule["default"]
|
|
171
|
+
className: lhsAlignContent !== 'center' ? _ListItemModule["default"].lhsBoxInner : ''
|
|
170
172
|
}, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
171
173
|
checked: checked,
|
|
172
174
|
id: id,
|
|
@@ -192,7 +194,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
|
|
|
192
194
|
}, (0, _utils.renderNode)(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
193
195
|
"data-title": isDisabled ? null : secondaryValue,
|
|
194
196
|
className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLine : _ListItemModule["default"].secondaryValue)
|
|
195
|
-
}, secondaryValue) : null));
|
|
197
|
+
}, secondaryValue) : null)));
|
|
196
198
|
}
|
|
197
199
|
}]);
|
|
198
200
|
|
|
@@ -37,7 +37,8 @@ var ListItemDefaultProps = {
|
|
|
37
37
|
customClass: {},
|
|
38
38
|
customProps: {},
|
|
39
39
|
dataSelectorId: 'listItem',
|
|
40
|
-
needMultiLineText: false
|
|
40
|
+
needMultiLineText: false,
|
|
41
|
+
lhsAlignContent: 'start'
|
|
41
42
|
};
|
|
42
43
|
exports.ListItemDefaultProps = ListItemDefaultProps;
|
|
43
44
|
var ListItemWithAvatarDefaultProps = {
|
|
@@ -78,14 +78,16 @@ var ListItem_Props = {
|
|
|
78
78
|
customClass: _propTypes["default"].shape({
|
|
79
79
|
customListItem: _propTypes["default"].string,
|
|
80
80
|
customTickIcon: _propTypes["default"].string,
|
|
81
|
-
customValueRightPlaceholder: _propTypes["default"].string
|
|
81
|
+
customValueRightPlaceholder: _propTypes["default"].string,
|
|
82
|
+
titleBoxClass: _propTypes["default"].string
|
|
82
83
|
}),
|
|
83
84
|
customProps: _propTypes["default"].shape({
|
|
84
85
|
ListItemProps: _propTypes["default"].object
|
|
85
86
|
}),
|
|
86
87
|
secondaryValue: _propTypes["default"].string,
|
|
87
88
|
renderBeforeChildren: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func]),
|
|
88
|
-
renderValueRightPlaceholderNode: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func])
|
|
89
|
+
renderValueRightPlaceholderNode: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func]),
|
|
90
|
+
lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end'])
|
|
89
91
|
};
|
|
90
92
|
exports.ListItem_Props = ListItem_Props;
|
|
91
93
|
var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
|
|
@@ -55,6 +55,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
55
55
|
|
|
56
56
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
57
57
|
|
|
58
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
59
|
+
|
|
58
60
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
59
61
|
|
|
60
62
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -979,7 +981,10 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
979
981
|
autoComplete = _this$props9.autoComplete,
|
|
980
982
|
getTargetRef = _this$props9.getTargetRef,
|
|
981
983
|
isFocus = _this$props9.isFocus,
|
|
982
|
-
limit = _this$props9.limit
|
|
984
|
+
limit = _this$props9.limit,
|
|
985
|
+
customProps = _this$props9.customProps;
|
|
986
|
+
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
987
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
983
988
|
var _i18nKeys = i18nKeys,
|
|
984
989
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
985
990
|
clearText = _i18nKeys$clearText === void 0 ? _constants.MULTISELECT_I18N_KEYS.clearText : _i18nKeys$clearText,
|
|
@@ -1145,7 +1150,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1145
1150
|
a11y: {
|
|
1146
1151
|
role: 'heading'
|
|
1147
1152
|
}
|
|
1148
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1153
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({}, SuggestionsProps, {
|
|
1149
1154
|
suggestions: suggestions,
|
|
1150
1155
|
selectedOptions: selectedOptionIds,
|
|
1151
1156
|
getRef: _this5.suggestionItemRef,
|
|
@@ -1160,7 +1165,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1160
1165
|
limit: limit,
|
|
1161
1166
|
limitReachedMessage: limitReachedMessage,
|
|
1162
1167
|
dataId: "".concat(dataId, "_Options")
|
|
1163
|
-
}));
|
|
1168
|
+
})));
|
|
1164
1169
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1165
1170
|
options: revampedGroups,
|
|
1166
1171
|
searchString: searchStr,
|
|
@@ -1171,9 +1171,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1171
1171
|
isLoading = _this$props15.isLoading,
|
|
1172
1172
|
selectAllText = _this$props15.selectAllText,
|
|
1173
1173
|
needSelectAll = _this$props15.needSelectAll,
|
|
1174
|
-
customProps = _this$props15.customProps,
|
|
1175
1174
|
isVirtualizerEnabled = _this$props15.isVirtualizerEnabled,
|
|
1176
|
-
limit = _this$props15.limit
|
|
1175
|
+
limit = _this$props15.limit,
|
|
1176
|
+
customProps = _this$props15.customProps;
|
|
1177
1177
|
var _this$state9 = this.state,
|
|
1178
1178
|
selectedOptions = _this$state9.selectedOptions,
|
|
1179
1179
|
searchStr = _this$state9.searchStr,
|
|
@@ -247,15 +247,19 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
247
247
|
htmlId = _this$props2.htmlId,
|
|
248
248
|
a11y = _this$props2.a11y,
|
|
249
249
|
getVirtualizerPublicMethods = _this$props2.getVirtualizerPublicMethods,
|
|
250
|
-
setVirtualizerContainerRefFunction = _this$props2.setVirtualizerContainerRefFunction
|
|
250
|
+
setVirtualizerContainerRefFunction = _this$props2.setVirtualizerContainerRefFunction,
|
|
251
|
+
customClass = _this$props2.customClass;
|
|
251
252
|
var ariaParentRole = a11y.ariaParentRole,
|
|
252
253
|
ariaMultiselectable = a11y.ariaMultiselectable;
|
|
254
|
+
var _customClass$containe = customClass.containerClass,
|
|
255
|
+
containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
|
|
253
256
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
254
257
|
isCover: false,
|
|
255
258
|
role: ariaParentRole,
|
|
256
259
|
id: htmlId,
|
|
257
260
|
tabindex: "0",
|
|
258
|
-
"aria-multiselectable": ariaMultiselectable
|
|
261
|
+
"aria-multiselectable": ariaMultiselectable,
|
|
262
|
+
className: containerClass
|
|
259
263
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
260
264
|
dataId: "".concat(dataId),
|
|
261
265
|
className: className ? className : ''
|
|
@@ -46,6 +46,7 @@ var AdvancedGroupMultiSelect_defaultProps = {
|
|
|
46
46
|
palette: 'default',
|
|
47
47
|
isLoading: false,
|
|
48
48
|
dataSelectorId: 'advancedGroupMultiSelect',
|
|
49
|
+
customProps: {},
|
|
49
50
|
allowValueFallback: true
|
|
50
51
|
};
|
|
51
52
|
exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
|
|
@@ -184,6 +185,7 @@ exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
|
|
|
184
185
|
var Suggestions_defaultProps = {
|
|
185
186
|
a11y: {},
|
|
186
187
|
isVirtualizerEnabled: false,
|
|
188
|
+
customClass: {},
|
|
187
189
|
needMultiLineText: false
|
|
188
190
|
};
|
|
189
191
|
exports.Suggestions_defaultProps = Suggestions_defaultProps;
|
|
@@ -133,7 +133,8 @@ var MultiSelect_propTypes = {
|
|
|
133
133
|
setAriaId: _propTypes["default"].string,
|
|
134
134
|
ariaErrorId: _propTypes["default"].string,
|
|
135
135
|
customProps: _propTypes["default"].shape({
|
|
136
|
-
TextBoxIconProps: _propTypes["default"].object
|
|
136
|
+
TextBoxIconProps: _propTypes["default"].object,
|
|
137
|
+
SuggestionsProps: _propTypes["default"].object
|
|
137
138
|
}),
|
|
138
139
|
isFocus: _propTypes["default"].bool,
|
|
139
140
|
allowValueFallback: _propTypes["default"].bool,
|
|
@@ -189,7 +190,8 @@ var SelectedOptions_propTypes = {
|
|
|
189
190
|
limit: _propTypes["default"].number
|
|
190
191
|
};
|
|
191
192
|
exports.SelectedOptions_propTypes = SelectedOptions_propTypes;
|
|
192
|
-
|
|
193
|
+
|
|
194
|
+
var Suggestions_propTypes = _defineProperty({
|
|
193
195
|
a11y: _propTypes["default"].shape({
|
|
194
196
|
ariaParentRole: _propTypes["default"].string,
|
|
195
197
|
ariaMultiselectable: _propTypes["default"].bool
|
|
@@ -223,8 +225,12 @@ var Suggestions_propTypes = {
|
|
|
223
225
|
})),
|
|
224
226
|
renderBeforeChildren: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node]),
|
|
225
227
|
limit: _propTypes["default"].number,
|
|
226
|
-
limitReachedMessage: _propTypes["default"].string
|
|
227
|
-
|
|
228
|
+
limitReachedMessage: _propTypes["default"].string,
|
|
229
|
+
customClass: _propTypes["default"].shape({
|
|
230
|
+
containerClass: _propTypes["default"].string
|
|
231
|
+
})
|
|
232
|
+
}, "needMultiLineText", _propTypes["default"].bool);
|
|
233
|
+
|
|
228
234
|
exports.Suggestions_propTypes = Suggestions_propTypes;
|
|
229
235
|
var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
230
236
|
animationStyle: _propTypes["default"].string,
|
|
@@ -295,7 +301,9 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
|
295
301
|
needToCloseOnSelect: _propTypes["default"].func,
|
|
296
302
|
searchStr: _propTypes["default"].string,
|
|
297
303
|
children: _propTypes["default"].node
|
|
298
|
-
}, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "limit", _propTypes["default"].number), _AdvancedGroupMultiSe
|
|
304
|
+
}, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "limit", _propTypes["default"].number), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].shape({
|
|
305
|
+
SuggestionsProps: _propTypes["default"].object
|
|
306
|
+
})), _AdvancedGroupMultiSe);
|
|
299
307
|
exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
|
|
300
308
|
|
|
301
309
|
var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
|
package/lib/Popup/Popup.js
CHANGED
|
@@ -35,15 +35,8 @@ var Popup = function Popup(Component) {
|
|
|
35
35
|
closeOnScroll = _options$closeOnScrol === void 0 ? false : _options$closeOnScrol,
|
|
36
36
|
_options$isOutsideScr = options.isOutsideScrollBlocked,
|
|
37
37
|
isOutsideScrollBlocked = _options$isOutsideScr === void 0 ? false : _options$isOutsideScr;
|
|
38
|
-
|
|
39
|
-
var
|
|
40
|
-
return (0, _Config.getLibraryConfig)('getRootElement');
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var getMobileWidth = function getMobileWidth() {
|
|
44
|
-
return (0, _Config.getLibraryConfig)('mobileWidth');
|
|
45
|
-
};
|
|
46
|
-
|
|
38
|
+
var getRootElement = (0, _Config.getLibraryConfig)('getRootElement');
|
|
39
|
+
var mobileWidth = (0, _Config.getLibraryConfig)('mobileWidth');
|
|
47
40
|
var middleware = {
|
|
48
41
|
useAbsolutePositioning: isAbsolutePositioningNeeded,
|
|
49
42
|
positionOrder: customOrder,
|
|
@@ -55,8 +48,8 @@ var Popup = function Popup(Component) {
|
|
|
55
48
|
};
|
|
56
49
|
var popupConfig = {
|
|
57
50
|
group: group,
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
mobileWidth: mobileWidth,
|
|
52
|
+
rootElementCallback: getRootElement,
|
|
60
53
|
middleware: middleware
|
|
61
54
|
};
|
|
62
55
|
return (0, _Popup["default"])(Component, popupConfig);
|
|
@@ -700,7 +700,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
700
700
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
701
701
|
_customProps$TextBoxP = customProps.TextBoxProps,
|
|
702
702
|
TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP,
|
|
703
|
-
|
|
703
|
+
_customProps$Suggesti = customProps.SuggestionsProps,
|
|
704
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
704
705
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
705
706
|
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 : ''),
|
|
706
707
|
"data-id": dataIdSlctComp,
|
|
@@ -221,8 +221,8 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
221
221
|
needEffect = _this$props.needEffect,
|
|
222
222
|
isLoading = _this$props.isLoading,
|
|
223
223
|
dataSelectorId = _this$props.dataSelectorId,
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
getTargetRef = _this$props.getTargetRef,
|
|
225
|
+
customProps = _this$props.customProps;
|
|
226
226
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
227
227
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
228
228
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -245,7 +245,8 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
245
245
|
var ariaErrorId = this.getNextAriaId();
|
|
246
246
|
var TextBoxProps = customProps.TextBoxProps,
|
|
247
247
|
DropdownSearchTextBoxProps = customProps.DropdownSearchTextBoxProps,
|
|
248
|
-
|
|
248
|
+
_customProps$Suggesti = customProps.SuggestionsProps,
|
|
249
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
249
250
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
250
251
|
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 : ''),
|
|
251
252
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
@@ -431,7 +431,8 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
431
431
|
htmlId = _this$props7.htmlId,
|
|
432
432
|
isLoading = _this$props7.isLoading,
|
|
433
433
|
dataSelectorId = _this$props7.dataSelectorId,
|
|
434
|
-
customProps = _this$props7.customProps
|
|
434
|
+
customProps = _this$props7.customProps,
|
|
435
|
+
customClass = _this$props7.customClass;
|
|
435
436
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
436
437
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
437
438
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -449,7 +450,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
449
450
|
DropdownSearchTextBoxProps = _customProps$Dropdown === void 0 ? {} : _customProps$Dropdown,
|
|
450
451
|
_customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
451
452
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
452
|
-
|
|
453
|
+
_customProps$ListItem = customProps.ListItemProps,
|
|
454
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
455
|
+
var _customClass$dropBoxC = customClass.dropBoxClass,
|
|
456
|
+
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
453
457
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
454
458
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : ''),
|
|
455
459
|
"data-title": isDisabled ? title : null,
|
|
@@ -542,7 +546,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
542
546
|
size: boxSize,
|
|
543
547
|
isPadding: false,
|
|
544
548
|
isResponsivePadding: true,
|
|
545
|
-
alignBox: "row"
|
|
549
|
+
alignBox: "row",
|
|
550
|
+
customClass: {
|
|
551
|
+
customDropBox: dropBoxClass
|
|
552
|
+
}
|
|
546
553
|
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
547
554
|
align: "both",
|
|
548
555
|
className: _SelectModule["default"].loader
|
|
@@ -91,7 +91,8 @@ var GroupSelect_defaultProps = {
|
|
|
91
91
|
allowValueFallback: true
|
|
92
92
|
};
|
|
93
93
|
exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
|
|
94
|
-
|
|
94
|
+
|
|
95
|
+
var SelectWithAvatar_defaultProps = _defineProperty({
|
|
95
96
|
animationStyle: 'bounce',
|
|
96
97
|
defaultDropBoxPosition: 'bottom',
|
|
97
98
|
dropBoxSize: 'small',
|
|
@@ -117,7 +118,8 @@ var SelectWithAvatar_defaultProps = {
|
|
|
117
118
|
customProps: {},
|
|
118
119
|
needEffect: true,
|
|
119
120
|
isLoading: false
|
|
120
|
-
};
|
|
121
|
+
}, "customProps", {});
|
|
122
|
+
|
|
121
123
|
exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
|
|
122
124
|
var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
123
125
|
isReadOnly: false,
|
|
@@ -128,5 +130,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
|
|
|
128
130
|
needListBorder: false,
|
|
129
131
|
needSearch: false,
|
|
130
132
|
boxSize: 'default'
|
|
131
|
-
}, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "searchFields", []), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _SelectWithIcon_defau);
|
|
133
|
+
}, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "searchFields", []), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _defineProperty(_SelectWithIcon_defau, "customClass", {}), _SelectWithIcon_defau);
|
|
132
134
|
exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;
|
|
@@ -204,7 +204,8 @@ var GroupSelect_propTypes = {
|
|
|
204
204
|
isDefaultSelectValue: _propTypes["default"].bool,
|
|
205
205
|
customProps: _propTypes["default"].shape({
|
|
206
206
|
TextBoxProps: _propTypes["default"].object,
|
|
207
|
-
TextBoxIconProps: _propTypes["default"].object
|
|
207
|
+
TextBoxIconProps: _propTypes["default"].object,
|
|
208
|
+
SuggestionsProps: _propTypes["default"].object
|
|
208
209
|
}),
|
|
209
210
|
allowValueFallback: _propTypes["default"].bool
|
|
210
211
|
};
|
|
@@ -269,7 +270,10 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
|
|
|
269
270
|
htmlId: _propTypes["default"].string,
|
|
270
271
|
needEffect: _propTypes["default"].bool,
|
|
271
272
|
isLoading: _propTypes["default"].bool,
|
|
272
|
-
dataSelectorId: _propTypes["default"].string
|
|
273
|
+
dataSelectorId: _propTypes["default"].string,
|
|
274
|
+
customProps: _propTypes["default"].shape({
|
|
275
|
+
SuggestionsProps: _propTypes["default"].object
|
|
276
|
+
})
|
|
273
277
|
});
|
|
274
278
|
|
|
275
279
|
exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
|
|
@@ -336,7 +340,11 @@ var SelectWithIcon_propTypes = {
|
|
|
336
340
|
TextBoxProps: _propTypes["default"].object,
|
|
337
341
|
DropdownSearchTextBoxProps: _propTypes["default"].object,
|
|
338
342
|
SuggestionsProps: _propTypes["default"].object,
|
|
339
|
-
TextBoxIconProps: _propTypes["default"].object
|
|
343
|
+
TextBoxIconProps: _propTypes["default"].object,
|
|
344
|
+
ListItemProps: _propTypes["default"].object
|
|
345
|
+
}),
|
|
346
|
+
customClass: _propTypes["default"].shape({
|
|
347
|
+
dropBoxClass: _propTypes["default"].string
|
|
340
348
|
})
|
|
341
349
|
};
|
|
342
350
|
exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-199.23",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
|
|
40
40
|
"coverage": "react-cli coverage",
|
|
41
41
|
"prepare": "npm run init && npm run css:build ",
|
|
42
|
-
"prepublishOnly": "node prePublish.js && npm run
|
|
42
|
+
"prepublishOnly": "node prePublish.js && npm run css:review && npm run review:props ",
|
|
43
43
|
"postpublish": "node postPublish.js",
|
|
44
44
|
"report": "react-cli publish:report",
|
|
45
45
|
"test": "react-cli test",
|