@zohodesk/components 1.0.0-alpha-272 → 1.0.0-alpha-274
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 +9 -0
- package/es/Accordion/Accordion.js +1 -0
- package/es/Accordion/AccordionItem.js +1 -0
- package/es/AppContainer/AppContainer.js +15 -6
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/AppContainer/props/defaultProps.js +2 -1
- package/es/AppContainer/props/propTypes.js +1 -0
- package/es/Avatar/Avatar.js +3 -0
- package/es/Avatar/Avatar.module.css +18 -18
- package/es/AvatarTeam/AvatarTeam.js +1 -0
- package/es/AvatarTeam/AvatarTeam.module.css +35 -35
- package/es/Button/Button.js +1 -0
- package/es/Button/css/Button.module.css +70 -70
- package/es/Buttongroup/Buttongroup.js +1 -0
- package/es/Buttongroup/Buttongroup.module.css +14 -15
- package/es/CheckBox/CheckBox.module.css +15 -15
- package/es/DateTime/CalendarView.js +1 -0
- package/es/DateTime/DateTime.js +3 -1
- package/es/DateTime/DateTime.module.css +39 -39
- package/es/DateTime/DateWidget.js +2 -0
- package/es/DateTime/DateWidget.module.css +5 -5
- package/es/DateTime/YearView.module.css +15 -15
- package/es/DropBox/DropBoxElement/DropBoxElement.js +3 -0
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -76
- package/es/DropBox/css/DropBox.module.css +6 -6
- package/es/DropDown/DropDown.js +2 -1
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.js +1 -0
- package/es/DropDown/DropDownHeading.module.css +6 -6
- package/es/DropDown/DropDownItem.js +2 -1
- package/es/DropDown/DropDownItem.module.css +12 -12
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.js +1 -0
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.js +1 -0
- package/es/Label/Label.module.css +5 -5
- package/es/Layout/Box.js +4 -3
- package/es/Layout/Container.js +4 -3
- package/es/Layout/Layout.module.css +15 -15
- package/es/Layout/props/defaultProps.js +2 -0
- package/es/Layout/props/propTypes.js +2 -0
- package/es/Layout/utils.js +5 -1
- package/es/ListItem/ListItem.module.css +38 -38
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -0
- package/es/MultiSelect/EmptyState.js +4 -0
- package/es/MultiSelect/MultiSelect.js +1 -0
- package/es/MultiSelect/MultiSelect.module.css +31 -31
- package/es/MultiSelect/MultiSelectWithAvatar.js +1 -0
- package/es/MultiSelect/SelectedOptions.module.css +5 -5
- package/es/Popup/Popup.js +1 -4
- package/es/Radio/Radio.module.css +9 -9
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.js +1 -0
- package/es/Ribbon/Ribbon.module.css +46 -48
- package/es/Select/GroupSelect.js +1 -0
- package/es/Select/Select.js +2 -1
- package/es/Select/Select.module.css +23 -23
- package/es/Select/SelectWithAvatar.js +2 -0
- package/es/Select/SelectWithIcon.js +2 -1
- package/es/Stencils/Stencils.module.css +11 -11
- package/es/Switch/Switch.js +1 -0
- package/es/Switch/Switch.module.css +23 -23
- package/es/Tab/Tab.module.css +14 -14
- package/es/Tab/Tabs.js +2 -1
- package/es/Tab/Tabs.module.css +22 -22
- package/es/Tag/Tag.js +1 -0
- package/es/Tag/Tag.module.css +25 -25
- package/es/TextBox/TextBox.js +1 -0
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.module.css +7 -7
- package/es/Textarea/Textarea.js +1 -0
- package/es/Textarea/Textarea.module.css +21 -21
- package/es/Tooltip/Tooltip.js +2 -1
- package/es/Tooltip/Tooltip.module.css +5 -5
- package/es/common/animation.module.css +8 -8
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +3 -3
- package/es/common/common.module.css +24 -24
- package/es/common/customscroll.module.css +2 -2
- package/es/deprecated/AdvancedMultiSelect.module.css +18 -18
- package/es/semantic/Button/Button.js +1 -0
- package/es/semantic/Button/semanticButton.module.css +1 -1
- package/lib/Accordion/Accordion.js +1 -0
- package/lib/Accordion/AccordionItem.js +1 -0
- package/lib/AppContainer/AppContainer.js +11 -6
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/AppContainer/props/defaultProps.js +2 -1
- package/lib/AppContainer/props/propTypes.js +1 -0
- package/lib/Avatar/Avatar.js +3 -0
- package/lib/Avatar/Avatar.module.css +18 -18
- package/lib/AvatarTeam/AvatarTeam.js +1 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +35 -35
- package/lib/Button/Button.js +1 -0
- package/lib/Button/css/Button.module.css +70 -70
- package/lib/Buttongroup/Buttongroup.js +1 -0
- package/lib/Buttongroup/Buttongroup.module.css +14 -15
- package/lib/CheckBox/CheckBox.module.css +15 -15
- package/lib/DateTime/CalendarView.js +1 -0
- package/lib/DateTime/DateTime.js +3 -1
- package/lib/DateTime/DateTime.module.css +39 -39
- package/lib/DateTime/DateWidget.js +2 -0
- package/lib/DateTime/DateWidget.module.css +5 -5
- package/lib/DateTime/YearView.module.css +15 -15
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +3 -0
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -76
- package/lib/DropBox/css/DropBox.module.css +6 -6
- package/lib/DropDown/DropDown.js +2 -1
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.js +1 -0
- package/lib/DropDown/DropDownHeading.module.css +6 -6
- package/lib/DropDown/DropDownItem.js +2 -1
- package/lib/DropDown/DropDownItem.module.css +12 -12
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.js +2 -1
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.js +1 -0
- package/lib/Label/Label.module.css +5 -5
- package/lib/Layout/Box.js +8 -4
- package/lib/Layout/Container.js +8 -4
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/Layout/props/defaultProps.js +2 -0
- package/lib/Layout/props/propTypes.js +2 -0
- package/lib/Layout/utils.js +5 -1
- package/lib/ListItem/ListItem.module.css +38 -38
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +1 -0
- package/lib/MultiSelect/EmptyState.js +4 -0
- package/lib/MultiSelect/MultiSelect.js +1 -0
- package/lib/MultiSelect/MultiSelect.module.css +31 -31
- package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -0
- package/lib/MultiSelect/SelectedOptions.module.css +5 -5
- package/lib/Popup/Popup.js +1 -4
- package/lib/Radio/Radio.module.css +9 -9
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.js +1 -0
- package/lib/Ribbon/Ribbon.module.css +46 -48
- package/lib/Select/GroupSelect.js +1 -0
- package/lib/Select/Select.js +2 -1
- package/lib/Select/Select.module.css +23 -23
- package/lib/Select/SelectWithAvatar.js +2 -0
- package/lib/Select/SelectWithIcon.js +2 -1
- package/lib/Stencils/Stencils.module.css +11 -11
- package/lib/Switch/Switch.js +1 -0
- package/lib/Switch/Switch.module.css +23 -23
- package/lib/Tab/Tab.module.css +14 -14
- package/lib/Tab/Tabs.js +2 -1
- package/lib/Tab/Tabs.module.css +22 -22
- package/lib/Tag/Tag.js +1 -0
- package/lib/Tag/Tag.module.css +25 -25
- package/lib/TextBox/TextBox.js +1 -0
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBoxIcon/TextBoxIcon.module.css +7 -7
- package/lib/Textarea/Textarea.js +1 -0
- package/lib/Textarea/Textarea.module.css +21 -21
- package/lib/Tooltip/Tooltip.js +2 -1
- package/lib/Tooltip/Tooltip.module.css +5 -5
- package/lib/common/animation.module.css +8 -8
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +3 -3
- package/lib/common/common.module.css +24 -24
- package/lib/common/customscroll.module.css +2 -2
- package/lib/deprecated/AdvancedMultiSelect.module.css +18 -18
- package/lib/semantic/Button/Button.js +1 -0
- package/lib/semantic/Button/semanticButton.module.css +1 -1
- package/package.json +10 -19
package/es/Heading/Heading.js
CHANGED
package/es/Label/Label.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* label default variables */
|
|
3
|
-
--label_font_size:
|
|
3
|
+
--label_font_size: var(--zd_font_size14);
|
|
4
4
|
--label_text_color: var(--zdt_label_default_text);
|
|
5
5
|
--label_font_family: var(--zd_regular);
|
|
6
6
|
--label_cursor: default;
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
cursor: var(--label_cursor);
|
|
17
17
|
}
|
|
18
18
|
.xsmall {
|
|
19
|
-
--label_font_size:
|
|
19
|
+
--label_font_size: var(--zd_font_size12);
|
|
20
20
|
}
|
|
21
21
|
.small {
|
|
22
|
-
--label_font_size:
|
|
22
|
+
--label_font_size: var(--zd_font_size13);
|
|
23
23
|
}
|
|
24
24
|
.medium {
|
|
25
|
-
--label_font_size:
|
|
25
|
+
--label_font_size: var(--zd_font_size14);
|
|
26
26
|
}
|
|
27
27
|
.large {
|
|
28
|
-
--label_font_size:
|
|
28
|
+
--label_font_size: var(--zd_font_size26);
|
|
29
29
|
composes: semibold from '../common/common.module.css';
|
|
30
30
|
}
|
|
31
31
|
.pointer {
|
package/es/Layout/Box.js
CHANGED
|
@@ -96,18 +96,19 @@ export function getBoxProps(props) {
|
|
|
96
96
|
return createProps(propTypes, props, getBoxClassNames(props));
|
|
97
97
|
}
|
|
98
98
|
export default function Box(props) {
|
|
99
|
-
let childProps = getBoxProps(props);
|
|
100
99
|
let {
|
|
101
100
|
tagName
|
|
102
101
|
} = props;
|
|
103
|
-
setProps(
|
|
102
|
+
let componentProps = setProps({ ...getBoxProps(props)
|
|
103
|
+
}, props, {
|
|
104
104
|
isScrollAttribute: 'data-scroll',
|
|
105
105
|
eleRef: 'ref',
|
|
106
106
|
dataId: 'data-id',
|
|
107
|
+
testId: 'data-test-id',
|
|
107
108
|
tourId: 'data-tour',
|
|
108
109
|
dataSelectorId: 'data-selector-id'
|
|
109
110
|
});
|
|
110
|
-
return /*#__PURE__*/React.createElement(tagName,
|
|
111
|
+
return /*#__PURE__*/React.createElement(tagName, componentProps);
|
|
111
112
|
}
|
|
112
113
|
Box.propTypes = propTypes;
|
|
113
114
|
Box.defaultProps = defaultProps;
|
package/es/Layout/Container.js
CHANGED
|
@@ -113,18 +113,19 @@ export function getContainerProps(props) {
|
|
|
113
113
|
return createProps(propTypes, props, getContainerClassNames(props));
|
|
114
114
|
}
|
|
115
115
|
export default function Container(props) {
|
|
116
|
-
let childProps = getContainerProps(props);
|
|
117
116
|
let {
|
|
118
117
|
tagName
|
|
119
118
|
} = props;
|
|
120
|
-
setProps(
|
|
119
|
+
let componentProps = setProps({ ...getContainerProps(props)
|
|
120
|
+
}, props, {
|
|
121
121
|
isScrollAttribute: 'data-scroll',
|
|
122
122
|
eleRef: 'ref',
|
|
123
123
|
dataId: 'data-id',
|
|
124
|
+
testId: 'data-test-id',
|
|
124
125
|
tourId: 'data-tour',
|
|
125
126
|
dataSelectorId: 'data-selector-id'
|
|
126
127
|
});
|
|
127
|
-
return /*#__PURE__*/React.createElement(tagName,
|
|
128
|
+
return /*#__PURE__*/React.createElement(tagName, componentProps);
|
|
128
129
|
}
|
|
129
130
|
Container.propTypes = propTypes;
|
|
130
131
|
Container.defaultProps = defaultProps;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.cover {
|
|
14
|
-
width: 100
|
|
15
|
-
height: 100
|
|
14
|
+
width: 100% ;
|
|
15
|
+
height: 100% ;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* .flex {
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
-webkit-box-flex: 1;
|
|
68
68
|
-ms-flex-positive: 1;
|
|
69
69
|
flex-grow: 1;
|
|
70
|
-
min-height: 0;
|
|
71
|
-
min-width: 0;
|
|
70
|
+
min-height: 0 ;
|
|
71
|
+
min-width: 0 ;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.shrinkOff {
|
|
@@ -83,18 +83,18 @@
|
|
|
83
83
|
-moz-flex-shrink: 1;
|
|
84
84
|
-webkit-flex-shrink: 1;
|
|
85
85
|
-ms-flex-shrink: 1;
|
|
86
|
-
min-width: 0;
|
|
86
|
+
min-width: 0 ;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.basis {
|
|
90
|
-
flex-basis: 0
|
|
90
|
+
flex-basis: 0% ;
|
|
91
91
|
-webkit-flex-basis: 0%;
|
|
92
92
|
-moz-flex-basis: 0%;
|
|
93
93
|
-ms-flex-basis: 0%;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.basisAuto {
|
|
97
|
-
flex-basis: auto;
|
|
97
|
+
flex-basis: auto ;
|
|
98
98
|
-webkit-flex-basis: auto;
|
|
99
99
|
-moz-flex-basis: auto;
|
|
100
100
|
-ms-flex-basis: auto;
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
|
|
147
147
|
.col-3 {
|
|
148
148
|
-ms-flex-preferred-size: 25%;
|
|
149
|
-
flex-basis: 25
|
|
150
|
-
max-width: 25
|
|
149
|
+
flex-basis: 25% ;
|
|
150
|
+
max-width: 25% ;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.col-4 {
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
|
|
165
165
|
.col-6 {
|
|
166
166
|
-ms-flex-preferred-size: 50%;
|
|
167
|
-
flex-basis: 50
|
|
168
|
-
max-width: 50
|
|
167
|
+
flex-basis: 50% ;
|
|
168
|
+
max-width: 50% ;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.col-7 {
|
|
@@ -182,8 +182,8 @@
|
|
|
182
182
|
|
|
183
183
|
.col-9 {
|
|
184
184
|
-ms-flex-preferred-size: 75%;
|
|
185
|
-
flex-basis: 75
|
|
186
|
-
max-width: 75
|
|
185
|
+
flex-basis: 75% ;
|
|
186
|
+
max-width: 75% ;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.col-10 {
|
|
@@ -200,8 +200,8 @@
|
|
|
200
200
|
|
|
201
201
|
.col-12 {
|
|
202
202
|
-ms-flex-preferred-size: 100%;
|
|
203
|
-
flex-basis: 100
|
|
204
|
-
max-width: 100
|
|
203
|
+
flex-basis: 100% ;
|
|
204
|
+
max-width: 100% ;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.hCenter {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export const BoxDefaultProps = {
|
|
2
2
|
dataId: 'boxComponent',
|
|
3
|
+
testId: '',
|
|
3
4
|
isScrollAttribute: false,
|
|
4
5
|
tagName: 'div',
|
|
5
6
|
dataSelectorId: 'box'
|
|
6
7
|
};
|
|
7
8
|
export const ContainerDefaultProps = {
|
|
8
9
|
dataId: 'containerComponent',
|
|
10
|
+
testId: '',
|
|
9
11
|
isScrollAttribute: false,
|
|
10
12
|
isCover: true,
|
|
11
13
|
alignBox: 'column',
|
|
@@ -6,6 +6,7 @@ export const BoxProps = {
|
|
|
6
6
|
className: PropTypes.string,
|
|
7
7
|
column: PropTypes.oneOf(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']),
|
|
8
8
|
dataId: PropTypes.string,
|
|
9
|
+
testId: PropTypes.string,
|
|
9
10
|
dataSelectorId: PropTypes.string,
|
|
10
11
|
eleRef: PropTypes.func,
|
|
11
12
|
flexible: PropTypes.bool,
|
|
@@ -30,6 +31,7 @@ export const ContainerProps = {
|
|
|
30
31
|
children: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
|
31
32
|
className: PropTypes.string,
|
|
32
33
|
dataId: PropTypes.string,
|
|
34
|
+
testId: PropTypes.string,
|
|
33
35
|
dataSelectorId: PropTypes.string,
|
|
34
36
|
eleRef: PropTypes.func,
|
|
35
37
|
hidden: PropTypes.array,
|
package/es/Layout/utils.js
CHANGED
|
@@ -17,8 +17,12 @@ export function isInteger(value) {
|
|
|
17
17
|
}
|
|
18
18
|
export function setProps(childProps, props) {
|
|
19
19
|
let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
20
|
-
Object.keys(values).
|
|
20
|
+
Object.keys(values).forEach(value => {
|
|
21
21
|
if (props[value]) {
|
|
22
|
+
if (value === 'dataId') {
|
|
23
|
+
childProps['data-test-id'] = props[value];
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
childProps[values[value]] = props[value];
|
|
23
27
|
}
|
|
24
28
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* listitem default variables */
|
|
3
3
|
--listitem_text_color: var(--zdt_listitem_default_text);
|
|
4
|
-
--listitem_padding:
|
|
4
|
+
--listitem_padding: var(--zd_size9) var(--zd_size20);
|
|
5
5
|
--listitem_border_width: 0;
|
|
6
6
|
--listitem_border_color: var(--zdt_listitem_default_border);
|
|
7
7
|
--listitem_bg_color: var(--zdt_listitem_default_bg);
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
/* listitem tick icon default variables */
|
|
16
16
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
17
17
|
}[dir=ltr] .varClass {
|
|
18
|
-
--listitem_avatar_margin: 0
|
|
19
|
-
|
|
18
|
+
--listitem_avatar_margin: 0 var(--zd_size15) 0 0
|
|
19
|
+
;
|
|
20
20
|
}[dir=rtl] .varClass {
|
|
21
|
-
--listitem_avatar_margin: 0 0 0
|
|
21
|
+
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
22
22
|
}
|
|
23
23
|
.list {
|
|
24
24
|
composes: varClass;
|
|
25
25
|
position: relative;
|
|
26
26
|
list-style: none;
|
|
27
27
|
color: var(--listitem_text_color);
|
|
28
|
-
font-size:
|
|
28
|
+
font-size: var(--zd_font_size13) ;
|
|
29
29
|
height: var(--listitem_height);
|
|
30
30
|
min-height: var(--listitem_min_height);
|
|
31
31
|
text-decoration: none;
|
|
@@ -48,27 +48,27 @@
|
|
|
48
48
|
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
49
49
|
}
|
|
50
50
|
[dir=ltr] .small {
|
|
51
|
-
--listitem_padding:
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
--listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7
|
|
52
|
+
) var(--zd_size5
|
|
53
|
+
) ;
|
|
54
54
|
}
|
|
55
55
|
[dir=rtl] .small {
|
|
56
|
-
--listitem_padding:
|
|
56
|
+
--listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
|
|
57
57
|
}
|
|
58
58
|
.medium {
|
|
59
|
-
--listitem_padding:
|
|
60
|
-
--listitem_min_height:
|
|
59
|
+
--listitem_padding: var(--zd_size7) var(--zd_size20);
|
|
60
|
+
--listitem_min_height: var(--zd_size35);
|
|
61
61
|
}
|
|
62
62
|
.large {
|
|
63
|
-
--listitem_height:
|
|
63
|
+
--listitem_height: var(--zd_size48);
|
|
64
64
|
}
|
|
65
65
|
[dir=ltr] .large {
|
|
66
|
-
--listitem_padding:
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10
|
|
67
|
+
) var(--zd_size25
|
|
68
|
+
) ;
|
|
69
69
|
}
|
|
70
70
|
[dir=rtl] .large {
|
|
71
|
-
--listitem_padding:
|
|
71
|
+
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
|
|
72
72
|
}
|
|
73
73
|
.value,
|
|
74
74
|
.children {
|
|
@@ -82,18 +82,18 @@
|
|
|
82
82
|
composes: clamp from '../common/common.module.css'
|
|
83
83
|
}
|
|
84
84
|
.iconBox {
|
|
85
|
-
width:
|
|
85
|
+
width: var(--zd_size20) ;
|
|
86
86
|
text-align: center;
|
|
87
87
|
}
|
|
88
88
|
[dir=ltr] .iconBox {
|
|
89
|
-
margin-right:
|
|
89
|
+
margin-right: var(--zd_size10) ;
|
|
90
90
|
}
|
|
91
91
|
[dir=rtl] .iconBox {
|
|
92
|
-
margin-left:
|
|
92
|
+
margin-left: var(--zd_size10) ;
|
|
93
93
|
}
|
|
94
94
|
.iconBox,
|
|
95
95
|
.leftAvatar {
|
|
96
|
-
font-size: 0;
|
|
96
|
+
font-size: 0 ;
|
|
97
97
|
}
|
|
98
98
|
.leftAvatar {
|
|
99
99
|
margin: var(--listitem_avatar_margin);
|
|
@@ -169,11 +169,11 @@
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
[dir=ltr] .tickIcon, [dir=ltr] .defaultTick, [dir=ltr] .darkTick {
|
|
172
|
-
right:
|
|
172
|
+
right: var(--zd_size20) ;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
[dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
|
|
176
|
-
left:
|
|
176
|
+
left: var(--zd_size20) ;
|
|
177
177
|
}
|
|
178
178
|
.defaultTick {
|
|
179
179
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
@@ -185,32 +185,32 @@
|
|
|
185
185
|
display: block;
|
|
186
186
|
}
|
|
187
187
|
[dir=ltr] .smallwithTick {
|
|
188
|
-
--listitem_padding:
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7
|
|
189
|
+
) var(--zd_size5
|
|
190
|
+
) ;
|
|
191
191
|
}
|
|
192
192
|
[dir=rtl] .smallwithTick {
|
|
193
|
-
--listitem_padding:
|
|
193
|
+
--listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size39);
|
|
194
194
|
}
|
|
195
195
|
[dir=ltr] .mediumwithTick {
|
|
196
|
-
--listitem_padding:
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
--listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7
|
|
197
|
+
) var(--zd_size20
|
|
198
|
+
) ;
|
|
199
199
|
}
|
|
200
200
|
[dir=rtl] .mediumwithTick {
|
|
201
|
-
--listitem_padding:
|
|
201
|
+
--listitem_padding: var(--zd_size7) var(--zd_size20) var(--zd_size7) var(--zd_size39);
|
|
202
202
|
}
|
|
203
203
|
[dir=ltr] .largewithTick {
|
|
204
|
-
--listitem_padding:
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10
|
|
205
|
+
) var(--zd_size25
|
|
206
|
+
) ;
|
|
207
207
|
}
|
|
208
208
|
[dir=rtl] .largewithTick {
|
|
209
|
-
--listitem_padding:
|
|
209
|
+
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
|
|
210
210
|
}
|
|
211
211
|
.responsiveHeight {
|
|
212
|
-
--listitem_min_height:
|
|
213
|
-
font-size:
|
|
214
|
-
padding-top:
|
|
215
|
-
padding-bottom:
|
|
212
|
+
--listitem_min_height: var(--zd_size45);
|
|
213
|
+
font-size: var(--zd_font_size15) ;
|
|
214
|
+
padding-top: var(--zd_size10) ;
|
|
215
|
+
padding-bottom: var(--zd_size10) ;
|
|
216
216
|
}
|
|
@@ -902,6 +902,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
902
902
|
return /*#__PURE__*/React.createElement("div", {
|
|
903
903
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
904
904
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
905
|
+
"data-test-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
905
906
|
"data-title": isDisabled ? title : null,
|
|
906
907
|
onClick: this.handleInputFocus,
|
|
907
908
|
"data-selector-id": dataSelectorId
|
|
@@ -411,6 +411,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
411
411
|
return /*#__PURE__*/React.createElement("div", {
|
|
412
412
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
413
413
|
"data-id": dataIdMultiSelectComp,
|
|
414
|
+
"data-test-id": dataIdMultiSelectComp,
|
|
414
415
|
"data-title": isDisabled ? title : null,
|
|
415
416
|
onClick: this.handleInputFocus,
|
|
416
417
|
"data-selector-id": dataSelectorId
|
|
@@ -35,21 +35,25 @@ export default class EmptyState extends React.PureComponent {
|
|
|
35
35
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLoading ? /*#__PURE__*/React.createElement("div", {
|
|
36
36
|
className: className,
|
|
37
37
|
"data-id": `${dataId}_Loading`,
|
|
38
|
+
"data-test-id": `${dataId}_Loading`,
|
|
38
39
|
role: role,
|
|
39
40
|
id: htmlId
|
|
40
41
|
}, loadingText) : searchString.length && suggestions.length === 0 ? getCustomEmptyState ? getCustomEmptyState() : /*#__PURE__*/React.createElement("div", {
|
|
41
42
|
className: className,
|
|
42
43
|
"data-id": `${dataId}_srchEmptyMsg`,
|
|
44
|
+
"data-test-id": `${dataId}_srchEmptyMsg`,
|
|
43
45
|
role: role,
|
|
44
46
|
id: htmlId
|
|
45
47
|
}, searchEmptyText || emptyText) : options.length === 0 ? /*#__PURE__*/React.createElement("div", {
|
|
46
48
|
className: className,
|
|
47
49
|
"data-id": `${dataId}_noOptnsMsg`,
|
|
50
|
+
"data-test-id": `${dataId}_noOptnsMsg`,
|
|
48
51
|
role: role,
|
|
49
52
|
id: htmlId
|
|
50
53
|
}, emptyText) : /*#__PURE__*/React.createElement("div", {
|
|
51
54
|
className: className,
|
|
52
55
|
"data-id": `${dataId}_NoMoreOptionMsg`,
|
|
56
|
+
"data-test-id": `${dataId}_NoMoreOptionMsg`,
|
|
53
57
|
role: role,
|
|
54
58
|
id: htmlId
|
|
55
59
|
}, noMoreText || emptyText));
|
|
@@ -932,6 +932,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
932
932
|
return /*#__PURE__*/React.createElement("div", {
|
|
933
933
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
934
934
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
935
|
+
"data-test-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
935
936
|
"data-title": isDisabled ? title : null,
|
|
936
937
|
onClick: this.handleInputFocus,
|
|
937
938
|
"data-selector-id": dataSelectorId
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
cursor: not-allowed;
|
|
6
6
|
}
|
|
7
7
|
.container {
|
|
8
|
-
max-height:
|
|
8
|
+
max-height: var(--zd_size120) ;
|
|
9
9
|
composes: oflowy from '../common/common.module.css';
|
|
10
10
|
}
|
|
11
11
|
.hasBorder {
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.container.medium {
|
|
45
|
-
padding-bottom:
|
|
45
|
+
padding-bottom: var(--zd_size8) ;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.container.xmedium {
|
|
49
|
-
min-height:
|
|
50
|
-
padding-bottom:
|
|
49
|
+
min-height: var(--zd_size30) ;
|
|
50
|
+
padding-bottom: var(--zd_size3) ;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.delete {
|
|
54
54
|
font: inherit;
|
|
55
|
-
padding:
|
|
55
|
+
padding: var(--zd_size2) var(--zd_size6) ;
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
border: 0;
|
|
58
58
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
@@ -82,26 +82,26 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.tag {
|
|
85
|
-
max-width: 100
|
|
85
|
+
max-width: 100% ;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
[dir=ltr] .container.xmedium .tag {
|
|
89
|
-
margin:
|
|
89
|
+
margin: var(--zd_size2) var(--zd_size10) 0 0 ;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
[dir=rtl] .container.xmedium .tag {
|
|
93
|
-
margin:
|
|
93
|
+
margin: var(--zd_size2) 0 0 var(--zd_size10) ;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
[dir=ltr] .container.medium .tag {
|
|
97
|
-
margin:
|
|
97
|
+
margin: var(--zd_size5) var(--zd_size10) 0 0 ;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
[dir=rtl] .container.medium .tag {
|
|
101
|
-
margin:
|
|
101
|
+
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
102
102
|
}
|
|
103
103
|
.responsiveParent{
|
|
104
|
-
width: 100
|
|
104
|
+
width: 100% ;
|
|
105
105
|
}
|
|
106
106
|
.box {
|
|
107
107
|
background: var(--zdt_multiselect_box_bg);
|
|
@@ -112,21 +112,21 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.small {
|
|
115
|
-
max-height:
|
|
115
|
+
max-height: var(--zd_size200) ;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.medium {
|
|
119
|
-
max-height:
|
|
119
|
+
max-height: var(--zd_size350) ;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.large {
|
|
123
|
-
max-height:
|
|
123
|
+
max-height: var(--zd_size400) ;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.commonMessage {
|
|
127
|
-
font-size:
|
|
127
|
+
font-size: var(--zd_font_size14) ;
|
|
128
128
|
composes: semibold from '../common/common.module.css';
|
|
129
|
-
padding:
|
|
129
|
+
padding: var(--zd_size12) var(--zd_size15) ;
|
|
130
130
|
}
|
|
131
131
|
.default,
|
|
132
132
|
.dark {
|
|
@@ -154,54 +154,54 @@
|
|
|
154
154
|
overflow: hidden;
|
|
155
155
|
text-overflow: ellipsis;
|
|
156
156
|
white-space: nowrap;
|
|
157
|
-
max-width: 100
|
|
157
|
+
max-width: 100% ;
|
|
158
158
|
visibility: hidden;
|
|
159
159
|
}
|
|
160
160
|
.custmSpanMedium {
|
|
161
|
-
height:
|
|
161
|
+
height: var(--zd_size35) ;
|
|
162
162
|
}
|
|
163
163
|
.custmSpanXmedium {
|
|
164
|
-
height:
|
|
164
|
+
height: var(--zd_size28) ;
|
|
165
165
|
}
|
|
166
166
|
.custmInputWrapper {
|
|
167
167
|
position: absolute;
|
|
168
|
-
top: 0;
|
|
169
|
-
width: 100
|
|
168
|
+
top: 0 ;
|
|
169
|
+
width: 100% ;
|
|
170
170
|
}
|
|
171
171
|
[dir=ltr] .custmInputWrapper {
|
|
172
|
-
left: 0;
|
|
172
|
+
left: 0 ;
|
|
173
173
|
}
|
|
174
174
|
[dir=rtl] .custmInputWrapper {
|
|
175
|
-
right: 0;
|
|
175
|
+
right: 0 ;
|
|
176
176
|
}
|
|
177
177
|
.title {
|
|
178
|
-
margin-bottom:
|
|
178
|
+
margin-bottom: var(--zd_size6) ;
|
|
179
179
|
}
|
|
180
180
|
.groupTitle {
|
|
181
|
-
margin:
|
|
181
|
+
margin: var(--zd_size6) 0 ;
|
|
182
182
|
}
|
|
183
183
|
.loader {
|
|
184
|
-
padding:
|
|
184
|
+
padding: var(--zd_size10) ;
|
|
185
185
|
}
|
|
186
186
|
.iconContainer {
|
|
187
|
-
padding-top:
|
|
187
|
+
padding-top: var(--zd_size3)
|
|
188
188
|
}
|
|
189
189
|
[dir=ltr] .clearIconSpace {
|
|
190
|
-
padding-right:
|
|
190
|
+
padding-right: var(--zd_size37)
|
|
191
191
|
}
|
|
192
192
|
[dir=rtl] .clearIconSpace {
|
|
193
|
-
padding-left:
|
|
193
|
+
padding-left: var(--zd_size37)
|
|
194
194
|
}
|
|
195
195
|
.search{
|
|
196
196
|
/* Variable:Ignore */
|
|
197
197
|
padding: 0px 20px;
|
|
198
198
|
}
|
|
199
199
|
.more {
|
|
200
|
-
font-size:
|
|
200
|
+
font-size: var(--zd_font_size14) ;
|
|
201
201
|
color: var(--zdt_multiselect_more_text);
|
|
202
202
|
font-family: inherit;
|
|
203
203
|
cursor: pointer;
|
|
204
|
-
margin-top:
|
|
204
|
+
margin-top: var(--zd_size5) ;
|
|
205
205
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
206
206
|
border: 0;
|
|
207
207
|
}
|
|
@@ -143,6 +143,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
143
143
|
return /*#__PURE__*/React.createElement("div", {
|
|
144
144
|
className: ` ${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
145
145
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
146
|
+
"data-test-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
146
147
|
"data-title": isDisabled ? title : null,
|
|
147
148
|
onClick: this.handleInputFocus,
|
|
148
149
|
"data-selector-id": dataSelectorId
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.tag {
|
|
2
|
-
max-width: 100
|
|
2
|
+
max-width: 100% ;
|
|
3
3
|
}
|
|
4
4
|
[dir=ltr] .xmedium {
|
|
5
|
-
margin: 0
|
|
5
|
+
margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
|
|
6
6
|
}
|
|
7
7
|
[dir=rtl] .xmedium {
|
|
8
|
-
margin: 0 0
|
|
8
|
+
margin: 0 0 var(--zd_size2) var(--zd_size10) ;
|
|
9
9
|
}
|
|
10
10
|
[dir=ltr] .medium {
|
|
11
|
-
margin:
|
|
11
|
+
margin: var(--zd_size5) var(--zd_size10) 0 0 ;
|
|
12
12
|
}
|
|
13
13
|
[dir=rtl] .medium {
|
|
14
|
-
margin:
|
|
14
|
+
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
15
15
|
}
|
package/es/Popup/Popup.js
CHANGED
|
@@ -356,10 +356,7 @@ const Popup = function (Component) {
|
|
|
356
356
|
placeHolderElement
|
|
357
357
|
} = openedPopup;
|
|
358
358
|
const isDropBoxChild = isDescendant(dropElement, target);
|
|
359
|
-
const isTargetChild = isDescendant(placeHolderElement, target); // const
|
|
360
|
-
// '[data-id=massUpdatePopup]'
|
|
361
|
-
// );
|
|
362
|
-
// const isPopupMassUpdateChild = isDescendant(
|
|
359
|
+
const isTargetChild = isDescendant(placeHolderElement, target); // const isPopupMassUpdateChild = isDescendant(
|
|
363
360
|
// massUpdateParent,
|
|
364
361
|
// dropElement
|
|
365
362
|
// );
|