@zohodesk/dot 1.7.20-exp.1 → 1.7.21
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/README.md +8 -0
- package/es/ActionButton/ActionButton.js +6 -6
- package/es/ActionButton/ActionButton.module.css +1 -1
- package/es/AlphabeticList/AlphabeticList.js +1 -1
- package/es/AlphabeticList/AlphabeticList.module.css +1 -1
- package/es/Attachment/Attachment.js +7 -4
- package/es/Attachment/__tests__/Attachment.spec.js +24 -0
- package/es/Attachment/__tests__/__snapshots__/Attachment.spec.js.snap +105 -0
- package/es/AttachmentViewer/AttachmentViewer.js +5 -5
- package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/es/ChannelIcon/ChannelIcon.js +1 -1
- package/es/DotProvider/hooks/useDotProvider.js +0 -1
- package/es/Drawer/Drawer.js +6 -6
- package/es/Drawer/Drawer.module.css +1 -1
- package/es/FlipCard/FlipCard.js +3 -3
- package/es/FormAction/FormAction.js +1 -1
- package/es/FreezeLayer/FreezeLayer.js +3 -3
- package/es/IconButton/IconButton.js +3 -3
- package/es/ImportantNotes/ImportantNotes.js +1 -1
- package/es/Loader/Loader.js +1 -1
- package/es/MessageBanner/MessageBanner.js +1 -1
- package/es/NewStar/NewStar.js +1 -1
- package/es/Onboarding/Onboarding.js +3 -3
- package/es/Separator/Separator.js +1 -1
- package/es/ToastMessage/ToastMessage.js +4 -4
- package/es/Upload/Upload.js +1 -1
- package/es/VideoLookup/VideoLookup.js +1 -1
- package/es/alert/AlertHeader/AlertHeader.js +1 -1
- package/es/alert/AlertLookup/AlertLookup.js +1 -1
- package/es/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/deprecated/FreezeLayer/FreezeLayer.js +3 -3
- package/es/deprecated/SelectDropdown/SelectDropdown.js +7 -7
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +14 -14
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
- package/es/emptystate/EditionPage/EditionPage.css +2 -2
- package/es/emptystate/EditionPage/EditionPage.js +1 -1
- package/es/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/es/errorstate/NoRequestFound/NoRequestFound.js +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.js +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -3
- package/es/errorstate/UnableToProcess/UnableToProcess.js +3 -3
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/es/errorstate/WillBack/WillBack.js +3 -3
- package/es/form/fields/CheckBoxField/CheckBoxField.js +3 -3
- package/es/form/fields/CurrencyField/CurrencyField.js +3 -3
- package/es/form/fields/DateField/DateField.js +3 -3
- package/es/form/fields/FieldContainer/FieldContainer.js +1 -1
- package/es/form/fields/Fields.module.css +4 -0
- package/es/form/fields/MultiSelectField/MultiSelectField.js +3 -3
- package/es/form/fields/PhoneField/PhoneField.js +3 -2
- package/es/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/es/form/fields/RadioField/RadioField.js +2 -2
- package/es/form/fields/SelectField/SelectField.js +3 -3
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +11 -11
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +3 -3
- package/es/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/form/fields/TextEditor/TextEditor.js +2 -3
- package/es/form/fields/TextEditor/TextEditor.module.css +2 -2
- package/es/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -2
- package/es/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +1 -1
- package/es/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/es/list/Comment/Comment.js +1 -1
- package/es/list/Icons/AddNewIcon.js +1 -1
- package/es/list/Icons/CompleteIcon.js +1 -1
- package/es/list/Icons/DeleteIcon.js +1 -1
- package/es/list/Icons/EditIcon.js +1 -1
- package/es/list/Icons/ReadUnreadIcon.js +1 -1
- package/es/list/Icons/SmartIcon.js +1 -1
- package/es/list/ListLayout/ListLayout.js +1 -1
- package/es/list/ListStencils/ListStencils.js +1 -1
- package/es/list/SecondaryText/AccountName.js +1 -1
- package/es/list/SecondaryText/ContactName.js +1 -1
- package/es/list/SecondaryText/SecondaryText.module.css +8 -8
- package/es/list/SecondryPanel/SecondryPanel.js +2 -2
- package/es/list/Subject/Subject.module.css +3 -3
- package/es/list/Thread/Thread.js +1 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +10 -10
- package/es/list/status/StatusListItem/StatusListItem.js +2 -2
- package/es/lookup/EmptyPage/EmptyPage.js +4 -4
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +2 -4
- package/es/lookup/Lookup/Lookup.js +1 -1
- package/es/lookup/Section/Section.js +1 -1
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/lookup/header/Search/Search.js +3 -3
- package/es/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/lookup/header/Title/LookupTitle.module.css +3 -7
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +9 -9
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/es/setup/header/Button/Button.js +1 -1
- package/es/setup/header/Link/Link.js +1 -1
- package/es/setup/header/Search/Search.js +1 -1
- package/es/setup/header/Search/Search.module.css +1 -1
- package/es/setup/table/Table/Table.js +1 -1
- package/es/setup/table/TableBody/TableBody.js +1 -1
- package/es/setup/table/TableData/TableData.js +1 -1
- package/es/setup/table/TableHead/TableHead.js +1 -1
- package/es/setup/table/TableRow/TableRow.js +1 -1
- package/es/svg/PlusIcon.js +1 -1
- package/es/svg/SnippetIcon.js +1 -1
- package/es/svg/TemplateIcon.js +1 -1
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +2 -2
- package/es/v1/emptystate/EditionPage/EditionPage.js +1 -1
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +1 -1
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -2
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -2
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/lookup/EmptyPage/EmptyPage.js +4 -4
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
- package/es/v1/svg/PlusIcon.js +1 -1
- package/es/v1/svg/SnippetIcon.js +1 -1
- package/es/v1/svg/TemplateIcon.js +1 -1
- package/es/version2/AlertClose/AlertClose.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +2 -3
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -3
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -3
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -3
- package/es/version2/errorstate/V2_ErrorStates.module.css +1 -1
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -3
- package/es/version2/lookup/AlertHeader/AlertHeader.js +1 -1
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +3 -9
- package/es/version2/lookup/AlertLookup/AlertLookup.js +3 -3
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +4 -4
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +2 -2
- package/lib/ActionButton/ActionButton.js +6 -6
- package/lib/ActionButton/ActionButton.module.css +1 -1
- package/lib/AlphabeticList/AlphabeticList.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.module.css +1 -1
- package/lib/Attachment/Attachment.js +7 -4
- package/lib/Attachment/__tests__/Attachment.spec.js +24 -0
- package/lib/Attachment/__tests__/__snapshots__/Attachment.spec.js.snap +105 -0
- package/lib/AttachmentViewer/AttachmentViewer.js +5 -5
- package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/lib/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/DotProvider/hooks/useDotProvider.js +0 -2
- package/lib/Drawer/Drawer.js +6 -6
- package/lib/Drawer/Drawer.module.css +1 -1
- package/lib/FlipCard/FlipCard.js +3 -3
- package/lib/FormAction/FormAction.js +1 -1
- package/lib/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/IconButton/IconButton.js +3 -3
- package/lib/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/Loader/Loader.js +1 -1
- package/lib/MessageBanner/MessageBanner.js +1 -1
- package/lib/NewStar/NewStar.js +1 -1
- package/lib/Onboarding/Onboarding.js +3 -3
- package/lib/Separator/Separator.js +1 -1
- package/lib/ToastMessage/ToastMessage.js +4 -4
- package/lib/Upload/Upload.js +1 -1
- package/lib/VideoLookup/VideoLookup.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/deprecated/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +7 -7
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +14 -14
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
- package/lib/emptystate/EditionPage/EditionPage.css +2 -2
- package/lib/emptystate/EditionPage/EditionPage.js +1 -1
- package/lib/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +3 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/lib/errorstate/WillBack/WillBack.js +3 -3
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -3
- package/lib/form/fields/CurrencyField/CurrencyField.js +3 -3
- package/lib/form/fields/DateField/DateField.js +3 -3
- package/lib/form/fields/FieldContainer/FieldContainer.js +1 -1
- package/lib/form/fields/Fields.module.css +4 -0
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +3 -3
- package/lib/form/fields/PhoneField/PhoneField.js +3 -2
- package/lib/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/lib/form/fields/RadioField/RadioField.js +2 -2
- package/lib/form/fields/SelectField/SelectField.js +3 -3
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +11 -11
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +3 -3
- package/lib/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/form/fields/TextEditor/TextEditor.js +2 -2
- package/lib/form/fields/TextEditor/TextEditor.module.css +2 -2
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -2
- package/lib/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +1 -1
- package/lib/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/lib/list/Comment/Comment.js +1 -1
- package/lib/list/Icons/AddNewIcon.js +1 -1
- package/lib/list/Icons/CompleteIcon.js +1 -1
- package/lib/list/Icons/DeleteIcon.js +1 -1
- package/lib/list/Icons/EditIcon.js +1 -1
- package/lib/list/Icons/ReadUnreadIcon.js +1 -1
- package/lib/list/Icons/SmartIcon.js +1 -1
- package/lib/list/ListLayout/ListLayout.js +1 -1
- package/lib/list/ListStencils/ListStencils.js +1 -1
- package/lib/list/SecondaryText/AccountName.js +1 -1
- package/lib/list/SecondaryText/ContactName.js +1 -1
- package/lib/list/SecondaryText/SecondaryText.module.css +8 -8
- package/lib/list/SecondryPanel/SecondryPanel.js +2 -2
- package/lib/list/Subject/Subject.module.css +3 -3
- package/lib/list/Thread/Thread.js +1 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +10 -10
- package/lib/list/status/StatusListItem/StatusListItem.js +2 -2
- package/lib/lookup/EmptyPage/EmptyPage.js +4 -4
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +2 -4
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/Section/Section.js +1 -1
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/lookup/header/Search/Search.js +3 -3
- package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/lookup/header/Title/LookupTitle.module.css +3 -7
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +9 -9
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/lib/setup/header/Button/Button.js +1 -1
- package/lib/setup/header/Link/Link.js +1 -1
- package/lib/setup/header/Search/Search.js +1 -1
- package/lib/setup/header/Search/Search.module.css +1 -1
- package/lib/setup/table/Table/Table.js +1 -1
- package/lib/setup/table/TableBody/TableBody.js +1 -1
- package/lib/setup/table/TableData/TableData.js +1 -1
- package/lib/setup/table/TableHead/TableHead.js +1 -1
- package/lib/setup/table/TableRow/TableRow.js +1 -1
- package/lib/svg/PlusIcon.js +1 -1
- package/lib/svg/SnippetIcon.js +1 -1
- package/lib/svg/TemplateIcon.js +1 -1
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +2 -2
- package/lib/v1/emptystate/EditionPage/EditionPage.js +1 -1
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/lib/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
- package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
- package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +1 -1
- package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -2
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +4 -4
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
- package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -1
- package/lib/v1/svg/PlusIcon.js +1 -1
- package/lib/v1/svg/SnippetIcon.js +1 -1
- package/lib/v1/svg/TemplateIcon.js +1 -1
- package/lib/version2/AlertClose/AlertClose.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +2 -3
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -3
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -3
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -3
- package/lib/version2/errorstate/V2_ErrorStates.module.css +1 -1
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -3
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -1
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +3 -9
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +3 -3
- package/lib/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +4 -4
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +2 -2
- package/package.json +7 -6
- package/react-cli.config.js +3 -0
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -7,8 +7,8 @@ import Popup from '@zohodesk/components/es/v1/Popup/Popup';
|
|
|
7
7
|
import { Box, Container } from '@zohodesk/components/es/v1/Layout';
|
|
8
8
|
import DropDownHeading from '@zohodesk/components/es/v1/DropDown/DropDownHeading';
|
|
9
9
|
import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
|
|
10
|
-
import Loader from '@zohodesk/svg/
|
|
11
|
-
import EmptySearch from '@zohodesk/svg/
|
|
10
|
+
import Loader from '@zohodesk/svg/es/Loader/Loader';
|
|
11
|
+
import EmptySearch from '@zohodesk/svg/es/emptystate/version3/EmptySearch';
|
|
12
12
|
import CommonEmptyState from "../../../emptystate/CommonEmptyState/CommonEmptyState";
|
|
13
13
|
import StatusListItem from "../StatusListItem/StatusListItem";
|
|
14
14
|
import commonStyle from '@zohodesk/components/es/common/common.module.css';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
|
-
import EmptySearch from '@zohodesk/svg/
|
|
6
|
-
import EmptyAccounts from '@zohodesk/svg/
|
|
7
|
-
import EmptyContact from '@zohodesk/svg/
|
|
8
|
-
import EmptyProducts from '@zohodesk/svg/
|
|
5
|
+
import EmptySearch from '@zohodesk/svg/es/emptystate/version3/EmptySearch';
|
|
6
|
+
import EmptyAccounts from '@zohodesk/svg/es/emptystate/version3/EmptyAccounts';
|
|
7
|
+
import EmptyContact from '@zohodesk/svg/es/emptystate/version3/EmptyContact';
|
|
8
|
+
import EmptyProducts from '@zohodesk/svg/es/emptystate/version3/EmptyProducts';
|
|
9
9
|
/*** CSS ***/
|
|
10
10
|
|
|
11
11
|
import style from "../../../lookup/EmptyPage/LookupEmptyPage.module.css";
|
|
@@ -15,7 +15,7 @@ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomRes
|
|
|
15
15
|
|
|
16
16
|
import { Icon } from '@zohodesk/icons';
|
|
17
17
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
18
|
-
import Loader from '@zohodesk/svg/
|
|
18
|
+
import Loader from '@zohodesk/svg/es/Loader/Loader';
|
|
19
19
|
import style from "../../../../lookup/header/ViewDropDown/ViewDropDown.module.css";
|
|
20
20
|
/* eslint-disable react/forbid-component-props */
|
|
21
21
|
|
|
@@ -7,7 +7,7 @@ import AutoClose from "../../../actions/AutoClose";
|
|
|
7
7
|
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
8
8
|
import FormAction from "../../../FormAction/FormAction";
|
|
9
9
|
import DesktopNotificationHeader from "../DesktopNotificationHeader/DesktopNotificationHeader";
|
|
10
|
-
import { ResponsiveReceiver } from '@zohodesk/components/
|
|
10
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
11
11
|
import style from "../../../version2/notification/DesktopNotification/DesktopNotification.module.css";
|
|
12
12
|
let buttonPaletteObject = {
|
|
13
13
|
success: {
|
|
@@ -4,7 +4,7 @@ import propTypes from "./props/propTypes";
|
|
|
4
4
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import AlertClose from "../../alert/AlertClose/AlertClose";
|
|
6
6
|
import AlertIcons from "../../alert/alertIcons/AlertIcons";
|
|
7
|
-
import { ResponsiveReceiver } from '@zohodesk/components/
|
|
7
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
8
8
|
import Typography from '@zohodesk/components/es/v1/Typography/Typography';
|
|
9
9
|
import style from "../../../version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css";
|
|
10
10
|
export default function DesktopNotificationHeader(props) {
|
package/es/v1/svg/PlusIcon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PlusIcon_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { PlusIcon_propTypes } from "./props/propTypes";
|
|
4
|
-
import SVG from '@zohodesk/svg/
|
|
4
|
+
import SVG from '@zohodesk/svg/es/v1/SVG/SVG';
|
|
5
5
|
export default function PlusIcon(props) {
|
|
6
6
|
let {
|
|
7
7
|
isRender,
|
package/es/v1/svg/SnippetIcon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SnippetIcon_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { SnippetIcon_propTypes } from "./props/propTypes";
|
|
4
|
-
import SVG from '@zohodesk/svg/
|
|
4
|
+
import SVG from '@zohodesk/svg/es/v1/SVG/SVG';
|
|
5
5
|
export default function SnippetIcon(props) {
|
|
6
6
|
let {
|
|
7
7
|
isRender,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TemplateIcon_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { TemplateIcon_propTypes } from "./props/propTypes";
|
|
4
|
-
import SVG from '@zohodesk/svg/
|
|
4
|
+
import SVG from '@zohodesk/svg/es/v1/SVG/SVG';
|
|
5
5
|
export default function TemplateIcon(props) {
|
|
6
6
|
let {
|
|
7
7
|
isRender,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
6
6
|
import style from "./AlertClose.module.css";
|
|
7
7
|
export default class AlertClose extends PureComponent {
|
|
8
8
|
render() {
|
|
@@ -5,7 +5,7 @@ import AutoClose from "../../actions/AutoClose";
|
|
|
5
5
|
import AlertIcons from "../alertIcons/AlertIcons";
|
|
6
6
|
import AlertClose from "../AlertClose/AlertClose";
|
|
7
7
|
import style from "./GlobalNotification.module.css";
|
|
8
|
-
import { Container, Box } from '@zohodesk/components/
|
|
8
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
9
9
|
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
10
10
|
export default class GlobalNotification extends React.Component {
|
|
11
11
|
constructor(props) {
|
|
@@ -126,8 +126,7 @@
|
|
|
126
126
|
--globalnotification_text_color: var(--zdt_globalnotification_info_text);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.danger
|
|
130
|
-
.error {
|
|
129
|
+
.danger,.error {
|
|
131
130
|
--commonalert_border_color: var(--zdt_commonalert_danger_border);
|
|
132
131
|
--globalnotification_bg_color: var(--zdt_globalnotification_danger_bg);
|
|
133
132
|
--globalnotification_text_color: var(--zdt_globalnotification_danger_text);
|
|
@@ -149,7 +148,7 @@
|
|
|
149
148
|
|
|
150
149
|
.text {
|
|
151
150
|
font-size: var(--zd_font_size14) ;
|
|
152
|
-
font-
|
|
151
|
+
font-family: var(--zd_semibold);
|
|
153
152
|
composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
|
|
154
153
|
line-height: 1.4286;
|
|
155
154
|
overflow: hidden;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
5
5
|
import CommonEmptyState from "./../../../emptystate/CommonEmptyState/CommonEmptyState";
|
|
6
|
-
import ErrorInconvenience from '@zohodesk/svg/
|
|
7
|
-
import Button from '@zohodesk/components/
|
|
6
|
+
import ErrorInconvenience from '@zohodesk/svg/es/errorstate/version3/ErrorInconvenience';
|
|
7
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
8
8
|
import style from "./../V2_ErrorStates.module.css";
|
|
9
9
|
export default class Inconvenience extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
5
5
|
import CommonEmptyState from "../../../emptystate/CommonEmptyState/CommonEmptyState";
|
|
6
|
-
import ErrorOopsSomethingMiss from '@zohodesk/svg/
|
|
7
|
-
import Button from '@zohodesk/components/
|
|
6
|
+
import ErrorOopsSomethingMiss from '@zohodesk/svg/es/errorstate/version3/ErrorOopsSomethingMiss';
|
|
7
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
8
8
|
import style from "./../V2_ErrorStates.module.css";
|
|
9
9
|
export default class OopsSomethingMiss extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
5
5
|
import CommonEmptyState from "../../../emptystate/CommonEmptyState/CommonEmptyState";
|
|
6
|
-
import ErrorUnableToProcessRequest from '@zohodesk/svg/
|
|
7
|
-
import Button from '@zohodesk/components/
|
|
6
|
+
import ErrorUnableToProcessRequest from '@zohodesk/svg/es/errorstate/version3/ErrorUnableToProcessRequest';
|
|
7
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
8
8
|
import style from "./../V2_ErrorStates.module.css";
|
|
9
9
|
export default class UnableToProcessRequest extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
5
5
|
import CommonEmptyState from "../../../emptystate/CommonEmptyState/CommonEmptyState";
|
|
6
|
-
import ErrorUnauthorizedLogin from '@zohodesk/svg/
|
|
7
|
-
import Button from '@zohodesk/components/
|
|
6
|
+
import ErrorUnauthorizedLogin from '@zohodesk/svg/es/errorstate/version3/ErrorUnauthorizedLogin';
|
|
7
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
8
8
|
import style from "./../V2_ErrorStates.module.css";
|
|
9
9
|
export default class UnauthorizedLogin extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
5
5
|
import CommonEmptyState from "../../../emptystate/CommonEmptyState/CommonEmptyState";
|
|
6
|
-
import ErrorUrlNotFound from '@zohodesk/svg/
|
|
7
|
-
import Button from '@zohodesk/components/
|
|
6
|
+
import ErrorUrlNotFound from '@zohodesk/svg/es/errorstate/version3/ErrorUrlNotFound';
|
|
7
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
8
8
|
import style from "./../V2_ErrorStates.module.css";
|
|
9
9
|
export default class UrlNotFound extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
5
5
|
import CommonEmptyState from "../../../emptystate/CommonEmptyState/CommonEmptyState";
|
|
6
|
-
import ErrorWillBeRightBack from '@zohodesk/svg/
|
|
7
|
-
import Button from '@zohodesk/components/
|
|
6
|
+
import ErrorWillBeRightBack from '@zohodesk/svg/es/errorstate/version3/ErrorWillBeRightBack';
|
|
7
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
8
8
|
import style from "./../V2_ErrorStates.module.css";
|
|
9
9
|
export default class WillBeRightBack extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from 'react'; //AlertDependencies
|
|
2
2
|
|
|
3
|
-
import { Container, Box } from '@zohodesk/components/
|
|
3
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
4
4
|
import AlertClose from "../../AlertClose/AlertClose";
|
|
5
5
|
import AlertIcons from "../../alertIcons/AlertIcons"; //CSS
|
|
6
6
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--commonalert_border_color: var(--zdt_commonalert_default_border);
|
|
3
3
|
}
|
|
4
|
-
|
|
5
4
|
.container {
|
|
6
5
|
composes: varClass;
|
|
7
6
|
position: relative;
|
|
@@ -10,15 +9,12 @@
|
|
|
10
9
|
border-color: var(--commonalert_border_color);
|
|
11
10
|
border-width: 2px 0 0 0;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
.headerLayout {
|
|
15
13
|
min-height: var(--zd_size54) ;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
[dir=ltr] .headerLayout {
|
|
19
16
|
padding: var(--zd_size15) var(--zd_size45) 0 var(--zd_size20) ;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
[dir=rtl] .headerLayout {
|
|
23
19
|
padding: var(--zd_size15) var(--zd_size20) 0 var(--zd_size45) ;
|
|
24
20
|
}
|
|
@@ -27,13 +23,11 @@
|
|
|
27
23
|
--commonalert_border_color: var(--zdt_commonalert_success_border);
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
.info
|
|
31
|
-
.notification {
|
|
26
|
+
.info,.notification {
|
|
32
27
|
--commonalert_border_color: var(--zdt_commonalert_info_border);
|
|
33
28
|
}
|
|
34
29
|
|
|
35
|
-
.danger
|
|
36
|
-
.error {
|
|
30
|
+
.danger,.error {
|
|
37
31
|
--commonalert_border_color: var(--zdt_commonalert_danger_border);
|
|
38
32
|
}
|
|
39
33
|
|
|
@@ -58,7 +52,7 @@
|
|
|
58
52
|
color: var(--zdt_alertlookupnew_text);
|
|
59
53
|
font-size: var(--zd_font_size18) ;
|
|
60
54
|
line-height: 1.2222;
|
|
61
|
-
font-
|
|
55
|
+
font-family: var(--zd_bold);
|
|
62
56
|
composes: ftsmooth wbreak from '~@zohodesk/components/es/common/common.module.css';
|
|
63
57
|
vertical-align: middle;
|
|
64
58
|
cursor: default;
|
|
@@ -6,11 +6,11 @@ import { propTypes } from "./props/propTypes";
|
|
|
6
6
|
|
|
7
7
|
import Lookup from "../../../lookup/Lookup/Lookup";
|
|
8
8
|
import AlertHeader from "../AlertHeader/AlertHeader";
|
|
9
|
-
import Button from '@zohodesk/components/
|
|
9
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
10
10
|
import Section from "../../../lookup/Section/Section";
|
|
11
11
|
import FormAction from "../../../FormAction/FormAction";
|
|
12
|
-
import { Container, Box } from '@zohodesk/components/
|
|
13
|
-
import { getUniqueId } from '@zohodesk/components/
|
|
12
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
13
|
+
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
14
14
|
/**** CSS ****/
|
|
15
15
|
|
|
16
16
|
import style from "./AlertLookupNew.module.css";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes, DesktopNotificationUI_propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
-
import { useZIndex } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
5
|
+
import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
|
|
6
6
|
import AutoClose from "../../../actions/AutoClose";
|
|
7
|
-
import Button from '@zohodesk/components/
|
|
7
|
+
import Button from '@zohodesk/components/es/Button/Button';
|
|
8
8
|
import FormAction from "../../../FormAction/FormAction";
|
|
9
9
|
import DesktopNotificationHeader from "../DesktopNotificationHeader/DesktopNotificationHeader";
|
|
10
|
-
import { ResponsiveReceiver } from '@zohodesk/components/
|
|
10
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
11
11
|
import style from "./DesktopNotification.module.css";
|
|
12
12
|
let buttonPaletteObject = {
|
|
13
13
|
success: {
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
.large {
|
|
37
37
|
width: var(--zd_size580) ;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
.tapWidth {
|
|
39
|
+
.tapWidth{
|
|
41
40
|
max-width: 100% ;
|
|
42
41
|
min-width: 100% ;
|
|
43
42
|
}
|
|
@@ -110,7 +109,7 @@
|
|
|
110
109
|
.subTitle {
|
|
111
110
|
font-size: var(--zd_font_size15) ;
|
|
112
111
|
line-height: 1.3333;
|
|
113
|
-
font-
|
|
112
|
+
font-family: var(--zd_semibold);
|
|
114
113
|
composes: ftsmooth wbreak from '~@zohodesk/components/es/common/common.module.css';
|
|
115
114
|
}
|
|
116
115
|
|
|
@@ -131,4 +130,4 @@
|
|
|
131
130
|
.footer {
|
|
132
131
|
overflow: hidden;
|
|
133
132
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
134
|
-
}
|
|
133
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
5
5
|
import AlertClose from "../../AlertClose/AlertClose";
|
|
6
6
|
import AlertIcons from "../../alertIcons/AlertIcons";
|
|
7
|
-
import { ResponsiveReceiver } from '@zohodesk/components/
|
|
7
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
8
8
|
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
9
9
|
import style from "./DesktopNotificationHeader.module.css";
|
|
10
10
|
export default class DesktopNotificationHeader extends Component {
|
|
@@ -13,21 +13,21 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Popup = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Popup = _interopRequireDefault(require("@zohodesk/components/es/Popup/Popup"));
|
|
17
17
|
|
|
18
18
|
var _icons = require("@zohodesk/icons");
|
|
19
19
|
|
|
20
|
-
var _Button = _interopRequireDefault(require("@zohodesk/components/
|
|
20
|
+
var _Button = _interopRequireDefault(require("@zohodesk/components/es/Button/Button"));
|
|
21
21
|
|
|
22
|
-
var _Layout = require("@zohodesk/components/
|
|
22
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
23
23
|
|
|
24
|
-
var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/
|
|
24
|
+
var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/es/ResponsiveDropBox/ResponsiveDropBox"));
|
|
25
25
|
|
|
26
|
-
var _CssProvider = _interopRequireDefault(require("@zohodesk/components/
|
|
26
|
+
var _CssProvider = _interopRequireDefault(require("@zohodesk/components/es/Provider/CssProvider"));
|
|
27
27
|
|
|
28
28
|
var _ActionButtonModule = _interopRequireDefault(require("./ActionButton.module.css"));
|
|
29
29
|
|
|
30
|
-
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/
|
|
30
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/es/semantic/Button/semanticButton.module.css"));
|
|
31
31
|
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
33
|
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Layout = require("@zohodesk/components/
|
|
16
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
18
|
var _AlphabeticListModule = _interopRequireDefault(require("./AlphabeticList.module.css"));
|
|
19
19
|
|
|
@@ -15,7 +15,7 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _icons = require("@zohodesk/icons");
|
|
17
17
|
|
|
18
|
-
var _Layout = require("@zohodesk/components/
|
|
18
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
19
19
|
|
|
20
20
|
var _Link = _interopRequireDefault(require("../Link/Link"));
|
|
21
21
|
|
|
@@ -97,7 +97,8 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
|
|
|
97
97
|
align: "horizontal"
|
|
98
98
|
}, fileName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
99
99
|
className: _AttachmentModule["default"].atatchName,
|
|
100
|
-
"data-title": fileName
|
|
100
|
+
"data-title": fileName,
|
|
101
|
+
dataId: "".concat(dataId, "_filename")
|
|
101
102
|
}, fileName) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
102
103
|
className: _AttachmentModule["default"].footer
|
|
103
104
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -108,14 +109,16 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
|
|
|
108
109
|
className: _AttachmentModule["default"].attachSize,
|
|
109
110
|
adjust: true,
|
|
110
111
|
shrink: true,
|
|
111
|
-
"data-title": fileSize
|
|
112
|
+
"data-title": fileSize,
|
|
113
|
+
dataId: "".concat(dataId, "_filesize")
|
|
112
114
|
}, fileSize) : null, fileInfo ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
113
115
|
className: _AttachmentModule["default"].dot
|
|
114
116
|
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
115
117
|
className: _AttachmentModule["default"].attachSize,
|
|
116
118
|
adjust: true,
|
|
117
119
|
shrink: true,
|
|
118
|
-
"data-title": fileInfo
|
|
120
|
+
"data-title": fileInfo,
|
|
121
|
+
dataId: "".concat(dataId, "_fileinfo")
|
|
119
122
|
}, fileInfo)) : null)))), downloadLink && !isDisabled ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
120
123
|
target: "_self",
|
|
121
124
|
href: downloadLink,
|
|
@@ -13,6 +13,30 @@ describe('Attachment', function () {
|
|
|
13
13
|
var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Attachment["default"], null)),
|
|
14
14
|
asFragment = _render.asFragment;
|
|
15
15
|
|
|
16
|
+
expect(asFragment()).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
describe('Attachment with props', function () {
|
|
20
|
+
test('rendering the defult props', function () {
|
|
21
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Attachment["default"], {
|
|
22
|
+
onClick: jest.fn(),
|
|
23
|
+
dataId: "test_id",
|
|
24
|
+
size: "medium",
|
|
25
|
+
iconName: "test_icon",
|
|
26
|
+
fileName: "test_file",
|
|
27
|
+
fileSize: "10MB",
|
|
28
|
+
downloadLink: "http://example.com",
|
|
29
|
+
palette: "default",
|
|
30
|
+
tooltip: "test_tooltip",
|
|
31
|
+
fileInfo: "test_info",
|
|
32
|
+
i18nKeys: {
|
|
33
|
+
downloadTitle: 'Download'
|
|
34
|
+
},
|
|
35
|
+
dataSelectorId: "test_selector",
|
|
36
|
+
isDisabled: false
|
|
37
|
+
})),
|
|
38
|
+
asFragment = _render2.asFragment;
|
|
39
|
+
|
|
16
40
|
expect(asFragment()).toMatchSnapshot();
|
|
17
41
|
});
|
|
18
42
|
});
|
|
@@ -39,3 +39,108 @@ exports[`Attachment rendering the defult props 1`] = `
|
|
|
39
39
|
</div>
|
|
40
40
|
</DocumentFragment>
|
|
41
41
|
`;
|
|
42
|
+
|
|
43
|
+
exports[`Attachment with props rendering the defult props 1`] = `
|
|
44
|
+
<DocumentFragment>
|
|
45
|
+
<div
|
|
46
|
+
class="attachment attachmentHover palette_default medium inflex rowdir"
|
|
47
|
+
data-id="test_id"
|
|
48
|
+
data-selector-id="test_selector"
|
|
49
|
+
data-test-id="test_id"
|
|
50
|
+
data-title="test_tooltip"
|
|
51
|
+
tabindex="0"
|
|
52
|
+
>
|
|
53
|
+
<div
|
|
54
|
+
class="attachleft shrinkOff"
|
|
55
|
+
data-id="boxComponent"
|
|
56
|
+
data-selector-id="box"
|
|
57
|
+
data-test-id="boxComponent"
|
|
58
|
+
>
|
|
59
|
+
<div
|
|
60
|
+
class="flex cover coldir both"
|
|
61
|
+
data-id="containerComponent"
|
|
62
|
+
data-selector-id="container"
|
|
63
|
+
data-test-id="containerComponent"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
<div
|
|
67
|
+
class="attachright grow basis shrinkOff"
|
|
68
|
+
data-id="boxComponent"
|
|
69
|
+
data-selector-id="box"
|
|
70
|
+
data-test-id="boxComponent"
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
class="flex cover coldir hCenter"
|
|
74
|
+
data-id="containerComponent"
|
|
75
|
+
data-selector-id="container"
|
|
76
|
+
data-test-id="containerComponent"
|
|
77
|
+
>
|
|
78
|
+
<div
|
|
79
|
+
class="atatchName shrinkOff"
|
|
80
|
+
data-id="test_id_filename"
|
|
81
|
+
data-selector-id="box"
|
|
82
|
+
data-test-id="test_id_filename"
|
|
83
|
+
data-title="test_file"
|
|
84
|
+
>
|
|
85
|
+
test_file
|
|
86
|
+
</div>
|
|
87
|
+
<div
|
|
88
|
+
class="footer shrinkOff"
|
|
89
|
+
data-id="boxComponent"
|
|
90
|
+
data-selector-id="box"
|
|
91
|
+
data-test-id="boxComponent"
|
|
92
|
+
>
|
|
93
|
+
<div
|
|
94
|
+
class="flex rowdir baseline"
|
|
95
|
+
data-id="containerComponent"
|
|
96
|
+
data-selector-id="container"
|
|
97
|
+
data-test-id="containerComponent"
|
|
98
|
+
>
|
|
99
|
+
<div
|
|
100
|
+
class="attachSize basisAuto shrinkOn"
|
|
101
|
+
data-id="test_id_filesize"
|
|
102
|
+
data-selector-id="box"
|
|
103
|
+
data-test-id="test_id_filesize"
|
|
104
|
+
data-title="10MB"
|
|
105
|
+
>
|
|
106
|
+
10MB
|
|
107
|
+
</div>
|
|
108
|
+
<div
|
|
109
|
+
class="dot shrinkOff"
|
|
110
|
+
data-id="boxComponent"
|
|
111
|
+
data-selector-id="box"
|
|
112
|
+
data-test-id="boxComponent"
|
|
113
|
+
/>
|
|
114
|
+
<div
|
|
115
|
+
class="attachSize basisAuto shrinkOn"
|
|
116
|
+
data-id="test_id_fileinfo"
|
|
117
|
+
data-selector-id="box"
|
|
118
|
+
data-test-id="test_id_fileinfo"
|
|
119
|
+
data-title="test_info"
|
|
120
|
+
>
|
|
121
|
+
test_info
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<a
|
|
128
|
+
class="container attachDownload"
|
|
129
|
+
data-id="test_id_download"
|
|
130
|
+
data-test-id="test_id_download"
|
|
131
|
+
data-title="Download"
|
|
132
|
+
href="http://example.com"
|
|
133
|
+
rel="noopener noreferrer"
|
|
134
|
+
target="_self"
|
|
135
|
+
>
|
|
136
|
+
<i
|
|
137
|
+
aria-hidden="true"
|
|
138
|
+
class="zd_font_icons basic icon-download-new downIcon "
|
|
139
|
+
data-id="fontIcon"
|
|
140
|
+
data-selector-id="fontIcon"
|
|
141
|
+
data-test-id="fontIcon"
|
|
142
|
+
/>
|
|
143
|
+
</a>
|
|
144
|
+
</div>
|
|
145
|
+
</DocumentFragment>
|
|
146
|
+
`;
|
|
@@ -13,17 +13,17 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Layout = require("@zohodesk/components/
|
|
16
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
18
|
var _icons = require("@zohodesk/icons");
|
|
19
19
|
|
|
20
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
20
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/Avatar/Avatar"));
|
|
21
21
|
|
|
22
|
-
var _CustomResponsive = require("@zohodesk/components/
|
|
22
|
+
var _CustomResponsive = require("@zohodesk/components/es/Responsive/CustomResponsive");
|
|
23
23
|
|
|
24
|
-
var _Typography = _interopRequireDefault(require("@zohodesk/components/
|
|
24
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
25
25
|
|
|
26
|
-
var _IdProvider = require("@zohodesk/components/
|
|
26
|
+
var _IdProvider = require("@zohodesk/components/es/Provider/IdProvider");
|
|
27
27
|
|
|
28
28
|
var _Button = _interopRequireDefault(require("@zohodesk/components/es/Button/Button"));
|
|
29
29
|
|