@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
package/README.md
CHANGED
|
@@ -32,6 +32,10 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.2.30
|
|
36
|
+
|
|
37
|
+
- **MultiSelect** - needResponsive default Prop Setted as true as before.
|
|
38
|
+
|
|
35
39
|
# 1.2.29
|
|
36
40
|
|
|
37
41
|
- Common providers update for v1 components
|
|
@@ -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';
|
|
@@ -108,23 +106,26 @@ export default class AppContainer extends React.Component {
|
|
|
108
106
|
TooltipProps = {},
|
|
109
107
|
ExtraProps = {}
|
|
110
108
|
} = customProps;
|
|
111
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container,
|
|
109
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
|
|
112
110
|
className: `${style.container} ${className}`,
|
|
113
111
|
dataId: dataId,
|
|
114
112
|
dataSelectorId: dataSelectorId,
|
|
115
113
|
tagName: tagName,
|
|
116
|
-
eleRef: this.getContainerRef
|
|
117
|
-
|
|
114
|
+
eleRef: this.getContainerRef,
|
|
115
|
+
...ContainerProps,
|
|
116
|
+
...ExtraProps
|
|
117
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
118
118
|
flexible: true
|
|
119
|
-
}, children)), needTooltip ? /*#__PURE__*/React.createElement("div",
|
|
119
|
+
}, children)), needTooltip ? /*#__PURE__*/React.createElement("div", { ...ExtraProps,
|
|
120
120
|
className: `${style.container} ${style.tooltip} ${tooltipParentClass}`,
|
|
121
121
|
"data-id": `${dataId}_tooltip`,
|
|
122
122
|
"data-test-id": `${dataId}_tooltip`,
|
|
123
123
|
"data-selector-id": `${dataSelectorId}_tooltip`
|
|
124
|
-
}
|
|
124
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
125
125
|
ref: this.setTooltipRef,
|
|
126
|
-
customClass: tooltipClass
|
|
127
|
-
|
|
126
|
+
customClass: tooltipClass,
|
|
127
|
+
...TooltipProps
|
|
128
|
+
})) : null);
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
}
|
package/es/Avatar/Avatar.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';
|
|
@@ -156,15 +154,16 @@ export default class Avatar extends React.Component {
|
|
|
156
154
|
let showDefaultBorder = src && !isInvalidImageList && needDefaultBorder;
|
|
157
155
|
let borderStyle = (showDefaultBorder || !src || !showAvatar || showInitial) && needBorder ? `${style.border} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ` : '';
|
|
158
156
|
borderStyle = showAlternateAvatar ? '' : borderStyle;
|
|
159
|
-
return /*#__PURE__*/React.createElement("div",
|
|
157
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
160
158
|
className: `${style.avatar} ${style[size]} ${AvatarSize(size)} ${style[shapeStyle]} ${style[palette]} ${textStyle} ${borderStyle} ${customClass ? customClass : ''}`,
|
|
161
159
|
"data-title": needTitle ? title ? title : name : null,
|
|
162
160
|
"data-id": dataId,
|
|
163
161
|
"data-test-id": dataId,
|
|
164
162
|
onClick: onClick,
|
|
165
163
|
"data-selector-id": dataSelectorId,
|
|
166
|
-
tabIndex: onClick ? 0 : null
|
|
167
|
-
|
|
164
|
+
tabIndex: onClick ? 0 : null,
|
|
165
|
+
...AvatarProps
|
|
166
|
+
}, showInitial && !showAlternateAvatar && /*#__PURE__*/React.createElement("span", {
|
|
168
167
|
className: `${style.initial}`,
|
|
169
168
|
"data-id": `${dataId}_AvatarInitial`,
|
|
170
169
|
"data-test-id": `${dataId}_AvatarInitial`,
|
|
@@ -18,31 +18,19 @@
|
|
|
18
18
|
composes: dInflex alignVertical alignHorizontal from '../common/common.module.css';
|
|
19
19
|
vertical-align: middle;
|
|
20
20
|
font-size: var(--avatar_font_size);
|
|
21
|
-
/* css:theme-validation:ignore */
|
|
22
21
|
color: var(--avatar_text_color);
|
|
23
22
|
border-width: var(--avatar_border_width);
|
|
24
23
|
border-style: var(--avatar_border_style);
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
.border {
|
|
28
|
-
/* css:theme-validation:ignore */
|
|
29
27
|
border-color: var(--avatar_border_color);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
.borderOnHover:hover,
|
|
33
|
-
.borderOnActive {
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
.borderOnHover:hover, .borderOnActive {
|
|
38
31
|
border-color: var(--avatar_border_hoverColor);
|
|
39
32
|
}
|
|
40
33
|
|
|
41
|
-
.avatar,
|
|
42
|
-
.primary {
|
|
43
|
-
/* css:theme-validation:ignore */
|
|
44
|
-
}
|
|
45
|
-
|
|
46
34
|
.avatar, .primary {
|
|
47
35
|
background-color: var(--avatar_bg_color);
|
|
48
36
|
}
|
|
@@ -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';
|
|
@@ -47,12 +45,13 @@ export default class AvatarTeam extends React.Component {
|
|
|
47
45
|
customAvatarTeam = ''
|
|
48
46
|
} = customClass;
|
|
49
47
|
let border = borderOnHover || onClick;
|
|
50
|
-
return /*#__PURE__*/React.createElement("span",
|
|
48
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
51
49
|
className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} `,
|
|
52
50
|
"data-id": dataId,
|
|
53
51
|
"data-test-id": dataId,
|
|
54
|
-
"data-selector-id": dataSelectorId
|
|
55
|
-
|
|
52
|
+
"data-selector-id": dataSelectorId,
|
|
53
|
+
...AvatarTeamProps
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
56
55
|
name: name,
|
|
57
56
|
onClick: onClick,
|
|
58
57
|
palette: palette,
|
|
@@ -66,8 +65,9 @@ export default class AvatarTeam extends React.Component {
|
|
|
66
65
|
borderOnHover: border,
|
|
67
66
|
needInnerBorder: needInnerBorder,
|
|
68
67
|
needBorder: needBorder,
|
|
69
|
-
needDefaultBorder: needDefaultBorder
|
|
70
|
-
|
|
68
|
+
needDefaultBorder: needDefaultBorder,
|
|
69
|
+
...AvatarProps
|
|
70
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
71
71
|
className: `${style.team} ${isFilled ? `${style[`${palette}Filled`]}` : style.nofill}
|
|
72
72
|
${style[`${size}team`]} ${customAvatarTeam}`
|
|
73
73
|
}));
|
|
@@ -25,13 +25,10 @@
|
|
|
25
25
|
composes: varClass;
|
|
26
26
|
composes: posab from '../common/common.module.css';
|
|
27
27
|
top: var(--avatarteam_top_top);
|
|
28
|
-
/* css:theme-validation:ignore */
|
|
29
|
-
/* css:theme-validation:ignore */
|
|
30
28
|
width: var(--avatarteam_width);
|
|
31
29
|
height: var(--avatarteam_height);
|
|
32
30
|
outline-width: var(--avatarteam_outline_width);
|
|
33
31
|
outline-style: var(--avatarteam_outline_style);
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
32
|
outline-color: var(--avatarteam_outline_color);
|
|
36
33
|
border-width: var(--avatarteam_border_width);
|
|
37
34
|
border-style: var(--avatarteam_border_style);
|
|
@@ -76,7 +73,6 @@
|
|
|
76
73
|
top: var(--avatarteam_bottom_top);
|
|
77
74
|
outline-width: var(--avatarteam_outline_width);
|
|
78
75
|
outline-style: var(--avatarteam_outline_style);
|
|
79
|
-
/* css:theme-validation:ignore */
|
|
80
76
|
outline-color: var( --avatarteam_outline_color);
|
|
81
77
|
}
|
|
82
78
|
.team:after, .team:before {
|
package/es/Button/Button.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';
|
|
@@ -41,7 +39,7 @@ export default function Button(props) {
|
|
|
41
39
|
style: finalStyle
|
|
42
40
|
});
|
|
43
41
|
let statusLower = status.toLowerCase();
|
|
44
|
-
return /*#__PURE__*/React.createElement("button",
|
|
42
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
45
43
|
className: buttonClass,
|
|
46
44
|
"data-id": disabled ? `${dataId}_disabled` : dataId,
|
|
47
45
|
"data-test-id": disabled ? `${dataId}_disabled` : dataId,
|
|
@@ -50,10 +48,11 @@ export default function Button(props) {
|
|
|
50
48
|
"data-title": title,
|
|
51
49
|
type: "button",
|
|
52
50
|
ref: getRef,
|
|
53
|
-
"data-selector-id": dataSelectorId
|
|
54
|
-
|
|
51
|
+
"data-selector-id": dataSelectorId,
|
|
52
|
+
...customProps,
|
|
53
|
+
...a11y,
|
|
55
54
|
id: id
|
|
56
|
-
}
|
|
55
|
+
}, children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
|
|
57
56
|
className: finalStyle.overlay
|
|
58
57
|
}, /*#__PURE__*/React.createElement("div", {
|
|
59
58
|
className: loaderParentClass
|
|
@@ -48,13 +48,10 @@
|
|
|
48
48
|
composes: dotted from '../../common/common.module.css';
|
|
49
49
|
position: relative;
|
|
50
50
|
font-size: var(--button_font_size);
|
|
51
|
-
/* css:theme-validation:ignore */
|
|
52
51
|
color: var(--button_text_color);
|
|
53
52
|
font-family: var(--button_font_family);
|
|
54
53
|
text-transform: var(--button_text_transform);
|
|
55
|
-
/* css:theme-validation:ignore */
|
|
56
54
|
min-width: var(--button_min_width);
|
|
57
|
-
/* css:theme-validation:ignore */
|
|
58
55
|
height: var(--button_height);
|
|
59
56
|
background-color: var(--button_bg_color);
|
|
60
57
|
border-radius: var(--button_border_radius);
|
|
@@ -298,7 +295,6 @@
|
|
|
298
295
|
.loadingelement:after {
|
|
299
296
|
content: '';
|
|
300
297
|
position: absolute;
|
|
301
|
-
/* css:theme-validation:ignore */
|
|
302
298
|
}
|
|
303
299
|
|
|
304
300
|
.loadingelement:before, .loadingelement:after {
|
|
@@ -472,7 +468,6 @@
|
|
|
472
468
|
transform-origin: center;
|
|
473
469
|
border-width: 2px 2px 0 0;
|
|
474
470
|
border-style: solid;
|
|
475
|
-
/* css:theme-validation:ignore */
|
|
476
471
|
border-color: var(--button_success_border_color);
|
|
477
472
|
animation: tick var(--zd_no_transition3) ease 0s forwards;
|
|
478
473
|
}
|
|
@@ -529,6 +524,5 @@
|
|
|
529
524
|
}
|
|
530
525
|
|
|
531
526
|
.loader{
|
|
532
|
-
/* css:theme-validation:ignore */
|
|
533
527
|
color:var(--dot_mirror)
|
|
534
528
|
}
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
.buttonGroup {
|
|
12
12
|
composes: varClass;
|
|
13
13
|
composes: cboth from '../common/common.module.css';
|
|
14
|
-
/* css:theme-validation:ignore */
|
|
15
|
-
/* css:theme-validation:ignore */
|
|
16
14
|
background-color: var(--buttongroup_bg_color);
|
|
17
15
|
box-shadow: var(--buttongroup_box_shadow);
|
|
18
16
|
padding: var(--buttongroup_padding);
|
package/es/CheckBox/CheckBox.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 { propTypes } from './props/propTypes';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -75,7 +73,7 @@ export default class CheckBox extends React.Component {
|
|
|
75
73
|
role = 'checkbox',
|
|
76
74
|
ariaChecked = checked
|
|
77
75
|
} = a11y;
|
|
78
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
76
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
79
77
|
dataId: dataId,
|
|
80
78
|
isCover: false,
|
|
81
79
|
isInline: text ? false : true,
|
|
@@ -92,8 +90,9 @@ export default class CheckBox extends React.Component {
|
|
|
92
90
|
"aria-label": ariaLabel,
|
|
93
91
|
"aria-labelledby": ariaLabelledby,
|
|
94
92
|
"aria-hidden": ariaHidden,
|
|
95
|
-
"data-selector-id": dataSelectorId || id
|
|
96
|
-
|
|
93
|
+
"data-selector-id": dataSelectorId || id,
|
|
94
|
+
...CheckBoxProps
|
|
95
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
97
96
|
className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''}`
|
|
98
97
|
}, /*#__PURE__*/React.createElement("input", {
|
|
99
98
|
type: "hidden",
|
|
@@ -145,7 +144,7 @@ export default class CheckBox extends React.Component {
|
|
|
145
144
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
146
145
|
flexible: true,
|
|
147
146
|
className: style.text
|
|
148
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
147
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
149
148
|
text: text,
|
|
150
149
|
palette: disabled ? 'disable' : labelPalette,
|
|
151
150
|
id: id,
|
|
@@ -156,8 +155,9 @@ export default class CheckBox extends React.Component {
|
|
|
156
155
|
customClass: `${active && !disabled ? `${style[`active${palette}Label`]}` : ''}
|
|
157
156
|
${checked && active ? `${style[`checked${palette}Label`]}` : ''}
|
|
158
157
|
${accessMode} ${customLabel}`,
|
|
159
|
-
title: toolTip ? toolTip : text
|
|
160
|
-
|
|
158
|
+
title: toolTip ? toolTip : text,
|
|
159
|
+
...LabelProps
|
|
160
|
+
})));
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
}
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
}
|
|
35
35
|
.boxContainer {
|
|
36
36
|
composes: offSelection from '../common/common.module.css';
|
|
37
|
-
/* css:theme-validation:ignore */
|
|
38
37
|
border-radius: 2px;
|
|
39
38
|
background-color: var(--checkbox_bg_color);
|
|
40
39
|
}
|
|
@@ -121,7 +120,6 @@
|
|
|
121
120
|
|
|
122
121
|
.checkedprimaryLabel,
|
|
123
122
|
.checkeddangerLabel {
|
|
124
|
-
/* css:theme-validation:ignore */
|
|
125
123
|
color: var(--checkbox_checked_active_color);
|
|
126
124
|
}
|
|
127
125
|
.activeprimaryLabel:hover
|
package/es/DropBox/DropBox.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, { useRef, useContext } from 'react';
|
|
4
2
|
import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
|
|
5
3
|
import Modal from '../Modal/Modal'; // import { getLibraryConfig } from '../Provider/Config';
|
|
@@ -42,27 +40,28 @@ export default function DropBox(props) {
|
|
|
42
40
|
const {
|
|
43
41
|
zIndexStyle
|
|
44
42
|
} = cssJSLogic(props);
|
|
45
|
-
const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope,
|
|
43
|
+
const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
|
|
46
44
|
onClose: onClose,
|
|
47
45
|
elementRef: dropBoxRef,
|
|
48
46
|
needAutoFocus: needAutoFocus,
|
|
49
47
|
needRestoreFocus: needRestoreFocus,
|
|
50
48
|
needListNavigation: needListNavigation,
|
|
51
49
|
needFocusLoop: needFocusLoop,
|
|
52
|
-
needEnterAction: needEnterAction
|
|
53
|
-
|
|
50
|
+
needEnterAction: needEnterAction,
|
|
51
|
+
...focusScopeProps
|
|
52
|
+
}, /*#__PURE__*/React.createElement(DropBoxElement, {
|
|
54
53
|
isModel: isModel,
|
|
55
|
-
direction: direction
|
|
56
|
-
|
|
54
|
+
direction: direction,
|
|
55
|
+
...props,
|
|
57
56
|
zIndexStyle: zIndexStyle,
|
|
58
57
|
subContainerRef: dropBoxRef
|
|
59
|
-
}))
|
|
58
|
+
})) : /*#__PURE__*/React.createElement(DropBoxElement, {
|
|
60
59
|
isModel: isModel,
|
|
61
60
|
subContainerRef: dropBoxRef,
|
|
62
|
-
direction: direction
|
|
63
|
-
|
|
61
|
+
direction: direction,
|
|
62
|
+
...props,
|
|
64
63
|
zIndexStyle: zIndexStyle
|
|
65
|
-
})
|
|
64
|
+
});
|
|
66
65
|
return isModel && isActive ? /*#__PURE__*/React.createElement(Modal, {
|
|
67
66
|
portalId: portalId
|
|
68
67
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
box-shadow: var(--dropbox_box_shadow);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.defaultPalette,
|
|
22
|
-
.darkPalette {
|
|
23
|
-
/* css:theme-validation:ignore */
|
|
24
|
-
}
|
|
25
|
-
|
|
26
21
|
.defaultPalette, .darkPalette {
|
|
27
22
|
background-color: var(--dropbox_bg_color);
|
|
28
23
|
}
|
|
@@ -212,7 +207,6 @@
|
|
|
212
207
|
height: var(--zd_size10) ;
|
|
213
208
|
width: var(--zd_size10) ;
|
|
214
209
|
box-shadow: 1px -1px 2px 0 var(--dropbox_arrow_box_shadow_color);
|
|
215
|
-
/* css:theme-validation:ignore */
|
|
216
210
|
background-color: var(--dropbox_bg_color);
|
|
217
211
|
-webkit-transform: rotateZ(-45deg);
|
|
218
212
|
transform: rotateZ(-45deg);
|
|
@@ -422,7 +416,6 @@
|
|
|
422
416
|
.closeBar {
|
|
423
417
|
/* Variable:Ignore */
|
|
424
418
|
height: 6px;
|
|
425
|
-
/* css:theme-validation:ignore */
|
|
426
419
|
width: 20% ;
|
|
427
420
|
border-radius: 5px;
|
|
428
421
|
background-color: var(--dropbox_mob_close_bg_color);
|
package/es/DropDown/DropDown.js
CHANGED
|
@@ -10,7 +10,8 @@ export default class DropDown extends React.Component {
|
|
|
10
10
|
let {
|
|
11
11
|
children
|
|
12
12
|
} = this.props;
|
|
13
|
-
return /*#__PURE__*/React.createElement(PopOver, this.props
|
|
13
|
+
return /*#__PURE__*/React.createElement(PopOver, { ...this.props
|
|
14
|
+
}, /*#__PURE__*/React.createElement(PopOverTarget, null, children[0]), /*#__PURE__*/React.createElement(PopOverContainer, null, children[1]));
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
}
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
font-size: var(--zd_font_size11) ;
|
|
19
19
|
letter-spacing: 0.6px;
|
|
20
20
|
text-transform: var(--dropdownheading_text_transform);
|
|
21
|
-
/* css:theme-validation:ignore */
|
|
22
21
|
color: var(--dropdownheading_text_color);
|
|
23
|
-
/* css:theme-validation:ignore */
|
|
24
22
|
padding: var(--dropdownheading_padding);
|
|
25
23
|
background-color: var(--dropdownheading_bg_color);
|
|
26
24
|
}
|
|
@@ -35,10 +33,6 @@
|
|
|
35
33
|
.light {
|
|
36
34
|
composes: default;
|
|
37
35
|
}
|
|
38
|
-
.light::after,
|
|
39
|
-
.dark::after {
|
|
40
|
-
/* css:theme-validation:ignore */
|
|
41
|
-
}
|
|
42
36
|
.light::after, .dark::after {
|
|
43
37
|
background-color: var(--dropdownheading_underline_bg_color);
|
|
44
38
|
}
|
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
position: relative;
|
|
21
21
|
color: var(--zdt_dropdown_default_text);
|
|
22
22
|
font-size: var(--zd_font_size13) ;
|
|
23
|
-
/* css:theme-validation:ignore */
|
|
24
|
-
/* css:theme-validation:ignore */
|
|
25
23
|
padding: var(--dropdownitem-padding);
|
|
26
24
|
border-style: solid;
|
|
27
25
|
border-color: var(--dropdownitem-border-color);
|
|
@@ -76,7 +74,6 @@
|
|
|
76
74
|
opacity: 0;
|
|
77
75
|
visibility: hidden;
|
|
78
76
|
width: var(--dropdownitem-user-width);
|
|
79
|
-
/* css:theme-validation:ignore */
|
|
80
77
|
border-width: var(--dropdownitem-user-border-width);
|
|
81
78
|
border-style: var(--dropdownitem-user-border-style);
|
|
82
79
|
border-color: var(--dropdownitem-user-border-color);
|
|
@@ -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;
|
package/es/ListItem/ListItem.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 { Box } from '../Layout';
|
|
@@ -92,7 +90,7 @@ export default class ListItem extends React.Component {
|
|
|
92
90
|
} = listA11y;
|
|
93
91
|
let tickIconPalette = style[`${palette}Tick`] ? style[`${palette}Tick`] : '';
|
|
94
92
|
let dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
95
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
93
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
96
94
|
a11y: listA11y,
|
|
97
95
|
size: size,
|
|
98
96
|
palette: palette,
|
|
@@ -113,8 +111,9 @@ export default class ListItem extends React.Component {
|
|
|
113
111
|
onClick: this.handleClick,
|
|
114
112
|
onMouseEnter: this.handleMouseEnter,
|
|
115
113
|
eleRef: this.getRef,
|
|
116
|
-
customProps: ListItemProps
|
|
117
|
-
|
|
114
|
+
customProps: ListItemProps,
|
|
115
|
+
...ContainerProps
|
|
116
|
+
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
118
117
|
shrink: true,
|
|
119
118
|
adjust: true,
|
|
120
119
|
className: needMultiLineText ? style.multiLineValue : style.value
|
|
@@ -23,10 +23,8 @@
|
|
|
23
23
|
composes: varClass;
|
|
24
24
|
position: relative;
|
|
25
25
|
list-style: none;
|
|
26
|
-
/* css:theme-validation:ignore */
|
|
27
26
|
color: var(--listitem_text_color);
|
|
28
27
|
font-size: var(--zd_font_size13) ;
|
|
29
|
-
/* css:theme-validation:ignore */
|
|
30
28
|
height: var(--listitem_height);
|
|
31
29
|
min-height: var(--listitem_min_height);
|
|
32
30
|
text-decoration: none;
|
|
@@ -36,11 +34,6 @@
|
|
|
36
34
|
border-color: var(--listitem_border_color);
|
|
37
35
|
cursor: pointer;
|
|
38
36
|
}
|
|
39
|
-
.list,
|
|
40
|
-
.default,
|
|
41
|
-
.secondary {
|
|
42
|
-
/* css:theme-validation:ignore */
|
|
43
|
-
}
|
|
44
37
|
.list, .default, .secondary {
|
|
45
38
|
background-color: var(--listitem_bg_color);
|
|
46
39
|
}
|
|
@@ -101,13 +94,6 @@
|
|
|
101
94
|
margin: var(--listitem_avatar_margin);
|
|
102
95
|
}
|
|
103
96
|
|
|
104
|
-
.defaultHover,
|
|
105
|
-
.primaryHover,
|
|
106
|
-
.secondaryHover,
|
|
107
|
-
.darkHover {
|
|
108
|
-
/* css:theme-validation:ignore */
|
|
109
|
-
}
|
|
110
|
-
|
|
111
97
|
.defaultHover, .primaryHover, .secondaryHover, .darkHover {
|
|
112
98
|
background-color: var(--listitem_highlight_bg_color);
|
|
113
99
|
}
|
|
@@ -149,12 +135,6 @@
|
|
|
149
135
|
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
150
136
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
151
137
|
}
|
|
152
|
-
.activedefault,
|
|
153
|
-
.activeprimary,
|
|
154
|
-
.activesecondary,
|
|
155
|
-
.activedark {
|
|
156
|
-
/* css:theme-validation:ignore */
|
|
157
|
-
}
|
|
158
138
|
.activedefault, .activeprimary, .activesecondary, .activedark {
|
|
159
139
|
background-color: var(--listitem_active_bg_color);
|
|
160
140
|
}
|
|
@@ -180,7 +160,6 @@
|
|
|
180
160
|
.defaultTick,
|
|
181
161
|
.darkTick {
|
|
182
162
|
position: absolute;
|
|
183
|
-
/* css:theme-validation:ignore */
|
|
184
163
|
color: var(--listitem_tickicon_color);
|
|
185
164
|
}
|
|
186
165
|
|
|
@@ -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';
|
|
@@ -97,7 +95,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
97
95
|
} = listA11y;
|
|
98
96
|
let isDarkPalette = palette === 'dark';
|
|
99
97
|
let dataIdString = value ? value : dataId;
|
|
100
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
98
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
101
99
|
a11y: listA11y,
|
|
102
100
|
size: size,
|
|
103
101
|
palette: palette,
|
|
@@ -115,8 +113,9 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
115
113
|
eleRef: this.getRef,
|
|
116
114
|
disableTitle: disableTitle,
|
|
117
115
|
title: null,
|
|
118
|
-
customProps: ListItemProps
|
|
119
|
-
|
|
116
|
+
customProps: ListItemProps,
|
|
117
|
+
...ContainerProps
|
|
118
|
+
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
120
119
|
className: style.leftAvatar
|
|
121
120
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
122
121
|
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';
|
|
@@ -76,7 +74,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
76
74
|
customCheckBox = '',
|
|
77
75
|
customLabel = ''
|
|
78
76
|
} = customClass;
|
|
79
|
-
return /*#__PURE__*/React.createElement(ListContainer,
|
|
77
|
+
return /*#__PURE__*/React.createElement(ListContainer, {
|
|
80
78
|
a11y: listA11y,
|
|
81
79
|
size: size,
|
|
82
80
|
palette: palette,
|
|
@@ -92,8 +90,9 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
92
90
|
eleRef: this.getRef,
|
|
93
91
|
disableTitle: disableTitle,
|
|
94
92
|
title: null,
|
|
95
|
-
customProps: ListItemProps
|
|
96
|
-
|
|
93
|
+
customProps: ListItemProps,
|
|
94
|
+
...ContainerProps
|
|
95
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
97
96
|
className: style.iconBox
|
|
98
97
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
99
98
|
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';
|
|
@@ -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,
|
|
@@ -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`
|