@zohodesk/dot 1.0.0-beta.212 → 1.0.0-beta.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/es/ActionButton/ActionButton.js +169 -0
- package/es/ActionButton/ActionButton.module.css +120 -0
- package/es/AlphabeticList/AlphabeticList.js +138 -0
- package/es/AlphabeticList/AlphabeticList.module.css +54 -0
- package/es/Attachment/Attachment.js +104 -0
- package/es/Attachment/Attachment.module.css +121 -0
- package/es/ChannelIcon/ChannelIcon.js +126 -0
- package/es/ChannelIcon/ChannelIcon.module.css +208 -0
- package/es/Drawer/Drawer.js +314 -0
- package/es/Drawer/Drawer.module.css +103 -0
- package/es/ExternalLink/ExternalLink.js +66 -0
- package/es/ExternalLink/ExternalLink.module.css +4 -0
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +27 -0
- package/es/FlipCard/FlipCard.js +183 -0
- package/es/FlipCard/FlipCard.module.css +35 -0
- package/es/FormAction/FormAction.js +83 -0
- package/es/FormAction/FormAction.module.css +57 -0
- package/es/FreezeLayer/FreezeLayer.js +161 -0
- package/es/FreezeLayer/FreezeLayer.module.css +38 -0
- package/es/IconButton/IconButton.js +188 -0
- package/es/IconButton/IconButton.module.css +22 -0
- package/es/Image/Image.js +53 -0
- package/es/Image/Image.module.css +11 -0
- package/es/ImportantNotes/ImportantNotes.js +60 -0
- package/es/ImportantNotes/ImportantNotes.module.css +15 -0
- package/es/Link/Link.js +118 -0
- package/es/Link/Link.module.css +4 -0
- package/es/Link/LinkContext.js +9 -0
- package/es/Loader/Loader.js +27 -0
- package/es/Loader/Loader.module.css +25 -0
- package/es/Message/Message.js +124 -0
- package/es/Message/Message.module.css +70 -0
- package/es/MessageBanner/MessageBanner.js +75 -0
- package/es/MessageBanner/MessageBanner.module.css +38 -0
- package/es/NewStar/NewStar.js +75 -0
- package/es/NewStar/NewStar.module.css +73 -0
- package/es/PlusIcon/PlusIcon.js +60 -0
- package/es/PlusIcon/PlusIcon.module.css +16 -0
- package/es/Provider/Config.js +12 -0
- package/es/Provider.js +205 -0
- package/es/ToastMessage/ToastMessage.js +257 -0
- package/es/ToastMessage/ToastMessage.module.css +257 -0
- package/es/Upload/Upload.js +92 -0
- package/es/Upload/Upload.module.css +106 -0
- package/es/actions/AutoClose.js +54 -0
- package/es/actions/index.js +28 -0
- package/es/alert/AlertHeader/AlertHeader.js +94 -0
- package/es/alert/AlertHeader/AlertHeader.module.css +63 -0
- package/es/alert/AlertLookup/AlertLookup.js +196 -0
- package/es/alert/AlertLookup/AlertLookup.module.css +23 -0
- package/es/avatar/AvatarClose/AvatarClose.js +67 -0
- package/es/avatar/AvatarClose/AvatarClose.module.css +31 -0
- package/es/avatar/AvatarCollision/AvatarCollision.js +80 -0
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +55 -0
- package/es/avatar/AvatarIcon/AvatarIcon.js +84 -0
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +59 -0
- package/es/avatar/AvatarStatus/AvatarStatus.js +95 -0
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +96 -0
- package/es/avatar/AvatarThread/AvatarThread.js +111 -0
- package/es/avatar/AvatarThread/AvatarThread.module.css +113 -0
- package/es/avatar/AvatarUser/AvatarUser.js +148 -0
- package/es/avatar/AvatarUser/AvatarUser.module.css +100 -0
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +121 -0
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +16 -0
- package/es/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +47 -0
- package/es/deprecated/SelectDropdown/SelectDropdown.js +129 -0
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +47 -0
- package/es/deprecated/utils/General.js +19 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +912 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +84 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +94 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +77 -0
- package/es/emptystate/EditionPage/EditionPage.css +37 -0
- package/es/emptystate/EditionPage/EditionPage.js +65 -0
- package/es/errorstate/EmptyStates.module.css +85 -0
- package/es/errorstate/Inconvenience/Inconvenience.js +97 -0
- package/es/errorstate/Inconvenience/Inconvenience.module.css +4 -0
- package/es/errorstate/LinkText/LinkText.js +39 -0
- package/es/errorstate/LinkText/LinkText.module.css +6 -0
- package/es/errorstate/NoRequestFound/NoRequestFound.js +97 -0
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -0
- package/es/errorstate/PermissionPlay/PermissionPlay.js +96 -0
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -0
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +97 -0
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -0
- package/es/errorstate/UnableToProcess/UnableToProcess.js +97 -0
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -0
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +97 -0
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -0
- package/es/errorstate/WillBack/WillBack.js +82 -0
- package/es/errorstate/WillBack/WillBack.module.css +36 -0
- package/es/form/fields/CheckBoxField/CheckBoxField.js +189 -0
- package/es/form/fields/CurrencyField/CurrencyField.js +246 -0
- package/es/form/fields/DateField/DateField.js +256 -0
- package/es/form/fields/Fields.module.css +148 -0
- package/es/form/fields/MultiSelectField/MultiSelectField.js +287 -0
- package/es/form/fields/PhoneField/PhoneField.js +240 -0
- package/es/form/fields/RadioField/RadioField.js +153 -0
- package/es/form/fields/SelectField/SelectField.js +254 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +297 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +95 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +320 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +6 -0
- package/es/form/fields/TextBoxField/TextBoxField.js +234 -0
- package/es/form/fields/TextEditor/TextEditor.js +458 -0
- package/es/form/fields/TextEditor/TextEditor.module.css +589 -0
- package/es/form/fields/TextEditorField/TextEditorField.js +254 -0
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +244 -0
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +26 -0
- package/es/form/fields/TextareaField/TextareaField.js +215 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.js +73 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +22 -0
- package/es/form/layout/Field/Field.js +44 -0
- package/es/form/layout/Field/Field.module.css +22 -0
- package/es/form/layout/Section/ModuleFormSection.module.css +3 -0
- package/es/form/layout/Section/Section.js +44 -0
- package/es/i18n.js +4349 -0
- package/es/index.js +8 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +243 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +116 -0
- package/es/layout/SetupDetailLayout/index.js +4 -0
- package/es/layout/SubtabLayout/SubtabLayout.js +201 -0
- package/es/layout/SubtabLayout/SubtabLayout.module.css +120 -0
- package/es/layout/SubtabLayout/index.js +4 -0
- package/es/list/AvatarFlip/AvatarFlip.js +105 -0
- package/es/list/AvatarFlip/AvatarFlip.module.css +3 -0
- package/es/list/BluePrintStatus/BluePrintStatus.js +32 -0
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +14 -0
- package/es/list/Comment/Comment.js +52 -0
- package/es/list/Comment/Comment.module.css +24 -0
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +129 -0
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -0
- package/es/list/Dot/Dot.js +27 -0
- package/es/list/Dot/Dot.module.css +15 -0
- package/es/list/DotNew/DotNew.js +36 -0
- package/es/list/DotNew/DotNew.module.css +22 -0
- package/es/list/GridStencils/GridStencils.js +41 -0
- package/es/list/GridStencils/GridStencils.module.css +102 -0
- package/es/list/Icons/AddNewIcon.js +32 -0
- package/es/list/Icons/CompleteIcon.js +35 -0
- package/es/list/Icons/DeleteIcon.js +35 -0
- package/es/list/Icons/EditIcon.js +35 -0
- package/es/list/Icons/FloatingIcons.js +36 -0
- package/es/list/Icons/Icons.module.css +16 -0
- package/es/list/Icons/ReadUnreadIcon.js +42 -0
- package/es/list/Icons/SmartIcon.js +34 -0
- package/es/list/ListLayout/ListLayout.js +117 -0
- package/es/list/ListLayout/ListLayout.module.css +50 -0
- package/es/list/ListStencils/ListStencils.js +52 -0
- package/es/list/ListStencils/ListStencils.module.css +62 -0
- package/es/list/SecondaryText/AccountName.js +109 -0
- package/es/list/SecondaryText/ContactName.js +117 -0
- package/es/list/SecondaryText/DepartmentText.js +37 -0
- package/es/list/SecondaryText/Email.js +74 -0
- package/es/list/SecondaryText/HappinessRating.js +38 -0
- package/es/list/SecondaryText/PhoneNumber.js +81 -0
- package/es/list/SecondaryText/PriorityText.js +42 -0
- package/es/list/SecondaryText/SecondaryText.js +51 -0
- package/es/list/SecondaryText/SecondaryText.module.css +126 -0
- package/es/list/SecondaryText/StatusText.js +45 -0
- package/es/list/SecondaryText/TicketId.js +71 -0
- package/es/list/SecondaryText/Website.js +54 -0
- package/es/list/SecondaryText/index.js +11 -0
- package/es/list/SecondryPanel/SecondryPanel.js +142 -0
- package/es/list/SecondryPanel/SecondryPanel.module.css +6 -0
- package/es/list/SentimentStatus/SentimentStatus.js +39 -0
- package/es/list/SentimentStatus/SentimentStatus.module.css +9 -0
- package/es/list/Subject/Subject.js +80 -0
- package/es/list/Subject/Subject.module.css +27 -0
- package/es/list/TagNew/TagNew.js +42 -0
- package/es/list/TagNew/TagNew.module.css +108 -0
- package/es/list/Thread/Thread.js +50 -0
- package/es/list/Thread/Thread.module.css +31 -0
- package/es/list/UserTime/UserTime.js +95 -0
- package/es/list/UserTime/UserTime.module.css +52 -0
- package/es/list/listCommon.module.css +52 -0
- package/es/list/status/StatusDropdown/StatusDropdown.js +495 -0
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +76 -0
- package/es/list/status/StatusListItem/StatusListItem.js +161 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +81 -0
- package/es/lookup/EmptyPage/EmptyPage.js +71 -0
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -0
- package/es/lookup/Lookup/Lookup.js +112 -0
- package/es/lookup/Lookup/Lookup.module.css +26 -0
- package/es/lookup/Section/LookupSection.module.css +8 -0
- package/es/lookup/Section/Section.js +29 -0
- package/es/lookup/header/Close/Close.js +37 -0
- package/es/lookup/header/Close/LookupClose.module.css +15 -0
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +89 -0
- package/es/lookup/header/Search/LookupSearch.module.css +48 -0
- package/es/lookup/header/Search/Search.js +260 -0
- package/es/lookup/header/TicketHeader/TicketHeader.js +116 -0
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +20 -0
- package/es/lookup/header/Title/LookupTitle.module.css +20 -0
- package/es/lookup/header/Title/Title.js +34 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +183 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +45 -0
- package/es/lookup/header/lookupHeaderCommon.module.css +25 -0
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +15 -0
- package/es/setup/header/Button/Button.js +45 -0
- package/es/setup/header/Button/HeaderButton.module.css +3 -0
- package/es/setup/header/Link/HeaderLink.module.css +15 -0
- package/es/setup/header/Link/Link.js +54 -0
- package/es/setup/header/Search/Search.js +95 -0
- package/es/setup/header/Search/Search.module.css +57 -0
- package/es/setup/header/Views/Views.js +59 -0
- package/es/setup/header/Views/Views.module.css +27 -0
- package/es/setup/helptips/Description/Description.js +28 -0
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -0
- package/es/setup/helptips/Link/HelpTipsLink.module.css +6 -0
- package/es/setup/helptips/Link/Link.js +48 -0
- package/es/setup/helptips/ListGroup/ListGroup.js +44 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +17 -0
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -0
- package/es/setup/helptips/Title/Title.js +28 -0
- package/es/setup/table/Table/Table.js +33 -0
- package/es/setup/table/TableBody/TableBody.js +37 -0
- package/es/setup/table/TableData/SetupTableData.module.css +36 -0
- package/es/setup/table/TableData/TableData.js +49 -0
- package/es/setup/table/TableData/Tablehover.module.css +6 -0
- package/es/setup/table/TableHead/SetupTableHead.module.css +8 -0
- package/es/setup/table/TableHead/TableHead.js +47 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +10 -0
- package/es/setup/table/TableRow/TableRow.js +56 -0
- package/es/setup/table/Text/TableText.module.css +37 -0
- package/es/setup/table/Text/Text.js +70 -0
- package/es/svg/PlusIcon.js +41 -0
- package/es/svg/SnippetIcon.js +43 -0
- package/es/svg/TemplateIcon.js +44 -0
- package/es/utils/ChannelIconMapping.js +129 -0
- package/es/utils/Common.js +24 -0
- package/es/utils/General.js +45 -0
- package/es/utils/KeyboardApi.js +294 -0
- package/es/utils/editorUtils.js +193 -0
- package/es/version2/AlertClose/AlertClose.js +47 -0
- package/es/version2/AlertClose/AlertClose.module.css +43 -0
- package/es/version2/GlobalNotification/GlobalNotification.js +149 -0
- package/es/version2/GlobalNotification/GlobalNotification.module.css +90 -0
- package/es/version2/alertIcons/AlarmAlertIcon.js +72 -0
- package/es/version2/alertIcons/AlertIcons.js +65 -0
- package/es/version2/alertIcons/AlertIcons.module.css +67 -0
- package/es/version2/alertIcons/DangerAlertIcon.js +73 -0
- package/es/version2/alertIcons/ErrorAlertIcon.js +77 -0
- package/es/version2/alertIcons/InfoAlertIcon.js +81 -0
- package/es/version2/alertIcons/NotificationAlertIcon.js +77 -0
- package/es/version2/alertIcons/SuccessAlertIcon.js +72 -0
- package/es/version2/alertIcons/WarningAlertIcon.js +72 -0
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +93 -0
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +94 -0
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +93 -0
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +97 -0
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +93 -0
- package/es/version2/errorstate/V2_ErrorStates.module.css +46 -0
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +93 -0
- package/es/version2/lookup/AlertHeader/AlertHeader.js +78 -0
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +64 -0
- package/es/version2/lookup/AlertLookup/AlertLookup.js +254 -0
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +40 -0
- package/es/version2/lookup/alertLookupCommonNew.module.css +26 -0
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +209 -0
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +90 -0
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +75 -0
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +100 -0
- package/lib/ActionButton/ActionButton.js +226 -0
- package/lib/ActionButton/ActionButton.module.css +137 -0
- package/lib/AlphabeticList/AlphabeticList.js +213 -0
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -0
- package/lib/Attachment/Attachment.js +155 -0
- package/lib/Attachment/Attachment.module.css +132 -0
- package/lib/ChannelIcon/ChannelIcon.js +179 -0
- package/lib/ChannelIcon/ChannelIcon.module.css +217 -0
- package/lib/Drawer/Drawer.js +420 -0
- package/lib/Drawer/Drawer.module.css +151 -0
- package/lib/ExternalLink/ExternalLink.js +113 -0
- package/lib/ExternalLink/ExternalLink.module.css +4 -0
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +37 -0
- package/lib/FlipCard/FlipCard.js +240 -0
- package/lib/FlipCard/FlipCard.module.css +44 -0
- package/lib/FormAction/FormAction.js +146 -0
- package/lib/FormAction/FormAction.module.css +82 -0
- package/lib/FreezeLayer/FreezeLayer.js +189 -0
- package/lib/FreezeLayer/FreezeLayer.module.css +42 -0
- package/lib/IconButton/IconButton.js +236 -0
- package/lib/IconButton/IconButton.module.css +22 -0
- package/lib/Image/Image.js +102 -0
- package/lib/Image/Image.module.css +11 -0
- package/lib/ImportantNotes/ImportantNotes.js +107 -0
- package/lib/ImportantNotes/ImportantNotes.module.css +20 -0
- package/lib/Link/Link.js +169 -0
- package/lib/Link/Link.module.css +4 -0
- package/lib/Link/LinkContext.js +23 -0
- package/lib/Loader/Loader.js +76 -0
- package/lib/Loader/Loader.module.css +46 -0
- package/lib/Message/Message.js +173 -0
- package/lib/Message/Message.module.css +103 -0
- package/lib/MessageBanner/MessageBanner.js +127 -0
- package/lib/MessageBanner/MessageBanner.module.css +46 -0
- package/lib/NewStar/NewStar.js +126 -0
- package/lib/NewStar/NewStar.module.css +110 -0
- package/lib/PlusIcon/PlusIcon.js +106 -0
- package/lib/PlusIcon/PlusIcon.module.css +16 -0
- package/lib/Provider.js +309 -0
- package/lib/ToastMessage/ToastMessage.js +298 -0
- package/lib/ToastMessage/ToastMessage.module.css +328 -0
- package/lib/Upload/Upload.js +143 -0
- package/lib/Upload/Upload.module.css +125 -0
- package/lib/actions/AutoClose.js +85 -0
- package/lib/actions/index.js +37 -0
- package/lib/alert/AlertHeader/AlertHeader.js +151 -0
- package/lib/alert/AlertHeader/AlertHeader.module.css +81 -0
- package/lib/alert/AlertLookup/AlertLookup.js +249 -0
- package/lib/alert/AlertLookup/AlertLookup.module.css +27 -0
- package/lib/avatar/AvatarClose/AvatarClose.js +114 -0
- package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -0
- package/lib/avatar/AvatarCollision/AvatarCollision.js +127 -0
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -0
- package/lib/avatar/AvatarIcon/AvatarIcon.js +135 -0
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +141 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -0
- package/lib/avatar/AvatarThread/AvatarThread.js +161 -0
- package/lib/avatar/AvatarThread/AvatarThread.module.css +163 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +198 -0
- package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -0
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +176 -0
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -0
- package/lib/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +53 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +186 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +55 -0
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +982 -0
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +97 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +148 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -0
- package/lib/emptystate/EditionPage/EditionPage.css +43 -0
- package/lib/emptystate/EditionPage/EditionPage.js +115 -0
- package/lib/errorstate/EmptyStates.module.css +88 -0
- package/lib/errorstate/Inconvenience/Inconvenience.js +147 -0
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -0
- package/lib/errorstate/LinkText/LinkText.js +89 -0
- package/lib/errorstate/LinkText/LinkText.module.css +6 -0
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +147 -0
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -0
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +146 -0
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -0
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +147 -0
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -0
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +147 -0
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -0
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +147 -0
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -0
- package/lib/errorstate/WillBack/WillBack.js +131 -0
- package/lib/errorstate/WillBack/WillBack.module.css +34 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +242 -0
- package/lib/form/fields/CurrencyField/CurrencyField.js +293 -0
- package/lib/form/fields/DateField/DateField.js +307 -0
- package/lib/form/fields/Fields.module.css +183 -0
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +339 -0
- package/lib/form/fields/PhoneField/PhoneField.js +286 -0
- package/lib/form/fields/RadioField/RadioField.js +205 -0
- package/lib/form/fields/SelectField/SelectField.js +306 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +353 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +362 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -0
- package/lib/form/fields/TextBoxField/TextBoxField.js +287 -0
- package/lib/form/fields/TextEditor/TextEditor.js +503 -0
- package/lib/form/fields/TextEditor/TextEditor.module.css +655 -0
- package/lib/form/fields/TextEditorField/TextEditorField.js +306 -0
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +296 -0
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -0
- package/lib/form/fields/TextareaField/TextareaField.js +266 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +124 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -0
- package/lib/form/layout/Field/Field.js +97 -0
- package/lib/form/layout/Field/Field.module.css +22 -0
- package/lib/form/layout/Section/ModuleFormSection.module.css +3 -0
- package/lib/form/layout/Section/Section.js +93 -0
- package/lib/i18n.js +3417 -0
- package/lib/index.js +101 -0
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +331 -0
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -0
- package/lib/layout/SetupDetailLayout/index.js +37 -0
- package/lib/layout/SubtabLayout/SubtabLayout.js +301 -0
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +146 -0
- package/lib/layout/SubtabLayout/index.js +37 -0
- package/lib/list/AvatarFlip/AvatarFlip.js +159 -0
- package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -0
- package/lib/list/BluePrintStatus/BluePrintStatus.js +77 -0
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -0
- package/lib/list/Comment/Comment.js +104 -0
- package/lib/list/Comment/Comment.module.css +29 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +184 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -0
- package/lib/list/Dot/Dot.js +76 -0
- package/lib/list/Dot/Dot.module.css +15 -0
- package/lib/list/DotNew/DotNew.js +85 -0
- package/lib/list/DotNew/DotNew.module.css +22 -0
- package/lib/list/GridStencils/GridStencils.js +90 -0
- package/lib/list/GridStencils/GridStencils.module.css +156 -0
- package/lib/list/Icons/AddNewIcon.js +82 -0
- package/lib/list/Icons/CompleteIcon.js +85 -0
- package/lib/list/Icons/DeleteIcon.js +85 -0
- package/lib/list/Icons/EditIcon.js +85 -0
- package/lib/list/Icons/FloatingIcons.js +92 -0
- package/lib/list/Icons/Icons.module.css +16 -0
- package/lib/list/Icons/ReadUnreadIcon.js +92 -0
- package/lib/list/Icons/SmartIcon.js +88 -0
- package/lib/list/ListLayout/ListLayout.js +179 -0
- package/lib/list/ListLayout/ListLayout.module.css +58 -0
- package/lib/list/ListStencils/ListStencils.js +100 -0
- package/lib/list/ListStencils/ListStencils.module.css +67 -0
- package/lib/list/SecondaryText/AccountName.js +159 -0
- package/lib/list/SecondaryText/ContactName.js +175 -0
- package/lib/list/SecondaryText/DepartmentText.js +86 -0
- package/lib/list/SecondaryText/Email.js +121 -0
- package/lib/list/SecondaryText/HappinessRating.js +88 -0
- package/lib/list/SecondaryText/PhoneNumber.js +128 -0
- package/lib/list/SecondaryText/PriorityText.js +91 -0
- package/lib/list/SecondaryText/SecondaryText.js +98 -0
- package/lib/list/SecondaryText/SecondaryText.module.css +136 -0
- package/lib/list/SecondaryText/StatusText.js +94 -0
- package/lib/list/SecondaryText/TicketId.js +121 -0
- package/lib/list/SecondaryText/Website.js +101 -0
- package/lib/list/SecondaryText/index.js +95 -0
- package/lib/list/SecondryPanel/SecondryPanel.js +241 -0
- package/lib/list/SecondryPanel/SecondryPanel.module.css +6 -0
- package/lib/list/SentimentStatus/SentimentStatus.js +85 -0
- package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -0
- package/lib/list/Subject/Subject.js +130 -0
- package/lib/list/Subject/Subject.module.css +27 -0
- package/lib/list/TagNew/TagNew.js +91 -0
- package/lib/list/TagNew/TagNew.module.css +115 -0
- package/lib/list/Thread/Thread.js +101 -0
- package/lib/list/Thread/Thread.module.css +43 -0
- package/lib/list/UserTime/UserTime.js +147 -0
- package/lib/list/UserTime/UserTime.module.css +58 -0
- package/lib/list/listCommon.module.css +60 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +538 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +89 -0
- package/lib/list/status/StatusListItem/StatusListItem.js +206 -0
- package/lib/list/status/StatusListItem/StatusListItem.module.css +104 -0
- package/lib/lookup/EmptyPage/EmptyPage.js +125 -0
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -0
- package/lib/lookup/Lookup/Lookup.js +159 -0
- package/lib/lookup/Lookup/Lookup.module.css +26 -0
- package/lib/lookup/Section/LookupSection.module.css +8 -0
- package/lib/lookup/Section/Section.js +79 -0
- package/lib/lookup/header/Close/Close.js +87 -0
- package/lib/lookup/header/Close/LookupClose.module.css +15 -0
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +144 -0
- package/lib/lookup/header/Search/LookupSearch.module.css +57 -0
- package/lib/lookup/header/Search/Search.js +315 -0
- package/lib/lookup/header/TicketHeader/TicketHeader.js +169 -0
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +23 -0
- package/lib/lookup/header/Title/LookupTitle.module.css +20 -0
- package/lib/lookup/header/Title/Title.js +84 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +229 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -0
- package/lib/lookup/header/lookupHeaderCommon.module.css +35 -0
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -0
- package/lib/setup/header/Button/Button.js +91 -0
- package/lib/setup/header/Button/HeaderButton.module.css +5 -0
- package/lib/setup/header/Link/HeaderLink.module.css +21 -0
- package/lib/setup/header/Link/Link.js +102 -0
- package/lib/setup/header/Search/Search.js +139 -0
- package/lib/setup/header/Search/Search.module.css +68 -0
- package/lib/setup/header/Views/Views.js +105 -0
- package/lib/setup/header/Views/Views.module.css +37 -0
- package/lib/setup/helptips/Description/Description.js +72 -0
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -0
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -0
- package/lib/setup/helptips/Link/Link.js +95 -0
- package/lib/setup/helptips/ListGroup/ListGroup.js +93 -0
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -0
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -0
- package/lib/setup/helptips/Title/Title.js +72 -0
- package/lib/setup/table/Table/Table.js +82 -0
- package/lib/setup/table/TableBody/TableBody.js +87 -0
- package/lib/setup/table/TableData/SetupTableData.module.css +44 -0
- package/lib/setup/table/TableData/TableData.js +95 -0
- package/lib/setup/table/TableData/Tablehover.module.css +6 -0
- package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -0
- package/lib/setup/table/TableHead/TableHead.js +93 -0
- package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -0
- package/lib/setup/table/TableRow/TableRow.js +102 -0
- package/lib/setup/table/Text/TableText.module.css +37 -0
- package/lib/setup/table/Text/Text.js +121 -0
- package/lib/svg/PlusIcon.js +90 -0
- package/lib/svg/SnippetIcon.js +92 -0
- package/lib/svg/TemplateIcon.js +93 -0
- package/lib/utils/ChannelIconMapping.js +138 -0
- package/lib/utils/Common.js +33 -0
- package/lib/utils/General.js +82 -0
- package/lib/utils/KeyboardApi.js +299 -0
- package/lib/utils/editorUtils.js +223 -0
- package/lib/version2/AlertClose/AlertClose.js +101 -0
- package/lib/version2/AlertClose/AlertClose.module.css +43 -0
- package/lib/version2/GlobalNotification/GlobalNotification.js +202 -0
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +125 -0
- package/lib/version2/alertIcons/AlarmAlertIcon.js +125 -0
- package/lib/version2/alertIcons/AlertIcons.js +127 -0
- package/lib/version2/alertIcons/AlertIcons.module.css +67 -0
- package/lib/version2/alertIcons/DangerAlertIcon.js +126 -0
- package/lib/version2/alertIcons/ErrorAlertIcon.js +130 -0
- package/lib/version2/alertIcons/InfoAlertIcon.js +134 -0
- package/lib/version2/alertIcons/NotificationAlertIcon.js +130 -0
- package/lib/version2/alertIcons/SuccessAlertIcon.js +125 -0
- package/lib/version2/alertIcons/WarningAlertIcon.js +125 -0
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +146 -0
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +147 -0
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +146 -0
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +150 -0
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +146 -0
- package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -0
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +146 -0
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +134 -0
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +87 -0
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +316 -0
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +44 -0
- package/lib/version2/lookup/alertLookupCommonNew.module.css +33 -0
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +236 -0
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -0
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +128 -0
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +137 -0
- package/package.json +4 -4
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
15
|
+
|
|
16
|
+
var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup"));
|
|
17
|
+
|
|
18
|
+
var _FreezeLayerModule = _interopRequireDefault(require("./FreezeLayer.module.css"));
|
|
19
|
+
|
|
20
|
+
var _KeyboardApi = require("../utils/KeyboardApi");
|
|
21
|
+
|
|
22
|
+
var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
|
+
|
|
32
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
33
|
+
|
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
|
+
|
|
36
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
+
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
|
+
|
|
40
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
|
+
|
|
42
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
|
+
|
|
44
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
+
|
|
46
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
+
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
+
|
|
50
|
+
var FreezeLayer = /*#__PURE__*/function (_Component) {
|
|
51
|
+
_inherits(FreezeLayer, _Component);
|
|
52
|
+
|
|
53
|
+
var _super = _createSuper(FreezeLayer);
|
|
54
|
+
|
|
55
|
+
function FreezeLayer(props) {
|
|
56
|
+
var _this;
|
|
57
|
+
|
|
58
|
+
_classCallCheck(this, FreezeLayer);
|
|
59
|
+
|
|
60
|
+
_this = _super.call(this, props);
|
|
61
|
+
_this.state = {
|
|
62
|
+
isActive: props.isActive,
|
|
63
|
+
isChildActive: false
|
|
64
|
+
};
|
|
65
|
+
_this.getNextIndex = (0, _ZindexProvider.getZIndex)(_assertThisInitialized(_this));
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
_createClass(FreezeLayer, [{
|
|
70
|
+
key: "componentDidMount",
|
|
71
|
+
value: function componentDidMount() {
|
|
72
|
+
var isActive = this.props.isActive;
|
|
73
|
+
|
|
74
|
+
if (isActive) {
|
|
75
|
+
this.setState({
|
|
76
|
+
isChildActive: true
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
key: "componentDidUpdate",
|
|
82
|
+
value: function componentDidUpdate(prevProps) {
|
|
83
|
+
var _this2 = this;
|
|
84
|
+
|
|
85
|
+
var isActive = this.props.isActive;
|
|
86
|
+
|
|
87
|
+
if (isActive != prevProps.isActive) {
|
|
88
|
+
if (isActive) {
|
|
89
|
+
_KeyboardApi.Shortcut && _KeyboardApi.Shortcut.setState(false);
|
|
90
|
+
this.setState({
|
|
91
|
+
isActive: true
|
|
92
|
+
}, function () {
|
|
93
|
+
_this2.setState({
|
|
94
|
+
isChildActive: true
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
} else {
|
|
98
|
+
_KeyboardApi.Shortcut && _KeyboardApi.Shortcut.setState(true);
|
|
99
|
+
this.setState({
|
|
100
|
+
isChildActive: false
|
|
101
|
+
}, function () {
|
|
102
|
+
_this2.setState({
|
|
103
|
+
isActive: false
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
key: "render",
|
|
111
|
+
value: function render() {
|
|
112
|
+
var _this$props = this.props,
|
|
113
|
+
children = _this$props.children,
|
|
114
|
+
align = _this$props.align,
|
|
115
|
+
childAnimationName = _this$props.childAnimationName,
|
|
116
|
+
palette = _this$props.palette,
|
|
117
|
+
onClick = _this$props.onClick,
|
|
118
|
+
animationName = _this$props.animationName,
|
|
119
|
+
zIndex = _this$props.zIndex,
|
|
120
|
+
runOnMount = _this$props.runOnMount,
|
|
121
|
+
forwardRef = _this$props.forwardRef,
|
|
122
|
+
isSvgMask = _this$props.isSvgMask,
|
|
123
|
+
customClass = _this$props.customClass,
|
|
124
|
+
needAutoZindex = _this$props.needAutoZindex;
|
|
125
|
+
var _this$state = this.state,
|
|
126
|
+
isActive = _this$state.isActive,
|
|
127
|
+
isChildActive = _this$state.isChildActive;
|
|
128
|
+
return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
129
|
+
name: animationName && animationName,
|
|
130
|
+
isActive: isActive,
|
|
131
|
+
runOnMount: runOnMount
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
style: isActive && needAutoZindex ? {
|
|
134
|
+
zIndex: "".concat(this.getNextIndex())
|
|
135
|
+
} : {},
|
|
136
|
+
className: "\n ".concat(_FreezeLayerModule["default"].container, " ").concat(customClass, " ").concat(_FreezeLayerModule["default"]["index".concat(zIndex)], " ").concat(!isSvgMask ? _FreezeLayerModule["default"][palette] : '', "\n "),
|
|
137
|
+
onClick: onClick ? onClick : null,
|
|
138
|
+
ref: forwardRef
|
|
139
|
+
}, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
|
|
140
|
+
name: childAnimationName,
|
|
141
|
+
isActive: isChildActive,
|
|
142
|
+
enterDelay: palette === 'plain' ? 0 : 300,
|
|
143
|
+
component: _Layout.Container,
|
|
144
|
+
alignBox: "row",
|
|
145
|
+
align: align,
|
|
146
|
+
dataId: "reactFreezeLayer"
|
|
147
|
+
}, children) : isSvgMask ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children) : /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
148
|
+
alignBox: "row",
|
|
149
|
+
align: align,
|
|
150
|
+
dataId: "reactFreezeLayer"
|
|
151
|
+
}, children))));
|
|
152
|
+
}
|
|
153
|
+
}]);
|
|
154
|
+
|
|
155
|
+
return FreezeLayer;
|
|
156
|
+
}(_react.Component);
|
|
157
|
+
|
|
158
|
+
exports["default"] = FreezeLayer;
|
|
159
|
+
var animationValues = ['fade', 'shrink', 'expand', 'slideRight', 'slideDown', 'flyDown'];
|
|
160
|
+
FreezeLayer.propTypes = {
|
|
161
|
+
align: _propTypes["default"].oneOf(['horizontal', 'vertical', 'both']),
|
|
162
|
+
animationName: _propTypes["default"].oneOf(animationValues),
|
|
163
|
+
childAnimationName: _propTypes["default"].oneOf(animationValues),
|
|
164
|
+
children: _propTypes["default"].node,
|
|
165
|
+
customClass: _propTypes["default"].string,
|
|
166
|
+
forwardRef: _propTypes["default"].object,
|
|
167
|
+
isActive: _propTypes["default"].bool,
|
|
168
|
+
isSvgMask: _propTypes["default"].bool,
|
|
169
|
+
needAutoZindex: _propTypes["default"].bool,
|
|
170
|
+
onClick: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].bool]),
|
|
171
|
+
palette: _propTypes["default"].oneOf(['dark', 'default', 'darkLight', 'plain', 'snow']),
|
|
172
|
+
runOnMount: _propTypes["default"].bool,
|
|
173
|
+
zIndex: _propTypes["default"].oneOf(['3', '5', '7', '10'])
|
|
174
|
+
};
|
|
175
|
+
FreezeLayer.defaultProps = {
|
|
176
|
+
isActive: false,
|
|
177
|
+
palette: 'default',
|
|
178
|
+
zIndex: '5',
|
|
179
|
+
isSvgMask: false,
|
|
180
|
+
customClass: '',
|
|
181
|
+
needAutoZindex: true
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
if (false) {
|
|
185
|
+
FreezeLayer.docs = {
|
|
186
|
+
componentGroup: 'Atom',
|
|
187
|
+
folderName: 'General'
|
|
188
|
+
};
|
|
189
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
top: 0;
|
|
3
|
+
bottom: 0;
|
|
4
|
+
position: absolute;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}[dir=ltr] .container {
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
}[dir=rtl] .container {
|
|
10
|
+
right: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
}
|
|
13
|
+
.default {
|
|
14
|
+
background-color: var(--zdt_freezelayer_default_bg);
|
|
15
|
+
}
|
|
16
|
+
.dark {
|
|
17
|
+
background-color: var(--zdt_freezelayer_dark_bg);
|
|
18
|
+
}
|
|
19
|
+
.darkLight {
|
|
20
|
+
background-color: var(--zdt_freezelayer_darklight_bg);
|
|
21
|
+
}
|
|
22
|
+
.plain {
|
|
23
|
+
background-color: var(--zdt_freezelayer_plain_bg);
|
|
24
|
+
}
|
|
25
|
+
.snow {
|
|
26
|
+
background-color: var(--zdt_freezelayer_snow_bg);
|
|
27
|
+
}
|
|
28
|
+
.index3 {
|
|
29
|
+
z-index: 3;
|
|
30
|
+
}
|
|
31
|
+
.index5 {
|
|
32
|
+
z-index: 5;
|
|
33
|
+
}
|
|
34
|
+
.index7 {
|
|
35
|
+
z-index: 7;
|
|
36
|
+
}
|
|
37
|
+
.index10 {
|
|
38
|
+
z-index: 10;
|
|
39
|
+
}
|
|
40
|
+
.delay {
|
|
41
|
+
transition-delay: var(--zd_transition2);
|
|
42
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
15
|
+
|
|
16
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
17
|
+
|
|
18
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
19
|
+
|
|
20
|
+
var _RippleEffect = _interopRequireDefault(require("@zohodesk/components/lib/RippleEffect/RippleEffect"));
|
|
21
|
+
|
|
22
|
+
var _IconButtonModule = _interopRequireDefault(require("./IconButton.module.css"));
|
|
23
|
+
|
|
24
|
+
var _IconButton$propTypes;
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
+
|
|
30
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
|
+
|
|
32
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
33
|
+
|
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
|
+
|
|
36
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
+
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
|
+
|
|
40
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
|
+
|
|
42
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
|
+
|
|
44
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
+
|
|
46
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
+
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
+
|
|
50
|
+
var IconButton = /*#__PURE__*/function (_React$Component) {
|
|
51
|
+
_inherits(IconButton, _React$Component);
|
|
52
|
+
|
|
53
|
+
var _super = _createSuper(IconButton);
|
|
54
|
+
|
|
55
|
+
function IconButton(props) {
|
|
56
|
+
var _this;
|
|
57
|
+
|
|
58
|
+
_classCallCheck(this, IconButton);
|
|
59
|
+
|
|
60
|
+
_this = _super.call(this, props);
|
|
61
|
+
_this.state = {
|
|
62
|
+
isPressed: false
|
|
63
|
+
};
|
|
64
|
+
_this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_this));
|
|
65
|
+
_this.triggerClick = _this.triggerClick.bind(_assertThisInitialized(_this));
|
|
66
|
+
_this.triggerMouseDown = _this.triggerMouseDown.bind(_assertThisInitialized(_this));
|
|
67
|
+
_this.triggerMouseOver = _this.triggerMouseOver.bind(_assertThisInitialized(_this));
|
|
68
|
+
_this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));
|
|
69
|
+
return _this;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
_createClass(IconButton, [{
|
|
73
|
+
key: "handleToggle",
|
|
74
|
+
value: function handleToggle(e) {
|
|
75
|
+
if (e.key === ' ' || e.key === 'Enter' || e.key === 'Spacebar') {
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
this.triggerClick(e);
|
|
78
|
+
this.triggerMouseDown(e);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
key: "triggerClick",
|
|
83
|
+
value: function triggerClick(e) {
|
|
84
|
+
var _this$props = this.props,
|
|
85
|
+
onClick = _this$props.onClick,
|
|
86
|
+
isDisabled = _this$props.isDisabled;
|
|
87
|
+
!isDisabled ? (onClick && onClick(e), this.setState({
|
|
88
|
+
isPressed: true
|
|
89
|
+
})) : null;
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
key: "triggerMouseOver",
|
|
93
|
+
value: function triggerMouseOver(e) {
|
|
94
|
+
var _this$props2 = this.props,
|
|
95
|
+
onMouseOver = _this$props2.onMouseOver,
|
|
96
|
+
isDisabled = _this$props2.isDisabled;
|
|
97
|
+
!isDisabled ? (onMouseOver && onMouseOver(e), this.setState({
|
|
98
|
+
isPressed: true
|
|
99
|
+
})) : null;
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
key: "triggerMouseDown",
|
|
103
|
+
value: function triggerMouseDown(e) {
|
|
104
|
+
var _this$props3 = this.props,
|
|
105
|
+
onMouseDown = _this$props3.onMouseDown,
|
|
106
|
+
isDisabled = _this$props3.isDisabled;
|
|
107
|
+
!isDisabled ? (onMouseDown && onMouseDown(e), this.setState({
|
|
108
|
+
isPressed: true
|
|
109
|
+
})) : null;
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
key: "onBlur",
|
|
113
|
+
value: function onBlur(e) {
|
|
114
|
+
var isDisabled = this.props.isDisabled;
|
|
115
|
+
!isDisabled ? this.setState({
|
|
116
|
+
isPressed: false
|
|
117
|
+
}) : null;
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
key: "render",
|
|
121
|
+
value: function render() {
|
|
122
|
+
var _this$props4 = this.props,
|
|
123
|
+
palette = _this$props4.palette,
|
|
124
|
+
iconSize = _this$props4.iconSize,
|
|
125
|
+
iconName = _this$props4.iconName,
|
|
126
|
+
className = _this$props4.className,
|
|
127
|
+
iconClass = _this$props4.iconClass,
|
|
128
|
+
dataId = _this$props4.dataId,
|
|
129
|
+
eleRef = _this$props4.eleRef,
|
|
130
|
+
isActive = _this$props4.isActive,
|
|
131
|
+
tourId = _this$props4.tourId,
|
|
132
|
+
isDisabled = _this$props4.isDisabled,
|
|
133
|
+
children = _this$props4.children,
|
|
134
|
+
hoverType = _this$props4.hoverType,
|
|
135
|
+
title = _this$props4.title,
|
|
136
|
+
isBold = _this$props4.isBold,
|
|
137
|
+
isNeedEffect = _this$props4.isNeedEffect,
|
|
138
|
+
needButtonTag = _this$props4.needButtonTag,
|
|
139
|
+
a11y = _this$props4.a11y,
|
|
140
|
+
dataIsHtml = _this$props4.dataIsHtml;
|
|
141
|
+
var isPressed = this.state.isPressed;
|
|
142
|
+
var ariaHaspopup = a11y.ariaHaspopup,
|
|
143
|
+
ariaExpanded = a11y.ariaExpanded,
|
|
144
|
+
ariaLabel = a11y.ariaLabel,
|
|
145
|
+
ariaControls = a11y.ariaControls,
|
|
146
|
+
ariaLabelledby = a11y.ariaLabelledby;
|
|
147
|
+
return /*#__PURE__*/_react["default"].createElement(_RippleEffect["default"], {
|
|
148
|
+
palette: palette,
|
|
149
|
+
isActive: isActive,
|
|
150
|
+
hoverType: hoverType,
|
|
151
|
+
isDisabled: isDisabled,
|
|
152
|
+
isNeedEffect: isNeedEffect
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
154
|
+
"aria-label": ariaLabel,
|
|
155
|
+
"aria-haspopup": ariaHaspopup,
|
|
156
|
+
"aria-expanded": ariaExpanded,
|
|
157
|
+
"aria-controls": ariaControls,
|
|
158
|
+
"aria-labelledby": ariaLabelledby,
|
|
159
|
+
tagName: needButtonTag ? 'button' : 'div',
|
|
160
|
+
isInline: true,
|
|
161
|
+
tourId: tourId,
|
|
162
|
+
align: "both",
|
|
163
|
+
isCover: false,
|
|
164
|
+
className: "".concat(needButtonTag && _semanticButtonModule["default"].buttonReset, " ").concat(_IconButtonModule["default"].wrapper, " ").concat(className ? className : '', " ").concat(isActive ? _IconButtonModule["default"]["".concat(palette, "_active")] : _IconButtonModule["default"][palette]),
|
|
165
|
+
dataId: dataId,
|
|
166
|
+
onClick: this.triggerClick,
|
|
167
|
+
"data-title": title,
|
|
168
|
+
"data-ishtml": dataIsHtml,
|
|
169
|
+
eleRef: eleRef,
|
|
170
|
+
onMouseDown: this.triggerMouseDown,
|
|
171
|
+
onMouseEnter: this.triggerMouseOver,
|
|
172
|
+
"aria-pressed": isPressed,
|
|
173
|
+
onKeyDown: this.handleToggle,
|
|
174
|
+
onFocus: this.triggerMouseOver,
|
|
175
|
+
onBlur: this.onBlur,
|
|
176
|
+
disabled: isDisabled
|
|
177
|
+
}, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
178
|
+
isBold: isBold,
|
|
179
|
+
size: iconSize,
|
|
180
|
+
name: iconName,
|
|
181
|
+
iconClass: iconClass
|
|
182
|
+
}) : null, children ? children : null));
|
|
183
|
+
}
|
|
184
|
+
}]);
|
|
185
|
+
|
|
186
|
+
return IconButton;
|
|
187
|
+
}(_react["default"].Component);
|
|
188
|
+
|
|
189
|
+
exports["default"] = IconButton;
|
|
190
|
+
IconButton.propTypes = (_IconButton$propTypes = {
|
|
191
|
+
children: _propTypes["default"].node,
|
|
192
|
+
className: _propTypes["default"].string,
|
|
193
|
+
dataId: _propTypes["default"].string,
|
|
194
|
+
eleRef: _propTypes["default"].func,
|
|
195
|
+
hoverType: _propTypes["default"].oneOf(['default', 'border', 'bg']),
|
|
196
|
+
iconClass: _propTypes["default"].string,
|
|
197
|
+
iconName: _propTypes["default"].string,
|
|
198
|
+
iconSize: _propTypes["default"].string,
|
|
199
|
+
isActive: _propTypes["default"].bool,
|
|
200
|
+
isBold: _propTypes["default"].bool,
|
|
201
|
+
isDisabled: _propTypes["default"].bool,
|
|
202
|
+
isNeedEffect: _propTypes["default"].bool,
|
|
203
|
+
onClick: _propTypes["default"].func,
|
|
204
|
+
onMouseDown: _propTypes["default"].func,
|
|
205
|
+
onMouseOver: _propTypes["default"].func,
|
|
206
|
+
palette: _propTypes["default"].oneOf(['primary', 'primaryFilled', 'default']),
|
|
207
|
+
title: _propTypes["default"].string,
|
|
208
|
+
tourId: _propTypes["default"].string
|
|
209
|
+
}, _defineProperty(_IconButton$propTypes, "isNeedEffect", _propTypes["default"].bool), _defineProperty(_IconButton$propTypes, "needButtonTag", _propTypes["default"].bool), _defineProperty(_IconButton$propTypes, "a11y", _propTypes["default"].shape({
|
|
210
|
+
ariaHaspopup: _propTypes["default"].bool,
|
|
211
|
+
ariaExpanded: _propTypes["default"].bool,
|
|
212
|
+
ariaLabel: _propTypes["default"].string,
|
|
213
|
+
ariaControls: _propTypes["default"].string,
|
|
214
|
+
ariaLabelledby: _propTypes["default"].string
|
|
215
|
+
})), _defineProperty(_IconButton$propTypes, "dataIsHtml", _propTypes["default"].bool), _IconButton$propTypes);
|
|
216
|
+
IconButton.defaultProps = {
|
|
217
|
+
palette: 'default',
|
|
218
|
+
iconSize: '13',
|
|
219
|
+
className: '',
|
|
220
|
+
iconClass: '',
|
|
221
|
+
dataId: 'iconContainer',
|
|
222
|
+
isActive: false,
|
|
223
|
+
isDisabled: false,
|
|
224
|
+
hoverType: 'default',
|
|
225
|
+
isBold: false,
|
|
226
|
+
isNeedEffect: true,
|
|
227
|
+
needButtonTag: true,
|
|
228
|
+
a11y: {},
|
|
229
|
+
dataIsHtml: false
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
if (false) {
|
|
233
|
+
IconButton.docs = {
|
|
234
|
+
componentGroup: 'Atom'
|
|
235
|
+
};
|
|
236
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.varClass {
|
|
2
|
+
--iconColor: var(--zdt_iconButton_icon_black);
|
|
3
|
+
}
|
|
4
|
+
.wrapper {
|
|
5
|
+
height: var(--zd_size28);
|
|
6
|
+
width: var(--zd_size28);
|
|
7
|
+
composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
|
|
8
|
+
composes: varClass;
|
|
9
|
+
color: var(--iconColor);
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
.primary {
|
|
13
|
+
--iconColor: var(--zdt_iconButton_icon_primary);
|
|
14
|
+
}
|
|
15
|
+
.primary:hover {
|
|
16
|
+
--iconColor: var(--zdt_iconButton_icon_primaryHover);
|
|
17
|
+
}
|
|
18
|
+
.primary_active,
|
|
19
|
+
.primaryFilled,
|
|
20
|
+
.primaryFilled_active {
|
|
21
|
+
--iconColor: var(--zdt_iconButton_icon_primaryActive);
|
|
22
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _ImageModule = _interopRequireDefault(require("./Image.module.css"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
|
|
20
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
|
+
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
|
+
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
|
+
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
|
+
|
|
28
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
|
+
|
|
30
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
31
|
+
|
|
32
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
|
+
|
|
34
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
|
+
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
|
+
|
|
38
|
+
var Image = /*#__PURE__*/function (_React$Component) {
|
|
39
|
+
_inherits(Image, _React$Component);
|
|
40
|
+
|
|
41
|
+
var _super = _createSuper(Image);
|
|
42
|
+
|
|
43
|
+
function Image() {
|
|
44
|
+
_classCallCheck(this, Image);
|
|
45
|
+
|
|
46
|
+
return _super.apply(this, arguments);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
_createClass(Image, [{
|
|
50
|
+
key: "render",
|
|
51
|
+
value: function render() {
|
|
52
|
+
var _this$props = this.props,
|
|
53
|
+
alt = _this$props.alt,
|
|
54
|
+
src = _this$props.src,
|
|
55
|
+
className = _this$props.className,
|
|
56
|
+
isCover = _this$props.isCover,
|
|
57
|
+
title = _this$props.title,
|
|
58
|
+
onClick = _this$props.onClick,
|
|
59
|
+
dataId = _this$props.dataId,
|
|
60
|
+
htmlId = _this$props.htmlId,
|
|
61
|
+
eleRef = _this$props.eleRef,
|
|
62
|
+
original = _this$props.original;
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
64
|
+
src: src,
|
|
65
|
+
alt: alt,
|
|
66
|
+
"data-title": title,
|
|
67
|
+
"data-id": dataId,
|
|
68
|
+
className: " ".concat(className, " ").concat(isCover ? _ImageModule["default"].imgFullSize : _ImageModule["default"].imgMaxFullSize, " "),
|
|
69
|
+
onClick: onClick,
|
|
70
|
+
id: htmlId,
|
|
71
|
+
ref: eleRef,
|
|
72
|
+
"data-original": original
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}]);
|
|
76
|
+
|
|
77
|
+
return Image;
|
|
78
|
+
}(_react["default"].Component);
|
|
79
|
+
|
|
80
|
+
exports["default"] = Image;
|
|
81
|
+
Image.propTypes = {
|
|
82
|
+
alt: _propTypes["default"].string.isRequired,
|
|
83
|
+
className: _propTypes["default"].string,
|
|
84
|
+
dataId: _propTypes["default"].string,
|
|
85
|
+
eleRef: _propTypes["default"].func,
|
|
86
|
+
htmlId: _propTypes["default"].string,
|
|
87
|
+
isCover: _propTypes["default"].bool,
|
|
88
|
+
onClick: _propTypes["default"].func,
|
|
89
|
+
original: _propTypes["default"].string,
|
|
90
|
+
src: _propTypes["default"].string.isRequired,
|
|
91
|
+
title: _propTypes["default"].string
|
|
92
|
+
};
|
|
93
|
+
Image.defaultProps = {
|
|
94
|
+
isCover: false,
|
|
95
|
+
className: ''
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
if (false) {
|
|
99
|
+
Image.docs = {
|
|
100
|
+
componentGroup: 'Atom'
|
|
101
|
+
};
|
|
102
|
+
}
|