@zohodesk/dot 1.9.2 → 1.9.4
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 +22 -0
- package/_react-cli.config.js +27 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +425 -422
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +425 -422
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +425 -422
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +16 -16
- package/cbt.config.js +41 -0
- package/es/AlphabeticList/AlphabeticList.module.css +0 -0
- package/es/AttachmentViewer/AttachmentViewer.js +20 -24
- package/es/AudioPlayer/Timer/__tests__/Timer.spec.js +1 -2
- package/es/AudioPlayer/__tests__/AudioPlayer.spec.js +39 -38
- package/es/ChannelIcon/ChannelIcon.js +11 -13
- package/es/DotProvider/DotProvider.js +4 -2
- package/es/Drawer/Drawer.js +5 -4
- package/es/ExternalLink/ExternalLink.js +5 -4
- package/es/ExternalLink/ExternalLink.module.css +0 -0
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/es/FlipCard/FlipCard.js +12 -14
- package/es/IconButton/IconButton.js +5 -4
- package/es/Link/Link.js +10 -8
- package/es/Message/Message.js +5 -4
- package/es/Onboarding/Onboarding.js +25 -33
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/Separator/Separator.module.css +5 -5
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.js +4 -2
- package/es/ToastMessage/ToastMessage.module.css +0 -0
- package/es/actions/AutoClose.js +1 -2
- package/es/alert/AlertLookup/AlertLookup.js +12 -14
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/dot_layer.module.css +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/es/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/es/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/form/fields/DateField/DateField.js +13 -14
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +17 -19
- package/es/form/fields/SelectField/SelectField.js +13 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +20 -20
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +13 -14
- package/es/form/fields/TextEditor/TextEditor.module.css +0 -0
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/form/fields/TextareaField/TextareaField.js +14 -15
- package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -2
- package/es/form/layout/Field/Field.js +0 -0
- package/es/form/layout/Section/Section.js +0 -0
- package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +17 -10
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/GridStencils/GridStencils.module.css +14 -5
- package/es/list/ListLayout/ListLayout.js +5 -4
- package/es/list/SecondaryText/AccountName.js +6 -4
- package/es/list/SecondaryText/ContactName.js +6 -4
- package/es/list/SecondaryText/Email.js +5 -4
- package/es/list/SecondaryText/PhoneNumber.js +5 -4
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/SecondaryText/Website.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.js +0 -0
- package/es/list/Subject/Subject.js +6 -4
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +11 -7
- package/es/list/status/StatusListItem/StatusListItem.module.css +38 -17
- package/es/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
- package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/es/list/status/StatusListItem/props/propTypes.js +2 -1
- package/es/lookup/EmptyPage/EmptyPage.js +0 -0
- package/es/lookup/Lookup/Lookup.js +5 -4
- package/es/lookup/Lookup/Lookup.module.css +0 -0
- package/es/lookup/header/Search/Search.js +3 -5
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
- package/es/setup/helptips/Link/Link.js +0 -0
- package/es/setup/helptips/Title/Title.js +0 -0
- package/es/setup/table/Text/TableText.module.css +0 -0
- package/es/setup/table/Text/Text.js +0 -0
- package/es/version2/GlobalNotification/GlobalNotification.js +9 -8
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/lib/AlphabeticList/AlphabeticList.module.css +0 -0
- package/lib/Drawer/Drawer.js +0 -0
- package/lib/ExternalLink/ExternalLink.js +0 -0
- package/lib/ExternalLink/ExternalLink.module.css +0 -0
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/Link/Link.js +0 -0
- package/lib/PlusIcon/PlusIcon.js +0 -0
- package/lib/Separator/Separator.module.css +5 -5
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.js +0 -0
- package/lib/ToastMessage/ToastMessage.module.css +0 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
- package/lib/dot_layer.module.css +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +0 -0
- package/lib/form/layout/Field/Field.js +0 -0
- package/lib/form/layout/Section/Section.js +0 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +16 -10
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/GridStencils/GridStencils.module.css +14 -5
- package/lib/list/SecondaryText/Website.js +0 -0
- package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
- package/lib/list/Subject/Subject.js +1 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +7 -3
- package/lib/list/status/StatusListItem/StatusListItem.module.css +38 -17
- package/lib/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
- package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/lib/list/status/StatusListItem/props/propTypes.js +2 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
- package/lib/lookup/Lookup/Lookup.js +0 -0
- package/lib/lookup/Lookup/Lookup.module.css +0 -0
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
- package/lib/setup/helptips/Link/Link.js +0 -0
- package/lib/setup/helptips/Title/Title.js +0 -0
- package/lib/setup/table/Text/TableText.module.css +0 -0
- package/lib/setup/table/Text/Text.js +0 -0
- package/package.json +16 -20
- package/es/v1/ActionButton/ActionButton.js +0 -155
- package/es/v1/ActionButton/props/defaultProps.js +0 -19
- package/es/v1/ActionButton/props/propTypes.js +0 -37
- package/es/v1/AlphabeticList/AlphabeticList.js +0 -94
- package/es/v1/AlphabeticList/props/defaultProps.js +0 -12
- package/es/v1/AlphabeticList/props/propTypes.js +0 -23
- package/es/v1/Attachment/Attachment.js +0 -96
- package/es/v1/Attachment/props/defaultProps.js +0 -8
- package/es/v1/Attachment/props/propTypes.js +0 -18
- package/es/v1/AttachmentViewer/AttachmentImage.js +0 -81
- package/es/v1/AttachmentViewer/AttachmentViewer.js +0 -626
- package/es/v1/AttachmentViewer/props/defaultProps.js +0 -11
- package/es/v1/AttachmentViewer/props/propTypes.js +0 -36
- package/es/v1/ChannelIcon/ChannelIcon.js +0 -93
- package/es/v1/ChannelIcon/props/defaultProps.js +0 -7
- package/es/v1/ChannelIcon/props/propTypes.js +0 -25
- package/es/v1/Drawer/Drawer.js +0 -270
- package/es/v1/Drawer/props/defaultProps.js +0 -23
- package/es/v1/Drawer/props/propTypes.js +0 -53
- package/es/v1/ExternalLink/ExternalLink.js +0 -48
- package/es/v1/ExternalLink/props/defaultProps.js +0 -5
- package/es/v1/ExternalLink/props/propTypes.js +0 -12
- package/es/v1/FlipCard/FlipCard.js +0 -132
- package/es/v1/FlipCard/props/defaultProps.js +0 -5
- package/es/v1/FlipCard/props/propTypes.js +0 -37
- package/es/v1/FormAction/FormAction.js +0 -75
- package/es/v1/FormAction/props/defaultProps.js +0 -5
- package/es/v1/FormAction/props/propTypes.js +0 -8
- package/es/v1/FreezeLayer/FreezeLayer.js +0 -74
- package/es/v1/FreezeLayer/props/defaultProps.js +0 -9
- package/es/v1/FreezeLayer/props/propTypes.js +0 -19
- package/es/v1/GlobalNotification/GlobalNotification.js +0 -144
- package/es/v1/GlobalNotification/props/defaultProps.js +0 -6
- package/es/v1/GlobalNotification/props/propTypes.js +0 -42
- package/es/v1/IconButton/IconButton.js +0 -112
- package/es/v1/IconButton/props/defaultProps.js +0 -17
- package/es/v1/IconButton/props/propTypes.js +0 -33
- package/es/v1/Image/Image.js +0 -36
- package/es/v1/Image/props/defaultProps.js +0 -4
- package/es/v1/Image/props/propTypes.js +0 -15
- package/es/v1/ImportantNotes/ImportantNotes.js +0 -41
- package/es/v1/ImportantNotes/props/defaultProps.js +0 -6
- package/es/v1/ImportantNotes/props/propTypes.js +0 -10
- package/es/v1/Link/Link.js +0 -93
- package/es/v1/Link/props/defaultProps.js +0 -5
- package/es/v1/Link/props/propTypes.js +0 -18
- package/es/v1/Loader/Loader.js +0 -15
- package/es/v1/Message/Message.js +0 -91
- package/es/v1/Message/props/defaultProps.js +0 -4
- package/es/v1/Message/props/propTypes.js +0 -20
- package/es/v1/MessageBanner/MessageBanner.js +0 -60
- package/es/v1/MessageBanner/props/defaultProps.js +0 -7
- package/es/v1/MessageBanner/props/propTypes.js +0 -13
- package/es/v1/NewStar/NewStar.js +0 -61
- package/es/v1/NewStar/props/defaultProps.js +0 -4
- package/es/v1/NewStar/props/propTypes.js +0 -6
- package/es/v1/PlusIcon/PlusIcon.js +0 -32
- package/es/v1/PlusIcon/props/defaultProps.js +0 -8
- package/es/v1/PlusIcon/props/propTypes.js +0 -11
- package/es/v1/Separator/Separator.js +0 -53
- package/es/v1/Separator/props/defaultProps.js +0 -12
- package/es/v1/Separator/props/propTypes.js +0 -11
- package/es/v1/TagWithIcon/TagWithIcon.js +0 -39
- package/es/v1/TagWithIcon/props/defaultProps.js +0 -8
- package/es/v1/TagWithIcon/props/propTypes.js +0 -13
- package/es/v1/ToastMessage/ToastMessage.js +0 -201
- package/es/v1/ToastMessage/props/defaultProps.js +0 -18
- package/es/v1/ToastMessage/props/propTypes.js +0 -40
- package/es/v1/Upload/Upload.js +0 -69
- package/es/v1/Upload/props/defaultProps.js +0 -7
- package/es/v1/Upload/props/propTypes.js +0 -17
- package/es/v1/actions/AutoClose.js +0 -44
- package/es/v1/actions/props/defaultProps.js +0 -3
- package/es/v1/actions/props/propTypes.js +0 -8
- package/es/v1/alert/AlertClose/AlertClose.js +0 -43
- package/es/v1/alert/AlertClose/props/propTypes.js +0 -8
- package/es/v1/alert/AlertHeader/AlertHeader.js +0 -82
- package/es/v1/alert/AlertHeader/props/defaultProps.js +0 -12
- package/es/v1/alert/AlertHeader/props/propTypes.js +0 -20
- package/es/v1/alert/AlertLookup/AlertLookup.js +0 -166
- package/es/v1/alert/AlertLookup/props/defaultProps.js +0 -13
- package/es/v1/alert/AlertLookup/props/propTypes.js +0 -36
- package/es/v1/alert/alertIcons/AlarmAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/AlertIcons.js +0 -57
- package/es/v1/alert/alertIcons/DangerAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/ErrorAlertIcon.js +0 -70
- package/es/v1/alert/alertIcons/InfoAlertIcon.js +0 -74
- package/es/v1/alert/alertIcons/NotificationAlertIcon.js +0 -70
- package/es/v1/alert/alertIcons/SuccessAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/WarningAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/index.js +0 -8
- package/es/v1/alert/alertIcons/props/defaultProps.js +0 -27
- package/es/v1/alert/alertIcons/props/propTypes.js +0 -34
- package/es/v1/alert/index.js +0 -2
- package/es/v1/avatar/AvatarClose/AvatarClose.js +0 -47
- package/es/v1/avatar/AvatarClose/props/defaultProps.js +0 -7
- package/es/v1/avatar/AvatarClose/props/propTypes.js +0 -15
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +0 -51
- package/es/v1/avatar/AvatarCollision/props/defaultProps.js +0 -8
- package/es/v1/avatar/AvatarCollision/props/propTypes.js +0 -17
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +0 -48
- package/es/v1/avatar/AvatarIcon/props/defaultProps.js +0 -14
- package/es/v1/avatar/AvatarIcon/props/propTypes.js +0 -20
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -59
- package/es/v1/avatar/AvatarStatus/props/defaultProps.js +0 -12
- package/es/v1/avatar/AvatarStatus/props/propTypes.js +0 -26
- package/es/v1/avatar/AvatarThread/AvatarThread.js +0 -72
- package/es/v1/avatar/AvatarThread/props/defaultProps.js +0 -9
- package/es/v1/avatar/AvatarThread/props/propTypes.js +0 -30
- package/es/v1/avatar/AvatarUser/AvatarUser.js +0 -110
- package/es/v1/avatar/AvatarUser/props/defaultProps.js +0 -8
- package/es/v1/avatar/AvatarUser/props/propTypes.js +0 -35
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -94
- package/es/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -9
- package/es/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -25
- package/es/v1/avatar/index.js +0 -7
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -880
- package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -29
- package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -83
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -64
- package/es/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -10
- package/es/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -21
- package/es/v1/emptystate/EditionPage/EditionPage.js +0 -51
- package/es/v1/emptystate/EditionPage/props/defaultProps.js +0 -5
- package/es/v1/emptystate/EditionPage/props/propTypes.js +0 -11
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +0 -60
- package/es/v1/errorstate/Inconvenience/props/defaultProps.js +0 -8
- package/es/v1/errorstate/Inconvenience/props/propTypes.js +0 -16
- package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -64
- package/es/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -8
- package/es/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -16
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -64
- package/es/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -8
- package/es/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -16
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -9
- package/es/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -17
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -64
- package/es/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -8
- package/es/v1/errorstate/UrlNotFound/props/propTypes.js +0 -16
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -64
- package/es/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -8
- package/es/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -16
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -130
- package/es/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -12
- package/es/v1/form/fields/CheckBoxField/props/propTypes.js +0 -29
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +0 -160
- package/es/v1/form/fields/CurrencyField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/CurrencyField/props/propTypes.js +0 -39
- package/es/v1/form/fields/DateField/DateField.js +0 -164
- package/es/v1/form/fields/DateField/props/defaultProps.js +0 -19
- package/es/v1/form/fields/DateField/props/propTypes.js +0 -39
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +0 -66
- package/es/v1/form/fields/FieldContainer/props/defaultProps.js +0 -6
- package/es/v1/form/fields/FieldContainer/props/propTypes.js +0 -24
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -190
- package/es/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/MultiSelectField/props/propTypes.js +0 -50
- package/es/v1/form/fields/PhoneField/PhoneField.js +0 -161
- package/es/v1/form/fields/PhoneField/props/defaultProps.js +0 -16
- package/es/v1/form/fields/PhoneField/props/propTypes.js +0 -47
- package/es/v1/form/fields/RadioField/RadioField.js +0 -144
- package/es/v1/form/fields/RadioField/props/defaultProps.js +0 -13
- package/es/v1/form/fields/RadioField/props/propTypes.js +0 -33
- package/es/v1/form/fields/RadioField/useRadio.js +0 -44
- package/es/v1/form/fields/SelectField/SelectField.js +0 -160
- package/es/v1/form/fields/SelectField/props/defaultProps.js +0 -18
- package/es/v1/form/fields/SelectField/props/propTypes.js +0 -50
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -333
- package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -16
- package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -57
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -276
- package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -23
- package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -71
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +0 -144
- package/es/v1/form/fields/TextBoxField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/TextBoxField/props/propTypes.js +0 -44
- package/es/v1/form/fields/TextEditor/TextEditor.js +0 -418
- package/es/v1/form/fields/TextEditor/props/defaultProps.js +0 -16
- package/es/v1/form/fields/TextEditor/props/propTypes.js +0 -53
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +0 -159
- package/es/v1/form/fields/TextEditorField/props/defaultProps.js +0 -15
- package/es/v1/form/fields/TextEditorField/props/propTypes.js +0 -59
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -163
- package/es/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -9
- package/es/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -40
- package/es/v1/form/fields/TextareaField/TextareaField.js +0 -140
- package/es/v1/form/fields/TextareaField/props/defaultProps.js +0 -15
- package/es/v1/form/fields/TextareaField/props/propTypes.js +0 -35
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -58
- package/es/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -7
- package/es/v1/form/fields/ValidationMessage/props/propTypes.js +0 -16
- package/es/v1/form/fields/index.js +0 -16
- package/es/v1/form/fields/props/FieldCommonDefaultProps.js +0 -10
- package/es/v1/form/fields/props/FieldCommonPropTypes.js +0 -17
- package/es/v1/form/layout/Field/Field.js +0 -29
- package/es/v1/form/layout/Field/props/defaultProps.js +0 -4
- package/es/v1/form/layout/Field/props/propTypes.js +0 -10
- package/es/v1/form/layout/Section/Section.js +0 -30
- package/es/v1/form/layout/Section/props/propTypes.js +0 -11
- package/es/v1/form/layout/index.js +0 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -174
- package/es/v1/layout/SetupDetailLayout/index.js +0 -4
- package/es/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -20
- package/es/v1/layout/SetupDetailLayout/props/propTypes.js +0 -40
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +0 -126
- package/es/v1/layout/SubtabLayout/index.js +0 -4
- package/es/v1/layout/SubtabLayout/props/defaultProps.js +0 -25
- package/es/v1/layout/SubtabLayout/props/propTypes.js +0 -40
- package/es/v1/list/AvatarFlip/AvatarFlip.js +0 -73
- package/es/v1/list/AvatarFlip/props/defaultProps.js +0 -6
- package/es/v1/list/AvatarFlip/props/propTypes.js +0 -29
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +0 -21
- package/es/v1/list/BluePrintStatus/props/propTypes.js +0 -4
- package/es/v1/list/Comment/Comment.js +0 -35
- package/es/v1/list/Comment/props/defaultProps.js +0 -4
- package/es/v1/list/Comment/props/propTypes.js +0 -7
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -85
- package/es/v1/list/DepartmentDropDown/props/defaultProps.js +0 -7
- package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -24
- package/es/v1/list/Dot/Dot.js +0 -15
- package/es/v1/list/Dot/props/defaultProps.js +0 -4
- package/es/v1/list/Dot/props/propTypes.js +0 -5
- package/es/v1/list/DotNew/DotNew.js +0 -22
- package/es/v1/list/DotNew/props/defaultProps.js +0 -3
- package/es/v1/list/DotNew/props/propTypes.js +0 -6
- package/es/v1/list/GridStencils/GridStencils.js +0 -31
- package/es/v1/list/GridStencils/props/propTypes.js +0 -8
- package/es/v1/list/Icons/AddNewIcon.js +0 -25
- package/es/v1/list/Icons/CompleteIcon.js +0 -27
- package/es/v1/list/Icons/DeleteIcon.js +0 -28
- package/es/v1/list/Icons/EditIcon.js +0 -28
- package/es/v1/list/Icons/FloatingIcons.js +0 -23
- package/es/v1/list/Icons/ReadUnreadIcon.js +0 -32
- package/es/v1/list/Icons/SmartIcon.js +0 -25
- package/es/v1/list/Icons/index.js +0 -7
- package/es/v1/list/Icons/props/defaultProps.js +0 -6
- package/es/v1/list/Icons/props/propTypes.js +0 -53
- package/es/v1/list/ListLayout/ListLayout.js +0 -68
- package/es/v1/list/ListLayout/props/defaultProps.js +0 -11
- package/es/v1/list/ListLayout/props/propTypes.js +0 -27
- package/es/v1/list/ListStencils/ListStencils.js +0 -44
- package/es/v1/list/ListStencils/props/defaultProps.js +0 -3
- package/es/v1/list/ListStencils/props/propTypes.js +0 -4
- package/es/v1/list/SecondaryText/AccountName.js +0 -77
- package/es/v1/list/SecondaryText/ContactName.js +0 -76
- package/es/v1/list/SecondaryText/DepartmentText.js +0 -18
- package/es/v1/list/SecondaryText/Email.js +0 -47
- package/es/v1/list/SecondaryText/HappinessRating.js +0 -23
- package/es/v1/list/SecondaryText/PhoneNumber.js +0 -51
- package/es/v1/list/SecondaryText/PriorityText.js +0 -21
- package/es/v1/list/SecondaryText/SecondaryText.js +0 -27
- package/es/v1/list/SecondaryText/StatusText.js +0 -22
- package/es/v1/list/SecondaryText/TicketId.js +0 -41
- package/es/v1/list/SecondaryText/Website.js +0 -35
- package/es/v1/list/SecondaryText/index.js +0 -11
- package/es/v1/list/SecondaryText/props/defaultProps.js +0 -44
- package/es/v1/list/SecondaryText/props/propTypes.js +0 -142
- package/es/v1/list/SecondryPanel/SecondryPanel.js +0 -87
- package/es/v1/list/SecondryPanel/props/defaultProps.js +0 -18
- package/es/v1/list/SecondryPanel/props/propTypes.js +0 -27
- package/es/v1/list/SentimentStatus/SentimentStatus.js +0 -23
- package/es/v1/list/SentimentStatus/props/propTypes.js +0 -5
- package/es/v1/list/Subject/Subject.js +0 -52
- package/es/v1/list/Subject/props/defaultProps.js +0 -8
- package/es/v1/list/Subject/props/propTypes.js +0 -20
- package/es/v1/list/TagNew/TagNew.js +0 -24
- package/es/v1/list/TagNew/props/defaultProps.js +0 -4
- package/es/v1/list/TagNew/props/propTypes.js +0 -8
- package/es/v1/list/Thread/Thread.js +0 -33
- package/es/v1/list/Thread/props/defaultProps.js +0 -4
- package/es/v1/list/Thread/props/propTypes.js +0 -8
- package/es/v1/list/index.js +0 -16
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +0 -307
- package/es/v1/list/status/StatusDropdown/props/defaultProps.js +0 -22
- package/es/v1/list/status/StatusDropdown/props/propTypes.js +0 -60
- package/es/v1/list/status/StatusListItem/StatusListItem.js +0 -108
- package/es/v1/list/status/StatusListItem/props/defaultProps.js +0 -16
- package/es/v1/list/status/StatusListItem/props/propTypes.js +0 -31
- package/es/v1/list/status/index.js +0 -2
- package/es/v1/lookup/EmptyPage/EmptyPage.js +0 -54
- package/es/v1/lookup/EmptyPage/props/defaultProps.js +0 -4
- package/es/v1/lookup/EmptyPage/props/propTypes.js +0 -5
- package/es/v1/lookup/Lookup/Lookup.js +0 -116
- package/es/v1/lookup/Lookup/props/defaultProps.js +0 -9
- package/es/v1/lookup/Lookup/props/propTypes.js +0 -24
- package/es/v1/lookup/Section/Section.js +0 -18
- package/es/v1/lookup/Section/props/propTypes.js +0 -6
- package/es/v1/lookup/header/Close/Close.js +0 -30
- package/es/v1/lookup/header/Close/props/defaultProps.js +0 -3
- package/es/v1/lookup/header/Close/props/propTypes.js +0 -6
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -89
- package/es/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -9
- package/es/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -20
- package/es/v1/lookup/header/Search/Search.js +0 -179
- package/es/v1/lookup/header/Search/props/defaultProps.js +0 -5
- package/es/v1/lookup/header/Search/props/propTypes.js +0 -28
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +0 -108
- package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -10
- package/es/v1/lookup/header/TicketHeader/props/propTypes.js +0 -21
- package/es/v1/lookup/header/Title/Title.js +0 -27
- package/es/v1/lookup/header/Title/props/defaultProps.js +0 -3
- package/es/v1/lookup/header/Title/props/propTypes.js +0 -6
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -194
- package/es/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -10
- package/es/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -27
- package/es/v1/lookup/header/index.js +0 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +0 -190
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +0 -17
- package/es/v1/notification/DesktopNotification/props/propTypes.js +0 -43
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -91
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -7
- package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -13
- package/es/v1/setup/header/Button/Button.js +0 -24
- package/es/v1/setup/header/Button/props/defaultProps.js +0 -4
- package/es/v1/setup/header/Button/props/propTypes.js +0 -7
- package/es/v1/setup/header/Link/Link.js +0 -32
- package/es/v1/setup/header/Link/props/defaultProps.js +0 -4
- package/es/v1/setup/header/Link/props/propTypes.js +0 -8
- package/es/v1/setup/header/Search/Search.js +0 -60
- package/es/v1/setup/header/Search/props/defaultProps.js +0 -6
- package/es/v1/setup/header/Search/props/propTypes.js +0 -12
- package/es/v1/setup/header/Views/Views.js +0 -34
- package/es/v1/setup/header/Views/props/defaultProps.js +0 -6
- package/es/v1/setup/header/Views/props/propTypes.js +0 -9
- package/es/v1/setup/header/index.js +0 -4
- package/es/v1/setup/helptips/Description/Description.js +0 -12
- package/es/v1/setup/helptips/Description/props/propTypes.js +0 -4
- package/es/v1/setup/helptips/Link/Link.js +0 -29
- package/es/v1/setup/helptips/Link/props/propTypes.js +0 -7
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +0 -27
- package/es/v1/setup/helptips/ListGroup/props/propTypes.js +0 -5
- package/es/v1/setup/helptips/Title/Title.js +0 -12
- package/es/v1/setup/helptips/Title/props/propTypes.js +0 -4
- package/es/v1/setup/helptips/index.js +0 -4
- package/es/v1/setup/index.js +0 -6
- package/es/v1/setup/table/Table/Table.js +0 -22
- package/es/v1/setup/table/Table/props/defaultProps.js +0 -4
- package/es/v1/setup/table/Table/props/propTypes.js +0 -6
- package/es/v1/setup/table/TableBody/TableBody.js +0 -26
- package/es/v1/setup/table/TableBody/props/defaultProps.js +0 -3
- package/es/v1/setup/table/TableBody/props/propTypes.js +0 -7
- package/es/v1/setup/table/TableData/TableData.js +0 -31
- package/es/v1/setup/table/TableData/props/defaultProps.js +0 -5
- package/es/v1/setup/table/TableData/props/propTypes.js +0 -11
- package/es/v1/setup/table/TableHead/TableHead.js +0 -31
- package/es/v1/setup/table/TableHead/props/defaultProps.js +0 -4
- package/es/v1/setup/table/TableHead/props/propTypes.js +0 -8
- package/es/v1/setup/table/TableRow/TableRow.js +0 -36
- package/es/v1/setup/table/TableRow/props/defaultProps.js +0 -4
- package/es/v1/setup/table/TableRow/props/propTypes.js +0 -11
- package/es/v1/setup/table/Text/Text.js +0 -50
- package/es/v1/setup/table/Text/props/defaultProps.js +0 -7
- package/es/v1/setup/table/Text/props/propTypes.js +0 -13
- package/es/v1/setup/table/index.js +0 -5
- package/es/v1/svg/PlusIcon.js +0 -25
- package/es/v1/svg/SnippetIcon.js +0 -27
- package/es/v1/svg/TemplateIcon.js +0 -28
- package/es/v1/svg/index.js +0 -3
- package/es/v1/svg/props/defaultProps.js +0 -15
- package/es/v1/svg/props/propTypes.js +0 -16
- package/es/v1/utils/ChannelIconMapping.js +0 -129
- package/es/v1/utils/General.js +0 -45
- package/es/v1/utils/editorUtils.js +0 -193
- package/lib/v1/ActionButton/ActionButton.js +0 -173
- package/lib/v1/ActionButton/props/defaultProps.js +0 -26
- package/lib/v1/ActionButton/props/propTypes.js +0 -48
- package/lib/v1/AlphabeticList/AlphabeticList.js +0 -113
- package/lib/v1/AlphabeticList/props/defaultProps.js +0 -20
- package/lib/v1/AlphabeticList/props/propTypes.js +0 -50
- package/lib/v1/Attachment/Attachment.js +0 -110
- package/lib/v1/Attachment/props/defaultProps.js +0 -15
- package/lib/v1/Attachment/props/propTypes.js +0 -29
- package/lib/v1/AttachmentViewer/AttachmentImage.js +0 -117
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +0 -713
- package/lib/v1/AttachmentViewer/props/defaultProps.js +0 -19
- package/lib/v1/AttachmentViewer/props/propTypes.js +0 -48
- package/lib/v1/ChannelIcon/ChannelIcon.js +0 -114
- package/lib/v1/ChannelIcon/props/defaultProps.js +0 -14
- package/lib/v1/ChannelIcon/props/propTypes.js +0 -36
- package/lib/v1/Drawer/Drawer.js +0 -302
- package/lib/v1/Drawer/props/defaultProps.js +0 -32
- package/lib/v1/Drawer/props/propTypes.js +0 -67
- package/lib/v1/ExternalLink/ExternalLink.js +0 -57
- package/lib/v1/ExternalLink/props/defaultProps.js +0 -12
- package/lib/v1/ExternalLink/props/propTypes.js +0 -23
- package/lib/v1/FlipCard/FlipCard.js +0 -149
- package/lib/v1/FlipCard/props/defaultProps.js +0 -12
- package/lib/v1/FlipCard/props/propTypes.js +0 -48
- package/lib/v1/FormAction/FormAction.js +0 -102
- package/lib/v1/FormAction/props/defaultProps.js +0 -12
- package/lib/v1/FormAction/props/propTypes.js +0 -19
- package/lib/v1/FreezeLayer/FreezeLayer.js +0 -94
- package/lib/v1/FreezeLayer/props/defaultProps.js +0 -16
- package/lib/v1/FreezeLayer/props/propTypes.js +0 -31
- package/lib/v1/GlobalNotification/GlobalNotification.js +0 -187
- package/lib/v1/GlobalNotification/props/defaultProps.js +0 -13
- package/lib/v1/GlobalNotification/props/propTypes.js +0 -58
- package/lib/v1/IconButton/IconButton.js +0 -149
- package/lib/v1/IconButton/props/defaultProps.js +0 -24
- package/lib/v1/IconButton/props/propTypes.js +0 -43
- package/lib/v1/Image/Image.js +0 -48
- package/lib/v1/Image/props/defaultProps.js +0 -11
- package/lib/v1/Image/props/propTypes.js +0 -26
- package/lib/v1/ImportantNotes/ImportantNotes.js +0 -55
- package/lib/v1/ImportantNotes/props/defaultProps.js +0 -13
- package/lib/v1/ImportantNotes/props/propTypes.js +0 -21
- package/lib/v1/Link/Link.js +0 -116
- package/lib/v1/Link/props/defaultProps.js +0 -12
- package/lib/v1/Link/props/propTypes.js +0 -29
- package/lib/v1/Loader/Loader.js +0 -27
- package/lib/v1/Message/Message.js +0 -113
- package/lib/v1/Message/props/defaultProps.js +0 -11
- package/lib/v1/Message/props/propTypes.js +0 -41
- package/lib/v1/MessageBanner/MessageBanner.js +0 -75
- package/lib/v1/MessageBanner/props/defaultProps.js +0 -14
- package/lib/v1/MessageBanner/props/propTypes.js +0 -24
- package/lib/v1/NewStar/NewStar.js +0 -74
- package/lib/v1/NewStar/props/defaultProps.js +0 -11
- package/lib/v1/NewStar/props/propTypes.js +0 -17
- package/lib/v1/PlusIcon/PlusIcon.js +0 -45
- package/lib/v1/PlusIcon/props/defaultProps.js +0 -15
- package/lib/v1/PlusIcon/props/propTypes.js +0 -22
- package/lib/v1/Separator/Separator.js +0 -66
- package/lib/v1/Separator/props/defaultProps.js +0 -19
- package/lib/v1/Separator/props/propTypes.js +0 -22
- package/lib/v1/TagWithIcon/TagWithIcon.js +0 -53
- package/lib/v1/TagWithIcon/props/defaultProps.js +0 -15
- package/lib/v1/TagWithIcon/props/propTypes.js +0 -24
- package/lib/v1/ToastMessage/ToastMessage.js +0 -246
- package/lib/v1/ToastMessage/props/defaultProps.js +0 -25
- package/lib/v1/ToastMessage/props/propTypes.js +0 -51
- package/lib/v1/Upload/Upload.js +0 -83
- package/lib/v1/Upload/props/defaultProps.js +0 -14
- package/lib/v1/Upload/props/propTypes.js +0 -28
- package/lib/v1/actions/AutoClose.js +0 -75
- package/lib/v1/actions/props/defaultProps.js +0 -10
- package/lib/v1/actions/props/propTypes.js +0 -19
- package/lib/v1/alert/AlertClose/AlertClose.js +0 -62
- package/lib/v1/alert/AlertClose/props/propTypes.js +0 -19
- package/lib/v1/alert/AlertHeader/AlertHeader.js +0 -107
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +0 -19
- package/lib/v1/alert/AlertHeader/props/propTypes.js +0 -31
- package/lib/v1/alert/AlertLookup/AlertLookup.js +0 -187
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +0 -20
- package/lib/v1/alert/AlertLookup/props/propTypes.js +0 -47
- package/lib/v1/alert/alertIcons/AlarmAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/AlertIcons.js +0 -78
- package/lib/v1/alert/alertIcons/DangerAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/ErrorAlertIcon.js +0 -82
- package/lib/v1/alert/alertIcons/InfoAlertIcon.js +0 -86
- package/lib/v1/alert/alertIcons/NotificationAlertIcon.js +0 -82
- package/lib/v1/alert/alertIcons/SuccessAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/WarningAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/index.js +0 -71
- package/lib/v1/alert/alertIcons/props/defaultProps.js +0 -41
- package/lib/v1/alert/alertIcons/props/propTypes.js +0 -52
- package/lib/v1/alert/index.js +0 -23
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +0 -61
- package/lib/v1/avatar/AvatarClose/props/defaultProps.js +0 -14
- package/lib/v1/avatar/AvatarClose/props/propTypes.js +0 -26
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +0 -65
- package/lib/v1/avatar/AvatarCollision/props/defaultProps.js +0 -15
- package/lib/v1/avatar/AvatarCollision/props/propTypes.js +0 -28
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +0 -63
- package/lib/v1/avatar/AvatarIcon/props/defaultProps.js +0 -21
- package/lib/v1/avatar/AvatarIcon/props/propTypes.js +0 -31
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -73
- package/lib/v1/avatar/AvatarStatus/props/defaultProps.js +0 -19
- package/lib/v1/avatar/AvatarStatus/props/propTypes.js +0 -35
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +0 -85
- package/lib/v1/avatar/AvatarThread/props/defaultProps.js +0 -16
- package/lib/v1/avatar/AvatarThread/props/propTypes.js +0 -41
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +0 -122
- package/lib/v1/avatar/AvatarUser/props/defaultProps.js +0 -15
- package/lib/v1/avatar/AvatarUser/props/propTypes.js +0 -46
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -109
- package/lib/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -16
- package/lib/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -36
- package/lib/v1/avatar/index.js +0 -63
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -946
- package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -36
- package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -94
- package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -77
- package/lib/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -17
- package/lib/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -32
- package/lib/v1/emptystate/EditionPage/EditionPage.js +0 -64
- package/lib/v1/emptystate/EditionPage/props/defaultProps.js +0 -12
- package/lib/v1/emptystate/EditionPage/props/propTypes.js +0 -22
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +0 -76
- package/lib/v1/errorstate/Inconvenience/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/Inconvenience/props/propTypes.js +0 -27
- package/lib/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -80
- package/lib/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -27
- package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -80
- package/lib/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -27
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -16
- package/lib/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -28
- package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -80
- package/lib/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/UrlNotFound/props/propTypes.js +0 -27
- package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -80
- package/lib/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -27
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -148
- package/lib/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -27
- package/lib/v1/form/fields/CheckBoxField/props/propTypes.js +0 -47
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +0 -194
- package/lib/v1/form/fields/CurrencyField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/CurrencyField/props/propTypes.js +0 -57
- package/lib/v1/form/fields/DateField/DateField.js +0 -183
- package/lib/v1/form/fields/DateField/props/defaultProps.js +0 -34
- package/lib/v1/form/fields/DateField/props/propTypes.js +0 -57
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +0 -87
- package/lib/v1/form/fields/FieldContainer/props/defaultProps.js +0 -22
- package/lib/v1/form/fields/FieldContainer/props/propTypes.js +0 -35
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -208
- package/lib/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/MultiSelectField/props/propTypes.js +0 -68
- package/lib/v1/form/fields/PhoneField/PhoneField.js +0 -193
- package/lib/v1/form/fields/PhoneField/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/PhoneField/props/propTypes.js +0 -58
- package/lib/v1/form/fields/RadioField/RadioField.js +0 -164
- package/lib/v1/form/fields/RadioField/props/defaultProps.js +0 -20
- package/lib/v1/form/fields/RadioField/props/propTypes.js +0 -44
- package/lib/v1/form/fields/RadioField/useRadio.js +0 -50
- package/lib/v1/form/fields/SelectField/SelectField.js +0 -179
- package/lib/v1/form/fields/SelectField/props/defaultProps.js +0 -33
- package/lib/v1/form/fields/SelectField/props/propTypes.js +0 -68
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -387
- package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -68
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -317
- package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -38
- package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -83
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +0 -163
- package/lib/v1/form/fields/TextBoxField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/TextBoxField/props/propTypes.js +0 -62
- package/lib/v1/form/fields/TextEditor/TextEditor.js +0 -462
- package/lib/v1/form/fields/TextEditor/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/TextEditor/props/propTypes.js +0 -64
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +0 -175
- package/lib/v1/form/fields/TextEditorField/props/defaultProps.js +0 -30
- package/lib/v1/form/fields/TextEditorField/props/propTypes.js +0 -67
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -204
- package/lib/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -16
- package/lib/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -51
- package/lib/v1/form/fields/TextareaField/TextareaField.js +0 -157
- package/lib/v1/form/fields/TextareaField/props/defaultProps.js +0 -30
- package/lib/v1/form/fields/TextareaField/props/propTypes.js +0 -53
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -71
- package/lib/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -14
- package/lib/v1/form/fields/ValidationMessage/props/propTypes.js +0 -27
- package/lib/v1/form/fields/index.js +0 -135
- package/lib/v1/form/fields/props/FieldCommonDefaultProps.js +0 -19
- package/lib/v1/form/fields/props/FieldCommonPropTypes.js +0 -28
- package/lib/v1/form/layout/Field/Field.js +0 -40
- package/lib/v1/form/layout/Field/props/defaultProps.js +0 -11
- package/lib/v1/form/layout/Field/props/propTypes.js +0 -21
- package/lib/v1/form/layout/Section/Section.js +0 -40
- package/lib/v1/form/layout/Section/props/propTypes.js +0 -22
- package/lib/v1/form/layout/index.js +0 -23
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -212
- package/lib/v1/layout/SetupDetailLayout/index.js +0 -37
- package/lib/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -30
- package/lib/v1/layout/SetupDetailLayout/props/propTypes.js +0 -54
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +0 -146
- package/lib/v1/layout/SubtabLayout/index.js +0 -37
- package/lib/v1/layout/SubtabLayout/props/defaultProps.js +0 -35
- package/lib/v1/layout/SubtabLayout/props/propTypes.js +0 -54
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +0 -86
- package/lib/v1/list/AvatarFlip/props/defaultProps.js +0 -13
- package/lib/v1/list/AvatarFlip/props/propTypes.js +0 -40
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +0 -33
- package/lib/v1/list/BluePrintStatus/props/propTypes.js +0 -15
- package/lib/v1/list/Comment/Comment.js +0 -49
- package/lib/v1/list/Comment/props/defaultProps.js +0 -11
- package/lib/v1/list/Comment/props/propTypes.js +0 -18
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -102
- package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +0 -14
- package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -35
- package/lib/v1/list/Dot/Dot.js +0 -27
- package/lib/v1/list/Dot/props/defaultProps.js +0 -11
- package/lib/v1/list/Dot/props/propTypes.js +0 -16
- package/lib/v1/list/DotNew/DotNew.js +0 -34
- package/lib/v1/list/DotNew/props/defaultProps.js +0 -10
- package/lib/v1/list/DotNew/props/propTypes.js +0 -17
- package/lib/v1/list/GridStencils/GridStencils.js +0 -42
- package/lib/v1/list/GridStencils/props/propTypes.js +0 -19
- package/lib/v1/list/Icons/AddNewIcon.js +0 -38
- package/lib/v1/list/Icons/CompleteIcon.js +0 -40
- package/lib/v1/list/Icons/DeleteIcon.js +0 -41
- package/lib/v1/list/Icons/EditIcon.js +0 -41
- package/lib/v1/list/Icons/FloatingIcons.js +0 -42
- package/lib/v1/list/Icons/ReadUnreadIcon.js +0 -46
- package/lib/v1/list/Icons/SmartIcon.js +0 -38
- package/lib/v1/list/Icons/index.js +0 -63
- package/lib/v1/list/Icons/props/defaultProps.js +0 -14
- package/lib/v1/list/Icons/props/propTypes.js +0 -70
- package/lib/v1/list/ListLayout/ListLayout.js +0 -82
- package/lib/v1/list/ListLayout/props/defaultProps.js +0 -18
- package/lib/v1/list/ListLayout/props/propTypes.js +0 -39
- package/lib/v1/list/ListStencils/ListStencils.js +0 -57
- package/lib/v1/list/ListStencils/props/defaultProps.js +0 -10
- package/lib/v1/list/ListStencils/props/propTypes.js +0 -15
- package/lib/v1/list/SecondaryText/AccountName.js +0 -86
- package/lib/v1/list/SecondaryText/ContactName.js +0 -94
- package/lib/v1/list/SecondaryText/DepartmentText.js +0 -29
- package/lib/v1/list/SecondaryText/Email.js +0 -53
- package/lib/v1/list/SecondaryText/HappinessRating.js +0 -34
- package/lib/v1/list/SecondaryText/PhoneNumber.js +0 -57
- package/lib/v1/list/SecondaryText/PriorityText.js +0 -33
- package/lib/v1/list/SecondaryText/SecondaryText.js +0 -38
- package/lib/v1/list/SecondaryText/StatusText.js +0 -34
- package/lib/v1/list/SecondaryText/TicketId.js +0 -54
- package/lib/v1/list/SecondaryText/Website.js +0 -48
- package/lib/v1/list/SecondaryText/index.js +0 -95
- package/lib/v1/list/SecondaryText/props/defaultProps.js +0 -59
- package/lib/v1/list/SecondaryText/props/propTypes.js +0 -163
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +0 -104
- package/lib/v1/list/SecondryPanel/props/defaultProps.js +0 -28
- package/lib/v1/list/SecondryPanel/props/propTypes.js +0 -41
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +0 -35
- package/lib/v1/list/SentimentStatus/props/propTypes.js +0 -16
- package/lib/v1/list/Subject/Subject.js +0 -65
- package/lib/v1/list/Subject/props/defaultProps.js +0 -15
- package/lib/v1/list/Subject/props/propTypes.js +0 -31
- package/lib/v1/list/TagNew/TagNew.js +0 -35
- package/lib/v1/list/TagNew/props/defaultProps.js +0 -11
- package/lib/v1/list/TagNew/props/propTypes.js +0 -19
- package/lib/v1/list/Thread/Thread.js +0 -46
- package/lib/v1/list/Thread/props/defaultProps.js +0 -11
- package/lib/v1/list/Thread/props/propTypes.js +0 -19
- package/lib/v1/list/index.js +0 -165
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +0 -363
- package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +0 -29
- package/lib/v1/list/status/StatusDropdown/props/propTypes.js +0 -34
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +0 -124
- package/lib/v1/list/status/StatusListItem/props/defaultProps.js +0 -23
- package/lib/v1/list/status/StatusListItem/props/propTypes.js +0 -42
- package/lib/v1/list/status/index.js +0 -23
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +0 -70
- package/lib/v1/lookup/EmptyPage/props/defaultProps.js +0 -11
- package/lib/v1/lookup/EmptyPage/props/propTypes.js +0 -16
- package/lib/v1/lookup/Lookup/Lookup.js +0 -145
- package/lib/v1/lookup/Lookup/props/defaultProps.js +0 -16
- package/lib/v1/lookup/Lookup/props/propTypes.js +0 -35
- package/lib/v1/lookup/Section/Section.js +0 -30
- package/lib/v1/lookup/Section/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/Close/Close.js +0 -47
- package/lib/v1/lookup/header/Close/props/defaultProps.js +0 -10
- package/lib/v1/lookup/header/Close/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -116
- package/lib/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -16
- package/lib/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -31
- package/lib/v1/lookup/header/Search/Search.js +0 -208
- package/lib/v1/lookup/header/Search/props/defaultProps.js +0 -12
- package/lib/v1/lookup/header/Search/props/propTypes.js +0 -40
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +0 -133
- package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -17
- package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +0 -32
- package/lib/v1/lookup/header/Title/Title.js +0 -44
- package/lib/v1/lookup/header/Title/props/defaultProps.js +0 -10
- package/lib/v1/lookup/header/Title/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -239
- package/lib/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -17
- package/lib/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -38
- package/lib/v1/lookup/header/index.js +0 -47
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +0 -209
- package/lib/v1/notification/DesktopNotification/props/defaultProps.js +0 -26
- package/lib/v1/notification/DesktopNotification/props/propTypes.js +0 -55
- package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -105
- package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -16
- package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -24
- package/lib/v1/setup/header/Button/Button.js +0 -37
- package/lib/v1/setup/header/Button/props/defaultProps.js +0 -11
- package/lib/v1/setup/header/Button/props/propTypes.js +0 -18
- package/lib/v1/setup/header/Link/Link.js +0 -47
- package/lib/v1/setup/header/Link/props/defaultProps.js +0 -11
- package/lib/v1/setup/header/Link/props/propTypes.js +0 -19
- package/lib/v1/setup/header/Search/Search.js +0 -99
- package/lib/v1/setup/header/Search/props/defaultProps.js +0 -13
- package/lib/v1/setup/header/Search/props/propTypes.js +0 -23
- package/lib/v1/setup/header/Views/Views.js +0 -47
- package/lib/v1/setup/header/Views/props/defaultProps.js +0 -13
- package/lib/v1/setup/header/Views/props/propTypes.js +0 -20
- package/lib/v1/setup/header/index.js +0 -39
- package/lib/v1/setup/helptips/Description/Description.js +0 -23
- package/lib/v1/setup/helptips/Description/props/propTypes.js +0 -15
- package/lib/v1/setup/helptips/Link/Link.js +0 -42
- package/lib/v1/setup/helptips/Link/props/propTypes.js +0 -18
- package/lib/v1/setup/helptips/ListGroup/ListGroup.js +0 -42
- package/lib/v1/setup/helptips/ListGroup/props/propTypes.js +0 -16
- package/lib/v1/setup/helptips/Title/Title.js +0 -23
- package/lib/v1/setup/helptips/Title/props/propTypes.js +0 -15
- package/lib/v1/setup/helptips/index.js +0 -39
- package/lib/v1/setup/index.js +0 -24
- package/lib/v1/setup/table/Table/Table.js +0 -34
- package/lib/v1/setup/table/Table/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/Table/props/propTypes.js +0 -17
- package/lib/v1/setup/table/TableBody/TableBody.js +0 -39
- package/lib/v1/setup/table/TableBody/props/defaultProps.js +0 -10
- package/lib/v1/setup/table/TableBody/props/propTypes.js +0 -18
- package/lib/v1/setup/table/TableData/TableData.js +0 -44
- package/lib/v1/setup/table/TableData/props/defaultProps.js +0 -12
- package/lib/v1/setup/table/TableData/props/propTypes.js +0 -22
- package/lib/v1/setup/table/TableHead/TableHead.js +0 -44
- package/lib/v1/setup/table/TableHead/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/TableHead/props/propTypes.js +0 -19
- package/lib/v1/setup/table/TableRow/TableRow.js +0 -49
- package/lib/v1/setup/table/TableRow/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/TableRow/props/propTypes.js +0 -22
- package/lib/v1/setup/table/Text/Text.js +0 -64
- package/lib/v1/setup/table/Text/props/defaultProps.js +0 -14
- package/lib/v1/setup/table/Text/props/propTypes.js +0 -24
- package/lib/v1/setup/table/index.js +0 -47
- package/lib/v1/svg/PlusIcon.js +0 -37
- package/lib/v1/svg/SnippetIcon.js +0 -39
- package/lib/v1/svg/TemplateIcon.js +0 -40
- package/lib/v1/svg/index.js +0 -31
- package/lib/v1/svg/props/defaultProps.js +0 -24
- package/lib/v1/svg/props/propTypes.js +0 -29
- package/lib/v1/utils/ChannelIconMapping.js +0 -138
- package/lib/v1/utils/General.js +0 -58
- package/lib/v1/utils/editorUtils.js +0 -224
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export const propTypes = {
|
|
3
|
-
allViews: PropTypes.array,
|
|
4
|
-
getSearchBoxRef: PropTypes.func,
|
|
5
|
-
needOnTypeSearch: PropTypes.bool,
|
|
6
|
-
needSearch: PropTypes.bool,
|
|
7
|
-
needViewsList: PropTypes.bool,
|
|
8
|
-
onLookupClose: PropTypes.func,
|
|
9
|
-
onSearch: PropTypes.func,
|
|
10
|
-
onSearchChange: PropTypes.func,
|
|
11
|
-
onSelectView: PropTypes.func,
|
|
12
|
-
searchPlaceHolder: PropTypes.string,
|
|
13
|
-
searchStr: PropTypes.string,
|
|
14
|
-
selectedViewId: PropTypes.string,
|
|
15
|
-
title: PropTypes.string,
|
|
16
|
-
i18nKeys: PropTypes.shape({
|
|
17
|
-
menuEmptyMessage: PropTypes.string
|
|
18
|
-
}),
|
|
19
|
-
palette: PropTypes.oneOf(['default', 'white']),
|
|
20
|
-
dragBoundaryLimit: PropTypes.object
|
|
21
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*** Libraries ***/
|
|
2
|
-
import React, { memo } from 'react';
|
|
3
|
-
import { defaultProps } from "./props/defaultProps";
|
|
4
|
-
import { propTypes } from "./props/propTypes";
|
|
5
|
-
/*** CSS ***/
|
|
6
|
-
|
|
7
|
-
import style from "../../../../lookup/header/Title/LookupTitle.module.css";
|
|
8
|
-
|
|
9
|
-
function Title(props) {
|
|
10
|
-
let {
|
|
11
|
-
text,
|
|
12
|
-
palette,
|
|
13
|
-
isBold
|
|
14
|
-
} = props;
|
|
15
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
16
|
-
className: `${style.title} ${style[palette]} ${isBold ? style.bold : ''}`,
|
|
17
|
-
"data-title": text
|
|
18
|
-
}, text);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
Title.propTypes = propTypes;
|
|
22
|
-
Title.defaultProps = defaultProps;
|
|
23
|
-
const MemoizedTitle = /*#__PURE__*/memo(Title);
|
|
24
|
-
MemoizedTitle.propTypes = propTypes;
|
|
25
|
-
MemoizedTitle.defaultProps = defaultProps;
|
|
26
|
-
MemoizedTitle.displayName = 'Close';
|
|
27
|
-
export default MemoizedTitle;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/**** Libraries ****/
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { defaultProps } from "./props/defaultProps";
|
|
4
|
-
import { propTypes } from "./props/propTypes";
|
|
5
|
-
/**** Components ****/
|
|
6
|
-
|
|
7
|
-
import { SelectComponent } from '@zohodesk/components/es/v1/Select/Select';
|
|
8
|
-
import Popup from '@zohodesk/components/es/v1/Popup/Popup';
|
|
9
|
-
import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
|
|
10
|
-
import DropDownSearch from '@zohodesk/components/es/v1/DropDown/DropDownSearch';
|
|
11
|
-
import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
|
|
12
|
-
import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
|
|
13
|
-
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
14
|
-
/**** Icons ****/
|
|
15
|
-
|
|
16
|
-
import { Icon } from '@zohodesk/icons';
|
|
17
|
-
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
18
|
-
import Loader from '@zohodesk/svg/es/Loader/Loader';
|
|
19
|
-
import style from "../../../../lookup/header/ViewDropDown/ViewDropDown.module.css";
|
|
20
|
-
/* eslint-disable react/forbid-component-props */
|
|
21
|
-
|
|
22
|
-
/*eslint-disable react/sort-prop-types*/
|
|
23
|
-
|
|
24
|
-
class DropDown extends SelectComponent {
|
|
25
|
-
constructor(props) {
|
|
26
|
-
super(props);
|
|
27
|
-
this.onSearchKeyDown = this.onSearchKeyDown.bind(this);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
onSearchKeyDown(e) {
|
|
31
|
-
const {
|
|
32
|
-
closePopupOnly
|
|
33
|
-
} = this.props;
|
|
34
|
-
|
|
35
|
-
if (e.keyCode === 27) {
|
|
36
|
-
closePopupOnly && closePopupOnly(e);
|
|
37
|
-
} else {
|
|
38
|
-
this.handleKeyDown(e);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
responsiveFunc(_ref) {
|
|
43
|
-
let {
|
|
44
|
-
mediaQueryOR
|
|
45
|
-
} = _ref;
|
|
46
|
-
return {
|
|
47
|
-
tabletMode: mediaQueryOR([{
|
|
48
|
-
maxWidth: 700
|
|
49
|
-
}])
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
render() {
|
|
54
|
-
var _this = this;
|
|
55
|
-
|
|
56
|
-
const {
|
|
57
|
-
needSearch,
|
|
58
|
-
dropBoxSize,
|
|
59
|
-
emptyMessage,
|
|
60
|
-
searchEmptyMessage,
|
|
61
|
-
position,
|
|
62
|
-
defaultDropBoxPosition,
|
|
63
|
-
getTargetRef,
|
|
64
|
-
getContainerRef,
|
|
65
|
-
isPopupOpen,
|
|
66
|
-
removeClose,
|
|
67
|
-
isPopupReady,
|
|
68
|
-
animationStyle,
|
|
69
|
-
searchBoxSize,
|
|
70
|
-
searchBoxVariant,
|
|
71
|
-
searchBoxPlaceHolder,
|
|
72
|
-
maxLength,
|
|
73
|
-
dataId,
|
|
74
|
-
isAbsolutePositioningNeeded,
|
|
75
|
-
isRestrictScroll,
|
|
76
|
-
positionsOffset,
|
|
77
|
-
targetOffset
|
|
78
|
-
} = this.props;
|
|
79
|
-
const {
|
|
80
|
-
hoverIndex,
|
|
81
|
-
selected,
|
|
82
|
-
searchStr,
|
|
83
|
-
isFetchingOptions,
|
|
84
|
-
selectedId
|
|
85
|
-
} = this.state;
|
|
86
|
-
const suggestions = this.handleFilterSuggestions();
|
|
87
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
88
|
-
className: style.container,
|
|
89
|
-
"data-id": dataId,
|
|
90
|
-
"data-test-id": dataId
|
|
91
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
92
|
-
onClick: this.togglePopup,
|
|
93
|
-
ref: getTargetRef
|
|
94
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
95
|
-
className: `${style.labelCnt} ${isPopupOpen ? style.focused : ''}`
|
|
96
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
97
|
-
className: style.labelText,
|
|
98
|
-
"data-title": selected,
|
|
99
|
-
"data-id": `${dataId}_selectedValue`,
|
|
100
|
-
"data-test-id": `${dataId}_selectedValue`
|
|
101
|
-
}, selected), /*#__PURE__*/React.createElement(Icon, {
|
|
102
|
-
name: "ZD-down",
|
|
103
|
-
size: "7",
|
|
104
|
-
iconClass: style.arrowIcon,
|
|
105
|
-
dataId: `${dataId}_icon`
|
|
106
|
-
}))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
107
|
-
query: this.responsiveFunc,
|
|
108
|
-
responsiveId: "Helmet"
|
|
109
|
-
}, _ref2 => {
|
|
110
|
-
let {
|
|
111
|
-
tabletMode
|
|
112
|
-
} = _ref2;
|
|
113
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
114
|
-
isAnimate: true,
|
|
115
|
-
isArrow: false,
|
|
116
|
-
isActive: isPopupReady,
|
|
117
|
-
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
118
|
-
getRef: getContainerRef,
|
|
119
|
-
onClick: removeClose,
|
|
120
|
-
animationStyle: animationStyle,
|
|
121
|
-
size: "large",
|
|
122
|
-
alignBox: "row",
|
|
123
|
-
isResponsivePadding: true,
|
|
124
|
-
dataId: `${dataId}_dropbox`,
|
|
125
|
-
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
126
|
-
isRestrictScroll: isRestrictScroll,
|
|
127
|
-
positionsOffset: positionsOffset,
|
|
128
|
-
targetOffset: targetOffset
|
|
129
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
130
|
-
flexible: true
|
|
131
|
-
}, /*#__PURE__*/React.createElement(Card, null, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(DropDownSearch, {
|
|
132
|
-
value: searchStr,
|
|
133
|
-
onChange: this.handleSearch,
|
|
134
|
-
onKeyDown: this.onSearchKeyDown,
|
|
135
|
-
getRef: this.searchInputRef,
|
|
136
|
-
size: searchBoxSize,
|
|
137
|
-
variant: searchBoxVariant,
|
|
138
|
-
placeHolder: searchBoxPlaceHolder,
|
|
139
|
-
maxLength: maxLength,
|
|
140
|
-
dataId: `${dataId}_search`
|
|
141
|
-
})) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
142
|
-
shrink: true,
|
|
143
|
-
eleRef: this.suggestionContainerRef,
|
|
144
|
-
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : ''
|
|
145
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement("div", {
|
|
146
|
-
className: style.listItemContainer,
|
|
147
|
-
"data-id": `${dataId}_Options`
|
|
148
|
-
}, suggestions.map(function () {
|
|
149
|
-
let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
150
|
-
let index = arguments.length > 1 ? arguments[1] : undefined;
|
|
151
|
-
const {
|
|
152
|
-
id,
|
|
153
|
-
value
|
|
154
|
-
} = option;
|
|
155
|
-
return /*#__PURE__*/React.createElement(ListItem, {
|
|
156
|
-
active: id === selectedId,
|
|
157
|
-
getRef: _this.suggestionItemRef,
|
|
158
|
-
highlight: hoverIndex === index ? true : false,
|
|
159
|
-
id: id,
|
|
160
|
-
key: `${id}dropDown`,
|
|
161
|
-
onClick: _this.handleChange,
|
|
162
|
-
onMouseEnter: _this.handleMouseEnter,
|
|
163
|
-
size: "medium",
|
|
164
|
-
value: value,
|
|
165
|
-
index: index,
|
|
166
|
-
needTick: true,
|
|
167
|
-
needBorder: false
|
|
168
|
-
});
|
|
169
|
-
})) : isFetchingOptions ? /*#__PURE__*/React.createElement(Container, {
|
|
170
|
-
align: "both",
|
|
171
|
-
className: style.loader
|
|
172
|
-
}, /*#__PURE__*/React.createElement(Loader, null)) : searchStr ? /*#__PURE__*/React.createElement("div", {
|
|
173
|
-
className: style.emptyState
|
|
174
|
-
}, searchEmptyMessage || emptyMessage) : /*#__PURE__*/React.createElement("div", {
|
|
175
|
-
className: style.emptyState
|
|
176
|
-
}, emptyMessage)))));
|
|
177
|
-
}) : null);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
DropDown.propTypes = propTypes;
|
|
183
|
-
DropDown.defaultProps = defaultProps;
|
|
184
|
-
const ViewDropDown = Popup(DropDown);
|
|
185
|
-
ViewDropDown.defaultProps = DropDown.defaultProps;
|
|
186
|
-
ViewDropDown.propTypes = DropDown.propTypes; // if (__DOCS__) {
|
|
187
|
-
// DropDown.docs = {
|
|
188
|
-
// componentGroup: 'Lookup'
|
|
189
|
-
// };
|
|
190
|
-
// // eslint-disable-next-line react/forbid-foreign-prop-types
|
|
191
|
-
// ViewDropDown.propTypes = DropDown.propTypes;
|
|
192
|
-
// }
|
|
193
|
-
|
|
194
|
-
export default ViewDropDown;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export const propTypes = {
|
|
3
|
-
emptyMessage: PropTypes.string,
|
|
4
|
-
needSearch: PropTypes.bool,
|
|
5
|
-
searchBoxPlaceHolder: PropTypes.string,
|
|
6
|
-
searchEmptyMessage: PropTypes.string,
|
|
7
|
-
dropBoxSize: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
8
|
-
dataId: PropTypes.string,
|
|
9
|
-
|
|
10
|
-
/**** Popup props ****/
|
|
11
|
-
isPopupOpen: PropTypes.bool,
|
|
12
|
-
isPopupReady: PropTypes.bool,
|
|
13
|
-
removeClose: PropTypes.func,
|
|
14
|
-
closePopupOnly: PropTypes.func,
|
|
15
|
-
position: PropTypes.string,
|
|
16
|
-
getTargetRef: PropTypes.func,
|
|
17
|
-
getContainerRef: PropTypes.func,
|
|
18
|
-
defaultDropBoxPosition: PropTypes.string,
|
|
19
|
-
animationStyle: PropTypes.string,
|
|
20
|
-
searchBoxSize: PropTypes.string,
|
|
21
|
-
searchBoxVariant: PropTypes.string,
|
|
22
|
-
maxLength: PropTypes.string,
|
|
23
|
-
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
24
|
-
isRestrictScroll: PropTypes.bool,
|
|
25
|
-
positionsOffset: PropTypes.string,
|
|
26
|
-
targetOffset: PropTypes.string
|
|
27
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as Close } from "./Close/Close";
|
|
2
|
-
export { default as ModuleHeader } from "./ModuleHeader/ModuleHeader";
|
|
3
|
-
export { default as Search } from "./Search/Search";
|
|
4
|
-
export { default as TicketHeader } from "./TicketHeader/TicketHeader";
|
|
5
|
-
export { default as ViewDropDown } from "./ViewDropDown/ViewDropDown";
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import defaultProps from "./props/defaultProps";
|
|
3
|
-
import { propTypes, DesktopNotificationUI_propTypes } from "./props/propTypes";
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
-
import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
|
|
6
|
-
import AutoClose from "../../../actions/AutoClose";
|
|
7
|
-
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
8
|
-
import FormAction from "../../../FormAction/FormAction";
|
|
9
|
-
import DesktopNotificationHeader from "../DesktopNotificationHeader/DesktopNotificationHeader";
|
|
10
|
-
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
11
|
-
import style from "../../../version2/notification/DesktopNotification/DesktopNotification.module.css";
|
|
12
|
-
let buttonPaletteObject = {
|
|
13
|
-
success: {
|
|
14
|
-
buttonPalette: 'successFilled'
|
|
15
|
-
},
|
|
16
|
-
error: {
|
|
17
|
-
buttonPalette: 'dangerFilled'
|
|
18
|
-
},
|
|
19
|
-
danger: {
|
|
20
|
-
buttonPalette: 'dangerFilled'
|
|
21
|
-
},
|
|
22
|
-
warning: {
|
|
23
|
-
buttonPalette: 'dangerFilled'
|
|
24
|
-
},
|
|
25
|
-
info: {
|
|
26
|
-
buttonPalette: 'primaryFilled'
|
|
27
|
-
},
|
|
28
|
-
notification: {
|
|
29
|
-
buttonPalette: 'primaryFilled'
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export function DesktopNotificationUI(props) {
|
|
33
|
-
let {
|
|
34
|
-
type = '',
|
|
35
|
-
submitText,
|
|
36
|
-
cancelText,
|
|
37
|
-
submitType,
|
|
38
|
-
isMore,
|
|
39
|
-
message,
|
|
40
|
-
isAnimate,
|
|
41
|
-
getBottomContainer,
|
|
42
|
-
getSubmitContainer,
|
|
43
|
-
onSubmit,
|
|
44
|
-
onCancel,
|
|
45
|
-
dataId,
|
|
46
|
-
dataSelectorId,
|
|
47
|
-
isClose,
|
|
48
|
-
needAutoZindex,
|
|
49
|
-
title,
|
|
50
|
-
subTitle,
|
|
51
|
-
needIcon,
|
|
52
|
-
info,
|
|
53
|
-
secondaryInfo,
|
|
54
|
-
titleVariant,
|
|
55
|
-
getSectionContainer,
|
|
56
|
-
isShrinkView,
|
|
57
|
-
size,
|
|
58
|
-
onClose,
|
|
59
|
-
needClose,
|
|
60
|
-
renderAlertIcon,
|
|
61
|
-
customClass = {},
|
|
62
|
-
i18nKeys = {},
|
|
63
|
-
customProps,
|
|
64
|
-
responsiveId
|
|
65
|
-
} = props;
|
|
66
|
-
let {
|
|
67
|
-
closeTitle = 'Close'
|
|
68
|
-
} = i18nKeys;
|
|
69
|
-
let {
|
|
70
|
-
containerClass
|
|
71
|
-
} = customClass;
|
|
72
|
-
let {
|
|
73
|
-
buttonPalette = 'dangerFilled'
|
|
74
|
-
} = buttonPaletteObject[type] || {};
|
|
75
|
-
let {
|
|
76
|
-
ExtraProps = {}
|
|
77
|
-
} = customProps;
|
|
78
|
-
|
|
79
|
-
function onClickSubmit(e) {
|
|
80
|
-
onSubmit && onSubmit();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function onClickCancel(e) {
|
|
84
|
-
onCancel && onCancel();
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let animateClass = isClose ? style.rightanimate : style.leftanimate;
|
|
88
|
-
let animateRemoveClass = isClose ? style.rightanimate : style.leftnoanimate;
|
|
89
|
-
let getNextIndex = useZIndex();
|
|
90
|
-
let Zindex = isAnimate ? getNextIndex() : null;
|
|
91
|
-
let uiVariantOne = title && (info || secondaryInfo);
|
|
92
|
-
let uiVariantTwo = title && !(info || secondaryInfo) && !getSectionContainer;
|
|
93
|
-
|
|
94
|
-
function responsiveFunc(_ref) {
|
|
95
|
-
let {
|
|
96
|
-
mediaQueryOR
|
|
97
|
-
} = _ref;
|
|
98
|
-
return {
|
|
99
|
-
uptoTablet: mediaQueryOR([{
|
|
100
|
-
maxWidth: 760
|
|
101
|
-
}])
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className: style.parentElement,
|
|
107
|
-
style: needAutoZindex && isAnimate ? {
|
|
108
|
-
zIndex: `${Zindex}`
|
|
109
|
-
} : {},
|
|
110
|
-
"data-selector-id": dataSelectorId
|
|
111
|
-
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
112
|
-
query: responsiveFunc,
|
|
113
|
-
responsiveId: responsiveId
|
|
114
|
-
}, _ref2 => {
|
|
115
|
-
let {
|
|
116
|
-
uptoTablet
|
|
117
|
-
} = _ref2;
|
|
118
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
119
|
-
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
|
|
120
|
-
${isShrinkView ? style.globalNotify : ''} ${containerClass}
|
|
121
|
-
${uptoTablet ? style.tapWidth : style[`${size}`]}`,
|
|
122
|
-
isCover: false,
|
|
123
|
-
dataId: dataId,
|
|
124
|
-
isInline: uiVariantTwo,
|
|
125
|
-
...ExtraProps
|
|
126
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
127
|
-
type: type,
|
|
128
|
-
title: title,
|
|
129
|
-
variant: titleVariant,
|
|
130
|
-
needIcon: needIcon,
|
|
131
|
-
onClose: onClose,
|
|
132
|
-
closeTitle: closeTitle,
|
|
133
|
-
renderAlertIcon: renderAlertIcon,
|
|
134
|
-
dataId: `${dataId}_close`,
|
|
135
|
-
needClose: needClose
|
|
136
|
-
})), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
|
|
137
|
-
alignBox: "column"
|
|
138
|
-
}, uiVariantOne && /*#__PURE__*/React.createElement(Box, {
|
|
139
|
-
flexible: true
|
|
140
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
141
|
-
className: `${style.section} ${style.infoText}`
|
|
142
|
-
}, subTitle && /*#__PURE__*/React.createElement("div", {
|
|
143
|
-
className: `${style.subTitle} ${info || secondaryInfo ? style.subTitleMargin : ''}`
|
|
144
|
-
}, subTitle), info && /*#__PURE__*/React.createElement("div", null, info), secondaryInfo && /*#__PURE__*/React.createElement("div", {
|
|
145
|
-
className: `${info ? style.secondaryInfo : ''}`
|
|
146
|
-
}, secondaryInfo))), getSectionContainer && /*#__PURE__*/React.createElement(Box, {
|
|
147
|
-
flexible: true
|
|
148
|
-
}, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
|
|
149
|
-
className: style.footer
|
|
150
|
-
}, isMore ? /*#__PURE__*/React.createElement("div", {
|
|
151
|
-
className: `${style.message}`
|
|
152
|
-
}, message) : null, /*#__PURE__*/React.createElement(FormAction, {
|
|
153
|
-
size: "small",
|
|
154
|
-
paddingLeftSize: "xmedium"
|
|
155
|
-
}, submitText ? /*#__PURE__*/React.createElement("div", {
|
|
156
|
-
onClick: onClickSubmit,
|
|
157
|
-
"data-id": `${dataId}_submitButton`,
|
|
158
|
-
"data-test-id": `${dataId}_submitButton`
|
|
159
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
160
|
-
align: "vertical",
|
|
161
|
-
alignBox: "row"
|
|
162
|
-
}, getSubmitContainer ? /*#__PURE__*/React.createElement(Box, {
|
|
163
|
-
flexible: true
|
|
164
|
-
}, getSubmitContainer()) : /*#__PURE__*/React.createElement(Box, {
|
|
165
|
-
flexible: true
|
|
166
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
167
|
-
text: submitText,
|
|
168
|
-
palette: submitType ? submitType : buttonPalette
|
|
169
|
-
})))) : null, cancelText ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
170
|
-
text: cancelText,
|
|
171
|
-
palette: "secondary",
|
|
172
|
-
dataId: `${dataId}_cancelButton`,
|
|
173
|
-
onClick: onClickCancel
|
|
174
|
-
})) : null))) : null)), getBottomContainer ? /*#__PURE__*/React.createElement(Box, null, getBottomContainer()) : null);
|
|
175
|
-
}));
|
|
176
|
-
}
|
|
177
|
-
DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
|
|
178
|
-
DesktopNotificationUI.propTypes = defaultProps;
|
|
179
|
-
export default function DesktopNotification(props) {
|
|
180
|
-
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
181
|
-
Element: DesktopNotificationUI
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
DesktopNotification.propTypes = propTypes;
|
|
185
|
-
DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
|
|
186
|
-
// DesktopNotification.docs = {
|
|
187
|
-
// componentGroup: 'DesktopNotification',
|
|
188
|
-
// folderName: 'Alert'
|
|
189
|
-
// };
|
|
190
|
-
// }
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getDotLibraryConfig } from "../../../../Provider/Config";
|
|
2
|
-
export default {
|
|
3
|
-
isMore: false,
|
|
4
|
-
isAnimate: true,
|
|
5
|
-
isClose: false,
|
|
6
|
-
autoClose: false,
|
|
7
|
-
hideTime: '3000',
|
|
8
|
-
dataId: 'toastMessage',
|
|
9
|
-
needAutoZindex: true,
|
|
10
|
-
needIcon: true,
|
|
11
|
-
titleVariant: 'primary',
|
|
12
|
-
isShrinkView: false,
|
|
13
|
-
needClose: true,
|
|
14
|
-
customProps: {},
|
|
15
|
-
dataSelectorId: 'desktopNotification',
|
|
16
|
-
responsiveId: getDotLibraryConfig('desktopNotificationResponsiveId')
|
|
17
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export const propTypes = {
|
|
3
|
-
isClose: PropTypes.bool,
|
|
4
|
-
onPortalClose: PropTypes.func,
|
|
5
|
-
autoClose: PropTypes.bool,
|
|
6
|
-
hideTime: PropTypes.string,
|
|
7
|
-
Element: PropTypes.element,
|
|
8
|
-
responsiveId: PropTypes.string
|
|
9
|
-
};
|
|
10
|
-
export const DesktopNotificationUI_propTypes = {
|
|
11
|
-
type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
|
|
12
|
-
cancelText: PropTypes.string,
|
|
13
|
-
submitText: PropTypes.string,
|
|
14
|
-
submitType: PropTypes.oneOf(['primary', 'danger', 'success']),
|
|
15
|
-
isMore: PropTypes.bool,
|
|
16
|
-
customClass: PropTypes.object,
|
|
17
|
-
dataId: PropTypes.string,
|
|
18
|
-
getBottomContainer: PropTypes.func,
|
|
19
|
-
getSectionContainer: PropTypes.func,
|
|
20
|
-
getSubmitContainer: PropTypes.func,
|
|
21
|
-
i18nKeys: PropTypes.object,
|
|
22
|
-
dataSelectorId: PropTypes.string,
|
|
23
|
-
info: PropTypes.string,
|
|
24
|
-
isAnimate: PropTypes.bool,
|
|
25
|
-
isShrinkView: PropTypes.bool,
|
|
26
|
-
message: PropTypes.string,
|
|
27
|
-
needAutoZindex: PropTypes.bool,
|
|
28
|
-
needClose: PropTypes.bool,
|
|
29
|
-
needIcon: PropTypes.bool,
|
|
30
|
-
onCancel: PropTypes.func,
|
|
31
|
-
onClose: PropTypes.func,
|
|
32
|
-
onSubmit: PropTypes.func,
|
|
33
|
-
secondaryInfo: PropTypes.string,
|
|
34
|
-
size: PropTypes.oneOf(['medium', 'large']),
|
|
35
|
-
subTitle: PropTypes.string,
|
|
36
|
-
titleVariant: PropTypes.oneOf(['primary', 'secondary']),
|
|
37
|
-
isClose: PropTypes.bool,
|
|
38
|
-
renderAlertIcon: PropTypes.func,
|
|
39
|
-
customProps: PropTypes.shape({
|
|
40
|
-
ExtraProps: PropTypes.object
|
|
41
|
-
}),
|
|
42
|
-
title: PropTypes.string
|
|
43
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import defaultProps from "./props/defaultProps";
|
|
3
|
-
import propTypes from "./props/propTypes";
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
-
import AlertClose from "../../alert/AlertClose/AlertClose";
|
|
6
|
-
import AlertIcons from "../../alert/alertIcons/AlertIcons";
|
|
7
|
-
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
8
|
-
import Typography from '@zohodesk/components/es/v1/Typography/Typography';
|
|
9
|
-
import style from "../../../version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css";
|
|
10
|
-
export default function DesktopNotificationHeader(props) {
|
|
11
|
-
let {
|
|
12
|
-
onClose,
|
|
13
|
-
closeTitle,
|
|
14
|
-
dataId,
|
|
15
|
-
variant,
|
|
16
|
-
type = '',
|
|
17
|
-
needIcon,
|
|
18
|
-
title,
|
|
19
|
-
renderAlertIcon,
|
|
20
|
-
needClose,
|
|
21
|
-
responsiveId
|
|
22
|
-
} = props;
|
|
23
|
-
|
|
24
|
-
function responsiveFunc(_ref) {
|
|
25
|
-
let {
|
|
26
|
-
mediaQueryOR
|
|
27
|
-
} = _ref;
|
|
28
|
-
return {
|
|
29
|
-
uptoTablet: mediaQueryOR([{
|
|
30
|
-
maxWidth: 760
|
|
31
|
-
}])
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
36
|
-
align: "vertical",
|
|
37
|
-
alignBox: "row",
|
|
38
|
-
className: `${style.container} ${style[variant + '_header']} ${style[type]}`,
|
|
39
|
-
isCover: false,
|
|
40
|
-
wrap: "wrap"
|
|
41
|
-
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
42
|
-
query: responsiveFunc,
|
|
43
|
-
responsiveId: responsiveId
|
|
44
|
-
}, _ref2 => {
|
|
45
|
-
let {
|
|
46
|
-
uptoTablet
|
|
47
|
-
} = _ref2;
|
|
48
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, needIcon ? /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: style.iconContainer
|
|
50
|
-
}, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/React.createElement(AlertIcons, {
|
|
51
|
-
type: type
|
|
52
|
-
})) : null, /*#__PURE__*/React.createElement(Box, {
|
|
53
|
-
flexible: true
|
|
54
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
55
|
-
alignBox: "row",
|
|
56
|
-
align: "center"
|
|
57
|
-
}, variant === 'primary' ? /*#__PURE__*/React.createElement(Box, {
|
|
58
|
-
shrink: true
|
|
59
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
60
|
-
$i18n_dataTitle: title,
|
|
61
|
-
$ui_className: style.title,
|
|
62
|
-
$ui_tagName: "h1",
|
|
63
|
-
$ui_size: uptoTablet ? '16' : '18',
|
|
64
|
-
$ui_lineHeight: "20",
|
|
65
|
-
$ui_weight: "bold",
|
|
66
|
-
$flag_reset: true,
|
|
67
|
-
$ui_wordBreak: "breakWord"
|
|
68
|
-
}, title)) : /*#__PURE__*/React.createElement(Box, {
|
|
69
|
-
className: `${style.infoText}`
|
|
70
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
71
|
-
$i18n_dataTitle: title,
|
|
72
|
-
$ui_className: style.title,
|
|
73
|
-
$ui_size: "14",
|
|
74
|
-
$ui_wordBreak: "breakWord"
|
|
75
|
-
}, title)))), needClose ? /*#__PURE__*/React.createElement(Box, {
|
|
76
|
-
className: style.close
|
|
77
|
-
}, /*#__PURE__*/React.createElement(AlertClose, {
|
|
78
|
-
onClose: onClose,
|
|
79
|
-
dataTitle: closeTitle,
|
|
80
|
-
dataId: dataId,
|
|
81
|
-
type: "light"
|
|
82
|
-
})) : null);
|
|
83
|
-
}));
|
|
84
|
-
}
|
|
85
|
-
DesktopNotificationHeader.propTypes = propTypes;
|
|
86
|
-
DesktopNotificationHeader.defaultProps = defaultProps; // if (__DOCS__) {
|
|
87
|
-
// DesktopNotificationHeader.docs = {
|
|
88
|
-
// componentGroup: 'DesktopNotificationHeader',
|
|
89
|
-
// folderName: 'Alert'
|
|
90
|
-
// };
|
|
91
|
-
// }
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export default {
|
|
3
|
-
closeTitle: PropTypes.string,
|
|
4
|
-
dataId: PropTypes.string,
|
|
5
|
-
needClose: PropTypes.bool,
|
|
6
|
-
needIcon: PropTypes.bool,
|
|
7
|
-
onClose: PropTypes.func,
|
|
8
|
-
title: PropTypes.string,
|
|
9
|
-
renderAlertIcon: PropTypes.func,
|
|
10
|
-
type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
|
|
11
|
-
variant: PropTypes.oneOf(['primary', 'secondary']),
|
|
12
|
-
responsiveId: PropTypes.string
|
|
13
|
-
};
|