@zohodesk/dot 1.2.3 → 1.3.0-temp-158
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/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +24 -9
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/Drawer/Drawer.js +13 -12
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/lookup/Lookup/Lookup.js +10 -10
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/es/v1/Attachment/Attachment.js +79 -76
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +16 -16
- package/es/v1/FlipCard/FlipCard.js +4 -4
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +41 -48
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +60 -67
- package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
- package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
- package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
- package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
- package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +129 -155
- package/es/v1/form/fields/DateField/DateField.js +132 -163
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
- package/es/v1/form/fields/PhoneField/PhoneField.js +129 -157
- package/es/v1/form/fields/RadioField/RadioField.js +91 -99
- package/es/v1/form/fields/SelectField/SelectField.js +141 -156
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +155 -198
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +110 -126
- package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
- package/es/v1/list/Comment/Comment.js +25 -32
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
- package/es/v1/list/Dot/Dot.js +9 -16
- package/es/v1/list/DotNew/DotNew.js +11 -18
- package/es/v1/list/GridStencils/GridStencils.js +21 -24
- package/es/v1/list/Icons/AddNewIcon.js +19 -22
- package/es/v1/list/Icons/CompleteIcon.js +21 -24
- package/es/v1/list/Icons/DeleteIcon.js +22 -25
- package/es/v1/list/Icons/EditIcon.js +22 -25
- package/es/v1/list/Icons/FloatingIcons.js +12 -19
- package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
- package/es/v1/list/Icons/SmartIcon.js +20 -23
- package/es/v1/list/ListLayout/ListLayout.js +54 -68
- package/es/v1/list/ListStencils/ListStencils.js +28 -31
- package/es/v1/list/SecondaryText/AccountName.js +1 -1
- package/es/v1/list/SecondaryText/ContactName.js +1 -1
- package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
- package/es/v1/list/Thread/Thread.js +1 -1
- package/es/v1/list/UserTime/UserTime.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
- package/es/v1/list/status/StatusListItem/StatusListItem.js +77 -102
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Lookup/Lookup.js +14 -13
- package/es/v1/lookup/Section/Section.js +15 -21
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/v1/lookup/header/Search/Search.js +3 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/es/v1/setup/header/Button/Button.js +1 -1
- package/es/v1/setup/header/Link/Link.js +1 -1
- package/es/v1/setup/header/Search/Search.js +1 -1
- package/es/v1/setup/table/Table/Table.js +1 -1
- package/es/v1/setup/table/TableBody/TableBody.js +1 -1
- package/es/v1/setup/table/TableData/TableData.js +1 -1
- package/es/v1/setup/table/TableHead/TableHead.js +1 -1
- package/es/v1/setup/table/TableRow/TableRow.js +1 -1
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/Drawer/Drawer.js +18 -17
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +15 -15
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +8 -6
- package/lib/v1/Attachment/Attachment.js +78 -113
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +21 -21
- package/lib/v1/FlipCard/FlipCard.js +4 -4
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +13 -56
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +45 -86
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +59 -104
- package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
- package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
- package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
- package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +108 -160
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +153 -194
- package/lib/v1/form/fields/DateField/DateField.js +141 -207
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +169 -229
- package/lib/v1/form/fields/PhoneField/PhoneField.js +151 -194
- package/lib/v1/form/fields/RadioField/RadioField.js +93 -139
- package/lib/v1/form/fields/SelectField/SelectField.js +152 -203
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +161 -254
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +109 -208
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
- package/lib/v1/list/Comment/Comment.js +24 -69
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
- package/lib/v1/list/Dot/Dot.js +9 -54
- package/lib/v1/list/DotNew/DotNew.js +11 -56
- package/lib/v1/list/GridStencils/GridStencils.js +21 -62
- package/lib/v1/list/Icons/AddNewIcon.js +19 -60
- package/lib/v1/list/Icons/CompleteIcon.js +21 -62
- package/lib/v1/list/Icons/DeleteIcon.js +22 -63
- package/lib/v1/list/Icons/EditIcon.js +22 -63
- package/lib/v1/list/Icons/FloatingIcons.js +17 -62
- package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
- package/lib/v1/list/Icons/SmartIcon.js +20 -65
- package/lib/v1/list/ListLayout/ListLayout.js +53 -116
- package/lib/v1/list/ListStencils/ListStencils.js +33 -72
- package/lib/v1/list/SecondaryText/AccountName.js +1 -1
- package/lib/v1/list/SecondaryText/ContactName.js +1 -1
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
- package/lib/v1/list/Thread/Thread.js +1 -1
- package/lib/v1/list/UserTime/UserTime.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +83 -139
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Lookup/Lookup.js +20 -18
- package/lib/v1/lookup/Section/Section.js +15 -59
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/v1/lookup/header/Search/Search.js +3 -3
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/lib/v1/setup/header/Button/Button.js +1 -1
- package/lib/v1/setup/header/Link/Link.js +1 -1
- package/lib/v1/setup/header/Search/Search.js +1 -1
- package/lib/v1/setup/table/Table/Table.js +1 -1
- package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
- package/lib/v1/setup/table/TableData/TableData.js +1 -1
- package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
- package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +13 -13
- package/result.json +1 -1
- package/unittest/index.html +1 -1
- package/es/v1/errorstate/LinkText/LinkText.js +0 -29
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
- package/es/v1/errorstate/WillBack/WillBack.js +0 -75
- package/es/v1/errorstate/index.js +0 -8
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/version2/index.js +0 -12
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
- package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
- package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
- package/lib/v1/errorstate/index.js +0 -71
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/version2/index.js +0 -58
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
- /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React, { useRef } from 'react'; //AlertDependencies
|
|
2
|
-
|
|
3
|
-
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
4
|
-
import AlertClose from '../../AlertClose/AlertClose';
|
|
5
|
-
import AlertIcons from '../../alertIcons/AlertIcons'; //CSS
|
|
6
|
-
|
|
7
|
-
import style from '../../../../version2/lookup/AlertHeader/css/AlertHeaderNew.module.css';
|
|
8
|
-
import cssJSLogic from '../../../../version2/lookup/AlertHeader/css/cssJSLogic';
|
|
9
|
-
import { mergeStyle } from '@zohodesk/utils'; //customHooks
|
|
10
|
-
|
|
11
|
-
import useDragger from '../../../../Hooks/Dragger/useDragger'; //Props
|
|
12
|
-
|
|
13
|
-
import defaultProps from '../../../../version2/lookup/AlertHeader/props/defaultProps';
|
|
14
|
-
import propTypes from '../../../../version2/lookup/AlertHeader/props/propTypes';
|
|
15
|
-
export default function AlertHeader(props) {
|
|
16
|
-
const {
|
|
17
|
-
title,
|
|
18
|
-
needIcon,
|
|
19
|
-
onClose,
|
|
20
|
-
closeTitle,
|
|
21
|
-
children,
|
|
22
|
-
breakChildren,
|
|
23
|
-
dataId,
|
|
24
|
-
type,
|
|
25
|
-
htmlId,
|
|
26
|
-
customStyle,
|
|
27
|
-
dragBoundaryLimit
|
|
28
|
-
} = props;
|
|
29
|
-
const finalStyle = mergeStyle(style, customStyle);
|
|
30
|
-
const {
|
|
31
|
-
alertHeaderContainerClass
|
|
32
|
-
} = cssJSLogic({
|
|
33
|
-
props,
|
|
34
|
-
style: finalStyle
|
|
35
|
-
});
|
|
36
|
-
const dragRef = useRef(null); //dragRef
|
|
37
|
-
|
|
38
|
-
useDragger({
|
|
39
|
-
isActive: true,
|
|
40
|
-
ChildRef: dragRef,
|
|
41
|
-
boundaryLimit: dragBoundaryLimit
|
|
42
|
-
}); //custom Hook
|
|
43
|
-
|
|
44
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
45
|
-
align: "vertical",
|
|
46
|
-
alignBox: "row",
|
|
47
|
-
className: `${alertHeaderContainerClass}`,
|
|
48
|
-
isCover: false,
|
|
49
|
-
wrap: "wrap",
|
|
50
|
-
"data-drag-hook": "true",
|
|
51
|
-
eleRef: dragRef
|
|
52
|
-
}, needIcon && /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: finalStyle.iconContainer
|
|
54
|
-
}, /*#__PURE__*/React.createElement(AlertIcons, {
|
|
55
|
-
type: type
|
|
56
|
-
})), (title || children) && /*#__PURE__*/React.createElement(Box, {
|
|
57
|
-
flexible: true
|
|
58
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
59
|
-
alignBox: "row",
|
|
60
|
-
wrap: breakChildren ? 'wrap' : null
|
|
61
|
-
}, title && /*#__PURE__*/React.createElement(Box, {
|
|
62
|
-
className: finalStyle.title,
|
|
63
|
-
shrink: true,
|
|
64
|
-
id: htmlId
|
|
65
|
-
}, title), children && /*#__PURE__*/React.createElement(Box, {
|
|
66
|
-
adjust: true,
|
|
67
|
-
flexible: true
|
|
68
|
-
}, children))), onClose && /*#__PURE__*/React.createElement(Box, {
|
|
69
|
-
className: style.close
|
|
70
|
-
}, /*#__PURE__*/React.createElement(AlertClose, {
|
|
71
|
-
onClose: onClose,
|
|
72
|
-
dataTitle: closeTitle,
|
|
73
|
-
dataId: `${dataId}_close`,
|
|
74
|
-
type: "light"
|
|
75
|
-
})));
|
|
76
|
-
} //Props
|
|
77
|
-
|
|
78
|
-
AlertHeader.propTypes = propTypes;
|
|
79
|
-
AlertHeader.defaultProps = defaultProps;
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
|
-
/**** Libraries ****/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { defaultProps } from '../../../../version2/lookup/AlertLookup/props/defaultProps';
|
|
6
|
-
import { propTypes } from '../../../../version2/lookup/AlertLookup/props/propTypes';
|
|
7
|
-
/**** Components ****/
|
|
8
|
-
|
|
9
|
-
import { useUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
10
|
-
import Button from '@zohodesk/components/lib/Button/Button';
|
|
11
|
-
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
12
|
-
import Lookup from '../../../lookup/Lookup/Lookup';
|
|
13
|
-
import AlertHeader from '../AlertHeader/AlertHeader';
|
|
14
|
-
import Section from '../../../lookup/Section/Section';
|
|
15
|
-
import FormAction from '../../../FormAction/FormAction';
|
|
16
|
-
/**** CSS ****/
|
|
17
|
-
|
|
18
|
-
import style from '../../../../version2/lookup/AlertLookup/AlertLookupNew.module.css';
|
|
19
|
-
let buttonPaletteObject = {
|
|
20
|
-
success: {
|
|
21
|
-
buttonPalette: 'successFilled'
|
|
22
|
-
},
|
|
23
|
-
error: {
|
|
24
|
-
buttonPalette: 'dangerFilled'
|
|
25
|
-
},
|
|
26
|
-
danger: {
|
|
27
|
-
buttonPalette: 'dangerFilled'
|
|
28
|
-
},
|
|
29
|
-
warning: {
|
|
30
|
-
buttonPalette: 'dangerFilled'
|
|
31
|
-
},
|
|
32
|
-
info: {
|
|
33
|
-
buttonPalette: 'primaryFilled'
|
|
34
|
-
},
|
|
35
|
-
notification: {
|
|
36
|
-
buttonPalette: 'primaryFilled'
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
export default function AlertLookup(props) {
|
|
40
|
-
const getAriaId = useUniqueId();
|
|
41
|
-
let {
|
|
42
|
-
isActive,
|
|
43
|
-
size,
|
|
44
|
-
type = 'danger',
|
|
45
|
-
title,
|
|
46
|
-
message,
|
|
47
|
-
confirmationMessage,
|
|
48
|
-
submitText,
|
|
49
|
-
cancelText,
|
|
50
|
-
onSubmitClick,
|
|
51
|
-
onCancelClick,
|
|
52
|
-
children,
|
|
53
|
-
forwardRef,
|
|
54
|
-
onClose,
|
|
55
|
-
headerChildren,
|
|
56
|
-
wrapHeader,
|
|
57
|
-
dataId,
|
|
58
|
-
onLookupClick,
|
|
59
|
-
customClass = {},
|
|
60
|
-
needIcon,
|
|
61
|
-
a11y,
|
|
62
|
-
customProps,
|
|
63
|
-
align,
|
|
64
|
-
childAnimationName,
|
|
65
|
-
isHtmlContent,
|
|
66
|
-
scroll,
|
|
67
|
-
isDefaultFocus,
|
|
68
|
-
onEsc
|
|
69
|
-
} = props;
|
|
70
|
-
const {
|
|
71
|
-
LookupProps = {},
|
|
72
|
-
AlertHeaderProps = {},
|
|
73
|
-
PrimaryButtonProps = {},
|
|
74
|
-
SecondaryButtonProps = {}
|
|
75
|
-
} = customProps;
|
|
76
|
-
let {
|
|
77
|
-
containerClass = '',
|
|
78
|
-
sectionClass = ''
|
|
79
|
-
} = customClass;
|
|
80
|
-
let {
|
|
81
|
-
buttonPalette = 'dangerFilled'
|
|
82
|
-
} = buttonPaletteObject[type] || {};
|
|
83
|
-
let ariaMessageId = getAriaId();
|
|
84
|
-
let ariaConfirmMsgId = getAriaId();
|
|
85
|
-
let ariaTitleId = getAriaId();
|
|
86
|
-
let ariaLeaveButtonId = getAriaId();
|
|
87
|
-
let ariaStayButtonId = getAriaId();
|
|
88
|
-
a11y = {
|
|
89
|
-
ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
|
|
90
|
-
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
91
|
-
};
|
|
92
|
-
return /*#__PURE__*/React.createElement(Lookup, _extends({
|
|
93
|
-
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
94
|
-
needFocusScope: true,
|
|
95
|
-
isActive: isActive,
|
|
96
|
-
size: size,
|
|
97
|
-
dataId: dataId,
|
|
98
|
-
forwardRef: forwardRef,
|
|
99
|
-
onClick: onLookupClick,
|
|
100
|
-
customClass: containerClass,
|
|
101
|
-
a11y: a11y,
|
|
102
|
-
childAnimationName: childAnimationName
|
|
103
|
-
}, LookupProps), /*#__PURE__*/React.createElement(Container, {
|
|
104
|
-
alignBox: "row",
|
|
105
|
-
align: align,
|
|
106
|
-
wrap: "wrap"
|
|
107
|
-
}, /*#__PURE__*/React.createElement(Section, {
|
|
108
|
-
alignBox: "row",
|
|
109
|
-
className: style.section
|
|
110
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
111
|
-
alignBox: "column"
|
|
112
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, _extends({
|
|
113
|
-
htmlId: ariaTitleId,
|
|
114
|
-
title: title,
|
|
115
|
-
type: type,
|
|
116
|
-
needIcon: needIcon,
|
|
117
|
-
onClose: onClose,
|
|
118
|
-
breakChildren: wrapHeader
|
|
119
|
-
}, AlertHeaderProps), headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
|
|
120
|
-
flexible: true
|
|
121
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
122
|
-
className: `${style.innerSection} ${style[`${scroll}Scroll`] ? style[`${scroll}Scroll`] : ''} ${sectionClass}`
|
|
123
|
-
}, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, isHtmlContent && message ? /*#__PURE__*/React.createElement("div", {
|
|
124
|
-
id: ariaMessageId,
|
|
125
|
-
dangerouslySetInnerHTML: {
|
|
126
|
-
__html: message
|
|
127
|
-
}
|
|
128
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
129
|
-
id: ariaMessageId
|
|
130
|
-
}, message), confirmationMessage && /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
id: ariaConfirmMsgId,
|
|
132
|
-
className: `${message ? style.confirmMsgText : ''}`
|
|
133
|
-
}, confirmationMessage)))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
|
|
134
|
-
className: style.footer
|
|
135
|
-
}, /*#__PURE__*/React.createElement(FormAction, {
|
|
136
|
-
size: "small",
|
|
137
|
-
paddingLeftSize: "xmedium"
|
|
138
|
-
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
139
|
-
text: submitText,
|
|
140
|
-
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
141
|
-
onClick: onSubmitClick,
|
|
142
|
-
palette: buttonPalette,
|
|
143
|
-
customProps: {
|
|
144
|
-
'data-a11y-autofocus': isDefaultFocus
|
|
145
|
-
}
|
|
146
|
-
}, PrimaryButtonProps, {
|
|
147
|
-
a11y: {
|
|
148
|
-
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
|
|
149
|
-
},
|
|
150
|
-
id: ariaLeaveButtonId
|
|
151
|
-
})), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
|
|
152
|
-
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
153
|
-
text: cancelText,
|
|
154
|
-
onClick: onCancelClick,
|
|
155
|
-
palette: "secondary"
|
|
156
|
-
}, SecondaryButtonProps, {
|
|
157
|
-
a11y: {
|
|
158
|
-
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
|
|
159
|
-
},
|
|
160
|
-
id: ariaStayButtonId
|
|
161
|
-
}))))) : null))));
|
|
162
|
-
}
|
|
163
|
-
AlertLookup.propTypes = propTypes;
|
|
164
|
-
AlertLookup.defaultProps = defaultProps;
|
|
@@ -1,80 +0,0 @@
|
|
|
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 _defaultProps = require("../../../errorstate/LinkText/props/defaultProps");
|
|
13
|
-
|
|
14
|
-
var _propTypes = require("../../../errorstate/LinkText/props/propTypes");
|
|
15
|
-
|
|
16
|
-
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
17
|
-
|
|
18
|
-
var _LinkTextModule = _interopRequireDefault(require("../../../errorstate/LinkText/LinkText.module.css"));
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
|
-
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); } }
|
|
25
|
-
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
|
-
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); }; }
|
|
33
|
-
|
|
34
|
-
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); }
|
|
35
|
-
|
|
36
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
-
|
|
38
|
-
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; } }
|
|
39
|
-
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
var LinkText = /*#__PURE__*/function (_React$Component) {
|
|
43
|
-
_inherits(LinkText, _React$Component);
|
|
44
|
-
|
|
45
|
-
var _super = _createSuper(LinkText);
|
|
46
|
-
|
|
47
|
-
function LinkText() {
|
|
48
|
-
_classCallCheck(this, LinkText);
|
|
49
|
-
|
|
50
|
-
return _super.apply(this, arguments);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
_createClass(LinkText, [{
|
|
54
|
-
key: "render",
|
|
55
|
-
value: function render() {
|
|
56
|
-
var _this$props = this.props,
|
|
57
|
-
text = _this$props.text,
|
|
58
|
-
href = _this$props.href,
|
|
59
|
-
onClick = _this$props.onClick,
|
|
60
|
-
dataId = _this$props.dataId,
|
|
61
|
-
customClass = _this$props.customClass;
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
63
|
-
href: href ? href : 'javascript:void(0)',
|
|
64
|
-
className: "".concat(_LinkTextModule["default"].text, " ").concat(customClass, " "),
|
|
65
|
-
onClick: onClick,
|
|
66
|
-
dataId: dataId
|
|
67
|
-
}, text);
|
|
68
|
-
}
|
|
69
|
-
}]);
|
|
70
|
-
|
|
71
|
-
return LinkText;
|
|
72
|
-
}(_react["default"].Component);
|
|
73
|
-
|
|
74
|
-
exports["default"] = LinkText;
|
|
75
|
-
LinkText.propTypes = _propTypes.propTypes;
|
|
76
|
-
LinkText.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
77
|
-
// LinkText.docs = {
|
|
78
|
-
// componentGroup: 'errorStates'
|
|
79
|
-
// };
|
|
80
|
-
// }
|
|
@@ -1,135 +0,0 @@
|
|
|
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 _defaultProps = require("../../../errorstate/NoRequestFound/props/defaultProps");
|
|
13
|
-
|
|
14
|
-
var _propTypes = require("../../../errorstate/NoRequestFound/props/propTypes");
|
|
15
|
-
|
|
16
|
-
var _EmptyStatesModule = _interopRequireDefault(require("../../../errorstate/EmptyStates.module.css"));
|
|
17
|
-
|
|
18
|
-
var _NoRequestFound = _interopRequireDefault(require("@zohodesk/svg/lib/errorstate/version1/NoRequestFound"));
|
|
19
|
-
|
|
20
|
-
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
21
|
-
|
|
22
|
-
var _LinkText = _interopRequireDefault(require("../LinkText/LinkText"));
|
|
23
|
-
|
|
24
|
-
var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
|
|
25
|
-
|
|
26
|
-
var _NoRequestFoundModule = _interopRequireDefault(require("../../../errorstate/NoRequestFound/NoRequestFound.module.css"));
|
|
27
|
-
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": 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 ? Object.setPrototypeOf.bind() : 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.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
-
|
|
50
|
-
var NoRequestFound = /*#__PURE__*/function (_React$Component) {
|
|
51
|
-
_inherits(NoRequestFound, _React$Component);
|
|
52
|
-
|
|
53
|
-
var _super = _createSuper(NoRequestFound);
|
|
54
|
-
|
|
55
|
-
function NoRequestFound(props) {
|
|
56
|
-
var _this;
|
|
57
|
-
|
|
58
|
-
_classCallCheck(this, NoRequestFound);
|
|
59
|
-
|
|
60
|
-
_this = _super.call(this, props);
|
|
61
|
-
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
62
|
-
return _this;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_createClass(NoRequestFound, [{
|
|
66
|
-
key: "responsiveFunc",
|
|
67
|
-
value: function responsiveFunc(_ref) {
|
|
68
|
-
var mediaQueryOR = _ref.mediaQueryOR;
|
|
69
|
-
return {
|
|
70
|
-
tablet: mediaQueryOR([{
|
|
71
|
-
minWidth: 481,
|
|
72
|
-
maxWidth: 768
|
|
73
|
-
}]),
|
|
74
|
-
uptoMobile: mediaQueryOR([{
|
|
75
|
-
maxWidth: 480
|
|
76
|
-
}])
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
key: "render",
|
|
81
|
-
value: function render() {
|
|
82
|
-
var _this$props = this.props,
|
|
83
|
-
title = _this$props.title,
|
|
84
|
-
subtitle = _this$props.subtitle,
|
|
85
|
-
description = _this$props.description,
|
|
86
|
-
urlText = _this$props.urlText,
|
|
87
|
-
url = _this$props.url,
|
|
88
|
-
onClick = _this$props.onClick,
|
|
89
|
-
dataId = _this$props.dataId,
|
|
90
|
-
customClass = _this$props.customClass;
|
|
91
|
-
return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
92
|
-
query: this.responsiveFunc
|
|
93
|
-
}, function (_ref2) {
|
|
94
|
-
var tablet = _ref2.tablet,
|
|
95
|
-
uptoMobile = _ref2.uptoMobile;
|
|
96
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
97
|
-
className: "".concat(uptoMobile || tablet ? _EmptyStatesModule["default"].tabletContainer : _EmptyStatesModule["default"].container, " ").concat(customClass),
|
|
98
|
-
dataId: dataId,
|
|
99
|
-
scroll: "vertical"
|
|
100
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
101
|
-
className: _EmptyStatesModule["default"].top
|
|
102
|
-
}, title ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
|
-
className: uptoMobile ? _EmptyStatesModule["default"].mobileTitle : tablet ? _EmptyStatesModule["default"].tabletTitle : _EmptyStatesModule["default"].title
|
|
104
|
-
}, title) : null, subtitle ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
-
className: uptoMobile ? _EmptyStatesModule["default"].mobileSubTitle : tablet ? _EmptyStatesModule["default"].tabletSubTitle : _EmptyStatesModule["default"].subtitle
|
|
106
|
-
}, subtitle) : null), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
107
|
-
className: "".concat(_NoRequestFoundModule["default"].imageContainer, " ").concat(uptoMobile ? _EmptyStatesModule["default"].mobileImageContainer : tablet ? _EmptyStatesModule["default"].tabletImageContainer : _EmptyStatesModule["default"].imageContainer)
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement(_NoRequestFound["default"], {
|
|
109
|
-
isFluid: true,
|
|
110
|
-
dataId: "".concat(dataId, "_svg")
|
|
111
|
-
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
112
|
-
className: "".concat(uptoMobile || tablet ? '' : _EmptyStatesModule["default"].footerWidth, " ").concat(_EmptyStatesModule["default"].footer)
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
|
-
className: uptoMobile || tablet ? _EmptyStatesModule["default"].tabletBtmText : _EmptyStatesModule["default"].btmText
|
|
115
|
-
}, description), /*#__PURE__*/_react["default"].createElement(_LinkText["default"], {
|
|
116
|
-
text: urlText,
|
|
117
|
-
href: url,
|
|
118
|
-
onClick: onClick,
|
|
119
|
-
dataId: "".concat(dataId, "_link"),
|
|
120
|
-
customClass: uptoMobile || tablet ? _EmptyStatesModule["default"].tabletBtmText : ''
|
|
121
|
-
})));
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}]);
|
|
125
|
-
|
|
126
|
-
return NoRequestFound;
|
|
127
|
-
}(_react["default"].Component);
|
|
128
|
-
|
|
129
|
-
exports["default"] = NoRequestFound;
|
|
130
|
-
NoRequestFound.propTypes = _propTypes.propTypes;
|
|
131
|
-
NoRequestFound.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
132
|
-
// NoRequestFound.docs = {
|
|
133
|
-
// componentGroup: 'errorStates'
|
|
134
|
-
// };
|
|
135
|
-
// }
|
|
@@ -1,134 +0,0 @@
|
|
|
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 _defaultProps = require("../../../errorstate/PermissionPlay/props/defaultProps");
|
|
13
|
-
|
|
14
|
-
var _propTypes = require("../../../errorstate/PermissionPlay/props/propTypes");
|
|
15
|
-
|
|
16
|
-
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
17
|
-
|
|
18
|
-
var _LinkText = _interopRequireDefault(require("../LinkText/LinkText"));
|
|
19
|
-
|
|
20
|
-
var _UnauthorizedLogin = _interopRequireDefault(require("@zohodesk/svg/lib/errorstate/version1/UnauthorizedLogin"));
|
|
21
|
-
|
|
22
|
-
var _EmptyStatesModule = _interopRequireDefault(require("../../../errorstate/EmptyStates.module.css"));
|
|
23
|
-
|
|
24
|
-
var _PermissionPlayModule = _interopRequireDefault(require("../../../errorstate/PermissionPlay/PermissionPlay.module.css"));
|
|
25
|
-
|
|
26
|
-
var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
|
|
27
|
-
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": 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 ? Object.setPrototypeOf.bind() : 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.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
-
|
|
50
|
-
var PermissionPlay = /*#__PURE__*/function (_React$Component) {
|
|
51
|
-
_inherits(PermissionPlay, _React$Component);
|
|
52
|
-
|
|
53
|
-
var _super = _createSuper(PermissionPlay);
|
|
54
|
-
|
|
55
|
-
function PermissionPlay(props) {
|
|
56
|
-
var _this;
|
|
57
|
-
|
|
58
|
-
_classCallCheck(this, PermissionPlay);
|
|
59
|
-
|
|
60
|
-
_this = _super.call(this, props);
|
|
61
|
-
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
62
|
-
return _this;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_createClass(PermissionPlay, [{
|
|
66
|
-
key: "responsiveFunc",
|
|
67
|
-
value: function responsiveFunc(_ref) {
|
|
68
|
-
var mediaQueryOR = _ref.mediaQueryOR;
|
|
69
|
-
return {
|
|
70
|
-
tablet: mediaQueryOR([{
|
|
71
|
-
minWidth: 481,
|
|
72
|
-
maxWidth: 768
|
|
73
|
-
}]),
|
|
74
|
-
uptoMobile: mediaQueryOR([{
|
|
75
|
-
maxWidth: 480
|
|
76
|
-
}])
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
key: "render",
|
|
81
|
-
value: function render() {
|
|
82
|
-
var _this$props = this.props,
|
|
83
|
-
subtitle = _this$props.subtitle,
|
|
84
|
-
title = _this$props.title,
|
|
85
|
-
description = _this$props.description,
|
|
86
|
-
urlText = _this$props.urlText,
|
|
87
|
-
url = _this$props.url,
|
|
88
|
-
onClick = _this$props.onClick,
|
|
89
|
-
dataId = _this$props.dataId,
|
|
90
|
-
customClass = _this$props.customClass;
|
|
91
|
-
return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
92
|
-
query: this.responsiveFunc
|
|
93
|
-
}, function (_ref2) {
|
|
94
|
-
var tablet = _ref2.tablet,
|
|
95
|
-
uptoMobile = _ref2.uptoMobile;
|
|
96
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
97
|
-
className: "".concat(uptoMobile || tablet ? _EmptyStatesModule["default"].tabletContainer : _EmptyStatesModule["default"].container, " ").concat(customClass),
|
|
98
|
-
dataId: dataId,
|
|
99
|
-
scroll: "vertical"
|
|
100
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
101
|
-
className: _EmptyStatesModule["default"].top
|
|
102
|
-
}, title ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
|
-
className: uptoMobile ? _EmptyStatesModule["default"].mobileTitle : tablet ? _EmptyStatesModule["default"].tabletTitle : _EmptyStatesModule["default"].title
|
|
104
|
-
}, title) : null, subtitle ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
-
className: uptoMobile ? _EmptyStatesModule["default"].mobileSubTitle : tablet ? _EmptyStatesModule["default"].tabletSubTitle : _EmptyStatesModule["default"].subtitle
|
|
106
|
-
}, subtitle) : null), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
107
|
-
className: uptoMobile ? _EmptyStatesModule["default"].mobileImageContainer : tablet ? _EmptyStatesModule["default"].tabletImageContainer : _EmptyStatesModule["default"].imageContainer
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement(_UnauthorizedLogin["default"], {
|
|
109
|
-
isFluid: true,
|
|
110
|
-
dataId: "".concat(dataId, "_svg")
|
|
111
|
-
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
-
className: "".concat(_PermissionPlayModule["default"].lastBox, " ").concat(tablet || uptoMobile ? _PermissionPlayModule["default"].max : _PermissionPlayModule["default"].min)
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, description), /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
-
className: _PermissionPlayModule["default"].lineText
|
|
115
|
-
}, /*#__PURE__*/_react["default"].createElement(_LinkText["default"], {
|
|
116
|
-
text: urlText,
|
|
117
|
-
href: url,
|
|
118
|
-
onClick: onClick,
|
|
119
|
-
dataId: "".concat(dataId, "_link")
|
|
120
|
-
})))));
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}]);
|
|
124
|
-
|
|
125
|
-
return PermissionPlay;
|
|
126
|
-
}(_react["default"].Component);
|
|
127
|
-
|
|
128
|
-
exports["default"] = PermissionPlay;
|
|
129
|
-
PermissionPlay.propTypes = _propTypes.propTypes;
|
|
130
|
-
PermissionPlay.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
131
|
-
// PermissionPlay.docs = {
|
|
132
|
-
// componentGroup: 'errorStates'
|
|
133
|
-
// };
|
|
134
|
-
// }
|