@zohodesk/components 1.0.0-temp-192 → 1.0.0-temp-194
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/AppContainer/AppContainer.js +10 -9
- package/es/Avatar/Avatar.js +4 -5
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/Button/Button.js +5 -6
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/DropBox/DropBox.js +10 -11
- package/es/DropDown/DropDown.js +2 -1
- package/es/ListItem/ListContainer.js +6 -5
- package/es/ListItem/ListItem.js +6 -7
- package/es/ListItem/ListItem.module.css +18 -85
- package/es/ListItem/ListItemWithAvatar.js +7 -8
- package/es/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/ListItem/ListItemWithIcon.js +6 -7
- package/es/ListItem/ListItemWithRadio.js +4 -5
- package/es/Modal/Modal.js +4 -5
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +3 -9
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/MultiSelect/MultiSelect.js +3 -9
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -6
- package/es/MultiSelect/SelectedOptions.js +6 -8
- package/es/MultiSelect/Suggestions.js +10 -16
- package/es/MultiSelect/props/defaultProps.js +5 -9
- package/es/MultiSelect/props/propTypes.js +3 -7
- package/es/Popup/Popup.js +3 -4
- package/es/Radio/Radio.js +8 -8
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/Select/GroupSelect.js +3 -9
- package/es/Select/Select.js +4 -5
- package/es/Select/SelectWithAvatar.js +3 -9
- package/es/Select/SelectWithIcon.js +3 -9
- package/es/Select/props/defaultProps.js +3 -6
- package/es/Select/props/propTypes.js +3 -6
- package/es/Switch/Switch.js +8 -8
- package/es/Tab/Tab.js +4 -5
- package/es/Tab/TabContentWrapper.js +4 -5
- package/es/Tab/TabWrapper.js +5 -6
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/props/propTypes.js +1 -0
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/Textarea/Textarea.js +4 -6
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
- package/es/v1/AppContainer/AppContainer.js +10 -9
- package/es/v1/Avatar/Avatar.js +4 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +5 -6
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +10 -11
- package/es/v1/DropDown/DropDown.js +2 -1
- package/es/v1/ListItem/ListContainer.js +6 -5
- package/es/v1/ListItem/ListItem.js +4 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
- package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/v1/ListItem/ListItemWithIcon.js +4 -5
- package/es/v1/ListItem/ListItemWithRadio.js +4 -5
- package/es/v1/Modal/Modal.js +4 -5
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/v1/MultiSelect/SelectedOptions.js +6 -8
- package/es/v1/MultiSelect/Suggestions.js +6 -8
- package/es/v1/Popup/Popup.js +3 -4
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/v1/Select/Select.js +4 -5
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +4 -5
- package/es/v1/Tab/TabContentWrapper.js +4 -5
- package/es/v1/Tab/TabWrapper.js +2 -4
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/v1/Textarea/Textarea.js +4 -6
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/lib/ListItem/ListItem.js +2 -2
- package/lib/ListItem/ListItem.module.css +18 -85
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -7
- package/lib/MultiSelect/MultiSelect.js +3 -8
- package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -3
- package/lib/MultiSelect/Suggestions.js +4 -8
- package/lib/MultiSelect/props/defaultProps.js +5 -9
- package/lib/MultiSelect/props/propTypes.js +6 -9
- package/lib/Select/GroupSelect.js +3 -8
- package/lib/Select/SelectWithAvatar.js +3 -8
- package/lib/Select/SelectWithIcon.js +3 -8
- package/lib/Select/props/defaultProps.js +3 -5
- package/lib/Select/props/propTypes.js +3 -6
- package/lib/Tab/TabWrapper.js +3 -2
- package/lib/Tab/props/propTypes.js +1 -0
- package/package.json +3 -3
- package/result.json +1 -1
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { Box } from '../Layout';
|
|
@@ -87,7 +85,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
87
85
|
ariaHidden
|
|
88
86
|
} = listA11y;
|
|
89
87
|
let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
|
|
90
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
88
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
91
89
|
a11y: listA11y,
|
|
92
90
|
size: size,
|
|
93
91
|
palette: palette,
|
|
@@ -97,7 +95,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
97
95
|
autoHover: autoHover,
|
|
98
96
|
needTick: needTick,
|
|
99
97
|
needBorder: needBorder,
|
|
100
|
-
customClass:
|
|
98
|
+
customClass: customClass,
|
|
101
99
|
dataId: dataIdString,
|
|
102
100
|
dataSelectorId: dataSelectorId,
|
|
103
101
|
isLink: isLink,
|
|
@@ -108,8 +106,9 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
108
106
|
eleRef: this.getRef,
|
|
109
107
|
disableTitle: disableTitle,
|
|
110
108
|
title: null,
|
|
111
|
-
customProps: ListItemProps
|
|
112
|
-
|
|
109
|
+
customProps: ListItemProps,
|
|
110
|
+
...ContainerProps
|
|
111
|
+
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
113
112
|
"aria-hidden": true,
|
|
114
113
|
className: style.iconBox,
|
|
115
114
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
@@ -126,7 +125,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
126
125
|
"data-title": isDisabled ? null : title,
|
|
127
126
|
dataId: `${dataIdString}_Text`
|
|
128
127
|
}, value), needTick && active ? /*#__PURE__*/React.createElement(Box, {
|
|
129
|
-
className:
|
|
128
|
+
className: style.tickIcon,
|
|
130
129
|
"aria-hidden": ariaHidden,
|
|
131
130
|
dataId: `${dataIdString}_tickIcon`,
|
|
132
131
|
dataSelectorId: `${dataSelectorId}_tickIcon`
|
|
@@ -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 Radio from '../Radio/Radio';
|
|
5
3
|
import { Box } from '../Layout';
|
|
@@ -77,7 +75,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
77
75
|
customRadio = '',
|
|
78
76
|
customRadioWrap = ''
|
|
79
77
|
} = customClass;
|
|
80
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
78
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
81
79
|
a11y: listA11y,
|
|
82
80
|
size: size,
|
|
83
81
|
palette: palette,
|
|
@@ -93,8 +91,9 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
93
91
|
eleRef: this.getRef,
|
|
94
92
|
disableTitle: disableTitle,
|
|
95
93
|
title: null,
|
|
96
|
-
customProps: ListItemProps
|
|
97
|
-
|
|
94
|
+
customProps: ListItemProps,
|
|
95
|
+
...ContainerProps
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
98
97
|
className: style.iconBox
|
|
99
98
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
100
99
|
checked: checked,
|
package/es/Modal/Modal.js
CHANGED
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import ReactDOM from 'react-dom';
|
|
@@ -131,9 +129,10 @@ export default class Modal extends React.Component {
|
|
|
131
129
|
|
|
132
130
|
if (isMounted) {
|
|
133
131
|
if (Element) {
|
|
134
|
-
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element,
|
|
135
|
-
ref: this.setRef
|
|
136
|
-
|
|
132
|
+
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, {
|
|
133
|
+
ref: this.setRef,
|
|
134
|
+
...elementProps
|
|
135
|
+
}), this.portalDiv);
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
return null;
|
|
@@ -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';
|
|
@@ -872,12 +870,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
872
870
|
a11y,
|
|
873
871
|
palette,
|
|
874
872
|
needEffect,
|
|
875
|
-
autoComplete
|
|
876
|
-
customProps
|
|
873
|
+
autoComplete
|
|
877
874
|
} = this.props;
|
|
878
|
-
const {
|
|
879
|
-
suggestionsProps
|
|
880
|
-
} = customProps;
|
|
881
875
|
let {
|
|
882
876
|
clearText = 'Clear all'
|
|
883
877
|
} = i18nKeys;
|
|
@@ -1037,7 +1031,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1037
1031
|
a11y: {
|
|
1038
1032
|
role: 'heading'
|
|
1039
1033
|
}
|
|
1040
|
-
})), /*#__PURE__*/React.createElement(Suggestions,
|
|
1034
|
+
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1041
1035
|
suggestions: suggestions,
|
|
1042
1036
|
selectedOptions: selectedOptionIds,
|
|
1043
1037
|
getRef: this.suggestionItemRef,
|
|
@@ -1049,7 +1043,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1049
1043
|
a11y: {
|
|
1050
1044
|
role: 'option'
|
|
1051
1045
|
}
|
|
1052
|
-
}
|
|
1046
|
+
}));
|
|
1053
1047
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1054
1048
|
options: revampedGroups,
|
|
1055
1049
|
searchString: searchStr,
|
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { AdvancedMultiSelect_propTypes } from './props/propTypes';
|
|
@@ -488,7 +486,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
488
486
|
let {
|
|
489
487
|
tabletMode
|
|
490
488
|
} = _ref2;
|
|
491
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox,
|
|
489
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
492
490
|
animationStyle: animationStyle,
|
|
493
491
|
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
494
492
|
getRef: getContainerRef,
|
|
@@ -502,11 +500,11 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
502
500
|
a11y: {
|
|
503
501
|
role: 'listbox',
|
|
504
502
|
ariaMultiselectable: true
|
|
505
|
-
}
|
|
506
|
-
|
|
503
|
+
},
|
|
504
|
+
...DropBoxProps,
|
|
507
505
|
alignBox: "row",
|
|
508
506
|
isResponsivePadding: getFooter ? false : true
|
|
509
|
-
}
|
|
507
|
+
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
510
508
|
align: "both",
|
|
511
509
|
className: style.loader
|
|
512
510
|
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(Box, {
|
|
@@ -523,7 +521,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
523
521
|
shrink: true,
|
|
524
522
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
525
523
|
eleRef: this.suggestionContainerRef
|
|
526
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
524
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
527
525
|
suggestions: suggestions,
|
|
528
526
|
selectedOptions: allselectedOptionIds,
|
|
529
527
|
getRef: this.suggestionItemRef,
|
|
@@ -534,8 +532,9 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
534
532
|
listItemSize: listItemSize,
|
|
535
533
|
a11y: {
|
|
536
534
|
role: 'option'
|
|
537
|
-
}
|
|
538
|
-
|
|
535
|
+
},
|
|
536
|
+
...SuggestionsProps
|
|
537
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
539
538
|
isLoading: isFetchingOptions,
|
|
540
539
|
options: options,
|
|
541
540
|
searchString: searchStr,
|
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { MultiSelect_propTypes } from './props/propTypes';
|
|
@@ -992,12 +990,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
992
990
|
boxSize,
|
|
993
991
|
isLoading,
|
|
994
992
|
selectAllText,
|
|
995
|
-
needSelectAll
|
|
996
|
-
customProps
|
|
993
|
+
needSelectAll
|
|
997
994
|
} = this.props;
|
|
998
|
-
const {
|
|
999
|
-
suggestionsProps = {}
|
|
1000
|
-
} = customProps;
|
|
1001
995
|
const {
|
|
1002
996
|
selectedOptions,
|
|
1003
997
|
searchStr,
|
|
@@ -1070,7 +1064,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1070
1064
|
eleRef: this.suggestionContainerRef
|
|
1071
1065
|
}, isSearching ? /*#__PURE__*/React.createElement("div", {
|
|
1072
1066
|
className: style[palette]
|
|
1073
|
-
}, searchText) : suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
1067
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
1074
1068
|
suggestions: suggestions,
|
|
1075
1069
|
getRef: this.suggestionItemRef,
|
|
1076
1070
|
hoverOption: hoverOption,
|
|
@@ -1083,7 +1077,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1083
1077
|
a11y: {
|
|
1084
1078
|
role: 'option'
|
|
1085
1079
|
}
|
|
1086
|
-
}
|
|
1080
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1087
1081
|
isLoading: isFetchingOptions,
|
|
1088
1082
|
options: options,
|
|
1089
1083
|
searchString: searchStr,
|
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { MultiSelectWithAvatar_propTypes } from './props/propTypes';
|
|
@@ -85,7 +83,6 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
85
83
|
needEffect,
|
|
86
84
|
isLoading,
|
|
87
85
|
keepSelectedOptions,
|
|
88
|
-
needMultiLineText,
|
|
89
86
|
customProps
|
|
90
87
|
} = this.props;
|
|
91
88
|
let {
|
|
@@ -158,7 +155,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
158
155
|
shrink: true,
|
|
159
156
|
customClass: !isModel && dropBoxSize ? style[dropBoxSize] : '',
|
|
160
157
|
eleRef: this.suggestionContainerRef
|
|
161
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
158
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
162
159
|
needTick: keepSelectedOptions,
|
|
163
160
|
suggestions: suggestions,
|
|
164
161
|
getRef: this.suggestionItemRef,
|
|
@@ -172,8 +169,8 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
172
169
|
a11y: {
|
|
173
170
|
role: 'option'
|
|
174
171
|
},
|
|
175
|
-
|
|
176
|
-
}
|
|
172
|
+
...SuggestionsProps
|
|
173
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
177
174
|
isLoading: isFetchingOptions,
|
|
178
175
|
options: options,
|
|
179
176
|
searchString: searchStr,
|
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { SelectedOptions_propTypes } from './props/propTypes';
|
|
@@ -52,28 +50,28 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
52
50
|
return /*#__PURE__*/React.createElement(Box, {
|
|
53
51
|
className: `${style.tag} ${style[size]}`,
|
|
54
52
|
key: `${id}photoTag`
|
|
55
|
-
}, /*#__PURE__*/React.createElement(Tag,
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
|
|
56
54
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
57
55
|
hasAvatar: true,
|
|
58
56
|
imageURL: photoURL
|
|
59
|
-
}))
|
|
57
|
+
}));
|
|
60
58
|
} else if (optionType === 'icon') {
|
|
61
59
|
return /*#__PURE__*/React.createElement(Box, {
|
|
62
60
|
className: `${style.tag} ${style[size]}`,
|
|
63
61
|
key: `${id}iconTag`
|
|
64
|
-
}, /*#__PURE__*/React.createElement(Tag,
|
|
62
|
+
}, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
|
|
65
63
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
66
64
|
iconName: icon,
|
|
67
65
|
iconSize: iconSize
|
|
68
|
-
}))
|
|
66
|
+
}));
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
return /*#__PURE__*/React.createElement(Box, {
|
|
72
70
|
className: `${style.tag} ${style[size]}`,
|
|
73
71
|
key: `${id}tag`
|
|
74
|
-
}, /*#__PURE__*/React.createElement(Tag,
|
|
72
|
+
}, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
|
|
75
73
|
active: highLightedSelectOptions.indexOf(id) >= 0
|
|
76
|
-
}))
|
|
74
|
+
}));
|
|
77
75
|
}));
|
|
78
76
|
}
|
|
79
77
|
|
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { Suggestions_propTypes } from './props/propTypes';
|
|
@@ -29,8 +27,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
29
27
|
avatarPalette,
|
|
30
28
|
palette,
|
|
31
29
|
htmlId,
|
|
32
|
-
a11y
|
|
33
|
-
needMultiLineText
|
|
30
|
+
a11y
|
|
34
31
|
} = this.props;
|
|
35
32
|
const {
|
|
36
33
|
ariaParentRole,
|
|
@@ -77,7 +74,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
77
74
|
}
|
|
78
75
|
|
|
79
76
|
if (optionType === 'avatar') {
|
|
80
|
-
return /*#__PURE__*/React.createElement(ListItemWithAvatar,
|
|
77
|
+
return /*#__PURE__*/React.createElement(ListItemWithAvatar, { ...commonProps,
|
|
81
78
|
autoHover: false,
|
|
82
79
|
getRef: getRef,
|
|
83
80
|
highlight: isHighlight,
|
|
@@ -95,11 +92,10 @@ export default class Suggestions extends React.PureComponent {
|
|
|
95
92
|
size: listItemSize,
|
|
96
93
|
avatarPalette: avatarPalette,
|
|
97
94
|
palette: palette,
|
|
98
|
-
a11y: list_a11y
|
|
99
|
-
|
|
100
|
-
}));
|
|
95
|
+
a11y: list_a11y
|
|
96
|
+
});
|
|
101
97
|
} else if (optionType === 'icon') {
|
|
102
|
-
return /*#__PURE__*/React.createElement(ListItemWithIcon,
|
|
98
|
+
return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
|
|
103
99
|
autoHover: false,
|
|
104
100
|
getRef: getRef,
|
|
105
101
|
highlight: isHighlight,
|
|
@@ -116,12 +112,11 @@ export default class Suggestions extends React.PureComponent {
|
|
|
116
112
|
iconSize: iconSize,
|
|
117
113
|
size: listItemSize,
|
|
118
114
|
palette: palette,
|
|
119
|
-
a11y: list_a11y
|
|
120
|
-
|
|
121
|
-
}));
|
|
115
|
+
a11y: list_a11y
|
|
116
|
+
});
|
|
122
117
|
}
|
|
123
118
|
|
|
124
|
-
return /*#__PURE__*/React.createElement(ListItem,
|
|
119
|
+
return /*#__PURE__*/React.createElement(ListItem, { ...commonProps,
|
|
125
120
|
autoHover: false,
|
|
126
121
|
getRef: getRef,
|
|
127
122
|
highlight: isHighlight,
|
|
@@ -136,9 +131,8 @@ export default class Suggestions extends React.PureComponent {
|
|
|
136
131
|
active: isActive,
|
|
137
132
|
size: listItemSize,
|
|
138
133
|
palette: palette,
|
|
139
|
-
a11y: list_a11y
|
|
140
|
-
|
|
141
|
-
}));
|
|
134
|
+
a11y: list_a11y
|
|
135
|
+
});
|
|
142
136
|
})));
|
|
143
137
|
}
|
|
144
138
|
|
|
@@ -35,8 +35,7 @@ export const AdvancedGroupMultiSelect_defaultProps = {
|
|
|
35
35
|
needEffect: true,
|
|
36
36
|
palette: 'default',
|
|
37
37
|
isLoading: false,
|
|
38
|
-
dataSelectorId: 'advancedGroupMultiSelect'
|
|
39
|
-
customProps: {}
|
|
38
|
+
dataSelectorId: 'advancedGroupMultiSelect'
|
|
40
39
|
};
|
|
41
40
|
export const AdvancedMultiSelect_defaultProps = {
|
|
42
41
|
animationStyle: 'bounce',
|
|
@@ -111,8 +110,7 @@ export const MultiSelect_defaultProps = {
|
|
|
111
110
|
keepSelectedOptions: false,
|
|
112
111
|
selectedOptionsCount: 0,
|
|
113
112
|
cardHeaderName: '',
|
|
114
|
-
needResponsive: true
|
|
115
|
-
customProps: {}
|
|
113
|
+
needResponsive: true
|
|
116
114
|
};
|
|
117
115
|
export const MultiSelectHeader_defaultProps = {
|
|
118
116
|
dataId: 'MultiSelectHeader'
|
|
@@ -146,14 +144,12 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
146
144
|
isLoading: false,
|
|
147
145
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
148
146
|
keepSelectedOptions: false,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
customProps: {}
|
|
147
|
+
customProps: {},
|
|
148
|
+
needResponsive: true
|
|
152
149
|
};
|
|
153
150
|
export const SelectedOptions_defaultProps = {
|
|
154
151
|
size: 'medium'
|
|
155
152
|
};
|
|
156
153
|
export const Suggestions_defaultProps = {
|
|
157
|
-
a11y: {}
|
|
158
|
-
needMultiLineText: false
|
|
154
|
+
a11y: {}
|
|
159
155
|
};
|
|
@@ -104,8 +104,7 @@ export const MultiSelect_propTypes = {
|
|
|
104
104
|
needSelectAll: PropTypes.bool,
|
|
105
105
|
selectAllText: PropTypes.string,
|
|
106
106
|
setAriaId: PropTypes.string,
|
|
107
|
-
ariaErrorId: PropTypes.string
|
|
108
|
-
customProps: PropTypes.string
|
|
107
|
+
ariaErrorId: PropTypes.string
|
|
109
108
|
};
|
|
110
109
|
export const MultiSelectHeader_propTypes = {
|
|
111
110
|
dataId: PropTypes.string,
|
|
@@ -120,7 +119,6 @@ export const MultiSelectWithAvatar_propTypes = {
|
|
|
120
119
|
photoURL: PropTypes.string
|
|
121
120
|
}))]).isRequired,
|
|
122
121
|
imageField: PropTypes.string,
|
|
123
|
-
needMultiLineText: PropTypes.string,
|
|
124
122
|
customProps: PropTypes.shape({
|
|
125
123
|
SuggestionsProps: PropTypes.object,
|
|
126
124
|
DropBoxProps: PropTypes.object
|
|
@@ -170,8 +168,7 @@ export const Suggestions_propTypes = {
|
|
|
170
168
|
logo: PropTypes.string,
|
|
171
169
|
optionType: PropTypes.string,
|
|
172
170
|
listItemProps: PropTypes.object
|
|
173
|
-
}))
|
|
174
|
-
needMultiLineText: PropTypes.bool
|
|
171
|
+
}))
|
|
175
172
|
};
|
|
176
173
|
export const AdvancedGroupMultiSelect_propTypes = {
|
|
177
174
|
animationStyle: PropTypes.string,
|
|
@@ -237,8 +234,7 @@ export const AdvancedGroupMultiSelect_propTypes = {
|
|
|
237
234
|
needToCloseOnSelect: PropTypes.func,
|
|
238
235
|
searchStr: PropTypes.string,
|
|
239
236
|
children: PropTypes.node,
|
|
240
|
-
dataSelectorId: PropTypes.string
|
|
241
|
-
customProps: PropTypes.string
|
|
237
|
+
dataSelectorId: PropTypes.string
|
|
242
238
|
};
|
|
243
239
|
export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
|
|
244
240
|
selectedOptionDetails: PropTypes.string,
|
package/es/Popup/Popup.js
CHANGED
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import PropTypes from 'prop-types';
|
|
@@ -623,14 +621,15 @@ const Popup = function (Component) {
|
|
|
623
621
|
isPopupOpen
|
|
624
622
|
} = this.state;
|
|
625
623
|
const localState = isPopupReady ? this.state : {};
|
|
626
|
-
return /*#__PURE__*/React.createElement(Component,
|
|
624
|
+
return /*#__PURE__*/React.createElement(Component, { ...this.props,
|
|
625
|
+
...this.state,
|
|
627
626
|
openPopupOnly: this.openPopupOnly,
|
|
628
627
|
closePopupOnly: this.closePopupOnly,
|
|
629
628
|
togglePopup: this.togglePopup,
|
|
630
629
|
removeClose: this.removeClose,
|
|
631
630
|
getTargetRef: this.getTargetRef,
|
|
632
631
|
getContainerRef: this.getContainerRef
|
|
633
|
-
})
|
|
632
|
+
});
|
|
634
633
|
}
|
|
635
634
|
|
|
636
635
|
}
|
package/es/Radio/Radio.js
CHANGED
|
@@ -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
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium'] }] */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -73,7 +71,7 @@ export default class Radio extends React.Component {
|
|
|
73
71
|
ContainerProps = {},
|
|
74
72
|
LabelProps = {}
|
|
75
73
|
} = customProps;
|
|
76
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
74
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
77
75
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
78
76
|
isCover: false,
|
|
79
77
|
isInline: text ? false : true,
|
|
@@ -89,8 +87,9 @@ export default class Radio extends React.Component {
|
|
|
89
87
|
"aria-Hidden": ariaHidden,
|
|
90
88
|
"aria-label": ariaLabel,
|
|
91
89
|
"aria-labelledby": ariaLabelledby,
|
|
92
|
-
"aria-readonly": ariaReadonly
|
|
93
|
-
|
|
90
|
+
"aria-readonly": ariaReadonly,
|
|
91
|
+
...ContainerProps
|
|
92
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
94
93
|
className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
|
|
95
94
|
${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
|
|
96
95
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -116,7 +115,7 @@ export default class Radio extends React.Component {
|
|
|
116
115
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
117
116
|
flexible: true,
|
|
118
117
|
className: style.text
|
|
119
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
118
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
120
119
|
text: text,
|
|
121
120
|
palette: labelPalette,
|
|
122
121
|
size: labelSize,
|
|
@@ -126,8 +125,9 @@ export default class Radio extends React.Component {
|
|
|
126
125
|
variant: variant,
|
|
127
126
|
title: toolTip ? toolTip : text,
|
|
128
127
|
customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
|
|
129
|
-
${style[`${palette}Label`]} ${accessMode} ${customLabel}
|
|
130
|
-
|
|
128
|
+
${style[`${palette}Label`]} ${accessMode} ${customLabel}`,
|
|
129
|
+
...LabelProps
|
|
130
|
+
})), children);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
}
|
|
@@ -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, { Component } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -45,9 +43,9 @@ export default class ResponsiveDropBox extends Component {
|
|
|
45
43
|
customMobileDropBoxWrap: `${customMobileDropBoxWrap}`,
|
|
46
44
|
customResponsiveContainer: `${customResponsiveContainer}`
|
|
47
45
|
};
|
|
48
|
-
return /*#__PURE__*/React.createElement(DropBox,
|
|
46
|
+
return /*#__PURE__*/React.createElement(DropBox, { ...this.props,
|
|
49
47
|
customClass: dropBoxClasses
|
|
50
|
-
}
|
|
48
|
+
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
51
49
|
query: this.responsiveFunc,
|
|
52
50
|
responsiveId: "Helmet"
|
|
53
51
|
}, _ref2 => {
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React, { PureComponent } from 'react';
|
|
5
3
|
import { GroupSelect_defaultProps } from './props/defaultProps';
|
|
@@ -586,12 +584,8 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
586
584
|
htmlId,
|
|
587
585
|
iconOnHover,
|
|
588
586
|
isLoading,
|
|
589
|
-
dataSelectorId
|
|
590
|
-
customProps
|
|
587
|
+
dataSelectorId
|
|
591
588
|
} = this.props;
|
|
592
|
-
const {
|
|
593
|
-
suggestionsProps = {}
|
|
594
|
-
} = customProps;
|
|
595
589
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
596
590
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
597
591
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -756,7 +750,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
756
750
|
a11y: {
|
|
757
751
|
role: 'heading'
|
|
758
752
|
}
|
|
759
|
-
})), /*#__PURE__*/React.createElement(Suggestions,
|
|
753
|
+
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
760
754
|
activeId: selectedId,
|
|
761
755
|
suggestions: options,
|
|
762
756
|
getRef: this.suggestionItemRef,
|
|
@@ -771,7 +765,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
771
765
|
ariaParentRole: 'listbox',
|
|
772
766
|
role: 'option'
|
|
773
767
|
}
|
|
774
|
-
}
|
|
768
|
+
}));
|
|
775
769
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
776
770
|
options: revampedGroups,
|
|
777
771
|
searchString: searchStr,
|
package/es/Select/Select.js
CHANGED
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { Select_defaultProps } from './props/defaultProps';
|
|
@@ -917,7 +915,7 @@ export class SelectComponent extends Component {
|
|
|
917
915
|
shrink: true,
|
|
918
916
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
919
917
|
eleRef: this.suggestionContainerRef
|
|
920
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
918
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
921
919
|
activeId: selectedId,
|
|
922
920
|
suggestions: suggestions,
|
|
923
921
|
getRef: this.suggestionItemRef,
|
|
@@ -934,8 +932,9 @@ export class SelectComponent extends Component {
|
|
|
934
932
|
a11y: {
|
|
935
933
|
ariaParentRole: 'listbox',
|
|
936
934
|
role: 'option'
|
|
937
|
-
}
|
|
938
|
-
|
|
935
|
+
},
|
|
936
|
+
...SuggestionsProps
|
|
937
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
939
938
|
isLoading: isFetchingOptions,
|
|
940
939
|
options: options,
|
|
941
940
|
searchString: searchStr,
|
|
@@ -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
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { SelectWithAvatar_defaultProps } from './props/defaultProps';
|
|
@@ -160,12 +158,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
160
158
|
htmlId,
|
|
161
159
|
needEffect,
|
|
162
160
|
isLoading,
|
|
163
|
-
dataSelectorId
|
|
164
|
-
customProps
|
|
161
|
+
dataSelectorId
|
|
165
162
|
} = this.props;
|
|
166
|
-
const {
|
|
167
|
-
suggestionsProps = {}
|
|
168
|
-
} = customProps;
|
|
169
163
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
170
164
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
171
165
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -300,7 +294,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
300
294
|
a11y: {
|
|
301
295
|
role: 'heading'
|
|
302
296
|
}
|
|
303
|
-
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
297
|
+
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
304
298
|
activeId: selectedId,
|
|
305
299
|
suggestions: suggestions,
|
|
306
300
|
getRef: this.suggestionItemRef,
|
|
@@ -316,7 +310,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
316
310
|
ariaParentRole: 'listbox',
|
|
317
311
|
role: 'option'
|
|
318
312
|
}
|
|
319
|
-
}
|
|
313
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
320
314
|
isLoading: isFetchingOptions,
|
|
321
315
|
options: options,
|
|
322
316
|
searchString: searchStr,
|