@zohodesk/components 1.0.0-temp-118 → 1.0.0-temp-120
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/assets/Appearance/dark/mode/darkMode.module.css +2 -1
- package/assets/Appearance/default/mode/defaultMode.module.css +2 -1
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +2 -1
- package/es/Accordion/Accordion.js +7 -6
- package/es/Accordion/AccordionItem.js +6 -6
- package/es/Animation/Animation.js +9 -8
- package/es/AppContainer/AppContainer.js +7 -6
- package/es/Avatar/Avatar.js +18 -15
- package/es/Avatar/Avatar.module.css +3 -0
- package/es/Avatar/props/defaultProps.js +3 -1
- package/es/Avatar/props/propTypes.js +3 -1
- package/es/AvatarTeam/AvatarTeam.js +16 -9
- package/es/AvatarTeam/AvatarTeam.module.css +9 -0
- package/es/AvatarTeam/props/defaultProps.js +4 -1
- package/es/AvatarTeam/props/propTypes.js +3 -0
- package/es/Button/Button.js +7 -6
- package/es/Buttongroup/Buttongroup.js +15 -12
- package/es/Card/Card.js +10 -8
- package/es/CheckBox/CheckBox.js +7 -6
- package/es/DateTime/DateWidget.js +13 -14
- package/es/DropBox/DropBox.js +8 -8
- package/es/DropDown/DropDown.js +8 -6
- package/es/DropDown/DropDownHeading.js +7 -6
- package/es/Heading/Heading.js +7 -6
- package/es/Label/Label.js +7 -6
- package/es/ListItem/ListContainer.js +7 -6
- package/es/ListItem/ListItem.js +7 -6
- package/es/ListItem/ListItemWithAvatar.js +6 -6
- package/es/ListItem/ListItemWithCheckBox.js +6 -6
- package/es/ListItem/ListItemWithIcon.js +7 -6
- package/es/ListItem/ListItemWithRadio.js +7 -6
- package/es/Modal/Modal.js +9 -8
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -6
- package/es/MultiSelect/AdvancedMultiSelect.js +10 -8
- package/es/MultiSelect/MultiSelect.js +7 -6
- package/es/MultiSelect/MultiSelectWithAvatar.js +10 -8
- package/es/PopOver/PopOver.js +8 -8
- package/es/Radio/Radio.js +6 -6
- package/es/Ribbon/Ribbon.js +14 -12
- package/es/RippleEffect/RippleEffect.js +7 -6
- package/es/Select/GroupSelect.js +9 -8
- package/es/Select/Select.js +11 -10
- package/es/Select/SelectWithAvatar.js +10 -8
- package/es/Select/SelectWithIcon.js +7 -6
- package/es/Stencils/Stencils.js +9 -8
- package/es/Switch/Switch.js +7 -6
- package/es/Tab/Tab.js +7 -6
- package/es/Tag/Tag.js +6 -6
- package/es/TextBox/TextBox.js +9 -8
- package/es/TextBoxIcon/TextBoxIcon.js +8 -8
- package/es/Textarea/Textarea.js +9 -8
- package/es/Tooltip/Tooltip.js +9 -8
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -5
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +6 -5
- package/es/deprecated/PortalLayer/PortalLayer.js +7 -6
- package/es/semantic/Button/Button.js +6 -6
- package/lib/Accordion/Accordion.js +7 -6
- package/lib/Accordion/AccordionItem.js +6 -6
- package/lib/Animation/Animation.js +9 -8
- package/lib/AppContainer/AppContainer.js +7 -6
- package/lib/Avatar/Avatar.js +18 -15
- package/lib/Avatar/Avatar.module.css +3 -0
- package/lib/Avatar/props/defaultProps.js +3 -1
- package/lib/Avatar/props/propTypes.js +3 -1
- package/lib/AvatarTeam/AvatarTeam.js +16 -9
- package/lib/AvatarTeam/AvatarTeam.module.css +9 -0
- package/lib/AvatarTeam/props/defaultProps.js +4 -1
- package/lib/AvatarTeam/props/propTypes.js +3 -0
- package/lib/Button/Button.js +7 -6
- package/lib/Buttongroup/Buttongroup.js +15 -12
- package/lib/Card/Card.js +9 -8
- package/lib/CheckBox/CheckBox.js +7 -6
- package/lib/DateTime/DateWidget.js +12 -14
- package/lib/DropBox/DropBox.js +8 -8
- package/lib/DropDown/DropDown.js +7 -6
- package/lib/DropDown/DropDownHeading.js +7 -6
- package/lib/Heading/Heading.js +7 -6
- package/lib/Label/Label.js +7 -6
- package/lib/ListItem/ListContainer.js +7 -8
- package/lib/ListItem/ListItem.js +7 -6
- package/lib/ListItem/ListItemWithAvatar.js +6 -6
- package/lib/ListItem/ListItemWithCheckBox.js +6 -6
- package/lib/ListItem/ListItemWithIcon.js +7 -6
- package/lib/ListItem/ListItemWithRadio.js +7 -6
- package/lib/Modal/Modal.js +9 -8
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +6 -6
- package/lib/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/lib/MultiSelect/MultiSelect.js +7 -6
- package/lib/MultiSelect/MultiSelectWithAvatar.js +9 -8
- package/lib/PopOver/PopOver.js +8 -8
- package/lib/Radio/Radio.js +6 -6
- package/lib/Ribbon/Ribbon.js +14 -12
- package/lib/RippleEffect/RippleEffect.js +7 -6
- package/lib/Select/GroupSelect.js +9 -10
- package/lib/Select/Select.js +11 -12
- package/lib/Select/SelectWithAvatar.js +9 -8
- package/lib/Select/SelectWithIcon.js +7 -6
- package/lib/Stencils/Stencils.js +9 -8
- package/lib/Switch/Switch.js +7 -6
- package/lib/Tab/Tab.js +7 -6
- package/lib/Tag/Tag.js +6 -6
- package/lib/TextBox/TextBox.js +9 -8
- package/lib/TextBoxIcon/TextBoxIcon.js +8 -8
- package/lib/Textarea/Textarea.js +9 -8
- package/lib/Tooltip/Tooltip.js +9 -8
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -5
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +6 -5
- package/lib/deprecated/PortalLayer/PortalLayer.js +7 -6
- package/lib/semantic/Button/Button.js +6 -6
- package/package.json +1 -1
- package/css_error.log +0 -0
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.0.0-alpha-257
|
|
36
|
+
|
|
37
|
+
- **Avatar** - Avatar initial render issue and image border issue solved
|
|
38
|
+
|
|
35
39
|
# 1.0.0-alpha-256
|
|
36
40
|
|
|
37
41
|
- **Button** - Safari browser focus issue fix and `customProps` validation.
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
--zdt_avatar_info_bg: var(--dot_mirror);
|
|
24
24
|
|
|
25
25
|
/* avatar team */
|
|
26
|
-
--zdt_avatarteam_default_bg: var(--
|
|
26
|
+
--zdt_avatarteam_default_bg: var(--dot_ebonyclay);
|
|
27
27
|
--zdt_avatarteam_default_border: var(--dot_mirror);
|
|
28
28
|
--zdt_avatarteam_primary_bg: var(--zdt_cta_grey_40_bg);
|
|
29
29
|
--zdt_avatarteam_primary_hover_bg: var(--dot_oslogrey);
|
|
30
30
|
--zdt_avatarteam_secondary_bg: var(--dot_ebonyclay);
|
|
31
31
|
--zdt_avatarteam_nofill_border: var(--zdt_cta_grey_40_border);
|
|
32
32
|
--zdt_avatarteam_nofill_hover_border: var(--dot_oslogrey);
|
|
33
|
+
--zdt_avatarteam_innerCircle: var(--dot_ebonyclay);
|
|
33
34
|
|
|
34
35
|
/* button */
|
|
35
36
|
--zdt_button_default_text: var(--zdt_cta_alpha_text);
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
--zdt_avatar_info_bg: var(--dot_mirror);
|
|
24
24
|
|
|
25
25
|
/* avatar team */
|
|
26
|
-
--zdt_avatarteam_default_bg: var(--
|
|
26
|
+
--zdt_avatarteam_default_bg: var(--dot_white);
|
|
27
27
|
--zdt_avatarteam_default_border: var(--dot_mirror);
|
|
28
28
|
--zdt_avatarteam_primary_bg: var(--zdt_cta_grey_40_bg);
|
|
29
29
|
--zdt_avatarteam_primary_hover_bg: var(--dot_slateGrey);
|
|
30
30
|
--zdt_avatarteam_secondary_bg: var(--dot_white);
|
|
31
31
|
--zdt_avatarteam_nofill_border: var(--zdt_cta_grey_40_border);
|
|
32
32
|
--zdt_avatarteam_nofill_hover_border: var(--dot_slateGrey);
|
|
33
|
+
--zdt_avatarteam_innerCircle: var(--dot_white);
|
|
33
34
|
|
|
34
35
|
/* button */
|
|
35
36
|
--zdt_button_default_text: var(--zdt_cta_alpha_text);
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
--zdt_avatar_info_bg: var(--dot_mirror);
|
|
24
24
|
|
|
25
25
|
/* avatar team */
|
|
26
|
-
--zdt_avatarteam_default_bg:
|
|
26
|
+
--zdt_avatarteam_default_bg: #212121;
|
|
27
27
|
--zdt_avatarteam_default_border: var(--dot_mirror);
|
|
28
28
|
--zdt_avatarteam_primary_bg: var(--zdt_cta_grey_40_bg);
|
|
29
29
|
--zdt_avatarteam_primary_hover_bg: var(--dot_oslogrey);
|
|
30
30
|
--zdt_avatarteam_secondary_bg: #212121;
|
|
31
31
|
--zdt_avatarteam_nofill_border: var(--zdt_cta_grey_40_border);
|
|
32
32
|
--zdt_avatarteam_nofill_hover_border: var(--dot_oslogrey);
|
|
33
|
+
--zdt_avatarteam_innerCircle: #212121;
|
|
33
34
|
|
|
34
35
|
/* button */
|
|
35
36
|
--zdt_button_default_text: var(--zdt_cta_alpha_text);
|
|
@@ -67,9 +67,10 @@ export default class Accordion extends React.Component {
|
|
|
67
67
|
}
|
|
68
68
|
Accordion.propTypes = Accordion_propTypes;
|
|
69
69
|
Accordion.defaultProps = Accordion_defaultProps;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
70
|
+
|
|
71
|
+
// if (__DOCS__) {
|
|
72
|
+
// Accordion.docs = {
|
|
73
|
+
// componentGroup: 'Animation',
|
|
74
|
+
// folderName: 'Style Guide'
|
|
75
|
+
// };
|
|
76
|
+
// }
|
|
@@ -50,9 +50,9 @@ export default class AccordionItem extends React.Component {
|
|
|
50
50
|
}
|
|
51
51
|
AccordionItem.propTypes = AccordionItem_propTypes;
|
|
52
52
|
AccordionItem.defaultProps = AccordionItem_defaultProps;
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
53
|
+
// if (__DOCS__) {
|
|
54
|
+
// AccordionItem.docs = {
|
|
55
|
+
// componentGroup: 'Animation',
|
|
56
|
+
// folderName: 'Style Guide'
|
|
57
|
+
// };
|
|
58
|
+
// }
|
|
@@ -123,11 +123,12 @@ export default class Animation extends React.Component {
|
|
|
123
123
|
}
|
|
124
124
|
Animation.propTypes = propTypes;
|
|
125
125
|
Animation.defaultProps = defaultProps;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
126
|
+
|
|
127
|
+
// if (__DOCS__) {
|
|
128
|
+
// Animation.docs = {
|
|
129
|
+
// componentGroup: 'Animation',
|
|
130
|
+
// folderName: 'Style Guide',
|
|
131
|
+
// external: true,
|
|
132
|
+
// description: ' '
|
|
133
|
+
// };
|
|
134
|
+
// }
|
|
@@ -104,9 +104,10 @@ export default class AppContainer extends React.Component {
|
|
|
104
104
|
}
|
|
105
105
|
AppContainer.propTypes = propTypes;
|
|
106
106
|
AppContainer.defaultProps = defaultProps;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
107
|
+
|
|
108
|
+
// if (__DOCS__) {
|
|
109
|
+
// AppContainer.docs = {
|
|
110
|
+
// componentGroup: 'Template',
|
|
111
|
+
// folderName: 'Style Guide'
|
|
112
|
+
// };
|
|
113
|
+
// }
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -124,7 +124,9 @@ export default class Avatar extends React.Component {
|
|
|
124
124
|
customClass,
|
|
125
125
|
alternateSrc,
|
|
126
126
|
isAnimate,
|
|
127
|
-
customProps
|
|
127
|
+
customProps,
|
|
128
|
+
needInnerborder,
|
|
129
|
+
needDefaultBorder
|
|
128
130
|
} = this.props;
|
|
129
131
|
let {
|
|
130
132
|
AvatarProps = {}
|
|
@@ -134,11 +136,12 @@ export default class Avatar extends React.Component {
|
|
|
134
136
|
initial = initial || this.getInitialByFullName(name);
|
|
135
137
|
let isInvalidImageList = Avatar.invalidImageURLs.indexOf(src) !== -1;
|
|
136
138
|
let isValidImageList = Avatar.validImageURLs.indexOf(src) !== -1;
|
|
137
|
-
let border = borderOnHover || onClick;
|
|
138
|
-
let borderStyle = (!src || src && isInvalidImageList || !isValidImageList) && needBorder ? `${style.border} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ` : '';
|
|
139
139
|
let showAvatar = src && !isInvalidImageList;
|
|
140
|
-
let showInitial = !showAvatar || showAvatar &&
|
|
140
|
+
let showInitial = !showAvatar || showAvatar && isInvalidImageList;
|
|
141
141
|
const showAlternateAvatar = alternateSrc ? showInitial : false;
|
|
142
|
+
let border = borderOnHover || onClick;
|
|
143
|
+
let showDefaultBorder = src && !isInvalidImageList && needDefaultBorder;
|
|
144
|
+
let borderStyle = (!src || !showAvatar || showInitial || showDefaultBorder) && needBorder ? `${style.border} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ` : '';
|
|
142
145
|
borderStyle = showAlternateAvatar ? '' : borderStyle;
|
|
143
146
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
144
147
|
className: `${style.avatar} ${style[size]} ${AvatarSize(size)} ${style[shapeStyle]} ${style[palette]} ${textStyle} ${borderStyle} ${customClass ? customClass : ''}`,
|
|
@@ -148,26 +151,26 @@ export default class Avatar extends React.Component {
|
|
|
148
151
|
}, AvatarProps), showInitial && !showAlternateAvatar && /*#__PURE__*/React.createElement("span", {
|
|
149
152
|
className: `${style.initial}`,
|
|
150
153
|
"data-id": `${dataId}_AvatarInitial`
|
|
151
|
-
}, initial), (showAvatar || showAlternateAvatar) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("
|
|
152
|
-
className: `${style.
|
|
154
|
+
}, initial), (showAvatar || showAlternateAvatar) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
155
|
+
className: `${style.shadow} ${textStyle} `
|
|
156
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
157
|
+
className: `${style.image} ${isAnimate ? style.animate : ''} ${needInnerborder ? style.innerBorder : ''}`,
|
|
153
158
|
"data-id": `${dataId}_AvatarImg`,
|
|
154
159
|
name: name,
|
|
155
160
|
onError: this.putInvalidImageURLJSON,
|
|
156
161
|
onLoad: this.putValidImageURLJSON,
|
|
157
162
|
src: showAlternateAvatar ? alternateSrc : src,
|
|
158
163
|
alt: name
|
|
159
|
-
})
|
|
160
|
-
className: `${style.shadow} ${textStyle} `
|
|
161
|
-
})));
|
|
164
|
+
}))));
|
|
162
165
|
}
|
|
163
166
|
}
|
|
164
167
|
Avatar.defaultProps = defaultProps;
|
|
165
168
|
Avatar.propTypes = propTypes;
|
|
166
169
|
Avatar.invalidImageURLs = [];
|
|
167
170
|
Avatar.validImageURLs = [];
|
|
168
|
-
if (
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
171
|
+
// if (__DOCS__) {
|
|
172
|
+
// Avatar.docs = {
|
|
173
|
+
// componentGroup: 'Avatar Group',
|
|
174
|
+
// folderName: 'Style Guide'
|
|
175
|
+
// };
|
|
176
|
+
// }
|
|
@@ -31,7 +31,10 @@ export default class AvatarTeam extends React.Component {
|
|
|
31
31
|
customClass,
|
|
32
32
|
borderOnActive,
|
|
33
33
|
borderOnHover,
|
|
34
|
-
|
|
34
|
+
needInnerborder,
|
|
35
|
+
needBorder,
|
|
36
|
+
customProps,
|
|
37
|
+
needDefaultBorder
|
|
35
38
|
} = this.props;
|
|
36
39
|
let {
|
|
37
40
|
AvatarTeamProps = {},
|
|
@@ -56,7 +59,10 @@ export default class AvatarTeam extends React.Component {
|
|
|
56
59
|
needTitle: needTitle,
|
|
57
60
|
customClass: customAvatar,
|
|
58
61
|
borderOnActive: borderOnActive,
|
|
59
|
-
borderOnHover: border
|
|
62
|
+
borderOnHover: border,
|
|
63
|
+
needInnerborder: needInnerborder,
|
|
64
|
+
needBorder: needBorder,
|
|
65
|
+
needDefaultBorder: needDefaultBorder
|
|
60
66
|
}, AvatarProps)), /*#__PURE__*/React.createElement("span", {
|
|
61
67
|
className: `${style.team} ${isFilled ? `${style[`${palette}Filled`]}` : style.nofill}
|
|
62
68
|
${style[`${size}team`]} ${customAvatarTeam}`
|
|
@@ -65,10 +71,11 @@ export default class AvatarTeam extends React.Component {
|
|
|
65
71
|
}
|
|
66
72
|
AvatarTeam.defaultProps = defaultProps;
|
|
67
73
|
AvatarTeam.propTypes = propTypes;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
74
|
+
|
|
75
|
+
// if (__DOCS__) {
|
|
76
|
+
// AvatarTeam.docs = {
|
|
77
|
+
// componentGroup: 'Avatar Group',
|
|
78
|
+
// folderName: 'Style Guide',
|
|
79
|
+
// external: true
|
|
80
|
+
// };
|
|
81
|
+
// }
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
--avatarteam_border_width: var(--zd_size1);
|
|
4
4
|
--avatarteam_border_style: solid;
|
|
5
5
|
--avatarteam_border_color: var(--zdt_avatarteam_default_border);
|
|
6
|
+
--avatarteam_outline_width: var(--zd_size1);
|
|
7
|
+
--avatarteam_outline_style: solid;
|
|
8
|
+
--avatarteam_outline_color: var(--zdt_avatarteam_innerCircle);
|
|
6
9
|
--avatarteam_bg_color: var(--zdt_avatarteam_default_bg);
|
|
7
10
|
--avatarteam_width: var(--zd_size5);
|
|
8
11
|
--avatarteam_height: var(--zd_size5);
|
|
@@ -23,6 +26,9 @@
|
|
|
23
26
|
top: var(--avatarteam_top_top);
|
|
24
27
|
width: var(--avatarteam_width);
|
|
25
28
|
height: var(--avatarteam_height);
|
|
29
|
+
outline-width: var(--avatarteam_outline_width);
|
|
30
|
+
outline-style: var(--avatarteam_outline_style);
|
|
31
|
+
outline-color: var(--avatarteam_outline_color);
|
|
26
32
|
border-width: var(--avatarteam_border_width);
|
|
27
33
|
border-style: var(--avatarteam_border_style);
|
|
28
34
|
border-color: var(--avatarteam_border_color);
|
|
@@ -64,6 +70,9 @@
|
|
|
64
70
|
height: inherit;
|
|
65
71
|
width: inherit;
|
|
66
72
|
top: var(--avatarteam_bottom_top);
|
|
73
|
+
outline-width: var(--avatarteam_outline_width);
|
|
74
|
+
outline-style: var(--avatarteam_outline_style);
|
|
75
|
+
outline-color: var( --avatarteam_outline_color);
|
|
67
76
|
}
|
|
68
77
|
.team:after, .team:before {
|
|
69
78
|
border: inherit;
|
|
@@ -9,6 +9,7 @@ export const propTypes = {
|
|
|
9
9
|
size: PropTypes.oneOf(['small', 'xsmall', 'medium', 'xmedium', 'large', 'xlarge']),
|
|
10
10
|
src: PropTypes.string,
|
|
11
11
|
textPalette: PropTypes.oneOf(['white', 'black']),
|
|
12
|
+
needBorder: PropTypes.bool,
|
|
12
13
|
title: PropTypes.string,
|
|
13
14
|
customClass: PropTypes.shape({
|
|
14
15
|
customAvatar: PropTypes.string,
|
|
@@ -16,6 +17,8 @@ export const propTypes = {
|
|
|
16
17
|
}),
|
|
17
18
|
borderOnActive: PropTypes.bool,
|
|
18
19
|
borderOnHover: PropTypes.bool,
|
|
20
|
+
needInnerborder: PropTypes.bool,
|
|
21
|
+
needDefaultBorder: PropTypes.bool,
|
|
19
22
|
customProps: PropTypes.shape({
|
|
20
23
|
AvatarTeamProps: PropTypes.object,
|
|
21
24
|
AvatarProps: PropTypes.object
|
package/es/Button/Button.js
CHANGED
|
@@ -56,9 +56,10 @@ export default class Button extends React.Component {
|
|
|
56
56
|
}
|
|
57
57
|
Button.defaultProps = defaultProps;
|
|
58
58
|
Button.propTypes = propTypes;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
59
|
+
|
|
60
|
+
// if (__DOCS__) {
|
|
61
|
+
// Button.docs = {
|
|
62
|
+
// componentGroup: 'Form Elements',
|
|
63
|
+
// folderName: 'Style Guide'
|
|
64
|
+
// };
|
|
65
|
+
// }
|
|
@@ -28,15 +28,18 @@ export default class Buttongroup extends React.Component {
|
|
|
28
28
|
}
|
|
29
29
|
Buttongroup.defaultProps = defaultProps;
|
|
30
30
|
Buttongroup.propTypes = propTypes;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
31
|
+
|
|
32
|
+
// if (__DOCS__) {
|
|
33
|
+
// Buttongroup.docs = {
|
|
34
|
+
// componentGroup: 'Molecule',
|
|
35
|
+
// folderName: 'Style Guide',
|
|
36
|
+
// external: false,
|
|
37
|
+
// description: ' ',
|
|
38
|
+
// images: [
|
|
39
|
+
// {
|
|
40
|
+
// view: 'http://zsupport-tech-1.tsi.zohocorpin.com:8080/ui/general/ButtonGroup/v1/ButtonGroup.png',
|
|
41
|
+
// psd: 'http://zsupport-tech-1.tsi.zohocorpin.com:8080/ui/general/ButtonGroup/v1/ButtonGroup.psd'
|
|
42
|
+
// }
|
|
43
|
+
// ]
|
|
44
|
+
// };
|
|
45
|
+
// }
|
package/es/Card/Card.js
CHANGED
|
@@ -225,14 +225,16 @@ export default class Card extends Component {
|
|
|
225
225
|
}
|
|
226
226
|
Card.propTypes = Card_propTypes;
|
|
227
227
|
Card.defaultProps = Card_defaultProps;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
228
|
+
|
|
229
|
+
// if (__DOCS__) {
|
|
230
|
+
// Card.docs = {
|
|
231
|
+
// componentGroup: 'Template',
|
|
232
|
+
// folderName: 'Style Guide',
|
|
233
|
+
// external: true,
|
|
234
|
+
// description: ' '
|
|
235
|
+
// };
|
|
236
|
+
// }
|
|
237
|
+
|
|
236
238
|
export class CardFooter extends Component {
|
|
237
239
|
render() {
|
|
238
240
|
let {
|
package/es/CheckBox/CheckBox.js
CHANGED
|
@@ -148,9 +148,10 @@ export default class CheckBox extends React.Component {
|
|
|
148
148
|
}
|
|
149
149
|
CheckBox.defaultProps = defaultProps;
|
|
150
150
|
CheckBox.propTypes = propTypes;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
151
|
+
|
|
152
|
+
// if (__DOCS__) {
|
|
153
|
+
// CheckBox.docs = {
|
|
154
|
+
// componentGroup: 'Form Elements',
|
|
155
|
+
// folderName: 'Style Guide'
|
|
156
|
+
// };
|
|
157
|
+
// }
|
|
@@ -920,8 +920,7 @@ class DateWidgetComponent extends React.Component {
|
|
|
920
920
|
targetOffset,
|
|
921
921
|
isRestrictScroll,
|
|
922
922
|
dropBoxPortalId,
|
|
923
|
-
a11y
|
|
924
|
-
boxSize
|
|
923
|
+
a11y
|
|
925
924
|
} = this.props;
|
|
926
925
|
const {
|
|
927
926
|
selected: value = '',
|
|
@@ -1007,8 +1006,7 @@ class DateWidgetComponent extends React.Component {
|
|
|
1007
1006
|
positionsOffset: positionsOffset,
|
|
1008
1007
|
targetOffset: targetOffset,
|
|
1009
1008
|
isRestrictScroll: isRestrictScroll,
|
|
1010
|
-
dropBoxPortalId: dropBoxPortalId
|
|
1011
|
-
boxSize: boxSize
|
|
1009
|
+
dropBoxPortalId: dropBoxPortalId
|
|
1012
1010
|
}));
|
|
1013
1011
|
}
|
|
1014
1012
|
}
|
|
@@ -1018,14 +1016,15 @@ const DateWidget = Popup(DateWidgetComponent);
|
|
|
1018
1016
|
DateWidget.defaultProps = DateWidgetComponent.defaultProps;
|
|
1019
1017
|
|
|
1020
1018
|
// eslint-disable-next-line no-undef
|
|
1021
|
-
if (
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1019
|
+
// if (__DOCS__) {
|
|
1020
|
+
// DateWidgetComponent.docs = {
|
|
1021
|
+
// componentGroup: 'Form Elements',
|
|
1022
|
+
// folderName: 'Style Guide',
|
|
1023
|
+
// external: true,
|
|
1024
|
+
// description: ' '
|
|
1025
|
+
// };
|
|
1026
|
+
// // eslint-disable-next-line react/forbid-foreign-prop-types
|
|
1027
|
+
// DateWidget.propTypes = DateWidgetComponent.propTypes;
|
|
1028
|
+
// }
|
|
1029
|
+
|
|
1031
1030
|
export default DateWidget;
|
package/es/DropBox/DropBox.js
CHANGED
|
@@ -237,11 +237,11 @@ export default class DropBox extends React.Component {
|
|
|
237
237
|
DropBox.propTypes = propTypes;
|
|
238
238
|
DropBox.contextType = LibraryContext;
|
|
239
239
|
DropBox.defaultProps = defaultProps;
|
|
240
|
-
if (
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
240
|
+
// if (__DOCS__) {
|
|
241
|
+
// DropBox.docs = {
|
|
242
|
+
// componentGroup: 'Atom',
|
|
243
|
+
// folderName: 'Style Guide',
|
|
244
|
+
// external: true,
|
|
245
|
+
// description: ' '
|
|
246
|
+
// };
|
|
247
|
+
// }
|
package/es/DropDown/DropDown.js
CHANGED
|
@@ -15,12 +15,14 @@ export default class DropDown extends React.Component {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
DropDown.propTypes = DropDown_propTypes;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
18
|
+
|
|
19
|
+
// if (__DOCS__) {
|
|
20
|
+
// DropDown.docs = {
|
|
21
|
+
// componentGroup: 'Form Elements',
|
|
22
|
+
// folderName: 'Style Guide'
|
|
23
|
+
// };
|
|
24
|
+
// }
|
|
25
|
+
|
|
24
26
|
export class DropDownTarget extends React.Component {
|
|
25
27
|
render() {
|
|
26
28
|
let {
|
|
@@ -31,9 +31,10 @@ export default class DropDownHeading extends React.Component {
|
|
|
31
31
|
}
|
|
32
32
|
DropDownHeading.propTypes = DropDownHeading_propTypes;
|
|
33
33
|
DropDownHeading.defaultProps = DropDownHeading_defaultProps;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
34
|
+
|
|
35
|
+
// if (__DOCS__) {
|
|
36
|
+
// DropDownHeading.docs = {
|
|
37
|
+
// componentGroup: 'Form Elements',
|
|
38
|
+
// folderName: 'Style Guide'
|
|
39
|
+
// };
|
|
40
|
+
// }
|
package/es/Heading/Heading.js
CHANGED
|
@@ -26,9 +26,10 @@ export default class Heading extends React.Component {
|
|
|
26
26
|
}
|
|
27
27
|
Heading.propTypes = propTypes;
|
|
28
28
|
Heading.defaultProps = defaultProps;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
29
|
+
|
|
30
|
+
// if (__DOCS__) {
|
|
31
|
+
// Heading.docs = {
|
|
32
|
+
// folderName: 'Style Guide',
|
|
33
|
+
// componentGroup: 'Accessibility'
|
|
34
|
+
// };
|
|
35
|
+
// }
|
package/es/Label/Label.js
CHANGED
|
@@ -35,9 +35,10 @@ export default class Label extends React.Component {
|
|
|
35
35
|
}
|
|
36
36
|
Label.defaultProps = defaultProps;
|
|
37
37
|
Label.propTypes = propTypes;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
38
|
+
|
|
39
|
+
// if (__DOCS__) {
|
|
40
|
+
// Label.docs = {
|
|
41
|
+
// componentGroup: 'Form Elements',
|
|
42
|
+
// folderName: 'Style Guide'
|
|
43
|
+
// };
|
|
44
|
+
// }
|
|
@@ -85,9 +85,10 @@ const ListContainer = props => {
|
|
|
85
85
|
ListContainer.defaultProps = ListContainerDefaultProps;
|
|
86
86
|
ListContainer.propTypes = ListContainer_Props;
|
|
87
87
|
export default ListContainer;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
88
|
+
|
|
89
|
+
// if (__DOCS__) {
|
|
90
|
+
// ListContainer.docs = {
|
|
91
|
+
// componentGroup: 'Molecule',
|
|
92
|
+
// folderName: 'Style Guide'
|
|
93
|
+
// };
|
|
94
|
+
// }
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -119,9 +119,10 @@ export default class ListItem extends React.Component {
|
|
|
119
119
|
}
|
|
120
120
|
ListItem.defaultProps = ListItemDefaultProps;
|
|
121
121
|
ListItem.propTypes = ListItem_Props;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
122
|
+
|
|
123
|
+
// if (__DOCS__) {
|
|
124
|
+
// ListItem.docs = {
|
|
125
|
+
// componentGroup: 'Molecule',
|
|
126
|
+
// folderName: 'Style Guide'
|
|
127
|
+
// };
|
|
128
|
+
// }
|
|
@@ -141,9 +141,9 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
141
141
|
}
|
|
142
142
|
ListItemWithAvatar.defaultProps = ListItemWithAvatarDefaultProps;
|
|
143
143
|
ListItemWithAvatar.propTypes = ListItemWithAvatar_Props;
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
144
|
+
// if (__DOCS__) {
|
|
145
|
+
// ListItemWithAvatar.docs = {
|
|
146
|
+
// componentGroup: 'Molecule',
|
|
147
|
+
// folderName: 'Style Guide'
|
|
148
|
+
// };
|
|
149
|
+
// }
|
|
@@ -102,9 +102,9 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
102
102
|
}
|
|
103
103
|
ListItemWithCheckBox.defaultProps = ListItemWithCheckBoxDefaultProps;
|
|
104
104
|
ListItemWithCheckBox.propTypes = ListItemWithCheckBox_Props;
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
105
|
+
// if (__DOCS__) {
|
|
106
|
+
// ListItemWithCheckBox.docs = {
|
|
107
|
+
// componentGroup: 'Molecule',
|
|
108
|
+
// folderName: 'Style Guide'
|
|
109
|
+
// };
|
|
110
|
+
// }
|