@zohodesk/components 1.0.0-temp-200 → 1.0.0-temp-201
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/.cli/propValidation_report.html +1 -1
- package/es/DropDown/DropDownSearch.js +2 -4
- package/es/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +0 -1
- package/es/DropDown/props/defaultProps.js +1 -2
- package/es/DropDown/props/propTypes.js +1 -2
- package/es/Heading/Heading.js +3 -1
- package/es/Heading/props/defaultProps.js +2 -1
- package/es/Heading/props/propTypes.js +2 -1
- package/es/ListItem/ListItemWithCheckBox.js +1 -2
- package/es/ListItem/ListItemWithRadio.js +1 -2
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +3 -6
- package/es/MultiSelect/AdvancedMultiSelect.js +2 -5
- package/es/MultiSelect/MultiSelect.js +2 -4
- package/es/MultiSelect/MultiSelectWithAvatar.js +1 -2
- package/es/MultiSelect/SelectedOptions.js +5 -10
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +2 -2
- package/es/MultiSelect/props/defaultProps.js +1 -2
- package/es/MultiSelect/props/propTypes.js +1 -2
- package/es/Select/SelectWithAvatar.js +2 -5
- package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
- package/es/Tab/Tabs.js +2 -4
- package/es/v1/DropDown/DropDownSearch.js +2 -4
- package/es/v1/DropDown/props/defaultProps.js +1 -2
- package/es/v1/DropDown/props/propTypes.js +1 -2
- package/es/v1/Heading/Heading.js +3 -1
- package/es/v1/Heading/props/defaultProps.js +2 -1
- package/es/v1/Heading/props/propTypes.js +2 -1
- package/es/v1/ListItem/ListItemWithCheckBox.js +1 -2
- package/es/v1/ListItem/ListItemWithRadio.js +1 -2
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +3 -6
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +1 -5
- package/es/v1/MultiSelect/MultiSelect.js +2 -4
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +1 -2
- package/es/v1/MultiSelect/SelectedOptions.js +2 -4
- package/es/v1/MultiSelect/props/defaultProps.js +1 -2
- package/es/v1/MultiSelect/props/propTypes.js +1 -2
- package/es/v1/Select/SelectWithAvatar.js +2 -5
- package/es/v1/Tab/Tabs.js +2 -4
- package/lib/DropDown/DropDownSearch.js +2 -4
- package/lib/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +0 -1
- package/lib/DropDown/props/defaultProps.js +1 -2
- package/lib/DropDown/props/propTypes.js +1 -1
- package/lib/Heading/Heading.js +4 -3
- package/lib/Heading/props/defaultProps.js +2 -1
- package/lib/Heading/props/propTypes.js +2 -1
- package/lib/ListItem/ListItemWithCheckBox.js +1 -2
- package/lib/ListItem/ListItemWithRadio.js +1 -2
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -6
- package/lib/MultiSelect/AdvancedMultiSelect.js +3 -6
- package/lib/MultiSelect/MultiSelect.js +2 -4
- package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -2
- package/lib/MultiSelect/SelectedOptions.js +5 -10
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +2 -2
- package/lib/MultiSelect/props/defaultProps.js +1 -2
- package/lib/MultiSelect/props/propTypes.js +1 -2
- package/lib/Select/SelectWithAvatar.js +2 -5
- package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +2 -2
- package/lib/Tab/Tabs.js +2 -4
- package/lib/v1/DropDown/DropDownSearch.js +2 -4
- package/lib/v1/DropDown/props/defaultProps.js +1 -2
- package/lib/v1/DropDown/props/propTypes.js +1 -1
- package/lib/v1/Heading/Heading.js +4 -3
- package/lib/v1/Heading/props/defaultProps.js +2 -1
- package/lib/v1/Heading/props/propTypes.js +2 -1
- package/lib/v1/ListItem/ListItemWithCheckBox.js +1 -2
- package/lib/v1/ListItem/ListItemWithRadio.js +1 -2
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +3 -6
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +3 -7
- package/lib/v1/MultiSelect/MultiSelect.js +2 -4
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +1 -2
- package/lib/v1/MultiSelect/SelectedOptions.js +2 -4
- package/lib/v1/MultiSelect/props/defaultProps.js +1 -2
- package/lib/v1/MultiSelect/props/propTypes.js +1 -2
- package/lib/v1/Select/SelectWithAvatar.js +2 -5
- package/lib/v1/Tab/Tabs.js +2 -4
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -37,16 +37,14 @@ export default class DropDownSearch extends React.Component {
|
|
|
37
37
|
size,
|
|
38
38
|
textBoxSize,
|
|
39
39
|
placeHolder,
|
|
40
|
-
customClass
|
|
41
|
-
dataId
|
|
40
|
+
customClass
|
|
42
41
|
} = this.props;
|
|
43
42
|
let {
|
|
44
43
|
searchClass = '',
|
|
45
44
|
customTextBox = ''
|
|
46
45
|
} = customClass;
|
|
47
46
|
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: `${style.search} ${style[`${size}Search`]} ${searchClass}
|
|
49
|
-
dataId: dataId
|
|
47
|
+
className: `${style.search} ${style[`${size}Search`]} ${searchClass}`
|
|
50
48
|
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
51
49
|
id: id,
|
|
52
50
|
inputRef: this.getRef,
|
|
@@ -58,8 +58,7 @@ export const DropDownSearch_propTypes = {
|
|
|
58
58
|
customClass: PropTypes.shape({
|
|
59
59
|
searchClass: PropTypes.string,
|
|
60
60
|
customTextBox: PropTypes.string
|
|
61
|
-
})
|
|
62
|
-
dataId: PropTypes.string
|
|
61
|
+
})
|
|
63
62
|
};
|
|
64
63
|
export const DropDownSeparator_propTypes = {
|
|
65
64
|
customClass: PropTypes.string
|
package/es/Heading/Heading.js
CHANGED
|
@@ -12,7 +12,8 @@ export default class Heading extends React.Component {
|
|
|
12
12
|
title,
|
|
13
13
|
dataTitle,
|
|
14
14
|
dataId,
|
|
15
|
-
a11y
|
|
15
|
+
a11y,
|
|
16
|
+
customAttributes
|
|
16
17
|
} = this.props;
|
|
17
18
|
return /*#__PURE__*/React.createElement(tagName, {
|
|
18
19
|
className: `${style.reset} ${className}`,
|
|
@@ -21,6 +22,7 @@ export default class Heading extends React.Component {
|
|
|
21
22
|
'data-title': dataTitle || title,
|
|
22
23
|
'data-id': dataId,
|
|
23
24
|
'data-test-id': dataId,
|
|
25
|
+
...customAttributes,
|
|
24
26
|
...a11y
|
|
25
27
|
}, title);
|
|
26
28
|
}
|
|
@@ -93,8 +93,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
93
93
|
customProps: ListItemProps,
|
|
94
94
|
...ContainerProps
|
|
95
95
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
96
|
-
className: style.iconBox
|
|
97
|
-
dataId: dataId ? `${dataId}_checkBox` : ''
|
|
96
|
+
className: style.iconBox
|
|
98
97
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
99
98
|
checked: checked,
|
|
100
99
|
a11y: {
|
|
@@ -104,8 +104,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
104
104
|
customClass: {
|
|
105
105
|
customRadio: customRadio,
|
|
106
106
|
customRadioWrap: customRadioWrap
|
|
107
|
-
}
|
|
108
|
-
dataId: `${dataId}_radio`
|
|
107
|
+
}
|
|
109
108
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
110
109
|
flexible: true,
|
|
111
110
|
shrink: true,
|
|
@@ -924,8 +924,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
924
924
|
getRef: this.selectedOptionRef,
|
|
925
925
|
onRemove: this.handleRemoveOption,
|
|
926
926
|
onSelect: this.handleClickSelectedOption,
|
|
927
|
-
isGroupSelect: true
|
|
928
|
-
dataId: `${dataId}_selectedOptions`
|
|
927
|
+
isGroupSelect: true
|
|
929
928
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
930
929
|
flexible: true,
|
|
931
930
|
className: style.wrapper,
|
|
@@ -999,8 +998,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
999
998
|
role: 'listbox',
|
|
1000
999
|
ariaMultiselectable: true
|
|
1001
1000
|
},
|
|
1002
|
-
alignBox: "row"
|
|
1003
|
-
dataId: `${dataId}_dropbox`
|
|
1001
|
+
alignBox: "row"
|
|
1004
1002
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
1005
1003
|
flexible: true
|
|
1006
1004
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
@@ -1044,8 +1042,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1044
1042
|
listItemSize: listItemSize,
|
|
1045
1043
|
a11y: {
|
|
1046
1044
|
role: 'option'
|
|
1047
|
-
}
|
|
1048
|
-
dataId: `${dataId}_Options`
|
|
1045
|
+
}
|
|
1049
1046
|
}));
|
|
1050
1047
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1051
1048
|
options: revampedGroups,
|
|
@@ -429,8 +429,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
429
429
|
isReadOnly: isReadOnly,
|
|
430
430
|
getRef: this.selectedOptionRef,
|
|
431
431
|
onRemove: this.handleRemoveOption,
|
|
432
|
-
onSelect: this.handleClickSelectedOption
|
|
433
|
-
dataId: `${dataIdMultiSelectComp}_selectedOptions`
|
|
432
|
+
onSelect: this.handleClickSelectedOption
|
|
434
433
|
}), moreCount > 0 ? /*#__PURE__*/React.createElement(Box, {
|
|
435
434
|
className: style.more,
|
|
436
435
|
onClick: this.handleMoreClick,
|
|
@@ -439,8 +438,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
439
438
|
flexible: true,
|
|
440
439
|
className: style.wrapper,
|
|
441
440
|
adjust: true,
|
|
442
|
-
shrink: true
|
|
443
|
-
dataId: `${dataIdMultiSelectComp}_textBox`
|
|
441
|
+
shrink: true
|
|
444
442
|
}, /*#__PURE__*/React.createElement("span", {
|
|
445
443
|
className: ` ${style.custmSpan} ${textBoxSize === 'xmedium' ? style.custmSpanXmedium : style.custmSpanMedium} ${isShowClearIcon ? style.clearIconSpace : ''}
|
|
446
444
|
`
|
|
@@ -507,7 +505,6 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
507
505
|
role: 'listbox',
|
|
508
506
|
ariaMultiselectable: true
|
|
509
507
|
},
|
|
510
|
-
dataId: `${dataIdMultiSelectComp}_dropbox`,
|
|
511
508
|
...DropBoxProps,
|
|
512
509
|
alignBox: "row",
|
|
513
510
|
isResponsivePadding: getFooter ? false : true
|
|
@@ -900,8 +900,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
900
900
|
onRemove: this.handleRemoveOption,
|
|
901
901
|
onSelect: this.handleClickSelectedOption,
|
|
902
902
|
size: size,
|
|
903
|
-
palette: palette
|
|
904
|
-
dataId: `${dataId}_selectedOptions`
|
|
903
|
+
palette: palette
|
|
905
904
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
906
905
|
flexible: true,
|
|
907
906
|
className: style.wrapper,
|
|
@@ -1039,8 +1038,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1039
1038
|
},
|
|
1040
1039
|
size: boxSize,
|
|
1041
1040
|
alignBox: "row",
|
|
1042
|
-
isResponsivePadding: getFooter ? false : true
|
|
1043
|
-
dataId: `${dataId}_dropbox`
|
|
1041
|
+
isResponsivePadding: getFooter ? false : true
|
|
1044
1042
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
1045
1043
|
flexible: true
|
|
1046
1044
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
@@ -131,8 +131,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
131
131
|
role: 'listbox'
|
|
132
132
|
},
|
|
133
133
|
isResponsivePadding: true,
|
|
134
|
-
alignBox: "row"
|
|
135
|
-
dataId: `${dataId}_dropbox`
|
|
134
|
+
alignBox: "row"
|
|
136
135
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
137
136
|
flexible: true
|
|
138
137
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
@@ -21,8 +21,7 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
21
21
|
onRemove,
|
|
22
22
|
onSelect,
|
|
23
23
|
size,
|
|
24
|
-
palette
|
|
25
|
-
dataId
|
|
24
|
+
palette
|
|
26
25
|
} = this.props;
|
|
27
26
|
const isDarkPalette = palette === 'dark' ? 'dark' : 'danger';
|
|
28
27
|
return /*#__PURE__*/React.createElement(React.Fragment, null, selectedOptions.map(option => {
|
|
@@ -33,8 +32,7 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
33
32
|
icon,
|
|
34
33
|
optionType,
|
|
35
34
|
iconSize,
|
|
36
|
-
isDisabled
|
|
37
|
-
dataId
|
|
35
|
+
isDisabled
|
|
38
36
|
} = option;
|
|
39
37
|
const commonProps = {
|
|
40
38
|
disabled: isDisabled,
|
|
@@ -51,8 +49,7 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
51
49
|
if (optionType === 'avatar') {
|
|
52
50
|
return /*#__PURE__*/React.createElement(Box, {
|
|
53
51
|
className: `${style.tag} ${style[size]}`,
|
|
54
|
-
key: `${id}photoTag
|
|
55
|
-
dataId: dataId
|
|
52
|
+
key: `${id}photoTag`
|
|
56
53
|
}, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
|
|
57
54
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
58
55
|
hasAvatar: true,
|
|
@@ -61,8 +58,7 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
61
58
|
} else if (optionType === 'icon') {
|
|
62
59
|
return /*#__PURE__*/React.createElement(Box, {
|
|
63
60
|
className: `${style.tag} ${style[size]}`,
|
|
64
|
-
key: `${id}iconTag
|
|
65
|
-
dataId: dataId
|
|
61
|
+
key: `${id}iconTag`
|
|
66
62
|
}, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
|
|
67
63
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
68
64
|
iconName: icon,
|
|
@@ -72,8 +68,7 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
72
68
|
|
|
73
69
|
return /*#__PURE__*/React.createElement(Box, {
|
|
74
70
|
className: `${style.tag} ${style[size]}`,
|
|
75
|
-
key: `${id}tag
|
|
76
|
-
dataId: dataId
|
|
71
|
+
key: `${id}tag`
|
|
77
72
|
}, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
|
|
78
73
|
active: highLightedSelectOptions.indexOf(id) >= 0
|
|
79
74
|
}));
|
|
@@ -16,9 +16,9 @@ exports[`AdvancedMultiSelect rendering the defult props 1`] = `
|
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
18
|
class="wrapper grow basisAuto shrinkOn"
|
|
19
|
-
data-id="
|
|
19
|
+
data-id="boxComponent"
|
|
20
20
|
data-selector-id="box"
|
|
21
|
-
data-test-id="
|
|
21
|
+
data-test-id="boxComponent"
|
|
22
22
|
>
|
|
23
23
|
<span
|
|
24
24
|
class=" custmSpan custmSpanMedium
|
|
@@ -149,8 +149,7 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
149
149
|
needResponsive: true
|
|
150
150
|
};
|
|
151
151
|
export const SelectedOptions_defaultProps = {
|
|
152
|
-
size: 'medium'
|
|
153
|
-
dataId: 'selectedOptions'
|
|
152
|
+
size: 'medium'
|
|
154
153
|
};
|
|
155
154
|
export const Suggestions_defaultProps = {
|
|
156
155
|
a11y: {}
|
|
@@ -139,8 +139,7 @@ export const SelectedOptions_propTypes = {
|
|
|
139
139
|
optionType: PropTypes.string
|
|
140
140
|
})),
|
|
141
141
|
size: PropTypes.oneOf(['medium', 'xmedium']),
|
|
142
|
-
palette: PropTypes.string
|
|
143
|
-
dataId: PropTypes.string
|
|
142
|
+
palette: PropTypes.string
|
|
144
143
|
};
|
|
145
144
|
export const Suggestions_propTypes = {
|
|
146
145
|
a11y: PropTypes.shape({
|
|
@@ -209,8 +209,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
209
209
|
size: tagSize
|
|
210
210
|
})) : null, /*#__PURE__*/React.createElement(Box, {
|
|
211
211
|
flexible: true,
|
|
212
|
-
className: style.textBox
|
|
213
|
-
dataId: `${dataId}_textBox`
|
|
212
|
+
className: style.textBox
|
|
214
213
|
}, /*#__PURE__*/React.createElement(Textbox, {
|
|
215
214
|
a11y: {
|
|
216
215
|
ariaActivedescendant: selectedId,
|
|
@@ -258,8 +257,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
258
257
|
needResponsive: needResponsive,
|
|
259
258
|
isPadding: false,
|
|
260
259
|
isResponsivePadding: true,
|
|
261
|
-
alignBox: "row"
|
|
262
|
-
dataId: `${dataId}_dropbox`
|
|
260
|
+
alignBox: "row"
|
|
263
261
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
264
262
|
align: "both",
|
|
265
263
|
className: style.loader
|
|
@@ -297,7 +295,6 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
297
295
|
role: 'heading'
|
|
298
296
|
}
|
|
299
297
|
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
300
|
-
dataId: `${dataId}_Options`,
|
|
301
298
|
activeId: selectedId,
|
|
302
299
|
suggestions: suggestions,
|
|
303
300
|
getRef: this.suggestionItemRef,
|
|
@@ -16,9 +16,9 @@ exports[`SelectWithAvatar rendering the defult props 1`] = `
|
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
18
|
class="grow basis shrinkOff"
|
|
19
|
-
data-id="
|
|
19
|
+
data-id="boxComponent"
|
|
20
20
|
data-selector-id="box"
|
|
21
|
-
data-test-id="
|
|
21
|
+
data-test-id="boxComponent"
|
|
22
22
|
>
|
|
23
23
|
<input
|
|
24
24
|
aria-activedescendant=""
|
package/es/Tab/Tabs.js
CHANGED
|
@@ -508,15 +508,13 @@ class Tabs extends React.Component {
|
|
|
508
508
|
...DropBoxProps,
|
|
509
509
|
isResponsivePadding: true,
|
|
510
510
|
needFocusScope: true,
|
|
511
|
-
onClose: this.togglePopup
|
|
512
|
-
dataId: `${dataId}_dropbox`
|
|
511
|
+
onClose: this.togglePopup
|
|
513
512
|
}, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(this.props), /*#__PURE__*/React.createElement(Box, {
|
|
514
513
|
flexible: true,
|
|
515
514
|
shrink: true,
|
|
516
515
|
scroll: "vertical",
|
|
517
516
|
className: `${tabletMode ? '' : tabsStyle.menuBox} ${moreBoxClass}`,
|
|
518
|
-
onScroll: this.onScroll
|
|
519
|
-
dataId: `${dataId}_Tabs`
|
|
517
|
+
onScroll: this.onScroll
|
|
520
518
|
}, React.Children.map(moreTabs, child => {
|
|
521
519
|
if (!child) {
|
|
522
520
|
return null;
|
|
@@ -16,8 +16,7 @@ export default function DropDownSearch(props) {
|
|
|
16
16
|
textBoxSize,
|
|
17
17
|
placeHolder,
|
|
18
18
|
customClass,
|
|
19
|
-
getRef
|
|
20
|
-
dataId
|
|
19
|
+
getRef
|
|
21
20
|
} = props;
|
|
22
21
|
let {
|
|
23
22
|
searchClass = '',
|
|
@@ -49,8 +48,7 @@ export default function DropDownSearch(props) {
|
|
|
49
48
|
size: textBoxSize,
|
|
50
49
|
value: value,
|
|
51
50
|
placeHolder: placeHolder,
|
|
52
|
-
customClass: customTextBox
|
|
53
|
-
dataId: dataId
|
|
51
|
+
customClass: customTextBox
|
|
54
52
|
}));
|
|
55
53
|
}
|
|
56
54
|
DropDownSearch.defaultProps = DropDownSearch_defaultProps;
|
|
@@ -58,8 +58,7 @@ export const DropDownSearch_propTypes = {
|
|
|
58
58
|
customClass: PropTypes.shape({
|
|
59
59
|
searchClass: PropTypes.string,
|
|
60
60
|
customTextBox: PropTypes.string
|
|
61
|
-
})
|
|
62
|
-
dataId: PropTypes.string
|
|
61
|
+
})
|
|
63
62
|
};
|
|
64
63
|
export const DropDownSeparator_propTypes = {
|
|
65
64
|
customClass: PropTypes.string
|
package/es/v1/Heading/Heading.js
CHANGED
|
@@ -11,7 +11,8 @@ export default function Heading(props) {
|
|
|
11
11
|
title,
|
|
12
12
|
dataTitle,
|
|
13
13
|
dataId,
|
|
14
|
-
a11y
|
|
14
|
+
a11y,
|
|
15
|
+
customAttributes
|
|
15
16
|
} = props;
|
|
16
17
|
return /*#__PURE__*/React.createElement(tagName, {
|
|
17
18
|
className: `${style.reset} ${className}`,
|
|
@@ -20,6 +21,7 @@ export default function Heading(props) {
|
|
|
20
21
|
'data-title': dataTitle || title,
|
|
21
22
|
'data-id': dataId,
|
|
22
23
|
'data-test-id': dataId,
|
|
24
|
+
...customAttributes,
|
|
23
25
|
...a11y
|
|
24
26
|
}, title);
|
|
25
27
|
}
|
|
@@ -925,8 +925,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
925
925
|
getRef: this.selectedOptionRef,
|
|
926
926
|
onRemove: this.handleRemoveOption,
|
|
927
927
|
onSelect: this.handleClickSelectedOption,
|
|
928
|
-
isGroupSelect: true
|
|
929
|
-
dataId: `${dataId}_selectedOptions`
|
|
928
|
+
isGroupSelect: true
|
|
930
929
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
931
930
|
flexible: true,
|
|
932
931
|
className: style.wrapper,
|
|
@@ -1000,8 +999,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1000
999
|
role: 'listbox',
|
|
1001
1000
|
ariaMultiselectable: true
|
|
1002
1001
|
},
|
|
1003
|
-
alignBox: "row"
|
|
1004
|
-
dataId: `${dataId}_dropbox`
|
|
1002
|
+
alignBox: "row"
|
|
1005
1003
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
1006
1004
|
flexible: true
|
|
1007
1005
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
@@ -1045,8 +1043,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1045
1043
|
listItemSize: listItemSize,
|
|
1046
1044
|
a11y: {
|
|
1047
1045
|
role: 'option'
|
|
1048
|
-
}
|
|
1049
|
-
dataId: `${dataId}_Options`
|
|
1046
|
+
}
|
|
1050
1047
|
}));
|
|
1051
1048
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1052
1049
|
options: revampedGroups,
|
|
@@ -429,8 +429,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
429
429
|
isReadOnly: isReadOnly,
|
|
430
430
|
getRef: this.selectedOptionRef,
|
|
431
431
|
onRemove: this.handleRemoveOption,
|
|
432
|
-
onSelect: this.handleClickSelectedOption
|
|
433
|
-
dataId: `${dataId}_selectedOptions`
|
|
432
|
+
onSelect: this.handleClickSelectedOption
|
|
434
433
|
}), moreCount > 0 ? /*#__PURE__*/React.createElement(Box, {
|
|
435
434
|
className: style.more,
|
|
436
435
|
onClick: this.handleMoreClick,
|
|
@@ -456,7 +455,6 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
456
455
|
size: textBoxSize,
|
|
457
456
|
value: searchStr,
|
|
458
457
|
variant: variant,
|
|
459
|
-
dataId: `${dataId}_textBox`,
|
|
460
458
|
isReadOnly: isReadOnly,
|
|
461
459
|
tabindex: isDisabled && '-1',
|
|
462
460
|
customClass: {
|
|
@@ -507,7 +505,6 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
507
505
|
role: 'listbox',
|
|
508
506
|
ariaMultiselectable: true
|
|
509
507
|
},
|
|
510
|
-
dataId: `${dataId}_dropbox`,
|
|
511
508
|
...DropBoxProps,
|
|
512
509
|
alignBox: "row",
|
|
513
510
|
isResponsivePadding: getFooter ? false : true
|
|
@@ -540,7 +537,6 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
540
537
|
a11y: {
|
|
541
538
|
role: 'option'
|
|
542
539
|
},
|
|
543
|
-
dataId: `${dataId}_Options`,
|
|
544
540
|
...SuggestionsProps
|
|
545
541
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
546
542
|
isLoading: isFetchingOptions,
|
|
@@ -901,8 +901,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
901
901
|
onRemove: this.handleRemoveOption,
|
|
902
902
|
onSelect: this.handleClickSelectedOption,
|
|
903
903
|
size: size,
|
|
904
|
-
palette: palette
|
|
905
|
-
dataId: `${dataId}_selectedOptions`
|
|
904
|
+
palette: palette
|
|
906
905
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
907
906
|
flexible: true,
|
|
908
907
|
className: style.wrapper,
|
|
@@ -1040,8 +1039,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1040
1039
|
},
|
|
1041
1040
|
size: boxSize,
|
|
1042
1041
|
alignBox: "row",
|
|
1043
|
-
isResponsivePadding: getFooter ? false : true
|
|
1044
|
-
dataId: `${dataId}_dropbox`
|
|
1042
|
+
isResponsivePadding: getFooter ? false : true
|
|
1045
1043
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
1046
1044
|
flexible: true
|
|
1047
1045
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
@@ -134,8 +134,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
134
134
|
role: 'listbox'
|
|
135
135
|
},
|
|
136
136
|
isResponsivePadding: true,
|
|
137
|
-
alignBox: "row"
|
|
138
|
-
dataId: `${dataId}_dropbox`
|
|
137
|
+
alignBox: "row"
|
|
139
138
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
140
139
|
flexible: true
|
|
141
140
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
@@ -21,8 +21,7 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
21
21
|
onRemove,
|
|
22
22
|
onSelect,
|
|
23
23
|
size,
|
|
24
|
-
palette
|
|
25
|
-
dataId
|
|
24
|
+
palette
|
|
26
25
|
} = this.props;
|
|
27
26
|
const isDarkPalette = palette === 'dark' ? 'dark' : 'danger';
|
|
28
27
|
return /*#__PURE__*/React.createElement(React.Fragment, null, selectedOptions.map(option => {
|
|
@@ -44,8 +43,7 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
44
43
|
getRef: getRef,
|
|
45
44
|
initial: value,
|
|
46
45
|
id: id,
|
|
47
|
-
isReadOnly: isReadOnly
|
|
48
|
-
dataId: dataId
|
|
46
|
+
isReadOnly: isReadOnly
|
|
49
47
|
};
|
|
50
48
|
|
|
51
49
|
if (optionType === 'avatar') {
|
|
@@ -149,8 +149,7 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
149
149
|
needResponsive: true
|
|
150
150
|
};
|
|
151
151
|
export const SelectedOptions_defaultProps = {
|
|
152
|
-
size: 'medium'
|
|
153
|
-
dataId: 'selectedOptions'
|
|
152
|
+
size: 'medium'
|
|
154
153
|
};
|
|
155
154
|
export const Suggestions_defaultProps = {
|
|
156
155
|
a11y: {}
|
|
@@ -139,8 +139,7 @@ export const SelectedOptions_propTypes = {
|
|
|
139
139
|
optionType: PropTypes.string
|
|
140
140
|
})),
|
|
141
141
|
size: PropTypes.oneOf(['medium', 'xmedium']),
|
|
142
|
-
palette: PropTypes.string
|
|
143
|
-
dataId: PropTypes.string
|
|
142
|
+
palette: PropTypes.string
|
|
144
143
|
};
|
|
145
144
|
export const Suggestions_propTypes = {
|
|
146
145
|
a11y: PropTypes.shape({
|
|
@@ -238,8 +238,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
238
238
|
isClickable: isReadOnly || isDisabled ? false : true,
|
|
239
239
|
borderColor: borderColor,
|
|
240
240
|
htmlId: htmlId,
|
|
241
|
-
autoComplete: false
|
|
242
|
-
dataId: `${dataId}_textBox`
|
|
241
|
+
autoComplete: false
|
|
243
242
|
}))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
244
243
|
query: this.responsiveFunc,
|
|
245
244
|
responsiveId: "Helmet"
|
|
@@ -258,8 +257,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
258
257
|
needResponsive: needResponsive,
|
|
259
258
|
isPadding: false,
|
|
260
259
|
isResponsivePadding: true,
|
|
261
|
-
alignBox: "row"
|
|
262
|
-
dataId: `${dataId}_dropbox`
|
|
260
|
+
alignBox: "row"
|
|
263
261
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
264
262
|
align: "both",
|
|
265
263
|
className: style.loader
|
|
@@ -297,7 +295,6 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
297
295
|
role: 'heading'
|
|
298
296
|
}
|
|
299
297
|
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
300
|
-
dataId: `${dataId}_Options`,
|
|
301
298
|
activeId: selectedId,
|
|
302
299
|
suggestions: suggestions,
|
|
303
300
|
getRef: this.suggestionItemRef,
|
package/es/v1/Tab/Tabs.js
CHANGED
|
@@ -443,15 +443,13 @@ const Tabs = props => {
|
|
|
443
443
|
...DropBoxProps,
|
|
444
444
|
isResponsivePadding: true,
|
|
445
445
|
needFocusScope: true,
|
|
446
|
-
onClose: togglePopupLocal
|
|
447
|
-
dataId: `${dataId}_dropbox`
|
|
446
|
+
onClose: togglePopupLocal
|
|
448
447
|
}, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(props), /*#__PURE__*/React.createElement(Box, {
|
|
449
448
|
flexible: true,
|
|
450
449
|
shrink: true,
|
|
451
450
|
scroll: "vertical",
|
|
452
451
|
className: `${tabletMode ? '' : tabsStyle.menuBox} ${moreBoxClass}`,
|
|
453
|
-
onScroll: onScrollLocal
|
|
454
|
-
dataId: `${dataId}_Tabs`
|
|
452
|
+
onScroll: onScrollLocal
|
|
455
453
|
}, React.Children.map(moreTabs, child => {
|
|
456
454
|
if (!child) {
|
|
457
455
|
return null;
|