@councilbox/councilbox-ui 2.0.5 → 2.0.7
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 +8 -0
- package/dist/components/Accordion/Accordion.js +10 -0
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/DropDown/DropDown.js +0 -1
- package/dist/components/InputAutocomplete/InputAutocomplete.css +6 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +5 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ a.noStyles:hover{
|
|
|
16
16
|
`}</style>
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
# Librería de componentes ui-councilbox NEW v2.0.
|
|
19
|
+
# Librería de componentes ui-councilbox NEW v2.0.7 🎉
|
|
20
20
|
|
|
21
21
|
<h2>Componentes:</h2>
|
|
22
22
|
<div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
|
|
@@ -25,6 +25,14 @@ a.noStyles:hover{
|
|
|
25
25
|
<div>Fix zIndex label InputText y SelectInput</div>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
+
<h2>v2.0.7</h2>
|
|
29
|
+
<div>Fix button del Accordion</div>
|
|
30
|
+
|
|
31
|
+
<h2>v2.0.6</h2>
|
|
32
|
+
<div>Fix maxHeight del Accordion</div>
|
|
33
|
+
<div>Fix Checkbox</div>
|
|
34
|
+
<div>Fix boton X disabled en InputAutocomplete</div>
|
|
35
|
+
|
|
28
36
|
<h2>v2.0.5</h2>
|
|
29
37
|
<div>Fix posicionamiento del tooltip en los MenuItem</div>
|
|
30
38
|
<div>Fix linea en el label en inputText</div>
|
|
@@ -94,6 +94,16 @@ var Accordion = function Accordion(_ref) {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
+
_react.default.useEffect(function () {
|
|
98
|
+
if (expanded) {
|
|
99
|
+
var panel = panelRef.current;
|
|
100
|
+
|
|
101
|
+
if (panel) {
|
|
102
|
+
panel.style.maxHeight = "".concat(panel.scrollHeight, "px");
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, [contentExpand]);
|
|
106
|
+
|
|
97
107
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
98
108
|
id: id,
|
|
99
109
|
className: prefixClass("cbx-Accordion-block ".concat(className || '', " ").concat(disabled ? 'disabled' : '')),
|
|
@@ -240,7 +240,6 @@ var DropDown = function DropDown(_ref2) {
|
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
var handleClick = _react.default.useCallback(function (event) {
|
|
243
|
-
console.log('abre cabrón');
|
|
244
243
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
245
244
|
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
246
245
|
setIsOpen(true);
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
opacity: 1;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
.cbx-inputAutocomplete-icon-button.disabled {
|
|
11
|
+
cursor: not-allowed;
|
|
12
|
+
opacity: 0.5;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
.cbx-inputText-container-disabled.cbx-inputText-container-select.cbx-inputText-container:after {
|
|
11
17
|
border-left: 0px solid transparent;
|
|
12
18
|
border-right: 0px solid transparent;
|
|
@@ -29,7 +29,7 @@ var _autoDetectScroll = require("../../utils/autoDetectScroll");
|
|
|
29
29
|
|
|
30
30
|
var _utils = require("../../utils");
|
|
31
31
|
|
|
32
|
-
var _excluded = ["children", "className", "onChange", "onInputChange", "label", "value", "autocomplete", "inputValue", "style", "styles", "sx", "loadingText", "loading", "prefixClass", "options", "getOptionLabel", "clearable", "getOptionSelected", "defaultValue", "filterOptions", "freeSolo", "InputProps", "clearOnBlur", "selectOnFocus"];
|
|
32
|
+
var _excluded = ["children", "className", "onChange", "onInputChange", "label", "value", "autocomplete", "inputValue", "style", "styles", "sx", "loadingText", "loading", "prefixClass", "options", "disabled", "getOptionLabel", "clearable", "getOptionSelected", "defaultValue", "filterOptions", "freeSolo", "InputProps", "clearOnBlur", "selectOnFocus"];
|
|
33
33
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
@@ -76,6 +76,7 @@ var InputAutocomplete = function InputAutocomplete(_ref) {
|
|
|
76
76
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
77
77
|
propPrefixClass = _ref.prefixClass,
|
|
78
78
|
options = _ref.options,
|
|
79
|
+
disabled = _ref.disabled,
|
|
79
80
|
_ref$getOptionLabel = _ref.getOptionLabel,
|
|
80
81
|
getOptionLabel = _ref$getOptionLabel === void 0 ? function (option) {
|
|
81
82
|
if (!option) {
|
|
@@ -316,6 +317,7 @@ var InputAutocomplete = function InputAutocomplete(_ref) {
|
|
|
316
317
|
prefixClass: prefixClass,
|
|
317
318
|
fullWidth: props.fullWidth,
|
|
318
319
|
autocomplete: autocomplete,
|
|
320
|
+
disabled: disabled,
|
|
319
321
|
ref: inputRef,
|
|
320
322
|
onKeyDown: function onKeyDown(e) {
|
|
321
323
|
e.stopPropagation();
|
|
@@ -341,7 +343,9 @@ var InputAutocomplete = function InputAutocomplete(_ref) {
|
|
|
341
343
|
}) : /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
342
344
|
prefixClass: prefixClass,
|
|
343
345
|
className: "cbx-inputAutocomplete-icon-button",
|
|
346
|
+
disabled: disabled,
|
|
344
347
|
onClick: function onClick(e) {
|
|
348
|
+
if (disabled) return;
|
|
345
349
|
e.stopPropagation();
|
|
346
350
|
e.preventDefault();
|
|
347
351
|
searchTextRef.current = '';
|