@zohodesk/components 1.0.0-temp-199.24 → 1.0.0-temp-242.6
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 +4 -0
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -4
- package/es/ListItem/ListItem.js +3 -5
- package/es/ListItem/ListItem.module.css +30 -44
- package/es/ListItem/ListItemWithAvatar.js +4 -6
- package/es/ListItem/ListItemWithCheckBox.js +3 -5
- package/es/ListItem/ListItemWithIcon.js +5 -6
- package/es/ListItem/ListItemWithRadio.js +3 -5
- package/es/ListItem/props/defaultProps.js +1 -2
- package/es/ListItem/props/propTypes.js +2 -4
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +3 -9
- package/es/MultiSelect/MultiSelect.js +2 -2
- package/es/MultiSelect/Suggestions.js +2 -7
- package/es/MultiSelect/props/defaultProps.js +0 -2
- package/es/MultiSelect/props/propTypes.js +3 -11
- package/es/Popup/Popup.js +8 -2
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/SelectWithAvatar.js +3 -3
- package/es/Select/SelectWithIcon.js +3 -10
- package/es/Select/props/defaultProps.js +2 -4
- package/es/Select/props/propTypes.js +3 -11
- package/es/common/common.module.css +1 -1
- package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -4
- package/lib/ListItem/ListItem.js +3 -6
- package/lib/ListItem/ListItem.module.css +30 -44
- package/lib/ListItem/ListItemWithAvatar.js +4 -6
- package/lib/ListItem/ListItemWithCheckBox.js +3 -5
- package/lib/ListItem/ListItemWithIcon.js +5 -6
- package/lib/ListItem/ListItemWithRadio.js +3 -5
- package/lib/ListItem/props/defaultProps.js +1 -2
- package/lib/ListItem/props/propTypes.js +2 -4
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -8
- package/lib/MultiSelect/MultiSelect.js +2 -2
- package/lib/MultiSelect/Suggestions.js +2 -6
- package/lib/MultiSelect/props/defaultProps.js +0 -2
- package/lib/MultiSelect/props/propTypes.js +5 -13
- package/lib/Popup/Popup.js +11 -2
- package/lib/Select/GroupSelect.js +1 -2
- package/lib/Select/SelectWithAvatar.js +3 -4
- package/lib/Select/SelectWithIcon.js +3 -10
- package/lib/Select/props/defaultProps.js +3 -5
- package/lib/Select/props/propTypes.js +3 -11
- package/lib/common/common.module.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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
|
+
|
|
7
|
+
- **Popup**
|
|
8
|
+
- Added `isAutoHeight`, `isAutoHeightOnScroll` and `heightAdjustment` to handle dynamic content height.
|
|
5
9
|
|
|
6
10
|
# 1.6.1
|
|
7
11
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
|
|
3
|
-
--local-colorIndicator-
|
|
4
|
-
/* css:validation:ignore */
|
|
5
|
-
--local-colorIndicator-width: var(--zd_font_size10);
|
|
2
|
+
--local-colorIndicator-height: 10px;
|
|
3
|
+
--local-colorIndicator-width: 10px;
|
|
6
4
|
--local-colorIndicator-border-radius: 10px;
|
|
7
5
|
}
|
|
8
6
|
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -78,8 +78,7 @@ export default class ListItem extends React.Component {
|
|
|
78
78
|
needMultiLineText,
|
|
79
79
|
secondaryValue,
|
|
80
80
|
renderBeforeChildren,
|
|
81
|
-
renderValueRightPlaceholderNode
|
|
82
|
-
lhsAlignContent
|
|
81
|
+
renderValueRightPlaceholderNode
|
|
83
82
|
} = this.props;
|
|
84
83
|
let {
|
|
85
84
|
ListItemProps = {},
|
|
@@ -88,8 +87,7 @@ export default class ListItem extends React.Component {
|
|
|
88
87
|
let {
|
|
89
88
|
customListItem = '',
|
|
90
89
|
customTickIcon = '',
|
|
91
|
-
customValueRightPlaceholder = ''
|
|
92
|
-
titleBoxClass = ''
|
|
90
|
+
customValueRightPlaceholder = ''
|
|
93
91
|
} = customClass;
|
|
94
92
|
const listA11y = {
|
|
95
93
|
ariaHidden: true,
|
|
@@ -127,7 +125,7 @@ export default class ListItem extends React.Component {
|
|
|
127
125
|
flexible: true,
|
|
128
126
|
className: style.leftBox
|
|
129
127
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
130
|
-
className:
|
|
128
|
+
className: style.titleBox
|
|
131
129
|
}, isRenderable(renderBeforeChildren) ? /*#__PURE__*/React.createElement(Box, {
|
|
132
130
|
adjust: true,
|
|
133
131
|
className: style.beforeChild
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* css:lineheight-validation:ignore */
|
|
2
1
|
.varClass {
|
|
3
2
|
/* listitem default variables */
|
|
4
3
|
--listitem_font_size: 13px;
|
|
@@ -16,15 +15,10 @@
|
|
|
16
15
|
|
|
17
16
|
/* listitem tick icon default variables */
|
|
18
17
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
19
|
-
|
|
20
|
-
/* line-height for multiline text */
|
|
21
|
-
--listitem_multiline_lineheight: 1.5385;
|
|
22
|
-
}
|
|
23
|
-
[dir=ltr] .varClass {
|
|
18
|
+
}[dir=ltr] .varClass {
|
|
24
19
|
--listitem_avatar_margin: 0 15px 0 0
|
|
25
20
|
/*rtl: 0 0 0 15px*/;
|
|
26
|
-
}
|
|
27
|
-
[dir=rtl] .varClass {
|
|
21
|
+
}[dir=rtl] .varClass {
|
|
28
22
|
--listitem_avatar_margin: 0 0 0 15px;
|
|
29
23
|
}
|
|
30
24
|
.list {
|
|
@@ -81,18 +75,18 @@
|
|
|
81
75
|
.children,.secondaryValue {
|
|
82
76
|
composes: dotted from '../common/common.module.css';
|
|
83
77
|
}
|
|
84
|
-
|
|
78
|
+
[dir=ltr] .beforeChild{
|
|
79
|
+
margin-right: var(--zd_size10) ;
|
|
80
|
+
}
|
|
81
|
+
[dir=rtl] .beforeChild{
|
|
82
|
+
margin-left: var(--zd_size10) ;
|
|
83
|
+
}
|
|
85
84
|
.value, .multiLineValue {
|
|
86
|
-
line-height:
|
|
85
|
+
line-height: 1.5385;
|
|
87
86
|
}
|
|
88
87
|
.multiLineValue,.multiLine{
|
|
89
88
|
composes: lineClamp from '../common/common.module.css';
|
|
90
89
|
}
|
|
91
|
-
.iconBox,
|
|
92
|
-
.leftAvatar,
|
|
93
|
-
.lhsBoxInner {
|
|
94
|
-
composes: dflex from '../common/common.module.css';
|
|
95
|
-
}
|
|
96
90
|
.iconBox {
|
|
97
91
|
width: var(--zd_size20) ;
|
|
98
92
|
text-align: center;
|
|
@@ -110,16 +104,10 @@
|
|
|
110
104
|
.leftAvatar {
|
|
111
105
|
margin: var(--listitem_avatar_margin);
|
|
112
106
|
}
|
|
113
|
-
.iconWrapper{
|
|
114
|
-
height: calc(var(--listitem_font_size) * var(--listitem_multiline_lineheight));
|
|
115
|
-
}
|
|
116
107
|
|
|
117
|
-
.iconWrapper,
|
|
118
108
|
.lhsJustifyContent_start,
|
|
119
109
|
.lhsJustifyContent_center,
|
|
120
|
-
.lhsJustifyContent_end
|
|
121
|
-
.beforeChild,
|
|
122
|
-
.titleBox {
|
|
110
|
+
.lhsJustifyContent_end {
|
|
123
111
|
composes: dflex alignVertical from '../common/common.module.css';
|
|
124
112
|
}
|
|
125
113
|
.lhsJustifyContent_start {
|
|
@@ -132,32 +120,26 @@
|
|
|
132
120
|
composes: justifyFend from '../common/common.module.css';
|
|
133
121
|
}
|
|
134
122
|
|
|
135
|
-
.
|
|
136
|
-
composes: dflex
|
|
137
|
-
align-
|
|
138
|
-
width: 100% ;
|
|
139
|
-
}
|
|
140
|
-
.beforeChild{
|
|
141
|
-
height: calc(var(--listitem_font_size) * var(--listitem_multiline_lineheight));
|
|
142
|
-
}
|
|
143
|
-
[dir=ltr] .beforeChild{
|
|
144
|
-
margin-right: var(--zd_size10) ;
|
|
145
|
-
}
|
|
146
|
-
[dir=rtl] .beforeChild{
|
|
147
|
-
margin-left: var(--zd_size10) ;
|
|
123
|
+
.lhsBox {
|
|
124
|
+
composes: dflex from '../common/common.module.css';
|
|
125
|
+
align-self: stretch;
|
|
148
126
|
}
|
|
149
|
-
.
|
|
150
|
-
|
|
127
|
+
.lhsBox_small,
|
|
128
|
+
.lhsBox_medium,
|
|
129
|
+
.lhsBox_large{
|
|
130
|
+
composes: varClass;
|
|
131
|
+
--listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
|
|
132
|
+
height: 100% ;
|
|
133
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
151
134
|
}
|
|
152
|
-
.
|
|
153
|
-
|
|
135
|
+
.lhsBox_small {
|
|
136
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size7)); /* 7px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
154
137
|
}
|
|
155
|
-
.
|
|
156
|
-
|
|
138
|
+
.lhsBox_medium {
|
|
139
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size8)); /* 8px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
157
140
|
}
|
|
158
|
-
.
|
|
159
|
-
height:
|
|
160
|
-
max-height: calc((var(--listitem_font_size) * var(--listitem_multiline_lineheight)) * 2 );
|
|
141
|
+
.lhsBox_large {
|
|
142
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size15)); /* 15px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
161
143
|
}
|
|
162
144
|
.defaultHover, .primaryHover, .dangerHover, .secondaryHover, .darkHover {
|
|
163
145
|
background-color: var(--listitem_highlight_bg_color);
|
|
@@ -300,4 +282,8 @@
|
|
|
300
282
|
|
|
301
283
|
.leftBox {
|
|
302
284
|
composes: dflex flexcolumn from '../common/common.module.css';
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.titleBox {
|
|
288
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
303
289
|
}
|
|
@@ -125,13 +125,11 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
125
125
|
disableTitle: disableTitle,
|
|
126
126
|
title: null,
|
|
127
127
|
customProps: ListItemProps
|
|
128
|
-
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
129
|
-
className: style.
|
|
130
|
-
}, name || imgSrc ? /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
className: `${style.leftAvatar}`
|
|
128
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
129
|
+
className: `${style.leftAvatar} ${lhsAlignContent !== 'center' ? `${style.lhsBox}` : ''}`
|
|
132
130
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
133
131
|
align: lhsAlignContent,
|
|
134
|
-
className:
|
|
132
|
+
className: style[`lhsBox_${size}`]
|
|
135
133
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, _extends({
|
|
136
134
|
name: name,
|
|
137
135
|
size: "small",
|
|
@@ -175,7 +173,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
175
173
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
176
174
|
name: "ZD-ticknew",
|
|
177
175
|
size: "8"
|
|
178
|
-
})) : null)
|
|
176
|
+
})) : null);
|
|
179
177
|
}
|
|
180
178
|
|
|
181
179
|
}
|
|
@@ -102,13 +102,11 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
102
102
|
title: null,
|
|
103
103
|
customProps: ListItemProps
|
|
104
104
|
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
105
|
-
className: style.
|
|
106
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
107
|
-
className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
105
|
+
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
108
106
|
dataId: `${dataId ? dataId : value}_checkBox`
|
|
109
107
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
110
108
|
align: lhsAlignContent,
|
|
111
|
-
className: lhsAlignContent !== 'center' ? style
|
|
109
|
+
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
112
110
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
113
111
|
checked: checked,
|
|
114
112
|
a11y: {
|
|
@@ -133,7 +131,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
133
131
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
134
132
|
"data-title": isDisabled ? null : secondaryValue,
|
|
135
133
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
136
|
-
}, secondaryValue) : null))
|
|
134
|
+
}, secondaryValue) : null));
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
}
|
|
@@ -117,15 +117,14 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
117
117
|
disableTitle: disableTitle,
|
|
118
118
|
title: null,
|
|
119
119
|
customProps: ListItemProps
|
|
120
|
-
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
121
|
-
className: `${style.contentWrapper} ${!iconName && lhsAlignContent !== 'start' ? style[`alignLhsBox_${lhsAlignContent}`] : ''}`
|
|
122
|
-
}, iconName && /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
}, ContainerProps), iconName && /*#__PURE__*/React.createElement(Box, {
|
|
123
121
|
"aria-hidden": true,
|
|
124
|
-
|
|
122
|
+
align: lhsAlignContent,
|
|
123
|
+
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
125
124
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
126
125
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
127
126
|
align: lhsAlignContent,
|
|
128
|
-
className: style
|
|
127
|
+
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
129
128
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
130
129
|
iconClass: iconClass,
|
|
131
130
|
name: iconName,
|
|
@@ -156,7 +155,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
156
155
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
157
156
|
name: "ZD-ticknew",
|
|
158
157
|
size: "8"
|
|
159
|
-
})) : null)
|
|
158
|
+
})) : null);
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
}
|
|
@@ -103,14 +103,12 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
103
103
|
title: null,
|
|
104
104
|
customProps: ListItemProps
|
|
105
105
|
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
106
|
-
className: style.contentWrapper
|
|
107
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
108
106
|
align: lhsAlignContent,
|
|
109
|
-
className: `${style.iconBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
107
|
+
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
110
108
|
dataId: `${dataId}_radio`
|
|
111
109
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
112
110
|
align: lhsAlignContent,
|
|
113
|
-
className: lhsAlignContent !== 'center' ? style
|
|
111
|
+
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
114
112
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
115
113
|
checked: checked,
|
|
116
114
|
id: id,
|
|
@@ -136,7 +134,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
136
134
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
137
135
|
"data-title": isDisabled ? null : secondaryValue,
|
|
138
136
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
139
|
-
}, secondaryValue) : null))
|
|
137
|
+
}, secondaryValue) : null));
|
|
140
138
|
}
|
|
141
139
|
|
|
142
140
|
}
|
|
@@ -30,8 +30,7 @@ export const ListItemDefaultProps = {
|
|
|
30
30
|
customClass: {},
|
|
31
31
|
customProps: {},
|
|
32
32
|
dataSelectorId: 'listItem',
|
|
33
|
-
needMultiLineText: false
|
|
34
|
-
lhsAlignContent: 'start'
|
|
33
|
+
needMultiLineText: false
|
|
35
34
|
};
|
|
36
35
|
export const ListItemWithAvatarDefaultProps = {
|
|
37
36
|
active: false,
|
|
@@ -61,16 +61,14 @@ export const ListItem_Props = {
|
|
|
61
61
|
customClass: PropTypes.shape({
|
|
62
62
|
customListItem: PropTypes.string,
|
|
63
63
|
customTickIcon: PropTypes.string,
|
|
64
|
-
customValueRightPlaceholder: PropTypes.string
|
|
65
|
-
titleBoxClass: PropTypes.string
|
|
64
|
+
customValueRightPlaceholder: PropTypes.string
|
|
66
65
|
}),
|
|
67
66
|
customProps: PropTypes.shape({
|
|
68
67
|
ListItemProps: PropTypes.object
|
|
69
68
|
}),
|
|
70
69
|
secondaryValue: PropTypes.string,
|
|
71
70
|
renderBeforeChildren: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
72
|
-
renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
|
|
73
|
-
lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end'])
|
|
71
|
+
renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
|
|
74
72
|
};
|
|
75
73
|
export const ListItemWithAvatar_Props = {
|
|
76
74
|
active: PropTypes.bool,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { AdvancedGroupMultiSelect_propTypes } from "./props/propTypes";
|
|
5
3
|
import { AdvancedGroupMultiSelect_defaultProps } from "./props/defaultProps";
|
|
@@ -891,12 +889,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
891
889
|
autoComplete,
|
|
892
890
|
getTargetRef,
|
|
893
891
|
isFocus,
|
|
894
|
-
limit
|
|
895
|
-
customProps
|
|
892
|
+
limit
|
|
896
893
|
} = this.props;
|
|
897
|
-
const {
|
|
898
|
-
SuggestionsProps = {}
|
|
899
|
-
} = customProps;
|
|
900
894
|
let {
|
|
901
895
|
clearText = MULTISELECT_I18N_KEYS.clearText,
|
|
902
896
|
limitReachedMessage = MULTISELECT_I18N_KEYS.limitReachedMessage
|
|
@@ -1065,7 +1059,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1065
1059
|
a11y: {
|
|
1066
1060
|
role: 'heading'
|
|
1067
1061
|
}
|
|
1068
|
-
})), /*#__PURE__*/React.createElement(Suggestions,
|
|
1062
|
+
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1069
1063
|
suggestions: suggestions,
|
|
1070
1064
|
selectedOptions: selectedOptionIds,
|
|
1071
1065
|
getRef: this.suggestionItemRef,
|
|
@@ -1080,7 +1074,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1080
1074
|
limit: limit,
|
|
1081
1075
|
limitReachedMessage: limitReachedMessage,
|
|
1082
1076
|
dataId: `${dataId}_Options`
|
|
1083
|
-
}))
|
|
1077
|
+
}));
|
|
1084
1078
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1085
1079
|
options: revampedGroups,
|
|
1086
1080
|
searchString: searchStr,
|
|
@@ -1096,9 +1096,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1096
1096
|
isLoading,
|
|
1097
1097
|
selectAllText,
|
|
1098
1098
|
needSelectAll,
|
|
1099
|
+
customProps,
|
|
1099
1100
|
isVirtualizerEnabled,
|
|
1100
|
-
limit
|
|
1101
|
-
customProps
|
|
1101
|
+
limit
|
|
1102
1102
|
} = this.props;
|
|
1103
1103
|
const {
|
|
1104
1104
|
selectedOptions,
|
|
@@ -195,23 +195,18 @@ export default class Suggestions extends React.PureComponent {
|
|
|
195
195
|
htmlId,
|
|
196
196
|
a11y,
|
|
197
197
|
getVirtualizerPublicMethods,
|
|
198
|
-
setVirtualizerContainerRefFunction
|
|
199
|
-
customClass
|
|
198
|
+
setVirtualizerContainerRefFunction
|
|
200
199
|
} = this.props;
|
|
201
200
|
const {
|
|
202
201
|
ariaParentRole,
|
|
203
202
|
ariaMultiselectable
|
|
204
203
|
} = a11y;
|
|
205
|
-
const {
|
|
206
|
-
containerClass = ''
|
|
207
|
-
} = customClass;
|
|
208
204
|
return /*#__PURE__*/React.createElement(Container, {
|
|
209
205
|
isCover: false,
|
|
210
206
|
role: ariaParentRole,
|
|
211
207
|
id: htmlId,
|
|
212
208
|
tabindex: "0",
|
|
213
|
-
"aria-multiselectable": ariaMultiselectable
|
|
214
|
-
className: containerClass
|
|
209
|
+
"aria-multiselectable": ariaMultiselectable
|
|
215
210
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
216
211
|
dataId: `${dataId}`,
|
|
217
212
|
className: className ? className : ''
|
|
@@ -38,7 +38,6 @@ export const AdvancedGroupMultiSelect_defaultProps = {
|
|
|
38
38
|
palette: 'default',
|
|
39
39
|
isLoading: false,
|
|
40
40
|
dataSelectorId: 'advancedGroupMultiSelect',
|
|
41
|
-
customProps: {},
|
|
42
41
|
allowValueFallback: true
|
|
43
42
|
};
|
|
44
43
|
export const AdvancedMultiSelect_defaultProps = {
|
|
@@ -170,6 +169,5 @@ export const SelectedOptions_defaultProps = {
|
|
|
170
169
|
export const Suggestions_defaultProps = {
|
|
171
170
|
a11y: {},
|
|
172
171
|
isVirtualizerEnabled: false,
|
|
173
|
-
customClass: {},
|
|
174
172
|
needMultiLineText: false
|
|
175
173
|
};
|
|
@@ -114,8 +114,7 @@ export const MultiSelect_propTypes = {
|
|
|
114
114
|
setAriaId: PropTypes.string,
|
|
115
115
|
ariaErrorId: PropTypes.string,
|
|
116
116
|
customProps: PropTypes.shape({
|
|
117
|
-
TextBoxIconProps: PropTypes.object
|
|
118
|
-
SuggestionsProps: PropTypes.object
|
|
117
|
+
TextBoxIconProps: PropTypes.object
|
|
119
118
|
}),
|
|
120
119
|
isFocus: PropTypes.bool,
|
|
121
120
|
allowValueFallback: PropTypes.bool,
|
|
@@ -200,11 +199,7 @@ export const Suggestions_propTypes = {
|
|
|
200
199
|
})),
|
|
201
200
|
renderBeforeChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
202
201
|
limit: PropTypes.number,
|
|
203
|
-
limitReachedMessage: PropTypes.string
|
|
204
|
-
customClass: PropTypes.shape({
|
|
205
|
-
containerClass: PropTypes.string
|
|
206
|
-
}),
|
|
207
|
-
needMultiLineText: PropTypes.bool
|
|
202
|
+
limitReachedMessage: PropTypes.string
|
|
208
203
|
};
|
|
209
204
|
export const AdvancedGroupMultiSelect_propTypes = {
|
|
210
205
|
animationStyle: PropTypes.string,
|
|
@@ -278,10 +273,7 @@ export const AdvancedGroupMultiSelect_propTypes = {
|
|
|
278
273
|
dataSelectorId: PropTypes.string,
|
|
279
274
|
isFocus: PropTypes.bool,
|
|
280
275
|
allowValueFallback: PropTypes.bool,
|
|
281
|
-
limit: PropTypes.number
|
|
282
|
-
customProps: PropTypes.shape({
|
|
283
|
-
SuggestionsProps: PropTypes.object
|
|
284
|
-
})
|
|
276
|
+
limit: PropTypes.number
|
|
285
277
|
};
|
|
286
278
|
export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
|
|
287
279
|
selectedOptionDetails: PropTypes.string,
|
package/es/Popup/Popup.js
CHANGED
|
@@ -15,7 +15,10 @@ const Popup = function (Component) {
|
|
|
15
15
|
customOrder = DUMMY_ARRAY,
|
|
16
16
|
scrollDebounceTime = 0,
|
|
17
17
|
closeOnScroll = false,
|
|
18
|
-
isOutsideScrollBlocked = false
|
|
18
|
+
isOutsideScrollBlocked = false,
|
|
19
|
+
isAutoHeight = false,
|
|
20
|
+
isAutoHeightOnScroll = false,
|
|
21
|
+
heightAdjustment = 0
|
|
19
22
|
} = options;
|
|
20
23
|
const getRootElement = getLibraryConfig('getRootElement');
|
|
21
24
|
const mobileWidth = getLibraryConfig('mobileWidth');
|
|
@@ -26,7 +29,10 @@ const Popup = function (Component) {
|
|
|
26
29
|
scrollDebounceTime,
|
|
27
30
|
closeOnScroll,
|
|
28
31
|
isOutsideScrollBlocked,
|
|
29
|
-
enableResizeHandling: needResizeHandling
|
|
32
|
+
enableResizeHandling: needResizeHandling,
|
|
33
|
+
isAutoHeight,
|
|
34
|
+
isAutoHeightOnScroll,
|
|
35
|
+
heightAdjustment
|
|
30
36
|
};
|
|
31
37
|
const popupConfig = {
|
|
32
38
|
group,
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -625,7 +625,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
625
625
|
let {
|
|
626
626
|
TextBoxIconProps = {},
|
|
627
627
|
TextBoxProps = {},
|
|
628
|
-
SuggestionsProps
|
|
628
|
+
SuggestionsProps
|
|
629
629
|
} = customProps;
|
|
630
630
|
return /*#__PURE__*/React.createElement("div", {
|
|
631
631
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
@@ -171,8 +171,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
171
171
|
needEffect,
|
|
172
172
|
isLoading,
|
|
173
173
|
dataSelectorId,
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
customProps,
|
|
175
|
+
getTargetRef
|
|
176
176
|
} = this.props;
|
|
177
177
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
178
178
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -197,7 +197,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
197
197
|
let {
|
|
198
198
|
TextBoxProps,
|
|
199
199
|
DropdownSearchTextBoxProps,
|
|
200
|
-
SuggestionsProps
|
|
200
|
+
SuggestionsProps
|
|
201
201
|
} = customProps;
|
|
202
202
|
return /*#__PURE__*/React.createElement("div", {
|
|
203
203
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
|
|
@@ -359,8 +359,7 @@ class SelectWithIcon extends Component {
|
|
|
359
359
|
htmlId,
|
|
360
360
|
isLoading,
|
|
361
361
|
dataSelectorId,
|
|
362
|
-
customProps
|
|
363
|
-
customClass
|
|
362
|
+
customProps
|
|
364
363
|
} = this.props;
|
|
365
364
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
366
365
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -378,11 +377,8 @@ class SelectWithIcon extends Component {
|
|
|
378
377
|
TextBoxProps = {},
|
|
379
378
|
DropdownSearchTextBoxProps = {},
|
|
380
379
|
TextBoxIconProps = {},
|
|
381
|
-
ListItemProps
|
|
380
|
+
ListItemProps
|
|
382
381
|
} = customProps;
|
|
383
|
-
const {
|
|
384
|
-
dropBoxClass = ''
|
|
385
|
-
} = customClass;
|
|
386
382
|
return /*#__PURE__*/React.createElement("div", {
|
|
387
383
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
388
384
|
"data-title": isDisabled ? title : null,
|
|
@@ -478,10 +474,7 @@ class SelectWithIcon extends Component {
|
|
|
478
474
|
size: boxSize,
|
|
479
475
|
isPadding: false,
|
|
480
476
|
isResponsivePadding: true,
|
|
481
|
-
alignBox: "row"
|
|
482
|
-
customClass: {
|
|
483
|
-
customDropBox: dropBoxClass
|
|
484
|
-
}
|
|
477
|
+
alignBox: "row"
|
|
485
478
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
486
479
|
align: "both",
|
|
487
480
|
className: style.loader
|
|
@@ -102,8 +102,7 @@ export const SelectWithAvatar_defaultProps = {
|
|
|
102
102
|
i18nKeys: {},
|
|
103
103
|
customProps: {},
|
|
104
104
|
needEffect: true,
|
|
105
|
-
isLoading: false
|
|
106
|
-
customProps: {}
|
|
105
|
+
isLoading: false
|
|
107
106
|
};
|
|
108
107
|
export const SelectWithIcon_defaultProps = {
|
|
109
108
|
isReadOnly: false,
|
|
@@ -132,6 +131,5 @@ export const SelectWithIcon_defaultProps = {
|
|
|
132
131
|
isLoading: false,
|
|
133
132
|
isAbsolutePositioningNeeded: true,
|
|
134
133
|
isRestrictScroll: false,
|
|
135
|
-
customProps: {}
|
|
136
|
-
customClass: {}
|
|
134
|
+
customProps: {}
|
|
137
135
|
};
|
|
@@ -187,8 +187,7 @@ export const GroupSelect_propTypes = {
|
|
|
187
187
|
isDefaultSelectValue: PropTypes.bool,
|
|
188
188
|
customProps: PropTypes.shape({
|
|
189
189
|
TextBoxProps: PropTypes.object,
|
|
190
|
-
TextBoxIconProps: PropTypes.object
|
|
191
|
-
SuggestionsProps: PropTypes.object
|
|
190
|
+
TextBoxIconProps: PropTypes.object
|
|
192
191
|
}),
|
|
193
192
|
allowValueFallback: PropTypes.bool
|
|
194
193
|
};
|
|
@@ -251,10 +250,7 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
|
|
|
251
250
|
htmlId: PropTypes.string,
|
|
252
251
|
needEffect: PropTypes.bool,
|
|
253
252
|
isLoading: PropTypes.bool,
|
|
254
|
-
dataSelectorId: PropTypes.string
|
|
255
|
-
customProps: PropTypes.shape({
|
|
256
|
-
SuggestionsProps: PropTypes.object
|
|
257
|
-
})
|
|
253
|
+
dataSelectorId: PropTypes.string
|
|
258
254
|
};
|
|
259
255
|
export const SelectWithIcon_propTypes = {
|
|
260
256
|
animationStyle: PropTypes.oneOf(['default', 'bounce']),
|
|
@@ -319,10 +315,6 @@ export const SelectWithIcon_propTypes = {
|
|
|
319
315
|
TextBoxProps: PropTypes.object,
|
|
320
316
|
DropdownSearchTextBoxProps: PropTypes.object,
|
|
321
317
|
SuggestionsProps: PropTypes.object,
|
|
322
|
-
TextBoxIconProps: PropTypes.object
|
|
323
|
-
ListItemProps: PropTypes.object
|
|
324
|
-
}),
|
|
325
|
-
customClass: PropTypes.shape({
|
|
326
|
-
dropBoxClass: PropTypes.string
|
|
318
|
+
TextBoxIconProps: PropTypes.object
|
|
327
319
|
})
|
|
328
320
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
|
|
3
|
-
--local-colorIndicator-
|
|
4
|
-
/* css:validation:ignore */
|
|
5
|
-
--local-colorIndicator-width: var(--zd_font_size10);
|
|
2
|
+
--local-colorIndicator-height: 10px;
|
|
3
|
+
--local-colorIndicator-width: 10px;
|
|
6
4
|
--local-colorIndicator-border-radius: 10px;
|
|
7
5
|
}
|
|
8
6
|
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -127,8 +127,7 @@ 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
|
|
131
|
-
lhsAlignContent = _this$props4.lhsAlignContent;
|
|
130
|
+
renderValueRightPlaceholderNode = _this$props4.renderValueRightPlaceholderNode;
|
|
132
131
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
133
132
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
134
133
|
_customProps$Containe = customProps.ContainerProps,
|
|
@@ -138,9 +137,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
138
137
|
_customClass$customTi = customClass.customTickIcon,
|
|
139
138
|
customTickIcon = _customClass$customTi === void 0 ? '' : _customClass$customTi,
|
|
140
139
|
_customClass$customVa = customClass.customValueRightPlaceholder,
|
|
141
|
-
customValueRightPlaceholder = _customClass$customVa === void 0 ? '' : _customClass$customVa
|
|
142
|
-
_customClass$titleBox = customClass.titleBoxClass,
|
|
143
|
-
titleBoxClass = _customClass$titleBox === void 0 ? '' : _customClass$titleBox;
|
|
140
|
+
customValueRightPlaceholder = _customClass$customVa === void 0 ? '' : _customClass$customVa;
|
|
144
141
|
|
|
145
142
|
var listA11y = _objectSpread({
|
|
146
143
|
ariaHidden: true,
|
|
@@ -176,7 +173,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
176
173
|
flexible: true,
|
|
177
174
|
className: _ListItemModule["default"].leftBox
|
|
178
175
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
179
|
-
className:
|
|
176
|
+
className: _ListItemModule["default"].titleBox
|
|
180
177
|
}, (0, _utils.isRenderable)(renderBeforeChildren) ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
181
178
|
adjust: true,
|
|
182
179
|
className: _ListItemModule["default"].beforeChild
|