@zohodesk/dot 1.1.0 → 1.2.0
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 +1350 -1344
- package/coverage/ExternalLink/ExternalLink.js.html +229 -0
- package/coverage/ExternalLink/ExternalLink.module.css.html +94 -0
- package/coverage/ExternalLink/index.html +131 -0
- package/coverage/ExternalLink/props/defaultProps.js.html +100 -0
- package/coverage/ExternalLink/props/index.html +131 -0
- package/coverage/ExternalLink/props/propTypes.js.html +124 -0
- package/coverage/Image/Image.js.html +184 -0
- package/coverage/Image/Image.module.css.html +118 -0
- package/coverage/Image/index.html +131 -0
- package/coverage/Image/props/defaultProps.js.html +97 -0
- package/coverage/Image/props/index.html +131 -0
- package/coverage/Image/props/propTypes.js.html +127 -0
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +448 -0
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +133 -0
- package/coverage/avatar/AvatarWithTeam/index.html +131 -0
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +112 -0
- package/coverage/avatar/AvatarWithTeam/props/index.html +131 -0
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +163 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/coverage-final.json +13 -0
- package/coverage/coverage-summary.json +14 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +191 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/es/ActionButton/ActionButton.module.css +139 -139
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/Attachment/Attachment.module.css +159 -159
- package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/es/ChannelIcon/ChannelIcon.module.css +217 -217
- package/es/Drawer/Drawer.js +0 -0
- package/es/Drawer/Drawer.module.css +190 -190
- 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.js +1 -1
- package/es/FreezeLayer/css/FreezeLayer.module.css +42 -42
- package/es/FreezeLayer/css/cssJSLogic.js +1 -1
- package/es/Hooks/Dragger/css/Dragger.module.css +2 -2
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Image/Image.module.css +11 -11
- package/es/Image/__tests__/Image.spec.js +70 -0
- package/es/Image/__tests__/__snapshots__/Image.spec.js.snap +74 -0
- 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.js +1 -5
- package/es/Loader/Loader.module.css +47 -47
- package/es/Message/Message.module.css +102 -102
- package/es/MessageBanner/MessageBanner.module.css +46 -46
- package/es/NewStar/NewStar.module.css +183 -183
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/PlusIcon/PlusIcon.module.css +18 -18
- package/es/Separator/Separator.module.css +34 -34
- package/es/TagWithIcon/TagWithIcon.module.css +56 -56
- 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/AlertHeader/props/propTypes.js +1 -1
- 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_boxShadow.module.css +37 -37
- package/es/common/dot_common.module.css +3 -3
- package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/es/deprecated/utils/KeyboardApi.js +25 -25
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
- 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 +0 -0
- package/es/form/fields/Fields.module.css +183 -183
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/es/form/fields/TextEditor/TextEditor.module.css +770 -770
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -37
- 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 +164 -164
- 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 +24 -24
- package/es/list/GridStencils/GridStencils.module.css +146 -146
- package/es/list/Icons/Icons.module.css +16 -16
- 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 +116 -116
- 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 +111 -111
- 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 +7 -7
- 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/v1/ActionButton/ActionButton.js +137 -0
- package/es/v1/AlphabeticList/AlphabeticList.js +90 -0
- package/es/v1/Drawer/Drawer.js +271 -0
- package/es/v1/FlipCard/FlipCard.js +130 -0
- package/es/v1/FormAction/FormAction.js +75 -0
- package/es/v1/IconButton/IconButton.js +113 -0
- package/es/v1/ImportantNotes/ImportantNotes.js +41 -0
- package/es/v1/Link/Link.js +95 -0
- package/es/v1/MessageBanner/MessageBanner.js +58 -0
- package/es/v1/TagWithIcon/TagWithIcon.js +39 -0
- package/es/v1/alert/AlertHeader/AlertHeader.js +70 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +104 -0
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +63 -0
- package/es/v1/emptystate/EditionPage/EditionPage.js +51 -0
- package/es/v1/lookup/Lookup/Lookup.js +105 -0
- package/es/v1/setup/table/Table/Table.js +22 -0
- package/es/v1/setup/table/TableBody/TableBody.js +26 -0
- package/es/v1/setup/table/TableData/TableData.js +31 -0
- package/es/v1/setup/table/TableHead/TableHead.js +31 -0
- package/es/v1/setup/table/TableRow/TableRow.js +36 -0
- package/es/v1/setup/table/Text/Text.js +50 -0
- package/es/v1/version2/AlertClose/AlertClose.js +43 -0
- package/es/v1/version2/GlobalNotification/GlobalNotification.js +111 -0
- package/es/v1/version2/alertIcons/AlarmAlertIcon.js +65 -0
- package/es/v1/version2/alertIcons/AlertIcons.js +57 -0
- package/es/v1/version2/alertIcons/DangerAlertIcon.js +65 -0
- package/es/v1/version2/alertIcons/ErrorAlertIcon.js +70 -0
- package/es/v1/version2/alertIcons/InfoAlertIcon.js +74 -0
- package/es/v1/version2/alertIcons/NotificationAlertIcon.js +70 -0
- package/es/v1/version2/alertIcons/SuccessAlertIcon.js +65 -0
- package/es/v1/version2/alertIcons/WarningAlertIcon.js +65 -0
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +63 -0
- package/es/v1/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +64 -0
- package/es/v1/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +63 -0
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +65 -0
- package/es/v1/version2/errorstate/UrlNotFound/UrlNotFound.js +63 -0
- package/es/v1/version2/errorstate/WillBeRightBack/WillBeRightBack.js +63 -0
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +152 -0
- package/es/v1/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +54 -0
- package/es/version2/AlertClose/AlertClose.module.css +42 -42
- package/es/version2/GlobalNotification/GlobalNotification.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +127 -127
- package/es/version2/alertIcons/AlertIcons.module.css +67 -67
- package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/es/version2/lookup/AlertHeader/AlertHeader.js +1 -1
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -1
- 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 +126 -126
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/install.md +12 -12
- package/lib/ActionButton/ActionButton.module.css +139 -139
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/Attachment/Attachment.module.css +159 -159
- package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
- package/lib/Drawer/Drawer.js +0 -0
- package/lib/Drawer/Drawer.module.css +190 -190
- package/lib/ExternalLink/ExternalLink.js +0 -0
- package/lib/ExternalLink/ExternalLink.module.css +3 -3
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/FlipCard/FlipCard.module.css +44 -44
- package/lib/FormAction/FormAction.module.css +82 -82
- package/lib/FreezeLayer/FreezeLayer.js +1 -1
- package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -42
- package/lib/FreezeLayer/css/cssJSLogic.js +1 -1
- package/lib/Hooks/Dragger/css/Dragger.module.css +2 -2
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/Image/Image.module.css +11 -11
- package/lib/Image/__tests__/Image.spec.js +77 -0
- package/lib/Image/__tests__/__snapshots__/Image.spec.js.snap +74 -0
- package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
- package/lib/Link/Link.js +0 -0
- package/lib/Link/Link.module.css +3 -3
- package/lib/Loader/Loader.js +1 -6
- package/lib/Loader/Loader.module.css +47 -47
- package/lib/Message/Message.module.css +102 -102
- package/lib/MessageBanner/MessageBanner.module.css +46 -46
- package/lib/NewStar/NewStar.module.css +183 -183
- package/lib/PlusIcon/PlusIcon.js +0 -0
- package/lib/PlusIcon/PlusIcon.module.css +18 -18
- package/lib/Separator/Separator.module.css +34 -34
- package/lib/TagWithIcon/TagWithIcon.module.css +56 -56
- package/lib/ToastMessage/ToastMessage.js +0 -0
- package/lib/ToastMessage/ToastMessage.module.css +328 -328
- package/lib/Upload/Upload.module.css +125 -125
- package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/lib/alert/AlertHeader/props/propTypes.js +1 -1
- package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
- package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
- package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/lib/common/dot_animation.module.css +26 -26
- package/lib/common/dot_boxShadow.module.css +37 -37
- package/lib/common/dot_common.module.css +3 -3
- package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/lib/deprecated/utils/KeyboardApi.js +25 -25
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/lib/emptystate/EditionPage/EditionPage.css +43 -43
- package/lib/errorstate/EmptyStates.module.css +87 -87
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/lib/errorstate/LinkText/LinkText.module.css +6 -6
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/lib/errorstate/WillBack/WillBack.module.css +34 -34
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
- package/lib/form/fields/Fields.module.css +183 -183
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/lib/form/fields/TextEditor/TextEditor.module.css +770 -770
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -37
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/lib/form/layout/Field/Field.js +0 -0
- 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 +0 -0
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/DotNew/DotNew.module.css +24 -24
- package/lib/list/GridStencils/GridStencils.module.css +146 -146
- package/lib/list/Icons/Icons.module.css +16 -16
- package/lib/list/ListLayout/ListLayout.module.css +57 -57
- package/lib/list/ListStencils/ListStencils.module.css +67 -67
- package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
- package/lib/list/SecondaryText/Website.js +0 -0
- package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
- package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/lib/list/Subject/Subject.module.css +27 -27
- package/lib/list/TagNew/TagNew.module.css +116 -116
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/UserTime/UserTime.module.css +58 -58
- package/lib/list/listCommon.module.css +60 -60
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
- package/lib/list/status/StatusListItem/StatusListItem.js +0 -0
- package/lib/list/status/StatusListItem/StatusListItem.module.css +111 -111
- package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/lib/lookup/Lookup/Lookup.js +0 -0
- package/lib/lookup/Lookup/Lookup.module.css +26 -26
- package/lib/lookup/Section/LookupSection.module.css +7 -7
- package/lib/lookup/header/Close/LookupClose.module.css +15 -15
- package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
- 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/HeaderButton.module.css +5 -5
- package/lib/setup/header/Link/HeaderLink.module.css +21 -21
- package/lib/setup/header/Search/Search.module.css +68 -68
- package/lib/setup/header/Views/Views.module.css +37 -37
- 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 +0 -0
- 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 +0 -0
- package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
- package/lib/setup/table/TableData/Tablehover.module.css +6 -6
- package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/lib/setup/table/Text/TableText.module.css +37 -37
- package/lib/setup/table/Text/Text.js +0 -0
- package/lib/svg/PlusIcon.js +1 -1
- package/lib/svg/SnippetIcon.js +2 -2
- package/lib/v1/ActionButton/ActionButton.js +156 -0
- package/lib/v1/AlphabeticList/AlphabeticList.js +111 -0
- package/lib/v1/Drawer/Drawer.js +302 -0
- package/lib/v1/FlipCard/FlipCard.js +149 -0
- package/lib/v1/FormAction/FormAction.js +102 -0
- package/lib/v1/IconButton/IconButton.js +149 -0
- package/lib/v1/ImportantNotes/ImportantNotes.js +55 -0
- package/lib/v1/Link/Link.js +116 -0
- package/lib/v1/MessageBanner/MessageBanner.js +73 -0
- package/lib/v1/TagWithIcon/TagWithIcon.js +53 -0
- package/lib/v1/alert/AlertHeader/AlertHeader.js +86 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +118 -0
- package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +76 -0
- package/lib/v1/emptystate/EditionPage/EditionPage.js +64 -0
- package/lib/v1/lookup/Lookup/Lookup.js +130 -0
- package/lib/v1/setup/table/Table/Table.js +34 -0
- package/lib/v1/setup/table/TableBody/TableBody.js +39 -0
- package/lib/v1/setup/table/TableData/TableData.js +44 -0
- package/lib/v1/setup/table/TableHead/TableHead.js +44 -0
- package/lib/v1/setup/table/TableRow/TableRow.js +49 -0
- package/lib/v1/setup/table/Text/Text.js +64 -0
- package/lib/v1/version2/AlertClose/AlertClose.js +62 -0
- package/lib/v1/version2/GlobalNotification/GlobalNotification.js +134 -0
- package/lib/v1/version2/alertIcons/AlarmAlertIcon.js +77 -0
- package/lib/v1/version2/alertIcons/AlertIcons.js +78 -0
- package/lib/v1/version2/alertIcons/DangerAlertIcon.js +77 -0
- package/lib/v1/version2/alertIcons/ErrorAlertIcon.js +82 -0
- package/lib/v1/version2/alertIcons/InfoAlertIcon.js +86 -0
- package/lib/v1/version2/alertIcons/NotificationAlertIcon.js +82 -0
- package/lib/v1/version2/alertIcons/SuccessAlertIcon.js +77 -0
- package/lib/v1/version2/alertIcons/WarningAlertIcon.js +77 -0
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +79 -0
- package/lib/v1/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +80 -0
- package/lib/v1/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +79 -0
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +81 -0
- package/lib/v1/version2/errorstate/UrlNotFound/UrlNotFound.js +79 -0
- package/lib/v1/version2/errorstate/WillBeRightBack/WillBeRightBack.js +79 -0
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +173 -0
- package/lib/v1/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +76 -0
- package/lib/version2/AlertClose/AlertClose.module.css +42 -42
- package/lib/version2/GlobalNotification/GlobalNotification.js +2 -2
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +127 -127
- package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
- package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -1
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -1
- 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 +126 -126
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/package.json +80 -106
- package/postPublish.js +8 -8
- package/prePublish.js +70 -70
- package/react-cli.config.js +24 -0
- package/result.json +1 -0
- package/unittest/index.html +37 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = TagWithIcon;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../TagWithIcon/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../TagWithIcon/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
15
|
+
|
|
16
|
+
var _Icon = _interopRequireDefault(require("@zohodesk/icons/es/Icon"));
|
|
17
|
+
|
|
18
|
+
var _TagWithIconModule = _interopRequireDefault(require("../../TagWithIcon/TagWithIcon.module.css"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function TagWithIcon(props) {
|
|
23
|
+
var text = props.text,
|
|
24
|
+
iconName = props.iconName,
|
|
25
|
+
iconSize = props.iconSize,
|
|
26
|
+
palette = props.palette,
|
|
27
|
+
iconClass = props.iconClass,
|
|
28
|
+
isBold = props.isBold,
|
|
29
|
+
size = props.size,
|
|
30
|
+
dataId = props.dataId,
|
|
31
|
+
className = props.className,
|
|
32
|
+
title = props.title;
|
|
33
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
34
|
+
isInline: true,
|
|
35
|
+
alignBox: "row",
|
|
36
|
+
align: "vertical",
|
|
37
|
+
isCover: false,
|
|
38
|
+
className: "".concat(_TagWithIconModule["default"].wrapper, " ").concat(_TagWithIconModule["default"][palette], " ").concat(_TagWithIconModule["default"][size], " ").concat(className),
|
|
39
|
+
dataId: dataId,
|
|
40
|
+
title: title
|
|
41
|
+
}, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
42
|
+
name: iconName,
|
|
43
|
+
size: iconSize,
|
|
44
|
+
iconClass: "".concat(text ? _TagWithIconModule["default"].iconSpace : '', " ").concat(iconClass, " ")
|
|
45
|
+
}) : null, text ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
46
|
+
shrink: true,
|
|
47
|
+
"data-title": text,
|
|
48
|
+
className: "".concat(_TagWithIconModule["default"].text, " ").concat(_TagWithIconModule["default"][size], "_text ").concat(isBold ? _TagWithIconModule["default"].bold : '')
|
|
49
|
+
}, text) : null);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
TagWithIcon.propTypes = _propTypes.propTypes;
|
|
53
|
+
TagWithIcon.defaultProps = _defaultProps.defaultProps;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = AlertHeader;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../../alert/AlertHeader/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../alert/AlertHeader/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _icons = require("@zohodesk/icons");
|
|
15
|
+
|
|
16
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
17
|
+
|
|
18
|
+
var _Title = _interopRequireDefault(require("../../../lookup/header/Title/Title"));
|
|
19
|
+
|
|
20
|
+
var _Close = _interopRequireDefault(require("../../../lookup/header/Close/Close"));
|
|
21
|
+
|
|
22
|
+
var _AlertHeaderModule = _interopRequireDefault(require("../../../alert/AlertHeader/AlertHeader.module.css"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function AlertHeader(props) {
|
|
27
|
+
var title = props.title,
|
|
28
|
+
palette = props.palette,
|
|
29
|
+
needIcon = props.needIcon,
|
|
30
|
+
iconType = props.iconType,
|
|
31
|
+
onClose = props.onClose,
|
|
32
|
+
iconName = props.iconName,
|
|
33
|
+
iconSize = props.iconSize,
|
|
34
|
+
closeTitle = props.closeTitle,
|
|
35
|
+
children = props.children,
|
|
36
|
+
breakChildren = props.breakChildren,
|
|
37
|
+
dataId = props.dataId,
|
|
38
|
+
iconClass = props.iconClass;
|
|
39
|
+
var iconObj = {
|
|
40
|
+
"delete": 'ZD-socialDelete',
|
|
41
|
+
alert: 'ZD-exclamationThincircle',
|
|
42
|
+
remoteAssist: 'ZD-taskDemo',
|
|
43
|
+
splitTicket: 'ZD-splitNew',
|
|
44
|
+
update: 'ZD-update'
|
|
45
|
+
};
|
|
46
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
47
|
+
align: "vertical",
|
|
48
|
+
alignBox: "row",
|
|
49
|
+
className: "".concat(_AlertHeaderModule["default"].container, " ").concat(_AlertHeaderModule["default"][palette]),
|
|
50
|
+
isCover: false,
|
|
51
|
+
wrap: "wrap"
|
|
52
|
+
}, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
|
+
className: _AlertHeaderModule["default"].iconContainer
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
55
|
+
size: iconSize,
|
|
56
|
+
name: iconName ? iconName : iconObj[iconType] ? iconObj[iconType] : iconName,
|
|
57
|
+
iconClass: "".concat(_AlertHeaderModule["default"].iconStyle, " ").concat(iconObj[iconType] && !iconSize ? _AlertHeaderModule["default"]["icon_".concat(iconType)] : '', " ").concat(_AlertHeaderModule["default"]["text_".concat(palette)], " ").concat(iconClass)
|
|
58
|
+
})) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
59
|
+
flexible: true
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
61
|
+
alignBox: "row",
|
|
62
|
+
align: "vertical",
|
|
63
|
+
wrap: breakChildren ? 'wrap' : null
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
65
|
+
className: _AlertHeaderModule["default"].title,
|
|
66
|
+
shrink: true
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_Title["default"], {
|
|
68
|
+
text: title,
|
|
69
|
+
palette: palette
|
|
70
|
+
})), children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
71
|
+
adjust: true,
|
|
72
|
+
flexible: true
|
|
73
|
+
}, children) : null)), onClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Close["default"], {
|
|
74
|
+
onClose: onClose,
|
|
75
|
+
title: closeTitle,
|
|
76
|
+
dataId: "".concat(dataId, "_close")
|
|
77
|
+
})) : null);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
AlertHeader.propTypes = _propTypes.propTypes;
|
|
81
|
+
AlertHeader.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
82
|
+
// AlertHeader.docs = {
|
|
83
|
+
// componentGroup: 'AlertHeader',
|
|
84
|
+
// folderName: 'Alert'
|
|
85
|
+
// };
|
|
86
|
+
// }
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = AlertLookup;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../../alert/AlertLookup/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../alert/AlertLookup/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _Button = _interopRequireDefault(require("@zohodesk/components/lib/Button/Button"));
|
|
15
|
+
|
|
16
|
+
var _AlertHeader = _interopRequireDefault(require("../AlertHeader/AlertHeader"));
|
|
17
|
+
|
|
18
|
+
var _Lookup = _interopRequireDefault(require("../../../lookup/Lookup/Lookup"));
|
|
19
|
+
|
|
20
|
+
var _Section = _interopRequireDefault(require("../../../lookup/Section/Section"));
|
|
21
|
+
|
|
22
|
+
var _FormAction = _interopRequireDefault(require("../../../FormAction/FormAction"));
|
|
23
|
+
|
|
24
|
+
var _AlertLookupModule = _interopRequireDefault(require("../../../alert/AlertLookup/AlertLookup.module.css"));
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
+
|
|
30
|
+
function AlertLookup(props) {
|
|
31
|
+
var isActive = props.isActive,
|
|
32
|
+
palette = props.palette,
|
|
33
|
+
size = props.size,
|
|
34
|
+
type = props.type,
|
|
35
|
+
title = props.title,
|
|
36
|
+
message = props.message,
|
|
37
|
+
confirmationMessage = props.confirmationMessage,
|
|
38
|
+
submitText = props.submitText,
|
|
39
|
+
cancelText = props.cancelText,
|
|
40
|
+
onSubmitClick = props.onSubmitClick,
|
|
41
|
+
onCancelClick = props.onCancelClick,
|
|
42
|
+
children = props.children,
|
|
43
|
+
forwardRef = props.forwardRef,
|
|
44
|
+
onClose = props.onClose,
|
|
45
|
+
headerChildren = props.headerChildren,
|
|
46
|
+
wrapHeader = props.wrapHeader,
|
|
47
|
+
sectionClassName = props.sectionClassName,
|
|
48
|
+
dataId = props.dataId,
|
|
49
|
+
onLookupClick = props.onLookupClick,
|
|
50
|
+
customClass = props.customClass,
|
|
51
|
+
needIcon = props.needIcon,
|
|
52
|
+
iconName = props.iconName,
|
|
53
|
+
iconClass = props.iconClass,
|
|
54
|
+
iconSize = props.iconSize,
|
|
55
|
+
customProps = props.customProps,
|
|
56
|
+
isHtmlContent = props.isHtmlContent,
|
|
57
|
+
onEsc = props.onEsc;
|
|
58
|
+
var _customProps$LookupPr = customProps.LookupProps,
|
|
59
|
+
LookupProps = _customProps$LookupPr === void 0 ? {} : _customProps$LookupPr,
|
|
60
|
+
_customProps$AlertHea = customProps.AlertHeaderProps,
|
|
61
|
+
AlertHeaderProps = _customProps$AlertHea === void 0 ? {} : _customProps$AlertHea,
|
|
62
|
+
_customProps$PrimaryB = customProps.PrimaryButtonProps,
|
|
63
|
+
PrimaryButtonProps = _customProps$PrimaryB === void 0 ? {} : _customProps$PrimaryB,
|
|
64
|
+
_customProps$Secondar = customProps.SecondaryButtonProps,
|
|
65
|
+
SecondaryButtonProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement(_Lookup["default"], _extends({
|
|
67
|
+
needFocusScope: true,
|
|
68
|
+
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
69
|
+
isActive: isActive,
|
|
70
|
+
size: size,
|
|
71
|
+
dataId: dataId,
|
|
72
|
+
forwardRef: forwardRef,
|
|
73
|
+
onClick: onLookupClick,
|
|
74
|
+
customClass: customClass
|
|
75
|
+
}, LookupProps), /*#__PURE__*/_react["default"].createElement(_AlertHeader["default"], _extends({
|
|
76
|
+
title: title,
|
|
77
|
+
palette: palette,
|
|
78
|
+
iconType: type,
|
|
79
|
+
needIcon: Boolean(type) || needIcon,
|
|
80
|
+
onClose: onClose,
|
|
81
|
+
breakChildren: wrapHeader,
|
|
82
|
+
iconName: iconName,
|
|
83
|
+
iconClass: iconClass,
|
|
84
|
+
iconSize: iconSize
|
|
85
|
+
}, AlertHeaderProps), headerChildren ? headerChildren() : null), /*#__PURE__*/_react["default"].createElement(_Section["default"], {
|
|
86
|
+
alignBox: "row",
|
|
87
|
+
className: _AlertLookupModule["default"].section
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
className: "".concat(_AlertLookupModule["default"].innerSection, " ").concat(sectionClassName)
|
|
90
|
+
}, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isHtmlContent && message ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
+
dangerouslySetInnerHTML: {
|
|
92
|
+
__html: message
|
|
93
|
+
}
|
|
94
|
+
}) : /*#__PURE__*/_react["default"].createElement("div", null, message), confirmationMessage && /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
|
+
className: _AlertLookupModule["default"].text
|
|
96
|
+
}, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
|
|
97
|
+
size: "small",
|
|
98
|
+
paddingLeftSize: "xsmall"
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
|
|
100
|
+
text: submitText,
|
|
101
|
+
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : "".concat(dataId, "_confirmButton"),
|
|
102
|
+
onClick: onSubmitClick,
|
|
103
|
+
palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
|
|
104
|
+
}, PrimaryButtonProps)), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
|
|
105
|
+
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : "".concat(dataId, "_cancelButton"),
|
|
106
|
+
text: cancelText,
|
|
107
|
+
onClick: onCancelClick,
|
|
108
|
+
palette: "secondary"
|
|
109
|
+
}, SecondaryButtonProps))) : null));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
AlertLookup.propTypes = _propTypes.propTypes;
|
|
113
|
+
AlertLookup.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
114
|
+
// AlertLookup.docs = {
|
|
115
|
+
// componentGroup: 'AlertLookup',
|
|
116
|
+
// folderName: 'Alert'
|
|
117
|
+
// };
|
|
118
|
+
// }
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = CommonEmptyState;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../../emptystate/CommonEmptyState/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../emptystate/CommonEmptyState/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
15
|
+
|
|
16
|
+
var _CommonEmptyStateModule = _interopRequireDefault(require("../../../emptystate/CommonEmptyState/CommonEmptyState.module.css"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function CommonEmptyState(props) {
|
|
21
|
+
var title = props.title,
|
|
22
|
+
description = props.description,
|
|
23
|
+
linkDescription = props.linkDescription,
|
|
24
|
+
linkUrl = props.linkUrl,
|
|
25
|
+
linkText = props.linkText,
|
|
26
|
+
linkTarget = props.linkTarget,
|
|
27
|
+
onUrlClick = props.onUrlClick,
|
|
28
|
+
getEmptyState = props.getEmptyState,
|
|
29
|
+
className = props.className,
|
|
30
|
+
dataId = props.dataId,
|
|
31
|
+
isFluid = props.isFluid,
|
|
32
|
+
children = props.children,
|
|
33
|
+
size = props.size,
|
|
34
|
+
palette = props.palette,
|
|
35
|
+
customClass = props.customClass;
|
|
36
|
+
var _customClass$titleCla = customClass.titleClass,
|
|
37
|
+
titleClass = _customClass$titleCla === void 0 ? '' : _customClass$titleCla,
|
|
38
|
+
_customClass$descript = customClass.descriptionClass,
|
|
39
|
+
descriptionClass = _customClass$descript === void 0 ? '' : _customClass$descript;
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
+
className: "".concat(_CommonEmptyStateModule["default"].container, " ").concat(_CommonEmptyStateModule["default"][size], " ").concat(className, " ").concat(!isFluid ? _CommonEmptyStateModule["default"].fluid : '', " ").concat(_CommonEmptyStateModule["default"][palette]),
|
|
42
|
+
"data-id": dataId,
|
|
43
|
+
"data-test-id": dataId
|
|
44
|
+
}, getEmptyState ? getEmptyState() : null, title ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
45
|
+
className: "".concat(_CommonEmptyStateModule["default"].title, " ").concat(titleClass)
|
|
46
|
+
}, title) : null, description ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
|
+
className: _CommonEmptyStateModule["default"].linkWrapper
|
|
48
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
49
|
+
className: "".concat(_CommonEmptyStateModule["default"].desc, " ").concat(descriptionClass)
|
|
50
|
+
}, description), !linkDescription && linkText ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
51
|
+
href: linkUrl,
|
|
52
|
+
className: _CommonEmptyStateModule["default"].link,
|
|
53
|
+
target: linkTarget,
|
|
54
|
+
onClick: onUrlClick,
|
|
55
|
+
dataId: "".concat(dataId, "_primarylink")
|
|
56
|
+
}, linkText) : null) : null, linkDescription || !description && !linkDescription && linkText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
+
className: _CommonEmptyStateModule["default"].linkDescWrapper
|
|
58
|
+
}, linkDescription ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
|
+
className: "".concat(_CommonEmptyStateModule["default"].linkDesc)
|
|
60
|
+
}, linkDescription) : null, linkText ? /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
61
|
+
href: linkUrl,
|
|
62
|
+
className: _CommonEmptyStateModule["default"].link,
|
|
63
|
+
target: linkTarget,
|
|
64
|
+
onClick: onUrlClick,
|
|
65
|
+
dataId: "".concat(dataId, "_secondarylink")
|
|
66
|
+
}, linkText) : null) : null, children ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: _CommonEmptyStateModule["default"].children
|
|
68
|
+
}, children) : null);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
CommonEmptyState.propTypes = _propTypes.propTypes;
|
|
72
|
+
CommonEmptyState.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
73
|
+
// CommonEmptyState.docs = {
|
|
74
|
+
// componentGroup: 'EmptyState'
|
|
75
|
+
// };
|
|
76
|
+
// }
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = EditionPage;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../../emptystate/EditionPage/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../emptystate/EditionPage/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _EmptyCrmPotential = _interopRequireDefault(require("@zohodesk/svg/lib/v1/emptystate/version3/EmptyCrmPotential"));
|
|
15
|
+
|
|
16
|
+
var _EditionPage = _interopRequireDefault(require("../../../emptystate/EditionPage/EditionPage.css"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function EditionPage(props) {
|
|
21
|
+
var title = props.title,
|
|
22
|
+
subtitle = props.subtitle,
|
|
23
|
+
information = props.information,
|
|
24
|
+
dataId = props.dataId,
|
|
25
|
+
footerText = props.footerText,
|
|
26
|
+
onButtonClick = props.onButtonClick,
|
|
27
|
+
butttonText = props.butttonText,
|
|
28
|
+
children = props.children;
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
|
+
className: _EditionPage["default"].editionContainer,
|
|
31
|
+
"data-id": dataId,
|
|
32
|
+
"data-test-id": dataId
|
|
33
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
34
|
+
className: _EditionPage["default"].svg
|
|
35
|
+
}, /*#__PURE__*/_react["default"].createElement(_EmptyCrmPotential["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
36
|
+
className: _EditionPage["default"].header
|
|
37
|
+
}, title), subtitle ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
38
|
+
className: _EditionPage["default"].description
|
|
39
|
+
}, subtitle) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
|
+
className: _EditionPage["default"].description
|
|
41
|
+
}, information ? "".concat(information, " ") : null, butttonText ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
42
|
+
className: _EditionPage["default"].button,
|
|
43
|
+
"data-id": "".concat(dataId, "_button"),
|
|
44
|
+
"data-test-id": "".concat(dataId, "_button"),
|
|
45
|
+
onClick: onButtonClick
|
|
46
|
+
}, butttonText) : null), children ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
|
+
className: _EditionPage["default"].content
|
|
48
|
+
}, children) : null, footerText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
|
+
"data-id": "".concat(dataId, "_footerText"),
|
|
50
|
+
"data-test-id": "".concat(dataId, "_footerText"),
|
|
51
|
+
className: _EditionPage["default"].footer
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
|
+
dangerouslySetInnerHTML: {
|
|
54
|
+
__html: footerText
|
|
55
|
+
}
|
|
56
|
+
})) : null);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
EditionPage.defaultProps = _defaultProps.defaultProps;
|
|
60
|
+
EditionPage.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
61
|
+
// EditionPage.docs = {
|
|
62
|
+
// componentGroup: 'EmptyState'
|
|
63
|
+
// };
|
|
64
|
+
// }
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = Lookup;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _defaultProps = require("../../../lookup/Lookup/props/defaultProps");
|
|
13
|
+
|
|
14
|
+
var _propTypes = require("../../../lookup/Lookup/props/propTypes");
|
|
15
|
+
|
|
16
|
+
var _FreezeLayer = _interopRequireDefault(require("../../../FreezeLayer/FreezeLayer"));
|
|
17
|
+
|
|
18
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
19
|
+
|
|
20
|
+
var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
|
|
21
|
+
|
|
22
|
+
var _LookupModule = _interopRequireDefault(require("../../../lookup/Lookup/Lookup.module.css"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
/*** Libraries ***/
|
|
31
|
+
|
|
32
|
+
/*** Components ***/
|
|
33
|
+
|
|
34
|
+
/*** CSS ***/
|
|
35
|
+
|
|
36
|
+
/*eslint-disable react/forbid-component-props */
|
|
37
|
+
function Lookup(props) {
|
|
38
|
+
var isActive = props.isActive,
|
|
39
|
+
children = props.children,
|
|
40
|
+
size = props.size,
|
|
41
|
+
dataId = props.dataId,
|
|
42
|
+
forwardRef = props.forwardRef,
|
|
43
|
+
onClick = props.onClick,
|
|
44
|
+
customClass = props.customClass,
|
|
45
|
+
htmlId = props.htmlId,
|
|
46
|
+
a11y = props.a11y,
|
|
47
|
+
childAnimationName = props.childAnimationName,
|
|
48
|
+
onClose = props.onClose,
|
|
49
|
+
needFocusScope = props.needFocusScope,
|
|
50
|
+
customProps = props.customProps,
|
|
51
|
+
onKeyDown = props.onKeyDown;
|
|
52
|
+
var _a11y$role = a11y.role,
|
|
53
|
+
role = _a11y$role === void 0 ? 'dialog' : _a11y$role,
|
|
54
|
+
ariaLabelledby = a11y.ariaLabelledby,
|
|
55
|
+
ariaDescribedby = a11y.ariaDescribedby,
|
|
56
|
+
_a11y$ariaModal = a11y.ariaModal,
|
|
57
|
+
ariaModal = _a11y$ariaModal === void 0 ? isActive ? true : undefined : _a11y$ariaModal;
|
|
58
|
+
var _customProps$focusSco = customProps.focusScopeProps,
|
|
59
|
+
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
60
|
+
var _focusScopeProps$auto = focusScopeProps.autoFocus,
|
|
61
|
+
autoFocus = _focusScopeProps$auto === void 0 ? true : _focusScopeProps$auto,
|
|
62
|
+
_focusScopeProps$rest = focusScopeProps.restoreFocus,
|
|
63
|
+
restoreFocus = _focusScopeProps$rest === void 0 ? true : _focusScopeProps$rest,
|
|
64
|
+
_focusScopeProps$need = focusScopeProps.needArrowLoop,
|
|
65
|
+
needArrowLoop = _focusScopeProps$need === void 0 ? false : _focusScopeProps$need,
|
|
66
|
+
_focusScopeProps$need2 = focusScopeProps.needTabLoop,
|
|
67
|
+
needTabLoop = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
|
|
68
|
+
_focusScopeProps$enab = focusScopeProps.enableEnterAction,
|
|
69
|
+
enableEnterAction = _focusScopeProps$enab === void 0 ? false : _focusScopeProps$enab;
|
|
70
|
+
var createRef = (0, _react.useRef)(null);
|
|
71
|
+
var handleKeyDown = (0, _react.useCallback)(function (e) {
|
|
72
|
+
onKeyDown && onKeyDown(e);
|
|
73
|
+
}, [onKeyDown]);
|
|
74
|
+
useEffect(function () {
|
|
75
|
+
if (isActive) {
|
|
76
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
77
|
+
} else {
|
|
78
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
79
|
+
}
|
|
80
|
+
}, [isActive]);
|
|
81
|
+
useEffect(function () {
|
|
82
|
+
return function () {
|
|
83
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
84
|
+
};
|
|
85
|
+
}, []);
|
|
86
|
+
|
|
87
|
+
var content = /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
+
ref: createRef,
|
|
89
|
+
tabIndex: "-1",
|
|
90
|
+
"data-a11y-need-focus-style": "false",
|
|
91
|
+
role: role,
|
|
92
|
+
"aria-labelledby": ariaLabelledby,
|
|
93
|
+
"aria-describedby": ariaDescribedby,
|
|
94
|
+
"aria-modal": ariaModal,
|
|
95
|
+
id: htmlId,
|
|
96
|
+
className: "".concat(_LookupModule["default"].box, " ").concat(_LookupModule["default"]["".concat(size, "Size")]),
|
|
97
|
+
"data-id": dataId,
|
|
98
|
+
"data-test-id": dataId
|
|
99
|
+
}, children);
|
|
100
|
+
|
|
101
|
+
return /*#__PURE__*/_react["default"].createElement(_FreezeLayer["default"], {
|
|
102
|
+
align: "horizontal",
|
|
103
|
+
animationName: "fade",
|
|
104
|
+
childAnimationName: childAnimationName,
|
|
105
|
+
isActive: isActive,
|
|
106
|
+
palette: "snow",
|
|
107
|
+
forwardRef: forwardRef,
|
|
108
|
+
onClick: onClick,
|
|
109
|
+
customClass: customClass
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
111
|
+
alignBox: "row",
|
|
112
|
+
className: _LookupModule["default"].container,
|
|
113
|
+
dataId: "fldValue"
|
|
114
|
+
}, needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
115
|
+
needTabLoop: needTabLoop,
|
|
116
|
+
needArrowLoop: needArrowLoop,
|
|
117
|
+
elementRef: createRef,
|
|
118
|
+
autoFocus: autoFocus,
|
|
119
|
+
restoreFocus: restoreFocus,
|
|
120
|
+
onClose: onClose,
|
|
121
|
+
enableEnterAction: enableEnterAction
|
|
122
|
+
}, content) : content));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
Lookup.propTypes = _propTypes.propTypes;
|
|
126
|
+
Lookup.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
127
|
+
// Lookup.docs = {
|
|
128
|
+
// componentGroup: 'Lookup'
|
|
129
|
+
// };
|
|
130
|
+
// }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = Table;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../../../setup/table/Table/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../../setup/table/Table/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function Table(props) {
|
|
19
|
+
var children = props.children,
|
|
20
|
+
dataId = props.dataId,
|
|
21
|
+
customClass = props.customClass;
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
23
|
+
dataId: dataId,
|
|
24
|
+
className: customClass
|
|
25
|
+
}, children);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
Table.propTypes = _propTypes.propTypes;
|
|
29
|
+
Table.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
30
|
+
// Table.docs = {
|
|
31
|
+
// componentGroup: 'Table',
|
|
32
|
+
// folderName: 'Setup'
|
|
33
|
+
// };
|
|
34
|
+
// }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = TableBody;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../../../setup/table/TableBody/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../../setup/table/TableBody/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function TableBody(props) {
|
|
19
|
+
var children = props.children,
|
|
20
|
+
eleRef = props.eleRef,
|
|
21
|
+
_props$onScroll = props.onScroll,
|
|
22
|
+
onScroll = _props$onScroll === void 0 ? function () {} : _props$onScroll,
|
|
23
|
+
customClass = props.customClass;
|
|
24
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
25
|
+
eleRef: eleRef,
|
|
26
|
+
flexible: true,
|
|
27
|
+
scroll: "vertical",
|
|
28
|
+
onScroll: onScroll,
|
|
29
|
+
className: customClass
|
|
30
|
+
}, children);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
TableBody.propTypes = _propTypes.propTypes;
|
|
34
|
+
TableBody.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
35
|
+
// TableBody.docs = {
|
|
36
|
+
// componentGroup: 'Table',
|
|
37
|
+
// folderName: 'Setup'
|
|
38
|
+
// };
|
|
39
|
+
// }
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = TableData;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _defaultProps = require("../../../../setup/table/TableData/props/defaultProps");
|
|
11
|
+
|
|
12
|
+
var _propTypes = require("../../../../setup/table/TableData/props/propTypes");
|
|
13
|
+
|
|
14
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
15
|
+
|
|
16
|
+
var _SetupTableDataModule = _interopRequireDefault(require("../../../../setup/table/TableData/SetupTableData.module.css"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function TableData(props) {
|
|
21
|
+
var children = props.children,
|
|
22
|
+
flexible = props.flexible,
|
|
23
|
+
shrink = props.shrink,
|
|
24
|
+
align = props.align,
|
|
25
|
+
type = props.type,
|
|
26
|
+
dataId = props.dataId,
|
|
27
|
+
customClass = props.customClass,
|
|
28
|
+
eleRef = props.eleRef;
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
30
|
+
dataId: dataId,
|
|
31
|
+
flexible: flexible,
|
|
32
|
+
shrink: shrink,
|
|
33
|
+
eleRef: eleRef,
|
|
34
|
+
className: "".concat(customClass, " ").concat(_SetupTableDataModule["default"].container, " ").concat(type ? _SetupTableDataModule["default"][type] : '', " ").concat(align ? _SetupTableDataModule["default"][align] ? _SetupTableDataModule["default"][align] : '' : '')
|
|
35
|
+
}, children);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
TableData.defaultProps = _defaultProps.defaultProps;
|
|
39
|
+
TableData.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
40
|
+
// TableData.docs = {
|
|
41
|
+
// componentGroup: 'Table',
|
|
42
|
+
// folderName: 'Setup'
|
|
43
|
+
// };
|
|
44
|
+
// }
|