@zohodesk/dot 1.0.0-temp-184.2 → 1.0.0-temp-185
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/PropUnificationExcludeFilesArray.js +344 -344
- package/.cli/PropValidationExcludeFilesArray.js +8 -8
- package/.cli/propValidation_report.html +1 -1
- package/README.md +8 -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 +1 -1
- 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/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/css_error.log +1 -1
- package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/es/Drawer/Drawer.js +4 -5
- package/es/Drawer/Drawer.module.css +2 -2
- package/es/ExternalLink/ExternalLink.js +4 -5
- package/es/FlipCard/FlipCard.js +14 -12
- package/es/IconButton/IconButton.js +4 -5
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -316
- package/es/Link/Link.js +8 -10
- package/es/Message/Message.js +4 -5
- package/es/Message/Message.module.css +1 -1
- package/es/PlusIcon/PlusIcon.module.css +1 -1
- package/es/ToastMessage/ToastMessage.js +2 -4
- package/es/ToastMessage/ToastMessage.module.css +1 -1
- 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/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/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/TextEditor/TextEditor.module.css +49 -63
- 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/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/es/list/DotNew/DotNew.module.css +2 -1
- package/es/list/ListLayout/ListLayout.js +4 -5
- 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/TagNew/TagNew.module.css +1 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +30 -115
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/lookup/Lookup/Lookup.js +4 -5
- package/es/lookup/Section/LookupSection.module.css +1 -1
- package/es/lookup/header/Search/Search.js +5 -3
- 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/StatusDropdown/StatusDropdown.js +32 -106
- package/es/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +4 -5
- package/es/v1/lookup/header/Search/Search.js +5 -3
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/v1/svg/PlusIcon.js +1 -1
- package/es/v1/svg/SnippetIcon.js +2 -2
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.module.css +2 -2
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -3
- package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/lib/Drawer/Drawer.module.css +2 -2
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -316
- package/lib/Message/Message.module.css +1 -1
- package/lib/PlusIcon/PlusIcon.module.css +1 -1
- package/lib/ToastMessage/ToastMessage.module.css +1 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +49 -63
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/lib/list/DotNew/DotNew.module.css +2 -1
- package/lib/list/TagNew/TagNew.module.css +1 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +77 -161
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/lib/lookup/Section/LookupSection.module.css +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +31 -103
- package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/lib/v1/svg/PlusIcon.js +1 -1
- package/lib/v1/svg/SnippetIcon.js +2 -2
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +2 -2
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -3
- package/package.json +11 -7
- package/propValidationArg.json +11 -11
- package/result.json +1 -1
- /package/es/{common → deprecated}/dot_boxShadow.module.css +0 -0
- /package/lib/{common → deprecated}/dot_boxShadow.module.css +0 -0
package/es/Message/Message.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, MessageUI_propTypes, MessageNew_propTypes } from './props/propTypes';
|
|
@@ -43,7 +41,8 @@ export default class Message extends React.Component {
|
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
render() {
|
|
46
|
-
return /*#__PURE__*/React.createElement(MessageUI, this.props
|
|
44
|
+
return /*#__PURE__*/React.createElement(MessageUI, { ...this.props
|
|
45
|
+
});
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
}
|
|
@@ -111,8 +110,8 @@ export function MessageUI(props) {
|
|
|
111
110
|
}
|
|
112
111
|
MessageUI.propTypes = MessageUI_propTypes;
|
|
113
112
|
export function MessageNew(props) {
|
|
114
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
113
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
115
114
|
Element: MessageUI
|
|
116
|
-
})
|
|
115
|
+
});
|
|
117
116
|
}
|
|
118
117
|
MessageNew.propTypes = MessageNew_propTypes;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
position: relative;
|
|
18
18
|
display: inline-block;
|
|
19
19
|
pointer-events: initial;
|
|
20
|
-
box-shadow: var(--
|
|
20
|
+
box-shadow: var(--zd_bs_contrast_outline, 0 0 19px 1px var(--zdt_message_default_box_shadow));
|
|
21
21
|
border-radius: 0 0 5px 5px;
|
|
22
22
|
background: var(--zdt_message_default_bg);
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
|
|
3
3
|
border-radius: 50%;
|
|
4
|
-
box-shadow: var(--
|
|
4
|
+
box-shadow: var(--zd_bs_contrast_outline, 0 2px 3px 0 var(--zdt_plusicon_box_shadow));
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
background-color: var(--zdt_plusicon_bg);
|
|
7
7
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useState } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes'; //components
|
|
@@ -191,9 +189,9 @@ function ToastMessageUI(props) {
|
|
|
191
189
|
}
|
|
192
190
|
|
|
193
191
|
export default function ToastMessage(props) {
|
|
194
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
192
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
195
193
|
Element: ToastMessageUI
|
|
196
|
-
})
|
|
194
|
+
});
|
|
197
195
|
}
|
|
198
196
|
ToastMessage.propTypes = propTypes;
|
|
199
197
|
ToastMessage.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
max-height: 100% ;
|
|
5
5
|
border-radius: 5px;
|
|
6
|
-
box-shadow: var(--
|
|
6
|
+
box-shadow: var(--zd_bs_contrast_outline, 0 5px 40px 7px var(--zdt_toastmessage_default_box_shadow));
|
|
7
7
|
background-color: var(--zdt_toastmessage_default_bg);
|
|
8
8
|
margin-bottom: var(--zd_size7) ;
|
|
9
9
|
}[dir=ltr] .container {
|
package/es/actions/AutoClose.js
CHANGED
|
@@ -37,7 +37,8 @@ export default function AutoClose(props) {
|
|
|
37
37
|
isClose,
|
|
38
38
|
onClose
|
|
39
39
|
});
|
|
40
|
-
return /*#__PURE__*/React.createElement(Element, newProps
|
|
40
|
+
return /*#__PURE__*/React.createElement(Element, { ...newProps
|
|
41
|
+
});
|
|
41
42
|
}
|
|
42
43
|
AutoClose.propTypes = propTypes;
|
|
43
44
|
AutoClose.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
|
/**** Libraries ****/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -51,7 +49,7 @@ export default class AlertLookup extends Component {
|
|
|
51
49
|
PrimaryButtonProps = {},
|
|
52
50
|
SecondaryButtonProps = {}
|
|
53
51
|
} = customProps;
|
|
54
|
-
return /*#__PURE__*/React.createElement(Lookup,
|
|
52
|
+
return /*#__PURE__*/React.createElement(Lookup, {
|
|
55
53
|
needFocusScope: true,
|
|
56
54
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
57
55
|
isActive: isActive,
|
|
@@ -59,8 +57,9 @@ export default class AlertLookup extends Component {
|
|
|
59
57
|
dataId: dataId,
|
|
60
58
|
forwardRef: forwardRef,
|
|
61
59
|
onClick: onLookupClick,
|
|
62
|
-
customClass: customClass
|
|
63
|
-
|
|
60
|
+
customClass: customClass,
|
|
61
|
+
...LookupProps
|
|
62
|
+
}, /*#__PURE__*/React.createElement(AlertHeader, {
|
|
64
63
|
title: title,
|
|
65
64
|
palette: palette,
|
|
66
65
|
iconType: type,
|
|
@@ -69,8 +68,9 @@ export default class AlertLookup extends Component {
|
|
|
69
68
|
breakChildren: wrapHeader,
|
|
70
69
|
iconName: iconName,
|
|
71
70
|
iconClass: iconClass,
|
|
72
|
-
iconSize: iconSize
|
|
73
|
-
|
|
71
|
+
iconSize: iconSize,
|
|
72
|
+
...AlertHeaderProps
|
|
73
|
+
}, headerChildren ? headerChildren() : null), /*#__PURE__*/React.createElement(Section, {
|
|
74
74
|
alignBox: "row",
|
|
75
75
|
className: style.section
|
|
76
76
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -84,17 +84,19 @@ export default class AlertLookup extends Component {
|
|
|
84
84
|
}, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(FormAction, {
|
|
85
85
|
size: "small",
|
|
86
86
|
paddingLeftSize: "xsmall"
|
|
87
|
-
}, /*#__PURE__*/React.createElement(Button,
|
|
87
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
88
88
|
text: submitText,
|
|
89
89
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
90
90
|
onClick: onSubmitClick,
|
|
91
|
-
palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
|
|
92
|
-
|
|
91
|
+
palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled',
|
|
92
|
+
...PrimaryButtonProps
|
|
93
|
+
}), cancelText && /*#__PURE__*/React.createElement(Button, {
|
|
93
94
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
94
95
|
text: cancelText,
|
|
95
96
|
onClick: onCancelClick,
|
|
96
|
-
palette: "secondary"
|
|
97
|
-
|
|
97
|
+
palette: "secondary",
|
|
98
|
+
...SecondaryButtonProps
|
|
99
|
+
})) : null));
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
}
|
|
@@ -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';
|
|
@@ -26,15 +24,17 @@ export default class AvatarClose extends React.Component {
|
|
|
26
24
|
AvatarCloseProps = {},
|
|
27
25
|
AvatarProps = {}
|
|
28
26
|
} = customProps;
|
|
29
|
-
return /*#__PURE__*/React.createElement("div",
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
28
|
className: style.container,
|
|
31
|
-
"data-selector-id": dataSelectorId
|
|
32
|
-
|
|
29
|
+
"data-selector-id": dataSelectorId,
|
|
30
|
+
...AvatarCloseProps
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
33
32
|
src: src,
|
|
34
33
|
name: name,
|
|
35
34
|
title: title,
|
|
36
|
-
size: size
|
|
37
|
-
|
|
35
|
+
size: size,
|
|
36
|
+
...AvatarProps
|
|
37
|
+
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
38
38
|
className: style.pop,
|
|
39
39
|
onClick: onClick
|
|
40
40
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -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';
|
|
@@ -29,21 +27,23 @@ export default class AvatarCollision extends React.Component {
|
|
|
29
27
|
AvatarCollisionProps = {},
|
|
30
28
|
AvatarProps = {}
|
|
31
29
|
} = customProps;
|
|
32
|
-
return /*#__PURE__*/React.createElement("div",
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
31
|
className: `${style.container} ${isLeft ? style.off : isIdle ? style.idle : style.on}`,
|
|
34
32
|
onClick: onClick,
|
|
35
33
|
"data-id": "collsionPop",
|
|
36
34
|
"data-test-id": "collsionPop",
|
|
37
35
|
"data-title": title,
|
|
38
|
-
"data-selector-id": dataSelectorId
|
|
39
|
-
|
|
36
|
+
"data-selector-id": dataSelectorId,
|
|
37
|
+
...AvatarCollisionProps
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
40
39
|
src: src,
|
|
41
40
|
name: name,
|
|
42
41
|
size: size,
|
|
43
42
|
palette: "default",
|
|
44
43
|
needTitle: false,
|
|
45
|
-
initial: initial
|
|
46
|
-
|
|
44
|
+
initial: initial,
|
|
45
|
+
...AvatarProps
|
|
46
|
+
}), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
|
|
47
47
|
className: style.pop,
|
|
48
48
|
"data-title": title
|
|
49
49
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -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';
|
|
@@ -30,7 +28,7 @@ export default class AvatarIcon extends React.Component {
|
|
|
30
28
|
AvatarIconProps = {}
|
|
31
29
|
} = customProps;
|
|
32
30
|
let border = borderOnHover || onClick;
|
|
33
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
31
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
34
32
|
className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ${AvatarSize(size)} ${style[palette]} ${className}`,
|
|
35
33
|
onClick: onClick,
|
|
36
34
|
dataId: dataId,
|
|
@@ -38,8 +36,9 @@ export default class AvatarIcon extends React.Component {
|
|
|
38
36
|
isInline: true,
|
|
39
37
|
align: "both",
|
|
40
38
|
isCover: false,
|
|
41
|
-
dataSelectorId: dataSelectorId
|
|
42
|
-
|
|
39
|
+
dataSelectorId: dataSelectorId,
|
|
40
|
+
...AvatarIconProps
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
43
42
|
name: name,
|
|
44
43
|
size: iconSize,
|
|
45
44
|
iconClass: ` ${iconClass} ${style.iconColor} ${iconColor ? ` ${style[`icon_${iconColor}`]}` : ''} `,
|
|
@@ -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';
|
|
@@ -36,12 +34,12 @@ export default class AvatarStatus extends React.Component {
|
|
|
36
34
|
AvatarStatusProps = {},
|
|
37
35
|
AvatarProps = {}
|
|
38
36
|
} = customProps;
|
|
39
|
-
return /*#__PURE__*/React.createElement("div",
|
|
40
|
-
className: `${style.container} ${className}
|
|
41
|
-
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: `${style.container} ${className} `,
|
|
39
|
+
...AvatarStatusProps,
|
|
42
40
|
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
43
41
|
"data-selector-id": dataSelectorId
|
|
44
|
-
}
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
45
43
|
src: src,
|
|
46
44
|
name: name,
|
|
47
45
|
palette: palette,
|
|
@@ -55,8 +53,9 @@ export default class AvatarStatus extends React.Component {
|
|
|
55
53
|
shape: shape,
|
|
56
54
|
needTitle: needTitle,
|
|
57
55
|
needDefaultBorder: needDefaultBorder,
|
|
58
|
-
needBorder: needBorder
|
|
59
|
-
|
|
56
|
+
needBorder: needBorder,
|
|
57
|
+
...AvatarProps
|
|
58
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
60
59
|
"data-title": statusTitle,
|
|
61
60
|
className: `${style.state} ${style[state]} ${style[size]} ${style[shape]}`
|
|
62
61
|
}));
|
|
@@ -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';
|
|
@@ -39,10 +37,11 @@ export default class AvatarThread extends React.Component {
|
|
|
39
37
|
AvatarProps = {}
|
|
40
38
|
} = customProps;
|
|
41
39
|
let hoverEffect = showOnHover ? style.hover : '';
|
|
42
|
-
return /*#__PURE__*/React.createElement("div",
|
|
40
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
41
|
className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}`,
|
|
44
|
-
"data-selector-id": dataSelectorId
|
|
45
|
-
|
|
42
|
+
"data-selector-id": dataSelectorId,
|
|
43
|
+
...AvatarThreadProps
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
46
45
|
initial: initial,
|
|
47
46
|
src: src,
|
|
48
47
|
name: name,
|
|
@@ -53,8 +52,9 @@ export default class AvatarThread extends React.Component {
|
|
|
53
52
|
palette: palette,
|
|
54
53
|
textPalette: textPalette,
|
|
55
54
|
customClass: customTextClass,
|
|
56
|
-
needTitle: needTitle
|
|
57
|
-
|
|
55
|
+
needTitle: needTitle,
|
|
56
|
+
...AvatarProps
|
|
57
|
+
}), (iconName || getCustomThread) && /*#__PURE__*/React.createElement("span", {
|
|
58
58
|
className: `${style.thread} ${onIconClick ? style.pointer : style.defaultCursor} ${needBackground ? style.threadBg : ''} ${style[`thread_${size}_pos`]} ${needBorder ? style[`border_${borderPalette}`] : ''}`,
|
|
59
59
|
"data-title": iconTitle,
|
|
60
60
|
"data-id": iconTitle === 'Remove Follower' && 'removeFollower',
|
|
@@ -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';
|
|
@@ -50,20 +48,22 @@ export default class AvatarUser extends React.Component {
|
|
|
50
48
|
portalTitle = 'End User',
|
|
51
49
|
lockTitle = 'Locked'
|
|
52
50
|
} = i18nKeys;
|
|
53
|
-
return /*#__PURE__*/React.createElement("div",
|
|
51
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
52
|
className: `${style.container} ${style[size]}`,
|
|
55
53
|
"data-id": dataId || name || iconName,
|
|
56
54
|
"data-test-id": dataId || name || iconName,
|
|
57
|
-
"data-selector-id": dataSelectorId
|
|
58
|
-
|
|
55
|
+
"data-selector-id": dataSelectorId,
|
|
56
|
+
...AvatarUserProps
|
|
57
|
+
}, iconName ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
59
58
|
name: iconName,
|
|
60
59
|
iconSize: iconSize,
|
|
61
60
|
size: size,
|
|
62
61
|
iconClass: iconClass,
|
|
63
62
|
dataId: iconName,
|
|
64
63
|
iconColor: iconColor,
|
|
65
|
-
title: title
|
|
66
|
-
|
|
64
|
+
title: title,
|
|
65
|
+
...AvatarIconProps
|
|
66
|
+
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
67
67
|
src: src,
|
|
68
68
|
name: name,
|
|
69
69
|
initial: initial,
|
|
@@ -74,8 +74,9 @@ export default class AvatarUser extends React.Component {
|
|
|
74
74
|
palette: palette,
|
|
75
75
|
textPalette: textPalette,
|
|
76
76
|
customClass: customTextClass,
|
|
77
|
-
alternateSrc: alternateSrc
|
|
78
|
-
|
|
77
|
+
alternateSrc: alternateSrc,
|
|
78
|
+
...AvatarProps
|
|
79
|
+
}), isPaid ? /*#__PURE__*/React.createElement("span", {
|
|
79
80
|
"data-title": paidTitle,
|
|
80
81
|
className: style.paid,
|
|
81
82
|
"data-id": "paidUser",
|
|
@@ -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';
|
|
@@ -33,12 +31,13 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
33
31
|
Avatar2Props = {},
|
|
34
32
|
AvatarTeam2Props = {}
|
|
35
33
|
} = customProps;
|
|
36
|
-
return /*#__PURE__*/React.createElement("span",
|
|
34
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
37
35
|
className: `${style.container} `,
|
|
38
36
|
"data-id": "avatarWithTeamId",
|
|
39
37
|
"data-test-id": "avatarWithTeamId",
|
|
40
|
-
"data-selector-id": dataSelectorId
|
|
41
|
-
|
|
38
|
+
"data-selector-id": dataSelectorId,
|
|
39
|
+
...AvatarWithTeamProps
|
|
40
|
+
}, isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, {
|
|
42
41
|
name: name,
|
|
43
42
|
src: src,
|
|
44
43
|
size: size,
|
|
@@ -47,8 +46,9 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
47
46
|
palette: palette,
|
|
48
47
|
textPalette: textPalette,
|
|
49
48
|
customClass: customTextClass,
|
|
50
|
-
borderOnActive: borderOnActive
|
|
51
|
-
|
|
49
|
+
borderOnActive: borderOnActive,
|
|
50
|
+
...Avatar1Props
|
|
51
|
+
}) : isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
52
52
|
name: name,
|
|
53
53
|
src: src,
|
|
54
54
|
size: size,
|
|
@@ -59,8 +59,9 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
59
59
|
customClass: {
|
|
60
60
|
customAvatar: customTextClass
|
|
61
61
|
},
|
|
62
|
-
borderOnActive: borderOnActive
|
|
63
|
-
|
|
62
|
+
borderOnActive: borderOnActive,
|
|
63
|
+
...AvatarTeam1Props
|
|
64
|
+
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
64
65
|
name: name,
|
|
65
66
|
src: src,
|
|
66
67
|
size: size,
|
|
@@ -69,13 +70,14 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
69
70
|
palette: palette,
|
|
70
71
|
textPalette: textPalette,
|
|
71
72
|
customClass: customTextClass,
|
|
72
|
-
borderOnActive: borderOnActive
|
|
73
|
-
|
|
73
|
+
borderOnActive: borderOnActive,
|
|
74
|
+
...Avatar2Props
|
|
75
|
+
}), teamName ? /*#__PURE__*/React.createElement("span", {
|
|
74
76
|
className: `${style.teamAvatar} ${teamClassName} `,
|
|
75
77
|
"data-id": "teamNameTestId",
|
|
76
78
|
"data-test-id": "teamNameTestId",
|
|
77
79
|
"data-title": needTitle ? title : undefined
|
|
78
|
-
}, /*#__PURE__*/React.createElement(AvatarTeam,
|
|
80
|
+
}, /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
79
81
|
name: teamName,
|
|
80
82
|
size: "small",
|
|
81
83
|
palette: palette,
|
|
@@ -85,8 +87,9 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
85
87
|
customClass: {
|
|
86
88
|
customAvatar: customTextClass
|
|
87
89
|
},
|
|
88
|
-
borderOnActive: teamBorderActive
|
|
89
|
-
|
|
90
|
+
borderOnActive: teamBorderActive,
|
|
91
|
+
...AvatarTeam2Props
|
|
92
|
+
})) : null);
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
}
|
|
@@ -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, Fragment } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -550,21 +548,22 @@ export class ToggleDropDown extends Component {
|
|
|
550
548
|
let listIndex = -1;
|
|
551
549
|
const ariaTitleId = this.getAriaId(); // const allyOptionsArr = this.getOptionsArray();
|
|
552
550
|
|
|
553
|
-
return /*#__PURE__*/React.createElement("div",
|
|
551
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
554
552
|
className: style.wrapper,
|
|
555
553
|
onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
|
|
556
554
|
onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
|
|
557
|
-
"data-selector-id": dataSelectorId
|
|
558
|
-
|
|
555
|
+
"data-selector-id": dataSelectorId,
|
|
556
|
+
...ToggleDropDownProps
|
|
557
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
559
558
|
alignBox: "row",
|
|
560
559
|
onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
|
|
561
560
|
eleRef: getTargetRef,
|
|
562
561
|
align: "vertical",
|
|
563
562
|
isCover: false,
|
|
564
563
|
dataId: dataId
|
|
565
|
-
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component,
|
|
564
|
+
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, { ...componentProps,
|
|
566
565
|
isActive: isPopupOpen
|
|
567
|
-
})
|
|
566
|
+
}) : children : /*#__PURE__*/React.createElement(RippleEffect, {
|
|
568
567
|
hoverType: hoverType,
|
|
569
568
|
isActive: isPopupOpen,
|
|
570
569
|
isNeedEffect: isEditable && isNeedEffect
|
|
@@ -602,7 +601,7 @@ export class ToggleDropDown extends Component {
|
|
|
602
601
|
let {
|
|
603
602
|
tabletMode
|
|
604
603
|
} = _ref4;
|
|
605
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox,
|
|
604
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
606
605
|
boxPosition: position,
|
|
607
606
|
isActive: isPopupReady,
|
|
608
607
|
onClick: removeClose,
|
|
@@ -638,12 +637,12 @@ export class ToggleDropDown extends Component {
|
|
|
638
637
|
searchValue: searchValue,
|
|
639
638
|
isFetchingOptions: isFetchingOptions
|
|
640
639
|
}
|
|
641
|
-
}
|
|
642
|
-
|
|
640
|
+
},
|
|
641
|
+
...DropBoxProps,
|
|
643
642
|
onClose: this.handleTogglePopup
|
|
644
|
-
}
|
|
643
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
645
644
|
className: style.search
|
|
646
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon,
|
|
645
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
647
646
|
placeHolder: placeHolderText,
|
|
648
647
|
onChange: this.handleChange,
|
|
649
648
|
value: searchValue,
|
|
@@ -664,8 +663,9 @@ export class ToggleDropDown extends Component {
|
|
|
664
663
|
ariaAutocomplete: 'list',
|
|
665
664
|
ariaHaspopup: true,
|
|
666
665
|
ariaExpanded: true
|
|
667
|
-
}
|
|
668
|
-
|
|
666
|
+
},
|
|
667
|
+
...TextBoxIconProps
|
|
668
|
+
})) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
669
669
|
className: style.title
|
|
670
670
|
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
671
671
|
text: title,
|
|
@@ -716,7 +716,7 @@ export class ToggleDropDown extends Component {
|
|
|
716
716
|
isDisabled = false
|
|
717
717
|
} = item;
|
|
718
718
|
listIndex += 1;
|
|
719
|
-
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon,
|
|
719
|
+
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
720
720
|
key: listIndex,
|
|
721
721
|
dataId: item[keyName],
|
|
722
722
|
value: item[keyName],
|
|
@@ -742,8 +742,9 @@ export class ToggleDropDown extends Component {
|
|
|
742
742
|
role: isSearch ? 'option' : 'menuitem',
|
|
743
743
|
ariaSelected: selectedId === item[idName],
|
|
744
744
|
ariaLabel: item[keyName]
|
|
745
|
-
}
|
|
746
|
-
|
|
745
|
+
},
|
|
746
|
+
...ListItemWithIconProps
|
|
747
|
+
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
747
748
|
key: listIndex,
|
|
748
749
|
dataId: item[keyName],
|
|
749
750
|
value: item[keyName],
|
|
@@ -766,8 +767,9 @@ export class ToggleDropDown extends Component {
|
|
|
766
767
|
role: isSearch ? 'option' : 'menuitem',
|
|
767
768
|
ariaSelected: selectedId === item[idName],
|
|
768
769
|
ariaLabel: item[keyName]
|
|
769
|
-
}
|
|
770
|
-
|
|
770
|
+
},
|
|
771
|
+
...ListItemProps
|
|
772
|
+
});
|
|
771
773
|
}));
|
|
772
774
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
773
775
|
isCover: false,
|
|
@@ -791,7 +793,7 @@ export class ToggleDropDown extends Component {
|
|
|
791
793
|
key: i
|
|
792
794
|
}, needDivider ? /*#__PURE__*/React.createElement("div", {
|
|
793
795
|
className: style.seperatedLine
|
|
794
|
-
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon,
|
|
796
|
+
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
795
797
|
dataId: item[keyName],
|
|
796
798
|
value: item[keyName],
|
|
797
799
|
id: item[idName],
|
|
@@ -817,8 +819,9 @@ export class ToggleDropDown extends Component {
|
|
|
817
819
|
role: isSearch ? 'option' : 'menuitem',
|
|
818
820
|
ariaSelected: selectedId === item[idName],
|
|
819
821
|
ariaLabel: item[keyName]
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
+
},
|
|
823
|
+
...ListItemWithIconProps
|
|
824
|
+
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
822
825
|
key: listIndex,
|
|
823
826
|
dataId: item[keyName],
|
|
824
827
|
value: item[keyName],
|
|
@@ -841,8 +844,9 @@ export class ToggleDropDown extends Component {
|
|
|
841
844
|
role: isSearch ? 'option' : 'menuitem',
|
|
842
845
|
ariaSelected: selectedId === item[idName],
|
|
843
846
|
ariaLabel: item[keyName]
|
|
844
|
-
}
|
|
845
|
-
|
|
847
|
+
},
|
|
848
|
+
...ListItemProps
|
|
849
|
+
}));
|
|
846
850
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
847
851
|
isCover: false,
|
|
848
852
|
align: "both"
|
|
@@ -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, { PureComponent } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -86,7 +84,7 @@ export default class CheckBoxField extends PureComponent {
|
|
|
86
84
|
lockedInfoText: lockedInfoText,
|
|
87
85
|
infoText: infoText,
|
|
88
86
|
renderProps: renderLabelProps
|
|
89
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
87
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
90
88
|
text: labelName,
|
|
91
89
|
id: id,
|
|
92
90
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -96,8 +94,9 @@ export default class CheckBoxField extends PureComponent {
|
|
|
96
94
|
title: labelName,
|
|
97
95
|
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
98
96
|
variant: isDirectCol ? 'default' : 'primary',
|
|
99
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
100
|
-
|
|
97
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
98
|
+
...LabelProps
|
|
99
|
+
}));
|
|
101
100
|
return /*#__PURE__*/React.createElement("div", {
|
|
102
101
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
103
102
|
"data-title": isDisabled ? title : null,
|
|
@@ -110,27 +109,30 @@ export default class CheckBoxField extends PureComponent {
|
|
|
110
109
|
align: "top"
|
|
111
110
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
112
111
|
className: isDirectCol ? style.checkbox : style.checkboxRow
|
|
113
|
-
}, /*#__PURE__*/React.createElement(CheckBox,
|
|
112
|
+
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
114
113
|
id: id,
|
|
115
114
|
onChange: this.handleChange,
|
|
116
115
|
disabled: removeEvent,
|
|
117
116
|
checked: checked,
|
|
118
117
|
getRef: this.handleGetRef,
|
|
119
118
|
dataId: dataId,
|
|
120
|
-
getContainerRef: getContainerRef
|
|
121
|
-
|
|
119
|
+
getContainerRef: getContainerRef,
|
|
120
|
+
...CheckBoxProps
|
|
121
|
+
})), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
122
122
|
flexible: true
|
|
123
|
-
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage,
|
|
123
|
+
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
124
124
|
text: validationMessage,
|
|
125
125
|
palette: validationPalette,
|
|
126
126
|
type: errorType,
|
|
127
|
-
dataId: `${dataId}_ValidationMessage
|
|
128
|
-
|
|
127
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
128
|
+
...ValidationMessageProps1
|
|
129
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
129
130
|
text: validationRuleMessage,
|
|
130
131
|
palette: validationRulePalette,
|
|
131
132
|
type: errorType,
|
|
132
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
133
|
-
|
|
133
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
134
|
+
...ValidationMessageProps2
|
|
135
|
+
})));
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
}
|