@zohodesk/dot 1.2.4 → 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 +20 -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 +16 -12
- package/coverage/coverage-summary.json +17 -13
- package/coverage/index.html +40 -10
- package/es/Drawer/Drawer.js +3 -2
- 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/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 +6 -6
- 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 +4 -3
- 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 +3 -2
- 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/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 +6 -6
- 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 +5 -3
- 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 +10 -10
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { AttachmentViewer_defaultProps } from '../../AttachmentViewer/props/defaultProps';
|
|
3
3
|
import { AttachmentViewer_propTypes } from '../../AttachmentViewer/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
|
-
import Avatar from '@zohodesk/components/
|
|
7
|
-
import { ResponsiveReceiver } from '@zohodesk/components/
|
|
8
|
-
import { getUniqueId } from '@zohodesk/components/
|
|
6
|
+
import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
|
|
7
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
|
|
8
|
+
import { getUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
|
|
9
9
|
import AttachmentImage from './AttachmentImage';
|
|
10
10
|
import Link from '../Link/Link';
|
|
11
11
|
import IconButton from '../IconButton/IconButton';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { Icon } from '@zohodesk/icons';
|
|
3
|
-
import Avatar from '@zohodesk/components/
|
|
3
|
+
import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
|
|
4
4
|
import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
|
|
5
5
|
import { defaultProps } from '../../ChannelIcon/props/defaultProps';
|
|
6
6
|
import { propTypes } from '../../ChannelIcon/props/propTypes';
|
package/es/v1/Drawer/Drawer.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from '../../Drawer/props/defaultProps';
|
|
3
3
|
import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from '../../Drawer/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
-
import { Card, CardHeader, CardContent } from '@zohodesk/components/
|
|
6
|
-
import VelocityAnimationGroup from '@zohodesk/components/
|
|
7
|
-
import { ResponsiveSender, ResponsiveReceiver } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
|
+
import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
|
|
6
|
+
import VelocityAnimationGroup from '@zohodesk/components/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
7
|
+
import { ResponsiveSender, ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
|
|
8
8
|
import { Icon } from '@zohodesk/icons';
|
|
9
|
-
import { useZIndex } from '@zohodesk/components/
|
|
9
|
+
import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
|
|
10
10
|
import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
|
|
11
|
-
import Heading from '@zohodesk/components/
|
|
11
|
+
import Heading from '@zohodesk/components/es/v1/Heading/Heading';
|
|
12
12
|
import FreezeLayer from '../FreezeLayer/FreezeLayer';
|
|
13
13
|
import FormAction from '../FormAction/FormAction';
|
|
14
14
|
import IconButton from '../IconButton/IconButton';
|
|
@@ -3,9 +3,9 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { defaultProps } from '../../FlipCard/props/defaultProps';
|
|
5
5
|
import { propTypes } from '../../FlipCard/props/propTypes';
|
|
6
|
-
import CheckBox from '@zohodesk/components/
|
|
7
|
-
import { Container } from '@zohodesk/components/
|
|
8
|
-
import AvatarSize from '@zohodesk/components/
|
|
6
|
+
import CheckBox from '@zohodesk/components/es/v1/CheckBox/CheckBox';
|
|
7
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
8
|
+
import AvatarSize from '@zohodesk/components/es/v1/Provider/AvatarSize';
|
|
9
9
|
import ChannelIcon from '../ChannelIcon/ChannelIcon';
|
|
10
10
|
import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
|
|
11
11
|
import AvatarUser from '../avatar/AvatarUser/AvatarUser';
|
|
@@ -126,5 +126,5 @@ FlipCard.propTypes = propTypes;
|
|
|
126
126
|
FlipCard.defaultProps = defaultProps; // if (__DOCS__) {
|
|
127
127
|
// FlipCard.docs = {
|
|
128
128
|
// componentGroup: 'Molecule'
|
|
129
|
-
// };
|
|
129
|
+
// };
|
|
130
130
|
// }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../FormAction/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../FormAction/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import style from '../../FormAction/FormAction.module.css';
|
|
6
6
|
export const LeftSide = props => {
|
|
7
7
|
props.children;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../FreezeLayer/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../FreezeLayer/props/propTypes';
|
|
4
|
-
import { Container } from '@zohodesk/components/
|
|
4
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import { mergeStyle } from '@zohodesk/utils';
|
|
6
|
-
import VelocityAnimationGroup from '@zohodesk/components/
|
|
7
|
-
import { useZIndex } from '@zohodesk/components/
|
|
6
|
+
import VelocityAnimationGroup from '@zohodesk/components/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
7
|
+
import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
|
|
8
8
|
import cssJSLogic from '../../FreezeLayer/css/cssJSLogic';
|
|
9
9
|
import useFreezeLayer from '../../FreezeLayer/useFreezeLayer';
|
|
10
10
|
import style from '../../FreezeLayer/css/FreezeLayer.module.css';
|
|
@@ -1,13 +1,13 @@
|
|
|
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, { useEffect } from 'react';
|
|
4
|
-
import { defaultProps } from '
|
|
5
|
-
import { propTypes, UI_propTypes, new_propTypes } from '
|
|
6
|
-
import AutoClose from '
|
|
7
|
-
import AlertIcons from '../alertIcons/AlertIcons';
|
|
8
|
-
import AlertClose from '../AlertClose/AlertClose';
|
|
9
|
-
import { Container, Box } from '@zohodesk/components/
|
|
10
|
-
import style from '
|
|
4
|
+
import { defaultProps } from '../../version2/GlobalNotification/props/defaultProps';
|
|
5
|
+
import { propTypes, UI_propTypes, new_propTypes } from '../../version2/GlobalNotification/props/propTypes';
|
|
6
|
+
import AutoClose from '../../actions/AutoClose';
|
|
7
|
+
import AlertIcons from '../alert/alertIcons/AlertIcons';
|
|
8
|
+
import AlertClose from '../alert/AlertClose/AlertClose';
|
|
9
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
10
|
+
import style from '../../version2/GlobalNotification/GlobalNotification.module.css';
|
|
11
11
|
export default function GlobalNotification(props) {
|
|
12
12
|
let {
|
|
13
13
|
type,
|
|
@@ -4,9 +4,9 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import { defaultProps } from '../../IconButton/props/defaultProps';
|
|
5
5
|
import { propTypes } from '../../IconButton/props/propTypes';
|
|
6
6
|
import { Icon } from '@zohodesk/icons';
|
|
7
|
-
import { Container } from '@zohodesk/components/
|
|
8
|
-
import btnStyle from '@zohodesk/components/
|
|
9
|
-
import RippleEffect from '@zohodesk/components/
|
|
7
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
8
|
+
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
9
|
+
import RippleEffect from '@zohodesk/components/es/v1/RippleEffect/RippleEffect';
|
|
10
10
|
import style from '../../IconButton/IconButton.module.css';
|
|
11
11
|
export default function IconButton(props) {
|
|
12
12
|
let {
|
package/es/v1/Image/Image.js
CHANGED
|
@@ -2,38 +2,31 @@ import React from 'react';
|
|
|
2
2
|
import { defaultProps } from '../../Image/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../Image/props/propTypes';
|
|
4
4
|
import style from '../../Image/Image.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
5
|
+
export default function Image(props) {
|
|
6
|
+
let {
|
|
7
|
+
alt,
|
|
8
|
+
src,
|
|
9
|
+
className,
|
|
10
|
+
isCover,
|
|
11
|
+
title,
|
|
12
|
+
onClick,
|
|
13
|
+
dataId,
|
|
14
|
+
htmlId,
|
|
15
|
+
eleRef,
|
|
16
|
+
original
|
|
17
|
+
} = props;
|
|
18
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
19
|
+
src: src,
|
|
20
|
+
alt: alt,
|
|
21
|
+
"data-title": title,
|
|
22
|
+
"data-id": dataId,
|
|
23
|
+
"data-test-id": dataId,
|
|
24
|
+
className: ` ${className} ${isCover ? style.imgFullSize : style.imgMaxFullSize} `,
|
|
25
|
+
onClick: onClick,
|
|
26
|
+
id: htmlId,
|
|
27
|
+
ref: eleRef,
|
|
28
|
+
"data-original": original
|
|
29
|
+
});
|
|
33
30
|
}
|
|
34
31
|
Image.propTypes = propTypes;
|
|
35
|
-
Image.defaultProps = defaultProps;
|
|
36
|
-
// Image.docs = {
|
|
37
|
-
// componentGroup: 'Atom'
|
|
38
|
-
// };
|
|
39
|
-
// }
|
|
32
|
+
Image.defaultProps = defaultProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../ImportantNotes/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../ImportantNotes/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
6
|
import style from '../../ImportantNotes/ImportantNotes.module.css';
|
|
7
7
|
export default function ImportantNotes(props) {
|
package/es/v1/Loader/Loader.js
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
|
|
3
3
|
import style from '../../Loader/Loader.module.css';
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: style.loader
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
|
|
4
|
+
export default function Loader() {
|
|
5
|
+
let getNextId = useZIndex();
|
|
6
|
+
let Zindex = getNextId();
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
className: style.ajaxLoader,
|
|
9
|
+
style: {
|
|
10
|
+
zIndex: `${Zindex}`
|
|
11
|
+
}
|
|
12
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: style.loader
|
|
14
|
+
}));
|
|
21
15
|
}
|
|
@@ -3,7 +3,7 @@ import { defaultProps } from '../../MessageBanner/props/defaultProps';
|
|
|
3
3
|
import { propTypes } from '../../MessageBanner/props/propTypes';
|
|
4
4
|
import Link from '../Link/Link';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
|
-
import { Container, Box } from '@zohodesk/components/
|
|
6
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
7
|
import style from '../../MessageBanner/MessageBanner.module.css';
|
|
8
8
|
export default function MessageBanner(props) {
|
|
9
9
|
let {
|
package/es/v1/NewStar/NewStar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Icon } from '@zohodesk/icons';
|
|
3
|
-
import { Container } from '@zohodesk/components/
|
|
3
|
+
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
4
4
|
import { defaultProps } from '../../NewStar/props/defaultProps';
|
|
5
5
|
import { propTypes } from '../../NewStar/props/propTypes';
|
|
6
6
|
import style from '../../NewStar/NewStar.module.css';
|
|
@@ -1,60 +1,53 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Container, Box } from '@zohodesk/components/
|
|
2
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
3
3
|
import { defaultProps } from '../../Separator/props/defaultProps';
|
|
4
4
|
import { propTypes } from '../../Separator/props/propTypes';
|
|
5
5
|
import style from '../../Separator/Separator.module.css';
|
|
6
|
-
export default
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className: `${style.varClass} ${customWrapper}`
|
|
34
|
-
}, data.map((child, i) => {
|
|
35
|
-
if (child) {
|
|
36
|
-
if (data.length - 1 == i || aligndirection == 'column') {
|
|
37
|
-
return child && /*#__PURE__*/React.createElement(Box, {
|
|
38
|
-
shrink: shrink,
|
|
39
|
-
key: i,
|
|
40
|
-
className: customChildren
|
|
41
|
-
}, child);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return child && /*#__PURE__*/React.createElement(React.Fragment, {
|
|
45
|
-
key: i
|
|
46
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
6
|
+
export default function Separator(props) {
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
type,
|
|
10
|
+
customSeparatorType,
|
|
11
|
+
palette,
|
|
12
|
+
wrap,
|
|
13
|
+
shrink,
|
|
14
|
+
aligndirection,
|
|
15
|
+
customClass
|
|
16
|
+
} = props;
|
|
17
|
+
const {
|
|
18
|
+
customWrapper,
|
|
19
|
+
customSeparator,
|
|
20
|
+
customChildren
|
|
21
|
+
} = customClass;
|
|
22
|
+
const data = children.filter(el => el !== null && el !== undefined && el !== false);
|
|
23
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
24
|
+
alignBox: aligndirection,
|
|
25
|
+
align: aligndirection === 'row' ? 'vertical' : '',
|
|
26
|
+
wrap: wrap,
|
|
27
|
+
isCover: false,
|
|
28
|
+
className: `${style.varClass} ${customWrapper}`
|
|
29
|
+
}, data.map((child, i) => {
|
|
30
|
+
if (child) {
|
|
31
|
+
if (data.length - 1 == i || aligndirection == 'column') {
|
|
32
|
+
return child && /*#__PURE__*/React.createElement(Box, {
|
|
47
33
|
shrink: shrink,
|
|
48
34
|
key: i,
|
|
49
35
|
className: customChildren
|
|
50
|
-
}, child)
|
|
51
|
-
className: `${style.separator} ${style[palette]} ${customSeparatorType ? '' : style[type]} ${customSeparator} `,
|
|
52
|
-
key: i
|
|
53
|
-
}, customSeparatorType ? customSeparatorType : type == 'slash' ? '/' : type == 'arrow' ? '>' : type == 'comma' ? ',' : '\u2022'));
|
|
36
|
+
}, child);
|
|
54
37
|
}
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
38
|
|
|
39
|
+
return child && /*#__PURE__*/React.createElement(React.Fragment, {
|
|
40
|
+
key: i
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
42
|
+
shrink: shrink,
|
|
43
|
+
key: i,
|
|
44
|
+
className: customChildren
|
|
45
|
+
}, child), /*#__PURE__*/React.createElement(Box, {
|
|
46
|
+
className: `${style.separator} ${style[palette]} ${customSeparatorType ? '' : style[type]} ${customSeparator} `,
|
|
47
|
+
key: i
|
|
48
|
+
}, customSeparatorType ? customSeparatorType : type == 'slash' ? '/' : type == 'arrow' ? '>' : type == 'comma' ? ',' : '\u2022'));
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
58
51
|
}
|
|
59
52
|
Separator.defaultProps = defaultProps;
|
|
60
53
|
Separator.propTypes = propTypes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defaultProps } from '../../TagWithIcon/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../TagWithIcon/props/propTypes';
|
|
4
|
-
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
4
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import Icon from '@zohodesk/icons/es/Icon';
|
|
6
6
|
import style from '../../TagWithIcon/TagWithIcon.module.css';
|
|
7
7
|
export default function TagWithIcon(props) {
|
|
@@ -6,11 +6,11 @@ import { propTypes } from '../../ToastMessage/props/propTypes'; //components
|
|
|
6
6
|
|
|
7
7
|
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
8
8
|
import { Icon } from '@zohodesk/icons';
|
|
9
|
-
import { Container, Box } from '@zohodesk/components/
|
|
10
|
-
import { useZIndex } from '@zohodesk/components/
|
|
11
|
-
import { useUniqueId } from '@zohodesk/components/
|
|
9
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
10
|
+
import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
|
|
11
|
+
import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
|
|
12
12
|
import AutoClose from '../actions/AutoClose';
|
|
13
|
-
import a11yStyle from '@zohodesk/components/
|
|
13
|
+
import a11yStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css'; //style
|
|
14
14
|
|
|
15
15
|
import style from '../../ToastMessage/ToastMessage.module.css';
|
|
16
16
|
|
package/es/v1/Upload/Upload.js
CHANGED
|
@@ -2,75 +2,68 @@ import React from 'react';
|
|
|
2
2
|
import { defaultProps } from '../../Upload/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../Upload/props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
6
6
|
import Image from '../Image/Image';
|
|
7
7
|
import style from '../../Upload/Upload.module.css';
|
|
8
|
-
export default
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
className: `${style.container} ${style[palette]} ${style[size]} ${isPreview ? style.preview : ''}
|
|
8
|
+
export default function Upload(props) {
|
|
9
|
+
let {
|
|
10
|
+
isPreview,
|
|
11
|
+
tooltip,
|
|
12
|
+
dataId,
|
|
13
|
+
dataSelectorId,
|
|
14
|
+
progressValue,
|
|
15
|
+
onClick,
|
|
16
|
+
iconName,
|
|
17
|
+
fileSize,
|
|
18
|
+
imgSrc,
|
|
19
|
+
isPreviewType,
|
|
20
|
+
onRemove,
|
|
21
|
+
size,
|
|
22
|
+
getRef,
|
|
23
|
+
palette
|
|
24
|
+
} = props;
|
|
25
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
26
|
+
isInline: true,
|
|
27
|
+
className: `${style.container} ${style[palette]} ${style[size]} ${isPreview ? style.preview : ''}
|
|
29
28
|
`,
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
29
|
+
dataId: dataId,
|
|
30
|
+
"data-title": tooltip,
|
|
31
|
+
isCover: false,
|
|
32
|
+
eleRef: getRef,
|
|
33
|
+
dataSelectorId: dataSelectorId
|
|
34
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, isPreview ? /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
"data-id": `${dataId}_attachLoading`,
|
|
36
|
+
"data-test-id": `${dataId}_attachLoading`,
|
|
37
|
+
className: style.loader,
|
|
38
|
+
style: {
|
|
39
|
+
width: `${progressValue}%`
|
|
40
|
+
}
|
|
41
|
+
}) : null, isPreviewType ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Image, {
|
|
42
|
+
src: imgSrc,
|
|
43
|
+
className: `${style.uploadimage} `,
|
|
44
|
+
alt: "Uploaded Image",
|
|
45
|
+
dataId: `${dataId}_fileName`
|
|
46
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: style.overlay,
|
|
48
|
+
onClick: onClick
|
|
49
|
+
})) : /*#__PURE__*/React.createElement(Box, {
|
|
50
|
+
className: style.attachInfo,
|
|
51
|
+
onClick: onClick,
|
|
52
|
+
dataId: `${dataId}_openNewTab`
|
|
53
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
54
|
+
name: iconName,
|
|
55
|
+
iconClass: style.fileIcon
|
|
56
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: style.attachsize
|
|
58
|
+
}, fileSize))), typeof onRemove !== 'undefined' && onRemove != null ? /*#__PURE__*/React.createElement("span", {
|
|
59
|
+
className: style.uploadclose,
|
|
60
|
+
onClick: onRemove,
|
|
61
|
+
"data-id": `${dataId}_deleteUpload`,
|
|
62
|
+
"data-test-id": `${dataId}_deleteUpload`
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
64
|
+
name: "ZD-close",
|
|
65
|
+
isBold: true
|
|
66
|
+
})) : null);
|
|
70
67
|
}
|
|
71
68
|
Upload.propTypes = propTypes;
|
|
72
|
-
Upload.defaultProps = defaultProps;
|
|
73
|
-
// Upload.docs = {
|
|
74
|
-
// componentGroup: 'Upload'
|
|
75
|
-
// };
|
|
76
|
-
// }
|
|
69
|
+
Upload.defaultProps = defaultProps;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { propTypes } from '../../../version2/AlertClose/props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import { Container, Box } from '@zohodesk/components/
|
|
5
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
6
6
|
import style from '../../../version2/AlertClose/AlertClose.module.css';
|
|
7
7
|
|
|
8
8
|
function AlertClose(props) {
|