@councilbox/councilbox-ui 0.3.5 → 0.3.6
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.
|
@@ -55,7 +55,8 @@ var Header = function Header(_ref) {
|
|
|
55
55
|
titleDropdownSearch = _ref.titleDropdownSearch,
|
|
56
56
|
onChangeSearch = _ref.onChangeSearch,
|
|
57
57
|
onClickIconButtonRight = _ref.onClickIconButtonRight,
|
|
58
|
-
colorNoLogo = _ref.colorNoLogo
|
|
58
|
+
colorNoLogo = _ref.colorNoLogo,
|
|
59
|
+
actionLogoLeft = _ref.actionLogoLeft;
|
|
59
60
|
|
|
60
61
|
var _useWindowSize = (0, _useWindowSize2.default)(),
|
|
61
62
|
innerWidth = _useWindowSize.innerWidth,
|
|
@@ -132,14 +133,22 @@ var Header = function Header(_ref) {
|
|
|
132
133
|
},
|
|
133
134
|
items: dropdownLeft
|
|
134
135
|
})), logoLeft ? logoLeft !== 'noLogo' && /*#__PURE__*/_react.default.createElement("div", {
|
|
135
|
-
className: "cbx-header-first-container-app-logo"
|
|
136
|
+
className: "cbx-header-first-container-app-logo",
|
|
137
|
+
onClick: actionLogoLeft,
|
|
138
|
+
style: {
|
|
139
|
+
cursor: actionLogoLeft ? 'pointer' : 'auto'
|
|
140
|
+
}
|
|
136
141
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
137
142
|
id: 'cbx-header-first-app-logo',
|
|
138
143
|
src: innerWidth < breakpoints.md ? logoLeftXS || logoLeft : logoLeft,
|
|
139
144
|
className: "App-logo",
|
|
140
145
|
alt: "logo"
|
|
141
146
|
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
142
|
-
className: "cbx-header-first-container-app-logo-empty"
|
|
147
|
+
className: "cbx-header-first-container-app-logo-empty",
|
|
148
|
+
onClick: actionLogoLeft,
|
|
149
|
+
style: {
|
|
150
|
+
cursor: actionLogoLeft ? 'pointer' : 'auto'
|
|
151
|
+
}
|
|
143
152
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
144
153
|
style: _objectSpread({}, colorNoLogo),
|
|
145
154
|
alt: "logo",
|
|
@@ -384,7 +393,8 @@ Header.propTypes = {
|
|
|
384
393
|
backgroundIconButtonRight: _propTypes.default.string,
|
|
385
394
|
itemsDropDownUser: _propTypes.default.node,
|
|
386
395
|
itemsDropDownSearch: _propTypes.default.node,
|
|
387
|
-
itemsDropDownMore: _propTypes.default.node
|
|
396
|
+
itemsDropDownMore: _propTypes.default.node,
|
|
397
|
+
actionLogoLeft: _propTypes.default.func
|
|
388
398
|
};
|
|
389
399
|
Header.defaultProps = {
|
|
390
400
|
back: '',
|
|
@@ -409,7 +419,8 @@ Header.defaultProps = {
|
|
|
409
419
|
itemsDropDownUser: '',
|
|
410
420
|
titleDropdownSearch: 'Reunión',
|
|
411
421
|
itemsDropDownSearch: '',
|
|
412
|
-
itemsDropDownMore: ''
|
|
422
|
+
itemsDropDownMore: '',
|
|
423
|
+
actionLogoLeft: undefined
|
|
413
424
|
};
|
|
414
425
|
var _default = Header;
|
|
415
426
|
exports.default = _default;
|