@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-193
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 +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.js +8 -2
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.js +14 -3
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/Time.js +30 -13
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DateTime/props/defaultProps.js +4 -2
- package/es/DateTime/props/propTypes.js +6 -3
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +80 -98
- package/es/ListItem/ListItemWithAvatar.js +5 -4
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/defaultProps.js +4 -2
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.js +13 -2
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.js +19 -3
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/Time.js +35 -13
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DateTime/props/defaultProps.js +4 -2
- package/lib/DateTime/props/propTypes.js +6 -3
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +80 -98
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/props/defaultProps.js +4 -2
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/Select.module.css +33 -22
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* avatar default variables */
|
|
3
|
-
--avatar_text_color: var(--
|
|
4
|
-
--avatar_font_size:
|
|
5
|
-
--avatar_bg_color: var(--
|
|
3
|
+
--avatar_text_color: var(--zdt_avatar_default_text);
|
|
4
|
+
--avatar_font_size: var(--zd_font_size14);
|
|
5
|
+
--avatar_bg_color: var(--zdt_avatar_default_bg);
|
|
6
6
|
--avatar_border_radius: 50%;
|
|
7
7
|
--avatar_border_width: 0;
|
|
8
8
|
--avatar_border_style: solid;
|
|
@@ -18,35 +18,40 @@
|
|
|
18
18
|
composes: dInflex alignVertical alignHorizontal from '../common/common.module.css';
|
|
19
19
|
vertical-align: middle;
|
|
20
20
|
font-size: var(--avatar_font_size);
|
|
21
|
+
color: var(--avatar_text_color);
|
|
21
22
|
border-width: var(--avatar_border_width);
|
|
22
23
|
border-style: var(--avatar_border_style);
|
|
23
|
-
color: var(--avatar_text_color);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.border {
|
|
27
27
|
border-color: var(--avatar_border_color);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.borderOnHover:hover,
|
|
31
|
-
.borderOnActive {
|
|
30
|
+
.borderOnHover:hover, .borderOnActive {
|
|
32
31
|
border-color: var(--avatar_border_hoverColor);
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
.avatar,
|
|
36
|
-
.primary {
|
|
34
|
+
.avatar, .primary {
|
|
37
35
|
background-color: var(--avatar_bg_color);
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
.shadow {
|
|
41
39
|
position: absolute;
|
|
42
|
-
height: 100
|
|
43
|
-
width: 100
|
|
44
|
-
top: 0;
|
|
45
|
-
left: 0;
|
|
40
|
+
height: 100% ;
|
|
41
|
+
width: 100% ;
|
|
42
|
+
top: 0 ;
|
|
46
43
|
pointer-events: none;
|
|
47
44
|
border-radius: var(--avatar_border_radius);
|
|
48
45
|
}
|
|
49
46
|
|
|
47
|
+
[dir=ltr] .shadow {
|
|
48
|
+
left: 0 ;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[dir=rtl] .shadow {
|
|
52
|
+
right: 0 ;
|
|
53
|
+
}
|
|
54
|
+
|
|
50
55
|
.shadow.black {
|
|
51
56
|
box-shadow: var(--zd_bs_avatar_black);
|
|
52
57
|
}
|
|
@@ -55,8 +60,7 @@
|
|
|
55
60
|
box-shadow: var(--zd_bs_avatar_white);
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
.avatar,
|
|
59
|
-
.circle {
|
|
63
|
+
.avatar, .circle {
|
|
60
64
|
border-radius: var(--avatar_border_radius);
|
|
61
65
|
}
|
|
62
66
|
|
|
@@ -65,17 +69,31 @@
|
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
.image {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
height: 100%;
|
|
72
|
+
width: 100% ;
|
|
73
|
+
height: 100% ;
|
|
71
74
|
position: absolute;
|
|
72
|
-
top: 0;
|
|
73
|
-
left: 0;
|
|
75
|
+
top: 0 ;
|
|
74
76
|
z-index: 0;
|
|
77
|
+
border-radius: var(--avatar_border_radius);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[dir=ltr] .image {
|
|
81
|
+
left: 0 ;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[dir=rtl] .image {
|
|
85
|
+
right: 0 ;
|
|
75
86
|
}
|
|
76
87
|
|
|
77
88
|
.animate {
|
|
78
89
|
composes: fadeIn modeForward from './../common/animation.module.css';
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[dir=ltr] .animate {
|
|
93
|
+
animation-duration: var(--zd_transition2);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[dir=rtl] .animate {
|
|
79
97
|
animation-duration: var(--zd_transition2);
|
|
80
98
|
}
|
|
81
99
|
|
|
@@ -123,31 +141,31 @@
|
|
|
123
141
|
}
|
|
124
142
|
|
|
125
143
|
.xxsmall {
|
|
126
|
-
--avatar_font_size:
|
|
144
|
+
--avatar_font_size: var(--zd_font_size8);
|
|
127
145
|
}
|
|
128
146
|
|
|
129
147
|
.small {
|
|
130
|
-
--avatar_font_size:
|
|
148
|
+
--avatar_font_size: var(--zd_font_size9);
|
|
131
149
|
}
|
|
132
150
|
|
|
133
151
|
.xsmall {
|
|
134
|
-
--avatar_font_size:
|
|
152
|
+
--avatar_font_size: var(--zd_font_size12);
|
|
135
153
|
}
|
|
136
154
|
|
|
137
155
|
.medium {
|
|
138
|
-
--avatar_font_size:
|
|
156
|
+
--avatar_font_size: var(--zd_font_size14);
|
|
139
157
|
}
|
|
140
158
|
|
|
141
159
|
.xmedium {
|
|
142
|
-
--avatar_font_size:
|
|
160
|
+
--avatar_font_size: var(--zd_font_size14);
|
|
143
161
|
}
|
|
144
162
|
|
|
145
163
|
.large {
|
|
146
|
-
--avatar_font_size:
|
|
164
|
+
--avatar_font_size: var(--zd_font_size18);
|
|
147
165
|
}
|
|
148
166
|
|
|
149
167
|
.xlarge {
|
|
150
|
-
--avatar_font_size:
|
|
168
|
+
--avatar_font_size: var(--zd_font_size28);
|
|
151
169
|
}
|
|
152
170
|
|
|
153
171
|
.white {
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -45,13 +47,12 @@ export default class AvatarTeam extends React.Component {
|
|
|
45
47
|
customAvatarTeam = ''
|
|
46
48
|
} = customClass;
|
|
47
49
|
let border = borderOnHover || onClick;
|
|
48
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
50
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
49
51
|
className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} `,
|
|
50
52
|
"data-id": dataId,
|
|
51
53
|
"data-test-id": dataId,
|
|
52
|
-
"data-selector-id": dataSelectorId
|
|
53
|
-
|
|
54
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
54
|
+
"data-selector-id": dataSelectorId
|
|
55
|
+
}, AvatarTeamProps), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
55
56
|
name: name,
|
|
56
57
|
onClick: onClick,
|
|
57
58
|
palette: palette,
|
|
@@ -65,9 +66,8 @@ export default class AvatarTeam extends React.Component {
|
|
|
65
66
|
borderOnHover: border,
|
|
66
67
|
needInnerBorder: needInnerBorder,
|
|
67
68
|
needBorder: needBorder,
|
|
68
|
-
needDefaultBorder: needDefaultBorder
|
|
69
|
-
|
|
70
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
69
|
+
needDefaultBorder: needDefaultBorder
|
|
70
|
+
}, AvatarProps)), /*#__PURE__*/React.createElement("span", {
|
|
71
71
|
className: `${style.team} ${isFilled ? `${style[`${palette}Filled`]}` : style.nofill}
|
|
72
72
|
${style[`${size}team`]} ${customAvatarTeam}`
|
|
73
73
|
}));
|
|
@@ -6,196 +6,184 @@
|
|
|
6
6
|
--avatarteam_outline_width: 1px;
|
|
7
7
|
--avatarteam_outline_style: solid;
|
|
8
8
|
--avatarteam_outline_color: var(--zdt_avatarteam_innerCircle);
|
|
9
|
-
--avatarteam_bg_color: var(--
|
|
10
|
-
--avatarteam_width:
|
|
11
|
-
--avatarteam_height:
|
|
9
|
+
--avatarteam_bg_color: var(--zdt_avatarteam_default_bg);
|
|
10
|
+
--avatarteam_width: var(--zd_size5);
|
|
11
|
+
--avatarteam_height: var(--zd_size5);
|
|
12
12
|
--avatarteam_border_radius: 50%;
|
|
13
13
|
--avatarteam_bottom_top: initial;
|
|
14
14
|
--avatarteam_bottom_left: initial;
|
|
15
15
|
--avatarteam_bottom_right: initial;
|
|
16
|
-
--avatarteam_top_top:
|
|
16
|
+
--avatarteam_top_top: var(--zd_size1);
|
|
17
17
|
}
|
|
18
|
-
|
|
19
18
|
.container {
|
|
20
19
|
position: relative;
|
|
21
20
|
display: inline-block;
|
|
22
|
-
font-size: 0;
|
|
21
|
+
font-size: 0 ;
|
|
23
22
|
vertical-align: middle;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
.team {
|
|
27
25
|
composes: varClass;
|
|
28
26
|
composes: posab from '../common/common.module.css';
|
|
29
|
-
transform: translate(-50%, -50%);
|
|
30
|
-
left: 50%;
|
|
31
27
|
top: var(--avatarteam_top_top);
|
|
32
|
-
border-width: var(--avatarteam_border_width);
|
|
33
|
-
border-style: var(--avatarteam_border_style);
|
|
34
|
-
border-color: var(--avatarteam_border_color);
|
|
35
|
-
background-color: var(--avatarteam_bg_color);
|
|
36
28
|
width: var(--avatarteam_width);
|
|
37
29
|
height: var(--avatarteam_height);
|
|
38
|
-
border-radius: var(--avatarteam_border_radius);
|
|
39
30
|
outline-width: var(--avatarteam_outline_width);
|
|
40
31
|
outline-style: var(--avatarteam_outline_style);
|
|
41
32
|
outline-color: var(--avatarteam_outline_color);
|
|
33
|
+
border-width: var(--avatarteam_border_width);
|
|
34
|
+
border-style: var(--avatarteam_border_style);
|
|
35
|
+
border-color: var(--avatarteam_border_color);
|
|
36
|
+
background-color: var(--avatarteam_bg_color);
|
|
37
|
+
border-radius: var(--avatarteam_border_radius);
|
|
38
|
+
}
|
|
39
|
+
[dir=ltr] .team {
|
|
40
|
+
transform: translate(-50%, -50%);
|
|
41
|
+
left: 50% ;
|
|
42
|
+
}
|
|
43
|
+
[dir=rtl] .team {
|
|
44
|
+
transform: translate(50%, -50%);
|
|
45
|
+
right: 50% ;
|
|
42
46
|
}
|
|
43
|
-
|
|
44
47
|
.nofill {
|
|
45
48
|
--avatarteam_border_color: var(--zdt_avatarteam_nofill_hover_border);
|
|
46
49
|
}
|
|
47
|
-
|
|
48
50
|
.primaryFilled,
|
|
49
51
|
.infoFilled {
|
|
50
52
|
--avatarteam_bg_color: var(--zdt_avatarteam_primary_hover_bg);
|
|
51
53
|
}
|
|
52
|
-
|
|
53
54
|
.secondaryFilled {
|
|
54
|
-
--avatarteam_bg_color: var(--
|
|
55
|
+
--avatarteam_bg_color: var(--zdt_avatarteam_secondary_bg);
|
|
55
56
|
}
|
|
56
|
-
|
|
57
57
|
.borderOnHover:hover .nofill,
|
|
58
58
|
.borderOnActive .nofill {
|
|
59
|
-
--avatarteam_border_color: var(--zdt_avatarteam_nofill_hover_border);
|
|
59
|
+
--avatarteam_border_color : var(--zdt_avatarteam_nofill_hover_border);
|
|
60
60
|
}
|
|
61
|
-
|
|
62
61
|
.borderOnHover:hover .primaryFilled,
|
|
63
62
|
.borderOnActive .primaryFilled,
|
|
64
63
|
.borderOnHover:hover .infoFilled,
|
|
65
64
|
.borderOnActive .infoFilled {
|
|
66
65
|
--avatarteam_bg_color: var(--zdt_avatarteam_primary_hover_bg);
|
|
67
66
|
}
|
|
68
|
-
|
|
69
67
|
.team:after,
|
|
70
68
|
.team:before {
|
|
71
69
|
position: absolute;
|
|
72
70
|
content: '';
|
|
71
|
+
height: inherit ;
|
|
72
|
+
width: inherit ;
|
|
73
|
+
top: var(--avatarteam_bottom_top);
|
|
74
|
+
outline-width: var(--avatarteam_outline_width);
|
|
75
|
+
outline-style: var(--avatarteam_outline_style);
|
|
76
|
+
outline-color: var( --avatarteam_outline_color);
|
|
77
|
+
}
|
|
78
|
+
.team:after, .team:before {
|
|
73
79
|
border: inherit;
|
|
74
80
|
background-color: inherit;
|
|
75
81
|
border-radius: inherit;
|
|
76
|
-
height: inherit;
|
|
77
|
-
width: inherit;
|
|
78
82
|
box-shadow: inherit;
|
|
79
|
-
|
|
83
|
+
}
|
|
84
|
+
[dir=ltr] .team:after, [dir=ltr] .team:before {
|
|
80
85
|
left: var(--avatarteam_bottom_left);
|
|
81
86
|
right: var(--avatarteam_bottom_right);
|
|
82
|
-
outline-width: var(--avatarteam_outline_width);
|
|
83
|
-
outline-style: var(--avatarteam_outline_style);
|
|
84
|
-
outline-color: var(--avatarteam_outline_color);
|
|
85
87
|
}
|
|
86
|
-
|
|
88
|
+
[dir=rtl] .team:after, [dir=rtl] .team:before {
|
|
89
|
+
right: var(--avatarteam_bottom_left);
|
|
90
|
+
left: var(--avatarteam_bottom_right);
|
|
91
|
+
}
|
|
87
92
|
.smallteam,
|
|
88
93
|
.xsmallteam,
|
|
89
94
|
.xxsmallteam {
|
|
90
|
-
--avatarteam_height:
|
|
91
|
-
--avatarteam_width:
|
|
95
|
+
--avatarteam_height: var(--zd_size3);
|
|
96
|
+
--avatarteam_width: var(--zd_size3);
|
|
92
97
|
}
|
|
93
|
-
|
|
94
98
|
.mediumteam,
|
|
95
99
|
.xmediumteam {
|
|
96
|
-
--avatarteam_height:
|
|
97
|
-
--avatarteam_width:
|
|
100
|
+
--avatarteam_height: var(--zd_size5);
|
|
101
|
+
--avatarteam_width: var(--zd_size5);
|
|
98
102
|
}
|
|
99
|
-
|
|
100
103
|
.largeteam,
|
|
101
104
|
.xlargeteam {
|
|
102
|
-
--avatarteam_height:
|
|
103
|
-
--avatarteam_width:
|
|
105
|
+
--avatarteam_height: var(--zd_size7);
|
|
106
|
+
--avatarteam_width: var(--zd_size7);
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
.xxsmallteam {
|
|
107
110
|
/* Variable:Ignore */
|
|
108
111
|
--avatarteam_top_top: 0px;
|
|
109
112
|
}
|
|
110
|
-
|
|
111
113
|
.xxsmallteam::after,
|
|
112
114
|
.xxsmallteam:before {
|
|
113
|
-
--avatarteam_bottom_top:
|
|
115
|
+
--avatarteam_bottom_top: var(--zd_size13);
|
|
114
116
|
}
|
|
115
|
-
|
|
116
117
|
.xxsmallteam:after {
|
|
117
|
-
--avatarteam_bottom_left: -
|
|
118
|
+
--avatarteam_bottom_left: calc( var(--zd_size8) * -1 );
|
|
118
119
|
}
|
|
119
|
-
|
|
120
120
|
.xxsmallteam:before {
|
|
121
|
-
--avatarteam_bottom_right: -
|
|
121
|
+
--avatarteam_bottom_right: calc( var(--zd_size8) * -1 );
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
.smallteam::after,
|
|
126
126
|
.smallteam:before {
|
|
127
|
-
--avatarteam_bottom_top:
|
|
127
|
+
--avatarteam_bottom_top: var(--zd_size17);
|
|
128
128
|
}
|
|
129
|
-
|
|
130
129
|
.smallteam:after {
|
|
131
|
-
--avatarteam_bottom_left: -
|
|
130
|
+
--avatarteam_bottom_left: calc( var(--zd_size8) * -1 );
|
|
132
131
|
}
|
|
133
|
-
|
|
134
132
|
.smallteam:before {
|
|
135
|
-
--avatarteam_bottom_right: -
|
|
133
|
+
--avatarteam_bottom_right: calc( var(--zd_size8) * -1 );
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
.xsmallteam::after,
|
|
139
137
|
.xsmallteam:before {
|
|
140
|
-
--avatarteam_bottom_top:
|
|
138
|
+
--avatarteam_bottom_top: var(--zd_size24);
|
|
141
139
|
}
|
|
142
|
-
|
|
143
140
|
.xsmallteam:after {
|
|
144
|
-
--avatarteam_bottom_left: -
|
|
141
|
+
--avatarteam_bottom_left: calc( var(--zd_size10) * -1 );
|
|
145
142
|
}
|
|
146
|
-
|
|
147
143
|
.xsmallteam:before {
|
|
148
|
-
--avatarteam_bottom_right: -
|
|
144
|
+
--avatarteam_bottom_right: calc( var(--zd_size10) * -1 );
|
|
149
145
|
}
|
|
150
146
|
|
|
151
147
|
.mediumteam::after,
|
|
152
148
|
.mediumteam:before {
|
|
153
|
-
--avatarteam_bottom_top:
|
|
149
|
+
--avatarteam_bottom_top: var(--zd_size26);
|
|
154
150
|
}
|
|
155
|
-
|
|
156
151
|
.mediumteam:after {
|
|
157
|
-
--avatarteam_bottom_left: -
|
|
152
|
+
--avatarteam_bottom_left: calc( var(--zd_size13) * -1 );
|
|
158
153
|
}
|
|
159
|
-
|
|
160
154
|
.mediumteam:before {
|
|
161
|
-
--avatarteam_bottom_right: -
|
|
155
|
+
--avatarteam_bottom_right: calc( var(--zd_size13) * -1 );
|
|
162
156
|
}
|
|
163
157
|
|
|
164
158
|
.xmediumteam::after,
|
|
165
159
|
.xmediumteam:before {
|
|
166
|
-
--avatarteam_bottom_top:
|
|
160
|
+
--avatarteam_bottom_top: var(--zd_size30);
|
|
167
161
|
}
|
|
168
|
-
|
|
169
162
|
.xmediumteam:after {
|
|
170
|
-
--avatarteam_bottom_left: -
|
|
163
|
+
--avatarteam_bottom_left: calc( var(--zd_size16) * -1 );
|
|
171
164
|
}
|
|
172
|
-
|
|
173
165
|
.xmediumteam:before {
|
|
174
|
-
--avatarteam_bottom_right: -
|
|
166
|
+
--avatarteam_bottom_right: calc( var(--zd_size16) * -1 );
|
|
175
167
|
}
|
|
176
168
|
|
|
177
169
|
.largeteam::after,
|
|
178
170
|
.largeteam:before {
|
|
179
|
-
--avatarteam_bottom_top:
|
|
171
|
+
--avatarteam_bottom_top: var(--zd_size46);
|
|
180
172
|
}
|
|
181
|
-
|
|
182
173
|
.largeteam:after {
|
|
183
|
-
--avatarteam_bottom_left: -
|
|
174
|
+
--avatarteam_bottom_left: calc( var(--zd_size24) * -1 );
|
|
184
175
|
}
|
|
185
|
-
|
|
186
176
|
.largeteam:before {
|
|
187
|
-
--avatarteam_bottom_right: -
|
|
177
|
+
--avatarteam_bottom_right: calc( var(--zd_size24) * -1 );
|
|
188
178
|
}
|
|
189
179
|
|
|
190
180
|
.xlargeteam::after,
|
|
191
181
|
.xlargeteam:before {
|
|
192
|
-
--avatarteam_bottom_top:
|
|
182
|
+
--avatarteam_bottom_top: var(--zd_size65);
|
|
193
183
|
}
|
|
194
|
-
|
|
195
184
|
.xlargeteam:after {
|
|
196
|
-
--avatarteam_bottom_left: -
|
|
185
|
+
--avatarteam_bottom_left: calc( var(--zd_size29) * -1 );
|
|
197
186
|
}
|
|
198
|
-
|
|
199
187
|
.xlargeteam:before {
|
|
200
|
-
--avatarteam_bottom_right: -
|
|
201
|
-
}
|
|
188
|
+
--avatarteam_bottom_right: calc( var(--zd_size29) * -1 );
|
|
189
|
+
}
|
package/es/Button/Button.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -39,7 +41,7 @@ export default function Button(props) {
|
|
|
39
41
|
style: finalStyle
|
|
40
42
|
});
|
|
41
43
|
let statusLower = status.toLowerCase();
|
|
42
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
44
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
43
45
|
className: buttonClass,
|
|
44
46
|
"data-id": disabled ? `${dataId}_disabled` : dataId,
|
|
45
47
|
"data-test-id": disabled ? `${dataId}_disabled` : dataId,
|
|
@@ -48,11 +50,10 @@ export default function Button(props) {
|
|
|
48
50
|
"data-title": title,
|
|
49
51
|
type: "button",
|
|
50
52
|
ref: getRef,
|
|
51
|
-
"data-selector-id": dataSelectorId
|
|
52
|
-
|
|
53
|
-
...a11y,
|
|
53
|
+
"data-selector-id": dataSelectorId
|
|
54
|
+
}, customProps, a11y, {
|
|
54
55
|
id: id
|
|
55
|
-
}, children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
}), children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
|
|
56
57
|
className: finalStyle.overlay
|
|
57
58
|
}, /*#__PURE__*/React.createElement("div", {
|
|
58
59
|
className: loaderParentClass
|