@zohodesk/dot 1.0.0-temp-120 → 1.0.0-temp-121
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/README.md +5 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +2 -2
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +2 -2
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +2 -2
- package/es/ActionButton/ActionButton.js +6 -4
- package/es/ActionButton/props/defaultProps.js +1 -1
- package/es/ActionButton/props/propTypes.js +1 -1
- package/es/AlphabeticList/AlphabeticList.js +4 -2
- package/es/AlphabeticList/props/defaultProps.js +2 -1
- package/es/AlphabeticList/props/propTypes.js +2 -1
- package/es/Attachment/Attachment.js +4 -2
- package/es/Attachment/props/defaultProps.js +2 -1
- package/es/Attachment/props/propTypes.js +1 -0
- package/es/ChannelIcon/ChannelIcon.js +4 -2
- package/es/ChannelIcon/props/defaultProps.js +2 -1
- package/es/ChannelIcon/props/propTypes.js +2 -1
- package/es/FormAction/FormAction.js +4 -2
- package/es/FormAction/props/defaultProps.js +2 -1
- package/es/FormAction/props/propTypes.js +2 -1
- package/es/IconButton/IconButton.js +2 -0
- package/es/IconButton/props/defaultProps.js +2 -1
- package/es/IconButton/props/propTypes.js +1 -0
- package/es/Message/Message.js +4 -2
- package/es/Message/props/defaultProps.js +2 -1
- package/es/Message/props/propTypes.js +1 -0
- package/es/MessageBanner/MessageBanner.js +4 -2
- package/es/MessageBanner/props/defaultProps.js +2 -1
- package/es/MessageBanner/props/propTypes.js +2 -1
- package/es/ToastMessage/ToastMessage.js +3 -1
- package/es/ToastMessage/props/defaultProps.js +2 -1
- package/es/ToastMessage/props/propTypes.js +1 -0
- package/es/Upload/Upload.js +3 -1
- package/es/Upload/props/defaultProps.js +2 -1
- package/es/Upload/props/propTypes.js +1 -0
- package/es/avatar/AvatarClose/AvatarClose.js +4 -2
- package/es/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/es/avatar/AvatarClose/props/propTypes.js +2 -1
- package/es/avatar/AvatarCollision/AvatarCollision.js +4 -2
- package/es/avatar/AvatarCollision/props/defaultProps.js +2 -1
- package/es/avatar/AvatarCollision/props/propTypes.js +1 -0
- package/es/avatar/AvatarIcon/AvatarIcon.js +4 -2
- package/es/avatar/AvatarIcon/props/defaultProps.js +2 -1
- package/es/avatar/AvatarIcon/props/propTypes.js +1 -0
- package/es/avatar/AvatarStatus/AvatarStatus.js +4 -2
- package/es/avatar/AvatarStatus/props/defaultProps.js +2 -1
- package/es/avatar/AvatarStatus/props/propTypes.js +1 -0
- package/es/avatar/AvatarThread/AvatarThread.js +4 -2
- package/es/avatar/AvatarThread/props/defaultProps.js +2 -1
- package/es/avatar/AvatarThread/props/propTypes.js +1 -0
- package/es/avatar/AvatarUser/AvatarUser.js +3 -1
- package/es/avatar/AvatarUser/props/defaultProps.js +2 -1
- package/es/avatar/AvatarUser/props/propTypes.js +1 -0
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +4 -2
- package/es/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/es/avatar/AvatarWithTeam/props/propTypes.js +1 -0
- package/es/common/dot_boxShadow.module.css +13 -13
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +3 -1
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/es/dropdown/ToggleDropDown/props/propTypes.js +1 -0
- package/es/form/fields/CheckBoxField/CheckBoxField.js +3 -1
- package/es/form/fields/CheckBoxField/props/defaultProps.js +1 -0
- package/es/form/fields/CurrencyField/CurrencyField.js +3 -1
- package/es/form/fields/CurrencyField/props/defaultProps.js +1 -0
- package/es/form/fields/DateField/DateField.js +3 -1
- package/es/form/fields/DateField/props/defaultProps.js +1 -0
- package/es/form/fields/FieldContainer/FieldContainer.js +4 -2
- package/es/form/fields/FieldContainer/props/defaultProps.js +2 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +3 -1
- package/es/form/fields/MultiSelectField/props/defaultProps.js +1 -0
- package/es/form/fields/PhoneField/PhoneField.js +3 -1
- package/es/form/fields/PhoneField/props/defaultProps.js +2 -1
- package/es/form/fields/RadioField/RadioField.js +3 -1
- package/es/form/fields/RadioField/props/defaultProps.js +2 -1
- package/es/form/fields/SelectField/SelectField.js +3 -1
- package/es/form/fields/SelectField/props/defaultProps.js +1 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/es/form/fields/TagsMultiSelect/props/defaultProps.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +4 -2
- package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -0
- package/es/form/fields/TextBoxField/TextBoxField.js +3 -1
- package/es/form/fields/TextBoxField/props/defaultProps.js +1 -0
- package/es/form/fields/TextEditor/TextEditor.js +4 -2
- package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +3 -1
- package/es/form/fields/TextEditorField/props/defaultProps.js +1 -0
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +4 -2
- package/es/form/fields/TextEditorWrapper/props/defaultProps.js +2 -1
- package/es/form/fields/TextareaField/TextareaField.js +3 -1
- package/es/form/fields/TextareaField/props/defaultProps.js +1 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -2
- package/es/form/fields/ValidationMessage/props/defaultProps.js +2 -1
- package/es/form/fields/props/FieldCommonPropTypes.js +2 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +8 -4
- package/es/version2/GlobalNotification/props/defaultProps.js +2 -1
- package/es/version2/GlobalNotification/props/propTypes.js +1 -0
- package/es/version2/alertIcons/AlertIcons.js +4 -2
- package/es/version2/alertIcons/props/defaultProps.js +2 -1
- package/es/version2/alertIcons/props/propTypes.js +2 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +3 -1
- package/es/version2/notification/DesktopNotification/props/defaultProps.js +2 -1
- package/es/version2/notification/DesktopNotification/props/propTypes.js +1 -0
- package/lib/ActionButton/ActionButton.js +6 -4
- package/lib/ActionButton/props/defaultProps.js +1 -1
- package/lib/ActionButton/props/propTypes.js +1 -1
- package/lib/AlphabeticList/AlphabeticList.js +4 -2
- package/lib/AlphabeticList/props/defaultProps.js +2 -1
- package/lib/AlphabeticList/props/propTypes.js +2 -1
- package/lib/Attachment/Attachment.js +4 -2
- package/lib/Attachment/props/defaultProps.js +2 -1
- package/lib/Attachment/props/propTypes.js +1 -0
- package/lib/ChannelIcon/ChannelIcon.js +4 -2
- package/lib/ChannelIcon/props/defaultProps.js +2 -1
- package/lib/ChannelIcon/props/propTypes.js +2 -1
- package/lib/FormAction/FormAction.js +4 -2
- package/lib/FormAction/props/defaultProps.js +2 -1
- package/lib/FormAction/props/propTypes.js +2 -1
- package/lib/IconButton/IconButton.js +2 -0
- package/lib/IconButton/props/defaultProps.js +2 -1
- package/lib/IconButton/props/propTypes.js +1 -0
- package/lib/Message/Message.js +4 -2
- package/lib/Message/props/defaultProps.js +2 -1
- package/lib/Message/props/propTypes.js +1 -0
- package/lib/MessageBanner/MessageBanner.js +4 -2
- package/lib/MessageBanner/props/defaultProps.js +2 -1
- package/lib/MessageBanner/props/propTypes.js +2 -1
- package/lib/ToastMessage/ToastMessage.js +3 -1
- package/lib/ToastMessage/props/defaultProps.js +2 -1
- package/lib/ToastMessage/props/propTypes.js +1 -0
- package/lib/Upload/Upload.js +3 -1
- package/lib/Upload/props/defaultProps.js +2 -1
- package/lib/Upload/props/propTypes.js +1 -0
- package/lib/avatar/AvatarClose/AvatarClose.js +4 -2
- package/lib/avatar/AvatarClose/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarClose/props/propTypes.js +2 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.js +4 -2
- package/lib/avatar/AvatarCollision/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarCollision/props/propTypes.js +1 -0
- package/lib/avatar/AvatarIcon/AvatarIcon.js +4 -2
- package/lib/avatar/AvatarIcon/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarIcon/props/propTypes.js +1 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +4 -2
- package/lib/avatar/AvatarStatus/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarStatus/props/propTypes.js +1 -0
- package/lib/avatar/AvatarThread/AvatarThread.js +4 -2
- package/lib/avatar/AvatarThread/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarThread/props/propTypes.js +1 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +3 -1
- package/lib/avatar/AvatarUser/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarUser/props/propTypes.js +1 -0
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +4 -2
- package/lib/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarWithTeam/props/propTypes.js +1 -0
- package/lib/common/dot_boxShadow.module.css +13 -13
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -1
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +1 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -1
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +2 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +3 -1
- package/lib/form/fields/CurrencyField/props/defaultProps.js +2 -1
- package/lib/form/fields/DateField/DateField.js +3 -1
- package/lib/form/fields/DateField/props/defaultProps.js +2 -1
- package/lib/form/fields/FieldContainer/FieldContainer.js +4 -2
- package/lib/form/fields/FieldContainer/props/defaultProps.js +2 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +3 -1
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +2 -1
- package/lib/form/fields/PhoneField/PhoneField.js +3 -1
- package/lib/form/fields/PhoneField/props/defaultProps.js +2 -1
- package/lib/form/fields/RadioField/RadioField.js +3 -1
- package/lib/form/fields/RadioField/props/defaultProps.js +2 -1
- package/lib/form/fields/SelectField/SelectField.js +3 -1
- package/lib/form/fields/SelectField/props/defaultProps.js +2 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/lib/form/fields/TagsMultiSelect/props/defaultProps.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +4 -2
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +2 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +3 -1
- package/lib/form/fields/TextBoxField/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditor/TextEditor.js +4 -2
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditorField/TextEditorField.js +3 -1
- package/lib/form/fields/TextEditorField/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +4 -2
- package/lib/form/fields/TextEditorWrapper/props/defaultProps.js +2 -1
- package/lib/form/fields/TextareaField/TextareaField.js +3 -1
- package/lib/form/fields/TextareaField/props/defaultProps.js +2 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +4 -2
- package/lib/form/fields/ValidationMessage/props/defaultProps.js +2 -1
- package/lib/form/fields/props/FieldCommonPropTypes.js +2 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +8 -4
- package/lib/version2/GlobalNotification/props/defaultProps.js +2 -1
- package/lib/version2/GlobalNotification/props/propTypes.js +1 -0
- package/lib/version2/alertIcons/AlertIcons.js +4 -2
- package/lib/version2/alertIcons/props/defaultProps.js +2 -1
- package/lib/version2/alertIcons/props/propTypes.js +2 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +3 -1
- package/lib/version2/notification/DesktopNotification/props/defaultProps.js +2 -1
- package/lib/version2/notification/DesktopNotification/props/propTypes.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.0.0-beta.247
|
|
6
|
+
|
|
7
|
+
- **ActionButton** - arrowBoxDataId prop removed .
|
|
8
|
+
- dataSelectorId prop added for all components
|
|
9
|
+
|
|
5
10
|
# 1.0.0-beta.246
|
|
6
11
|
|
|
7
12
|
- **AvatarWithTeam** - css variable changed due to the duplicate override issue
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[data-mode='dark'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
|
-
--zdt_actionButton_primaryFilled_bg: var(--
|
|
4
|
-
--zdt_actionButton_primaryFilled_hover_bg: var(--
|
|
3
|
+
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
|
+
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
5
5
|
--zdt_actionButton_primary_border: var(--zdt_cta_primary_border);
|
|
6
6
|
--zdt_actionButton_primary_hover_border: var(--zdt_cta_primary_hover_border);
|
|
7
7
|
--zdt_actionButton_separator_border: var(--zdt_cta_secondary_border);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[data-mode='default'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
|
-
--zdt_actionButton_primaryFilled_bg: var(--
|
|
4
|
-
--zdt_actionButton_primaryFilled_hover_bg: var(--
|
|
3
|
+
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
|
+
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
5
5
|
--zdt_actionButton_primary_border: var(--zdt_cta_primary_border);
|
|
6
6
|
--zdt_actionButton_primary_hover_border: var(--zdt_cta_primary_hover_border);
|
|
7
7
|
--zdt_actionButton_separator_border: var(--zdt_cta_secondary_border);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[data-mode='pureDark'], :global(.bluePureDarkTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
|
-
--zdt_actionButton_primaryFilled_bg: var(--
|
|
4
|
-
--zdt_actionButton_primaryFilled_hover_bg: var(--
|
|
3
|
+
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
|
+
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
5
5
|
--zdt_actionButton_primary_border: var(--zdt_cta_primary_border);
|
|
6
6
|
--zdt_actionButton_primary_hover_border: var(--zdt_cta_primary_hover_border);
|
|
7
7
|
--zdt_actionButton_separator_border: var(--zdt_cta_secondary_border);
|
|
@@ -27,10 +27,10 @@ export class ActionButton extends React.Component {
|
|
|
27
27
|
onClick,
|
|
28
28
|
size,
|
|
29
29
|
dataId,
|
|
30
|
+
dataSelectorId,
|
|
30
31
|
isArrow,
|
|
31
32
|
text,
|
|
32
33
|
subText,
|
|
33
|
-
arrowBoxDataId,
|
|
34
34
|
arrowBoxSize,
|
|
35
35
|
palette,
|
|
36
36
|
onHover,
|
|
@@ -58,7 +58,8 @@ export class ActionButton extends React.Component {
|
|
|
58
58
|
onClick: onHover ? removeClose : !onClick ? this.handleTogglePopup : undefined,
|
|
59
59
|
onMouseEnter: !onClick ? onHover && this.handleTogglePopup : undefined,
|
|
60
60
|
onMouseLeave: !onClick ? onHover && this.handleTogglePopup : undefined,
|
|
61
|
-
eleRef: getTargetRef
|
|
61
|
+
eleRef: getTargetRef,
|
|
62
|
+
dataSelectorId: dataSelectorId
|
|
62
63
|
}, isLoading ? /*#__PURE__*/React.createElement(Box, {
|
|
63
64
|
flexible: true
|
|
64
65
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -101,9 +102,10 @@ export class ActionButton extends React.Component {
|
|
|
101
102
|
onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
102
103
|
onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
103
104
|
className: `${btnStyle.buttonReset} ${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
|
|
104
|
-
dataId:
|
|
105
|
+
dataId: `${dataId}_arrowButton`,
|
|
105
106
|
tabIndex: "0",
|
|
106
|
-
tagName: "button"
|
|
107
|
+
tagName: "button",
|
|
108
|
+
dataSelectorId: `${dataSelectorId}_arrowButton`
|
|
107
109
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
108
110
|
align: "both"
|
|
109
111
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -31,7 +31,8 @@ export default class AlphabeticList extends React.PureComponent {
|
|
|
31
31
|
align,
|
|
32
32
|
type,
|
|
33
33
|
i18nKeys,
|
|
34
|
-
dataId
|
|
34
|
+
dataId,
|
|
35
|
+
dataSelectorId
|
|
35
36
|
} = this.props;
|
|
36
37
|
let {
|
|
37
38
|
allText = 'All',
|
|
@@ -44,7 +45,8 @@ export default class AlphabeticList extends React.PureComponent {
|
|
|
44
45
|
isCover: false,
|
|
45
46
|
alignBox: align === 'vertical' ? 'column' : 'row',
|
|
46
47
|
className: `${style.container} ${alignType} ${type != 'alphabetical' ? style.numbers : ''}`,
|
|
47
|
-
dataId: "navigationDiv"
|
|
48
|
+
dataId: "navigationDiv",
|
|
49
|
+
dataSelectorId: dataSelectorId
|
|
48
50
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
49
51
|
tagName: "li",
|
|
50
52
|
className: `${style.list} ${style.title} ${selectedCharacter === 'ALL' ? style.selected : ''}`,
|
|
@@ -11,7 +11,8 @@ export const AlphabeticList_propTypes = {
|
|
|
11
11
|
allTitle: PropTypes.string,
|
|
12
12
|
allText: PropTypes.string
|
|
13
13
|
}),
|
|
14
|
-
dataId: PropTypes.string
|
|
14
|
+
dataId: PropTypes.string,
|
|
15
|
+
dataSelectorId: PropTypes.string
|
|
15
16
|
};
|
|
16
17
|
export const AlphabeticListItem_propTypes = {
|
|
17
18
|
id: PropTypes.string,
|
|
@@ -18,7 +18,8 @@ export default class Attachment extends React.Component {
|
|
|
18
18
|
palette,
|
|
19
19
|
tooltip,
|
|
20
20
|
fileInfo,
|
|
21
|
-
i18nKeys
|
|
21
|
+
i18nKeys,
|
|
22
|
+
dataSelectorId
|
|
22
23
|
} = this.props;
|
|
23
24
|
let {
|
|
24
25
|
downloadTitle = 'Download'
|
|
@@ -30,7 +31,8 @@ export default class Attachment extends React.Component {
|
|
|
30
31
|
dataId: dataId,
|
|
31
32
|
"data-title": tooltip,
|
|
32
33
|
alignBox: "row",
|
|
33
|
-
isCover: false
|
|
34
|
+
isCover: false,
|
|
35
|
+
dataSelectorId: dataSelectorId
|
|
34
36
|
}, iconName ? /*#__PURE__*/React.createElement(Box, {
|
|
35
37
|
className: style.attachleft
|
|
36
38
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
@@ -32,7 +32,8 @@ export default class ChannelIcon extends Component {
|
|
|
32
32
|
topicClass,
|
|
33
33
|
renderIconOnly,
|
|
34
34
|
iconName,
|
|
35
|
-
title
|
|
35
|
+
title,
|
|
36
|
+
dataSelectorId
|
|
36
37
|
} = this.props;
|
|
37
38
|
let defaultChannelObj = name && !iconName && getChannelMappingObj()[name.toUpperCase()];
|
|
38
39
|
let customizedChannelName = null;
|
|
@@ -42,7 +43,8 @@ export default class ChannelIcon extends Component {
|
|
|
42
43
|
iconName = defaultChannelObj[action];
|
|
43
44
|
}
|
|
44
45
|
return /*#__PURE__*/React.createElement("span", {
|
|
45
|
-
className: style.container
|
|
46
|
+
className: style.container,
|
|
47
|
+
"data-selector-id": dataSelectorId
|
|
46
48
|
}, customizedChannelName ? /*#__PURE__*/React.createElement(Avatar, {
|
|
47
49
|
name: customizedChannelName,
|
|
48
50
|
size: size,
|
|
@@ -18,7 +18,8 @@ export default class FormAction extends React.Component {
|
|
|
18
18
|
size,
|
|
19
19
|
children,
|
|
20
20
|
paddingLeftSize,
|
|
21
|
-
paddingRightClass
|
|
21
|
+
paddingRightClass,
|
|
22
|
+
dataSelectorId
|
|
22
23
|
} = this.props;
|
|
23
24
|
let leftbuttonGroup = [],
|
|
24
25
|
rightbuttonGroup = [],
|
|
@@ -40,7 +41,8 @@ export default class FormAction extends React.Component {
|
|
|
40
41
|
let hasRightChild = rightbuttonGroup.length > 0;
|
|
41
42
|
let hasCenterChild = centerbuttonGroup.length > 0;
|
|
42
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: style.wrapperDiv
|
|
44
|
+
className: style.wrapperDiv,
|
|
45
|
+
"data-selector-id": dataSelectorId
|
|
44
46
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
45
47
|
alignBox: "row",
|
|
46
48
|
isCover: false,
|
|
@@ -3,5 +3,6 @@ export const propTypes = {
|
|
|
3
3
|
children: PropTypes.node,
|
|
4
4
|
paddingLeftSize: PropTypes.oneOf(['large', 'medium', 'xmedium', 'small', 'xsmall']),
|
|
5
5
|
paddingRightClass: PropTypes.string,
|
|
6
|
-
size: PropTypes.oneOf(['large', 'medium', 'small'])
|
|
6
|
+
size: PropTypes.oneOf(['large', 'medium', 'small']),
|
|
7
|
+
dataSelectorId: PropTypes.string
|
|
7
8
|
};
|
|
@@ -69,6 +69,7 @@ export default class IconButton extends React.Component {
|
|
|
69
69
|
className,
|
|
70
70
|
iconClass,
|
|
71
71
|
dataId,
|
|
72
|
+
dataSelectorId,
|
|
72
73
|
eleRef,
|
|
73
74
|
isActive,
|
|
74
75
|
tourId,
|
|
@@ -112,6 +113,7 @@ export default class IconButton extends React.Component {
|
|
|
112
113
|
isCover: false,
|
|
113
114
|
className: `${needButtonTag && btnStyle.buttonReset} ${style.wrapper} ${className ? className : ''} ${isActive ? style[`${palette}_active`] : style[palette]}`,
|
|
114
115
|
dataId: dataId,
|
|
116
|
+
dataSelectorId: dataSelectorId,
|
|
115
117
|
onClick: this.triggerClick,
|
|
116
118
|
"data-title": title,
|
|
117
119
|
"data-ishtml": dataIsHtml,
|
package/es/Message/Message.js
CHANGED
|
@@ -62,14 +62,16 @@ export function MessageUI(props) {
|
|
|
62
62
|
type,
|
|
63
63
|
message,
|
|
64
64
|
onClick,
|
|
65
|
-
i18nKeys
|
|
65
|
+
i18nKeys,
|
|
66
|
+
dataSelectorId
|
|
66
67
|
} = props;
|
|
67
68
|
let {
|
|
68
69
|
closeTitle = 'Close'
|
|
69
70
|
} = i18nKeys;
|
|
70
71
|
return /*#__PURE__*/React.createElement("div", {
|
|
71
72
|
className: style.message,
|
|
72
|
-
"data-id": `show_${type}_message
|
|
73
|
+
"data-id": `show_${type}_message`,
|
|
74
|
+
"data-selector-id": dataSelectorId
|
|
73
75
|
}, /*#__PURE__*/React.createElement("div", {
|
|
74
76
|
className: style.container
|
|
75
77
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16,13 +16,15 @@ export default class MessageBanner extends React.Component {
|
|
|
16
16
|
urlText,
|
|
17
17
|
palette,
|
|
18
18
|
customClass,
|
|
19
|
-
dataId
|
|
19
|
+
dataId,
|
|
20
|
+
dataSelectorId
|
|
20
21
|
} = this.props;
|
|
21
22
|
return /*#__PURE__*/React.createElement(Container, {
|
|
22
23
|
className: `${style[`type_${type}`]} ${style[`palette_${palette}`]} ${customClass}`,
|
|
23
24
|
alignBox: "row",
|
|
24
25
|
isCover: false,
|
|
25
|
-
dataId: dataId
|
|
26
|
+
dataId: dataId,
|
|
27
|
+
dataSelectorId: dataSelectorId
|
|
26
28
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
27
29
|
className: style.content,
|
|
28
30
|
flexible: true
|
|
@@ -39,6 +39,7 @@ function ToastMessageUI(props) {
|
|
|
39
39
|
onSubmit,
|
|
40
40
|
onCancel,
|
|
41
41
|
dataId,
|
|
42
|
+
dataSelectorId,
|
|
42
43
|
isClose,
|
|
43
44
|
onClose,
|
|
44
45
|
needAutoZindex,
|
|
@@ -86,7 +87,8 @@ function ToastMessageUI(props) {
|
|
|
86
87
|
"aria-live": ariaLive,
|
|
87
88
|
"aria-atomic": ariaAtomic,
|
|
88
89
|
"aria-describedby": ariaDescribedby,
|
|
89
|
-
"aria-labelledby": ariaLabelledby
|
|
90
|
+
"aria-labelledby": ariaLabelledby,
|
|
91
|
+
dataSelectorId: dataSelectorId
|
|
90
92
|
}, type !== 'custom' ? /*#__PURE__*/React.createElement(Box, {
|
|
91
93
|
className: style.alertifychild,
|
|
92
94
|
flexible: true
|
package/es/Upload/Upload.js
CHANGED
|
@@ -11,6 +11,7 @@ export default class Upload extends React.Component {
|
|
|
11
11
|
isPreview,
|
|
12
12
|
tooltip,
|
|
13
13
|
dataId,
|
|
14
|
+
dataSelectorId,
|
|
14
15
|
progressValue,
|
|
15
16
|
onClick,
|
|
16
17
|
iconName,
|
|
@@ -29,7 +30,8 @@ export default class Upload extends React.Component {
|
|
|
29
30
|
dataId: dataId,
|
|
30
31
|
"data-title": tooltip,
|
|
31
32
|
isCover: false,
|
|
32
|
-
eleRef: getRef
|
|
33
|
+
eleRef: getRef,
|
|
34
|
+
dataSelectorId: dataSelectorId
|
|
33
35
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, isPreview ? /*#__PURE__*/React.createElement("div", {
|
|
34
36
|
"data-id": `${dataId}_attachLoading`,
|
|
35
37
|
className: style.loader,
|
|
@@ -17,14 +17,16 @@ export default class AvatarClose extends React.Component {
|
|
|
17
17
|
size,
|
|
18
18
|
isClose,
|
|
19
19
|
onClick,
|
|
20
|
-
customProps
|
|
20
|
+
customProps,
|
|
21
|
+
dataSelectorId
|
|
21
22
|
} = this.props;
|
|
22
23
|
let {
|
|
23
24
|
AvatarCloseProps = {},
|
|
24
25
|
AvatarProps = {}
|
|
25
26
|
} = customProps;
|
|
26
27
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
27
|
-
className: style.container
|
|
28
|
+
className: style.container,
|
|
29
|
+
"data-selector-id": dataSelectorId
|
|
28
30
|
}, AvatarCloseProps), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
29
31
|
src: src,
|
|
30
32
|
name: name,
|
|
@@ -20,7 +20,8 @@ export default class AvatarCollision extends React.Component {
|
|
|
20
20
|
isLeft,
|
|
21
21
|
isIdle,
|
|
22
22
|
initial,
|
|
23
|
-
customProps
|
|
23
|
+
customProps,
|
|
24
|
+
dataSelectorId
|
|
24
25
|
} = this.props;
|
|
25
26
|
let {
|
|
26
27
|
AvatarCollisionProps = {},
|
|
@@ -30,7 +31,8 @@ export default class AvatarCollision extends React.Component {
|
|
|
30
31
|
className: `${style.container} ${isLeft ? style.off : isIdle ? style.idle : style.on}`,
|
|
31
32
|
onClick: onClick,
|
|
32
33
|
"data-id": "collsionPop",
|
|
33
|
-
"data-title": title
|
|
34
|
+
"data-title": title,
|
|
35
|
+
"data-selector-id": dataSelectorId
|
|
34
36
|
}, AvatarCollisionProps), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
35
37
|
src: src,
|
|
36
38
|
name: name,
|
|
@@ -22,7 +22,8 @@ export default class AvatarIcon extends React.Component {
|
|
|
22
22
|
title,
|
|
23
23
|
borderOnActive,
|
|
24
24
|
borderOnHover,
|
|
25
|
-
customProps
|
|
25
|
+
customProps,
|
|
26
|
+
dataSelectorId
|
|
26
27
|
} = this.props;
|
|
27
28
|
let {
|
|
28
29
|
AvatarIconProps = {}
|
|
@@ -35,7 +36,8 @@ export default class AvatarIcon extends React.Component {
|
|
|
35
36
|
"data-title": title,
|
|
36
37
|
isInline: true,
|
|
37
38
|
align: "both",
|
|
38
|
-
isCover: false
|
|
39
|
+
isCover: false,
|
|
40
|
+
dataSelectorId: dataSelectorId
|
|
39
41
|
}, AvatarIconProps), /*#__PURE__*/React.createElement(Icon, {
|
|
40
42
|
name: name,
|
|
41
43
|
size: iconSize,
|
|
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
export const propTypes = {
|
|
3
3
|
className: PropTypes.string,
|
|
4
4
|
dataId: PropTypes.string,
|
|
5
|
+
dataSelectorId: PropTypes.string,
|
|
5
6
|
iconClass: PropTypes.string,
|
|
6
7
|
iconColor: PropTypes.oneOf(['default', 'primary', 'success', 'danger', 'smoke18', 'grey', 'dark']),
|
|
7
8
|
iconSize: PropTypes.string,
|
|
@@ -26,7 +26,8 @@ export default class AvatarStatus extends React.Component {
|
|
|
26
26
|
textPalette,
|
|
27
27
|
customTextClass,
|
|
28
28
|
statusTitle,
|
|
29
|
-
customProps
|
|
29
|
+
customProps,
|
|
30
|
+
dataSelectorId
|
|
30
31
|
} = this.props;
|
|
31
32
|
let {
|
|
32
33
|
AvatarStatusProps = {},
|
|
@@ -36,7 +37,8 @@ export default class AvatarStatus extends React.Component {
|
|
|
36
37
|
className: `${style.container} ${className} `
|
|
37
38
|
}, AvatarStatusProps, {
|
|
38
39
|
tabIndex: "0",
|
|
39
|
-
"aria-label": `${title}, ${name}, ${statusTitle}
|
|
40
|
+
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
41
|
+
"data-selector-id": dataSelectorId
|
|
40
42
|
}), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
41
43
|
src: src,
|
|
42
44
|
name: name,
|
|
@@ -16,6 +16,7 @@ export const propTypes = {
|
|
|
16
16
|
statusTitle: PropTypes.string,
|
|
17
17
|
textPalette: PropTypes.oneOf(['white', 'black']),
|
|
18
18
|
title: PropTypes.string,
|
|
19
|
+
dataSelectorId: PropTypes.string,
|
|
19
20
|
customProps: PropTypes.shape({
|
|
20
21
|
AvatarStatusProps: PropTypes.object,
|
|
21
22
|
AvatarProps: PropTypes.object
|
|
@@ -30,7 +30,8 @@ export default class AvatarThread extends React.Component {
|
|
|
30
30
|
needTitle,
|
|
31
31
|
customProps,
|
|
32
32
|
iconClass,
|
|
33
|
-
getCustomThread
|
|
33
|
+
getCustomThread,
|
|
34
|
+
dataSelectorId
|
|
34
35
|
} = this.props;
|
|
35
36
|
let {
|
|
36
37
|
AvatarThreadProps = {},
|
|
@@ -38,7 +39,8 @@ export default class AvatarThread extends React.Component {
|
|
|
38
39
|
} = customProps;
|
|
39
40
|
let hoverEffect = showOnHover ? style.hover : '';
|
|
40
41
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
41
|
-
className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}
|
|
42
|
+
className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}`,
|
|
43
|
+
"data-selector-id": dataSelectorId
|
|
42
44
|
}, AvatarThreadProps), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
43
45
|
initial: initial,
|
|
44
46
|
src: src,
|
|
@@ -17,6 +17,7 @@ export const propTypes = {
|
|
|
17
17
|
palette: PropTypes.oneOf(['primary', 'secondary', 'info', 'default']),
|
|
18
18
|
showOnHover: PropTypes.bool,
|
|
19
19
|
size: PropTypes.string,
|
|
20
|
+
dataSelectorId: PropTypes.string,
|
|
20
21
|
src: PropTypes.string,
|
|
21
22
|
textPalette: PropTypes.oneOf(['white', 'black']),
|
|
22
23
|
title: PropTypes.string,
|