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.css
CHANGED
|
@@ -14395,7 +14395,11 @@ h5 {
|
|
|
14395
14395
|
display: flex;
|
|
14396
14396
|
align-items: center;
|
|
14397
14397
|
width: 100%; }
|
|
14398
|
-
.component-table-left-checkbox-with-label
|
|
14398
|
+
.component-table-left-checkbox-with-label .component-table-left-checkbox-with-label-checkbox-wrapper {
|
|
14399
|
+
display: flex;
|
|
14400
|
+
align-items: center;
|
|
14401
|
+
justify-content: center; }
|
|
14402
|
+
.component-table-left-checkbox-with-label .component-table-left-checkbox-with-label-label-wrapper {
|
|
14399
14403
|
display: flex;
|
|
14400
14404
|
align-items: center;
|
|
14401
14405
|
margin-left: 8px;
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var ChevronArrowDownIcon = function ChevronArrowDownIcon() {
|
|
|
39
39
|
|
|
40
40
|
var getMergedClassNames = function getMergedClassNames(arr) {
|
|
41
41
|
return arr.filter(function (el) {
|
|
42
|
-
return el
|
|
42
|
+
return Boolean(el);
|
|
43
43
|
}).join(' ');
|
|
44
44
|
};
|
|
45
45
|
var getUniqueKey = function getUniqueKey() {
|
|
@@ -3956,6 +3956,8 @@ function Col(props) {
|
|
|
3956
3956
|
delete rp.end;
|
|
3957
3957
|
delete rp.cols;
|
|
3958
3958
|
delete rp.children;
|
|
3959
|
+
delete rp.buttonActionsCol;
|
|
3960
|
+
delete rp.noPaddingTop;
|
|
3959
3961
|
return rp;
|
|
3960
3962
|
}, [props]);
|
|
3961
3963
|
return React__default.createElement("div", Object.assign({}, p), props.children);
|
|
@@ -4294,6 +4296,7 @@ function DatePicker(props) {
|
|
|
4294
4296
|
return React__default.createElement("div", {
|
|
4295
4297
|
className: rootClassName$P
|
|
4296
4298
|
}, props.initialValue ? React__default.createElement(IconButton$1, {
|
|
4299
|
+
disabled: props.disabled,
|
|
4297
4300
|
className: rootClassName$P + "-clear-button",
|
|
4298
4301
|
icon: React__default.createElement(CloseIcon, null),
|
|
4299
4302
|
onClick: function onClick() {
|
|
@@ -9527,6 +9530,8 @@ ActionsColumn.defaultProps = {
|
|
|
9527
9530
|
|
|
9528
9531
|
var rootClassName$1w = 'component-table-left-checkbox-with-label';
|
|
9529
9532
|
var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
9533
|
+
var _props$spanProps2;
|
|
9534
|
+
|
|
9530
9535
|
var style = React.useMemo(function () {
|
|
9531
9536
|
var _props$spanProps;
|
|
9532
9537
|
|
|
@@ -9546,25 +9551,28 @@ var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
|
9546
9551
|
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
9547
9552
|
return React__default.createElement("div", {
|
|
9548
9553
|
className: rootClassName$1w
|
|
9549
|
-
}, React__default.createElement(
|
|
9554
|
+
}, React__default.createElement("span", {
|
|
9555
|
+
className: rootClassName$1w + "-checkbox-wrapper",
|
|
9550
9556
|
"tooltip-position": props['tooltip-position'],
|
|
9551
|
-
"tooltip-text": props['tooltip-text']
|
|
9557
|
+
"tooltip-text": props['tooltip-text']
|
|
9558
|
+
}, React__default.createElement(Checkbox, {
|
|
9552
9559
|
value: props.value,
|
|
9553
9560
|
disabled: props.disabled,
|
|
9554
9561
|
onChange: props.onChange,
|
|
9555
9562
|
theme: props.theme
|
|
9556
|
-
}),
|
|
9563
|
+
})), React__default.createElement("span", Object.assign({}, props.spanProps, {
|
|
9564
|
+
className: getMergedClassNames([rootClassName$1w + "-label-wrapper", ((_props$spanProps2 = props.spanProps) === null || _props$spanProps2 === void 0 ? void 0 : _props$spanProps2.className) || '']),
|
|
9557
9565
|
style: style,
|
|
9558
9566
|
onClick: function onClick(evt) {
|
|
9559
|
-
var _props$
|
|
9567
|
+
var _props$spanProps3;
|
|
9560
9568
|
|
|
9561
9569
|
if (props.anchorLabelToCheckbox) {
|
|
9562
9570
|
props.onChange(!props.value);
|
|
9563
9571
|
}
|
|
9564
9572
|
|
|
9565
|
-
(_props$
|
|
9573
|
+
(_props$spanProps3 = props.spanProps) === null || _props$spanProps3 === void 0 ? void 0 : _props$spanProps3.onClick(evt);
|
|
9566
9574
|
}
|
|
9567
|
-
}), props.label)
|
|
9575
|
+
}), props.label));
|
|
9568
9576
|
};
|
|
9569
9577
|
|
|
9570
9578
|
var rootClassName$1x = 'component-table';
|
|
@@ -9818,7 +9826,7 @@ function TableWithOverflow(props) {
|
|
|
9818
9826
|
body();
|
|
9819
9827
|
midWith();
|
|
9820
9828
|
}, [props.lines, props.columns]);
|
|
9821
|
-
React.
|
|
9829
|
+
React.useEffect(function () {
|
|
9822
9830
|
var func = function func() {
|
|
9823
9831
|
attWidth();
|
|
9824
9832
|
header();
|
|
@@ -9831,7 +9839,7 @@ function TableWithOverflow(props) {
|
|
|
9831
9839
|
window.removeEventListener('resize', func);
|
|
9832
9840
|
};
|
|
9833
9841
|
}, []);
|
|
9834
|
-
React.
|
|
9842
|
+
React.useEffect(function () {
|
|
9835
9843
|
var element = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
|
|
9836
9844
|
var pos = {
|
|
9837
9845
|
left: 0,
|