@smart-react-components/ui 2.0.0-alpha-25 → 2.0.0-alpha-26
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/Dropdown/DropdownList.js
CHANGED
|
@@ -5,5 +5,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
7
|
const DropdownListElement_1 = __importDefault(require("../components/Dropdown/DropdownListElement"));
|
|
8
|
-
const DropdownList = ({ children, hasHover = true, hasWaveEffect = true, isOutline = true, isSoft, palette = 'primary', setStatus, size = 'medium', sizeSm, sizeMd, sizeLg, sizeXl, waveEffectPalette = 'light' }) => (react_1.default.createElement(DropdownListElement_1.default, { dropdownListSize: size, dropdownListSizeSm: sizeSm, dropdownListSizeMd: sizeMd, dropdownListSizeLg: sizeLg, dropdownListSizeXl: sizeXl, isOutline: isOutline, isSoft: isSoft, palette: palette }, (Array.isArray(children) ? children : [children]).map((item, idx) => { var _a; return react_1.default.cloneElement(item, { key: (_a = item.key) !== null && _a !== void 0 ? _a : idx, hasHover, hasWaveEffect, isOutline, isSoft, palette, setStatus, waveEffectPalette }); })));
|
|
8
|
+
const DropdownList = ({ children, hasHover = true, hasWaveEffect = true, isOutline = true, isSoft, palette = 'primary', setStatus, size = 'medium', sizeSm, sizeMd, sizeLg, sizeXl, waveEffectPalette = 'light' }) => (react_1.default.createElement(DropdownListElement_1.default, { dropdownListSize: size, dropdownListSizeSm: sizeSm, dropdownListSizeMd: sizeMd, dropdownListSizeLg: sizeLg, dropdownListSizeXl: sizeXl, isOutline: isOutline, isSoft: isSoft, palette: palette }, (Array.isArray(children) ? children : [children]).map((item, idx) => { var _a; return item && react_1.default.cloneElement(item, { key: (_a = item.key) !== null && _a !== void 0 ? _a : idx, hasHover, hasWaveEffect, isOutline, isSoft, palette, setStatus, waveEffectPalette }); })));
|
|
9
9
|
exports.default = DropdownList;
|
package/Table/TableContainer.js
CHANGED
|
@@ -39,7 +39,6 @@ const TableContainer = props => {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
const yEls = el.current.querySelectorAll('table > thead > tr');
|
|
42
|
-
console.log(x, y, yEls);
|
|
43
42
|
if (y > 0 && yEls.length > 0) {
|
|
44
43
|
if (props.hasInternalScroll) {
|
|
45
44
|
styled += 'overflow-y: auto;';
|
|
@@ -59,7 +58,6 @@ const TableContainer = props => {
|
|
|
59
58
|
`;
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
|
-
console.log(styled);
|
|
63
61
|
setStyled(styled);
|
|
64
62
|
};
|
|
65
63
|
react_1.default.useEffect(() => {
|