@zohodesk/dot 1.0.0-temp-62 → 1.0.0-temp.213
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 +4 -0
- package/{es → assets}/Appearance/dark/mode/dotDarkMode.module.css +1 -1
- package/{es → assets}/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
- package/{es → assets}/Appearance/dark/themes/green/greenDarkDotTheme.module.css +0 -0
- package/{es → assets}/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +1 -1
- package/{es → assets}/Appearance/dark/themes/red/redDarkDotTheme.module.css +0 -0
- package/{es → assets}/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +0 -0
- package/{es → assets}/Appearance/default/mode/dotDefaultMode.module.css +1 -1
- package/{es → assets}/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +0 -0
- package/{es → assets}/Appearance/default/themes/green/greenDefaultDotTheme.module.css +1 -1
- package/{es → assets}/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +0 -0
- package/{es → assets}/Appearance/default/themes/red/redDefaultDotTheme.module.css +0 -0
- package/{es → assets}/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +0 -0
- package/package.json +1 -1
- package/es/ActionButton/ActionButton.js +0 -169
- package/es/ActionButton/ActionButton.module.css +0 -121
- package/es/AlphabeticList/AlphabeticList.js +0 -138
- package/es/AlphabeticList/AlphabeticList.module.css +0 -54
- package/es/Attachment/Attachment.js +0 -104
- package/es/Attachment/Attachment.module.css +0 -121
- package/es/ChannelIcon/ChannelIcon.js +0 -126
- package/es/ChannelIcon/ChannelIcon.module.css +0 -208
- package/es/Drawer/Drawer.js +0 -314
- package/es/Drawer/Drawer.module.css +0 -103
- package/es/ExternalLink/ExternalLink.js +0 -66
- package/es/ExternalLink/ExternalLink.module.css +0 -4
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -27
- package/es/FlipCard/FlipCard.js +0 -183
- package/es/FlipCard/FlipCard.module.css +0 -35
- package/es/FormAction/FormAction.js +0 -83
- package/es/FormAction/FormAction.module.css +0 -57
- package/es/FreezeLayer/FreezeLayer.js +0 -136
- package/es/FreezeLayer/FreezeLayer.module.css +0 -38
- package/es/IconButton/IconButton.js +0 -188
- package/es/IconButton/IconButton.module.css +0 -22
- package/es/Image/Image.js +0 -53
- package/es/Image/Image.module.css +0 -11
- package/es/ImportantNotes/ImportantNotes.js +0 -60
- package/es/ImportantNotes/ImportantNotes.module.css +0 -15
- package/es/Link/Link.js +0 -118
- package/es/Link/Link.module.css +0 -4
- package/es/Link/LinkContext.js +0 -9
- package/es/Loader/Loader.js +0 -27
- package/es/Loader/Loader.module.css +0 -25
- package/es/Message/Message.js +0 -124
- package/es/Message/Message.module.css +0 -70
- package/es/MessageBanner/MessageBanner.js +0 -75
- package/es/MessageBanner/MessageBanner.module.css +0 -38
- package/es/NewStar/NewStar.js +0 -75
- package/es/NewStar/NewStar.module.css +0 -73
- package/es/PlusIcon/PlusIcon.js +0 -60
- package/es/PlusIcon/PlusIcon.module.css +0 -16
- package/es/Provider.js +0 -205
- package/es/ToastMessage/ToastMessage.js +0 -257
- package/es/ToastMessage/ToastMessage.module.css +0 -257
- package/es/Upload/Upload.js +0 -92
- package/es/Upload/Upload.module.css +0 -106
- package/es/actions/AutoClose.js +0 -54
- package/es/actions/index.js +0 -28
- package/es/alert/AlertHeader/AlertHeader.js +0 -94
- package/es/alert/AlertHeader/AlertHeader.module.css +0 -63
- package/es/alert/AlertLookup/AlertLookup.js +0 -196
- package/es/alert/AlertLookup/AlertLookup.module.css +0 -23
- package/es/avatar/AvatarClose/AvatarClose.js +0 -67
- package/es/avatar/AvatarClose/AvatarClose.module.css +0 -31
- package/es/avatar/AvatarCollision/AvatarCollision.js +0 -80
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +0 -55
- package/es/avatar/AvatarIcon/AvatarIcon.js +0 -84
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -59
- package/es/avatar/AvatarStatus/AvatarStatus.js +0 -95
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +0 -96
- package/es/avatar/AvatarThread/AvatarThread.js +0 -111
- package/es/avatar/AvatarThread/AvatarThread.module.css +0 -113
- package/es/avatar/AvatarUser/AvatarUser.js +0 -148
- package/es/avatar/AvatarUser/AvatarUser.module.css +0 -100
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -121
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +0 -16
- package/es/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +0 -47
- package/es/deprecated/SelectDropdown/SelectDropdown.js +0 -129
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +0 -47
- package/es/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/es/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/es/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -40
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +0 -912
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +0 -84
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -94
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -77
- package/es/emptystate/EditionPage/EditionPage.css +0 -37
- package/es/emptystate/EditionPage/EditionPage.js +0 -65
- package/es/errorstate/EmptyStates.module.css +0 -85
- package/es/errorstate/Inconvenience/Inconvenience.js +0 -97
- package/es/errorstate/Inconvenience/Inconvenience.module.css +0 -4
- package/es/errorstate/LinkText/LinkText.js +0 -39
- package/es/errorstate/LinkText/LinkText.module.css +0 -6
- package/es/errorstate/NoRequestFound/NoRequestFound.js +0 -97
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +0 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.js +0 -96
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +0 -34
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -97
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +0 -3
- package/es/errorstate/UnableToProcess/UnableToProcess.js +0 -97
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +0 -3
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -97
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +0 -3
- package/es/errorstate/WillBack/WillBack.js +0 -82
- package/es/errorstate/WillBack/WillBack.module.css +0 -36
- package/es/form/fields/CheckBoxField/CheckBoxField.js +0 -189
- package/es/form/fields/CurrencyField/CurrencyField.js +0 -244
- package/es/form/fields/DateField/DateField.js +0 -256
- package/es/form/fields/Fields.module.css +0 -148
- package/es/form/fields/MultiSelectField/MultiSelectField.js +0 -287
- package/es/form/fields/PhoneField/PhoneField.js +0 -240
- package/es/form/fields/RadioField/RadioField.js +0 -153
- package/es/form/fields/SelectField/SelectField.js +0 -254
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -297
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +0 -95
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -320
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +0 -6
- package/es/form/fields/TextBoxField/TextBoxField.js +0 -234
- package/es/form/fields/TextEditor/TextEditor.js +0 -458
- package/es/form/fields/TextEditor/TextEditor.module.css +0 -583
- package/es/form/fields/TextEditorField/TextEditorField.js +0 -254
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -244
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +0 -26
- package/es/form/fields/TextareaField/TextareaField.js +0 -215
- package/es/form/fields/ValidationMessage/ValidationMessage.js +0 -73
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -22
- package/es/form/layout/Field/Field.js +0 -44
- package/es/form/layout/Field/Field.module.css +0 -22
- package/es/form/layout/Section/ModuleFormSection.module.css +0 -3
- package/es/form/layout/Section/Section.js +0 -44
- package/es/i18n.js +0 -4349
- package/es/index.js +0 -8
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +0 -243
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +0 -116
- package/es/layout/SetupDetailLayout/index.js +0 -4
- package/es/layout/SubtabLayout/SubtabLayout.js +0 -201
- package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -120
- package/es/layout/SubtabLayout/index.js +0 -4
- package/es/list/AvatarFlip/AvatarFlip.js +0 -105
- package/es/list/AvatarFlip/AvatarFlip.module.css +0 -3
- package/es/list/BluePrintStatus/BluePrintStatus.js +0 -32
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +0 -14
- package/es/list/Comment/Comment.js +0 -52
- package/es/list/Comment/Comment.module.css +0 -24
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +0 -129
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +0 -9
- package/es/list/Dot/Dot.js +0 -27
- package/es/list/Dot/Dot.module.css +0 -15
- package/es/list/DotNew/DotNew.js +0 -36
- package/es/list/DotNew/DotNew.module.css +0 -22
- package/es/list/GridStencils/GridStencils.js +0 -41
- package/es/list/GridStencils/GridStencils.module.css +0 -102
- package/es/list/Icons/AddNewIcon.js +0 -32
- package/es/list/Icons/CompleteIcon.js +0 -35
- package/es/list/Icons/DeleteIcon.js +0 -35
- package/es/list/Icons/EditIcon.js +0 -35
- package/es/list/Icons/FloatingIcons.js +0 -36
- package/es/list/Icons/Icons.module.css +0 -16
- package/es/list/Icons/ReadUnreadIcon.js +0 -42
- package/es/list/Icons/SmartIcon.js +0 -34
- package/es/list/ListLayout/ListLayout.js +0 -117
- package/es/list/ListLayout/ListLayout.module.css +0 -50
- package/es/list/ListStencils/ListStencils.js +0 -52
- package/es/list/ListStencils/ListStencils.module.css +0 -62
- package/es/list/SecondaryText/AccountName.js +0 -109
- package/es/list/SecondaryText/ContactName.js +0 -117
- package/es/list/SecondaryText/DepartmentText.js +0 -37
- package/es/list/SecondaryText/Email.js +0 -74
- package/es/list/SecondaryText/HappinessRating.js +0 -38
- package/es/list/SecondaryText/PhoneNumber.js +0 -81
- package/es/list/SecondaryText/PriorityText.js +0 -42
- package/es/list/SecondaryText/SecondaryText.js +0 -51
- package/es/list/SecondaryText/SecondaryText.module.css +0 -126
- package/es/list/SecondaryText/StatusText.js +0 -45
- package/es/list/SecondaryText/TicketId.js +0 -71
- package/es/list/SecondaryText/Website.js +0 -54
- package/es/list/SecondaryText/index.js +0 -11
- package/es/list/SecondryPanel/SecondryPanel.js +0 -142
- package/es/list/SecondryPanel/SecondryPanel.module.css +0 -6
- package/es/list/SentimentStatus/SentimentStatus.js +0 -39
- package/es/list/SentimentStatus/SentimentStatus.module.css +0 -9
- package/es/list/Subject/Subject.js +0 -80
- package/es/list/Subject/Subject.module.css +0 -27
- package/es/list/TagNew/TagNew.js +0 -42
- package/es/list/TagNew/TagNew.module.css +0 -108
- package/es/list/Thread/Thread.js +0 -50
- package/es/list/Thread/Thread.module.css +0 -31
- package/es/list/UserTime/UserTime.js +0 -95
- package/es/list/UserTime/UserTime.module.css +0 -52
- package/es/list/listCommon.module.css +0 -52
- package/es/list/status/StatusDropdown/StatusDropdown.js +0 -488
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +0 -76
- package/es/list/status/StatusListItem/StatusListItem.js +0 -161
- package/es/list/status/StatusListItem/StatusListItem.module.css +0 -81
- package/es/lookup/EmptyPage/EmptyPage.js +0 -71
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +0 -12
- package/es/lookup/Lookup/Lookup.js +0 -112
- package/es/lookup/Lookup/Lookup.module.css +0 -26
- package/es/lookup/Section/LookupSection.module.css +0 -8
- package/es/lookup/Section/Section.js +0 -29
- package/es/lookup/header/Close/Close.js +0 -37
- package/es/lookup/header/Close/LookupClose.module.css +0 -15
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +0 -89
- package/es/lookup/header/Search/LookupSearch.module.css +0 -48
- package/es/lookup/header/Search/Search.js +0 -260
- package/es/lookup/header/TicketHeader/TicketHeader.js +0 -116
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +0 -20
- package/es/lookup/header/Title/LookupTitle.module.css +0 -20
- package/es/lookup/header/Title/Title.js +0 -34
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +0 -183
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -45
- package/es/lookup/header/lookupHeaderCommon.module.css +0 -25
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +0 -15
- package/es/setup/header/Button/Button.js +0 -45
- package/es/setup/header/Button/HeaderButton.module.css +0 -3
- package/es/setup/header/Link/HeaderLink.module.css +0 -15
- package/es/setup/header/Link/Link.js +0 -54
- package/es/setup/header/Search/Search.js +0 -95
- package/es/setup/header/Search/Search.module.css +0 -57
- package/es/setup/header/Views/Views.js +0 -59
- package/es/setup/header/Views/Views.module.css +0 -27
- package/es/setup/helptips/Description/Description.js +0 -28
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +0 -6
- package/es/setup/helptips/Link/HelpTipsLink.module.css +0 -6
- package/es/setup/helptips/Link/Link.js +0 -48
- package/es/setup/helptips/ListGroup/ListGroup.js +0 -44
- package/es/setup/helptips/ListGroup/ListGroup.module.css +0 -17
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +0 -5
- package/es/setup/helptips/Title/Title.js +0 -28
- package/es/setup/table/Table/Table.js +0 -33
- package/es/setup/table/TableBody/TableBody.js +0 -37
- package/es/setup/table/TableData/SetupTableData.module.css +0 -36
- package/es/setup/table/TableData/TableData.js +0 -49
- package/es/setup/table/TableData/Tablehover.module.css +0 -6
- package/es/setup/table/TableHead/SetupTableHead.module.css +0 -8
- package/es/setup/table/TableHead/TableHead.js +0 -47
- package/es/setup/table/TableRow/SetupTableRow.module.css +0 -10
- package/es/setup/table/TableRow/TableRow.js +0 -56
- package/es/setup/table/Text/TableText.module.css +0 -37
- package/es/setup/table/Text/Text.js +0 -70
- package/es/svg/PlusIcon.js +0 -41
- package/es/svg/SnippetIcon.js +0 -43
- package/es/svg/TemplateIcon.js +0 -44
- package/es/utils/ChannelIconMapping.js +0 -129
- package/es/utils/Common.js +0 -24
- package/es/utils/General.js +0 -64
- package/es/utils/KeyboardApi.js +0 -294
- package/es/utils/editorUtils.js +0 -193
- package/es/version2/AlertClose/AlertClose.js +0 -47
- package/es/version2/AlertClose/AlertClose.module.css +0 -43
- package/es/version2/GlobalNotification/GlobalNotification.js +0 -149
- package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -90
- package/es/version2/alertIcons/AlarmAlertIcon.js +0 -72
- package/es/version2/alertIcons/AlertIcons.js +0 -65
- package/es/version2/alertIcons/AlertIcons.module.css +0 -67
- package/es/version2/alertIcons/DangerAlertIcon.js +0 -73
- package/es/version2/alertIcons/ErrorAlertIcon.js +0 -77
- package/es/version2/alertIcons/InfoAlertIcon.js +0 -81
- package/es/version2/alertIcons/NotificationAlertIcon.js +0 -77
- package/es/version2/alertIcons/SuccessAlertIcon.js +0 -72
- package/es/version2/alertIcons/WarningAlertIcon.js +0 -72
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +0 -93
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -94
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -93
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -97
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +0 -93
- package/es/version2/errorstate/V2_ErrorStates.module.css +0 -46
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +0 -93
- package/es/version2/lookup/AlertHeader/AlertHeader.js +0 -78
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +0 -64
- package/es/version2/lookup/AlertLookup/AlertLookup.js +0 -254
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +0 -40
- package/es/version2/lookup/alertLookupCommonNew.module.css +0 -26
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +0 -209
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +0 -90
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -75
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -100
- package/lib/ActionButton/ActionButton.js +0 -222
- package/lib/ActionButton/ActionButton.module.css +0 -120
- package/lib/AlphabeticList/AlphabeticList.js +0 -213
- package/lib/AlphabeticList/AlphabeticList.module.css +0 -54
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +0 -536
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +0 -10
- package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +0 -10
- package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +0 -10
- package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +0 -10
- package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +0 -10
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +0 -536
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +0 -10
- package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +0 -10
- package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +0 -10
- package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +0 -10
- package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +0 -10
- package/lib/Attachment/Attachment.js +0 -155
- package/lib/Attachment/Attachment.module.css +0 -121
- package/lib/ChannelIcon/ChannelIcon.js +0 -179
- package/lib/ChannelIcon/ChannelIcon.module.css +0 -208
- package/lib/Drawer/Drawer.js +0 -420
- package/lib/Drawer/Drawer.module.css +0 -103
- package/lib/ExternalLink/ExternalLink.js +0 -113
- package/lib/ExternalLink/ExternalLink.module.css +0 -4
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -37
- package/lib/FlipCard/FlipCard.js +0 -240
- package/lib/FlipCard/FlipCard.module.css +0 -35
- package/lib/FormAction/FormAction.js +0 -146
- package/lib/FormAction/FormAction.module.css +0 -57
- package/lib/FreezeLayer/FreezeLayer.js +0 -189
- package/lib/FreezeLayer/FreezeLayer.module.css +0 -38
- package/lib/IconButton/IconButton.js +0 -236
- package/lib/IconButton/IconButton.module.css +0 -22
- package/lib/Image/Image.js +0 -102
- package/lib/Image/Image.module.css +0 -11
- package/lib/ImportantNotes/ImportantNotes.js +0 -107
- package/lib/ImportantNotes/ImportantNotes.module.css +0 -15
- package/lib/Link/Link.js +0 -169
- package/lib/Link/Link.module.css +0 -4
- package/lib/Link/LinkContext.js +0 -23
- package/lib/Loader/Loader.js +0 -76
- package/lib/Loader/Loader.module.css +0 -25
- package/lib/Message/Message.js +0 -173
- package/lib/Message/Message.module.css +0 -70
- package/lib/MessageBanner/MessageBanner.js +0 -127
- package/lib/MessageBanner/MessageBanner.module.css +0 -38
- package/lib/NewStar/NewStar.js +0 -126
- package/lib/NewStar/NewStar.module.css +0 -73
- package/lib/PlusIcon/PlusIcon.js +0 -106
- package/lib/PlusIcon/PlusIcon.module.css +0 -16
- package/lib/Provider.js +0 -309
- package/lib/ToastMessage/ToastMessage.js +0 -298
- package/lib/ToastMessage/ToastMessage.module.css +0 -257
- package/lib/Upload/Upload.js +0 -143
- package/lib/Upload/Upload.module.css +0 -106
- package/lib/actions/AutoClose.js +0 -85
- package/lib/actions/index.js +0 -37
- package/lib/alert/AlertHeader/AlertHeader.js +0 -151
- package/lib/alert/AlertHeader/AlertHeader.module.css +0 -63
- package/lib/alert/AlertLookup/AlertLookup.js +0 -245
- package/lib/alert/AlertLookup/AlertLookup.module.css +0 -23
- package/lib/avatar/AvatarClose/AvatarClose.js +0 -114
- package/lib/avatar/AvatarClose/AvatarClose.module.css +0 -31
- package/lib/avatar/AvatarCollision/AvatarCollision.js +0 -127
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +0 -55
- package/lib/avatar/AvatarIcon/AvatarIcon.js +0 -135
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -59
- package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -141
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +0 -96
- package/lib/avatar/AvatarThread/AvatarThread.js +0 -161
- package/lib/avatar/AvatarThread/AvatarThread.module.css +0 -113
- package/lib/avatar/AvatarUser/AvatarUser.js +0 -198
- package/lib/avatar/AvatarUser/AvatarUser.module.css +0 -100
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -176
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +0 -16
- package/lib/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +0 -53
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +0 -186
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +0 -47
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +0 -982
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +0 -84
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -148
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -77
- package/lib/emptystate/EditionPage/EditionPage.css +0 -37
- package/lib/emptystate/EditionPage/EditionPage.js +0 -115
- package/lib/errorstate/EmptyStates.module.css +0 -85
- package/lib/errorstate/Inconvenience/Inconvenience.js +0 -147
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +0 -4
- package/lib/errorstate/LinkText/LinkText.js +0 -89
- package/lib/errorstate/LinkText/LinkText.module.css +0 -6
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +0 -147
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +0 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +0 -146
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +0 -34
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -147
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +0 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +0 -147
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +0 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -147
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +0 -3
- package/lib/errorstate/WillBack/WillBack.js +0 -131
- package/lib/errorstate/WillBack/WillBack.module.css +0 -36
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -242
- package/lib/form/fields/CurrencyField/CurrencyField.js +0 -293
- package/lib/form/fields/DateField/DateField.js +0 -307
- package/lib/form/fields/Fields.module.css +0 -145
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +0 -339
- package/lib/form/fields/PhoneField/PhoneField.js +0 -286
- package/lib/form/fields/RadioField/RadioField.js +0 -205
- package/lib/form/fields/SelectField/SelectField.js +0 -306
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -352
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +0 -95
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -362
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +0 -6
- package/lib/form/fields/TextBoxField/TextBoxField.js +0 -287
- package/lib/form/fields/TextEditor/TextEditor.js +0 -499
- package/lib/form/fields/TextEditor/TextEditor.module.css +0 -582
- package/lib/form/fields/TextEditorField/TextEditorField.js +0 -306
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -296
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +0 -26
- package/lib/form/fields/TextareaField/TextareaField.js +0 -266
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +0 -124
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -22
- package/lib/form/layout/Field/Field.js +0 -97
- package/lib/form/layout/Field/Field.module.css +0 -22
- package/lib/form/layout/Section/ModuleFormSection.module.css +0 -3
- package/lib/form/layout/Section/Section.js +0 -93
- package/lib/i18n.js +0 -3417
- package/lib/index.js +0 -101
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +0 -331
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +0 -116
- package/lib/layout/SetupDetailLayout/index.js +0 -37
- package/lib/layout/SubtabLayout/SubtabLayout.js +0 -301
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -120
- package/lib/layout/SubtabLayout/index.js +0 -37
- package/lib/list/AvatarFlip/AvatarFlip.js +0 -159
- package/lib/list/AvatarFlip/AvatarFlip.module.css +0 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.js +0 -77
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +0 -14
- package/lib/list/Comment/Comment.js +0 -104
- package/lib/list/Comment/Comment.module.css +0 -24
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +0 -184
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +0 -9
- package/lib/list/Dot/Dot.js +0 -76
- package/lib/list/Dot/Dot.module.css +0 -15
- package/lib/list/DotNew/DotNew.js +0 -85
- package/lib/list/DotNew/DotNew.module.css +0 -22
- package/lib/list/GridStencils/GridStencils.js +0 -90
- package/lib/list/GridStencils/GridStencils.module.css +0 -102
- package/lib/list/Icons/AddNewIcon.js +0 -82
- package/lib/list/Icons/CompleteIcon.js +0 -85
- package/lib/list/Icons/DeleteIcon.js +0 -85
- package/lib/list/Icons/EditIcon.js +0 -85
- package/lib/list/Icons/FloatingIcons.js +0 -92
- package/lib/list/Icons/Icons.module.css +0 -16
- package/lib/list/Icons/ReadUnreadIcon.js +0 -92
- package/lib/list/Icons/SmartIcon.js +0 -88
- package/lib/list/ListLayout/ListLayout.js +0 -179
- package/lib/list/ListLayout/ListLayout.module.css +0 -50
- package/lib/list/ListStencils/ListStencils.js +0 -100
- package/lib/list/ListStencils/ListStencils.module.css +0 -62
- package/lib/list/SecondaryText/AccountName.js +0 -159
- package/lib/list/SecondaryText/ContactName.js +0 -175
- package/lib/list/SecondaryText/DepartmentText.js +0 -86
- package/lib/list/SecondaryText/Email.js +0 -121
- package/lib/list/SecondaryText/HappinessRating.js +0 -88
- package/lib/list/SecondaryText/PhoneNumber.js +0 -128
- package/lib/list/SecondaryText/PriorityText.js +0 -91
- package/lib/list/SecondaryText/SecondaryText.js +0 -98
- package/lib/list/SecondaryText/SecondaryText.module.css +0 -126
- package/lib/list/SecondaryText/StatusText.js +0 -94
- package/lib/list/SecondaryText/TicketId.js +0 -121
- package/lib/list/SecondaryText/Website.js +0 -101
- package/lib/list/SecondaryText/index.js +0 -95
- package/lib/list/SecondryPanel/SecondryPanel.js +0 -241
- package/lib/list/SecondryPanel/SecondryPanel.module.css +0 -6
- package/lib/list/SentimentStatus/SentimentStatus.js +0 -85
- package/lib/list/SentimentStatus/SentimentStatus.module.css +0 -9
- package/lib/list/Subject/Subject.js +0 -130
- package/lib/list/Subject/Subject.module.css +0 -27
- package/lib/list/TagNew/TagNew.js +0 -91
- package/lib/list/TagNew/TagNew.module.css +0 -108
- package/lib/list/Thread/Thread.js +0 -101
- package/lib/list/Thread/Thread.module.css +0 -31
- package/lib/list/UserTime/UserTime.js +0 -147
- package/lib/list/UserTime/UserTime.module.css +0 -52
- package/lib/list/listCommon.module.css +0 -52
- package/lib/list/status/StatusDropdown/StatusDropdown.js +0 -538
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +0 -76
- package/lib/list/status/StatusListItem/StatusListItem.js +0 -206
- package/lib/list/status/StatusListItem/StatusListItem.module.css +0 -81
- package/lib/lookup/EmptyPage/EmptyPage.js +0 -125
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +0 -12
- package/lib/lookup/Lookup/Lookup.js +0 -159
- package/lib/lookup/Lookup/Lookup.module.css +0 -26
- package/lib/lookup/Section/LookupSection.module.css +0 -8
- package/lib/lookup/Section/Section.js +0 -79
- package/lib/lookup/header/Close/Close.js +0 -87
- package/lib/lookup/header/Close/LookupClose.module.css +0 -15
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +0 -144
- package/lib/lookup/header/Search/LookupSearch.module.css +0 -48
- package/lib/lookup/header/Search/Search.js +0 -315
- package/lib/lookup/header/TicketHeader/TicketHeader.js +0 -167
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +0 -19
- package/lib/lookup/header/Title/LookupTitle.module.css +0 -20
- package/lib/lookup/header/Title/Title.js +0 -84
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +0 -229
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -46
- package/lib/lookup/header/lookupHeaderCommon.module.css +0 -25
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +0 -15
- package/lib/setup/header/Button/Button.js +0 -91
- package/lib/setup/header/Button/HeaderButton.module.css +0 -3
- package/lib/setup/header/Link/HeaderLink.module.css +0 -15
- package/lib/setup/header/Link/Link.js +0 -102
- package/lib/setup/header/Search/Search.js +0 -139
- package/lib/setup/header/Search/Search.module.css +0 -57
- package/lib/setup/header/Views/Views.js +0 -105
- package/lib/setup/header/Views/Views.module.css +0 -27
- package/lib/setup/helptips/Description/Description.js +0 -72
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +0 -6
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +0 -6
- package/lib/setup/helptips/Link/Link.js +0 -95
- package/lib/setup/helptips/ListGroup/ListGroup.js +0 -93
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +0 -17
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +0 -5
- package/lib/setup/helptips/Title/Title.js +0 -72
- package/lib/setup/table/Table/Table.js +0 -82
- package/lib/setup/table/TableBody/TableBody.js +0 -87
- package/lib/setup/table/TableData/SetupTableData.module.css +0 -36
- package/lib/setup/table/TableData/TableData.js +0 -95
- package/lib/setup/table/TableData/Tablehover.module.css +0 -6
- package/lib/setup/table/TableHead/SetupTableHead.module.css +0 -8
- package/lib/setup/table/TableHead/TableHead.js +0 -93
- package/lib/setup/table/TableRow/SetupTableRow.module.css +0 -10
- package/lib/setup/table/TableRow/TableRow.js +0 -102
- package/lib/setup/table/Text/TableText.module.css +0 -37
- package/lib/setup/table/Text/Text.js +0 -121
- package/lib/svg/PlusIcon.js +0 -90
- package/lib/svg/SnippetIcon.js +0 -92
- package/lib/svg/TemplateIcon.js +0 -93
- package/lib/utils/ChannelIconMapping.js +0 -138
- package/lib/utils/Common.js +0 -33
- package/lib/utils/General.js +0 -82
- package/lib/utils/KeyboardApi.js +0 -297
- package/lib/utils/editorUtils.js +0 -223
- package/lib/version2/AlertClose/AlertClose.js +0 -101
- package/lib/version2/AlertClose/AlertClose.module.css +0 -43
- package/lib/version2/GlobalNotification/GlobalNotification.js +0 -190
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -90
- package/lib/version2/alertIcons/AlarmAlertIcon.js +0 -125
- package/lib/version2/alertIcons/AlertIcons.js +0 -127
- package/lib/version2/alertIcons/AlertIcons.module.css +0 -67
- package/lib/version2/alertIcons/DangerAlertIcon.js +0 -126
- package/lib/version2/alertIcons/ErrorAlertIcon.js +0 -130
- package/lib/version2/alertIcons/InfoAlertIcon.js +0 -134
- package/lib/version2/alertIcons/NotificationAlertIcon.js +0 -130
- package/lib/version2/alertIcons/SuccessAlertIcon.js +0 -125
- package/lib/version2/alertIcons/WarningAlertIcon.js +0 -125
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +0 -146
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -147
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -146
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -150
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +0 -146
- package/lib/version2/errorstate/V2_ErrorStates.module.css +0 -46
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +0 -146
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +0 -134
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +0 -64
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +0 -312
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +0 -40
- package/lib/version2/lookup/alertLookupCommonNew.module.css +0 -26
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +0 -228
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +0 -91
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -128
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -100
package/lib/Link/Link.js
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _LinkModule = _interopRequireDefault(require("./Link.module.css"));
|
|
15
|
-
|
|
16
|
-
var _LinkContext = _interopRequireDefault(require("./LinkContext.js"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
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); 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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || 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 : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
var Link = /*#__PURE__*/function (_React$Component) {
|
|
43
|
-
_inherits(Link, _React$Component);
|
|
44
|
-
|
|
45
|
-
var _super = _createSuper(Link);
|
|
46
|
-
|
|
47
|
-
function Link(props, context) {
|
|
48
|
-
var _this;
|
|
49
|
-
|
|
50
|
-
_classCallCheck(this, Link);
|
|
51
|
-
|
|
52
|
-
_this = _super.call(this, props, context);
|
|
53
|
-
_this.onCallBack = _this.onCallBack.bind(_assertThisInitialized(_this));
|
|
54
|
-
return _this;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
_createClass(Link, [{
|
|
58
|
-
key: "onCallBack",
|
|
59
|
-
value: function onCallBack(urlOutput, href, e) {
|
|
60
|
-
var _this$props = this.props,
|
|
61
|
-
onClick = _this$props.onClick,
|
|
62
|
-
hasReload = _this$props.hasReload,
|
|
63
|
-
target = _this$props.target;
|
|
64
|
-
var onCallBack = this.context.options.onCallBack;
|
|
65
|
-
|
|
66
|
-
if (e && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)) {
|
|
67
|
-
e && e.stopPropagation();
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
onClick && onClick(e);
|
|
72
|
-
|
|
73
|
-
if (!hasReload && target != '_blank') {
|
|
74
|
-
e && e.preventDefault();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
e && e.stopPropagation();
|
|
78
|
-
!onClick && onCallBack && onCallBack(urlOutput, href, e);
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
key: "addHttp",
|
|
82
|
-
value: function addHttp(url) {
|
|
83
|
-
/* eslint-disable */
|
|
84
|
-
if (!/^(f|ht)tps?:\/\//i.test(url)) {
|
|
85
|
-
url = 'http://' + url;
|
|
86
|
-
}
|
|
87
|
-
/* eslint-enable */
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return url;
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
key: "render",
|
|
94
|
-
value: function render() {
|
|
95
|
-
var _this2 = this;
|
|
96
|
-
|
|
97
|
-
var _this$props2 = this.props,
|
|
98
|
-
children = _this$props2.children,
|
|
99
|
-
href = _this$props2.href,
|
|
100
|
-
target = _this$props2.target,
|
|
101
|
-
urlData = _this$props2.urlData,
|
|
102
|
-
urlName = _this$props2.urlName,
|
|
103
|
-
className = _this$props2.className,
|
|
104
|
-
title = _this$props2.title,
|
|
105
|
-
download = _this$props2.download,
|
|
106
|
-
rel = _this$props2.rel,
|
|
107
|
-
dataId = _this$props2.dataId,
|
|
108
|
-
customProps = _this$props2.customProps;
|
|
109
|
-
var _this$context$options = this.context.options,
|
|
110
|
-
isLink = _this$context$options.isLink,
|
|
111
|
-
constructURL = _this$context$options.constructURL;
|
|
112
|
-
var urlOutput = href ? href : constructURL(urlName, urlData);
|
|
113
|
-
var option = {};
|
|
114
|
-
|
|
115
|
-
if (download) {
|
|
116
|
-
option.download = true;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
var ignoreKeys = ['children', 'href', 'target', 'urlData', 'urlName', 'className', 'title', 'download', 'rel', 'dataId', 'hasReload', 'customProps', 'option'];
|
|
120
|
-
var others = Object.keys(this.props).filter(function (key) {
|
|
121
|
-
return ignoreKeys.indexOf(key) == -1;
|
|
122
|
-
}).reduce(function (res, key) {
|
|
123
|
-
res[key] = _this2.props[key];
|
|
124
|
-
return res;
|
|
125
|
-
}, {}); //urlOutput = this.addHttp(urlOutput);
|
|
126
|
-
|
|
127
|
-
return /*#__PURE__*/_react["default"].createElement("a", _extends({
|
|
128
|
-
href: isLink && urlOutput ? urlOutput : 'javascript:void(0);',
|
|
129
|
-
target: target,
|
|
130
|
-
"data-title": title,
|
|
131
|
-
className: "".concat(_LinkModule["default"].container, " ").concat(className ? className : '')
|
|
132
|
-
}, option, {
|
|
133
|
-
rel: rel,
|
|
134
|
-
"data-id": dataId
|
|
135
|
-
}, others, {
|
|
136
|
-
onClick: this.onCallBack.bind(this, urlOutput, href)
|
|
137
|
-
}, customProps), children);
|
|
138
|
-
}
|
|
139
|
-
}]);
|
|
140
|
-
|
|
141
|
-
return Link;
|
|
142
|
-
}(_react["default"].Component);
|
|
143
|
-
|
|
144
|
-
exports["default"] = Link;
|
|
145
|
-
Link.contextType = _LinkContext["default"];
|
|
146
|
-
Link.defaultProps = {
|
|
147
|
-
rel: 'noopener noreferrer',
|
|
148
|
-
hasReload: false,
|
|
149
|
-
customProps: {}
|
|
150
|
-
};
|
|
151
|
-
Link.propTypes = {
|
|
152
|
-
children: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].element]),
|
|
153
|
-
className: _propTypes["default"].string,
|
|
154
|
-
dataId: _propTypes["default"].string,
|
|
155
|
-
hasReload: _propTypes["default"].bool,
|
|
156
|
-
href: _propTypes["default"].string,
|
|
157
|
-
rel: _propTypes["default"].string,
|
|
158
|
-
target: _propTypes["default"].oneOf(['_blank', '_self']),
|
|
159
|
-
title: _propTypes["default"].string,
|
|
160
|
-
urlData: _propTypes["default"].object,
|
|
161
|
-
urlName: _propTypes["default"].string,
|
|
162
|
-
customProps: _propTypes["default"].object
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
if (false) {
|
|
166
|
-
Link.docs = {
|
|
167
|
-
componentGroup: 'Atom'
|
|
168
|
-
};
|
|
169
|
-
}
|
package/lib/Link/Link.module.css
DELETED
package/lib/Link/LinkContext.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var LinkContext = /*#__PURE__*/_react["default"].createContext({
|
|
13
|
-
options: {
|
|
14
|
-
onCallBack: null,
|
|
15
|
-
isLink: true,
|
|
16
|
-
constructURL: function constructURL() {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
var _default = LinkContext;
|
|
23
|
-
exports["default"] = _default;
|
package/lib/Loader/Loader.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider");
|
|
13
|
-
|
|
14
|
-
var _LoaderModule = _interopRequireDefault(require("./Loader.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); 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 } }); 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 Loader = /*#__PURE__*/function (_React$Component) {
|
|
39
|
-
_inherits(Loader, _React$Component);
|
|
40
|
-
|
|
41
|
-
var _super = _createSuper(Loader);
|
|
42
|
-
|
|
43
|
-
function Loader(props) {
|
|
44
|
-
var _this;
|
|
45
|
-
|
|
46
|
-
_classCallCheck(this, Loader);
|
|
47
|
-
|
|
48
|
-
_this = _super.call(this, props);
|
|
49
|
-
_this.getNextIndex = (0, _ZindexProvider.getZIndex)(_assertThisInitialized(_this));
|
|
50
|
-
return _this;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
_createClass(Loader, [{
|
|
54
|
-
key: "render",
|
|
55
|
-
value: function render() {
|
|
56
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
-
className: _LoaderModule["default"].ajaxLoader,
|
|
58
|
-
style: {
|
|
59
|
-
zIndex: "".concat(this.getNextIndex())
|
|
60
|
-
}
|
|
61
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
-
className: _LoaderModule["default"].loader
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
}]);
|
|
66
|
-
|
|
67
|
-
return Loader;
|
|
68
|
-
}(_react["default"].Component);
|
|
69
|
-
|
|
70
|
-
exports["default"] = Loader;
|
|
71
|
-
|
|
72
|
-
if (false) {
|
|
73
|
-
Loader.docs = {
|
|
74
|
-
componentGroup: 'Atom'
|
|
75
|
-
};
|
|
76
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.ajaxLoader {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
}
|
|
7
|
-
.loader {
|
|
8
|
-
background-image: var(--zdt_loader_gradient_bg);
|
|
9
|
-
width: 100%;
|
|
10
|
-
background-size: 200% auto;
|
|
11
|
-
background-position: 0 100%;
|
|
12
|
-
animation: loading 3s infinite;
|
|
13
|
-
animation-fill-mode: forwards;
|
|
14
|
-
animation-timing-function: linear;
|
|
15
|
-
height: 3px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@keyframes loading {
|
|
19
|
-
0% {
|
|
20
|
-
background-position: 0 0;
|
|
21
|
-
}
|
|
22
|
-
100% {
|
|
23
|
-
background-position: -200% 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
package/lib/Message/Message.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.MessageUI = MessageUI;
|
|
9
|
-
exports.MessageNew = MessageNew;
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
|
-
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
17
|
-
|
|
18
|
-
var _AutoClose = _interopRequireDefault(require("../actions/AutoClose"));
|
|
19
|
-
|
|
20
|
-
var _MessageModule = _interopRequireDefault(require("./Message.module.css"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
25
|
-
|
|
26
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
-
|
|
28
|
-
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); } }
|
|
29
|
-
|
|
30
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
31
|
-
|
|
32
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
|
-
|
|
34
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
-
|
|
36
|
-
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); }; }
|
|
37
|
-
|
|
38
|
-
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); }
|
|
39
|
-
|
|
40
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41
|
-
|
|
42
|
-
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; } }
|
|
43
|
-
|
|
44
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
|
-
|
|
46
|
-
var Message = /*#__PURE__*/function (_React$Component) {
|
|
47
|
-
_inherits(Message, _React$Component);
|
|
48
|
-
|
|
49
|
-
var _super = _createSuper(Message);
|
|
50
|
-
|
|
51
|
-
function Message(props) {
|
|
52
|
-
var _this;
|
|
53
|
-
|
|
54
|
-
_classCallCheck(this, Message);
|
|
55
|
-
|
|
56
|
-
_this = _super.call(this, props);
|
|
57
|
-
_this.state = {
|
|
58
|
-
hideMessage: false
|
|
59
|
-
};
|
|
60
|
-
return _this;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
_createClass(Message, [{
|
|
64
|
-
key: "componentWillReceiveProps",
|
|
65
|
-
value: function componentWillReceiveProps(nextProps) {
|
|
66
|
-
var _this$props = this.props,
|
|
67
|
-
showMessage = _this$props.showMessage,
|
|
68
|
-
hideMessage = _this$props.hideMessage;
|
|
69
|
-
|
|
70
|
-
if (showMessage !== nextProps.showMessage) {
|
|
71
|
-
if (nextProps.type != 'alert') {
|
|
72
|
-
setTimeout(function () {
|
|
73
|
-
hideMessage();
|
|
74
|
-
}, 3000);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
key: "componentDidMount",
|
|
80
|
-
value: function componentDidMount() {
|
|
81
|
-
var _this$props2 = this.props,
|
|
82
|
-
type = _this$props2.type,
|
|
83
|
-
hideMessage = _this$props2.hideMessage;
|
|
84
|
-
|
|
85
|
-
if (type != 'alert') {
|
|
86
|
-
setTimeout(function () {
|
|
87
|
-
hideMessage();
|
|
88
|
-
}, 3000);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, {
|
|
92
|
-
key: "render",
|
|
93
|
-
value: function render() {
|
|
94
|
-
return /*#__PURE__*/_react["default"].createElement(MessageUI, this.props);
|
|
95
|
-
}
|
|
96
|
-
}]);
|
|
97
|
-
|
|
98
|
-
return Message;
|
|
99
|
-
}(_react["default"].Component);
|
|
100
|
-
|
|
101
|
-
exports["default"] = Message;
|
|
102
|
-
Message.propTypes = {
|
|
103
|
-
dataId: _propTypes["default"].string,
|
|
104
|
-
hideMessage: _propTypes["default"].func,
|
|
105
|
-
message: _propTypes["default"].string,
|
|
106
|
-
onClick: _propTypes["default"].func,
|
|
107
|
-
showMessage: _propTypes["default"].bool,
|
|
108
|
-
type: _propTypes["default"].oneOf(['success', 'alert', 'info']),
|
|
109
|
-
i18nKeys: _propTypes["default"].shape({
|
|
110
|
-
closeTitle: _propTypes["default"].string
|
|
111
|
-
})
|
|
112
|
-
};
|
|
113
|
-
Message.defaultProps = {
|
|
114
|
-
i18nKeys: {}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
if (false) {
|
|
118
|
-
Message.docs = {
|
|
119
|
-
componentGroup: 'Atom'
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function MessageUI(props) {
|
|
124
|
-
function onClose(e) {
|
|
125
|
-
var hideMessage = props.hideMessage,
|
|
126
|
-
onClose = props.onClose;
|
|
127
|
-
hideMessage && hideMessage(e);
|
|
128
|
-
onClose && onClose(e);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
var type = props.type,
|
|
132
|
-
message = props.message,
|
|
133
|
-
onClick = props.onClick,
|
|
134
|
-
i18nKeys = props.i18nKeys;
|
|
135
|
-
var _i18nKeys$closeTitle = i18nKeys.closeTitle,
|
|
136
|
-
closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
|
|
137
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
-
className: _MessageModule["default"].message,
|
|
139
|
-
"data-id": "show_".concat(type, "_message")
|
|
140
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
-
className: _MessageModule["default"].container
|
|
142
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
-
className: _MessageModule["default"][type]
|
|
144
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
145
|
-
className: _MessageModule["default"].tickIcn
|
|
146
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
147
|
-
name: type == 'alert' ? 'ZD-notifiExclamation' : type == 'info' ? 'ZD-info31' : 'ZD-check',
|
|
148
|
-
isBold: true,
|
|
149
|
-
size: "10"
|
|
150
|
-
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
151
|
-
className: _MessageModule["default"].text,
|
|
152
|
-
onClick: onClick,
|
|
153
|
-
"data-id": "infoMessage",
|
|
154
|
-
dangerouslySetInnerHTML: {
|
|
155
|
-
__html: message
|
|
156
|
-
}
|
|
157
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
158
|
-
className: _MessageModule["default"].close,
|
|
159
|
-
"data-title": closeTitle,
|
|
160
|
-
onClick: onClose,
|
|
161
|
-
"data-id": "close_".concat(type, "_message")
|
|
162
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
163
|
-
name: "ZD-closee",
|
|
164
|
-
isBold: true,
|
|
165
|
-
size: "10"
|
|
166
|
-
}))));
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
function MessageNew(props) {
|
|
170
|
-
return /*#__PURE__*/_react["default"].createElement(_AutoClose["default"], _extends({}, props, {
|
|
171
|
-
Element: MessageUI
|
|
172
|
-
}));
|
|
173
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
.message {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 0;
|
|
4
|
-
z-index: 1000;
|
|
5
|
-
/*Hook for editor alert*/
|
|
6
|
-
right: 0;
|
|
7
|
-
text-align: center;
|
|
8
|
-
left: 0;
|
|
9
|
-
pointer-events: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.container {
|
|
13
|
-
padding: var(--zd_size13) var(--zd_size10) var(--zd_size13) var(--zd_size50);
|
|
14
|
-
box-shadow: 0 0 19px 1px var(--zdt_message_default_box_shadow);
|
|
15
|
-
border-radius: 0 0 5px 5px;
|
|
16
|
-
position: relative;
|
|
17
|
-
background: var(--zdt_message_default_bg);
|
|
18
|
-
display: inline-block;
|
|
19
|
-
pointer-events: initial;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.text {
|
|
23
|
-
max-width: var(--zd_size480);
|
|
24
|
-
display: inline-block;
|
|
25
|
-
word-break: break-word;
|
|
26
|
-
font-size: var(--zd_font_size14);
|
|
27
|
-
vertical-align: middle;
|
|
28
|
-
text-align: left;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.icon {
|
|
32
|
-
position: absolute;
|
|
33
|
-
left: 0;
|
|
34
|
-
top: 0;
|
|
35
|
-
width: var(--zd_size40);
|
|
36
|
-
display: inline-block;
|
|
37
|
-
border-bottom-left-radius: 5px;
|
|
38
|
-
height: 100%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.success {
|
|
42
|
-
composes: icon;
|
|
43
|
-
background: var(--zdt_message_success_bg);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.alert {
|
|
47
|
-
composes: icon;
|
|
48
|
-
background: var(--zdt_message_alert_bg);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.info {
|
|
52
|
-
composes: icon;
|
|
53
|
-
background: var(--zdt_message_info_bg);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.tickIcn {
|
|
57
|
-
color: var(--zdt_message_tickicon);
|
|
58
|
-
font-size: var(--zd_font_size16);
|
|
59
|
-
position: absolute;
|
|
60
|
-
composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.close {
|
|
64
|
-
color: var(--zdt_message_close_text);
|
|
65
|
-
font-size: var(--zd_font_size16);
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
display: inline-block;
|
|
68
|
-
vertical-align: middle;
|
|
69
|
-
margin-left: var(--zd_size10);
|
|
70
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _Link = _interopRequireDefault(require("../Link/Link"));
|
|
15
|
-
|
|
16
|
-
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
17
|
-
|
|
18
|
-
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
19
|
-
|
|
20
|
-
var _MessageBannerModule = _interopRequireDefault(require("./MessageBanner.module.css"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
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); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
|
-
|
|
30
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
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); }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
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; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var MessageBanner = /*#__PURE__*/function (_React$Component) {
|
|
45
|
-
_inherits(MessageBanner, _React$Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(MessageBanner);
|
|
48
|
-
|
|
49
|
-
function MessageBanner() {
|
|
50
|
-
_classCallCheck(this, MessageBanner);
|
|
51
|
-
|
|
52
|
-
return _super.apply(this, arguments);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(MessageBanner, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
type = _this$props.type,
|
|
60
|
-
message = _this$props.message,
|
|
61
|
-
onClose = _this$props.onClose,
|
|
62
|
-
href = _this$props.href,
|
|
63
|
-
onClick = _this$props.onClick,
|
|
64
|
-
urlText = _this$props.urlText,
|
|
65
|
-
palette = _this$props.palette,
|
|
66
|
-
customClass = _this$props.customClass,
|
|
67
|
-
dataId = _this$props.dataId;
|
|
68
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
69
|
-
className: "".concat(_MessageBannerModule["default"]["type_".concat(type)], " ").concat(_MessageBannerModule["default"]["palette_".concat(palette)], " ").concat(customClass),
|
|
70
|
-
alignBox: "row",
|
|
71
|
-
isCover: false,
|
|
72
|
-
dataId: dataId
|
|
73
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
74
|
-
className: _MessageBannerModule["default"].content,
|
|
75
|
-
flexible: true
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
77
|
-
alignBox: "row",
|
|
78
|
-
align: "both"
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
80
|
-
className: _MessageBannerModule["default"].message,
|
|
81
|
-
adjust: true,
|
|
82
|
-
shrink: true,
|
|
83
|
-
"data-title": message
|
|
84
|
-
}, message), href && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
85
|
-
href: href,
|
|
86
|
-
onClick: onClick,
|
|
87
|
-
className: _MessageBannerModule["default"].link,
|
|
88
|
-
target: "_blank"
|
|
89
|
-
}, urlText)))), onClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
90
|
-
className: _MessageBannerModule["default"].close,
|
|
91
|
-
onClick: onClose
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
93
|
-
align: "both"
|
|
94
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
95
|
-
name: "ZD-closee",
|
|
96
|
-
size: "35"
|
|
97
|
-
}))) : null);
|
|
98
|
-
}
|
|
99
|
-
}]);
|
|
100
|
-
|
|
101
|
-
return MessageBanner;
|
|
102
|
-
}(_react["default"].Component);
|
|
103
|
-
|
|
104
|
-
exports["default"] = MessageBanner;
|
|
105
|
-
MessageBanner.defaultProps = {
|
|
106
|
-
type: 'primary',
|
|
107
|
-
palette: 'default',
|
|
108
|
-
customClass: '',
|
|
109
|
-
dataId: 'MessageBanner'
|
|
110
|
-
};
|
|
111
|
-
MessageBanner.propTypes = {
|
|
112
|
-
customClass: _propTypes["default"].string,
|
|
113
|
-
href: _propTypes["default"].string,
|
|
114
|
-
message: _propTypes["default"].string,
|
|
115
|
-
onClick: _propTypes["default"].func,
|
|
116
|
-
onClose: _propTypes["default"].func,
|
|
117
|
-
palette: _propTypes["default"].oneOf(['default', 'blue', 'white']),
|
|
118
|
-
type: _propTypes["default"].oneOf(['primary', 'secondary']),
|
|
119
|
-
urlText: _propTypes["default"].string,
|
|
120
|
-
dataId: _propTypes["default"].string
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
if (false) {
|
|
124
|
-
MessageBanner.docs = {
|
|
125
|
-
componentGroup: 'Atom'
|
|
126
|
-
};
|
|
127
|
-
}
|