@zohodesk/dot 1.2.1 → 1.2.3
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/propValidation_report.html +1 -1
- package/README.md +15 -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/index.html +1 -1
- package/es/Attachment/Attachment.js +2 -1
- package/es/Attachment/Attachment.module.css +10 -6
- package/es/Link/Link.js +2 -1
- package/es/TagWithIcon/props/propTypes.js +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +5 -2
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -3
- package/es/layout/SubtabLayout/props/propTypes.js +1 -1
- package/es/list/Icons/AddNewIcon.js +3 -2
- package/es/list/Icons/CompleteIcon.js +3 -2
- package/es/list/Icons/DeleteIcon.js +4 -3
- package/es/list/Icons/EditIcon.js +5 -3
- package/es/list/Icons/ReadUnreadIcon.js +5 -3
- package/es/list/Icons/SmartIcon.js +5 -3
- package/es/list/ListLayout/ListLayout.module.css +24 -8
- package/es/list/listCommon.module.css +23 -5
- package/es/list/status/StatusDropdown/StatusDropdown.js +16 -3
- package/es/list/status/StatusDropdown/props/propTypes.js +2 -1
- package/es/lookup/Lookup/Lookup.js +2 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
- package/es/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/es/v1/Attachment/Attachment.js +88 -0
- package/es/v1/AttachmentViewer/AttachmentImage.js +79 -0
- package/es/v1/AttachmentViewer/AttachmentViewer.js +541 -0
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +1 -1
- package/es/v1/FlipCard/FlipCard.js +3 -3
- package/es/v1/FreezeLayer/FreezeLayer.js +74 -0
- package/es/v1/Image/Image.js +39 -0
- package/es/v1/Link/Link.js +2 -1
- package/es/v1/Loader/Loader.js +21 -0
- package/es/v1/Message/Message.js +118 -0
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/PlusIcon/PlusIcon.js +44 -0
- package/es/v1/Separator/Separator.js +60 -0
- package/es/v1/ToastMessage/ToastMessage.js +203 -0
- package/es/v1/Upload/Upload.js +76 -0
- package/es/v1/actions/AutoClose.js +43 -0
- package/es/v1/alert/index.js +2 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +53 -0
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +62 -0
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +54 -0
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +72 -0
- package/es/v1/avatar/AvatarThread/AvatarThread.js +79 -0
- package/es/v1/avatar/AvatarUser/AvatarUser.js +116 -0
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +98 -0
- package/es/v1/avatar/index.js +7 -0
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +861 -0
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +86 -0
- package/es/v1/errorstate/LinkText/LinkText.js +29 -0
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +84 -0
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +83 -0
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +84 -0
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +86 -0
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +84 -0
- package/es/v1/errorstate/WillBack/WillBack.js +75 -0
- package/es/v1/errorstate/index.js +8 -0
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +141 -0
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +183 -0
- package/es/v1/form/fields/DateField/DateField.js +195 -0
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +71 -0
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +213 -0
- package/es/v1/form/fields/PhoneField/PhoneField.js +189 -0
- package/es/v1/form/fields/RadioField/RadioField.js +116 -0
- package/es/v1/form/fields/SelectField/SelectField.js +183 -0
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +292 -0
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +258 -0
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +164 -0
- package/es/v1/form/fields/TextEditor/TextEditor.js +418 -0
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +178 -0
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +203 -0
- package/es/v1/form/fields/TextareaField/TextareaField.js +161 -0
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +58 -0
- package/es/v1/form/fields/index.js +16 -0
- package/es/v1/form/layout/Field/Field.js +33 -0
- package/es/v1/form/layout/Section/Section.js +37 -0
- package/es/v1/form/layout/index.js +2 -0
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +217 -0
- package/es/v1/layout/SetupDetailLayout/index.js +4 -0
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +144 -0
- package/es/v1/layout/SubtabLayout/index.js +4 -0
- package/es/v1/list/AvatarFlip/AvatarFlip.js +76 -0
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +28 -0
- package/es/v1/list/Comment/Comment.js +45 -0
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +100 -0
- package/es/v1/list/Dot/Dot.js +22 -0
- package/es/v1/list/DotNew/DotNew.js +29 -0
- package/es/v1/list/GridStencils/GridStencils.js +34 -0
- package/es/v1/list/Icons/AddNewIcon.js +28 -0
- package/es/v1/list/Icons/CompleteIcon.js +30 -0
- package/es/v1/list/Icons/DeleteIcon.js +31 -0
- package/es/v1/list/Icons/EditIcon.js +31 -0
- package/es/v1/list/Icons/FloatingIcons.js +30 -0
- package/es/v1/list/Icons/ReadUnreadIcon.js +35 -0
- package/es/v1/list/Icons/SmartIcon.js +28 -0
- package/es/v1/list/Icons/index.js +7 -0
- package/es/v1/list/ListLayout/ListLayout.js +83 -0
- package/es/v1/list/ListStencils/ListStencils.js +47 -0
- package/es/v1/list/SecondaryText/AccountName.js +85 -0
- package/es/v1/list/SecondaryText/ContactName.js +85 -0
- package/es/v1/list/SecondaryText/DepartmentText.js +30 -0
- package/es/v1/list/SecondaryText/Email.js +55 -0
- package/es/v1/list/SecondaryText/HappinessRating.js +31 -0
- package/es/v1/list/SecondaryText/PhoneNumber.js +59 -0
- package/es/v1/list/SecondaryText/PriorityText.js +33 -0
- package/es/v1/list/SecondaryText/SecondaryText.js +40 -0
- package/es/v1/list/SecondaryText/StatusText.js +34 -0
- package/es/v1/list/SecondaryText/TicketId.js +53 -0
- package/es/v1/list/SecondaryText/Website.js +43 -0
- package/es/v1/list/SecondaryText/index.js +11 -0
- package/es/v1/list/SecondryPanel/SecondryPanel.js +105 -0
- package/es/v1/list/SentimentStatus/SentimentStatus.js +34 -0
- package/es/v1/list/Subject/Subject.js +57 -0
- package/es/v1/list/TagNew/TagNew.js +33 -0
- package/es/v1/list/Thread/Thread.js +43 -0
- package/es/v1/list/UserTime/UserTime.js +83 -0
- package/es/v1/list/index.js +17 -0
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +465 -0
- package/es/v1/list/status/StatusListItem/StatusListItem.js +122 -0
- package/es/v1/list/status/index.js +2 -0
- package/es/v1/lookup/EmptyPage/EmptyPage.js +65 -0
- package/es/v1/lookup/Lookup/Lookup.js +2 -0
- package/es/v1/lookup/Section/Section.js +25 -0
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +176 -0
- package/es/v1/lookup/header/index.js +5 -0
- package/es/v1/setup/header/Button/Button.js +36 -0
- package/es/v1/setup/header/Link/Link.js +44 -0
- package/es/v1/setup/header/Search/Search.js +81 -0
- package/es/v1/setup/header/Views/Views.js +46 -0
- package/es/v1/setup/header/index.js +4 -0
- package/es/v1/setup/helptips/Description/Description.js +24 -0
- package/es/v1/setup/helptips/Link/Link.js +41 -0
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +39 -0
- package/es/v1/setup/helptips/Title/Title.js +24 -0
- package/es/v1/setup/helptips/index.js +4 -0
- package/es/v1/setup/index.js +6 -0
- package/es/v1/setup/table/index.js +5 -0
- package/es/v1/svg/PlusIcon.js +32 -0
- package/es/v1/svg/SnippetIcon.js +34 -0
- package/es/v1/svg/TemplateIcon.js +35 -0
- package/es/v1/svg/index.js +3 -0
- package/es/v1/version2/alertIcons/index.js +8 -0
- package/es/v1/version2/index.js +12 -0
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +79 -0
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
- package/es/v1/version2/notification/DesktopNotification/DesktopNotification.js +164 -0
- package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/lib/Attachment/Attachment.js +2 -1
- package/lib/Attachment/Attachment.module.css +10 -6
- package/lib/Link/Link.js +2 -1
- package/lib/TagWithIcon/props/propTypes.js +1 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +5 -3
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/lib/layout/SubtabLayout/props/propTypes.js +1 -1
- package/lib/list/Icons/AddNewIcon.js +4 -2
- package/lib/list/Icons/CompleteIcon.js +4 -2
- package/lib/list/Icons/DeleteIcon.js +5 -3
- package/lib/list/Icons/EditIcon.js +6 -3
- package/lib/list/Icons/ReadUnreadIcon.js +6 -3
- package/lib/list/Icons/SmartIcon.js +6 -3
- package/lib/list/ListLayout/ListLayout.module.css +24 -8
- package/lib/list/listCommon.module.css +23 -5
- package/lib/list/status/StatusDropdown/StatusDropdown.js +16 -5
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +2 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/lib/v1/Attachment/Attachment.js +140 -0
- package/lib/v1/AttachmentViewer/AttachmentImage.js +124 -0
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +625 -0
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +1 -1
- package/lib/v1/FlipCard/FlipCard.js +3 -3
- package/lib/v1/FreezeLayer/FreezeLayer.js +94 -0
- package/lib/v1/Image/Image.js +89 -0
- package/lib/v1/Link/Link.js +2 -1
- package/lib/v1/Loader/Loader.js +70 -0
- package/lib/v1/Message/Message.js +170 -0
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/PlusIcon/PlusIcon.js +91 -0
- package/lib/v1/Separator/Separator.js +107 -0
- package/lib/v1/ToastMessage/ToastMessage.js +246 -0
- package/lib/v1/Upload/Upload.js +128 -0
- package/lib/v1/actions/AutoClose.js +75 -0
- package/lib/v1/alert/index.js +23 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +101 -0
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +110 -0
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +106 -0
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +119 -0
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +130 -0
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +167 -0
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +154 -0
- package/lib/v1/avatar/index.js +63 -0
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +932 -0
- package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +137 -0
- package/lib/v1/errorstate/LinkText/LinkText.js +80 -0
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +135 -0
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +134 -0
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +135 -0
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +137 -0
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +135 -0
- package/lib/v1/errorstate/WillBack/WillBack.js +125 -0
- package/lib/v1/errorstate/index.js +71 -0
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +197 -0
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +234 -0
- package/lib/v1/form/fields/DateField/DateField.js +249 -0
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +118 -0
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +268 -0
- package/lib/v1/form/fields/PhoneField/PhoneField.js +236 -0
- package/lib/v1/form/fields/RadioField/RadioField.js +169 -0
- package/lib/v1/form/fields/SelectField/SelectField.js +236 -0
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +346 -0
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +299 -0
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +219 -0
- package/lib/v1/form/fields/TextEditor/TextEditor.js +463 -0
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +230 -0
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +256 -0
- package/lib/v1/form/fields/TextareaField/TextareaField.js +215 -0
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +110 -0
- package/lib/{docs/formDocs.js → v1/form/fields/index.js} +33 -25
- package/lib/v1/form/layout/Field/Field.js +87 -0
- package/lib/v1/form/layout/Section/Section.js +86 -0
- package/lib/v1/form/layout/index.js +23 -0
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +305 -0
- package/lib/v1/layout/SetupDetailLayout/index.js +37 -0
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +245 -0
- package/lib/v1/layout/SubtabLayout/index.js +37 -0
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +131 -0
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +73 -0
- package/lib/v1/list/Comment/Comment.js +98 -0
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +157 -0
- package/lib/v1/list/Dot/Dot.js +72 -0
- package/lib/v1/list/DotNew/DotNew.js +79 -0
- package/lib/v1/list/GridStencils/GridStencils.js +83 -0
- package/lib/v1/list/Icons/AddNewIcon.js +79 -0
- package/lib/v1/list/Icons/CompleteIcon.js +81 -0
- package/lib/v1/list/Icons/DeleteIcon.js +82 -0
- package/lib/v1/list/Icons/EditIcon.js +82 -0
- package/lib/v1/list/Icons/FloatingIcons.js +87 -0
- package/lib/v1/list/Icons/ReadUnreadIcon.js +87 -0
- package/lib/v1/list/Icons/SmartIcon.js +83 -0
- package/lib/v1/list/Icons/index.js +63 -0
- package/lib/v1/list/ListLayout/ListLayout.js +145 -0
- package/lib/v1/list/ListStencils/ListStencils.js +96 -0
- package/lib/v1/list/SecondaryText/AccountName.js +136 -0
- package/lib/v1/list/SecondaryText/ContactName.js +144 -0
- package/lib/v1/list/SecondaryText/DepartmentText.js +79 -0
- package/lib/v1/list/SecondaryText/Email.js +103 -0
- package/lib/v1/list/SecondaryText/HappinessRating.js +81 -0
- package/lib/v1/list/SecondaryText/PhoneNumber.js +107 -0
- package/lib/v1/list/SecondaryText/PriorityText.js +83 -0
- package/lib/v1/list/SecondaryText/SecondaryText.js +88 -0
- package/lib/v1/list/SecondaryText/StatusText.js +84 -0
- package/lib/v1/list/SecondaryText/TicketId.js +104 -0
- package/lib/v1/list/SecondaryText/Website.js +91 -0
- package/lib/v1/list/SecondaryText/index.js +95 -0
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +205 -0
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +80 -0
- package/lib/v1/list/Subject/Subject.js +108 -0
- package/lib/v1/list/TagNew/TagNew.js +83 -0
- package/lib/v1/list/Thread/Thread.js +95 -0
- package/lib/v1/list/UserTime/UserTime.js +136 -0
- package/lib/v1/list/index.js +173 -0
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +541 -0
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +168 -0
- package/lib/v1/list/status/index.js +23 -0
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +120 -0
- package/lib/v1/lookup/Lookup/Lookup.js +2 -0
- package/lib/v1/lookup/Section/Section.js +75 -0
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +221 -0
- package/lib/v1/lookup/header/index.js +47 -0
- package/lib/v1/setup/header/Button/Button.js +83 -0
- package/lib/v1/setup/header/Link/Link.js +93 -0
- package/lib/v1/setup/header/Search/Search.js +126 -0
- package/lib/v1/setup/header/Views/Views.js +93 -0
- package/lib/v1/setup/header/index.js +39 -0
- package/lib/v1/setup/helptips/Description/Description.js +68 -0
- package/lib/v1/setup/helptips/Link/Link.js +88 -0
- package/lib/v1/setup/helptips/ListGroup/ListGroup.js +88 -0
- package/lib/v1/setup/helptips/Title/Title.js +68 -0
- package/lib/v1/setup/helptips/index.js +39 -0
- package/lib/v1/setup/index.js +24 -0
- package/lib/v1/setup/table/index.js +47 -0
- package/lib/v1/svg/PlusIcon.js +82 -0
- package/lib/v1/svg/SnippetIcon.js +84 -0
- package/lib/v1/svg/TemplateIcon.js +85 -0
- package/lib/v1/svg/index.js +31 -0
- package/lib/v1/version2/alertIcons/index.js +71 -0
- package/lib/v1/version2/index.js +58 -0
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +104 -0
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +17 -5
- package/lib/v1/version2/notification/DesktopNotification/DesktopNotification.js +193 -0
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/package.json +9 -9
- package/result.json +1 -1
- package/es/docs/formDocs.js +0 -15
- package/es/docs/generalDocs.js +0 -63
- package/es/docs/lookupDocs.js +0 -17
- package/es/docs/setupDocs.js +0 -11
- package/lib/docs/generalDocs.js +0 -479
- package/lib/docs/lookupDocs.js +0 -135
- package/lib/docs/setupDocs.js +0 -95
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { propTypes } from '../../../lookup/Section/props/propTypes';
|
|
3
|
+
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
4
|
+
import style from '../../../lookup/Section/LookupSection.module.css';
|
|
5
|
+
export default class Section extends Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
let {
|
|
12
|
+
alignBox,
|
|
13
|
+
className
|
|
14
|
+
} = this.props;
|
|
15
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
16
|
+
"data-drag-container": "true",
|
|
17
|
+
alignBox: alignBox,
|
|
18
|
+
className: `${style.section} ${className ? className : ''}`
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
20
|
+
flexible: true
|
|
21
|
+
}, this.props.children));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
Section.propTypes = propTypes;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**** Libraries ****/
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { defaultProps } from '../../../../lookup/header/ViewDropDown/props/defaultProps';
|
|
4
|
+
import { propTypes } from '../../../../lookup/header/ViewDropDown/props/propTypes';
|
|
5
|
+
/**** Components ****/
|
|
6
|
+
|
|
7
|
+
import { SelectComponent } from '@zohodesk/components/lib/Select/Select';
|
|
8
|
+
import Popup from '@zohodesk/components/lib/Popup/Popup';
|
|
9
|
+
import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
|
|
10
|
+
import DropDownSearch from '@zohodesk/components/lib/DropDown/DropDownSearch';
|
|
11
|
+
import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
|
|
12
|
+
import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
|
|
13
|
+
import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
14
|
+
/**** Icons ****/
|
|
15
|
+
|
|
16
|
+
import { Icon } from '@zohodesk/icons';
|
|
17
|
+
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
18
|
+
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
19
|
+
import style from '../../../../lookup/header/ViewDropDown/ViewDropDown.module.css';
|
|
20
|
+
/* eslint-disable react/forbid-component-props */
|
|
21
|
+
|
|
22
|
+
/*eslint-disable react/sort-prop-types*/
|
|
23
|
+
|
|
24
|
+
class DropDown extends SelectComponent {
|
|
25
|
+
constructor(props) {
|
|
26
|
+
super(props);
|
|
27
|
+
this.onSearchKeyDown = this.onSearchKeyDown.bind(this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
onSearchKeyDown(e) {
|
|
31
|
+
const {
|
|
32
|
+
closePopupOnly
|
|
33
|
+
} = this.props;
|
|
34
|
+
|
|
35
|
+
if (e.keyCode === 27) {
|
|
36
|
+
closePopupOnly && closePopupOnly(e);
|
|
37
|
+
} else {
|
|
38
|
+
this.handleKeyDown(e);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
responsiveFunc(_ref) {
|
|
43
|
+
let {
|
|
44
|
+
mediaQueryOR
|
|
45
|
+
} = _ref;
|
|
46
|
+
return {
|
|
47
|
+
tabletMode: mediaQueryOR([{
|
|
48
|
+
maxWidth: 700
|
|
49
|
+
}])
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
render() {
|
|
54
|
+
var _this = this;
|
|
55
|
+
|
|
56
|
+
const {
|
|
57
|
+
needSearch,
|
|
58
|
+
dropBoxSize,
|
|
59
|
+
emptyMessage,
|
|
60
|
+
searchEmptyMessage,
|
|
61
|
+
position,
|
|
62
|
+
defaultDropBoxPosition,
|
|
63
|
+
getTargetRef,
|
|
64
|
+
getContainerRef,
|
|
65
|
+
isPopupOpen,
|
|
66
|
+
removeClose,
|
|
67
|
+
isPopupReady,
|
|
68
|
+
animationStyle,
|
|
69
|
+
searchBoxSize,
|
|
70
|
+
searchBoxVariant,
|
|
71
|
+
searchBoxPlaceHolder,
|
|
72
|
+
maxLength
|
|
73
|
+
} = this.props;
|
|
74
|
+
const {
|
|
75
|
+
hoverIndex,
|
|
76
|
+
selected,
|
|
77
|
+
searchStr,
|
|
78
|
+
isFetchingOptions,
|
|
79
|
+
selectedId
|
|
80
|
+
} = this.state;
|
|
81
|
+
const suggestions = this.handleFilterSuggestions();
|
|
82
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
className: style.container
|
|
84
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
onClick: this.togglePopup,
|
|
86
|
+
ref: getTargetRef
|
|
87
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
88
|
+
className: `${style.labelCnt} ${isPopupOpen ? style.focused : ''}`
|
|
89
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
90
|
+
className: style.labelText,
|
|
91
|
+
"data-title": selected
|
|
92
|
+
}, selected), /*#__PURE__*/React.createElement(Icon, {
|
|
93
|
+
name: "ZD-down",
|
|
94
|
+
size: "7",
|
|
95
|
+
iconClass: style.arrowIcon
|
|
96
|
+
}))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
97
|
+
query: this.responsiveFunc,
|
|
98
|
+
responsiveId: "Helmet"
|
|
99
|
+
}, _ref2 => {
|
|
100
|
+
let {
|
|
101
|
+
tabletMode
|
|
102
|
+
} = _ref2;
|
|
103
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
104
|
+
isAnimate: true,
|
|
105
|
+
isArrow: false,
|
|
106
|
+
isActive: isPopupReady,
|
|
107
|
+
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
108
|
+
getRef: getContainerRef,
|
|
109
|
+
onClick: removeClose,
|
|
110
|
+
animationStyle: animationStyle,
|
|
111
|
+
size: "large",
|
|
112
|
+
alignBox: "row",
|
|
113
|
+
isResponsivePadding: true
|
|
114
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
115
|
+
flexible: true
|
|
116
|
+
}, /*#__PURE__*/React.createElement(Card, null, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(DropDownSearch, {
|
|
117
|
+
value: searchStr,
|
|
118
|
+
onChange: this.handleSearch,
|
|
119
|
+
onKeyDown: this.onSearchKeyDown,
|
|
120
|
+
getRef: this.searchInputRef,
|
|
121
|
+
size: searchBoxSize,
|
|
122
|
+
variant: searchBoxVariant,
|
|
123
|
+
placeHolder: searchBoxPlaceHolder,
|
|
124
|
+
maxLength: maxLength
|
|
125
|
+
})) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
126
|
+
shrink: true,
|
|
127
|
+
eleRef: this.suggestionContainerRef,
|
|
128
|
+
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : ''
|
|
129
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: style.listItemContainer
|
|
131
|
+
}, suggestions.map(function () {
|
|
132
|
+
let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
133
|
+
let index = arguments.length > 1 ? arguments[1] : undefined;
|
|
134
|
+
const {
|
|
135
|
+
id,
|
|
136
|
+
value
|
|
137
|
+
} = option;
|
|
138
|
+
return /*#__PURE__*/React.createElement(ListItem, {
|
|
139
|
+
active: id === selectedId,
|
|
140
|
+
getRef: _this.suggestionItemRef,
|
|
141
|
+
highlight: hoverIndex === index ? true : false,
|
|
142
|
+
id: id,
|
|
143
|
+
key: `${id}dropDown`,
|
|
144
|
+
onClick: _this.handleChange,
|
|
145
|
+
onMouseEnter: _this.handleMouseEnter,
|
|
146
|
+
size: "medium",
|
|
147
|
+
value: value,
|
|
148
|
+
index: index,
|
|
149
|
+
needTick: true,
|
|
150
|
+
needBorder: false
|
|
151
|
+
});
|
|
152
|
+
})) : isFetchingOptions ? /*#__PURE__*/React.createElement(Container, {
|
|
153
|
+
align: "both",
|
|
154
|
+
className: style.loader
|
|
155
|
+
}, /*#__PURE__*/React.createElement(Loader, null)) : searchStr ? /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
className: style.emptyState
|
|
157
|
+
}, searchEmptyMessage || emptyMessage) : /*#__PURE__*/React.createElement("div", {
|
|
158
|
+
className: style.emptyState
|
|
159
|
+
}, emptyMessage)))));
|
|
160
|
+
}) : null);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
DropDown.propTypes = propTypes;
|
|
166
|
+
DropDown.defaultProps = defaultProps;
|
|
167
|
+
const ViewDropDown = Popup(DropDown);
|
|
168
|
+
ViewDropDown.defaultProps = DropDown.defaultProps; // if (__DOCS__) {
|
|
169
|
+
// DropDown.docs = {
|
|
170
|
+
// componentGroup: 'Lookup'
|
|
171
|
+
// };
|
|
172
|
+
// // eslint-disable-next-line react/forbid-foreign-prop-types
|
|
173
|
+
// ViewDropDown.propTypes = DropDown.propTypes;
|
|
174
|
+
// }
|
|
175
|
+
|
|
176
|
+
export default ViewDropDown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Close } from './Close/Close';
|
|
2
|
+
export { default as ModuleHeader } from './ModuleHeader/ModuleHeader';
|
|
3
|
+
export { default as Search } from './Search/Search';
|
|
4
|
+
export { default as TicketHeader } from './TicketHeader/TicketHeader';
|
|
5
|
+
export { default as ViewDropDown } from './ViewDropDown/ViewDropDown';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defaultProps } from '../../../../setup/header/Button/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../../setup/header/Button/props/propTypes';
|
|
4
|
+
import GenButton from '@zohodesk/components/lib/Button/Button';
|
|
5
|
+
import style from '../../../../setup/header/Button/HeaderButton.module.css';
|
|
6
|
+
export default class Button extends React.Component {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
render() {
|
|
12
|
+
let {
|
|
13
|
+
palette,
|
|
14
|
+
text,
|
|
15
|
+
onClick,
|
|
16
|
+
id
|
|
17
|
+
} = this.props;
|
|
18
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: style.container
|
|
20
|
+
}, /*#__PURE__*/React.createElement(GenButton, {
|
|
21
|
+
id: id,
|
|
22
|
+
onClick: onClick,
|
|
23
|
+
palette: palette,
|
|
24
|
+
size: "medium",
|
|
25
|
+
text: text
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
Button.defaultProps = defaultProps;
|
|
31
|
+
Button.propTypes = propTypes; // if (__DOCS__) {
|
|
32
|
+
// Button.docs = {
|
|
33
|
+
// componentGroup: 'Header',
|
|
34
|
+
// folderName: 'Setup'
|
|
35
|
+
// };
|
|
36
|
+
// }
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defaultProps } from '../../../../setup/header/Link/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../../setup/header/Link/props/propTypes';
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import { Box } from '@zohodesk/components/lib/Layout';
|
|
6
|
+
import ExternalLink from '../../../ExternalLink/ExternalLink';
|
|
7
|
+
import style from '../../../../setup/header/Link/HeaderLink.module.css';
|
|
8
|
+
export default class Link extends React.Component {
|
|
9
|
+
constructor(props) {
|
|
10
|
+
super(props);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
render() {
|
|
14
|
+
let {
|
|
15
|
+
url,
|
|
16
|
+
text,
|
|
17
|
+
iconName,
|
|
18
|
+
iconClass,
|
|
19
|
+
iconSize
|
|
20
|
+
} = this.props;
|
|
21
|
+
return /*#__PURE__*/React.createElement(ExternalLink, {
|
|
22
|
+
className: style.container,
|
|
23
|
+
href: url
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
25
|
+
className: style.icon
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
27
|
+
isBold: true,
|
|
28
|
+
name: iconName,
|
|
29
|
+
size: iconSize,
|
|
30
|
+
iconClass: iconClass ? iconClass : ''
|
|
31
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
32
|
+
className: style.text,
|
|
33
|
+
flexible: true
|
|
34
|
+
}, text));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
Link.defaultProps = defaultProps;
|
|
39
|
+
Link.propTypes = propTypes; // if (__DOCS__) {
|
|
40
|
+
// Link.docs = {
|
|
41
|
+
// componentGroup: 'Header',
|
|
42
|
+
// folderName: 'Setup'
|
|
43
|
+
// };
|
|
44
|
+
// }
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defaultProps } from '../../../../setup/header/Search/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../../setup/header/Search/props/propTypes';
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
|
|
6
|
+
import style from '../../../../setup/header/Search/Search.module.css';
|
|
7
|
+
export default class Search extends React.Component {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
super(props);
|
|
10
|
+
let {
|
|
11
|
+
value
|
|
12
|
+
} = this.props;
|
|
13
|
+
this.state = {
|
|
14
|
+
value: value || '',
|
|
15
|
+
isFocus: false
|
|
16
|
+
};
|
|
17
|
+
this.onFocus = this.onFocus.bind(this);
|
|
18
|
+
this.onBlur = this.onBlur.bind(this);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
onFocus(id, name, value) {
|
|
22
|
+
let {
|
|
23
|
+
onFocus
|
|
24
|
+
} = this.props;
|
|
25
|
+
this.setState({
|
|
26
|
+
isFocus: true
|
|
27
|
+
});
|
|
28
|
+
onFocus && onFocus(id, name, value);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
onBlur(id, name, value) {
|
|
32
|
+
let {
|
|
33
|
+
onBlur
|
|
34
|
+
} = this.props;
|
|
35
|
+
this.state.value == '' && this.setState({
|
|
36
|
+
isFocus: false
|
|
37
|
+
});
|
|
38
|
+
onBlur && onBlur(id, name, value);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
render() {
|
|
42
|
+
let {
|
|
43
|
+
placeHolder,
|
|
44
|
+
maxLength,
|
|
45
|
+
value,
|
|
46
|
+
onChange,
|
|
47
|
+
onKeyPress,
|
|
48
|
+
customClass
|
|
49
|
+
} = this.props;
|
|
50
|
+
let {
|
|
51
|
+
isFocus
|
|
52
|
+
} = this.state;
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
|
|
55
|
+
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
56
|
+
placeHolder: placeHolder,
|
|
57
|
+
customClass: style.input,
|
|
58
|
+
maxLength: maxLength,
|
|
59
|
+
value: value,
|
|
60
|
+
onChange: onChange,
|
|
61
|
+
onKeyUp: onKeyPress,
|
|
62
|
+
onFocus: this.onFocus,
|
|
63
|
+
needAppearance: false,
|
|
64
|
+
onBlur: this.onBlur
|
|
65
|
+
}), value != '' && value ? /*#__PURE__*/React.createElement("span", {
|
|
66
|
+
className: style.icon,
|
|
67
|
+
onClick: this.onBlur
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
69
|
+
name: "ZD-close",
|
|
70
|
+
size: "19"
|
|
71
|
+
})) : null);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
Search.propTypes = propTypes;
|
|
76
|
+
Search.defaultProps = defaultProps; // if (__DOCS__) {
|
|
77
|
+
// Search.docs = {
|
|
78
|
+
// componentGroup: 'Header',
|
|
79
|
+
// folderName: 'Setup'
|
|
80
|
+
// };
|
|
81
|
+
// }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defaultProps } from '../../../../setup/header/Views/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../../setup/header/Views/props/propTypes';
|
|
4
|
+
import style from '../../../../setup/header/Views/Views.module.css';
|
|
5
|
+
import { Icon } from '@zohodesk/icons';
|
|
6
|
+
export default class Views extends React.Component {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
render() {
|
|
12
|
+
let {
|
|
13
|
+
isGrid,
|
|
14
|
+
isList,
|
|
15
|
+
gridTitle,
|
|
16
|
+
listTitle,
|
|
17
|
+
onListClick,
|
|
18
|
+
onGridClick
|
|
19
|
+
} = this.props;
|
|
20
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
className: style.container
|
|
22
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
className: `${style.icon} ${style.first} ${isList ? style.active : ''}`,
|
|
24
|
+
"data-title": !isList ? listTitle : null,
|
|
25
|
+
onClick: onListClick
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
27
|
+
name: "ZD-list22",
|
|
28
|
+
size: "10"
|
|
29
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
30
|
+
className: `${style.icon} ${style.last} ${isGrid ? style.active : ''}`,
|
|
31
|
+
"data-title": !isGrid ? gridTitle : null,
|
|
32
|
+
onClick: onGridClick
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
34
|
+
name: "ZD-grid",
|
|
35
|
+
size: "11"
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
Views.propTypes = propTypes;
|
|
41
|
+
Views.defaultProps = defaultProps; // if (__DOCS__) {
|
|
42
|
+
// Views.docs = {
|
|
43
|
+
// componentGroup: 'Header',
|
|
44
|
+
// folderName: 'Setup'
|
|
45
|
+
// };
|
|
46
|
+
// }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { propTypes } from '../../../../setup/helptips/Description/props/propTypes';
|
|
3
|
+
import style from '../../../../setup/helptips/Description/HelpTipsDescription.module.css';
|
|
4
|
+
export default class Description extends React.Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
render() {
|
|
10
|
+
let {
|
|
11
|
+
text
|
|
12
|
+
} = this.props;
|
|
13
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
14
|
+
className: style.text
|
|
15
|
+
}, text);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
Description.propTypes = propTypes; // if (__DOCS__) {
|
|
20
|
+
// Description.docs = {
|
|
21
|
+
// componentGroup: 'HelpTips',
|
|
22
|
+
// folderName: 'Setup'
|
|
23
|
+
// };
|
|
24
|
+
// }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { propTypes } from '../../../../setup/helptips/Link/props/propTypes';
|
|
3
|
+
import style from '../../../../setup/helptips/Link/HelpTipsLink.module.css';
|
|
4
|
+
import ExternalLink from '../../../ExternalLink/ExternalLink';
|
|
5
|
+
export default class Link extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
let {
|
|
12
|
+
text,
|
|
13
|
+
url,
|
|
14
|
+
onClick,
|
|
15
|
+
isDangerous = false
|
|
16
|
+
} = this.props;
|
|
17
|
+
|
|
18
|
+
if (isDangerous) {
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: style.container,
|
|
21
|
+
onClick: onClick,
|
|
22
|
+
dangerouslySetInnerHTML: {
|
|
23
|
+
__html: text
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/React.createElement(ExternalLink, {
|
|
29
|
+
href: url,
|
|
30
|
+
onClick: onClick,
|
|
31
|
+
className: style.text
|
|
32
|
+
}, text);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
Link.propTypes = propTypes; // if (__DOCS__) {
|
|
37
|
+
// Link.docs = {
|
|
38
|
+
// componentGroup: 'HelpTips',
|
|
39
|
+
// folderName: 'Setup'
|
|
40
|
+
// };
|
|
41
|
+
// }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { propTypes } from '../../../../setup/helptips/ListGroup/props/propTypes';
|
|
3
|
+
import style from '../../../../setup/helptips/ListGroup/ListGroup.module.css';
|
|
4
|
+
export default class ListGroup extends React.Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
render() {
|
|
10
|
+
let {
|
|
11
|
+
isOrder,
|
|
12
|
+
data
|
|
13
|
+
} = this.props;
|
|
14
|
+
|
|
15
|
+
if (isOrder) {
|
|
16
|
+
return /*#__PURE__*/React.createElement("ol", {
|
|
17
|
+
className: style.container,
|
|
18
|
+
type: "1"
|
|
19
|
+
}, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
|
|
20
|
+
className: style.orderData,
|
|
21
|
+
key: index
|
|
22
|
+
}, text)));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
26
|
+
className: style.container
|
|
27
|
+
}, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
|
|
28
|
+
className: style.unOrderData,
|
|
29
|
+
key: index
|
|
30
|
+
}, data)));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
ListGroup.propTypes = propTypes; // if (__DOCS__) {
|
|
35
|
+
// ListGroup.docs = {
|
|
36
|
+
// componentGroup: 'HelpTips',
|
|
37
|
+
// folderName: 'Setup'
|
|
38
|
+
// };
|
|
39
|
+
// }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { propTypes } from '../../../../setup/helptips/Title/props/propTypes';
|
|
3
|
+
import style from '../../../../setup/helptips/Title/HelpTipsTitle.module.css';
|
|
4
|
+
export default class Title extends React.Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
render() {
|
|
10
|
+
let {
|
|
11
|
+
text
|
|
12
|
+
} = this.props;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: style.title
|
|
15
|
+
}, text);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
Title.propTypes = propTypes; // if (__DOCS__) {
|
|
20
|
+
// Title.docs = {
|
|
21
|
+
// componentGroup: 'HelpTips',
|
|
22
|
+
// folderName: 'Setup'
|
|
23
|
+
// };
|
|
24
|
+
// }
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Table } from './Table/Table';
|
|
2
|
+
export { default as TableBody } from './TableBody/TableBody';
|
|
3
|
+
export { default as TableData } from './TableData/TableData';
|
|
4
|
+
export { default as TableHead } from './TableHead/TableHead';
|
|
5
|
+
export { default as TableRow } from './TableRow/TableRow';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PlusIcon_defaultProps } from '../../svg/props/defaultProps';
|
|
3
|
+
import { PlusIcon_propTypes } from '../../svg/props/propTypes';
|
|
4
|
+
import SVG from '@zohodesk/svg/lib/SVG/SVG';
|
|
5
|
+
export default class PlusIcon extends React.Component {
|
|
6
|
+
render() {
|
|
7
|
+
let {
|
|
8
|
+
isRender,
|
|
9
|
+
isSymbol,
|
|
10
|
+
className
|
|
11
|
+
} = this.props;
|
|
12
|
+
return /*#__PURE__*/React.createElement(SVG, {
|
|
13
|
+
viewBox: "0 0 32 32",
|
|
14
|
+
name: "PlusIcon",
|
|
15
|
+
isRender: isRender,
|
|
16
|
+
isSymbol: isSymbol,
|
|
17
|
+
className: className
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
style: {
|
|
20
|
+
fill: '#767d89'
|
|
21
|
+
},
|
|
22
|
+
d: "M16,2.7c0.4,0,0.7,0.1,0.9,0.4s0.4,0.6,0.4,0.9v10.7H28c0.4,0,0.7,0.1,0.9,0.4c0.3,0.3,0.4,0.6,0.4,0.9 c0,0.4-0.1,0.7-0.4,0.9c-0.3,0.3-0.6,0.4-0.9,0.4H17.3V28c0,0.4-0.1,0.7-0.4,0.9c-0.3,0.3-0.6,0.4-0.9,0.4c-0.4,0-0.7-0.1-0.9-0.4 c-0.3-0.3-0.4-0.6-0.4-0.9V17.3H4c-0.4,0-0.7-0.1-0.9-0.4S2.7,16.4,2.7,16s0.1-0.7,0.4-0.9c0.3-0.3,0.6-0.4,0.9-0.4h10.7V4 c0-0.4,0.1-0.7,0.4-0.9C15.3,2.8,15.6,2.7,16,2.7z"
|
|
23
|
+
})));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
PlusIcon.propTypes = PlusIcon_propTypes;
|
|
28
|
+
PlusIcon.defaultProps = PlusIcon_defaultProps; // if (__DOCS__) {
|
|
29
|
+
// PlusIcon.docs = {
|
|
30
|
+
// componentGroup: 'SVG'
|
|
31
|
+
// };
|
|
32
|
+
// }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SnippetIcon_defaultProps } from '../../svg/props/defaultProps';
|
|
3
|
+
import { SnippetIcon_propTypes } from '../../svg/props/propTypes';
|
|
4
|
+
import SVG from '@zohodesk/svg/lib/SVG/SVG';
|
|
5
|
+
export default class SnippetIcon extends React.Component {
|
|
6
|
+
render() {
|
|
7
|
+
let {
|
|
8
|
+
isRender,
|
|
9
|
+
isSymbol,
|
|
10
|
+
className
|
|
11
|
+
} = this.props;
|
|
12
|
+
return /*#__PURE__*/React.createElement(SVG, {
|
|
13
|
+
viewBox: "0 0 31 32",
|
|
14
|
+
name: "SnippetIcon",
|
|
15
|
+
isRender: isRender,
|
|
16
|
+
isSymbol: isSymbol,
|
|
17
|
+
className: className
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
d: "M14.4,8.2L15.6,9L16,8.4l-1-0.7l2.5-3.7L11.5,0L8.9,3.8L7.9,3L7.6,3.6l1.2,0.8c-2.3,3-5.9,0.8-6,0.7L2.3,4.9L0,23.8 l16.6-9.3l-0.4-0.3C15.9,13.9,12.6,11.5,14.4,8.2L14.4,8.2z M1.5,22l5.2-7.7c0.3,0.1,0.6,0.2,0.9,0.2c1.2,0,2.1-0.9,2.2-2.1 c0-1.2-0.9-2.1-2.1-2.2c-1.2,0-2.1,0.9-2.2,2.1c0,0.6,0.2,1.2,0.7,1.6L1,21.6L2.8,6c1.2,0.6,4.4,1.7,6.5-1.1l4.5,3 c-1.8,3,0.4,5.6,1.4,6.5L1.5,22L1.5,22z M6.7,13.6c-0.7-0.4-0.8-1.3-0.4-2s1.3-0.8,2-0.4c0.7,0.4,0.8,1.3,0.4,2 c-0.2,0.3-0.5,0.5-0.9,0.6C7.5,13.9,7.1,13.8,6.7,13.6L6.7,13.6z"
|
|
20
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
style: {
|
|
22
|
+
fill: '#03A3FE'
|
|
23
|
+
},
|
|
24
|
+
d: "M30.9,25c-4.9,0.7-5.4,1.2-5.9,6.7c-0.6-5.4-1.1-6-6.1-6.5c4.9-0.7,5.4-1.2,5.9-6.7 C25.4,23.9,25.9,24.5,30.9,25z M30.3,8.2c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C25.4,7.1,25.8,7.6,30.3,8.2z M16.2,25.7c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C11.3,24.6,11.7,25.1,16.2,25.7z"
|
|
25
|
+
})));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
SnippetIcon.propTypes = SnippetIcon_propTypes;
|
|
30
|
+
SnippetIcon.defaultProps = SnippetIcon_defaultProps; // if (__DOCS__) {
|
|
31
|
+
// SnippetIcon.docs = {
|
|
32
|
+
// componentGroup: 'SVG'
|
|
33
|
+
// };
|
|
34
|
+
// }
|