plataforma-fundacao-componentes 2.22.7 → 2.22.8
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/table/components/TableUpperHeader/TableUpperHeader.d.ts +18 -0
- package/dist/components/table/components/leftCheckboxWithLabel/LeftCheckboxWithLabel.d.ts +8 -1
- package/dist/components/tableWithOverflow/TableWithOverflow.d.ts +22 -2
- package/dist/hooks/useDraggableScroll/useDraggableScroll.d.ts +2 -0
- package/dist/index.css +284 -188
- package/dist/index.js +246 -343
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +246 -343
- package/dist/index.modern.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -9550,7 +9550,7 @@ var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
|
|
|
9550
9550
|
return style;
|
|
9551
9551
|
}, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
|
|
9552
9552
|
return React__default.createElement("div", {
|
|
9553
|
-
className: rootClassName$1w
|
|
9553
|
+
className: getMergedClassNames([rootClassName$1w, props.w100 ? 'w-100' : ''])
|
|
9554
9554
|
}, React__default.createElement("span", {
|
|
9555
9555
|
className: rootClassName$1w + "-checkbox-wrapper",
|
|
9556
9556
|
"tooltip-position": props['tooltip-position'],
|
|
@@ -9751,96 +9751,9 @@ var CircleArrowLeft = function CircleArrowLeft() {
|
|
|
9751
9751
|
}))));
|
|
9752
9752
|
};
|
|
9753
9753
|
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
function TableWithOverflow(props) {
|
|
9757
|
-
var _useState = React.useState("" + getUniqueKey()),
|
|
9758
|
-
id = _useState[0];
|
|
9759
|
-
|
|
9760
|
-
var _useState2 = React.useState("fake_table" + getUniqueKey()),
|
|
9761
|
-
fakeId = _useState2[0];
|
|
9762
|
-
|
|
9763
|
-
var attWidth = function attWidth() {
|
|
9764
|
-
var fake = document.querySelector("#" + fakeId);
|
|
9765
|
-
var real = document.querySelector("#" + id + " ." + rootClassName$1A + "-table");
|
|
9766
|
-
|
|
9767
|
-
if (real && fake) {
|
|
9768
|
-
fake.style.width = real.getBoundingClientRect().width + "px";
|
|
9769
|
-
}
|
|
9770
|
-
};
|
|
9771
|
-
|
|
9772
|
-
var header = function header() {
|
|
9773
|
-
document.querySelectorAll("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-header ." + rootClassName$1A + "-cell").forEach(function (element, index) {
|
|
9774
|
-
var fakeElement = document.querySelector("#" + fakeId + " thead tr th:nth-child(" + (index + 2) + ")");
|
|
9775
|
-
|
|
9776
|
-
if (fakeElement) {
|
|
9777
|
-
element.style.minWidth = fakeElement.getBoundingClientRect().width + "px";
|
|
9778
|
-
element.style.height = fakeElement.getBoundingClientRect().height + "px";
|
|
9779
|
-
}
|
|
9780
|
-
});
|
|
9781
|
-
};
|
|
9782
|
-
|
|
9783
|
-
var body = function body() {
|
|
9784
|
-
document.querySelectorAll("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-body ." + rootClassName$1A + "-cell").forEach(function (el) {
|
|
9785
|
-
var columnRef = el.getAttribute('columnref');
|
|
9786
|
-
var rowRef = el.getAttribute('rowref');
|
|
9787
|
-
|
|
9788
|
-
if (columnRef && rowRef) {
|
|
9789
|
-
var fakeElement = document.querySelector("#" + fakeId + " tbody tr:nth-child(" + rowRef + ") td:nth-child(" + columnRef + ")");
|
|
9790
|
-
|
|
9791
|
-
if (fakeElement) {
|
|
9792
|
-
el.style.minWidth = fakeElement.getBoundingClientRect().width + "px";
|
|
9793
|
-
el.style.height = fakeElement.getBoundingClientRect().height + "px";
|
|
9794
|
-
}
|
|
9795
|
-
}
|
|
9796
|
-
});
|
|
9797
|
-
};
|
|
9798
|
-
|
|
9799
|
-
var midWith = function midWith() {
|
|
9800
|
-
var arrowControls = document.querySelector("#" + id + " ." + rootClassName$1A + "-arrow-control");
|
|
9801
|
-
var mid = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
|
|
9802
|
-
if (!mid) return;
|
|
9803
|
-
mid.classList.add('over');
|
|
9804
|
-
|
|
9805
|
-
if (arrowControls) {
|
|
9806
|
-
arrowControls.style.display = 'flex';
|
|
9807
|
-
}
|
|
9808
|
-
|
|
9809
|
-
var clientWidth = mid.clientWidth,
|
|
9810
|
-
scrollWidth = mid.scrollWidth;
|
|
9811
|
-
|
|
9812
|
-
if (clientWidth >= scrollWidth || Array.from(mid.querySelectorAll("." + rootClassName$1A + "-cell")).some(function (it) {
|
|
9813
|
-
return it.getBoundingClientRect().width > clientWidth;
|
|
9814
|
-
})) {
|
|
9815
|
-
mid.classList.remove('over');
|
|
9816
|
-
|
|
9817
|
-
if (arrowControls) {
|
|
9818
|
-
arrowControls.style.display = 'none';
|
|
9819
|
-
}
|
|
9820
|
-
}
|
|
9821
|
-
};
|
|
9822
|
-
|
|
9823
|
-
React.useLayoutEffect(function () {
|
|
9824
|
-
attWidth();
|
|
9825
|
-
header();
|
|
9826
|
-
body();
|
|
9827
|
-
midWith();
|
|
9828
|
-
}, [props.lines, props.columns]);
|
|
9754
|
+
function useDraggableScroll(reference) {
|
|
9829
9755
|
React.useEffect(function () {
|
|
9830
|
-
var
|
|
9831
|
-
attWidth();
|
|
9832
|
-
header();
|
|
9833
|
-
body();
|
|
9834
|
-
midWith();
|
|
9835
|
-
};
|
|
9836
|
-
|
|
9837
|
-
window.addEventListener('resize', func);
|
|
9838
|
-
return function () {
|
|
9839
|
-
window.removeEventListener('resize', func);
|
|
9840
|
-
};
|
|
9841
|
-
}, []);
|
|
9842
|
-
React.useEffect(function () {
|
|
9843
|
-
var element = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
|
|
9756
|
+
var element = reference.current;
|
|
9844
9757
|
var pos = {
|
|
9845
9758
|
left: 0,
|
|
9846
9759
|
x: 0
|
|
@@ -9848,10 +9761,10 @@ function TableWithOverflow(props) {
|
|
|
9848
9761
|
var moving = false;
|
|
9849
9762
|
|
|
9850
9763
|
var mouseDownHandler = function mouseDownHandler(evt) {
|
|
9851
|
-
if (evt.button === 0 && element.scrollWidth > element.clientWidth) {
|
|
9764
|
+
if (evt.button === 0 && (element === null || element === void 0 ? void 0 : element.scrollWidth) > (element === null || element === void 0 ? void 0 : element.clientWidth)) {
|
|
9852
9765
|
moving = true;
|
|
9853
9766
|
pos = {
|
|
9854
|
-
left: element.scrollLeft,
|
|
9767
|
+
left: (element === null || element === void 0 ? void 0 : element.scrollLeft) || 0,
|
|
9855
9768
|
x: evt.clientX
|
|
9856
9769
|
};
|
|
9857
9770
|
}
|
|
@@ -9869,170 +9782,160 @@ function TableWithOverflow(props) {
|
|
|
9869
9782
|
moving = false;
|
|
9870
9783
|
};
|
|
9871
9784
|
|
|
9872
|
-
element.addEventListener('mousedown', mouseDownHandler);
|
|
9785
|
+
element === null || element === void 0 ? void 0 : element.addEventListener('mousedown', mouseDownHandler);
|
|
9873
9786
|
document.addEventListener('mousemove', mouseMoveHandler);
|
|
9874
9787
|
document.addEventListener('mouseup', mouseUpHandler);
|
|
9875
9788
|
return function () {
|
|
9876
|
-
element.removeEventListener('mousedown', mouseDownHandler);
|
|
9789
|
+
element === null || element === void 0 ? void 0 : element.removeEventListener('mousedown', mouseDownHandler);
|
|
9877
9790
|
document.removeEventListener('mousemove', mouseMoveHandler);
|
|
9878
9791
|
document.removeEventListener('mouseup', mouseUpHandler);
|
|
9879
9792
|
};
|
|
9880
|
-
}, []);
|
|
9881
|
-
|
|
9882
|
-
id: id,
|
|
9883
|
-
className: rootClassName$1A
|
|
9884
|
-
}, React__default.createElement("table", {
|
|
9885
|
-
id: fakeId,
|
|
9886
|
-
className: rootClassName$1A + "-fake-table"
|
|
9887
|
-
}, React__default.createElement("thead", null, React__default.createElement("tr", null, React__default.createElement("th", null), props.columns && props.columns.length ? Array.from(props.columns).map(function (column, columnIndex) {
|
|
9888
|
-
return React__default.createElement("th", Object.assign({}, column.props, {
|
|
9889
|
-
key: column.key ? column.key : columnIndex
|
|
9890
|
-
}), column.value);
|
|
9891
|
-
}) : undefined, React__default.createElement("th", null))), React__default.createElement("tbody", null, React__default.createElement("tr", null), props.lines && props.lines.length ? Array.from(props.lines).map(function (line, index) {
|
|
9892
|
-
var key = line.key ? line.key : index;
|
|
9893
|
-
delete line.key;
|
|
9894
|
-
var lineProps = line.props ? line.props : {};
|
|
9895
|
-
delete line.props;
|
|
9896
|
-
return React__default.createElement("tr", Object.assign({
|
|
9897
|
-
key: key
|
|
9898
|
-
}, lineProps), React__default.createElement("td", null), Object.entries(line).map(function (cell, valueIndex) {
|
|
9899
|
-
var column = Array.from(props.columns).find(function (c) {
|
|
9900
|
-
return c.key === cell[0];
|
|
9901
|
-
});
|
|
9902
|
-
return (column === null || column === void 0 ? void 0 : column.key) === 'actions' ? React__default.createElement("td", {
|
|
9903
|
-
key: fakeId + "-actions"
|
|
9904
|
-
}) : React__default.createElement("td", Object.assign({
|
|
9905
|
-
key: cell[1].key ? cell[1].key : valueIndex
|
|
9906
|
-
}, column === null || column === void 0 ? void 0 : column.props, cell[1].props), cell[1]);
|
|
9907
|
-
}), React__default.createElement("td", null));
|
|
9908
|
-
}) : undefined)), props.upperHeader ? React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
9909
|
-
className: getMergedClassNames([rootClassName$1A + "-upper-header", props.upperHeader.active ? 'active' : ''])
|
|
9910
|
-
}, props.upperHeader.buttons && props.upperHeader.buttons.length ? props.upperHeader.buttons.map(function (btn, index) {
|
|
9911
|
-
var _props$upperHeader;
|
|
9793
|
+
}, [reference]);
|
|
9794
|
+
}
|
|
9912
9795
|
|
|
9913
|
-
|
|
9914
|
-
id: btn.id || undefined,
|
|
9915
|
-
key: index,
|
|
9916
|
-
onClick: btn.onClick,
|
|
9917
|
-
disabled: !((_props$upperHeader = props.upperHeader) !== null && _props$upperHeader !== void 0 && _props$upperHeader.active) || btn.disabled || false
|
|
9918
|
-
}, React__default.createElement("span", null, btn.icon), btn.label);
|
|
9919
|
-
}) : undefined)) : undefined, React__default.createElement("div", {
|
|
9920
|
-
className: rootClassName$1A + "-outer-table"
|
|
9921
|
-
}, React__default.createElement("div", {
|
|
9922
|
-
className: getMergedClassNames([rootClassName$1A + "-table", props.upperHeader ? 'has-upper-header' : ''])
|
|
9923
|
-
}, React__default.createElement("div", {
|
|
9924
|
-
className: rootClassName$1A + "-left"
|
|
9925
|
-
}, React__default.createElement("div", {
|
|
9926
|
-
className: rootClassName$1A + "-header"
|
|
9927
|
-
}, props.columns && props.columns.length ? Array.from(props.columns).slice(0, 2).map(function (column, index) {
|
|
9928
|
-
return React__default.createElement("div", Object.assign({
|
|
9929
|
-
key: index
|
|
9930
|
-
}, column.props, {
|
|
9931
|
-
className: getMergedClassNames([rootClassName$1A + "-cell", column.props && column.props.className ? column.props.className : '']),
|
|
9932
|
-
style: {
|
|
9933
|
-
width: '50%'
|
|
9934
|
-
}
|
|
9935
|
-
}), column.value);
|
|
9936
|
-
}) : undefined), React__default.createElement("div", {
|
|
9937
|
-
className: rootClassName$1A + "-body"
|
|
9938
|
-
}, props.lines && props.lines.length ? Array.from(props.lines).map(function (line, index) {
|
|
9939
|
-
var _props$columns$, _props$columns$2;
|
|
9796
|
+
var rootClassName$1A = 'component-upper-header-table';
|
|
9940
9797
|
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
columnref: 2,
|
|
9947
|
-
rowref: index + 2
|
|
9948
|
-
}, line[(_props$columns$ = props.columns[0]) === null || _props$columns$ === void 0 ? void 0 : _props$columns$.key]), React__default.createElement("div", {
|
|
9949
|
-
className: rootClassName$1A + "-cell",
|
|
9950
|
-
columnref: 3,
|
|
9951
|
-
rowref: index + 2
|
|
9952
|
-
}, line[(_props$columns$2 = props.columns[1]) === null || _props$columns$2 === void 0 ? void 0 : _props$columns$2.key]));
|
|
9953
|
-
}) : undefined)), React__default.createElement("div", {
|
|
9954
|
-
className: rootClassName$1A + "-mid"
|
|
9798
|
+
function TableUpperHeader(props) {
|
|
9799
|
+
var _props$leftContent, _props$rightContent;
|
|
9800
|
+
|
|
9801
|
+
return React__default.createElement("div", {
|
|
9802
|
+
className: getMergedClassNames([rootClassName$1A, props.active ? 'active' : ''])
|
|
9955
9803
|
}, React__default.createElement("div", {
|
|
9956
|
-
className: rootClassName$1A + "-
|
|
9957
|
-
},
|
|
9958
|
-
return React__default.createElement("
|
|
9959
|
-
key:
|
|
9960
|
-
},
|
|
9961
|
-
|
|
9962
|
-
}),
|
|
9963
|
-
})
|
|
9964
|
-
className: rootClassName$1A + "-body"
|
|
9965
|
-
}, props.lines && props.lines.length ? Array.from(props.lines).map(function (line, lineIndex) {
|
|
9966
|
-
return React__default.createElement("div", {
|
|
9967
|
-
key: lineIndex,
|
|
9968
|
-
className: getMergedClassNames([rootClassName$1A + "-row", line.disabled ? 'disabled' : ''])
|
|
9969
|
-
}, props.columns && props.columns.length ? Array.from(props.columns).map(function (column, index) {
|
|
9970
|
-
return React__default.createElement("div", {
|
|
9971
|
-
columnref: index + 2,
|
|
9972
|
-
rowref: lineIndex + 2,
|
|
9973
|
-
key: index,
|
|
9974
|
-
className: rootClassName$1A + "-cell"
|
|
9975
|
-
}, line[column.key]);
|
|
9976
|
-
}).slice(2, props.columns.length - 1) : undefined);
|
|
9977
|
-
}) : undefined)), React__default.createElement("div", {
|
|
9804
|
+
className: rootClassName$1A + "-left"
|
|
9805
|
+
}, (_props$leftContent = props.leftContent) === null || _props$leftContent === void 0 ? void 0 : _props$leftContent.map(function (btn, i) {
|
|
9806
|
+
return React__default.createElement("button", Object.assign({
|
|
9807
|
+
key: i
|
|
9808
|
+
}, btn, {
|
|
9809
|
+
disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false
|
|
9810
|
+
}), btn.leftIcon && React__default.createElement("span", null, btn.leftIcon), btn.label, btn.rightIcon && React__default.createElement("span", null, btn.rightIcon));
|
|
9811
|
+
})), React__default.createElement("div", {
|
|
9978
9812
|
className: rootClassName$1A + "-right"
|
|
9979
|
-
},
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
},
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9813
|
+
}, (_props$rightContent = props.rightContent) === null || _props$rightContent === void 0 ? void 0 : _props$rightContent.map(function (btn, i) {
|
|
9814
|
+
return React__default.createElement("button", Object.assign({
|
|
9815
|
+
key: i
|
|
9816
|
+
}, btn, {
|
|
9817
|
+
disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false
|
|
9818
|
+
}), btn.leftIcon && React__default.createElement("span", null, btn.leftIcon), btn.label, btn.rightIcon && React__default.createElement("span", null, btn.rightIcon));
|
|
9819
|
+
})));
|
|
9820
|
+
}
|
|
9821
|
+
|
|
9822
|
+
var TableUpperHeader$1 = React.memo(TableUpperHeader);
|
|
9823
|
+
|
|
9824
|
+
var rootClassName$1B = 'component-table-with-overflow';
|
|
9825
|
+
|
|
9826
|
+
function TableWithOverflow(props) {
|
|
9827
|
+
var _props$columns, _props$lines;
|
|
9828
|
+
|
|
9829
|
+
var wrapperClassName = React.useMemo(function () {
|
|
9830
|
+
return getMergedClassNames([rootClassName$1B + "-wrapper", props.hasActionsCol ? 'has-actions-col' : '', props.upperHeader ? 'has-upper-header' : '', 'left-columns-padding']);
|
|
9831
|
+
}, [props.hasActionsCol, props.upperHeader]);
|
|
9832
|
+
var outerTableRef = React.createRef();
|
|
9833
|
+
useDraggableScroll(outerTableRef);
|
|
9834
|
+
|
|
9835
|
+
var handleArrowClick = function handleArrowClick(toAdd) {
|
|
9836
|
+
if (toAdd === void 0) {
|
|
9837
|
+
toAdd = 0;
|
|
9838
|
+
}
|
|
9839
|
+
|
|
9840
|
+
if (outerTableRef.current) {
|
|
9841
|
+
var left = outerTableRef.current.scrollLeft;
|
|
9993
9842
|
scrollSmooth({
|
|
9994
|
-
element:
|
|
9843
|
+
element: outerTableRef.current,
|
|
9995
9844
|
top: 0,
|
|
9996
|
-
left:
|
|
9845
|
+
left: left + toAdd,
|
|
9997
9846
|
behavior: 'smooth',
|
|
9998
9847
|
duration: 400
|
|
9999
9848
|
});
|
|
10000
9849
|
}
|
|
9850
|
+
};
|
|
9851
|
+
|
|
9852
|
+
var paddingLeft = React.useMemo(function () {
|
|
9853
|
+
return props.columns.reduce(function (prev, atual) {
|
|
9854
|
+
var _atual$absolute;
|
|
9855
|
+
|
|
9856
|
+
var n = (_atual$absolute = atual.absolute) !== null && _atual$absolute !== void 0 && _atual$absolute.left ? parseInt(atual.absolute.width) : 0;
|
|
9857
|
+
return prev + n;
|
|
9858
|
+
}, 8) + "px";
|
|
9859
|
+
}, [props.columns]);
|
|
9860
|
+
var paddingRight = React.useMemo(function () {
|
|
9861
|
+
return props.columns.reduce(function (prev, atual) {
|
|
9862
|
+
var _atual$absolute2;
|
|
9863
|
+
|
|
9864
|
+
var n = (_atual$absolute2 = atual.absolute) !== null && _atual$absolute2 !== void 0 && _atual$absolute2.right ? parseInt(atual.absolute.width) : 0;
|
|
9865
|
+
return prev + n;
|
|
9866
|
+
}, 8) + "px";
|
|
9867
|
+
}, [props.columns]);
|
|
9868
|
+
return React__default.createElement("div", {
|
|
9869
|
+
className: rootClassName$1B
|
|
9870
|
+
}, props.upperHeader ? React__default.createElement("div", {
|
|
9871
|
+
className: rootClassName$1B + "-upper-header"
|
|
9872
|
+
}, React__default.createElement(TableUpperHeader$1, Object.assign({}, props.upperHeader))) : undefined, React__default.createElement("div", {
|
|
9873
|
+
className: wrapperClassName,
|
|
9874
|
+
style: {
|
|
9875
|
+
paddingLeft: paddingLeft,
|
|
9876
|
+
paddingRight: paddingRight
|
|
9877
|
+
}
|
|
9878
|
+
}, props.showTopNavigator && React__default.createElement("div", {
|
|
9879
|
+
className: rootClassName$1B + "-table-arrows"
|
|
9880
|
+
}, React__default.createElement(IconButton$1, {
|
|
9881
|
+
icon: React__default.createElement(CircleArrowLeft, null),
|
|
9882
|
+
onClick: function onClick() {
|
|
9883
|
+
handleArrowClick(-150);
|
|
9884
|
+
}
|
|
10001
9885
|
}), React__default.createElement(IconButton$1, {
|
|
10002
9886
|
icon: React__default.createElement(CircleArrowRight, null),
|
|
10003
9887
|
onClick: function onClick() {
|
|
10004
|
-
|
|
10005
|
-
scrollSmooth({
|
|
10006
|
-
element: mid,
|
|
10007
|
-
top: 0,
|
|
10008
|
-
left: mid.scrollLeft + 150,
|
|
10009
|
-
behavior: 'smooth',
|
|
10010
|
-
duration: 400
|
|
10011
|
-
});
|
|
9888
|
+
handleArrowClick(150);
|
|
10012
9889
|
}
|
|
10013
|
-
}))
|
|
10014
|
-
className: rootClassName$
|
|
10015
|
-
|
|
10016
|
-
|
|
9890
|
+
})), React__default.createElement("div", {
|
|
9891
|
+
className: rootClassName$1B + "-outer-table",
|
|
9892
|
+
ref: outerTableRef
|
|
9893
|
+
}, React__default.createElement("table", null, React__default.createElement("thead", null, React__default.createElement("tr", null, React__default.createElement("th", {
|
|
9894
|
+
className: 'absolute left-0'
|
|
9895
|
+
}), (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.map(function (column) {
|
|
9896
|
+
var _column$props;
|
|
9897
|
+
|
|
9898
|
+
return React__default.createElement("th", Object.assign({
|
|
9899
|
+
key: "header-" + column.key
|
|
9900
|
+
}, column.props, {
|
|
9901
|
+
style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, column.absolute),
|
|
9902
|
+
className: getMergedClassNames([column.key + "-cell", column.absolute ? 'absolute' : ''])
|
|
9903
|
+
}), column.value);
|
|
9904
|
+
}), React__default.createElement("th", {
|
|
9905
|
+
className: 'absolute right-0'
|
|
9906
|
+
})), React__default.createElement("tr", null)), React__default.createElement("tbody", null, (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
|
|
9907
|
+
var _props$columns2;
|
|
9908
|
+
|
|
9909
|
+
return React__default.createElement("tr", {
|
|
10017
9910
|
key: lineIndex,
|
|
10018
|
-
|
|
10019
|
-
},
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
9911
|
+
"aria-disabled": line.disabled || false
|
|
9912
|
+
}, React__default.createElement("td", {
|
|
9913
|
+
"data-draggable": false,
|
|
9914
|
+
className: 'absolute left-0'
|
|
9915
|
+
}), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
|
|
9916
|
+
var _column$props2, _column$props3;
|
|
9917
|
+
|
|
9918
|
+
return React__default.createElement("td", Object.assign({
|
|
9919
|
+
"data-draggable": !Boolean(column.absolute),
|
|
9920
|
+
key: lineIndex + "-" + column.key
|
|
9921
|
+
}, column.props, {
|
|
9922
|
+
style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, column.absolute),
|
|
9923
|
+
className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", column.absolute ? 'absolute' : ''])
|
|
9924
|
+
}), line[column.key]);
|
|
9925
|
+
}), React__default.createElement("td", {
|
|
9926
|
+
className: 'absolute right-0'
|
|
9927
|
+
}));
|
|
9928
|
+
}))))));
|
|
10028
9929
|
}
|
|
10029
9930
|
|
|
10030
9931
|
TableWithOverflow.defaultProps = {
|
|
10031
|
-
showArrowControl: true
|
|
9932
|
+
showArrowControl: true,
|
|
9933
|
+
hasActionsCol: true,
|
|
9934
|
+
showTopNavigator: true
|
|
10032
9935
|
};
|
|
10033
9936
|
var TableWithOverflow$1 = React.memo(TableWithOverflow);
|
|
10034
9937
|
|
|
10035
|
-
var rootClassName$
|
|
9938
|
+
var rootClassName$1C = 'component-tabs';
|
|
10036
9939
|
|
|
10037
9940
|
function Tabs(props) {
|
|
10038
9941
|
var _props$tabs;
|
|
@@ -10062,14 +9965,14 @@ function Tabs(props) {
|
|
|
10062
9965
|
};
|
|
10063
9966
|
}, [startBar]);
|
|
10064
9967
|
return React__default.createElement("nav", {
|
|
10065
|
-
className: rootClassName$
|
|
9968
|
+
className: rootClassName$1C,
|
|
10066
9969
|
style: {
|
|
10067
9970
|
justifyContent: props.justify
|
|
10068
9971
|
},
|
|
10069
9972
|
ref: navRef
|
|
10070
9973
|
}, (_props$tabs = props.tabs) === null || _props$tabs === void 0 ? void 0 : _props$tabs.map(function (tab, index) {
|
|
10071
9974
|
return React__default.createElement("button", {
|
|
10072
|
-
className: getMergedClassNames([rootClassName$
|
|
9975
|
+
className: getMergedClassNames([rootClassName$1C + "-tab", props.atual === index ? 'atual' : '', props.atual && props.changeTitleColor ? 'change' : '']),
|
|
10073
9976
|
onClick: function onClick() {
|
|
10074
9977
|
props.onChange(index);
|
|
10075
9978
|
},
|
|
@@ -10079,16 +9982,16 @@ function Tabs(props) {
|
|
|
10079
9982
|
}, React__default.createElement("span", null, tab.title));
|
|
10080
9983
|
}), React__default.createElement("div", {
|
|
10081
9984
|
ref: actualRef,
|
|
10082
|
-
className: rootClassName$
|
|
9985
|
+
className: rootClassName$1C + "-bar"
|
|
10083
9986
|
}));
|
|
10084
9987
|
}
|
|
10085
9988
|
|
|
10086
9989
|
var Tabs$1 = React.memo(Tabs);
|
|
10087
9990
|
|
|
10088
|
-
var rootClassName$
|
|
9991
|
+
var rootClassName$1D = 'icon-component';
|
|
10089
9992
|
var AlignCenterIcon = function AlignCenterIcon() {
|
|
10090
9993
|
return React__default.createElement("svg", {
|
|
10091
|
-
className: rootClassName$
|
|
9994
|
+
className: rootClassName$1D,
|
|
10092
9995
|
viewBox: '0 0 24 24',
|
|
10093
9996
|
fill: 'currentColor',
|
|
10094
9997
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10097,10 +10000,10 @@ var AlignCenterIcon = function AlignCenterIcon() {
|
|
|
10097
10000
|
}));
|
|
10098
10001
|
};
|
|
10099
10002
|
|
|
10100
|
-
var rootClassName$
|
|
10003
|
+
var rootClassName$1E = 'icon-component';
|
|
10101
10004
|
var AlignJustifyIcon = function AlignJustifyIcon() {
|
|
10102
10005
|
return React__default.createElement("svg", {
|
|
10103
|
-
className: rootClassName$
|
|
10006
|
+
className: rootClassName$1E,
|
|
10104
10007
|
viewBox: '0 0 24 24',
|
|
10105
10008
|
fill: 'currentColor',
|
|
10106
10009
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10109,10 +10012,10 @@ var AlignJustifyIcon = function AlignJustifyIcon() {
|
|
|
10109
10012
|
}));
|
|
10110
10013
|
};
|
|
10111
10014
|
|
|
10112
|
-
var rootClassName$
|
|
10015
|
+
var rootClassName$1F = 'icon-component';
|
|
10113
10016
|
var AlignLeftIcon = function AlignLeftIcon() {
|
|
10114
10017
|
return React__default.createElement("svg", {
|
|
10115
|
-
className: rootClassName$
|
|
10018
|
+
className: rootClassName$1F,
|
|
10116
10019
|
viewBox: '0 0 24 24',
|
|
10117
10020
|
fill: 'currentColor',
|
|
10118
10021
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10121,10 +10024,10 @@ var AlignLeftIcon = function AlignLeftIcon() {
|
|
|
10121
10024
|
}));
|
|
10122
10025
|
};
|
|
10123
10026
|
|
|
10124
|
-
var rootClassName$
|
|
10027
|
+
var rootClassName$1G = 'icon-component';
|
|
10125
10028
|
var AlignRightIcon = function AlignRightIcon() {
|
|
10126
10029
|
return React__default.createElement("svg", {
|
|
10127
|
-
className: rootClassName$
|
|
10030
|
+
className: rootClassName$1G,
|
|
10128
10031
|
viewBox: '0 0 24 24',
|
|
10129
10032
|
fill: 'currentColor',
|
|
10130
10033
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10133,10 +10036,10 @@ var AlignRightIcon = function AlignRightIcon() {
|
|
|
10133
10036
|
}));
|
|
10134
10037
|
};
|
|
10135
10038
|
|
|
10136
|
-
var rootClassName$
|
|
10039
|
+
var rootClassName$1H = 'icon-component';
|
|
10137
10040
|
var BoldIcon = function BoldIcon() {
|
|
10138
10041
|
return React__default.createElement("svg", {
|
|
10139
|
-
className: rootClassName$
|
|
10042
|
+
className: rootClassName$1H,
|
|
10140
10043
|
viewBox: '0 0 24 24',
|
|
10141
10044
|
fill: 'currentColor',
|
|
10142
10045
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10145,10 +10048,10 @@ var BoldIcon = function BoldIcon() {
|
|
|
10145
10048
|
}));
|
|
10146
10049
|
};
|
|
10147
10050
|
|
|
10148
|
-
var rootClassName$
|
|
10051
|
+
var rootClassName$1I = 'icon-component';
|
|
10149
10052
|
var FontColorIcon = function FontColorIcon(props) {
|
|
10150
10053
|
return React__default.createElement("svg", {
|
|
10151
|
-
className: rootClassName$
|
|
10054
|
+
className: rootClassName$1I,
|
|
10152
10055
|
viewBox: '-52 -80 299 372',
|
|
10153
10056
|
fill: 'currentColor',
|
|
10154
10057
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10170,10 +10073,10 @@ var FontColorIcon = function FontColorIcon(props) {
|
|
|
10170
10073
|
})));
|
|
10171
10074
|
};
|
|
10172
10075
|
|
|
10173
|
-
var rootClassName$
|
|
10076
|
+
var rootClassName$1J = 'icon-component';
|
|
10174
10077
|
var FontIcon = function FontIcon() {
|
|
10175
10078
|
return React__default.createElement("svg", {
|
|
10176
|
-
className: rootClassName$
|
|
10079
|
+
className: rootClassName$1J,
|
|
10177
10080
|
viewBox: '0 0 24 24',
|
|
10178
10081
|
fill: 'currentColor',
|
|
10179
10082
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10182,10 +10085,10 @@ var FontIcon = function FontIcon() {
|
|
|
10182
10085
|
}));
|
|
10183
10086
|
};
|
|
10184
10087
|
|
|
10185
|
-
var rootClassName$
|
|
10088
|
+
var rootClassName$1K = 'icon-component';
|
|
10186
10089
|
var ItalicIcon = function ItalicIcon() {
|
|
10187
10090
|
return React__default.createElement("svg", {
|
|
10188
|
-
className: rootClassName$
|
|
10091
|
+
className: rootClassName$1K,
|
|
10189
10092
|
viewBox: '0 0 24 24',
|
|
10190
10093
|
fill: 'currentColor',
|
|
10191
10094
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10194,10 +10097,10 @@ var ItalicIcon = function ItalicIcon() {
|
|
|
10194
10097
|
}));
|
|
10195
10098
|
};
|
|
10196
10099
|
|
|
10197
|
-
var rootClassName$
|
|
10100
|
+
var rootClassName$1L = 'icon-component';
|
|
10198
10101
|
var LinkIcon = function LinkIcon() {
|
|
10199
10102
|
return React__default.createElement("svg", {
|
|
10200
|
-
className: rootClassName$
|
|
10103
|
+
className: rootClassName$1L,
|
|
10201
10104
|
viewBox: '0 0 24 24',
|
|
10202
10105
|
fill: 'currentColor',
|
|
10203
10106
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10206,10 +10109,10 @@ var LinkIcon = function LinkIcon() {
|
|
|
10206
10109
|
}));
|
|
10207
10110
|
};
|
|
10208
10111
|
|
|
10209
|
-
var rootClassName$
|
|
10112
|
+
var rootClassName$1M = 'icon-component';
|
|
10210
10113
|
var RedoIcon = function RedoIcon() {
|
|
10211
10114
|
return React__default.createElement("svg", {
|
|
10212
|
-
className: rootClassName$
|
|
10115
|
+
className: rootClassName$1M,
|
|
10213
10116
|
viewBox: '0 0 24 24',
|
|
10214
10117
|
fill: 'currentColor',
|
|
10215
10118
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10218,10 +10121,10 @@ var RedoIcon = function RedoIcon() {
|
|
|
10218
10121
|
}));
|
|
10219
10122
|
};
|
|
10220
10123
|
|
|
10221
|
-
var rootClassName$
|
|
10124
|
+
var rootClassName$1N = 'icon-component';
|
|
10222
10125
|
var UnderlineIcon = function UnderlineIcon() {
|
|
10223
10126
|
return React__default.createElement("svg", {
|
|
10224
|
-
className: rootClassName$
|
|
10127
|
+
className: rootClassName$1N,
|
|
10225
10128
|
viewBox: '0 0 24 24',
|
|
10226
10129
|
fill: 'currentColor',
|
|
10227
10130
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10230,10 +10133,10 @@ var UnderlineIcon = function UnderlineIcon() {
|
|
|
10230
10133
|
}));
|
|
10231
10134
|
};
|
|
10232
10135
|
|
|
10233
|
-
var rootClassName$
|
|
10136
|
+
var rootClassName$1O = 'icon-component';
|
|
10234
10137
|
var UndoIcon = function UndoIcon() {
|
|
10235
10138
|
return React__default.createElement("svg", {
|
|
10236
|
-
className: rootClassName$
|
|
10139
|
+
className: rootClassName$1O,
|
|
10237
10140
|
viewBox: '0 0 24 24',
|
|
10238
10141
|
fill: 'currentColor',
|
|
10239
10142
|
xmlns: 'http://www.w3.org/2000/svg'
|
|
@@ -10242,7 +10145,7 @@ var UndoIcon = function UndoIcon() {
|
|
|
10242
10145
|
}));
|
|
10243
10146
|
};
|
|
10244
10147
|
|
|
10245
|
-
var rootClassName$
|
|
10148
|
+
var rootClassName$1P = 'text-editor-header-input';
|
|
10246
10149
|
function TextEditorHeaderInput(props) {
|
|
10247
10150
|
var _useState = React.useState(getUniqueKey()),
|
|
10248
10151
|
inputLabelId = _useState[0];
|
|
@@ -10262,7 +10165,7 @@ function TextEditorHeaderInput(props) {
|
|
|
10262
10165
|
props.onChange(evt);
|
|
10263
10166
|
evt.stopPropagation();
|
|
10264
10167
|
},
|
|
10265
|
-
className: getMergedClassNames([rootClassName$
|
|
10168
|
+
className: getMergedClassNames([rootClassName$1P + "-input", props.className || '']),
|
|
10266
10169
|
value: props.value,
|
|
10267
10170
|
onKeyUp: function onKeyUp(evt) {
|
|
10268
10171
|
if (evt.key === 'Enter' && typeof props.onEnter === 'function') {
|
|
@@ -10273,10 +10176,10 @@ function TextEditorHeaderInput(props) {
|
|
|
10273
10176
|
};
|
|
10274
10177
|
|
|
10275
10178
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10276
|
-
className: rootClassName$
|
|
10179
|
+
className: rootClassName$1P
|
|
10277
10180
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10278
10181
|
id: inputLabelId,
|
|
10279
|
-
className: getMergedClassNames([rootClassName$
|
|
10182
|
+
className: getMergedClassNames([rootClassName$1P + "-label", props.value ? 'top' : ''])
|
|
10280
10183
|
}, props.label), /*#__PURE__*/React__default.createElement("input", getInputProps()));
|
|
10281
10184
|
}
|
|
10282
10185
|
TextEditorHeaderInput.propTypes = {
|
|
@@ -10289,10 +10192,10 @@ TextEditorHeaderInput.defaultProps = {
|
|
|
10289
10192
|
onChange: function onChange() {}
|
|
10290
10193
|
};
|
|
10291
10194
|
|
|
10292
|
-
var rootClassName$
|
|
10195
|
+
var rootClassName$1Q = 'text-editor-menu-button';
|
|
10293
10196
|
function TextEditorMenuButton(props) {
|
|
10294
10197
|
return /*#__PURE__*/React__default.createElement("button", _extends({}, props, {
|
|
10295
|
-
className: getMergedClassNames([props.className || '', rootClassName$
|
|
10198
|
+
className: getMergedClassNames([props.className || '', rootClassName$1Q])
|
|
10296
10199
|
}));
|
|
10297
10200
|
}
|
|
10298
10201
|
TextEditorMenuButton.propTypes = {
|
|
@@ -10300,8 +10203,8 @@ TextEditorMenuButton.propTypes = {
|
|
|
10300
10203
|
disabled: propTypes.bool
|
|
10301
10204
|
};
|
|
10302
10205
|
|
|
10303
|
-
var rootClassName$
|
|
10304
|
-
var colorClassName = rootClassName$
|
|
10206
|
+
var rootClassName$1R = 'text-editor-color-picker';
|
|
10207
|
+
var colorClassName = rootClassName$1R + "-color-button";
|
|
10305
10208
|
var defaultColors = ['#121212', '#323c32', '#5a645a', '#828a82', '#33820d', '#3fa110'];
|
|
10306
10209
|
|
|
10307
10210
|
var ColorButton = function ColorButton(props) {
|
|
@@ -10382,9 +10285,9 @@ function TextEditorColorPicker(props) {
|
|
|
10382
10285
|
|
|
10383
10286
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10384
10287
|
id: id,
|
|
10385
|
-
className: rootClassName$
|
|
10288
|
+
className: rootClassName$1R
|
|
10386
10289
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10387
|
-
className: rootClassName$
|
|
10290
|
+
className: rootClassName$1R + "-colors"
|
|
10388
10291
|
}, defaultColors.map(function (color, index) {
|
|
10389
10292
|
return /*#__PURE__*/React__default.createElement(ColorButton, {
|
|
10390
10293
|
key: index,
|
|
@@ -10394,7 +10297,7 @@ function TextEditorColorPicker(props) {
|
|
|
10394
10297
|
}
|
|
10395
10298
|
});
|
|
10396
10299
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10397
|
-
className: rootClassName$
|
|
10300
|
+
className: rootClassName$1R + "-colors"
|
|
10398
10301
|
}, lastUsedColors.map(function (color, index) {
|
|
10399
10302
|
return /*#__PURE__*/React__default.createElement(ColorButton, {
|
|
10400
10303
|
key: index,
|
|
@@ -10405,9 +10308,9 @@ function TextEditorColorPicker(props) {
|
|
|
10405
10308
|
}
|
|
10406
10309
|
});
|
|
10407
10310
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10408
|
-
className: rootClassName$
|
|
10311
|
+
className: rootClassName$1R + "-hexa-row"
|
|
10409
10312
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10410
|
-
className: rootClassName$
|
|
10313
|
+
className: rootClassName$1R + "-picker-col"
|
|
10411
10314
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
10412
10315
|
value: hexa,
|
|
10413
10316
|
onChange: function onChange(evt) {
|
|
@@ -10418,7 +10321,7 @@ function TextEditorColorPicker(props) {
|
|
|
10418
10321
|
setHexa(val);
|
|
10419
10322
|
}, 200);
|
|
10420
10323
|
},
|
|
10421
|
-
className: rootClassName$
|
|
10324
|
+
className: rootClassName$1R + "-color-picker",
|
|
10422
10325
|
type: "color"
|
|
10423
10326
|
})), /*#__PURE__*/React__default.createElement(TextEditorHeaderInput, {
|
|
10424
10327
|
label: "Hexadecimal",
|
|
@@ -10444,10 +10347,10 @@ TextEditorColorPicker.defaultProps = {
|
|
|
10444
10347
|
onChange: function onChange() {}
|
|
10445
10348
|
};
|
|
10446
10349
|
|
|
10447
|
-
var rootClassName$
|
|
10350
|
+
var rootClassName$1S = 'text-editor-header-button';
|
|
10448
10351
|
function TextEditorHeaderButton(props) {
|
|
10449
10352
|
return /*#__PURE__*/React__default.createElement("button", {
|
|
10450
|
-
className: getMergedClassNames([rootClassName$
|
|
10353
|
+
className: getMergedClassNames([rootClassName$1S, props.active ? 'active' : '']),
|
|
10451
10354
|
onClick: props.onClick,
|
|
10452
10355
|
disabled: props.disabled
|
|
10453
10356
|
}, props.icon);
|
|
@@ -10459,7 +10362,7 @@ TextEditorHeaderButton.propTypes = {
|
|
|
10459
10362
|
disabled: propTypes.bool
|
|
10460
10363
|
};
|
|
10461
10364
|
|
|
10462
|
-
var rootClassName$
|
|
10365
|
+
var rootClassName$1T = 'text-editor-title-choser';
|
|
10463
10366
|
function TextEditorTitleChoser(props) {
|
|
10464
10367
|
var _useState = React.useState(getUniqueKey()),
|
|
10465
10368
|
id = _useState[0];
|
|
@@ -10503,7 +10406,7 @@ function TextEditorTitleChoser(props) {
|
|
|
10503
10406
|
};
|
|
10504
10407
|
|
|
10505
10408
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10506
|
-
className: rootClassName$
|
|
10409
|
+
className: rootClassName$1T,
|
|
10507
10410
|
id: id
|
|
10508
10411
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
10509
10412
|
onClick: function onClick() {
|
|
@@ -10523,7 +10426,7 @@ TextEditorTitleChoser.defaultProps = {
|
|
|
10523
10426
|
onChange: function onChange() {}
|
|
10524
10427
|
};
|
|
10525
10428
|
|
|
10526
|
-
var rootClassName$
|
|
10429
|
+
var rootClassName$1U = 'text-editor-url-creator';
|
|
10527
10430
|
function TextEditorUrlCreator(props) {
|
|
10528
10431
|
var _useState = React.useState(getUniqueKey()),
|
|
10529
10432
|
id = _useState[0];
|
|
@@ -10599,9 +10502,9 @@ function TextEditorUrlCreator(props) {
|
|
|
10599
10502
|
|
|
10600
10503
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10601
10504
|
id: id,
|
|
10602
|
-
className: rootClassName$
|
|
10505
|
+
className: rootClassName$1U
|
|
10603
10506
|
}, /*#__PURE__*/React__default.createElement(Row$1, {
|
|
10604
|
-
className: rootClassName$
|
|
10507
|
+
className: rootClassName$1U + "-url-row"
|
|
10605
10508
|
}, /*#__PURE__*/React__default.createElement(TextEditorHeaderInput, {
|
|
10606
10509
|
label: "Url",
|
|
10607
10510
|
value: urlValue,
|
|
@@ -10610,7 +10513,7 @@ function TextEditorUrlCreator(props) {
|
|
|
10610
10513
|
},
|
|
10611
10514
|
onEnter: handleSubmit
|
|
10612
10515
|
})), /*#__PURE__*/React__default.createElement(Row$1, {
|
|
10613
|
-
className: rootClassName$
|
|
10516
|
+
className: rootClassName$1U + "-text-row"
|
|
10614
10517
|
}, /*#__PURE__*/React__default.createElement(TextEditorHeaderInput, {
|
|
10615
10518
|
label: "Texto",
|
|
10616
10519
|
value: textValue,
|
|
@@ -10619,7 +10522,7 @@ function TextEditorUrlCreator(props) {
|
|
|
10619
10522
|
},
|
|
10620
10523
|
onEnter: handleSubmit
|
|
10621
10524
|
})), /*#__PURE__*/React__default.createElement(Row$1, {
|
|
10622
|
-
className: rootClassName$
|
|
10525
|
+
className: rootClassName$1U + "-new-tab-row"
|
|
10623
10526
|
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
10624
10527
|
value: newTab,
|
|
10625
10528
|
onChange: function onChange(value) {
|
|
@@ -10630,7 +10533,7 @@ function TextEditorUrlCreator(props) {
|
|
|
10630
10533
|
return setNewTab(!newTab);
|
|
10631
10534
|
}
|
|
10632
10535
|
}, "Nova Guia")), /*#__PURE__*/React__default.createElement(Row$1, {
|
|
10633
|
-
className: rootClassName$
|
|
10536
|
+
className: rootClassName$1U + "-ok-row"
|
|
10634
10537
|
}, /*#__PURE__*/React__default.createElement(TextEditorMenuButton, {
|
|
10635
10538
|
disabled: !urlValue || !textValue,
|
|
10636
10539
|
onClick: handleSubmit
|
|
@@ -10645,7 +10548,7 @@ TextEditorUrlCreator.defaultProps = {
|
|
|
10645
10548
|
onChange: function onChange() {}
|
|
10646
10549
|
};
|
|
10647
10550
|
|
|
10648
|
-
var rootClassName$
|
|
10551
|
+
var rootClassName$1V = 'component-text-editor';
|
|
10649
10552
|
function TextEditor(props) {
|
|
10650
10553
|
var _useState = React.useState(getUniqueKey()),
|
|
10651
10554
|
id = _useState[0];
|
|
@@ -10668,7 +10571,7 @@ function TextEditor(props) {
|
|
|
10668
10571
|
|
|
10669
10572
|
var getProps = function getProps() {
|
|
10670
10573
|
var p = _extends({}, props, {
|
|
10671
|
-
className: getMergedClassNames([rootClassName$
|
|
10574
|
+
className: getMergedClassNames([rootClassName$1V, props.className || '', props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
10672
10575
|
});
|
|
10673
10576
|
|
|
10674
10577
|
delete p.topLabel;
|
|
@@ -10695,7 +10598,7 @@ function TextEditor(props) {
|
|
|
10695
10598
|
if (!selection || !selection.anchorNode) return;
|
|
10696
10599
|
var aux = selection.anchorNode.parentElement;
|
|
10697
10600
|
|
|
10698
|
-
while (!aux.hasAttribute('class', rootClassName$
|
|
10601
|
+
while (!aux.hasAttribute('class', rootClassName$1V + "-editor")) {
|
|
10699
10602
|
if (aux.tagName === 'A') {
|
|
10700
10603
|
isLink = true;
|
|
10701
10604
|
} else if (aux.tagName === 'FONT') {
|
|
@@ -10759,13 +10662,13 @@ function TextEditor(props) {
|
|
|
10759
10662
|
}
|
|
10760
10663
|
}, [props.value]);
|
|
10761
10664
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10762
|
-
className: rootClassName$
|
|
10665
|
+
className: rootClassName$1V + "-outer"
|
|
10763
10666
|
}, !props.hideTopLabel && /*#__PURE__*/React__default.createElement("div", {
|
|
10764
|
-
className: getMergedClassNames([rootClassName$
|
|
10667
|
+
className: getMergedClassNames([rootClassName$1V + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
10765
10668
|
}, props.topLabel), /*#__PURE__*/React__default.createElement("div", getProps(), /*#__PURE__*/React__default.createElement("div", {
|
|
10766
|
-
className: rootClassName$
|
|
10669
|
+
className: rootClassName$1V + "-header"
|
|
10767
10670
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10768
|
-
className: rootClassName$
|
|
10671
|
+
className: rootClassName$1V + "-left-content"
|
|
10769
10672
|
}, /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
10770
10673
|
opened: fontOpened,
|
|
10771
10674
|
setOpened: setFontOpened,
|
|
@@ -10885,7 +10788,7 @@ function TextEditor(props) {
|
|
|
10885
10788
|
document.querySelector("#" + id).focus();
|
|
10886
10789
|
}
|
|
10887
10790
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
10888
|
-
className: rootClassName$
|
|
10791
|
+
className: rootClassName$1V + "-right-content"
|
|
10889
10792
|
}, /*#__PURE__*/React__default.createElement(TextEditorHeaderButton, {
|
|
10890
10793
|
disabled: props.disabled,
|
|
10891
10794
|
icon: /*#__PURE__*/React__default.createElement(UndoIcon, null),
|
|
@@ -10900,12 +10803,12 @@ function TextEditor(props) {
|
|
|
10900
10803
|
}
|
|
10901
10804
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
10902
10805
|
id: id,
|
|
10903
|
-
className: rootClassName$
|
|
10806
|
+
className: rootClassName$1V + "-editor",
|
|
10904
10807
|
contentEditable: !props.disabled,
|
|
10905
10808
|
onClick: verifyCursor,
|
|
10906
10809
|
onKeyUp: verifyCursor
|
|
10907
10810
|
})), !props.hideHelperText && /*#__PURE__*/React__default.createElement("div", {
|
|
10908
|
-
className: getMergedClassNames([rootClassName$
|
|
10811
|
+
className: getMergedClassNames([rootClassName$1V + "-helper-text", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
|
|
10909
10812
|
}, props.helperText));
|
|
10910
10813
|
}
|
|
10911
10814
|
TextEditor.propTypes = {
|
|
@@ -10930,17 +10833,17 @@ TextEditor.defaultProps = {
|
|
|
10930
10833
|
ToastTypes["Error"] = "error";
|
|
10931
10834
|
})(exports.ToastTypes || (exports.ToastTypes = {}));
|
|
10932
10835
|
|
|
10933
|
-
var rootClassName$
|
|
10836
|
+
var rootClassName$1W = 'component-toast';
|
|
10934
10837
|
function Toast(props) {
|
|
10935
10838
|
var _useState = React.useState(props.id || getUniqueKey()),
|
|
10936
10839
|
id = _useState[0];
|
|
10937
10840
|
|
|
10938
10841
|
var getClassNames = function getClassNames() {
|
|
10939
|
-
return getMergedClassNames([rootClassName$
|
|
10842
|
+
return getMergedClassNames([rootClassName$1W, rootClassName$1W + "-" + props.theme]);
|
|
10940
10843
|
};
|
|
10941
10844
|
|
|
10942
10845
|
React.useEffect(function () {
|
|
10943
|
-
var el = document.querySelector("#" + id + " ." + rootClassName$
|
|
10846
|
+
var el = document.querySelector("#" + id + " ." + rootClassName$1W + "-fill");
|
|
10944
10847
|
|
|
10945
10848
|
if (el) {
|
|
10946
10849
|
el.style.animation = "fillToZero " + props.timeout + "ms linear forwards";
|
|
@@ -10987,22 +10890,22 @@ function Toast(props) {
|
|
|
10987
10890
|
id: id,
|
|
10988
10891
|
className: getClassNames()
|
|
10989
10892
|
}, React__default.createElement("div", {
|
|
10990
|
-
className: rootClassName$
|
|
10893
|
+
className: rootClassName$1W + "-left-content"
|
|
10991
10894
|
}, props.label), React__default.createElement("div", {
|
|
10992
|
-
className: rootClassName$
|
|
10895
|
+
className: rootClassName$1W + "-right-content"
|
|
10993
10896
|
}, props.showActionButton && React__default.createElement("div", {
|
|
10994
|
-
className: rootClassName$
|
|
10897
|
+
className: rootClassName$1W + "-action-button"
|
|
10995
10898
|
}, props.actionButtonText), React__default.createElement("div", {
|
|
10996
|
-
className: rootClassName$
|
|
10899
|
+
className: rootClassName$1W + "-close-button"
|
|
10997
10900
|
}, React__default.createElement(IconButton$1, {
|
|
10998
10901
|
icon: React__default.createElement(CloseIcon, null),
|
|
10999
10902
|
onClick: function onClick() {
|
|
11000
10903
|
if (typeof props.onClose === 'function') props.onClose();
|
|
11001
10904
|
}
|
|
11002
10905
|
}))), props.timeout ? React__default.createElement("div", {
|
|
11003
|
-
className: getMergedClassNames([rootClassName$
|
|
10906
|
+
className: getMergedClassNames([rootClassName$1W + "-bar", props.showStatusBar ? '' : 'hide'])
|
|
11004
10907
|
}, React__default.createElement("div", {
|
|
11005
|
-
className: rootClassName$
|
|
10908
|
+
className: rootClassName$1W + "-fill",
|
|
11006
10909
|
onAnimationEnd: function onAnimationEnd() {
|
|
11007
10910
|
if (typeof props.onClose === 'function') props.onClose();
|
|
11008
10911
|
}
|
|
@@ -11017,7 +10920,7 @@ Toast.defaultProps = {
|
|
|
11017
10920
|
onClose: function onClose() {}
|
|
11018
10921
|
};
|
|
11019
10922
|
|
|
11020
|
-
var rootClassName$
|
|
10923
|
+
var rootClassName$1X = 'comp-toast-manager';
|
|
11021
10924
|
var count = 0;
|
|
11022
10925
|
var ToastManager = React.forwardRef(function (props, ref) {
|
|
11023
10926
|
var _useState = React.useState([]),
|
|
@@ -11092,11 +10995,11 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11092
10995
|
});
|
|
11093
10996
|
|
|
11094
10997
|
var getClassNames = function getClassNames() {
|
|
11095
|
-
return getMergedClassNames([rootClassName$
|
|
10998
|
+
return getMergedClassNames([rootClassName$1X + "-toasts", rootClassName$1X + "-" + props.verticalPosition, rootClassName$1X + "-" + props.horizontalPosition, props.reverse ? rootClassName$1X + "-reverse" : '', props.animateSize ? rootClassName$1X + "-animate-size" : '']);
|
|
11096
10999
|
};
|
|
11097
11000
|
|
|
11098
11001
|
React.useLayoutEffect(function () {
|
|
11099
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
11002
|
+
var wrapper = document.querySelector("." + rootClassName$1X + "-toasts");
|
|
11100
11003
|
|
|
11101
11004
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
11102
11005
|
var somaDasAlturas = 0;
|
|
@@ -11107,7 +11010,7 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11107
11010
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
11108
11011
|
var el = wrapper.children[i];
|
|
11109
11012
|
|
|
11110
|
-
if (!el.classList.contains(rootClassName$
|
|
11013
|
+
if (!el.classList.contains(rootClassName$1X + "-toast-exit")) {
|
|
11111
11014
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
11112
11015
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
11113
11016
|
}
|
|
@@ -11116,7 +11019,7 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11116
11019
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
11117
11020
|
var _el = wrapper.children[_i];
|
|
11118
11021
|
|
|
11119
|
-
if (!_el.classList.contains(rootClassName$
|
|
11022
|
+
if (!_el.classList.contains(rootClassName$1X + "-toast-exit")) {
|
|
11120
11023
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
11121
11024
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
11122
11025
|
}
|
|
@@ -11125,7 +11028,7 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11125
11028
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
11126
11029
|
var _el2 = wrapper.children[_i2];
|
|
11127
11030
|
|
|
11128
|
-
if (!_el2.classList.contains(rootClassName$
|
|
11031
|
+
if (!_el2.classList.contains(rootClassName$1X + "-toast-exit")) {
|
|
11129
11032
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
11130
11033
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
11131
11034
|
}
|
|
@@ -11136,7 +11039,7 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11136
11039
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
11137
11040
|
var _el3 = wrapper.children[_i3];
|
|
11138
11041
|
|
|
11139
|
-
if (!_el3.classList.contains(rootClassName$
|
|
11042
|
+
if (!_el3.classList.contains(rootClassName$1X + "-toast-exit")) {
|
|
11140
11043
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
11141
11044
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
11142
11045
|
}
|
|
@@ -11149,11 +11052,11 @@ var ToastManager = React.forwardRef(function (props, ref) {
|
|
|
11149
11052
|
}, arrayOfToast.map(function (toast) {
|
|
11150
11053
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
11151
11054
|
timeout: 300,
|
|
11152
|
-
classNames: rootClassName$
|
|
11055
|
+
classNames: rootClassName$1X + "-toast",
|
|
11153
11056
|
key: toast.id,
|
|
11154
11057
|
unmountOnExit: true
|
|
11155
11058
|
}, React__default.createElement("div", {
|
|
11156
|
-
className: rootClassName$
|
|
11059
|
+
className: rootClassName$1X + "-toastzin"
|
|
11157
11060
|
}, React__default.createElement(Toast, {
|
|
11158
11061
|
theme: toast.type,
|
|
11159
11062
|
label: toast.label,
|
|
@@ -11181,7 +11084,7 @@ ToastManager.defaultProps = {
|
|
|
11181
11084
|
TooltipPosition["Bottom"] = "bottom";
|
|
11182
11085
|
})(exports.TooltipPosition || (exports.TooltipPosition = {}));
|
|
11183
11086
|
|
|
11184
|
-
var rootClassName$
|
|
11087
|
+
var rootClassName$1Y = 'component-tooltip';
|
|
11185
11088
|
function Tooltip(props) {
|
|
11186
11089
|
var _useState = React.useState(props.id || getUniqueKey()),
|
|
11187
11090
|
id = _useState[0];
|
|
@@ -11189,13 +11092,13 @@ function Tooltip(props) {
|
|
|
11189
11092
|
var getProps = function getProps() {
|
|
11190
11093
|
return _extends({}, props, {
|
|
11191
11094
|
id: id,
|
|
11192
|
-
className: getMergedClassNames([rootClassName$
|
|
11095
|
+
className: getMergedClassNames([rootClassName$1Y, props.className, rootClassName$1Y + "-" + props.position])
|
|
11193
11096
|
});
|
|
11194
11097
|
};
|
|
11195
11098
|
|
|
11196
11099
|
React.useEffect(function () {
|
|
11197
11100
|
var element = document.querySelector("#" + id);
|
|
11198
|
-
var triangle = element.querySelector("." + rootClassName$
|
|
11101
|
+
var triangle = element.querySelector("." + rootClassName$1Y + "-triangle");
|
|
11199
11102
|
var bounding = element.getBoundingClientRect();
|
|
11200
11103
|
var ScreenWidth = window.innerWidth;
|
|
11201
11104
|
|
|
@@ -11216,16 +11119,16 @@ function Tooltip(props) {
|
|
|
11216
11119
|
}
|
|
11217
11120
|
}, [id, props.position]);
|
|
11218
11121
|
return React__default.createElement("div", {
|
|
11219
|
-
className: rootClassName$
|
|
11122
|
+
className: rootClassName$1Y + "-outer"
|
|
11220
11123
|
}, React__default.createElement("div", Object.assign({}, getProps()), props.children, React__default.createElement("div", {
|
|
11221
|
-
className: rootClassName$
|
|
11124
|
+
className: rootClassName$1Y + "-triangle"
|
|
11222
11125
|
})));
|
|
11223
11126
|
}
|
|
11224
11127
|
Tooltip.defaultProps = {
|
|
11225
11128
|
position: exports.TooltipPosition.Top
|
|
11226
11129
|
};
|
|
11227
11130
|
|
|
11228
|
-
var rootClassName$
|
|
11131
|
+
var rootClassName$1Z = 'tooltip-manager';
|
|
11229
11132
|
function TooltipManager() {
|
|
11230
11133
|
var _useState = React.useState([]),
|
|
11231
11134
|
arrayOfTooltips = _useState[0],
|
|
@@ -11324,17 +11227,17 @@ function TooltipManager() {
|
|
|
11324
11227
|
};
|
|
11325
11228
|
}, []);
|
|
11326
11229
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(reactTransitionGroup.TransitionGroup, {
|
|
11327
|
-
className: rootClassName$
|
|
11230
|
+
className: rootClassName$1Z
|
|
11328
11231
|
}, arrayOfTooltips.map(function (tooltip) {
|
|
11329
11232
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
11330
11233
|
timeout: 300,
|
|
11331
|
-
classNames: rootClassName$
|
|
11234
|
+
classNames: rootClassName$1Z + "-tooltip",
|
|
11332
11235
|
key: tooltip.id,
|
|
11333
11236
|
unmountOnExit: true
|
|
11334
11237
|
}, React__default.createElement(Tooltip, {
|
|
11335
11238
|
id: tooltip.id,
|
|
11336
11239
|
position: tooltip.position,
|
|
11337
|
-
className: rootClassName$
|
|
11240
|
+
className: rootClassName$1Z + "-tooltip",
|
|
11338
11241
|
style: _extends({}, tooltip.style),
|
|
11339
11242
|
onMouseLeave: function onMouseLeave() {
|
|
11340
11243
|
if (!document.querySelectorAll("[tooltip-id=" + tooltip.id + "]").length) {
|
|
@@ -11351,7 +11254,7 @@ function TooltipManager() {
|
|
|
11351
11254
|
TooltipManager.propTypes = {};
|
|
11352
11255
|
TooltipManager.defaultProps = {};
|
|
11353
11256
|
|
|
11354
|
-
var rootClassName$
|
|
11257
|
+
var rootClassName$1_ = 'component-top-loader';
|
|
11355
11258
|
function TopLoader(props) {
|
|
11356
11259
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
11357
11260
|
classNames: 'fade',
|
|
@@ -11359,11 +11262,11 @@ function TopLoader(props) {
|
|
|
11359
11262
|
"in": props.opened,
|
|
11360
11263
|
unmountOnExit: true
|
|
11361
11264
|
}, React__default.createElement("div", {
|
|
11362
|
-
className: rootClassName$
|
|
11265
|
+
className: rootClassName$1_
|
|
11363
11266
|
}, React__default.createElement("div", {
|
|
11364
|
-
className: rootClassName$
|
|
11267
|
+
className: rootClassName$1_ + "-logo"
|
|
11365
11268
|
}, props.logo), props.status && React__default.createElement("div", {
|
|
11366
|
-
className: rootClassName$
|
|
11269
|
+
className: rootClassName$1_ + "-status"
|
|
11367
11270
|
}, props.status)));
|
|
11368
11271
|
}
|
|
11369
11272
|
TopLoader.defaultProps = {
|
|
@@ -11372,11 +11275,11 @@ TopLoader.defaultProps = {
|
|
|
11372
11275
|
})
|
|
11373
11276
|
};
|
|
11374
11277
|
|
|
11375
|
-
var rootClassName$
|
|
11278
|
+
var rootClassName$1$ = 'component-video-item';
|
|
11376
11279
|
function VideoItem(props) {
|
|
11377
11280
|
var getProps = function getProps() {
|
|
11378
11281
|
var p = _extends({}, props, {
|
|
11379
|
-
className: getMergedClassNames([rootClassName$
|
|
11282
|
+
className: getMergedClassNames([rootClassName$1$, props.className])
|
|
11380
11283
|
});
|
|
11381
11284
|
|
|
11382
11285
|
delete p.url;
|
|
@@ -11393,20 +11296,20 @@ function VideoItem(props) {
|
|
|
11393
11296
|
blackGround: props.blackGround || false
|
|
11394
11297
|
})), React__default.createElement(Col$1, {
|
|
11395
11298
|
cols: [12, 12, 6, 8, 8],
|
|
11396
|
-
className: rootClassName$
|
|
11299
|
+
className: rootClassName$1$ + "-text-col"
|
|
11397
11300
|
}, React__default.createElement(Row$1, {
|
|
11398
|
-
className: rootClassName$
|
|
11301
|
+
className: rootClassName$1$ + "-text-row"
|
|
11399
11302
|
}, React__default.createElement(Col$1, {
|
|
11400
|
-
className: rootClassName$
|
|
11303
|
+
className: rootClassName$1$ + "-title"
|
|
11401
11304
|
}, props.title), React__default.createElement(Col$1, {
|
|
11402
|
-
className: rootClassName$
|
|
11305
|
+
className: rootClassName$1$ + "-description nunito"
|
|
11403
11306
|
}, props.description))));
|
|
11404
11307
|
}
|
|
11405
11308
|
VideoItem.defaultProps = {
|
|
11406
11309
|
url: ''
|
|
11407
11310
|
};
|
|
11408
11311
|
|
|
11409
|
-
var rootClassName$
|
|
11312
|
+
var rootClassName$20 = 'video-modal';
|
|
11410
11313
|
function VideoModal(props) {
|
|
11411
11314
|
var handleClose = React.useCallback(function () {
|
|
11412
11315
|
props.onClose(props.modalKey);
|
|
@@ -11414,7 +11317,7 @@ function VideoModal(props) {
|
|
|
11414
11317
|
var filteredProps = React.useMemo(function () {
|
|
11415
11318
|
var p = _extends({}, props, {
|
|
11416
11319
|
id: props.id ? props.id : props.modalKey ? props.modalKey : "modal" + getUniqueKey(),
|
|
11417
|
-
className: getMergedClassNames([rootClassName$
|
|
11320
|
+
className: getMergedClassNames([rootClassName$20, props.className || '', props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$20 + "-" + String(props.size).toLowerCase()])
|
|
11418
11321
|
});
|
|
11419
11322
|
|
|
11420
11323
|
delete p.urlVideo;
|
|
@@ -11433,12 +11336,12 @@ function VideoModal(props) {
|
|
|
11433
11336
|
return p;
|
|
11434
11337
|
}, [props]);
|
|
11435
11338
|
return React__default.createElement("div", Object.assign({}, filteredProps), React__default.createElement("div", {
|
|
11436
|
-
className: rootClassName$
|
|
11339
|
+
className: rootClassName$20 + "-close-button"
|
|
11437
11340
|
}, React__default.createElement(IconButton$1, {
|
|
11438
11341
|
onClick: handleClose,
|
|
11439
11342
|
icon: React__default.createElement(CloseIcon, null)
|
|
11440
11343
|
})), React__default.createElement("div", {
|
|
11441
|
-
className: rootClassName$
|
|
11344
|
+
className: rootClassName$20 + "-video-row"
|
|
11442
11345
|
}, React__default.createElement(VideoPlayer, Object.assign({
|
|
11443
11346
|
blackGround: true
|
|
11444
11347
|
}, props.videoPlayerProps, {
|
|
@@ -11478,7 +11381,7 @@ function useDropOpened(initialState) {
|
|
|
11478
11381
|
return [opened, toggleOpened];
|
|
11479
11382
|
}
|
|
11480
11383
|
|
|
11481
|
-
var rootClassName$
|
|
11384
|
+
var rootClassName$21 = 'comp-modal-manager';
|
|
11482
11385
|
var maskRootClassName$1 = 'component-modal-mask';
|
|
11483
11386
|
|
|
11484
11387
|
var hackFocus$1 = function hackFocus() {
|
|
@@ -11564,14 +11467,14 @@ function useModalManager() {
|
|
|
11564
11467
|
};
|
|
11565
11468
|
|
|
11566
11469
|
return [React__default.createElement(React__default.Fragment, null, React__default.createElement(reactTransitionGroup.TransitionGroup, {
|
|
11567
|
-
className: rootClassName$
|
|
11470
|
+
className: rootClassName$21 + "-modals"
|
|
11568
11471
|
}, arrayOfModal.map(function (obj) {
|
|
11569
11472
|
var _obj$props, _obj$props2, _obj$props3;
|
|
11570
11473
|
|
|
11571
11474
|
var M = obj.component;
|
|
11572
11475
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
11573
11476
|
timeout: 300,
|
|
11574
|
-
classNames: (_obj$props = obj.props) !== null && _obj$props !== void 0 && _obj$props.mobileOnXS ? rootClassName$
|
|
11477
|
+
classNames: (_obj$props = obj.props) !== null && _obj$props !== void 0 && _obj$props.mobileOnXS ? rootClassName$21 + "-mask-mobile-on-xs" : rootClassName$21 + "-mask",
|
|
11575
11478
|
key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
|
|
11576
11479
|
unmountOnExit: true
|
|
11577
11480
|
}, React__default.createElement(ModalMask, {
|
|
@@ -11643,7 +11546,7 @@ function useScreenSize() {
|
|
|
11643
11546
|
return value;
|
|
11644
11547
|
}
|
|
11645
11548
|
|
|
11646
|
-
var rootClassName$
|
|
11549
|
+
var rootClassName$22 = 'comp-toast-manager';
|
|
11647
11550
|
var count$1 = 0;
|
|
11648
11551
|
function useToastManager(props) {
|
|
11649
11552
|
var _useState = React.useState([]),
|
|
@@ -11691,10 +11594,10 @@ function useToastManager(props) {
|
|
|
11691
11594
|
setArrayOfToast([]);
|
|
11692
11595
|
}, []);
|
|
11693
11596
|
var classNames = React.useMemo(function () {
|
|
11694
|
-
return getMergedClassNames([rootClassName$
|
|
11597
|
+
return getMergedClassNames([rootClassName$22 + "-toasts", rootClassName$22 + "-" + verticalPosition, rootClassName$22 + "-" + horizontalPosition, reverse ? rootClassName$22 + "-reverse" : '', animateSize ? rootClassName$22 + "-animate-size" : '']);
|
|
11695
11598
|
}, [reverse, animateSize, horizontalPosition, verticalPosition]);
|
|
11696
11599
|
React.useLayoutEffect(function () {
|
|
11697
|
-
var wrapper = document.querySelector("." + rootClassName$
|
|
11600
|
+
var wrapper = document.querySelector("." + rootClassName$22 + "-toasts");
|
|
11698
11601
|
|
|
11699
11602
|
if (wrapper && wrapper.childElementCount > 0) {
|
|
11700
11603
|
var somaDasAlturas = 0;
|
|
@@ -11705,7 +11608,7 @@ function useToastManager(props) {
|
|
|
11705
11608
|
for (var i = 0; i < wrapper.children.length; i++) {
|
|
11706
11609
|
var el = wrapper.children[i];
|
|
11707
11610
|
|
|
11708
|
-
if (!el.classList.contains(rootClassName$
|
|
11611
|
+
if (!el.classList.contains(rootClassName$22 + "-toast-exit")) {
|
|
11709
11612
|
el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
11710
11613
|
somaDasAlturas += el.getBoundingClientRect().height + 12;
|
|
11711
11614
|
}
|
|
@@ -11714,7 +11617,7 @@ function useToastManager(props) {
|
|
|
11714
11617
|
for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
|
|
11715
11618
|
var _el = wrapper.children[_i];
|
|
11716
11619
|
|
|
11717
|
-
if (!_el.classList.contains(rootClassName$
|
|
11620
|
+
if (!_el.classList.contains(rootClassName$22 + "-toast-exit")) {
|
|
11718
11621
|
somaDasAlturas += _el.getBoundingClientRect().height + 12;
|
|
11719
11622
|
_el.style.transform = "translateY(" + somaDasAlturas + "px)";
|
|
11720
11623
|
}
|
|
@@ -11723,7 +11626,7 @@ function useToastManager(props) {
|
|
|
11723
11626
|
for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
|
|
11724
11627
|
var _el2 = wrapper.children[_i2];
|
|
11725
11628
|
|
|
11726
|
-
if (!_el2.classList.contains(rootClassName$
|
|
11629
|
+
if (!_el2.classList.contains(rootClassName$22 + "-toast-exit")) {
|
|
11727
11630
|
somaDasAlturas += _el2.getBoundingClientRect().height + 12;
|
|
11728
11631
|
_el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
11729
11632
|
}
|
|
@@ -11734,7 +11637,7 @@ function useToastManager(props) {
|
|
|
11734
11637
|
for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
|
|
11735
11638
|
var _el3 = wrapper.children[_i3];
|
|
11736
11639
|
|
|
11737
|
-
if (!_el3.classList.contains(rootClassName$
|
|
11640
|
+
if (!_el3.classList.contains(rootClassName$22 + "-toast-exit")) {
|
|
11738
11641
|
_el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
|
|
11739
11642
|
somaDasAlturas += _el3.getBoundingClientRect().height + 12;
|
|
11740
11643
|
}
|
|
@@ -11747,11 +11650,11 @@ function useToastManager(props) {
|
|
|
11747
11650
|
}, arrayOfToast.map(function (toast) {
|
|
11748
11651
|
return React__default.createElement(reactTransitionGroup.CSSTransition, {
|
|
11749
11652
|
timeout: 300,
|
|
11750
|
-
classNames: rootClassName$
|
|
11653
|
+
classNames: rootClassName$22 + "-toast",
|
|
11751
11654
|
key: toast.id,
|
|
11752
11655
|
unmountOnExit: true
|
|
11753
11656
|
}, React__default.createElement("div", {
|
|
11754
|
-
className: rootClassName$
|
|
11657
|
+
className: rootClassName$22 + "-toastzin"
|
|
11755
11658
|
}, React__default.createElement(Toast, {
|
|
11756
11659
|
theme: toast.theme,
|
|
11757
11660
|
label: toast.label,
|