@councilbox/councilbox-ui 0.6.7 → 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.
@@ -16,7 +16,7 @@ a.noStyles:hover{
16
16
  `}</style>
17
17
 
18
18
 
19
- # Librería de componentes ui-councilbox v0.6.7
19
+ # Librería de componentes ui-councilbox v0.6.9
20
20
 
21
21
  <h2>Componentes:</h2>
22
22
  <div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
@@ -24,6 +24,13 @@ 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
+
30
+ <h2>v0.6.8</h2>
31
+ <div>fix componente FabButton</div>
32
+ <div>fix tamaño iconos en FabButton</div>
33
+
27
34
  <h2>v0.6.7</h2>
28
35
  <div>Add variant Block</div>
29
36
  <div>fix class undefined en Block</div>
@@ -19,16 +19,24 @@ var DesignFabButton = function DesignFabButton() {
19
19
  marginBottom: '1rem'
20
20
  }
21
21
  }, /*#__PURE__*/_react.default.createElement(_FabButton.default, {
22
+ icon: /*#__PURE__*/_react.default.createElement("i", {
23
+ className: "ri-k-line"
24
+ }),
22
25
  onClick: function onClick() {
23
26
  return console.log('1');
24
27
  },
25
28
  onlyButton: false,
26
- items: 'Prueba1'
29
+ items: 'Prueba1',
30
+ backgroundColor: 'var(--primary)'
27
31
  })), /*#__PURE__*/_react.default.createElement(_FabButton.default, {
32
+ icon: /*#__PURE__*/_react.default.createElement("i", {
33
+ className: "ri-k-line"
34
+ }),
28
35
  onClick: function onClick() {
29
36
  return console.log('2');
30
37
  },
31
38
  onlyButton: true,
39
+ disabled: true,
32
40
  items: 'Prueba2'
33
41
  }));
34
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,14 +62,14 @@ 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({
69
69
  width: (type === null || type === void 0 ? void 0 : type.toLowerCase()) === 'fab' ? 'var(--spacing56)' : 'var(--spacing40)',
70
70
  height: (type === null || type === void 0 ? void 0 : type.toLowerCase()) === 'fab' ? 'var(--spacing56)' : 'var(--spacing40)',
71
71
  boxShadow: (type === null || type === void 0 ? void 0 : type.toLowerCase()) === 'fab' && '0px 4px 4px rgba(0, 0, 0, 0.25)',
72
- fontSize: 'var(--spacing20)',
72
+ fontSize: 'var(--spacing24)',
73
73
  color: 'var(--gray3)',
74
74
  background: backgroundColor
75
75
  }, rounded ? {
@@ -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) || ' ',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",