@zohodesk/dot 1.2.3 → 1.3.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/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +13 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/index.html +1 -1
- package/es/Drawer/Drawer.js +13 -12
- package/es/lookup/Lookup/Lookup.js +10 -10
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
- package/es/v1/Attachment/Attachment.js +1 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/es/v1/Drawer/Drawer.js +16 -16
- package/es/v1/FlipCard/FlipCard.js +4 -4
- package/es/v1/FormAction/FormAction.js +1 -1
- package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/es/v1/IconButton/IconButton.js +3 -3
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +1 -1
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +1 -1
- package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
- package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
- package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
- package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
- package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
- package/es/v1/form/fields/DateField/DateField.js +131 -162
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
- package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
- package/es/v1/form/fields/RadioField/RadioField.js +2 -2
- package/es/v1/form/fields/SelectField/SelectField.js +3 -3
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
- package/es/v1/list/Comment/Comment.js +25 -32
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
- package/es/v1/list/Dot/Dot.js +9 -16
- package/es/v1/list/DotNew/DotNew.js +11 -18
- package/es/v1/list/GridStencils/GridStencils.js +21 -24
- package/es/v1/list/Icons/AddNewIcon.js +19 -22
- package/es/v1/list/Icons/CompleteIcon.js +21 -24
- package/es/v1/list/Icons/DeleteIcon.js +22 -25
- package/es/v1/list/Icons/EditIcon.js +22 -25
- package/es/v1/list/Icons/FloatingIcons.js +12 -19
- package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
- package/es/v1/list/Icons/SmartIcon.js +20 -23
- package/es/v1/list/ListLayout/ListLayout.js +54 -68
- package/es/v1/list/ListStencils/ListStencils.js +28 -31
- package/es/v1/list/SecondaryText/AccountName.js +1 -1
- package/es/v1/list/SecondaryText/ContactName.js +1 -1
- package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
- package/es/v1/list/Thread/Thread.js +1 -1
- package/es/v1/list/UserTime/UserTime.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +14 -13
- package/es/v1/lookup/Section/Section.js +1 -1
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/es/v1/lookup/header/Search/Search.js +3 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/es/v1/setup/header/Button/Button.js +1 -1
- package/es/v1/setup/header/Link/Link.js +1 -1
- package/es/v1/setup/header/Search/Search.js +1 -1
- package/es/v1/setup/table/Table/Table.js +1 -1
- package/es/v1/setup/table/TableBody/TableBody.js +1 -1
- package/es/v1/setup/table/TableData/TableData.js +1 -1
- package/es/v1/setup/table/TableHead/TableHead.js +1 -1
- package/es/v1/setup/table/TableRow/TableRow.js +1 -1
- package/lib/Drawer/Drawer.js +18 -17
- package/lib/lookup/Lookup/Lookup.js +15 -15
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +2 -4
- package/lib/v1/Attachment/Attachment.js +1 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
- package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
- package/lib/v1/Drawer/Drawer.js +21 -21
- package/lib/v1/FlipCard/FlipCard.js +4 -4
- package/lib/v1/FormAction/FormAction.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
- package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
- package/lib/v1/IconButton/IconButton.js +3 -3
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +1 -1
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +1 -1
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +1 -1
- package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
- package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
- package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
- package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
- package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
- package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +107 -159
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +152 -193
- package/lib/v1/form/fields/DateField/DateField.js +140 -206
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +168 -228
- package/lib/v1/form/fields/PhoneField/PhoneField.js +150 -193
- package/lib/v1/form/fields/RadioField/RadioField.js +2 -2
- package/lib/v1/form/fields/SelectField/SelectField.js +3 -3
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
- package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
- package/lib/v1/list/Comment/Comment.js +24 -69
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
- package/lib/v1/list/Dot/Dot.js +9 -54
- package/lib/v1/list/DotNew/DotNew.js +11 -56
- package/lib/v1/list/GridStencils/GridStencils.js +21 -62
- package/lib/v1/list/Icons/AddNewIcon.js +19 -60
- package/lib/v1/list/Icons/CompleteIcon.js +21 -62
- package/lib/v1/list/Icons/DeleteIcon.js +22 -63
- package/lib/v1/list/Icons/EditIcon.js +22 -63
- package/lib/v1/list/Icons/FloatingIcons.js +17 -62
- package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
- package/lib/v1/list/Icons/SmartIcon.js +20 -65
- package/lib/v1/list/ListLayout/ListLayout.js +53 -116
- package/lib/v1/list/ListStencils/ListStencils.js +33 -72
- package/lib/v1/list/SecondaryText/AccountName.js +1 -1
- package/lib/v1/list/SecondaryText/ContactName.js +1 -1
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
- package/lib/v1/list/Thread/Thread.js +1 -1
- package/lib/v1/list/UserTime/UserTime.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/lib/v1/lookup/Lookup/Lookup.js +20 -18
- package/lib/v1/lookup/Section/Section.js +1 -1
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/v1/lookup/header/Search/Search.js +3 -3
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
- package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
- package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
- package/lib/v1/setup/header/Button/Button.js +1 -1
- package/lib/v1/setup/header/Link/Link.js +1 -1
- package/lib/v1/setup/header/Search/Search.js +1 -1
- package/lib/v1/setup/table/Table/Table.js +1 -1
- package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
- package/lib/v1/setup/table/TableData/TableData.js +1 -1
- package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
- package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
- package/package.json +11 -11
- package/result.json +1 -1
- package/es/v1/errorstate/LinkText/LinkText.js +0 -29
- package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
- package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
- package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
- package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
- package/es/v1/errorstate/WillBack/WillBack.js +0 -75
- package/es/v1/errorstate/index.js +0 -8
- package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
- package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/version2/index.js +0 -12
- package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
- package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
- package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
- package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
- package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
- package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
- package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
- package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
- package/lib/v1/errorstate/index.js +0 -71
- package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
- package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/version2/index.js +0 -58
- package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
- package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
- /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
- /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
|
@@ -2,16 +2,16 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { defaultProps } from '
|
|
6
|
-
import { propTypes } from '
|
|
7
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
+
import { defaultProps } from './../../../../list/status/StatusListItem/props/defaultProps';
|
|
6
|
+
import { propTypes } from './../../../../list/status/StatusListItem/props/propTypes';
|
|
7
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
8
8
|
/**** Components ****/
|
|
9
9
|
|
|
10
10
|
import { Icon } from '@zohodesk/icons';
|
|
11
|
-
import CssProvider from '@zohodesk/components/
|
|
11
|
+
import CssProvider from '@zohodesk/components/es/v1/Provider/CssProvider';
|
|
12
12
|
/**** CSS ****/
|
|
13
13
|
|
|
14
|
-
import style from '
|
|
14
|
+
import style from './../../../../list/status/StatusListItem/StatusListItem.module.css';
|
|
15
15
|
export default class StatusListItem extends React.Component {
|
|
16
16
|
constructor(props) {
|
|
17
17
|
super(props);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*** Libraries ***/
|
|
2
|
-
import React, { useRef, useCallback } from 'react';
|
|
2
|
+
import React, { useRef, useCallback, useEffect } from 'react';
|
|
3
|
+
import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
|
|
3
4
|
import { defaultProps } from '../../../lookup/Lookup/props/defaultProps';
|
|
4
5
|
import { propTypes } from '../../../lookup/Lookup/props/propTypes';
|
|
5
6
|
/*** Components ***/
|
|
6
7
|
|
|
7
8
|
import FreezeLayer from '../../../FreezeLayer/FreezeLayer';
|
|
8
|
-
import { Container } from '@zohodesk/components/
|
|
9
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
9
10
|
import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
|
|
10
11
|
/*** CSS ***/
|
|
11
12
|
|
|
@@ -40,17 +41,17 @@ export default function Lookup(props) {
|
|
|
40
41
|
focusScopeProps = {}
|
|
41
42
|
} = customProps;
|
|
42
43
|
const {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
needAutoFocus = true,
|
|
45
|
+
needRestoreFocus = true,
|
|
46
|
+
needListNavigation = false,
|
|
47
|
+
needFocusLoop = true,
|
|
48
|
+
needEnterAction = false
|
|
48
49
|
} = focusScopeProps;
|
|
49
50
|
const createRef = useRef(null);
|
|
50
51
|
const handleKeyDown = useCallback(e => {
|
|
51
52
|
onKeyDown && onKeyDown(e);
|
|
52
53
|
}, [onKeyDown]);
|
|
53
|
-
|
|
54
|
+
useEffectCallOnlyAfterState(() => {
|
|
54
55
|
if (isActive) {
|
|
55
56
|
document.addEventListener('keydown', handleKeyDown);
|
|
56
57
|
} else {
|
|
@@ -90,13 +91,13 @@ export default function Lookup(props) {
|
|
|
90
91
|
className: style.container,
|
|
91
92
|
dataId: "fldValue"
|
|
92
93
|
}, needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
needFocusLoop: needFocusLoop,
|
|
95
|
+
needListNavigation: needListNavigation,
|
|
95
96
|
elementRef: createRef,
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
needAutoFocus: needAutoFocus,
|
|
98
|
+
needRestoreFocus: needRestoreFocus,
|
|
98
99
|
onClose: onClose,
|
|
99
|
-
|
|
100
|
+
needEnterAction: needEnterAction
|
|
100
101
|
}, content) : content));
|
|
101
102
|
}
|
|
102
103
|
Lookup.propTypes = propTypes;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { propTypes } from '../../../lookup/Section/props/propTypes';
|
|
3
|
-
import { Container, Box } from '@zohodesk/components/
|
|
3
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
4
4
|
import style from '../../../lookup/Section/LookupSection.module.css';
|
|
5
5
|
export default class Section extends Component {
|
|
6
6
|
constructor(props) {
|
|
@@ -7,7 +7,7 @@ import { propTypes } from '../../../../lookup/header/ModuleHeader/props/propType
|
|
|
7
7
|
import Title from '../Title/Title';
|
|
8
8
|
import Close from '../Close/Close';
|
|
9
9
|
import Search from '../Search/Search';
|
|
10
|
-
import { Container, Box } from '@zohodesk/components/
|
|
10
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
11
11
|
/*** CSS ***/
|
|
12
12
|
|
|
13
13
|
import commonStyle from '../../../../lookup/header/lookupHeaderCommon.module.css';
|
|
@@ -8,13 +8,13 @@ import { SearchUI_defaultProps } from '../../../../lookup/header/Search/props/de
|
|
|
8
8
|
import { Search_propTypes, SearchUI_propTypes } from '../../../../lookup/header/Search/props/propTypes';
|
|
9
9
|
/** * Components ** */
|
|
10
10
|
|
|
11
|
-
import TextBoxIcon from '@zohodesk/components/
|
|
12
|
-
import { Container, Box } from '@zohodesk/components/
|
|
11
|
+
import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
|
|
12
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
13
13
|
import { Icon } from '@zohodesk/icons';
|
|
14
14
|
import ToggleDropDown from '../../../../dropdown/ToggleDropDown/ToggleDropDown';
|
|
15
15
|
/** * Methods ** */
|
|
16
16
|
|
|
17
|
-
import { debounce } from '@zohodesk/components/
|
|
17
|
+
import { debounce } from '@zohodesk/components/es/utils/debounce';
|
|
18
18
|
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
19
19
|
/** * CSS ** */
|
|
20
20
|
|
|
@@ -8,7 +8,7 @@ import Title from '../Title/Title';
|
|
|
8
8
|
import Close from '../Close/Close';
|
|
9
9
|
import Search from '../Search/Search';
|
|
10
10
|
import ViewDropDown from '../../../../lookup/header/ViewDropDown/ViewDropDown';
|
|
11
|
-
import { Container, Box } from '@zohodesk/components/
|
|
11
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
12
12
|
/*** CSS ***/
|
|
13
13
|
|
|
14
14
|
import commonStyle from '../../../../lookup/header/lookupHeaderCommon.module.css';
|
|
@@ -4,17 +4,17 @@ import { defaultProps } from '../../../../lookup/header/ViewDropDown/props/defau
|
|
|
4
4
|
import { propTypes } from '../../../../lookup/header/ViewDropDown/props/propTypes';
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import { SelectComponent } from '@zohodesk/components/
|
|
8
|
-
import Popup from '@zohodesk/components/
|
|
9
|
-
import ListItem from '@zohodesk/components/
|
|
10
|
-
import DropDownSearch from '@zohodesk/components/
|
|
11
|
-
import { Card, CardHeader, CardContent } from '@zohodesk/components/
|
|
12
|
-
import ResponsiveDropBox from '@zohodesk/components/
|
|
13
|
-
import { ResponsiveReceiver } from '@zohodesk/components/
|
|
7
|
+
import { SelectComponent } from '@zohodesk/components/es/v1/Select/Select';
|
|
8
|
+
import Popup from '@zohodesk/components/es/v1/Popup/Popup';
|
|
9
|
+
import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
|
|
10
|
+
import DropDownSearch from '@zohodesk/components/es/v1/DropDown/DropDownSearch';
|
|
11
|
+
import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
|
|
12
|
+
import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
|
|
13
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
|
|
14
14
|
/**** Icons ****/
|
|
15
15
|
|
|
16
16
|
import { Icon } from '@zohodesk/icons';
|
|
17
|
-
import { Container, Box } from '@zohodesk/components/
|
|
17
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
18
18
|
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
19
19
|
import style from '../../../../lookup/header/ViewDropDown/ViewDropDown.module.css';
|
|
20
20
|
/* eslint-disable react/forbid-component-props */
|
|
@@ -165,7 +165,8 @@ class DropDown extends SelectComponent {
|
|
|
165
165
|
DropDown.propTypes = propTypes;
|
|
166
166
|
DropDown.defaultProps = defaultProps;
|
|
167
167
|
const ViewDropDown = Popup(DropDown);
|
|
168
|
-
ViewDropDown.defaultProps = DropDown.defaultProps;
|
|
168
|
+
ViewDropDown.defaultProps = DropDown.defaultProps;
|
|
169
|
+
ViewDropDown.propTypes = DropDown.propTypes; // if (__DOCS__) {
|
|
169
170
|
// DropDown.docs = {
|
|
170
171
|
// componentGroup: 'Lookup'
|
|
171
172
|
// };
|
package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import { defaultProps } from '
|
|
5
|
-
import { propTypes, DesktopNotificationUI_propTypes } from '
|
|
6
|
-
import { Container, Box } from '@zohodesk/components/
|
|
7
|
-
import { useZIndex } from '@zohodesk/components/
|
|
4
|
+
import { defaultProps } from '../../../version2/notification/DesktopNotification/props/defaultProps';
|
|
5
|
+
import { propTypes, DesktopNotificationUI_propTypes } from '../../../version2/notification/DesktopNotification/props/propTypes';
|
|
6
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
|
+
import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
|
|
8
8
|
import AutoClose from '../../../actions/AutoClose';
|
|
9
|
-
import Button from '@zohodesk/components/
|
|
9
|
+
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
10
10
|
import FormAction from '../../../FormAction/FormAction';
|
|
11
11
|
import DesktopNotificationHeader from '../DesktopNotificationHeader/DesktopNotificationHeader';
|
|
12
|
-
import style from '
|
|
12
|
+
import style from '../../../version2/notification/DesktopNotification/DesktopNotification.module.css';
|
|
13
13
|
let buttonPaletteObject = {
|
|
14
14
|
success: {
|
|
15
15
|
buttonPalette: 'successFilled'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { defaultProps } from '
|
|
3
|
-
import { propTypes } from '
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
-
import AlertClose from '../../AlertClose/AlertClose';
|
|
6
|
-
import AlertIcons from '../../alertIcons/AlertIcons';
|
|
7
|
-
import style from '
|
|
2
|
+
import { defaultProps } from '../../../version2/notification/DesktopNotificationHeader/props/defaultProps';
|
|
3
|
+
import { propTypes } from '../../../version2/notification/DesktopNotificationHeader/props/propTypes';
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
+
import AlertClose from '../../alert/AlertClose/AlertClose';
|
|
6
|
+
import AlertIcons from '../../alert/alertIcons/AlertIcons';
|
|
7
|
+
import style from '../../../version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css';
|
|
8
8
|
export default function DesktopNotificationHeader(props) {
|
|
9
9
|
let {
|
|
10
10
|
onClose,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../setup/header/Button/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/header/Button/props/propTypes';
|
|
4
|
-
import GenButton from '@zohodesk/components/
|
|
4
|
+
import GenButton from '@zohodesk/components/es/v1/Button/Button';
|
|
5
5
|
import style from '../../../../setup/header/Button/HeaderButton.module.css';
|
|
6
6
|
export default class Button extends React.Component {
|
|
7
7
|
constructor(props) {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { defaultProps } from '../../../../setup/header/Link/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/header/Link/props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import { Box } from '@zohodesk/components/
|
|
5
|
+
import { Box } from '@zohodesk/components/es/v1/Layout';
|
|
6
6
|
import ExternalLink from '../../../ExternalLink/ExternalLink';
|
|
7
7
|
import style from '../../../../setup/header/Link/HeaderLink.module.css';
|
|
8
8
|
export default class Link extends React.Component {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { defaultProps } from '../../../../setup/header/Search/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/header/Search/props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import TextBox from '@zohodesk/components/
|
|
5
|
+
import TextBox from '@zohodesk/components/es/v1/TextBox/TextBox';
|
|
6
6
|
import style from '../../../../setup/header/Search/Search.module.css';
|
|
7
7
|
export default class Search extends React.Component {
|
|
8
8
|
constructor(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../setup/table/Table/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/table/Table/props/propTypes';
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
export default function Table(props) {
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../setup/table/TableBody/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/table/TableBody/props/propTypes';
|
|
4
|
-
import { Box } from '@zohodesk/components/
|
|
4
|
+
import { Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
export default function TableBody(props) {
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../setup/table/TableData/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/table/TableData/props/propTypes';
|
|
4
|
-
import { Box } from '@zohodesk/components/
|
|
4
|
+
import { Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import style from '../../../../setup/table/TableData/SetupTableData.module.css';
|
|
6
6
|
export default function TableData(props) {
|
|
7
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../setup/table/TableHead/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/table/TableHead/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import style from '../../../../setup/table/TableHead/SetupTableHead.module.css';
|
|
6
6
|
export default function TableHead(props) {
|
|
7
7
|
let {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../setup/table/TableRow/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/table/TableRow/props/propTypes';
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import style from '../../../../setup/table/TableRow/SetupTableRow.module.css';
|
|
6
6
|
export default function TableRow(props) {
|
|
7
7
|
let {
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -259,16 +259,16 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
259
259
|
customProps = _this$props4.customProps;
|
|
260
260
|
var _customProps$focusSco = customProps.focusScopeProps,
|
|
261
261
|
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
262
|
-
var _focusScopeProps$
|
|
263
|
-
|
|
264
|
-
_focusScopeProps$
|
|
265
|
-
|
|
266
|
-
_focusScopeProps$
|
|
267
|
-
|
|
268
|
-
_focusScopeProps$
|
|
269
|
-
|
|
270
|
-
_focusScopeProps$
|
|
271
|
-
|
|
262
|
+
var _focusScopeProps$need = focusScopeProps.needAutoFocus,
|
|
263
|
+
needAutoFocus = _focusScopeProps$need === void 0 ? true : _focusScopeProps$need,
|
|
264
|
+
_focusScopeProps$need2 = focusScopeProps.needRestoreFocus,
|
|
265
|
+
needRestoreFocus = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
|
|
266
|
+
_focusScopeProps$need3 = focusScopeProps.needListNavigation,
|
|
267
|
+
needListNavigation = _focusScopeProps$need3 === void 0 ? false : _focusScopeProps$need3,
|
|
268
|
+
_focusScopeProps$need4 = focusScopeProps.needFocusLoop,
|
|
269
|
+
needFocusLoop = _focusScopeProps$need4 === void 0 ? true : _focusScopeProps$need4,
|
|
270
|
+
_focusScopeProps$need5 = focusScopeProps.needEnterAction,
|
|
271
|
+
needEnterAction = _focusScopeProps$need5 === void 0 ? false : _focusScopeProps$need5;
|
|
272
272
|
|
|
273
273
|
var childrenWithProps = _react["default"].Children.map(children, function (child) {
|
|
274
274
|
if (child.type === Header || child.type === Footer || child.type === Content) {
|
|
@@ -309,12 +309,12 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
309
309
|
flexible: true
|
|
310
310
|
}, subDrawerChildren))))) : null, needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
311
311
|
elementRef: this.createRef,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
312
|
+
needAutoFocus: needAutoFocus,
|
|
313
|
+
needFocusLoop: needFocusLoop,
|
|
314
|
+
needRestoreFocus: needRestoreFocus,
|
|
315
|
+
needListNavigation: needListNavigation,
|
|
316
316
|
onClose: onClose,
|
|
317
|
-
|
|
317
|
+
needEnterAction: needEnterAction
|
|
318
318
|
}, content) : content);
|
|
319
319
|
}
|
|
320
320
|
}, {
|
|
@@ -345,6 +345,7 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
345
345
|
customClass = _this$props5.customClass,
|
|
346
346
|
needAutoZindex = _this$props5.needAutoZindex,
|
|
347
347
|
innerPortalName = _this$props5.innerPortalName;
|
|
348
|
+
var zindexNumber = this.getNextIndex();
|
|
348
349
|
return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
349
350
|
query: this.responsiveFunc,
|
|
350
351
|
responsiveId: responsiveId
|
|
@@ -380,8 +381,8 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
380
381
|
scroll: "none",
|
|
381
382
|
eleRef: forwardRef,
|
|
382
383
|
className: "".concat(_DrawerModule["default"].isOverlay, " ").concat(customClass),
|
|
383
|
-
style:
|
|
384
|
-
zIndex: "".concat(
|
|
384
|
+
style: needAutoZindex ? {
|
|
385
|
+
zIndex: "".concat(zindexNumber)
|
|
385
386
|
} : {}
|
|
386
387
|
}, _this2.drawers(uptoTablet, styleByResolutions)));
|
|
387
388
|
});
|
|
@@ -110,16 +110,16 @@ var Lookup = /*#__PURE__*/function (_Component) {
|
|
|
110
110
|
ariaModal = _a11y$ariaModal === void 0 ? isActive ? true : undefined : _a11y$ariaModal;
|
|
111
111
|
var _customProps$focusSco = customProps.focusScopeProps,
|
|
112
112
|
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
113
|
-
var _focusScopeProps$
|
|
114
|
-
|
|
115
|
-
_focusScopeProps$
|
|
116
|
-
|
|
117
|
-
_focusScopeProps$
|
|
118
|
-
|
|
119
|
-
_focusScopeProps$
|
|
120
|
-
|
|
121
|
-
_focusScopeProps$
|
|
122
|
-
|
|
113
|
+
var _focusScopeProps$need = focusScopeProps.needAutoFocus,
|
|
114
|
+
needAutoFocus = _focusScopeProps$need === void 0 ? true : _focusScopeProps$need,
|
|
115
|
+
_focusScopeProps$need2 = focusScopeProps.needRestoreFocus,
|
|
116
|
+
needRestoreFocus = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
|
|
117
|
+
_focusScopeProps$need3 = focusScopeProps.needListNavigation,
|
|
118
|
+
needListNavigation = _focusScopeProps$need3 === void 0 ? false : _focusScopeProps$need3,
|
|
119
|
+
_focusScopeProps$need4 = focusScopeProps.needFocusLoop,
|
|
120
|
+
needFocusLoop = _focusScopeProps$need4 === void 0 ? true : _focusScopeProps$need4,
|
|
121
|
+
_focusScopeProps$need5 = focusScopeProps.needEnterAction,
|
|
122
|
+
needEnterAction = _focusScopeProps$need5 === void 0 ? false : _focusScopeProps$need5;
|
|
123
123
|
|
|
124
124
|
var content = /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
125
|
ref: this.createRef,
|
|
@@ -150,13 +150,13 @@ var Lookup = /*#__PURE__*/function (_Component) {
|
|
|
150
150
|
className: _LookupModule["default"].container,
|
|
151
151
|
dataId: "fldValue"
|
|
152
152
|
}, needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
needFocusLoop: needFocusLoop,
|
|
154
|
+
needListNavigation: needListNavigation,
|
|
155
155
|
elementRef: this.createRef,
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
needAutoFocus: needAutoFocus,
|
|
157
|
+
needRestoreFocus: needRestoreFocus,
|
|
158
158
|
onClose: onClose,
|
|
159
|
-
|
|
159
|
+
needEnterAction: needEnterAction
|
|
160
160
|
}, content) : content));
|
|
161
161
|
}
|
|
162
162
|
}]);
|
|
@@ -11,19 +11,19 @@ var _defaultProps = require("../../ActionButton/props/defaultProps");
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = require("../../ActionButton/props/propTypes");
|
|
13
13
|
|
|
14
|
-
var _Popup = _interopRequireDefault(require("@zohodesk/components/
|
|
14
|
+
var _Popup = _interopRequireDefault(require("@zohodesk/components/es/v1/Popup/Popup"));
|
|
15
15
|
|
|
16
16
|
var _icons = require("@zohodesk/icons");
|
|
17
17
|
|
|
18
|
-
var _Button = _interopRequireDefault(require("@zohodesk/components/
|
|
18
|
+
var _Button = _interopRequireDefault(require("@zohodesk/components/es/v1/Button/Button"));
|
|
19
19
|
|
|
20
|
-
var _Layout = require("@zohodesk/components/
|
|
20
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
21
21
|
|
|
22
|
-
var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/
|
|
22
|
+
var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox"));
|
|
23
23
|
|
|
24
|
-
var _CssProvider = _interopRequireDefault(require("@zohodesk/components/
|
|
24
|
+
var _CssProvider = _interopRequireDefault(require("@zohodesk/components/es/v1/Provider/CssProvider"));
|
|
25
25
|
|
|
26
|
-
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/
|
|
26
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/es/semantic/Button/semanticButton.module.css"));
|
|
27
27
|
|
|
28
28
|
var _ActionButtonModule = _interopRequireDefault(require("../../ActionButton/ActionButton.module.css"));
|
|
29
29
|
|
|
@@ -147,10 +147,12 @@ function ActionButton(props) {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
ActionButton.defaultProps = _defaultProps.defaultProps;
|
|
150
|
-
ActionButton.propTypes = _propTypes.propTypes;
|
|
150
|
+
ActionButton.propTypes = _propTypes.propTypes;
|
|
151
|
+
var ActionButtonComponent = (0, _Popup["default"])(ActionButton);
|
|
152
|
+
ActionButtonComponent.defaultProps = ActionButton.defaultProps;
|
|
153
|
+
ActionButtonComponent.propTypes = ActionButton.propTypes; // ActionButton.docs = {
|
|
151
154
|
// componentGroup: 'Atom'
|
|
152
155
|
// };
|
|
153
156
|
|
|
154
|
-
var _default =
|
|
155
|
-
|
|
157
|
+
var _default = ActionButtonComponent;
|
|
156
158
|
exports["default"] = _default;
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("../../AlphabeticList/props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../AlphabeticList/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Layout = require("@zohodesk/components/
|
|
16
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
17
|
|
|
18
18
|
var _AlphabeticListModule = _interopRequireDefault(require("../../AlphabeticList/AlphabeticList.module.css"));
|
|
19
19
|
|
|
@@ -105,7 +105,5 @@ function AlphabeticListItem(props) {
|
|
|
105
105
|
|
|
106
106
|
AlphabeticListItem.propTypes = _propTypes.AlphabeticListItem_propTypes;
|
|
107
107
|
AlphabeticListItem.defaultProps = _defaultProps.AlphabeticListItem_defaultProps;
|
|
108
|
-
|
|
109
|
-
var _default = /*#__PURE__*/(0, _react.memo)(AlphabeticList);
|
|
110
|
-
|
|
108
|
+
var _default = AlphabeticList;
|
|
111
109
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ var _propTypes = require("../../Attachment/props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _icons = require("@zohodesk/icons");
|
|
17
17
|
|
|
18
|
-
var _Layout = require("@zohodesk/components/
|
|
18
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
19
19
|
|
|
20
20
|
var _Link = _interopRequireDefault(require("../Link/Link"));
|
|
21
21
|
|
|
@@ -13,15 +13,15 @@ var _defaultProps = require("../../AttachmentViewer/props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../AttachmentViewer/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Layout = require("@zohodesk/components/
|
|
16
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
17
|
|
|
18
18
|
var _icons = require("@zohodesk/icons");
|
|
19
19
|
|
|
20
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
20
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
21
21
|
|
|
22
|
-
var _CustomResponsive = require("@zohodesk/components/
|
|
22
|
+
var _CustomResponsive = require("@zohodesk/components/es/v1/Responsive/CustomResponsive");
|
|
23
23
|
|
|
24
|
-
var _IdProvider = require("@zohodesk/components/
|
|
24
|
+
var _IdProvider = require("@zohodesk/components/es/v1/Provider/IdProvider");
|
|
25
25
|
|
|
26
26
|
var _AttachmentImage = _interopRequireDefault(require("./AttachmentImage"));
|
|
27
27
|
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _icons = require("@zohodesk/icons");
|
|
13
13
|
|
|
14
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
14
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
15
15
|
|
|
16
16
|
var _AvatarIcon = _interopRequireDefault(require("../avatar/AvatarIcon/AvatarIcon"));
|
|
17
17
|
|
package/lib/v1/Drawer/Drawer.js
CHANGED
|
@@ -16,21 +16,21 @@ var _defaultProps = require("../../Drawer/props/defaultProps");
|
|
|
16
16
|
|
|
17
17
|
var _propTypes = require("../../Drawer/props/propTypes");
|
|
18
18
|
|
|
19
|
-
var _Layout = require("@zohodesk/components/
|
|
19
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
20
20
|
|
|
21
|
-
var _Card = require("@zohodesk/components/
|
|
21
|
+
var _Card = require("@zohodesk/components/es/v1/Card");
|
|
22
22
|
|
|
23
|
-
var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/components/
|
|
23
|
+
var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/components/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup"));
|
|
24
24
|
|
|
25
|
-
var _CustomResponsive = require("@zohodesk/components/
|
|
25
|
+
var _CustomResponsive = require("@zohodesk/components/es/v1/Responsive/CustomResponsive");
|
|
26
26
|
|
|
27
27
|
var _icons = require("@zohodesk/icons");
|
|
28
28
|
|
|
29
|
-
var _ZindexProvider = require("@zohodesk/components/
|
|
29
|
+
var _ZindexProvider = require("@zohodesk/components/es/v1/Provider/ZindexProvider");
|
|
30
30
|
|
|
31
31
|
var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
|
|
32
32
|
|
|
33
|
-
var _Heading = _interopRequireDefault(require("@zohodesk/components/
|
|
33
|
+
var _Heading = _interopRequireDefault(require("@zohodesk/components/es/v1/Heading/Heading"));
|
|
34
34
|
|
|
35
35
|
var _FreezeLayer = _interopRequireDefault(require("../FreezeLayer/FreezeLayer"));
|
|
36
36
|
|
|
@@ -172,16 +172,16 @@ function Drawer(props) {
|
|
|
172
172
|
customProps = props.customProps;
|
|
173
173
|
var _customProps$focusSco = customProps.focusScopeProps,
|
|
174
174
|
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
175
|
-
var _focusScopeProps$
|
|
176
|
-
|
|
177
|
-
_focusScopeProps$
|
|
178
|
-
|
|
179
|
-
_focusScopeProps$
|
|
180
|
-
|
|
181
|
-
_focusScopeProps$
|
|
182
|
-
|
|
183
|
-
_focusScopeProps$
|
|
184
|
-
|
|
175
|
+
var _focusScopeProps$need = focusScopeProps.needAutoFocus,
|
|
176
|
+
needAutoFocus = _focusScopeProps$need === void 0 ? true : _focusScopeProps$need,
|
|
177
|
+
_focusScopeProps$need2 = focusScopeProps.needRestoreFocus,
|
|
178
|
+
needRestoreFocus = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
|
|
179
|
+
_focusScopeProps$need3 = focusScopeProps.needListNavigation,
|
|
180
|
+
needListNavigation = _focusScopeProps$need3 === void 0 ? false : _focusScopeProps$need3,
|
|
181
|
+
_focusScopeProps$need4 = focusScopeProps.needFocusLoop,
|
|
182
|
+
needFocusLoop = _focusScopeProps$need4 === void 0 ? true : _focusScopeProps$need4,
|
|
183
|
+
_focusScopeProps$need5 = focusScopeProps.needEnterAction,
|
|
184
|
+
needEnterAction = _focusScopeProps$need5 === void 0 ? false : _focusScopeProps$need5;
|
|
185
185
|
|
|
186
186
|
var childrenWithProps = _react["default"].Children.map(children, function (child) {
|
|
187
187
|
if (child.type === Header || child.type === Footer || child.type === Content) {
|
|
@@ -222,12 +222,12 @@ function Drawer(props) {
|
|
|
222
222
|
flexible: true
|
|
223
223
|
}, subDrawerChildren))))) : null, needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
224
224
|
elementRef: contentRef,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
needAutoFocus: needAutoFocus,
|
|
226
|
+
needFocusLoop: needFocusLoop,
|
|
227
|
+
needRestoreFocus: needRestoreFocus,
|
|
228
|
+
needListNavigation: needListNavigation,
|
|
229
229
|
onClose: onClose,
|
|
230
|
-
|
|
230
|
+
needEnterAction: needEnterAction
|
|
231
231
|
}, content) : content);
|
|
232
232
|
}
|
|
233
233
|
|
|
@@ -11,11 +11,11 @@ var _defaultProps = require("../../FlipCard/props/defaultProps");
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = require("../../FlipCard/props/propTypes");
|
|
13
13
|
|
|
14
|
-
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/
|
|
14
|
+
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/es/v1/CheckBox/CheckBox"));
|
|
15
15
|
|
|
16
|
-
var _Layout = require("@zohodesk/components/
|
|
16
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
17
|
|
|
18
|
-
var _AvatarSize = _interopRequireDefault(require("@zohodesk/components/
|
|
18
|
+
var _AvatarSize = _interopRequireDefault(require("@zohodesk/components/es/v1/Provider/AvatarSize"));
|
|
19
19
|
|
|
20
20
|
var _ChannelIcon = _interopRequireDefault(require("../ChannelIcon/ChannelIcon"));
|
|
21
21
|
|
|
@@ -145,5 +145,5 @@ FlipCard.propTypes = _propTypes.propTypes;
|
|
|
145
145
|
FlipCard.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
|
|
146
146
|
// FlipCard.docs = {
|
|
147
147
|
// componentGroup: 'Molecule'
|
|
148
|
-
// };
|
|
148
|
+
// };
|
|
149
149
|
// }
|
|
@@ -12,7 +12,7 @@ var _defaultProps = require("../../FormAction/props/defaultProps");
|
|
|
12
12
|
|
|
13
13
|
var _propTypes = require("../../FormAction/props/propTypes");
|
|
14
14
|
|
|
15
|
-
var _Layout = require("@zohodesk/components/
|
|
15
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
16
16
|
|
|
17
17
|
var _FormActionModule = _interopRequireDefault(require("../../FormAction/FormAction.module.css"));
|
|
18
18
|
|