@zohodesk/dot 1.2.4 → 1.3.0
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/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +9 -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/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 +12 -12
- package/coverage/coverage-summary.json +12 -12
- package/coverage/index.html +1 -1
- package/es/Drawer/Drawer.js +3 -2
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
- package/es/v1/Attachment/Attachment.js +1 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +6 -6
- package/es/v1/FlipCard/FlipCard.js +4 -4
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +1 -1
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +1 -1
- package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
- package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
- package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
- package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
- package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
- package/es/v1/form/fields/DateField/DateField.js +131 -162
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
- package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
- package/es/v1/form/fields/RadioField/RadioField.js +2 -2
- package/es/v1/form/fields/SelectField/SelectField.js +3 -3
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
- package/es/v1/list/Comment/Comment.js +25 -32
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
- package/es/v1/list/Dot/Dot.js +9 -16
- package/es/v1/list/DotNew/DotNew.js +11 -18
- package/es/v1/list/GridStencils/GridStencils.js +21 -24
- package/es/v1/list/Icons/AddNewIcon.js +19 -22
- package/es/v1/list/Icons/CompleteIcon.js +21 -24
- package/es/v1/list/Icons/DeleteIcon.js +22 -25
- package/es/v1/list/Icons/EditIcon.js +22 -25
- package/es/v1/list/Icons/FloatingIcons.js +12 -19
- package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
- package/es/v1/list/Icons/SmartIcon.js +20 -23
- package/es/v1/list/ListLayout/ListLayout.js +54 -68
- package/es/v1/list/ListStencils/ListStencils.js +28 -31
- package/es/v1/list/SecondaryText/AccountName.js +1 -1
- package/es/v1/list/SecondaryText/ContactName.js +1 -1
- package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
- package/es/v1/list/Thread/Thread.js +1 -1
- package/es/v1/list/UserTime/UserTime.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +4 -3
- package/es/v1/lookup/Section/Section.js +1 -1
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/v1/lookup/header/Search/Search.js +3 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/es/v1/setup/header/Button/Button.js +1 -1
- package/es/v1/setup/header/Link/Link.js +1 -1
- package/es/v1/setup/header/Search/Search.js +1 -1
- package/es/v1/setup/table/Table/Table.js +1 -1
- package/es/v1/setup/table/TableBody/TableBody.js +1 -1
- package/es/v1/setup/table/TableData/TableData.js +1 -1
- package/es/v1/setup/table/TableHead/TableHead.js +1 -1
- package/es/v1/setup/table/TableRow/TableRow.js +1 -1
- package/lib/Drawer/Drawer.js +3 -2
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +2 -4
- package/lib/v1/Attachment/Attachment.js +1 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +6 -6
- package/lib/v1/FlipCard/FlipCard.js +4 -4
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +1 -1
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +1 -1
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +1 -1
- package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
- package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
- package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
- package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +107 -159
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +152 -193
- package/lib/v1/form/fields/DateField/DateField.js +140 -206
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +168 -228
- package/lib/v1/form/fields/PhoneField/PhoneField.js +150 -193
- package/lib/v1/form/fields/RadioField/RadioField.js +2 -2
- package/lib/v1/form/fields/SelectField/SelectField.js +3 -3
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
- package/lib/v1/list/Comment/Comment.js +24 -69
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
- package/lib/v1/list/Dot/Dot.js +9 -54
- package/lib/v1/list/DotNew/DotNew.js +11 -56
- package/lib/v1/list/GridStencils/GridStencils.js +21 -62
- package/lib/v1/list/Icons/AddNewIcon.js +19 -60
- package/lib/v1/list/Icons/CompleteIcon.js +21 -62
- package/lib/v1/list/Icons/DeleteIcon.js +22 -63
- package/lib/v1/list/Icons/EditIcon.js +22 -63
- package/lib/v1/list/Icons/FloatingIcons.js +17 -62
- package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
- package/lib/v1/list/Icons/SmartIcon.js +20 -65
- package/lib/v1/list/ListLayout/ListLayout.js +53 -116
- package/lib/v1/list/ListStencils/ListStencils.js +33 -72
- package/lib/v1/list/SecondaryText/AccountName.js +1 -1
- package/lib/v1/list/SecondaryText/ContactName.js +1 -1
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
- package/lib/v1/list/Thread/Thread.js +1 -1
- package/lib/v1/list/UserTime/UserTime.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/lib/v1/lookup/Lookup/Lookup.js +5 -3
- package/lib/v1/lookup/Section/Section.js +1 -1
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/v1/lookup/header/Search/Search.js +3 -3
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/lib/v1/setup/header/Button/Button.js +1 -1
- package/lib/v1/setup/header/Link/Link.js +1 -1
- package/lib/v1/setup/header/Search/Search.js +1 -1
- package/lib/v1/setup/table/Table/Table.js +1 -1
- package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
- package/lib/v1/setup/table/TableData/TableData.js +1 -1
- package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
- package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
- package/package.json +8 -8
- package/result.json +1 -1
- package/es/v1/errorstate/LinkText/LinkText.js +0 -29
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
- package/es/v1/errorstate/WillBack/WillBack.js +0 -75
- package/es/v1/errorstate/index.js +0 -8
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/version2/index.js +0 -12
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
- package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
- package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
- package/lib/v1/errorstate/index.js +0 -71
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/version2/index.js +0 -58
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
- /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
|
@@ -1,86 +1,59 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from '../../../errorstate/Inconvenience/props/defaultProps';
|
|
3
|
-
import { propTypes } from '../../../errorstate/Inconvenience/props/propTypes';
|
|
4
|
-
import { Container
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.responsiveFunc = this.responsiveFunc.bind(this);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
responsiveFunc(_ref) {
|
|
17
|
-
let {
|
|
18
|
-
mediaQueryOR
|
|
19
|
-
} = _ref;
|
|
20
|
-
return {
|
|
21
|
-
tablet: mediaQueryOR([{
|
|
22
|
-
minWidth: 481,
|
|
23
|
-
maxWidth: 768
|
|
24
|
-
}]),
|
|
25
|
-
uptoMobile: mediaQueryOR([{
|
|
26
|
-
maxWidth: 480
|
|
27
|
-
}])
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
render() {
|
|
32
|
-
let {
|
|
33
|
-
title,
|
|
34
|
-
subtitle,
|
|
35
|
-
description,
|
|
36
|
-
urlText,
|
|
37
|
-
url,
|
|
38
|
-
onClick,
|
|
39
|
-
dataId,
|
|
40
|
-
customClass
|
|
41
|
-
} = this.props;
|
|
42
|
-
return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
43
|
-
query: this.responsiveFunc
|
|
44
|
-
}, _ref2 => {
|
|
45
|
-
let {
|
|
46
|
-
tablet,
|
|
47
|
-
uptoMobile
|
|
48
|
-
} = _ref2;
|
|
49
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
50
|
-
className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
|
|
51
|
-
dataId: dataId,
|
|
52
|
-
scroll: "vertical"
|
|
53
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
54
|
-
className: commonStyle.top
|
|
55
|
-
}, title ? /*#__PURE__*/React.createElement("div", {
|
|
56
|
-
className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
|
|
57
|
-
}, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
|
|
59
|
-
}, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
|
|
60
|
-
className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
|
|
61
|
-
}, /*#__PURE__*/React.createElement(InconvenienceSVG, {
|
|
62
|
-
isFluid: true,
|
|
63
|
-
dataId: `${dataId}_svg`
|
|
64
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
65
|
-
className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
|
|
66
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
|
|
68
|
-
}, description), /*#__PURE__*/React.createElement(LinkText, {
|
|
69
|
-
text: urlText,
|
|
70
|
-
href: url,
|
|
71
|
-
onClick: onClick,
|
|
72
|
-
dataId: `${dataId}_link`,
|
|
73
|
-
customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
|
|
74
|
-
})));
|
|
2
|
+
import { defaultProps } from '../../../version2/errorstate/Inconvenience/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/errorstate/Inconvenience/props/propTypes';
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
+
import ErrorInconvenience from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorInconvenience';
|
|
6
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
7
|
+
import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
8
|
+
import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
|
|
9
|
+
export default function Inconvenience(props) {
|
|
10
|
+
function errorInconvenience() {
|
|
11
|
+
return /*#__PURE__*/React.createElement(ErrorInconvenience, {
|
|
12
|
+
className: style.errorSvg
|
|
75
13
|
});
|
|
76
14
|
}
|
|
77
15
|
|
|
16
|
+
let {
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
isButtonNeeded,
|
|
20
|
+
className,
|
|
21
|
+
isFluid,
|
|
22
|
+
dataId,
|
|
23
|
+
buttonText,
|
|
24
|
+
onButtonClick,
|
|
25
|
+
urlText,
|
|
26
|
+
url,
|
|
27
|
+
onClick,
|
|
28
|
+
urlTarget,
|
|
29
|
+
size
|
|
30
|
+
} = props;
|
|
31
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
32
|
+
scroll: "vertical",
|
|
33
|
+
className: `${style.container} ${style[size]}`
|
|
34
|
+
}, /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
35
|
+
title: title,
|
|
36
|
+
description: description,
|
|
37
|
+
getEmptyState: errorInconvenience,
|
|
38
|
+
className: `${style.errorState} ${className}`,
|
|
39
|
+
isFluid: isFluid,
|
|
40
|
+
dataId: dataId,
|
|
41
|
+
linkUrl: url,
|
|
42
|
+
linkText: urlText,
|
|
43
|
+
onUrlClick: onClick,
|
|
44
|
+
linkTarget: urlTarget,
|
|
45
|
+
customClass: {
|
|
46
|
+
titleClass: style.title,
|
|
47
|
+
descriptionClass: style.desc
|
|
48
|
+
}
|
|
49
|
+
}, isButtonNeeded ? /*#__PURE__*/React.createElement(Button, {
|
|
50
|
+
palette: "primaryFilled",
|
|
51
|
+
text: buttonText,
|
|
52
|
+
customClass: {
|
|
53
|
+
customButton: style.errorBtn
|
|
54
|
+
},
|
|
55
|
+
onClick: onButtonClick
|
|
56
|
+
}) : null));
|
|
78
57
|
}
|
|
79
58
|
Inconvenience.propTypes = propTypes;
|
|
80
|
-
Inconvenience.defaultProps = defaultProps;
|
|
81
|
-
|
|
82
|
-
if (false) {
|
|
83
|
-
Inconvenience.docs = {
|
|
84
|
-
componentGroup: 'errorStates'
|
|
85
|
-
};
|
|
86
|
-
}
|
|
59
|
+
Inconvenience.defaultProps = defaultProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from '
|
|
3
|
-
import { propTypes } from '
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
2
|
+
import { defaultProps } from '../../../version2/errorstate/OopsSomethingMiss/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/errorstate/OopsSomethingMiss/props/propTypes';
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import ErrorOopsSomethingMiss from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorOopsSomethingMiss';
|
|
6
|
-
import Button from '@zohodesk/components/
|
|
7
|
-
import CommonEmptyState from '
|
|
8
|
-
import style from '
|
|
6
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
7
|
+
import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
8
|
+
import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
|
|
9
9
|
export default function OopsSomethingMiss(props) {
|
|
10
10
|
function errorOopsSomethingMiss() {
|
|
11
11
|
return /*#__PURE__*/React.createElement(ErrorOopsSomethingMiss, {
|
package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from '
|
|
3
|
-
import { propTypes } from '
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
2
|
+
import { defaultProps } from '../../../version2/errorstate/UnableToProcessRequest/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/errorstate/UnableToProcessRequest/props/propTypes';
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import ErrorUnableToProcessRequest from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorUnableToProcessRequest';
|
|
6
|
-
import Button from '@zohodesk/components/
|
|
7
|
-
import CommonEmptyState from '
|
|
8
|
-
import style from '
|
|
6
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
7
|
+
import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
8
|
+
import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
|
|
9
9
|
export default function UnableToProcessRequest(props) {
|
|
10
10
|
function errorUnableToProcess() {
|
|
11
11
|
return /*#__PURE__*/React.createElement(ErrorUnableToProcessRequest, {
|
|
@@ -1,80 +1,61 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from '../../../errorstate/UnauthorizedLogin/props/defaultProps';
|
|
3
|
-
import { propTypes } from '../../../errorstate/UnauthorizedLogin/props/propTypes';
|
|
4
|
-
import { Container
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.responsiveFunc = this.responsiveFunc.bind(this);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
responsiveFunc(_ref) {
|
|
17
|
-
let {
|
|
18
|
-
mediaQueryOR
|
|
19
|
-
} = _ref;
|
|
20
|
-
return {
|
|
21
|
-
tablet: mediaQueryOR([{
|
|
22
|
-
minWidth: 481,
|
|
23
|
-
maxWidth: 768
|
|
24
|
-
}]),
|
|
25
|
-
uptoMobile: mediaQueryOR([{
|
|
26
|
-
maxWidth: 480
|
|
27
|
-
}])
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
render() {
|
|
32
|
-
let {
|
|
33
|
-
title,
|
|
34
|
-
subtitle,
|
|
35
|
-
description,
|
|
36
|
-
urlText,
|
|
37
|
-
url,
|
|
38
|
-
onClick,
|
|
39
|
-
dataId,
|
|
40
|
-
customClass
|
|
41
|
-
} = this.props;
|
|
42
|
-
return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
43
|
-
query: this.responsiveFunc
|
|
44
|
-
}, _ref2 => {
|
|
45
|
-
let {
|
|
46
|
-
tablet,
|
|
47
|
-
uptoMobile
|
|
48
|
-
} = _ref2;
|
|
49
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
50
|
-
className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
|
|
51
|
-
dataId: dataId,
|
|
52
|
-
scroll: "vertical"
|
|
53
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
54
|
-
className: commonStyle.top
|
|
55
|
-
}, title ? /*#__PURE__*/React.createElement("div", {
|
|
56
|
-
className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
|
|
57
|
-
}, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
|
|
59
|
-
}, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
|
|
60
|
-
className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : commonStyle.tabletImageContainer}`
|
|
61
|
-
}, /*#__PURE__*/React.createElement(UnauthorizedLoginSVG, {
|
|
62
|
-
isFluid: true,
|
|
63
|
-
dataId: `${dataId}_svg`
|
|
64
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
65
|
-
className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
|
|
66
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
|
|
68
|
-
}, description), /*#__PURE__*/React.createElement(LinkText, {
|
|
69
|
-
text: urlText,
|
|
70
|
-
href: url,
|
|
71
|
-
onClick: onClick,
|
|
72
|
-
dataId: `${dataId}_link`,
|
|
73
|
-
customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
|
|
74
|
-
})));
|
|
2
|
+
import { defaultProps } from '../../../version2/errorstate/UnauthorizedLogin/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/errorstate/UnauthorizedLogin/props/propTypes';
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
+
import ErrorUnauthorizedLogin from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorUnauthorizedLogin';
|
|
6
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
7
|
+
import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
8
|
+
import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
|
|
9
|
+
export default function UnauthorizedLogin(props) {
|
|
10
|
+
function errorUnauthorizedLogin() {
|
|
11
|
+
return /*#__PURE__*/React.createElement(ErrorUnauthorizedLogin, {
|
|
12
|
+
className: style.errorSvg
|
|
75
13
|
});
|
|
76
14
|
}
|
|
77
15
|
|
|
16
|
+
let {
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
isButtonNeeded,
|
|
20
|
+
className,
|
|
21
|
+
isFluid,
|
|
22
|
+
dataId,
|
|
23
|
+
buttonText,
|
|
24
|
+
buttonPalette,
|
|
25
|
+
onButtonClick,
|
|
26
|
+
urlText,
|
|
27
|
+
url,
|
|
28
|
+
onClick,
|
|
29
|
+
urlTarget,
|
|
30
|
+
size
|
|
31
|
+
} = props;
|
|
32
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
33
|
+
scroll: "vertical",
|
|
34
|
+
className: `${style.container} ${style[size]}`
|
|
35
|
+
}, /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
36
|
+
title: title,
|
|
37
|
+
description: description,
|
|
38
|
+
getEmptyState: errorUnauthorizedLogin,
|
|
39
|
+
className: `${style.errorState} ${className}`,
|
|
40
|
+
isFluid: isFluid,
|
|
41
|
+
dataId: dataId,
|
|
42
|
+
linkUrl: url,
|
|
43
|
+
linkText: urlText,
|
|
44
|
+
onUrlClick: onClick,
|
|
45
|
+
linkTarget: urlTarget,
|
|
46
|
+
customClass: {
|
|
47
|
+
titleClass: style.title,
|
|
48
|
+
descriptionClass: style.desc
|
|
49
|
+
}
|
|
50
|
+
}, isButtonNeeded ? /*#__PURE__*/React.createElement(Button, {
|
|
51
|
+
palette: buttonPalette,
|
|
52
|
+
text: buttonText,
|
|
53
|
+
customClass: {
|
|
54
|
+
customButton: style.errorBtn
|
|
55
|
+
},
|
|
56
|
+
onClick: onButtonClick,
|
|
57
|
+
dataId: `${dataId}_button`
|
|
58
|
+
}) : null));
|
|
78
59
|
}
|
|
79
60
|
UnauthorizedLogin.propTypes = propTypes;
|
|
80
61
|
UnauthorizedLogin.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from '
|
|
3
|
-
import { propTypes } from '
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
2
|
+
import { defaultProps } from '../../../version2/errorstate/UrlNotFound/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/errorstate/UrlNotFound/props/propTypes';
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import ErrorUrlNotFound from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorUrlNotFound';
|
|
6
|
-
import Button from '@zohodesk/components/
|
|
7
|
-
import CommonEmptyState from '
|
|
8
|
-
import style from '
|
|
6
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
7
|
+
import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
8
|
+
import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
|
|
9
9
|
export default function UrlNotFound(props) {
|
|
10
10
|
function errorUrlNotFound() {
|
|
11
11
|
return /*#__PURE__*/React.createElement(ErrorUrlNotFound, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from '
|
|
3
|
-
import { propTypes } from '
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
2
|
+
import { defaultProps } from '../../../version2/errorstate/WillBeRightBack/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/errorstate/WillBeRightBack/props/propTypes';
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import ErrorWillBeRightBack from '@zohodesk/svg/lib/v1/errorstate/version3/ErrorWillBeRightBack';
|
|
6
|
-
import Button from '@zohodesk/components/
|
|
7
|
-
import CommonEmptyState from '
|
|
8
|
-
import style from '
|
|
6
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
7
|
+
import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
8
|
+
import style from '../../../version2/errorstate/V2_ErrorStates.module.css';
|
|
9
9
|
export default function WillBeRightBack(props) {
|
|
10
10
|
function errorWillBeRightBack() {
|
|
11
11
|
return /*#__PURE__*/React.createElement(ErrorWillBeRightBack, {
|
|
@@ -1,141 +1,125 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
import { defaultProps } from '../../../../form/fields/CheckBoxField/props/defaultProps';
|
|
6
6
|
import { propTypes } from '../../../../form/fields/CheckBoxField/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
-
import Label from '@zohodesk/components/
|
|
10
|
-
import CheckBox from '@zohodesk/components/
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
|
+
import CheckBox from '@zohodesk/components/es/v1/CheckBox/CheckBox';
|
|
11
11
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
|
-
import { Container, Box } from '@zohodesk/components/
|
|
12
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
13
13
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
14
14
|
/**** CSS ****/
|
|
15
15
|
|
|
16
16
|
import style from '../../../../form/fields/Fields.module.css';
|
|
17
|
-
export default class CheckBoxField extends PureComponent {
|
|
18
|
-
constructor(props) {
|
|
19
|
-
super(props);
|
|
20
|
-
this.handleChange = this.handleChange.bind(this);
|
|
21
|
-
this.handleGetRef = this.handleGetRef.bind(this);
|
|
22
|
-
this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
23
|
-
}
|
|
24
17
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
function CheckBoxField(props) {
|
|
19
|
+
let {
|
|
20
|
+
labelName,
|
|
21
|
+
id,
|
|
22
|
+
isMandatory,
|
|
23
|
+
validationMessage,
|
|
24
|
+
validationPalette,
|
|
25
|
+
isReadOnly,
|
|
26
|
+
checked,
|
|
27
|
+
errorType,
|
|
28
|
+
isDisabled,
|
|
29
|
+
title,
|
|
30
|
+
dataId,
|
|
31
|
+
dataSelectorId,
|
|
32
|
+
validationRuleMessage,
|
|
33
|
+
validationRulePalette,
|
|
34
|
+
infoText,
|
|
35
|
+
fieldSize,
|
|
36
|
+
labelPalette,
|
|
37
|
+
labelCustomClass,
|
|
38
|
+
direction,
|
|
39
|
+
lineClamp,
|
|
40
|
+
isLocked,
|
|
41
|
+
lockedInfoText,
|
|
42
|
+
customProps,
|
|
43
|
+
renderLabelProps,
|
|
44
|
+
getRef,
|
|
45
|
+
onChange
|
|
46
|
+
} = props;
|
|
47
|
+
const {
|
|
48
|
+
LabelProps = {},
|
|
49
|
+
CheckBoxProps = {},
|
|
50
|
+
ValidationMessageProps1 = {},
|
|
51
|
+
ValidationMessageProps2 = {}
|
|
52
|
+
} = customProps;
|
|
53
|
+
let removeEvent = isDisabled || isReadOnly;
|
|
54
|
+
let isDirectCol = direction === 'column';
|
|
55
|
+
let labelElement = /*#__PURE__*/React.createElement(FieldContainer, {
|
|
56
|
+
isLocked: isLocked,
|
|
57
|
+
lockedInfoText: lockedInfoText,
|
|
58
|
+
infoText: infoText,
|
|
59
|
+
renderProps: renderLabelProps
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
61
|
+
text: labelName,
|
|
62
|
+
id: id,
|
|
63
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
64
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
65
|
+
infoText: infoText,
|
|
66
|
+
customClass: `${!isDirectCol ? style.checkboxText : ''} ${!isDirectCol ? style[`lineClamp_${lineClamp}`] : ''} ${isReadOnly || isDisabled ? style.cbTextReadonly : style.cbTextPointer} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
67
|
+
title: labelName,
|
|
68
|
+
onClick: !removeEvent ? handleLabelClick : null,
|
|
69
|
+
variant: isDirectCol ? 'default' : 'primary',
|
|
70
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
71
|
+
}, LabelProps)));
|
|
72
|
+
|
|
73
|
+
function handleChange(value) {
|
|
30
74
|
onChange && onChange(id, value);
|
|
31
75
|
}
|
|
32
76
|
|
|
33
|
-
handleGetRef(el) {
|
|
34
|
-
let {
|
|
35
|
-
getRef,
|
|
36
|
-
id
|
|
37
|
-
} = this.props;
|
|
77
|
+
function handleGetRef(el) {
|
|
38
78
|
getRef && getRef(el, id);
|
|
39
79
|
}
|
|
40
80
|
|
|
41
|
-
handleLabelClick() {
|
|
42
|
-
|
|
43
|
-
checked
|
|
44
|
-
} = this.props;
|
|
45
|
-
this.handleChange(!checked);
|
|
81
|
+
function handleLabelClick() {
|
|
82
|
+
handleChange(!checked);
|
|
46
83
|
}
|
|
47
84
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
lockedInfoText: lockedInfoText,
|
|
86
|
-
infoText: infoText,
|
|
87
|
-
renderProps: renderLabelProps
|
|
88
|
-
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
89
|
-
text: labelName,
|
|
90
|
-
id: id,
|
|
91
|
-
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
92
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
93
|
-
infoText: infoText,
|
|
94
|
-
customClass: `${!isDirectCol ? style.checkboxText : ''} ${!isDirectCol ? style[`lineClamp_${lineClamp}`] : ''} ${isReadOnly || isDisabled ? style.cbTextReadonly : style.cbTextPointer} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
95
|
-
title: labelName,
|
|
96
|
-
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
97
|
-
variant: isDirectCol ? 'default' : 'primary',
|
|
98
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
99
|
-
}, LabelProps)));
|
|
100
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
102
|
-
"data-title": isDisabled ? title : null,
|
|
103
|
-
"data-selector-id": dataSelectorId
|
|
104
|
-
}, isDirectCol && labelElement, /*#__PURE__*/React.createElement("div", {
|
|
105
|
-
className: `${isDirectCol ? style.fieldContainer : style.checkboxFieldContainer} ${isDirectCol && labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
106
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
107
|
-
alignBox: "row",
|
|
108
|
-
isCover: false,
|
|
109
|
-
align: "top"
|
|
110
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
111
|
-
className: isDirectCol ? style.checkbox : style.checkboxRow
|
|
112
|
-
}, /*#__PURE__*/React.createElement(CheckBox, _extends({
|
|
113
|
-
id: id,
|
|
114
|
-
onChange: this.handleChange,
|
|
115
|
-
disabled: removeEvent,
|
|
116
|
-
checked: checked,
|
|
117
|
-
getRef: this.handleGetRef,
|
|
118
|
-
dataId: dataId
|
|
119
|
-
}, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
120
|
-
flexible: true
|
|
121
|
-
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
122
|
-
text: validationMessage,
|
|
123
|
-
palette: validationPalette,
|
|
124
|
-
type: errorType,
|
|
125
|
-
dataId: `${dataId}_ValidationMessage`
|
|
126
|
-
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
127
|
-
text: validationRuleMessage,
|
|
128
|
-
palette: validationRulePalette,
|
|
129
|
-
type: errorType,
|
|
130
|
-
dataId: `${dataId}_ValidationRuleMessage`
|
|
131
|
-
}, ValidationMessageProps2))));
|
|
132
|
-
}
|
|
85
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
86
|
+
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
87
|
+
"data-title": isDisabled ? title : null,
|
|
88
|
+
"data-selector-id": dataSelectorId
|
|
89
|
+
}, isDirectCol && labelElement, /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: `${isDirectCol ? style.fieldContainer : style.checkboxFieldContainer} ${isDirectCol && labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
91
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
92
|
+
alignBox: "row",
|
|
93
|
+
isCover: false,
|
|
94
|
+
align: "top"
|
|
95
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
96
|
+
className: isDirectCol ? style.checkbox : style.checkboxRow
|
|
97
|
+
}, /*#__PURE__*/React.createElement(CheckBox, _extends({
|
|
98
|
+
id: id,
|
|
99
|
+
onChange: handleChange,
|
|
100
|
+
disabled: removeEvent,
|
|
101
|
+
checked: checked,
|
|
102
|
+
getRef: handleGetRef,
|
|
103
|
+
dataId: dataId
|
|
104
|
+
}, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
105
|
+
flexible: true
|
|
106
|
+
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
107
|
+
text: validationMessage,
|
|
108
|
+
palette: validationPalette,
|
|
109
|
+
type: errorType,
|
|
110
|
+
dataId: `${dataId}_ValidationMessage`
|
|
111
|
+
}, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
112
|
+
text: validationRuleMessage,
|
|
113
|
+
palette: validationRulePalette,
|
|
114
|
+
type: errorType,
|
|
115
|
+
dataId: `${dataId}_ValidationRuleMessage`
|
|
116
|
+
}, ValidationMessageProps2))));
|
|
117
|
+
} // const MomoizedCheckBoxField = memo(CheckBoxField);
|
|
118
|
+
// export default MomoizedCheckBoxField;
|
|
119
|
+
// MomoizedCheckBoxField.propTypes = propTypes;
|
|
120
|
+
// MomoizedCheckBoxField.defaultProps = defaultProps;
|
|
121
|
+
|
|
133
122
|
|
|
134
|
-
}
|
|
135
123
|
CheckBoxField.propTypes = propTypes;
|
|
136
|
-
CheckBoxField.defaultProps = defaultProps;
|
|
137
|
-
|
|
138
|
-
// componentGroup: 'Form Fields',
|
|
139
|
-
// folderName: 'General'
|
|
140
|
-
// };
|
|
141
|
-
// }
|
|
124
|
+
CheckBoxField.defaultProps = defaultProps;
|
|
125
|
+
export default CheckBoxField;
|