@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,217 +1,174 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import { SetupDetailLayout_defaultProps, SetupHeader_defaultProps, SetupContent_defaultProps, SetupFooter_defaultProps } from '../../../layout/SetupDetailLayout/props/defaultProps';
|
|
3
3
|
import { SetupDetailLayout_propTypes, SetupHeader_propTypes, SetupContent_propTypes, SetupFooter_propTypes } from '../../../layout/SetupDetailLayout/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 '../../../layout/SetupDetailLayout/SetupDetailLayout.module.css';
|
|
7
|
-
export default
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
export default function SetupDetailLayout(props) {
|
|
8
|
+
let {
|
|
9
|
+
children,
|
|
10
|
+
needHelpInfo,
|
|
11
|
+
getHelpInfo,
|
|
12
|
+
helpInfoTitle,
|
|
13
|
+
dataId,
|
|
14
|
+
i18nKeys
|
|
15
|
+
} = props;
|
|
16
|
+
const {
|
|
17
|
+
closeText = 'Close'
|
|
18
|
+
} = i18nKeys;
|
|
19
|
+
const [isHelpInfoOpen, setHelpInfoOpen] = useState(false);
|
|
15
20
|
|
|
16
|
-
toggleHelpInfo() {
|
|
17
|
-
|
|
18
|
-
isHelpInfoOpen
|
|
19
|
-
} = this.state;
|
|
20
|
-
this.setState({
|
|
21
|
-
isHelpInfoOpen: !isHelpInfoOpen
|
|
22
|
-
});
|
|
21
|
+
function toggleHelpInfo() {
|
|
22
|
+
setHelpInfoOpen(!isHelpInfoOpen);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
i18nKeys
|
|
36
|
-
} = this.props;
|
|
37
|
-
const {
|
|
38
|
-
closeText = 'Close'
|
|
39
|
-
} = i18nKeys;
|
|
40
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
41
|
-
isScrollAttribute: true,
|
|
42
|
-
dataId: dataId
|
|
43
|
-
}, React.Children.map(children, child => {
|
|
44
|
-
if (child && child.type == SetupHeader) {
|
|
45
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
46
|
-
openHelpInfo: this.toggleHelpInfo,
|
|
47
|
-
needHelpInfo: needHelpInfo
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return child;
|
|
52
|
-
}), getHelpInfo ? /*#__PURE__*/React.createElement(Box, {
|
|
53
|
-
className: `${style.popup} ${isHelpInfoOpen ? style.open : style.close}`,
|
|
54
|
-
dataId: `${dataId}_infobox`
|
|
55
|
-
}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
|
|
56
|
-
alignBox: "row",
|
|
57
|
-
align: "vertical",
|
|
58
|
-
className: style.infoHeader
|
|
59
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
60
|
-
className: style.infoIcon
|
|
61
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
62
|
-
name: "ZD-info31"
|
|
63
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
64
|
-
flexible: true,
|
|
65
|
-
className: style.infoText
|
|
66
|
-
}, helpInfoTitle), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("span", {
|
|
67
|
-
onClick: this.toggleHelpInfo,
|
|
68
|
-
className: style.infoClose,
|
|
69
|
-
"data-title": closeText,
|
|
70
|
-
"data-id": `${dataId}_close`,
|
|
71
|
-
"data-test-id": `${dataId}_close`
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
73
|
-
name: "ZD-close"
|
|
74
|
-
}))))), /*#__PURE__*/React.createElement(Box, {
|
|
75
|
-
flexible: true,
|
|
76
|
-
scroll: "vertical",
|
|
77
|
-
className: style.infoFooter
|
|
78
|
-
}, getHelpInfo()))) : null);
|
|
79
|
-
}
|
|
25
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
26
|
+
isScrollAttribute: true,
|
|
27
|
+
dataId: dataId
|
|
28
|
+
}, React.Children.map(children, child => {
|
|
29
|
+
if (child && child.type == SetupHeader) {
|
|
30
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
31
|
+
openHelpInfo: toggleHelpInfo,
|
|
32
|
+
needHelpInfo: needHelpInfo
|
|
33
|
+
});
|
|
34
|
+
}
|
|
80
35
|
|
|
36
|
+
return child;
|
|
37
|
+
}), getHelpInfo ? /*#__PURE__*/React.createElement(Box, {
|
|
38
|
+
className: `${style.popup} ${isHelpInfoOpen ? style.open : style.close}`,
|
|
39
|
+
dataId: `${dataId}_infobox`
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
|
|
41
|
+
alignBox: "row",
|
|
42
|
+
align: "vertical",
|
|
43
|
+
className: style.infoHeader
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
45
|
+
className: style.infoIcon
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
name: "ZD-info31"
|
|
48
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
flexible: true,
|
|
50
|
+
className: style.infoText
|
|
51
|
+
}, helpInfoTitle), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("span", {
|
|
52
|
+
onClick: toggleHelpInfo,
|
|
53
|
+
className: style.infoClose,
|
|
54
|
+
"data-title": closeText,
|
|
55
|
+
"data-id": `${dataId}_close`,
|
|
56
|
+
"data-test-id": `${dataId}_close`
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
58
|
+
name: "ZD-close"
|
|
59
|
+
}))))), /*#__PURE__*/React.createElement(Box, {
|
|
60
|
+
flexible: true,
|
|
61
|
+
scroll: "vertical",
|
|
62
|
+
className: style.infoFooter
|
|
63
|
+
}, getHelpInfo()))) : null);
|
|
81
64
|
}
|
|
82
65
|
SetupDetailLayout.propTypes = SetupDetailLayout_propTypes;
|
|
83
|
-
SetupDetailLayout.defaultProps = SetupDetailLayout_defaultProps;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
name: "ZD-info31"
|
|
162
|
-
}))) : /*#__PURE__*/React.createElement("span", {
|
|
163
|
-
className: `${style.helpInfo} ${style.mr15}`,
|
|
164
|
-
onClick: openHelpInfo,
|
|
165
|
-
"data-title": infoText,
|
|
166
|
-
"data-id": `${dataId}_info`,
|
|
167
|
-
"data-test-id": `${dataId}_info`
|
|
168
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
169
|
-
name: "ZD-info31"
|
|
170
|
-
}))) : null));
|
|
171
|
-
}
|
|
172
|
-
|
|
66
|
+
SetupDetailLayout.defaultProps = SetupDetailLayout_defaultProps;
|
|
67
|
+
export function SetupHeader(props) {
|
|
68
|
+
let {
|
|
69
|
+
title,
|
|
70
|
+
needBack,
|
|
71
|
+
onBackClick,
|
|
72
|
+
openHelpInfo,
|
|
73
|
+
needHelpInfo,
|
|
74
|
+
needHelpInfoWrapper,
|
|
75
|
+
getLeftPlaceHolder,
|
|
76
|
+
getRightPlaceHolder,
|
|
77
|
+
leftClassName,
|
|
78
|
+
rightClassName,
|
|
79
|
+
isCustomizedHeader,
|
|
80
|
+
headerCustomStyle,
|
|
81
|
+
dataId,
|
|
82
|
+
i18nKeys
|
|
83
|
+
} = props;
|
|
84
|
+
const {
|
|
85
|
+
infoText = 'Help',
|
|
86
|
+
backText = 'Back'
|
|
87
|
+
} = i18nKeys;
|
|
88
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
89
|
+
className: isCustomizedHeader === true ? headerCustomStyle : style.header,
|
|
90
|
+
dataId: dataId
|
|
91
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
92
|
+
alignBox: "row",
|
|
93
|
+
align: "vertical"
|
|
94
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
95
|
+
className: style.back
|
|
96
|
+
}, needBack ? /*#__PURE__*/React.createElement("span", {
|
|
97
|
+
className: style.backIcon,
|
|
98
|
+
onClick: onBackClick,
|
|
99
|
+
"data-title": backText,
|
|
100
|
+
"data-id": `${dataId}_back`,
|
|
101
|
+
"data-test-id": `${dataId}_back`
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
103
|
+
name: "ZD-back"
|
|
104
|
+
})) : null), /*#__PURE__*/React.createElement(Box, {
|
|
105
|
+
flexible: !getLeftPlaceHolder && !getRightPlaceHolder ? true : false,
|
|
106
|
+
className: style.title,
|
|
107
|
+
dataId: `${dataId}_title`
|
|
108
|
+
}, title), getLeftPlaceHolder ? /*#__PURE__*/React.createElement(Box, {
|
|
109
|
+
flexible: true,
|
|
110
|
+
shrink: true,
|
|
111
|
+
adjust: getRightPlaceHolder ? true : false,
|
|
112
|
+
className: leftClassName
|
|
113
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
114
|
+
align: "vertical",
|
|
115
|
+
alignBox: "row"
|
|
116
|
+
}, getLeftPlaceHolder())) : null, getRightPlaceHolder ? /*#__PURE__*/React.createElement(Box, {
|
|
117
|
+
flexible: true,
|
|
118
|
+
shrink: true,
|
|
119
|
+
adjust: getLeftPlaceHolder ? true : false,
|
|
120
|
+
className: rightClassName
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
122
|
+
align: "vertical",
|
|
123
|
+
alignBox: "row",
|
|
124
|
+
className: style.rightPanel
|
|
125
|
+
}, getRightPlaceHolder())) : null, needHelpInfo ? /*#__PURE__*/React.createElement(Box, null, needHelpInfoWrapper ? /*#__PURE__*/React.createElement("span", {
|
|
126
|
+
className: style.helpInfoCont
|
|
127
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
128
|
+
className: style.helpInfo,
|
|
129
|
+
onClick: openHelpInfo,
|
|
130
|
+
"data-title": infoText,
|
|
131
|
+
"data-id": `${dataId}_info`,
|
|
132
|
+
"data-test-id": `${dataId}_info`
|
|
133
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
134
|
+
name: "ZD-info31"
|
|
135
|
+
}))) : /*#__PURE__*/React.createElement("span", {
|
|
136
|
+
className: `${style.helpInfo} ${style.mr15}`,
|
|
137
|
+
onClick: openHelpInfo,
|
|
138
|
+
"data-title": infoText,
|
|
139
|
+
"data-id": `${dataId}_info`,
|
|
140
|
+
"data-test-id": `${dataId}_info`
|
|
141
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
142
|
+
name: "ZD-info31"
|
|
143
|
+
}))) : null));
|
|
173
144
|
}
|
|
174
145
|
SetupHeader.propTypes = SetupHeader_propTypes;
|
|
175
146
|
SetupHeader.defaultProps = SetupHeader_defaultProps;
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
scroll: "vertical",
|
|
191
|
-
className: `${className ? className : ''} ${style.content} ${needPadding ? style.padding : ''} `,
|
|
192
|
-
isScrollAttribute: true,
|
|
193
|
-
dataId: dataId
|
|
194
|
-
}, children);
|
|
195
|
-
}
|
|
196
|
-
|
|
147
|
+
export function SetupContent(props) {
|
|
148
|
+
let {
|
|
149
|
+
children,
|
|
150
|
+
needPadding,
|
|
151
|
+
className,
|
|
152
|
+
dataId
|
|
153
|
+
} = props;
|
|
154
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
155
|
+
flexible: true,
|
|
156
|
+
scroll: "vertical",
|
|
157
|
+
className: `${className ? className : ''} ${style.content} ${needPadding ? style.padding : ''} `,
|
|
158
|
+
isScrollAttribute: true,
|
|
159
|
+
dataId: dataId
|
|
160
|
+
}, children);
|
|
197
161
|
}
|
|
198
162
|
SetupContent.propTypes = SetupContent_propTypes;
|
|
199
163
|
SetupContent.defaultProps = SetupContent_defaultProps;
|
|
200
|
-
export
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
dataId
|
|
209
|
-
} = this.props;
|
|
210
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
211
|
-
dataId: dataId
|
|
212
|
-
}, children);
|
|
213
|
-
}
|
|
214
|
-
|
|
164
|
+
export function SetupFooter(props) {
|
|
165
|
+
let {
|
|
166
|
+
children,
|
|
167
|
+
dataId
|
|
168
|
+
} = props;
|
|
169
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
170
|
+
dataId: dataId
|
|
171
|
+
}, children);
|
|
215
172
|
}
|
|
216
173
|
SetupFooter.propTypes = SetupFooter_propTypes;
|
|
217
174
|
SetupFooter.defaultProps = SetupFooter_defaultProps;
|
|
@@ -3,142 +3,126 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { SubtabHeader_propTypes, SubtabFooter_propTypes, SubtabContent_propTypes, SubtabLayout_propTypes } from '../../../layout/SubtabLayout/props/propTypes';
|
|
5
5
|
import { SubtabHeader_defaultProps, SubtabFooter_defaultProps, SubtabContent_defaultProps, SubtabLayout_defaultProps } from '../../../layout/SubtabLayout/props/defaultProps';
|
|
6
|
-
import { Container, Box } from '@zohodesk/components/
|
|
7
|
-
import { Card, CardHeader, CardContent } from '@zohodesk/components/
|
|
6
|
+
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
|
+
import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
|
|
8
8
|
import PlusIcon from '../../PlusIcon/PlusIcon';
|
|
9
9
|
import style from '../../../layout/SubtabLayout/SubtabLayout.module.css';
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
}, getRightPlaceHolder))));
|
|
60
|
-
}
|
|
61
|
-
|
|
10
|
+
export function SubtabHeader(props) {
|
|
11
|
+
let {
|
|
12
|
+
onAdd,
|
|
13
|
+
getLeftPlaceHolder,
|
|
14
|
+
title,
|
|
15
|
+
label,
|
|
16
|
+
getRightPlaceHolder,
|
|
17
|
+
type,
|
|
18
|
+
leftClassName,
|
|
19
|
+
rightClassName,
|
|
20
|
+
className,
|
|
21
|
+
needBorder,
|
|
22
|
+
needShadow,
|
|
23
|
+
needPlusIconLine,
|
|
24
|
+
children,
|
|
25
|
+
dataId,
|
|
26
|
+
isPeekView
|
|
27
|
+
} = props;
|
|
28
|
+
return /*#__PURE__*/React.createElement(CardHeader, {
|
|
29
|
+
customClass: `${style.tabHead} ${needShadow ? style.shadowStyle : ''} ${needBorder ? `${style[type]}_borderStyle` : ''}`
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
31
|
+
alignBox: "row",
|
|
32
|
+
className: ` ${className} ${isPeekView ? `${style[type]}_peek` : style[type]}`,
|
|
33
|
+
align: "vertical"
|
|
34
|
+
}, onAdd || children ? /*#__PURE__*/React.createElement(Box, {
|
|
35
|
+
className: `${style.left} ${needPlusIconLine ? style.plusIconLine : ''}`
|
|
36
|
+
}, onAdd ? /*#__PURE__*/React.createElement(PlusIcon, {
|
|
37
|
+
dataId: dataId,
|
|
38
|
+
onClick: onAdd
|
|
39
|
+
}) : children) : null, title ? /*#__PURE__*/React.createElement(Box, {
|
|
40
|
+
className: `${style.title} ${onAdd ? style.cursor : ''}`,
|
|
41
|
+
onClick: onAdd ? onAdd : null
|
|
42
|
+
}, title) : null, getLeftPlaceHolder && /*#__PURE__*/React.createElement(Box, {
|
|
43
|
+
flexible: true,
|
|
44
|
+
shrink: true,
|
|
45
|
+
adjust: getRightPlaceHolder ? true : false,
|
|
46
|
+
className: leftClassName
|
|
47
|
+
}, label ? /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: style.label
|
|
49
|
+
}, label) : null, getLeftPlaceHolder), getRightPlaceHolder && /*#__PURE__*/React.createElement(Box, {
|
|
50
|
+
flexible: true,
|
|
51
|
+
shrink: true,
|
|
52
|
+
adjust: getLeftPlaceHolder ? true : false,
|
|
53
|
+
className: rightClassName
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
55
|
+
alignBox: "row",
|
|
56
|
+
align: "vertical",
|
|
57
|
+
className: style.aside
|
|
58
|
+
}, getRightPlaceHolder))));
|
|
62
59
|
}
|
|
63
60
|
SubtabHeader.propTypes = SubtabHeader_propTypes;
|
|
64
61
|
SubtabHeader.defaultProps = SubtabHeader_defaultProps;
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}, getRightFooterPlaceHolder) : null);
|
|
93
|
-
}
|
|
94
|
-
|
|
62
|
+
export function SubtabFooter(props) {
|
|
63
|
+
let {
|
|
64
|
+
isPeekView,
|
|
65
|
+
getRightFooterPlaceHolder,
|
|
66
|
+
dataId,
|
|
67
|
+
children,
|
|
68
|
+
className,
|
|
69
|
+
leftClassName,
|
|
70
|
+
rightClassName,
|
|
71
|
+
size,
|
|
72
|
+
needPadding,
|
|
73
|
+
type
|
|
74
|
+
} = props;
|
|
75
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
76
|
+
alignBox: "row",
|
|
77
|
+
align: "vertical",
|
|
78
|
+
className: ` ${style.footer} ${needPadding ? isPeekView ? `${style[type]}_peekFooter` : `${style[type]}_detailFooter` : ''} ${style[size]} ${className}`,
|
|
79
|
+
dataId: dataId
|
|
80
|
+
}, children ? /*#__PURE__*/React.createElement(Box, {
|
|
81
|
+
flexible: true,
|
|
82
|
+
shrink: true,
|
|
83
|
+
className: leftClassName
|
|
84
|
+
}, children) : null, getRightFooterPlaceHolder ? /*#__PURE__*/React.createElement(Box, {
|
|
85
|
+
flexible: true,
|
|
86
|
+
shrink: true,
|
|
87
|
+
className: rightClassName
|
|
88
|
+
}, getRightFooterPlaceHolder) : null);
|
|
95
89
|
}
|
|
96
90
|
SubtabFooter.propTypes = SubtabFooter_propTypes;
|
|
97
91
|
SubtabFooter.defaultProps = SubtabFooter_defaultProps;
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}, children);
|
|
116
|
-
}
|
|
117
|
-
|
|
92
|
+
export function SubtabContent(props) {
|
|
93
|
+
let {
|
|
94
|
+
children,
|
|
95
|
+
scroll,
|
|
96
|
+
className,
|
|
97
|
+
eleRef,
|
|
98
|
+
dataId,
|
|
99
|
+
onScroll
|
|
100
|
+
} = props;
|
|
101
|
+
return /*#__PURE__*/React.createElement(CardContent, {
|
|
102
|
+
scroll: scroll,
|
|
103
|
+
isScrollAttribute: true,
|
|
104
|
+
onScroll: onScroll,
|
|
105
|
+
customClass: className ? className : '',
|
|
106
|
+
eleRef: eleRef,
|
|
107
|
+
dataId: dataId
|
|
108
|
+
}, children);
|
|
118
109
|
}
|
|
119
110
|
SubtabContent.propTypes = SubtabContent_propTypes;
|
|
120
111
|
SubtabContent.defaultProps = SubtabContent_defaultProps;
|
|
121
|
-
export default
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}), children);
|
|
136
|
-
}
|
|
137
|
-
|
|
112
|
+
export default function SubtabLayout(props) {
|
|
113
|
+
let {
|
|
114
|
+
children,
|
|
115
|
+
dataId
|
|
116
|
+
} = props;
|
|
117
|
+
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
118
|
+
isScrollAttribute: true,
|
|
119
|
+
dataId: dataId
|
|
120
|
+
}, props, {
|
|
121
|
+
childTypes: {
|
|
122
|
+
cardHeader: SubtabHeader,
|
|
123
|
+
cardContent: SubtabContent
|
|
124
|
+
}
|
|
125
|
+
}), children);
|
|
138
126
|
}
|
|
139
127
|
SubtabLayout.defaultProps = SubtabLayout_defaultProps;
|
|
140
|
-
SubtabLayout.propTypes = SubtabLayout_propTypes;
|
|
141
|
-
// SubtabLayout.docs = {
|
|
142
|
-
// componentGroup: 'Template'
|
|
143
|
-
// };
|
|
144
|
-
// }
|
|
128
|
+
SubtabLayout.propTypes = SubtabLayout_propTypes;
|