@zohodesk/dot 1.0.0-beta.225 → 1.0.0-beta.229
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 +19 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +2 -0
- package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +2 -0
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +1 -1
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +533 -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/es/ActionButton/ActionButton.js +7 -3
- package/es/ActionButton/ActionButton.module.css +25 -9
- package/es/ActionButton/docs/ActionButton__default.docs.js +144 -0
- package/es/AlphabeticList/AlphabeticList.module.css +7 -4
- package/es/AlphabeticList/docs/AlphabeticList__default.docs.js +34 -0
- package/es/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +43 -0
- package/es/Attachment/Attachment.module.css +20 -9
- package/es/Attachment/docs/Attachment__default.docs.js +54 -0
- package/es/AttachmentViewer/AttachmentImage.js +5 -1
- package/es/AttachmentViewer/AttachmentViewer.js +3 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +90 -27
- package/es/AttachmentViewer/docs/AttachmentViewer__default.docs.js +70 -0
- package/es/ChannelIcon/ChannelIcon.module.css +30 -21
- package/es/ChannelIcon/docs/ChannelIcon__default.docs.js +57 -0
- package/es/Drawer/Drawer.module.css +59 -11
- package/es/Drawer/docs/Drawer__default.docs.js +87 -0
- package/es/Drawer/docs/Drawer__multiDrawer.docs.js +112 -0
- package/es/Drawer/docs/Drawer__noFreeze.docs.js +20 -0
- package/es/Drawer/docs/Drawer__withModal.docs.js +74 -0
- package/es/ExternalLink/docs/ExternalLink__default.docs.js +19 -0
- package/es/FlipCard/FlipCard.module.css +14 -5
- package/es/FlipCard/docs/FlipCard__default.docs.js +66 -0
- package/es/FormAction/FormAction.module.css +34 -9
- package/es/FormAction/docs/FormAction__default.docs.js +72 -0
- package/es/FreezeLayer/FreezeLayer.module.css +6 -2
- package/es/FreezeLayer/docs/FreezeLayer__dark.docs.js +51 -0
- package/es/FreezeLayer/docs/FreezeLayer__default.docs.js +48 -0
- package/es/IconButton/IconButton.module.css +1 -1
- package/es/IconButton/docs/IconButton__default.docs.js +219 -0
- package/es/Image/docs/Image__default.docs.js +22 -0
- package/es/ImportantNotes/ImportantNotes.module.css +7 -2
- package/es/ImportantNotes/docs/ImportantNotes__default.docs.js +22 -0
- package/es/Link/docs/Link__default.docs.js +36 -0
- package/es/Loader/Loader.module.css +25 -4
- package/es/Loader/docs/Loader__default.docs.js +23 -0
- package/es/Message/Message.module.css +42 -9
- package/es/Message/docs/Message__default.docs.js +55 -0
- package/es/MessageBanner/MessageBanner.module.css +12 -4
- package/es/MessageBanner/docs/MessageBanner__default.docs.js +88 -0
- package/es/NewStar/NewStar.module.css +42 -5
- package/es/NewStar/docs/NewStar__default.docs.js +62 -0
- package/es/PlusIcon/docs/PlusIcon__default.docs.js +16 -0
- package/es/Provider.js +39 -84
- package/es/ToastMessage/ToastMessage.module.css +96 -25
- package/es/ToastMessage/docs/ToastMessage__custom.docs.js +92 -0
- package/es/ToastMessage/docs/ToastMessage__information.docs.js +54 -0
- package/es/ToastMessage/docs/ToastMessage__primary.docs.js +125 -0
- package/es/ToastMessage/docs/ToastMessage__secondary.docs.js +37 -0
- package/es/ToastMessage/docs/ToastMessage__success.docs.js +61 -0
- package/es/Upload/Upload.module.css +27 -8
- package/es/Upload/docs/Upload__default.docs.js +61 -0
- package/es/alert/AlertHeader/AlertHeader.module.css +21 -3
- package/es/alert/AlertHeader/docs/AlertHeader__default.docs.js +63 -0
- package/es/alert/AlertLookup/AlertLookup.module.css +6 -2
- package/es/alert/AlertLookup/docs/AlertLookup__default.docs.js +132 -0
- package/es/avatar/AvatarClose/AvatarClose.module.css +9 -3
- package/es/avatar/AvatarClose/docs/AvatarClose__default.docs.js +26 -0
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +18 -4
- package/es/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +35 -0
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +3 -4
- package/es/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +40 -0
- package/es/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +46 -0
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +59 -9
- package/es/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +35 -0
- package/es/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +51 -0
- package/es/avatar/AvatarThread/AvatarThread.module.css +55 -5
- package/es/avatar/AvatarThread/docs/AvatarThread__default.docs.js +147 -0
- package/es/avatar/AvatarUser/AvatarUser.module.css +81 -10
- package/es/avatar/AvatarUser/docs/AvatarUser__default.docs.js +173 -0
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +10 -3
- package/es/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +24 -0
- package/es/common/dot_animation.module.css +16 -3
- package/es/deprecated/SelectDropdown/SelectDropdown.js +59 -35
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +12 -3
- package/es/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +34 -0
- package/es/docs/formDocs.js +26 -0
- package/es/docs/generalDocs.js +135 -0
- package/es/docs/lookupDocs.js +44 -0
- package/es/docs/setupDocs.js +22 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +183 -160
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +22 -6
- package/es/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +228 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +12 -4
- package/es/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +111 -0
- package/es/emptystate/EditionPage/EditionPage.css +9 -3
- package/es/emptystate/EditionPage/docs/EditionPage__default.docs.js +21 -0
- package/es/errorstate/EmptyStates.module.css +13 -10
- package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -0
- package/es/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +19 -0
- package/es/errorstate/LinkText/LinkText.module.css +1 -1
- package/es/errorstate/LinkText/docs/LinkText__default.docs.js +17 -0
- package/es/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +19 -0
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
- package/es/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +20 -0
- package/es/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +19 -0
- package/es/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +19 -0
- package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +20 -0
- package/es/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +19 -0
- package/es/errorstate/WillBack/WillBack.module.css +1 -3
- package/es/errorstate/WillBack/docs/WillBack__default.docs.js +21 -0
- package/es/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +30 -0
- package/es/form/fields/DateField/docs/DateField__default.docs.js +25 -0
- package/es/form/fields/Fields.module.css +49 -14
- package/es/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +48 -0
- package/es/form/fields/PhoneField/docs/PhoneField__default.docs.js +26 -0
- package/es/form/fields/SelectField/docs/SelectField__default.docs.js +58 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +93 -65
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +19 -7
- package/es/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +77 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -3
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +4 -1
- package/es/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +82 -0
- package/es/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +45 -0
- package/es/form/fields/TextEditor/TextEditor.module.css +149 -72
- package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +43 -0
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +13 -2
- package/es/form/fields/TextareaField/docs/TextareaField__default.docs.js +26 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +9 -4
- package/es/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +58 -0
- package/es/form/layout/Field/docs/Field__default.docs.js +25 -0
- package/es/form/layout/Section/docs/Section__default.docs.js +21 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +52 -16
- package/es/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +29 -0
- package/es/layout/SubtabLayout/SubtabLayout.module.css +55 -29
- package/es/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +67 -0
- package/es/list/AvatarFlip/docs/AvatarFlip__default.docs.js +100 -0
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +4 -1
- package/es/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +19 -0
- package/es/list/Comment/Comment.module.css +5 -0
- package/es/list/Comment/docs/Comment__default.docs.js +26 -0
- package/es/list/DotNew/DotNew.module.css +3 -3
- package/es/list/DotNew/docs/DotNew__default.docs.js +20 -0
- package/es/list/GridStencils/GridStencils.module.css +71 -28
- package/es/list/GridStencils/docs/GridStencils__default.docs.js +35 -0
- package/es/list/Icons/Icons.module.css +1 -1
- package/es/list/Icons/docs/FloatingIcons__default.docs.js +24 -0
- package/es/list/ListLayout/ListLayout.module.css +22 -14
- package/es/list/ListLayout/docs/ListLayout__default.docs.js +60 -0
- package/es/list/ListStencils/ListStencils.module.css +11 -6
- package/es/list/ListStencils/docs/ListStencils__default.docs.js +20 -0
- package/es/list/SecondaryText/SecondaryText.module.css +14 -4
- package/es/list/SecondaryText/docs/ContactName__default.docs.js +23 -0
- package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +37 -0
- package/es/list/SecondryPanel/docs/SecondryPanel__default.docs.js +81 -0
- package/es/list/SentimentStatus/SentimentStatus.module.css +4 -1
- package/es/list/SentimentStatus/docs/SentimentStatus__default.docs.js +19 -0
- package/es/list/Subject/docs/Subject__default.docs.js +44 -0
- package/es/list/TagNew/TagNew.module.css +14 -7
- package/es/list/TagNew/docs/TagNew__default.docs.js +23 -0
- package/es/list/Thread/Thread.module.css +13 -1
- package/es/list/Thread/docs/Thread__default.docs.js +22 -0
- package/es/list/UserTime/UserTime.module.css +6 -0
- package/es/list/UserTime/docs/UserTime__default.docs.js +157 -0
- package/es/list/listCommon.module.css +9 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +103 -80
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +22 -6
- package/es/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +129 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +38 -15
- package/es/list/status/StatusListItem/docs/StatusListItem__default.docs.js +27 -0
- package/es/lookup/EmptyPage/docs/EmptyPage__account.docs.js +20 -0
- package/es/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +20 -0
- package/es/lookup/EmptyPage/docs/EmptyPage__default.docs.js +17 -0
- package/es/lookup/EmptyPage/docs/EmptyPage__product.docs.js +20 -0
- package/es/lookup/Lookup/Lookup.module.css +2 -2
- package/es/lookup/Lookup/docs/Lookup__contact.docs.js +196 -0
- package/es/lookup/Lookup/docs/Lookup__default.docs.js +68 -0
- package/es/lookup/Section/LookupSection.module.css +2 -2
- package/es/lookup/header/Close/LookupClose.module.css +4 -4
- package/es/lookup/header/Close/docs/Close__default.docs.js +19 -0
- package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +51 -0
- package/es/lookup/header/Search/LookupSearch.module.css +21 -12
- package/es/lookup/header/Search/docs/Search__default.docs.js +124 -0
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +5 -2
- package/es/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +83 -0
- package/es/lookup/header/Title/docs/Title__default.docs.js +21 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +79 -54
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +8 -3
- package/es/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +75 -0
- package/es/lookup/header/lookupHeaderCommon.module.css +15 -5
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +12 -3
- package/es/setup/header/Button/HeaderButton.module.css +3 -1
- package/es/setup/header/Button/docs/Button__default.docs.js +22 -0
- package/es/setup/header/Link/HeaderLink.module.css +7 -1
- package/es/setup/header/Link/docs/Link__default.docs.js +23 -0
- package/es/setup/header/Search/Search.module.css +19 -8
- package/es/setup/header/Search/docs/Search__default.docs.js +41 -0
- package/es/setup/header/Views/Views.module.css +15 -5
- package/es/setup/header/Views/docs/Views__default.docs.js +24 -0
- package/es/setup/helptips/Description/docs/Description__default.docs.js +26 -0
- package/es/setup/helptips/Link/HelpTipsLink.module.css +1 -0
- package/es/setup/helptips/Link/docs/Link__default.docs.js +27 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +6 -1
- package/es/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +30 -0
- package/es/setup/helptips/Title/docs/Title__default.docs.js +26 -0
- package/es/setup/table/Table/docs/Table__default.docs.js +181 -0
- package/es/setup/table/TableData/SetupTableData.module.css +11 -3
- package/es/setup/table/TableHead/SetupTableHead.module.css +4 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +6 -2
- package/es/setup/table/Text/docs/Text__default.docs.js +35 -0
- package/es/svg/docs/SVG__default.docs.js +49 -0
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/AlertClose/docs/AlertClose__default.docs.js +47 -0
- package/es/version2/GlobalNotification/GlobalNotification.module.css +44 -9
- package/es/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +95 -0
- package/es/version2/alertIcons/docs/AlertIcons__default.docs.js +138 -0
- package/es/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +18 -0
- package/es/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +20 -0
- package/es/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +30 -0
- package/es/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +18 -0
- package/es/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +20 -0
- package/es/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +18 -0
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +25 -2
- package/es/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +56 -0
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +7 -3
- package/es/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +157 -0
- package/es/version2/lookup/alertLookupCommonNew.module.css +8 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +26 -10
- package/es/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +92 -0
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +47 -10
- package/es/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +57 -0
- package/lib/ActionButton/ActionButton.js +7 -3
- package/lib/ActionButton/ActionButton.module.css +0 -1
- package/lib/ActionButton/docs/ActionButton__default.docs.js +197 -0
- package/lib/AlphabeticList/docs/AlphabeticList__default.docs.js +82 -0
- package/lib/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +91 -0
- package/lib/Attachment/docs/Attachment__default.docs.js +104 -0
- package/lib/AttachmentViewer/Attachment.js +28 -0
- package/lib/AttachmentViewer/AttachmentImage.js +133 -0
- package/lib/AttachmentViewer/AttachmentViewer.js +646 -0
- package/lib/AttachmentViewer/AttachmentViewer.module.css +354 -0
- package/lib/AttachmentViewer/docs/AttachmentViewer__default.docs.js +123 -0
- package/lib/AttachmentViewer/utils.js +134 -0
- package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +112 -0
- package/lib/Drawer/docs/Drawer__default.docs.js +143 -0
- package/lib/Drawer/docs/Drawer__multiDrawer.docs.js +171 -0
- package/lib/Drawer/docs/Drawer__noFreeze.docs.js +65 -0
- package/lib/Drawer/docs/Drawer__withModal.docs.js +131 -0
- package/lib/ExternalLink/docs/ExternalLink__default.docs.js +68 -0
- package/lib/FlipCard/docs/FlipCard__default.docs.js +121 -0
- package/lib/FormAction/docs/FormAction__default.docs.js +127 -0
- package/lib/FreezeLayer/FreezeLayer.js +29 -4
- package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +103 -0
- package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +100 -0
- package/lib/IconButton/docs/IconButton__default.docs.js +272 -0
- package/lib/Image/docs/Image__default.docs.js +76 -0
- package/lib/ImportantNotes/ImportantNotes.js +5 -3
- package/lib/ImportantNotes/docs/ImportantNotes__default.docs.js +68 -0
- package/lib/Link/docs/Link__default.docs.js +90 -0
- package/lib/Loader/docs/Loader__default.docs.js +68 -0
- package/lib/Message/docs/Message__default.docs.js +100 -0
- package/lib/MessageBanner/docs/MessageBanner__default.docs.js +132 -0
- package/lib/NewStar/docs/NewStar__default.docs.js +111 -0
- package/lib/PlusIcon/docs/PlusIcon__default.docs.js +70 -0
- package/lib/Provider/Config.js +21 -0
- package/lib/Provider.js +58 -98
- package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +151 -0
- package/lib/ToastMessage/docs/ToastMessage__information.docs.js +108 -0
- package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +175 -0
- package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +91 -0
- package/lib/ToastMessage/docs/ToastMessage__success.docs.js +115 -0
- package/lib/Upload/docs/Upload__default.docs.js +110 -0
- package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +112 -0
- package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +187 -0
- package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +72 -0
- package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +81 -0
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +95 -0
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +99 -0
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +90 -0
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +104 -0
- package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +198 -0
- package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +224 -0
- package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +74 -0
- package/lib/common/dot_animation.module.css +27 -0
- package/lib/common/dot_common.module.css +4 -0
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +60 -38
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +1 -0
- package/lib/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +80 -0
- package/lib/deprecated/utils/General.js +29 -0
- package/lib/{utils → deprecated/utils}/KeyboardApi.js +0 -0
- package/lib/docs/formDocs.js +215 -0
- package/lib/docs/generalDocs.js +1055 -0
- package/lib/docs/lookupDocs.js +287 -0
- package/lib/docs/setupDocs.js +183 -0
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +182 -161
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +3 -0
- package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +279 -0
- package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +171 -0
- package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +74 -0
- package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +69 -0
- package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +67 -0
- package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +68 -0
- package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +70 -0
- package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +69 -0
- package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +69 -0
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +70 -0
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +69 -0
- package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +71 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +80 -0
- package/lib/form/fields/CurrencyField/CurrencyField.js +9 -8
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/DateField/docs/DateField__default.docs.js +74 -0
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +100 -0
- package/lib/form/fields/PhoneField/PhoneField.js +1 -1
- package/lib/form/fields/PhoneField/docs/PhoneField__default.docs.js +76 -0
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +1 -1
- package/lib/form/fields/SelectField/docs/SelectField__default.docs.js +110 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +114 -74
- package/lib/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +126 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +7 -3
- package/lib/form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs.js +96 -0
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +97 -0
- package/lib/form/fields/TextEditor/TextEditor.js +4 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +13 -2
- package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +94 -0
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/form/fields/TextareaField/docs/TextareaField__default.docs.js +76 -0
- package/lib/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +103 -0
- package/lib/form/layout/Field/docs/Field__default.docs.js +74 -0
- package/lib/form/layout/Section/docs/Section__default.docs.js +71 -0
- package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +80 -0
- package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +118 -0
- package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +149 -0
- package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +65 -0
- package/lib/list/Comment/docs/Comment__default.docs.js +76 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -1
- package/lib/list/DotNew/docs/DotNew__default.docs.js +70 -0
- package/lib/list/GridStencils/GridStencils.module.css +8 -17
- package/lib/list/GridStencils/docs/GridStencils__default.docs.js +86 -0
- package/lib/list/Icons/docs/FloatingIcons__default.docs.js +81 -0
- package/lib/list/ListLayout/docs/ListLayout__default.docs.js +111 -0
- package/lib/list/ListStencils/docs/ListStencils__default.docs.js +70 -0
- package/lib/list/SecondaryText/SecondaryText.module.css +1 -1
- package/lib/list/SecondaryText/docs/ContactName__default.docs.js +73 -0
- package/lib/list/SecondryPanel/docs/SecondryPanelDocs.module.css +37 -0
- package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +133 -0
- package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +65 -0
- package/lib/list/Subject/docs/Subject__default.docs.js +94 -0
- package/lib/list/TagNew/docs/TagNew__default.docs.js +73 -0
- package/lib/list/Thread/docs/Thread__default.docs.js +72 -0
- package/lib/list/UserTime/docs/UserTime__default.docs.js +196 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +146 -118
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +3 -0
- package/lib/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +178 -0
- package/lib/list/status/StatusListItem/docs/StatusListItem__default.docs.js +77 -0
- package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +70 -0
- package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +70 -0
- package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +67 -0
- package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +70 -0
- package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +247 -0
- package/lib/lookup/Lookup/docs/Lookup__default.docs.js +121 -0
- package/lib/lookup/header/Close/docs/Close__default.docs.js +69 -0
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +8 -3
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +99 -0
- package/lib/lookup/header/Search/docs/Search__default.docs.js +175 -0
- package/lib/lookup/header/TicketHeader/TicketHeader.js +7 -4
- package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +133 -0
- package/lib/lookup/header/Title/docs/Title__default.docs.js +71 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +75 -52
- package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +119 -0
- package/lib/lookup/header/lookupHeaderCommon.module.css +8 -2
- package/lib/setup/header/Button/docs/Button__default.docs.js +68 -0
- package/lib/setup/header/Link/docs/Link__default.docs.js +69 -0
- package/lib/setup/header/Search/docs/Search__default.docs.js +92 -0
- package/lib/setup/header/Views/Views.js +2 -2
- package/lib/setup/header/Views/docs/Views__default.docs.js +70 -0
- package/lib/setup/helptips/Description/docs/Description__default.docs.js +72 -0
- package/lib/setup/helptips/Link/docs/Link__default.docs.js +73 -0
- package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +76 -0
- package/lib/setup/helptips/Title/docs/Title__default.docs.js +72 -0
- package/lib/setup/table/Table/docs/Table__default.docs.js +238 -0
- package/lib/setup/table/Text/docs/Text__default.docs.js +84 -0
- package/lib/svg/docs/SVG__default.docs.js +101 -0
- package/lib/utils/General.js +0 -24
- package/lib/version2/AlertClose/docs/AlertClose__default.docs.js +97 -0
- package/lib/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +143 -0
- package/lib/version2/alertIcons/docs/AlertIcons__default.docs.js +187 -0
- package/lib/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +68 -0
- package/lib/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +70 -0
- package/lib/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +80 -0
- package/lib/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +68 -0
- package/lib/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +70 -0
- package/lib/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +68 -0
- package/lib/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +105 -0
- package/lib/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +212 -0
- package/lib/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +142 -0
- package/lib/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +108 -0
- package/package.json +9 -9
- package/es/utils/KeyboardApi.js +0 -294
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
.header {
|
|
17
17
|
min-width: var(--zd_size450);
|
|
18
18
|
}
|
|
19
|
-
.imageContainer,
|
|
20
|
-
.tabletImageContainer,
|
|
21
|
-
.mobileImageContainer {
|
|
19
|
+
.imageContainer, .tabletImageContainer, .mobileImageContainer {
|
|
22
20
|
margin-top: calc(var(--zd_size70) * -1);
|
|
23
21
|
margin-bottom: var(--zd_size30);
|
|
24
22
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import WillBack from '../WillBack';
|
|
4
|
+
export default class WillBack__default extends React.Component {
|
|
5
|
+
render() {
|
|
6
|
+
return /*#__PURE__*/React.createElement(WillBack, {
|
|
7
|
+
highlightText: "Privileges ",
|
|
8
|
+
midText: "to perform this operation.. ",
|
|
9
|
+
description: "Please try again later or report this issue ",
|
|
10
|
+
title: " Insufficient",
|
|
11
|
+
urlText: "Enter your feedback"
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (false) {
|
|
18
|
+
WillBack__default.docs = {
|
|
19
|
+
componentGroup: 'errorStates'
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import CheckBoxField from '../CheckBoxField';
|
|
4
|
+
export default class CheckBoxField__default extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
render() {
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CheckBoxField, {
|
|
11
|
+
labelName: "CheckBox",
|
|
12
|
+
id: "checkbox",
|
|
13
|
+
validationMessage: "Invalid Input"
|
|
14
|
+
}), /*#__PURE__*/React.createElement(CheckBoxField, {
|
|
15
|
+
labelName: "CheckBox",
|
|
16
|
+
id: "checkbox",
|
|
17
|
+
validationMessage: "Invalid Input",
|
|
18
|
+
isDisabled: true,
|
|
19
|
+
title: "Invalid Permission"
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (false) {
|
|
26
|
+
CheckBoxField__default.docs = {
|
|
27
|
+
componentGroup: 'Form Fields',
|
|
28
|
+
folderName: 'General'
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import DateField from '../DateField';
|
|
3
|
+
export default class DateField__default extends Component {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super(props);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
render() {
|
|
9
|
+
return /*#__PURE__*/React.createElement(DateField, {
|
|
10
|
+
labelName: "Date and Time",
|
|
11
|
+
id: "sample",
|
|
12
|
+
textBoxSize: "xmedium",
|
|
13
|
+
textBoxVariant: "primary",
|
|
14
|
+
validationMessage: "Invalid Input"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (false) {
|
|
21
|
+
DateField__default.docs = {
|
|
22
|
+
componentGroup: 'Form Fields',
|
|
23
|
+
folderName: 'General'
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -34,15 +34,19 @@
|
|
|
34
34
|
-webkit-line-clamp: 2;
|
|
35
35
|
}
|
|
36
36
|
.checkboxText {
|
|
37
|
-
padding-left: var(--zd_size6);
|
|
38
37
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
39
38
|
line-height: normal;
|
|
40
39
|
}
|
|
40
|
+
[dir=ltr] .checkboxText {
|
|
41
|
+
padding-left: var(--zd_size6);
|
|
42
|
+
}
|
|
43
|
+
[dir=rtl] .checkboxText {
|
|
44
|
+
padding-right: var(--zd_size6);
|
|
45
|
+
}
|
|
41
46
|
.cbTextPointer {
|
|
42
47
|
cursor: pointer;
|
|
43
48
|
}
|
|
44
|
-
.disabled,
|
|
45
|
-
.readonly {
|
|
49
|
+
.disabled, .readonly {
|
|
46
50
|
cursor: not-allowed;
|
|
47
51
|
}
|
|
48
52
|
.cbTextReadonly,
|
|
@@ -50,12 +54,18 @@
|
|
|
50
54
|
.readonly .fieldLabel {
|
|
51
55
|
--label_cursor: not-allowed;
|
|
52
56
|
}
|
|
53
|
-
.radio {
|
|
57
|
+
[dir=ltr] .radio {
|
|
54
58
|
margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0;
|
|
55
59
|
}
|
|
56
|
-
.
|
|
60
|
+
[dir=rtl] .radio {
|
|
61
|
+
margin: var(--zd_size5) 0 var(--zd_size5) var(--zd_size32);
|
|
62
|
+
}
|
|
63
|
+
[dir=ltr] .duration {
|
|
57
64
|
margin-right: var(--zd_size15);
|
|
58
65
|
}
|
|
66
|
+
[dir=rtl] .duration {
|
|
67
|
+
margin-left: var(--zd_size15);
|
|
68
|
+
}
|
|
59
69
|
.durationWidth {
|
|
60
70
|
width: var(--zd_size94);
|
|
61
71
|
}
|
|
@@ -69,8 +79,8 @@
|
|
|
69
79
|
}
|
|
70
80
|
.phoneIcon {
|
|
71
81
|
color: var(--zdt_fields_phoneicon_icon);
|
|
72
|
-
margin: var(--zd_size15) var(--zd_size10) 0 var(--zd_size10);
|
|
73
82
|
display: inline-block;
|
|
83
|
+
margin: var(--zd_size15) var(--zd_size10) 0 var(--zd_size10);
|
|
74
84
|
cursor: pointer;
|
|
75
85
|
}
|
|
76
86
|
.phoneIcon:hover {
|
|
@@ -89,9 +99,14 @@
|
|
|
89
99
|
.lockIcon,
|
|
90
100
|
.infoIcon {
|
|
91
101
|
color: var(--zdt_fields_lockicon_icon);
|
|
92
|
-
margin-left: var(--zd_size5);
|
|
93
102
|
composes: dInflex from '~@zohodesk/components/lib/common/common.module.css';
|
|
94
103
|
}
|
|
104
|
+
[dir=ltr] .lockIcon, [dir=ltr] .infoIcon {
|
|
105
|
+
margin-left: var(--zd_size5);
|
|
106
|
+
}
|
|
107
|
+
[dir=rtl] .lockIcon, [dir=rtl] .infoIcon {
|
|
108
|
+
margin-right: var(--zd_size5);
|
|
109
|
+
}
|
|
95
110
|
/* .infoIcon {
|
|
96
111
|
opacity: 0;
|
|
97
112
|
visibility: hidden;
|
|
@@ -108,15 +123,25 @@
|
|
|
108
123
|
}
|
|
109
124
|
.timeFormat {
|
|
110
125
|
font-size: var(--zd_font_size11);
|
|
111
|
-
margin-left: var(--zd_size4);
|
|
112
126
|
color: var(--zdt_fields_lockicon_icon);
|
|
113
127
|
}
|
|
128
|
+
[dir=ltr] .timeFormat {
|
|
129
|
+
margin-left: var(--zd_size4);
|
|
130
|
+
}
|
|
131
|
+
[dir=rtl] .timeFormat {
|
|
132
|
+
margin-right: var(--zd_size4);
|
|
133
|
+
}
|
|
114
134
|
.newTab {
|
|
115
|
-
margin-left: var(--zd_size6);
|
|
116
|
-
cursor: pointer;
|
|
117
135
|
color: var(--zdt_fields_lockicon_icon);
|
|
118
136
|
font-size: 0;
|
|
119
137
|
display: none;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
}
|
|
140
|
+
[dir=ltr] .newTab {
|
|
141
|
+
margin-left: var(--zd_size6);
|
|
142
|
+
}
|
|
143
|
+
[dir=rtl] .newTab {
|
|
144
|
+
margin-right: var(--zd_size6);
|
|
120
145
|
}
|
|
121
146
|
.newTab:hover {
|
|
122
147
|
color: var(--zdt_fields_phoneicon_icon);
|
|
@@ -131,18 +156,28 @@
|
|
|
131
156
|
}
|
|
132
157
|
.labelMandatory:after {
|
|
133
158
|
content: '*';
|
|
134
|
-
padding-left: var(--zd_size2);
|
|
135
159
|
color: var(--zdt_fields_lockicon_hover_icon);
|
|
136
160
|
}
|
|
161
|
+
[dir=ltr] .labelMandatory:after {
|
|
162
|
+
padding-left: var(--zd_size2);
|
|
163
|
+
}
|
|
164
|
+
[dir=rtl] .labelMandatory:after {
|
|
165
|
+
padding-right: var(--zd_size2);
|
|
166
|
+
}
|
|
137
167
|
.ePhiTag {
|
|
138
168
|
composes: flexshrink from '~@zohodesk/components/lib/common/common.module.css';
|
|
139
169
|
color: var(--zdt_fields_phitag_text);
|
|
170
|
+
font-size: var(--zd_font_size12);
|
|
171
|
+
height: var(--zd_size18);
|
|
172
|
+
line-height: var(--zd_size18);
|
|
140
173
|
background-color: var(--zdt_fields_phitag_bg);
|
|
141
174
|
border: 1px solid var(--zdt_fields_phitag_border);
|
|
142
|
-
font-size: var(--zd_font_size12);
|
|
143
175
|
padding: 0 var(--zd_size5);
|
|
144
176
|
border-radius: var(--zd_size3);
|
|
177
|
+
}
|
|
178
|
+
[dir=ltr] .ePhiTag {
|
|
145
179
|
margin-left: var(--zd_size8);
|
|
146
|
-
|
|
147
|
-
|
|
180
|
+
}
|
|
181
|
+
[dir=rtl] .ePhiTag {
|
|
182
|
+
margin-right: var(--zd_size8);
|
|
148
183
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import MultiSelectField from '../MultiSelectField';
|
|
4
|
+
export default class MultiSelectField__default extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
this.state = {
|
|
8
|
+
selectedOptions: ['Antro J']
|
|
9
|
+
};
|
|
10
|
+
this.handleSelect = this.handleSelect.bind(this);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
handleSelect(fieldId, options) {
|
|
14
|
+
console.log(options, '===>>');
|
|
15
|
+
this.setState({
|
|
16
|
+
selectedOptions: options
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
render() {
|
|
21
|
+
let {
|
|
22
|
+
selectedOptions
|
|
23
|
+
} = this.state;
|
|
24
|
+
let options = ['Antro J', 'Rahul JR', 'Karthiban NS', 'Sudalai MS', 'Arunkumar Selvam S'];
|
|
25
|
+
return /*#__PURE__*/React.createElement(MultiSelectField, {
|
|
26
|
+
labelName: "MultiSelect",
|
|
27
|
+
options: options,
|
|
28
|
+
onChange: this.handleSelect,
|
|
29
|
+
selectedOptions: selectedOptions,
|
|
30
|
+
needSelectAll: true,
|
|
31
|
+
selectAllText: "Select All",
|
|
32
|
+
isAnimate: true,
|
|
33
|
+
emptyMessage: "No more Results",
|
|
34
|
+
searchBoxSize: "xmedium",
|
|
35
|
+
textBoxSize: "xmedium",
|
|
36
|
+
animationStyle: "bounce",
|
|
37
|
+
validationMessage: "Invalid Input"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (false) {
|
|
44
|
+
MultiSelectField__default.docs = {
|
|
45
|
+
componentGroup: 'Form Fields',
|
|
46
|
+
folderName: 'General'
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import PhoneField from '../PhoneField';
|
|
4
|
+
export default class PhoneField__default extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
render() {
|
|
10
|
+
return /*#__PURE__*/React.createElement(PhoneField, {
|
|
11
|
+
labelName: "Phone",
|
|
12
|
+
textBoxSize: "xmedium",
|
|
13
|
+
textBoxVariant: "primary",
|
|
14
|
+
value: "98999999999",
|
|
15
|
+
isTelephony: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (false) {
|
|
22
|
+
PhoneField__default.docs = {
|
|
23
|
+
componentGroup: 'Form Fields',
|
|
24
|
+
folderName: 'General'
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import SelectField from '../SelectField';
|
|
4
|
+
export default class SelectField__default extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
this.state = {
|
|
8
|
+
value: undefined
|
|
9
|
+
};
|
|
10
|
+
this.handleChange = this.handleChange.bind(this);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
handleChange(fieldId, value) {
|
|
14
|
+
this.setState({
|
|
15
|
+
value
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
let option = [{
|
|
21
|
+
text: 'None',
|
|
22
|
+
id: '1'
|
|
23
|
+
}, {
|
|
24
|
+
text: 'Low',
|
|
25
|
+
id: '2'
|
|
26
|
+
}, {
|
|
27
|
+
text: 'Medium',
|
|
28
|
+
id: '3'
|
|
29
|
+
}, {
|
|
30
|
+
text: 'High',
|
|
31
|
+
id: '4'
|
|
32
|
+
}];
|
|
33
|
+
let {
|
|
34
|
+
value
|
|
35
|
+
} = this.state;
|
|
36
|
+
return /*#__PURE__*/React.createElement(SelectField, {
|
|
37
|
+
labelName: "Priority",
|
|
38
|
+
options: option,
|
|
39
|
+
onChange: this.handleChange,
|
|
40
|
+
selectedValue: value,
|
|
41
|
+
needSearch: true,
|
|
42
|
+
emptyMessage: "No matches found",
|
|
43
|
+
animationStyle: "bounce",
|
|
44
|
+
textBoxSize: "xmedium",
|
|
45
|
+
textBoxVariant: "primary",
|
|
46
|
+
searchBoxSize: "xmedium",
|
|
47
|
+
validationMessage: "Invalid Input"
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (false) {
|
|
54
|
+
SelectField__default.docs = {
|
|
55
|
+
componentGroup: 'Form Fields',
|
|
56
|
+
folderName: 'General'
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -3,12 +3,13 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
4
4
|
import Tag from '@zohodesk/components/lib/Tag/Tag';
|
|
5
5
|
import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
6
|
-
import DropBox from '@zohodesk/components/lib/DropBox/DropBox';
|
|
7
6
|
import EmptySearch from '@zohodesk/svg/lib/svg/EmptySearch';
|
|
8
7
|
import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
|
|
9
8
|
import Loader from '@zohodesk/svg/lib/svg/Loader';
|
|
10
9
|
import DropDownSeparator from '@zohodesk/components/lib/DropDown/DropDownSeparator';
|
|
11
10
|
import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
11
|
+
import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
|
|
12
|
+
import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
12
13
|
import { findScrollEnd, stopBubbling } from '../../../utils/Common';
|
|
13
14
|
import { scrollTo } from '@zohodesk/components/lib/utils/Common.js';
|
|
14
15
|
import style from './TagsMultiSelect.module.css';
|
|
@@ -97,6 +98,17 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
97
98
|
this.containerRef = ele;
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
responsiveFunc(_ref) {
|
|
102
|
+
let {
|
|
103
|
+
mediaQueryOR
|
|
104
|
+
} = _ref;
|
|
105
|
+
return {
|
|
106
|
+
tabletMode: mediaQueryOR([{
|
|
107
|
+
maxWidth: 700
|
|
108
|
+
}])
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
100
112
|
render() {
|
|
101
113
|
let {
|
|
102
114
|
searchList,
|
|
@@ -125,7 +137,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
125
137
|
getTextBoxChildren,
|
|
126
138
|
htmlId,
|
|
127
139
|
boxSize,
|
|
128
|
-
onSelectTag
|
|
140
|
+
onSelectTag,
|
|
141
|
+
clickableTag
|
|
129
142
|
} = this.props;
|
|
130
143
|
let {
|
|
131
144
|
showAll
|
|
@@ -158,7 +171,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
158
171
|
text: name,
|
|
159
172
|
onRemove: isReadOnly ? null : deleteTag.bind(this, name),
|
|
160
173
|
closeTitle: i18nKeys.deleteText,
|
|
161
|
-
palette: tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
174
|
+
palette: clickableTag ? 'defaultLink' : tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
162
175
|
isReadOnly: isReadOnly,
|
|
163
176
|
onSelectTag: onSelectTag ? onSelectTag : undefined
|
|
164
177
|
})) : null;
|
|
@@ -169,7 +182,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
169
182
|
}, showAll ? `${i18nKeys.lessText}` : `+${tagsList.length - chipNeedToShow} ${i18nKeys.moreText}`) : null) : null, /*#__PURE__*/React.createElement(Box, {
|
|
170
183
|
flexible: true,
|
|
171
184
|
adjust: true,
|
|
172
|
-
|
|
185
|
+
shrink: true,
|
|
173
186
|
className: style.inputWrapper
|
|
174
187
|
}, /*#__PURE__*/React.createElement("span", {
|
|
175
188
|
className: style.custmSpan
|
|
@@ -190,67 +203,80 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
190
203
|
},
|
|
191
204
|
size: "xsmall",
|
|
192
205
|
inputRef: this.textInputRef
|
|
193
|
-
}, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
getRef: getContainerRef,
|
|
198
|
-
isBoxPaddingNeed: true,
|
|
199
|
-
size: boxSize,
|
|
200
|
-
boxPosition: boxPosition,
|
|
201
|
-
isPadding: false,
|
|
202
|
-
customClass: {
|
|
203
|
-
customDropBoxWrap: style.dropdown
|
|
204
|
-
},
|
|
205
|
-
dataId: `${dataId}_dropbox`
|
|
206
|
-
}, isTagListLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
207
|
-
align: "both",
|
|
208
|
-
className: style.viewpopNew
|
|
209
|
-
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
|
|
210
|
-
scroll: "vertical",
|
|
211
|
-
className: style.viewpopNew,
|
|
212
|
-
onScroll: this.onScroll,
|
|
213
|
-
eleRef: this.getContainerRef
|
|
214
|
-
}, searchList.length ? /*#__PURE__*/React.createElement(Box, {
|
|
215
|
-
flexible: true
|
|
216
|
-
}, searchList.map((item, index) => {
|
|
206
|
+
}, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
207
|
+
query: this.responsiveFunc,
|
|
208
|
+
responsiveId: "Helmet"
|
|
209
|
+
}, _ref2 => {
|
|
217
210
|
let {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
211
|
+
tabletMode
|
|
212
|
+
} = _ref2;
|
|
213
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
214
|
+
isAnimate: true,
|
|
215
|
+
isActive: isPopupReady,
|
|
216
|
+
isArrow: false,
|
|
217
|
+
getRef: getContainerRef,
|
|
218
|
+
isBoxPaddingNeed: true,
|
|
219
|
+
size: boxSize,
|
|
220
|
+
boxPosition: boxPosition,
|
|
221
|
+
isPadding: false,
|
|
222
|
+
customClass: {
|
|
223
|
+
customDropBoxWrap: style.dropdown
|
|
224
|
+
},
|
|
225
|
+
dataId: `${dataId}_dropbox`,
|
|
226
|
+
isResponsivePadding: true,
|
|
227
|
+
alignBox: "row"
|
|
235
228
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
236
|
-
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
229
|
+
flexible: true
|
|
230
|
+
}, isTagListLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
231
|
+
align: "both",
|
|
232
|
+
className: `${tabletMode ? '' : style.viewpopNew}`
|
|
233
|
+
}, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
|
|
234
|
+
scroll: "vertical",
|
|
235
|
+
className: `${tabletMode ? '' : style.viewpopNew}`,
|
|
236
|
+
onScroll: this.onScroll,
|
|
237
|
+
eleRef: this.getContainerRef
|
|
238
|
+
}, searchList.length ? /*#__PURE__*/React.createElement(Box, {
|
|
239
|
+
flexible: true,
|
|
240
|
+
shrink: true
|
|
241
|
+
}, searchList.map((item, index) => {
|
|
242
|
+
let {
|
|
243
|
+
name,
|
|
244
|
+
isNew
|
|
245
|
+
} = item;
|
|
246
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/React.createElement(DropDownSeparator, null) : null, /*#__PURE__*/React.createElement(ListItem, {
|
|
247
|
+
key: index,
|
|
248
|
+
index: index,
|
|
249
|
+
autoHover: true,
|
|
250
|
+
value: isNew ? '' : name,
|
|
251
|
+
title: isNew ? '' : name,
|
|
252
|
+
onClick: addTag.bind(this, item),
|
|
253
|
+
needTick: true,
|
|
254
|
+
highlight: selectSearchIndex === index,
|
|
255
|
+
getRef: this.getSelectedItemRef,
|
|
256
|
+
isDisabled: listDisabled
|
|
257
|
+
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
258
|
+
alignBox: "row",
|
|
259
|
+
align: "vertical"
|
|
260
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
261
|
+
className: style.newTagLabel
|
|
262
|
+
}, i18nKeys.newTagText, ":"), /*#__PURE__*/React.createElement(Box, {
|
|
263
|
+
shrink: true,
|
|
264
|
+
"data-title": name,
|
|
265
|
+
className: `${style.dotted} ${style.newTagText} `,
|
|
266
|
+
dataId: `${dataId}_new_tag_text`
|
|
267
|
+
}, name)) : null));
|
|
268
|
+
})) : /*#__PURE__*/React.createElement(Box, {
|
|
269
|
+
flexible: true,
|
|
270
|
+
dataId: `${dataId}_empty`
|
|
271
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
272
|
+
className: style.searchEmpty
|
|
273
|
+
}, /*#__PURE__*/React.createElement(CommonEmptyState, {
|
|
274
|
+
title: i18nKeys.emptyTitleText,
|
|
275
|
+
description: i18nKeys.emptyDescription,
|
|
276
|
+
size: "small",
|
|
277
|
+
getEmptyState: this.emptySearchSVG
|
|
278
|
+
})))))));
|
|
279
|
+
}) : null);
|
|
254
280
|
}
|
|
255
281
|
|
|
256
282
|
}
|
|
@@ -293,7 +319,8 @@ TagsMultiSelect.propTypes = {
|
|
|
293
319
|
getTextBoxChildren: PropTypes.func,
|
|
294
320
|
htmlId: PropTypes.string,
|
|
295
321
|
boxSize: PropTypes.string,
|
|
296
|
-
onSelectTag: PropTypes.func
|
|
322
|
+
onSelectTag: PropTypes.func,
|
|
323
|
+
clickableTag: PropTypes.bool
|
|
297
324
|
};
|
|
298
325
|
TagsMultiSelect.defaultProps = {
|
|
299
326
|
className: '',
|
|
@@ -302,7 +329,8 @@ TagsMultiSelect.defaultProps = {
|
|
|
302
329
|
borderColor: 'default',
|
|
303
330
|
needBorder: true,
|
|
304
331
|
dataId: '',
|
|
305
|
-
boxSize: 'default'
|
|
332
|
+
boxSize: 'default',
|
|
333
|
+
clickableTag: false
|
|
306
334
|
};
|
|
307
335
|
|
|
308
336
|
if (false) {
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
.tag {
|
|
2
2
|
max-width: 100%;
|
|
3
3
|
}
|
|
4
|
-
.moreLess,
|
|
5
|
-
.tag {
|
|
4
|
+
[dir=ltr] .moreLess, [dir=ltr] .tag {
|
|
6
5
|
margin: 0 var(--zd_size6) var(--zd_size6) 0;
|
|
7
6
|
}
|
|
7
|
+
[dir=rtl] .moreLess, [dir=rtl] .tag {
|
|
8
|
+
margin: 0 0 var(--zd_size6) var(--zd_size6);
|
|
9
|
+
}
|
|
8
10
|
.input {
|
|
9
11
|
height: var(--zd_size20);
|
|
10
|
-
margin-bottom: var(--zd_size4);
|
|
11
12
|
width: 100%;
|
|
13
|
+
margin-bottom: var(--zd_size4);
|
|
12
14
|
}
|
|
13
15
|
.viewpopNew {
|
|
14
16
|
max-height: var(--zd_size250);
|
|
15
17
|
}
|
|
16
18
|
.tagDiv {
|
|
17
|
-
margin-top: var(--zd_size5);
|
|
18
19
|
max-height: var(--zd_size160);
|
|
20
|
+
margin-top: var(--zd_size5);
|
|
19
21
|
}
|
|
20
22
|
.hasBorder {
|
|
23
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
21
24
|
border-bottom-style: solid;
|
|
22
25
|
border-bottom-width: 1px;
|
|
23
|
-
transition: border var(--zd_transition2) linear 0s;
|
|
24
26
|
}
|
|
25
27
|
.borderColor_transparent {
|
|
26
28
|
border-bottom-color: var(--zdt_tagsmultiselect_transparent_border);
|
|
@@ -64,10 +66,15 @@
|
|
|
64
66
|
font-size: 0;
|
|
65
67
|
}
|
|
66
68
|
.newTagLabel {
|
|
67
|
-
margin-right: var(--zd_size5);
|
|
68
69
|
color: var(--zdt_tagsmultiselect_labelt_text);
|
|
69
70
|
composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
|
|
70
71
|
}
|
|
72
|
+
[dir=ltr] .newTagLabel {
|
|
73
|
+
margin-right: var(--zd_size5);
|
|
74
|
+
}
|
|
75
|
+
[dir=rtl] .newTagLabel {
|
|
76
|
+
margin-left: var(--zd_size5);
|
|
77
|
+
}
|
|
71
78
|
.dotted {
|
|
72
79
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
73
80
|
}
|
|
@@ -87,9 +94,14 @@
|
|
|
87
94
|
.custmInp {
|
|
88
95
|
position: absolute;
|
|
89
96
|
top: 0;
|
|
90
|
-
left: 0;
|
|
91
97
|
width: 100%;
|
|
92
98
|
}
|
|
99
|
+
[dir=ltr] .custmInp {
|
|
100
|
+
left: 0;
|
|
101
|
+
}
|
|
102
|
+
[dir=rtl] .custmInp {
|
|
103
|
+
right: 0;
|
|
104
|
+
}
|
|
93
105
|
.newTagText {
|
|
94
106
|
color: var(--zdt_tagsmultiselect_more_text);
|
|
95
107
|
}
|