@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
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
|
|
3
|
-
border-radius: 50%;
|
|
4
|
-
box-shadow: 0 2px 3px 0 var(--zdt_plusicon_box_shadow);
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
background-color: var(--zdt_plusicon_bg);
|
|
7
|
-
}
|
|
8
|
-
.plusIcon {
|
|
9
|
-
border: 1px solid var(--zdt_plusicon_border);
|
|
10
|
-
}
|
|
11
|
-
.icon {
|
|
12
|
-
color: var(--zdt_plusicon_text);
|
|
13
|
-
}
|
|
14
|
-
.plusIcon:hover {
|
|
15
|
-
border-color: var(--zdt_plusicon_hover_border);
|
|
16
|
-
}
|
package/es/Provider.js
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { I18NProvider } from '@zohodesk/i18n';
|
|
3
|
-
import { Container } from '@zohodesk/components/lib/Layout';
|
|
4
|
-
import AppContainer from '@zohodesk/components/lib/AppContainer/AppContainer';
|
|
5
|
-
import LibraryContext from '@zohodesk/components/lib/Provider/LibraryContextInit';
|
|
6
|
-
import datetime from '@zohodesk/datetimejs';
|
|
7
|
-
import i18n from './i18n';
|
|
8
|
-
/* component pkg - default mode & themes */
|
|
9
|
-
|
|
10
|
-
import '@zohodesk/components/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css';
|
|
11
|
-
import '@zohodesk/components/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css';
|
|
12
|
-
import '@zohodesk/components/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css';
|
|
13
|
-
import '@zohodesk/components/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css';
|
|
14
|
-
import '@zohodesk/components/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css';
|
|
15
|
-
import '@zohodesk/components/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css';
|
|
16
|
-
import '@zohodesk/components/assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css';
|
|
17
|
-
import '@zohodesk/components/assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css';
|
|
18
|
-
import '@zohodesk/components/assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css';
|
|
19
|
-
import '@zohodesk/components/assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css';
|
|
20
|
-
import '@zohodesk/components/assets/Appearance/default/mode/defaultMode.module.css';
|
|
21
|
-
/* component pkg - dark mode & themes */
|
|
22
|
-
|
|
23
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css';
|
|
24
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css';
|
|
25
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css';
|
|
26
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css';
|
|
27
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css';
|
|
28
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css';
|
|
29
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css';
|
|
30
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css';
|
|
31
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css';
|
|
32
|
-
import '@zohodesk/components/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css';
|
|
33
|
-
import '@zohodesk/components/assets/Appearance/dark/mode/darkMode.module.css';
|
|
34
|
-
/* svg pkg - default mode & themes */
|
|
35
|
-
|
|
36
|
-
import '@zohodesk/svg/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css';
|
|
37
|
-
import '@zohodesk/svg/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css';
|
|
38
|
-
import '@zohodesk/svg/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css';
|
|
39
|
-
import '@zohodesk/svg/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css';
|
|
40
|
-
import '@zohodesk/svg/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css';
|
|
41
|
-
import '@zohodesk/svg/assets/Appearance/default/mode/defaultEmptyStates.module.css';
|
|
42
|
-
/* svg pkg - dark mode & themes */
|
|
43
|
-
|
|
44
|
-
import '@zohodesk/svg/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css';
|
|
45
|
-
import '@zohodesk/svg/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css';
|
|
46
|
-
import '@zohodesk/svg/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css';
|
|
47
|
-
import '@zohodesk/svg/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css';
|
|
48
|
-
import '@zohodesk/svg/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css';
|
|
49
|
-
import '@zohodesk/svg/assets/Appearance/dark/mode/darkEmptyStates.module.css';
|
|
50
|
-
import { setGlobalIdPrefix } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
51
|
-
import { setInitialZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
52
|
-
import Switch from '@zohodesk/components/lib/Switch/Switch';
|
|
53
|
-
/* dot pkg - default mode & themes */
|
|
54
|
-
|
|
55
|
-
import '../assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css';
|
|
56
|
-
import '../assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css';
|
|
57
|
-
import '../assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css';
|
|
58
|
-
import '../assets/Appearance/default/themes/red/redDefaultDotTheme.module.css';
|
|
59
|
-
import '../assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css';
|
|
60
|
-
import '../assets/Appearance/default/mode/dotDefaultMode.module.css';
|
|
61
|
-
/* dot pkg - dark mode & themes */
|
|
62
|
-
|
|
63
|
-
import '../assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css';
|
|
64
|
-
import '../assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css';
|
|
65
|
-
import '../assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css';
|
|
66
|
-
import '../assets/Appearance/dark/themes/red/redDarkDotTheme.module.css';
|
|
67
|
-
import '../assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css';
|
|
68
|
-
import '../assets/Appearance/dark/mode/dotDarkMode.module.css';
|
|
69
|
-
datetime.tz.set({
|
|
70
|
-
timezone: 'Asia/Kolkata',
|
|
71
|
-
_packed: '-5R.s -5R.k -5l.a -5u -6u|01234343|-4Fg5R.s BKo0.8 1rDcw.a 1r2LP.a 1un0 HB0 7zX0|15e6',
|
|
72
|
-
_default: 'Asia/Kolkata'
|
|
73
|
-
});
|
|
74
|
-
export default class Provider extends React.Component {
|
|
75
|
-
constructor(props) {
|
|
76
|
-
super(props);
|
|
77
|
-
setGlobalIdPrefix('ZD');
|
|
78
|
-
setInitialZIndex('10');
|
|
79
|
-
this.state = {
|
|
80
|
-
appearanceName: 'default',
|
|
81
|
-
themeName: 'blue'
|
|
82
|
-
};
|
|
83
|
-
this.switchMode = this.switchMode.bind(this);
|
|
84
|
-
this.setTheme = this.setTheme.bind(this);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
switchMode() {
|
|
88
|
-
let appearanceName = this.state.appearanceName;
|
|
89
|
-
|
|
90
|
-
if (appearanceName == 'default') {
|
|
91
|
-
this.setState({
|
|
92
|
-
appearanceName: 'dark'
|
|
93
|
-
});
|
|
94
|
-
} else {
|
|
95
|
-
this.setState({
|
|
96
|
-
appearanceName: 'default'
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
setTheme(theme) {
|
|
102
|
-
this.setState({
|
|
103
|
-
themeName: theme
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
render() {
|
|
108
|
-
let {
|
|
109
|
-
appearanceName,
|
|
110
|
-
themeName
|
|
111
|
-
} = this.state;
|
|
112
|
-
let themeClass = {
|
|
113
|
-
width: '20px',
|
|
114
|
-
height: '20px',
|
|
115
|
-
borderRadius: '3px',
|
|
116
|
-
display: 'flex',
|
|
117
|
-
border: '1px solid #ccc',
|
|
118
|
-
margin: '0 5px',
|
|
119
|
-
cursor: 'pointer',
|
|
120
|
-
backgroundColor: '#0a73eb'
|
|
121
|
-
};
|
|
122
|
-
let green = {
|
|
123
|
-
backgroundColor: '#26a942'
|
|
124
|
-
};
|
|
125
|
-
let red = {
|
|
126
|
-
backgroundColor: '#de3535'
|
|
127
|
-
};
|
|
128
|
-
let orange = {
|
|
129
|
-
backgroundColor: '#e57717'
|
|
130
|
-
};
|
|
131
|
-
let yellow = {
|
|
132
|
-
backgroundColor: '#e8b923'
|
|
133
|
-
};
|
|
134
|
-
return /*#__PURE__*/React.createElement(I18NProvider, {
|
|
135
|
-
i18n: i18n,
|
|
136
|
-
timeZone: "Asia/Kolkata",
|
|
137
|
-
datePattern: '',
|
|
138
|
-
dateTimeFormat: '',
|
|
139
|
-
timeFormat: '',
|
|
140
|
-
direction: 'ltr'
|
|
141
|
-
}, /*#__PURE__*/React.createElement(LibraryContext.Provider, {
|
|
142
|
-
value: {
|
|
143
|
-
isReducedMotion: false,
|
|
144
|
-
direction: 'ltr'
|
|
145
|
-
}
|
|
146
|
-
}, /*#__PURE__*/React.createElement(AppContainer, {
|
|
147
|
-
customProps: {
|
|
148
|
-
ExtraProps: {
|
|
149
|
-
'data-mode': appearanceName,
|
|
150
|
-
'data-theme': themeName
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
154
|
-
scroll: "vertical"
|
|
155
|
-
}, this.props.children), /*#__PURE__*/React.createElement("div", {
|
|
156
|
-
style: {
|
|
157
|
-
position: 'fixed',
|
|
158
|
-
bottom: '0',
|
|
159
|
-
backgroundColor: '#272727',
|
|
160
|
-
padding: '10px',
|
|
161
|
-
borderRadius: '15px 15px 0 0',
|
|
162
|
-
minWidth: '100px',
|
|
163
|
-
textAlign: 'center',
|
|
164
|
-
left: '50%',
|
|
165
|
-
transform: 'translate(-50%)',
|
|
166
|
-
boxShadow: '0 0 3px #000',
|
|
167
|
-
fontSize: '12px',
|
|
168
|
-
zIndex: '1000',
|
|
169
|
-
display: 'flex',
|
|
170
|
-
alignItems: 'center'
|
|
171
|
-
}
|
|
172
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Switch, {
|
|
173
|
-
id: "switchMode",
|
|
174
|
-
text: "Light/Night Mode",
|
|
175
|
-
labelSize: "small",
|
|
176
|
-
onChange: this.switchMode,
|
|
177
|
-
checked: appearanceName == 'dark'
|
|
178
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
179
|
-
style: {
|
|
180
|
-
display: 'flex'
|
|
181
|
-
}
|
|
182
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
183
|
-
title: "Blue Theme",
|
|
184
|
-
style: themeClass,
|
|
185
|
-
onClick: () => this.setTheme('blue')
|
|
186
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
187
|
-
title: "Green Theme",
|
|
188
|
-
style: Object.assign({}, themeClass, green),
|
|
189
|
-
onClick: () => this.setTheme('green')
|
|
190
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
191
|
-
title: "Red Theme",
|
|
192
|
-
style: Object.assign({}, themeClass, red),
|
|
193
|
-
onClick: () => this.setTheme('red')
|
|
194
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
195
|
-
title: "Orange Theme",
|
|
196
|
-
style: Object.assign({}, themeClass, orange),
|
|
197
|
-
onClick: () => this.setTheme('orange')
|
|
198
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
199
|
-
title: "Yellow Theme",
|
|
200
|
-
style: Object.assign({}, themeClass, yellow),
|
|
201
|
-
onClick: () => this.setTheme('yellow')
|
|
202
|
-
}))))));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
}
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types'; //components
|
|
5
|
-
|
|
6
|
-
import Icon from '@zohodesk/icons/lib/Icon';
|
|
7
|
-
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
8
|
-
import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
9
|
-
import { useUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
10
|
-
import AutoClose from '../actions/AutoClose';
|
|
11
|
-
import a11yStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css'; //style
|
|
12
|
-
|
|
13
|
-
import style from './ToastMessage.module.css';
|
|
14
|
-
|
|
15
|
-
function removeClose(e) {
|
|
16
|
-
e && e.stopPropagation && e.stopPropagation();
|
|
17
|
-
e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation && e.nativeEvent.stopImmediatePropagation();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function ToastMessageUI(props) {
|
|
21
|
-
let [messageState, setMessageState] = useState(props.messageState);
|
|
22
|
-
let {
|
|
23
|
-
type,
|
|
24
|
-
subject,
|
|
25
|
-
info,
|
|
26
|
-
submitText,
|
|
27
|
-
cancelText,
|
|
28
|
-
iconName,
|
|
29
|
-
iconSize,
|
|
30
|
-
submitType,
|
|
31
|
-
isIconMid,
|
|
32
|
-
needClose,
|
|
33
|
-
iconPalette,
|
|
34
|
-
isMore,
|
|
35
|
-
message,
|
|
36
|
-
isAnimate,
|
|
37
|
-
getLeftContainer,
|
|
38
|
-
getInnerBottomContainer,
|
|
39
|
-
getBottomContainer,
|
|
40
|
-
getSubmitContainer,
|
|
41
|
-
onSubmit,
|
|
42
|
-
onCancel,
|
|
43
|
-
dataId,
|
|
44
|
-
isClose,
|
|
45
|
-
onClose,
|
|
46
|
-
needAutoZindex,
|
|
47
|
-
a11y
|
|
48
|
-
} = props;
|
|
49
|
-
|
|
50
|
-
function onClickSubmit(e) {
|
|
51
|
-
onSubmit && onSubmit();
|
|
52
|
-
onClose && onClose();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function onClickCancel(e) {
|
|
56
|
-
onCancel && onCancel();
|
|
57
|
-
onClose && onClose();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function changeMessageState(e) {
|
|
61
|
-
removeClose(e);
|
|
62
|
-
setMessageState(!messageState);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
let animateClass = isClose ? style.rightanimate : style.leftanimate;
|
|
66
|
-
let animateRemoveClass = isClose ? style.rightanimate : style.leftnoanimate;
|
|
67
|
-
let channelIcon = /*#__PURE__*/React.createElement(Icon, {
|
|
68
|
-
iconClass: style[iconPalette],
|
|
69
|
-
name: iconName,
|
|
70
|
-
size: iconSize
|
|
71
|
-
});
|
|
72
|
-
let getNextIndex = useZIndex();
|
|
73
|
-
let Zindex = isAnimate ? getNextIndex() : null,
|
|
74
|
-
getNextId = useUniqueId(),
|
|
75
|
-
titleId = getNextId(),
|
|
76
|
-
infoId = getNextId();
|
|
77
|
-
let {
|
|
78
|
-
role = 'alert',
|
|
79
|
-
ariaLive = 'assertive',
|
|
80
|
-
ariaAtomic = true,
|
|
81
|
-
ariaDescribedby = infoId,
|
|
82
|
-
ariaLabelledby = titleId
|
|
83
|
-
} = a11y;
|
|
84
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
85
|
-
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass} ${style[`alert${type}`] ? style[`alert${type}`] : ''}`,
|
|
86
|
-
isCover: false,
|
|
87
|
-
dataId: dataId,
|
|
88
|
-
style: needAutoZindex && isAnimate ? {
|
|
89
|
-
zIndex: `${Zindex}`
|
|
90
|
-
} : {},
|
|
91
|
-
role: role,
|
|
92
|
-
"aria-live": ariaLive,
|
|
93
|
-
"aria-atomic": ariaAtomic,
|
|
94
|
-
"aria-describedby": ariaDescribedby,
|
|
95
|
-
"aria-labelledby": ariaLabelledby
|
|
96
|
-
}, type !== 'custom' ? /*#__PURE__*/React.createElement(Box, {
|
|
97
|
-
className: style.alertifychild,
|
|
98
|
-
flexible: true
|
|
99
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
100
|
-
alignBox: "row",
|
|
101
|
-
className: style.alertifybanner
|
|
102
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
103
|
-
className: style.alertleft,
|
|
104
|
-
flexible: true
|
|
105
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
106
|
-
align: isIconMid ? 'vertical' : '',
|
|
107
|
-
alignBox: "row"
|
|
108
|
-
}, type != 'success' && !getLeftContainer ? /*#__PURE__*/React.createElement(Box, {
|
|
109
|
-
className: `${style.alertico}`
|
|
110
|
-
}, /*#__PURE__*/React.createElement("span", null, channelIcon)) : getLeftContainer ? /*#__PURE__*/React.createElement(Box, {
|
|
111
|
-
className: `${style.alertico}`
|
|
112
|
-
}, getLeftContainer()) : null, /*#__PURE__*/React.createElement(Box, {
|
|
113
|
-
flexible: true
|
|
114
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
115
|
-
align: "vertical",
|
|
116
|
-
alignBox: "row",
|
|
117
|
-
isCover: false
|
|
118
|
-
}, type == 'success' ? /*#__PURE__*/React.createElement(Box, {
|
|
119
|
-
className: style.alertTitleLeft
|
|
120
|
-
}, channelIcon) : null, /*#__PURE__*/React.createElement(Box, {
|
|
121
|
-
className: style.alertTitle,
|
|
122
|
-
flexible: true,
|
|
123
|
-
"data-title": subject,
|
|
124
|
-
id: titleId
|
|
125
|
-
}, subject)), info ? /*#__PURE__*/React.createElement("p", {
|
|
126
|
-
className: style.alertMessage,
|
|
127
|
-
"data-title": info,
|
|
128
|
-
id: infoId
|
|
129
|
-
}, info) : null, getInnerBottomContainer ? /*#__PURE__*/React.createElement("div", null, getInnerBottomContainer()) : null), type == 'information' && needClose ? /*#__PURE__*/React.createElement(Box, {
|
|
130
|
-
className: `${a11yStyle.buttonReset} ${style.closeIconPrimary}`,
|
|
131
|
-
onClick: onClose,
|
|
132
|
-
dataId: `${dataId}_close`,
|
|
133
|
-
tagName: "button"
|
|
134
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
135
|
-
isBold: true,
|
|
136
|
-
name: "ZD-close",
|
|
137
|
-
size: "18"
|
|
138
|
-
})) : null)), type != 'information' ? /*#__PURE__*/React.createElement(Box, {
|
|
139
|
-
className: style.alertright
|
|
140
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
141
|
-
className: style.alerttab
|
|
142
|
-
}, needClose ? /*#__PURE__*/React.createElement("button", {
|
|
143
|
-
className: `${a11yStyle.buttonReset} ${style.closeIcon}`,
|
|
144
|
-
onClick: onClose,
|
|
145
|
-
"data-id": `${dataId}_closeRight`
|
|
146
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
147
|
-
name: "ZD-close",
|
|
148
|
-
size: "18"
|
|
149
|
-
})) : null, submitText ? /*#__PURE__*/React.createElement(Box, {
|
|
150
|
-
className: `${getSubmitContainer ? style.sumbitBorder : cancelText ? style.notSolo : style.mainbutton} ${getSubmitContainer ? '' : style[submitType]} `,
|
|
151
|
-
flexible: true,
|
|
152
|
-
onClick: onClickSubmit,
|
|
153
|
-
dataId: `${dataId}_submitButton`
|
|
154
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
155
|
-
align: "vertical",
|
|
156
|
-
alignBox: "row"
|
|
157
|
-
}, getSubmitContainer ? /*#__PURE__*/React.createElement(Box, {
|
|
158
|
-
flexible: true
|
|
159
|
-
}, getSubmitContainer()) : /*#__PURE__*/React.createElement(Box, {
|
|
160
|
-
className: `${a11yStyle.buttonReset} ${style.buttonText}`,
|
|
161
|
-
flexible: true,
|
|
162
|
-
tagName: "button"
|
|
163
|
-
}, submitText))) : null, cancelText ? /*#__PURE__*/React.createElement(Box, {
|
|
164
|
-
className: `${style.cancelButton}`,
|
|
165
|
-
flexible: true,
|
|
166
|
-
onClick: onClose,
|
|
167
|
-
dataId: `${dataId}_cancelButton`
|
|
168
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
169
|
-
align: "vertical",
|
|
170
|
-
alignBox: "row"
|
|
171
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
172
|
-
className: `${a11yStyle.buttonReset} ${style.buttonText}`,
|
|
173
|
-
flexible: true,
|
|
174
|
-
onClick: onClickCancel,
|
|
175
|
-
dataId: `${dataId}_cancelButtonInner`,
|
|
176
|
-
tagName: "button"
|
|
177
|
-
}, cancelText), isMore ? /*#__PURE__*/React.createElement(Box, {
|
|
178
|
-
className: `${a11yStyle.buttonReset} ${style.dropdown}`,
|
|
179
|
-
onClick: changeMessageState,
|
|
180
|
-
dataId: `${dataId}_moreIcon`,
|
|
181
|
-
tagName: "button",
|
|
182
|
-
"aria-expanded": messageState ? true : false,
|
|
183
|
-
"aria-haspopup": true
|
|
184
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
185
|
-
name: "ZD-down",
|
|
186
|
-
size: "7"
|
|
187
|
-
})) : null)) : null)) : null)) : null, isMore ? /*#__PURE__*/React.createElement(Box, {
|
|
188
|
-
className: `${style.message} ${messageState ? '' : style.messageOff}`,
|
|
189
|
-
tagName: "p"
|
|
190
|
-
}, message) : null, getBottomContainer ? /*#__PURE__*/React.createElement(Box, null, getBottomContainer()) : null);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export default function ToastMessage(props) {
|
|
194
|
-
return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
|
|
195
|
-
Element: ToastMessageUI
|
|
196
|
-
}));
|
|
197
|
-
}
|
|
198
|
-
ToastMessage.propTypes = {
|
|
199
|
-
autoClose: PropTypes.bool,
|
|
200
|
-
cancelText: PropTypes.string,
|
|
201
|
-
dataId: PropTypes.string,
|
|
202
|
-
getBottomContainer: PropTypes.func,
|
|
203
|
-
getInnerBottomContainer: PropTypes.func,
|
|
204
|
-
getLeftContainer: PropTypes.func,
|
|
205
|
-
getSubmitContainer: PropTypes.func,
|
|
206
|
-
hidePopNotification: PropTypes.func,
|
|
207
|
-
hideTime: PropTypes.string,
|
|
208
|
-
iconName: PropTypes.string,
|
|
209
|
-
iconPalette: PropTypes.oneOf(['successFill', 'dangerFill', 'dangerShadow', 'successPlain', 'dangerPlain', 'primaryPlain']),
|
|
210
|
-
iconSize: PropTypes.string,
|
|
211
|
-
id: PropTypes.string,
|
|
212
|
-
info: PropTypes.string,
|
|
213
|
-
isAnimate: PropTypes.bool,
|
|
214
|
-
isClose: PropTypes.bool,
|
|
215
|
-
isIconMid: PropTypes.bool,
|
|
216
|
-
isMore: PropTypes.bool,
|
|
217
|
-
message: PropTypes.string,
|
|
218
|
-
messageState: PropTypes.bool,
|
|
219
|
-
needClose: PropTypes.bool,
|
|
220
|
-
onCancel: PropTypes.func,
|
|
221
|
-
onSubmit: PropTypes.func,
|
|
222
|
-
subject: PropTypes.string,
|
|
223
|
-
submitText: PropTypes.string,
|
|
224
|
-
submitType: PropTypes.oneOf(['primary', 'danger', 'success']),
|
|
225
|
-
type: PropTypes.oneOf(['primary', 'information', 'secondary', 'success', 'custom']),
|
|
226
|
-
needAutoZindex: PropTypes.bool,
|
|
227
|
-
a11y: PropTypes.shape({
|
|
228
|
-
role: PropTypes.string,
|
|
229
|
-
ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off']),
|
|
230
|
-
ariaAtomic: PropTypes.bool,
|
|
231
|
-
ariaDescribedby: PropTypes.string,
|
|
232
|
-
ariaLabelledby: PropTypes.string
|
|
233
|
-
})
|
|
234
|
-
};
|
|
235
|
-
ToastMessage.defaultProps = {
|
|
236
|
-
iconName: 'bell',
|
|
237
|
-
iconSize: '30',
|
|
238
|
-
submitType: 'primary',
|
|
239
|
-
isIconMid: false,
|
|
240
|
-
needClose: false,
|
|
241
|
-
type: 'primary',
|
|
242
|
-
isMore: false,
|
|
243
|
-
messageState: false,
|
|
244
|
-
isAnimate: true,
|
|
245
|
-
isClose: false,
|
|
246
|
-
autoClose: false,
|
|
247
|
-
hideTime: '3000',
|
|
248
|
-
dataId: 'toastMessage',
|
|
249
|
-
needAutoZindex: true,
|
|
250
|
-
a11y: {}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
if (false) {
|
|
254
|
-
ToastMessage.docs = {
|
|
255
|
-
componentGroup: 'Atom'
|
|
256
|
-
};
|
|
257
|
-
}
|