@councilbox/councilbox-ui 0.6.8 → 0.6.9
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 +3 -0
- package/dist/components/FabButton/DesignFabButton.stories.js +2 -4
- package/dist/components/FabButton/FabButton.js +2 -2
- package/dist/components/IconButton/IconButton.js +8 -2
- package/package.json +1 -1
|
@@ -24,6 +24,9 @@ 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.8</h2>
|
|
28
|
+
<div>fix stilos de FabButton</div>
|
|
29
|
+
|
|
27
30
|
<h2>v0.6.8</h2>
|
|
28
31
|
<div>fix componente FabButton</div>
|
|
29
32
|
<div>fix tamaño iconos en FabButton</div>
|
|
@@ -20,10 +20,7 @@ var DesignFabButton = function DesignFabButton() {
|
|
|
20
20
|
}
|
|
21
21
|
}, /*#__PURE__*/_react.default.createElement(_FabButton.default, {
|
|
22
22
|
icon: /*#__PURE__*/_react.default.createElement("i", {
|
|
23
|
-
className: "ri-k-line"
|
|
24
|
-
style: {
|
|
25
|
-
color: 'white'
|
|
26
|
-
}
|
|
23
|
+
className: "ri-k-line"
|
|
27
24
|
}),
|
|
28
25
|
onClick: function onClick() {
|
|
29
26
|
return console.log('1');
|
|
@@ -39,6 +36,7 @@ var DesignFabButton = function DesignFabButton() {
|
|
|
39
36
|
return console.log('2');
|
|
40
37
|
},
|
|
41
38
|
onlyButton: true,
|
|
39
|
+
disabled: true,
|
|
42
40
|
items: 'Prueba2'
|
|
43
41
|
}));
|
|
44
42
|
};
|
|
@@ -47,8 +47,8 @@ var FabButton = function FabButton(_ref) {
|
|
|
47
47
|
onClick: function onClick() {
|
|
48
48
|
return onlyButton && _onClick();
|
|
49
49
|
},
|
|
50
|
-
backgroundColor: backgroundColor,
|
|
51
|
-
hoverColor: hoverColor,
|
|
50
|
+
backgroundColor: backgroundColor || 'var(--primary)',
|
|
51
|
+
hoverColor: hoverColor || '#272762',
|
|
52
52
|
placementTooltip: placementTooltip,
|
|
53
53
|
disabled: disabled,
|
|
54
54
|
tooltip: tooltip
|
|
@@ -62,7 +62,7 @@ var IconButton = function IconButton(_ref) {
|
|
|
62
62
|
|
|
63
63
|
return /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
64
64
|
id: id,
|
|
65
|
-
className: className,
|
|
65
|
+
className: "".concat(className || '', " ").concat(type === 'fab' ? 'cbx-fabButton' : ''),
|
|
66
66
|
onClick: onClick,
|
|
67
67
|
disabled: disabled,
|
|
68
68
|
sx: _objectSpread(_objectSpread({
|
|
@@ -82,7 +82,13 @@ var IconButton = function IconButton(_ref) {
|
|
|
82
82
|
'&&:hover': {
|
|
83
83
|
backgroundColor: hoverColor
|
|
84
84
|
},
|
|
85
|
-
zIndex: inModal && '1120'
|
|
85
|
+
zIndex: inModal && '1120',
|
|
86
|
+
'&.MuiButtonBase-root.cbx-fabButton i': {
|
|
87
|
+
color: 'white'
|
|
88
|
+
},
|
|
89
|
+
'&.MuiButtonBase-root.MuiIconButton-root.Mui-disabled.cbx-fabButton': {
|
|
90
|
+
background: type === 'fab' && 'var(--gray3)'
|
|
91
|
+
}
|
|
86
92
|
}, styles)
|
|
87
93
|
}, props), badge ? /*#__PURE__*/_react.default.createElement(_Badge.default, {
|
|
88
94
|
badgeContent: Number.parseInt(badge, 10) || ' ',
|