@zohodesk/dot 1.4.12 → 1.4.14
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/README.md +13 -0
- 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 +2 -5
- 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/index.html +1 -1
- package/es/ActionButton/ActionButton.module.css +51 -4
- package/es/AlphabeticList/AlphabeticList.module.css +0 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +0 -2
- package/es/ChannelIcon/ChannelIcon.module.css +9 -4
- 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 +18 -1
- package/es/FreezeLayer/FreezeLayer.js +1 -1
- package/es/IconButton/IconButton.js +4 -5
- package/es/IconButton/IconButton.module.css +0 -1
- package/es/Link/Link.js +8 -10
- package/es/Message/Message.js +4 -5
- package/es/TagWithIcon/TagWithIcon.module.css +0 -3
- 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 +0 -6
- 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/dropdown/ToggleDropDown/ToggleDropDown.js +36 -24
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
- 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 +21 -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 +16 -13
- package/es/form/fields/TextareaField/props/propTypes.js +1 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
- package/es/list/Comment/Comment.module.css +0 -1
- package/es/list/Dot/Dot.module.css +0 -1
- package/es/list/ListLayout/ListLayout.js +4 -5
- package/es/list/ListLayout/ListLayout.module.css +0 -6
- 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 +8 -1
- package/es/list/Thread/Thread.module.css +0 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/lookup/Lookup/Lookup.js +7 -7
- package/es/lookup/Lookup/Lookup.module.css +4 -1
- package/es/lookup/Lookup/props/propTypes.js +3 -2
- package/es/lookup/header/Search/Search.js +5 -3
- package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
- package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/es/v1/ActionButton/ActionButton.js +1 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +2 -2
- package/es/v1/Drawer/Drawer.js +6 -7
- package/es/v1/ExternalLink/ExternalLink.js +4 -5
- package/es/v1/FlipCard/FlipCard.js +15 -13
- package/es/v1/FreezeLayer/FreezeLayer.js +2 -2
- 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/Loader/Loader.js +1 -1
- package/es/v1/Message/Message.js +4 -5
- package/es/v1/ToastMessage/ToastMessage.js +4 -6
- package/es/v1/actions/AutoClose.js +2 -1
- package/es/v1/alert/AlertLookup/AlertLookup.js +16 -16
- 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 +5 -6
- 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 +39 -27
- package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +15 -13
- package/es/v1/form/fields/DateField/DateField.js +15 -15
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +14 -13
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +21 -16
- package/es/v1/form/fields/SelectField/SelectField.js +15 -15
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -11
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +15 -15
- 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 +17 -14
- package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -0
- 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/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +6 -6
- package/es/v1/lookup/Lookup/Lookup.js +7 -7
- package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
- package/es/v1/lookup/header/Search/Search.js +5 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
- package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -8
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
- 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 +0 -2
- package/lib/ActionButton/ActionButton.module.css +51 -4
- package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
- package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
- package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
- package/lib/FormAction/FormAction.module.css +18 -1
- package/lib/FreezeLayer/FreezeLayer.js +1 -1
- package/lib/IconButton/IconButton.module.css +0 -1
- package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +8 -0
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
- package/lib/form/fields/RadioField/RadioField.js +3 -0
- package/lib/form/fields/TextareaField/TextareaField.js +2 -0
- package/lib/form/fields/TextareaField/props/propTypes.js +1 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
- package/lib/list/Comment/Comment.module.css +0 -1
- package/lib/list/Dot/Dot.module.css +0 -1
- package/lib/list/ListLayout/ListLayout.module.css +0 -6
- package/lib/list/Subject/Subject.module.css +8 -1
- package/lib/list/Thread/Thread.module.css +0 -1
- package/lib/lookup/Lookup/Lookup.js +3 -2
- package/lib/lookup/Lookup/Lookup.module.css +4 -1
- package/lib/lookup/Lookup/props/propTypes.js +3 -2
- package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
- package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/lib/v1/ActionButton/ActionButton.js +1 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +2 -2
- package/lib/v1/Drawer/Drawer.js +2 -2
- package/lib/v1/FlipCard/FlipCard.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +2 -2
- package/lib/v1/Loader/Loader.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +2 -2
- package/lib/v1/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +1 -1
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +11 -3
- package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/lib/v1/form/fields/DateField/DateField.js +1 -1
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/v1/form/fields/RadioField/RadioField.js +3 -0
- package/lib/v1/form/fields/SelectField/SelectField.js +1 -1
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -1
- package/lib/v1/form/fields/TextareaField/props/propTypes.js +1 -0
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/v1/lookup/Lookup/Lookup.js +3 -2
- package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
- package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
- package/lib/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
- package/package.json +11 -11
- package/result.json +1 -1
- package/es/v1/Provider/Config.js +0 -20
- package/lib/v1/Provider/Config.js +0 -29
- /package/es/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
- /package/lib/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
|
@@ -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';
|
|
@@ -9,7 +7,7 @@ import { propTypes } from './props/propTypes';
|
|
|
9
7
|
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
8
|
import Select from '@zohodesk/components/es/v1/Select/Select';
|
|
11
9
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
|
-
import { useUniqueId } from '@zohodesk/components/es/
|
|
10
|
+
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
13
11
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
14
12
|
/** CSS */
|
|
15
13
|
|
|
@@ -93,18 +91,18 @@ const SelectField = props => {
|
|
|
93
91
|
isLocked: isLocked,
|
|
94
92
|
lockedInfoText: lockedInfoText,
|
|
95
93
|
renderProps: renderLabelProps
|
|
96
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
94
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
97
95
|
text: labelName,
|
|
98
96
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
99
97
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
100
98
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
101
99
|
htmlFor: uniqueId,
|
|
102
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
103
|
-
|
|
100
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
101
|
+
...LabelProps,
|
|
104
102
|
id: uniqueId
|
|
105
|
-
}))
|
|
103
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
106
104
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
107
|
-
}, /*#__PURE__*/React.createElement(Select,
|
|
105
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
108
106
|
options: options,
|
|
109
107
|
selectedValue: selectedValue,
|
|
110
108
|
onChange: handleChange,
|
|
@@ -133,22 +131,24 @@ const SelectField = props => {
|
|
|
133
131
|
needLocalSearch: needLocalSearch,
|
|
134
132
|
isDefaultSelectValue: isDefaultSelectValue,
|
|
135
133
|
placeHolder: placeHolder,
|
|
136
|
-
iconOnHover: iconOnHover
|
|
137
|
-
|
|
134
|
+
iconOnHover: iconOnHover,
|
|
135
|
+
...SelectProps,
|
|
138
136
|
ariaLabelledby: uniqueId
|
|
139
|
-
}
|
|
137
|
+
}, children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
140
138
|
text: validationMessage,
|
|
141
139
|
palette: validationPalette,
|
|
142
140
|
type: errorType,
|
|
143
141
|
htmlFor: uniqueId,
|
|
144
|
-
dataId: `${dataId}_ValidationMessage
|
|
145
|
-
|
|
142
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
143
|
+
...ValidationMessageProps1
|
|
144
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
146
145
|
text: validationRuleMessage,
|
|
147
146
|
palette: validationRulePalette,
|
|
148
147
|
type: errorType,
|
|
149
148
|
htmlFor: uniqueId,
|
|
150
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
151
|
-
|
|
149
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
150
|
+
...ValidationMessageProps2
|
|
151
|
+
}));
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
SelectField.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 from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -12,7 +10,7 @@ import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
|
12
10
|
import DropDownSeparator from '@zohodesk/components/es/v1/DropDown/DropDownSeparator';
|
|
13
11
|
import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
14
12
|
import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
|
|
15
|
-
import { ResponsiveReceiver } from '@zohodesk/components/es/
|
|
13
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
16
14
|
import MultiSelectHeader from '@zohodesk/components/es/v1/MultiSelect/MultiSelectHeader';
|
|
17
15
|
import { stopBubbling } from '../../../../utils/General';
|
|
18
16
|
import { scrollTo, findScrollEnd } from '@zohodesk/components/es/utils/Common.js';
|
|
@@ -187,10 +185,12 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
187
185
|
boxCustomProps,
|
|
188
186
|
tagCustomProps
|
|
189
187
|
} = tag;
|
|
190
|
-
return index < chipLimit ? /*#__PURE__*/React.createElement(Box,
|
|
188
|
+
return index < chipLimit ? /*#__PURE__*/React.createElement(Box, {
|
|
191
189
|
className: style.tag,
|
|
192
|
-
key: index
|
|
193
|
-
|
|
190
|
+
key: index,
|
|
191
|
+
...TagWrapperProps,
|
|
192
|
+
...boxCustomProps
|
|
193
|
+
}, /*#__PURE__*/React.createElement(Tag, {
|
|
194
194
|
id: id,
|
|
195
195
|
text: name,
|
|
196
196
|
onRemove: isReadOnly ? null : deleteTag.bind(this, name),
|
|
@@ -198,8 +198,10 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
198
198
|
palette: clickableTag ? 'defaultLink' : tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
199
199
|
isReadOnly: isReadOnly,
|
|
200
200
|
onSelectTag: onSelectTag ? onSelectTag : undefined,
|
|
201
|
-
customClass: tagCustomClass
|
|
202
|
-
|
|
201
|
+
customClass: tagCustomClass,
|
|
202
|
+
...TagProps,
|
|
203
|
+
...tagCustomProps
|
|
204
|
+
})) : null;
|
|
203
205
|
}), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/React.createElement(Box, {
|
|
204
206
|
className: style.moreLess,
|
|
205
207
|
dataId: `${dataId}_tagsMore`,
|
|
@@ -211,7 +213,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
211
213
|
className: style.inputWrapper
|
|
212
214
|
}, /*#__PURE__*/React.createElement("span", {
|
|
213
215
|
className: style.custmSpan
|
|
214
|
-
}, name), /*#__PURE__*/React.createElement(TextBoxIcon,
|
|
216
|
+
}, name), /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
215
217
|
htmlId: htmlId,
|
|
216
218
|
dataId: `${dataId}_tagInp`,
|
|
217
219
|
value: name,
|
|
@@ -227,8 +229,9 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
227
229
|
customTextBox: style.input
|
|
228
230
|
},
|
|
229
231
|
size: "xsmall",
|
|
230
|
-
inputRef: this.textInputRef
|
|
231
|
-
|
|
232
|
+
inputRef: this.textInputRef,
|
|
233
|
+
...TextBoxIconProps
|
|
234
|
+
}, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
232
235
|
query: this.responsiveFunc,
|
|
233
236
|
responsiveId: "Helmet"
|
|
234
237
|
}, _ref2 => {
|
|
@@ -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, { useState, useEffect } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -202,7 +200,7 @@ const TagsMultiSelectField = props => {
|
|
|
202
200
|
renderProps: {
|
|
203
201
|
end: renderEnd
|
|
204
202
|
}
|
|
205
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
203
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
206
204
|
text: labelName,
|
|
207
205
|
title: labelName,
|
|
208
206
|
id: id,
|
|
@@ -210,11 +208,12 @@ const TagsMultiSelectField = props => {
|
|
|
210
208
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
211
209
|
customClass: `${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${labelClass ? labelClass : ''}`,
|
|
212
210
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
213
|
-
htmlFor: htmlId
|
|
214
|
-
|
|
211
|
+
htmlFor: htmlId,
|
|
212
|
+
...LabelProps
|
|
213
|
+
}), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
|
|
215
214
|
dataId: `${dataId}_tagCount`,
|
|
216
215
|
className: style.count
|
|
217
|
-
}, `(${selectedValueCount})`) : null), /*#__PURE__*/React.createElement(TagsMultiSelect,
|
|
216
|
+
}, `(${selectedValueCount})`) : null), /*#__PURE__*/React.createElement(TagsMultiSelect, {
|
|
218
217
|
addTag: handleAdd,
|
|
219
218
|
deleteTag: onDelete,
|
|
220
219
|
handleChange: handleChange,
|
|
@@ -244,16 +243,17 @@ const TagsMultiSelectField = props => {
|
|
|
244
243
|
borderColor: borderColor,
|
|
245
244
|
htmlId: htmlId,
|
|
246
245
|
getTextBoxChildren: getTextBoxChildren,
|
|
247
|
-
className: containerClass
|
|
248
|
-
|
|
246
|
+
className: containerClass,
|
|
247
|
+
...TagsMultiSelectProps,
|
|
249
248
|
clickableTag: clickableTag
|
|
250
|
-
})
|
|
249
|
+
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
251
250
|
text: validationMessage,
|
|
252
251
|
palette: validationPalette,
|
|
253
252
|
type: errorType,
|
|
254
253
|
dataId: `${dataId}_ValidationMessage`,
|
|
255
|
-
htmlFor: htmlId
|
|
256
|
-
|
|
254
|
+
htmlFor: htmlId,
|
|
255
|
+
...ValidationMessageProps
|
|
256
|
+
}));
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
TagsMultiSelectField.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 } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -9,7 +7,7 @@ import { propTypes } from './props/propTypes';
|
|
|
9
7
|
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
8
|
import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
|
|
11
9
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
|
-
import { useUniqueId } from '@zohodesk/components/es/
|
|
10
|
+
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
13
11
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
14
12
|
/**** CSS ****/
|
|
15
13
|
|
|
@@ -84,18 +82,18 @@ const TextBoxField = props => {
|
|
|
84
82
|
ePhiData: ePhiData,
|
|
85
83
|
dataId: dataId,
|
|
86
84
|
renderProps: renderLabelProps
|
|
87
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
85
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
88
86
|
text: labelName,
|
|
89
87
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
90
88
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
91
89
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
92
90
|
htmlFor: uniqueId,
|
|
93
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
94
|
-
|
|
91
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
92
|
+
...LabelProps,
|
|
95
93
|
id: labelName
|
|
96
|
-
}))
|
|
94
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
97
95
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
98
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon,
|
|
96
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
99
97
|
htmlId: uniqueId,
|
|
100
98
|
id: id,
|
|
101
99
|
type: textBoxType,
|
|
@@ -115,24 +113,26 @@ const TextBoxField = props => {
|
|
|
115
113
|
isDisabled: isDisabled,
|
|
116
114
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
117
115
|
isClickable: isClickable,
|
|
118
|
-
needReadOnlyStyle: needReadOnlyStyle
|
|
119
|
-
|
|
116
|
+
needReadOnlyStyle: needReadOnlyStyle,
|
|
117
|
+
...TextBoxIconProps,
|
|
120
118
|
a11y: {
|
|
121
119
|
ariaLabelledby: labelName
|
|
122
120
|
}
|
|
123
|
-
}
|
|
121
|
+
}, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
124
122
|
text: validationMessage,
|
|
125
123
|
palette: validationPalette,
|
|
126
124
|
type: errorType,
|
|
127
125
|
dataId: `${dataId}_ValidationMessage`,
|
|
128
|
-
htmlFor: uniqueId
|
|
129
|
-
|
|
126
|
+
htmlFor: uniqueId,
|
|
127
|
+
...ValidationMessageProps1
|
|
128
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
130
129
|
text: validationRuleMessage,
|
|
131
130
|
palette: validationRulePalette,
|
|
132
131
|
type: errorType,
|
|
133
132
|
htmlFor: uniqueId,
|
|
134
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
135
|
-
|
|
133
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
134
|
+
...ValidationMessageProps2
|
|
135
|
+
})));
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
TextBoxField.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 } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -101,17 +99,18 @@ const TextEditorField = props => {
|
|
|
101
99
|
renderProps: {
|
|
102
100
|
end: renderEnd
|
|
103
101
|
}
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
105
103
|
text: labelName,
|
|
106
104
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
107
105
|
htmlFor: !isReadOnly && !isDisabled ? id : undefined,
|
|
108
106
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
109
107
|
onClick: handleLabelClick,
|
|
110
108
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
111
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
112
|
-
|
|
109
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
110
|
+
...LabelProps
|
|
111
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
113
112
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
114
|
-
}, /*#__PURE__*/React.createElement(TextEditorWrapper,
|
|
113
|
+
}, /*#__PURE__*/React.createElement(TextEditorWrapper, {
|
|
115
114
|
needEditor: needEditor,
|
|
116
115
|
onChange: handleChange,
|
|
117
116
|
id: id,
|
|
@@ -140,13 +139,15 @@ const TextEditorField = props => {
|
|
|
140
139
|
shouldEditorUpdateContent: shouldEditorUpdateContent,
|
|
141
140
|
setInlineAttachmentInProgress: setInlineAttachmentInProgress,
|
|
142
141
|
handleEditorDropUpload: handleEditorDropUpload,
|
|
143
|
-
needInlineAttachment: needInlineAttachment
|
|
144
|
-
|
|
142
|
+
needInlineAttachment: needInlineAttachment,
|
|
143
|
+
...TextEditorWrapperProps
|
|
144
|
+
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
145
145
|
text: validationMessage,
|
|
146
146
|
palette: validationPalette,
|
|
147
147
|
type: errorType,
|
|
148
|
-
dataId: `${dataId}_ValidationMessage
|
|
149
|
-
|
|
148
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
149
|
+
...ValidationMessageProps
|
|
150
|
+
}));
|
|
150
151
|
};
|
|
151
152
|
|
|
152
153
|
TextEditorField.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, { useState } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -91,7 +89,7 @@ const TextEditorWrapper = props => {
|
|
|
91
89
|
return /*#__PURE__*/React.createElement("div", {
|
|
92
90
|
className: style.container,
|
|
93
91
|
"data-selector-id": dataSelectorId
|
|
94
|
-
}, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea,
|
|
92
|
+
}, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, {
|
|
95
93
|
onFocus: handleTextareaFocus,
|
|
96
94
|
text: value,
|
|
97
95
|
animated: !needEditor,
|
|
@@ -103,8 +101,9 @@ const TextEditorWrapper = props => {
|
|
|
103
101
|
getRef: getRef,
|
|
104
102
|
size: textBoxSize,
|
|
105
103
|
variant: textBoxVariant,
|
|
106
|
-
customClass: style.textBox
|
|
107
|
-
|
|
104
|
+
customClass: style.textBox,
|
|
105
|
+
...Textarea1Props
|
|
106
|
+
}) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
108
107
|
name: "slideDown",
|
|
109
108
|
runOnMount: true,
|
|
110
109
|
enterDuration: '300',
|
|
@@ -113,7 +112,7 @@ const TextEditorWrapper = props => {
|
|
|
113
112
|
component: "div"
|
|
114
113
|
}, /*#__PURE__*/React.createElement("div", {
|
|
115
114
|
className: style.textEditor
|
|
116
|
-
}, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor,
|
|
115
|
+
}, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, {
|
|
117
116
|
id: id,
|
|
118
117
|
value: value,
|
|
119
118
|
onChange: !isReadOnly && !isDisabled ? onChange : null,
|
|
@@ -141,8 +140,9 @@ const TextEditorWrapper = props => {
|
|
|
141
140
|
setInlineAttachmentInProgress: setInlineAttachmentInProgress,
|
|
142
141
|
handleDropUpload: handleEditorDropUpload,
|
|
143
142
|
onFocus: focusCallback,
|
|
144
|
-
needInlineAttachment: needInlineAttachment
|
|
145
|
-
|
|
143
|
+
needInlineAttachment: needInlineAttachment,
|
|
144
|
+
...TextEditorProps
|
|
145
|
+
}) : /*#__PURE__*/React.createElement(Textarea, {
|
|
146
146
|
onFocus: handleTextareaFocus,
|
|
147
147
|
text: value,
|
|
148
148
|
animated: !needEditor,
|
|
@@ -153,8 +153,9 @@ const TextEditorWrapper = props => {
|
|
|
153
153
|
needEffect: !(isReadOnly || isDisabled),
|
|
154
154
|
getRef: getRef,
|
|
155
155
|
size: textBoxSize,
|
|
156
|
-
variant: textBoxVariant
|
|
157
|
-
|
|
156
|
+
variant: textBoxVariant,
|
|
157
|
+
...Textarea2Props
|
|
158
|
+
}))));
|
|
158
159
|
};
|
|
159
160
|
|
|
160
161
|
export default TextEditorWrapper;
|
|
@@ -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';
|
|
@@ -9,7 +7,7 @@ import { propTypes } from './props/propTypes';
|
|
|
9
7
|
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
8
|
import Textarea from '@zohodesk/components/es/v1/Textarea/Textarea';
|
|
11
9
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
12
|
-
import { useUniqueId } from '@zohodesk/components/es/
|
|
10
|
+
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
13
11
|
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
14
12
|
/**** CSS ****/
|
|
15
13
|
|
|
@@ -37,6 +35,7 @@ const TextareaField = props => {
|
|
|
37
35
|
validationRuleMessage,
|
|
38
36
|
validationRulePalette,
|
|
39
37
|
// onKeyDown,
|
|
38
|
+
onFocus,
|
|
40
39
|
infoText,
|
|
41
40
|
borderColor,
|
|
42
41
|
fieldSize,
|
|
@@ -81,17 +80,18 @@ const TextareaField = props => {
|
|
|
81
80
|
isLocked: isLocked,
|
|
82
81
|
lockedInfoText: lockedInfoText,
|
|
83
82
|
renderProps: renderLabelProps
|
|
84
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
83
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
85
84
|
text: labelName,
|
|
86
85
|
id: id,
|
|
87
86
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
88
87
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
89
88
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
90
89
|
htmlFor: uniqueId,
|
|
91
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
92
|
-
|
|
90
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
91
|
+
...LabelProps
|
|
92
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
93
93
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Textarea,
|
|
94
|
+
}, /*#__PURE__*/React.createElement(Textarea, {
|
|
95
95
|
onChange: handleChange,
|
|
96
96
|
animated: animated,
|
|
97
97
|
size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
|
|
@@ -103,29 +103,32 @@ const TextareaField = props => {
|
|
|
103
103
|
text: value,
|
|
104
104
|
placeHolder: placeHolder,
|
|
105
105
|
dataId: `property(${dataId})`,
|
|
106
|
+
onFocus: onFocus,
|
|
106
107
|
onBlur: handleBlur,
|
|
107
108
|
borderColor: borderColor,
|
|
108
109
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
109
110
|
resize: "vertical" // onKeyDown={onKeyDown}
|
|
110
111
|
,
|
|
111
|
-
htmlId: uniqueId
|
|
112
|
-
|
|
112
|
+
htmlId: uniqueId,
|
|
113
|
+
...TextareaProps,
|
|
113
114
|
a11y: {
|
|
114
115
|
ariaLabelledby: labelName
|
|
115
116
|
}
|
|
116
|
-
})
|
|
117
|
+
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
117
118
|
text: validationMessage,
|
|
118
119
|
palette: validationPalette,
|
|
119
120
|
type: errorType,
|
|
120
121
|
htmlFor: uniqueId,
|
|
121
|
-
dataId: `${dataId}_ValidationMessage
|
|
122
|
-
|
|
122
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
123
|
+
...ValidationMessageProps1
|
|
124
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
123
125
|
text: validationRuleMessage,
|
|
124
126
|
palette: validationRulePalette,
|
|
125
127
|
type: errorType,
|
|
126
128
|
htmlFor: uniqueId,
|
|
127
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
128
|
-
|
|
129
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
130
|
+
...ValidationMessageProps2
|
|
131
|
+
})));
|
|
129
132
|
};
|
|
130
133
|
|
|
131
134
|
TextareaField.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 from 'react';
|
|
4
2
|
import { SubtabHeader_propTypes, SubtabFooter_propTypes, SubtabContent_propTypes, SubtabLayout_propTypes } from './props/propTypes';
|
|
5
3
|
import { SubtabHeader_defaultProps, SubtabFooter_defaultProps, SubtabContent_defaultProps, SubtabLayout_defaultProps } from './props/defaultProps';
|
|
@@ -114,15 +112,15 @@ export default function SubtabLayout(props) {
|
|
|
114
112
|
children,
|
|
115
113
|
dataId
|
|
116
114
|
} = props;
|
|
117
|
-
return /*#__PURE__*/React.createElement(Card,
|
|
115
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
118
116
|
isScrollAttribute: true,
|
|
119
|
-
dataId: dataId
|
|
120
|
-
|
|
117
|
+
dataId: dataId,
|
|
118
|
+
...props,
|
|
121
119
|
childTypes: {
|
|
122
120
|
cardHeader: SubtabHeader,
|
|
123
121
|
cardContent: SubtabContent
|
|
124
122
|
}
|
|
125
|
-
}
|
|
123
|
+
}, children);
|
|
126
124
|
}
|
|
127
125
|
SubtabLayout.defaultProps = SubtabLayout_defaultProps;
|
|
128
126
|
SubtabLayout.propTypes = SubtabLayout_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 from 'react';
|
|
4
2
|
import { ListLayout_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { ListLayout_propTypes, Column_propTypes } from './props/propTypes';
|
|
@@ -57,9 +55,10 @@ export function Column(props) {
|
|
|
57
55
|
children,
|
|
58
56
|
className
|
|
59
57
|
} = props;
|
|
60
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
61
|
-
className: `${className ? className : ''}
|
|
62
|
-
|
|
58
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
59
|
+
className: `${className ? className : ''}`,
|
|
60
|
+
...props
|
|
61
|
+
}, children);
|
|
63
62
|
}
|
|
64
63
|
Column.propTypes = Column_propTypes; // if (__DOCS__) {
|
|
65
64
|
// ListLayout.docs = {
|
|
@@ -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
|
/* eslint-disable react/forbid-component-props */
|
|
4
2
|
|
|
5
3
|
/**** Libraries ****/
|
|
@@ -52,26 +50,28 @@ export default function AccountName(props) {
|
|
|
52
50
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
53
51
|
className: style.primaryAccountName,
|
|
54
52
|
shrink: true
|
|
55
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
53
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
56
54
|
href: href,
|
|
57
55
|
urlName: urlName,
|
|
58
56
|
urlData: urlData,
|
|
59
57
|
onClick: onClick,
|
|
60
58
|
dataId: `${dataId}_link`,
|
|
61
|
-
className: style.link
|
|
62
|
-
|
|
59
|
+
className: style.link,
|
|
60
|
+
...LinkProps,
|
|
63
61
|
ariaLabel: `Account Name ${text}`
|
|
64
|
-
}
|
|
62
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
65
63
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
66
|
-
}, text)) : /*#__PURE__*/React.createElement("div",
|
|
67
|
-
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}
|
|
68
|
-
|
|
64
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
66
|
+
...TextProps
|
|
67
|
+
}, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
69
68
|
href: secondaryAccountHref,
|
|
70
69
|
onClick: secondaryAccountClick,
|
|
71
70
|
className: style.link
|
|
72
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
73
|
-
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}
|
|
74
|
-
|
|
71
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
73
|
+
...SecondaryTextProps
|
|
74
|
+
}, secondaryAccountText))))));
|
|
75
75
|
}
|
|
76
76
|
AccountName.propTypes = AccountName_propTypes;
|
|
77
77
|
AccountName.defaultProps = AccountName_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 { ContactName_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { ContactName_propTypes } from './props/propTypes';
|
|
@@ -53,22 +51,23 @@ export default function ContactName(props) {
|
|
|
53
51
|
iconClass: style.icon
|
|
54
52
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
55
53
|
flexible: true
|
|
56
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
54
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
57
55
|
urlName: urlName,
|
|
58
56
|
href: href,
|
|
59
57
|
urlData: urlData,
|
|
60
58
|
onClick: onClick,
|
|
61
59
|
title: dataTitle,
|
|
62
60
|
dataId: `${dataId}_link`,
|
|
63
|
-
className: style.link
|
|
64
|
-
|
|
61
|
+
className: style.link,
|
|
62
|
+
...LinkProps,
|
|
65
63
|
ariaLabel: `Contact Name ${text}`
|
|
66
|
-
}
|
|
64
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
67
65
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
68
|
-
}, text)) : /*#__PURE__*/React.createElement("div",
|
|
66
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
69
67
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
70
|
-
"data-title": dataTitle
|
|
71
|
-
|
|
68
|
+
"data-title": dataTitle,
|
|
69
|
+
...TextProps
|
|
70
|
+
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
72
71
|
type: sentimentType,
|
|
73
72
|
dataTitle: sentimentDataTitle
|
|
74
73
|
})));
|
|
@@ -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
|
/* eslint-disable react/forbid-component-props */
|
|
4
2
|
|
|
5
3
|
/**** Libraries ****/
|
|
@@ -29,19 +27,21 @@ export default function Email(props) {
|
|
|
29
27
|
LinkProps = {},
|
|
30
28
|
TextProps = {}
|
|
31
29
|
} = customProps;
|
|
32
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
30
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
33
31
|
href: href,
|
|
34
32
|
title: title,
|
|
35
33
|
urlData: urlData,
|
|
36
34
|
urlName: urlName,
|
|
37
35
|
target: target,
|
|
38
|
-
className: style.link
|
|
39
|
-
|
|
36
|
+
className: style.link,
|
|
37
|
+
...LinkProps
|
|
38
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
39
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
41
|
-
}, text)) : /*#__PURE__*/React.createElement("div",
|
|
40
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
42
41
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
43
|
-
"data-title": title
|
|
44
|
-
|
|
42
|
+
"data-title": title,
|
|
43
|
+
...TextProps
|
|
44
|
+
}, text));
|
|
45
45
|
}
|
|
46
46
|
Email.propTypes = Email_propTypes;
|
|
47
47
|
Email.defaultProps = Email_defaultProps;
|