@zohodesk/components 1.0.0-temp-122 → 1.0.0-temp-123
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 +5 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +5 -5
- package/assets/Appearance/default/mode/defaultMode.module.css +4 -4
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +5 -5
- package/assets/Contrast/darkContrastLightness.module.css +1 -3
- package/assets/Contrast/defaultContrastLightness.module.css +1 -3
- package/assets/Contrast/pureDarkContrastLightness.module.css +1 -3
- package/es/Accordion/Accordion.js +6 -2
- package/es/Accordion/AccordionItem.js +3 -1
- package/es/Accordion/props/defaultProps.js +6 -2
- package/es/Accordion/props/propTypes.js +3 -0
- package/es/AppContainer/AppContainer.js +4 -1
- package/es/AppContainer/props/defaultProps.js +2 -1
- package/es/AppContainer/props/propTypes.js +1 -0
- package/es/Avatar/Avatar.js +6 -2
- package/es/Avatar/props/defaultProps.js +2 -1
- package/es/Avatar/props/propTypes.js +1 -0
- package/es/AvatarTeam/AvatarTeam.js +3 -1
- package/es/AvatarTeam/props/defaultProps.js +1 -0
- package/es/AvatarTeam/props/propTypes.js +1 -0
- package/es/Button/Button.js +3 -1
- package/es/Button/props/defaultProps.js +1 -0
- package/es/Button/props/propTypes.js +1 -0
- package/es/Buttongroup/Buttongroup.js +6 -2
- package/es/Buttongroup/props/defaultProps.js +3 -1
- package/es/Buttongroup/props/propTypes.js +3 -1
- package/es/Card/Card.js +19 -10
- package/es/Card/props/defaultProps.js +12 -1
- package/es/CheckBox/CheckBox.js +3 -2
- package/es/CheckBox/props/propTypes.js +1 -0
- package/es/DropBox/DropBox.js +5 -1
- package/es/DropBox/props/defaultProps.js +1 -0
- package/es/DropBox/props/propTypes.js +1 -0
- package/es/DropDown/DropDownHeading.js +6 -2
- package/es/DropDown/props/defaultProps.js +3 -1
- package/es/Label/Label.js +2 -0
- package/es/Label/props/defaultProps.js +2 -1
- package/es/Label/props/propTypes.js +1 -0
- package/es/Layout/Box.js +2 -1
- package/es/Layout/Container.js +2 -1
- package/es/Layout/props/defaultProps.js +4 -2
- package/es/Layout/props/propTypes.js +2 -0
- package/es/ListItem/ListContainer.js +2 -0
- package/es/ListItem/ListItem.js +4 -1
- package/es/ListItem/ListItemWithAvatar.js +4 -1
- package/es/ListItem/ListItemWithCheckBox.js +2 -0
- package/es/ListItem/ListItemWithIcon.js +4 -1
- package/es/ListItem/ListItemWithRadio.js +2 -0
- package/es/ListItem/props/defaultProps.js +12 -6
- package/es/ListItem/props/propTypes.js +6 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +3 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +4 -2
- package/es/MultiSelect/MultiSelect.js +3 -1
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/es/MultiSelect/props/defaultProps.js +8 -4
- package/es/MultiSelect/props/propTypes.js +8 -4
- package/es/Ribbon/Ribbon.js +4 -2
- package/es/Ribbon/props/defaultProps.js +2 -1
- package/es/Ribbon/props/propTypes.js +2 -1
- package/es/Select/GroupSelect.js +4 -2
- package/es/Select/Select.js +4 -2
- package/es/Select/SelectWithAvatar.js +4 -2
- package/es/Select/SelectWithIcon.js +4 -2
- package/es/Select/props/defaultProps.js +4 -0
- package/es/Select/props/propTypes.js +8 -4
- package/es/Switch/Switch.js +3 -1
- package/es/Switch/props/defaultProps.js +2 -1
- package/es/Switch/props/propTypes.js +1 -0
- package/es/Tab/Tab.js +3 -1
- package/es/Tab/TabContent.js +4 -2
- package/es/Tab/TabContentWrapper.js +4 -2
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +8 -4
- package/es/Tab/props/defaultProps.js +10 -5
- package/es/Tab/props/propTypes.js +10 -5
- package/es/Tag/Tag.js +3 -1
- package/es/Tag/props/defaultProps.js +2 -1
- package/es/Tag/props/propTypes.js +2 -1
- package/es/TextBox/TextBox.js +3 -1
- package/es/TextBox/props/defaultProps.js +2 -1
- package/es/TextBox/props/propTypes.js +2 -1
- package/es/TextBoxIcon/TextBoxIcon.js +2 -0
- package/es/TextBoxIcon/props/defaultProps.js +2 -1
- package/es/TextBoxIcon/props/propTypes.js +1 -0
- package/es/Textarea/Textarea.js +3 -1
- package/es/Textarea/props/defaultProps.js +2 -1
- package/es/Textarea/props/propTypes.js +1 -0
- package/es/common/boxShadow.module.css +21 -21
- package/lib/Accordion/Accordion.js +6 -2
- package/lib/Accordion/AccordionItem.js +3 -1
- package/lib/Accordion/props/defaultProps.js +6 -2
- package/lib/Accordion/props/propTypes.js +3 -0
- package/lib/AppContainer/AppContainer.js +4 -1
- package/lib/AppContainer/props/defaultProps.js +2 -1
- package/lib/AppContainer/props/propTypes.js +1 -0
- package/lib/Avatar/Avatar.js +6 -2
- package/lib/Avatar/props/defaultProps.js +2 -1
- package/lib/Avatar/props/propTypes.js +1 -0
- package/lib/AvatarTeam/AvatarTeam.js +3 -1
- package/lib/AvatarTeam/props/defaultProps.js +1 -0
- package/lib/AvatarTeam/props/propTypes.js +1 -0
- package/lib/Button/Button.js +3 -1
- package/lib/Button/props/defaultProps.js +1 -0
- package/lib/Button/props/propTypes.js +1 -0
- package/lib/Buttongroup/Buttongroup.js +6 -2
- package/lib/Buttongroup/props/defaultProps.js +3 -1
- package/lib/Buttongroup/props/propTypes.js +3 -1
- package/lib/Card/Card.js +18 -13
- package/lib/Card/props/defaultProps.js +16 -3
- package/lib/CheckBox/CheckBox.js +3 -2
- package/lib/CheckBox/props/propTypes.js +1 -0
- package/lib/DropBox/DropBox.js +5 -1
- package/lib/DropBox/props/defaultProps.js +1 -0
- package/lib/DropBox/props/propTypes.js +1 -0
- package/lib/DropDown/DropDownHeading.js +6 -2
- package/lib/DropDown/props/defaultProps.js +3 -1
- package/lib/Label/Label.js +2 -0
- package/lib/Label/props/defaultProps.js +2 -1
- package/lib/Label/props/propTypes.js +1 -0
- package/lib/Layout/Box.js +2 -1
- package/lib/Layout/Container.js +2 -1
- package/lib/Layout/props/defaultProps.js +4 -2
- package/lib/Layout/props/propTypes.js +2 -0
- package/lib/ListItem/ListContainer.js +2 -0
- package/lib/ListItem/ListItem.js +4 -1
- package/lib/ListItem/ListItemWithAvatar.js +4 -1
- package/lib/ListItem/ListItemWithCheckBox.js +2 -0
- package/lib/ListItem/ListItemWithIcon.js +4 -1
- package/lib/ListItem/ListItemWithRadio.js +2 -0
- package/lib/ListItem/props/defaultProps.js +12 -6
- package/lib/ListItem/props/propTypes.js +6 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -1
- package/lib/MultiSelect/AdvancedMultiSelect.js +4 -2
- package/lib/MultiSelect/MultiSelect.js +3 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
- package/lib/MultiSelect/props/defaultProps.js +8 -4
- package/lib/MultiSelect/props/propTypes.js +8 -4
- package/lib/Ribbon/Ribbon.js +4 -2
- package/lib/Ribbon/props/defaultProps.js +2 -1
- package/lib/Ribbon/props/propTypes.js +2 -1
- package/lib/Select/GroupSelect.js +4 -2
- package/lib/Select/Select.js +4 -2
- package/lib/Select/SelectWithAvatar.js +4 -2
- package/lib/Select/SelectWithIcon.js +4 -2
- package/lib/Select/props/defaultProps.js +4 -1
- package/lib/Select/props/propTypes.js +8 -4
- package/lib/Switch/Switch.js +3 -1
- package/lib/Switch/props/defaultProps.js +2 -1
- package/lib/Switch/props/propTypes.js +1 -0
- package/lib/Tab/Tab.js +3 -1
- package/lib/Tab/TabContent.js +4 -2
- package/lib/Tab/TabContentWrapper.js +4 -2
- package/lib/Tab/TabWrapper.js +4 -2
- package/lib/Tab/Tabs.js +8 -4
- package/lib/Tab/props/defaultProps.js +10 -5
- package/lib/Tab/props/propTypes.js +10 -5
- package/lib/Tag/Tag.js +3 -1
- package/lib/Tag/props/defaultProps.js +2 -1
- package/lib/Tag/props/propTypes.js +2 -1
- package/lib/TextBox/TextBox.js +3 -1
- package/lib/TextBox/props/defaultProps.js +2 -1
- package/lib/TextBox/props/propTypes.js +1 -1
- package/lib/TextBoxIcon/TextBoxIcon.js +2 -0
- package/lib/TextBoxIcon/props/defaultProps.js +2 -1
- package/lib/TextBoxIcon/props/propTypes.js +1 -0
- package/lib/Textarea/Textarea.js +3 -1
- package/lib/Textarea/props/defaultProps.js +2 -1
- package/lib/Textarea/props/propTypes.js +1 -0
- package/lib/common/boxShadow.module.css +21 -21
- package/package.json +1 -1
|
@@ -11,7 +11,9 @@ export default class DropDownHeading extends React.Component {
|
|
|
11
11
|
customClass,
|
|
12
12
|
palette,
|
|
13
13
|
htmlId,
|
|
14
|
-
a11y
|
|
14
|
+
a11y,
|
|
15
|
+
dataId,
|
|
16
|
+
dataSelectorId
|
|
15
17
|
} = this.props;
|
|
16
18
|
let {
|
|
17
19
|
role,
|
|
@@ -24,7 +26,9 @@ export default class DropDownHeading extends React.Component {
|
|
|
24
26
|
role: role,
|
|
25
27
|
"aria-labelledby": ariaLabelledby,
|
|
26
28
|
"aria-label": ariaLabel,
|
|
27
|
-
id: htmlId
|
|
29
|
+
id: htmlId,
|
|
30
|
+
"data-id": dataId,
|
|
31
|
+
"data-selector-id": dataSelectorId
|
|
28
32
|
// tabindex='0'
|
|
29
33
|
}, text, children);
|
|
30
34
|
}
|
package/es/Label/Label.js
CHANGED
|
@@ -18,6 +18,7 @@ export default class Label extends React.Component {
|
|
|
18
18
|
title,
|
|
19
19
|
onClick,
|
|
20
20
|
dataId,
|
|
21
|
+
dataSelectorId,
|
|
21
22
|
variant,
|
|
22
23
|
customClass,
|
|
23
24
|
id
|
|
@@ -28,6 +29,7 @@ export default class Label extends React.Component {
|
|
|
28
29
|
htmlFor: htmlFor,
|
|
29
30
|
"data-title": title,
|
|
30
31
|
"data-id": dataId,
|
|
32
|
+
"data-selector-id": dataSelectorId,
|
|
31
33
|
onClick: onClick,
|
|
32
34
|
id: id
|
|
33
35
|
}, text);
|
|
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
export const propTypes = {
|
|
3
3
|
clipped: PropTypes.bool,
|
|
4
4
|
dataId: PropTypes.string,
|
|
5
|
+
dataSelectorId: PropTypes.string,
|
|
5
6
|
htmlFor: PropTypes.string,
|
|
6
7
|
onClick: PropTypes.func,
|
|
7
8
|
palette: PropTypes.oneOf(['default', 'primary', 'secondary', 'danger', 'mandatory', 'disable', 'dark']),
|
package/es/Layout/Box.js
CHANGED
|
@@ -91,7 +91,8 @@ export default function Box(props) {
|
|
|
91
91
|
isScrollAttribute: 'data-scroll',
|
|
92
92
|
eleRef: 'ref',
|
|
93
93
|
dataId: 'data-id',
|
|
94
|
-
tourId: 'data-tour'
|
|
94
|
+
tourId: 'data-tour',
|
|
95
|
+
dataSelectorId: 'data-selector-id'
|
|
95
96
|
});
|
|
96
97
|
return /*#__PURE__*/React.createElement(tagName, childProps);
|
|
97
98
|
}
|
package/es/Layout/Container.js
CHANGED
|
@@ -110,7 +110,8 @@ export default function Container(props) {
|
|
|
110
110
|
isScrollAttribute: 'data-scroll',
|
|
111
111
|
eleRef: 'ref',
|
|
112
112
|
dataId: 'data-id',
|
|
113
|
-
tourId: 'data-tour'
|
|
113
|
+
tourId: 'data-tour',
|
|
114
|
+
dataSelectorId: 'data-selector-id'
|
|
114
115
|
});
|
|
115
116
|
return /*#__PURE__*/React.createElement(tagName, childProps);
|
|
116
117
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export const BoxDefaultProps = {
|
|
2
2
|
dataId: 'boxComponent',
|
|
3
3
|
isScrollAttribute: false,
|
|
4
|
-
tagName: 'div'
|
|
4
|
+
tagName: 'div',
|
|
5
|
+
dataSelectorId: 'box'
|
|
5
6
|
};
|
|
6
7
|
export const ContainerDefaultProps = {
|
|
7
8
|
dataId: 'containerComponent',
|
|
8
9
|
isScrollAttribute: false,
|
|
9
10
|
isCover: true,
|
|
10
11
|
alignBox: 'column',
|
|
11
|
-
tagName: 'div'
|
|
12
|
+
tagName: 'div',
|
|
13
|
+
dataSelectorId: 'container'
|
|
12
14
|
};
|
|
@@ -6,6 +6,7 @@ export const BoxProps = {
|
|
|
6
6
|
className: PropTypes.string,
|
|
7
7
|
column: PropTypes.oneOf(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']),
|
|
8
8
|
dataId: PropTypes.string,
|
|
9
|
+
dataSelectorId: PropTypes.string,
|
|
9
10
|
eleRef: PropTypes.func,
|
|
10
11
|
flexible: PropTypes.bool,
|
|
11
12
|
hidden: PropTypes.arrayOf((propValue, key, componentName, location, propFullName) => {
|
|
@@ -29,6 +30,7 @@ export const ContainerProps = {
|
|
|
29
30
|
children: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
30
31
|
className: PropTypes.string,
|
|
31
32
|
dataId: PropTypes.string,
|
|
33
|
+
dataSelectorId: PropTypes.string,
|
|
32
34
|
eleRef: PropTypes.func,
|
|
33
35
|
hidden: PropTypes.array,
|
|
34
36
|
isCover: PropTypes.bool,
|
|
@@ -24,6 +24,7 @@ const ListContainer = props => {
|
|
|
24
24
|
isDisabled,
|
|
25
25
|
children,
|
|
26
26
|
dataId,
|
|
27
|
+
dataSelectorId,
|
|
27
28
|
a11y,
|
|
28
29
|
customClass,
|
|
29
30
|
customProps,
|
|
@@ -74,6 +75,7 @@ const ListContainer = props => {
|
|
|
74
75
|
alignBox: "row",
|
|
75
76
|
className: `${style.list} ${style[size]} ${mobileToTab && isTouchDevice ? style.responsiveHeight : ''} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customClass}`,
|
|
76
77
|
dataId: dataId,
|
|
78
|
+
dataSelectorId: dataSelectorId,
|
|
77
79
|
onClick: !isDisabled && onClick,
|
|
78
80
|
onMouseEnter: onMouseEnter,
|
|
79
81
|
onMouseOver: onMouseOver,
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -61,6 +61,7 @@ export default class ListItem extends React.Component {
|
|
|
61
61
|
isDisabled,
|
|
62
62
|
children,
|
|
63
63
|
dataId,
|
|
64
|
+
dataSelectorId,
|
|
64
65
|
a11y,
|
|
65
66
|
customClass,
|
|
66
67
|
customProps
|
|
@@ -90,6 +91,7 @@ export default class ListItem extends React.Component {
|
|
|
90
91
|
needBorder: needBorder,
|
|
91
92
|
customClass: customListItem,
|
|
92
93
|
dataId: dataIdString,
|
|
94
|
+
dataSelectorId: `${dataSelectorId}`,
|
|
93
95
|
isLink: isLink,
|
|
94
96
|
href: href,
|
|
95
97
|
target: target,
|
|
@@ -110,7 +112,8 @@ export default class ListItem extends React.Component {
|
|
|
110
112
|
}, children) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
111
113
|
className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon}`,
|
|
112
114
|
"aria-hidden": ariaHidden,
|
|
113
|
-
dataId: `${dataIdString}_tickIcon
|
|
115
|
+
dataId: `${dataIdString}_tickIcon`,
|
|
116
|
+
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
114
117
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
115
118
|
name: "ZD-ticknew",
|
|
116
119
|
size: "8"
|
|
@@ -60,6 +60,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
60
60
|
title,
|
|
61
61
|
needTick,
|
|
62
62
|
dataId,
|
|
63
|
+
dataSelectorId,
|
|
63
64
|
initial,
|
|
64
65
|
isDisabled,
|
|
65
66
|
needBorder,
|
|
@@ -96,6 +97,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
96
97
|
needBorder: needBorder,
|
|
97
98
|
customClass: customListItem,
|
|
98
99
|
dataId: `${dataIdString}_ListItemWithAvatar`,
|
|
100
|
+
dataSelectorId: `${dataSelectorId}`,
|
|
99
101
|
onClick: this.handleClick,
|
|
100
102
|
onMouseEnter: this.handleMouseEnter,
|
|
101
103
|
eleRef: this.getRef,
|
|
@@ -132,7 +134,8 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
132
134
|
}, value) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
133
135
|
className: style.tickIcon,
|
|
134
136
|
"aria-hidden": ariaHidden,
|
|
135
|
-
dataId: `${dataIdString}_tickIcon
|
|
137
|
+
dataId: `${dataIdString}_tickIcon`,
|
|
138
|
+
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
136
139
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
137
140
|
name: "ZD-ticknew",
|
|
138
141
|
size: "8"
|
|
@@ -49,6 +49,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
49
49
|
autoHover,
|
|
50
50
|
palette,
|
|
51
51
|
dataId,
|
|
52
|
+
dataSelectorId,
|
|
52
53
|
title,
|
|
53
54
|
isDisabled,
|
|
54
55
|
disableTitle,
|
|
@@ -75,6 +76,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
75
76
|
autoHover: autoHover,
|
|
76
77
|
customClass: customListItem,
|
|
77
78
|
dataId: `${dataId ? dataId : value}_ListItemWithCheckBox`,
|
|
79
|
+
dataSelectorId: dataSelectorId,
|
|
78
80
|
onClick: this.onClick,
|
|
79
81
|
onMouseOver: this.onHover,
|
|
80
82
|
eleRef: this.getRef,
|
|
@@ -54,6 +54,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
54
54
|
palette,
|
|
55
55
|
iconClass,
|
|
56
56
|
dataId,
|
|
57
|
+
dataSelectorId,
|
|
57
58
|
title,
|
|
58
59
|
needTick,
|
|
59
60
|
isLink,
|
|
@@ -86,6 +87,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
86
87
|
needBorder: needBorder,
|
|
87
88
|
customClass: customClass,
|
|
88
89
|
dataId: dataIdString,
|
|
90
|
+
dataSelectorId: dataSelectorId,
|
|
89
91
|
isLink: isLink,
|
|
90
92
|
href: href,
|
|
91
93
|
target: target,
|
|
@@ -114,7 +116,8 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
114
116
|
}, value), needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
115
117
|
className: style.tickIcon,
|
|
116
118
|
"aria-hidden": ariaHidden,
|
|
117
|
-
dataId: `${dataIdString}_tickIcon
|
|
119
|
+
dataId: `${dataIdString}_tickIcon`,
|
|
120
|
+
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
118
121
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
119
122
|
name: "ZD-ticknew",
|
|
120
123
|
size: "8"
|
|
@@ -50,6 +50,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
50
50
|
palette,
|
|
51
51
|
id,
|
|
52
52
|
dataId,
|
|
53
|
+
dataSelectorId,
|
|
53
54
|
title,
|
|
54
55
|
isDisabled,
|
|
55
56
|
disableTitle,
|
|
@@ -76,6 +77,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
76
77
|
autoHover: autoHover,
|
|
77
78
|
customClass: customListItem,
|
|
78
79
|
dataId: dataId,
|
|
80
|
+
dataSelectorId: dataSelectorId,
|
|
79
81
|
onClick: this.onClick,
|
|
80
82
|
onMouseOver: this.onHover,
|
|
81
83
|
eleRef: this.getRef,
|
|
@@ -10,7 +10,8 @@ export const ListContainerDefaultProps = {
|
|
|
10
10
|
needBorder: true,
|
|
11
11
|
a11y: {},
|
|
12
12
|
customClass: '',
|
|
13
|
-
customProps: {}
|
|
13
|
+
customProps: {},
|
|
14
|
+
dataSelectorId: 'listContainer'
|
|
14
15
|
};
|
|
15
16
|
export const ListItemDefaultProps = {
|
|
16
17
|
active: false,
|
|
@@ -25,7 +26,8 @@ export const ListItemDefaultProps = {
|
|
|
25
26
|
needBorder: true,
|
|
26
27
|
a11y: {},
|
|
27
28
|
customClass: {},
|
|
28
|
-
customProps: {}
|
|
29
|
+
customProps: {},
|
|
30
|
+
dataSelectorId: 'listItem'
|
|
29
31
|
};
|
|
30
32
|
export const ListItemWithAvatarDefaultProps = {
|
|
31
33
|
active: false,
|
|
@@ -41,7 +43,8 @@ export const ListItemWithAvatarDefaultProps = {
|
|
|
41
43
|
needAvatarTitle: true,
|
|
42
44
|
a11y: {},
|
|
43
45
|
customClass: {},
|
|
44
|
-
customProps: {}
|
|
46
|
+
customProps: {},
|
|
47
|
+
dataSelectorId: 'listItemWithAvatar'
|
|
45
48
|
};
|
|
46
49
|
export const ListItemWithCheckBoxDefaultProps = {
|
|
47
50
|
active: false,
|
|
@@ -53,7 +56,8 @@ export const ListItemWithCheckBoxDefaultProps = {
|
|
|
53
56
|
value: 'List',
|
|
54
57
|
a11y: {},
|
|
55
58
|
customClass: {},
|
|
56
|
-
customProps: {}
|
|
59
|
+
customProps: {},
|
|
60
|
+
dataSelectorId: 'listItemWithCheckBox'
|
|
57
61
|
};
|
|
58
62
|
export const ListItemWithIconDefaultProps = {
|
|
59
63
|
active: false,
|
|
@@ -68,7 +72,8 @@ export const ListItemWithIconDefaultProps = {
|
|
|
68
72
|
needBorder: true,
|
|
69
73
|
a11y: {},
|
|
70
74
|
customClass: '',
|
|
71
|
-
customProps: {}
|
|
75
|
+
customProps: {},
|
|
76
|
+
dataSelectorId: 'listItemWithIcon'
|
|
72
77
|
};
|
|
73
78
|
export const ListItemWithRadioDefaultProps = {
|
|
74
79
|
active: false,
|
|
@@ -81,5 +86,6 @@ export const ListItemWithRadioDefaultProps = {
|
|
|
81
86
|
dataId: 'listItemWithRadioComp',
|
|
82
87
|
a11y: {},
|
|
83
88
|
customClass: {},
|
|
84
|
-
customProps: {}
|
|
89
|
+
customProps: {},
|
|
90
|
+
dataSelectorId: 'listItemWithRadio'
|
|
85
91
|
};
|
|
@@ -4,6 +4,7 @@ export const ListContainer_Props = {
|
|
|
4
4
|
autoHover: PropTypes.bool,
|
|
5
5
|
children: PropTypes.node,
|
|
6
6
|
dataId: PropTypes.string,
|
|
7
|
+
dataSelectorId: PropTypes.string,
|
|
7
8
|
disableTitle: PropTypes.string,
|
|
8
9
|
highlight: PropTypes.bool,
|
|
9
10
|
href: PropTypes.string,
|
|
@@ -30,6 +31,7 @@ export const ListItem_Props = {
|
|
|
30
31
|
autoHover: PropTypes.bool,
|
|
31
32
|
children: PropTypes.node,
|
|
32
33
|
dataId: PropTypes.string,
|
|
34
|
+
dataSelectorId: PropTypes.string,
|
|
33
35
|
disableTitle: PropTypes.string,
|
|
34
36
|
getRef: PropTypes.func,
|
|
35
37
|
highlight: PropTypes.bool,
|
|
@@ -65,6 +67,7 @@ export const ListItemWithAvatar_Props = {
|
|
|
65
67
|
avatarPalette: PropTypes.string,
|
|
66
68
|
avatarPalette: PropTypes.string,
|
|
67
69
|
dataId: PropTypes.string,
|
|
70
|
+
dataSelectorId: PropTypes.string,
|
|
68
71
|
disableTitle: PropTypes.string,
|
|
69
72
|
getRef: PropTypes.func,
|
|
70
73
|
highlight: PropTypes.bool,
|
|
@@ -103,6 +106,7 @@ export const ListItemWithCheckBox_Props = {
|
|
|
103
106
|
autoHover: PropTypes.bool,
|
|
104
107
|
checked: PropTypes.bool,
|
|
105
108
|
dataId: PropTypes.string,
|
|
109
|
+
dataSelectorId: PropTypes.string,
|
|
106
110
|
disableTitle: PropTypes.string,
|
|
107
111
|
getRef: PropTypes.func,
|
|
108
112
|
highlight: PropTypes.bool,
|
|
@@ -129,6 +133,7 @@ export const ListItemWithIcon_Props = {
|
|
|
129
133
|
active: PropTypes.bool,
|
|
130
134
|
autoHover: PropTypes.bool,
|
|
131
135
|
dataId: PropTypes.string,
|
|
136
|
+
dataSelectorId: PropTypes.string,
|
|
132
137
|
disableTitle: PropTypes.string,
|
|
133
138
|
getRef: PropTypes.func,
|
|
134
139
|
highlight: PropTypes.bool,
|
|
@@ -161,6 +166,7 @@ export const ListItemWithRadio_Props = {
|
|
|
161
166
|
autoHover: PropTypes.bool,
|
|
162
167
|
checked: PropTypes.bool,
|
|
163
168
|
dataId: PropTypes.string,
|
|
169
|
+
dataSelectorId: PropTypes.string,
|
|
164
170
|
disableTitle: PropTypes.string,
|
|
165
171
|
getRef: PropTypes.func,
|
|
166
172
|
highlight: PropTypes.bool,
|
|
@@ -763,6 +763,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
763
763
|
selectedGroupOptions,
|
|
764
764
|
placeHolder,
|
|
765
765
|
dataId,
|
|
766
|
+
dataSelectorId,
|
|
766
767
|
isReadOnly,
|
|
767
768
|
isDisabled,
|
|
768
769
|
isPopupOpen,
|
|
@@ -827,7 +828,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
827
828
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
828
829
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
829
830
|
"data-title": isDisabled ? title : null,
|
|
830
|
-
onClick: this.handleInputFocus
|
|
831
|
+
onClick: this.handleInputFocus,
|
|
832
|
+
"data-selector-id": dataSelectorId
|
|
831
833
|
}, children ? /*#__PURE__*/React.createElement(Container, {
|
|
832
834
|
align: "vertical",
|
|
833
835
|
alignBox: "row",
|
|
@@ -346,7 +346,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
346
346
|
customProps,
|
|
347
347
|
needEffect,
|
|
348
348
|
disabledOptions,
|
|
349
|
-
isLoading
|
|
349
|
+
isLoading,
|
|
350
|
+
dataSelectorId
|
|
350
351
|
} = this.props;
|
|
351
352
|
let {
|
|
352
353
|
SuggestionsProps = {},
|
|
@@ -389,7 +390,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
389
390
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
390
391
|
"data-id": dataIdMultiSelectComp,
|
|
391
392
|
"data-title": isDisabled ? title : null,
|
|
392
|
-
onClick: this.handleInputFocus
|
|
393
|
+
onClick: this.handleInputFocus,
|
|
394
|
+
"data-selector-id": dataSelectorId
|
|
393
395
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
394
396
|
align: "vertical",
|
|
395
397
|
alignBox: "row",
|
|
@@ -800,6 +800,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
800
800
|
title,
|
|
801
801
|
needResponsive,
|
|
802
802
|
dataId,
|
|
803
|
+
dataSelectorId,
|
|
803
804
|
isSearching,
|
|
804
805
|
borderColor,
|
|
805
806
|
textBoxClass,
|
|
@@ -856,7 +857,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
856
857
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
857
858
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
858
859
|
"data-title": isDisabled ? title : null,
|
|
859
|
-
onClick: this.handleInputFocus
|
|
860
|
+
onClick: this.handleInputFocus,
|
|
861
|
+
"data-selector-id": dataSelectorId
|
|
860
862
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
861
863
|
align: "vertical",
|
|
862
864
|
alignBox: "row",
|
|
@@ -85,6 +85,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
85
85
|
isDisabled,
|
|
86
86
|
title,
|
|
87
87
|
dataId,
|
|
88
|
+
dataSelectorId,
|
|
88
89
|
needResponsive,
|
|
89
90
|
borderColor,
|
|
90
91
|
textBoxClass,
|
|
@@ -129,7 +130,8 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
129
130
|
className: ` ${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
130
131
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
131
132
|
"data-title": isDisabled ? title : null,
|
|
132
|
-
onClick: this.handleInputFocus
|
|
133
|
+
onClick: this.handleInputFocus,
|
|
134
|
+
"data-selector-id": dataSelectorId
|
|
133
135
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
134
136
|
align: "vertical",
|
|
135
137
|
alignBox: "row",
|
|
@@ -34,7 +34,8 @@ export const AdvancedGroupMultiSelect_defaultProps = {
|
|
|
34
34
|
isSearchClearOnSelect: true,
|
|
35
35
|
needEffect: true,
|
|
36
36
|
palette: 'default',
|
|
37
|
-
isLoading: false
|
|
37
|
+
isLoading: false,
|
|
38
|
+
dataSelectorId: 'advancedGroupMultiSelect'
|
|
38
39
|
};
|
|
39
40
|
export const AdvancedMultiSelect_defaultProps = {
|
|
40
41
|
animationStyle: 'bounce',
|
|
@@ -64,7 +65,8 @@ export const AdvancedMultiSelect_defaultProps = {
|
|
|
64
65
|
isSearchClearOnSelect: true,
|
|
65
66
|
customProps: {},
|
|
66
67
|
needEffect: true,
|
|
67
|
-
isLoading: false
|
|
68
|
+
isLoading: false,
|
|
69
|
+
dataSelectorId: 'advancedMultiSelect'
|
|
68
70
|
};
|
|
69
71
|
export const EmptyState_defaultProps = {
|
|
70
72
|
dataId: 'empty',
|
|
@@ -103,7 +105,8 @@ export const MultiSelect_defaultProps = {
|
|
|
103
105
|
isSearchClearOnSelect: true,
|
|
104
106
|
needEffect: true,
|
|
105
107
|
boxSize: 'default',
|
|
106
|
-
isLoading: false
|
|
108
|
+
isLoading: false,
|
|
109
|
+
dataSelectorId: 'multiSelect'
|
|
107
110
|
};
|
|
108
111
|
export const MultiSelectHeader_defaultProps = {
|
|
109
112
|
dataId: 'MultiSelectHeader'
|
|
@@ -134,7 +137,8 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
134
137
|
isBoxPaddingNeed: true,
|
|
135
138
|
isSearchClearOnSelect: true,
|
|
136
139
|
needEffect: true,
|
|
137
|
-
isLoading: false
|
|
140
|
+
isLoading: false,
|
|
141
|
+
dataSelectorId: 'multiSelectWithAvatar'
|
|
138
142
|
};
|
|
139
143
|
export const SelectedOptions_defaultProps = {
|
|
140
144
|
size: 'medium'
|
|
@@ -50,7 +50,8 @@ export const AdvancedGroupMultiSelect_propTypes = {
|
|
|
50
50
|
isSearchClearOnSelect: PropTypes.bool,
|
|
51
51
|
palette: PropTypes.oneOf(['default', 'dark']),
|
|
52
52
|
needEffect: true,
|
|
53
|
-
isLoading: PropTypes.bool
|
|
53
|
+
isLoading: PropTypes.bool,
|
|
54
|
+
dataSelectorId: PropTypes.string
|
|
54
55
|
};
|
|
55
56
|
export const AdvancedMultiSelect_propTypes = {
|
|
56
57
|
id: PropTypes.string.isRequired,
|
|
@@ -133,7 +134,8 @@ export const AdvancedMultiSelect_propTypes = {
|
|
|
133
134
|
SuggestionsProps: PropTypes.object,
|
|
134
135
|
DropBoxProps: PropTypes.object
|
|
135
136
|
}),
|
|
136
|
-
isLoading: PropTypes.bool
|
|
137
|
+
isLoading: PropTypes.bool,
|
|
138
|
+
dataSelectorId: PropTypes.string
|
|
137
139
|
};
|
|
138
140
|
export const EmptyState_propTypes = {
|
|
139
141
|
dataId: PropTypes.string,
|
|
@@ -236,7 +238,8 @@ export const MultiSelect_propTypes = {
|
|
|
236
238
|
getFooter: PropTypes.func,
|
|
237
239
|
needEffect: PropTypes.bool,
|
|
238
240
|
boxSize: PropTypes.string,
|
|
239
|
-
isLoading: PropTypes.bool
|
|
241
|
+
isLoading: PropTypes.bool,
|
|
242
|
+
dataSelectorId: PropTypes.string
|
|
240
243
|
};
|
|
241
244
|
export const MultiSelectHeader_propTypes = {
|
|
242
245
|
dataId: PropTypes.string,
|
|
@@ -314,7 +317,8 @@ export const MultiSelectWithAvatar_propTypes = {
|
|
|
314
317
|
customChildrenClass: PropTypes.string,
|
|
315
318
|
isSearchClearOnSelect: PropTypes.bool,
|
|
316
319
|
disabledOptions: PropTypes.arrayOf(PropTypes.string),
|
|
317
|
-
isLoading: PropTypes.bool
|
|
320
|
+
isLoading: PropTypes.bool,
|
|
321
|
+
dataSelectorId: PropTypes.string
|
|
318
322
|
};
|
|
319
323
|
export const SelectedOptions_propTypes = {
|
|
320
324
|
getRef: PropTypes.func,
|
package/es/Ribbon/Ribbon.js
CHANGED
|
@@ -12,12 +12,14 @@ export default class Ribbon extends React.Component {
|
|
|
12
12
|
palette,
|
|
13
13
|
size,
|
|
14
14
|
dataId,
|
|
15
|
-
customClass
|
|
15
|
+
customClass,
|
|
16
|
+
dataSelectorId
|
|
16
17
|
} = this.props;
|
|
17
18
|
return /*#__PURE__*/React.createElement("span", {
|
|
18
19
|
className: `${style.basic} ${customClass} ${type !== 'tag' ? type === 'plain' || type === 'box' || type === 'stamp' ? `${style[`plain_${palette}`]}
|
|
19
20
|
${type === 'box' ? style[`box_${palette}`] : ''} ${type === 'stamp' ? style[`stamp_${palette}`] : ''}` : `${style[`palette_${palette}`]} ${type === 'default' ? style[`default_${palette}`] : ''}` : ''} ${style[size]} ${style[type]}`,
|
|
20
|
-
"data-id": dataId
|
|
21
|
+
"data-id": dataId,
|
|
22
|
+
"data-selector-id": dataSelectorId
|
|
21
23
|
}, type === 'sticker' ? /*#__PURE__*/React.createElement("span", {
|
|
22
24
|
className: style.after
|
|
23
25
|
}) : null, children ? /*#__PURE__*/React.createElement("span", {
|
|
@@ -6,5 +6,6 @@ export const propTypes = {
|
|
|
6
6
|
size: PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),
|
|
7
7
|
text: PropTypes.string,
|
|
8
8
|
type: PropTypes.oneOf(['default', 'flag', 'plain', 'ribbon', 'box', 'stamp', 'sticker', 'tag']),
|
|
9
|
-
customClass: PropTypes.string
|
|
9
|
+
customClass: PropTypes.string,
|
|
10
|
+
dataSelectorId: PropTypes.string
|
|
10
11
|
};
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -541,7 +541,8 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
541
541
|
i18nKeys,
|
|
542
542
|
htmlId,
|
|
543
543
|
iconOnHover,
|
|
544
|
-
isLoading
|
|
544
|
+
isLoading,
|
|
545
|
+
dataSelectorId
|
|
545
546
|
} = this.props;
|
|
546
547
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
547
548
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -569,7 +570,8 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
569
570
|
return /*#__PURE__*/React.createElement("div", {
|
|
570
571
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
571
572
|
"data-id": dataIdSlctComp,
|
|
572
|
-
"data-title": isDisabled ? title : null
|
|
573
|
+
"data-title": isDisabled ? title : null,
|
|
574
|
+
"data-selector-id": dataSelectorId
|
|
573
575
|
}, /*#__PURE__*/React.createElement("div", {
|
|
574
576
|
className: `${className ? className : ''}`,
|
|
575
577
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
package/es/Select/Select.js
CHANGED
|
@@ -677,7 +677,8 @@ export class SelectComponent extends Component {
|
|
|
677
677
|
customProps,
|
|
678
678
|
autoComplete,
|
|
679
679
|
ariaLabelledby,
|
|
680
|
-
isLoading
|
|
680
|
+
isLoading,
|
|
681
|
+
dataSelectorId
|
|
681
682
|
} = this.props;
|
|
682
683
|
let {
|
|
683
684
|
TextBoxIcon_i18n,
|
|
@@ -705,7 +706,8 @@ export class SelectComponent extends Component {
|
|
|
705
706
|
} = customProps;
|
|
706
707
|
return /*#__PURE__*/React.createElement("div", {
|
|
707
708
|
className: `${isParentBased || isReadOnly || isDisabled ? style.container : ''} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
708
|
-
"data-title": isDisabled ? title : null
|
|
709
|
+
"data-title": isDisabled ? title : null,
|
|
710
|
+
"data-selector-id": dataSelectorId
|
|
709
711
|
}, /*#__PURE__*/React.createElement("div", {
|
|
710
712
|
className: `${className ? className : ''}`,
|
|
711
713
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|
|
@@ -144,7 +144,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
144
144
|
i18nKeys,
|
|
145
145
|
htmlId,
|
|
146
146
|
needEffect,
|
|
147
|
-
isLoading
|
|
147
|
+
isLoading,
|
|
148
|
+
dataSelectorId
|
|
148
149
|
} = this.props;
|
|
149
150
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
150
151
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -169,7 +170,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
169
170
|
return /*#__PURE__*/React.createElement("div", {
|
|
170
171
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
|
|
171
172
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
172
|
-
"data-title": isDisabled ? title : null
|
|
173
|
+
"data-title": isDisabled ? title : null,
|
|
174
|
+
"data-selector-id": dataSelectorId
|
|
173
175
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
174
176
|
align: "vertical",
|
|
175
177
|
alignBox: "row",
|
|
@@ -304,7 +304,8 @@ class SelectWithIcon extends Component {
|
|
|
304
304
|
iconClass,
|
|
305
305
|
i18nKeys,
|
|
306
306
|
htmlId,
|
|
307
|
-
isLoading
|
|
307
|
+
isLoading,
|
|
308
|
+
dataSelectorId
|
|
308
309
|
} = this.props;
|
|
309
310
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
310
311
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -320,7 +321,8 @@ class SelectWithIcon extends Component {
|
|
|
320
321
|
let ariaErrorId = this.getNextAriaId();
|
|
321
322
|
return /*#__PURE__*/React.createElement("div", {
|
|
322
323
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
323
|
-
"data-title": isDisabled ? title : null
|
|
324
|
+
"data-title": isDisabled ? title : null,
|
|
325
|
+
"data-selector-id": dataSelectorId
|
|
324
326
|
}, /*#__PURE__*/React.createElement("div", {
|
|
325
327
|
className: `${className ? className : ''}`,
|
|
326
328
|
onClick: isDisabled || isReadOnly ? null : this.togglePopup,
|