@zohodesk/dot 1.0.0-temp-157 → 1.0.0-temp-159
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/MissedPropType_Keys.html +101 -0
- package/.cli/PropLessFiles.html +101 -0
- package/.cli/PropValidationExcludeFilesArray.js +1 -0
- package/.cli/propValidation_report.html +160 -0
- package/README.md +67 -30
- 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 +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- 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 -12
- package/coverage/coverage-summary.json +17 -13
- package/coverage/index.html +40 -10
- package/es/ActionButton/ActionButton.js +5 -2
- package/es/ActionButton/props/propTypes.js +3 -2
- package/es/AlphabeticList/props/propTypes.js +1 -1
- package/es/Attachment/props/propTypes.js +2 -1
- package/es/Drawer/Drawer.js +13 -12
- package/es/Drawer/props/propTypes.js +2 -1
- package/es/IconButton/IconButton.js +2 -2
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/Link/props/propTypes.js +5 -1
- package/es/Message/Message.js +4 -2
- package/es/Message/props/propTypes.js +11 -4
- package/es/Separator/props/propTypes.js +1 -1
- package/es/TagWithIcon/props/propTypes.js +3 -2
- package/es/ToastMessage/props/propTypes.js +4 -3
- package/es/actions/props/propTypes.js +2 -1
- package/es/alert/AlertLookup/props/propTypes.js +0 -1
- package/es/avatar/AvatarThread/props/propTypes.js +1 -1
- package/es/deprecated/SelectDropdown/SelectDropdown.js +3 -8
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +5 -2
- package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -1
- package/es/emptystate/EditionPage/props/propTypes.js +6 -2
- package/es/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/es/form/fields/CurrencyField/props/propTypes.js +4 -1
- package/es/form/fields/DateField/props/propTypes.js +1 -1
- package/es/form/fields/FieldContainer/props/propTypes.js +18 -4
- package/es/form/fields/MultiSelectField/props/propTypes.js +2 -2
- package/es/form/fields/PhoneField/props/propTypes.js +8 -1
- package/es/form/fields/RadioField/props/propTypes.js +2 -2
- package/es/form/fields/SelectField/SelectField.js +1 -2
- package/es/form/fields/SelectField/props/propTypes.js +2 -2
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -3
- package/es/form/fields/TagsMultiSelectField/props/propTypes.js +13 -2
- package/es/form/fields/TextBoxField/props/propTypes.js +8 -1
- package/es/form/fields/TextEditor/props/propTypes.js +7 -1
- package/es/form/fields/TextEditorField/props/propTypes.js +13 -1
- package/es/form/fields/TextEditorWrapper/props/propTypes.js +2 -1
- package/es/form/fields/TextareaField/props/propTypes.js +2 -2
- package/es/form/fields/ValidationMessage/props/propTypes.js +4 -2
- package/es/form/fields/props/FieldCommonPropTypes.js +16 -22
- package/es/form/layout/Section/props/propTypes.js +3 -1
- package/es/layout/SubtabLayout/props/propTypes.js +1 -1
- package/es/list/Comment/props/propTypes.js +0 -3
- package/es/list/GridStencils/props/propTypes.js +2 -1
- package/es/list/Icons/props/propTypes.js +0 -2
- package/es/list/SecondaryText/props/propTypes.js +0 -1
- package/es/list/UserTime/props/propTypes.js +5 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +1 -1
- package/es/lookup/Lookup/Lookup.js +10 -10
- package/es/lookup/Lookup/props/propTypes.js +4 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
- package/es/lookup/header/ViewDropDown/props/propTypes.js +6 -11
- package/es/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/es/setup/table/TableHead/props/propTypes.js +2 -1
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/es/v1/Attachment/Attachment.js +91 -0
- package/es/v1/AttachmentViewer/AttachmentImage.js +60 -0
- package/es/v1/AttachmentViewer/AttachmentViewer.js +541 -0
- package/es/v1/ChannelIcon/ChannelIcon.js +2 -2
- package/es/v1/Drawer/Drawer.js +17 -17
- package/es/v1/FlipCard/FlipCard.js +7 -7
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +74 -0
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +10 -8
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/Image/Image.js +39 -0
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Link/Link.js +2 -1
- package/es/v1/Loader/Loader.js +15 -0
- package/es/v1/Message/Message.js +118 -0
- package/es/v1/MessageBanner/MessageBanner.js +2 -2
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/PlusIcon/PlusIcon.js +44 -0
- package/es/v1/Separator/Separator.js +60 -0
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +203 -0
- package/es/v1/Upload/Upload.js +69 -0
- package/es/v1/actions/AutoClose.js +43 -0
- 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/alert/alertIcons/index.js +8 -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 +864 -0
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/es/v1/{version2/errorstate → errorstate}/Inconvenience/Inconvenience.js +7 -11
- 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/{version2/errorstate → errorstate}/UnauthorizedLogin/UnauthorizedLogin.js +6 -6
- 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 +125 -0
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +157 -0
- package/es/v1/form/fields/DateField/DateField.js +164 -0
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +66 -0
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +189 -0
- package/es/v1/form/fields/PhoneField/PhoneField.js +161 -0
- package/es/v1/form/fields/RadioField/RadioField.js +108 -0
- package/es/v1/form/fields/SelectField/SelectField.js +168 -0
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +292 -0
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +261 -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 +73 -0
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +21 -0
- package/es/v1/list/Comment/Comment.js +38 -0
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +85 -0
- package/es/v1/list/Dot/Dot.js +15 -0
- package/es/v1/list/DotNew/DotNew.js +22 -0
- package/es/v1/list/GridStencils/GridStencils.js +31 -0
- package/es/v1/list/Icons/AddNewIcon.js +25 -0
- package/es/v1/list/Icons/CompleteIcon.js +27 -0
- package/es/v1/list/Icons/DeleteIcon.js +28 -0
- package/es/v1/list/Icons/EditIcon.js +28 -0
- package/es/v1/list/Icons/FloatingIcons.js +23 -0
- package/es/v1/list/Icons/ReadUnreadIcon.js +32 -0
- package/es/v1/list/Icons/SmartIcon.js +25 -0
- package/es/v1/list/Icons/index.js +7 -0
- package/es/v1/list/ListLayout/ListLayout.js +69 -0
- package/es/v1/list/ListStencils/ListStencils.js +44 -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 +104 -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 +374 -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 +16 -13
- package/es/v1/lookup/Section/Section.js +25 -0
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +3 -3
- package/es/v1/lookup/header/Search/Search.js +5 -5
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +177 -0
- package/es/v1/lookup/header/index.js +5 -0
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +164 -0
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- 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/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/es/v1/setup/table/index.js +5 -0
- package/es/v1/svg/PlusIcon.js +25 -0
- package/es/v1/svg/SnippetIcon.js +27 -0
- package/es/v1/svg/TemplateIcon.js +28 -0
- package/es/v1/svg/index.js +3 -0
- package/es/version2/GlobalNotification/GlobalNotification.js +4 -2
- package/es/version2/GlobalNotification/props/propTypes.js +19 -1
- package/es/version2/lookup/AlertLookup/props/propTypes.js +0 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +2 -1
- package/es/version2/notification/DesktopNotification/props/propTypes.js +13 -9
- package/lib/ActionButton/ActionButton.js +5 -3
- package/lib/ActionButton/props/propTypes.js +3 -2
- package/lib/AlphabeticList/props/propTypes.js +1 -1
- package/lib/Attachment/props/propTypes.js +2 -1
- package/lib/Drawer/Drawer.js +18 -17
- package/lib/Drawer/props/propTypes.js +2 -1
- package/lib/IconButton/IconButton.js +2 -2
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/Link/props/propTypes.js +5 -1
- package/lib/Message/Message.js +5 -1
- package/lib/Message/props/propTypes.js +23 -6
- package/lib/Separator/props/propTypes.js +1 -1
- package/lib/TagWithIcon/props/propTypes.js +3 -2
- package/lib/ToastMessage/props/propTypes.js +4 -3
- package/lib/actions/props/propTypes.js +2 -1
- package/lib/alert/AlertLookup/props/propTypes.js +0 -1
- package/lib/avatar/AvatarThread/props/propTypes.js +1 -1
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +3 -7
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +5 -3
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -1
- package/lib/emptystate/EditionPage/props/propTypes.js +6 -2
- package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/lib/form/fields/CurrencyField/props/propTypes.js +5 -2
- package/lib/form/fields/DateField/props/propTypes.js +1 -1
- package/lib/form/fields/FieldContainer/props/propTypes.js +21 -16
- package/lib/form/fields/MultiSelectField/props/propTypes.js +3 -3
- package/lib/form/fields/PhoneField/props/propTypes.js +8 -1
- package/lib/form/fields/RadioField/props/propTypes.js +2 -2
- package/lib/form/fields/SelectField/SelectField.js +1 -2
- package/lib/form/fields/SelectField/props/propTypes.js +3 -3
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +16 -11
- package/lib/form/fields/TextBoxField/props/propTypes.js +8 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +7 -1
- package/lib/form/fields/TextEditorField/props/propTypes.js +51 -49
- package/lib/form/fields/TextEditorWrapper/props/propTypes.js +2 -1
- package/lib/form/fields/TextareaField/props/propTypes.js +3 -3
- package/lib/form/fields/ValidationMessage/props/propTypes.js +4 -2
- package/lib/form/fields/props/FieldCommonPropTypes.js +16 -23
- package/lib/form/layout/Section/props/propTypes.js +3 -1
- package/lib/layout/SubtabLayout/props/propTypes.js +1 -1
- package/lib/list/Comment/props/propTypes.js +0 -3
- package/lib/list/GridStencils/props/propTypes.js +2 -1
- package/lib/list/Icons/props/propTypes.js +0 -2
- package/lib/list/SecondaryText/props/propTypes.js +0 -1
- package/lib/list/UserTime/props/propTypes.js +5 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -4
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +15 -15
- package/lib/lookup/Lookup/props/propTypes.js +4 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +2 -1
- package/lib/lookup/header/ViewDropDown/props/propTypes.js +6 -11
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -1
- package/lib/setup/table/TableHead/props/propTypes.js +2 -1
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +8 -6
- package/lib/v1/Attachment/Attachment.js +105 -0
- package/lib/v1/AttachmentViewer/AttachmentImage.js +89 -0
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +625 -0
- package/lib/v1/ChannelIcon/ChannelIcon.js +2 -2
- package/lib/v1/Drawer/Drawer.js +22 -22
- package/lib/v1/FlipCard/FlipCard.js +7 -7
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +94 -0
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +12 -8
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/Image/Image.js +89 -0
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Link/Link.js +2 -1
- package/lib/v1/Loader/Loader.js +27 -0
- package/lib/v1/Message/Message.js +170 -0
- package/lib/v1/MessageBanner/MessageBanner.js +2 -2
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/PlusIcon/PlusIcon.js +91 -0
- package/lib/v1/Separator/Separator.js +107 -0
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +246 -0
- package/lib/v1/Upload/Upload.js +83 -0
- package/lib/v1/actions/AutoClose.js +75 -0
- 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/alert/alertIcons/index.js +71 -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 +934 -0
- package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/lib/v1/{version2/errorstate → errorstate}/Inconvenience/Inconvenience.js +7 -11
- 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/{version2/errorstate → errorstate}/UnauthorizedLogin/UnauthorizedLogin.js +6 -6
- 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 +145 -0
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +193 -0
- package/lib/v1/form/fields/DateField/DateField.js +183 -0
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +87 -0
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +208 -0
- package/lib/v1/form/fields/PhoneField/PhoneField.js +193 -0
- package/lib/v1/form/fields/RadioField/RadioField.js +123 -0
- package/lib/v1/form/fields/SelectField/SelectField.js +185 -0
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +346 -0
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +302 -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 +86 -0
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +33 -0
- package/lib/v1/list/Comment/Comment.js +53 -0
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +102 -0
- package/lib/v1/list/Dot/Dot.js +27 -0
- package/lib/v1/list/DotNew/DotNew.js +34 -0
- package/lib/v1/list/GridStencils/GridStencils.js +42 -0
- package/lib/v1/list/Icons/AddNewIcon.js +38 -0
- package/lib/v1/list/Icons/CompleteIcon.js +40 -0
- package/lib/v1/list/Icons/DeleteIcon.js +41 -0
- package/lib/v1/list/Icons/EditIcon.js +41 -0
- package/lib/v1/list/Icons/FloatingIcons.js +42 -0
- package/lib/v1/list/Icons/ReadUnreadIcon.js +46 -0
- package/lib/v1/list/Icons/SmartIcon.js +38 -0
- package/lib/v1/list/Icons/index.js +63 -0
- package/lib/v1/list/ListLayout/ListLayout.js +82 -0
- package/lib/v1/list/ListStencils/ListStencils.js +57 -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 +203 -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 +436 -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 +22 -18
- package/lib/v1/lookup/Section/Section.js +75 -0
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +3 -3
- package/lib/v1/lookup/header/Search/Search.js +8 -6
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +222 -0
- package/lib/v1/lookup/header/index.js +47 -0
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +193 -0
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- 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/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/lib/v1/setup/table/index.js +47 -0
- package/lib/v1/svg/PlusIcon.js +37 -0
- package/lib/v1/svg/SnippetIcon.js +39 -0
- package/lib/v1/svg/TemplateIcon.js +40 -0
- package/lib/v1/svg/index.js +31 -0
- package/lib/version2/GlobalNotification/GlobalNotification.js +5 -1
- package/lib/version2/GlobalNotification/props/propTypes.js +23 -3
- package/lib/version2/lookup/AlertLookup/props/propTypes.js +0 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +2 -0
- package/lib/version2/notification/DesktopNotification/props/propTypes.js +16 -11
- package/package.json +17 -15
- package/result.json +1 -1
- package/unittest/index.html +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/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -152
- package/lib/docs/generalDocs.js +0 -479
- package/lib/docs/lookupDocs.js +0 -135
- package/lib/docs/setupDocs.js +0 -95
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -173
- /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/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
|
@@ -4,17 +4,17 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
4
4
|
|
|
5
5
|
/*** Libraries ***/
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
|
-
import { SearchUI_defaultProps } from '../../../../lookup/header/
|
|
8
|
-
import { Search_propTypes, SearchUI_propTypes } from '../../../../lookup/header/
|
|
7
|
+
import { SearchUI_defaultProps } from '../../../../lookup/header/Search/props/defaultProps';
|
|
8
|
+
import { Search_propTypes, SearchUI_propTypes } from '../../../../lookup/header/Search/props/propTypes';
|
|
9
9
|
/** * Components ** */
|
|
10
10
|
|
|
11
|
-
import TextBoxIcon from '@zohodesk/components/
|
|
12
|
-
import { Container, Box } from '@zohodesk/components/
|
|
11
|
+
import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
|
|
12
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
13
13
|
import { Icon } from '@zohodesk/icons';
|
|
14
14
|
import ToggleDropDown from '../../../../dropdown/ToggleDropDown/ToggleDropDown';
|
|
15
15
|
/** * Methods ** */
|
|
16
16
|
|
|
17
|
-
import { debounce } from '@zohodesk/components/
|
|
17
|
+
import { debounce } from '@zohodesk/components/es/utils/debounce';
|
|
18
18
|
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
19
19
|
/** * CSS ** */
|
|
20
20
|
|
|
@@ -8,7 +8,7 @@ import Title from '../Title/Title';
|
|
|
8
8
|
import Close from '../Close/Close';
|
|
9
9
|
import Search from '../Search/Search';
|
|
10
10
|
import ViewDropDown from '../../../../lookup/header/ViewDropDown/ViewDropDown';
|
|
11
|
-
import { Container, Box } from '@zohodesk/components/
|
|
11
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
12
12
|
/*** CSS ***/
|
|
13
13
|
|
|
14
14
|
import commonStyle from '../../../../lookup/header/lookupHeaderCommon.module.css';
|
|
@@ -0,0 +1,177 @@
|
|
|
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/es/v1/Select/Select';
|
|
8
|
+
import Popup from '@zohodesk/components/es/v1/Popup/Popup';
|
|
9
|
+
import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
|
|
10
|
+
import DropDownSearch from '@zohodesk/components/es/v1/DropDown/DropDownSearch';
|
|
11
|
+
import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
|
|
12
|
+
import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
|
|
13
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
|
|
14
|
+
/**** Icons ****/
|
|
15
|
+
|
|
16
|
+
import { Icon } from '@zohodesk/icons';
|
|
17
|
+
import { Container, Box } from '@zohodesk/components/es/v1/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;
|
|
169
|
+
ViewDropDown.propTypes = DropDown.propTypes; // if (__DOCS__) {
|
|
170
|
+
// DropDown.docs = {
|
|
171
|
+
// componentGroup: 'Lookup'
|
|
172
|
+
// };
|
|
173
|
+
// // eslint-disable-next-line react/forbid-foreign-prop-types
|
|
174
|
+
// ViewDropDown.propTypes = DropDown.propTypes;
|
|
175
|
+
// }
|
|
176
|
+
|
|
177
|
+
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,164 @@
|
|
|
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
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { defaultProps } from '../../../version2/notification/DesktopNotification/props/defaultProps';
|
|
5
|
+
import { propTypes, DesktopNotificationUI_propTypes } from '../../../version2/notification/DesktopNotification/props/propTypes';
|
|
6
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
|
+
import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
|
|
8
|
+
import AutoClose from '../../../actions/AutoClose';
|
|
9
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
10
|
+
import FormAction from '../../../FormAction/FormAction';
|
|
11
|
+
import DesktopNotificationHeader from '../DesktopNotificationHeader/DesktopNotificationHeader';
|
|
12
|
+
import style from '../../../version2/notification/DesktopNotification/DesktopNotification.module.css';
|
|
13
|
+
let buttonPaletteObject = {
|
|
14
|
+
success: {
|
|
15
|
+
buttonPalette: 'successFilled'
|
|
16
|
+
},
|
|
17
|
+
error: {
|
|
18
|
+
buttonPalette: 'dangerFilled'
|
|
19
|
+
},
|
|
20
|
+
danger: {
|
|
21
|
+
buttonPalette: 'dangerFilled'
|
|
22
|
+
},
|
|
23
|
+
warning: {
|
|
24
|
+
buttonPalette: 'dangerFilled'
|
|
25
|
+
},
|
|
26
|
+
info: {
|
|
27
|
+
buttonPalette: 'primaryFilled'
|
|
28
|
+
},
|
|
29
|
+
notification: {
|
|
30
|
+
buttonPalette: 'primaryFilled'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export function DesktopNotificationUI(props) {
|
|
34
|
+
let {
|
|
35
|
+
type = '',
|
|
36
|
+
submitText,
|
|
37
|
+
cancelText,
|
|
38
|
+
submitType,
|
|
39
|
+
isMore,
|
|
40
|
+
message,
|
|
41
|
+
isAnimate,
|
|
42
|
+
getBottomContainer,
|
|
43
|
+
getSubmitContainer,
|
|
44
|
+
onSubmit,
|
|
45
|
+
onCancel,
|
|
46
|
+
dataId,
|
|
47
|
+
dataSelectorId,
|
|
48
|
+
isClose,
|
|
49
|
+
needAutoZindex,
|
|
50
|
+
title,
|
|
51
|
+
subTitle,
|
|
52
|
+
needIcon,
|
|
53
|
+
info,
|
|
54
|
+
secondaryInfo,
|
|
55
|
+
titleVariant,
|
|
56
|
+
getSectionContainer,
|
|
57
|
+
isShrinkView,
|
|
58
|
+
size,
|
|
59
|
+
onClose,
|
|
60
|
+
needClose,
|
|
61
|
+
customClass = {},
|
|
62
|
+
i18nKeys = {},
|
|
63
|
+
customProps
|
|
64
|
+
} = props;
|
|
65
|
+
let {
|
|
66
|
+
closeTitle = 'Close'
|
|
67
|
+
} = i18nKeys;
|
|
68
|
+
let {
|
|
69
|
+
containerClass
|
|
70
|
+
} = customClass;
|
|
71
|
+
let {
|
|
72
|
+
buttonPalette = 'dangerFilled'
|
|
73
|
+
} = buttonPaletteObject[type] || {};
|
|
74
|
+
let {
|
|
75
|
+
ExtraProps = {}
|
|
76
|
+
} = customProps;
|
|
77
|
+
|
|
78
|
+
function onClickSubmit(e) {
|
|
79
|
+
onSubmit && onSubmit();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function onClickCancel(e) {
|
|
83
|
+
onCancel && onCancel();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let animateClass = isClose ? style.rightanimate : style.leftanimate;
|
|
87
|
+
let animateRemoveClass = isClose ? style.rightanimate : style.leftnoanimate;
|
|
88
|
+
let getNextIndex = useZIndex();
|
|
89
|
+
let Zindex = isAnimate ? getNextIndex() : null;
|
|
90
|
+
let uiVariantOne = title && (info || secondaryInfo);
|
|
91
|
+
let uiVariantTwo = title && !(info || secondaryInfo) && !getSectionContainer;
|
|
92
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: style.parentElement,
|
|
94
|
+
style: needAutoZindex && isAnimate ? {
|
|
95
|
+
zIndex: `${Zindex}`
|
|
96
|
+
} : {},
|
|
97
|
+
"data-selector-id": dataSelectorId
|
|
98
|
+
}, /*#__PURE__*/React.createElement(Container, _extends({
|
|
99
|
+
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass} ${style[`${size}`] ? style[`${size}`] : ''} ${isShrinkView ? style.globalNotify : ''} ${containerClass}`,
|
|
100
|
+
isCover: false,
|
|
101
|
+
dataId: dataId,
|
|
102
|
+
isInline: uiVariantTwo
|
|
103
|
+
}, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
104
|
+
type: type,
|
|
105
|
+
title: title,
|
|
106
|
+
variant: titleVariant,
|
|
107
|
+
needIcon: needIcon,
|
|
108
|
+
onClose: onClose,
|
|
109
|
+
closeTitle: closeTitle,
|
|
110
|
+
dataId: `${dataId}_close`,
|
|
111
|
+
needClose: needClose
|
|
112
|
+
})), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
|
|
113
|
+
alignBox: "column"
|
|
114
|
+
}, uiVariantOne && /*#__PURE__*/React.createElement(Box, {
|
|
115
|
+
flexible: true
|
|
116
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
className: `${style.section} ${style.infoText}`
|
|
118
|
+
}, subTitle && /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
className: `${style.subTitle} ${info || secondaryInfo ? style.subTitleMargin : ''}`
|
|
120
|
+
}, subTitle), info && /*#__PURE__*/React.createElement("div", null, info), secondaryInfo && /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: `${info ? style.secondaryInfo : ''}`
|
|
122
|
+
}, secondaryInfo))), getSectionContainer && /*#__PURE__*/React.createElement(Box, {
|
|
123
|
+
flexible: true
|
|
124
|
+
}, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
|
|
125
|
+
className: style.footer
|
|
126
|
+
}, isMore ? /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
className: `${style.message}`
|
|
128
|
+
}, message) : null, /*#__PURE__*/React.createElement(FormAction, {
|
|
129
|
+
size: "small",
|
|
130
|
+
paddingLeftSize: "xmedium"
|
|
131
|
+
}, submitText ? /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
onClick: onClickSubmit,
|
|
133
|
+
"data-id": `${dataId}_submitButton`,
|
|
134
|
+
"data-test-id": `${dataId}_submitButton`
|
|
135
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
136
|
+
align: "vertical",
|
|
137
|
+
alignBox: "row"
|
|
138
|
+
}, getSubmitContainer ? /*#__PURE__*/React.createElement(Box, {
|
|
139
|
+
flexible: true
|
|
140
|
+
}, getSubmitContainer()) : /*#__PURE__*/React.createElement(Box, {
|
|
141
|
+
flexible: true
|
|
142
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
143
|
+
text: submitText,
|
|
144
|
+
palette: submitType ? submitType : buttonPalette
|
|
145
|
+
})))) : null, cancelText ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
146
|
+
text: cancelText,
|
|
147
|
+
palette: "secondary",
|
|
148
|
+
dataId: `${dataId}_cancelButton`,
|
|
149
|
+
onClick: onClickCancel
|
|
150
|
+
})) : null))) : null)), getBottomContainer ? /*#__PURE__*/React.createElement(Box, null, getBottomContainer()) : null));
|
|
151
|
+
}
|
|
152
|
+
DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
|
|
153
|
+
export default function DesktopNotification(props) {
|
|
154
|
+
return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
|
|
155
|
+
Element: DesktopNotificationUI
|
|
156
|
+
}));
|
|
157
|
+
}
|
|
158
|
+
DesktopNotification.propTypes = propTypes;
|
|
159
|
+
DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
|
|
160
|
+
// DesktopNotification.docs = {
|
|
161
|
+
// componentGroup: 'DesktopNotification',
|
|
162
|
+
// folderName: 'Alert'
|
|
163
|
+
// };
|
|
164
|
+
// }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { defaultProps } from '
|
|
3
|
-
import { propTypes } from '
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
-
import AlertClose from '../../AlertClose/AlertClose';
|
|
6
|
-
import AlertIcons from '../../alertIcons/AlertIcons';
|
|
7
|
-
import style from '
|
|
2
|
+
import { defaultProps } from '../../../version2/notification/DesktopNotificationHeader/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/notification/DesktopNotificationHeader/props/propTypes';
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
+
import AlertClose from '../../alert/AlertClose/AlertClose';
|
|
6
|
+
import AlertIcons from '../../alert/alertIcons/AlertIcons';
|
|
7
|
+
import style from '../../../version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css';
|
|
8
8
|
export default function DesktopNotificationHeader(props) {
|
|
9
9
|
let {
|
|
10
10
|
onClose,
|
|
@@ -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/es/v1/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/es/v1/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/es/v1/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
|
+
// }
|