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