@councilbox/councilbox-ui 2.0.13 → 2.0.15
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/DropDown/DropDown.js +1 -1
- package/dist/components/Header/DesignHeader.stories.js +7 -0
- package/dist/components/Header/Header.js +13 -6
- package/dist/components/InputText/InputText.css +1 -2
- package/dist/components/InputText/InputText.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -2
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
49
49
|
|
|
50
50
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
51
51
|
|
|
52
|
-
var OUT_MARGIN =
|
|
52
|
+
var OUT_MARGIN = 10;
|
|
53
53
|
|
|
54
54
|
var getDefaultCoordinates = function getDefaultCoordinates(_ref) {
|
|
55
55
|
var transformOrigin = _ref.transformOrigin,
|
|
@@ -25,6 +25,13 @@ var DesignHeader = function DesignHeader() {
|
|
|
25
25
|
}, "Lorem ipsum dolor"), /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
26
26
|
key: "3"
|
|
27
27
|
}, "Lorem ipsum dolor"))),
|
|
28
|
+
buttonNotificationIconItems: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
29
|
+
key: "1"
|
|
30
|
+
}, "Lorem ipsum dolor"), /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
31
|
+
key: "2"
|
|
32
|
+
}, "Lorem ipsum dolor"), /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
33
|
+
key: "3"
|
|
34
|
+
}, "Lorem ipsum dolor"))),
|
|
28
35
|
tooltipThirdDropdownUser: /*#__PURE__*/_react.default.createElement("div", {
|
|
29
36
|
className: "flex flex-col items-end gap-2"
|
|
30
37
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -255,7 +255,8 @@ var Header = function Header(_ref) {
|
|
|
255
255
|
})
|
|
256
256
|
}, iconButtonDropdownLeftProps));
|
|
257
257
|
},
|
|
258
|
-
items: dropdownLeft
|
|
258
|
+
items: dropdownLeft,
|
|
259
|
+
closeOnOptionClick: true
|
|
259
260
|
}, dropdownLeftProps))), logoLeft ? logoLeft !== 'noLogo' && /*#__PURE__*/_react.default.createElement("div", {
|
|
260
261
|
className: prefixClass("cbx-header-first-container-app-logo".concat(showTypographyLogoLeft ? '-empty' : '')),
|
|
261
262
|
onClick: actionLogoLeft,
|
|
@@ -320,7 +321,8 @@ var Header = function Header(_ref) {
|
|
|
320
321
|
})
|
|
321
322
|
}, itemsDropDownMoreIconButtonProps));
|
|
322
323
|
},
|
|
323
|
-
items: itemsDropDownMore
|
|
324
|
+
items: itemsDropDownMore,
|
|
325
|
+
closeOnOptionClick: true
|
|
324
326
|
}, itemsDropDownMoreProps))), !!finish && /*#__PURE__*/_react.default.createElement("div", {
|
|
325
327
|
className: prefixClass('cbx-header-second-container-finish')
|
|
326
328
|
}, innerWidth < breakpoints.md ? /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
@@ -383,7 +385,7 @@ var Header = function Header(_ref) {
|
|
|
383
385
|
}, buttonFileManagerProps));
|
|
384
386
|
},
|
|
385
387
|
items: buttonFileManagerItems
|
|
386
|
-
}, buttonFileManagerDropDownProps))),
|
|
388
|
+
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems && /*#__PURE__*/_react.default.createElement("div", {
|
|
387
389
|
className: prefixClass('cbx-header-third-button-notification-container')
|
|
388
390
|
}, /*#__PURE__*/_react.default.createElement(_DropDown.default, _extends({
|
|
389
391
|
prefixClass: prefixClass,
|
|
@@ -401,7 +403,8 @@ var Header = function Header(_ref) {
|
|
|
401
403
|
badge: buttonNotificationBadge
|
|
402
404
|
}, buttonNotificationProps));
|
|
403
405
|
},
|
|
404
|
-
items: buttonNotificationIconItems
|
|
406
|
+
items: buttonNotificationIconItems,
|
|
407
|
+
closeOnOptionClick: true
|
|
405
408
|
}, buttonNotificationIconDropDownProps))), (logoRight || logoRightXS) && (!itemsDropDownUser || iconButtonRight) && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
|
|
406
409
|
id: 'cbx-header-third-logo-right',
|
|
407
410
|
className: prefixClass('cbx-header-third-logo-right'),
|
|
@@ -474,12 +477,16 @@ var Header = function Header(_ref) {
|
|
|
474
477
|
className: prefixClass('cbx-header-third-button-notification'),
|
|
475
478
|
onClick: onClickButtonNotification,
|
|
476
479
|
icon: buttonNotificationIcon || /*#__PURE__*/_react.default.createElement("i", {
|
|
477
|
-
className: "ri-notification-3-line"
|
|
480
|
+
className: "ri-notification-3-line",
|
|
481
|
+
style: {
|
|
482
|
+
fontSize: '1.5rem'
|
|
483
|
+
}
|
|
478
484
|
}),
|
|
479
485
|
badge: buttonNotificationBadge
|
|
480
486
|
}, buttonNotificationProps));
|
|
481
487
|
},
|
|
482
|
-
items: buttonNotificationIconItems
|
|
488
|
+
items: buttonNotificationIconItems,
|
|
489
|
+
closeOnOptionClick: true
|
|
483
490
|
}, buttonNotificationIconDropDownProps))), /*#__PURE__*/_react.default.createElement(_DropDown.default, _extends({
|
|
484
491
|
prefixClass: prefixClass,
|
|
485
492
|
color: "transparent",
|
|
@@ -59,8 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.cbx-input:focus~label.cbx-inputText-label,
|
|
62
|
-
.cbx-input.shrink~label.cbx-inputText-label
|
|
63
|
-
.cbx-input:not(:placeholder-shown)~.cbx-inputText-label {
|
|
62
|
+
.cbx-input.shrink~label.cbx-inputText-label {
|
|
64
63
|
top: -8px !important;
|
|
65
64
|
left: 13px !important;
|
|
66
65
|
transform: translate(3px, -2px) scale(0.75) !important;
|
|
@@ -118,7 +118,7 @@ var InputText = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
118
118
|
|
|
119
119
|
var textareaRef = _react.default.useRef(null);
|
|
120
120
|
|
|
121
|
-
var inputShrink = !!(shrink || props !== null && props !== void 0 && props.InputLabelProps && props !== null && props !== void 0 && (_props$InputLabelProp = props.InputLabelProps) !== null && _props$InputLabelProp !== void 0 && _props$InputLabelProp.shrink);
|
|
121
|
+
var inputShrink = !!(shrink || value || defaultValue || props !== null && props !== void 0 && props.InputLabelProps && props !== null && props !== void 0 && (_props$InputLabelProp = props.InputLabelProps) !== null && _props$InputLabelProp !== void 0 && _props$InputLabelProp.shrink);
|
|
122
122
|
|
|
123
123
|
var getVariant = function getVariant() {
|
|
124
124
|
var variantInput = 'outlined';
|
|
@@ -226,8 +226,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
226
226
|
placementTooltip: 'bottom',
|
|
227
227
|
tooltip: isEllipsisActive[index] ? item.text || item.label : '',
|
|
228
228
|
styles: _objectSpread(_objectSpread(_objectSpread({}, variant === 'scrollable' && {
|
|
229
|
-
minWidth: 'fit-content'
|
|
230
|
-
flex: 1
|
|
229
|
+
minWidth: 'fit-content'
|
|
231
230
|
}), {}, {
|
|
232
231
|
flexGrow: '1',
|
|
233
232
|
padding: '0.75rem 1rem',
|