@councilbox/councilbox-ui 0.4.14 → 0.4.16
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 +9 -2
- package/dist/components/DragDrop/DragDrop.css +14 -0
- package/dist/components/DragDrop/DragDrop.js +8 -2
- package/dist/components/Modal/Modal.js +5 -2
- package/dist/components/Scrollbar/Scrollbar.js +21 -23
- package/package.json +3 -2
|
@@ -21,11 +21,18 @@ a.noStyles:hover{
|
|
|
21
21
|
|
|
22
22
|
# Changelog ui-councilbox
|
|
23
23
|
<div class="hide">
|
|
24
|
-
<h2>v0.4.
|
|
25
|
-
<div
|
|
24
|
+
<h2>v0.4.16</h2>
|
|
25
|
+
<div>Añadida prop en modal</div>
|
|
26
26
|
|
|
27
27
|
descargar las fuentes y probarlas, no usar @import, meterlas en css descargadas
|
|
28
28
|
</div>
|
|
29
|
+
<h2>v0.4.16</h2>
|
|
30
|
+
<div>Fix problema con el title y el Tooltip en DragDrop</div>
|
|
31
|
+
|
|
32
|
+
<h2>v0.4.15</h2>
|
|
33
|
+
<div>Añadida prop en modal</div>
|
|
34
|
+
<div>Fix estilos en input en componente Dragdrop</div>
|
|
35
|
+
<div>fixed scrollbar para poder acceder a los metodos internos</div>
|
|
29
36
|
<h2>v0.4.14</h2>
|
|
30
37
|
<div>Añadidas props en DragDrop</div>
|
|
31
38
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.cbx-dragDrop-container {
|
|
2
2
|
background-color: var(--gray1);
|
|
3
|
+
position: relative;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
.cbx-dragDrop-principal-container {
|
|
@@ -36,4 +37,17 @@
|
|
|
36
37
|
|
|
37
38
|
.cbx-dragDrop-container-alertProps {
|
|
38
39
|
margin: var(--spacing32) var(--spacing24) 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cbx-dragDrop-input {
|
|
43
|
+
display: block!important;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
opacity: 0
|
|
39
53
|
}
|
|
@@ -52,7 +52,9 @@ var DragDrop = function DragDrop(_ref) {
|
|
|
52
52
|
}, /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
53
53
|
id: id,
|
|
54
54
|
className: 'cbx-dragDrop-principal-container'
|
|
55
|
-
}, getRootProps(),
|
|
55
|
+
}, getRootProps(), {
|
|
56
|
+
title: ''
|
|
57
|
+
}, props), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
58
|
className: 'cbx-dragDrop-container-button'
|
|
57
59
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
58
60
|
backgroundColor: 'var(--primary)',
|
|
@@ -64,7 +66,11 @@ var DragDrop = function DragDrop(_ref) {
|
|
|
64
66
|
}),
|
|
65
67
|
type: 'fab',
|
|
66
68
|
hoverColor: 'var(--primary75)'
|
|
67
|
-
}, iconButtonProps))), /*#__PURE__*/_react.default.createElement("input", _extends({}, getInputProps(),
|
|
69
|
+
}, iconButtonProps))), /*#__PURE__*/_react.default.createElement("input", _extends({}, getInputProps(), {
|
|
70
|
+
title: ''
|
|
71
|
+
}, inputProps, {
|
|
72
|
+
className: 'cbx-dragDrop-input'
|
|
73
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
68
74
|
onClick: function onClick(e) {
|
|
69
75
|
e.stopPropagation();
|
|
70
76
|
e.preventDefault();
|
|
@@ -19,7 +19,7 @@ var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"))
|
|
|
19
19
|
|
|
20
20
|
var _CouncilboxThemeContext = require("../ThemeProvider/CouncilboxThemeContext");
|
|
21
21
|
|
|
22
|
-
var _excluded = ["title", "fullWidth", "id", "fullScreen", "buttonAccept", "buttonCancel", "open", "requestClose", "loadingAction", "acceptAction", "cancelAction", "body", "hideAccept", "extraActions", "classNameDialog", "PaperProps", "widthModal", "actions", "sx", "buttonCancelProps", "buttonAcceptProps", "breakpointsButtons"];
|
|
22
|
+
var _excluded = ["title", "fullWidth", "id", "fullScreen", "buttonAccept", "buttonCancel", "open", "requestClose", "loadingAction", "acceptAction", "cancelAction", "body", "bodyText", "hideAccept", "extraActions", "classNameDialog", "PaperProps", "widthModal", "actions", "sx", "buttonCancelProps", "buttonAcceptProps", "breakpointsButtons"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -49,6 +49,7 @@ var Modal = function Modal(_ref) {
|
|
|
49
49
|
acceptAction = _ref.acceptAction,
|
|
50
50
|
cancelAction = _ref.cancelAction,
|
|
51
51
|
body = _ref.body,
|
|
52
|
+
bodyText = _ref.bodyText,
|
|
52
53
|
hideAccept = _ref.hideAccept,
|
|
53
54
|
extraActions = _ref.extraActions,
|
|
54
55
|
classNameDialog = _ref.classNameDialog,
|
|
@@ -138,7 +139,7 @@ var Modal = function Modal(_ref) {
|
|
|
138
139
|
padding: '0 2rem',
|
|
139
140
|
overflow: 'hidden'
|
|
140
141
|
}
|
|
141
|
-
}, body), (!!buttonCancel || !!buttonAccept) && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
142
|
+
}, body || bodyText), (!!buttonCancel || !!buttonAccept) && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
142
143
|
className: "cbx-modal-contentButtons",
|
|
143
144
|
sx: {
|
|
144
145
|
padding: '1.5rem 2rem',
|
|
@@ -175,6 +176,7 @@ Modal.propTypes = {
|
|
|
175
176
|
acceptAction: _propTypes.default.func,
|
|
176
177
|
cancelAction: _propTypes.default.func,
|
|
177
178
|
body: _propTypes.default.node,
|
|
179
|
+
bodyText: _propTypes.default.node,
|
|
178
180
|
hideAccept: _propTypes.default.bool,
|
|
179
181
|
extraActions: _propTypes.default.node,
|
|
180
182
|
classNameDialog: _propTypes.default.string,
|
|
@@ -196,6 +198,7 @@ Modal.defaultProps = {
|
|
|
196
198
|
acceptAction: undefined,
|
|
197
199
|
cancelAction: undefined,
|
|
198
200
|
body: '',
|
|
201
|
+
bodyText: '',
|
|
199
202
|
hideAccept: false,
|
|
200
203
|
extraActions: undefined,
|
|
201
204
|
classNameDialog: '',
|
|
@@ -25,26 +25,27 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
25
25
|
|
|
26
26
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
|
-
var Scrollbar = function
|
|
28
|
+
var Scrollbar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
29
29
|
var props = _extends({}, _ref);
|
|
30
30
|
|
|
31
|
-
var scrollbar = null;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
var scrollbar = _react.default.useRef(null);
|
|
32
|
+
|
|
33
|
+
_react.default.useImperativeHandle(ref, function () {
|
|
34
|
+
return {
|
|
35
|
+
scrollToBottom: function scrollToBottom() {
|
|
36
|
+
scrollbar.current.scrollToBottom();
|
|
37
|
+
},
|
|
38
|
+
scrollToTop: function scrollToTop() {
|
|
39
|
+
scrollbar.current.scrollToTop();
|
|
40
|
+
},
|
|
41
|
+
getScrollHeight: function getScrollHeight() {
|
|
42
|
+
return scrollbar.current.getScrollHeight();
|
|
43
|
+
},
|
|
44
|
+
getValues: function getValues() {
|
|
45
|
+
return scrollbar.current.getValues();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}, []);
|
|
48
49
|
|
|
49
50
|
var style = props.style,
|
|
50
51
|
autoHide = props.autoHide,
|
|
@@ -62,9 +63,7 @@ var Scrollbar = function Scrollbar(_ref) {
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
return /*#__PURE__*/_react.default.createElement(_reactCustomScrollbarsCbx.Scrollbars, _extends({
|
|
65
|
-
ref:
|
|
66
|
-
scrollbar = _ref2;
|
|
67
|
-
},
|
|
66
|
+
ref: scrollbar,
|
|
68
67
|
autoHide: autoHide,
|
|
69
68
|
className: "Scrollbar ".concat(classFix, " ").concat(extraClass, " ").concat(horizontalScroll ? 'scrollbarBoth' : 'scrollbarOnlyY', " scrollbarFixHeight"),
|
|
70
69
|
onScrollStop: onScrollStop,
|
|
@@ -88,8 +87,7 @@ var Scrollbar = function Scrollbar(_ref) {
|
|
|
88
87
|
});
|
|
89
88
|
}
|
|
90
89
|
} : {}), children);
|
|
91
|
-
};
|
|
90
|
+
});
|
|
92
91
|
|
|
93
|
-
Scrollbar.displayName = "Scrollbar";
|
|
94
92
|
var _default = Scrollbar;
|
|
95
93
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@councilbox/councilbox-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.16",
|
|
4
4
|
"main": "dist/build-index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -108,5 +108,6 @@
|
|
|
108
108
|
"storybook": "^6.4.13",
|
|
109
109
|
"storybook-code-panel": "^0.2.1",
|
|
110
110
|
"webpack": "^5.66.0"
|
|
111
|
-
}
|
|
111
|
+
},
|
|
112
|
+
"packageManager": "yarn@1.22.19"
|
|
112
113
|
}
|