@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/es/v1/svg/SnippetIcon.js
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SnippetIcon_defaultProps } from '../../svg/props/defaultProps';
|
|
3
3
|
import { SnippetIcon_propTypes } from '../../svg/props/propTypes';
|
|
4
|
-
import SVG from '@zohodesk/svg/lib/SVG/SVG';
|
|
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
|
-
|
|
4
|
+
import SVG from '@zohodesk/svg/lib/v1/SVG/SVG';
|
|
5
|
+
export default function SnippetIcon(props) {
|
|
6
|
+
let {
|
|
7
|
+
isRender,
|
|
8
|
+
isSymbol,
|
|
9
|
+
className
|
|
10
|
+
} = props;
|
|
11
|
+
return /*#__PURE__*/React.createElement(SVG, {
|
|
12
|
+
viewBox: "0 0 31 32",
|
|
13
|
+
name: "SnippetIcon",
|
|
14
|
+
isRender: isRender,
|
|
15
|
+
isSymbol: isSymbol,
|
|
16
|
+
className: className
|
|
17
|
+
}, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
18
|
+
d: "M14.4,8.2L15.6,9L16,8.4l-1-0.7l2.5-3.7L11.5,0L8.9,3.8L7.9,3L7.6,3.6l1.2,0.8c-2.3,3-5.9,0.8-6,0.7L2.3,4.9L0,23.8 l16.6-9.3l-0.4-0.3C15.9,13.9,12.6,11.5,14.4,8.2L14.4,8.2z M1.5,22l5.2-7.7c0.3,0.1,0.6,0.2,0.9,0.2c1.2,0,2.1-0.9,2.2-2.1 c0-1.2-0.9-2.1-2.1-2.2c-1.2,0-2.1,0.9-2.2,2.1c0,0.6,0.2,1.2,0.7,1.6L1,21.6L2.8,6c1.2,0.6,4.4,1.7,6.5-1.1l4.5,3 c-1.8,3,0.4,5.6,1.4,6.5L1.5,22L1.5,22z M6.7,13.6c-0.7-0.4-0.8-1.3-0.4-2s1.3-0.8,2-0.4c0.7,0.4,0.8,1.3,0.4,2 c-0.2,0.3-0.5,0.5-0.9,0.6C7.5,13.9,7.1,13.8,6.7,13.6L6.7,13.6z"
|
|
19
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
20
|
+
style: {
|
|
21
|
+
fill: '#03A3FE'
|
|
22
|
+
},
|
|
23
|
+
d: "M30.9,25c-4.9,0.7-5.4,1.2-5.9,6.7c-0.6-5.4-1.1-6-6.1-6.5c4.9-0.7,5.4-1.2,5.9-6.7 C25.4,23.9,25.9,24.5,30.9,25z M30.3,8.2c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C25.4,7.1,25.8,7.6,30.3,8.2z M16.2,25.7c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C11.3,24.6,11.7,25.1,16.2,25.7z"
|
|
24
|
+
})));
|
|
28
25
|
}
|
|
29
26
|
SnippetIcon.propTypes = SnippetIcon_propTypes;
|
|
30
|
-
SnippetIcon.defaultProps = SnippetIcon_defaultProps;
|
|
31
|
-
// SnippetIcon.docs = {
|
|
32
|
-
// componentGroup: 'SVG'
|
|
33
|
-
// };
|
|
34
|
-
// }
|
|
27
|
+
SnippetIcon.defaultProps = SnippetIcon_defaultProps;
|
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TemplateIcon_defaultProps } from '../../svg/props/defaultProps';
|
|
3
3
|
import { TemplateIcon_propTypes } from '../../svg/props/propTypes';
|
|
4
|
-
import SVG from '@zohodesk/svg/lib/SVG/SVG';
|
|
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
|
-
|
|
4
|
+
import SVG from '@zohodesk/svg/lib/v1/SVG/SVG';
|
|
5
|
+
export default function TemplateIcon(props) {
|
|
6
|
+
let {
|
|
7
|
+
isRender,
|
|
8
|
+
isSymbol,
|
|
9
|
+
className
|
|
10
|
+
} = props;
|
|
11
|
+
return /*#__PURE__*/React.createElement(SVG, {
|
|
12
|
+
viewBox: "0 0 40 40",
|
|
13
|
+
name: "TemplateIcon",
|
|
14
|
+
isRender: isRender,
|
|
15
|
+
isSymbol: isSymbol,
|
|
16
|
+
className: className
|
|
17
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
18
|
+
d: "M33.09,3H6.91A3.91,3.91,0,0,0,3,6.91V33.09A3.91,3.91,0,0,0,6.91,37H33.09A3.91,3.91,0,0,0,37,33.09V6.91A3.92,3.92,0,0,0,33.09,3ZM6.91,5H33.09A1.92,1.92,0,0,1,35,6.91v4.62H5V6.91A1.92,1.92,0,0,1,6.91,5ZM33.09,35H6.91A1.92,1.92,0,0,1,5,33.09V13.53H35V33.09A1.92,1.92,0,0,1,33.09,35Z"
|
|
19
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
20
|
+
d: "M9.33,9.33A1.07,1.07,0,1,0,8.27,8.27,1.06,1.06,0,0,0,9.33,9.33Z"
|
|
21
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
22
|
+
d: "M13.6,9.33a1.07,1.07,0,1,0-1.07-1.06A1.06,1.06,0,0,0,13.6,9.33Z"
|
|
23
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
24
|
+
d: "M24.87,23H21V19.13a1,1,0,1,0-2,0V23H15.13a1,1,0,0,0,0,2H19v3.86a1,1,0,0,0,2,0V25h3.87a1,1,0,1,0,0-2Z"
|
|
25
|
+
}));
|
|
29
26
|
}
|
|
30
27
|
TemplateIcon.propTypes = TemplateIcon_propTypes;
|
|
31
|
-
TemplateIcon.defaultProps = TemplateIcon_defaultProps;
|
|
32
|
-
// TemplateIcon.docs = {
|
|
33
|
-
// componentGroup: 'SVG'
|
|
34
|
-
// };
|
|
35
|
-
// }
|
|
28
|
+
TemplateIcon.defaultProps = TemplateIcon_defaultProps;
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -259,16 +259,16 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
259
259
|
customProps = _this$props4.customProps;
|
|
260
260
|
var _customProps$focusSco = customProps.focusScopeProps,
|
|
261
261
|
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
262
|
-
var _focusScopeProps$
|
|
263
|
-
|
|
264
|
-
_focusScopeProps$
|
|
265
|
-
|
|
266
|
-
_focusScopeProps$
|
|
267
|
-
|
|
268
|
-
_focusScopeProps$
|
|
269
|
-
|
|
270
|
-
_focusScopeProps$
|
|
271
|
-
|
|
262
|
+
var _focusScopeProps$need = focusScopeProps.needAutoFocus,
|
|
263
|
+
needAutoFocus = _focusScopeProps$need === void 0 ? true : _focusScopeProps$need,
|
|
264
|
+
_focusScopeProps$need2 = focusScopeProps.needRestoreFocus,
|
|
265
|
+
needRestoreFocus = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
|
|
266
|
+
_focusScopeProps$need3 = focusScopeProps.needListNavigation,
|
|
267
|
+
needListNavigation = _focusScopeProps$need3 === void 0 ? false : _focusScopeProps$need3,
|
|
268
|
+
_focusScopeProps$need4 = focusScopeProps.needFocusLoop,
|
|
269
|
+
needFocusLoop = _focusScopeProps$need4 === void 0 ? true : _focusScopeProps$need4,
|
|
270
|
+
_focusScopeProps$need5 = focusScopeProps.needEnterAction,
|
|
271
|
+
needEnterAction = _focusScopeProps$need5 === void 0 ? false : _focusScopeProps$need5;
|
|
272
272
|
|
|
273
273
|
var childrenWithProps = _react["default"].Children.map(children, function (child) {
|
|
274
274
|
if (child.type === Header || child.type === Footer || child.type === Content) {
|
|
@@ -309,12 +309,12 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
309
309
|
flexible: true
|
|
310
310
|
}, subDrawerChildren))))) : null, needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
311
311
|
elementRef: this.createRef,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
312
|
+
needAutoFocus: needAutoFocus,
|
|
313
|
+
needFocusLoop: needFocusLoop,
|
|
314
|
+
needRestoreFocus: needRestoreFocus,
|
|
315
|
+
needListNavigation: needListNavigation,
|
|
316
316
|
onClose: onClose,
|
|
317
|
-
|
|
317
|
+
needEnterAction: needEnterAction
|
|
318
318
|
}, content) : content);
|
|
319
319
|
}
|
|
320
320
|
}, {
|
|
@@ -345,6 +345,7 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
345
345
|
customClass = _this$props5.customClass,
|
|
346
346
|
needAutoZindex = _this$props5.needAutoZindex,
|
|
347
347
|
innerPortalName = _this$props5.innerPortalName;
|
|
348
|
+
var zindexNumber = this.getNextIndex();
|
|
348
349
|
return /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
349
350
|
query: this.responsiveFunc,
|
|
350
351
|
responsiveId: responsiveId
|
|
@@ -380,8 +381,8 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
380
381
|
scroll: "none",
|
|
381
382
|
eleRef: forwardRef,
|
|
382
383
|
className: "".concat(_DrawerModule["default"].isOverlay, " ").concat(customClass),
|
|
383
|
-
style:
|
|
384
|
-
zIndex: "".concat(
|
|
384
|
+
style: needAutoZindex ? {
|
|
385
|
+
zIndex: "".concat(zindexNumber)
|
|
385
386
|
} : {}
|
|
386
387
|
}, _this2.drawers(uptoTablet, styleByResolutions)));
|
|
387
388
|
});
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _react = _interopRequireDefault(require("react"));
|
|
4
|
+
|
|
5
|
+
var _react2 = require("@testing-library/react");
|
|
6
|
+
|
|
7
|
+
var _IconButton = _interopRequireDefault(require("../IconButton.js"));
|
|
8
|
+
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
|
|
11
|
+
describe('IconButton', function () {
|
|
12
|
+
test('rendering the defult props', function () {
|
|
13
|
+
var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], null)),
|
|
14
|
+
asFragment = _render.asFragment;
|
|
15
|
+
|
|
16
|
+
expect(asFragment()).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
var palette = ['primary', 'primaryFilled', 'default'];
|
|
19
|
+
test.each(palette)('rendering the palette of- %s', function (palette) {
|
|
20
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
21
|
+
palette: palette
|
|
22
|
+
})),
|
|
23
|
+
asFragment = _render2.asFragment;
|
|
24
|
+
|
|
25
|
+
expect(asFragment()).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
test.each(palette)('rendering the isActive true with palette of- %s', function (palette) {
|
|
28
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
29
|
+
isActive: true,
|
|
30
|
+
palette: palette
|
|
31
|
+
})),
|
|
32
|
+
asFragment = _render3.asFragment;
|
|
33
|
+
|
|
34
|
+
expect(asFragment()).toMatchSnapshot();
|
|
35
|
+
});
|
|
36
|
+
var hoverType = ['default', 'border', 'bg'];
|
|
37
|
+
test.each(hoverType)('rendering the hovertypes- %s', function (hoverType) {
|
|
38
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
39
|
+
hoverType: hoverType
|
|
40
|
+
})),
|
|
41
|
+
asFragment = _render4.asFragment;
|
|
42
|
+
|
|
43
|
+
expect(asFragment()).toMatchSnapshot();
|
|
44
|
+
});
|
|
45
|
+
test('rendering isNeedEffect is False', function () {
|
|
46
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
47
|
+
isNeedEffect: false
|
|
48
|
+
})),
|
|
49
|
+
asFragment = _render5.asFragment;
|
|
50
|
+
|
|
51
|
+
expect(asFragment()).toMatchSnapshot();
|
|
52
|
+
});
|
|
53
|
+
test('rendering ally', function () {
|
|
54
|
+
var _render6 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
55
|
+
a11y: {
|
|
56
|
+
ariaLabel: 'ariaLabel',
|
|
57
|
+
ariaControls: 'ariaControls',
|
|
58
|
+
ariaLabelledby: 'ariaLabelledby',
|
|
59
|
+
ariaHaspopup: true,
|
|
60
|
+
ariaExpanded: true
|
|
61
|
+
}
|
|
62
|
+
})),
|
|
63
|
+
asFragment = _render6.asFragment;
|
|
64
|
+
|
|
65
|
+
expect(asFragment()).toMatchSnapshot();
|
|
66
|
+
});
|
|
67
|
+
test('rendering ally', function () {
|
|
68
|
+
var _render7 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
69
|
+
a11y: {
|
|
70
|
+
ariaHaspopup: false,
|
|
71
|
+
ariaExpanded: false
|
|
72
|
+
}
|
|
73
|
+
})),
|
|
74
|
+
asFragment = _render7.asFragment;
|
|
75
|
+
|
|
76
|
+
expect(asFragment()).toMatchSnapshot();
|
|
77
|
+
});
|
|
78
|
+
test('rendering needButtonTag', function () {
|
|
79
|
+
var _render8 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
80
|
+
needButtonTag: false
|
|
81
|
+
})),
|
|
82
|
+
asFragment = _render8.asFragment;
|
|
83
|
+
|
|
84
|
+
expect(asFragment()).toMatchSnapshot();
|
|
85
|
+
});
|
|
86
|
+
test('rendering tourId', function () {
|
|
87
|
+
var _render9 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
88
|
+
tourId: "tourId"
|
|
89
|
+
})),
|
|
90
|
+
asFragment = _render9.asFragment;
|
|
91
|
+
|
|
92
|
+
expect(asFragment()).toMatchSnapshot();
|
|
93
|
+
});
|
|
94
|
+
test('rendering in Icon', function () {
|
|
95
|
+
var _render10 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
96
|
+
iconName: "ZD-GN-infoStroke",
|
|
97
|
+
isBold: true,
|
|
98
|
+
iconSize: "13",
|
|
99
|
+
iconClass: "iconClass"
|
|
100
|
+
})),
|
|
101
|
+
asFragment = _render10.asFragment;
|
|
102
|
+
|
|
103
|
+
expect(asFragment()).toMatchSnapshot();
|
|
104
|
+
});
|
|
105
|
+
test('rendering in dataIsHtml is True', function () {
|
|
106
|
+
var _render11 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
107
|
+
dataIsHtml: true
|
|
108
|
+
})),
|
|
109
|
+
asFragment = _render11.asFragment;
|
|
110
|
+
|
|
111
|
+
expect(asFragment()).toMatchSnapshot();
|
|
112
|
+
});
|
|
113
|
+
test('rendering in isDisabled is True', function () {
|
|
114
|
+
var _render12 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
115
|
+
isDisabled: true
|
|
116
|
+
})),
|
|
117
|
+
asFragment = _render12.asFragment;
|
|
118
|
+
|
|
119
|
+
expect(asFragment()).toMatchSnapshot();
|
|
120
|
+
});
|
|
121
|
+
test('rendering in ClassName', function () {
|
|
122
|
+
var _render13 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
123
|
+
className: "IconButtonClass"
|
|
124
|
+
})),
|
|
125
|
+
asFragment = _render13.asFragment;
|
|
126
|
+
|
|
127
|
+
expect(asFragment()).toMatchSnapshot();
|
|
128
|
+
});
|
|
129
|
+
test('rendering in title', function () {
|
|
130
|
+
var _render14 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
131
|
+
title: "IconTitle"
|
|
132
|
+
})),
|
|
133
|
+
asFragment = _render14.asFragment;
|
|
134
|
+
|
|
135
|
+
expect(asFragment()).toMatchSnapshot();
|
|
136
|
+
});
|
|
137
|
+
test('eleRef prop is a function', function () {
|
|
138
|
+
// Create a mock function
|
|
139
|
+
var mockEleRef = jest.fn();
|
|
140
|
+
|
|
141
|
+
var _render15 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
142
|
+
eleRef: mockEleRef
|
|
143
|
+
})),
|
|
144
|
+
asFragment = _render15.asFragment;
|
|
145
|
+
|
|
146
|
+
expect(asFragment()).toMatchSnapshot();
|
|
147
|
+
});
|
|
148
|
+
test('Checking the "Children"', function () {
|
|
149
|
+
var _render16 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
150
|
+
customClass: "customClassButtonGroup"
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Element 1"), /*#__PURE__*/_react["default"].createElement("span", null, "Element 2"), /*#__PURE__*/_react["default"].createElement("span", null, "Element 3"))),
|
|
152
|
+
asFragment = _render16.asFragment;
|
|
153
|
+
|
|
154
|
+
expect(asFragment()).toMatchSnapshot();
|
|
155
|
+
});
|
|
156
|
+
});
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`IconButton Checking the "Children" 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<button
|
|
6
|
+
aria-pressed="false"
|
|
7
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
8
|
+
data-id="iconContainer"
|
|
9
|
+
data-ishtml="false"
|
|
10
|
+
data-selector-id="iconButton"
|
|
11
|
+
data-test-id="iconContainer"
|
|
12
|
+
>
|
|
13
|
+
<span>
|
|
14
|
+
Element 1
|
|
15
|
+
</span>
|
|
16
|
+
<span>
|
|
17
|
+
Element 2
|
|
18
|
+
</span>
|
|
19
|
+
<span>
|
|
20
|
+
Element 3
|
|
21
|
+
</span>
|
|
22
|
+
</button>
|
|
23
|
+
</DocumentFragment>
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
exports[`IconButton eleRef prop is a function 1`] = `
|
|
27
|
+
<DocumentFragment>
|
|
28
|
+
<button
|
|
29
|
+
aria-pressed="false"
|
|
30
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
31
|
+
data-id="iconContainer"
|
|
32
|
+
data-ishtml="false"
|
|
33
|
+
data-selector-id="iconButton"
|
|
34
|
+
data-test-id="iconContainer"
|
|
35
|
+
/>
|
|
36
|
+
</DocumentFragment>
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
exports[`IconButton rendering ally 1`] = `
|
|
40
|
+
<DocumentFragment>
|
|
41
|
+
<button
|
|
42
|
+
aria-controls="ariaControls"
|
|
43
|
+
aria-expanded="true"
|
|
44
|
+
aria-haspopup="true"
|
|
45
|
+
aria-label="ariaLabel"
|
|
46
|
+
aria-labelledby="ariaLabelledby"
|
|
47
|
+
aria-pressed="false"
|
|
48
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
49
|
+
data-id="iconContainer"
|
|
50
|
+
data-ishtml="false"
|
|
51
|
+
data-selector-id="iconButton"
|
|
52
|
+
data-test-id="iconContainer"
|
|
53
|
+
/>
|
|
54
|
+
</DocumentFragment>
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
exports[`IconButton rendering ally 2`] = `
|
|
58
|
+
<DocumentFragment>
|
|
59
|
+
<button
|
|
60
|
+
aria-expanded="false"
|
|
61
|
+
aria-haspopup="false"
|
|
62
|
+
aria-pressed="false"
|
|
63
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
64
|
+
data-id="iconContainer"
|
|
65
|
+
data-ishtml="false"
|
|
66
|
+
data-selector-id="iconButton"
|
|
67
|
+
data-test-id="iconContainer"
|
|
68
|
+
/>
|
|
69
|
+
</DocumentFragment>
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
exports[`IconButton rendering in ClassName 1`] = `
|
|
73
|
+
<DocumentFragment>
|
|
74
|
+
<button
|
|
75
|
+
aria-pressed="false"
|
|
76
|
+
class="buttonReset wrapper IconButtonClass undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
77
|
+
data-id="iconContainer"
|
|
78
|
+
data-ishtml="false"
|
|
79
|
+
data-selector-id="iconButton"
|
|
80
|
+
data-test-id="iconContainer"
|
|
81
|
+
/>
|
|
82
|
+
</DocumentFragment>
|
|
83
|
+
`;
|
|
84
|
+
|
|
85
|
+
exports[`IconButton rendering in Icon 1`] = `
|
|
86
|
+
<DocumentFragment>
|
|
87
|
+
<button
|
|
88
|
+
aria-pressed="false"
|
|
89
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
90
|
+
data-id="iconContainer"
|
|
91
|
+
data-ishtml="false"
|
|
92
|
+
data-selector-id="iconButton"
|
|
93
|
+
data-test-id="iconContainer"
|
|
94
|
+
>
|
|
95
|
+
<i
|
|
96
|
+
aria-hidden="true"
|
|
97
|
+
class="zd_font_icons basic icon-infoStroke fbold iconClass "
|
|
98
|
+
data-id="fontIcon"
|
|
99
|
+
data-selector-id="fontIcon"
|
|
100
|
+
data-test-id="fontIcon"
|
|
101
|
+
style="--zd-iconfont-size: var(--zd_font_size13);"
|
|
102
|
+
/>
|
|
103
|
+
</button>
|
|
104
|
+
</DocumentFragment>
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
exports[`IconButton rendering in dataIsHtml is True 1`] = `
|
|
108
|
+
<DocumentFragment>
|
|
109
|
+
<button
|
|
110
|
+
aria-pressed="false"
|
|
111
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
112
|
+
data-id="iconContainer"
|
|
113
|
+
data-ishtml="true"
|
|
114
|
+
data-selector-id="iconButton"
|
|
115
|
+
data-test-id="iconContainer"
|
|
116
|
+
/>
|
|
117
|
+
</DocumentFragment>
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
exports[`IconButton rendering in isDisabled is True 1`] = `
|
|
121
|
+
<DocumentFragment>
|
|
122
|
+
<button
|
|
123
|
+
aria-pressed="false"
|
|
124
|
+
class="buttonReset wrapper undefined effect default border defaultHover disabled inflex coldir both"
|
|
125
|
+
data-id="iconContainer"
|
|
126
|
+
data-ishtml="false"
|
|
127
|
+
data-selector-id="iconButton"
|
|
128
|
+
data-test-id="iconContainer"
|
|
129
|
+
disabled=""
|
|
130
|
+
/>
|
|
131
|
+
</DocumentFragment>
|
|
132
|
+
`;
|
|
133
|
+
|
|
134
|
+
exports[`IconButton rendering in title 1`] = `
|
|
135
|
+
<DocumentFragment>
|
|
136
|
+
<button
|
|
137
|
+
aria-pressed="false"
|
|
138
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
139
|
+
data-id="iconContainer"
|
|
140
|
+
data-ishtml="false"
|
|
141
|
+
data-selector-id="iconButton"
|
|
142
|
+
data-test-id="iconContainer"
|
|
143
|
+
data-title="IconTitle"
|
|
144
|
+
/>
|
|
145
|
+
</DocumentFragment>
|
|
146
|
+
`;
|
|
147
|
+
|
|
148
|
+
exports[`IconButton rendering isNeedEffect is False 1`] = `
|
|
149
|
+
<DocumentFragment>
|
|
150
|
+
<button
|
|
151
|
+
aria-pressed="false"
|
|
152
|
+
class="buttonReset wrapper undefined inflex coldir both"
|
|
153
|
+
data-id="iconContainer"
|
|
154
|
+
data-ishtml="false"
|
|
155
|
+
data-selector-id="iconButton"
|
|
156
|
+
data-test-id="iconContainer"
|
|
157
|
+
/>
|
|
158
|
+
</DocumentFragment>
|
|
159
|
+
`;
|
|
160
|
+
|
|
161
|
+
exports[`IconButton rendering needButtonTag 1`] = `
|
|
162
|
+
<DocumentFragment>
|
|
163
|
+
<div
|
|
164
|
+
aria-pressed="false"
|
|
165
|
+
class="false wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
166
|
+
data-id="iconContainer"
|
|
167
|
+
data-ishtml="false"
|
|
168
|
+
data-selector-id="iconButton"
|
|
169
|
+
data-test-id="iconContainer"
|
|
170
|
+
/>
|
|
171
|
+
</DocumentFragment>
|
|
172
|
+
`;
|
|
173
|
+
|
|
174
|
+
exports[`IconButton rendering the defult props 1`] = `
|
|
175
|
+
<DocumentFragment>
|
|
176
|
+
<button
|
|
177
|
+
aria-pressed="false"
|
|
178
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
179
|
+
data-id="iconContainer"
|
|
180
|
+
data-ishtml="false"
|
|
181
|
+
data-selector-id="iconButton"
|
|
182
|
+
data-test-id="iconContainer"
|
|
183
|
+
/>
|
|
184
|
+
</DocumentFragment>
|
|
185
|
+
`;
|
|
186
|
+
|
|
187
|
+
exports[`IconButton rendering the hovertypes- bg 1`] = `
|
|
188
|
+
<DocumentFragment>
|
|
189
|
+
<button
|
|
190
|
+
aria-pressed="false"
|
|
191
|
+
class="buttonReset wrapper undefined effect default border bgHover hoverEffect inflex coldir both"
|
|
192
|
+
data-id="iconContainer"
|
|
193
|
+
data-ishtml="false"
|
|
194
|
+
data-selector-id="iconButton"
|
|
195
|
+
data-test-id="iconContainer"
|
|
196
|
+
/>
|
|
197
|
+
</DocumentFragment>
|
|
198
|
+
`;
|
|
199
|
+
|
|
200
|
+
exports[`IconButton rendering the hovertypes- border 1`] = `
|
|
201
|
+
<DocumentFragment>
|
|
202
|
+
<button
|
|
203
|
+
aria-pressed="false"
|
|
204
|
+
class="buttonReset wrapper undefined effect default border borderHover hoverEffect inflex coldir both"
|
|
205
|
+
data-id="iconContainer"
|
|
206
|
+
data-ishtml="false"
|
|
207
|
+
data-selector-id="iconButton"
|
|
208
|
+
data-test-id="iconContainer"
|
|
209
|
+
/>
|
|
210
|
+
</DocumentFragment>
|
|
211
|
+
`;
|
|
212
|
+
|
|
213
|
+
exports[`IconButton rendering the hovertypes- default 1`] = `
|
|
214
|
+
<DocumentFragment>
|
|
215
|
+
<button
|
|
216
|
+
aria-pressed="false"
|
|
217
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
218
|
+
data-id="iconContainer"
|
|
219
|
+
data-ishtml="false"
|
|
220
|
+
data-selector-id="iconButton"
|
|
221
|
+
data-test-id="iconContainer"
|
|
222
|
+
/>
|
|
223
|
+
</DocumentFragment>
|
|
224
|
+
`;
|
|
225
|
+
|
|
226
|
+
exports[`IconButton rendering the isActive true with palette of- default 1`] = `
|
|
227
|
+
<DocumentFragment>
|
|
228
|
+
<button
|
|
229
|
+
aria-pressed="false"
|
|
230
|
+
class="buttonReset wrapper undefined effect default border defaultHover active hoverEffect inflex coldir both"
|
|
231
|
+
data-id="iconContainer"
|
|
232
|
+
data-ishtml="false"
|
|
233
|
+
data-selector-id="iconButton"
|
|
234
|
+
data-test-id="iconContainer"
|
|
235
|
+
/>
|
|
236
|
+
</DocumentFragment>
|
|
237
|
+
`;
|
|
238
|
+
|
|
239
|
+
exports[`IconButton rendering the isActive true with palette of- primary 1`] = `
|
|
240
|
+
<DocumentFragment>
|
|
241
|
+
<button
|
|
242
|
+
aria-pressed="false"
|
|
243
|
+
class="buttonReset wrapper primary_active effect primary border defaultHover active hoverEffect inflex coldir both"
|
|
244
|
+
data-id="iconContainer"
|
|
245
|
+
data-ishtml="false"
|
|
246
|
+
data-selector-id="iconButton"
|
|
247
|
+
data-test-id="iconContainer"
|
|
248
|
+
/>
|
|
249
|
+
</DocumentFragment>
|
|
250
|
+
`;
|
|
251
|
+
|
|
252
|
+
exports[`IconButton rendering the isActive true with palette of- primaryFilled 1`] = `
|
|
253
|
+
<DocumentFragment>
|
|
254
|
+
<button
|
|
255
|
+
aria-pressed="false"
|
|
256
|
+
class="buttonReset wrapper primaryFilled_active effect primaryFilled border defaultHover active hoverEffect inflex coldir both"
|
|
257
|
+
data-id="iconContainer"
|
|
258
|
+
data-ishtml="false"
|
|
259
|
+
data-selector-id="iconButton"
|
|
260
|
+
data-test-id="iconContainer"
|
|
261
|
+
/>
|
|
262
|
+
</DocumentFragment>
|
|
263
|
+
`;
|
|
264
|
+
|
|
265
|
+
exports[`IconButton rendering the palette of- default 1`] = `
|
|
266
|
+
<DocumentFragment>
|
|
267
|
+
<button
|
|
268
|
+
aria-pressed="false"
|
|
269
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
270
|
+
data-id="iconContainer"
|
|
271
|
+
data-ishtml="false"
|
|
272
|
+
data-selector-id="iconButton"
|
|
273
|
+
data-test-id="iconContainer"
|
|
274
|
+
/>
|
|
275
|
+
</DocumentFragment>
|
|
276
|
+
`;
|
|
277
|
+
|
|
278
|
+
exports[`IconButton rendering the palette of- primary 1`] = `
|
|
279
|
+
<DocumentFragment>
|
|
280
|
+
<button
|
|
281
|
+
aria-pressed="false"
|
|
282
|
+
class="buttonReset wrapper primary effect primary border defaultHover hoverEffect inflex coldir both"
|
|
283
|
+
data-id="iconContainer"
|
|
284
|
+
data-ishtml="false"
|
|
285
|
+
data-selector-id="iconButton"
|
|
286
|
+
data-test-id="iconContainer"
|
|
287
|
+
/>
|
|
288
|
+
</DocumentFragment>
|
|
289
|
+
`;
|
|
290
|
+
|
|
291
|
+
exports[`IconButton rendering the palette of- primaryFilled 1`] = `
|
|
292
|
+
<DocumentFragment>
|
|
293
|
+
<button
|
|
294
|
+
aria-pressed="false"
|
|
295
|
+
class="buttonReset wrapper primaryFilled effect primaryFilled border defaultHover hoverEffect inflex coldir both"
|
|
296
|
+
data-id="iconContainer"
|
|
297
|
+
data-ishtml="false"
|
|
298
|
+
data-selector-id="iconButton"
|
|
299
|
+
data-test-id="iconContainer"
|
|
300
|
+
/>
|
|
301
|
+
</DocumentFragment>
|
|
302
|
+
`;
|
|
303
|
+
|
|
304
|
+
exports[`IconButton rendering tourId 1`] = `
|
|
305
|
+
<DocumentFragment>
|
|
306
|
+
<button
|
|
307
|
+
aria-pressed="false"
|
|
308
|
+
class="buttonReset wrapper undefined effect default border defaultHover hoverEffect inflex coldir both"
|
|
309
|
+
data-id="iconContainer"
|
|
310
|
+
data-ishtml="false"
|
|
311
|
+
data-selector-id="iconButton"
|
|
312
|
+
data-test-id="iconContainer"
|
|
313
|
+
data-tour="tourId"
|
|
314
|
+
/>
|
|
315
|
+
</DocumentFragment>
|
|
316
|
+
`;
|
|
@@ -15,7 +15,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
15
15
|
|
|
16
16
|
var propTypes = (_propTypes = {
|
|
17
17
|
children: _propTypes2["default"].node,
|
|
18
|
-
alignContainer: _propTypes2["default"].oneOf('vertical', 'baseline'),
|
|
18
|
+
alignContainer: _propTypes2["default"].oneOf(['vertical', 'baseline']),
|
|
19
19
|
renderProps: _propTypes2["default"].shape({
|
|
20
20
|
start: _propTypes2["default"].func,
|
|
21
21
|
middle: _propTypes2["default"].func,
|