@zohodesk/dot 1.4.13 → 1.4.14
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 +6 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +2 -5
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/index.html +1 -1
- package/es/ActionButton/ActionButton.module.css +51 -4
- package/es/AlphabeticList/AlphabeticList.module.css +0 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +0 -2
- package/es/ChannelIcon/ChannelIcon.module.css +9 -4
- package/es/Drawer/Drawer.js +4 -5
- package/es/ExternalLink/ExternalLink.js +4 -5
- package/es/FlipCard/FlipCard.js +14 -12
- package/es/FormAction/FormAction.module.css +18 -1
- package/es/IconButton/IconButton.js +4 -5
- package/es/IconButton/IconButton.module.css +0 -1
- package/es/Link/Link.js +8 -10
- package/es/Message/Message.js +4 -5
- package/es/TagWithIcon/TagWithIcon.module.css +0 -3
- package/es/ToastMessage/ToastMessage.js +2 -4
- package/es/actions/AutoClose.js +2 -1
- package/es/alert/AlertLookup/AlertLookup.js +14 -12
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
- package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
- package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +18 -15
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
- package/es/list/Comment/Comment.module.css +0 -1
- package/es/list/Dot/Dot.module.css +0 -1
- package/es/list/ListLayout/ListLayout.js +4 -5
- package/es/list/ListLayout/ListLayout.module.css +0 -6
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +8 -9
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +4 -5
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +8 -1
- package/es/list/Thread/Thread.module.css +0 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/lookup/Lookup/Lookup.js +7 -7
- package/es/lookup/Lookup/Lookup.module.css +4 -1
- package/es/lookup/Lookup/props/propTypes.js +3 -2
- package/es/lookup/header/Search/Search.js +5 -3
- package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
- package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/es/v1/Drawer/Drawer.js +4 -5
- package/es/v1/ExternalLink/ExternalLink.js +4 -5
- package/es/v1/FlipCard/FlipCard.js +14 -12
- package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
- package/es/v1/IconButton/IconButton.js +4 -5
- package/es/v1/Link/Link.js +8 -10
- package/es/v1/Message/Message.js +4 -5
- package/es/v1/ToastMessage/ToastMessage.js +2 -4
- package/es/v1/actions/AutoClose.js +2 -1
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +18 -16
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/v1/list/ListLayout/ListLayout.js +4 -5
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +8 -9
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +7 -7
- package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
- package/es/v1/lookup/header/Search/Search.js +5 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
- package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
- package/lib/ActionButton/ActionButton.module.css +51 -4
- package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
- package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
- package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
- package/lib/FormAction/FormAction.module.css +18 -1
- package/lib/IconButton/IconButton.module.css +0 -1
- package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
- package/lib/list/Comment/Comment.module.css +0 -1
- package/lib/list/Dot/Dot.module.css +0 -1
- package/lib/list/ListLayout/ListLayout.module.css +0 -6
- package/lib/list/Subject/Subject.module.css +8 -1
- package/lib/list/Thread/Thread.module.css +0 -1
- package/lib/lookup/Lookup/Lookup.js +3 -2
- package/lib/lookup/Lookup/Lookup.module.css +4 -1
- package/lib/lookup/Lookup/props/propTypes.js +3 -2
- package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
- package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/lib/v1/lookup/Lookup/Lookup.js +3 -2
- package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
- package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
- package/package.json +9 -9
- package/result.json +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/* eslint-disable react/forbid-component-props */
|
|
4
2
|
|
|
5
3
|
/**** Libraries ****/
|
|
@@ -32,7 +30,7 @@ export default class PhoneNumber extends Component {
|
|
|
32
30
|
LinkProps = {},
|
|
33
31
|
TextProps = {}
|
|
34
32
|
} = customProps;
|
|
35
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
33
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
36
34
|
href: href,
|
|
37
35
|
title: title,
|
|
38
36
|
urlData: urlData,
|
|
@@ -40,13 +38,15 @@ export default class PhoneNumber extends Component {
|
|
|
40
38
|
dataId: dataId,
|
|
41
39
|
target: target,
|
|
42
40
|
hasReload: hasReload,
|
|
43
|
-
className: style.link
|
|
44
|
-
|
|
41
|
+
className: style.link,
|
|
42
|
+
...LinkProps
|
|
43
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
45
44
|
className: `${style.phoneNumber} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
46
|
-
}, text)) : /*#__PURE__*/React.createElement("div",
|
|
45
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
47
46
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
48
|
-
"data-title": title
|
|
49
|
-
|
|
47
|
+
"data-title": title,
|
|
48
|
+
...TextProps
|
|
49
|
+
}, text));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { Component } from 'react';
|
|
4
2
|
import { SecondaryText_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { SecondaryText_propTypes } from './props/propTypes';
|
|
@@ -21,13 +19,14 @@ export default class SecondaryText extends Component {
|
|
|
21
19
|
let {
|
|
22
20
|
SecondaryTextProps
|
|
23
21
|
} = customProps;
|
|
24
|
-
return /*#__PURE__*/React.createElement("div",
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
23
|
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
26
24
|
"data-title": dataTitle,
|
|
27
25
|
"data-id": dataId,
|
|
28
26
|
"data-test-id": dataId,
|
|
29
|
-
onClick: onClick
|
|
30
|
-
|
|
27
|
+
onClick: onClick,
|
|
28
|
+
...SecondaryTextProps
|
|
29
|
+
}, text);
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { Component } from 'react';
|
|
4
2
|
import { TicketId_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TicketId_propTypes } from './props/propTypes';
|
|
@@ -28,19 +26,21 @@ export default class TicketId extends Component {
|
|
|
28
26
|
LinkProps = {},
|
|
29
27
|
TicketIdProps = {}
|
|
30
28
|
} = customProps;
|
|
31
|
-
return /*#__PURE__*/React.createElement("div",
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
32
30
|
className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
|
|
33
31
|
"data-id": dataId,
|
|
34
32
|
"data-test-id": dataId,
|
|
35
33
|
"data-title": dataTitle,
|
|
36
|
-
onClick: !isLink && onClick
|
|
37
|
-
|
|
34
|
+
onClick: !isLink && onClick,
|
|
35
|
+
...TicketIdProps
|
|
36
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
38
37
|
urlName: urlName,
|
|
39
38
|
urlData: urlData,
|
|
40
39
|
href: url,
|
|
41
40
|
target: target,
|
|
42
|
-
onClick: onClick
|
|
43
|
-
|
|
41
|
+
onClick: onClick,
|
|
42
|
+
...LinkProps
|
|
43
|
+
}, text) : text);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { Component } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -30,7 +28,7 @@ export default class Subject extends Component {
|
|
|
30
28
|
LinkProps = {},
|
|
31
29
|
TextProps = {}
|
|
32
30
|
} = customProps;
|
|
33
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
31
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
34
32
|
urlName: urlName,
|
|
35
33
|
href: href,
|
|
36
34
|
urlData: urlData,
|
|
@@ -38,13 +36,15 @@ export default class Subject extends Component {
|
|
|
38
36
|
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
39
37
|
dataId: dataId,
|
|
40
38
|
title: text,
|
|
41
|
-
target: target
|
|
42
|
-
|
|
39
|
+
target: target,
|
|
40
|
+
...LinkProps
|
|
41
|
+
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
43
42
|
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
|
|
44
43
|
"data-title": text,
|
|
45
44
|
"data-id": dataId,
|
|
46
|
-
"data-test-id": dataId
|
|
47
|
-
|
|
45
|
+
"data-test-id": dataId,
|
|
46
|
+
...TextProps
|
|
47
|
+
}, text));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
}
|
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--subject_text: var(--zdt_subject_text);
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.subject {
|
|
5
6
|
composes: varClass;
|
|
6
7
|
/* css:theme-validation:ignore */
|
|
7
8
|
color: var(--subject_text);
|
|
8
9
|
display: block;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
.dotted {
|
|
11
13
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
12
14
|
}
|
|
15
|
+
|
|
13
16
|
.font_regular {
|
|
14
17
|
font-family: var(--zd_regular);
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
.font_semibold {
|
|
17
21
|
font-family: var(--zd_semibold);
|
|
18
22
|
}
|
|
23
|
+
|
|
19
24
|
.font_bold {
|
|
20
25
|
font-family: var(--zd_bold);
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.font_semibold,
|
|
23
29
|
.font_bold {
|
|
24
30
|
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
25
31
|
}
|
|
32
|
+
|
|
26
33
|
.cursorPointer {
|
|
27
34
|
cursor: pointer;
|
|
28
|
-
}
|
|
35
|
+
}
|
|
@@ -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 { defaultProps } from './props/defaultProps';
|
|
@@ -84,7 +82,7 @@ export default class StatusListItem extends React.Component {
|
|
|
84
82
|
options.target = `_${target}`;
|
|
85
83
|
}
|
|
86
84
|
|
|
87
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
85
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
88
86
|
role: role,
|
|
89
87
|
"aria-selected": ariaSelected,
|
|
90
88
|
isCover: false,
|
|
@@ -97,8 +95,10 @@ export default class StatusListItem extends React.Component {
|
|
|
97
95
|
eleRef: this.getRef,
|
|
98
96
|
tagName: isLink ? 'a' : 'li',
|
|
99
97
|
"data-title": isDisabled ? disableTitle : null,
|
|
100
|
-
tabindex: isDisabled ? '-1' : '0'
|
|
101
|
-
|
|
98
|
+
tabindex: isDisabled ? '-1' : '0',
|
|
99
|
+
...options,
|
|
100
|
+
...a11y
|
|
101
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
102
102
|
className: `${style.statusType} ${style[bulletColor]}`
|
|
103
103
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
104
104
|
flexible: true,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/*** Libraries ***/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -57,7 +55,8 @@ export default class Lookup extends Component {
|
|
|
57
55
|
onClose,
|
|
58
56
|
needFocusScope,
|
|
59
57
|
customProps,
|
|
60
|
-
isMinHeight
|
|
58
|
+
isMinHeight,
|
|
59
|
+
lookupClass
|
|
61
60
|
} = this.props;
|
|
62
61
|
const {
|
|
63
62
|
role = 'dialog',
|
|
@@ -77,7 +76,7 @@ export default class Lookup extends Component {
|
|
|
77
76
|
needFocusLoop = true,
|
|
78
77
|
needEnterAction = true
|
|
79
78
|
} = focusScopeProps;
|
|
80
|
-
const content = /*#__PURE__*/React.createElement("div",
|
|
79
|
+
const content = /*#__PURE__*/React.createElement("div", {
|
|
81
80
|
ref: this.createRef,
|
|
82
81
|
tabIndex: "-1",
|
|
83
82
|
"data-a11y-need-focus-style": "false",
|
|
@@ -87,10 +86,11 @@ export default class Lookup extends Component {
|
|
|
87
86
|
"aria-label": ariaLabel,
|
|
88
87
|
"aria-modal": ariaModal,
|
|
89
88
|
id: htmlId,
|
|
90
|
-
className: `${style.box} ${style[`${size}Size`]}`,
|
|
89
|
+
className: `${style.box} ${style[`${size}Size`]} ${lookupClass ? lookupClass : ''}`,
|
|
91
90
|
"data-id": dataId,
|
|
92
|
-
"data-test-id": dataId
|
|
93
|
-
|
|
91
|
+
"data-test-id": dataId,
|
|
92
|
+
...a11yAttributes
|
|
93
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
94
94
|
"data-drag-container": "true",
|
|
95
95
|
isCover: false,
|
|
96
96
|
className: isMinHeight ? `${style.wrapper}` : `${style.coverwrap}`
|
|
@@ -4,7 +4,7 @@ export const propTypes = {
|
|
|
4
4
|
customClass: PropTypes.string,
|
|
5
5
|
dataId: PropTypes.string,
|
|
6
6
|
isActive: PropTypes.bool,
|
|
7
|
-
size: PropTypes.oneOf(['small', 'xmedium', 'medium', 'large', 'full']),
|
|
7
|
+
size: PropTypes.oneOf(['small', 'xmedium', 'medium', 'large', 'xlarge', 'full']),
|
|
8
8
|
htmlId: PropTypes.string,
|
|
9
9
|
a11y: PropTypes.shape({
|
|
10
10
|
role: PropTypes.string,
|
|
@@ -19,5 +19,6 @@ export const propTypes = {
|
|
|
19
19
|
forwardRef: PropTypes.object,
|
|
20
20
|
onClick: PropTypes.func,
|
|
21
21
|
onClose: PropTypes.func,
|
|
22
|
-
isMinHeight: PropTypes.bool
|
|
22
|
+
isMinHeight: PropTypes.bool,
|
|
23
|
+
lookupClass: PropTypes.string
|
|
23
24
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/* eslint-disable react/forbid-component-props */
|
|
4
2
|
|
|
5
3
|
/*** Libraries ***/
|
|
@@ -100,7 +98,11 @@ export default class Search extends Component {
|
|
|
100
98
|
selectedId: selectedId,
|
|
101
99
|
onDropDownOpen: this.handleDropDownOpen,
|
|
102
100
|
onDropDownClose: this.handleDropDownClose
|
|
103
|
-
}, /*#__PURE__*/React.createElement(SearchUI,
|
|
101
|
+
}, /*#__PURE__*/React.createElement(SearchUI, { ...this.props,
|
|
102
|
+
...searchUIExtraProps
|
|
103
|
+
})) : /*#__PURE__*/React.createElement(SearchUI, { ...this.props,
|
|
104
|
+
...searchUIExtraProps
|
|
105
|
+
});
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*** Libraries ***/
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { memo, useRef } from 'react';
|
|
3
3
|
import { defaultProps } from './props/defaultProps';
|
|
4
4
|
import { propTypes } from './props/propTypes';
|
|
5
5
|
/*** Components ***/
|
|
@@ -9,6 +9,7 @@ import Close from '../Close/Close';
|
|
|
9
9
|
import Search from '../Search/Search';
|
|
10
10
|
import ViewDropDown from '../ViewDropDown/ViewDropDown';
|
|
11
11
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
12
|
+
import useDragger from '../../../Hooks/Dragger/useDragger';
|
|
12
13
|
/*** CSS ***/
|
|
13
14
|
|
|
14
15
|
import commonStyle from '../lookupHeaderCommon.module.css';
|
|
@@ -16,81 +17,95 @@ import commonResponsive from '../lookupHeaderCommonResponsive.module.css';
|
|
|
16
17
|
import style from './TicketHeader.module.css';
|
|
17
18
|
/* eslint-disable react/forbid-component-props */
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
align: "vertical",
|
|
43
|
-
alignBox: "row",
|
|
44
|
-
className: `${commonStyle.container} ${commonStyle[`${palette}`]} ${commonResponsive.container} ${style.container}`,
|
|
45
|
-
isCover: false,
|
|
46
|
-
wrap: "wrap"
|
|
47
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: commonStyle.closeContainer
|
|
49
|
-
}, /*#__PURE__*/React.createElement(Close, {
|
|
50
|
-
onClose: onLookupClose,
|
|
51
|
-
dataId: "close"
|
|
52
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
53
|
-
flexible: true
|
|
54
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
55
|
-
alignBox: "column",
|
|
56
|
-
className: `${style.innerContainer}`,
|
|
57
|
-
isCover: false,
|
|
58
|
-
wrap: "wrap",
|
|
59
|
-
dataId: "lookupView"
|
|
60
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
61
|
-
className: commonStyle.title
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
63
|
-
text: title
|
|
64
|
-
})), needViewsList ? /*#__PURE__*/React.createElement(Box, {
|
|
65
|
-
className: `${style.dropdown}`,
|
|
66
|
-
dataId: "filterIdselected"
|
|
67
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
className: style.menuWrapper
|
|
69
|
-
}, /*#__PURE__*/React.createElement(ViewDropDown, {
|
|
70
|
-
dropBoxSize: "small",
|
|
71
|
-
emptyMessage: menuEmptyMessage,
|
|
72
|
-
needSearch: true,
|
|
73
|
-
onChange: onSelectView,
|
|
74
|
-
options: allViews,
|
|
75
|
-
textField: "displayLabel",
|
|
76
|
-
selectedValue: selectedViewId,
|
|
77
|
-
needCloseOnSelect: true
|
|
78
|
-
}))) : null)), needSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
79
|
-
className: `${commonStyle.searchContainer} ${commonResponsive.searchContainer} ${style.searchContainer}`
|
|
80
|
-
}, /*#__PURE__*/React.createElement(Search, {
|
|
81
|
-
onSearch: onSearch,
|
|
82
|
-
searchStr: searchStr,
|
|
83
|
-
onChange: onSearchChange,
|
|
84
|
-
placeHolder: searchPlaceHolder,
|
|
85
|
-
dataId: "search",
|
|
86
|
-
needOnTypeSearch: needOnTypeSearch,
|
|
87
|
-
getRef: getSearchBoxRef
|
|
88
|
-
})) : null);
|
|
89
|
-
}
|
|
20
|
+
function TicketHeader(props) {
|
|
21
|
+
let {
|
|
22
|
+
needSearch,
|
|
23
|
+
onLookupClose,
|
|
24
|
+
searchStr,
|
|
25
|
+
onSearchChange,
|
|
26
|
+
searchPlaceHolder,
|
|
27
|
+
title,
|
|
28
|
+
selectedViewId,
|
|
29
|
+
onSelectView,
|
|
30
|
+
allViews,
|
|
31
|
+
onSearch,
|
|
32
|
+
needOnTypeSearch,
|
|
33
|
+
getSearchBoxRef,
|
|
34
|
+
needViewsList,
|
|
35
|
+
i18nKeys,
|
|
36
|
+
palette,
|
|
37
|
+
dragBoundaryLimit
|
|
38
|
+
} = props;
|
|
39
|
+
let {
|
|
40
|
+
menuEmptyMessage = 'No matches found'
|
|
41
|
+
} = i18nKeys;
|
|
42
|
+
const dragRef = useRef(null); //dragRef
|
|
90
43
|
|
|
44
|
+
useDragger({
|
|
45
|
+
isActive: true,
|
|
46
|
+
ChildRef: dragRef,
|
|
47
|
+
boundaryLimit: dragBoundaryLimit
|
|
48
|
+
}); //custom Hook
|
|
49
|
+
|
|
50
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
51
|
+
align: "vertical",
|
|
52
|
+
alignBox: "row",
|
|
53
|
+
className: `${commonStyle.container} ${commonStyle[`${palette}`]} ${commonResponsive.container} ${style.container}`,
|
|
54
|
+
isCover: false,
|
|
55
|
+
wrap: "wrap",
|
|
56
|
+
eleRef: dragRef,
|
|
57
|
+
"data-drag-hook": "true"
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
59
|
+
flexible: true
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
61
|
+
alignBox: "column",
|
|
62
|
+
className: `${style.innerContainer}`,
|
|
63
|
+
isCover: false,
|
|
64
|
+
wrap: "wrap",
|
|
65
|
+
dataId: "lookupView"
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
67
|
+
className: commonStyle.title
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
69
|
+
text: title
|
|
70
|
+
})), needViewsList ? /*#__PURE__*/React.createElement(Box, {
|
|
71
|
+
className: `${style.dropdown}`,
|
|
72
|
+
dataId: "filterIdselected"
|
|
73
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: style.menuWrapper
|
|
75
|
+
}, /*#__PURE__*/React.createElement(ViewDropDown, {
|
|
76
|
+
dropBoxSize: "small",
|
|
77
|
+
emptyMessage: menuEmptyMessage,
|
|
78
|
+
needSearch: true,
|
|
79
|
+
onChange: onSelectView,
|
|
80
|
+
options: allViews,
|
|
81
|
+
textField: "displayLabel",
|
|
82
|
+
selectedValue: selectedViewId,
|
|
83
|
+
needCloseOnSelect: true
|
|
84
|
+
}))) : null)), needSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
85
|
+
className: `${commonStyle.searchContainer} ${commonResponsive.searchContainer} ${style.searchContainer}`
|
|
86
|
+
}, /*#__PURE__*/React.createElement(Search, {
|
|
87
|
+
onSearch: onSearch,
|
|
88
|
+
searchStr: searchStr,
|
|
89
|
+
onChange: onSearchChange,
|
|
90
|
+
placeHolder: searchPlaceHolder,
|
|
91
|
+
dataId: "search",
|
|
92
|
+
needOnTypeSearch: needOnTypeSearch,
|
|
93
|
+
getRef: getSearchBoxRef
|
|
94
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
className: commonStyle.closeContainer
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Close, {
|
|
97
|
+
onClose: onLookupClose,
|
|
98
|
+
dataId: "close"
|
|
99
|
+
})));
|
|
91
100
|
}
|
|
101
|
+
|
|
92
102
|
TicketHeader.propTypes = propTypes;
|
|
93
|
-
TicketHeader.defaultProps = defaultProps;
|
|
103
|
+
TicketHeader.defaultProps = defaultProps;
|
|
104
|
+
const MemoizedTicketHeader = /*#__PURE__*/memo(TicketHeader);
|
|
105
|
+
MemoizedTicketHeader.propTypes = propTypes;
|
|
106
|
+
MemoizedTicketHeader.defaultProps = defaultProps;
|
|
107
|
+
MemoizedTicketHeader.displayName = 'TicketHeader';
|
|
108
|
+
export default MemoizedTicketHeader; // if (__DOCS__) {
|
|
94
109
|
// TicketHeader.docs = {
|
|
95
110
|
// componentGroup: 'Lookup'
|
|
96
111
|
// };
|
package/es/v1/Drawer/Drawer.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 } from 'react';
|
|
4
2
|
import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from './props/propTypes';
|
|
@@ -161,12 +159,13 @@ export default function Drawer(props) {
|
|
|
161
159
|
|
|
162
160
|
return child;
|
|
163
161
|
});
|
|
164
|
-
let content = /*#__PURE__*/React.createElement(Box,
|
|
162
|
+
let content = /*#__PURE__*/React.createElement(Box, {
|
|
165
163
|
className: `${style.container} ${style.columns} ${style.drawerModal} ${uptoTablet ? style.mbleSize : style[size]}`,
|
|
166
164
|
"data-a11y-need-focus-style": "false",
|
|
167
165
|
tabindex: -1,
|
|
168
|
-
eleRef: contentRef
|
|
169
|
-
|
|
166
|
+
eleRef: contentRef,
|
|
167
|
+
...a11y
|
|
168
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
170
169
|
onClick: e => {
|
|
171
170
|
e && e.stopPropagation && e.stopPropagation();
|
|
172
171
|
onBodyClick(e);
|
|
@@ -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 { defaultProps } from './props/defaultProps';
|
|
@@ -32,7 +30,7 @@ const ExternalLink = props => {
|
|
|
32
30
|
};
|
|
33
31
|
|
|
34
32
|
let urlOutput = href && typeof href !== 'boolean' ? addHttp(String(href)) : 'javascript:void(0);';
|
|
35
|
-
return /*#__PURE__*/React.createElement("a",
|
|
33
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
36
34
|
href: urlOutput,
|
|
37
35
|
target: target,
|
|
38
36
|
className: `${style.link} ${className ? className : ''}`,
|
|
@@ -40,8 +38,9 @@ const ExternalLink = props => {
|
|
|
40
38
|
rel: rel,
|
|
41
39
|
"data-id": dataId,
|
|
42
40
|
"data-test-id": dataId,
|
|
43
|
-
onClick: onClick
|
|
44
|
-
|
|
41
|
+
onClick: onClick,
|
|
42
|
+
...customProps
|
|
43
|
+
}, children);
|
|
45
44
|
};
|
|
46
45
|
|
|
47
46
|
ExternalLink.defaultProps = defaultProps;
|
|
@@ -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';
|
|
@@ -76,16 +74,17 @@ export default function FlipCard(props) {
|
|
|
76
74
|
}, !noNeedFlip ? /*#__PURE__*/React.createElement(Container, {
|
|
77
75
|
align: "both",
|
|
78
76
|
className: `${style.front} ${frontClass ? frontClass : ''}`
|
|
79
|
-
}, /*#__PURE__*/React.createElement(CheckBox,
|
|
77
|
+
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
80
78
|
isFilled: isFilledCheckbox,
|
|
81
79
|
checked: isChecked,
|
|
82
80
|
onChange: onChange,
|
|
83
81
|
id: `checkbox_${id}`,
|
|
84
|
-
dataId: `listViewCheckBox_${id}
|
|
85
|
-
|
|
82
|
+
dataId: `listViewCheckBox_${id}`,
|
|
83
|
+
...CheckBoxProps
|
|
84
|
+
})) : null, /*#__PURE__*/React.createElement(Container, {
|
|
86
85
|
align: "both",
|
|
87
86
|
className: style.back
|
|
88
|
-
}, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon,
|
|
87
|
+
}, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon, {
|
|
89
88
|
name: channel,
|
|
90
89
|
action: action,
|
|
91
90
|
size: size,
|
|
@@ -98,8 +97,9 @@ export default function FlipCard(props) {
|
|
|
98
97
|
customTextClass: customTextClass,
|
|
99
98
|
iconColor: iconColor,
|
|
100
99
|
title: channelTitle,
|
|
101
|
-
iconTitle: channelTitle
|
|
102
|
-
|
|
100
|
+
iconTitle: channelTitle,
|
|
101
|
+
...ChannelIconProps
|
|
102
|
+
}) : icon ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
103
103
|
name: icon,
|
|
104
104
|
iconSize: iconSize,
|
|
105
105
|
size: size,
|
|
@@ -107,8 +107,9 @@ export default function FlipCard(props) {
|
|
|
107
107
|
dataId: icon,
|
|
108
108
|
className: className,
|
|
109
109
|
iconColor: iconColor,
|
|
110
|
-
title: needTitle ? name : ''
|
|
111
|
-
|
|
110
|
+
title: needTitle ? name : '',
|
|
111
|
+
...AvatarIconProps
|
|
112
|
+
}) : /*#__PURE__*/React.createElement(AvatarUser, {
|
|
112
113
|
name: name,
|
|
113
114
|
initial: initial,
|
|
114
115
|
size: size,
|
|
@@ -119,8 +120,9 @@ export default function FlipCard(props) {
|
|
|
119
120
|
needTitle: needTitle,
|
|
120
121
|
palette: palette,
|
|
121
122
|
textPalette: textPalette,
|
|
122
|
-
customTextClass: customTextClass
|
|
123
|
-
|
|
123
|
+
customTextClass: customTextClass,
|
|
124
|
+
...AvatarUserProps
|
|
125
|
+
}))));
|
|
124
126
|
}
|
|
125
127
|
FlipCard.propTypes = propTypes;
|
|
126
128
|
FlipCard.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -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, { useEffect } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes, UI_propTypes, new_propTypes } from './props/propTypes';
|
|
@@ -96,7 +94,7 @@ export function GlobalNotificationUI(props) {
|
|
|
96
94
|
onClose && onClose(e);
|
|
97
95
|
}
|
|
98
96
|
|
|
99
|
-
return /*#__PURE__*/React.createElement("div",
|
|
97
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
100
98
|
ref: eleRef,
|
|
101
99
|
className: ` ${style.message}
|
|
102
100
|
${needShadow && shadowCount >= 2 ? shadowCount > 2 ? `${style.stackShadowTwo} ${style.stackShadowOne}` : style.stackShadowOne : ''}
|
|
@@ -105,8 +103,9 @@ export function GlobalNotificationUI(props) {
|
|
|
105
103
|
"data-id": `show_${type}_message`,
|
|
106
104
|
"data-test-id": `show_${type}_message`,
|
|
107
105
|
tabIndex: 0,
|
|
108
|
-
"data-selector-id": dataSelectorId
|
|
109
|
-
|
|
106
|
+
"data-selector-id": dataSelectorId,
|
|
107
|
+
...ExtraProps
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
110
109
|
className: `${style.container}`,
|
|
111
110
|
alignBox: "row",
|
|
112
111
|
isCover: false,
|
|
@@ -138,8 +137,8 @@ export function GlobalNotificationUI(props) {
|
|
|
138
137
|
}
|
|
139
138
|
GlobalNotificationUI.propTypes = UI_propTypes;
|
|
140
139
|
export function GlobalNotificationNew(props) {
|
|
141
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
140
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
142
141
|
Element: GlobalNotificationUI
|
|
143
|
-
})
|
|
142
|
+
});
|
|
144
143
|
}
|
|
145
144
|
GlobalNotificationNew.propTypes = new_propTypes;
|