@zohodesk/dot 1.0.0-temp-112 → 1.0.0-temp-114
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 +1173 -1176
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +1 -1
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +1 -1
- package/css_error.log +0 -0
- package/dubFinder.js +96 -96
- package/es/ActionButton/ActionButton.module.css +136 -136
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/Attachment/Attachment.module.css +157 -157
- package/es/AttachmentViewer/AttachmentViewer.module.css +354 -354
- package/es/ChannelIcon/ChannelIcon.module.css +217 -217
- package/es/Drawer/Drawer.js +0 -0
- package/es/Drawer/Drawer.module.css +150 -150
- package/es/ExternalLink/ExternalLink.js +0 -0
- package/es/ExternalLink/ExternalLink.module.css +3 -3
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/es/FlipCard/FlipCard.module.css +44 -44
- package/es/FormAction/FormAction.module.css +82 -82
- package/es/FreezeLayer/FreezeLayer.module.css +42 -42
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Image/Image.module.css +10 -10
- package/es/ImportantNotes/ImportantNotes.module.css +20 -20
- package/es/Link/Link.js +0 -0
- package/es/Link/Link.module.css +3 -3
- package/es/Loader/Loader.module.css +46 -46
- package/es/Message/Message.module.css +102 -102
- package/es/MessageBanner/MessageBanner.module.css +46 -46
- package/es/NewStar/NewStar.module.css +110 -110
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/PlusIcon/PlusIcon.module.css +16 -16
- package/es/ToastMessage/ToastMessage.js +0 -0
- package/es/ToastMessage/ToastMessage.module.css +328 -328
- package/es/Upload/Upload.module.css +125 -125
- package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/es/avatar/AvatarThread/AvatarThread.module.css +166 -166
- package/es/avatar/AvatarUser/AvatarUser.js +0 -0
- package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/es/common/dot_animation.module.css +26 -26
- package/es/common/dot_common.module.css +3 -3
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/es/deprecated/utils/KeyboardApi.js +25 -25
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +8 -4
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +101 -101
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/es/emptystate/EditionPage/EditionPage.css +43 -43
- package/es/errorstate/EmptyStates.module.css +87 -87
- package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/es/errorstate/LinkText/LinkText.module.css +6 -6
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/es/errorstate/WillBack/WillBack.module.css +34 -34
- package/es/form/fields/CheckBoxField/CheckBoxField.js +2 -3
- package/es/form/fields/CurrencyField/CurrencyField.js +8 -43
- package/es/form/fields/CurrencyField/props/defaultProps.js +0 -1
- package/es/form/fields/DateField/DateField.js +8 -93
- package/es/form/fields/DateField/props/defaultProps.js +0 -1
- package/es/form/fields/Fields.module.css +183 -248
- package/es/form/fields/MultiSelectField/MultiSelectField.js +9 -91
- package/es/form/fields/MultiSelectField/props/defaultProps.js +0 -1
- package/es/form/fields/PhoneField/PhoneField.js +1 -3
- package/es/form/fields/PhoneField/props/defaultProps.js +1 -2
- package/es/form/fields/RadioField/RadioField.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +12 -99
- package/es/form/fields/SelectField/props/defaultProps.js +0 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/es/form/fields/TextBoxField/TextBoxField.js +8 -59
- package/es/form/fields/TextBoxField/props/defaultProps.js +0 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +666 -666
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
- package/es/form/fields/TextareaField/TextareaField.js +12 -58
- package/es/form/fields/TextareaField/props/defaultProps.js +0 -1
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/es/form/layout/Field/Field.js +0 -0
- package/es/form/layout/Field/Field.module.css +22 -22
- package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/es/form/layout/Section/Section.js +0 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/es/layout/SubtabLayout/SubtabLayout.module.css +146 -146
- package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/DotNew/DotNew.module.css +22 -22
- package/es/list/GridStencils/GridStencils.module.css +146 -146
- package/es/list/Icons/Icons.module.css +16 -16
- package/es/list/ListLayout/ListLayout.js +1 -0
- package/es/list/ListLayout/ListLayout.module.css +57 -57
- package/es/list/ListStencils/ListStencils.module.css +67 -67
- package/es/list/SecondaryText/SecondaryText.module.css +136 -136
- package/es/list/SecondaryText/Website.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/es/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/es/list/Subject/Subject.module.css +27 -27
- package/es/list/TagNew/TagNew.module.css +115 -115
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/UserTime/UserTime.module.css +58 -58
- package/es/list/listCommon.module.css +60 -60
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
- package/es/list/status/StatusListItem/StatusListItem.js +0 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +104 -104
- package/es/lookup/EmptyPage/EmptyPage.js +0 -0
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/es/lookup/Lookup/Lookup.js +0 -0
- package/es/lookup/Lookup/Lookup.module.css +26 -26
- package/es/lookup/Section/LookupSection.module.css +8 -8
- package/es/lookup/header/Close/LookupClose.module.css +15 -15
- package/es/lookup/header/Search/LookupSearch.module.css +57 -57
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/es/lookup/header/Title/LookupTitle.module.css +20 -20
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
- package/es/lookup/header/lookupHeaderCommon.module.css +41 -41
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/es/setup/header/Button/HeaderButton.module.css +5 -5
- package/es/setup/header/Link/HeaderLink.module.css +21 -21
- package/es/setup/header/Search/Search.module.css +68 -68
- package/es/setup/header/Views/Views.module.css +37 -37
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/es/setup/helptips/Link/Link.js +0 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/es/setup/helptips/Title/Title.js +0 -0
- package/es/setup/table/TableData/SetupTableData.module.css +44 -44
- package/es/setup/table/TableData/Tablehover.module.css +6 -6
- package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/es/setup/table/Text/TableText.module.css +37 -37
- package/es/setup/table/Text/Text.js +0 -0
- package/es/svg/PlusIcon.js +1 -1
- package/es/svg/SnippetIcon.js +2 -2
- package/es/version2/AlertClose/AlertClose.module.css +42 -42
- package/es/version2/GlobalNotification/GlobalNotification.module.css +124 -124
- package/es/version2/alertIcons/AlertIcons.module.css +67 -67
- package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +86 -86
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -106
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/lib/ActionButton/ActionButton.js +1 -3
- package/lib/ActionButton/ActionButton.module.css +136 -136
- package/lib/AlphabeticList/AlphabeticList.js +1 -3
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/Attachment/Attachment.js +1 -3
- package/lib/Attachment/Attachment.module.css +157 -157
- package/lib/AttachmentViewer/AttachmentImage.js +1 -3
- package/lib/AttachmentViewer/AttachmentViewer.js +1 -3
- package/lib/AttachmentViewer/AttachmentViewer.module.css +354 -354
- package/lib/AttachmentViewer/utils.js +1 -4
- package/lib/ChannelIcon/ChannelIcon.js +1 -3
- package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
- package/lib/Drawer/Drawer.js +1 -3
- package/lib/Drawer/Drawer.module.css +150 -150
- package/lib/ExternalLink/ExternalLink.js +1 -3
- package/lib/ExternalLink/ExternalLink.module.css +3 -3
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/FlipCard/FlipCard.js +1 -3
- package/lib/FlipCard/FlipCard.module.css +44 -44
- package/lib/FormAction/FormAction.js +1 -3
- package/lib/FormAction/FormAction.module.css +82 -82
- package/lib/FreezeLayer/FreezeLayer.js +1 -3
- package/lib/FreezeLayer/FreezeLayer.module.css +42 -42
- package/lib/IconButton/IconButton.js +1 -3
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/IconButton/props/propTypes.js +1 -4
- package/lib/Image/Image.js +1 -3
- package/lib/Image/Image.module.css +10 -10
- package/lib/ImportantNotes/ImportantNotes.js +1 -3
- package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
- package/lib/Link/Link.js +1 -3
- package/lib/Link/Link.module.css +3 -3
- package/lib/Loader/Loader.js +1 -3
- package/lib/Loader/Loader.module.css +46 -46
- package/lib/Message/Message.js +1 -3
- package/lib/Message/Message.module.css +102 -102
- package/lib/MessageBanner/MessageBanner.js +1 -3
- package/lib/MessageBanner/MessageBanner.module.css +46 -46
- package/lib/NewStar/NewStar.js +1 -3
- package/lib/NewStar/NewStar.module.css +110 -110
- package/lib/PlusIcon/PlusIcon.js +1 -3
- package/lib/PlusIcon/PlusIcon.module.css +16 -16
- package/lib/ToastMessage/ToastMessage.js +1 -1
- package/lib/ToastMessage/ToastMessage.module.css +328 -328
- package/lib/Upload/Upload.js +1 -3
- package/lib/Upload/Upload.module.css +125 -125
- package/lib/actions/AutoClose.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +1 -3
- package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/lib/alert/AlertLookup/AlertLookup.js +1 -3
- package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/lib/avatar/AvatarClose/AvatarClose.js +1 -3
- package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/lib/avatar/AvatarCollision/AvatarCollision.js +1 -3
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/lib/avatar/AvatarIcon/AvatarIcon.js +1 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/avatar/AvatarStatus/AvatarStatus.js +1 -3
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/lib/avatar/AvatarThread/AvatarThread.js +1 -3
- package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
- package/lib/avatar/AvatarUser/AvatarUser.js +2 -5
- package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +1 -3
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/lib/common/dot_animation.module.css +26 -26
- package/lib/common/dot_common.module.css +3 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +1 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/lib/deprecated/utils/KeyboardApi.js +26 -29
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +10 -8
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +101 -101
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -3
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/lib/emptystate/EditionPage/EditionPage.css +43 -43
- package/lib/emptystate/EditionPage/EditionPage.js +1 -3
- package/lib/errorstate/EmptyStates.module.css +87 -87
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -3
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/lib/errorstate/LinkText/LinkText.js +1 -3
- package/lib/errorstate/LinkText/LinkText.module.css +6 -6
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +1 -3
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +1 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -3
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/lib/errorstate/WillBack/WillBack.js +1 -3
- package/lib/errorstate/WillBack/WillBack.module.css +34 -34
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -6
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +1 -4
- package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -4
- package/lib/form/fields/CurrencyField/CurrencyField.js +42 -79
- package/lib/form/fields/CurrencyField/props/defaultProps.js +1 -5
- package/lib/form/fields/CurrencyField/props/propTypes.js +1 -4
- package/lib/form/fields/DateField/DateField.js +41 -131
- package/lib/form/fields/DateField/props/defaultProps.js +1 -4
- package/lib/form/fields/DateField/props/propTypes.js +1 -4
- package/lib/form/fields/FieldContainer/FieldContainer.js +1 -3
- package/lib/form/fields/FieldContainer/props/defaultProps.js +1 -4
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -4
- package/lib/form/fields/Fields.module.css +183 -248
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +53 -138
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +1 -4
- package/lib/form/fields/MultiSelectField/props/propTypes.js +1 -4
- package/lib/form/fields/PhoneField/PhoneField.js +2 -6
- package/lib/form/fields/PhoneField/props/defaultProps.js +1 -2
- package/lib/form/fields/RadioField/RadioField.js +2 -4
- package/lib/form/fields/SelectField/SelectField.js +61 -153
- package/lib/form/fields/SelectField/props/defaultProps.js +2 -6
- package/lib/form/fields/SelectField/props/propTypes.js +1 -4
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -3
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -4
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +1 -4
- package/lib/form/fields/TextBoxField/TextBoxField.js +44 -97
- package/lib/form/fields/TextBoxField/props/defaultProps.js +2 -6
- package/lib/form/fields/TextBoxField/props/propTypes.js +1 -4
- package/lib/form/fields/TextEditor/TextEditor.js +2 -4
- package/lib/form/fields/TextEditor/TextEditor.module.css +666 -666
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -3
- package/lib/form/fields/TextEditorField/props/defaultProps.js +1 -4
- package/lib/form/fields/TextEditorField/props/propTypes.js +1 -4
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -5
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
- package/lib/form/fields/TextareaField/TextareaField.js +45 -92
- package/lib/form/fields/TextareaField/props/defaultProps.js +1 -4
- package/lib/form/fields/TextareaField/props/propTypes.js +1 -4
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +1 -3
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/lib/form/layout/Field/Field.js +1 -3
- package/lib/form/layout/Field/Field.module.css +22 -22
- package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/lib/form/layout/Section/Section.js +1 -3
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -3
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/lib/layout/SubtabLayout/SubtabLayout.js +1 -3
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +146 -146
- package/lib/list/AvatarFlip/AvatarFlip.js +1 -3
- package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.js +1 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/lib/list/Comment/Comment.js +1 -3
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -4
- package/lib/list/Dot/Dot.js +1 -3
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/DotNew/DotNew.js +1 -3
- package/lib/list/DotNew/DotNew.module.css +22 -22
- package/lib/list/GridStencils/GridStencils.js +1 -3
- package/lib/list/GridStencils/GridStencils.module.css +146 -146
- package/lib/list/Icons/AddNewIcon.js +1 -3
- package/lib/list/Icons/CompleteIcon.js +1 -3
- package/lib/list/Icons/DeleteIcon.js +1 -3
- package/lib/list/Icons/EditIcon.js +1 -3
- package/lib/list/Icons/FloatingIcons.js +1 -3
- package/lib/list/Icons/Icons.module.css +16 -16
- package/lib/list/Icons/ReadUnreadIcon.js +1 -3
- package/lib/list/Icons/SmartIcon.js +1 -3
- package/lib/list/ListLayout/ListLayout.js +2 -3
- package/lib/list/ListLayout/ListLayout.module.css +57 -57
- package/lib/list/ListLayout/props/propTypes.js +1 -4
- package/lib/list/ListStencils/ListStencils.js +1 -3
- package/lib/list/ListStencils/ListStencils.module.css +67 -67
- package/lib/list/SecondaryText/AccountName.js +1 -3
- package/lib/list/SecondaryText/ContactName.js +1 -3
- package/lib/list/SecondaryText/DepartmentText.js +1 -3
- package/lib/list/SecondaryText/Email.js +1 -3
- package/lib/list/SecondaryText/HappinessRating.js +1 -3
- package/lib/list/SecondaryText/PhoneNumber.js +1 -3
- package/lib/list/SecondaryText/PriorityText.js +1 -3
- package/lib/list/SecondaryText/SecondaryText.js +1 -3
- package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
- package/lib/list/SecondaryText/StatusText.js +1 -3
- package/lib/list/SecondaryText/TicketId.js +1 -3
- package/lib/list/SecondaryText/Website.js +1 -3
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -3
- package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/lib/list/SentimentStatus/SentimentStatus.js +1 -3
- package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/lib/list/Subject/Subject.js +1 -3
- package/lib/list/Subject/Subject.module.css +27 -27
- package/lib/list/TagNew/TagNew.js +1 -3
- package/lib/list/TagNew/TagNew.module.css +115 -115
- package/lib/list/Thread/Thread.js +1 -3
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/UserTime/UserTime.js +1 -3
- package/lib/list/UserTime/UserTime.module.css +58 -58
- package/lib/list/listCommon.module.css +60 -60
- package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -3
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -4
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -3
- package/lib/list/status/StatusListItem/StatusListItem.module.css +104 -104
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -3
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/lib/lookup/Lookup/Lookup.js +2 -5
- package/lib/lookup/Lookup/Lookup.module.css +26 -26
- package/lib/lookup/Section/LookupSection.module.css +8 -8
- package/lib/lookup/Section/Section.js +1 -3
- package/lib/lookup/header/Close/Close.js +1 -3
- package/lib/lookup/header/Close/LookupClose.module.css +15 -15
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +2 -5
- package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
- package/lib/lookup/header/Search/Search.js +1 -3
- package/lib/lookup/header/TicketHeader/TicketHeader.js +2 -5
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
- package/lib/lookup/header/Title/Title.js +1 -3
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -3
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
- package/lib/lookup/header/lookupHeaderCommon.module.css +41 -41
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/lib/setup/header/Button/Button.js +1 -3
- package/lib/setup/header/Button/HeaderButton.module.css +5 -5
- package/lib/setup/header/Link/HeaderLink.module.css +21 -21
- package/lib/setup/header/Link/Link.js +1 -3
- package/lib/setup/header/Search/Search.js +1 -3
- package/lib/setup/header/Search/Search.module.css +68 -68
- package/lib/setup/header/Views/Views.js +1 -3
- package/lib/setup/header/Views/Views.module.css +37 -37
- package/lib/setup/helptips/Description/Description.js +1 -3
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/lib/setup/helptips/Link/Link.js +1 -3
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -3
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/lib/setup/helptips/Title/Title.js +1 -3
- package/lib/setup/table/Table/Table.js +1 -3
- package/lib/setup/table/TableBody/TableBody.js +1 -3
- package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
- package/lib/setup/table/TableData/TableData.js +1 -3
- package/lib/setup/table/TableData/Tablehover.module.css +6 -6
- package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/lib/setup/table/TableHead/TableHead.js +1 -3
- package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/lib/setup/table/TableRow/TableRow.js +1 -3
- package/lib/setup/table/Text/TableText.module.css +37 -37
- package/lib/setup/table/Text/Text.js +1 -3
- package/lib/svg/PlusIcon.js +2 -4
- package/lib/svg/SnippetIcon.js +3 -5
- package/lib/svg/TemplateIcon.js +1 -3
- package/lib/version2/AlertClose/AlertClose.js +1 -3
- package/lib/version2/AlertClose/AlertClose.module.css +42 -42
- package/lib/version2/GlobalNotification/GlobalNotification.js +1 -3
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +124 -124
- package/lib/version2/alertIcons/AlarmAlertIcon.js +1 -3
- package/lib/version2/alertIcons/AlertIcons.js +1 -3
- package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
- package/lib/version2/alertIcons/DangerAlertIcon.js +1 -3
- package/lib/version2/alertIcons/ErrorAlertIcon.js +1 -3
- package/lib/version2/alertIcons/InfoAlertIcon.js +1 -3
- package/lib/version2/alertIcons/NotificationAlertIcon.js +1 -3
- package/lib/version2/alertIcons/SuccessAlertIcon.js +1 -3
- package/lib/version2/alertIcons/WarningAlertIcon.js +1 -3
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +1 -3
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -3
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -3
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -3
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -3
- package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -3
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -3
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +86 -86
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -3
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -106
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -3
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/package.json +93 -93
|
@@ -10,7 +10,6 @@ import Select from '@zohodesk/components/lib/Select/Select';
|
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
12
12
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
13
|
-
import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
|
|
14
13
|
|
|
15
14
|
/**** props ****/
|
|
16
15
|
|
|
@@ -23,17 +22,6 @@ export default class SelectField extends PureComponent {
|
|
|
23
22
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
24
23
|
// this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
25
24
|
this.getNextId = getUniqueId(this);
|
|
26
|
-
this.handleParentClick = this.handleParentClick.bind(this);
|
|
27
|
-
this.handleFocusToggle = this.handleFocusToggle.bind(this);
|
|
28
|
-
this.handleFocus = this.handleFocus.bind(this);
|
|
29
|
-
this.handleBlur = this.handleBlur.bind(this);
|
|
30
|
-
this.getPopupHandlers = this.getPopupHandlers.bind(this);
|
|
31
|
-
this.handleDropBoxOpen = this.handleDropBoxOpen.bind(this);
|
|
32
|
-
this.handleDropBoxClose = this.handleDropBoxClose.bind(this);
|
|
33
|
-
this.state = {
|
|
34
|
-
isFocused: false,
|
|
35
|
-
isPopupOpen: false
|
|
36
|
-
};
|
|
37
25
|
}
|
|
38
26
|
handleChange(selctedId, selectedValue) {
|
|
39
27
|
let {
|
|
@@ -48,65 +36,9 @@ export default class SelectField extends PureComponent {
|
|
|
48
36
|
getRef,
|
|
49
37
|
id
|
|
50
38
|
} = this.props;
|
|
51
|
-
this.
|
|
39
|
+
this.selectBox = el;
|
|
52
40
|
getRef && getRef(el, id);
|
|
53
41
|
}
|
|
54
|
-
handleParentClick(e) {
|
|
55
|
-
const {
|
|
56
|
-
needFieldStyle
|
|
57
|
-
} = this.props;
|
|
58
|
-
if (needFieldStyle) {
|
|
59
|
-
this.textBox.focus();
|
|
60
|
-
this.togglePopup(e);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
handleFocusToggle(value) {
|
|
64
|
-
this.setState({
|
|
65
|
-
isFocused: value
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
handleFocus(e) {
|
|
69
|
-
const {
|
|
70
|
-
onFocus,
|
|
71
|
-
needFieldStyle
|
|
72
|
-
} = this.props;
|
|
73
|
-
needFieldStyle && this.handleFocusToggle(true);
|
|
74
|
-
onFocus && onFocus(e);
|
|
75
|
-
}
|
|
76
|
-
handleBlur(e) {
|
|
77
|
-
const {
|
|
78
|
-
onBlur,
|
|
79
|
-
needFieldStyle
|
|
80
|
-
} = this.props;
|
|
81
|
-
needFieldStyle && this.handleFocusToggle(false);
|
|
82
|
-
onBlur && onBlur(e);
|
|
83
|
-
}
|
|
84
|
-
getPopupHandlers(methods) {
|
|
85
|
-
let {
|
|
86
|
-
togglePopup
|
|
87
|
-
} = methods;
|
|
88
|
-
this.togglePopup = togglePopup;
|
|
89
|
-
}
|
|
90
|
-
handleDropBoxOpen() {
|
|
91
|
-
let {
|
|
92
|
-
isPopupOpen
|
|
93
|
-
} = this.state;
|
|
94
|
-
if (isPopupOpen == false) {
|
|
95
|
-
this.setState({
|
|
96
|
-
isPopupOpen: true
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
handleDropBoxClose() {
|
|
101
|
-
let {
|
|
102
|
-
isPopupOpen
|
|
103
|
-
} = this.state;
|
|
104
|
-
if (isPopupOpen) {
|
|
105
|
-
this.setState({
|
|
106
|
-
isPopupOpen: false
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
42
|
|
|
111
43
|
// handleLabelClick() {
|
|
112
44
|
// let { isFocusOnLabelClick } = this.props;
|
|
@@ -163,8 +95,6 @@ export default class SelectField extends PureComponent {
|
|
|
163
95
|
iconOnHover,
|
|
164
96
|
customProps,
|
|
165
97
|
renderLabelProps,
|
|
166
|
-
handleDropBoxOpen,
|
|
167
|
-
needFieldStyle,
|
|
168
98
|
ariaLabelledby
|
|
169
99
|
} = this.props;
|
|
170
100
|
const {
|
|
@@ -174,19 +104,9 @@ export default class SelectField extends PureComponent {
|
|
|
174
104
|
ValidationMessageProps2 = {}
|
|
175
105
|
} = customProps;
|
|
176
106
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
} = this.state;
|
|
181
|
-
let isActive = isPopupOpen || isFocused;
|
|
182
|
-
return /*#__PURE__*/React.createElement(RippleEffect, {
|
|
183
|
-
hoverType: "bg",
|
|
184
|
-
isActive: isActive,
|
|
185
|
-
isNeedEffect: !isReadOnly && !isDisabled && needFieldStyle ? true : false
|
|
186
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
187
|
-
className: `${style.container} ${needFieldStyle ? style.highlightSpace : ''} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
188
|
-
"data-title": isDisabled ? title : null,
|
|
189
|
-
onClick: this.handleParentClick
|
|
107
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
109
|
+
"data-title": isDisabled ? title : null
|
|
190
110
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
191
111
|
infoText: infoText,
|
|
192
112
|
isLocked: isLocked,
|
|
@@ -196,20 +116,18 @@ export default class SelectField extends PureComponent {
|
|
|
196
116
|
text: labelName,
|
|
197
117
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
198
118
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
199
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}
|
|
200
|
-
|
|
201
|
-
,
|
|
119
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
120
|
+
htmlFor: uniqueId,
|
|
202
121
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
203
122
|
}, LabelProps, {
|
|
204
123
|
id: uniqueId
|
|
205
124
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
206
|
-
className: `${
|
|
125
|
+
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
207
126
|
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
208
127
|
options: options,
|
|
209
128
|
selectedValue: selectedValue,
|
|
210
129
|
onChange: this.handleChange,
|
|
211
|
-
onFocus:
|
|
212
|
-
onBlur: this.handleBlur,
|
|
130
|
+
onFocus: onFocus,
|
|
213
131
|
getRef: this.handleGetRef,
|
|
214
132
|
needSearch: needSearch,
|
|
215
133
|
emptyMessage: emptyMessage,
|
|
@@ -229,17 +147,12 @@ export default class SelectField extends PureComponent {
|
|
|
229
147
|
isNextOptions: isNextOptions,
|
|
230
148
|
getNextOptions: getNextOptions,
|
|
231
149
|
popupGroup: popupGroup,
|
|
232
|
-
onSearch: onSearch
|
|
233
|
-
|
|
234
|
-
,
|
|
150
|
+
onSearch: onSearch,
|
|
151
|
+
htmlId: uniqueId,
|
|
235
152
|
needLocalSearch: needLocalSearch,
|
|
236
153
|
isDefaultSelectValue: isDefaultSelectValue,
|
|
237
154
|
placeHolder: placeHolder,
|
|
238
|
-
iconOnHover: iconOnHover
|
|
239
|
-
needPosition: needFieldStyle ? true : false,
|
|
240
|
-
getPopupHandlers: this.getPopupHandlers,
|
|
241
|
-
onDropBoxOpen: this.handleDropBoxOpen,
|
|
242
|
-
onDropBoxClose: this.handleDropBoxClose
|
|
155
|
+
iconOnHover: iconOnHover
|
|
243
156
|
}, SelectProps, {
|
|
244
157
|
ariaLabelledby: uniqueId
|
|
245
158
|
}), children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
@@ -254,7 +167,7 @@ export default class SelectField extends PureComponent {
|
|
|
254
167
|
type: errorType,
|
|
255
168
|
htmlFor: uniqueId,
|
|
256
169
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
257
|
-
}, ValidationMessageProps2)))
|
|
170
|
+
}, ValidationMessageProps2)));
|
|
258
171
|
}
|
|
259
172
|
}
|
|
260
173
|
SelectField.propTypes = propTypes;
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
.tag {
|
|
2
|
-
max-width: 100%;
|
|
3
|
-
}
|
|
4
|
-
[dir=ltr] .moreLess, [dir=ltr] .tag {
|
|
5
|
-
margin: 0 var(--zd_size6) var(--zd_size6) 0;
|
|
6
|
-
}
|
|
7
|
-
[dir=rtl] .moreLess, [dir=rtl] .tag {
|
|
8
|
-
margin: 0 0 var(--zd_size6) var(--zd_size6);
|
|
9
|
-
}
|
|
10
|
-
.input {
|
|
11
|
-
height: var(--zd_size20);
|
|
12
|
-
width: 100%;
|
|
13
|
-
margin-bottom: var(--zd_size4);
|
|
14
|
-
}
|
|
15
|
-
.viewpopNew {
|
|
16
|
-
max-height: var(--zd_size250);
|
|
17
|
-
}
|
|
18
|
-
.tagDiv {
|
|
19
|
-
max-height: var(--zd_size160);
|
|
20
|
-
margin-top: var(--zd_size5);
|
|
21
|
-
}
|
|
22
|
-
.hasBorder {
|
|
23
|
-
transition: border var(--zd_transition2) linear 0s;
|
|
24
|
-
border-bottom-style: solid;
|
|
25
|
-
border-bottom-width: 1px;
|
|
26
|
-
}
|
|
27
|
-
.borderColor_transparent {
|
|
28
|
-
border-bottom-color: var(--zdt_tagsmultiselect_transparent_border);
|
|
29
|
-
}
|
|
30
|
-
.borderColor_transparent:hover {
|
|
31
|
-
border-bottom-color: var(--zdt_tagsmultiselect_transparent_hover_border);
|
|
32
|
-
}
|
|
33
|
-
.borderColor_transparent.active {
|
|
34
|
-
border-bottom-color: var(--zdt_tagsmultiselect_transparent_active_border);
|
|
35
|
-
}
|
|
36
|
-
.borderColor_default {
|
|
37
|
-
border-bottom-color: var(--zdt_tagsmultiselect_default_border);
|
|
38
|
-
}
|
|
39
|
-
.borderColor_default:hover {
|
|
40
|
-
border-bottom-color: var(--zdt_tagsmultiselect_default_hover_border);
|
|
41
|
-
}
|
|
42
|
-
.borderColor_default.active {
|
|
43
|
-
border-bottom-color: var(--zdt_tagsmultiselect_default_active_border);
|
|
44
|
-
}
|
|
45
|
-
.borderColor_dark {
|
|
46
|
-
border-bottom-color: var(--zdt_tagsmultiselect_dark_border);
|
|
47
|
-
}
|
|
48
|
-
.borderColor_dark:hover {
|
|
49
|
-
border-bottom-color: var(--zdt_tagsmultiselect_dark_hover_border);
|
|
50
|
-
}
|
|
51
|
-
.borderColor_dark.active {
|
|
52
|
-
border-bottom-color: var(--zdt_tagsmultiselect_dark_active_border);
|
|
53
|
-
}
|
|
54
|
-
.moreLess {
|
|
55
|
-
color: var(--zdt_tagsmultiselect_more_text);
|
|
56
|
-
font-size: var(--zd_font_size13);
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
}
|
|
59
|
-
.moreLess:hover {
|
|
60
|
-
color: var(--zdt_tagsmultiselect_more_hover_text);
|
|
61
|
-
}
|
|
62
|
-
.inputWrapper {
|
|
63
|
-
position: relative;
|
|
64
|
-
max-width: 100%;
|
|
65
|
-
min-width: var(--zd_size5);
|
|
66
|
-
font-size: 0;
|
|
67
|
-
}
|
|
68
|
-
.newTagLabel {
|
|
69
|
-
color: var(--zdt_tagsmultiselect_labelt_text);
|
|
70
|
-
composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
|
|
71
|
-
}
|
|
72
|
-
[dir=ltr] .newTagLabel {
|
|
73
|
-
margin-right: var(--zd_size5);
|
|
74
|
-
}
|
|
75
|
-
[dir=rtl] .newTagLabel {
|
|
76
|
-
margin-left: var(--zd_size5);
|
|
77
|
-
}
|
|
78
|
-
.dotted {
|
|
79
|
-
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
80
|
-
}
|
|
81
|
-
.dropdown {
|
|
82
|
-
margin-top: var(--zd_size1);
|
|
83
|
-
}
|
|
84
|
-
.custmSpan {
|
|
85
|
-
height: var(--zd_size25);
|
|
86
|
-
display: inline-block;
|
|
87
|
-
vertical-align: middle;
|
|
88
|
-
opacity: 0;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
max-width: 100%;
|
|
92
|
-
visibility: hidden;
|
|
93
|
-
}
|
|
94
|
-
.custmInp {
|
|
95
|
-
position: absolute;
|
|
96
|
-
top: 0;
|
|
97
|
-
width: 100%;
|
|
98
|
-
}
|
|
99
|
-
[dir=ltr] .custmInp {
|
|
100
|
-
left: 0;
|
|
101
|
-
}
|
|
102
|
-
[dir=rtl] .custmInp {
|
|
103
|
-
right: 0;
|
|
104
|
-
}
|
|
105
|
-
.newTagText {
|
|
106
|
-
color: var(--zdt_tagsmultiselect_more_text);
|
|
107
|
-
}
|
|
1
|
+
.tag {
|
|
2
|
+
max-width: 100%;
|
|
3
|
+
}
|
|
4
|
+
[dir=ltr] .moreLess, [dir=ltr] .tag {
|
|
5
|
+
margin: 0 var(--zd_size6) var(--zd_size6) 0;
|
|
6
|
+
}
|
|
7
|
+
[dir=rtl] .moreLess, [dir=rtl] .tag {
|
|
8
|
+
margin: 0 0 var(--zd_size6) var(--zd_size6);
|
|
9
|
+
}
|
|
10
|
+
.input {
|
|
11
|
+
height: var(--zd_size20);
|
|
12
|
+
width: 100%;
|
|
13
|
+
margin-bottom: var(--zd_size4);
|
|
14
|
+
}
|
|
15
|
+
.viewpopNew {
|
|
16
|
+
max-height: var(--zd_size250);
|
|
17
|
+
}
|
|
18
|
+
.tagDiv {
|
|
19
|
+
max-height: var(--zd_size160);
|
|
20
|
+
margin-top: var(--zd_size5);
|
|
21
|
+
}
|
|
22
|
+
.hasBorder {
|
|
23
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
24
|
+
border-bottom-style: solid;
|
|
25
|
+
border-bottom-width: 1px;
|
|
26
|
+
}
|
|
27
|
+
.borderColor_transparent {
|
|
28
|
+
border-bottom-color: var(--zdt_tagsmultiselect_transparent_border);
|
|
29
|
+
}
|
|
30
|
+
.borderColor_transparent:hover {
|
|
31
|
+
border-bottom-color: var(--zdt_tagsmultiselect_transparent_hover_border);
|
|
32
|
+
}
|
|
33
|
+
.borderColor_transparent.active {
|
|
34
|
+
border-bottom-color: var(--zdt_tagsmultiselect_transparent_active_border);
|
|
35
|
+
}
|
|
36
|
+
.borderColor_default {
|
|
37
|
+
border-bottom-color: var(--zdt_tagsmultiselect_default_border);
|
|
38
|
+
}
|
|
39
|
+
.borderColor_default:hover {
|
|
40
|
+
border-bottom-color: var(--zdt_tagsmultiselect_default_hover_border);
|
|
41
|
+
}
|
|
42
|
+
.borderColor_default.active {
|
|
43
|
+
border-bottom-color: var(--zdt_tagsmultiselect_default_active_border);
|
|
44
|
+
}
|
|
45
|
+
.borderColor_dark {
|
|
46
|
+
border-bottom-color: var(--zdt_tagsmultiselect_dark_border);
|
|
47
|
+
}
|
|
48
|
+
.borderColor_dark:hover {
|
|
49
|
+
border-bottom-color: var(--zdt_tagsmultiselect_dark_hover_border);
|
|
50
|
+
}
|
|
51
|
+
.borderColor_dark.active {
|
|
52
|
+
border-bottom-color: var(--zdt_tagsmultiselect_dark_active_border);
|
|
53
|
+
}
|
|
54
|
+
.moreLess {
|
|
55
|
+
color: var(--zdt_tagsmultiselect_more_text);
|
|
56
|
+
font-size: var(--zd_font_size13);
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
.moreLess:hover {
|
|
60
|
+
color: var(--zdt_tagsmultiselect_more_hover_text);
|
|
61
|
+
}
|
|
62
|
+
.inputWrapper {
|
|
63
|
+
position: relative;
|
|
64
|
+
max-width: 100%;
|
|
65
|
+
min-width: var(--zd_size5);
|
|
66
|
+
font-size: 0;
|
|
67
|
+
}
|
|
68
|
+
.newTagLabel {
|
|
69
|
+
color: var(--zdt_tagsmultiselect_labelt_text);
|
|
70
|
+
composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
|
|
71
|
+
}
|
|
72
|
+
[dir=ltr] .newTagLabel {
|
|
73
|
+
margin-right: var(--zd_size5);
|
|
74
|
+
}
|
|
75
|
+
[dir=rtl] .newTagLabel {
|
|
76
|
+
margin-left: var(--zd_size5);
|
|
77
|
+
}
|
|
78
|
+
.dotted {
|
|
79
|
+
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
80
|
+
}
|
|
81
|
+
.dropdown {
|
|
82
|
+
margin-top: var(--zd_size1);
|
|
83
|
+
}
|
|
84
|
+
.custmSpan {
|
|
85
|
+
height: var(--zd_size25);
|
|
86
|
+
display: inline-block;
|
|
87
|
+
vertical-align: middle;
|
|
88
|
+
opacity: 0;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
max-width: 100%;
|
|
92
|
+
visibility: hidden;
|
|
93
|
+
}
|
|
94
|
+
.custmInp {
|
|
95
|
+
position: absolute;
|
|
96
|
+
top: 0;
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
[dir=ltr] .custmInp {
|
|
100
|
+
left: 0;
|
|
101
|
+
}
|
|
102
|
+
[dir=rtl] .custmInp {
|
|
103
|
+
right: 0;
|
|
104
|
+
}
|
|
105
|
+
.newTagText {
|
|
106
|
+
color: var(--zdt_tagsmultiselect_more_text);
|
|
107
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.count {
|
|
2
|
-
color: var(--zdt_tagsmultiselectField_count_text);
|
|
3
|
-
font-size: var(--zd_font_size12);
|
|
4
|
-
word-break: break-word;
|
|
5
|
-
}[dir=ltr] .count {
|
|
6
|
-
margin-left: var(--zd_size4);
|
|
7
|
-
}[dir=rtl] .count {
|
|
8
|
-
margin-right: var(--zd_size4);
|
|
9
|
-
}
|
|
1
|
+
.count {
|
|
2
|
+
color: var(--zdt_tagsmultiselectField_count_text);
|
|
3
|
+
font-size: var(--zd_font_size12);
|
|
4
|
+
word-break: break-word;
|
|
5
|
+
}[dir=ltr] .count {
|
|
6
|
+
margin-left: var(--zd_size4);
|
|
7
|
+
}[dir=rtl] .count {
|
|
8
|
+
margin-right: var(--zd_size4);
|
|
9
|
+
}
|
|
@@ -10,7 +10,6 @@ import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
12
12
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
13
|
-
import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
|
|
14
13
|
|
|
15
14
|
/**** CSS ****/
|
|
16
15
|
import style from '../Fields.module.css';
|
|
@@ -21,13 +20,6 @@ export default class TextBoxField extends PureComponent {
|
|
|
21
20
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
22
21
|
// this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
23
22
|
this.getNextId = getUniqueId(this);
|
|
24
|
-
this.handleParentClick = this.handleParentClick.bind(this);
|
|
25
|
-
this.handleFocusToggle = this.handleFocusToggle.bind(this);
|
|
26
|
-
this.handleFocus = this.handleFocus.bind(this);
|
|
27
|
-
this.handleBlur = this.handleBlur.bind(this);
|
|
28
|
-
this.state = {
|
|
29
|
-
isFocused: false
|
|
30
|
-
};
|
|
31
23
|
}
|
|
32
24
|
handleChange(value) {
|
|
33
25
|
let {
|
|
@@ -52,40 +44,6 @@ export default class TextBoxField extends PureComponent {
|
|
|
52
44
|
// // }
|
|
53
45
|
// }
|
|
54
46
|
|
|
55
|
-
handleParentClick() {
|
|
56
|
-
const {
|
|
57
|
-
needFieldStyle
|
|
58
|
-
} = this.props;
|
|
59
|
-
if (needFieldStyle) {
|
|
60
|
-
this.textBox.focus();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
handleFocusToggle(value) {
|
|
64
|
-
const {
|
|
65
|
-
needFieldStyle
|
|
66
|
-
} = this.props;
|
|
67
|
-
if (needFieldStyle) {
|
|
68
|
-
this.setState({
|
|
69
|
-
isFocused: value
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
handleFocus(e) {
|
|
74
|
-
const {
|
|
75
|
-
onFocus,
|
|
76
|
-
needFieldStyle
|
|
77
|
-
} = this.props;
|
|
78
|
-
needFieldStyle && this.handleFocusToggle(true);
|
|
79
|
-
onFocus && onFocus(e);
|
|
80
|
-
}
|
|
81
|
-
handleBlur(e) {
|
|
82
|
-
const {
|
|
83
|
-
onBlur,
|
|
84
|
-
needFieldStyle
|
|
85
|
-
} = this.props;
|
|
86
|
-
needFieldStyle && this.handleFocusToggle(false);
|
|
87
|
-
onBlur && onBlur(e);
|
|
88
|
-
}
|
|
89
47
|
render() {
|
|
90
48
|
let {
|
|
91
49
|
labelName,
|
|
@@ -122,8 +80,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
122
80
|
ePhiData,
|
|
123
81
|
children,
|
|
124
82
|
customProps,
|
|
125
|
-
renderLabelProps
|
|
126
|
-
needFieldStyle
|
|
83
|
+
renderLabelProps
|
|
127
84
|
} = this.props;
|
|
128
85
|
const {
|
|
129
86
|
LabelProps = {},
|
|
@@ -132,17 +89,9 @@ export default class TextBoxField extends PureComponent {
|
|
|
132
89
|
ValidationMessageProps2 = {}
|
|
133
90
|
} = customProps;
|
|
134
91
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return /*#__PURE__*/React.createElement(RippleEffect, {
|
|
139
|
-
hoverType: "bg",
|
|
140
|
-
isActive: isFocused,
|
|
141
|
-
isNeedEffect: !isReadOnly && !isDisabled && needFieldStyle ? true : false
|
|
142
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
143
|
-
className: `${style.container} ${needFieldStyle ? style.highlightSpace : ''} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
144
|
-
"data-title": isDisabled ? title : null,
|
|
145
|
-
onClick: this.handleParentClick
|
|
92
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
94
|
+
"data-title": isDisabled ? title : null
|
|
146
95
|
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
147
96
|
infoText: infoText,
|
|
148
97
|
isLocked: isLocked,
|
|
@@ -154,7 +103,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
154
103
|
text: labelName,
|
|
155
104
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
156
105
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
157
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}
|
|
106
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
158
107
|
htmlFor: uniqueId,
|
|
159
108
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
160
109
|
}, LabelProps, {
|
|
@@ -173,11 +122,11 @@ export default class TextBoxField extends PureComponent {
|
|
|
173
122
|
value: value,
|
|
174
123
|
onChange: this.handleChange,
|
|
175
124
|
dataId: dataId,
|
|
176
|
-
onBlur:
|
|
125
|
+
onBlur: onBlur,
|
|
177
126
|
onKeyDown: onKeyDown,
|
|
178
127
|
placeHolder: placeHolder,
|
|
179
128
|
borderColor: borderColor,
|
|
180
|
-
onFocus:
|
|
129
|
+
onFocus: onFocus,
|
|
181
130
|
isDisabled: isDisabled,
|
|
182
131
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
183
132
|
isClickable: isClickable,
|
|
@@ -198,7 +147,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
198
147
|
type: errorType,
|
|
199
148
|
htmlFor: uniqueId,
|
|
200
149
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
201
|
-
}, ValidationMessageProps2))))
|
|
150
|
+
}, ValidationMessageProps2))));
|
|
202
151
|
}
|
|
203
152
|
}
|
|
204
153
|
TextBoxField.propTypes = propTypes;
|