@zohodesk/dot 1.0.0-beta.26 → 1.0.0-beta.260
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 +1165 -13
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +542 -0
- package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +16 -0
- package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +16 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +16 -0
- package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +16 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +16 -0
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +542 -0
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +16 -0
- package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +16 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +16 -0
- package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +16 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +16 -0
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +542 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +16 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +16 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +16 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +16 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +16 -0
- package/css_error.log +1 -0
- package/es/ActionButton/ActionButton.js +141 -0
- package/es/ActionButton/ActionButton.module.css +139 -0
- package/es/ActionButton/props/defaultProps.js +17 -0
- package/es/ActionButton/props/propTypes.js +31 -0
- package/es/AlphabeticList/AlphabeticList.js +103 -0
- package/es/AlphabeticList/AlphabeticList.module.css +57 -0
- package/es/AlphabeticList/props/defaultProps.js +12 -0
- package/es/AlphabeticList/props/propTypes.js +23 -0
- package/es/Attachment/Attachment.js +88 -0
- package/es/Attachment/Attachment.module.css +160 -0
- package/es/Attachment/props/defaultProps.js +7 -0
- package/es/Attachment/props/propTypes.js +16 -0
- package/es/AttachmentViewer/Attachment.js +16 -0
- package/es/AttachmentViewer/AttachmentImage.js +72 -0
- package/es/AttachmentViewer/AttachmentViewer.js +507 -0
- package/es/AttachmentViewer/AttachmentViewer.module.css +353 -0
- package/es/AttachmentViewer/props/defaultProps.js +10 -0
- package/es/AttachmentViewer/props/propTypes.js +31 -0
- package/es/AttachmentViewer/utils.js +90 -0
- package/es/ChannelIcon/ChannelIcon.js +90 -118
- package/es/ChannelIcon/ChannelIcon.module.css +89 -80
- package/es/ChannelIcon/props/defaultProps.js +7 -0
- package/es/ChannelIcon/props/propTypes.js +25 -0
- package/es/Drawer/Drawer.js +257 -333
- package/es/Drawer/Drawer.module.css +113 -55
- package/es/Drawer/index.js +1 -0
- package/es/Drawer/props/defaultProps.js +21 -0
- package/es/Drawer/props/propTypes.js +50 -0
- package/es/ExternalLink/ExternalLink.js +42 -79
- package/es/ExternalLink/ExternalLink.module.css +3 -3
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +17 -26
- package/es/ExternalLink/props/defaultProps.js +5 -0
- package/es/ExternalLink/props/propTypes.js +12 -0
- package/es/FlipCard/FlipCard.js +127 -168
- package/es/FlipCard/FlipCard.module.css +15 -6
- package/es/FlipCard/props/defaultProps.js +5 -0
- package/es/FlipCard/props/propTypes.js +37 -0
- package/es/FormAction/FormAction.js +67 -116
- package/es/FormAction/FormAction.module.css +27 -22
- package/es/FormAction/props/defaultProps.js +5 -0
- package/es/FormAction/props/propTypes.js +8 -0
- package/es/FreezeLayer/FreezeLayer.js +83 -140
- package/es/FreezeLayer/css/FreezeLayer.module.css +42 -0
- package/es/FreezeLayer/css/cssJSLogic.js +23 -0
- package/es/FreezeLayer/index.js +2 -0
- package/es/FreezeLayer/props/defaultProps.js +9 -0
- package/es/FreezeLayer/props/propTypes.js +19 -0
- package/es/FreezeLayer/useFreezeLayer.js +50 -0
- package/es/Hooks/Dragger/css/Dragger.module.css +3 -0
- package/es/Hooks/Dragger/useDragger.js +82 -0
- package/es/Hooks/Dragger/utils/DraggerUtil.js +66 -0
- package/es/IconButton/IconButton.js +137 -81
- package/es/IconButton/IconButton.module.css +15 -30
- package/es/IconButton/props/defaultProps.js +17 -0
- package/es/IconButton/props/propTypes.js +33 -0
- package/es/Image/Image.js +35 -63
- package/es/Image/Image.module.css +1 -0
- package/es/Image/props/defaultProps.js +4 -0
- package/es/Image/props/propTypes.js +13 -0
- package/es/ImportantNotes/ImportantNotes.js +48 -0
- package/es/ImportantNotes/ImportantNotes.module.css +20 -0
- package/es/ImportantNotes/props/defaultProps.js +6 -0
- package/es/ImportantNotes/props/propTypes.js +10 -0
- package/es/Link/Link.js +88 -127
- package/es/Link/LinkContext.js +2 -4
- package/es/Link/props/defaultProps.js +5 -0
- package/es/Link/props/propTypes.js +14 -0
- package/es/Loader/Loader.js +25 -0
- package/es/Loader/Loader.module.css +47 -0
- package/es/Message/Message.js +107 -0
- package/es/Message/Message.module.css +103 -0
- package/es/Message/props/defaultProps.js +4 -0
- package/es/Message/props/propTypes.js +13 -0
- package/es/MessageBanner/MessageBanner.js +62 -0
- package/es/MessageBanner/MessageBanner.module.css +46 -0
- package/es/MessageBanner/props/defaultProps.js +7 -0
- package/es/MessageBanner/props/propTypes.js +13 -0
- package/es/NewStar/NewStar.js +70 -0
- package/es/NewStar/NewStar.module.css +183 -0
- package/es/NewStar/props/defaultProps.js +4 -0
- package/es/NewStar/props/propTypes.js +6 -0
- package/es/PlusIcon/PlusIcon.js +39 -81
- package/es/PlusIcon/PlusIcon.module.css +14 -2
- package/es/PlusIcon/props/defaultProps.js +8 -0
- package/es/PlusIcon/props/propTypes.js +11 -0
- package/es/Provider/Config.js +19 -0
- package/es/Separator/Separator.js +57 -0
- package/es/Separator/Separator.module.css +34 -0
- package/es/Separator/props/defaultProps.js +12 -0
- package/es/Separator/props/propTypes.js +11 -0
- package/es/TagWithIcon/TagWithIcon.js +41 -0
- package/es/TagWithIcon/TagWithIcon.module.css +56 -0
- package/es/TagWithIcon/props/defaultProps.js +8 -0
- package/es/TagWithIcon/props/propTypes.js +12 -0
- package/es/ToastMessage/ToastMessage.js +194 -338
- package/es/ToastMessage/ToastMessage.module.css +78 -82
- package/es/ToastMessage/props/defaultProps.js +18 -0
- package/es/ToastMessage/props/propTypes.js +39 -0
- package/es/Upload/Upload.js +75 -0
- package/es/Upload/Upload.module.css +125 -0
- package/es/Upload/props/defaultProps.js +7 -0
- package/es/Upload/props/propTypes.js +17 -0
- package/es/actions/AutoClose.js +39 -0
- package/es/actions/index.js +12 -10
- package/es/actions/props/defaultProps.js +3 -0
- package/es/actions/props/propTypes.js +7 -0
- package/es/alert/AlertHeader/AlertHeader.js +67 -126
- package/es/alert/AlertHeader/AlertHeader.module.css +23 -22
- package/es/alert/AlertHeader/props/defaultProps.js +8 -0
- package/es/alert/AlertHeader/props/propTypes.js +15 -0
- package/es/alert/AlertLookup/AlertLookup.js +94 -184
- package/es/alert/AlertLookup/AlertLookup.module.css +12 -8
- package/es/alert/AlertLookup/props/defaultProps.js +14 -0
- package/es/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/alert/index.js +2 -0
- package/es/avatar/AvatarClose/AvatarClose.js +47 -66
- package/es/avatar/AvatarClose/AvatarClose.module.css +4 -4
- package/es/avatar/AvatarClose/props/defaultProps.js +6 -0
- package/es/avatar/AvatarClose/props/propTypes.js +14 -0
- package/es/avatar/AvatarCollision/AvatarCollision.js +55 -86
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +15 -15
- package/es/avatar/AvatarCollision/props/defaultProps.js +8 -0
- package/es/avatar/AvatarCollision/props/propTypes.js +17 -0
- package/es/avatar/AvatarIcon/AvatarIcon.js +49 -85
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +32 -10
- package/es/avatar/AvatarIcon/props/defaultProps.js +14 -0
- package/es/avatar/AvatarIcon/props/propTypes.js +20 -0
- package/es/avatar/AvatarStatus/AvatarStatus.js +66 -72
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +99 -46
- package/es/avatar/AvatarStatus/props/defaultProps.js +12 -0
- package/es/avatar/AvatarStatus/props/propTypes.js +26 -0
- package/es/avatar/AvatarThread/AvatarThread.js +73 -103
- package/es/avatar/AvatarThread/AvatarThread.module.css +120 -18
- package/es/avatar/AvatarThread/props/defaultProps.js +9 -0
- package/es/avatar/AvatarThread/props/propTypes.js +30 -0
- package/es/avatar/AvatarUser/AvatarUser.js +101 -113
- package/es/avatar/AvatarUser/AvatarUser.module.css +96 -26
- package/es/avatar/AvatarUser/props/defaultProps.js +8 -0
- package/es/avatar/AvatarUser/props/propTypes.js +35 -0
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +90 -75
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/es/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +43 -44
- package/es/avatar/AvatarWithTeam/props/defaultProps.js +9 -0
- package/es/avatar/AvatarWithTeam/props/propTypes.js +25 -0
- package/es/avatar/index.js +7 -0
- package/es/common/dot_animation.module.css +27 -0
- package/es/common/dot_boxShadow.module.css +38 -0
- package/es/common/dot_common.module.css +4 -0
- package/es/deprecated/FreezeLayer/FreezeLayer.js +128 -0
- package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -0
- package/es/deprecated/FreezeLayer/props/defaultProps.js +8 -0
- package/es/deprecated/FreezeLayer/props/propTypes.js +17 -0
- package/es/deprecated/SelectDropdown/SelectDropdown.js +145 -0
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -0
- package/es/deprecated/utils/General.js +17 -0
- package/es/deprecated/utils/KeyboardApi.js +253 -0
- package/es/docs/formDocs.js +15 -0
- package/es/docs/generalDocs.js +22 -77
- package/es/docs/lookupDocs.js +9 -24
- package/es/docs/setupDocs.js +1 -17
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +793 -536
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +48 -22
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +27 -0
- package/es/dropdown/ToggleDropDown/props/propTypes.js +76 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +61 -124
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +68 -17
- package/es/emptystate/CommonEmptyState/props/defaultProps.js +10 -0
- package/es/emptystate/CommonEmptyState/props/propTypes.js +21 -0
- package/es/emptystate/EditionPage/EditionPage.css +15 -15
- package/es/emptystate/EditionPage/EditionPage.js +52 -97
- package/es/emptystate/EditionPage/props/defaultProps.js +5 -0
- package/es/emptystate/EditionPage/props/propTypes.js +7 -0
- package/es/errorstate/EmptyStates.module.css +58 -15
- package/es/errorstate/Inconvenience/Inconvenience.js +71 -76
- package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -5
- package/es/errorstate/Inconvenience/props/defaultProps.js +4 -0
- package/es/errorstate/Inconvenience/props/propTypes.js +11 -0
- package/es/errorstate/LinkText/LinkText.js +25 -50
- package/es/errorstate/LinkText/LinkText.module.css +2 -2
- package/es/errorstate/LinkText/props/defaultProps.js +4 -0
- package/es/errorstate/LinkText/props/propTypes.js +8 -0
- package/es/errorstate/NoRequestFound/NoRequestFound.js +76 -81
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +1 -3
- package/es/errorstate/NoRequestFound/props/defaultProps.js +4 -0
- package/es/errorstate/NoRequestFound/props/propTypes.js +11 -0
- package/es/errorstate/PermissionPlay/PermissionPlay.js +75 -89
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +14 -13
- package/es/errorstate/PermissionPlay/props/defaultProps.js +4 -0
- package/es/errorstate/PermissionPlay/props/propTypes.js +11 -0
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +76 -81
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -3
- package/es/errorstate/RequestUrlNotFound/props/defaultProps.js +4 -0
- package/es/errorstate/RequestUrlNotFound/props/propTypes.js +11 -0
- package/es/errorstate/UnableToProcess/UnableToProcess.js +71 -76
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +1 -16
- package/es/errorstate/UnableToProcess/props/defaultProps.js +4 -0
- package/es/errorstate/UnableToProcess/props/propTypes.js +11 -0
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +76 -81
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -16
- package/es/errorstate/UnauthorizedLogin/props/defaultProps.js +4 -0
- package/es/errorstate/UnauthorizedLogin/props/propTypes.js +11 -0
- package/es/errorstate/WillBack/WillBack.js +68 -74
- package/es/errorstate/WillBack/WillBack.module.css +26 -13
- package/es/errorstate/WillBack/props/defaultProps.js +4 -0
- package/es/errorstate/WillBack/props/propTypes.js +5 -0
- package/es/errorstate/index.js +8 -0
- package/es/form/fields/CheckBoxField/CheckBoxField.js +137 -0
- package/es/form/fields/CheckBoxField/props/defaultProps.js +12 -0
- package/es/form/fields/CheckBoxField/props/propTypes.js +27 -0
- package/es/form/fields/CurrencyField/CurrencyField.js +176 -0
- package/es/form/fields/CurrencyField/props/defaultProps.js +17 -0
- package/es/form/fields/CurrencyField/props/propTypes.js +36 -0
- package/es/form/fields/DateField/DateField.js +185 -0
- package/es/form/fields/DateField/props/defaultProps.js +19 -0
- package/es/form/fields/DateField/props/propTypes.js +39 -0
- package/es/form/fields/FieldContainer/FieldContainer.js +68 -0
- package/es/form/fields/FieldContainer/props/defaultProps.js +7 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +12 -0
- package/es/form/fields/Fields.module.css +183 -0
- package/es/form/fields/MultiSelectField/MultiSelectField.js +210 -0
- package/es/form/fields/MultiSelectField/props/defaultProps.js +17 -0
- package/es/form/fields/MultiSelectField/props/propTypes.js +50 -0
- package/es/form/fields/PhoneField/PhoneField.js +181 -0
- package/es/form/fields/PhoneField/props/defaultProps.js +16 -0
- package/es/form/fields/PhoneField/props/propTypes.js +40 -0
- package/es/form/fields/RadioField/RadioField.js +113 -0
- package/es/form/fields/RadioField/props/defaultProps.js +12 -0
- package/es/form/fields/RadioField/props/propTypes.js +30 -0
- package/es/form/fields/SelectField/SelectField.js +183 -0
- package/es/form/fields/SelectField/props/defaultProps.js +18 -0
- package/es/form/fields/SelectField/props/propTypes.js +50 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +280 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -0
- package/es/form/fields/TagsMultiSelect/props/defaultProps.js +11 -0
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +43 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +242 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -0
- package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +19 -0
- package/es/form/fields/TagsMultiSelectField/props/propTypes.js +52 -0
- package/es/form/fields/TextBoxField/TextBoxField.js +163 -0
- package/es/form/fields/TextBoxField/props/defaultProps.js +17 -0
- package/es/form/fields/TextBoxField/props/propTypes.js +37 -0
- package/es/form/fields/TextEditor/TextEditor.js +366 -0
- package/es/form/fields/TextEditor/TextEditor.module.css +771 -0
- package/es/form/fields/TextEditor/props/defaultProps.js +13 -0
- package/es/form/fields/TextEditor/props/propTypes.js +40 -0
- package/es/form/fields/TextEditorField/TextEditorField.js +172 -0
- package/es/form/fields/TextEditorField/props/defaultProps.js +15 -0
- package/es/form/fields/TextEditorField/props/propTypes.js +47 -0
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +195 -0
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +38 -0
- package/es/form/fields/TextEditorWrapper/props/defaultProps.js +9 -0
- package/es/form/fields/TextEditorWrapper/props/propTypes.js +39 -0
- package/es/form/fields/TextareaField/TextareaField.js +160 -0
- package/es/form/fields/TextareaField/props/defaultProps.js +15 -0
- package/es/form/fields/TextareaField/props/propTypes.js +34 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.js +58 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -0
- package/es/form/fields/ValidationMessage/props/defaultProps.js +7 -0
- package/es/form/fields/ValidationMessage/props/propTypes.js +14 -0
- package/es/form/fields/index.js +16 -0
- package/es/form/fields/props/FieldCommonDefaultProps.js +10 -0
- package/es/form/fields/props/FieldCommonPropTypes.js +23 -0
- package/es/form/layout/Field/Field.js +33 -0
- package/es/form/layout/Field/Field.module.css +22 -0
- package/es/form/layout/Field/props/defaultProps.js +4 -0
- package/es/form/layout/Field/props/propTypes.js +10 -0
- package/es/form/layout/Section/ModuleFormSection.module.css +3 -0
- package/es/form/layout/Section/Section.js +34 -0
- package/es/form/layout/Section/props/propTypes.js +9 -0
- package/es/form/layout/index.js +2 -0
- package/es/index.js +51 -14
- package/es/layout/SetupDetailLayout/SetupDetailLayout.js +184 -320
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +45 -45
- package/es/layout/SetupDetailLayout/props/defaultProps.js +18 -0
- package/es/layout/SetupDetailLayout/props/propTypes.js +33 -0
- package/es/layout/SubtabLayout/SubtabLayout.js +132 -218
- package/es/layout/SubtabLayout/SubtabLayout.module.css +103 -28
- package/es/layout/SubtabLayout/index.js +2 -1
- package/es/layout/SubtabLayout/props/defaultProps.js +25 -0
- package/es/layout/SubtabLayout/props/propTypes.js +40 -0
- package/es/list/AvatarFlip/AvatarFlip.js +72 -104
- package/es/list/AvatarFlip/AvatarFlip.module.css +1 -13
- package/es/list/AvatarFlip/props/defaultProps.js +6 -0
- package/es/list/AvatarFlip/props/propTypes.js +29 -0
- package/es/list/BluePrintStatus/BluePrintStatus.js +25 -47
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +10 -8
- package/es/list/BluePrintStatus/props/propTypes.js +4 -0
- package/es/list/Comment/Comment.js +41 -77
- package/es/list/Comment/Comment.module.css +13 -6
- package/es/list/Comment/props/defaultProps.js +3 -0
- package/es/list/Comment/props/propTypes.js +9 -0
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +87 -96
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +6 -80
- package/es/list/DepartmentDropDown/props/defaultProps.js +7 -0
- package/es/list/DepartmentDropDown/props/propTypes.js +24 -0
- package/es/list/Dot/Dot.js +17 -44
- package/es/list/Dot/Dot.module.css +8 -6
- package/es/list/Dot/props/defaultProps.js +4 -0
- package/es/list/Dot/props/propTypes.js +5 -0
- package/es/list/DotNew/DotNew.js +26 -38
- package/es/list/DotNew/DotNew.module.css +20 -14
- package/es/list/DotNew/props/defaultProps.js +3 -0
- package/es/list/DotNew/props/propTypes.js +6 -0
- package/es/list/GridStencils/GridStencils.js +32 -62
- package/es/list/GridStencils/GridStencils.module.css +40 -85
- package/es/list/GridStencils/props/propTypes.js +7 -0
- package/es/list/Icons/AddNewIcon.js +22 -66
- package/es/list/Icons/CompleteIcon.js +23 -55
- package/es/list/Icons/DeleteIcon.js +24 -75
- package/es/list/Icons/EditIcon.js +23 -74
- package/es/list/Icons/FloatingIcons.js +27 -55
- package/es/list/Icons/Icons.module.css +5 -4
- package/es/list/Icons/ReadUnreadIcon.js +31 -0
- package/es/list/Icons/SmartIcon.js +23 -45
- package/es/list/Icons/index.js +7 -0
- package/es/list/Icons/props/defaultProps.js +6 -0
- package/es/list/Icons/props/propTypes.js +55 -0
- package/es/list/ListLayout/ListLayout.js +73 -134
- package/es/list/ListLayout/ListLayout.module.css +43 -12
- package/es/list/ListLayout/props/defaultProps.js +11 -0
- package/es/list/ListLayout/props/propTypes.js +28 -0
- package/es/list/ListStencils/ListStencils.js +39 -55
- package/es/list/ListStencils/ListStencils.module.css +52 -12
- package/es/list/ListStencils/props/defaultProps.js +3 -0
- package/es/list/ListStencils/props/propTypes.js +4 -0
- package/es/list/SecondaryText/AccountName.js +72 -90
- package/es/list/SecondaryText/ContactName.js +78 -121
- package/es/list/SecondaryText/DepartmentText.js +26 -51
- package/es/list/SecondaryText/Email.js +44 -80
- package/es/list/SecondaryText/HappinessRating.js +26 -58
- package/es/list/SecondaryText/PhoneNumber.js +48 -83
- package/es/list/SecondaryText/PriorityText.js +29 -59
- package/es/list/SecondaryText/SecondaryText.js +35 -57
- package/es/list/SecondaryText/SecondaryText.module.css +58 -26
- package/es/list/SecondaryText/StatusText.js +30 -62
- package/es/list/SecondaryText/TicketId.js +47 -72
- package/es/list/SecondaryText/Website.js +33 -77
- package/es/list/SecondaryText/props/defaultProps.js +44 -0
- package/es/list/SecondaryText/props/propTypes.js +143 -0
- package/es/list/SecondryPanel/SecondryPanel.js +93 -187
- package/es/list/SecondryPanel/SecondryPanel.module.css +1 -22
- package/es/list/SecondryPanel/props/defaultProps.js +18 -0
- package/es/list/SecondryPanel/props/propTypes.js +27 -0
- package/es/list/SentimentStatus/SentimentStatus.js +31 -50
- package/es/list/SentimentStatus/SentimentStatus.module.css +3 -3
- package/es/list/SentimentStatus/props/propTypes.js +5 -0
- package/es/list/Subject/Subject.js +51 -85
- package/es/list/Subject/Subject.module.css +21 -3
- package/es/list/Subject/props/defaultProps.js +7 -0
- package/es/list/Subject/props/propTypes.js +19 -0
- package/es/list/TagNew/TagNew.js +29 -55
- package/es/list/TagNew/TagNew.module.css +11 -9
- package/es/list/TagNew/props/defaultProps.js +4 -0
- package/es/list/TagNew/props/propTypes.js +8 -0
- package/es/list/Thread/Thread.js +40 -60
- package/es/list/Thread/Thread.module.css +32 -9
- package/es/list/Thread/props/defaultProps.js +4 -0
- package/es/list/Thread/props/propTypes.js +8 -0
- package/es/list/UserTime/UserTime.js +76 -106
- package/es/list/UserTime/UserTime.module.css +25 -16
- package/es/list/UserTime/props/defaultProps.js +3 -0
- package/es/list/UserTime/props/propTypes.js +14 -0
- package/es/list/index.js +17 -0
- package/es/list/listCommon.module.css +21 -53
- package/es/list/status/StatusDropdown/StatusDropdown.js +425 -0
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -0
- package/es/list/status/StatusDropdown/props/defaultProps.js +19 -0
- package/es/list/status/StatusDropdown/props/propTypes.js +51 -0
- package/es/list/status/StatusListItem/StatusListItem.js +114 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +109 -0
- package/es/list/status/StatusListItem/props/defaultProps.js +15 -0
- package/es/list/status/StatusListItem/props/propTypes.js +29 -0
- package/es/list/status/index.js +2 -0
- package/es/lookup/EmptyPage/EmptyPage.js +52 -83
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
- package/es/lookup/EmptyPage/props/defaultProps.js +4 -0
- package/es/lookup/EmptyPage/props/propTypes.js +5 -0
- package/es/lookup/Lookup/Lookup.js +86 -86
- package/es/lookup/Lookup/Lookup.module.css +13 -9
- package/es/lookup/Lookup/props/defaultProps.js +7 -0
- package/es/lookup/Lookup/props/propTypes.js +18 -0
- package/es/lookup/Section/LookupSection.module.css +5 -4
- package/es/lookup/Section/Section.js +19 -48
- package/es/lookup/Section/props/propTypes.js +6 -0
- package/es/lookup/header/Close/Close.js +25 -53
- package/es/lookup/header/Close/LookupClose.module.css +7 -7
- package/es/lookup/header/Close/props/defaultProps.js +3 -0
- package/es/lookup/header/Close/props/propTypes.js +6 -0
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +62 -90
- package/es/lookup/header/ModuleHeader/props/defaultProps.js +3 -0
- package/es/lookup/header/ModuleHeader/props/propTypes.js +17 -0
- package/es/lookup/header/Search/LookupSearch.module.css +53 -10
- package/es/lookup/header/Search/Search.js +207 -129
- package/es/lookup/header/Search/props/defaultProps.js +5 -0
- package/es/lookup/header/Search/props/propTypes.js +28 -0
- package/es/lookup/header/TicketHeader/TicketHeader.js +80 -115
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +4 -3
- package/es/lookup/header/TicketHeader/props/defaultProps.js +4 -0
- package/es/lookup/header/TicketHeader/props/propTypes.js +20 -0
- package/es/lookup/header/Title/LookupTitle.module.css +4 -4
- package/es/lookup/header/Title/Title.js +22 -54
- package/es/lookup/header/Title/props/defaultProps.js +3 -0
- package/es/lookup/header/Title/props/propTypes.js +6 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +149 -195
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +17 -19
- package/es/lookup/header/ViewDropDown/props/defaultProps.js +7 -0
- package/es/lookup/header/ViewDropDown/props/propTypes.js +26 -0
- package/es/lookup/header/index.js +5 -0
- package/es/lookup/header/lookupHeaderCommon.module.css +19 -11
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +4 -4
- package/es/lookup/index.js +5 -0
- package/es/setup/header/Button/Button.js +32 -59
- package/es/setup/header/Button/HeaderButton.module.css +2 -2
- package/es/setup/header/Button/props/defaultProps.js +4 -0
- package/es/setup/header/Button/props/propTypes.js +7 -0
- package/es/setup/header/Link/HeaderLink.module.css +8 -9
- package/es/setup/header/Link/Link.js +39 -70
- package/es/setup/header/Link/props/defaultProps.js +4 -0
- package/es/setup/header/Link/props/propTypes.js +8 -0
- package/es/setup/header/Search/Search.js +71 -96
- package/es/setup/header/Search/Search.module.css +20 -19
- package/es/setup/header/Search/props/defaultProps.js +5 -0
- package/es/setup/header/Search/props/propTypes.js +11 -0
- package/es/setup/header/Views/Views.js +43 -77
- package/es/setup/header/Views/Views.module.css +8 -8
- package/es/setup/header/Views/props/defaultProps.js +6 -0
- package/es/setup/header/Views/props/propTypes.js +9 -0
- package/es/setup/header/index.js +4 -0
- package/es/setup/helptips/Description/Description.js +21 -42
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +3 -3
- package/es/setup/helptips/Description/props/propTypes.js +4 -0
- package/es/setup/helptips/Link/HelpTipsLink.module.css +3 -3
- package/es/setup/helptips/Link/Link.js +34 -57
- package/es/setup/helptips/Link/props/propTypes.js +7 -0
- package/es/setup/helptips/ListGroup/ListGroup.js +33 -63
- package/es/setup/helptips/ListGroup/ListGroup.module.css +4 -4
- package/es/setup/helptips/ListGroup/props/propTypes.js +5 -0
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +2 -2
- package/es/setup/helptips/Title/Title.js +21 -42
- package/es/setup/helptips/Title/props/propTypes.js +4 -0
- package/es/setup/helptips/index.js +4 -0
- package/es/setup/index.js +6 -0
- package/es/setup/table/Table/Table.js +23 -50
- package/es/setup/table/Table/props/defaultProps.js +4 -0
- package/es/setup/table/Table/props/propTypes.js +6 -0
- package/es/setup/table/TableBody/TableBody.js +27 -50
- package/es/setup/table/TableBody/props/defaultProps.js +3 -0
- package/es/setup/table/TableBody/props/propTypes.js +7 -0
- package/es/setup/table/TableData/SetupTableData.module.css +44 -0
- package/es/setup/table/TableData/TableData.js +33 -65
- package/es/setup/table/TableData/props/defaultProps.js +5 -0
- package/es/setup/table/TableData/props/propTypes.js +10 -0
- package/es/setup/table/TableHead/SetupTableHead.module.css +12 -0
- package/es/setup/table/TableHead/TableHead.js +35 -69
- package/es/setup/table/TableHead/props/defaultProps.js +4 -0
- package/es/setup/table/TableHead/props/propTypes.js +7 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +14 -0
- package/es/setup/table/TableRow/TableRow.js +40 -75
- package/es/setup/table/TableRow/props/defaultProps.js +4 -0
- package/es/setup/table/TableRow/props/propTypes.js +11 -0
- package/es/setup/table/Text/TableText.module.css +37 -0
- package/es/setup/table/Text/Text.js +48 -100
- package/es/setup/table/Text/props/defaultProps.js +7 -0
- package/es/setup/table/Text/props/propTypes.js +13 -0
- package/es/setup/table/index.js +5 -0
- package/es/svg/PlusIcon.js +31 -66
- package/es/svg/SnippetIcon.js +33 -69
- package/es/svg/TemplateIcon.js +34 -64
- package/es/svg/index.js +3 -0
- package/es/svg/props/defaultProps.js +15 -0
- package/es/svg/props/propTypes.js +16 -0
- package/es/utils/ChannelIconMapping.js +101 -84
- package/es/utils/General.js +25 -6
- package/es/utils/editorUtils.js +169 -0
- package/es/version2/AlertClose/AlertClose.js +41 -0
- package/es/version2/AlertClose/AlertClose.module.css +43 -0
- package/es/version2/AlertClose/props/propTypes.js +8 -0
- package/es/version2/GlobalNotification/GlobalNotification.js +134 -0
- package/es/version2/GlobalNotification/GlobalNotification.module.css +128 -0
- package/es/version2/GlobalNotification/props/defaultProps.js +4 -0
- package/es/version2/GlobalNotification/props/propTypes.js +14 -0
- package/es/version2/alertIcons/AlarmAlertIcon.js +67 -0
- package/es/version2/alertIcons/AlertIcons.js +61 -0
- package/es/version2/alertIcons/AlertIcons.module.css +67 -0
- package/es/version2/alertIcons/DangerAlertIcon.js +67 -0
- package/es/version2/alertIcons/ErrorAlertIcon.js +72 -0
- package/es/version2/alertIcons/InfoAlertIcon.js +76 -0
- package/es/version2/alertIcons/NotificationAlertIcon.js +72 -0
- package/es/version2/alertIcons/SuccessAlertIcon.js +67 -0
- package/es/version2/alertIcons/WarningAlertIcon.js +67 -0
- package/es/version2/alertIcons/index.js +8 -0
- package/es/version2/alertIcons/props/defaultProps.js +27 -0
- package/es/version2/alertIcons/props/propTypes.js +34 -0
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +70 -0
- package/es/version2/errorstate/Inconvenience/props/defaultProps.js +8 -0
- package/es/version2/errorstate/Inconvenience/props/propTypes.js +16 -0
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +71 -0
- package/es/version2/errorstate/OopsSomethingMiss/props/defaultProps.js +8 -0
- package/es/version2/errorstate/OopsSomethingMiss/props/propTypes.js +16 -0
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +70 -0
- package/es/version2/errorstate/UnableToProcessRequest/props/defaultProps.js +8 -0
- package/es/version2/errorstate/UnableToProcessRequest/props/propTypes.js +16 -0
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +72 -0
- package/es/version2/errorstate/UnauthorizedLogin/props/defaultProps.js +9 -0
- package/es/version2/errorstate/UnauthorizedLogin/props/propTypes.js +17 -0
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +70 -0
- package/es/version2/errorstate/UrlNotFound/props/defaultProps.js +8 -0
- package/es/version2/errorstate/UrlNotFound/props/propTypes.js +16 -0
- package/es/version2/errorstate/V2_ErrorStates.module.css +46 -0
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +70 -0
- package/es/version2/errorstate/WillBeRightBack/props/defaultProps.js +8 -0
- package/es/version2/errorstate/WillBeRightBack/props/propTypes.js +16 -0
- package/es/version2/errorstate/index.js +6 -0
- package/es/version2/index.js +12 -0
- package/es/version2/lookup/AlertHeader/AlertHeader.js +63 -0
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +88 -0
- package/es/version2/lookup/AlertHeader/props/defaultProps.js +6 -0
- package/es/version2/lookup/AlertHeader/props/propTypes.js +12 -0
- package/es/version2/lookup/AlertLookup/AlertLookup.js +197 -0
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +44 -0
- package/es/version2/lookup/AlertLookup/props/defaultProps.js +13 -0
- package/es/version2/lookup/AlertLookup/props/propTypes.js +36 -0
- package/es/version2/lookup/alertLookupCommonNew.module.css +33 -0
- package/es/version2/lookup/index.js +2 -0
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +161 -0
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +127 -0
- package/es/version2/notification/DesktopNotification/props/defaultProps.js +15 -0
- package/es/version2/notification/DesktopNotification/props/propTypes.js +37 -0
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +61 -0
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +137 -0
- package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -0
- package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +11 -0
- package/es/version2/notification/index.js +3 -0
- package/images/audio_thumbnail.png +0 -0
- package/install.md +12 -0
- package/lib/ActionButton/ActionButton.js +172 -0
- package/lib/ActionButton/ActionButton.module.css +139 -0
- package/lib/ActionButton/props/defaultProps.js +24 -0
- package/lib/ActionButton/props/propTypes.js +39 -0
- package/lib/AlphabeticList/AlphabeticList.js +144 -0
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -0
- package/lib/AlphabeticList/props/defaultProps.js +20 -0
- package/lib/AlphabeticList/props/propTypes.js +41 -0
- package/lib/Attachment/Attachment.js +117 -0
- package/lib/Attachment/Attachment.module.css +160 -0
- package/lib/Attachment/props/defaultProps.js +14 -0
- package/lib/Attachment/props/propTypes.js +24 -0
- package/lib/AttachmentViewer/Attachment.js +24 -0
- package/lib/AttachmentViewer/AttachmentImage.js +97 -0
- package/lib/AttachmentViewer/AttachmentViewer.js +559 -0
- package/lib/AttachmentViewer/AttachmentViewer.module.css +353 -0
- package/lib/AttachmentViewer/props/defaultProps.js +18 -0
- package/lib/AttachmentViewer/props/propTypes.js +40 -0
- package/lib/AttachmentViewer/utils.js +113 -0
- package/lib/ChannelIcon/ChannelIcon.js +105 -133
- package/lib/ChannelIcon/ChannelIcon.module.css +89 -80
- package/lib/ChannelIcon/props/defaultProps.js +14 -0
- package/lib/ChannelIcon/props/propTypes.js +33 -0
- package/lib/Drawer/Drawer.js +278 -335
- package/lib/Drawer/Drawer.module.css +113 -55
- package/lib/Drawer/index.js +33 -0
- package/lib/Drawer/props/defaultProps.js +30 -0
- package/lib/Drawer/props/propTypes.js +61 -0
- package/lib/ExternalLink/ExternalLink.js +59 -87
- package/lib/ExternalLink/ExternalLink.module.css +3 -3
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +13 -31
- package/lib/ExternalLink/props/defaultProps.js +12 -0
- package/lib/ExternalLink/props/propTypes.js +20 -0
- package/lib/FlipCard/FlipCard.js +139 -183
- package/lib/FlipCard/FlipCard.module.css +15 -6
- package/lib/FlipCard/props/defaultProps.js +12 -0
- package/lib/FlipCard/props/propTypes.js +45 -0
- package/lib/FormAction/FormAction.js +78 -114
- package/lib/FormAction/FormAction.module.css +27 -22
- package/lib/FormAction/props/defaultProps.js +12 -0
- package/lib/FormAction/props/propTypes.js +16 -0
- package/lib/FreezeLayer/FreezeLayer.js +88 -163
- package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -0
- package/lib/FreezeLayer/css/cssJSLogic.js +25 -0
- package/lib/FreezeLayer/index.js +20 -0
- package/lib/FreezeLayer/props/defaultProps.js +16 -0
- package/lib/FreezeLayer/props/propTypes.js +28 -0
- package/lib/FreezeLayer/useFreezeLayer.js +73 -0
- package/lib/Hooks/Dragger/css/Dragger.module.css +3 -0
- package/lib/Hooks/Dragger/useDragger.js +88 -0
- package/lib/Hooks/Dragger/utils/DraggerUtil.js +70 -0
- package/lib/IconButton/IconButton.js +160 -98
- package/lib/IconButton/IconButton.module.css +15 -30
- package/lib/IconButton/props/defaultProps.js +24 -0
- package/lib/IconButton/props/propTypes.js +41 -0
- package/lib/Image/Image.js +51 -68
- package/lib/Image/Image.module.css +1 -0
- package/lib/Image/props/defaultProps.js +11 -0
- package/lib/Image/props/propTypes.js +21 -0
- package/lib/ImportantNotes/ImportantNotes.js +75 -0
- package/lib/ImportantNotes/ImportantNotes.module.css +20 -0
- package/lib/ImportantNotes/props/defaultProps.js +13 -0
- package/lib/ImportantNotes/props/propTypes.js +18 -0
- package/lib/Link/Link.js +80 -109
- package/lib/Link/LinkContext.js +7 -10
- package/lib/Link/props/defaultProps.js +12 -0
- package/lib/Link/props/propTypes.js +22 -0
- package/lib/Loader/Loader.js +53 -0
- package/lib/Loader/Loader.module.css +47 -0
- package/lib/Message/Message.js +136 -0
- package/lib/Message/Message.module.css +103 -0
- package/lib/Message/props/defaultProps.js +11 -0
- package/lib/Message/props/propTypes.js +21 -0
- package/lib/MessageBanner/MessageBanner.js +92 -0
- package/lib/MessageBanner/MessageBanner.module.css +46 -0
- package/lib/MessageBanner/props/defaultProps.js +14 -0
- package/lib/MessageBanner/props/propTypes.js +21 -0
- package/lib/NewStar/NewStar.js +100 -0
- package/lib/NewStar/NewStar.module.css +183 -0
- package/lib/NewStar/props/defaultProps.js +11 -0
- package/lib/NewStar/props/propTypes.js +14 -0
- package/lib/PlusIcon/PlusIcon.js +56 -93
- package/lib/PlusIcon/PlusIcon.module.css +14 -2
- package/lib/PlusIcon/props/defaultProps.js +15 -0
- package/lib/PlusIcon/props/propTypes.js +19 -0
- package/lib/Provider/Config.js +26 -0
- package/lib/Separator/Separator.js +84 -0
- package/lib/Separator/Separator.module.css +34 -0
- package/lib/Separator/props/defaultProps.js +19 -0
- package/lib/Separator/props/propTypes.js +19 -0
- package/lib/TagWithIcon/TagWithIcon.js +71 -0
- package/lib/TagWithIcon/TagWithIcon.module.css +56 -0
- package/lib/TagWithIcon/props/defaultProps.js +15 -0
- package/lib/TagWithIcon/props/propTypes.js +20 -0
- package/lib/ToastMessage/ToastMessage.js +210 -360
- package/lib/ToastMessage/ToastMessage.module.css +78 -82
- package/lib/ToastMessage/props/defaultProps.js +25 -0
- package/lib/ToastMessage/props/propTypes.js +47 -0
- package/lib/Upload/Upload.js +104 -0
- package/lib/Upload/Upload.module.css +125 -0
- package/lib/Upload/props/defaultProps.js +14 -0
- package/lib/Upload/props/propTypes.js +25 -0
- package/lib/actions/AutoClose.js +55 -0
- package/lib/actions/index.js +8 -3
- package/lib/actions/props/defaultProps.js +10 -0
- package/lib/actions/props/propTypes.js +15 -0
- package/lib/alert/AlertHeader/AlertHeader.js +86 -142
- package/lib/alert/AlertHeader/AlertHeader.module.css +23 -22
- package/lib/alert/AlertHeader/props/defaultProps.js +15 -0
- package/lib/alert/AlertHeader/props/propTypes.js +23 -0
- package/lib/alert/AlertLookup/AlertLookup.js +122 -219
- package/lib/alert/AlertLookup/AlertLookup.module.css +12 -8
- package/lib/alert/AlertLookup/props/defaultProps.js +21 -0
- package/lib/alert/AlertLookup/props/propTypes.js +44 -0
- package/lib/alert/index.js +20 -0
- package/lib/avatar/AvatarClose/AvatarClose.js +64 -81
- package/lib/avatar/AvatarClose/AvatarClose.module.css +4 -4
- package/lib/avatar/AvatarClose/props/defaultProps.js +13 -0
- package/lib/avatar/AvatarClose/props/propTypes.js +22 -0
- package/lib/avatar/AvatarCollision/AvatarCollision.js +72 -102
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +15 -15
- package/lib/avatar/AvatarCollision/props/defaultProps.js +15 -0
- package/lib/avatar/AvatarCollision/props/propTypes.js +25 -0
- package/lib/avatar/AvatarIcon/AvatarIcon.js +68 -99
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +32 -10
- package/lib/avatar/AvatarIcon/props/defaultProps.js +21 -0
- package/lib/avatar/AvatarIcon/props/propTypes.js +28 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +84 -85
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +99 -46
- package/lib/avatar/AvatarStatus/props/defaultProps.js +19 -0
- package/lib/avatar/AvatarStatus/props/propTypes.js +33 -0
- package/lib/avatar/AvatarThread/AvatarThread.js +93 -119
- package/lib/avatar/AvatarThread/AvatarThread.module.css +120 -18
- package/lib/avatar/AvatarThread/props/defaultProps.js +16 -0
- package/lib/avatar/AvatarThread/props/propTypes.js +38 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +124 -135
- package/lib/avatar/AvatarUser/AvatarUser.module.css +96 -26
- package/lib/avatar/AvatarUser/props/defaultProps.js +15 -0
- package/lib/avatar/AvatarUser/props/propTypes.js +43 -0
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +116 -92
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/lib/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +42 -51
- package/lib/avatar/AvatarWithTeam/props/defaultProps.js +16 -0
- package/lib/avatar/AvatarWithTeam/props/propTypes.js +33 -0
- package/lib/avatar/index.js +55 -0
- package/lib/common/dot_animation.module.css +27 -0
- package/lib/common/dot_boxShadow.module.css +38 -0
- package/lib/common/dot_common.module.css +4 -0
- package/lib/deprecated/FreezeLayer/FreezeLayer.js +163 -0
- package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -0
- package/lib/deprecated/FreezeLayer/props/defaultProps.js +15 -0
- package/lib/deprecated/FreezeLayer/props/propTypes.js +25 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +175 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -0
- package/lib/deprecated/utils/General.js +24 -0
- package/lib/deprecated/utils/KeyboardApi.js +258 -0
- package/lib/docs/formDocs.js +111 -0
- package/lib/docs/generalDocs.js +179 -631
- package/lib/docs/lookupDocs.js +50 -128
- package/lib/docs/setupDocs.js +35 -175
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +804 -556
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +48 -22
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +34 -0
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +84 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +83 -140
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +68 -17
- package/lib/emptystate/CommonEmptyState/props/defaultProps.js +17 -0
- package/lib/emptystate/CommonEmptyState/props/propTypes.js +29 -0
- package/lib/emptystate/EditionPage/EditionPage.css +15 -15
- package/lib/emptystate/EditionPage/EditionPage.js +69 -105
- package/lib/emptystate/EditionPage/props/defaultProps.js +12 -0
- package/lib/emptystate/EditionPage/props/propTypes.js +15 -0
- package/lib/errorstate/EmptyStates.module.css +58 -15
- package/lib/errorstate/Inconvenience/Inconvenience.js +91 -98
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +3 -5
- package/lib/errorstate/Inconvenience/props/defaultProps.js +11 -0
- package/lib/errorstate/Inconvenience/props/propTypes.js +19 -0
- package/lib/errorstate/LinkText/LinkText.js +45 -62
- package/lib/errorstate/LinkText/LinkText.module.css +2 -2
- package/lib/errorstate/LinkText/props/defaultProps.js +11 -0
- package/lib/errorstate/LinkText/props/propTypes.js +16 -0
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +96 -103
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +1 -3
- package/lib/errorstate/NoRequestFound/props/defaultProps.js +11 -0
- package/lib/errorstate/NoRequestFound/props/propTypes.js +19 -0
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +95 -111
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +14 -13
- package/lib/errorstate/PermissionPlay/props/defaultProps.js +11 -0
- package/lib/errorstate/PermissionPlay/props/propTypes.js +19 -0
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +96 -103
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -3
- package/lib/errorstate/RequestUrlNotFound/props/defaultProps.js +11 -0
- package/lib/errorstate/RequestUrlNotFound/props/propTypes.js +19 -0
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +91 -98
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +1 -16
- package/lib/errorstate/UnableToProcess/props/defaultProps.js +11 -0
- package/lib/errorstate/UnableToProcess/props/propTypes.js +19 -0
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +96 -103
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -16
- package/lib/errorstate/UnauthorizedLogin/props/defaultProps.js +11 -0
- package/lib/errorstate/UnauthorizedLogin/props/propTypes.js +19 -0
- package/lib/errorstate/WillBack/WillBack.js +87 -92
- package/lib/errorstate/WillBack/WillBack.module.css +26 -13
- package/lib/errorstate/WillBack/props/defaultProps.js +11 -0
- package/lib/errorstate/WillBack/props/propTypes.js +13 -0
- package/lib/errorstate/index.js +62 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +167 -0
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +24 -0
- package/lib/form/fields/CheckBoxField/props/propTypes.js +40 -0
- package/lib/form/fields/CurrencyField/CurrencyField.js +204 -0
- package/lib/form/fields/CurrencyField/props/defaultProps.js +29 -0
- package/lib/form/fields/CurrencyField/props/propTypes.js +49 -0
- package/lib/form/fields/DateField/DateField.js +216 -0
- package/lib/form/fields/DateField/props/defaultProps.js +31 -0
- package/lib/form/fields/DateField/props/propTypes.js +52 -0
- package/lib/form/fields/FieldContainer/FieldContainer.js +94 -0
- package/lib/form/fields/FieldContainer/props/defaultProps.js +19 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +25 -0
- package/lib/form/fields/Fields.module.css +183 -0
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +242 -0
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +29 -0
- package/lib/form/fields/MultiSelectField/props/propTypes.js +63 -0
- package/lib/form/fields/PhoneField/PhoneField.js +206 -0
- package/lib/form/fields/PhoneField/props/defaultProps.js +23 -0
- package/lib/form/fields/PhoneField/props/propTypes.js +48 -0
- package/lib/form/fields/RadioField/RadioField.js +141 -0
- package/lib/form/fields/RadioField/props/defaultProps.js +19 -0
- package/lib/form/fields/RadioField/props/propTypes.js +38 -0
- package/lib/form/fields/SelectField/SelectField.js +210 -0
- package/lib/form/fields/SelectField/props/defaultProps.js +30 -0
- package/lib/form/fields/SelectField/props/propTypes.js +63 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +308 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -0
- package/lib/form/fields/TagsMultiSelect/props/defaultProps.js +18 -0
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +51 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +258 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -0
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +31 -0
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +65 -0
- package/lib/form/fields/TextBoxField/TextBoxField.js +192 -0
- package/lib/form/fields/TextBoxField/props/defaultProps.js +29 -0
- package/lib/form/fields/TextBoxField/props/propTypes.js +50 -0
- package/lib/form/fields/TextEditor/TextEditor.js +399 -0
- package/lib/form/fields/TextEditor/TextEditor.module.css +771 -0
- package/lib/form/fields/TextEditor/props/defaultProps.js +20 -0
- package/lib/form/fields/TextEditor/props/propTypes.js +48 -0
- package/lib/form/fields/TextEditorField/TextEditorField.js +202 -0
- package/lib/form/fields/TextEditorField/props/defaultProps.js +27 -0
- package/lib/form/fields/TextEditorField/props/propTypes.js +60 -0
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +224 -0
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +38 -0
- package/lib/form/fields/TextEditorWrapper/props/defaultProps.js +16 -0
- package/lib/form/fields/TextEditorWrapper/props/propTypes.js +47 -0
- package/lib/form/fields/TextareaField/TextareaField.js +189 -0
- package/lib/form/fields/TextareaField/props/defaultProps.js +27 -0
- package/lib/form/fields/TextareaField/props/propTypes.js +47 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +87 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -0
- package/lib/form/fields/ValidationMessage/props/defaultProps.js +14 -0
- package/lib/form/fields/ValidationMessage/props/propTypes.js +22 -0
- package/lib/form/fields/index.js +118 -0
- package/lib/form/fields/props/FieldCommonDefaultProps.js +17 -0
- package/lib/form/fields/props/FieldCommonPropTypes.js +31 -0
- package/lib/form/layout/Field/Field.js +65 -0
- package/lib/form/layout/Field/Field.module.css +22 -0
- package/lib/form/layout/Field/props/defaultProps.js +11 -0
- package/lib/form/layout/Field/props/propTypes.js +18 -0
- package/lib/form/layout/Section/ModuleFormSection.module.css +3 -0
- package/lib/form/layout/Section/Section.js +63 -0
- package/lib/form/layout/Section/props/propTypes.js +17 -0
- package/lib/form/layout/index.js +20 -0
- package/lib/index.js +258 -56
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +191 -304
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +45 -45
- package/lib/layout/SetupDetailLayout/index.js +12 -13
- package/lib/layout/SetupDetailLayout/props/defaultProps.js +28 -0
- package/lib/layout/SetupDetailLayout/props/propTypes.js +44 -0
- package/lib/layout/SubtabLayout/SubtabLayout.js +171 -225
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +103 -28
- package/lib/layout/SubtabLayout/index.js +16 -11
- package/lib/layout/SubtabLayout/props/defaultProps.js +35 -0
- package/lib/layout/SubtabLayout/props/propTypes.js +51 -0
- package/lib/list/AvatarFlip/AvatarFlip.js +74 -96
- package/lib/list/AvatarFlip/AvatarFlip.module.css +1 -13
- package/lib/list/AvatarFlip/props/defaultProps.js +13 -0
- package/lib/list/AvatarFlip/props/propTypes.js +37 -0
- package/lib/list/BluePrintStatus/BluePrintStatus.js +40 -58
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +10 -8
- package/lib/list/BluePrintStatus/props/propTypes.js +12 -0
- package/lib/list/Comment/Comment.js +57 -86
- package/lib/list/Comment/Comment.module.css +13 -6
- package/lib/list/Comment/props/defaultProps.js +10 -0
- package/lib/list/Comment/props/propTypes.js +17 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +94 -90
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +6 -80
- package/lib/list/DepartmentDropDown/props/defaultProps.js +14 -0
- package/lib/list/DepartmentDropDown/props/propTypes.js +33 -0
- package/lib/list/Dot/Dot.js +34 -51
- package/lib/list/Dot/Dot.module.css +8 -6
- package/lib/list/Dot/props/defaultProps.js +11 -0
- package/lib/list/Dot/props/propTypes.js +13 -0
- package/lib/list/DotNew/DotNew.js +43 -45
- package/lib/list/DotNew/DotNew.module.css +20 -14
- package/lib/list/DotNew/props/defaultProps.js +10 -0
- package/lib/list/DotNew/props/propTypes.js +14 -0
- package/lib/list/GridStencils/GridStencils.js +51 -70
- package/lib/list/GridStencils/GridStencils.module.css +40 -85
- package/lib/list/GridStencils/props/propTypes.js +15 -0
- package/lib/list/Icons/AddNewIcon.js +46 -83
- package/lib/list/Icons/CompleteIcon.js +52 -75
- package/lib/list/Icons/DeleteIcon.js +44 -89
- package/lib/list/Icons/EditIcon.js +48 -93
- package/lib/list/Icons/FloatingIcons.js +47 -60
- package/lib/list/Icons/Icons.module.css +5 -4
- package/lib/list/Icons/ReadUnreadIcon.js +61 -0
- package/lib/list/Icons/SmartIcon.js +53 -63
- package/lib/list/Icons/index.js +55 -0
- package/lib/list/Icons/props/defaultProps.js +14 -0
- package/lib/list/Icons/props/propTypes.js +69 -0
- package/lib/list/ListLayout/ListLayout.js +89 -138
- package/lib/list/ListLayout/ListLayout.module.css +43 -12
- package/lib/list/ListLayout/props/defaultProps.js +18 -0
- package/lib/list/ListLayout/props/propTypes.js +39 -0
- package/lib/list/ListStencils/ListStencils.js +59 -69
- package/lib/list/ListStencils/ListStencils.module.css +52 -12
- package/lib/list/ListStencils/props/defaultProps.js +10 -0
- package/lib/list/ListStencils/props/propTypes.js +12 -0
- package/lib/list/SecondaryText/AccountName.js +97 -112
- package/lib/list/SecondaryText/ContactName.js +103 -142
- package/lib/list/SecondaryText/DepartmentText.js +43 -58
- package/lib/list/SecondaryText/Email.js +65 -99
- package/lib/list/SecondaryText/HappinessRating.js +46 -69
- package/lib/list/SecondaryText/PhoneNumber.js +69 -102
- package/lib/list/SecondaryText/PriorityText.js +46 -66
- package/lib/list/SecondaryText/SecondaryText.js +50 -64
- package/lib/list/SecondaryText/SecondaryText.module.css +58 -26
- package/lib/list/SecondaryText/StatusText.js +47 -69
- package/lib/list/SecondaryText/TicketId.js +65 -83
- package/lib/list/SecondaryText/Website.js +54 -96
- package/lib/list/SecondaryText/index.js +35 -58
- package/lib/list/SecondaryText/props/defaultProps.js +59 -0
- package/lib/list/SecondaryText/props/propTypes.js +161 -0
- package/lib/list/SecondryPanel/SecondryPanel.js +117 -182
- package/lib/list/SecondryPanel/SecondryPanel.module.css +1 -22
- package/lib/list/SecondryPanel/props/defaultProps.js +28 -0
- package/lib/list/SecondryPanel/props/propTypes.js +38 -0
- package/lib/list/SentimentStatus/SentimentStatus.js +42 -56
- package/lib/list/SentimentStatus/SentimentStatus.module.css +3 -3
- package/lib/list/SentimentStatus/props/propTypes.js +13 -0
- package/lib/list/Subject/Subject.js +69 -95
- package/lib/list/Subject/Subject.module.css +21 -3
- package/lib/list/Subject/props/defaultProps.js +14 -0
- package/lib/list/Subject/props/propTypes.js +27 -0
- package/lib/list/TagNew/TagNew.js +46 -62
- package/lib/list/TagNew/TagNew.module.css +11 -9
- package/lib/list/TagNew/props/defaultProps.js +11 -0
- package/lib/list/TagNew/props/propTypes.js +16 -0
- package/lib/list/Thread/Thread.js +56 -69
- package/lib/list/Thread/Thread.module.css +32 -9
- package/lib/list/Thread/props/defaultProps.js +11 -0
- package/lib/list/Thread/props/propTypes.js +16 -0
- package/lib/list/UserTime/UserTime.js +96 -120
- package/lib/list/UserTime/UserTime.module.css +25 -16
- package/lib/list/UserTime/props/defaultProps.js +10 -0
- package/lib/list/UserTime/props/propTypes.js +22 -0
- package/lib/list/index.js +152 -0
- package/lib/list/listCommon.module.css +21 -53
- package/lib/list/status/StatusDropdown/StatusDropdown.js +475 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -0
- package/lib/list/status/StatusDropdown/props/defaultProps.js +26 -0
- package/lib/list/status/StatusDropdown/props/propTypes.js +32 -0
- package/lib/list/status/StatusListItem/StatusListItem.js +142 -0
- package/lib/list/status/StatusListItem/StatusListItem.module.css +109 -0
- package/lib/list/status/StatusListItem/props/defaultProps.js +22 -0
- package/lib/list/status/StatusListItem/props/propTypes.js +37 -0
- package/lib/list/status/index.js +20 -0
- package/lib/lookup/EmptyPage/EmptyPage.js +61 -92
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
- package/lib/lookup/EmptyPage/props/defaultProps.js +11 -0
- package/lib/lookup/EmptyPage/props/propTypes.js +13 -0
- package/lib/lookup/Lookup/Lookup.js +112 -111
- package/lib/lookup/Lookup/Lookup.module.css +13 -9
- package/lib/lookup/Lookup/props/defaultProps.js +14 -0
- package/lib/lookup/Lookup/props/propTypes.js +26 -0
- package/lib/lookup/Section/LookupSection.module.css +5 -4
- package/lib/lookup/Section/Section.js +37 -57
- package/lib/lookup/Section/props/propTypes.js +14 -0
- package/lib/lookup/header/Close/Close.js +42 -61
- package/lib/lookup/header/Close/LookupClose.module.css +7 -7
- package/lib/lookup/header/Close/props/defaultProps.js +10 -0
- package/lib/lookup/header/Close/props/propTypes.js +14 -0
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +92 -126
- package/lib/lookup/header/ModuleHeader/props/defaultProps.js +10 -0
- package/lib/lookup/header/ModuleHeader/props/propTypes.js +25 -0
- package/lib/lookup/header/Search/LookupSearch.module.css +53 -10
- package/lib/lookup/header/Search/Search.js +208 -120
- package/lib/lookup/header/Search/props/defaultProps.js +12 -0
- package/lib/lookup/header/Search/props/propTypes.js +37 -0
- package/lib/lookup/header/TicketHeader/TicketHeader.js +107 -159
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +4 -3
- package/lib/lookup/header/TicketHeader/props/defaultProps.js +11 -0
- package/lib/lookup/header/TicketHeader/props/propTypes.js +28 -0
- package/lib/lookup/header/Title/LookupTitle.module.css +4 -4
- package/lib/lookup/header/Title/Title.js +42 -65
- package/lib/lookup/header/Title/props/defaultProps.js +10 -0
- package/lib/lookup/header/Title/props/propTypes.js +14 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +168 -239
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +17 -19
- package/lib/lookup/header/ViewDropDown/props/defaultProps.js +14 -0
- package/lib/lookup/header/ViewDropDown/props/propTypes.js +34 -0
- package/lib/lookup/header/index.js +41 -0
- package/lib/lookup/header/lookupHeaderCommon.module.css +19 -11
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +4 -4
- package/lib/lookup/index.js +33 -0
- package/lib/setup/header/Button/Button.js +49 -71
- package/lib/setup/header/Button/HeaderButton.module.css +2 -2
- package/lib/setup/header/Button/props/defaultProps.js +11 -0
- package/lib/setup/header/Button/props/propTypes.js +15 -0
- package/lib/setup/header/Link/HeaderLink.module.css +8 -9
- package/lib/setup/header/Link/Link.js +57 -87
- package/lib/setup/header/Link/props/defaultProps.js +11 -0
- package/lib/setup/header/Link/props/propTypes.js +16 -0
- package/lib/setup/header/Search/Search.js +73 -98
- package/lib/setup/header/Search/Search.module.css +20 -19
- package/lib/setup/header/Search/props/defaultProps.js +12 -0
- package/lib/setup/header/Search/props/propTypes.js +19 -0
- package/lib/setup/header/Views/Views.js +59 -88
- package/lib/setup/header/Views/Views.module.css +8 -8
- package/lib/setup/header/Views/props/defaultProps.js +13 -0
- package/lib/setup/header/Views/props/propTypes.js +17 -0
- package/lib/setup/header/index.js +34 -0
- package/lib/setup/helptips/Description/Description.js +35 -49
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +3 -3
- package/lib/setup/helptips/Description/props/propTypes.js +12 -0
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +3 -3
- package/lib/setup/helptips/Link/Link.js +49 -67
- package/lib/setup/helptips/Link/props/propTypes.js +15 -0
- package/lib/setup/helptips/ListGroup/ListGroup.js +52 -70
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +4 -4
- package/lib/setup/helptips/ListGroup/props/propTypes.js +13 -0
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +2 -2
- package/lib/setup/helptips/Title/Title.js +35 -49
- package/lib/setup/helptips/Title/props/propTypes.js +12 -0
- package/lib/setup/helptips/index.js +34 -0
- package/lib/setup/index.js +15 -0
- package/lib/setup/table/Table/Table.js +42 -56
- package/lib/setup/table/Table/props/defaultProps.js +11 -0
- package/lib/setup/table/Table/props/propTypes.js +14 -0
- package/lib/setup/table/TableBody/TableBody.js +47 -56
- package/lib/setup/table/TableBody/props/defaultProps.js +10 -0
- package/lib/setup/table/TableBody/props/propTypes.js +15 -0
- package/lib/setup/table/TableData/SetupTableData.module.css +44 -0
- package/lib/setup/table/TableData/TableData.js +49 -74
- package/lib/setup/table/TableData/props/defaultProps.js +12 -0
- package/lib/setup/table/TableData/props/propTypes.js +18 -0
- package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -0
- package/lib/setup/table/TableHead/TableHead.js +51 -78
- package/lib/setup/table/TableHead/props/defaultProps.js +11 -0
- package/lib/setup/table/TableHead/props/propTypes.js +15 -0
- package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -0
- package/lib/setup/table/TableRow/TableRow.js +56 -84
- package/lib/setup/table/TableRow/props/defaultProps.js +11 -0
- package/lib/setup/table/TableRow/props/propTypes.js +19 -0
- package/lib/setup/table/Text/TableText.module.css +37 -0
- package/lib/setup/table/Text/Text.js +62 -105
- package/lib/setup/table/Text/props/defaultProps.js +14 -0
- package/lib/setup/table/Text/props/propTypes.js +21 -0
- package/lib/setup/table/index.js +41 -0
- package/lib/svg/PlusIcon.js +48 -72
- package/lib/svg/SnippetIcon.js +50 -75
- package/lib/svg/TemplateIcon.js +52 -71
- package/lib/svg/index.js +27 -0
- package/lib/svg/props/defaultProps.js +24 -0
- package/lib/svg/props/propTypes.js +26 -0
- package/lib/utils/ChannelIconMapping.js +103 -85
- package/lib/utils/General.js +26 -5
- package/lib/utils/editorUtils.js +188 -0
- package/lib/version2/AlertClose/AlertClose.js +72 -0
- package/lib/version2/AlertClose/AlertClose.module.css +43 -0
- package/lib/version2/AlertClose/props/propTypes.js +16 -0
- package/lib/version2/GlobalNotification/GlobalNotification.js +165 -0
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +128 -0
- package/lib/version2/GlobalNotification/props/defaultProps.js +11 -0
- package/lib/version2/GlobalNotification/props/propTypes.js +22 -0
- package/lib/version2/alertIcons/AlarmAlertIcon.js +99 -0
- package/lib/version2/alertIcons/AlertIcons.js +93 -0
- package/lib/version2/alertIcons/AlertIcons.module.css +67 -0
- package/lib/version2/alertIcons/DangerAlertIcon.js +99 -0
- package/lib/version2/alertIcons/ErrorAlertIcon.js +104 -0
- package/lib/version2/alertIcons/InfoAlertIcon.js +108 -0
- package/lib/version2/alertIcons/NotificationAlertIcon.js +104 -0
- package/lib/version2/alertIcons/SuccessAlertIcon.js +99 -0
- package/lib/version2/alertIcons/WarningAlertIcon.js +99 -0
- package/lib/version2/alertIcons/index.js +62 -0
- package/lib/version2/alertIcons/props/defaultProps.js +41 -0
- package/lib/version2/alertIcons/props/propTypes.js +49 -0
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +101 -0
- package/lib/version2/errorstate/Inconvenience/props/defaultProps.js +15 -0
- package/lib/version2/errorstate/Inconvenience/props/propTypes.js +24 -0
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +102 -0
- package/lib/version2/errorstate/OopsSomethingMiss/props/defaultProps.js +15 -0
- package/lib/version2/errorstate/OopsSomethingMiss/props/propTypes.js +24 -0
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +101 -0
- package/lib/version2/errorstate/UnableToProcessRequest/props/defaultProps.js +15 -0
- package/lib/version2/errorstate/UnableToProcessRequest/props/propTypes.js +24 -0
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +103 -0
- package/lib/version2/errorstate/UnauthorizedLogin/props/defaultProps.js +16 -0
- package/lib/version2/errorstate/UnauthorizedLogin/props/propTypes.js +25 -0
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +101 -0
- package/lib/version2/errorstate/UrlNotFound/props/defaultProps.js +15 -0
- package/lib/version2/errorstate/UrlNotFound/props/propTypes.js +24 -0
- package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -0
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +101 -0
- package/lib/version2/errorstate/WillBeRightBack/props/defaultProps.js +15 -0
- package/lib/version2/errorstate/WillBeRightBack/props/propTypes.js +24 -0
- package/lib/version2/errorstate/index.js +48 -0
- package/lib/version2/index.js +44 -0
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +95 -0
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +88 -0
- package/lib/version2/lookup/AlertHeader/props/defaultProps.js +13 -0
- package/lib/version2/lookup/AlertHeader/props/propTypes.js +20 -0
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +226 -0
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +44 -0
- package/lib/version2/lookup/AlertLookup/props/defaultProps.js +20 -0
- package/lib/version2/lookup/AlertLookup/props/propTypes.js +44 -0
- package/lib/version2/lookup/alertLookupCommonNew.module.css +33 -0
- package/lib/version2/lookup/index.js +20 -0
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +169 -0
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +127 -0
- package/lib/version2/notification/DesktopNotification/props/defaultProps.js +22 -0
- package/lib/version2/notification/DesktopNotification/props/propTypes.js +45 -0
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +91 -0
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +137 -0
- package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +12 -0
- package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +19 -0
- package/lib/version2/notification/index.js +29 -0
- package/package.json +93 -28
- package/__testUtils__/globals.js +0 -0
- package/dubFinder.js +0 -93
- package/es/ChannelIcon/docs/ChannelIcon__default.docs.js +0 -97
- package/es/Drawer/docs/Drawer__default.docs.js +0 -73
- package/es/Drawer/docs/Drawer__noFreeze.docs.js +0 -43
- package/es/ExternalLink/docs/ExternalLink__default.docs.js +0 -40
- package/es/FlipCard/docs/FlipCard__default.docs.js +0 -105
- package/es/FormAction/docs/FormAction__default.docs.js +0 -199
- package/es/FreezeLayer/FreezeLayer.module.css +0 -41
- package/es/FreezeLayer/docs/FreezeLayer__dark.docs.js +0 -77
- package/es/FreezeLayer/docs/FreezeLayer__default.docs.js +0 -76
- package/es/IconButton/docs/IconButton__default.docs.js +0 -81
- package/es/Image/docs/Image__default.docs.js +0 -40
- package/es/Link/docs/Link__default.docs.js +0 -64
- package/es/PlusIcon/docs/PlusIcon__default.docs.js +0 -40
- package/es/ToastMessage/docs/ToastMessage__custom.docs.js +0 -132
- package/es/ToastMessage/docs/ToastMessage__information.docs.js +0 -80
- package/es/ToastMessage/docs/ToastMessage__primary.docs.js +0 -172
- package/es/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -64
- package/es/ToastMessage/docs/ToastMessage__success.docs.js +0 -94
- package/es/alert/AlertHeader/docs/AlertHeader__default.docs.js +0 -91
- package/es/alert/AlertLookup/docs/AlertLookup__default.docs.js +0 -170
- package/es/avatar/AvatarClose/docs/AvatarClose__default.docs.js +0 -44
- package/es/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +0 -58
- package/es/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +0 -54
- package/es/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +0 -49
- package/es/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -52
- package/es/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +0 -75
- package/es/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -69
- package/es/avatar/AvatarUser/docs/AvatarUser__default.docs.js +0 -146
- package/es/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +0 -45
- package/es/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +0 -78
- package/es/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +0 -85
- package/es/emptystate/EditionPage/docs/EditionPage__default.docs.js +0 -42
- package/es/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -39
- package/es/errorstate/LinkText/docs/LinkText__default.docs.js +0 -35
- package/es/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +0 -39
- package/es/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +0 -40
- package/es/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +0 -39
- package/es/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +0 -39
- package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +0 -40
- package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +0 -39
- package/es/errorstate/WillBack/docs/WillBack__default.docs.js +0 -41
- package/es/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +0 -79
- package/es/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +0 -191
- package/es/list/AvatarFlip/docs/AvatarFlip__default.docs.js +0 -308
- package/es/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +0 -36
- package/es/list/Comment/docs/Comment__default.docs.js +0 -40
- package/es/list/DotNew/docs/DotNew__default.docs.js +0 -36
- package/es/list/GridStencils/docs/GridStencils__default.docs.js +0 -50
- package/es/list/Icons/docs/FloatingIcons__default.docs.js +0 -56
- package/es/list/ListLayout/docs/ListLayout__default.docs.js +0 -131
- package/es/list/ListStencils/docs/ListStencils__default.docs.js +0 -36
- package/es/list/SecondaryText/docs/ContactName__default.docs.js +0 -36
- package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +0 -41
- package/es/list/SecondryPanel/docs/SecondryPanel__default.docs.js +0 -131
- package/es/list/SentimentStatus/docs/SentimentStatus__default.docs.js +0 -36
- package/es/list/StatusDropdown/StatusDropdown.js +0 -205
- package/es/list/StatusDropdown/StatusDropdown.module.css +0 -65
- package/es/list/StatusDropdown/docs/StatusDropdown__default.docs.js +0 -76
- package/es/list/Subject/docs/Subject__default.docs.js +0 -49
- package/es/list/TagNew/docs/TagNew__default.docs.js +0 -36
- package/es/list/Thread/docs/Thread__default.docs.js +0 -36
- package/es/list/TimeInfo/TimeInfo.js +0 -171
- package/es/list/TimeInfo/docs/TimeInfo__default.docs.js +0 -49
- package/es/list/UserTime/docs/UserTime__default.docs.js +0 -172
- package/es/lookup/EmptyPage/docs/EmptyPage__account.docs.js +0 -38
- package/es/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +0 -38
- package/es/lookup/EmptyPage/docs/EmptyPage__default.docs.js +0 -37
- package/es/lookup/EmptyPage/docs/EmptyPage__product.docs.js +0 -38
- package/es/lookup/Lookup/docs/Lookup__contact.docs.js +0 -212
- package/es/lookup/Lookup/docs/Lookup__default.docs.js +0 -90
- package/es/lookup/header/Close/docs/Close__default.docs.js +0 -35
- package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +0 -58
- package/es/lookup/header/Search/docs/Search__default.docs.js +0 -62
- package/es/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +0 -74
- package/es/lookup/header/Title/docs/Title__default.docs.js +0 -35
- package/es/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +0 -64
- package/es/setup/header/Button/docs/Button__default.docs.js +0 -37
- package/es/setup/header/Link/docs/Link__default.docs.js +0 -36
- package/es/setup/header/Search/docs/Search__default.docs.js +0 -54
- package/es/setup/header/SelectDropdown/SelectDropdown.js +0 -162
- package/es/setup/header/SelectDropdown/SelectDropdown.module.css +0 -43
- package/es/setup/header/SelectDropdown/docs/SelectDropdown__default.docs.js +0 -44
- package/es/setup/header/Views/docs/Views__default.docs.js +0 -40
- package/es/setup/helptips/Description/docs/Description__default.docs.js +0 -42
- package/es/setup/helptips/Link/docs/Link__default.docs.js +0 -43
- package/es/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +0 -46
- package/es/setup/helptips/Title/docs/Title__default.docs.js +0 -40
- package/es/setup/table/Table/docs/Table__default.docs.js +0 -193
- package/es/setup/table/TableData/TableData.css +0 -44
- package/es/setup/table/TableHead/TableHead.css +0 -12
- package/es/setup/table/TableRow/TableRow.css +0 -14
- package/es/setup/table/Text/Text.css +0 -37
- package/es/setup/table/Text/docs/Text__default.docs.js +0 -69
- package/es/svg/docs/SVG__default.docs.js +0 -87
- package/es/utils/KeyboardApi.js +0 -254
- package/es/utils/Ticket.js +0 -3
- package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +0 -114
- package/lib/Drawer/docs/Drawer__default.docs.js +0 -95
- package/lib/Drawer/docs/Drawer__noFreeze.docs.js +0 -59
- package/lib/ExternalLink/docs/ExternalLink__default.docs.js +0 -56
- package/lib/FlipCard/docs/FlipCard__default.docs.js +0 -124
- package/lib/FormAction/docs/FormAction__default.docs.js +0 -221
- package/lib/FreezeLayer/FreezeLayer.module.css +0 -41
- package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +0 -96
- package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +0 -95
- package/lib/IconButton/docs/IconButton__default.docs.js +0 -97
- package/lib/Image/docs/Image__default.docs.js +0 -59
- package/lib/Link/docs/Link__default.docs.js +0 -80
- package/lib/PlusIcon/docs/PlusIcon__default.docs.js +0 -59
- package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +0 -157
- package/lib/ToastMessage/docs/ToastMessage__information.docs.js +0 -99
- package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +0 -191
- package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -83
- package/lib/ToastMessage/docs/ToastMessage__success.docs.js +0 -113
- package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +0 -107
- package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +0 -189
- package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +0 -63
- package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +0 -77
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +0 -76
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +0 -71
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -74
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +0 -97
- package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -91
- package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +0 -168
- package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +0 -64
- package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +0 -94
- package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +0 -110
- package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +0 -58
- package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -58
- package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +0 -54
- package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +0 -55
- package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +0 -59
- package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +0 -58
- package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +0 -58
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +0 -59
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +0 -58
- package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +0 -60
- package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +0 -99
- package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +0 -205
- package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +0 -327
- package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +0 -54
- package/lib/list/Comment/docs/Comment__default.docs.js +0 -59
- package/lib/list/DotNew/docs/DotNew__default.docs.js +0 -55
- package/lib/list/GridStencils/docs/GridStencils__default.docs.js +0 -72
- package/lib/list/Icons/docs/FloatingIcons__default.docs.js +0 -81
- package/lib/list/ListLayout/docs/ListLayout__default.docs.js +0 -150
- package/lib/list/ListStencils/docs/ListStencils__default.docs.js +0 -55
- package/lib/list/SecondaryText/docs/ContactName__default.docs.js +0 -55
- package/lib/list/SecondryPanel/docs/SecondryPanelDocs.module.css +0 -41
- package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +0 -152
- package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +0 -54
- package/lib/list/StatusDropdown/StatusDropdown.js +0 -243
- package/lib/list/StatusDropdown/StatusDropdown.module.css +0 -65
- package/lib/list/StatusDropdown/docs/StatusDropdown__default.docs.js +0 -96
- package/lib/list/Subject/docs/Subject__default.docs.js +0 -68
- package/lib/list/TagNew/docs/TagNew__default.docs.js +0 -55
- package/lib/list/Thread/docs/Thread__default.docs.js +0 -55
- package/lib/list/TimeInfo/TimeInfo.js +0 -191
- package/lib/list/TimeInfo/docs/TimeInfo__default.docs.js +0 -69
- package/lib/list/UserTime/docs/UserTime__default.docs.js +0 -192
- package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +0 -55
- package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +0 -55
- package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +0 -54
- package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +0 -55
- package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +0 -234
- package/lib/lookup/Lookup/docs/Lookup__default.docs.js +0 -113
- package/lib/lookup/header/Close/docs/Close__default.docs.js +0 -54
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +0 -75
- package/lib/lookup/header/Search/docs/Search__default.docs.js +0 -79
- package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +0 -91
- package/lib/lookup/header/Title/docs/Title__default.docs.js +0 -54
- package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +0 -81
- package/lib/setup/header/Button/docs/Button__default.docs.js +0 -55
- package/lib/setup/header/Link/docs/Link__default.docs.js +0 -55
- package/lib/setup/header/Search/docs/Search__default.docs.js +0 -73
- package/lib/setup/header/SelectDropdown/SelectDropdown.js +0 -200
- package/lib/setup/header/SelectDropdown/SelectDropdown.module.css +0 -43
- package/lib/setup/header/SelectDropdown/docs/SelectDropdown__default.docs.js +0 -63
- package/lib/setup/header/Views/docs/Views__default.docs.js +0 -59
- package/lib/setup/helptips/Description/docs/Description__default.docs.js +0 -61
- package/lib/setup/helptips/Link/docs/Link__default.docs.js +0 -62
- package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +0 -65
- package/lib/setup/helptips/Title/docs/Title__default.docs.js +0 -59
- package/lib/setup/table/Table/docs/Table__default.docs.js +0 -228
- package/lib/setup/table/TableData/TableData.css +0 -44
- package/lib/setup/table/TableHead/TableHead.css +0 -12
- package/lib/setup/table/TableRow/TableRow.css +0 -14
- package/lib/setup/table/Text/Text.css +0 -37
- package/lib/setup/table/Text/docs/Text__default.docs.js +0 -85
- package/lib/svg/docs/SVG__default.docs.js +0 -110
- package/lib/utils/KeyboardApi.js +0 -262
- package/lib/utils/Ticket.js +0 -8
- package/postpublish.js +0 -100
- package/src/ChannelIcon/ChannelIcon.js +0 -127
- package/src/ChannelIcon/ChannelIcon.module.css +0 -187
- package/src/ChannelIcon/docs/ChannelIcon__default.docs.js +0 -63
- package/src/Drawer/Drawer.js +0 -271
- package/src/Drawer/Drawer.module.css +0 -88
- package/src/Drawer/docs/Drawer__default.docs.js +0 -45
- package/src/Drawer/docs/Drawer__noFreeze.docs.js +0 -21
- package/src/ExternalLink/ExternalLink.js +0 -57
- package/src/ExternalLink/ExternalLink.module.css +0 -4
- package/src/ExternalLink/__tests__/ExternalLink.spec.js +0 -28
- package/src/ExternalLink/docs/ExternalLink__default.docs.js +0 -24
- package/src/FlipCard/FlipCard.js +0 -159
- package/src/FlipCard/FlipCard.module.css +0 -35
- package/src/FlipCard/docs/FlipCard__default.docs.js +0 -76
- package/src/FormAction/FormAction.js +0 -120
- package/src/FormAction/FormAction.module.css +0 -52
- package/src/FormAction/docs/FormAction__default.docs.js +0 -94
- package/src/FreezeLayer/FreezeLayer.js +0 -130
- package/src/FreezeLayer/FreezeLayer.module.css +0 -37
- package/src/FreezeLayer/docs/FreezeLayer__dark.docs.js +0 -53
- package/src/FreezeLayer/docs/FreezeLayer__default.docs.js +0 -51
- package/src/IconButton/IconButton.js +0 -70
- package/src/IconButton/IconButton.module.css +0 -38
- package/src/IconButton/docs/IconButton__default.docs.js +0 -49
- package/src/Image/Image.js +0 -41
- package/src/Image/Image.module.css +0 -11
- package/src/Image/docs/Image__default.docs.js +0 -18
- package/src/Link/Link.js +0 -115
- package/src/Link/Link.module.css +0 -4
- package/src/Link/LinkContext.js +0 -9
- package/src/Link/docs/Link__default.docs.js +0 -91
- package/src/PlusIcon/PlusIcon.js +0 -68
- package/src/PlusIcon/PlusIcon.module.css +0 -7
- package/src/PlusIcon/docs/PlusIcon__default.docs.js +0 -18
- package/src/ToastMessage/ToastMessage.js +0 -289
- package/src/ToastMessage/ToastMessage.module.css +0 -260
- package/src/ToastMessage/docs/ToastMessage__custom.docs.js +0 -97
- package/src/ToastMessage/docs/ToastMessage__information.docs.js +0 -55
- package/src/ToastMessage/docs/ToastMessage__primary.docs.js +0 -135
- package/src/ToastMessage/docs/ToastMessage__secondary.docs.js +0 -40
- package/src/ToastMessage/docs/ToastMessage__success.docs.js +0 -68
- package/src/actions/index.js +0 -22
- package/src/alert/AlertHeader/AlertHeader.js +0 -115
- package/src/alert/AlertHeader/AlertHeader.module.css +0 -62
- package/src/alert/AlertHeader/docs/AlertHeader__default.docs.js +0 -72
- package/src/alert/AlertLookup/AlertLookup.js +0 -174
- package/src/alert/AlertLookup/AlertLookup.module.css +0 -20
- package/src/alert/AlertLookup/docs/AlertLookup__default.docs.js +0 -123
- package/src/avatar/AvatarClose/AvatarClose.js +0 -43
- package/src/avatar/AvatarClose/AvatarClose.module.css +0 -31
- package/src/avatar/AvatarClose/docs/AvatarClose__default.docs.js +0 -26
- package/src/avatar/AvatarCollision/AvatarCollision.js +0 -72
- package/src/avatar/AvatarCollision/AvatarCollision.module.css +0 -55
- package/src/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +0 -40
- package/src/avatar/AvatarIcon/AvatarIcon.js +0 -83
- package/src/avatar/AvatarIcon/AvatarIcon.module.css +0 -36
- package/src/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +0 -35
- package/src/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +0 -36
- package/src/avatar/AvatarStatus/AvatarStatus.js +0 -50
- package/src/avatar/AvatarStatus/AvatarStatus.module.css +0 -64
- package/src/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +0 -34
- package/src/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +0 -63
- package/src/avatar/AvatarThread/AvatarThread.js +0 -89
- package/src/avatar/AvatarThread/AvatarThread.module.css +0 -58
- package/src/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -45
- package/src/avatar/AvatarUser/AvatarUser.js +0 -103
- package/src/avatar/AvatarUser/AvatarUser.module.css +0 -61
- package/src/avatar/AvatarUser/docs/AvatarUser__default.docs.js +0 -111
- package/src/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -57
- package/src/avatar/AvatarWithTeam/AvatarWithTeam.module.css +0 -16
- package/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js +0 -50
- package/src/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +0 -28
- package/src/docs/generalDocs.js +0 -118
- package/src/docs/lookupDocs.js +0 -33
- package/src/docs/setupDocs.js +0 -27
- package/src/dropdown/ToggleDropDown/ToggleDropDown.js +0 -598
- package/src/dropdown/ToggleDropDown/ToggleDropDown.module.css +0 -65
- package/src/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +0 -75
- package/src/emptystate/CommonEmptyState/CommonEmptyState.js +0 -117
- package/src/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -31
- package/src/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +0 -53
- package/src/emptystate/EditionPage/EditionPage.css +0 -37
- package/src/emptystate/EditionPage/EditionPage.js +0 -69
- package/src/emptystate/EditionPage/docs/EditionPage__default.docs.js +0 -23
- package/src/errorstate/EmptyStates.module.css +0 -40
- package/src/errorstate/Inconvenience/Inconvenience.js +0 -42
- package/src/errorstate/Inconvenience/Inconvenience.module.css +0 -6
- package/src/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +0 -19
- package/src/errorstate/LinkText/LinkText.js +0 -28
- package/src/errorstate/LinkText/LinkText.module.css +0 -6
- package/src/errorstate/LinkText/docs/LinkText__default.docs.js +0 -13
- package/src/errorstate/NoRequestFound/NoRequestFound.js +0 -42
- package/src/errorstate/NoRequestFound/NoRequestFound.module.css +0 -5
- package/src/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +0 -19
- package/src/errorstate/PermissionPlay/PermissionPlay.js +0 -46
- package/src/errorstate/PermissionPlay/PermissionPlay.module.css +0 -33
- package/src/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +0 -20
- package/src/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -42
- package/src/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +0 -5
- package/src/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +0 -19
- package/src/errorstate/UnableToProcess/UnableToProcess.js +0 -42
- package/src/errorstate/UnableToProcess/UnableToProcess.module.css +0 -14
- package/src/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +0 -19
- package/src/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -42
- package/src/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +0 -14
- package/src/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +0 -20
- package/src/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +0 -19
- package/src/errorstate/WillBack/WillBack.js +0 -40
- package/src/errorstate/WillBack/WillBack.module.css +0 -21
- package/src/errorstate/WillBack/docs/WillBack__default.docs.js +0 -21
- package/src/index.js +0 -14
- package/src/layout/SetupDetailLayout/SetupDetailLayout.js +0 -248
- package/src/layout/SetupDetailLayout/SetupDetailLayout.module.css +0 -116
- package/src/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +0 -35
- package/src/layout/SetupDetailLayout/index.js +0 -4
- package/src/layout/SubtabLayout/SubtabLayout.js +0 -166
- package/src/layout/SubtabLayout/SubtabLayout.module.css +0 -66
- package/src/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +0 -72
- package/src/layout/SubtabLayout/index.js +0 -3
- package/src/list/AvatarFlip/AvatarFlip.js +0 -89
- package/src/list/AvatarFlip/AvatarFlip.module.css +0 -15
- package/src/list/AvatarFlip/docs/AvatarFlip__default.docs.js +0 -207
- package/src/list/BluePrintStatus/BluePrintStatus.js +0 -31
- package/src/list/BluePrintStatus/BluePrintStatus.module.css +0 -13
- package/src/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +0 -20
- package/src/list/Comment/Comment.js +0 -54
- package/src/list/Comment/Comment.module.css +0 -17
- package/src/list/Comment/docs/Comment__default.docs.js +0 -22
- package/src/list/DepartmentDropDown/DepartmentDropDown.js +0 -78
- package/src/list/DepartmentDropDown/DepartmentDropDown.module.css +0 -62
- package/src/list/Dot/Dot.js +0 -28
- package/src/list/Dot/Dot.module.css +0 -13
- package/src/list/DotNew/DotNew.js +0 -24
- package/src/list/DotNew/DotNew.module.css +0 -16
- package/src/list/DotNew/docs/DotNew__default.docs.js +0 -18
- package/src/list/GridStencils/GridStencils.js +0 -46
- package/src/list/GridStencils/GridStencils.module.css +0 -131
- package/src/list/GridStencils/docs/GridStencils__default.docs.js +0 -30
- package/src/list/Icons/AddNewIcon.js +0 -53
- package/src/list/Icons/CompleteIcon.js +0 -54
- package/src/list/Icons/DeleteIcon.js +0 -61
- package/src/list/Icons/EditIcon.js +0 -61
- package/src/list/Icons/FloatingIcons.js +0 -32
- package/src/list/Icons/Icons.module.css +0 -15
- package/src/list/Icons/SmartIcon.js +0 -40
- package/src/list/Icons/docs/FloatingIcons__default.docs.js +0 -37
- package/src/list/ListLayout/ListLayout.js +0 -105
- package/src/list/ListLayout/ListLayout.module.css +0 -30
- package/src/list/ListLayout/docs/ListLayout__default.docs.js +0 -54
- package/src/list/ListStencils/ListStencils.js +0 -34
- package/src/list/ListStencils/ListStencils.module.css +0 -24
- package/src/list/ListStencils/docs/ListStencils__default.docs.js +0 -18
- package/src/list/SecondaryText/AccountName.js +0 -80
- package/src/list/SecondaryText/ContactName.js +0 -107
- package/src/list/SecondaryText/DepartmentText.js +0 -32
- package/src/list/SecondaryText/Email.js +0 -69
- package/src/list/SecondaryText/HappinessRating.js +0 -37
- package/src/list/SecondaryText/PhoneNumber.js +0 -72
- package/src/list/SecondaryText/PriorityText.js +0 -40
- package/src/list/SecondaryText/SecondaryText.js +0 -36
- package/src/list/SecondaryText/SecondaryText.module.css +0 -94
- package/src/list/SecondaryText/StatusText.js +0 -49
- package/src/list/SecondaryText/TicketId.js +0 -53
- package/src/list/SecondaryText/Website.js +0 -58
- package/src/list/SecondaryText/docs/ContactName__default.docs.js +0 -18
- package/src/list/SecondaryText/index.js +0 -11
- package/src/list/SecondryPanel/SecondryPanel.js +0 -120
- package/src/list/SecondryPanel/SecondryPanel.module.css +0 -27
- package/src/list/SecondryPanel/docs/SecondryPanelDocs.module.css +0 -41
- package/src/list/SecondryPanel/docs/SecondryPanel__default.docs.js +0 -66
- package/src/list/SentimentStatus/SentimentStatus.js +0 -32
- package/src/list/SentimentStatus/SentimentStatus.module.css +0 -9
- package/src/list/SentimentStatus/docs/SentimentStatus__default.docs.js +0 -20
- package/src/list/StatusDropdown/StatusDropdown.js +0 -174
- package/src/list/StatusDropdown/StatusDropdown.module.css +0 -51
- package/src/list/StatusDropdown/docs/StatusDropdown__default.docs.js +0 -72
- package/src/list/Subject/Subject.js +0 -71
- package/src/list/Subject/Subject.module.css +0 -9
- package/src/list/Subject/docs/Subject__default.docs.js +0 -27
- package/src/list/TagNew/TagNew.js +0 -37
- package/src/list/TagNew/TagNew.module.css +0 -108
- package/src/list/TagNew/docs/TagNew__default.docs.js +0 -18
- package/src/list/Thread/Thread.js +0 -36
- package/src/list/Thread/Thread.module.css +0 -15
- package/src/list/Thread/docs/Thread__default.docs.js +0 -18
- package/src/list/TimeInfo/TimeInfo.js +0 -156
- package/src/list/TimeInfo/docs/TimeInfo__default.docs.js +0 -26
- package/src/list/UserTime/UserTime.js +0 -130
- package/src/list/UserTime/UserTime.module.css +0 -42
- package/src/list/UserTime/docs/UserTime__default.docs.js +0 -122
- package/src/list/listCommon.module.css +0 -84
- package/src/lookup/EmptyPage/EmptyPage.js +0 -62
- package/src/lookup/EmptyPage/LookupEmptyPage.module.css +0 -12
- package/src/lookup/EmptyPage/docs/EmptyPage__account.docs.js +0 -17
- package/src/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +0 -17
- package/src/lookup/EmptyPage/docs/EmptyPage__default.docs.js +0 -16
- package/src/lookup/EmptyPage/docs/EmptyPage__product.docs.js +0 -17
- package/src/lookup/Lookup/Lookup.js +0 -80
- package/src/lookup/Lookup/Lookup.module.css +0 -22
- package/src/lookup/Lookup/docs/Lookup__contact.docs.js +0 -189
- package/src/lookup/Lookup/docs/Lookup__default.docs.js +0 -59
- package/src/lookup/Section/LookupSection.module.css +0 -7
- package/src/lookup/Section/Section.js +0 -27
- package/src/lookup/header/Close/Close.js +0 -36
- package/src/lookup/header/Close/LookupClose.module.css +0 -15
- package/src/lookup/header/Close/docs/Close__default.docs.js +0 -17
- package/src/lookup/header/ModuleHeader/ModuleHeader.js +0 -76
- package/src/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +0 -39
- package/src/lookup/header/Search/LookupSearch.module.css +0 -14
- package/src/lookup/header/Search/Search.js +0 -104
- package/src/lookup/header/Search/docs/Search__default.docs.js +0 -41
- package/src/lookup/header/TicketHeader/TicketHeader.js +0 -105
- package/src/lookup/header/TicketHeader/TicketHeader.module.css +0 -19
- package/src/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +0 -63
- package/src/lookup/header/Title/LookupTitle.module.css +0 -20
- package/src/lookup/header/Title/Title.js +0 -37
- package/src/lookup/header/Title/docs/Title__default.docs.js +0 -17
- package/src/lookup/header/ViewDropDown/ViewDropDown.js +0 -185
- package/src/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -50
- package/src/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +0 -54
- package/src/lookup/header/lookupHeaderCommon.module.css +0 -21
- package/src/lookup/header/lookupHeaderCommonResponsive.module.css +0 -15
- package/src/setup/header/Button/Button.js +0 -40
- package/src/setup/header/Button/HeaderButton.module.css +0 -3
- package/src/setup/header/Button/docs/Button__default.docs.js +0 -21
- package/src/setup/header/Link/HeaderLink.module.css +0 -16
- package/src/setup/header/Link/Link.js +0 -48
- package/src/setup/header/Link/docs/Link__default.docs.js +0 -20
- package/src/setup/header/Search/Search.js +0 -74
- package/src/setup/header/Search/Search.module.css +0 -56
- package/src/setup/header/Search/docs/Search__default.docs.js +0 -32
- package/src/setup/header/SelectDropdown/SelectDropdown.js +0 -122
- package/src/setup/header/SelectDropdown/SelectDropdown.module.css +0 -35
- package/src/setup/header/SelectDropdown/docs/SelectDropdown__default.docs.js +0 -31
- package/src/setup/header/Views/Views.js +0 -62
- package/src/setup/header/Views/Views.module.css +0 -27
- package/src/setup/header/Views/docs/Views__default.docs.js +0 -20
- package/src/setup/helptips/Description/Description.js +0 -22
- package/src/setup/helptips/Description/HelpTipsDescription.module.css +0 -6
- package/src/setup/helptips/Description/docs/Description__default.docs.js +0 -24
- package/src/setup/helptips/Link/HelpTipsLink.module.css +0 -6
- package/src/setup/helptips/Link/Link.js +0 -40
- package/src/setup/helptips/Link/docs/Link__default.docs.js +0 -27
- package/src/setup/helptips/ListGroup/ListGroup.js +0 -42
- package/src/setup/helptips/ListGroup/ListGroup.module.css +0 -17
- package/src/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +0 -37
- package/src/setup/helptips/Title/HelpTipsTitle.module.css +0 -5
- package/src/setup/helptips/Title/Title.js +0 -22
- package/src/setup/helptips/Title/docs/Title__default.docs.js +0 -22
- package/src/setup/table/Table/Table.js +0 -25
- package/src/setup/table/Table/docs/Table__default.docs.js +0 -115
- package/src/setup/table/TableBody/TableBody.js +0 -27
- package/src/setup/table/TableData/TableData.css +0 -36
- package/src/setup/table/TableData/TableData.js +0 -45
- package/src/setup/table/TableData/hover.css +0 -6
- package/src/setup/table/TableHead/TableHead.css +0 -8
- package/src/setup/table/TableHead/TableHead.js +0 -53
- package/src/setup/table/TableRow/TableRow.css +0 -10
- package/src/setup/table/TableRow/TableRow.js +0 -60
- package/src/setup/table/Text/Text.css +0 -37
- package/src/setup/table/Text/Text.js +0 -81
- package/src/setup/table/Text/docs/Text__default.docs.js +0 -38
- package/src/svg/PlusIcon.js +0 -43
- package/src/svg/SnippetIcon.js +0 -50
- package/src/svg/TemplateIcon.js +0 -46
- package/src/svg/docs/SVG__default.docs.js +0 -46
- package/src/utils/ChannelIconMapping.js +0 -112
- package/src/utils/General.js +0 -18
- package/src/utils/KeyboardApi.js +0 -280
- package/src/utils/Ticket.js +0 -10
- /package/es/setup/table/TableData/{hover.css → Tablehover.module.css} +0 -0
- /package/lib/setup/table/TableData/{hover.css → Tablehover.module.css} +0 -0
|
@@ -1,588 +1,845 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import _inherits from 'babel-runtime/helpers/inherits';
|
|
7
|
-
|
|
8
|
-
var _ToggleDropDown$propT;
|
|
9
|
-
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import PropTypes from 'prop-types';
|
|
12
|
-
import Icon from '@zohodesk/icons/lib/Icon';
|
|
13
|
-
import DropBox from '@zohodesk/components/lib/DropBox/DropBox';
|
|
14
|
-
import commonStyle from '@zohodesk/components/lib/common/common.module.css';
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React, { Component, Fragment } from 'react';
|
|
3
|
+
import { defaultProps } from './props/defaultProps';
|
|
4
|
+
import { propTypes } from './props/propTypes';
|
|
5
|
+
import { Icon } from '@zohodesk/icons';
|
|
15
6
|
import Popup from '@zohodesk/components/lib/Popup/Popup';
|
|
16
7
|
import { Box, Container } from '@zohodesk/components/lib/Layout';
|
|
17
8
|
import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
|
|
18
9
|
import ListItemWithIcon from '@zohodesk/components/lib/ListItem/ListItemWithIcon';
|
|
19
10
|
import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
|
|
20
11
|
import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
21
|
-
import Loader from '@zohodesk/svg/lib/
|
|
12
|
+
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
22
13
|
import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
23
|
-
import EmptySearch from '@zohodesk/svg/lib/
|
|
24
|
-
import
|
|
25
|
-
import
|
|
14
|
+
import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
|
|
15
|
+
import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
|
|
16
|
+
import { scrollTo, findScrollEnd } from '@zohodesk/components/lib/utils/Common';
|
|
17
|
+
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
18
|
+
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
19
|
+
import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
|
|
20
|
+
import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
|
|
21
|
+
import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
26
22
|
import style from './ToggleDropDown.module.css';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var _this = _possibleConstructorReturn(this, (ToggleDropDown.__proto__ || _Object$getPrototypeOf(ToggleDropDown)).call(this, props));
|
|
35
|
-
|
|
36
|
-
_this.state = {
|
|
37
|
-
searchString: '',
|
|
38
|
-
selectedIndex: 0,
|
|
23
|
+
export class ToggleDropDown extends Component {
|
|
24
|
+
constructor(props) {
|
|
25
|
+
super(props);
|
|
26
|
+
this.state = {
|
|
27
|
+
searchValue: '',
|
|
28
|
+
selectedIndex: -1,
|
|
39
29
|
options: props.options,
|
|
40
|
-
|
|
30
|
+
isFetchingOptions: false
|
|
41
31
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
this._isMounted = false;
|
|
33
|
+
this.handleChange = this.handleChange.bind(this);
|
|
34
|
+
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
35
|
+
this.onSelect = this.onSelect.bind(this);
|
|
36
|
+
this.handleTogglePopup = this.handleTogglePopup.bind(this);
|
|
37
|
+
this.showTogglePopup = this.showTogglePopup.bind(this);
|
|
38
|
+
this.hideTogglePopup = this.hideTogglePopup.bind(this);
|
|
39
|
+
this.onSearchAPI = this.onSearchAPI.bind(this);
|
|
40
|
+
this.onSearchClear = this.onSearchClear.bind(this);
|
|
41
|
+
this.handleFilterSuggestions = this.handleFilterSuggestions.bind(this);
|
|
42
|
+
this.scrollContentRef = this.scrollContentRef.bind(this);
|
|
43
|
+
this.handleMouseEnter = this.handleMouseEnter.bind(this);
|
|
44
|
+
this.searchInputRef = this.searchInputRef.bind(this);
|
|
45
|
+
this.itemRef = this.itemRef.bind(this);
|
|
46
|
+
this.inputRef = this.inputRef.bind(this);
|
|
47
|
+
this.handleScroll = this.handleScroll.bind(this);
|
|
48
|
+
this.getOptionsArray = this.getOptionsArray.bind(this);
|
|
49
|
+
this.emptySearchSVG = this.emptySearchSVG.bind(this);
|
|
50
|
+
this.getAriaId = getUniqueId(this);
|
|
51
|
+
this.getSelectedIndex = this.getSelectedIndex.bind(this);
|
|
52
|
+
this.handleGetNextOptions = this.handleGetNextOptions.bind(this);
|
|
53
|
+
this.handleFetchOptions = this.handleFetchOptions.bind(this);
|
|
55
54
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
componentDidMount() {
|
|
56
|
+
this._isMounted = true;
|
|
57
|
+
}
|
|
58
|
+
componentWillUnmount() {
|
|
59
|
+
this._isMounted = false;
|
|
60
|
+
}
|
|
61
|
+
emptySearchSVG() {
|
|
62
|
+
return /*#__PURE__*/React.createElement(EmptySearch, {
|
|
63
|
+
size: "small"
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
inputRef(el) {
|
|
67
|
+
this.hiddenInput = el;
|
|
68
|
+
}
|
|
69
|
+
itemRef(ele, index, id) {
|
|
70
|
+
this[`suggestion_${id}`] = ele;
|
|
71
|
+
}
|
|
72
|
+
searchInputRef(el) {
|
|
73
|
+
this.searchInput = el;
|
|
74
|
+
}
|
|
75
|
+
handleTogglePopup(e) {
|
|
76
|
+
const {
|
|
77
|
+
togglePopup,
|
|
78
|
+
boxPosition,
|
|
79
|
+
onSelectLabel,
|
|
80
|
+
isPopupOpen,
|
|
81
|
+
removeClose
|
|
82
|
+
} = this.props;
|
|
83
|
+
removeClose && removeClose(e);
|
|
84
|
+
!isPopupOpen && onSelectLabel && onSelectLabel(e);
|
|
85
|
+
togglePopup(e, boxPosition);
|
|
86
|
+
}
|
|
87
|
+
showTogglePopup(e) {
|
|
88
|
+
const {
|
|
89
|
+
togglePopup,
|
|
90
|
+
boxPosition,
|
|
91
|
+
onSelectLabel,
|
|
92
|
+
isPopupOpen
|
|
93
|
+
} = this.props;
|
|
94
|
+
!isPopupOpen && onSelectLabel && onSelectLabel(e);
|
|
95
|
+
!isPopupOpen && togglePopup(e, boxPosition);
|
|
96
|
+
}
|
|
97
|
+
hideTogglePopup(e) {
|
|
98
|
+
const {
|
|
99
|
+
togglePopup,
|
|
100
|
+
boxPosition,
|
|
101
|
+
onSelectLabel,
|
|
102
|
+
isPopupOpen
|
|
103
|
+
} = this.props;
|
|
104
|
+
!isPopupOpen && onSelectLabel && onSelectLabel(e);
|
|
105
|
+
isPopupOpen && togglePopup(e, boxPosition);
|
|
106
|
+
}
|
|
107
|
+
scrollContentRef(el) {
|
|
108
|
+
const {
|
|
109
|
+
isPopupOpen
|
|
110
|
+
} = this.props;
|
|
111
|
+
if (isPopupOpen) {
|
|
112
|
+
this.optionsContainer = el;
|
|
66
113
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
114
|
+
}
|
|
115
|
+
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
116
|
+
this.setState({
|
|
117
|
+
options: nextProps.options
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
onSelect(element, e) {
|
|
121
|
+
const {
|
|
122
|
+
onClick,
|
|
123
|
+
togglePopup,
|
|
124
|
+
preventPopupClose
|
|
125
|
+
} = this.props;
|
|
126
|
+
onClick && onClick(e, element);
|
|
127
|
+
!preventPopupClose && togglePopup(e);
|
|
128
|
+
}
|
|
129
|
+
componentDidUpdate(prevProps) {
|
|
130
|
+
const {
|
|
131
|
+
isPopupOpen,
|
|
132
|
+
isPopupReady,
|
|
133
|
+
isSearch,
|
|
134
|
+
idName,
|
|
135
|
+
options,
|
|
136
|
+
onDropDownOpen,
|
|
137
|
+
onDropDownClose
|
|
138
|
+
} = this.props;
|
|
139
|
+
const {
|
|
140
|
+
selectedIndex,
|
|
141
|
+
searchValue
|
|
142
|
+
} = this.state;
|
|
143
|
+
if (prevProps.isPopupReady !== isPopupReady) {
|
|
144
|
+
setTimeout(() => {
|
|
145
|
+
isPopupReady ? isSearch ? this.searchInput.focus({
|
|
146
|
+
preventScroll: true
|
|
147
|
+
}) : this.hiddenInput.focus({
|
|
148
|
+
preventScroll: true
|
|
149
|
+
}) : this.hiddenInput.focus({
|
|
150
|
+
preventScroll: true
|
|
151
|
+
});
|
|
152
|
+
}, 10);
|
|
71
153
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
onSelectLabel = _props.onSelectLabel,
|
|
79
|
-
isPopupOpen = _props.isPopupOpen;
|
|
80
|
-
|
|
81
|
-
!isPopupOpen && onSelectLabel && onSelectLabel(e);
|
|
82
|
-
togglePopup(e, boxPosition);
|
|
154
|
+
const optionsArr = this.getOptionsArray();
|
|
155
|
+
const option = optionsArr[selectedIndex];
|
|
156
|
+
const id = option && option[idName] || {};
|
|
157
|
+
const selSuggestion = this[`suggestion_${id}`];
|
|
158
|
+
if (isPopupOpen) {
|
|
159
|
+
this.optionsContainer && scrollTo(this.optionsContainer, selSuggestion);
|
|
83
160
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
value: function scrollContentRef(el) {
|
|
87
|
-
var isPopupOpen = this.props.isPopupOpen;
|
|
88
|
-
|
|
89
|
-
if (isPopupOpen) {
|
|
90
|
-
this.optionsContainer = el;
|
|
91
|
-
}
|
|
161
|
+
if (!prevProps.isPopupOpen && isPopupOpen && searchValue.length) {
|
|
162
|
+
this.onSearchClear();
|
|
92
163
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
164
|
+
if (this.props.from == 'activityFilter') {
|
|
165
|
+
//Temproary
|
|
166
|
+
const results = this.props.options.filter(_ref => {
|
|
167
|
+
let {
|
|
168
|
+
isDisabled: id1
|
|
169
|
+
} = _ref;
|
|
170
|
+
return !prevProps.options.some(_ref2 => {
|
|
171
|
+
let {
|
|
172
|
+
isDisabled: id2
|
|
173
|
+
} = _ref2;
|
|
174
|
+
return id2 === id1;
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
if (results.length > 0) {
|
|
97
178
|
this.setState({
|
|
98
|
-
options:
|
|
179
|
+
options: options
|
|
99
180
|
});
|
|
100
181
|
}
|
|
101
182
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
onClick && onClick(e, element);
|
|
110
|
-
togglePopup(e);
|
|
183
|
+
if (prevProps.isPopupOpen !== isPopupOpen) {
|
|
184
|
+
if (isPopupOpen) {
|
|
185
|
+
onDropDownOpen && onDropDownOpen();
|
|
186
|
+
} else {
|
|
187
|
+
onDropDownClose && onDropDownClose();
|
|
188
|
+
}
|
|
189
|
+
this.getSelectedIndex(optionsArr);
|
|
111
190
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
191
|
+
}
|
|
192
|
+
handleFilterSuggestions(searchValue) {
|
|
193
|
+
const {
|
|
194
|
+
options,
|
|
195
|
+
keyName,
|
|
196
|
+
isGroupDropDown,
|
|
197
|
+
groupOptionsKey,
|
|
198
|
+
groupNameKey
|
|
199
|
+
} = this.props;
|
|
200
|
+
searchValue = searchValue.trim().toLowerCase();
|
|
201
|
+
let result = [];
|
|
202
|
+
if (isGroupDropDown) {
|
|
203
|
+
const filteredGroups = [];
|
|
204
|
+
options.map(group => {
|
|
205
|
+
const {
|
|
206
|
+
needDivider
|
|
207
|
+
} = group;
|
|
208
|
+
const name = group[groupNameKey];
|
|
209
|
+
const groupOptions = group[groupOptionsKey];
|
|
210
|
+
const datas = groupOptions.filter(list => {
|
|
211
|
+
const value = list[keyName];
|
|
212
|
+
return value.toLowerCase().includes(searchValue);
|
|
213
|
+
});
|
|
214
|
+
if (datas.length) {
|
|
215
|
+
filteredGroups.push({
|
|
216
|
+
[groupNameKey]: name,
|
|
217
|
+
[groupOptionsKey]: datas,
|
|
218
|
+
needDivider
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
result = filteredGroups;
|
|
223
|
+
} else {
|
|
224
|
+
let filteredOptions = options.filter((item, i) => {
|
|
225
|
+
if (item.needDivider) {
|
|
226
|
+
return true;
|
|
227
|
+
}
|
|
228
|
+
return item[keyName].toLowerCase().includes(searchValue);
|
|
229
|
+
});
|
|
230
|
+
if (filteredOptions.length) {
|
|
231
|
+
// to avoid more than one dividers consecutively comes as one by one
|
|
232
|
+
let needDividerCount = 0;
|
|
233
|
+
const orderedOptions = filteredOptions.filter(item => {
|
|
234
|
+
if (item.needDivider && needDividerCount === 0) {
|
|
235
|
+
needDividerCount++;
|
|
236
|
+
return true;
|
|
237
|
+
} else if (!item.needDivider) {
|
|
238
|
+
needDividerCount = 0;
|
|
239
|
+
return true;
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
// remove divider if it placed in first or last index
|
|
243
|
+
filteredOptions = [];
|
|
244
|
+
filteredOptions = orderedOptions.filter((item, i) => {
|
|
245
|
+
if (i == 0 || i == orderedOptions.length - 1) {
|
|
246
|
+
if (!item.needDivider) {
|
|
247
|
+
return true;
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
return true;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
result = filteredOptions;
|
|
130
254
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
255
|
+
}
|
|
256
|
+
return result;
|
|
257
|
+
}
|
|
258
|
+
getOptionsArray() {
|
|
259
|
+
const {
|
|
260
|
+
searchValue
|
|
261
|
+
} = this.state;
|
|
262
|
+
const {
|
|
263
|
+
isGroupDropDown,
|
|
264
|
+
groupOptionsKey
|
|
265
|
+
} = this.props;
|
|
266
|
+
const options = searchValue.length ? this.handleFilterSuggestions(searchValue) : this.props.options;
|
|
267
|
+
let optionsArr = [];
|
|
268
|
+
if (isGroupDropDown) {
|
|
269
|
+
for (let i = 0; i < options.length; i++) {
|
|
270
|
+
const groupOptions = options[i][groupOptionsKey];
|
|
271
|
+
Array.prototype.push.apply(optionsArr, groupOptions);
|
|
137
272
|
}
|
|
273
|
+
} else {
|
|
274
|
+
optionsArr = options.filter(item => !item.needDivider);
|
|
275
|
+
}
|
|
276
|
+
return optionsArr;
|
|
277
|
+
}
|
|
278
|
+
handleKeyDown(e) {
|
|
279
|
+
const {
|
|
280
|
+
keyCode
|
|
281
|
+
} = e;
|
|
282
|
+
const {
|
|
283
|
+
selectedIndex,
|
|
284
|
+
searchValue
|
|
285
|
+
} = this.state;
|
|
286
|
+
const optionsArr = this.getOptionsArray();
|
|
287
|
+
const totalIndex = optionsArr.length;
|
|
288
|
+
const {
|
|
289
|
+
togglePopup,
|
|
290
|
+
onClick,
|
|
291
|
+
boxPosition,
|
|
292
|
+
isPopupReady,
|
|
293
|
+
value,
|
|
294
|
+
keyName,
|
|
295
|
+
idName,
|
|
296
|
+
preventPopupClose,
|
|
297
|
+
isSearch
|
|
298
|
+
} = this.props;
|
|
299
|
+
if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
|
|
300
|
+
e.preventDefault(); //prevent body scroll
|
|
138
301
|
}
|
|
139
|
-
}, {
|
|
140
|
-
key: 'handleKeyDown',
|
|
141
|
-
value: function handleKeyDown(e) {
|
|
142
|
-
var keyCode = e.keyCode;
|
|
143
|
-
var _state2 = this.state,
|
|
144
|
-
selectedIndex = _state2.selectedIndex,
|
|
145
|
-
options = _state2.options,
|
|
146
|
-
seperatedOptions = _state2.seperatedOptions;
|
|
147
|
-
|
|
148
|
-
var totalIndex = seperatedOptions ? options.length + seperatedOptions.length : options.length;
|
|
149
|
-
var mergeOptions = seperatedOptions ? options.concat(seperatedOptions) : options;
|
|
150
|
-
var _props4 = this.props,
|
|
151
|
-
togglePopup = _props4.togglePopup,
|
|
152
|
-
onClick = _props4.onClick,
|
|
153
|
-
boxPosition = _props4.boxPosition,
|
|
154
|
-
isPopupOpen = _props4.isPopupOpen,
|
|
155
|
-
isNextOptions = _props4.isNextOptions,
|
|
156
|
-
getNextOptions = _props4.getNextOptions;
|
|
157
302
|
|
|
158
|
-
|
|
159
|
-
e.preventDefault(); //prevent body scroll
|
|
160
|
-
}
|
|
303
|
+
if (isPopupReady) {
|
|
161
304
|
switch (keyCode) {
|
|
162
305
|
case 40:
|
|
163
306
|
if (selectedIndex === totalIndex - 1) {
|
|
164
|
-
this.setState({
|
|
307
|
+
this.setState({
|
|
308
|
+
selectedIndex: 0
|
|
309
|
+
});
|
|
165
310
|
} else {
|
|
166
311
|
if (selectedIndex === totalIndex - 3) {
|
|
167
|
-
|
|
312
|
+
this.handleGetNextOptions();
|
|
168
313
|
}
|
|
169
|
-
this.setState({
|
|
314
|
+
this.setState({
|
|
315
|
+
selectedIndex: selectedIndex + 1
|
|
316
|
+
});
|
|
170
317
|
}
|
|
171
318
|
break;
|
|
172
319
|
case 38:
|
|
173
320
|
if (selectedIndex === 0) {
|
|
174
|
-
this.setState({
|
|
321
|
+
this.setState({
|
|
322
|
+
selectedIndex: totalIndex - 1
|
|
323
|
+
});
|
|
175
324
|
} else {
|
|
176
|
-
this.setState({
|
|
325
|
+
this.setState({
|
|
326
|
+
selectedIndex: selectedIndex - 1
|
|
327
|
+
});
|
|
177
328
|
}
|
|
178
329
|
break;
|
|
179
330
|
case 13:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
331
|
+
{
|
|
332
|
+
const selectedId = optionsArr[selectedIndex][idName] || '';
|
|
333
|
+
onClick && onClick(selectedId, optionsArr[selectedIndex]);
|
|
334
|
+
if (!preventPopupClose) {
|
|
335
|
+
togglePopup(e, boxPosition);
|
|
336
|
+
} else if (isSearch) {
|
|
337
|
+
this.searchInput.focus({
|
|
338
|
+
preventScroll: true
|
|
339
|
+
});
|
|
340
|
+
} else {
|
|
341
|
+
this.hiddenInput.focus({
|
|
342
|
+
preventScroll: true
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
} else {
|
|
349
|
+
if (keyCode === 13 || keyCode === 40) {
|
|
350
|
+
togglePopup(e, boxPosition);
|
|
183
351
|
}
|
|
184
352
|
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
};
|
|
203
|
-
return optionsObj;
|
|
204
|
-
}
|
|
205
|
-
}, {
|
|
206
|
-
key: 'handleChange',
|
|
207
|
-
value: function handleChange(value, e) {
|
|
208
|
-
var optionsObj = this.searchList(value);
|
|
353
|
+
}
|
|
354
|
+
getSelectedIndex(optionsArr) {
|
|
355
|
+
const {
|
|
356
|
+
selectedId,
|
|
357
|
+
idName
|
|
358
|
+
} = this.props;
|
|
359
|
+
if (selectedId) {
|
|
360
|
+
for (let i = 0; i < optionsArr.length; i++) {
|
|
361
|
+
const indexId = optionsArr[i][idName];
|
|
362
|
+
if (selectedId === indexId) {
|
|
363
|
+
this.setState({
|
|
364
|
+
selectedIndex: i
|
|
365
|
+
});
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
} else {
|
|
209
370
|
this.setState({
|
|
210
|
-
|
|
211
|
-
selectedIndex: -1,
|
|
212
|
-
options: optionsObj.foptions,
|
|
213
|
-
seperatedOptions: optionsObj.fseperatedOptions
|
|
371
|
+
selectedIndex: -1
|
|
214
372
|
});
|
|
215
373
|
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
374
|
+
}
|
|
375
|
+
onSearchAPI() {
|
|
376
|
+
const {
|
|
377
|
+
searchValue
|
|
378
|
+
} = this.state;
|
|
379
|
+
const {
|
|
380
|
+
needSearchFetching,
|
|
381
|
+
onSearch
|
|
382
|
+
} = this.props;
|
|
383
|
+
if (needSearchFetching && onSearch) {
|
|
384
|
+
onSearch(searchValue);
|
|
225
385
|
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
386
|
+
}
|
|
387
|
+
handleChange(value, e) {
|
|
388
|
+
const filteredOptions = this.handleFilterSuggestions(value);
|
|
389
|
+
this.setState({
|
|
390
|
+
searchValue: value,
|
|
391
|
+
selectedIndex: -1,
|
|
392
|
+
options: filteredOptions
|
|
393
|
+
}, () => {
|
|
394
|
+
this.onSearchAPI();
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
onSearchClear() {
|
|
398
|
+
const filteredOptions = this.handleFilterSuggestions('');
|
|
399
|
+
this.setState({
|
|
400
|
+
searchValue: '',
|
|
401
|
+
options: filteredOptions
|
|
402
|
+
}, () => {
|
|
403
|
+
this.onSearchAPI();
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
handleMouseEnter(id, value, index, e) {
|
|
407
|
+
this.setState({
|
|
408
|
+
selectedIndex: index
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
handleScroll(e) {
|
|
412
|
+
let ele = e.target;
|
|
413
|
+
let isScrollReachedBottom = findScrollEnd(ele);
|
|
414
|
+
isScrollReachedBottom && this.handleGetNextOptions();
|
|
415
|
+
}
|
|
416
|
+
handleGetNextOptions() {
|
|
417
|
+
let {
|
|
418
|
+
isNextOptions,
|
|
419
|
+
getNextOptions
|
|
420
|
+
} = this.props;
|
|
421
|
+
let {
|
|
422
|
+
searchValue
|
|
423
|
+
} = this.state;
|
|
424
|
+
isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchValue);
|
|
425
|
+
}
|
|
426
|
+
handleFetchOptions(APICall) {
|
|
427
|
+
let searchValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
428
|
+
let {
|
|
429
|
+
isFetchingOptions = false
|
|
430
|
+
} = this.state;
|
|
431
|
+
let {
|
|
432
|
+
_isMounted
|
|
433
|
+
} = this;
|
|
434
|
+
if (!isFetchingOptions && APICall) {
|
|
229
435
|
this.setState({
|
|
230
|
-
|
|
436
|
+
isFetchingOptions: true
|
|
231
437
|
});
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
438
|
+
try {
|
|
439
|
+
return APICall(searchValue).then(() => {
|
|
440
|
+
_isMounted && this.setState({
|
|
441
|
+
isFetchingOptions: false
|
|
442
|
+
});
|
|
443
|
+
}, () => {
|
|
444
|
+
_isMounted && this.setState({
|
|
445
|
+
isFetchingOptions: false
|
|
446
|
+
});
|
|
447
|
+
});
|
|
448
|
+
} catch (e) {
|
|
449
|
+
_isMounted && this.setState({
|
|
450
|
+
isFetchingOptions: false
|
|
451
|
+
});
|
|
242
452
|
}
|
|
243
453
|
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
454
|
+
}
|
|
455
|
+
responsiveFunc(_ref3) {
|
|
456
|
+
let {
|
|
457
|
+
mediaQueryOR
|
|
458
|
+
} = _ref3;
|
|
459
|
+
return {
|
|
460
|
+
tabletMode: mediaQueryOR([{
|
|
461
|
+
maxWidth: 700
|
|
462
|
+
}])
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
render() {
|
|
466
|
+
const {
|
|
467
|
+
options,
|
|
468
|
+
selectedIndex
|
|
469
|
+
} = this.state;
|
|
470
|
+
const {
|
|
471
|
+
value,
|
|
472
|
+
removeClose,
|
|
473
|
+
boxSize,
|
|
474
|
+
keyName,
|
|
475
|
+
idName,
|
|
476
|
+
title,
|
|
477
|
+
isSearch,
|
|
478
|
+
isArrow,
|
|
479
|
+
placeHolderText,
|
|
480
|
+
className,
|
|
481
|
+
right,
|
|
482
|
+
left,
|
|
483
|
+
top,
|
|
484
|
+
bottom,
|
|
485
|
+
isPopupOpen: isOpen,
|
|
486
|
+
isPopupActive,
|
|
487
|
+
needExternalPopupState,
|
|
488
|
+
isPopupReady,
|
|
489
|
+
position,
|
|
490
|
+
getTargetRef,
|
|
491
|
+
getContainerRef,
|
|
492
|
+
dataId,
|
|
493
|
+
dataSelectorId,
|
|
494
|
+
searchBoxSize,
|
|
495
|
+
searchEmptyHint,
|
|
496
|
+
searchErrorText,
|
|
497
|
+
activeStyle,
|
|
498
|
+
showOnHover,
|
|
499
|
+
isDisabled,
|
|
500
|
+
showIconOnHover,
|
|
501
|
+
isReadOnly,
|
|
502
|
+
hoverStyle,
|
|
503
|
+
isEditable,
|
|
504
|
+
iconName,
|
|
505
|
+
iconSize,
|
|
506
|
+
needTick,
|
|
507
|
+
dataTitle,
|
|
508
|
+
isDataLoaded,
|
|
509
|
+
children,
|
|
510
|
+
needResponsive,
|
|
511
|
+
arrowIconPosition,
|
|
512
|
+
isGroupDropDown,
|
|
513
|
+
groupOptionsKey,
|
|
514
|
+
groupNameKey,
|
|
515
|
+
isToggleStateNeeded,
|
|
516
|
+
selectedId,
|
|
517
|
+
isPadding,
|
|
518
|
+
isNeedEffect,
|
|
519
|
+
hoverType,
|
|
520
|
+
palette,
|
|
521
|
+
getFooter,
|
|
522
|
+
customProps,
|
|
523
|
+
needMultiLineText,
|
|
524
|
+
customClass
|
|
525
|
+
} = this.props;
|
|
526
|
+
let {
|
|
527
|
+
ToggleDropDownProps = {},
|
|
528
|
+
DropBoxProps = {},
|
|
529
|
+
TextBoxIconProps = {},
|
|
530
|
+
ListItemWithIconProps = {},
|
|
531
|
+
ListItemProps = {}
|
|
532
|
+
} = customProps;
|
|
533
|
+
let {
|
|
534
|
+
customDropBox = '',
|
|
535
|
+
customListBox = ''
|
|
536
|
+
} = customClass;
|
|
537
|
+
const isPopupOpen = needExternalPopupState ? isPopupActive && isOpen : isOpen;
|
|
538
|
+
const Component = isToggleStateNeeded ? children.type : null,
|
|
539
|
+
componentProps = isToggleStateNeeded ? children.props : null;
|
|
540
|
+
const {
|
|
541
|
+
searchValue,
|
|
542
|
+
isFetchingOptions
|
|
543
|
+
} = this.state;
|
|
544
|
+
const commonClass = `${className ? className : ''} ${isPopupReady ? activeStyle ? activeStyle : '' : ''} ${isDisabled ? CssProvider('isDisable') : isReadOnly || !isEditable ? style.cursorDefault : !showOnHover ? `${style.cursor} ${hoverStyle ? hoverStyle : ''}` : `${hoverStyle ? hoverStyle : ''} ${style.cursorDefault}`}`;
|
|
545
|
+
let listIndex = -1;
|
|
546
|
+
const ariaTitleId = this.getAriaId();
|
|
547
|
+
const allyOptionsArr = this.getOptionsArray();
|
|
548
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
549
|
+
className: style.wrapper,
|
|
550
|
+
onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
|
|
551
|
+
onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
|
|
552
|
+
"data-selector-id": dataSelectorId
|
|
553
|
+
}, ToggleDropDownProps), /*#__PURE__*/React.createElement(Container, {
|
|
554
|
+
alignBox: "row",
|
|
555
|
+
onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
|
|
556
|
+
eleRef: getTargetRef,
|
|
557
|
+
align: "vertical",
|
|
558
|
+
isCover: false,
|
|
559
|
+
dataId: dataId
|
|
560
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
561
|
+
className: style.hiddenInput
|
|
562
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
563
|
+
type: "text",
|
|
564
|
+
ref: this.inputRef,
|
|
565
|
+
onKeyDown: this.handleKeyDown,
|
|
566
|
+
tabIndex: "-1",
|
|
567
|
+
className: style.hiddenInputElement
|
|
568
|
+
})), children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, _extends({}, componentProps, {
|
|
569
|
+
isActive: isPopupOpen
|
|
570
|
+
})) : children : /*#__PURE__*/React.createElement(RippleEffect, {
|
|
571
|
+
hoverType: hoverType,
|
|
572
|
+
isActive: isPopupOpen,
|
|
573
|
+
isNeedEffect: isEditable && isNeedEffect
|
|
574
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
575
|
+
className: `${btnStyle.buttonReset} ${commonClass} ${!isPopupOpen && showIconOnHover ? style.hoverIcon : ''}`,
|
|
576
|
+
isCover: false,
|
|
577
|
+
alignBox: "row",
|
|
578
|
+
align: "vertical",
|
|
579
|
+
tagName: "button",
|
|
580
|
+
"aria-labelledby": ariaTitleId,
|
|
581
|
+
"aria-haspopup": true,
|
|
582
|
+
"aria-expanded": isPopupOpen ? true : false
|
|
583
|
+
}, iconName ? /*#__PURE__*/React.createElement(Box, {
|
|
584
|
+
className: value ? style.iconBox : ''
|
|
585
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
586
|
+
name: iconName,
|
|
587
|
+
size: iconSize
|
|
588
|
+
})) : null, value && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
589
|
+
id: ariaTitleId,
|
|
590
|
+
"aria-hidden": true,
|
|
591
|
+
className: `${style.value} toggleDropText`,
|
|
592
|
+
shrink: true,
|
|
593
|
+
tagName: "span",
|
|
594
|
+
"data-title": dataTitle
|
|
595
|
+
}, value), isEditable ? /*#__PURE__*/React.createElement(Icon, {
|
|
596
|
+
"aria-hidden": true,
|
|
597
|
+
size: "6",
|
|
598
|
+
name: "ZD-down",
|
|
599
|
+
iconClass: `${'toggleDropIcon'} ${style.arrow} ${style[`${arrowIconPosition}_arrow`]}`,
|
|
600
|
+
dataId: "statusdownarrow"
|
|
601
|
+
}) : null)))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
602
|
+
query: this.responsiveFunc,
|
|
603
|
+
responsiveId: "Helmet"
|
|
604
|
+
}, _ref4 => {
|
|
605
|
+
let {
|
|
606
|
+
tabletMode
|
|
607
|
+
} = _ref4;
|
|
608
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
|
|
609
|
+
boxPosition: position,
|
|
610
|
+
isActive: isPopupReady,
|
|
611
|
+
onClick: removeClose,
|
|
612
|
+
size: boxSize,
|
|
613
|
+
right: right,
|
|
614
|
+
left: left,
|
|
615
|
+
top: top,
|
|
616
|
+
bottom: bottom,
|
|
617
|
+
isArrow: isArrow,
|
|
618
|
+
isAnimate: true,
|
|
619
|
+
getRef: getContainerRef,
|
|
620
|
+
customClass: {
|
|
621
|
+
customDropBoxWrap: style.dropBoxContainer,
|
|
622
|
+
customDropBox: customDropBox
|
|
302
623
|
},
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
{
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
React.createElement(Loader, null)
|
|
516
|
-
)
|
|
517
|
-
)
|
|
518
|
-
)
|
|
519
|
-
) : null
|
|
520
|
-
);
|
|
521
|
-
}
|
|
522
|
-
}]);
|
|
523
|
-
|
|
524
|
-
return ToggleDropDown;
|
|
525
|
-
}(React.Component);
|
|
526
|
-
if (false) {
|
|
527
|
-
ToggleDropDown.docs = {
|
|
528
|
-
componentGroup: 'Molecule'
|
|
529
|
-
};
|
|
624
|
+
needResponsive: needResponsive,
|
|
625
|
+
isPadding: isPadding,
|
|
626
|
+
tabindex: "0",
|
|
627
|
+
a11y: {
|
|
628
|
+
role: !isSearch ? 'menu' : undefined,
|
|
629
|
+
ariaLabelledby: !isSearch ? ariaTitleId : undefined
|
|
630
|
+
},
|
|
631
|
+
palette: palette,
|
|
632
|
+
isResponsivePadding: true
|
|
633
|
+
}, DropBoxProps), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
634
|
+
className: style.search
|
|
635
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
636
|
+
placeHolder: placeHolderText,
|
|
637
|
+
onChange: this.handleChange,
|
|
638
|
+
value: searchValue,
|
|
639
|
+
onClear: this.onSearchClear,
|
|
640
|
+
size: searchBoxSize,
|
|
641
|
+
inputRef: this.searchInputRef,
|
|
642
|
+
onKeyDown: this.handleKeyDown,
|
|
643
|
+
a11y: {
|
|
644
|
+
role: 'combobox',
|
|
645
|
+
ariaOwns: ariaTitleId,
|
|
646
|
+
ariaActivedescendant: allyOptionsArr[selectedIndex] && allyOptionsArr[selectedIndex][keyName],
|
|
647
|
+
ariaAutocomplete: 'list',
|
|
648
|
+
ariaHaspopup: true,
|
|
649
|
+
ariaExpanded: true
|
|
650
|
+
}
|
|
651
|
+
}, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
652
|
+
className: style.title
|
|
653
|
+
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
654
|
+
text: title,
|
|
655
|
+
htmlId: ariaTitleId,
|
|
656
|
+
palette: palette,
|
|
657
|
+
a11y: {
|
|
658
|
+
role: 'heading'
|
|
659
|
+
},
|
|
660
|
+
customClass: style.dropdown
|
|
661
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
662
|
+
id: ariaTitleId,
|
|
663
|
+
flexible: true,
|
|
664
|
+
shrink: true,
|
|
665
|
+
scroll: "vertical",
|
|
666
|
+
preventParentScroll: "vertical",
|
|
667
|
+
dataId: `${dataId}_list`,
|
|
668
|
+
className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt} ${customListBox}`,
|
|
669
|
+
eleRef: this.scrollContentRef,
|
|
670
|
+
onScroll: this.handleScroll,
|
|
671
|
+
role: isSearch ? 'listbox' : undefined,
|
|
672
|
+
"aria-labelledby": isSearch ? ariaTitleId : undefined
|
|
673
|
+
}, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map(group => {
|
|
674
|
+
const groupName = group[groupNameKey];
|
|
675
|
+
const groupOptions = group[groupOptionsKey];
|
|
676
|
+
const {
|
|
677
|
+
needDivider
|
|
678
|
+
} = group;
|
|
679
|
+
return /*#__PURE__*/React.createElement(Fragment, {
|
|
680
|
+
key: `index${groupName}`
|
|
681
|
+
}, needDivider && /*#__PURE__*/React.createElement("div", {
|
|
682
|
+
className: style.seperatedLine
|
|
683
|
+
}), groupName && /*#__PURE__*/React.createElement("div", {
|
|
684
|
+
className: style.groupName
|
|
685
|
+
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
686
|
+
text: groupName,
|
|
687
|
+
palette: palette,
|
|
688
|
+
a11y: {
|
|
689
|
+
role: 'heading'
|
|
690
|
+
}
|
|
691
|
+
})), groupOptions && groupOptions.map(item => {
|
|
692
|
+
const {
|
|
693
|
+
iconName,
|
|
694
|
+
iconSize,
|
|
695
|
+
iconClass,
|
|
696
|
+
title,
|
|
697
|
+
disableTitle = '',
|
|
698
|
+
isDisabled = false
|
|
699
|
+
} = item;
|
|
700
|
+
listIndex += 1;
|
|
701
|
+
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
702
|
+
key: listIndex,
|
|
703
|
+
dataId: item[keyName],
|
|
704
|
+
value: item[keyName],
|
|
705
|
+
id: item[idName],
|
|
706
|
+
active: selectedId === item[idName],
|
|
707
|
+
onClick: this.onSelect.bind(this, item),
|
|
708
|
+
index: listIndex,
|
|
709
|
+
highlight: selectedIndex === listIndex,
|
|
710
|
+
disableTitle: disableTitle,
|
|
711
|
+
isDisabled: isDisabled,
|
|
712
|
+
iconName: iconName,
|
|
713
|
+
iconClass: iconClass,
|
|
714
|
+
iconSize: iconSize,
|
|
715
|
+
needTick: needTick,
|
|
716
|
+
needBorder: false,
|
|
717
|
+
onMouseEnter: this.handleMouseEnter,
|
|
718
|
+
getRef: this.itemRef,
|
|
719
|
+
title: title ? title : item[keyName],
|
|
720
|
+
palette: palette,
|
|
721
|
+
needMultiLineText: needMultiLineText,
|
|
722
|
+
a11y: {
|
|
723
|
+
role: isSearch ? 'option' : 'menuitem',
|
|
724
|
+
ariaSelected: selectedId === item[idName],
|
|
725
|
+
ariaLabel: item[keyName]
|
|
726
|
+
}
|
|
727
|
+
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
728
|
+
key: listIndex,
|
|
729
|
+
dataId: item[keyName],
|
|
730
|
+
value: item[keyName],
|
|
731
|
+
id: item[idName],
|
|
732
|
+
active: selectedId === item[idName],
|
|
733
|
+
onClick: this.onSelect.bind(this, item),
|
|
734
|
+
isDisabled: isDisabled,
|
|
735
|
+
disableTitle: disableTitle,
|
|
736
|
+
index: listIndex,
|
|
737
|
+
highlight: selectedIndex === listIndex,
|
|
738
|
+
needTick: needTick,
|
|
739
|
+
needBorder: false,
|
|
740
|
+
onMouseEnter: this.handleMouseEnter,
|
|
741
|
+
getRef: this.itemRef,
|
|
742
|
+
title: title ? title : item[keyName],
|
|
743
|
+
palette: palette,
|
|
744
|
+
needMultiLineText: needMultiLineText,
|
|
745
|
+
a11y: {
|
|
746
|
+
role: isSearch ? 'option' : 'menuitem',
|
|
747
|
+
ariaSelected: selectedId === item[idName],
|
|
748
|
+
ariaLabel: item[keyName]
|
|
749
|
+
}
|
|
750
|
+
}, ListItemProps));
|
|
751
|
+
}));
|
|
752
|
+
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
753
|
+
isCover: false,
|
|
754
|
+
align: "both"
|
|
755
|
+
}, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
|
|
756
|
+
const {
|
|
757
|
+
iconName,
|
|
758
|
+
iconSize,
|
|
759
|
+
iconClass,
|
|
760
|
+
title,
|
|
761
|
+
needDivider,
|
|
762
|
+
isDisabled = false,
|
|
763
|
+
disableTitle = ''
|
|
764
|
+
} = item;
|
|
765
|
+
if (!needDivider) {
|
|
766
|
+
listIndex += 1;
|
|
767
|
+
}
|
|
768
|
+
return /*#__PURE__*/React.createElement(Fragment, {
|
|
769
|
+
key: i
|
|
770
|
+
}, needDivider ? /*#__PURE__*/React.createElement("div", {
|
|
771
|
+
className: style.seperatedLine
|
|
772
|
+
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
773
|
+
dataId: item[keyName],
|
|
774
|
+
value: item[keyName],
|
|
775
|
+
id: item[idName],
|
|
776
|
+
active: selectedId === item[idName],
|
|
777
|
+
onClick: this.onSelect.bind(this, item),
|
|
778
|
+
index: listIndex,
|
|
779
|
+
disableTitle: disableTitle,
|
|
780
|
+
isDisabled: isDisabled,
|
|
781
|
+
highlight: selectedIndex === listIndex,
|
|
782
|
+
iconName: iconName,
|
|
783
|
+
iconClass: iconClass,
|
|
784
|
+
iconSize: iconSize,
|
|
785
|
+
needTick: needTick,
|
|
786
|
+
needBorder: false,
|
|
787
|
+
onMouseEnter: this.handleMouseEnter,
|
|
788
|
+
getRef: this.itemRef,
|
|
789
|
+
title: title ? title : item[keyName],
|
|
790
|
+
key: listIndex,
|
|
791
|
+
palette: palette,
|
|
792
|
+
needMultiLineText: needMultiLineText,
|
|
793
|
+
a11y: {
|
|
794
|
+
role: isSearch ? 'option' : 'menuitem',
|
|
795
|
+
ariaSelected: selectedId === item[idName],
|
|
796
|
+
ariaLabel: item[keyName]
|
|
797
|
+
}
|
|
798
|
+
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
799
|
+
key: listIndex,
|
|
800
|
+
dataId: item[keyName],
|
|
801
|
+
value: item[keyName],
|
|
802
|
+
id: item[idName],
|
|
803
|
+
disableTitle: disableTitle,
|
|
804
|
+
isDisabled: isDisabled,
|
|
805
|
+
active: selectedId === item[idName],
|
|
806
|
+
onClick: this.onSelect.bind(this, item),
|
|
807
|
+
index: listIndex,
|
|
808
|
+
highlight: selectedIndex === listIndex,
|
|
809
|
+
needTick: needTick,
|
|
810
|
+
needBorder: false,
|
|
811
|
+
onMouseEnter: this.handleMouseEnter,
|
|
812
|
+
getRef: this.itemRef,
|
|
813
|
+
title: title ? title : item[keyName],
|
|
814
|
+
palette: palette,
|
|
815
|
+
needMultiLineText: needMultiLineText,
|
|
816
|
+
a11y: {
|
|
817
|
+
role: isSearch ? 'option' : 'menuitem',
|
|
818
|
+
ariaSelected: selectedId === item[idName],
|
|
819
|
+
ariaLabel: item[keyName]
|
|
820
|
+
}
|
|
821
|
+
}, ListItemProps)));
|
|
822
|
+
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
823
|
+
isCover: false,
|
|
824
|
+
align: "both"
|
|
825
|
+
}, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
826
|
+
className: style.svgWrapper,
|
|
827
|
+
description: searchEmptyHint,
|
|
828
|
+
title: searchErrorText || 'No results',
|
|
829
|
+
size: "small",
|
|
830
|
+
getEmptyState: this.emptySearchSVG
|
|
831
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
832
|
+
className: style.loader
|
|
833
|
+
}, /*#__PURE__*/React.createElement(Loader, null))), getFooter ? /*#__PURE__*/React.createElement(Box, null, getFooter()) : null));
|
|
834
|
+
}) : null);
|
|
835
|
+
}
|
|
530
836
|
}
|
|
837
|
+
ToggleDropDown.defaultProps = defaultProps;
|
|
838
|
+
ToggleDropDown.propTypes = propTypes;
|
|
531
839
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
isDisabled: false,
|
|
538
|
-
showIconOnHover: false,
|
|
539
|
-
isReadOnly: false,
|
|
540
|
-
isEditable: true,
|
|
541
|
-
isDataLoaded: true,
|
|
542
|
-
needTick: true,
|
|
543
|
-
targetAlign: 'vertical',
|
|
544
|
-
needResponsive: true
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
ToggleDropDown.propTypes = (_ToggleDropDown$propT = {
|
|
548
|
-
activeStyle: PropTypes.string,
|
|
549
|
-
bottom: PropTypes.number,
|
|
550
|
-
boxPosition: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
|
|
551
|
-
boxSize: PropTypes.oneOf(['small', 'medium', 'mlarge', 'large']),
|
|
552
|
-
className: PropTypes.string,
|
|
553
|
-
dataId: PropTypes.string,
|
|
554
|
-
dataTitle: PropTypes.string,
|
|
555
|
-
getContainerRef: PropTypes.func,
|
|
556
|
-
getTargetRef: PropTypes.func,
|
|
557
|
-
hoverStyle: PropTypes.string,
|
|
558
|
-
iconName: PropTypes.string,
|
|
559
|
-
iconSize: PropTypes.string,
|
|
560
|
-
idName: PropTypes.string,
|
|
561
|
-
isArrow: PropTypes.bool,
|
|
562
|
-
isDataLoaded: PropTypes.bool,
|
|
563
|
-
isDisabled: PropTypes.bool,
|
|
564
|
-
isEditable: PropTypes.bool,
|
|
565
|
-
isPopupOpen: PropTypes.bool,
|
|
566
|
-
isPopupReady: PropTypes.bool,
|
|
567
|
-
isReadOnly: PropTypes.bool,
|
|
568
|
-
isSearch: PropTypes.bool,
|
|
569
|
-
keyName: PropTypes.string,
|
|
570
|
-
left: PropTypes.number,
|
|
571
|
-
needTick: PropTypes.bool,
|
|
572
|
-
onClick: PropTypes.func,
|
|
573
|
-
options: PropTypes.array.isRequired,
|
|
574
|
-
placeHolderText: PropTypes.string,
|
|
575
|
-
position: PropTypes.string,
|
|
576
|
-
removeClose: PropTypes.func,
|
|
577
|
-
right: PropTypes.number,
|
|
578
|
-
searchBoxSize: PropTypes.oneOf(['small', 'medium', 'xmedium']),
|
|
579
|
-
searchEmptyHint: PropTypes.string,
|
|
580
|
-
searchErrorText: PropTypes.string,
|
|
581
|
-
showIconOnHover: PropTypes.bool,
|
|
582
|
-
showOnHover: PropTypes.bool,
|
|
583
|
-
title: PropTypes.string,
|
|
584
|
-
togglePopup: PropTypes.func,
|
|
585
|
-
value: PropTypes.node
|
|
586
|
-
}, _defineProperty(_ToggleDropDown$propT, 'isDataLoaded', PropTypes.bool), _defineProperty(_ToggleDropDown$propT, 'children', PropTypes.node), _defineProperty(_ToggleDropDown$propT, 'seperatedOptions', PropTypes.array), _defineProperty(_ToggleDropDown$propT, 'targetAlign', PropTypes.oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_ToggleDropDown$propT, 'isNextOptions', PropTypes.bool), _defineProperty(_ToggleDropDown$propT, 'getNextOptions', PropTypes.func), _defineProperty(_ToggleDropDown$propT, 'needResponsive', PropTypes.bool), _ToggleDropDown$propT);
|
|
587
|
-
|
|
840
|
+
// if (__DOCS__) {
|
|
841
|
+
// ToggleDropDown.docs = {
|
|
842
|
+
// componentGroup: 'Molecule'
|
|
843
|
+
// };
|
|
844
|
+
// }
|
|
588
845
|
export default Popup(ToggleDropDown);
|