plataforma-fundacao-componentes 2.22.6 → 2.22.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/datePicker/DatePicker.d.ts +1 -0
- package/dist/index.css +5 -1
- package/dist/index.js +17 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -36,7 +36,7 @@ var ChevronArrowDownIcon = function ChevronArrowDownIcon() {
|
|
|
36
36
|
|
|
37
37
|
var getMergedClassNames = function getMergedClassNames(arr) {
|
|
38
38
|
return arr.filter(function (el) {
|
|
39
|
-
return el
|
|
39
|
+
return Boolean(el);
|
|
40
40
|
}).join(' ');
|
|
41
41
|
};
|
|
42
42
|
var getUniqueKey = function getUniqueKey() {
|
|
@@ -3969,6 +3969,8 @@ function Col(props) {
|
|
|
3969
3969
|
delete rp.end;
|
|
3970
3970
|
delete rp.cols;
|
|
3971
3971
|
delete rp.children;
|
|
3972
|
+
delete rp.buttonActionsCol;
|
|
3973
|
+
delete rp.noPaddingTop;
|
|
3972
3974
|
return rp;
|
|
3973
3975
|
}, [props]);
|
|
3974
3976
|
return React.createElement("div", Object.assign({}, p), props.children);
|
|
@@ -4307,6 +4309,7 @@ function DatePicker(props) {
|
|
|
4307
4309
|
return React.createElement("div", {
|
|
4308
4310
|
className: rootClassName$P
|
|
4309
4311
|
}, props.initialValue ? React.createElement(IconButton$1, {
|
|
4312
|
+
disabled: props.disabled,
|
|
4310
4313
|
className: rootClassName$P + "-clear-button",
|
|
4311
4314
|
icon: React.createElement(CloseIcon, null),
|
|
4312
4315
|
onClick: function onClick() {
|
|
@@ -9546,6 +9549,8 @@ ActionsColumn.defaultProps = {
|
|
|
9546
9549
|
|
|
9547
9550
|
var rootClassName$1w = 'component-table-left-checkbox-with-label';
|
|
9548
9551
|
var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
9552
|
+
var _props$spanProps2;
|
|
9553
|
+
|
|
9549
9554
|
var style = useMemo(function () {
|
|
9550
9555
|
var _props$spanProps;
|
|
9551
9556
|
|
|
@@ -9565,25 +9570,28 @@ var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
|
9565
9570
|
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
9566
9571
|
return React.createElement("div", {
|
|
9567
9572
|
className: rootClassName$1w
|
|
9568
|
-
}, React.createElement(
|
|
9573
|
+
}, React.createElement("span", {
|
|
9574
|
+
className: rootClassName$1w + "-checkbox-wrapper",
|
|
9569
9575
|
"tooltip-position": props['tooltip-position'],
|
|
9570
|
-
"tooltip-text": props['tooltip-text']
|
|
9576
|
+
"tooltip-text": props['tooltip-text']
|
|
9577
|
+
}, React.createElement(Checkbox, {
|
|
9571
9578
|
value: props.value,
|
|
9572
9579
|
disabled: props.disabled,
|
|
9573
9580
|
onChange: props.onChange,
|
|
9574
9581
|
theme: props.theme
|
|
9575
|
-
}),
|
|
9582
|
+
})), React.createElement("span", Object.assign({}, props.spanProps, {
|
|
9583
|
+
className: getMergedClassNames([rootClassName$1w + "-label-wrapper", ((_props$spanProps2 = props.spanProps) === null || _props$spanProps2 === void 0 ? void 0 : _props$spanProps2.className) || '']),
|
|
9576
9584
|
style: style,
|
|
9577
9585
|
onClick: function onClick(evt) {
|
|
9578
|
-
var _props$
|
|
9586
|
+
var _props$spanProps3;
|
|
9579
9587
|
|
|
9580
9588
|
if (props.anchorLabelToCheckbox) {
|
|
9581
9589
|
props.onChange(!props.value);
|
|
9582
9590
|
}
|
|
9583
9591
|
|
|
9584
|
-
(_props$
|
|
9592
|
+
(_props$spanProps3 = props.spanProps) === null || _props$spanProps3 === void 0 ? void 0 : _props$spanProps3.onClick(evt);
|
|
9585
9593
|
}
|
|
9586
|
-
}), props.label)
|
|
9594
|
+
}), props.label));
|
|
9587
9595
|
};
|
|
9588
9596
|
|
|
9589
9597
|
var rootClassName$1x = 'component-table';
|
|
@@ -9837,7 +9845,7 @@ function TableWithOverflow(props) {
|
|
|
9837
9845
|
body();
|
|
9838
9846
|
midWith();
|
|
9839
9847
|
}, [props.lines, props.columns]);
|
|
9840
|
-
|
|
9848
|
+
useEffect(function () {
|
|
9841
9849
|
var func = function func() {
|
|
9842
9850
|
attWidth();
|
|
9843
9851
|
header();
|
|
@@ -9850,7 +9858,7 @@ function TableWithOverflow(props) {
|
|
|
9850
9858
|
window.removeEventListener('resize', func);
|
|
9851
9859
|
};
|
|
9852
9860
|
}, []);
|
|
9853
|
-
|
|
9861
|
+
useEffect(function () {
|
|
9854
9862
|
var element = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
|
|
9855
9863
|
var pos = {
|
|
9856
9864
|
left: 0,
|