@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-193
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/README.md +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.js +8 -2
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.js +14 -3
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/Time.js +30 -13
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DateTime/props/defaultProps.js +4 -2
- package/es/DateTime/props/propTypes.js +6 -3
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +80 -98
- package/es/ListItem/ListItemWithAvatar.js +5 -4
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/defaultProps.js +4 -2
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.js +13 -2
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.js +19 -3
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/Time.js +35 -13
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DateTime/props/defaultProps.js +4 -2
- package/lib/DateTime/props/propTypes.js +6 -3
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +80 -98
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/props/defaultProps.js +4 -2
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/Select.module.css +33 -22
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { propTypes } from './props/propTypes';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -64,7 +66,7 @@ const CheckBox = props => {
|
|
|
64
66
|
role = 'checkbox',
|
|
65
67
|
ariaChecked = checked
|
|
66
68
|
} = a11y;
|
|
67
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
69
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
68
70
|
dataId: dataId,
|
|
69
71
|
isCover: false,
|
|
70
72
|
isInline: text ? false : true,
|
|
@@ -81,9 +83,8 @@ const CheckBox = props => {
|
|
|
81
83
|
"aria-label": ariaLabel,
|
|
82
84
|
"aria-labelledby": ariaLabelledby,
|
|
83
85
|
"aria-hidden": ariaHidden,
|
|
84
|
-
"data-selector-id": dataSelectorId || id
|
|
85
|
-
|
|
86
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
86
|
+
"data-selector-id": dataSelectorId || id
|
|
87
|
+
}, CheckBoxProps), /*#__PURE__*/React.createElement(Box, {
|
|
87
88
|
className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''}`
|
|
88
89
|
}, /*#__PURE__*/React.createElement("input", {
|
|
89
90
|
type: "hidden",
|
|
@@ -135,7 +136,7 @@ const CheckBox = props => {
|
|
|
135
136
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
136
137
|
flexible: true,
|
|
137
138
|
className: style.text
|
|
138
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
139
140
|
text: text,
|
|
140
141
|
palette: disabled ? 'disable' : labelPalette,
|
|
141
142
|
id: id,
|
|
@@ -146,9 +147,8 @@ const CheckBox = props => {
|
|
|
146
147
|
customClass: `${active && !disabled ? `${style[`active${palette}Label`]}` : ''}
|
|
147
148
|
${checked && active ? `${style[`checked${palette}Label`]}` : ''}
|
|
148
149
|
${accessMode} ${customLabel}`,
|
|
149
|
-
title: toolTip ? toolTip : text
|
|
150
|
-
|
|
151
|
-
})));
|
|
150
|
+
title: toolTip ? toolTip : text
|
|
151
|
+
}, LabelProps))));
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
export default CheckBox;
|
package/es/v1/DropBox/DropBox.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React, { useRef, useContext } from 'react';
|
|
2
4
|
import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
|
|
3
5
|
import Modal from '../Modal/Modal';
|
|
@@ -39,28 +41,27 @@ export default function DropBox(props) {
|
|
|
39
41
|
const {
|
|
40
42
|
zIndexStyle
|
|
41
43
|
} = cssJSLogic(props);
|
|
42
|
-
const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
|
|
44
|
+
const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, _extends({
|
|
43
45
|
onClose: onClose,
|
|
44
46
|
elementRef: dropBoxRef,
|
|
45
47
|
needAutoFocus: needAutoFocus,
|
|
46
48
|
needRestoreFocus: needRestoreFocus,
|
|
47
49
|
needListNavigation: needListNavigation,
|
|
48
50
|
needFocusLoop: needFocusLoop,
|
|
49
|
-
needEnterAction: needEnterAction
|
|
50
|
-
|
|
51
|
-
}, /*#__PURE__*/React.createElement(DropBoxElement, {
|
|
51
|
+
needEnterAction: needEnterAction
|
|
52
|
+
}, focusScopeProps), /*#__PURE__*/React.createElement(DropBoxElement, _extends({
|
|
52
53
|
isModel: isModel,
|
|
53
|
-
direction: direction
|
|
54
|
-
|
|
54
|
+
direction: direction
|
|
55
|
+
}, props, {
|
|
55
56
|
zIndexStyle: zIndexStyle,
|
|
56
57
|
subContainerRef: dropBoxRef
|
|
57
|
-
})) : /*#__PURE__*/React.createElement(DropBoxElement, {
|
|
58
|
+
}))) : /*#__PURE__*/React.createElement(DropBoxElement, _extends({
|
|
58
59
|
isModel: isModel,
|
|
59
60
|
subContainerRef: dropBoxRef,
|
|
60
|
-
direction: direction
|
|
61
|
-
|
|
61
|
+
direction: direction
|
|
62
|
+
}, props, {
|
|
62
63
|
zIndexStyle: zIndexStyle
|
|
63
|
-
});
|
|
64
|
+
}));
|
|
64
65
|
return isModel && isActive ? /*#__PURE__*/React.createElement(Modal, {
|
|
65
66
|
portalId: portalId
|
|
66
67
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7,8 +7,7 @@ export default function DropDown(props) {
|
|
|
7
7
|
let {
|
|
8
8
|
children
|
|
9
9
|
} = props;
|
|
10
|
-
return /*#__PURE__*/React.createElement(PopOver,
|
|
11
|
-
}, /*#__PURE__*/React.createElement(PopOverTarget, null, children[0]), /*#__PURE__*/React.createElement(PopOverContainer, null, children[1]));
|
|
10
|
+
return /*#__PURE__*/React.createElement(PopOver, props, /*#__PURE__*/React.createElement(PopOverTarget, null, children[0]), /*#__PURE__*/React.createElement(PopOverContainer, null, children[1]));
|
|
12
11
|
}
|
|
13
12
|
DropDown.propTypes = DropDown_propTypes;
|
|
14
13
|
export function DropDownTarget(props) {
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { useCallback } from 'react';
|
|
3
5
|
import { Container } from '../Layout';
|
|
@@ -71,7 +73,7 @@ const ListContainer = props => {
|
|
|
71
73
|
options.tabindex = '0';
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
76
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
75
77
|
role: role,
|
|
76
78
|
"data-a11y-inset-focus": insetFocus,
|
|
77
79
|
"aria-selected": ariaSelected,
|
|
@@ -87,11 +89,8 @@ const ListContainer = props => {
|
|
|
87
89
|
onMouseOver: onMouseOver,
|
|
88
90
|
eleRef: eleRef,
|
|
89
91
|
tagName: isLink ? 'a' : 'li',
|
|
90
|
-
"data-title": isDisabled ? disableTitle : title
|
|
91
|
-
|
|
92
|
-
...customProps,
|
|
93
|
-
...a11yAttributes
|
|
94
|
-
}, children);
|
|
92
|
+
"data-title": isDisabled ? disableTitle : title
|
|
93
|
+
}, options, customProps, a11yAttributes), children);
|
|
95
94
|
};
|
|
96
95
|
|
|
97
96
|
ListContainer.defaultProps = ListContainerDefaultProps;
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -71,7 +73,7 @@ const ListItem = props => {
|
|
|
71
73
|
} = listA11y;
|
|
72
74
|
let tickIconPalette = style[`${palette}Tick`] ? style[`${palette}Tick`] : '';
|
|
73
75
|
let dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
74
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
76
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
75
77
|
a11y: listA11y,
|
|
76
78
|
size: size,
|
|
77
79
|
palette: palette,
|
|
@@ -92,9 +94,8 @@ const ListItem = props => {
|
|
|
92
94
|
onClick: handleClick,
|
|
93
95
|
onMouseEnter: handleMouseEnter,
|
|
94
96
|
eleRef: handleRef,
|
|
95
|
-
customProps: ListItemProps
|
|
96
|
-
|
|
97
|
-
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
97
|
+
customProps: ListItemProps
|
|
98
|
+
}, ContainerProps), value ? /*#__PURE__*/React.createElement(Box, {
|
|
98
99
|
shrink: true,
|
|
99
100
|
adjust: true,
|
|
100
101
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { memo } from 'react';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -76,7 +78,7 @@ const ListItemWithAvatar = props => {
|
|
|
76
78
|
} = listA11y;
|
|
77
79
|
let isDarkPalette = palette === 'dark';
|
|
78
80
|
let dataIdString = value ? value : dataId;
|
|
79
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
81
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
80
82
|
a11y: listA11y,
|
|
81
83
|
size: size,
|
|
82
84
|
palette: palette,
|
|
@@ -94,9 +96,8 @@ const ListItemWithAvatar = props => {
|
|
|
94
96
|
eleRef: handleRef,
|
|
95
97
|
disableTitle: disableTitle,
|
|
96
98
|
title: null,
|
|
97
|
-
customProps: ListItemProps
|
|
98
|
-
|
|
99
|
-
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
99
|
+
customProps: ListItemProps
|
|
100
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
100
101
|
className: style.leftAvatar
|
|
101
102
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
102
103
|
name: name,
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import ListContainer from './ListContainer';
|
|
3
5
|
import { ListItemWithCheckBoxDefaultProps } from './props/defaultProps';
|
|
@@ -56,7 +58,7 @@ const ListItemWithCheckBox = props => {
|
|
|
56
58
|
customCheckBox = '',
|
|
57
59
|
customLabel = ''
|
|
58
60
|
} = customClass;
|
|
59
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
61
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
60
62
|
a11y: listA11y,
|
|
61
63
|
size: size,
|
|
62
64
|
palette: palette,
|
|
@@ -72,9 +74,8 @@ const ListItemWithCheckBox = props => {
|
|
|
72
74
|
eleRef: handleRef,
|
|
73
75
|
disableTitle: disableTitle,
|
|
74
76
|
title: null,
|
|
75
|
-
customProps: ListItemProps
|
|
76
|
-
|
|
77
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
77
|
+
customProps: ListItemProps
|
|
78
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
78
79
|
className: style.iconBox
|
|
79
80
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
80
81
|
checked: checked,
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -66,7 +68,7 @@ const ListItemWithIcon = props => {
|
|
|
66
68
|
ariaHidden
|
|
67
69
|
} = listA11y;
|
|
68
70
|
let dataIdString = dataId ? `${dataId.replace("'", '_')}` : value.toLowerCase().replace("'", '_');
|
|
69
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
71
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
70
72
|
a11y: listA11y,
|
|
71
73
|
size: size,
|
|
72
74
|
palette: palette,
|
|
@@ -87,9 +89,8 @@ const ListItemWithIcon = props => {
|
|
|
87
89
|
eleRef: handleRef,
|
|
88
90
|
disableTitle: disableTitle,
|
|
89
91
|
title: null,
|
|
90
|
-
customProps: ListItemProps
|
|
91
|
-
|
|
92
|
-
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
92
|
+
customProps: ListItemProps
|
|
93
|
+
}, ContainerProps), iconName && /*#__PURE__*/React.createElement(Box, {
|
|
93
94
|
"aria-hidden": true,
|
|
94
95
|
className: style.iconBox,
|
|
95
96
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import Radio from '../Radio/Radio';
|
|
3
5
|
import { Box } from '../Layout';
|
|
@@ -56,7 +58,7 @@ const ListItemWithRadio = props => {
|
|
|
56
58
|
customRadio = '',
|
|
57
59
|
customRadioWrap = ''
|
|
58
60
|
} = customClass;
|
|
59
|
-
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
61
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
60
62
|
a11y: listA11y,
|
|
61
63
|
size: size,
|
|
62
64
|
palette: palette,
|
|
@@ -72,9 +74,8 @@ const ListItemWithRadio = props => {
|
|
|
72
74
|
eleRef: handleRef,
|
|
73
75
|
disableTitle: disableTitle,
|
|
74
76
|
title: null,
|
|
75
|
-
customProps: ListItemProps
|
|
76
|
-
|
|
77
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
77
|
+
customProps: ListItemProps
|
|
78
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
78
79
|
className: style.iconBox
|
|
79
80
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
80
81
|
checked: checked,
|
package/es/v1/Modal/Modal.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
2
4
|
import ReactDOM from 'react-dom';
|
|
3
5
|
import useEffectCallOnlyAfterState from '@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState';
|
|
@@ -110,10 +112,9 @@ export default function Modal(props) {
|
|
|
110
112
|
|
|
111
113
|
if (isMounted) {
|
|
112
114
|
if (Element) {
|
|
113
|
-
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, {
|
|
114
|
-
ref: setRef
|
|
115
|
-
|
|
116
|
-
}), portalDiv.current);
|
|
115
|
+
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, _extends({
|
|
116
|
+
ref: setRef
|
|
117
|
+
}, elementProps)), portalDiv.current);
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
return null;
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { AdvancedMultiSelect_propTypes } from './props/propTypes';
|
|
@@ -486,7 +488,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
486
488
|
let {
|
|
487
489
|
tabletMode
|
|
488
490
|
} = _ref2;
|
|
489
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
491
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
|
|
490
492
|
animationStyle: animationStyle,
|
|
491
493
|
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
492
494
|
getRef: getContainerRef,
|
|
@@ -500,11 +502,11 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
500
502
|
a11y: {
|
|
501
503
|
role: 'listbox',
|
|
502
504
|
ariaMultiselectable: true
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
+
}
|
|
506
|
+
}, DropBoxProps, {
|
|
505
507
|
alignBox: "row",
|
|
506
508
|
isResponsivePadding: getFooter ? false : true
|
|
507
|
-
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
509
|
+
}), isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
508
510
|
align: "both",
|
|
509
511
|
className: style.loader
|
|
510
512
|
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(Box, {
|
|
@@ -521,7 +523,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
521
523
|
shrink: true,
|
|
522
524
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
523
525
|
eleRef: this.suggestionContainerRef
|
|
524
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
526
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
525
527
|
suggestions: suggestions,
|
|
526
528
|
selectedOptions: allselectedOptionIds,
|
|
527
529
|
getRef: this.suggestionItemRef,
|
|
@@ -532,9 +534,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
532
534
|
listItemSize: listItemSize,
|
|
533
535
|
a11y: {
|
|
534
536
|
role: 'option'
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
537
|
+
}
|
|
538
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
538
539
|
isLoading: isFetchingOptions,
|
|
539
540
|
options: options,
|
|
540
541
|
searchString: searchStr,
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { MultiSelectWithAvatar_propTypes } from './props/propTypes';
|
|
@@ -158,7 +160,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
158
160
|
shrink: true,
|
|
159
161
|
customClass: !isModel && dropBoxSize ? style[dropBoxSize] : '',
|
|
160
162
|
eleRef: this.suggestionContainerRef
|
|
161
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
163
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
162
164
|
needTick: keepSelectedOptions,
|
|
163
165
|
suggestions: suggestions,
|
|
164
166
|
getRef: this.suggestionItemRef,
|
|
@@ -171,9 +173,8 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
171
173
|
selectedOptions: selectedOptionIds,
|
|
172
174
|
a11y: {
|
|
173
175
|
role: 'option'
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
176
|
+
}
|
|
177
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
177
178
|
isLoading: isFetchingOptions,
|
|
178
179
|
options: options,
|
|
179
180
|
searchString: searchStr,
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { SelectedOptions_propTypes } from './props/propTypes';
|
|
@@ -50,28 +52,28 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
50
52
|
return /*#__PURE__*/React.createElement(Box, {
|
|
51
53
|
className: `${style.tag} ${style[size]}`,
|
|
52
54
|
key: `${id}photoTag`
|
|
53
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
|
|
54
56
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
55
57
|
hasAvatar: true,
|
|
56
58
|
imageURL: photoURL
|
|
57
|
-
}));
|
|
59
|
+
})));
|
|
58
60
|
} else if (optionType === 'icon') {
|
|
59
61
|
return /*#__PURE__*/React.createElement(Box, {
|
|
60
62
|
className: `${style.tag} ${style[size]}`,
|
|
61
63
|
key: `${id}iconTag`
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
|
|
63
65
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
64
66
|
iconName: icon,
|
|
65
67
|
iconSize: iconSize
|
|
66
|
-
}));
|
|
68
|
+
})));
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
return /*#__PURE__*/React.createElement(Box, {
|
|
70
72
|
className: `${style.tag} ${style[size]}`,
|
|
71
73
|
key: `${id}tag`
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
|
|
73
75
|
active: highLightedSelectOptions.indexOf(id) >= 0
|
|
74
|
-
}));
|
|
76
|
+
})));
|
|
75
77
|
}));
|
|
76
78
|
}
|
|
77
79
|
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Suggestions_propTypes } from './props/propTypes';
|
|
@@ -74,7 +76,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
if (optionType === 'avatar') {
|
|
77
|
-
return /*#__PURE__*/React.createElement(ListItemWithAvatar, {
|
|
79
|
+
return /*#__PURE__*/React.createElement(ListItemWithAvatar, _extends({}, commonProps, {
|
|
78
80
|
autoHover: false,
|
|
79
81
|
getRef: getRef,
|
|
80
82
|
highlight: isHighlight,
|
|
@@ -93,9 +95,9 @@ export default class Suggestions extends React.PureComponent {
|
|
|
93
95
|
avatarPalette: avatarPalette,
|
|
94
96
|
palette: palette,
|
|
95
97
|
a11y: list_a11y
|
|
96
|
-
});
|
|
98
|
+
}));
|
|
97
99
|
} else if (optionType === 'icon') {
|
|
98
|
-
return /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
100
|
+
return /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({}, commonProps, {
|
|
99
101
|
autoHover: false,
|
|
100
102
|
getRef: getRef,
|
|
101
103
|
highlight: isHighlight,
|
|
@@ -113,10 +115,10 @@ export default class Suggestions extends React.PureComponent {
|
|
|
113
115
|
size: listItemSize,
|
|
114
116
|
palette: palette,
|
|
115
117
|
a11y: list_a11y
|
|
116
|
-
});
|
|
118
|
+
}));
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
return /*#__PURE__*/React.createElement(ListItem, {
|
|
121
|
+
return /*#__PURE__*/React.createElement(ListItem, _extends({}, commonProps, {
|
|
120
122
|
autoHover: false,
|
|
121
123
|
getRef: getRef,
|
|
122
124
|
highlight: isHighlight,
|
|
@@ -132,7 +134,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
132
134
|
size: listItemSize,
|
|
133
135
|
palette: palette,
|
|
134
136
|
a11y: list_a11y
|
|
135
|
-
});
|
|
137
|
+
}));
|
|
136
138
|
})));
|
|
137
139
|
}
|
|
138
140
|
|
|
@@ -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,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
@@ -621,15 +623,14 @@ const Popup = function (Component) {
|
|
|
621
623
|
isPopupOpen
|
|
622
624
|
} = this.state;
|
|
623
625
|
const localState = isPopupReady ? this.state : {};
|
|
624
|
-
return /*#__PURE__*/React.createElement(Component, {
|
|
625
|
-
...this.state,
|
|
626
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, this.props, this.state, {
|
|
626
627
|
openPopupOnly: this.openPopupOnly,
|
|
627
628
|
closePopupOnly: this.closePopupOnly,
|
|
628
629
|
togglePopup: this.togglePopup,
|
|
629
630
|
removeClose: this.removeClose,
|
|
630
631
|
getTargetRef: this.getTargetRef,
|
|
631
632
|
getContainerRef: this.getContainerRef
|
|
632
|
-
});
|
|
633
|
+
}));
|
|
633
634
|
}
|
|
634
635
|
|
|
635
636
|
}
|
package/es/v1/Radio/Radio.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -61,7 +63,7 @@ const Radio = props => {
|
|
|
61
63
|
getRef && getRef(ele, value);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
66
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
65
67
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
66
68
|
isCover: false,
|
|
67
69
|
isInline: text ? false : true,
|
|
@@ -77,9 +79,8 @@ const Radio = props => {
|
|
|
77
79
|
"aria-Hidden": ariaHidden,
|
|
78
80
|
"aria-label": ariaLabel,
|
|
79
81
|
"aria-labelledby": ariaLabelledby,
|
|
80
|
-
"aria-readonly": ariaReadonly
|
|
81
|
-
|
|
82
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
82
|
+
"aria-readonly": ariaReadonly
|
|
83
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
83
84
|
className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
|
|
84
85
|
${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
|
|
85
86
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -105,7 +106,7 @@ const Radio = props => {
|
|
|
105
106
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
106
107
|
flexible: true,
|
|
107
108
|
className: style.text
|
|
108
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
109
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
109
110
|
text: text,
|
|
110
111
|
palette: labelPalette,
|
|
111
112
|
size: labelSize,
|
|
@@ -115,9 +116,8 @@ const Radio = props => {
|
|
|
115
116
|
variant: variant,
|
|
116
117
|
title: toolTip ? toolTip : text,
|
|
117
118
|
customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
|
|
118
|
-
${style[`${palette}Label`]} ${accessMode} ${customLabel}
|
|
119
|
-
|
|
120
|
-
})), children);
|
|
119
|
+
${style[`${palette}Label`]} ${accessMode} ${customLabel}`
|
|
120
|
+
}, LabelProps))), children);
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
export default Radio;
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React, { useCallback } from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -36,9 +38,9 @@ export default function ResponsiveDropBox(props) {
|
|
|
36
38
|
}])
|
|
37
39
|
};
|
|
38
40
|
}, []);
|
|
39
|
-
return /*#__PURE__*/React.createElement(DropBox, {
|
|
41
|
+
return /*#__PURE__*/React.createElement(DropBox, _extends({}, props, {
|
|
40
42
|
customClass: dropBoxClasses
|
|
41
|
-
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
43
|
+
}), /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
42
44
|
query: responsiveFunc,
|
|
43
45
|
responsiveId: "Helmet"
|
|
44
46
|
}, _ref2 => {
|
package/es/v1/Select/Select.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { Component } from 'react';
|
|
3
5
|
import { Select_defaultProps } from './props/defaultProps';
|
|
@@ -917,7 +919,7 @@ export class SelectComponent extends Component {
|
|
|
917
919
|
shrink: true,
|
|
918
920
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
919
921
|
eleRef: this.suggestionContainerRef
|
|
920
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
922
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
921
923
|
activeId: selectedId,
|
|
922
924
|
suggestions: suggestions,
|
|
923
925
|
getRef: this.suggestionItemRef,
|
|
@@ -934,9 +936,8 @@ export class SelectComponent extends Component {
|
|
|
934
936
|
a11y: {
|
|
935
937
|
ariaParentRole: 'listbox',
|
|
936
938
|
role: 'option'
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
939
|
+
}
|
|
940
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
940
941
|
isLoading: isFetchingOptions,
|
|
941
942
|
options: options,
|
|
942
943
|
searchString: searchStr,
|
package/es/v1/Switch/Switch.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -43,7 +45,7 @@ const Switch = props => {
|
|
|
43
45
|
customLabel = ''
|
|
44
46
|
} = customClass;
|
|
45
47
|
size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
|
|
46
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
48
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
47
49
|
align: "vertical",
|
|
48
50
|
isCover: false,
|
|
49
51
|
alignBox: "row",
|
|
@@ -52,9 +54,8 @@ const Switch = props => {
|
|
|
52
54
|
"data-title": disabled ? disableTitle : title,
|
|
53
55
|
"aria-checked": checked,
|
|
54
56
|
role: "switch",
|
|
55
|
-
dataSelectorId: dataSelectorId
|
|
56
|
-
|
|
57
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
dataSelectorId: dataSelectorId
|
|
58
|
+
}, SwitchProps), /*#__PURE__*/React.createElement(Box, {
|
|
58
59
|
className: `${style[size]} ${customSwitchSize}`
|
|
59
60
|
}, /*#__PURE__*/React.createElement("input", {
|
|
60
61
|
type: "checkbox",
|
|
@@ -72,16 +73,15 @@ const Switch = props => {
|
|
|
72
73
|
"data-test-id": dataId,
|
|
73
74
|
className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
|
|
74
75
|
tabIndex: isReadOnly || disabled ? '-1' : '0'
|
|
75
|
-
})), text && /*#__PURE__*/React.createElement(Label, {
|
|
76
|
+
})), text && /*#__PURE__*/React.createElement(Label, _extends({
|
|
76
77
|
text: text,
|
|
77
78
|
palette: labelPalette,
|
|
78
79
|
id: id,
|
|
79
80
|
size: labelSize,
|
|
80
81
|
type: "subtitle",
|
|
81
82
|
onClick: !disabled || !isReadOnly ? onChange : null,
|
|
82
|
-
customClass: customLabel
|
|
83
|
-
|
|
84
|
-
}));
|
|
83
|
+
customClass: customLabel
|
|
84
|
+
}, LabelProps)));
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
Switch.defaultProps = defaultProps;
|