@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
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
|
-
import AttachmentImage from
|
|
3
|
+
import AttachmentImage from "../AttachmentImage";
|
|
4
|
+
import Avatar from '@zohodesk/components/es/Avatar/Avatar';
|
|
4
5
|
describe('AttachmentImage', () => {
|
|
5
6
|
test('rendering the defult props', () => {
|
|
6
7
|
const {
|
|
7
8
|
asFragment
|
|
8
9
|
} = render( /*#__PURE__*/React.createElement(AttachmentImage, {
|
|
10
|
+
customClass: {
|
|
11
|
+
customImageClass: 'customImageClass',
|
|
12
|
+
customChildrenClass: 'customChildrenClass'
|
|
13
|
+
},
|
|
9
14
|
previewObj: {
|
|
10
15
|
previewData: [{
|
|
11
16
|
id: '1',
|
|
@@ -13,49 +18,94 @@ describe('AttachmentImage', () => {
|
|
|
13
18
|
size: '100412',
|
|
14
19
|
href: 'https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG',
|
|
15
20
|
viewUrl: 'https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG',
|
|
16
|
-
downloadUrl: 'https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG'
|
|
21
|
+
downloadUrl: 'https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG',
|
|
22
|
+
children: /*#__PURE__*/React.createElement(Avatar, {
|
|
23
|
+
name: "User Image"
|
|
24
|
+
})
|
|
17
25
|
}, {
|
|
18
26
|
id: '2',
|
|
19
27
|
name: 'slack1.jpg',
|
|
20
28
|
size: '100412',
|
|
21
29
|
href: 'https://p.bigstockphoto.com/GeFvQkBbSLaMdpKXF1Zv_bigstock-Aerial-View-Of-Blue-Lakes-And--227291596.jpg',
|
|
22
30
|
viewUrl: 'https://p.bigstockphoto.com/GeFvQkBbSLaMdpKXF1Zv_bigstock-Aerial-View-Of-Blue-Lakes-And--227291596.jpg',
|
|
23
|
-
downloadUrl: 'https://p.bigstockphoto.com/GeFvQkBbSLaMdpKXF1Zv_bigstock-Aerial-View-Of-Blue-Lakes-And--227291596.jpg'
|
|
31
|
+
downloadUrl: 'https://p.bigstockphoto.com/GeFvQkBbSLaMdpKXF1Zv_bigstock-Aerial-View-Of-Blue-Lakes-And--227291596.jpg',
|
|
32
|
+
children: /*#__PURE__*/React.createElement(Avatar, {
|
|
33
|
+
name: "User Image"
|
|
34
|
+
})
|
|
24
35
|
}, {
|
|
25
36
|
id: '3',
|
|
26
37
|
name: 'slack2.jpg',
|
|
27
38
|
size: '100412',
|
|
28
39
|
href: 'https://wallpapercave.com/wp/wp3913900.jpg',
|
|
29
40
|
viewUrl: 'https://wallpapercave.com/wp/wp3913900.jpg',
|
|
30
|
-
downloadUrl: 'https://wallpapercave.com/wp/wp3913900.jpg'
|
|
41
|
+
downloadUrl: 'https://wallpapercave.com/wp/wp3913900.jpg',
|
|
42
|
+
children: /*#__PURE__*/React.createElement(Avatar, {
|
|
43
|
+
name: "User Image"
|
|
44
|
+
})
|
|
31
45
|
}, {
|
|
32
46
|
id: '4',
|
|
33
47
|
name: 'slack3.jpg',
|
|
34
48
|
size: '100412',
|
|
35
|
-
href: '
|
|
36
|
-
viewUrl: '
|
|
37
|
-
downloadUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg'
|
|
49
|
+
href: '',
|
|
50
|
+
viewUrl: '',
|
|
51
|
+
downloadUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg',
|
|
52
|
+
thumbnail: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg' // children: <Avatar name='User Image' />
|
|
53
|
+
|
|
38
54
|
}, {
|
|
39
55
|
id: '5',
|
|
56
|
+
name: 'slack3.jpg',
|
|
57
|
+
size: '100412',
|
|
58
|
+
href: '',
|
|
59
|
+
viewUrl: '',
|
|
60
|
+
downloadUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg',
|
|
61
|
+
children: /*#__PURE__*/React.createElement(Avatar, {
|
|
62
|
+
name: "User Image"
|
|
63
|
+
})
|
|
64
|
+
}, {
|
|
65
|
+
id: '6',
|
|
40
66
|
name: 'slack4.jpg',
|
|
41
67
|
size: '100412',
|
|
42
68
|
href: 'https://wallpapercave.com/wp/wp3913900.jpg',
|
|
43
69
|
viewUrl: 'https://wallpapercave.com/wp/wp3913900.jpg',
|
|
44
|
-
downloadUrl: 'https://wallpapercave.com/wp/wp3913900.jpg'
|
|
70
|
+
downloadUrl: 'https://wallpapercave.com/wp/wp3913900.jpg',
|
|
71
|
+
children: /*#__PURE__*/React.createElement(Avatar, {
|
|
72
|
+
name: "User Image"
|
|
73
|
+
})
|
|
45
74
|
}, {
|
|
46
|
-
id: '
|
|
75
|
+
id: '7',
|
|
47
76
|
name: 'slack5.jpg',
|
|
48
77
|
size: '100412',
|
|
49
78
|
href: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg',
|
|
50
79
|
viewUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg',
|
|
51
|
-
downloadUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg'
|
|
80
|
+
downloadUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg',
|
|
81
|
+
children: /*#__PURE__*/React.createElement(Avatar, {
|
|
82
|
+
name: "User Image"
|
|
83
|
+
})
|
|
52
84
|
}, {
|
|
53
|
-
id: '
|
|
85
|
+
id: '8',
|
|
86
|
+
name: 'slack5.mp3',
|
|
87
|
+
size: '100412',
|
|
88
|
+
href: 'https://samplelib.com/lib/preview/mp3/sample-3s.mp3',
|
|
89
|
+
viewUrl: 'https://samplelib.com/lib/preview/mp3/sample-3s.mp3',
|
|
90
|
+
downloadUrl: 'https://samplelib.com/lib/preview/mp3/sample-3s.mp3',
|
|
91
|
+
thumbnail: 'https://images.sftcdn.net/images/t_app-icon-m/p/7c80bdc6-a206-40b2-91fd-951c244f3672/3180901960/mp3-tag-editor-edit-music-tags-cover-art-changer-icon.png',
|
|
92
|
+
children: 'MP3'
|
|
93
|
+
}, {
|
|
94
|
+
id: '9',
|
|
54
95
|
name: 'slack5.mp3',
|
|
55
96
|
size: '100412',
|
|
56
|
-
href: 'https://
|
|
57
|
-
viewUrl: 'https://
|
|
58
|
-
downloadUrl: 'https://
|
|
97
|
+
href: 'https://samplelib.com/lib/preview/mp3/sample-3s.mp3',
|
|
98
|
+
viewUrl: 'https://samplelib.com/lib/preview/mp3/sample-3s.mp3',
|
|
99
|
+
downloadUrl: 'https://samplelib.com/lib/preview/mp3/sample-3s.mp3',
|
|
100
|
+
children: 'MP3'
|
|
101
|
+
}, {
|
|
102
|
+
id: '10',
|
|
103
|
+
children: 'custom Text'
|
|
104
|
+
}, {
|
|
105
|
+
id: '11',
|
|
106
|
+
children: /*#__PURE__*/React.createElement(Avatar, {
|
|
107
|
+
name: "custom children"
|
|
108
|
+
})
|
|
59
109
|
}],
|
|
60
110
|
selectedIndex: 0
|
|
61
111
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
|
-
import AttachmentViewer from
|
|
3
|
+
import AttachmentViewer from "../AttachmentViewer";
|
|
4
4
|
describe('AttachmentViewer', () => {
|
|
5
5
|
test('rendering the defult props', () => {
|
|
6
6
|
const {
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`AttachmentImage rendering the defult props 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
6
|
-
class="
|
|
7
|
-
data-id="
|
|
8
|
-
data-test-id="
|
|
9
|
-
|
|
5
|
+
<div
|
|
6
|
+
class="spinLoad"
|
|
7
|
+
data-id="AttachmentImage_loader"
|
|
8
|
+
data-test-id="AttachmentImage_loader"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
class="loader"
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
10
14
|
</DocumentFragment>
|
|
11
15
|
`;
|
|
@@ -65,59 +65,6 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
65
65
|
data-selector-id="container"
|
|
66
66
|
data-test-id="containerComponent"
|
|
67
67
|
>
|
|
68
|
-
<div
|
|
69
|
-
class="menu"
|
|
70
|
-
data-id="zoomIn"
|
|
71
|
-
data-test-id="zoomIn"
|
|
72
|
-
>
|
|
73
|
-
<button
|
|
74
|
-
aria-pressed="false"
|
|
75
|
-
class="buttonReset wrapper menuIcon undefined effect default border borderHover hoverEffect inflex coldir both"
|
|
76
|
-
data-id="iconContainer"
|
|
77
|
-
data-ishtml="false"
|
|
78
|
-
data-selector-id="iconButton"
|
|
79
|
-
data-test-id="iconContainer"
|
|
80
|
-
>
|
|
81
|
-
<i
|
|
82
|
-
aria-hidden="true"
|
|
83
|
-
class="zd_font_icons basic icon-zoomIn "
|
|
84
|
-
data-id="fontIcon"
|
|
85
|
-
data-selector-id="fontIcon"
|
|
86
|
-
data-test-id="fontIcon"
|
|
87
|
-
style="--zd-iconfont-size: var(--zd_font_size16);"
|
|
88
|
-
/>
|
|
89
|
-
</button>
|
|
90
|
-
</div>
|
|
91
|
-
<div
|
|
92
|
-
class="menu"
|
|
93
|
-
>
|
|
94
|
-
<a
|
|
95
|
-
class="container "
|
|
96
|
-
data-id="newTabAttach"
|
|
97
|
-
data-test-id="newTabAttach"
|
|
98
|
-
href="https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG"
|
|
99
|
-
rel="noopener noreferrer"
|
|
100
|
-
target="_blank"
|
|
101
|
-
>
|
|
102
|
-
<div
|
|
103
|
-
aria-pressed="false"
|
|
104
|
-
class="false wrapper menuIcon undefined effect default border borderHover hoverEffect inflex coldir both"
|
|
105
|
-
data-id="iconContainer"
|
|
106
|
-
data-ishtml="false"
|
|
107
|
-
data-selector-id="iconButton"
|
|
108
|
-
data-test-id="iconContainer"
|
|
109
|
-
>
|
|
110
|
-
<i
|
|
111
|
-
aria-hidden="true"
|
|
112
|
-
class="zd_font_icons basic icon-newLink "
|
|
113
|
-
data-id="fontIcon"
|
|
114
|
-
data-selector-id="fontIcon"
|
|
115
|
-
data-test-id="fontIcon"
|
|
116
|
-
style="--zd-iconfont-size: var(--zd_font_size16);"
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
</a>
|
|
120
|
-
</div>
|
|
121
68
|
<div
|
|
122
69
|
class="menu"
|
|
123
70
|
>
|
|
@@ -241,14 +188,6 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
241
188
|
class="loader"
|
|
242
189
|
/>
|
|
243
190
|
</div>
|
|
244
|
-
<img
|
|
245
|
-
alt="Preview"
|
|
246
|
-
class=" hide img imgMaxFullSize "
|
|
247
|
-
data-id="attachViewer"
|
|
248
|
-
data-test-id="attachViewer"
|
|
249
|
-
id="img0"
|
|
250
|
-
src="https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG"
|
|
251
|
-
/>
|
|
252
191
|
</div>
|
|
253
192
|
</div>
|
|
254
193
|
</div>
|
|
@@ -298,7 +237,7 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
298
237
|
data-test-id="containerComponent"
|
|
299
238
|
>
|
|
300
239
|
<div
|
|
301
|
-
class="imgItem selected
|
|
240
|
+
class="imgItem selected shrinkOff"
|
|
302
241
|
data-id="attachPreviewList"
|
|
303
242
|
data-selector-id="box"
|
|
304
243
|
data-test-id="attachPreviewList"
|
|
@@ -313,16 +252,9 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
313
252
|
class="loader"
|
|
314
253
|
/>
|
|
315
254
|
</div>
|
|
316
|
-
<img
|
|
317
|
-
alt="slack0.jpg"
|
|
318
|
-
class=" hide image imgMaxFullSize "
|
|
319
|
-
data-id="AttachmentImage"
|
|
320
|
-
data-test-id="AttachmentImage"
|
|
321
|
-
src="https://2.bp.blogspot.com/_H-PCzW2K720/SlXXLLMOzsI/AAAAAAAAAFE/efv7GBth9cQ/s280/Elva+Hill+04.JPG"
|
|
322
|
-
/>
|
|
323
255
|
</div>
|
|
324
256
|
<div
|
|
325
|
-
class="imgItem
|
|
257
|
+
class="imgItem shrinkOff"
|
|
326
258
|
data-id="attachPreviewList"
|
|
327
259
|
data-selector-id="box"
|
|
328
260
|
data-test-id="attachPreviewList"
|
|
@@ -337,16 +269,9 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
337
269
|
class="loader"
|
|
338
270
|
/>
|
|
339
271
|
</div>
|
|
340
|
-
<img
|
|
341
|
-
alt="slack1.jpg"
|
|
342
|
-
class=" hide image imgMaxFullSize "
|
|
343
|
-
data-id="AttachmentImage"
|
|
344
|
-
data-test-id="AttachmentImage"
|
|
345
|
-
src="https://p.bigstockphoto.com/GeFvQkBbSLaMdpKXF1Zv_bigstock-Aerial-View-Of-Blue-Lakes-And--227291596.jpg"
|
|
346
|
-
/>
|
|
347
272
|
</div>
|
|
348
273
|
<div
|
|
349
|
-
class="imgItem
|
|
274
|
+
class="imgItem shrinkOff"
|
|
350
275
|
data-id="attachPreviewList"
|
|
351
276
|
data-selector-id="box"
|
|
352
277
|
data-test-id="attachPreviewList"
|
|
@@ -361,16 +286,9 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
361
286
|
class="loader"
|
|
362
287
|
/>
|
|
363
288
|
</div>
|
|
364
|
-
<img
|
|
365
|
-
alt="slack2.jpg"
|
|
366
|
-
class=" hide image imgMaxFullSize "
|
|
367
|
-
data-id="AttachmentImage"
|
|
368
|
-
data-test-id="AttachmentImage"
|
|
369
|
-
src="https://wallpapercave.com/wp/wp3913900.jpg"
|
|
370
|
-
/>
|
|
371
289
|
</div>
|
|
372
290
|
<div
|
|
373
|
-
class="imgItem
|
|
291
|
+
class="imgItem shrinkOff"
|
|
374
292
|
data-id="attachPreviewList"
|
|
375
293
|
data-selector-id="box"
|
|
376
294
|
data-test-id="attachPreviewList"
|
|
@@ -385,16 +303,9 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
385
303
|
class="loader"
|
|
386
304
|
/>
|
|
387
305
|
</div>
|
|
388
|
-
<img
|
|
389
|
-
alt="slack3.jpg"
|
|
390
|
-
class=" hide image imgMaxFullSize "
|
|
391
|
-
data-id="AttachmentImage"
|
|
392
|
-
data-test-id="AttachmentImage"
|
|
393
|
-
src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg"
|
|
394
|
-
/>
|
|
395
306
|
</div>
|
|
396
307
|
<div
|
|
397
|
-
class="imgItem
|
|
308
|
+
class="imgItem shrinkOff"
|
|
398
309
|
data-id="attachPreviewList"
|
|
399
310
|
data-selector-id="box"
|
|
400
311
|
data-test-id="attachPreviewList"
|
|
@@ -409,16 +320,9 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
409
320
|
class="loader"
|
|
410
321
|
/>
|
|
411
322
|
</div>
|
|
412
|
-
<img
|
|
413
|
-
alt="slack4.jpg"
|
|
414
|
-
class=" hide image imgMaxFullSize "
|
|
415
|
-
data-id="AttachmentImage"
|
|
416
|
-
data-test-id="AttachmentImage"
|
|
417
|
-
src="https://wallpapercave.com/wp/wp3913900.jpg"
|
|
418
|
-
/>
|
|
419
323
|
</div>
|
|
420
324
|
<div
|
|
421
|
-
class="imgItem
|
|
325
|
+
class="imgItem shrinkOff"
|
|
422
326
|
data-id="attachPreviewList"
|
|
423
327
|
data-selector-id="box"
|
|
424
328
|
data-test-id="attachPreviewList"
|
|
@@ -433,28 +337,23 @@ exports[`AttachmentViewer rendering the when isActive is true 1`] = `
|
|
|
433
337
|
class="loader"
|
|
434
338
|
/>
|
|
435
339
|
</div>
|
|
436
|
-
<img
|
|
437
|
-
alt="slack5.jpg"
|
|
438
|
-
class=" hide image imgMaxFullSize "
|
|
439
|
-
data-id="AttachmentImage"
|
|
440
|
-
data-test-id="AttachmentImage"
|
|
441
|
-
src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Giraffe_2019-07-28.jpg/682px-Giraffe_2019-07-28.jpg"
|
|
442
|
-
/>
|
|
443
340
|
</div>
|
|
444
341
|
<div
|
|
445
|
-
class="imgItem
|
|
342
|
+
class="imgItem shrinkOff"
|
|
446
343
|
data-id="attachPreviewList"
|
|
447
344
|
data-selector-id="box"
|
|
448
345
|
data-test-id="attachPreviewList"
|
|
449
346
|
data-title="slack5.mp3"
|
|
450
347
|
>
|
|
451
|
-
<
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
data-id="
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
348
|
+
<div
|
|
349
|
+
class="spinLoad"
|
|
350
|
+
data-id="AttachmentImage_loader"
|
|
351
|
+
data-test-id="AttachmentImage_loader"
|
|
352
|
+
>
|
|
353
|
+
<div
|
|
354
|
+
class="loader"
|
|
355
|
+
/>
|
|
356
|
+
</div>
|
|
458
357
|
</div>
|
|
459
358
|
</div>
|
|
460
359
|
</div>
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
export const AttachmentImage_propTypes = {
|
|
3
3
|
alt: PropTypes.string,
|
|
4
|
-
|
|
4
|
+
customClass: PropTypes.shape({
|
|
5
|
+
customImageClass: PropTypes.string,
|
|
6
|
+
customChildrenClass: PropTypes.string
|
|
7
|
+
}),
|
|
5
8
|
dataId: PropTypes.string,
|
|
6
9
|
id: PropTypes.string,
|
|
7
10
|
isCover: PropTypes.bool,
|
|
8
|
-
isImage: PropTypes.string,
|
|
9
11
|
onClick: PropTypes.func,
|
|
10
12
|
onLoad: PropTypes.func,
|
|
11
|
-
|
|
13
|
+
onError: PropTypes.func,
|
|
14
|
+
src: PropTypes.string,
|
|
15
|
+
children: PropTypes.node
|
|
12
16
|
};
|
|
13
17
|
export const AttachmentViewer_propTypes = {
|
|
14
18
|
hideAttachmentViewer: PropTypes.func,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isAudioFile } from "./Attachment";
|
|
1
2
|
export class Zoom {
|
|
2
3
|
constructor() {
|
|
3
4
|
const matrix = [1, 0, 0, 1, 0, 0]; // current view transform
|
|
@@ -104,4 +105,52 @@ export class ZoomEvent {
|
|
|
104
105
|
event.preventDefault();
|
|
105
106
|
}
|
|
106
107
|
|
|
108
|
+
}
|
|
109
|
+
export function checkImageValidity(src) {
|
|
110
|
+
return new Promise(resolve => {
|
|
111
|
+
const img = new Image();
|
|
112
|
+
img.src = src;
|
|
113
|
+
|
|
114
|
+
img.onload = () => {
|
|
115
|
+
resolve(true);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
img.onerror = () => {
|
|
119
|
+
resolve(false);
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
export function checkAudioUrlValidity(url) {
|
|
124
|
+
return new Promise(resolve => {
|
|
125
|
+
const audio = new Audio(url);
|
|
126
|
+
|
|
127
|
+
audio.oncanplaythrough = () => {
|
|
128
|
+
resolve(true);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
audio.onerror = () => {
|
|
132
|
+
resolve(false);
|
|
133
|
+
};
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
;
|
|
137
|
+
export function checkFileSourcesValidation(_ref) {
|
|
138
|
+
let {
|
|
139
|
+
fileName,
|
|
140
|
+
viewURL
|
|
141
|
+
} = _ref;
|
|
142
|
+
|
|
143
|
+
if (isAudioFile(fileName)) {
|
|
144
|
+
const audioValidityPromise = checkAudioUrlValidity(viewURL);
|
|
145
|
+
return audioValidityPromise.then(isURLValid => ({
|
|
146
|
+
isViewURLValid: isURLValid,
|
|
147
|
+
canZoom: false
|
|
148
|
+
}));
|
|
149
|
+
} else {
|
|
150
|
+
const imageValidityPromise = checkImageValidity(viewURL);
|
|
151
|
+
return imageValidityPromise.then(isURLValid => ({
|
|
152
|
+
isViewURLValid: isURLValid,
|
|
153
|
+
canZoom: isURLValid
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
107
156
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { Component } 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 Avatar from '@zohodesk/components/lib/Avatar/Avatar';
|
|
6
|
-
import AvatarIcon from
|
|
7
|
-
import { getChannelMappingObj } from
|
|
8
|
-
import style from
|
|
6
|
+
import AvatarIcon from "../avatar/AvatarIcon/AvatarIcon";
|
|
7
|
+
import { getChannelMappingObj } from "../utils/ChannelIconMapping";
|
|
8
|
+
import style from "./ChannelIcon.module.css";
|
|
9
9
|
export default class ChannelIcon extends Component {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from
|
|
3
|
-
import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from
|
|
4
|
-
import FreezeLayer from
|
|
2
|
+
import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from "./props/propTypes";
|
|
4
|
+
import FreezeLayer from "../FreezeLayer/FreezeLayer";
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
|
|
7
|
-
import FormAction from
|
|
7
|
+
import FormAction from "../FormAction/FormAction";
|
|
8
8
|
import VelocityAnimationGroup from '@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
9
9
|
import { ResponsiveSender, ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
10
10
|
import Heading from '@zohodesk/components/lib/Heading/Heading';
|
|
11
|
-
import IconButton from
|
|
11
|
+
import IconButton from "../IconButton/IconButton";
|
|
12
12
|
import { Icon } from '@zohodesk/icons';
|
|
13
13
|
import { getZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
14
|
-
import style from
|
|
14
|
+
import style from "./Drawer.module.css";
|
|
15
15
|
import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
|
|
16
16
|
export class Header extends React.Component {
|
|
17
17
|
render() {
|
package/es/Drawer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Header, Content, Footer, default as Drawer } from
|
|
1
|
+
export { Header, Content, Footer, default as Drawer } from "./Drawer";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**** Libraries ****/
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { defaultProps } from
|
|
4
|
-
import { propTypes } from
|
|
3
|
+
import { defaultProps } from "./props/defaultProps";
|
|
4
|
+
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** CSS ****/
|
|
6
6
|
|
|
7
|
-
import style from
|
|
7
|
+
import style from "./ExternalLink.module.css";
|
|
8
8
|
export default class ExternalLink extends React.Component {
|
|
9
9
|
addHttp(url) {
|
|
10
10
|
const regEx = new RegExp(/(^(ftp|https|mailto|tel|http|simplehelp|dynamicsnav?):)/i);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
|
-
import ExternalLink from
|
|
3
|
+
import ExternalLink from "../ExternalLink";
|
|
4
4
|
describe('ExternalLink', () => {
|
|
5
5
|
const target = ['_blank', '_self'];
|
|
6
6
|
test('renders with default props', () => {
|
package/es/FlipCard/FlipCard.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
4
|
-
import AvatarUser from
|
|
5
|
-
import AvatarIcon from
|
|
2
|
+
import { defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { propTypes } from "./props/propTypes";
|
|
4
|
+
import AvatarUser from "../avatar/AvatarUser/AvatarUser";
|
|
5
|
+
import AvatarIcon from "../avatar/AvatarIcon/AvatarIcon";
|
|
6
6
|
import CheckBox from '@zohodesk/components/lib/CheckBox/CheckBox';
|
|
7
7
|
import { Container } from '@zohodesk/components/lib/Layout';
|
|
8
|
-
import ChannelIcon from
|
|
8
|
+
import ChannelIcon from "../ChannelIcon/ChannelIcon";
|
|
9
9
|
import AvatarSize from '@zohodesk/components/lib/Provider/AvatarSize';
|
|
10
|
-
import style from
|
|
11
|
-
import { stopBubbling } from
|
|
10
|
+
import style from "./FlipCard.module.css";
|
|
11
|
+
import { stopBubbling } from "../utils/General";
|
|
12
12
|
export default class FlipCard extends Component {
|
|
13
13
|
constructor(props) {
|
|
14
14
|
super(props);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
4
|
-
import style from
|
|
2
|
+
import { defaultProps } from "./props/defaultProps";
|
|
3
|
+
import { propTypes } from "./props/propTypes";
|
|
4
|
+
import style from "./FormAction.module.css";
|
|
5
5
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
export const LeftSide = props => {
|
|
7
7
|
props.children;
|
|
@@ -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 { Container } from '@zohodesk/components/lib/Layout';
|
|
5
5
|
import { mergeStyle } from '@zohodesk/utils';
|
|
6
6
|
import VelocityAnimationGroup from '@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
7
7
|
import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
8
|
-
import cssJSLogic from
|
|
9
|
-
import useFreezeLayer from
|
|
10
|
-
import style from
|
|
8
|
+
import cssJSLogic from "./css/cssJSLogic";
|
|
9
|
+
import useFreezeLayer from "../Hooks/useFreezeLayer";
|
|
10
|
+
import style from "./css/FreezeLayer.module.css";
|
|
11
11
|
export default function FreezeLayer(props) {
|
|
12
12
|
let {
|
|
13
13
|
isActive: propsActive,
|
package/es/FreezeLayer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as FreezeLayer } from
|
|
2
|
-
export { default as FreezeLayerPropTypes } from
|
|
1
|
+
export { default as FreezeLayer } from "./FreezeLayer";
|
|
2
|
+
export { default as FreezeLayerPropTypes } from "./props/propTypes";
|