@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, { PureComponent } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -115,18 +113,18 @@ export default class SelectField extends PureComponent {
|
|
|
115
113
|
isLocked: isLocked,
|
|
116
114
|
lockedInfoText: lockedInfoText,
|
|
117
115
|
renderProps: renderLabelProps
|
|
118
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
116
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
119
117
|
text: labelName,
|
|
120
118
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
121
119
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
122
120
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
123
121
|
htmlFor: uniqueId,
|
|
124
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
125
|
-
|
|
122
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
123
|
+
...LabelProps,
|
|
126
124
|
id: uniqueId
|
|
127
|
-
}))
|
|
125
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
128
126
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
129
|
-
}, /*#__PURE__*/React.createElement(Select,
|
|
127
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
130
128
|
options: options,
|
|
131
129
|
selectedValue: selectedValue,
|
|
132
130
|
onChange: this.handleChange,
|
|
@@ -155,22 +153,24 @@ export default class SelectField extends PureComponent {
|
|
|
155
153
|
needLocalSearch: needLocalSearch,
|
|
156
154
|
isDefaultSelectValue: isDefaultSelectValue,
|
|
157
155
|
placeHolder: placeHolder,
|
|
158
|
-
iconOnHover: iconOnHover
|
|
159
|
-
|
|
156
|
+
iconOnHover: iconOnHover,
|
|
157
|
+
...SelectProps,
|
|
160
158
|
ariaLabelledby: uniqueId
|
|
161
|
-
}
|
|
159
|
+
}, children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
162
160
|
text: validationMessage,
|
|
163
161
|
palette: validationPalette,
|
|
164
162
|
type: errorType,
|
|
165
163
|
htmlFor: uniqueId,
|
|
166
|
-
dataId: `${dataId}_ValidationMessage
|
|
167
|
-
|
|
164
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
165
|
+
...ValidationMessageProps1
|
|
166
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
168
167
|
text: validationRuleMessage,
|
|
169
168
|
palette: validationRulePalette,
|
|
170
169
|
type: errorType,
|
|
171
170
|
htmlFor: uniqueId,
|
|
172
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
173
|
-
|
|
171
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
172
|
+
...ValidationMessageProps2
|
|
173
|
+
}));
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
}
|
|
@@ -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';
|
|
@@ -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, { PureComponent } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -103,18 +101,18 @@ export default class TextBoxField extends PureComponent {
|
|
|
103
101
|
ePhiData: ePhiData,
|
|
104
102
|
dataId: dataId,
|
|
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,
|
|
114
112
|
id: labelName
|
|
115
|
-
}))
|
|
113
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
116
114
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
117
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon,
|
|
115
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
118
116
|
htmlId: uniqueId,
|
|
119
117
|
id: id,
|
|
120
118
|
type: textBoxType,
|
|
@@ -134,24 +132,26 @@ export default class TextBoxField extends PureComponent {
|
|
|
134
132
|
isDisabled: isDisabled,
|
|
135
133
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
136
134
|
isClickable: isClickable,
|
|
137
|
-
needReadOnlyStyle: needReadOnlyStyle
|
|
138
|
-
|
|
135
|
+
needReadOnlyStyle: needReadOnlyStyle,
|
|
136
|
+
...TextBoxIconProps,
|
|
139
137
|
a11y: {
|
|
140
138
|
ariaLabelledby: labelName
|
|
141
139
|
}
|
|
142
|
-
}
|
|
140
|
+
}, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
143
141
|
text: validationMessage,
|
|
144
142
|
palette: validationPalette,
|
|
145
143
|
type: errorType,
|
|
146
144
|
dataId: `${dataId}_ValidationMessage`,
|
|
147
|
-
htmlFor: uniqueId
|
|
148
|
-
|
|
145
|
+
htmlFor: uniqueId,
|
|
146
|
+
...ValidationMessageProps1
|
|
147
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
149
148
|
text: validationRuleMessage,
|
|
150
149
|
palette: validationRulePalette,
|
|
151
150
|
type: errorType,
|
|
152
151
|
htmlFor: uniqueId,
|
|
153
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
154
|
-
|
|
152
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
153
|
+
...ValidationMessageProps2
|
|
154
|
+
})));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
}
|
|
@@ -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, { PureComponent } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -121,17 +119,18 @@ export default class TextEditorField extends PureComponent {
|
|
|
121
119
|
renderProps: {
|
|
122
120
|
end: this.renderEnd
|
|
123
121
|
}
|
|
124
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
125
123
|
text: labelName,
|
|
126
124
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
127
125
|
htmlFor: !isReadOnly && !isDisabled ? id : undefined,
|
|
128
126
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
129
127
|
onClick: this.handleLabelClick,
|
|
130
128
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
131
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
132
|
-
|
|
129
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
130
|
+
...LabelProps
|
|
131
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
133
132
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
134
|
-
}, /*#__PURE__*/React.createElement(TextEditorWrapper,
|
|
133
|
+
}, /*#__PURE__*/React.createElement(TextEditorWrapper, {
|
|
135
134
|
needEditor: needEditor,
|
|
136
135
|
onChange: this.handleChange,
|
|
137
136
|
id: id,
|
|
@@ -160,13 +159,15 @@ export default class TextEditorField extends PureComponent {
|
|
|
160
159
|
shouldEditorUpdateContent: shouldEditorUpdateContent,
|
|
161
160
|
setInlineAttachmentInProgress: setInlineAttachmentInProgress,
|
|
162
161
|
handleEditorDropUpload: handleEditorDropUpload,
|
|
163
|
-
needInlineAttachment: needInlineAttachment
|
|
164
|
-
|
|
162
|
+
needInlineAttachment: needInlineAttachment,
|
|
163
|
+
...TextEditorWrapperProps
|
|
164
|
+
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
165
165
|
text: validationMessage,
|
|
166
166
|
palette: validationPalette,
|
|
167
167
|
type: errorType,
|
|
168
|
-
dataId: `${dataId}_ValidationMessage
|
|
169
|
-
|
|
168
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
169
|
+
...ValidationMessageProps
|
|
170
|
+
}));
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
}
|
|
@@ -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 } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -132,7 +130,7 @@ export default class TextEditorWrapper extends Component {
|
|
|
132
130
|
return /*#__PURE__*/React.createElement("div", {
|
|
133
131
|
className: style.container,
|
|
134
132
|
"data-selector-id": dataSelectorId
|
|
135
|
-
}, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea,
|
|
133
|
+
}, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, {
|
|
136
134
|
onFocus: this.handleTextareaFocus,
|
|
137
135
|
text: value,
|
|
138
136
|
animated: !needEditor,
|
|
@@ -144,8 +142,9 @@ export default class TextEditorWrapper extends Component {
|
|
|
144
142
|
getRef: getRef,
|
|
145
143
|
size: textBoxSize,
|
|
146
144
|
variant: textBoxVariant,
|
|
147
|
-
customClass: style.textBox
|
|
148
|
-
|
|
145
|
+
customClass: style.textBox,
|
|
146
|
+
...Textarea1Props
|
|
147
|
+
}) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
149
148
|
name: "slideDown",
|
|
150
149
|
runOnMount: true,
|
|
151
150
|
enterDuration: '300',
|
|
@@ -154,7 +153,7 @@ export default class TextEditorWrapper extends Component {
|
|
|
154
153
|
component: "div"
|
|
155
154
|
}, /*#__PURE__*/React.createElement("div", {
|
|
156
155
|
className: style.textEditor
|
|
157
|
-
}, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor,
|
|
156
|
+
}, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, {
|
|
158
157
|
id: id,
|
|
159
158
|
value: value,
|
|
160
159
|
onChange: !isReadOnly && !isDisabled ? onChange : null,
|
|
@@ -182,8 +181,9 @@ export default class TextEditorWrapper extends Component {
|
|
|
182
181
|
setInlineAttachmentInProgress: setInlineAttachmentInProgress,
|
|
183
182
|
handleDropUpload: handleEditorDropUpload,
|
|
184
183
|
onFocus: this.focusCallback,
|
|
185
|
-
needInlineAttachment: needInlineAttachment
|
|
186
|
-
|
|
184
|
+
needInlineAttachment: needInlineAttachment,
|
|
185
|
+
...TextEditorProps
|
|
186
|
+
}) : /*#__PURE__*/React.createElement(Textarea, {
|
|
187
187
|
onFocus: this.handleTextareaFocus,
|
|
188
188
|
text: value,
|
|
189
189
|
animated: !needEditor,
|
|
@@ -194,8 +194,9 @@ export default class TextEditorWrapper extends Component {
|
|
|
194
194
|
needEffect: !(isReadOnly || isDisabled),
|
|
195
195
|
getRef: getRef,
|
|
196
196
|
size: textBoxSize,
|
|
197
|
-
variant: textBoxVariant
|
|
198
|
-
|
|
197
|
+
variant: textBoxVariant,
|
|
198
|
+
...Textarea2Props
|
|
199
|
+
}))));
|
|
199
200
|
}
|
|
200
201
|
|
|
201
202
|
}
|
|
@@ -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, { PureComponent } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -77,6 +75,7 @@ export default class TextareaField extends PureComponent {
|
|
|
77
75
|
validationRuleMessage,
|
|
78
76
|
validationRulePalette,
|
|
79
77
|
// onKeyDown,
|
|
78
|
+
onFocus,
|
|
80
79
|
infoText,
|
|
81
80
|
borderColor,
|
|
82
81
|
fieldSize,
|
|
@@ -104,17 +103,18 @@ export default class TextareaField extends PureComponent {
|
|
|
104
103
|
isLocked: isLocked,
|
|
105
104
|
lockedInfoText: lockedInfoText,
|
|
106
105
|
renderProps: renderLabelProps
|
|
107
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
108
107
|
text: labelName,
|
|
109
108
|
id: id,
|
|
110
109
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
111
110
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
112
111
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
113
112
|
htmlFor: uniqueId,
|
|
114
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label
|
|
115
|
-
|
|
113
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
114
|
+
...LabelProps
|
|
115
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
116
116
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
117
|
-
}, /*#__PURE__*/React.createElement(Textarea,
|
|
117
|
+
}, /*#__PURE__*/React.createElement(Textarea, {
|
|
118
118
|
onChange: this.handleChange,
|
|
119
119
|
animated: animated,
|
|
120
120
|
size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
|
|
@@ -126,29 +126,32 @@ export default class TextareaField extends PureComponent {
|
|
|
126
126
|
text: value,
|
|
127
127
|
placeHolder: placeHolder,
|
|
128
128
|
dataId: `property(${dataId})`,
|
|
129
|
+
onFocus: onFocus,
|
|
129
130
|
onBlur: this.handleBlur,
|
|
130
131
|
borderColor: borderColor,
|
|
131
132
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
132
133
|
resize: "vertical" // onKeyDown={onKeyDown}
|
|
133
134
|
,
|
|
134
|
-
htmlId: uniqueId
|
|
135
|
-
|
|
135
|
+
htmlId: uniqueId,
|
|
136
|
+
...TextareaProps,
|
|
136
137
|
a11y: {
|
|
137
138
|
ariaLabelledby: labelName
|
|
138
139
|
}
|
|
139
|
-
})
|
|
140
|
+
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
140
141
|
text: validationMessage,
|
|
141
142
|
palette: validationPalette,
|
|
142
143
|
type: errorType,
|
|
143
144
|
htmlFor: uniqueId,
|
|
144
|
-
dataId: `${dataId}_ValidationMessage
|
|
145
|
-
|
|
145
|
+
dataId: `${dataId}_ValidationMessage`,
|
|
146
|
+
...ValidationMessageProps1
|
|
147
|
+
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
146
148
|
text: validationRuleMessage,
|
|
147
149
|
palette: validationRulePalette,
|
|
148
150
|
type: errorType,
|
|
149
151
|
htmlFor: uniqueId,
|
|
150
|
-
dataId: `${dataId}_ValidationRuleMessage
|
|
151
|
-
|
|
152
|
+
dataId: `${dataId}_ValidationRuleMessage`,
|
|
153
|
+
...ValidationMessageProps2
|
|
154
|
+
})));
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
}
|
|
@@ -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';
|
|
@@ -124,15 +122,15 @@ export default class SubtabLayout extends React.Component {
|
|
|
124
122
|
children,
|
|
125
123
|
dataId
|
|
126
124
|
} = this.props;
|
|
127
|
-
return /*#__PURE__*/React.createElement(Card,
|
|
125
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
128
126
|
isScrollAttribute: true,
|
|
129
|
-
dataId: dataId
|
|
130
|
-
|
|
127
|
+
dataId: dataId,
|
|
128
|
+
...this.props,
|
|
131
129
|
childTypes: {
|
|
132
130
|
cardHeader: SubtabHeader,
|
|
133
131
|
cardContent: SubtabContent
|
|
134
132
|
}
|
|
135
|
-
}
|
|
133
|
+
}, children);
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
}
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.tertiary_borderStyle {
|
|
51
|
-
/* css:theme-validation:ignore */
|
|
52
51
|
border-bottom: 1px solid var(--borderColor);
|
|
53
52
|
}
|
|
54
53
|
|
|
@@ -150,7 +149,6 @@
|
|
|
150
149
|
|
|
151
150
|
.footer {
|
|
152
151
|
composes: varClass;
|
|
153
|
-
/* css:theme-validation:ignore */
|
|
154
152
|
border-top: 1px solid var(--borderColor);
|
|
155
153
|
}
|
|
156
154
|
|
|
@@ -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 } from 'react';
|
|
4
2
|
import { ListLayout_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { ListLayout_propTypes, Column_propTypes } from './props/propTypes';
|
|
@@ -69,9 +67,10 @@ export class Column extends Component {
|
|
|
69
67
|
children,
|
|
70
68
|
className
|
|
71
69
|
} = this.props;
|
|
72
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
73
|
-
className: `${className ? className : ''}
|
|
74
|
-
|
|
70
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
71
|
+
className: `${className ? className : ''}`,
|
|
72
|
+
...this.props
|
|
73
|
+
}, children);
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
}
|
|
@@ -45,12 +45,6 @@
|
|
|
45
45
|
border-bottom: 1px dotted var(--listBorder);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.compact,
|
|
49
|
-
.classic,
|
|
50
|
-
.superCompact {
|
|
51
|
-
/* css:theme-validation:ignore */
|
|
52
|
-
}
|
|
53
|
-
|
|
54
48
|
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
55
49
|
border-left: var(--zd_size2) solid transparent;
|
|
56
50
|
}
|
|
@@ -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 ****/
|
|
@@ -53,26 +51,28 @@ export default class AccountName extends Component {
|
|
|
53
51
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
54
52
|
className: style.primaryAccountName,
|
|
55
53
|
shrink: true
|
|
56
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
54
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
57
55
|
href: href,
|
|
58
56
|
urlName: urlName,
|
|
59
57
|
urlData: urlData,
|
|
60
58
|
onClick: onClick,
|
|
61
59
|
dataId: `${dataId}_link`,
|
|
62
|
-
className: style.link
|
|
63
|
-
|
|
60
|
+
className: style.link,
|
|
61
|
+
...LinkProps,
|
|
64
62
|
ariaLabel: `Account Name ${text}`
|
|
65
|
-
}
|
|
63
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
66
64
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
67
|
-
}, text)) : /*#__PURE__*/React.createElement("div",
|
|
68
|
-
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}
|
|
69
|
-
|
|
65
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
67
|
+
...TextProps
|
|
68
|
+
}, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
70
69
|
href: secondaryAccountHref,
|
|
71
70
|
onClick: secondaryAccountClick,
|
|
72
71
|
className: style.link
|
|
73
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
74
|
-
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}
|
|
75
|
-
|
|
72
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
74
|
+
...SecondaryTextProps
|
|
75
|
+
}, secondaryAccountText))))));
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
}
|
|
@@ -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 } from 'react';
|
|
4
2
|
import { ContactName_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { ContactName_propTypes } from './props/propTypes';
|
|
@@ -54,22 +52,23 @@ export default class ContactName extends Component {
|
|
|
54
52
|
iconClass: style.icon
|
|
55
53
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
56
54
|
flexible: true
|
|
57
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
55
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
58
56
|
urlName: urlName,
|
|
59
57
|
href: href,
|
|
60
58
|
urlData: urlData,
|
|
61
59
|
onClick: onClick,
|
|
62
60
|
title: dataTitle,
|
|
63
61
|
dataId: `${dataId}_link`,
|
|
64
|
-
className: style.link
|
|
65
|
-
|
|
62
|
+
className: style.link,
|
|
63
|
+
...LinkProps,
|
|
66
64
|
ariaLabel: `Contact Name ${text}`
|
|
67
|
-
}
|
|
65
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
68
66
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
69
|
-
}, text)) : /*#__PURE__*/React.createElement("div",
|
|
67
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
70
68
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
71
|
-
"data-title": dataTitle
|
|
72
|
-
|
|
69
|
+
"data-title": dataTitle,
|
|
70
|
+
...TextProps
|
|
71
|
+
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
73
72
|
type: sentimentType,
|
|
74
73
|
dataTitle: sentimentDataTitle
|
|
75
74
|
})));
|