@zohodesk/dot 1.2.3 → 1.3.0-temp-158
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 +24 -9
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
- 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/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- 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/coverage-final.json +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/Drawer/Drawer.js +13 -12
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/lookup/Lookup/Lookup.js +10 -10
- package/es/v1/ActionButton/ActionButton.js +11 -8
- package/es/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/es/v1/Attachment/Attachment.js +79 -76
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- 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/Image/Image.js +26 -33
- package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/MessageBanner/MessageBanner.js +1 -1
- package/es/v1/NewStar/NewStar.js +1 -1
- package/es/v1/Separator/Separator.js +41 -48
- package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/es/v1/ToastMessage/ToastMessage.js +4 -4
- package/es/v1/Upload/Upload.js +60 -67
- 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 +129 -155
- package/es/v1/form/fields/DateField/DateField.js +132 -163
- 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 +129 -157
- package/es/v1/form/fields/RadioField/RadioField.js +91 -99
- package/es/v1/form/fields/SelectField/SelectField.js +141 -156
- 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 +155 -198
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +110 -126
- 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 +77 -102
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Lookup/Lookup.js +14 -13
- package/es/v1/lookup/Section/Section.js +15 -21
- 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/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/Drawer/Drawer.js +18 -17
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +15 -15
- package/lib/v1/ActionButton/ActionButton.js +11 -9
- package/lib/v1/AlphabeticList/AlphabeticList.js +8 -6
- package/lib/v1/Attachment/Attachment.js +78 -113
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- 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/Image/Image.js +26 -71
- package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
- package/lib/v1/Loader/Loader.js +13 -56
- package/lib/v1/MessageBanner/MessageBanner.js +1 -1
- package/lib/v1/NewStar/NewStar.js +1 -1
- package/lib/v1/Separator/Separator.js +45 -86
- package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +4 -4
- package/lib/v1/Upload/Upload.js +59 -104
- 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 +108 -160
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +153 -194
- package/lib/v1/form/fields/DateField/DateField.js +141 -207
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +169 -229
- package/lib/v1/form/fields/PhoneField/PhoneField.js +151 -194
- package/lib/v1/form/fields/RadioField/RadioField.js +93 -139
- package/lib/v1/form/fields/SelectField/SelectField.js +152 -203
- 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 +161 -254
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +109 -208
- 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 +83 -139
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Lookup/Lookup.js +20 -18
- package/lib/v1/lookup/Section/Section.js +15 -59
- 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/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +13 -13
- package/result.json +1 -1
- package/unittest/index.html +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
package/lib/v1/Upload/Upload.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = Upload;
|
|
9
7
|
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
@@ -15,7 +13,7 @@ var _propTypes = require("../../Upload/props/propTypes");
|
|
|
15
13
|
|
|
16
14
|
var _icons = require("@zohodesk/icons");
|
|
17
15
|
|
|
18
|
-
var _Layout = require("@zohodesk/components/
|
|
16
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
19
17
|
|
|
20
18
|
var _Image = _interopRequireDefault(require("../Image/Image"));
|
|
21
19
|
|
|
@@ -23,106 +21,63 @@ var _UploadModule = _interopRequireDefault(require("../../Upload/Upload.module.c
|
|
|
23
21
|
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
23
|
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
_createClass(Upload, [{
|
|
58
|
-
key: "render",
|
|
59
|
-
value: function render() {
|
|
60
|
-
var _this$props = this.props,
|
|
61
|
-
isPreview = _this$props.isPreview,
|
|
62
|
-
tooltip = _this$props.tooltip,
|
|
63
|
-
dataId = _this$props.dataId,
|
|
64
|
-
dataSelectorId = _this$props.dataSelectorId,
|
|
65
|
-
progressValue = _this$props.progressValue,
|
|
66
|
-
onClick = _this$props.onClick,
|
|
67
|
-
iconName = _this$props.iconName,
|
|
68
|
-
fileSize = _this$props.fileSize,
|
|
69
|
-
imgSrc = _this$props.imgSrc,
|
|
70
|
-
isPreviewType = _this$props.isPreviewType,
|
|
71
|
-
onRemove = _this$props.onRemove,
|
|
72
|
-
size = _this$props.size,
|
|
73
|
-
getRef = _this$props.getRef,
|
|
74
|
-
palette = _this$props.palette;
|
|
75
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
76
|
-
isInline: true,
|
|
77
|
-
className: "".concat(_UploadModule["default"].container, " ").concat(_UploadModule["default"][palette], " ").concat(_UploadModule["default"][size], " ").concat(isPreview ? _UploadModule["default"].preview : '', "\n"),
|
|
78
|
-
dataId: dataId,
|
|
79
|
-
"data-title": tooltip,
|
|
80
|
-
isCover: false,
|
|
81
|
-
eleRef: getRef,
|
|
82
|
-
dataSelectorId: dataSelectorId
|
|
83
|
-
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isPreview ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
-
"data-id": "".concat(dataId, "_attachLoading"),
|
|
85
|
-
"data-test-id": "".concat(dataId, "_attachLoading"),
|
|
86
|
-
className: _UploadModule["default"].loader,
|
|
87
|
-
style: {
|
|
88
|
-
width: "".concat(progressValue, "%")
|
|
89
|
-
}
|
|
90
|
-
}) : null, isPreviewType ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Image["default"], {
|
|
91
|
-
src: imgSrc,
|
|
92
|
-
className: "".concat(_UploadModule["default"].uploadimage, " "),
|
|
93
|
-
alt: "Uploaded Image",
|
|
94
|
-
dataId: "".concat(dataId, "_fileName")
|
|
95
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
-
className: _UploadModule["default"].overlay,
|
|
97
|
-
onClick: onClick
|
|
98
|
-
})) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
99
|
-
className: _UploadModule["default"].attachInfo,
|
|
100
|
-
onClick: onClick,
|
|
101
|
-
dataId: "".concat(dataId, "_openNewTab")
|
|
102
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
103
|
-
name: iconName,
|
|
104
|
-
iconClass: _UploadModule["default"].fileIcon
|
|
105
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
-
className: _UploadModule["default"].attachsize
|
|
107
|
-
}, fileSize))), typeof onRemove !== 'undefined' && onRemove != null ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
|
-
className: _UploadModule["default"].uploadclose,
|
|
109
|
-
onClick: onRemove,
|
|
110
|
-
"data-id": "".concat(dataId, "_deleteUpload"),
|
|
111
|
-
"data-test-id": "".concat(dataId, "_deleteUpload")
|
|
112
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
113
|
-
name: "ZD-close",
|
|
114
|
-
isBold: true
|
|
115
|
-
})) : null);
|
|
24
|
+
function Upload(props) {
|
|
25
|
+
var isPreview = props.isPreview,
|
|
26
|
+
tooltip = props.tooltip,
|
|
27
|
+
dataId = props.dataId,
|
|
28
|
+
dataSelectorId = props.dataSelectorId,
|
|
29
|
+
progressValue = props.progressValue,
|
|
30
|
+
onClick = props.onClick,
|
|
31
|
+
iconName = props.iconName,
|
|
32
|
+
fileSize = props.fileSize,
|
|
33
|
+
imgSrc = props.imgSrc,
|
|
34
|
+
isPreviewType = props.isPreviewType,
|
|
35
|
+
onRemove = props.onRemove,
|
|
36
|
+
size = props.size,
|
|
37
|
+
getRef = props.getRef,
|
|
38
|
+
palette = props.palette;
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
40
|
+
isInline: true,
|
|
41
|
+
className: "".concat(_UploadModule["default"].container, " ").concat(_UploadModule["default"][palette], " ").concat(_UploadModule["default"][size], " ").concat(isPreview ? _UploadModule["default"].preview : '', "\n"),
|
|
42
|
+
dataId: dataId,
|
|
43
|
+
"data-title": tooltip,
|
|
44
|
+
isCover: false,
|
|
45
|
+
eleRef: getRef,
|
|
46
|
+
dataSelectorId: dataSelectorId
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isPreview ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
|
+
"data-id": "".concat(dataId, "_attachLoading"),
|
|
49
|
+
"data-test-id": "".concat(dataId, "_attachLoading"),
|
|
50
|
+
className: _UploadModule["default"].loader,
|
|
51
|
+
style: {
|
|
52
|
+
width: "".concat(progressValue, "%")
|
|
116
53
|
}
|
|
117
|
-
}]
|
|
54
|
+
}) : null, isPreviewType ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Image["default"], {
|
|
55
|
+
src: imgSrc,
|
|
56
|
+
className: "".concat(_UploadModule["default"].uploadimage, " "),
|
|
57
|
+
alt: "Uploaded Image",
|
|
58
|
+
dataId: "".concat(dataId, "_fileName")
|
|
59
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
|
+
className: _UploadModule["default"].overlay,
|
|
61
|
+
onClick: onClick
|
|
62
|
+
})) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
63
|
+
className: _UploadModule["default"].attachInfo,
|
|
64
|
+
onClick: onClick,
|
|
65
|
+
dataId: "".concat(dataId, "_openNewTab")
|
|
66
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
67
|
+
name: iconName,
|
|
68
|
+
iconClass: _UploadModule["default"].fileIcon
|
|
69
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
className: _UploadModule["default"].attachsize
|
|
71
|
+
}, fileSize))), typeof onRemove !== 'undefined' && onRemove != null ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
|
+
className: _UploadModule["default"].uploadclose,
|
|
73
|
+
onClick: onRemove,
|
|
74
|
+
"data-id": "".concat(dataId, "_deleteUpload"),
|
|
75
|
+
"data-test-id": "".concat(dataId, "_deleteUpload")
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
77
|
+
name: "ZD-close",
|
|
78
|
+
isBold: true
|
|
79
|
+
})) : null);
|
|
80
|
+
}
|
|
118
81
|
|
|
119
|
-
return Upload;
|
|
120
|
-
}(_react["default"].Component);
|
|
121
|
-
|
|
122
|
-
exports["default"] = Upload;
|
|
123
82
|
Upload.propTypes = _propTypes.propTypes;
|
|
124
|
-
Upload.defaultProps = _defaultProps.defaultProps;
|
|
125
|
-
// Upload.docs = {
|
|
126
|
-
// componentGroup: 'Upload'
|
|
127
|
-
// };
|
|
128
|
-
// }
|
|
83
|
+
Upload.defaultProps = _defaultProps.defaultProps;
|
|
@@ -13,7 +13,7 @@ var _propTypes = require("../../../version2/AlertClose/props/propTypes");
|
|
|
13
13
|
|
|
14
14
|
var _icons = require("@zohodesk/icons");
|
|
15
15
|
|
|
16
|
-
var _Layout = require("@zohodesk/components/
|
|
16
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
17
|
|
|
18
18
|
var _AlertCloseModule = _interopRequireDefault(require("../../../version2/AlertClose/AlertClose.module.css"));
|
|
19
19
|
|
|
@@ -1,86 +1,104 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = AlertHeader;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
13
|
+
|
|
14
|
+
var _AlertClose = _interopRequireDefault(require("../AlertClose/AlertClose"));
|
|
9
15
|
|
|
10
|
-
var
|
|
16
|
+
var _AlertIcons = _interopRequireDefault(require("../alertIcons/AlertIcons"));
|
|
11
17
|
|
|
12
|
-
var
|
|
18
|
+
var _AlertHeaderNewModule = _interopRequireDefault(require("../../../version2/lookup/AlertHeader/css/AlertHeaderNew.module.css"));
|
|
13
19
|
|
|
14
|
-
var
|
|
20
|
+
var _cssJSLogic2 = _interopRequireDefault(require("../../../version2/lookup/AlertHeader/css/cssJSLogic"));
|
|
15
21
|
|
|
16
|
-
var
|
|
22
|
+
var _utils = require("@zohodesk/utils");
|
|
17
23
|
|
|
18
|
-
var
|
|
24
|
+
var _useDragger = _interopRequireDefault(require("../../../Hooks/Dragger/useDragger"));
|
|
19
25
|
|
|
20
|
-
var
|
|
26
|
+
var _defaultProps = _interopRequireDefault(require("../../../version2/lookup/AlertHeader/props/defaultProps"));
|
|
21
27
|
|
|
22
|
-
var
|
|
28
|
+
var _propTypes = _interopRequireDefault(require("../../../version2/lookup/AlertHeader/props/propTypes"));
|
|
23
29
|
|
|
24
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
31
|
|
|
32
|
+
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); }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
//AlertDependencies
|
|
37
|
+
//CSS
|
|
38
|
+
//customHooks
|
|
39
|
+
//Props
|
|
26
40
|
function AlertHeader(props) {
|
|
27
41
|
var title = props.title,
|
|
28
|
-
palette = props.palette,
|
|
29
42
|
needIcon = props.needIcon,
|
|
30
|
-
iconType = props.iconType,
|
|
31
43
|
onClose = props.onClose,
|
|
32
|
-
iconName = props.iconName,
|
|
33
|
-
iconSize = props.iconSize,
|
|
34
44
|
closeTitle = props.closeTitle,
|
|
35
45
|
children = props.children,
|
|
36
46
|
breakChildren = props.breakChildren,
|
|
37
47
|
dataId = props.dataId,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
type = props.type,
|
|
49
|
+
htmlId = props.htmlId,
|
|
50
|
+
customStyle = props.customStyle,
|
|
51
|
+
dragBoundaryLimit = props.dragBoundaryLimit;
|
|
52
|
+
var finalStyle = (0, _utils.mergeStyle)(_AlertHeaderNewModule["default"], customStyle);
|
|
53
|
+
|
|
54
|
+
var _cssJSLogic = (0, _cssJSLogic2["default"])({
|
|
55
|
+
props: props,
|
|
56
|
+
style: finalStyle
|
|
57
|
+
}),
|
|
58
|
+
alertHeaderContainerClass = _cssJSLogic.alertHeaderContainerClass;
|
|
59
|
+
|
|
60
|
+
var dragRef = (0, _react.useRef)(null); //dragRef
|
|
61
|
+
|
|
62
|
+
(0, _useDragger["default"])({
|
|
63
|
+
isActive: true,
|
|
64
|
+
ChildRef: dragRef,
|
|
65
|
+
boundaryLimit: dragBoundaryLimit
|
|
66
|
+
}); //custom Hook
|
|
67
|
+
|
|
46
68
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
47
69
|
align: "vertical",
|
|
48
70
|
alignBox: "row",
|
|
49
|
-
className: "".concat(
|
|
71
|
+
className: "".concat(alertHeaderContainerClass),
|
|
50
72
|
isCover: false,
|
|
51
|
-
wrap: "wrap"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}))
|
|
73
|
+
wrap: "wrap",
|
|
74
|
+
"data-drag-hook": "true",
|
|
75
|
+
eleRef: dragRef
|
|
76
|
+
}, needIcon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: finalStyle.iconContainer
|
|
78
|
+
}, /*#__PURE__*/_react["default"].createElement(_AlertIcons["default"], {
|
|
79
|
+
type: type
|
|
80
|
+
})), (title || children) && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
59
81
|
flexible: true
|
|
60
82
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
61
83
|
alignBox: "row",
|
|
62
|
-
align: "vertical",
|
|
63
84
|
wrap: breakChildren ? 'wrap' : null
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
65
|
-
className:
|
|
66
|
-
shrink: true
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
palette: palette
|
|
70
|
-
})), children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
85
|
+
}, title && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
86
|
+
className: finalStyle.title,
|
|
87
|
+
shrink: true,
|
|
88
|
+
id: htmlId
|
|
89
|
+
}, title), children && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
71
90
|
adjust: true,
|
|
72
91
|
flexible: true
|
|
73
|
-
}, children)
|
|
92
|
+
}, children))), onClose && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
93
|
+
className: _AlertHeaderNewModule["default"].close
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_AlertClose["default"], {
|
|
74
95
|
onClose: onClose,
|
|
75
|
-
|
|
76
|
-
dataId: "".concat(dataId, "_close")
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// folderName: 'Alert'
|
|
85
|
-
// };
|
|
86
|
-
// }
|
|
96
|
+
dataTitle: closeTitle,
|
|
97
|
+
dataId: "".concat(dataId, "_close"),
|
|
98
|
+
type: "light"
|
|
99
|
+
})));
|
|
100
|
+
} //Props
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
AlertHeader.propTypes = _propTypes["default"];
|
|
104
|
+
AlertHeader.defaultProps = _defaultProps["default"];
|
|
@@ -7,31 +7,57 @@ exports["default"] = AlertLookup;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _defaultProps = require("../../../
|
|
10
|
+
var _defaultProps = require("../../../version2/lookup/AlertLookup/props/defaultProps");
|
|
11
11
|
|
|
12
|
-
var _propTypes = require("../../../
|
|
12
|
+
var _propTypes = require("../../../version2/lookup/AlertLookup/props/propTypes");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _IdProvider = require("@zohodesk/components/es/v1/Provider/IdProvider");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _Button = _interopRequireDefault(require("@zohodesk/components/es/v1/Button/Button"));
|
|
17
|
+
|
|
18
|
+
var _Layout = require("@zohodesk/components/es/v1/Layout");
|
|
17
19
|
|
|
18
|
-
var _Lookup = _interopRequireDefault(require("
|
|
20
|
+
var _Lookup = _interopRequireDefault(require("../../lookup/Lookup/Lookup"));
|
|
21
|
+
|
|
22
|
+
var _AlertHeader = _interopRequireDefault(require("../AlertHeader/AlertHeader"));
|
|
19
23
|
|
|
20
|
-
var _Section = _interopRequireDefault(require("
|
|
24
|
+
var _Section = _interopRequireDefault(require("../../lookup/Section/Section"));
|
|
21
25
|
|
|
22
|
-
var _FormAction = _interopRequireDefault(require("
|
|
26
|
+
var _FormAction = _interopRequireDefault(require("../../FormAction/FormAction"));
|
|
23
27
|
|
|
24
|
-
var
|
|
28
|
+
var _AlertLookupNewModule = _interopRequireDefault(require("../../../version2/lookup/AlertLookup/AlertLookupNew.module.css"));
|
|
25
29
|
|
|
26
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
31
|
|
|
28
32
|
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
33
|
|
|
34
|
+
var buttonPaletteObject = {
|
|
35
|
+
success: {
|
|
36
|
+
buttonPalette: 'successFilled'
|
|
37
|
+
},
|
|
38
|
+
error: {
|
|
39
|
+
buttonPalette: 'dangerFilled'
|
|
40
|
+
},
|
|
41
|
+
danger: {
|
|
42
|
+
buttonPalette: 'dangerFilled'
|
|
43
|
+
},
|
|
44
|
+
warning: {
|
|
45
|
+
buttonPalette: 'dangerFilled'
|
|
46
|
+
},
|
|
47
|
+
info: {
|
|
48
|
+
buttonPalette: 'primaryFilled'
|
|
49
|
+
},
|
|
50
|
+
notification: {
|
|
51
|
+
buttonPalette: 'primaryFilled'
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
30
55
|
function AlertLookup(props) {
|
|
56
|
+
var getAriaId = (0, _IdProvider.useUniqueId)();
|
|
31
57
|
var isActive = props.isActive,
|
|
32
|
-
palette = props.palette,
|
|
33
58
|
size = props.size,
|
|
34
|
-
type = props.type,
|
|
59
|
+
_props$type = props.type,
|
|
60
|
+
type = _props$type === void 0 ? 'danger' : _props$type,
|
|
35
61
|
title = props.title,
|
|
36
62
|
message = props.message,
|
|
37
63
|
confirmationMessage = props.confirmationMessage,
|
|
@@ -44,16 +70,18 @@ function AlertLookup(props) {
|
|
|
44
70
|
onClose = props.onClose,
|
|
45
71
|
headerChildren = props.headerChildren,
|
|
46
72
|
wrapHeader = props.wrapHeader,
|
|
47
|
-
sectionClassName = props.sectionClassName,
|
|
48
73
|
dataId = props.dataId,
|
|
49
74
|
onLookupClick = props.onLookupClick,
|
|
50
|
-
customClass = props.customClass,
|
|
75
|
+
_props$customClass = props.customClass,
|
|
76
|
+
customClass = _props$customClass === void 0 ? {} : _props$customClass,
|
|
51
77
|
needIcon = props.needIcon,
|
|
52
|
-
|
|
53
|
-
iconClass = props.iconClass,
|
|
54
|
-
iconSize = props.iconSize,
|
|
78
|
+
a11y = props.a11y,
|
|
55
79
|
customProps = props.customProps,
|
|
80
|
+
align = props.align,
|
|
81
|
+
childAnimationName = props.childAnimationName,
|
|
56
82
|
isHtmlContent = props.isHtmlContent,
|
|
83
|
+
scroll = props.scroll,
|
|
84
|
+
isDefaultFocus = props.isDefaultFocus,
|
|
57
85
|
onEsc = props.onEsc;
|
|
58
86
|
var _customProps$LookupPr = customProps.LookupProps,
|
|
59
87
|
LookupProps = _customProps$LookupPr === void 0 ? {} : _customProps$LookupPr,
|
|
@@ -63,56 +91,95 @@ function AlertLookup(props) {
|
|
|
63
91
|
PrimaryButtonProps = _customProps$PrimaryB === void 0 ? {} : _customProps$PrimaryB,
|
|
64
92
|
_customProps$Secondar = customProps.SecondaryButtonProps,
|
|
65
93
|
SecondaryButtonProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
|
|
94
|
+
var _customClass$containe = customClass.containerClass,
|
|
95
|
+
containerClass = _customClass$containe === void 0 ? '' : _customClass$containe,
|
|
96
|
+
_customClass$sectionC = customClass.sectionClass,
|
|
97
|
+
sectionClass = _customClass$sectionC === void 0 ? '' : _customClass$sectionC;
|
|
98
|
+
|
|
99
|
+
var _ref = buttonPaletteObject[type] || {},
|
|
100
|
+
_ref$buttonPalette = _ref.buttonPalette,
|
|
101
|
+
buttonPalette = _ref$buttonPalette === void 0 ? 'dangerFilled' : _ref$buttonPalette;
|
|
102
|
+
|
|
103
|
+
var ariaMessageId = getAriaId();
|
|
104
|
+
var ariaConfirmMsgId = getAriaId();
|
|
105
|
+
var ariaTitleId = getAriaId();
|
|
106
|
+
var ariaLeaveButtonId = getAriaId();
|
|
107
|
+
var ariaStayButtonId = getAriaId();
|
|
108
|
+
a11y = {
|
|
109
|
+
ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
|
|
110
|
+
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
111
|
+
};
|
|
66
112
|
return /*#__PURE__*/_react["default"].createElement(_Lookup["default"], _extends({
|
|
67
|
-
needFocusScope: true,
|
|
68
113
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
114
|
+
needFocusScope: true,
|
|
69
115
|
isActive: isActive,
|
|
70
116
|
size: size,
|
|
71
117
|
dataId: dataId,
|
|
72
118
|
forwardRef: forwardRef,
|
|
73
119
|
onClick: onLookupClick,
|
|
74
|
-
customClass:
|
|
75
|
-
|
|
120
|
+
customClass: containerClass,
|
|
121
|
+
a11y: a11y,
|
|
122
|
+
childAnimationName: childAnimationName
|
|
123
|
+
}, LookupProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
124
|
+
alignBox: "row",
|
|
125
|
+
align: align,
|
|
126
|
+
wrap: "wrap"
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement(_Section["default"], {
|
|
128
|
+
alignBox: "row",
|
|
129
|
+
className: _AlertLookupNewModule["default"].section
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
131
|
+
alignBox: "column"
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_AlertHeader["default"], _extends({
|
|
133
|
+
htmlId: ariaTitleId,
|
|
76
134
|
title: title,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
needIcon: Boolean(type) || needIcon,
|
|
135
|
+
type: type,
|
|
136
|
+
needIcon: needIcon,
|
|
80
137
|
onClose: onClose,
|
|
81
|
-
breakChildren: wrapHeader
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
iconSize: iconSize
|
|
85
|
-
}, AlertHeaderProps), headerChildren ? headerChildren() : null), /*#__PURE__*/_react["default"].createElement(_Section["default"], {
|
|
86
|
-
alignBox: "row",
|
|
87
|
-
className: _AlertLookupModule["default"].section
|
|
138
|
+
breakChildren: wrapHeader
|
|
139
|
+
}, AlertHeaderProps), headerChildren ? headerChildren() : null)), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
140
|
+
flexible: true
|
|
88
141
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
-
className: "".concat(
|
|
142
|
+
className: "".concat(_AlertLookupNewModule["default"].innerSection, " ").concat(_AlertLookupNewModule["default"]["".concat(scroll, "Scroll")] ? _AlertLookupNewModule["default"]["".concat(scroll, "Scroll")] : '', " ").concat(sectionClass)
|
|
90
143
|
}, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isHtmlContent && message ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
+
id: ariaMessageId,
|
|
91
145
|
dangerouslySetInnerHTML: {
|
|
92
146
|
__html: message
|
|
93
147
|
}
|
|
94
|
-
}) : /*#__PURE__*/_react["default"].createElement("div",
|
|
95
|
-
|
|
96
|
-
},
|
|
148
|
+
}) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
+
id: ariaMessageId
|
|
150
|
+
}, message), confirmationMessage && /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
+
id: ariaConfirmMsgId,
|
|
152
|
+
className: "".concat(message ? _AlertLookupNewModule["default"].confirmMsgText : '')
|
|
153
|
+
}, confirmationMessage)))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
+
className: _AlertLookupNewModule["default"].footer
|
|
155
|
+
}, /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
|
|
97
156
|
size: "small",
|
|
98
|
-
paddingLeftSize: "
|
|
157
|
+
paddingLeftSize: "xmedium"
|
|
99
158
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
|
|
100
159
|
text: submitText,
|
|
101
160
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : "".concat(dataId, "_confirmButton"),
|
|
102
161
|
onClick: onSubmitClick,
|
|
103
|
-
palette:
|
|
104
|
-
|
|
162
|
+
palette: buttonPalette,
|
|
163
|
+
customProps: {
|
|
164
|
+
'data-a11y-autofocus': isDefaultFocus
|
|
165
|
+
}
|
|
166
|
+
}, PrimaryButtonProps, {
|
|
167
|
+
a11y: {
|
|
168
|
+
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
|
|
169
|
+
},
|
|
170
|
+
id: ariaLeaveButtonId
|
|
171
|
+
})), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
|
|
105
172
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : "".concat(dataId, "_cancelButton"),
|
|
106
173
|
text: cancelText,
|
|
107
174
|
onClick: onCancelClick,
|
|
108
175
|
palette: "secondary"
|
|
109
|
-
}, SecondaryButtonProps
|
|
176
|
+
}, SecondaryButtonProps, {
|
|
177
|
+
a11y: {
|
|
178
|
+
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
|
|
179
|
+
},
|
|
180
|
+
id: ariaStayButtonId
|
|
181
|
+
}))))) : null))));
|
|
110
182
|
}
|
|
111
183
|
|
|
112
184
|
AlertLookup.propTypes = _propTypes.propTypes;
|
|
113
|
-
AlertLookup.defaultProps = _defaultProps.defaultProps;
|
|
114
|
-
// AlertLookup.docs = {
|
|
115
|
-
// componentGroup: 'AlertLookup',
|
|
116
|
-
// folderName: 'Alert'
|
|
117
|
-
// };
|
|
118
|
-
// }
|
|
185
|
+
AlertLookup.defaultProps = _defaultProps.defaultProps;
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("../../../avatar/AvatarClose/props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../../avatar/AvatarClose/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
17
17
|
|
|
18
18
|
var _icons = require("@zohodesk/icons");
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("../../../avatar/AvatarCollision/props/defaultProps"
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../../avatar/AvatarCollision/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
17
17
|
|
|
18
18
|
var _icons = require("@zohodesk/icons");
|
|
19
19
|
|
|
@@ -15,9 +15,9 @@ var _propTypes = require("../../../avatar/AvatarIcon/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
|
-
var _AvatarSize = _interopRequireDefault(require("@zohodesk/components/
|
|
20
|
+
var _AvatarSize = _interopRequireDefault(require("@zohodesk/components/es/v1/Provider/AvatarSize"));
|
|
21
21
|
|
|
22
22
|
var _AvatarIconModule = _interopRequireDefault(require("../../../avatar/AvatarIcon/AvatarIcon.module.css"));
|
|
23
23
|
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("../../../avatar/AvatarStatus/props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../../avatar/AvatarStatus/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
17
17
|
|
|
18
18
|
var _AvatarStatusModule = _interopRequireDefault(require("../../../avatar/AvatarStatus/AvatarStatus.module.css"));
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("../../../avatar/AvatarThread/props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../../avatar/AvatarThread/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
17
17
|
|
|
18
18
|
var _icons = require("@zohodesk/icons");
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("../../../avatar/AvatarUser/props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("../../../avatar/AvatarUser/props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Avatar = _interopRequireDefault(require("@zohodesk/components/
|
|
16
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/v1/Avatar/Avatar"));
|
|
17
17
|
|
|
18
18
|
var _AvatarIcon = _interopRequireDefault(require("../AvatarIcon/AvatarIcon"));
|
|
19
19
|
|