@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.
Files changed (248) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +12 -5
  4. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -29
  5. package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -29
  6. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -29
  7. package/es/AppContainer/AppContainer.js +10 -9
  8. package/es/AppContainer/AppContainer.module.css +2 -2
  9. package/es/Avatar/Avatar.js +4 -5
  10. package/es/Avatar/Avatar.module.css +22 -52
  11. package/es/AvatarTeam/AvatarTeam.js +7 -7
  12. package/es/AvatarTeam/AvatarTeam.module.css +74 -66
  13. package/es/Button/Button.js +5 -6
  14. package/es/Button/css/Button.module.css +100 -162
  15. package/es/Buttongroup/Buttongroup.module.css +17 -52
  16. package/es/CheckBox/CheckBox.js +18 -8
  17. package/es/CheckBox/CheckBox.module.css +60 -37
  18. package/es/CheckBox/props/propTypes.js +1 -0
  19. package/es/DateTime/DateTime.module.css +57 -86
  20. package/es/DateTime/DateWidget.module.css +7 -11
  21. package/es/DateTime/YearView.module.css +21 -34
  22. package/es/DropBox/DropBox.js +10 -11
  23. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  24. package/es/DropBox/css/DropBox.module.css +6 -24
  25. package/es/DropDown/DropDown.js +2 -1
  26. package/es/DropDown/DropDown.module.css +2 -2
  27. package/es/DropDown/DropDownHeading.module.css +13 -19
  28. package/es/DropDown/DropDownItem.module.css +22 -43
  29. package/es/DropDown/DropDownSearch.module.css +3 -3
  30. package/es/DropDown/DropDownSeparator.module.css +2 -2
  31. package/es/Heading/Heading.module.css +2 -2
  32. package/es/Label/Label.module.css +23 -12
  33. package/es/Label/LabelColors.module.css +7 -1
  34. package/es/Layout/Layout.module.css +15 -15
  35. package/es/ListItem/ListContainer.js +6 -5
  36. package/es/ListItem/ListItem.js +4 -5
  37. package/es/ListItem/ListItem.module.css +87 -90
  38. package/es/ListItem/ListItemWithAvatar.js +4 -5
  39. package/es/ListItem/ListItemWithCheckBox.js +4 -5
  40. package/es/ListItem/ListItemWithIcon.js +4 -5
  41. package/es/ListItem/ListItemWithRadio.js +4 -5
  42. package/es/Modal/Modal.js +4 -5
  43. package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
  44. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  45. package/es/MultiSelect/MultiSelect.module.css +69 -55
  46. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
  47. package/es/MultiSelect/SelectedOptions.js +6 -8
  48. package/es/MultiSelect/SelectedOptions.module.css +5 -11
  49. package/es/MultiSelect/Suggestions.js +6 -8
  50. package/es/PopOver/PopOver.module.css +4 -4
  51. package/es/Popup/Popup.js +3 -4
  52. package/es/Radio/Radio.js +25 -6
  53. package/es/Radio/Radio.module.css +40 -23
  54. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  55. package/es/Radio/props/defaultProps.js +1 -0
  56. package/es/Radio/props/propTypes.js +7 -0
  57. package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  58. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  59. package/es/Ribbon/Ribbon.module.css +64 -147
  60. package/es/RippleEffect/RippleEffect.module.css +27 -9
  61. package/es/Select/Select.js +4 -5
  62. package/es/Select/Select.module.css +22 -33
  63. package/es/Stencils/Stencils.module.css +14 -32
  64. package/es/Switch/Switch.js +8 -8
  65. package/es/Switch/Switch.module.css +35 -32
  66. package/es/Tab/Tab.js +4 -5
  67. package/es/Tab/Tab.module.css +39 -28
  68. package/es/Tab/TabContentWrapper.js +4 -5
  69. package/es/Tab/TabWrapper.js +2 -4
  70. package/es/Tab/Tabs.js +16 -16
  71. package/es/Tab/Tabs.module.css +29 -51
  72. package/es/Tag/Tag.module.css +91 -66
  73. package/es/TextBox/TextBox.js +5 -5
  74. package/es/TextBox/TextBox.module.css +20 -36
  75. package/es/TextBoxIcon/TextBoxIcon.js +2 -4
  76. package/es/TextBoxIcon/TextBoxIcon.module.css +6 -18
  77. package/es/Textarea/Textarea.js +4 -6
  78. package/es/Textarea/Textarea.module.css +60 -36
  79. package/es/Tooltip/Tooltip.module.css +13 -12
  80. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  81. package/es/common/animation.module.css +29 -227
  82. package/es/common/avatarsizes.module.css +16 -16
  83. package/es/common/basicReset.module.css +15 -5
  84. package/es/common/common.module.css +36 -82
  85. package/es/common/customscroll.module.css +32 -29
  86. package/es/common/transition.module.css +10 -50
  87. package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
  88. package/es/semantic/Button/semanticButton.module.css +3 -3
  89. package/es/v1/Animation/Animation.js +1 -1
  90. package/es/v1/AppContainer/AppContainer.js +10 -9
  91. package/es/v1/Avatar/Avatar.js +4 -5
  92. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  93. package/es/v1/Button/Button.js +5 -6
  94. package/es/v1/Card/Card.js +1 -1
  95. package/es/v1/CheckBox/CheckBox.js +15 -9
  96. package/es/v1/CheckBox/props/propTypes.js +1 -0
  97. package/es/v1/DropBox/DropBox.js +10 -11
  98. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  99. package/es/v1/DropDown/DropDown.js +2 -1
  100. package/es/v1/ListItem/ListContainer.js +7 -6
  101. package/es/v1/ListItem/ListItem.js +4 -5
  102. package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
  103. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
  104. package/es/v1/ListItem/ListItemWithIcon.js +4 -5
  105. package/es/v1/ListItem/ListItemWithRadio.js +4 -5
  106. package/es/v1/Modal/Modal.js +4 -5
  107. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  108. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -10
  109. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -6
  110. package/es/v1/MultiSelect/SelectedOptions.js +6 -8
  111. package/es/v1/MultiSelect/Suggestions.js +6 -8
  112. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  113. package/es/v1/Popup/Popup.js +3 -4
  114. package/es/v1/Radio/Radio.js +21 -6
  115. package/es/v1/Radio/props/defaultProps.js +1 -0
  116. package/es/v1/Radio/props/propTypes.js +7 -0
  117. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +3 -5
  118. package/es/v1/Select/GroupSelect.js +1 -1
  119. package/es/v1/Select/Select.js +5 -6
  120. package/es/v1/Select/SelectWithAvatar.js +5 -7
  121. package/es/v1/Select/SelectWithIcon.js +1 -1
  122. package/es/v1/Select/props/defaultProps.js +1 -1
  123. package/es/v1/Select/props/propTypes.js +1 -3
  124. package/es/v1/Switch/Switch.js +8 -8
  125. package/es/v1/Tab/Tab.js +4 -5
  126. package/es/v1/Tab/TabContentWrapper.js +4 -5
  127. package/es/v1/Tab/TabWrapper.js +2 -4
  128. package/es/v1/Tab/Tabs.js +18 -18
  129. package/es/v1/Tab/v1Tab.module.css +39 -28
  130. package/es/v1/Tab/v1Tabs.module.css +29 -51
  131. package/es/v1/TextBox/TextBox.js +5 -5
  132. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
  133. package/es/v1/Textarea/Textarea.js +4 -6
  134. package/es/v1/Tooltip/Tooltip.js +1 -1
  135. package/es/v1/Typography/css/Typography.module.css +33 -39
  136. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  137. package/lib/AppContainer/AppContainer.module.css +2 -2
  138. package/lib/Avatar/Avatar.module.css +22 -52
  139. package/lib/AvatarTeam/AvatarTeam.module.css +74 -66
  140. package/lib/Button/css/Button.module.css +100 -162
  141. package/lib/Buttongroup/Buttongroup.module.css +17 -52
  142. package/lib/CheckBox/CheckBox.js +34 -24
  143. package/lib/CheckBox/CheckBox.module.css +60 -37
  144. package/lib/CheckBox/props/propTypes.js +1 -0
  145. package/lib/DateTime/DateTime.module.css +57 -86
  146. package/lib/DateTime/DateWidget.module.css +7 -11
  147. package/lib/DateTime/YearView.module.css +21 -34
  148. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  149. package/lib/DropBox/css/DropBox.module.css +6 -24
  150. package/lib/DropDown/DropDown.module.css +2 -2
  151. package/lib/DropDown/DropDownHeading.module.css +13 -19
  152. package/lib/DropDown/DropDownItem.module.css +22 -43
  153. package/lib/DropDown/DropDownSearch.module.css +3 -3
  154. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  155. package/lib/Heading/Heading.module.css +2 -2
  156. package/lib/Label/Label.module.css +23 -12
  157. package/lib/Label/LabelColors.module.css +7 -1
  158. package/lib/Layout/Layout.module.css +15 -15
  159. package/lib/ListItem/ListItem.module.css +87 -90
  160. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  161. package/lib/MultiSelect/MultiSelect.module.css +69 -55
  162. package/lib/MultiSelect/SelectedOptions.module.css +5 -11
  163. package/lib/PopOver/PopOver.module.css +4 -4
  164. package/lib/Radio/Radio.js +45 -26
  165. package/lib/Radio/Radio.module.css +40 -23
  166. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  167. package/lib/Radio/props/defaultProps.js +1 -0
  168. package/lib/Radio/props/propTypes.js +7 -0
  169. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  170. package/lib/Ribbon/Ribbon.module.css +64 -147
  171. package/lib/RippleEffect/RippleEffect.module.css +27 -9
  172. package/lib/Select/Select.module.css +22 -33
  173. package/lib/Stencils/Stencils.module.css +14 -32
  174. package/lib/Switch/Switch.module.css +35 -32
  175. package/lib/Tab/Tab.module.css +39 -28
  176. package/lib/Tab/Tabs.module.css +29 -51
  177. package/lib/Tag/Tag.module.css +91 -66
  178. package/lib/TextBox/TextBox.module.css +20 -36
  179. package/lib/TextBoxIcon/TextBoxIcon.module.css +6 -18
  180. package/lib/Textarea/Textarea.module.css +60 -36
  181. package/lib/Tooltip/Tooltip.module.css +13 -12
  182. package/lib/common/animation.module.css +29 -227
  183. package/lib/common/avatarsizes.module.css +16 -16
  184. package/lib/common/basicReset.module.css +15 -5
  185. package/lib/common/common.module.css +36 -82
  186. package/lib/common/customscroll.module.css +32 -29
  187. package/lib/common/transition.module.css +10 -50
  188. package/lib/semantic/Button/semanticButton.module.css +3 -3
  189. package/lib/v1/Animation/Animation.js +1 -1
  190. package/lib/v1/Card/Card.js +1 -1
  191. package/lib/v1/CheckBox/CheckBox.js +7 -1
  192. package/lib/v1/CheckBox/props/propTypes.js +1 -0
  193. package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
  194. package/lib/v1/ListItem/ListContainer.js +1 -1
  195. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  196. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
  197. package/lib/v1/MultiSelect/props/defaultProps.js +1 -1
  198. package/lib/v1/Radio/Radio.js +22 -7
  199. package/lib/v1/Radio/props/defaultProps.js +1 -0
  200. package/lib/v1/Radio/props/propTypes.js +7 -0
  201. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  202. package/lib/v1/Select/GroupSelect.js +1 -1
  203. package/lib/v1/Select/Select.js +1 -1
  204. package/lib/v1/Select/SelectWithAvatar.js +4 -6
  205. package/lib/v1/Select/SelectWithIcon.js +1 -1
  206. package/lib/v1/Select/props/defaultProps.js +1 -1
  207. package/lib/v1/Select/props/propTypes.js +1 -3
  208. package/lib/v1/Tab/Tabs.js +2 -2
  209. package/lib/v1/Tab/v1Tab.module.css +39 -28
  210. package/lib/v1/Tab/v1Tabs.module.css +29 -51
  211. package/lib/v1/Tooltip/Tooltip.js +1 -1
  212. package/lib/v1/Typography/css/Typography.module.css +33 -39
  213. package/package.json +10 -10
  214. package/es/v1/Provider/AvatarSize.js +0 -13
  215. package/es/v1/Provider/Config.js +0 -18
  216. package/es/v1/Provider/CssProvider.js +0 -16
  217. package/es/v1/Provider/IdProvider.js +0 -66
  218. package/es/v1/Provider/LibraryContext.js +0 -37
  219. package/es/v1/Provider/LibraryContextInit.js +0 -3
  220. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
  221. package/es/v1/Provider/ZindexProvider.js +0 -57
  222. package/es/v1/Provider/index.js +0 -4
  223. package/es/v1/Responsive/CustomResponsive.js +0 -195
  224. package/es/v1/Responsive/RefWrapper.js +0 -39
  225. package/es/v1/Responsive/ResizeComponent.js +0 -197
  226. package/es/v1/Responsive/ResizeObserver.js +0 -140
  227. package/es/v1/Responsive/Responsive.js +0 -194
  228. package/es/v1/Responsive/index.js +0 -9
  229. package/es/v1/Responsive/props/defaultProps.js +0 -13
  230. package/es/v1/Responsive/props/propTypes.js +0 -25
  231. package/lib/v1/Provider/AvatarSize.js +0 -24
  232. package/lib/v1/Provider/Config.js +0 -27
  233. package/lib/v1/Provider/CssProvider.js +0 -27
  234. package/lib/v1/Provider/IdProvider.js +0 -79
  235. package/lib/v1/Provider/LibraryContext.js +0 -76
  236. package/lib/v1/Provider/LibraryContextInit.js +0 -15
  237. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
  238. package/lib/v1/Provider/ZindexProvider.js +0 -69
  239. package/lib/v1/Provider/index.js +0 -81
  240. package/lib/v1/Responsive/CustomResponsive.js +0 -242
  241. package/lib/v1/Responsive/RefWrapper.js +0 -57
  242. package/lib/v1/Responsive/ResizeComponent.js +0 -268
  243. package/lib/v1/Responsive/ResizeObserver.js +0 -168
  244. package/lib/v1/Responsive/Responsive.js +0 -274
  245. package/lib/v1/Responsive/index.js +0 -55
  246. package/lib/v1/Responsive/props/defaultProps.js +0 -23
  247. package/lib/v1/Responsive/props/propTypes.js +0 -39
  248. package/result.json +0 -1
@@ -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", _extends({
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
- }, AvatarProps), showInitial && !showAlternateAvatar && /*#__PURE__*/React.createElement("span", {
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(--zdt_avatar_default_text);
4
- --avatar_font_size: var(--zd_font_size14);
5
- --avatar_bg_color: var(--zdt_avatar_default_bg);
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, .circle {
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
- width: 100% ;
85
- height: 100% ;
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: var(--zd_font_size8);
126
+ --avatar_font_size: 8px;
157
127
  }
158
128
 
159
129
  .small {
160
- --avatar_font_size: var(--zd_font_size9);
130
+ --avatar_font_size: 9px;
161
131
  }
162
132
 
163
133
  .xsmall {
164
- --avatar_font_size: var(--zd_font_size12);
134
+ --avatar_font_size: 12px;
165
135
  }
166
136
 
167
137
  .medium {
168
- --avatar_font_size: var(--zd_font_size14);
138
+ --avatar_font_size: 14px;
169
139
  }
170
140
 
171
141
  .xmedium {
172
- --avatar_font_size: var(--zd_font_size14);
142
+ --avatar_font_size: 14px;
173
143
  }
174
144
 
175
145
  .large {
176
- --avatar_font_size: var(--zd_font_size18);
146
+ --avatar_font_size: 18px;
177
147
  }
178
148
 
179
149
  .xlarge {
180
- --avatar_font_size: var(--zd_font_size28);
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", _extends({
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
- }, AvatarTeamProps), /*#__PURE__*/React.createElement(Avatar, _extends({
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
- }, AvatarProps)), /*#__PURE__*/React.createElement("span", {
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(--zdt_avatarteam_default_bg);
10
- --avatarteam_width: var(--zd_size5);
11
- --avatarteam_height: var(--zd_size5);
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: var(--zd_size1);
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
- [dir=ltr] .team {
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(--zdt_avatarteam_secondary_bg);
54
+ --avatarteam_bg_color: var(--zdt_base_bg);
59
55
  }
56
+
60
57
  .borderOnHover:hover .nofill,
61
58
  .borderOnActive .nofill {
62
- --avatarteam_border_color : var(--zdt_avatarteam_nofill_hover_border);
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
- [dir=rtl] .team:after, [dir=rtl] .team:before {
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: var(--zd_size3);
100
- --avatarteam_width: var(--zd_size3);
90
+ --avatarteam_height: 3px;
91
+ --avatarteam_width: 3px;
101
92
  }
93
+
102
94
  .mediumteam,
103
95
  .xmediumteam {
104
- --avatarteam_height: var(--zd_size5);
105
- --avatarteam_width: var(--zd_size5);
96
+ --avatarteam_height: 5px;
97
+ --avatarteam_width: 5px;
106
98
  }
99
+
107
100
  .largeteam,
108
101
  .xlargeteam {
109
- --avatarteam_height: var(--zd_size7);
110
- --avatarteam_width: var(--zd_size7);
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: var(--zd_size13);
113
+ --avatarteam_bottom_top: 13px;
120
114
  }
115
+
121
116
  .xxsmallteam:after {
122
- --avatarteam_bottom_left: calc( var(--zd_size8) * -1 );
117
+ --avatarteam_bottom_left: -8px;
123
118
  }
119
+
124
120
  .xxsmallteam:before {
125
- --avatarteam_bottom_right: calc( var(--zd_size8) * -1 );
121
+ --avatarteam_bottom_right: -8px;
126
122
  }
127
123
 
128
124
 
129
125
  .smallteam::after,
130
126
  .smallteam:before {
131
- --avatarteam_bottom_top: var(--zd_size17);
127
+ --avatarteam_bottom_top: 17px;
132
128
  }
129
+
133
130
  .smallteam:after {
134
- --avatarteam_bottom_left: calc( var(--zd_size8) * -1 );
131
+ --avatarteam_bottom_left: -8px;
135
132
  }
133
+
136
134
  .smallteam:before {
137
- --avatarteam_bottom_right: calc( var(--zd_size8) * -1 );
135
+ --avatarteam_bottom_right: -8px;
138
136
  }
139
137
 
140
138
  .xsmallteam::after,
141
139
  .xsmallteam:before {
142
- --avatarteam_bottom_top: var(--zd_size24);
140
+ --avatarteam_bottom_top: 24px;
143
141
  }
142
+
144
143
  .xsmallteam:after {
145
- --avatarteam_bottom_left: calc( var(--zd_size10) * -1 );
144
+ --avatarteam_bottom_left: -10px;
146
145
  }
146
+
147
147
  .xsmallteam:before {
148
- --avatarteam_bottom_right: calc( var(--zd_size10) * -1 );
148
+ --avatarteam_bottom_right: -10px;
149
149
  }
150
150
 
151
151
  .mediumteam::after,
152
152
  .mediumteam:before {
153
- --avatarteam_bottom_top: var(--zd_size26);
153
+ --avatarteam_bottom_top: 26px;
154
154
  }
155
+
155
156
  .mediumteam:after {
156
- --avatarteam_bottom_left: calc( var(--zd_size13) * -1 );
157
+ --avatarteam_bottom_left: -13px;
157
158
  }
159
+
158
160
  .mediumteam:before {
159
- --avatarteam_bottom_right: calc( var(--zd_size13) * -1 );
161
+ --avatarteam_bottom_right: -13px;
160
162
  }
161
163
 
162
164
  .xmediumteam::after,
163
165
  .xmediumteam:before {
164
- --avatarteam_bottom_top: var(--zd_size30);
166
+ --avatarteam_bottom_top: 30px;
165
167
  }
168
+
166
169
  .xmediumteam:after {
167
- --avatarteam_bottom_left: calc( var(--zd_size16) * -1 );
170
+ --avatarteam_bottom_left: -16px;
168
171
  }
172
+
169
173
  .xmediumteam:before {
170
- --avatarteam_bottom_right: calc( var(--zd_size16) * -1 );
174
+ --avatarteam_bottom_right: -16px;
171
175
  }
172
176
 
173
177
  .largeteam::after,
174
178
  .largeteam:before {
175
- --avatarteam_bottom_top: var(--zd_size46);
179
+ --avatarteam_bottom_top: 46px;
176
180
  }
181
+
177
182
  .largeteam:after {
178
- --avatarteam_bottom_left: calc( var(--zd_size24) * -1 );
183
+ --avatarteam_bottom_left: -24px;
179
184
  }
185
+
180
186
  .largeteam:before {
181
- --avatarteam_bottom_right: calc( var(--zd_size24) * -1 );
187
+ --avatarteam_bottom_right: -24px;
182
188
  }
183
189
 
184
190
  .xlargeteam::after,
185
191
  .xlargeteam:before {
186
- --avatarteam_bottom_top: var(--zd_size65);
192
+ --avatarteam_bottom_top: 65px;
187
193
  }
194
+
188
195
  .xlargeteam:after {
189
- --avatarteam_bottom_left: calc( var(--zd_size29) * -1 );
196
+ --avatarteam_bottom_left: -29px;
190
197
  }
198
+
191
199
  .xlargeteam:before {
192
- --avatarteam_bottom_right: calc( var(--zd_size29) * -1 );
193
- }
200
+ --avatarteam_bottom_right: -29px;
201
+ }
@@ -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", _extends({
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
- }, customProps, a11y, {
51
+ "data-selector-id": dataSelectorId,
52
+ ...customProps,
53
+ ...a11y,
55
54
  id: id
56
- }), children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
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