@councilbox/councilbox-ui 0.6.25 → 0.6.27
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/dist/components/1.Introduction.stories.mdx +1 -1
- package/dist/components/2.Changelog.stories.mdx +9 -0
- package/dist/components/Avatar/Avatar.css +4 -0
- package/dist/components/Avatar/Avatar.js +8 -3
- package/dist/components/Avatar/DesignAvatar.stories.js +6 -1
- package/dist/components/Header/Header.js +4 -1
- package/package.json +1 -1
|
@@ -24,6 +24,15 @@ a.noStyles:hover{
|
|
|
24
24
|
<h2>v0.5.4</h2>
|
|
25
25
|
<div>Fix zIndex label InputText y SelectInput</div>
|
|
26
26
|
</div>
|
|
27
|
+
<h2>v0.6.27</h2>
|
|
28
|
+
<div>Add Icon en el Avatar</div>
|
|
29
|
+
|
|
30
|
+
<h2>v0.6.26</h2>
|
|
31
|
+
<div>fix ellipsis companyName en Header</div>
|
|
32
|
+
|
|
33
|
+
<h2>v0.6.25</h2>
|
|
34
|
+
<div>fix Header titulo del centro ellipsis</div>
|
|
35
|
+
|
|
27
36
|
<h2>v0.6.24</h2>
|
|
28
37
|
<div>fixeo de parpadeo en el Header</div>
|
|
29
38
|
<div>El DropDown la prop Component permite pasar componente react</div>
|
|
@@ -17,7 +17,7 @@ var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
|
17
17
|
|
|
18
18
|
require("./Avatar.css");
|
|
19
19
|
|
|
20
|
-
var _excluded = ["backgroundColor", "text", "src", "label", "colorText", "variantText", "fontWeightText", "textAlignText", "variantLabel", "colorLabel", "fontWeightLabel", "textAlignLabel", "sizeAvatar", "sizeText"];
|
|
20
|
+
var _excluded = ["backgroundColor", "text", "src", "label", "colorText", "variantText", "fontWeightText", "textAlignText", "variantLabel", "colorLabel", "fontWeightLabel", "textAlignLabel", "sizeAvatar", "sizeText", "icon"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
@@ -69,6 +69,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
69
69
|
textAlignLabel = _ref.textAlignLabel,
|
|
70
70
|
sizeAvatar = _ref.sizeAvatar,
|
|
71
71
|
sizeText = _ref.sizeText,
|
|
72
|
+
icon = _ref.icon,
|
|
72
73
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
73
74
|
|
|
74
75
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -84,7 +85,9 @@ var Avatar = function Avatar(_ref) {
|
|
|
84
85
|
width: 'var(--spacing40)',
|
|
85
86
|
height: 'var(--spacing40)'
|
|
86
87
|
}, stylesAvatar[sizeAvatar]))
|
|
87
|
-
}, props), /*#__PURE__*/_react.default.createElement(
|
|
88
|
+
}, props), icon ? /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
+
className: "cbx-avatar-icon"
|
|
90
|
+
}, icon) : /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
88
91
|
variant: variantText || (!variantText && !!label ? 'XS' : 'M'),
|
|
89
92
|
color: colorText || 'var(--gray4)',
|
|
90
93
|
fontWeight: fontWeightText,
|
|
@@ -105,7 +108,8 @@ Avatar.displayName = "Avatar";
|
|
|
105
108
|
Avatar.propTypes = {
|
|
106
109
|
backgroundColor: _propTypes.default.string,
|
|
107
110
|
text: _propTypes.default.string,
|
|
108
|
-
src: _propTypes.default.
|
|
111
|
+
src: _propTypes.default.any,
|
|
112
|
+
icon: _propTypes.default.any,
|
|
109
113
|
label: _propTypes.default.string,
|
|
110
114
|
colorText: _propTypes.default.string,
|
|
111
115
|
variantText: _propTypes.default.string,
|
|
@@ -122,6 +126,7 @@ Avatar.defaultProps = {
|
|
|
122
126
|
backgroundColor: '',
|
|
123
127
|
text: 'MW',
|
|
124
128
|
src: null,
|
|
129
|
+
icon: null,
|
|
125
130
|
label: '',
|
|
126
131
|
colorText: '',
|
|
127
132
|
variantText: '',
|
|
@@ -28,13 +28,18 @@ var DesignAvatar = function DesignAvatar() {
|
|
|
28
28
|
marginRight: '3em'
|
|
29
29
|
}
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement(_Avatar.default, {
|
|
31
|
-
|
|
31
|
+
backgroundColor: 'var(--primary)',
|
|
32
|
+
icon: /*#__PURE__*/_react.default.createElement("i", {
|
|
32
33
|
className: "ri-user-3-line"
|
|
33
34
|
})
|
|
34
35
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
35
36
|
style: {
|
|
36
37
|
marginRight: '3em'
|
|
37
38
|
}
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_Avatar.default, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
40
|
+
style: {
|
|
41
|
+
marginRight: '3em'
|
|
42
|
+
}
|
|
38
43
|
}, /*#__PURE__*/_react.default.createElement(_Avatar.default, {
|
|
39
44
|
src: _imgMan.default
|
|
40
45
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -246,7 +246,10 @@ var Header = function Header(_ref) {
|
|
|
246
246
|
styles: {
|
|
247
247
|
fontSize: '1rem',
|
|
248
248
|
lineHeight: '1.5rem',
|
|
249
|
-
minWidth: '3.438rem'
|
|
249
|
+
minWidth: '3.438rem',
|
|
250
|
+
whiteSpace: 'nowrap',
|
|
251
|
+
overflow: 'hidden',
|
|
252
|
+
textOverflow: 'ellipsis'
|
|
250
253
|
}
|
|
251
254
|
}), companyName)))), sectionCenter === true && /*#__PURE__*/_react.default.createElement("div", {
|
|
252
255
|
className: "cbx-header-second-block"
|