@councilbox/councilbox-ui 0.4.25 → 0.4.26
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.
|
@@ -75,7 +75,8 @@ var Header = function Header(_ref) {
|
|
|
75
75
|
sectionCenterDropDownProps = _ref.sectionCenterDropDownProps,
|
|
76
76
|
sectionCenterInputBaseProps = _ref.sectionCenterInputBaseProps,
|
|
77
77
|
iconButtonRightProps = _ref.iconButtonRightProps,
|
|
78
|
-
itemsDropDownUserProps = _ref.itemsDropDownUserProps
|
|
78
|
+
itemsDropDownUserProps = _ref.itemsDropDownUserProps,
|
|
79
|
+
demoMode = _ref.demoMode;
|
|
79
80
|
|
|
80
81
|
var _useWindowSize = (0, _useWindowSize2.default)(),
|
|
81
82
|
innerWidth = _useWindowSize.innerWidth,
|
|
@@ -302,7 +303,19 @@ var Header = function Header(_ref) {
|
|
|
302
303
|
minWidth: getWidthBlockThird(),
|
|
303
304
|
marginLeft: innerWidth < breakpoints.md ? 'var(--spacing8)' : 'var(--spacing24)'
|
|
304
305
|
}
|
|
305
|
-
},
|
|
306
|
+
}, demoMode && /*#__PURE__*/_react.default.createElement("div", {
|
|
307
|
+
style: {
|
|
308
|
+
alignSelf: 'top',
|
|
309
|
+
textAlign: 'center',
|
|
310
|
+
backgroundColor: 'var(--accent25)',
|
|
311
|
+
color: 'var(--primary)',
|
|
312
|
+
fontWeight: '700',
|
|
313
|
+
fontSize: '0.8rem',
|
|
314
|
+
position: 'relative',
|
|
315
|
+
bottom: '22px',
|
|
316
|
+
width: '3.93rem'
|
|
317
|
+
}
|
|
318
|
+
}, "DEMO"), logoAndDropdownSeparate ? /*#__PURE__*/_react.default.createElement("div", {
|
|
306
319
|
className: "cbx-header-third-container"
|
|
307
320
|
}, (logoRight || logoRightXS) && (!itemsDropDownUser || iconButtonRight) && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
|
|
308
321
|
id: 'cbx-header-third-logo-right',
|
|
@@ -419,7 +432,8 @@ Header.propTypes = {
|
|
|
419
432
|
dropdownLeftIcon: _propTypes.default.node,
|
|
420
433
|
finishButtonVariant: _propTypes.default.node,
|
|
421
434
|
finishButtonIcon: _propTypes.default.node,
|
|
422
|
-
actionLogoLeft: _propTypes.default.func
|
|
435
|
+
actionLogoLeft: _propTypes.default.func,
|
|
436
|
+
demoMode: _propTypes.default.bool
|
|
423
437
|
};
|
|
424
438
|
Header.defaultProps = {
|
|
425
439
|
back: '',
|
|
@@ -448,7 +462,8 @@ Header.defaultProps = {
|
|
|
448
462
|
actionLogoLeft: undefined,
|
|
449
463
|
dropdownLeftIcon: '',
|
|
450
464
|
finishButtonVariant: '',
|
|
451
|
-
finishButtonIcon: ''
|
|
465
|
+
finishButtonIcon: '',
|
|
466
|
+
demoMode: false
|
|
452
467
|
};
|
|
453
468
|
var _default = Header;
|
|
454
469
|
exports.default = _default;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
position: absolute;
|
|
8
8
|
top: -9999px;
|
|
9
9
|
clip: rect(0, 0, 0, 0);
|
|
10
|
-
visibility: hidden
|
|
10
|
+
visibility: hidden;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.rating:not(:checked)>label {
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.rating-disabled:not(:checked)>input {
|
|
81
|
+
visibility: hidden;
|
|
81
82
|
position: absolute;
|
|
82
83
|
top: -9999px;
|
|
83
84
|
clip: rect(0, 0, 0, 0);
|