@zohodesk/dot 1.0.0-temp-184 → 1.0.0-temp-181.9
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/propValidation_report.html +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 +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/ActionButton/ActionButton.module.css +192 -192
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/es/ChannelIcon/ChannelIcon.module.css +225 -225
- package/es/Drawer/Drawer.js +4 -5
- package/es/ExternalLink/ExternalLink.js +4 -5
- package/es/FlipCard/FlipCard.js +14 -12
- package/es/FormAction/FormAction.module.css +100 -100
- package/es/IconButton/IconButton.js +4 -5
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Link/Link.js +8 -10
- package/es/Message/Message.js +4 -5
- package/es/TagWithIcon/TagWithIcon.module.css +66 -66
- package/es/ToastMessage/ToastMessage.js +2 -4
- package/es/actions/AutoClose.js +2 -1
- package/es/alert/AlertLookup/AlertLookup.js +14 -12
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/common/dot_boxShadow.module.css +0 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +18 -15
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/ListLayout/ListLayout.js +4 -5
- package/es/list/ListLayout/ListLayout.module.css +79 -79
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +8 -9
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +4 -5
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +34 -34
- package/es/list/Thread/Thread.js +2 -1
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/status/StatusDropdown/StatusDropdown.js +142 -101
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/lookup/Lookup/Lookup.js +4 -5
- package/es/lookup/header/Search/Search.js +5 -3
- package/es/v1/DotWrapper/DotWrapper.js +46 -0
- package/es/v1/DotWrapper/libraryChunks/dynamicImports.js +24 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/props/defaultProps.js +6 -0
- package/es/v1/DotWrapper/props/propTypes.js +9 -0
- package/es/v1/DotWrapper/utils/appearanceProperties.js +46 -0
- package/es/v1/DotWrapper/utils/errorMessage.js +7 -0
- package/es/v1/DotWrapper/utils/importFiles.js +30 -0
- package/es/v1/DotWrapper/utils/sizeProperties.js +12 -0
- package/es/v1/DotWrapper/utils/themeProperties.js +220 -0
- package/es/v1/Drawer/Drawer.js +4 -5
- package/es/v1/ExternalLink/ExternalLink.js +4 -5
- package/es/v1/FlipCard/FlipCard.js +14 -12
- package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
- package/es/v1/IconButton/IconButton.js +4 -5
- package/es/v1/Link/Link.js +8 -10
- package/es/v1/Message/Message.js +4 -5
- package/es/v1/ToastMessage/ToastMessage.js +2 -4
- package/es/v1/actions/AutoClose.js +2 -1
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +18 -16
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/v1/list/ListLayout/ListLayout.js +4 -5
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +8 -9
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/Thread/Thread.js +2 -1
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +4 -5
- package/es/v1/lookup/header/Search/Search.js +5 -3
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.module.css +177 -177
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
- package/lib/ActionButton/ActionButton.module.css +192 -192
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/lib/ChannelIcon/ChannelIcon.module.css +225 -225
- package/lib/FormAction/FormAction.module.css +100 -100
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/TagWithIcon/TagWithIcon.module.css +66 -66
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/common/dot_boxShadow.module.css +0 -2
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/ListLayout/ListLayout.module.css +79 -79
- package/lib/list/Subject/Subject.module.css +34 -34
- package/lib/list/Thread/Thread.js +2 -1
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/status/StatusDropdown/StatusDropdown.js +207 -162
- package/lib/v1/DotWrapper/DotWrapper.js +65 -0
- package/lib/v1/DotWrapper/libraryChunks/dynamicImports.js +43 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/props/defaultProps.js +13 -0
- package/lib/v1/DotWrapper/props/propTypes.js +20 -0
- package/lib/v1/DotWrapper/utils/appearanceProperties.js +79 -0
- package/lib/v1/DotWrapper/utils/errorMessage.js +14 -0
- package/lib/v1/DotWrapper/utils/importFiles.js +39 -0
- package/lib/v1/DotWrapper/utils/sizeProperties.js +31 -0
- package/lib/v1/DotWrapper/utils/themeProperties.js +325 -0
- package/lib/v1/list/Thread/Thread.js +2 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +177 -177
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -37,7 +37,8 @@ export default function AutoClose(props) {
|
|
|
37
37
|
isClose,
|
|
38
38
|
onClose
|
|
39
39
|
});
|
|
40
|
-
return /*#__PURE__*/React.createElement(Element, newProps
|
|
40
|
+
return /*#__PURE__*/React.createElement(Element, { ...newProps
|
|
41
|
+
});
|
|
41
42
|
}
|
|
42
43
|
AutoClose.propTypes = propTypes;
|
|
43
44
|
AutoClose.defaultProps = defaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -90,7 +88,7 @@ export default function AlertLookup(props) {
|
|
|
90
88
|
ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
|
|
91
89
|
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
92
90
|
};
|
|
93
|
-
return /*#__PURE__*/React.createElement(Lookup,
|
|
91
|
+
return /*#__PURE__*/React.createElement(Lookup, {
|
|
94
92
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
95
93
|
needFocusScope: true,
|
|
96
94
|
isActive: isActive,
|
|
@@ -100,8 +98,9 @@ export default function AlertLookup(props) {
|
|
|
100
98
|
onClick: onLookupClick,
|
|
101
99
|
customClass: containerClass,
|
|
102
100
|
a11y: a11y,
|
|
103
|
-
childAnimationName: childAnimationName
|
|
104
|
-
|
|
101
|
+
childAnimationName: childAnimationName,
|
|
102
|
+
...LookupProps
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
105
104
|
alignBox: "row",
|
|
106
105
|
align: align,
|
|
107
106
|
wrap: "wrap"
|
|
@@ -110,15 +109,16 @@ export default function AlertLookup(props) {
|
|
|
110
109
|
className: style.section
|
|
111
110
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
112
111
|
alignBox: "column"
|
|
113
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader,
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, {
|
|
114
113
|
htmlId: ariaTitleId,
|
|
115
114
|
title: title,
|
|
116
115
|
type: type,
|
|
117
116
|
needIcon: needIcon,
|
|
118
117
|
onClose: onClose,
|
|
119
118
|
breakChildren: wrapHeader,
|
|
120
|
-
renderAlertIcon: renderAlertIcon
|
|
121
|
-
|
|
119
|
+
renderAlertIcon: renderAlertIcon,
|
|
120
|
+
...AlertHeaderProps
|
|
121
|
+
}, headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
|
|
122
122
|
flexible: true
|
|
123
123
|
}, /*#__PURE__*/React.createElement("div", {
|
|
124
124
|
className: `${style.innerSection} ${style[`${scroll}Scroll`] ? style[`${scroll}Scroll`] : ''} ${sectionClass}`
|
|
@@ -137,30 +137,30 @@ export default function AlertLookup(props) {
|
|
|
137
137
|
}, /*#__PURE__*/React.createElement(FormAction, {
|
|
138
138
|
size: "small",
|
|
139
139
|
paddingLeftSize: "xmedium"
|
|
140
|
-
}, /*#__PURE__*/React.createElement(Button,
|
|
140
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
141
141
|
text: submitText,
|
|
142
142
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
143
143
|
onClick: onSubmitClick,
|
|
144
144
|
palette: buttonPalette,
|
|
145
145
|
customProps: {
|
|
146
146
|
'data-a11y-autofocus': isDefaultFocus
|
|
147
|
-
}
|
|
148
|
-
|
|
147
|
+
},
|
|
148
|
+
...PrimaryButtonProps,
|
|
149
149
|
a11y: {
|
|
150
150
|
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
|
|
151
151
|
},
|
|
152
152
|
id: ariaLeaveButtonId
|
|
153
|
-
})
|
|
153
|
+
}), cancelText && /*#__PURE__*/React.createElement(Button, {
|
|
154
154
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
155
155
|
text: cancelText,
|
|
156
156
|
onClick: onCancelClick,
|
|
157
|
-
palette: "secondary"
|
|
158
|
-
|
|
157
|
+
palette: "secondary",
|
|
158
|
+
...SecondaryButtonProps,
|
|
159
159
|
a11y: {
|
|
160
160
|
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
|
|
161
161
|
},
|
|
162
162
|
id: ariaStayButtonId
|
|
163
|
-
}))))
|
|
163
|
+
})))) : null))));
|
|
164
164
|
}
|
|
165
165
|
AlertLookup.propTypes = propTypes;
|
|
166
166
|
AlertLookup.defaultProps = defaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -21,15 +19,17 @@ export default function AvatarClose(props) {
|
|
|
21
19
|
AvatarCloseProps = {},
|
|
22
20
|
AvatarProps = {}
|
|
23
21
|
} = customProps;
|
|
24
|
-
return /*#__PURE__*/React.createElement("div",
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
23
|
className: style.container,
|
|
26
|
-
"data-selector-id": dataSelectorId
|
|
27
|
-
|
|
24
|
+
"data-selector-id": dataSelectorId,
|
|
25
|
+
...AvatarCloseProps
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
28
27
|
src: src,
|
|
29
28
|
name: name,
|
|
30
29
|
title: title,
|
|
31
|
-
size: size
|
|
32
|
-
|
|
30
|
+
size: size,
|
|
31
|
+
...AvatarProps
|
|
32
|
+
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
33
33
|
className: style.pop,
|
|
34
34
|
onClick: onClick
|
|
35
35
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -24,21 +22,23 @@ export default function AvatarCollision(props) {
|
|
|
24
22
|
AvatarCollisionProps = {},
|
|
25
23
|
AvatarProps = {}
|
|
26
24
|
} = customProps;
|
|
27
|
-
return /*#__PURE__*/React.createElement("div",
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
26
|
className: `${style.container} ${isLeft ? style.off : isIdle ? style.idle : style.on}`,
|
|
29
27
|
onClick: onClick,
|
|
30
28
|
"data-id": "collsionPop",
|
|
31
29
|
"data-test-id": "collsionPop",
|
|
32
30
|
"data-title": title,
|
|
33
|
-
"data-selector-id": dataSelectorId
|
|
34
|
-
|
|
31
|
+
"data-selector-id": dataSelectorId,
|
|
32
|
+
...AvatarCollisionProps
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
35
34
|
src: src,
|
|
36
35
|
name: name,
|
|
37
36
|
size: size,
|
|
38
37
|
palette: "default",
|
|
39
38
|
needTitle: false,
|
|
40
|
-
initial: initial
|
|
41
|
-
|
|
39
|
+
initial: initial,
|
|
40
|
+
...AvatarProps
|
|
41
|
+
}), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
|
|
42
42
|
className: style.pop,
|
|
43
43
|
"data-title": title
|
|
44
44
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -29,7 +27,7 @@ export default function AvatarIcon(props) {
|
|
|
29
27
|
AvatarIconProps = {}
|
|
30
28
|
} = customProps;
|
|
31
29
|
let border = borderOnHover || onClick;
|
|
32
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
30
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
33
31
|
className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ${AvatarSize(size)} ${style[palette]} ${className}`,
|
|
34
32
|
onClick: onClick,
|
|
35
33
|
dataId: dataId,
|
|
@@ -37,8 +35,9 @@ export default function AvatarIcon(props) {
|
|
|
37
35
|
isInline: true,
|
|
38
36
|
align: "both",
|
|
39
37
|
isCover: false,
|
|
40
|
-
dataSelectorId: dataSelectorId
|
|
41
|
-
|
|
38
|
+
dataSelectorId: dataSelectorId,
|
|
39
|
+
...AvatarIconProps
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
42
41
|
name: name,
|
|
43
42
|
size: iconSize,
|
|
44
43
|
iconClass: ` ${iconClass} ${style.iconColor} ${iconColor ? ` ${style[`icon_${iconColor}`]}` : ''} `,
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -31,12 +29,12 @@ export default function AvatarStatus(props) {
|
|
|
31
29
|
AvatarStatusProps = {},
|
|
32
30
|
AvatarProps = {}
|
|
33
31
|
} = customProps;
|
|
34
|
-
return /*#__PURE__*/React.createElement("div",
|
|
35
|
-
className: `${style.container} ${className}
|
|
36
|
-
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: `${style.container} ${className} `,
|
|
34
|
+
...AvatarStatusProps,
|
|
37
35
|
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
38
36
|
"data-selector-id": dataSelectorId
|
|
39
|
-
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
40
38
|
src: src,
|
|
41
39
|
name: name,
|
|
42
40
|
palette: palette,
|
|
@@ -50,8 +48,9 @@ export default function AvatarStatus(props) {
|
|
|
50
48
|
shape: shape,
|
|
51
49
|
needTitle: needTitle,
|
|
52
50
|
needDefaultBorder: needDefaultBorder,
|
|
53
|
-
needBorder: needBorder
|
|
54
|
-
|
|
51
|
+
needBorder: needBorder,
|
|
52
|
+
...AvatarProps
|
|
53
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
55
54
|
"data-title": statusTitle,
|
|
56
55
|
className: `${style.state} ${style[state]} ${style[size]} ${style[shape]}`
|
|
57
56
|
}));
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -38,10 +36,11 @@ export default function AvatarThread(props) {
|
|
|
38
36
|
AvatarProps = {}
|
|
39
37
|
} = customProps;
|
|
40
38
|
let hoverEffect = showOnHover ? style.hover : '';
|
|
41
|
-
return /*#__PURE__*/React.createElement("div",
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
42
40
|
className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}`,
|
|
43
|
-
"data-selector-id": dataSelectorId
|
|
44
|
-
|
|
41
|
+
"data-selector-id": dataSelectorId,
|
|
42
|
+
...AvatarThreadProps
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
45
44
|
initial: initial,
|
|
46
45
|
src: src,
|
|
47
46
|
name: name,
|
|
@@ -52,8 +51,9 @@ export default function AvatarThread(props) {
|
|
|
52
51
|
palette: palette,
|
|
53
52
|
textPalette: textPalette,
|
|
54
53
|
customClass: customTextClass,
|
|
55
|
-
needTitle: needTitle
|
|
56
|
-
|
|
54
|
+
needTitle: needTitle,
|
|
55
|
+
...AvatarProps
|
|
56
|
+
}), (iconName || getCustomThread) && /*#__PURE__*/React.createElement("span", {
|
|
57
57
|
className: `${style.thread} ${onIconClick ? style.pointer : style.defaultCursor} ${needBackground ? style.threadBg : ''} ${style[`thread_${size}_pos`]} ${needBorder ? style[`border_${borderPalette}`] : ''}`,
|
|
58
58
|
"data-title": iconTitle,
|
|
59
59
|
"data-id": iconTitle === 'Remove Follower' && 'removeFollower',
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -49,20 +47,22 @@ export default function AvatarUser(props) {
|
|
|
49
47
|
portalTitle = 'End User',
|
|
50
48
|
lockTitle = 'Locked'
|
|
51
49
|
} = i18nKeys;
|
|
52
|
-
return /*#__PURE__*/React.createElement("div",
|
|
50
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
53
51
|
className: `${style.container} ${style[size]}`,
|
|
54
52
|
"data-id": dataId || name || iconName,
|
|
55
53
|
"data-test-id": dataId || name || iconName,
|
|
56
|
-
"data-selector-id": dataSelectorId
|
|
57
|
-
|
|
54
|
+
"data-selector-id": dataSelectorId,
|
|
55
|
+
...AvatarUserProps
|
|
56
|
+
}, iconName ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
58
57
|
name: iconName,
|
|
59
58
|
iconSize: iconSize,
|
|
60
59
|
size: size,
|
|
61
60
|
iconClass: iconClass,
|
|
62
61
|
dataId: iconName,
|
|
63
62
|
iconColor: iconColor,
|
|
64
|
-
title: title
|
|
65
|
-
|
|
63
|
+
title: title,
|
|
64
|
+
...AvatarIconProps
|
|
65
|
+
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
66
66
|
src: src,
|
|
67
67
|
name: name,
|
|
68
68
|
initial: initial,
|
|
@@ -73,8 +73,9 @@ export default function AvatarUser(props) {
|
|
|
73
73
|
palette: palette,
|
|
74
74
|
textPalette: textPalette,
|
|
75
75
|
customClass: customTextClass,
|
|
76
|
-
alternateSrc: alternateSrc
|
|
77
|
-
|
|
76
|
+
alternateSrc: alternateSrc,
|
|
77
|
+
...AvatarProps
|
|
78
|
+
}), isPaid ? /*#__PURE__*/React.createElement("span", {
|
|
78
79
|
"data-title": paidTitle,
|
|
79
80
|
className: style.paid,
|
|
80
81
|
"data-id": "paidUser",
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -32,12 +30,13 @@ export default function AvatarWithTeam(props) {
|
|
|
32
30
|
Avatar2Props = {},
|
|
33
31
|
AvatarTeam2Props = {}
|
|
34
32
|
} = customProps;
|
|
35
|
-
return /*#__PURE__*/React.createElement("span",
|
|
33
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
36
34
|
className: `${style.container} `,
|
|
37
35
|
"data-id": "avatarWithTeamId",
|
|
38
36
|
"data-test-id": "avatarWithTeamId",
|
|
39
|
-
"data-selector-id": dataSelectorId
|
|
40
|
-
|
|
37
|
+
"data-selector-id": dataSelectorId,
|
|
38
|
+
...AvatarWithTeamProps
|
|
39
|
+
}, isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, {
|
|
41
40
|
name: name,
|
|
42
41
|
src: src,
|
|
43
42
|
size: size,
|
|
@@ -46,8 +45,9 @@ export default function AvatarWithTeam(props) {
|
|
|
46
45
|
palette: palette,
|
|
47
46
|
textPalette: textPalette,
|
|
48
47
|
customClass: customTextClass,
|
|
49
|
-
borderOnActive: borderOnActive
|
|
50
|
-
|
|
48
|
+
borderOnActive: borderOnActive,
|
|
49
|
+
...Avatar1Props
|
|
50
|
+
}) : isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
51
51
|
name: name,
|
|
52
52
|
src: src,
|
|
53
53
|
size: size,
|
|
@@ -58,8 +58,9 @@ export default function AvatarWithTeam(props) {
|
|
|
58
58
|
customClass: {
|
|
59
59
|
customAvatar: customTextClass
|
|
60
60
|
},
|
|
61
|
-
borderOnActive: borderOnActive
|
|
62
|
-
|
|
61
|
+
borderOnActive: borderOnActive,
|
|
62
|
+
...AvatarTeam1Props
|
|
63
|
+
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
63
64
|
name: name,
|
|
64
65
|
src: src,
|
|
65
66
|
size: size,
|
|
@@ -68,13 +69,14 @@ export default function AvatarWithTeam(props) {
|
|
|
68
69
|
palette: palette,
|
|
69
70
|
textPalette: textPalette,
|
|
70
71
|
customClass: customTextClass,
|
|
71
|
-
borderOnActive: borderOnActive
|
|
72
|
-
|
|
72
|
+
borderOnActive: borderOnActive,
|
|
73
|
+
...Avatar2Props
|
|
74
|
+
}), teamName ? /*#__PURE__*/React.createElement("span", {
|
|
73
75
|
className: `${style.teamAvatar} ${teamClassName} `,
|
|
74
76
|
"data-id": "teamNameTestId",
|
|
75
77
|
"data-test-id": "teamNameTestId",
|
|
76
78
|
"data-title": needTitle ? title : undefined
|
|
77
|
-
}, /*#__PURE__*/React.createElement(AvatarTeam,
|
|
79
|
+
}, /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
78
80
|
name: teamName,
|
|
79
81
|
size: "small",
|
|
80
82
|
palette: palette,
|
|
@@ -84,8 +86,9 @@ export default function AvatarWithTeam(props) {
|
|
|
84
86
|
customClass: {
|
|
85
87
|
customAvatar: customTextClass
|
|
86
88
|
},
|
|
87
|
-
borderOnActive: teamBorderActive
|
|
88
|
-
|
|
89
|
+
borderOnActive: teamBorderActive,
|
|
90
|
+
...AvatarTeam2Props
|
|
91
|
+
})) : null);
|
|
89
92
|
}
|
|
90
93
|
AvatarWithTeam.defaultProps = defaultProps;
|
|
91
94
|
AvatarWithTeam.propTypes = propTypes;
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React, { Component, Fragment } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -550,21 +548,22 @@ export class ToggleDropDown extends Component {
|
|
|
550
548
|
let listIndex = -1;
|
|
551
549
|
const ariaTitleId = this.getAriaId(); // const allyOptionsArr = this.getOptionsArray();
|
|
552
550
|
|
|
553
|
-
return /*#__PURE__*/React.createElement("div",
|
|
551
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
554
552
|
className: style.wrapper,
|
|
555
553
|
onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
|
|
556
554
|
onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
|
|
557
|
-
"data-selector-id": dataSelectorId
|
|
558
|
-
|
|
555
|
+
"data-selector-id": dataSelectorId,
|
|
556
|
+
...ToggleDropDownProps
|
|
557
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
559
558
|
alignBox: "row",
|
|
560
559
|
onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
|
|
561
560
|
eleRef: getTargetRef,
|
|
562
561
|
align: "vertical",
|
|
563
562
|
isCover: false,
|
|
564
563
|
dataId: dataId
|
|
565
|
-
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component,
|
|
564
|
+
}, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, { ...componentProps,
|
|
566
565
|
isActive: isPopupOpen
|
|
567
|
-
})
|
|
566
|
+
}) : children : /*#__PURE__*/React.createElement(RippleEffect, {
|
|
568
567
|
hoverType: hoverType,
|
|
569
568
|
isActive: isPopupOpen,
|
|
570
569
|
isNeedEffect: isEditable && isNeedEffect
|
|
@@ -602,7 +601,7 @@ export class ToggleDropDown extends Component {
|
|
|
602
601
|
let {
|
|
603
602
|
tabletMode
|
|
604
603
|
} = _ref4;
|
|
605
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox,
|
|
604
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
606
605
|
boxPosition: position,
|
|
607
606
|
isActive: isPopupReady,
|
|
608
607
|
onClick: removeClose,
|
|
@@ -638,12 +637,12 @@ export class ToggleDropDown extends Component {
|
|
|
638
637
|
searchValue: searchValue,
|
|
639
638
|
isFetchingOptions: isFetchingOptions
|
|
640
639
|
}
|
|
641
|
-
}
|
|
642
|
-
|
|
640
|
+
},
|
|
641
|
+
...DropBoxProps,
|
|
643
642
|
onClose: this.handleTogglePopup
|
|
644
|
-
}
|
|
643
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
645
644
|
className: style.search
|
|
646
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon,
|
|
645
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
647
646
|
placeHolder: placeHolderText,
|
|
648
647
|
onChange: this.handleChange,
|
|
649
648
|
value: searchValue,
|
|
@@ -664,8 +663,9 @@ export class ToggleDropDown extends Component {
|
|
|
664
663
|
ariaAutocomplete: 'list',
|
|
665
664
|
ariaHaspopup: true,
|
|
666
665
|
ariaExpanded: true
|
|
667
|
-
}
|
|
668
|
-
|
|
666
|
+
},
|
|
667
|
+
...TextBoxIconProps
|
|
668
|
+
})) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
669
669
|
className: style.title
|
|
670
670
|
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
671
671
|
text: title,
|
|
@@ -716,7 +716,7 @@ export class ToggleDropDown extends Component {
|
|
|
716
716
|
isDisabled = false
|
|
717
717
|
} = item;
|
|
718
718
|
listIndex += 1;
|
|
719
|
-
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon,
|
|
719
|
+
return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
720
720
|
key: listIndex,
|
|
721
721
|
dataId: item[keyName],
|
|
722
722
|
value: item[keyName],
|
|
@@ -742,8 +742,9 @@ export class ToggleDropDown extends Component {
|
|
|
742
742
|
role: isSearch ? 'option' : 'menuitem',
|
|
743
743
|
ariaSelected: selectedId === item[idName],
|
|
744
744
|
ariaLabel: item[keyName]
|
|
745
|
-
}
|
|
746
|
-
|
|
745
|
+
},
|
|
746
|
+
...ListItemWithIconProps
|
|
747
|
+
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
747
748
|
key: listIndex,
|
|
748
749
|
dataId: item[keyName],
|
|
749
750
|
value: item[keyName],
|
|
@@ -766,8 +767,9 @@ export class ToggleDropDown extends Component {
|
|
|
766
767
|
role: isSearch ? 'option' : 'menuitem',
|
|
767
768
|
ariaSelected: selectedId === item[idName],
|
|
768
769
|
ariaLabel: item[keyName]
|
|
769
|
-
}
|
|
770
|
-
|
|
770
|
+
},
|
|
771
|
+
...ListItemProps
|
|
772
|
+
});
|
|
771
773
|
}));
|
|
772
774
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
773
775
|
isCover: false,
|
|
@@ -791,7 +793,7 @@ export class ToggleDropDown extends Component {
|
|
|
791
793
|
key: i
|
|
792
794
|
}, needDivider ? /*#__PURE__*/React.createElement("div", {
|
|
793
795
|
className: style.seperatedLine
|
|
794
|
-
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon,
|
|
796
|
+
}) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
795
797
|
dataId: item[keyName],
|
|
796
798
|
value: item[keyName],
|
|
797
799
|
id: item[idName],
|
|
@@ -817,8 +819,9 @@ export class ToggleDropDown extends Component {
|
|
|
817
819
|
role: isSearch ? 'option' : 'menuitem',
|
|
818
820
|
ariaSelected: selectedId === item[idName],
|
|
819
821
|
ariaLabel: item[keyName]
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
+
},
|
|
823
|
+
...ListItemWithIconProps
|
|
824
|
+
}) : /*#__PURE__*/React.createElement(ListItem, {
|
|
822
825
|
key: listIndex,
|
|
823
826
|
dataId: item[keyName],
|
|
824
827
|
value: item[keyName],
|
|
@@ -841,8 +844,9 @@ export class ToggleDropDown extends Component {
|
|
|
841
844
|
role: isSearch ? 'option' : 'menuitem',
|
|
842
845
|
ariaSelected: selectedId === item[idName],
|
|
843
846
|
ariaLabel: item[keyName]
|
|
844
|
-
}
|
|
845
|
-
|
|
847
|
+
},
|
|
848
|
+
...ListItemProps
|
|
849
|
+
}));
|
|
846
850
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
847
851
|
isCover: false,
|
|
848
852
|
align: "both"
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React, { memo } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -58,7 +56,7 @@ function CheckBoxField(props) {
|
|
|
58
56
|
lockedInfoText: lockedInfoText,
|
|
59
57
|
infoText: infoText,
|
|
60
58
|
renderProps: renderLabelProps
|
|
61
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
62
60
|
text: labelName,
|
|
63
61
|
id: id,
|
|
64
62
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -68,8 +66,9 @@ function CheckBoxField(props) {
|
|
|
68
66
|
title: labelName,
|
|
69
67
|
onClick: !removeEvent ? handleLabelClick : null,
|
|
70
68
|
variant: isDirectCol ? 'default' : 'primary',
|
|
71
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
72
|
-
|
|
69
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
70
|
+
...LabelProps
|
|
71
|
+
}));
|
|
73
72
|
|
|
74
73
|
function handleChange(value) {
|
|
75
74
|
onChange && onChange(id, value);
|
|
@@ -95,27 +94,30 @@ function CheckBoxField(props) {
|
|
|
95
94
|
align: "top"
|
|
96
95
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
97
96
|
className: isDirectCol ? style.checkbox : style.checkboxRow
|
|
98
|
-
}, /*#__PURE__*/React.createElement(CheckBox,
|
|
97
|
+
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
99
98
|
id: id,
|
|
100
99
|
onChange: handleChange,
|
|
101
100
|
disabled: removeEvent,
|
|
102
101
|
checked: checked,
|
|
103
102
|
getRef: handleGetRef,
|
|
104
103
|
dataId: dataId,
|
|
105
|
-
getContainerRef: getContainerRef
|
|
106
|
-
|
|
104
|
+
getContainerRef: getContainerRef,
|
|
105
|
+
...CheckBoxProps
|
|
106
|
+
})), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
|
|
107
107
|
flexible: true
|
|
108
|
-
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage,
|
|
108
|
+
}, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
109
109
|
text: validationMessage,
|
|
110
110
|
palette: validationPalette,
|
|
111
111
|
type: errorType,
|
|
112
|
-
dataId: `${dataId}_ValidationMessage
|
|
113
|
-
|
|
112
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
113
|
+
...ValidationMessageProps1
|
|
114
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
114
115
|
text: validationRuleMessage,
|
|
115
116
|
palette: validationRulePalette,
|
|
116
117
|
type: errorType,
|
|
117
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
118
|
-
|
|
118
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
119
|
+
...ValidationMessageProps2
|
|
120
|
+
})));
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
CheckBoxField.propTypes = propTypes;
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React, { memo, useRef, useState } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -103,16 +101,17 @@ function CurrencyField(props) {
|
|
|
103
101
|
isLocked: isLocked,
|
|
104
102
|
lockedInfoText: lockedInfoText,
|
|
105
103
|
renderProps: renderLabelProps
|
|
106
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
104
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
107
105
|
text: labelName,
|
|
108
106
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
109
107
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
110
108
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
111
109
|
htmlFor: uniqueId,
|
|
112
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
113
|
-
|
|
110
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
111
|
+
...LabelProps
|
|
112
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
114
113
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
115
|
-
}, /*#__PURE__*/React.createElement(TextBox,
|
|
114
|
+
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
116
115
|
htmlId: uniqueId,
|
|
117
116
|
id: id,
|
|
118
117
|
type: textBoxType,
|
|
@@ -132,20 +131,23 @@ function CurrencyField(props) {
|
|
|
132
131
|
isDisabled: isDisabled,
|
|
133
132
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
134
133
|
isClickable: isClickable,
|
|
135
|
-
needReadOnlyStyle: needReadOnlyStyle
|
|
136
|
-
|
|
134
|
+
needReadOnlyStyle: needReadOnlyStyle,
|
|
135
|
+
...TextBoxProps
|
|
136
|
+
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
137
137
|
text: validationMessage,
|
|
138
138
|
palette: validationPalette,
|
|
139
139
|
type: errorType,
|
|
140
140
|
dataId: `${dataId}_ValidationMessage`,
|
|
141
|
-
htmlFor: uniqueId
|
|
142
|
-
|
|
141
|
+
htmlFor: uniqueId,
|
|
142
|
+
...ValidationMessageProps1
|
|
143
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
143
144
|
text: validationRuleMessage,
|
|
144
145
|
palette: validationRulePalette,
|
|
145
146
|
type: errorType,
|
|
146
147
|
htmlFor: uniqueId,
|
|
147
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
148
|
-
|
|
148
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
149
|
+
...ValidationMessageProps2
|
|
150
|
+
})));
|
|
149
151
|
}
|
|
150
152
|
|
|
151
153
|
CurrencyField.propTypes = propTypes;
|