@councilbox/councilbox-ui 0.6.2 → 0.6.4
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 +6 -3
- package/dist/components/Stepper/DesignStepper.stories.js +5 -1
- package/dist/components/Stepper/Stepper.css +5 -1
- package/dist/components/Stepper/Stepper.js +2 -2
- package/package.json +1 -1
|
@@ -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.4</h2>
|
|
28
|
+
<div>Fix texto tooltip en Stepper</div>
|
|
29
|
+
|
|
30
|
+
<h2>v0.6.3</h2>
|
|
31
|
+
<div>fix en el buton de DragDrop cuando esta disabled</div>
|
|
32
|
+
<div>Refactor useWindowSize</div>
|
|
33
|
+
<div>Fix seleccionar el activo Stepper</div>
|
|
27
34
|
|
|
28
35
|
<h2>v0.6.2</h2>
|
|
29
36
|
<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",
|
|
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
|
}
|
|
@@ -55,9 +55,9 @@ var Stepper = function Stepper(_ref) {
|
|
|
55
55
|
cursor: freeNavigation ? 'pointer' : 'inherit'
|
|
56
56
|
}
|
|
57
57
|
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
58
|
-
title: item.
|
|
58
|
+
title: item.text || ''
|
|
59
59
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className: "".concat(innerWidth <
|
|
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;
|