@zohodesk/dot 1.0.0-temp-197.6 → 1.0.0-temp-187.1
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/propValidation_report.html +1 -1
- package/README.md +16 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +1 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +1 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +1 -0
- package/es/ActionButton/ActionButton.js +3 -3
- package/es/ActionButton/__tests__/ActionButton.spec.js +1 -1
- package/es/AlphabeticList/AlphabeticList.js +3 -3
- package/es/AlphabeticList/__tests__/AlphabeticList.spec.js +1 -1
- package/es/Attachment/Attachment.js +4 -4
- package/es/Attachment/__tests__/Attachment.spec.js +1 -1
- package/es/AttachmentViewer/AttachmentImage.js +72 -36
- package/es/AttachmentViewer/AttachmentViewer.js +129 -50
- package/es/AttachmentViewer/AttachmentViewer.module.css +15 -3
- package/es/AttachmentViewer/__tests__/AttachmentImage.spec.js +64 -14
- package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +1 -1
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentImage.spec.js.snap +9 -5
- package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +16 -117
- package/es/AttachmentViewer/props/defaultProps.js +5 -1
- package/es/AttachmentViewer/props/propTypes.js +7 -3
- package/es/AttachmentViewer/utils.js +49 -0
- package/es/ChannelIcon/ChannelIcon.js +5 -5
- package/es/ChannelIcon/__tests__/ChannelIcon.spec.js +1 -1
- package/es/Drawer/Drawer.js +6 -6
- package/es/Drawer/__tests__/Drawer.spec.js +1 -1
- package/es/Drawer/index.js +1 -1
- package/es/ExternalLink/ExternalLink.js +3 -3
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +1 -1
- package/es/FlipCard/FlipCard.js +7 -7
- package/es/FlipCard/__tests__/FlipCard.spec.js +1 -1
- package/es/FormAction/FormAction.js +3 -3
- package/es/FormAction/__tests__/FormAction.spec.js +1 -1
- package/es/FreezeLayer/FreezeLayer.js +5 -5
- package/es/FreezeLayer/__tests__/FreezeLayer.spec.js +1 -1
- package/es/FreezeLayer/index.js +2 -2
- package/es/Hooks/Dragger/useDragger.js +5 -5
- package/es/Hooks/useFreezeLayer.js +1 -1
- package/es/IconButton/IconButton.js +3 -3
- package/es/IconButton/__tests__/IconButton.spec.js +1 -1
- package/es/Image/Image.js +9 -5
- package/es/Image/__tests__/Image.spec.js +1 -1
- package/es/Image/props/propTypes.js +3 -1
- package/es/ImportantNotes/ImportantNotes.js +3 -3
- package/es/ImportantNotes/__tests__/ImportantNotes.spec.js +1 -1
- package/es/Link/Link.js +4 -4
- package/es/Link/__tests__/Link.spec.js +1 -1
- package/es/Loader/Loader.js +1 -1
- package/es/Loader/__tests__/Loader.spec.js +1 -1
- package/es/Message/Message.js +4 -4
- package/es/Message/__tests__/Message.spec.js +1 -1
- package/es/Message/props/propTypes.js +1 -1
- package/es/MessageBanner/MessageBanner.js +4 -4
- package/es/MessageBanner/__tests__/MessageBanner.spec.js +1 -1
- package/es/NewStar/NewStar.js +3 -3
- package/es/NewStar/__tests__/NewStar.spec.js +1 -1
- package/es/PlusIcon/PlusIcon.js +4 -4
- package/es/PlusIcon/__tests__/PlusIcon.spec.js +1 -1
- package/es/Separator/Separator.js +3 -3
- package/es/Separator/__tests__/Separator.spec.js +1 -1
- package/es/TagWithIcon/TagWithIcon.js +3 -3
- package/es/TagWithIcon/__tests__/TagWithIcon.spec.js +1 -1
- package/es/ToastMessage/ToastMessage.js +4 -4
- package/es/ToastMessage/__tests__/ToastMessage.spec.js +1 -1
- package/es/Upload/Upload.js +4 -4
- package/es/Upload/__tests__/Upload.spec.js +1 -1
- package/es/actions/AutoClose.js +2 -2
- package/es/alert/AlertHeader/AlertHeader.js +5 -5
- package/es/alert/AlertHeader/__tests__/AlertHeader.spec.js +1 -1
- package/es/alert/AlertLookup/AlertLookup.js +7 -7
- package/es/alert/AlertLookup/__tests__/AlertLookup.spec.js +1 -1
- package/es/alert/index.js +2 -2
- package/es/avatar/AvatarClose/AvatarClose.js +3 -3
- package/es/avatar/AvatarClose/__tests__/AvatarClose.spec.js +1 -1
- package/es/avatar/AvatarCollision/AvatarCollision.js +3 -3
- package/es/avatar/AvatarCollision/__tests__/AvatarCollision.spec.js +1 -1
- package/es/avatar/AvatarIcon/AvatarIcon.js +3 -3
- package/es/avatar/AvatarIcon/__tests__/AvatarIcon.spec.js +1 -1
- package/es/avatar/AvatarStatus/AvatarStatus.js +3 -3
- package/es/avatar/AvatarStatus/__tests__/AvatarStatus.spec.js +1 -1
- package/es/avatar/AvatarThread/AvatarThread.js +3 -3
- package/es/avatar/AvatarThread/__tests__/AvatarThread.spec.js +1 -1
- package/es/avatar/AvatarUser/AvatarUser.js +4 -4
- package/es/avatar/AvatarUser/__tests__/AvatarUser.spec.js +1 -1
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -3
- package/es/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +1 -1
- package/es/avatar/index.js +7 -7
- package/es/deprecated/FreezeLayer/FreezeLayer.js +4 -4
- package/es/deprecated/SelectDropdown/SelectDropdown.js +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +4 -4
- package/es/dropdown/ToggleDropDown/__tests__/ToggleDropDown.spec.js +1 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +4 -4
- package/es/emptystate/CommonEmptyState/__tests__/CommonEmptyState.spec.js +1 -1
- package/es/emptystate/EditionPage/EditionPage.js +3 -3
- package/es/emptystate/EditionPage/__tests__/EditionPage.spec.js +1 -1
- package/es/errorstate/Inconvenience/Inconvenience.js +5 -5
- package/es/errorstate/Inconvenience/__tests__/Inconvenience.spec.js +1 -1
- package/es/errorstate/LinkText/LinkText.js +4 -4
- package/es/errorstate/LinkText/__tests__/LinkText.spec.js +1 -1
- package/es/errorstate/NoRequestFound/NoRequestFound.js +5 -5
- package/es/errorstate/NoRequestFound/__tests__/NoRequestFound.spec.js +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.js +5 -5
- package/es/errorstate/PermissionPlay/__tests__/PermissionPlay.spec.js +1 -1
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +5 -5
- package/es/errorstate/RequestUrlNotFound/__tests__/RequestUrlNotFound.spec.js +1 -1
- package/es/errorstate/UnableToProcess/UnableToProcess.js +5 -5
- package/es/errorstate/UnableToProcess/__tests__/UnableToProcess.spec.js +1 -1
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +5 -5
- package/es/errorstate/UnauthorizedLogin/__tests__/UnauthorizedLogin.spec.js +1 -1
- package/es/errorstate/WillBack/WillBack.js +4 -4
- package/es/errorstate/WillBack/__tests__/WillBack.spec.js +1 -1
- package/es/errorstate/index.js +8 -8
- package/es/form/fields/CheckBoxField/CheckBoxField.js +5 -5
- package/es/form/fields/CheckBoxField/__tests__/CheckBoxField.spec.js +1 -1
- package/es/form/fields/CheckBoxField/props/defaultProps.js +1 -1
- package/es/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +5 -5
- package/es/form/fields/CurrencyField/__tests__/CurrencyField.spec.js +1 -1
- package/es/form/fields/CurrencyField/props/defaultProps.js +1 -1
- package/es/form/fields/CurrencyField/props/propTypes.js +1 -1
- package/es/form/fields/DateField/DateField.js +5 -5
- package/es/form/fields/DateField/__tests__/DateField.spec.js +1 -1
- package/es/form/fields/DateField/props/defaultProps.js +1 -1
- package/es/form/fields/DateField/props/propTypes.js +1 -1
- package/es/form/fields/FieldContainer/FieldContainer.js +3 -3
- package/es/form/fields/FieldContainer/__tests__/FieldContainer.spec.js +1 -1
- package/es/form/fields/FieldContainer/props/defaultProps.js +1 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +5 -5
- package/es/form/fields/MultiSelectField/__tests__/MultiSelectField.spec.js +1 -1
- package/es/form/fields/MultiSelectField/props/defaultProps.js +1 -1
- package/es/form/fields/MultiSelectField/props/propTypes.js +1 -1
- package/es/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/form/fields/PhoneField/__tests__/PhoneField.spec.js +1 -1
- package/es/form/fields/RadioField/RadioField.js +4 -4
- package/es/form/fields/RadioField/__tests__/RadioField.spec.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +5 -5
- package/es/form/fields/SelectField/__tests__/SelectField.spec.js +1 -1
- package/es/form/fields/SelectField/props/defaultProps.js +1 -1
- package/es/form/fields/SelectField/props/propTypes.js +1 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +9 -7
- package/es/form/fields/TagsMultiSelect/__tests__/TagsMultiSelect.spec.js +1 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -7
- package/es/form/fields/TagsMultiSelectField/__tests__/TagsMultiSelectField.spec.js +1 -1
- package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -1
- package/es/form/fields/TagsMultiSelectField/props/propTypes.js +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +5 -5
- package/es/form/fields/TextBoxField/__tests__/TextBoxField.spec.js +1 -1
- package/es/form/fields/TextBoxField/props/defaultProps.js +1 -1
- package/es/form/fields/TextBoxField/props/propTypes.js +1 -1
- package/es/form/fields/TextEditor/TextEditor.js +4 -4
- package/es/form/fields/TextEditor/__tests__/TextEditor.spec.js +1 -1
- package/es/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/props/propTypes.js +0 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +6 -6
- package/es/form/fields/TextEditorField/__tests__/TextEditorField.spec.js +1 -1
- package/es/form/fields/TextEditorField/props/defaultProps.js +1 -1
- package/es/form/fields/TextEditorField/props/propTypes.js +1 -1
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +5 -5
- package/es/form/fields/TextEditorWrapper/__tests__/TextEditorWrapper.spec.js +1 -1
- package/es/form/fields/TextareaField/TextareaField.js +5 -5
- package/es/form/fields/TextareaField/__tests__/TextareaField.spec.js +1 -1
- package/es/form/fields/TextareaField/props/defaultProps.js +1 -1
- package/es/form/fields/TextareaField/props/propTypes.js +1 -1
- package/es/form/fields/ValidationMessage/ValidationMessage.js +3 -3
- package/es/form/fields/ValidationMessage/__tests__/ValidationMessage.spec.js +1 -1
- package/es/form/fields/index.js +16 -16
- package/es/form/layout/Field/Field.js +3 -3
- package/es/form/layout/Field/__tests__/Field.spec.js +1 -1
- package/es/form/layout/Section/Section.js +2 -2
- package/es/form/layout/Section/__tests__/Section.spec.js +1 -1
- package/es/form/layout/index.js +2 -2
- package/es/index.js +39 -39
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +3 -3
- package/es/layout/SetupDetailLayout/__tests__/SetupDetailLayout.spec.js +1 -1
- package/es/layout/SetupDetailLayout/index.js +4 -4
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -4
- package/es/layout/SubtabLayout/__tests__/SubtabLayout.spec.js +1 -1
- package/es/layout/SubtabLayout/index.js +4 -4
- package/es/list/AvatarFlip/AvatarFlip.js +4 -4
- package/es/list/AvatarFlip/__tests__/AvatarFlip.spec.js +1 -1
- package/es/list/BluePrintStatus/BluePrintStatus.js +2 -2
- package/es/list/BluePrintStatus/__tests__/BluePrintStatus.spec.js +1 -1
- package/es/list/Comment/Comment.js +3 -3
- package/es/list/Comment/__tests__/Comment.spec.js +1 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +12 -7
- package/es/list/DepartmentDropDown/__tests__/DepartmentDropDown.spec.js +1 -1
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/Dot/Dot.js +3 -3
- package/es/list/Dot/__tests__/Dot.spec.js +1 -1
- package/es/list/DotNew/DotNew.js +3 -3
- package/es/list/DotNew/__tests__/DotNew.spec.js +1 -1
- package/es/list/GridStencils/GridStencils.js +2 -2
- package/es/list/GridStencils/__tests__/GridStencils.spec.js +1 -1
- package/es/list/Icons/AddNewIcon.js +2 -2
- package/es/list/Icons/CompleteIcon.js +2 -2
- package/es/list/Icons/DeleteIcon.js +2 -2
- package/es/list/Icons/EditIcon.js +2 -2
- package/es/list/Icons/FloatingIcons.js +3 -3
- package/es/list/Icons/ReadUnreadIcon.js +3 -3
- package/es/list/Icons/SmartIcon.js +2 -2
- package/es/list/Icons/__tests__/AddNewIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/CompleteIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/DeleteIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/EditIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/FloatingIcons.spec.js +1 -1
- package/es/list/Icons/__tests__/ReadUnreadIcon.spec.js +1 -1
- package/es/list/Icons/__tests__/SmartIcon.spec.js +1 -1
- package/es/list/Icons/index.js +7 -7
- package/es/list/ListLayout/ListLayout.js +3 -3
- package/es/list/ListLayout/__tests__/ListLayout.spec.js +1 -1
- package/es/list/ListStencils/ListStencils.js +3 -3
- package/es/list/ListStencils/__tests__/ListStencils.spec.js +1 -1
- package/es/list/SecondaryText/AccountName.js +4 -4
- package/es/list/SecondaryText/ContactName.js +5 -5
- package/es/list/SecondaryText/DepartmentText.js +2 -2
- package/es/list/SecondaryText/Email.js +4 -4
- package/es/list/SecondaryText/HappinessRating.js +2 -2
- package/es/list/SecondaryText/PhoneNumber.js +4 -4
- package/es/list/SecondaryText/PriorityText.js +3 -3
- package/es/list/SecondaryText/SecondaryText.js +3 -3
- package/es/list/SecondaryText/StatusText.js +3 -3
- package/es/list/SecondaryText/TicketId.js +4 -4
- package/es/list/SecondaryText/Website.js +4 -4
- package/es/list/SecondaryText/__tests__/AccountName.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/ContactName.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/DepartmentText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/Email.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/HappinessRating.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/PhoneNumber.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/PriorityText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/SecondaryText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/StatusText.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/TicketId.spec.js +1 -1
- package/es/list/SecondaryText/__tests__/Website.spec.js +1 -1
- package/es/list/SecondaryText/index.js +11 -11
- package/es/list/SecondryPanel/SecondryPanel.js +4 -4
- package/es/list/SecondryPanel/__tests__/SecondryPanel.spec.js +1 -1
- package/es/list/SentimentStatus/SentimentStatus.js +2 -2
- package/es/list/SentimentStatus/__tests__/SentimentStatus.spec.js +1 -1
- package/es/list/Subject/Subject.js +4 -4
- package/es/list/Subject/__tests__/Subject.spec.js +1 -1
- package/es/list/TagNew/TagNew.js +3 -3
- package/es/list/TagNew/__tests__/TagNew.spec.js +1 -1
- package/es/list/Thread/Thread.js +3 -3
- package/es/list/Thread/__tests__/Thread.spec.js +1 -1
- package/es/list/index.js +16 -16
- package/es/list/status/StatusDropdown/StatusDropdown.js +5 -5
- package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +3 -3
- package/es/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/es/list/status/StatusListItem/__tests__/StatusListItem.spec.js +1 -1
- package/es/list/status/index.js +2 -2
- package/es/lookup/EmptyPage/EmptyPage.js +3 -3
- package/es/lookup/EmptyPage/__tests__/EmptyPage.spec.js +1 -1
- package/es/lookup/Lookup/Lookup.js +4 -4
- package/es/lookup/Lookup/__tests__/Lookup.spec.js +1 -1
- package/es/lookup/Section/Section.js +2 -2
- package/es/lookup/Section/__tests__/Section.spec.js +1 -1
- package/es/lookup/header/Close/Close.js +3 -3
- package/es/lookup/header/Close/__tests__/Close.spec.js +1 -1
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +8 -8
- package/es/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +1 -1
- package/es/lookup/header/Search/Search.js +4 -4
- package/es/lookup/header/Search/__tests__/Search.spec.js +1 -1
- package/es/lookup/header/TicketHeader/TicketHeader.js +10 -10
- package/es/lookup/header/TicketHeader/__tests__/TicketHeader.spec.js +1 -1
- package/es/lookup/header/Title/Title.js +3 -3
- package/es/lookup/header/Title/__tests__/Titles.spec.js +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +3 -3
- package/es/lookup/header/ViewDropDown/__test__/ViewDropDown.spec.js +1 -1
- package/es/lookup/header/index.js +5 -5
- package/es/lookup/index.js +4 -4
- package/es/setup/header/Button/Button.js +3 -3
- package/es/setup/header/Button/__tests__/Button.spec.js +1 -1
- package/es/setup/header/Link/Link.js +4 -4
- package/es/setup/header/Link/__tests__/Link.spec.js +1 -1
- package/es/setup/header/Search/Search.js +3 -3
- package/es/setup/header/Search/__tests__/Search.spec.js +1 -1
- package/es/setup/header/Views/Views.js +3 -3
- package/es/setup/header/Views/__tests__/Views.spec.js +1 -1
- package/es/setup/header/index.js +4 -4
- package/es/setup/helptips/Description/Description.js +2 -2
- package/es/setup/helptips/Description/__tests__/Description.spec.js +1 -1
- package/es/setup/helptips/Link/Link.js +3 -3
- package/es/setup/helptips/Link/__tests__/Link.spec.js +1 -1
- package/es/setup/helptips/ListGroup/ListGroup.js +2 -2
- package/es/setup/helptips/ListGroup/__tests__/ListGroup.spec.js +1 -1
- package/es/setup/helptips/Title/Title.js +2 -2
- package/es/setup/helptips/Title/__tests__/Title.spec.js +1 -1
- package/es/setup/helptips/index.js +4 -4
- package/es/setup/index.js +3 -3
- package/es/setup/table/Table/Table.js +2 -2
- package/es/setup/table/Table/__tests__/Table.spec.js +1 -1
- package/es/setup/table/TableBody/TableBody.js +2 -2
- package/es/setup/table/TableBody/__tests__/TableBody.spec.js +1 -1
- package/es/setup/table/TableData/TableData.js +3 -3
- package/es/setup/table/TableData/__tests__/TableData.spec.js +1 -1
- package/es/setup/table/TableHead/TableHead.js +3 -3
- package/es/setup/table/TableHead/__tests__/TableHead.spec.js +1 -1
- package/es/setup/table/TableRow/TableRow.js +3 -3
- package/es/setup/table/TableRow/__tests__/TableRow.spec.js +1 -1
- package/es/setup/table/Text/Text.js +4 -4
- package/es/setup/table/Text/__tests__/Text.spec.js +1 -1
- package/es/setup/table/index.js +5 -5
- package/es/svg/PlusIcon.js +2 -2
- package/es/svg/SnippetIcon.js +2 -2
- package/es/svg/TemplateIcon.js +2 -2
- package/es/svg/__tests__/PlusIcon.spec.js +1 -1
- package/es/svg/__tests__/SnippetIcon.spec.js +1 -1
- package/es/svg/__tests__/TemplateIcon.spec.js +1 -1
- package/es/svg/index.js +3 -3
- package/es/v1/ActionButton/ActionButton.js +3 -3
- package/es/v1/AlphabeticList/AlphabeticList.js +3 -3
- package/es/v1/Attachment/Attachment.js +4 -4
- package/es/v1/AttachmentViewer/AttachmentImage.js +48 -27
- package/es/v1/AttachmentViewer/AttachmentViewer.js +129 -50
- package/es/v1/AttachmentViewer/props/propTypes.js +7 -3
- package/es/v1/ChannelIcon/ChannelIcon.js +5 -5
- package/es/v1/Drawer/Drawer.js +6 -6
- package/es/v1/ExternalLink/ExternalLink.js +3 -3
- package/es/v1/FlipCard/FlipCard.js +7 -7
- package/es/v1/FormAction/FormAction.js +3 -3
- package/es/v1/FreezeLayer/FreezeLayer.js +5 -5
- package/es/v1/GlobalNotification/GlobalNotification.js +6 -6
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/Image/Image.js +9 -5
- package/es/v1/Image/props/propTypes.js +3 -1
- package/es/v1/ImportantNotes/ImportantNotes.js +3 -3
- package/es/v1/Link/Link.js +4 -4
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/Message/Message.js +4 -4
- package/es/v1/Message/props/propTypes.js +1 -1
- package/es/v1/MessageBanner/MessageBanner.js +4 -4
- package/es/v1/NewStar/NewStar.js +3 -3
- package/es/v1/PlusIcon/PlusIcon.js +4 -4
- package/es/v1/Separator/Separator.js +3 -3
- package/es/v1/TagWithIcon/TagWithIcon.js +3 -3
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +4 -4
- package/es/v1/actions/AutoClose.js +2 -2
- package/es/v1/alert/AlertClose/AlertClose.js +2 -2
- package/es/v1/alert/AlertHeader/AlertHeader.js +7 -7
- package/es/v1/alert/AlertLookup/AlertLookup.js +7 -7
- package/es/v1/alert/alertIcons/AlarmAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/AlertIcons.js +9 -9
- package/es/v1/alert/alertIcons/DangerAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/ErrorAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/InfoAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/NotificationAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/SuccessAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/WarningAlertIcon.js +3 -3
- package/es/v1/alert/alertIcons/index.js +8 -8
- package/es/v1/alert/index.js +2 -2
- package/es/v1/avatar/AvatarClose/AvatarClose.js +3 -3
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +3 -3
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +3 -3
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +3 -3
- package/es/v1/avatar/AvatarThread/AvatarThread.js +3 -3
- package/es/v1/avatar/AvatarUser/AvatarUser.js +4 -4
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -3
- package/es/v1/avatar/index.js +7 -7
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +4 -4
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +4 -4
- package/es/v1/emptystate/EditionPage/EditionPage.js +3 -3
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +4 -4
- package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +4 -4
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +4 -4
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +4 -4
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +4 -4
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +4 -4
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +5 -5
- package/es/v1/form/fields/CheckBoxField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +5 -5
- package/es/v1/form/fields/CurrencyField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/CurrencyField/props/propTypes.js +1 -1
- package/es/v1/form/fields/DateField/DateField.js +5 -5
- package/es/v1/form/fields/DateField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/DateField/props/propTypes.js +1 -1
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +3 -3
- package/es/v1/form/fields/FieldContainer/props/defaultProps.js +1 -1
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +5 -5
- package/es/v1/form/fields/MultiSelectField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/MultiSelectField/props/propTypes.js +1 -1
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +5 -5
- package/es/v1/form/fields/SelectField/SelectField.js +5 -5
- package/es/v1/form/fields/SelectField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/SelectField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -5
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -7
- package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +5 -5
- package/es/v1/form/fields/TextBoxField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TextBoxField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TextEditor/TextEditor.js +4 -4
- package/es/v1/form/fields/TextEditor/props/propTypes.js +0 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +6 -6
- package/es/v1/form/fields/TextEditorField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TextEditorField/props/propTypes.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +5 -5
- package/es/v1/form/fields/TextareaField/TextareaField.js +5 -5
- package/es/v1/form/fields/TextareaField/props/defaultProps.js +1 -1
- package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -1
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +3 -3
- package/es/v1/form/fields/index.js +16 -16
- package/es/v1/form/layout/Field/Field.js +3 -3
- package/es/v1/form/layout/Section/Section.js +2 -2
- package/es/v1/form/layout/index.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +3 -3
- package/es/v1/layout/SetupDetailLayout/index.js +4 -4
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -4
- package/es/v1/layout/SubtabLayout/index.js +4 -4
- package/es/v1/list/AvatarFlip/AvatarFlip.js +4 -4
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +2 -2
- package/es/v1/list/Comment/Comment.js +3 -3
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +5 -5
- package/es/v1/list/Dot/Dot.js +3 -3
- package/es/v1/list/DotNew/DotNew.js +3 -3
- package/es/v1/list/GridStencils/GridStencils.js +2 -2
- package/es/v1/list/Icons/AddNewIcon.js +2 -2
- package/es/v1/list/Icons/CompleteIcon.js +2 -2
- package/es/v1/list/Icons/DeleteIcon.js +2 -2
- package/es/v1/list/Icons/EditIcon.js +2 -2
- package/es/v1/list/Icons/FloatingIcons.js +3 -3
- package/es/v1/list/Icons/ReadUnreadIcon.js +3 -3
- package/es/v1/list/Icons/SmartIcon.js +2 -2
- package/es/v1/list/Icons/index.js +7 -7
- package/es/v1/list/ListLayout/ListLayout.js +3 -3
- package/es/v1/list/ListStencils/ListStencils.js +3 -3
- package/es/v1/list/SecondaryText/AccountName.js +4 -4
- package/es/v1/list/SecondaryText/ContactName.js +5 -5
- package/es/v1/list/SecondaryText/DepartmentText.js +2 -2
- package/es/v1/list/SecondaryText/Email.js +4 -4
- package/es/v1/list/SecondaryText/HappinessRating.js +2 -2
- package/es/v1/list/SecondaryText/PhoneNumber.js +4 -4
- package/es/v1/list/SecondaryText/PriorityText.js +3 -3
- package/es/v1/list/SecondaryText/SecondaryText.js +3 -3
- package/es/v1/list/SecondaryText/StatusText.js +3 -3
- package/es/v1/list/SecondaryText/TicketId.js +4 -4
- package/es/v1/list/SecondaryText/Website.js +4 -4
- package/es/v1/list/SecondaryText/index.js +11 -11
- package/es/v1/list/SecondryPanel/SecondryPanel.js +4 -4
- package/es/v1/list/SentimentStatus/SentimentStatus.js +2 -2
- package/es/v1/list/Subject/Subject.js +4 -4
- package/es/v1/list/TagNew/TagNew.js +3 -3
- package/es/v1/list/Thread/Thread.js +3 -3
- package/es/v1/list/index.js +16 -16
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +5 -5
- package/es/v1/list/status/StatusListItem/StatusListItem.js +3 -3
- package/es/v1/list/status/index.js +2 -2
- package/es/v1/lookup/EmptyPage/EmptyPage.js +3 -3
- package/es/v1/lookup/Lookup/Lookup.js +4 -4
- package/es/v1/lookup/Section/Section.js +2 -2
- package/es/v1/lookup/header/Close/Close.js +3 -3
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +8 -8
- package/es/v1/lookup/header/Search/Search.js +4 -4
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +10 -10
- package/es/v1/lookup/header/Title/Title.js +3 -3
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +3 -3
- package/es/v1/lookup/header/index.js +5 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +5 -5
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/es/v1/setup/header/Button/Button.js +3 -3
- package/es/v1/setup/header/Link/Link.js +4 -4
- package/es/v1/setup/header/Search/Search.js +3 -3
- package/es/v1/setup/header/Views/Views.js +3 -3
- package/es/v1/setup/header/index.js +4 -4
- package/es/v1/setup/helptips/Description/Description.js +2 -2
- package/es/v1/setup/helptips/Link/Link.js +3 -3
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +2 -2
- package/es/v1/setup/helptips/Title/Title.js +2 -2
- package/es/v1/setup/helptips/index.js +4 -4
- package/es/v1/setup/index.js +3 -3
- package/es/v1/setup/table/Table/Table.js +2 -2
- package/es/v1/setup/table/TableBody/TableBody.js +2 -2
- package/es/v1/setup/table/TableData/TableData.js +3 -3
- package/es/v1/setup/table/TableHead/TableHead.js +3 -3
- package/es/v1/setup/table/TableRow/TableRow.js +3 -3
- package/es/v1/setup/table/Text/Text.js +4 -4
- package/es/v1/setup/table/index.js +5 -5
- package/es/v1/svg/PlusIcon.js +2 -2
- package/es/v1/svg/SnippetIcon.js +2 -2
- package/es/v1/svg/TemplateIcon.js +2 -2
- package/es/v1/svg/index.js +3 -3
- package/es/version2/AlertClose/AlertClose.js +2 -2
- package/es/version2/AlertClose/__tests__/AlertClose.spec.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -6
- package/es/version2/GlobalNotification/__tests__/GlobalNotification.spec.js +1 -1
- package/es/version2/alertIcons/AlarmAlertIcon.js +3 -3
- package/es/version2/alertIcons/AlertIcons.js +9 -9
- package/es/version2/alertIcons/DangerAlertIcon.js +3 -3
- package/es/version2/alertIcons/ErrorAlertIcon.js +3 -3
- package/es/version2/alertIcons/InfoAlertIcon.js +3 -3
- package/es/version2/alertIcons/NotificationAlertIcon.js +3 -3
- package/es/version2/alertIcons/SuccessAlertIcon.js +3 -3
- package/es/version2/alertIcons/WarningAlertIcon.js +3 -3
- package/es/version2/alertIcons/__tests__/AlarmAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/AlertIcons.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/DangerAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/ErrorAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/InfoAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/NotificationAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/SuccessAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/__tests__/WarningAlertIcon.spec.js +1 -1
- package/es/version2/alertIcons/index.js +8 -8
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +4 -4
- package/es/version2/errorstate/Inconvenience/__tests__/Inconvenience.spec.js +1 -1
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +4 -4
- package/es/version2/errorstate/OopsSomethingMiss/__tests__/OopsSomethingMiss.spec.js +1 -1
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +4 -4
- package/es/version2/errorstate/UnableToProcessRequest/__tests__/UnableToProcessRequest.spec.js +1 -1
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +4 -4
- package/es/version2/errorstate/UnauthorizedLogin/__tests__/UnauthorizedLogin.spec.js +1 -1
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +4 -4
- package/es/version2/errorstate/UrlNotFound/__tests__/UrlNotFound.spec.js +1 -1
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +4 -4
- package/es/version2/errorstate/WillBeRightBack/__tests__/WillBeRightBack.spec.js +1 -1
- package/es/version2/errorstate/index.js +6 -6
- package/es/version2/index.js +8 -8
- package/es/version2/lookup/AlertHeader/AlertHeader.js +7 -7
- package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +1 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +7 -7
- package/es/version2/lookup/AlertLookup/__tests__/AlertLookup.spec.js +1 -1
- package/es/version2/lookup/index.js +2 -2
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -6
- package/es/version2/notification/DesktopNotification/__tests__/DesktopNotification.spec.js +1 -1
- package/es/version2/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +5 -5
- package/es/version2/notification/DesktopNotificationHeader/__tests__/DesktopNotificationHeader.spec.js +1 -1
- package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/es/version2/notification/index.js +3 -3
- package/lib/AttachmentViewer/AttachmentImage.js +74 -36
- package/lib/AttachmentViewer/AttachmentViewer.js +151 -70
- package/lib/AttachmentViewer/AttachmentViewer.module.css +15 -3
- package/lib/AttachmentViewer/__tests__/AttachmentImage.spec.js +64 -13
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentImage.spec.js.snap +9 -5
- package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +16 -117
- package/lib/AttachmentViewer/props/defaultProps.js +5 -1
- package/lib/AttachmentViewer/props/propTypes.js +7 -3
- package/lib/AttachmentViewer/utils.js +60 -1
- package/lib/Image/Image.js +6 -2
- package/lib/Image/props/propTypes.js +3 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +0 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/lib/v1/AttachmentViewer/AttachmentImage.js +52 -24
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +151 -70
- package/lib/v1/AttachmentViewer/props/propTypes.js +7 -3
- package/lib/v1/Image/Image.js +6 -2
- package/lib/v1/Image/props/propTypes.js +3 -1
- package/lib/v1/form/fields/TextEditor/props/propTypes.js +0 -1
- package/package.json +3 -3
- package/result.json +1 -1
- package/unittest/index.html +2 -38
package/README.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.6.1
|
|
6
|
+
|
|
7
|
+
- **Image (v0&v1)**
|
|
8
|
+
- `onLoad`, `onError` prop supported.
|
|
9
|
+
|
|
10
|
+
- **AttachmentViewer (v0&v1)**
|
|
11
|
+
- Customization options added - `children` `thumbnail`, `dataId`, `customProps` and `customClass`.
|
|
12
|
+
- Added validation for `Open in newtab` and `zoom` menu option.
|
|
13
|
+
- image `alt` changed to dynamic name of image given by user instead of static `Preview` text;
|
|
14
|
+
|
|
15
|
+
- **AttachmentImage (v0&v1)**
|
|
16
|
+
- `checkImageValidity` `checkAudioUrlValidity` and `checkFileSourcesValidation` utils added.
|
|
17
|
+
- `className` changed to `customClass`, customClass contain `customImageClass` and `customChildrenClass`
|
|
18
|
+
- `children`, `onLoad`, `onError` prop supported
|
|
19
|
+
|
|
20
|
+
|
|
5
21
|
# 1.6.0
|
|
6
22
|
- **TextEditor (v0&v1)**
|
|
7
23
|
- `isDisabled` prop added and default value is `false`.
|
|
@@ -534,6 +534,7 @@
|
|
|
534
534
|
--zdt_attachmentviewer_selected_box_shadow: rgba(0, 0, 0, 0.34);
|
|
535
535
|
--zdt_attachmentviewer_loader_border: hsla(223, 14.29%, calc(19.22% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
536
536
|
--zdt_attachmentviewer_loader_border_top: hsla(0, 0.00%, calc(95.29% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
537
|
+
--zdt_attachmentviewer_alt_text: hsla(210, 7.41%, calc(89.41% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
537
538
|
|
|
538
539
|
/* separator */
|
|
539
540
|
--zdt_separator_default_text: hsla(216, 22.98%, calc(31.57% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -534,6 +534,7 @@
|
|
|
534
534
|
--zdt_attachmentviewer_selected_box_shadow: rgba(0, 0, 0, 0.34);
|
|
535
535
|
--zdt_attachmentviewer_loader_border: hsla(223, 14.29%, calc(19.22% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
536
536
|
--zdt_attachmentviewer_loader_border_top: hsla(0, 0.00%, calc(95.29% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
537
|
+
--zdt_attachmentviewer_alt_text: hsla(0, 0.00%, calc(100.00% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
537
538
|
|
|
538
539
|
/* separator */
|
|
539
540
|
--zdt_separator_default_text: hsla(0, 0.00%, calc(79.22% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -534,6 +534,7 @@
|
|
|
534
534
|
--zdt_attachmentviewer_selected_box_shadow: rgba(0, 0, 0, 0.34);
|
|
535
535
|
--zdt_attachmentviewer_loader_border: hsla(223, 14.29%, calc(19.22% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
536
536
|
--zdt_attachmentviewer_loader_border_top: hsla(0, 0.00%, calc(95.29% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
537
|
+
--zdt_attachmentviewer_alt_text: hsla(210, 7.41%, calc(89.41% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
537
538
|
|
|
538
539
|
/* separator */
|
|
539
540
|
--zdt_separator_default_text: hsla(0, 0.00%, calc(34.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
2
|
+
import { defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { propTypes } from "./props/propTypes";
|
|
4
4
|
import Popup from '@zohodesk/components/lib/Popup/Popup';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
6
|
import Button from '@zohodesk/components/lib/Button/Button';
|
|
7
7
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
8
8
|
import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
|
|
9
9
|
import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
|
|
10
|
-
import style from
|
|
10
|
+
import style from "./ActionButton.module.css";
|
|
11
11
|
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
12
12
|
export class ActionButton extends React.Component {
|
|
13
13
|
constructor(props) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*** Libraries ***/
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AlphabeticList_defaultProps, AlphabeticListItem_defaultProps } from
|
|
4
|
-
import { AlphabeticList_propTypes, AlphabeticListItem_propTypes, AlphabeticCharacters, NumberList, AlphabeticCharactersWithHash } from
|
|
3
|
+
import { AlphabeticList_defaultProps, AlphabeticListItem_defaultProps } from "./props/defaultProps";
|
|
4
|
+
import { AlphabeticList_propTypes, AlphabeticListItem_propTypes, AlphabeticCharacters, NumberList, AlphabeticCharactersWithHash } from "./props/propTypes";
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
/*** CSS ***/
|
|
7
7
|
|
|
8
|
-
import style from
|
|
8
|
+
import style from "./AlphabeticList.module.css";
|
|
9
9
|
export default class AlphabeticList extends React.PureComponent {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
|
-
import AlphabeticList from
|
|
3
|
+
import AlphabeticList from "../AlphabeticList";
|
|
4
4
|
describe('AlphabeticList', () => {
|
|
5
5
|
test('rendering the defult props', () => {
|
|
6
6
|
const {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
2
|
+
import { defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { propTypes } from "./props/propTypes";
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
|
-
import Link from
|
|
7
|
-
import style from
|
|
6
|
+
import Link from "../Link/Link";
|
|
7
|
+
import style from "./Attachment.module.css";
|
|
8
8
|
export default class Attachment extends React.Component {
|
|
9
9
|
render() {
|
|
10
10
|
let {
|
|
@@ -2,76 +2,112 @@
|
|
|
2
2
|
|
|
3
3
|
/** * Libraries ** */
|
|
4
4
|
import React, { Component } from 'react';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
5
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
6
|
+
import { AttachmentImage_defaultProps } from "./props/defaultProps";
|
|
7
|
+
import { AttachmentImage_propTypes } from "./props/propTypes";
|
|
8
|
+
import { checkImageValidity } from "./utils";
|
|
9
|
+
import Image from "../Image/Image";
|
|
8
10
|
/** * CSS ** */
|
|
9
11
|
|
|
10
|
-
import style from
|
|
12
|
+
import style from "./AttachmentViewer.module.css";
|
|
11
13
|
export default class AttachmentImage extends Component {
|
|
12
14
|
constructor(props) {
|
|
13
15
|
super(props);
|
|
14
|
-
this.imageEle = /*#__PURE__*/React.createRef();
|
|
15
16
|
this.state = {
|
|
16
|
-
isLoading: true
|
|
17
|
+
isLoading: true,
|
|
18
|
+
isImageValid: false
|
|
17
19
|
};
|
|
18
|
-
this.
|
|
20
|
+
this.handleImageValidation = this.handleImageValidation.bind(this);
|
|
21
|
+
this.renderImage = this.renderImage.bind(this);
|
|
19
22
|
}
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
handleImageValidation() {
|
|
22
25
|
const {
|
|
23
|
-
|
|
26
|
+
src
|
|
24
27
|
} = this.props;
|
|
25
|
-
|
|
26
|
-
if (isImage) {
|
|
27
|
-
const image = this.imageEle.current;
|
|
28
|
-
image.addEventListener('load', this.imgLoad);
|
|
29
|
-
} else {
|
|
28
|
+
checkImageValidity(src).then(isValid => {
|
|
30
29
|
this.setState({
|
|
31
|
-
isLoading: false
|
|
30
|
+
isLoading: false,
|
|
31
|
+
isImageValid: isValid
|
|
32
32
|
});
|
|
33
|
-
}
|
|
33
|
+
});
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
renderImage() {
|
|
37
|
+
const {
|
|
38
|
+
src,
|
|
39
|
+
onClick,
|
|
40
|
+
alt,
|
|
41
|
+
id,
|
|
42
|
+
dataId,
|
|
43
|
+
isCover,
|
|
44
|
+
customClass,
|
|
45
|
+
onLoad,
|
|
46
|
+
onError
|
|
47
|
+
} = this.props;
|
|
48
|
+
const {
|
|
49
|
+
isImageValid
|
|
50
|
+
} = this.state;
|
|
51
|
+
const {
|
|
52
|
+
customImageClass = ''
|
|
53
|
+
} = customClass;
|
|
54
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
55
|
+
htmlId: id,
|
|
56
|
+
dataId: isImageValid ? dataId : `${dataId}_alt`,
|
|
57
|
+
src: src,
|
|
58
|
+
onClick: onClick,
|
|
59
|
+
className: customImageClass,
|
|
60
|
+
alt: alt,
|
|
61
|
+
isCover: isCover,
|
|
62
|
+
onLoad: onLoad,
|
|
63
|
+
onError: onError
|
|
39
64
|
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
componentDidMount() {
|
|
68
|
+
this.handleImageValidation();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
componentDidUpdate(prevProps) {
|
|
40
72
|
const {
|
|
41
|
-
|
|
73
|
+
src
|
|
42
74
|
} = this.props;
|
|
43
|
-
|
|
75
|
+
|
|
76
|
+
if (prevProps.src !== src) {
|
|
77
|
+
this.setState({
|
|
78
|
+
isLoading: true
|
|
79
|
+
});
|
|
80
|
+
this.handleImageValidation();
|
|
81
|
+
}
|
|
44
82
|
}
|
|
45
83
|
|
|
46
84
|
render() {
|
|
47
85
|
const {
|
|
48
|
-
src,
|
|
49
|
-
onClick,
|
|
50
|
-
alt,
|
|
51
86
|
dataId,
|
|
52
87
|
id,
|
|
53
|
-
|
|
54
|
-
|
|
88
|
+
customClass,
|
|
89
|
+
children
|
|
55
90
|
} = this.props;
|
|
56
91
|
const {
|
|
57
|
-
isLoading
|
|
92
|
+
isLoading,
|
|
93
|
+
isImageValid
|
|
58
94
|
} = this.state;
|
|
95
|
+
const {
|
|
96
|
+
customChildrenClass = ''
|
|
97
|
+
} = customClass;
|
|
59
98
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLoading ? /*#__PURE__*/React.createElement("div", {
|
|
60
99
|
className: `${style.spinLoad}`,
|
|
61
100
|
"data-id": `${dataId}_loader`,
|
|
62
101
|
"data-test-id": `${dataId}_loader`
|
|
63
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
64
103
|
className: style.loader
|
|
65
|
-
})) :
|
|
104
|
+
})) : isImageValid ? this.renderImage() : children ? /*#__PURE__*/React.createElement(Container, {
|
|
105
|
+
align: "both",
|
|
66
106
|
htmlId: id,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
className: `${isLoading ? style.hide : ''} ${className}`,
|
|
72
|
-
alt: alt,
|
|
73
|
-
isCover: isCover
|
|
74
|
-
}));
|
|
107
|
+
dataId: `${dataId}_custom`,
|
|
108
|
+
className: customChildrenClass
|
|
109
|
+
}, children) : this.renderImage() //alt ui
|
|
110
|
+
);
|
|
75
111
|
}
|
|
76
112
|
|
|
77
113
|
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { AttachmentViewer_defaultProps } from
|
|
3
|
-
import { AttachmentViewer_propTypes } from
|
|
2
|
+
import { AttachmentViewer_defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { AttachmentViewer_propTypes } from "./props/propTypes";
|
|
4
4
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
6
|
import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
|
|
7
7
|
import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
8
8
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
9
|
-
import AttachmentImage from
|
|
10
|
-
import Link from
|
|
11
|
-
import IconButton from
|
|
12
|
-
import FreezeLayer from
|
|
13
|
-
import { isAudioFile, getExtensionFromFileName } from
|
|
14
|
-
import { shallowDiff } from
|
|
15
|
-
import style from
|
|
9
|
+
import AttachmentImage from "./AttachmentImage";
|
|
10
|
+
import Link from "../Link/Link";
|
|
11
|
+
import IconButton from "../IconButton/IconButton";
|
|
12
|
+
import FreezeLayer from "../FreezeLayer/FreezeLayer";
|
|
13
|
+
import { isAudioFile, getExtensionFromFileName } from "./Attachment";
|
|
14
|
+
import { shallowDiff } from "../utils/General";
|
|
15
|
+
import style from "./AttachmentViewer.module.css";
|
|
16
|
+
import { checkFileSourcesValidation } from "./utils";
|
|
17
|
+
import audioThumbNail from "../../images/audio_thumbnail.png";
|
|
16
18
|
export default class AttachmentViewer extends Component {
|
|
17
19
|
constructor(props) {
|
|
18
20
|
super(props);
|
|
@@ -25,7 +27,10 @@ export default class AttachmentViewer extends Component {
|
|
|
25
27
|
index: this.props.previewObj.selectedIndex,
|
|
26
28
|
data: this.props.previewObj ? this.props.previewObj.previewData : [],
|
|
27
29
|
dataList: []
|
|
28
|
-
})
|
|
30
|
+
}),
|
|
31
|
+
canOpenInNewTab: false,
|
|
32
|
+
canZoom: false,
|
|
33
|
+
isPreviewAttachmentValid: false
|
|
29
34
|
};
|
|
30
35
|
this.togglePViewList = this.togglePViewList.bind(this);
|
|
31
36
|
this.changeSelectedIndex = this.changeSelectedIndex.bind(this);
|
|
@@ -37,12 +42,20 @@ export default class AttachmentViewer extends Component {
|
|
|
37
42
|
this.getNextId = getUniqueId(this);
|
|
38
43
|
this.getUpdateDataList = this.getUpdateDataList.bind(this);
|
|
39
44
|
this.zoomMaintain = this.zoomMaintain.bind(this);
|
|
45
|
+
this.handleMenuValidation = this.handleMenuValidation.bind(this);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
componentDidMount() {
|
|
49
|
+
this.handleMenuValidation();
|
|
40
50
|
}
|
|
41
51
|
|
|
42
|
-
componentDidUpdate(prevProps) {
|
|
52
|
+
componentDidUpdate(prevProps, prevState) {
|
|
43
53
|
let {
|
|
44
54
|
previewObj
|
|
45
55
|
} = this.props;
|
|
56
|
+
const {
|
|
57
|
+
selectedIndex
|
|
58
|
+
} = this.state;
|
|
46
59
|
let indexChanged = previewObj.selectedIndex != prevProps.previewObj.selectedIndex;
|
|
47
60
|
|
|
48
61
|
if (previewObj.previewData.length != prevProps.previewObj.previewData.length || indexChanged) {
|
|
@@ -63,6 +76,35 @@ export default class AttachmentViewer extends Component {
|
|
|
63
76
|
});
|
|
64
77
|
}
|
|
65
78
|
}
|
|
79
|
+
|
|
80
|
+
if (prevState.selectedIndex != selectedIndex) {
|
|
81
|
+
this.handleMenuValidation();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
handleMenuValidation() {
|
|
86
|
+
const {
|
|
87
|
+
data,
|
|
88
|
+
selectedIndex
|
|
89
|
+
} = this.state;
|
|
90
|
+
const selectedAttachment = data[selectedIndex] || {};
|
|
91
|
+
const selectedAttachmentViewUrl = selectedAttachment.viewUrl;
|
|
92
|
+
const selectedAttachmentDownloadUrl = selectedAttachment.downloadUrl;
|
|
93
|
+
const selectedAttachmentName = selectedAttachment.name;
|
|
94
|
+
checkFileSourcesValidation({
|
|
95
|
+
fileName: selectedAttachmentName,
|
|
96
|
+
viewURL: selectedAttachmentViewUrl
|
|
97
|
+
}).then(fileSourceValidation => {
|
|
98
|
+
const {
|
|
99
|
+
isViewURLValid,
|
|
100
|
+
canZoom
|
|
101
|
+
} = fileSourceValidation;
|
|
102
|
+
this.setState({
|
|
103
|
+
isPreviewAttachmentValid: isViewURLValid,
|
|
104
|
+
canZoom,
|
|
105
|
+
canOpenInNewTab: isViewURLValid
|
|
106
|
+
});
|
|
107
|
+
});
|
|
66
108
|
}
|
|
67
109
|
|
|
68
110
|
togglePViewList() {
|
|
@@ -76,13 +118,11 @@ export default class AttachmentViewer extends Component {
|
|
|
76
118
|
zoomOut(ele) {
|
|
77
119
|
this.setState({
|
|
78
120
|
isZoomed: false
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
img.classList.add(style.normalImg);
|
|
85
|
-
}
|
|
121
|
+
}); // const img = document.getElementById(`img${ele}`);
|
|
122
|
+
// if (img) {
|
|
123
|
+
// img.classList.remove(style.zoomedImg);
|
|
124
|
+
// img.classList.add(style.normalImg);
|
|
125
|
+
// }
|
|
86
126
|
}
|
|
87
127
|
|
|
88
128
|
zoomIn(event, ele) {
|
|
@@ -113,12 +153,11 @@ export default class AttachmentViewer extends Component {
|
|
|
113
153
|
top: 0,
|
|
114
154
|
left: 0
|
|
115
155
|
};
|
|
116
|
-
}
|
|
156
|
+
} // if (img) {
|
|
157
|
+
// img.classList.remove(style.normalImg);
|
|
158
|
+
// img.classList.add(style.zoomedImg);
|
|
159
|
+
// }
|
|
117
160
|
|
|
118
|
-
if (img) {
|
|
119
|
-
img.classList.remove(style.normalImg);
|
|
120
|
-
img.classList.add(style.zoomedImg);
|
|
121
|
-
}
|
|
122
161
|
|
|
123
162
|
if (moveToPosition) {
|
|
124
163
|
imgContainer.scrollLeft = (event.pageX - imgContainerPosition.left - imgUnits.left) * imgRatio.width;
|
|
@@ -217,7 +256,9 @@ export default class AttachmentViewer extends Component {
|
|
|
217
256
|
const {
|
|
218
257
|
dataList,
|
|
219
258
|
selectedIndex,
|
|
220
|
-
isZoomed
|
|
259
|
+
isZoomed,
|
|
260
|
+
canZoom,
|
|
261
|
+
isPreviewAttachmentValid
|
|
221
262
|
} = this.state;
|
|
222
263
|
const {
|
|
223
264
|
maintainZoom,
|
|
@@ -252,7 +293,23 @@ export default class AttachmentViewer extends Component {
|
|
|
252
293
|
return dataList.length && dataList.map(function () {
|
|
253
294
|
let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
254
295
|
let i = arguments.length > 1 ? arguments[1] : undefined;
|
|
255
|
-
const
|
|
296
|
+
const {
|
|
297
|
+
viewUrl,
|
|
298
|
+
name,
|
|
299
|
+
children,
|
|
300
|
+
dataId = 'attachViewer',
|
|
301
|
+
customClass = {},
|
|
302
|
+
customProps = {}
|
|
303
|
+
} = data;
|
|
304
|
+
const {
|
|
305
|
+
audioProps = {},
|
|
306
|
+
imageProps = {}
|
|
307
|
+
} = customProps;
|
|
308
|
+
const {
|
|
309
|
+
customImageClass = '',
|
|
310
|
+
customChildrenClass = ''
|
|
311
|
+
} = customClass;
|
|
312
|
+
const retainZoom = canZoom && selectedIndex == i && maintainZoom;
|
|
256
313
|
return /*#__PURE__*/React.createElement(Container, {
|
|
257
314
|
className: style.imgBox,
|
|
258
315
|
id: `imgBox${i}`,
|
|
@@ -263,27 +320,32 @@ export default class AttachmentViewer extends Component {
|
|
|
263
320
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
264
321
|
className: style.imgRef,
|
|
265
322
|
id: `imgPreviewRef${i}`
|
|
266
|
-
}, isAudioFile(
|
|
323
|
+
}, isAudioFile(name) ? selectedIndex == i ? /*#__PURE__*/React.createElement("video", {
|
|
267
324
|
autoPlay: true,
|
|
268
325
|
controls: true,
|
|
269
326
|
className: style.zoomIn,
|
|
270
327
|
"data-id": `${dataId}_videoPreview`,
|
|
271
|
-
"data-test-id": `${dataId}_videoPreview
|
|
328
|
+
"data-test-id": `${dataId}_videoPreview`,
|
|
329
|
+
...audioProps
|
|
272
330
|
}, /*#__PURE__*/React.createElement("source", {
|
|
273
|
-
src:
|
|
274
|
-
type: `audio/${getExtensionFromFileName(
|
|
331
|
+
src: viewUrl,
|
|
332
|
+
type: `audio/${getExtensionFromFileName(name)}`
|
|
275
333
|
})) : null : /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
334
|
+
customClass: {
|
|
335
|
+
customImageClass: `${style.img} ${style.altText}
|
|
336
|
+
${canZoom || retainZoom ? isZoomed ? `${style.zoomedImg} ${style.zoomOutCursor}` : `${style.normalImg} ${style.zoomInCursor}` : ''} ${customImageClass}`,
|
|
337
|
+
customChildrenClass
|
|
280
338
|
},
|
|
281
|
-
|
|
282
|
-
|
|
339
|
+
src: viewUrl,
|
|
340
|
+
onClick: isPreviewAttachmentValid ? isZoomed ? _this.zoomOut.bind(_this, i) : e => {
|
|
341
|
+
_this.zoomIn(e, i, true);
|
|
342
|
+
} : undefined,
|
|
343
|
+
alt: name,
|
|
344
|
+
dataId: dataId,
|
|
283
345
|
id: `img${i}`,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
})));
|
|
346
|
+
isCover: false,
|
|
347
|
+
...imageProps
|
|
348
|
+
}, children)));
|
|
287
349
|
});
|
|
288
350
|
}
|
|
289
351
|
|
|
@@ -292,7 +354,9 @@ export default class AttachmentViewer extends Component {
|
|
|
292
354
|
isPViewListOpen,
|
|
293
355
|
selectedIndex,
|
|
294
356
|
data,
|
|
295
|
-
isZoomed
|
|
357
|
+
isZoomed,
|
|
358
|
+
canZoom,
|
|
359
|
+
canOpenInNewTab
|
|
296
360
|
} = this.state;
|
|
297
361
|
const {
|
|
298
362
|
responsiveId,
|
|
@@ -354,7 +418,7 @@ export default class AttachmentViewer extends Component {
|
|
|
354
418
|
align: uptoTablet ? 'bottom' : 'center',
|
|
355
419
|
wrap: "wrap",
|
|
356
420
|
isCover: false
|
|
357
|
-
}, isZoomed ? /*#__PURE__*/React.createElement("div", {
|
|
421
|
+
}, canZoom ? isZoomed ? /*#__PURE__*/React.createElement("div", {
|
|
358
422
|
className: uptoTablet ? style.mobileMenu : style.menu,
|
|
359
423
|
onClick: this.zoomOut.bind(this, selectedIndex),
|
|
360
424
|
"data-id": "zoomOut",
|
|
@@ -382,7 +446,7 @@ export default class AttachmentViewer extends Component {
|
|
|
382
446
|
a11y: {
|
|
383
447
|
ariaLabel: i18nKeys.zoomInText
|
|
384
448
|
}
|
|
385
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
449
|
+
})) : null, canOpenInNewTab ? /*#__PURE__*/React.createElement("div", {
|
|
386
450
|
className: uptoTablet ? style.mobileMenu : style.menu
|
|
387
451
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
388
452
|
href: selectedImgUrl,
|
|
@@ -398,7 +462,7 @@ export default class AttachmentViewer extends Component {
|
|
|
398
462
|
a11y: {
|
|
399
463
|
ariaLabel: i18nKeys.newTabText
|
|
400
464
|
}
|
|
401
|
-
}))), needDownload ? /*#__PURE__*/React.createElement("div", {
|
|
465
|
+
}))) : null, needDownload ? /*#__PURE__*/React.createElement("div", {
|
|
402
466
|
className: uptoTablet ? style.mobileMenu : style.menu
|
|
403
467
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
404
468
|
href: downloadUrl,
|
|
@@ -504,24 +568,39 @@ export default class AttachmentViewer extends Component {
|
|
|
504
568
|
}, data.map((item, index) => {
|
|
505
569
|
const {
|
|
506
570
|
name,
|
|
507
|
-
viewUrl
|
|
571
|
+
viewUrl,
|
|
572
|
+
children,
|
|
573
|
+
customClass = {},
|
|
574
|
+
dataId = 'AttachmentImage',
|
|
575
|
+
customProps = {}
|
|
508
576
|
} = item;
|
|
509
|
-
|
|
577
|
+
let {
|
|
578
|
+
thumbnail
|
|
579
|
+
} = item;
|
|
580
|
+
const {
|
|
581
|
+
customImageClass = '',
|
|
582
|
+
customChildrenClass = ''
|
|
583
|
+
} = customClass;
|
|
584
|
+
thumbnail = isAudioFile(name) ? thumbnail || audioThumbNail : thumbnail; //fallback thumbnail for audio
|
|
585
|
+
|
|
510
586
|
return /*#__PURE__*/React.createElement(Box, {
|
|
511
|
-
className: `${style.imgItem} ${index === selectedIndex ? style.selected : ''}
|
|
587
|
+
className: `${style.imgItem} ${index === selectedIndex ? style.selected : ''}`,
|
|
512
588
|
key: index,
|
|
513
589
|
onClick: this.changeSelectedIndex.bind(this, index),
|
|
514
590
|
eleRef: el => this[`img_${index}`] = el,
|
|
515
591
|
dataId: "attachPreviewList",
|
|
516
592
|
"data-title": name
|
|
517
593
|
}, /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
518
|
-
src: viewUrl,
|
|
594
|
+
src: thumbnail || viewUrl,
|
|
519
595
|
size: "small",
|
|
520
596
|
alt: name,
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
597
|
+
customClass: {
|
|
598
|
+
customImageClass: `${style.image} ${style.altText} ${customImageClass}`,
|
|
599
|
+
customChildrenClass: `${style.crsrPointer} ${customChildrenClass}`
|
|
600
|
+
},
|
|
601
|
+
dataId: dataId,
|
|
602
|
+
...customProps
|
|
603
|
+
}, children));
|
|
525
604
|
}))))), totalLen !== 1 && /*#__PURE__*/React.createElement(IconButton, {
|
|
526
605
|
dataId: "attachToggle",
|
|
527
606
|
onClick: this.togglePViewList,
|
|
@@ -161,6 +161,7 @@
|
|
|
161
161
|
border-color: var(--dot_mirror);
|
|
162
162
|
border-radius: 3px;
|
|
163
163
|
padding: var(--zd_size2) ;
|
|
164
|
+
cursor: pointer;
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
.imgItem:hover {
|
|
@@ -175,10 +176,15 @@
|
|
|
175
176
|
margin-right: var(--zd_size12) ;
|
|
176
177
|
}
|
|
177
178
|
|
|
178
|
-
.image {
|
|
179
|
+
.image, .crsrPointer {
|
|
179
180
|
cursor: pointer;
|
|
180
181
|
}
|
|
181
182
|
|
|
183
|
+
.altText {
|
|
184
|
+
color: var(--zdt_attachmentviewer_title_text);
|
|
185
|
+
font-size: var(--zd_font_size13) ;
|
|
186
|
+
}
|
|
187
|
+
|
|
182
188
|
.selected, .selected:hover {
|
|
183
189
|
border-color: var(--zdt_attachmentviewer_selected_border);
|
|
184
190
|
}
|
|
@@ -273,19 +279,24 @@
|
|
|
273
279
|
.img {
|
|
274
280
|
transition: var(--zd_transition3) ease-in-out;
|
|
275
281
|
margin: auto ;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.zoomInCursor {
|
|
276
285
|
cursor: zoom-in;
|
|
277
286
|
}
|
|
278
287
|
|
|
288
|
+
.zoomOutCursor {
|
|
289
|
+
cursor: zoom-out;
|
|
290
|
+
}
|
|
291
|
+
|
|
279
292
|
.imgRef .normalImg {
|
|
280
293
|
max-width: inherit ;
|
|
281
294
|
max-height: inherit ;
|
|
282
|
-
cursor: zoom-in;
|
|
283
295
|
}
|
|
284
296
|
|
|
285
297
|
.imgRef .zoomedImg {
|
|
286
298
|
max-width: initial ;
|
|
287
299
|
max-height: initial ;
|
|
288
|
-
cursor: zoom-out;
|
|
289
300
|
}
|
|
290
301
|
|
|
291
302
|
.previewBox {
|
|
@@ -298,6 +309,7 @@
|
|
|
298
309
|
composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
|
|
299
310
|
height: var(--zd_size18) ;
|
|
300
311
|
width: var(--zd_size18) ;
|
|
312
|
+
cursor: progress
|
|
301
313
|
}
|
|
302
314
|
|
|
303
315
|
.loader {
|