@councilbox/councilbox-ui 2.0.18 → 2.0.20
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 +7 -0
- package/dist/components/DragDrop/DragDrop.js +7 -3
- package/dist/components/Header/DesignHeader.stories.js +4 -2
- package/dist/components/Header/Header.js +27 -4
- package/dist/components/RadioButton/Radio.js +1 -1
- package/dist/components/Stars/Stars.js +9 -8
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ a.noStyles:hover{
|
|
|
16
16
|
`}</style>
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
# Librería de componentes ui-councilbox NEW v2.0.
|
|
19
|
+
# Librería de componentes ui-councilbox NEW v2.0.19 🎉
|
|
20
20
|
|
|
21
21
|
<h2>Componentes:</h2>
|
|
22
22
|
<div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
|
|
@@ -25,6 +25,13 @@ a.noStyles:hover{
|
|
|
25
25
|
<div>Fix zIndex label InputText y SelectInput</div>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
+
<h2>v2.0.19</h2>
|
|
29
|
+
<div>Fix buttonNotificationIconItems en el Header</div>
|
|
30
|
+
<div>Fix error en Stars</div>
|
|
31
|
+
<div>Fix position error Stars</div>
|
|
32
|
+
<div>Add acceptedFileTypes en DragDrop</div>
|
|
33
|
+
<div>Fix error Radio</div>
|
|
34
|
+
|
|
28
35
|
<h2>v2.0.18</h2>
|
|
29
36
|
<div>Remove background Checkbox</div>
|
|
30
37
|
<div>Fix click en los MenuItem</div>
|
|
@@ -23,7 +23,7 @@ var _Alert = _interopRequireDefault(require("../Alert/Alert"));
|
|
|
23
23
|
|
|
24
24
|
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
25
25
|
|
|
26
|
-
var _excluded = ["text", "id", "icon", "iconButtonProps", "alertProps", "actionButtons", "inputProps", "sx", "style"];
|
|
26
|
+
var _excluded = ["text", "id", "icon", "iconButtonProps", "alertProps", "actionButtons", "inputProps", "sx", "style", "acceptedFileTypes"];
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
29
|
|
|
@@ -49,15 +49,19 @@ var DragDrop = function DragDrop(_ref) {
|
|
|
49
49
|
inputProps = _ref.inputProps,
|
|
50
50
|
sx = _ref.sx,
|
|
51
51
|
style = _ref.style,
|
|
52
|
+
_ref$acceptedFileType = _ref.acceptedFileTypes,
|
|
53
|
+
acceptedFileTypes = _ref$acceptedFileType === void 0 ? false : _ref$acceptedFileType,
|
|
52
54
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
53
55
|
|
|
54
56
|
var _useDynamicStyles = (0, _useDynamicStyles2.default)(sx),
|
|
55
57
|
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
56
58
|
prefixClass = _useDynamicStyles.prefixClass;
|
|
57
59
|
|
|
58
|
-
var _useDropzone = (0, _reactDropzone.useDropzone)({
|
|
60
|
+
var _useDropzone = (0, _reactDropzone.useDropzone)(_objectSpread({
|
|
59
61
|
multiple: true
|
|
60
|
-
}
|
|
62
|
+
}, acceptedFileTypes ? {
|
|
63
|
+
accept: acceptedFileTypes
|
|
64
|
+
} : {})),
|
|
61
65
|
getRootProps = _useDropzone.getRootProps,
|
|
62
66
|
getInputProps = _useDropzone.getInputProps;
|
|
63
67
|
|
|
@@ -31,7 +31,8 @@ var DesignHeader = function DesignHeader() {
|
|
|
31
31
|
key: "2"
|
|
32
32
|
}, "Lorem ipsum dolor"), /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
33
33
|
key: "3"
|
|
34
|
-
}, "Lorem ipsum dolor")))
|
|
34
|
+
}, "Lorem ipsum dolor"))) // onClickButtonNotification={() => console.log('click')}
|
|
35
|
+
,
|
|
35
36
|
tooltipThirdDropdownUser: /*#__PURE__*/_react.default.createElement("div", {
|
|
36
37
|
className: "flex flex-col items-end gap-2"
|
|
37
38
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -43,7 +44,8 @@ var DesignHeader = function DesignHeader() {
|
|
|
43
44
|
fontSize: '0.7rem'
|
|
44
45
|
}
|
|
45
46
|
}, "cosas")),
|
|
46
|
-
logoAndDropdownSeparate: false
|
|
47
|
+
logoAndDropdownSeparate: true // logoAndDropdownSeparate={false}
|
|
48
|
+
,
|
|
47
49
|
lock: false,
|
|
48
50
|
sectionCenter: true
|
|
49
51
|
});
|
|
@@ -387,7 +387,7 @@ var Header = function Header(_ref) {
|
|
|
387
387
|
}, buttonFileManagerProps));
|
|
388
388
|
},
|
|
389
389
|
items: buttonFileManagerItems
|
|
390
|
-
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems
|
|
390
|
+
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems ? /*#__PURE__*/_react.default.createElement("div", {
|
|
391
391
|
className: prefixClass('cbx-header-third-button-notification-container')
|
|
392
392
|
}, /*#__PURE__*/_react.default.createElement(_DropDown.default, _extends({
|
|
393
393
|
prefixClass: prefixClass,
|
|
@@ -407,7 +407,17 @@ var Header = function Header(_ref) {
|
|
|
407
407
|
},
|
|
408
408
|
items: buttonNotificationIconItems,
|
|
409
409
|
closeOnOptionClick: true
|
|
410
|
-
}, buttonNotificationIconDropDownProps)))
|
|
410
|
+
}, buttonNotificationIconDropDownProps))) : onClickButtonNotification && /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
411
|
+
prefixClass: prefixClass,
|
|
412
|
+
"aria-label": "",
|
|
413
|
+
id: 'cbx-header-third-button-notification',
|
|
414
|
+
className: prefixClass('cbx-header-third-button-notification'),
|
|
415
|
+
onClick: onClickButtonNotification,
|
|
416
|
+
icon: buttonNotificationIcon || /*#__PURE__*/_react.default.createElement("i", {
|
|
417
|
+
className: "ri-notification-3-line"
|
|
418
|
+
}),
|
|
419
|
+
badge: buttonNotificationBadge
|
|
420
|
+
}, buttonNotificationProps)), (logoRight || logoRightXS) && (!itemsDropDownUser || iconButtonRight) && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
|
|
411
421
|
id: 'cbx-header-third-logo-right',
|
|
412
422
|
className: prefixClass('cbx-header-third-logo-right'),
|
|
413
423
|
src: innerWidth < breakpoints.md ? logoRightXS || logoRight : logoRight,
|
|
@@ -466,7 +476,7 @@ var Header = function Header(_ref) {
|
|
|
466
476
|
}, buttonFileManagerProps));
|
|
467
477
|
},
|
|
468
478
|
items: buttonFileManagerItems
|
|
469
|
-
}, buttonFileManagerDropDownProps))),
|
|
479
|
+
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems ? /*#__PURE__*/_react.default.createElement("div", {
|
|
470
480
|
className: prefixClass('cbx-header-third-button-notification-container-noSeparate')
|
|
471
481
|
}, /*#__PURE__*/_react.default.createElement(_DropDown.default, _extends({
|
|
472
482
|
prefixClass: prefixClass,
|
|
@@ -489,7 +499,20 @@ var Header = function Header(_ref) {
|
|
|
489
499
|
},
|
|
490
500
|
items: buttonNotificationIconItems,
|
|
491
501
|
closeOnOptionClick: true
|
|
492
|
-
}, buttonNotificationIconDropDownProps)))
|
|
502
|
+
}, buttonNotificationIconDropDownProps))) : onClickButtonNotification && /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
503
|
+
prefixClass: prefixClass,
|
|
504
|
+
"aria-label": "",
|
|
505
|
+
id: 'cbx-header-third-button-notification',
|
|
506
|
+
className: prefixClass('cbx-header-third-button-notification'),
|
|
507
|
+
onClick: onClickButtonNotification,
|
|
508
|
+
icon: buttonNotificationIcon || /*#__PURE__*/_react.default.createElement("i", {
|
|
509
|
+
className: "ri-notification-3-line",
|
|
510
|
+
style: {
|
|
511
|
+
fontSize: '1.5rem'
|
|
512
|
+
}
|
|
513
|
+
}),
|
|
514
|
+
badge: buttonNotificationBadge
|
|
515
|
+
}, buttonNotificationProps)), /*#__PURE__*/_react.default.createElement(_DropDown.default, _extends({
|
|
493
516
|
prefixClass: prefixClass,
|
|
494
517
|
color: "transparent",
|
|
495
518
|
anchorOrigin: {
|
|
@@ -72,7 +72,7 @@ var Radio = function Radio(_ref) {
|
|
|
72
72
|
ripples = _useRipple2[1];
|
|
73
73
|
|
|
74
74
|
var generatedId = _react.default.useMemo(function () {
|
|
75
|
-
return id || Date.now()
|
|
75
|
+
return id || Date.now();
|
|
76
76
|
}, [id]);
|
|
77
77
|
|
|
78
78
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -56,13 +56,7 @@ var Stars = function Stars(_ref) {
|
|
|
56
56
|
display: 'inline-block'
|
|
57
57
|
}, style), stylesInLine),
|
|
58
58
|
className: prefixClass('cbx-RatingStarts')
|
|
59
|
-
},
|
|
60
|
-
style: {
|
|
61
|
-
color: 'var(--error)',
|
|
62
|
-
fontWeight: '700',
|
|
63
|
-
marginBottom: '1em'
|
|
64
|
-
}
|
|
65
|
-
}, error), /*#__PURE__*/_react.default.createElement("fieldset", {
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement("fieldset", {
|
|
66
60
|
className: prefixClass(disabled ? 'cbx-rating-disabled' : "cbx-rating ".concat(variant === 'secondary' ? variant : '')),
|
|
67
61
|
"aria-label": "Fieldset stars"
|
|
68
62
|
}, /*#__PURE__*/_react.default.createElement("legend", {
|
|
@@ -89,7 +83,14 @@ var Stars = function Stars(_ref) {
|
|
|
89
83
|
htmlFor: "star".concat(5 - index).concat(name),
|
|
90
84
|
className: prefixClass(lowStars ? 'cbx-lowStars' : '')
|
|
91
85
|
}, "5 stars"));
|
|
92
|
-
}))
|
|
86
|
+
})), error && /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
+
style: {
|
|
88
|
+
color: 'var(--error)',
|
|
89
|
+
fontWeight: '700',
|
|
90
|
+
marginBottom: '1em',
|
|
91
|
+
marginLeft: '1.4rem'
|
|
92
|
+
}
|
|
93
|
+
}, error));
|
|
93
94
|
};
|
|
94
95
|
|
|
95
96
|
Stars.displayName = "Stars";
|