@councilbox/councilbox-ui 0.6.2 → 0.6.3

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.2
19
+ # Librería de componentes ui-councilbox v0.6.3
20
20
 
21
21
  <h2>Componentes:</h2>
22
22
  <div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
@@ -24,6 +24,10 @@ 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.3</h2>
28
+ <div>fix en el buton de DragDrop cuando esta disabled</div>
29
+ <div>Refactor useWindowSize</div>
30
+ <div>Fix seleccionar el activo Stepper</div>
27
31
 
28
32
  <h2>v0.6.2</h2>
29
33
  <div>Add prop noCollapseUpperSection en MenuLateralRight</div>
@@ -57,7 +57,7 @@ var DragDrop = function DragDrop(_ref) {
57
57
  }, props), /*#__PURE__*/_react.default.createElement("div", {
58
58
  className: 'cbx-dragDrop-container-button'
59
59
  }, /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
60
- backgroundColor: 'var(--primary)',
60
+ backgroundColor: inputProps !== null && inputProps !== void 0 && inputProps.disabled ? 'var(--gray2) !important' : 'var(--primary)',
61
61
  icon: /*#__PURE__*/_react.default.createElement("i", {
62
62
  className: "ri-upload-2-line",
63
63
  style: {
@@ -65,6 +65,7 @@ var DragDrop = function DragDrop(_ref) {
65
65
  }
66
66
  }),
67
67
  type: 'fab',
68
+ disabled: inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled,
68
69
  hoverColor: 'var(--primary75)'
69
70
  }, iconButtonProps))), /*#__PURE__*/_react.default.createElement("input", _extends({}, getInputProps(), {
70
71
  title: ''
@@ -96,7 +97,8 @@ DragDrop.propTypes = {
96
97
  id: _propTypes.default.string,
97
98
  iconButtonProps: _propTypes.default.object,
98
99
  alertProps: _propTypes.default.object,
99
- actionButtons: _propTypes.default.object
100
+ actionButtons: _propTypes.default.object,
101
+ inputProps: _propTypes.default.object
100
102
  };
101
103
  DragDrop.defaultProps = {
102
104
  text: '',
@@ -104,7 +106,8 @@ DragDrop.defaultProps = {
104
106
  id: '',
105
107
  iconButtonProps: {},
106
108
  alertProps: {},
107
- actionButtons: {}
109
+ actionButtons: {},
110
+ inputProps: {}
108
111
  };
109
112
  var _default = DragDrop;
110
113
  exports.default = _default;
@@ -29,7 +29,11 @@ var DesignStepper = function DesignStepper() {
29
29
  state = _React$useState2[0],
30
30
  setState = _React$useState2[1];
31
31
 
32
- return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Stepper.default, {
32
+ return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
33
+ style: {
34
+ marginBottom: '1rem'
35
+ }
36
+ }, /*#__PURE__*/_react.default.createElement(_Stepper.default, {
33
37
  onClick: setState,
34
38
  items: [{
35
39
  text: 'Detalles',
@@ -19,6 +19,7 @@
19
19
  align-items: center;
20
20
  transition: .3s;
21
21
  width: calc( 100% - 2rem );
22
+ max-height: 2.5rem;
22
23
  }
23
24
 
24
25
  .cbx-stepper-item-contentText:last-child {
@@ -30,9 +31,12 @@
30
31
  padding-right: 0;
31
32
  padding: 0.5rem 0rem 0.5rem 0rem;
32
33
  justify-content: center;
34
+ max-width: 2.5rem;
35
+ min-width: 2.5rem;
36
+ max-height: 2.5rem;
33
37
  }
34
38
 
35
- .cbx-stepper-item-contentText-hover:hover {
39
+ .cbx-stepper-item-contentText-hover:hover, .cbx-stepper-item-active {
36
40
  background: var(--gray1);
37
41
  border-radius: 0.25rem;
38
42
  }
@@ -57,7 +57,7 @@ var Stepper = function Stepper(_ref) {
57
57
  }, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
58
58
  title: item.name || ''
59
59
  }, /*#__PURE__*/_react.default.createElement("div", {
60
- className: "".concat(innerWidth < 427 ? "cbx-stepper-item-contentText ".concat(freeNavigation && 'cbx-stepper-item-contentText-hover', " cbx-stepper-item-contentText-mobile") : "cbx-stepper-item-contentText ".concat(freeNavigation && 'cbx-stepper-item-contentText-hover')),
60
+ className: "".concat(innerWidth < 875 ? "cbx-stepper-item-contentText ".concat(active === item.name && 'cbx-stepper-item-active', " ").concat(freeNavigation && 'cbx-stepper-item-contentText-hover', " cbx-stepper-item-contentText-mobile") : "cbx-stepper-item-contentText ".concat(active === item.name && 'cbx-stepper-item-active', " ").concat(freeNavigation && 'cbx-stepper-item-contentText-hover')),
61
61
  style: {
62
62
  color: active === item.name || items.slice(index + 1).some(function (i) {
63
63
  return i.name === active;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",