@zohodesk/components 1.2.29 → 1.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/es/AppContainer/AppContainer.js +10 -9
- package/es/Avatar/Avatar.js +4 -5
- package/es/Avatar/Avatar.module.css +0 -12
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +0 -4
- package/es/Button/Button.js +5 -6
- package/es/Button/css/Button.module.css +0 -6
- package/es/Buttongroup/Buttongroup.module.css +0 -2
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +0 -2
- package/es/DateTime/DateTime.module.css +0 -1
- package/es/DropBox/DropBox.js +10 -11
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
- package/es/DropBox/css/DropBox.module.css +0 -1
- package/es/DropDown/DropDown.js +2 -1
- package/es/DropDown/DropDownHeading.module.css +0 -6
- package/es/DropDown/DropDownItem.module.css +0 -3
- package/es/Label/Label.module.css +0 -1
- package/es/ListItem/ListContainer.js +6 -5
- package/es/ListItem/ListItem.js +4 -5
- package/es/ListItem/ListItem.module.css +0 -21
- package/es/ListItem/ListItemWithAvatar.js +4 -5
- package/es/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/ListItem/ListItemWithIcon.js +4 -5
- package/es/ListItem/ListItemWithRadio.js +4 -5
- package/es/Modal/Modal.js +4 -5
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/MultiSelect/SelectedOptions.js +6 -8
- package/es/MultiSelect/Suggestions.js +6 -8
- package/es/MultiSelect/props/defaultProps.js +4 -2
- package/es/PopOver/PopOver.module.css +3 -3
- package/es/Popup/Popup.js +3 -4
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +0 -1
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/Ribbon/Ribbon.module.css +0 -4
- package/es/Select/Select.js +4 -5
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +0 -2
- package/es/Tab/Tab.js +4 -5
- package/es/Tab/TabContentWrapper.js +4 -5
- package/es/Tab/TabWrapper.js +2 -4
- package/es/Tab/Tabs.js +16 -16
- package/es/Tag/Tag.module.css +0 -6
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +1 -21
- package/es/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/TextBoxIcon/TextBoxIcon.module.css +0 -5
- package/es/Textarea/Textarea.js +4 -6
- package/es/Textarea/Textarea.module.css +0 -6
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/common/customscroll.module.css +27 -3
- 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/MultiSelect/props/defaultProps.js +4 -2
- 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/Avatar/Avatar.module.css +0 -12
- package/lib/AvatarTeam/AvatarTeam.module.css +0 -4
- package/lib/Button/css/Button.module.css +0 -6
- package/lib/Buttongroup/Buttongroup.module.css +0 -2
- package/lib/CheckBox/CheckBox.module.css +0 -2
- package/lib/DateTime/DateTime.module.css +0 -1
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
- package/lib/DropBox/css/DropBox.module.css +0 -1
- package/lib/DropDown/DropDownHeading.module.css +0 -6
- package/lib/DropDown/DropDownItem.module.css +0 -3
- package/lib/Label/Label.module.css +0 -1
- package/lib/ListItem/ListItem.module.css +0 -21
- package/lib/MultiSelect/props/defaultProps.js +4 -2
- package/lib/PopOver/PopOver.module.css +3 -3
- package/lib/Radio/Radio.module.css +0 -1
- package/lib/Ribbon/Ribbon.module.css +0 -4
- package/lib/Switch/Switch.module.css +0 -2
- package/lib/Tag/Tag.module.css +0 -6
- package/lib/TextBox/TextBox.module.css +1 -21
- package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -5
- package/lib/Textarea/Textarea.module.css +0 -6
- package/lib/common/customscroll.module.css +27 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/package.json +10 -10
- package/result.json +1 -1
|
@@ -7,7 +7,8 @@ export default function DropDown(props) {
|
|
|
7
7
|
let {
|
|
8
8
|
children
|
|
9
9
|
} = props;
|
|
10
|
-
return /*#__PURE__*/React.createElement(PopOver, props
|
|
10
|
+
return /*#__PURE__*/React.createElement(PopOver, { ...props
|
|
11
|
+
}, /*#__PURE__*/React.createElement(PopOverTarget, null, children[0]), /*#__PURE__*/React.createElement(PopOverContainer, null, children[1]));
|
|
11
12
|
}
|
|
12
13
|
DropDown.propTypes = DropDown_propTypes;
|
|
13
14
|
export function DropDownTarget(props) {
|
|
@@ -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, { useCallback } from 'react';
|
|
5
3
|
import { Container } from '../Layout';
|
|
@@ -73,7 +71,7 @@ const ListContainer = props => {
|
|
|
73
71
|
options.tabindex = '0';
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
74
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
77
75
|
role: role,
|
|
78
76
|
"data-a11y-inset-focus": insetFocus,
|
|
79
77
|
"aria-selected": ariaSelected,
|
|
@@ -89,8 +87,11 @@ const ListContainer = props => {
|
|
|
89
87
|
onMouseOver: onMouseOver,
|
|
90
88
|
eleRef: eleRef,
|
|
91
89
|
tagName: isLink ? 'a' : 'li',
|
|
92
|
-
"data-title": isDisabled ? disableTitle : title
|
|
93
|
-
|
|
90
|
+
"data-title": isDisabled ? disableTitle : title,
|
|
91
|
+
...options,
|
|
92
|
+
...customProps,
|
|
93
|
+
...a11yAttributes
|
|
94
|
+
}, children);
|
|
94
95
|
};
|
|
95
96
|
|
|
96
97
|
ListContainer.defaultProps = ListContainerDefaultProps;
|
|
@@ -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';
|
|
@@ -73,7 +71,7 @@ const ListItem = props => {
|
|
|
73
71
|
} = listA11y;
|
|
74
72
|
let tickIconPalette = style[`${palette}Tick`] ? style[`${palette}Tick`] : '';
|
|
75
73
|
let dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
76
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
74
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
77
75
|
a11y: listA11y,
|
|
78
76
|
size: size,
|
|
79
77
|
palette: palette,
|
|
@@ -94,8 +92,9 @@ const ListItem = props => {
|
|
|
94
92
|
onClick: handleClick,
|
|
95
93
|
onMouseEnter: handleMouseEnter,
|
|
96
94
|
eleRef: handleRef,
|
|
97
|
-
customProps: ListItemProps
|
|
98
|
-
|
|
95
|
+
customProps: ListItemProps,
|
|
96
|
+
...ContainerProps
|
|
97
|
+
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
99
98
|
shrink: true,
|
|
100
99
|
adjust: true,
|
|
101
100
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
@@ -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, { memo } from 'react';
|
|
5
3
|
import { Box } from '../Layout';
|
|
@@ -78,7 +76,7 @@ const ListItemWithAvatar = props => {
|
|
|
78
76
|
} = listA11y;
|
|
79
77
|
let isDarkPalette = palette === 'dark';
|
|
80
78
|
let dataIdString = value ? value : dataId;
|
|
81
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
79
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
82
80
|
a11y: listA11y,
|
|
83
81
|
size: size,
|
|
84
82
|
palette: palette,
|
|
@@ -96,8 +94,9 @@ const ListItemWithAvatar = props => {
|
|
|
96
94
|
eleRef: handleRef,
|
|
97
95
|
disableTitle: disableTitle,
|
|
98
96
|
title: null,
|
|
99
|
-
customProps: ListItemProps
|
|
100
|
-
|
|
97
|
+
customProps: ListItemProps,
|
|
98
|
+
...ContainerProps
|
|
99
|
+
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
101
100
|
className: style.leftAvatar
|
|
102
101
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
103
102
|
name: name,
|
|
@@ -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 ListContainer from './ListContainer';
|
|
5
3
|
import { ListItemWithCheckBoxDefaultProps } from './props/defaultProps';
|
|
@@ -58,7 +56,7 @@ const ListItemWithCheckBox = props => {
|
|
|
58
56
|
customCheckBox = '',
|
|
59
57
|
customLabel = ''
|
|
60
58
|
} = customClass;
|
|
61
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
59
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
62
60
|
a11y: listA11y,
|
|
63
61
|
size: size,
|
|
64
62
|
palette: palette,
|
|
@@ -74,8 +72,9 @@ const ListItemWithCheckBox = props => {
|
|
|
74
72
|
eleRef: handleRef,
|
|
75
73
|
disableTitle: disableTitle,
|
|
76
74
|
title: null,
|
|
77
|
-
customProps: ListItemProps
|
|
78
|
-
|
|
75
|
+
customProps: ListItemProps,
|
|
76
|
+
...ContainerProps
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
79
78
|
className: style.iconBox
|
|
80
79
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
81
80
|
checked: checked,
|
|
@@ -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';
|
|
@@ -68,7 +66,7 @@ const ListItemWithIcon = props => {
|
|
|
68
66
|
ariaHidden
|
|
69
67
|
} = listA11y;
|
|
70
68
|
let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
|
|
71
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
69
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
72
70
|
a11y: listA11y,
|
|
73
71
|
size: size,
|
|
74
72
|
palette: palette,
|
|
@@ -89,8 +87,9 @@ const ListItemWithIcon = props => {
|
|
|
89
87
|
eleRef: handleRef,
|
|
90
88
|
disableTitle: disableTitle,
|
|
91
89
|
title: null,
|
|
92
|
-
customProps: ListItemProps
|
|
93
|
-
|
|
90
|
+
customProps: ListItemProps,
|
|
91
|
+
...ContainerProps
|
|
92
|
+
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
94
93
|
"aria-hidden": true,
|
|
95
94
|
className: style.iconBox,
|
|
96
95
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
@@ -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';
|
|
@@ -58,7 +56,7 @@ const ListItemWithRadio = props => {
|
|
|
58
56
|
customRadio = '',
|
|
59
57
|
customRadioWrap = ''
|
|
60
58
|
} = customClass;
|
|
61
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
59
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
62
60
|
a11y: listA11y,
|
|
63
61
|
size: size,
|
|
64
62
|
palette: palette,
|
|
@@ -74,8 +72,9 @@ const ListItemWithRadio = props => {
|
|
|
74
72
|
eleRef: handleRef,
|
|
75
73
|
disableTitle: disableTitle,
|
|
76
74
|
title: null,
|
|
77
|
-
customProps: ListItemProps
|
|
78
|
-
|
|
75
|
+
customProps: ListItemProps,
|
|
76
|
+
...ContainerProps
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
79
78
|
className: style.iconBox
|
|
80
79
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
81
80
|
checked: checked,
|
package/es/v1/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
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
4
2
|
import ReactDOM from 'react-dom';
|
|
5
3
|
import useEffectCallOnlyAfterState from '@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState';
|
|
@@ -112,9 +110,10 @@ export default function Modal(props) {
|
|
|
112
110
|
|
|
113
111
|
if (isMounted) {
|
|
114
112
|
if (Element) {
|
|
115
|
-
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element,
|
|
116
|
-
ref: setRef
|
|
117
|
-
|
|
113
|
+
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, {
|
|
114
|
+
ref: setRef,
|
|
115
|
+
...elementProps
|
|
116
|
+
}), portalDiv.current);
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
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
|
/**** 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 { MultiSelectWithAvatar_propTypes } from './props/propTypes';
|
|
@@ -160,7 +158,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
160
158
|
shrink: true,
|
|
161
159
|
customClass: !isModel && dropBoxSize ? style[dropBoxSize] : '',
|
|
162
160
|
eleRef: this.suggestionContainerRef
|
|
163
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
161
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
164
162
|
needTick: keepSelectedOptions,
|
|
165
163
|
suggestions: suggestions,
|
|
166
164
|
getRef: this.suggestionItemRef,
|
|
@@ -173,8 +171,9 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
173
171
|
selectedOptions: selectedOptionIds,
|
|
174
172
|
a11y: {
|
|
175
173
|
role: 'option'
|
|
176
|
-
}
|
|
177
|
-
|
|
174
|
+
},
|
|
175
|
+
...SuggestionsProps
|
|
176
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
178
177
|
isLoading: isFetchingOptions,
|
|
179
178
|
options: options,
|
|
180
179
|
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';
|
|
@@ -76,7 +74,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
if (optionType === 'avatar') {
|
|
79
|
-
return /*#__PURE__*/React.createElement(ListItemWithAvatar,
|
|
77
|
+
return /*#__PURE__*/React.createElement(ListItemWithAvatar, { ...commonProps,
|
|
80
78
|
autoHover: false,
|
|
81
79
|
getRef: getRef,
|
|
82
80
|
highlight: isHighlight,
|
|
@@ -95,9 +93,9 @@ export default class Suggestions extends React.PureComponent {
|
|
|
95
93
|
avatarPalette: avatarPalette,
|
|
96
94
|
palette: palette,
|
|
97
95
|
a11y: list_a11y
|
|
98
|
-
})
|
|
96
|
+
});
|
|
99
97
|
} else if (optionType === 'icon') {
|
|
100
|
-
return /*#__PURE__*/React.createElement(ListItemWithIcon,
|
|
98
|
+
return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
|
|
101
99
|
autoHover: false,
|
|
102
100
|
getRef: getRef,
|
|
103
101
|
highlight: isHighlight,
|
|
@@ -115,10 +113,10 @@ export default class Suggestions extends React.PureComponent {
|
|
|
115
113
|
size: listItemSize,
|
|
116
114
|
palette: palette,
|
|
117
115
|
a11y: list_a11y
|
|
118
|
-
})
|
|
116
|
+
});
|
|
119
117
|
}
|
|
120
118
|
|
|
121
|
-
return /*#__PURE__*/React.createElement(ListItem,
|
|
119
|
+
return /*#__PURE__*/React.createElement(ListItem, { ...commonProps,
|
|
122
120
|
autoHover: false,
|
|
123
121
|
getRef: getRef,
|
|
124
122
|
highlight: isHighlight,
|
|
@@ -134,7 +132,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
134
132
|
size: listItemSize,
|
|
135
133
|
palette: palette,
|
|
136
134
|
a11y: list_a11y
|
|
137
|
-
})
|
|
135
|
+
});
|
|
138
136
|
})));
|
|
139
137
|
}
|
|
140
138
|
|
|
@@ -109,7 +109,8 @@ export const MultiSelect_defaultProps = {
|
|
|
109
109
|
dataSelectorId: 'multiSelect',
|
|
110
110
|
keepSelectedOptions: false,
|
|
111
111
|
selectedOptionsCount: 0,
|
|
112
|
-
cardHeaderName: ''
|
|
112
|
+
cardHeaderName: '',
|
|
113
|
+
needResponsive: true
|
|
113
114
|
};
|
|
114
115
|
export const MultiSelectHeader_defaultProps = {
|
|
115
116
|
dataId: 'MultiSelectHeader'
|
|
@@ -143,7 +144,8 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
143
144
|
isLoading: false,
|
|
144
145
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
145
146
|
keepSelectedOptions: false,
|
|
146
|
-
customProps: {}
|
|
147
|
+
customProps: {},
|
|
148
|
+
needResponsive: true
|
|
147
149
|
};
|
|
148
150
|
export const SelectedOptions_defaultProps = {
|
|
149
151
|
size: 'medium'
|
package/es/v1/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/v1/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
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -63,7 +61,7 @@ const Radio = props => {
|
|
|
63
61
|
getRef && getRef(ele, value);
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
64
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
67
65
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
68
66
|
isCover: false,
|
|
69
67
|
isInline: text ? false : true,
|
|
@@ -79,8 +77,9 @@ const Radio = props => {
|
|
|
79
77
|
"aria-Hidden": ariaHidden,
|
|
80
78
|
"aria-label": ariaLabel,
|
|
81
79
|
"aria-labelledby": ariaLabelledby,
|
|
82
|
-
"aria-readonly": ariaReadonly
|
|
83
|
-
|
|
80
|
+
"aria-readonly": ariaReadonly,
|
|
81
|
+
...ContainerProps
|
|
82
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
84
83
|
className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
|
|
85
84
|
${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
|
|
86
85
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -106,7 +105,7 @@ const Radio = props => {
|
|
|
106
105
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
107
106
|
flexible: true,
|
|
108
107
|
className: style.text
|
|
109
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
110
109
|
text: text,
|
|
111
110
|
palette: labelPalette,
|
|
112
111
|
size: labelSize,
|
|
@@ -116,8 +115,9 @@ const Radio = props => {
|
|
|
116
115
|
variant: variant,
|
|
117
116
|
title: toolTip ? toolTip : text,
|
|
118
117
|
customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
|
|
119
|
-
${style[`${palette}Label`]} ${accessMode} ${customLabel}
|
|
120
|
-
|
|
118
|
+
${style[`${palette}Label`]} ${accessMode} ${customLabel}`,
|
|
119
|
+
...LabelProps
|
|
120
|
+
})), children);
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
export default Radio;
|
|
@@ -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, { useCallback } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -38,9 +36,9 @@ export default function ResponsiveDropBox(props) {
|
|
|
38
36
|
}])
|
|
39
37
|
};
|
|
40
38
|
}, []);
|
|
41
|
-
return /*#__PURE__*/React.createElement(DropBox,
|
|
39
|
+
return /*#__PURE__*/React.createElement(DropBox, { ...props,
|
|
42
40
|
customClass: dropBoxClasses
|
|
43
|
-
}
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
44
42
|
query: responsiveFunc,
|
|
45
43
|
responsiveId: "Helmet"
|
|
46
44
|
}, _ref2 => {
|
package/es/v1/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';
|
|
@@ -919,7 +917,7 @@ export class SelectComponent extends Component {
|
|
|
919
917
|
shrink: true,
|
|
920
918
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
921
919
|
eleRef: this.suggestionContainerRef
|
|
922
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
920
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
923
921
|
activeId: selectedId,
|
|
924
922
|
suggestions: suggestions,
|
|
925
923
|
getRef: this.suggestionItemRef,
|
|
@@ -936,8 +934,9 @@ export class SelectComponent extends Component {
|
|
|
936
934
|
a11y: {
|
|
937
935
|
ariaParentRole: 'listbox',
|
|
938
936
|
role: 'option'
|
|
939
|
-
}
|
|
940
|
-
|
|
937
|
+
},
|
|
938
|
+
...SuggestionsProps
|
|
939
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
941
940
|
isLoading: isFetchingOptions,
|
|
942
941
|
options: options,
|
|
943
942
|
searchString: searchStr,
|
package/es/v1/Switch/Switch.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
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -45,7 +43,7 @@ const Switch = props => {
|
|
|
45
43
|
customLabel = ''
|
|
46
44
|
} = customClass;
|
|
47
45
|
size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
|
|
48
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
46
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
49
47
|
align: "vertical",
|
|
50
48
|
isCover: false,
|
|
51
49
|
alignBox: "row",
|
|
@@ -54,8 +52,9 @@ const Switch = props => {
|
|
|
54
52
|
"data-title": disabled ? disableTitle : title,
|
|
55
53
|
"aria-checked": checked,
|
|
56
54
|
role: "switch",
|
|
57
|
-
dataSelectorId: dataSelectorId
|
|
58
|
-
|
|
55
|
+
dataSelectorId: dataSelectorId,
|
|
56
|
+
...SwitchProps
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
59
58
|
className: `${style[size]} ${customSwitchSize}`
|
|
60
59
|
}, /*#__PURE__*/React.createElement("input", {
|
|
61
60
|
type: "checkbox",
|
|
@@ -73,15 +72,16 @@ const Switch = props => {
|
|
|
73
72
|
"data-test-id": dataId,
|
|
74
73
|
className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
|
|
75
74
|
tabIndex: isReadOnly || disabled ? '-1' : '0'
|
|
76
|
-
})), text && /*#__PURE__*/React.createElement(Label,
|
|
75
|
+
})), text && /*#__PURE__*/React.createElement(Label, {
|
|
77
76
|
text: text,
|
|
78
77
|
palette: labelPalette,
|
|
79
78
|
id: id,
|
|
80
79
|
size: labelSize,
|
|
81
80
|
type: "subtitle",
|
|
82
81
|
onClick: !disabled || !isReadOnly ? onChange : null,
|
|
83
|
-
customClass: customLabel
|
|
84
|
-
|
|
82
|
+
customClass: customLabel,
|
|
83
|
+
...LabelProps
|
|
84
|
+
}));
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
Switch.defaultProps = defaultProps;
|
package/es/v1/Tab/Tab.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
|
import React, { useMemo, useCallback } from 'react';
|
|
4
2
|
import { Tab_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { Tab_propTypes } from './props/propTypes';
|
|
@@ -67,7 +65,7 @@ export default function Tab(_ref) {
|
|
|
67
65
|
let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
|
|
68
66
|
let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
|
|
69
67
|
let tabClass = cs([styles.tab, align === 'vertical' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
|
|
70
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
68
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
71
69
|
tourId: tourId,
|
|
72
70
|
tagName: isLink ? 'a' : 'div',
|
|
73
71
|
className: tabClass,
|
|
@@ -85,8 +83,9 @@ export default function Tab(_ref) {
|
|
|
85
83
|
"aria-selected": isActive ? true : false,
|
|
86
84
|
tabIndex: isLink ? undefined : isActive && !isDisabled ? '0' : '0',
|
|
87
85
|
"aria-label": text ? text : null,
|
|
88
|
-
dataSelectorId: dataSelectorId
|
|
89
|
-
|
|
86
|
+
dataSelectorId: dataSelectorId,
|
|
87
|
+
...customProps
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
90
89
|
alignBox: "row",
|
|
91
90
|
align: "both",
|
|
92
91
|
className: styles.textContainer
|
|
@@ -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 { TabContentWrapper_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TabContentWrapper_propTypes } from './props/propTypes';
|
|
@@ -18,15 +16,16 @@ const TabContentWrapper = _ref => {
|
|
|
18
16
|
tagName,
|
|
19
17
|
a11y
|
|
20
18
|
} = _ref;
|
|
21
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
19
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
22
20
|
flexible: true,
|
|
23
21
|
style: style,
|
|
24
22
|
dataId: dataId,
|
|
25
23
|
className: className,
|
|
26
24
|
onScroll: onScroll,
|
|
27
25
|
dataSelectorId: dataSelectorId,
|
|
28
|
-
tagName: tagName
|
|
29
|
-
|
|
26
|
+
tagName: tagName,
|
|
27
|
+
...a11y
|
|
28
|
+
}, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
|
package/es/v1/Tab/TabWrapper.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
|
import React, { useState, useCallback } from 'react';
|
|
4
2
|
import { TabWrapper_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TabWrapper_propTypes } from './props/propTypes';
|
|
@@ -37,7 +35,7 @@ function TabWrapper(_ref) {
|
|
|
37
35
|
let TabsChild = child.type;
|
|
38
36
|
let selectedTab = hookToDisableInternalState ? defaultTab : selectedTabInternal;
|
|
39
37
|
return /*#__PURE__*/React.createElement(TabsChild // eslint-disable-next-line react/no-array-index-key
|
|
40
|
-
,
|
|
38
|
+
, { ...child.props,
|
|
41
39
|
selectedTab: selectedTab,
|
|
42
40
|
onSelect: setSelectedTab,
|
|
43
41
|
type: type,
|
|
@@ -48,7 +46,7 @@ function TabWrapper(_ref) {
|
|
|
48
46
|
needAppearance: needAppearance,
|
|
49
47
|
hookToDisableInternalState: hookToDisableInternalState,
|
|
50
48
|
align: align
|
|
51
|
-
})
|
|
49
|
+
});
|
|
52
50
|
}));
|
|
53
51
|
}
|
|
54
52
|
|