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.
@@ -9569,7 +9569,7 @@ var LeftCheckboxWithLabel = function LeftCheckboxWithLabel(props) {
9569
9569
  return style;
9570
9570
  }, [props.anchorLabelToCheckbox, props.disabled, props.justifyContent, props.removeUserSelect, props.spanProps]);
9571
9571
  return React.createElement("div", {
9572
- className: rootClassName$1w
9572
+ className: getMergedClassNames([rootClassName$1w, props.w100 ? 'w-100' : ''])
9573
9573
  }, React.createElement("span", {
9574
9574
  className: rootClassName$1w + "-checkbox-wrapper",
9575
9575
  "tooltip-position": props['tooltip-position'],
@@ -9770,96 +9770,9 @@ var CircleArrowLeft = function CircleArrowLeft() {
9770
9770
  }))));
9771
9771
  };
9772
9772
 
9773
- var rootClassName$1A = 'component-table-with-overflow';
9774
-
9775
- function TableWithOverflow(props) {
9776
- var _useState = useState("" + getUniqueKey()),
9777
- id = _useState[0];
9778
-
9779
- var _useState2 = useState("fake_table" + getUniqueKey()),
9780
- fakeId = _useState2[0];
9781
-
9782
- var attWidth = function attWidth() {
9783
- var fake = document.querySelector("#" + fakeId);
9784
- var real = document.querySelector("#" + id + " ." + rootClassName$1A + "-table");
9785
-
9786
- if (real && fake) {
9787
- fake.style.width = real.getBoundingClientRect().width + "px";
9788
- }
9789
- };
9790
-
9791
- var header = function header() {
9792
- document.querySelectorAll("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-header ." + rootClassName$1A + "-cell").forEach(function (element, index) {
9793
- var fakeElement = document.querySelector("#" + fakeId + " thead tr th:nth-child(" + (index + 2) + ")");
9794
-
9795
- if (fakeElement) {
9796
- element.style.minWidth = fakeElement.getBoundingClientRect().width + "px";
9797
- element.style.height = fakeElement.getBoundingClientRect().height + "px";
9798
- }
9799
- });
9800
- };
9801
-
9802
- var body = function body() {
9803
- document.querySelectorAll("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-body ." + rootClassName$1A + "-cell").forEach(function (el) {
9804
- var columnRef = el.getAttribute('columnref');
9805
- var rowRef = el.getAttribute('rowref');
9806
-
9807
- if (columnRef && rowRef) {
9808
- var fakeElement = document.querySelector("#" + fakeId + " tbody tr:nth-child(" + rowRef + ") td:nth-child(" + columnRef + ")");
9809
-
9810
- if (fakeElement) {
9811
- el.style.minWidth = fakeElement.getBoundingClientRect().width + "px";
9812
- el.style.height = fakeElement.getBoundingClientRect().height + "px";
9813
- }
9814
- }
9815
- });
9816
- };
9817
-
9818
- var midWith = function midWith() {
9819
- var arrowControls = document.querySelector("#" + id + " ." + rootClassName$1A + "-arrow-control");
9820
- var mid = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
9821
- if (!mid) return;
9822
- mid.classList.add('over');
9823
-
9824
- if (arrowControls) {
9825
- arrowControls.style.display = 'flex';
9826
- }
9827
-
9828
- var clientWidth = mid.clientWidth,
9829
- scrollWidth = mid.scrollWidth;
9830
-
9831
- if (clientWidth >= scrollWidth || Array.from(mid.querySelectorAll("." + rootClassName$1A + "-cell")).some(function (it) {
9832
- return it.getBoundingClientRect().width > clientWidth;
9833
- })) {
9834
- mid.classList.remove('over');
9835
-
9836
- if (arrowControls) {
9837
- arrowControls.style.display = 'none';
9838
- }
9839
- }
9840
- };
9841
-
9842
- useLayoutEffect(function () {
9843
- attWidth();
9844
- header();
9845
- body();
9846
- midWith();
9847
- }, [props.lines, props.columns]);
9773
+ function useDraggableScroll(reference) {
9848
9774
  useEffect(function () {
9849
- var func = function func() {
9850
- attWidth();
9851
- header();
9852
- body();
9853
- midWith();
9854
- };
9855
-
9856
- window.addEventListener('resize', func);
9857
- return function () {
9858
- window.removeEventListener('resize', func);
9859
- };
9860
- }, []);
9861
- useEffect(function () {
9862
- var element = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
9775
+ var element = reference.current;
9863
9776
  var pos = {
9864
9777
  left: 0,
9865
9778
  x: 0
@@ -9867,10 +9780,10 @@ function TableWithOverflow(props) {
9867
9780
  var moving = false;
9868
9781
 
9869
9782
  var mouseDownHandler = function mouseDownHandler(evt) {
9870
- if (evt.button === 0 && element.scrollWidth > element.clientWidth) {
9783
+ if (evt.button === 0 && (element === null || element === void 0 ? void 0 : element.scrollWidth) > (element === null || element === void 0 ? void 0 : element.clientWidth)) {
9871
9784
  moving = true;
9872
9785
  pos = {
9873
- left: element.scrollLeft,
9786
+ left: (element === null || element === void 0 ? void 0 : element.scrollLeft) || 0,
9874
9787
  x: evt.clientX
9875
9788
  };
9876
9789
  }
@@ -9888,170 +9801,160 @@ function TableWithOverflow(props) {
9888
9801
  moving = false;
9889
9802
  };
9890
9803
 
9891
- element.addEventListener('mousedown', mouseDownHandler);
9804
+ element === null || element === void 0 ? void 0 : element.addEventListener('mousedown', mouseDownHandler);
9892
9805
  document.addEventListener('mousemove', mouseMoveHandler);
9893
9806
  document.addEventListener('mouseup', mouseUpHandler);
9894
9807
  return function () {
9895
- element.removeEventListener('mousedown', mouseDownHandler);
9808
+ element === null || element === void 0 ? void 0 : element.removeEventListener('mousedown', mouseDownHandler);
9896
9809
  document.removeEventListener('mousemove', mouseMoveHandler);
9897
9810
  document.removeEventListener('mouseup', mouseUpHandler);
9898
9811
  };
9899
- }, []);
9900
- return React.createElement(React.Fragment, null, React.createElement("div", {
9901
- id: id,
9902
- className: rootClassName$1A
9903
- }, React.createElement("table", {
9904
- id: fakeId,
9905
- className: rootClassName$1A + "-fake-table"
9906
- }, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", null), props.columns && props.columns.length ? Array.from(props.columns).map(function (column, columnIndex) {
9907
- return React.createElement("th", Object.assign({}, column.props, {
9908
- key: column.key ? column.key : columnIndex
9909
- }), column.value);
9910
- }) : undefined, React.createElement("th", null))), React.createElement("tbody", null, React.createElement("tr", null), props.lines && props.lines.length ? Array.from(props.lines).map(function (line, index) {
9911
- var key = line.key ? line.key : index;
9912
- delete line.key;
9913
- var lineProps = line.props ? line.props : {};
9914
- delete line.props;
9915
- return React.createElement("tr", Object.assign({
9916
- key: key
9917
- }, lineProps), React.createElement("td", null), Object.entries(line).map(function (cell, valueIndex) {
9918
- var column = Array.from(props.columns).find(function (c) {
9919
- return c.key === cell[0];
9920
- });
9921
- return (column === null || column === void 0 ? void 0 : column.key) === 'actions' ? React.createElement("td", {
9922
- key: fakeId + "-actions"
9923
- }) : React.createElement("td", Object.assign({
9924
- key: cell[1].key ? cell[1].key : valueIndex
9925
- }, column === null || column === void 0 ? void 0 : column.props, cell[1].props), cell[1]);
9926
- }), React.createElement("td", null));
9927
- }) : undefined)), props.upperHeader ? React.createElement(React.Fragment, null, React.createElement("div", {
9928
- className: getMergedClassNames([rootClassName$1A + "-upper-header", props.upperHeader.active ? 'active' : ''])
9929
- }, props.upperHeader.buttons && props.upperHeader.buttons.length ? props.upperHeader.buttons.map(function (btn, index) {
9930
- var _props$upperHeader;
9812
+ }, [reference]);
9813
+ }
9931
9814
 
9932
- return React.createElement("button", {
9933
- id: btn.id || undefined,
9934
- key: index,
9935
- onClick: btn.onClick,
9936
- disabled: !((_props$upperHeader = props.upperHeader) !== null && _props$upperHeader !== void 0 && _props$upperHeader.active) || btn.disabled || false
9937
- }, React.createElement("span", null, btn.icon), btn.label);
9938
- }) : undefined)) : undefined, React.createElement("div", {
9939
- className: rootClassName$1A + "-outer-table"
9940
- }, React.createElement("div", {
9941
- className: getMergedClassNames([rootClassName$1A + "-table", props.upperHeader ? 'has-upper-header' : ''])
9942
- }, React.createElement("div", {
9943
- className: rootClassName$1A + "-left"
9944
- }, React.createElement("div", {
9945
- className: rootClassName$1A + "-header"
9946
- }, props.columns && props.columns.length ? Array.from(props.columns).slice(0, 2).map(function (column, index) {
9947
- return React.createElement("div", Object.assign({
9948
- key: index
9949
- }, column.props, {
9950
- className: getMergedClassNames([rootClassName$1A + "-cell", column.props && column.props.className ? column.props.className : '']),
9951
- style: {
9952
- width: '50%'
9953
- }
9954
- }), column.value);
9955
- }) : undefined), React.createElement("div", {
9956
- className: rootClassName$1A + "-body"
9957
- }, props.lines && props.lines.length ? Array.from(props.lines).map(function (line, index) {
9958
- var _props$columns$, _props$columns$2;
9815
+ var rootClassName$1A = 'component-upper-header-table';
9959
9816
 
9960
- return React.createElement("div", {
9961
- key: index,
9962
- className: getMergedClassNames([rootClassName$1A + "-row", line.disabled ? 'disabled' : ''])
9963
- }, React.createElement("div", {
9964
- className: rootClassName$1A + "-cell",
9965
- columnref: 2,
9966
- rowref: index + 2
9967
- }, line[(_props$columns$ = props.columns[0]) === null || _props$columns$ === void 0 ? void 0 : _props$columns$.key]), React.createElement("div", {
9968
- className: rootClassName$1A + "-cell",
9969
- columnref: 3,
9970
- rowref: index + 2
9971
- }, line[(_props$columns$2 = props.columns[1]) === null || _props$columns$2 === void 0 ? void 0 : _props$columns$2.key]));
9972
- }) : undefined)), React.createElement("div", {
9973
- className: rootClassName$1A + "-mid"
9817
+ function TableUpperHeader(props) {
9818
+ var _props$leftContent, _props$rightContent;
9819
+
9820
+ return React.createElement("div", {
9821
+ className: getMergedClassNames([rootClassName$1A, props.active ? 'active' : ''])
9974
9822
  }, React.createElement("div", {
9975
- className: rootClassName$1A + "-header"
9976
- }, props.columns && props.columns.length ? Array.from(props.columns).map(function (column, index) {
9977
- return React.createElement("div", Object.assign({
9978
- key: index
9979
- }, column.props, {
9980
- className: getMergedClassNames([rootClassName$1A + "-cell", column.props && column.props.className ? column.props.className : ''])
9981
- }), column.value);
9982
- }).slice(2, props.columns.length - 1) : undefined), React.createElement("div", {
9983
- className: rootClassName$1A + "-body"
9984
- }, props.lines && props.lines.length ? Array.from(props.lines).map(function (line, lineIndex) {
9985
- return React.createElement("div", {
9986
- key: lineIndex,
9987
- className: getMergedClassNames([rootClassName$1A + "-row", line.disabled ? 'disabled' : ''])
9988
- }, props.columns && props.columns.length ? Array.from(props.columns).map(function (column, index) {
9989
- return React.createElement("div", {
9990
- columnref: index + 2,
9991
- rowref: lineIndex + 2,
9992
- key: index,
9993
- className: rootClassName$1A + "-cell"
9994
- }, line[column.key]);
9995
- }).slice(2, props.columns.length - 1) : undefined);
9996
- }) : undefined)), React.createElement("div", {
9823
+ className: rootClassName$1A + "-left"
9824
+ }, (_props$leftContent = props.leftContent) === null || _props$leftContent === void 0 ? void 0 : _props$leftContent.map(function (btn, i) {
9825
+ return React.createElement("button", Object.assign({
9826
+ key: i
9827
+ }, btn, {
9828
+ disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false
9829
+ }), btn.leftIcon && React.createElement("span", null, btn.leftIcon), btn.label, btn.rightIcon && React.createElement("span", null, btn.rightIcon));
9830
+ })), React.createElement("div", {
9997
9831
  className: rootClassName$1A + "-right"
9998
- }, React.createElement("div", {
9999
- className: rootClassName$1A + "-header"
10000
- }, props.columns && props.columns.length ? Array.from(props.columns).map(function (column, index) {
10001
- return React.createElement("div", Object.assign({
10002
- key: index
10003
- }, column.props, {
10004
- className: getMergedClassNames([rootClassName$1A + "-cell", column.props && column.props.className ? column.props.className : ''])
10005
- }), column.value);
10006
- }).slice(props.columns.length - 1, props.columns.length) : undefined, props.showArrowControl ? React.createElement("div", {
10007
- className: rootClassName$1A + "-arrow-control"
10008
- }, React.createElement(IconButton$1, {
10009
- icon: React.createElement(CircleArrowLeft, null),
10010
- onClick: function onClick() {
10011
- var mid = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
9832
+ }, (_props$rightContent = props.rightContent) === null || _props$rightContent === void 0 ? void 0 : _props$rightContent.map(function (btn, i) {
9833
+ return React.createElement("button", Object.assign({
9834
+ key: i
9835
+ }, btn, {
9836
+ disabled: !props.active || (btn === null || btn === void 0 ? void 0 : btn.disabled) || false
9837
+ }), btn.leftIcon && React.createElement("span", null, btn.leftIcon), btn.label, btn.rightIcon && React.createElement("span", null, btn.rightIcon));
9838
+ })));
9839
+ }
9840
+
9841
+ var TableUpperHeader$1 = memo(TableUpperHeader);
9842
+
9843
+ var rootClassName$1B = 'component-table-with-overflow';
9844
+
9845
+ function TableWithOverflow(props) {
9846
+ var _props$columns, _props$lines;
9847
+
9848
+ var wrapperClassName = useMemo(function () {
9849
+ return getMergedClassNames([rootClassName$1B + "-wrapper", props.hasActionsCol ? 'has-actions-col' : '', props.upperHeader ? 'has-upper-header' : '', 'left-columns-padding']);
9850
+ }, [props.hasActionsCol, props.upperHeader]);
9851
+ var outerTableRef = createRef();
9852
+ useDraggableScroll(outerTableRef);
9853
+
9854
+ var handleArrowClick = function handleArrowClick(toAdd) {
9855
+ if (toAdd === void 0) {
9856
+ toAdd = 0;
9857
+ }
9858
+
9859
+ if (outerTableRef.current) {
9860
+ var left = outerTableRef.current.scrollLeft;
10012
9861
  scrollSmooth({
10013
- element: mid,
9862
+ element: outerTableRef.current,
10014
9863
  top: 0,
10015
- left: mid.scrollLeft - 150,
9864
+ left: left + toAdd,
10016
9865
  behavior: 'smooth',
10017
9866
  duration: 400
10018
9867
  });
10019
9868
  }
9869
+ };
9870
+
9871
+ var paddingLeft = useMemo(function () {
9872
+ return props.columns.reduce(function (prev, atual) {
9873
+ var _atual$absolute;
9874
+
9875
+ var n = (_atual$absolute = atual.absolute) !== null && _atual$absolute !== void 0 && _atual$absolute.left ? parseInt(atual.absolute.width) : 0;
9876
+ return prev + n;
9877
+ }, 8) + "px";
9878
+ }, [props.columns]);
9879
+ var paddingRight = useMemo(function () {
9880
+ return props.columns.reduce(function (prev, atual) {
9881
+ var _atual$absolute2;
9882
+
9883
+ var n = (_atual$absolute2 = atual.absolute) !== null && _atual$absolute2 !== void 0 && _atual$absolute2.right ? parseInt(atual.absolute.width) : 0;
9884
+ return prev + n;
9885
+ }, 8) + "px";
9886
+ }, [props.columns]);
9887
+ return React.createElement("div", {
9888
+ className: rootClassName$1B
9889
+ }, props.upperHeader ? React.createElement("div", {
9890
+ className: rootClassName$1B + "-upper-header"
9891
+ }, React.createElement(TableUpperHeader$1, Object.assign({}, props.upperHeader))) : undefined, React.createElement("div", {
9892
+ className: wrapperClassName,
9893
+ style: {
9894
+ paddingLeft: paddingLeft,
9895
+ paddingRight: paddingRight
9896
+ }
9897
+ }, props.showTopNavigator && React.createElement("div", {
9898
+ className: rootClassName$1B + "-table-arrows"
9899
+ }, React.createElement(IconButton$1, {
9900
+ icon: React.createElement(CircleArrowLeft, null),
9901
+ onClick: function onClick() {
9902
+ handleArrowClick(-150);
9903
+ }
10020
9904
  }), React.createElement(IconButton$1, {
10021
9905
  icon: React.createElement(CircleArrowRight, null),
10022
9906
  onClick: function onClick() {
10023
- var mid = document.querySelector("#" + id + " ." + rootClassName$1A + "-table ." + rootClassName$1A + "-mid");
10024
- scrollSmooth({
10025
- element: mid,
10026
- top: 0,
10027
- left: mid.scrollLeft + 150,
10028
- behavior: 'smooth',
10029
- duration: 400
10030
- });
9907
+ handleArrowClick(150);
10031
9908
  }
10032
- })) : undefined), React.createElement("div", {
10033
- className: rootClassName$1A + "-body"
10034
- }, props.lines && props.lines.length ? Array.from(props.lines).map(function (line, lineIndex) {
10035
- return React.createElement("div", {
9909
+ })), React.createElement("div", {
9910
+ className: rootClassName$1B + "-outer-table",
9911
+ ref: outerTableRef
9912
+ }, React.createElement("table", null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
9913
+ className: 'absolute left-0'
9914
+ }), (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.map(function (column) {
9915
+ var _column$props;
9916
+
9917
+ return React.createElement("th", Object.assign({
9918
+ key: "header-" + column.key
9919
+ }, column.props, {
9920
+ style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, column.absolute),
9921
+ className: getMergedClassNames([column.key + "-cell", column.absolute ? 'absolute' : ''])
9922
+ }), column.value);
9923
+ }), React.createElement("th", {
9924
+ className: 'absolute right-0'
9925
+ })), React.createElement("tr", null)), React.createElement("tbody", null, (_props$lines = props.lines) === null || _props$lines === void 0 ? void 0 : _props$lines.map(function (line, lineIndex) {
9926
+ var _props$columns2;
9927
+
9928
+ return React.createElement("tr", {
10036
9929
  key: lineIndex,
10037
- className: getMergedClassNames([rootClassName$1A + "-row", line.disabled ? 'disabled' : ''])
10038
- }, props.columns && props.columns.length ? Array.from(props.columns).map(function (column, index) {
10039
- return React.createElement("div", {
10040
- rowref: lineIndex + 2,
10041
- columnref: index + 2,
10042
- key: index,
10043
- className: rootClassName$1A + "-cell"
10044
- }, line[column.key]);
10045
- }).slice(props.columns.length - 1, props.columns.length) : undefined);
10046
- }) : undefined))))));
9930
+ "aria-disabled": line.disabled || false
9931
+ }, React.createElement("td", {
9932
+ "data-draggable": false,
9933
+ className: 'absolute left-0'
9934
+ }), (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.map(function (column) {
9935
+ var _column$props2, _column$props3;
9936
+
9937
+ return React.createElement("td", Object.assign({
9938
+ "data-draggable": !Boolean(column.absolute),
9939
+ key: lineIndex + "-" + column.key
9940
+ }, column.props, {
9941
+ style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, column.absolute),
9942
+ className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", column.absolute ? 'absolute' : ''])
9943
+ }), line[column.key]);
9944
+ }), React.createElement("td", {
9945
+ className: 'absolute right-0'
9946
+ }));
9947
+ }))))));
10047
9948
  }
10048
9949
 
10049
9950
  TableWithOverflow.defaultProps = {
10050
- showArrowControl: true
9951
+ showArrowControl: true,
9952
+ hasActionsCol: true,
9953
+ showTopNavigator: true
10051
9954
  };
10052
9955
  var TableWithOverflow$1 = memo(TableWithOverflow);
10053
9956
 
10054
- var rootClassName$1B = 'component-tabs';
9957
+ var rootClassName$1C = 'component-tabs';
10055
9958
 
10056
9959
  function Tabs(props) {
10057
9960
  var _props$tabs;
@@ -10081,14 +9984,14 @@ function Tabs(props) {
10081
9984
  };
10082
9985
  }, [startBar]);
10083
9986
  return React.createElement("nav", {
10084
- className: rootClassName$1B,
9987
+ className: rootClassName$1C,
10085
9988
  style: {
10086
9989
  justifyContent: props.justify
10087
9990
  },
10088
9991
  ref: navRef
10089
9992
  }, (_props$tabs = props.tabs) === null || _props$tabs === void 0 ? void 0 : _props$tabs.map(function (tab, index) {
10090
9993
  return React.createElement("button", {
10091
- className: getMergedClassNames([rootClassName$1B + "-tab", props.atual === index ? 'atual' : '', props.atual && props.changeTitleColor ? 'change' : '']),
9994
+ className: getMergedClassNames([rootClassName$1C + "-tab", props.atual === index ? 'atual' : '', props.atual && props.changeTitleColor ? 'change' : '']),
10092
9995
  onClick: function onClick() {
10093
9996
  props.onChange(index);
10094
9997
  },
@@ -10098,16 +10001,16 @@ function Tabs(props) {
10098
10001
  }, React.createElement("span", null, tab.title));
10099
10002
  }), React.createElement("div", {
10100
10003
  ref: actualRef,
10101
- className: rootClassName$1B + "-bar"
10004
+ className: rootClassName$1C + "-bar"
10102
10005
  }));
10103
10006
  }
10104
10007
 
10105
10008
  var Tabs$1 = memo(Tabs);
10106
10009
 
10107
- var rootClassName$1C = 'icon-component';
10010
+ var rootClassName$1D = 'icon-component';
10108
10011
  var AlignCenterIcon = function AlignCenterIcon() {
10109
10012
  return React.createElement("svg", {
10110
- className: rootClassName$1C,
10013
+ className: rootClassName$1D,
10111
10014
  viewBox: '0 0 24 24',
10112
10015
  fill: 'currentColor',
10113
10016
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10116,10 +10019,10 @@ var AlignCenterIcon = function AlignCenterIcon() {
10116
10019
  }));
10117
10020
  };
10118
10021
 
10119
- var rootClassName$1D = 'icon-component';
10022
+ var rootClassName$1E = 'icon-component';
10120
10023
  var AlignJustifyIcon = function AlignJustifyIcon() {
10121
10024
  return React.createElement("svg", {
10122
- className: rootClassName$1D,
10025
+ className: rootClassName$1E,
10123
10026
  viewBox: '0 0 24 24',
10124
10027
  fill: 'currentColor',
10125
10028
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10128,10 +10031,10 @@ var AlignJustifyIcon = function AlignJustifyIcon() {
10128
10031
  }));
10129
10032
  };
10130
10033
 
10131
- var rootClassName$1E = 'icon-component';
10034
+ var rootClassName$1F = 'icon-component';
10132
10035
  var AlignLeftIcon = function AlignLeftIcon() {
10133
10036
  return React.createElement("svg", {
10134
- className: rootClassName$1E,
10037
+ className: rootClassName$1F,
10135
10038
  viewBox: '0 0 24 24',
10136
10039
  fill: 'currentColor',
10137
10040
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10140,10 +10043,10 @@ var AlignLeftIcon = function AlignLeftIcon() {
10140
10043
  }));
10141
10044
  };
10142
10045
 
10143
- var rootClassName$1F = 'icon-component';
10046
+ var rootClassName$1G = 'icon-component';
10144
10047
  var AlignRightIcon = function AlignRightIcon() {
10145
10048
  return React.createElement("svg", {
10146
- className: rootClassName$1F,
10049
+ className: rootClassName$1G,
10147
10050
  viewBox: '0 0 24 24',
10148
10051
  fill: 'currentColor',
10149
10052
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10152,10 +10055,10 @@ var AlignRightIcon = function AlignRightIcon() {
10152
10055
  }));
10153
10056
  };
10154
10057
 
10155
- var rootClassName$1G = 'icon-component';
10058
+ var rootClassName$1H = 'icon-component';
10156
10059
  var BoldIcon = function BoldIcon() {
10157
10060
  return React.createElement("svg", {
10158
- className: rootClassName$1G,
10061
+ className: rootClassName$1H,
10159
10062
  viewBox: '0 0 24 24',
10160
10063
  fill: 'currentColor',
10161
10064
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10164,10 +10067,10 @@ var BoldIcon = function BoldIcon() {
10164
10067
  }));
10165
10068
  };
10166
10069
 
10167
- var rootClassName$1H = 'icon-component';
10070
+ var rootClassName$1I = 'icon-component';
10168
10071
  var FontColorIcon = function FontColorIcon(props) {
10169
10072
  return React.createElement("svg", {
10170
- className: rootClassName$1H,
10073
+ className: rootClassName$1I,
10171
10074
  viewBox: '-52 -80 299 372',
10172
10075
  fill: 'currentColor',
10173
10076
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10189,10 +10092,10 @@ var FontColorIcon = function FontColorIcon(props) {
10189
10092
  })));
10190
10093
  };
10191
10094
 
10192
- var rootClassName$1I = 'icon-component';
10095
+ var rootClassName$1J = 'icon-component';
10193
10096
  var FontIcon = function FontIcon() {
10194
10097
  return React.createElement("svg", {
10195
- className: rootClassName$1I,
10098
+ className: rootClassName$1J,
10196
10099
  viewBox: '0 0 24 24',
10197
10100
  fill: 'currentColor',
10198
10101
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10201,10 +10104,10 @@ var FontIcon = function FontIcon() {
10201
10104
  }));
10202
10105
  };
10203
10106
 
10204
- var rootClassName$1J = 'icon-component';
10107
+ var rootClassName$1K = 'icon-component';
10205
10108
  var ItalicIcon = function ItalicIcon() {
10206
10109
  return React.createElement("svg", {
10207
- className: rootClassName$1J,
10110
+ className: rootClassName$1K,
10208
10111
  viewBox: '0 0 24 24',
10209
10112
  fill: 'currentColor',
10210
10113
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10213,10 +10116,10 @@ var ItalicIcon = function ItalicIcon() {
10213
10116
  }));
10214
10117
  };
10215
10118
 
10216
- var rootClassName$1K = 'icon-component';
10119
+ var rootClassName$1L = 'icon-component';
10217
10120
  var LinkIcon = function LinkIcon() {
10218
10121
  return React.createElement("svg", {
10219
- className: rootClassName$1K,
10122
+ className: rootClassName$1L,
10220
10123
  viewBox: '0 0 24 24',
10221
10124
  fill: 'currentColor',
10222
10125
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10225,10 +10128,10 @@ var LinkIcon = function LinkIcon() {
10225
10128
  }));
10226
10129
  };
10227
10130
 
10228
- var rootClassName$1L = 'icon-component';
10131
+ var rootClassName$1M = 'icon-component';
10229
10132
  var RedoIcon = function RedoIcon() {
10230
10133
  return React.createElement("svg", {
10231
- className: rootClassName$1L,
10134
+ className: rootClassName$1M,
10232
10135
  viewBox: '0 0 24 24',
10233
10136
  fill: 'currentColor',
10234
10137
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10237,10 +10140,10 @@ var RedoIcon = function RedoIcon() {
10237
10140
  }));
10238
10141
  };
10239
10142
 
10240
- var rootClassName$1M = 'icon-component';
10143
+ var rootClassName$1N = 'icon-component';
10241
10144
  var UnderlineIcon = function UnderlineIcon() {
10242
10145
  return React.createElement("svg", {
10243
- className: rootClassName$1M,
10146
+ className: rootClassName$1N,
10244
10147
  viewBox: '0 0 24 24',
10245
10148
  fill: 'currentColor',
10246
10149
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10249,10 +10152,10 @@ var UnderlineIcon = function UnderlineIcon() {
10249
10152
  }));
10250
10153
  };
10251
10154
 
10252
- var rootClassName$1N = 'icon-component';
10155
+ var rootClassName$1O = 'icon-component';
10253
10156
  var UndoIcon = function UndoIcon() {
10254
10157
  return React.createElement("svg", {
10255
- className: rootClassName$1N,
10158
+ className: rootClassName$1O,
10256
10159
  viewBox: '0 0 24 24',
10257
10160
  fill: 'currentColor',
10258
10161
  xmlns: 'http://www.w3.org/2000/svg'
@@ -10261,7 +10164,7 @@ var UndoIcon = function UndoIcon() {
10261
10164
  }));
10262
10165
  };
10263
10166
 
10264
- var rootClassName$1O = 'text-editor-header-input';
10167
+ var rootClassName$1P = 'text-editor-header-input';
10265
10168
  function TextEditorHeaderInput(props) {
10266
10169
  var _useState = useState(getUniqueKey()),
10267
10170
  inputLabelId = _useState[0];
@@ -10281,7 +10184,7 @@ function TextEditorHeaderInput(props) {
10281
10184
  props.onChange(evt);
10282
10185
  evt.stopPropagation();
10283
10186
  },
10284
- className: getMergedClassNames([rootClassName$1O + "-input", props.className || '']),
10187
+ className: getMergedClassNames([rootClassName$1P + "-input", props.className || '']),
10285
10188
  value: props.value,
10286
10189
  onKeyUp: function onKeyUp(evt) {
10287
10190
  if (evt.key === 'Enter' && typeof props.onEnter === 'function') {
@@ -10292,10 +10195,10 @@ function TextEditorHeaderInput(props) {
10292
10195
  };
10293
10196
 
10294
10197
  return /*#__PURE__*/React.createElement("div", {
10295
- className: rootClassName$1O
10198
+ className: rootClassName$1P
10296
10199
  }, /*#__PURE__*/React.createElement("div", {
10297
10200
  id: inputLabelId,
10298
- className: getMergedClassNames([rootClassName$1O + "-label", props.value ? 'top' : ''])
10201
+ className: getMergedClassNames([rootClassName$1P + "-label", props.value ? 'top' : ''])
10299
10202
  }, props.label), /*#__PURE__*/React.createElement("input", getInputProps()));
10300
10203
  }
10301
10204
  TextEditorHeaderInput.propTypes = {
@@ -10308,10 +10211,10 @@ TextEditorHeaderInput.defaultProps = {
10308
10211
  onChange: function onChange() {}
10309
10212
  };
10310
10213
 
10311
- var rootClassName$1P = 'text-editor-menu-button';
10214
+ var rootClassName$1Q = 'text-editor-menu-button';
10312
10215
  function TextEditorMenuButton(props) {
10313
10216
  return /*#__PURE__*/React.createElement("button", _extends({}, props, {
10314
- className: getMergedClassNames([props.className || '', rootClassName$1P])
10217
+ className: getMergedClassNames([props.className || '', rootClassName$1Q])
10315
10218
  }));
10316
10219
  }
10317
10220
  TextEditorMenuButton.propTypes = {
@@ -10319,8 +10222,8 @@ TextEditorMenuButton.propTypes = {
10319
10222
  disabled: propTypes.bool
10320
10223
  };
10321
10224
 
10322
- var rootClassName$1Q = 'text-editor-color-picker';
10323
- var colorClassName = rootClassName$1Q + "-color-button";
10225
+ var rootClassName$1R = 'text-editor-color-picker';
10226
+ var colorClassName = rootClassName$1R + "-color-button";
10324
10227
  var defaultColors = ['#121212', '#323c32', '#5a645a', '#828a82', '#33820d', '#3fa110'];
10325
10228
 
10326
10229
  var ColorButton = function ColorButton(props) {
@@ -10401,9 +10304,9 @@ function TextEditorColorPicker(props) {
10401
10304
 
10402
10305
  return /*#__PURE__*/React.createElement("div", {
10403
10306
  id: id,
10404
- className: rootClassName$1Q
10307
+ className: rootClassName$1R
10405
10308
  }, /*#__PURE__*/React.createElement("div", {
10406
- className: rootClassName$1Q + "-colors"
10309
+ className: rootClassName$1R + "-colors"
10407
10310
  }, defaultColors.map(function (color, index) {
10408
10311
  return /*#__PURE__*/React.createElement(ColorButton, {
10409
10312
  key: index,
@@ -10413,7 +10316,7 @@ function TextEditorColorPicker(props) {
10413
10316
  }
10414
10317
  });
10415
10318
  })), /*#__PURE__*/React.createElement("div", {
10416
- className: rootClassName$1Q + "-colors"
10319
+ className: rootClassName$1R + "-colors"
10417
10320
  }, lastUsedColors.map(function (color, index) {
10418
10321
  return /*#__PURE__*/React.createElement(ColorButton, {
10419
10322
  key: index,
@@ -10424,9 +10327,9 @@ function TextEditorColorPicker(props) {
10424
10327
  }
10425
10328
  });
10426
10329
  })), /*#__PURE__*/React.createElement("div", {
10427
- className: rootClassName$1Q + "-hexa-row"
10330
+ className: rootClassName$1R + "-hexa-row"
10428
10331
  }, /*#__PURE__*/React.createElement("div", {
10429
- className: rootClassName$1Q + "-picker-col"
10332
+ className: rootClassName$1R + "-picker-col"
10430
10333
  }, /*#__PURE__*/React.createElement("input", {
10431
10334
  value: hexa,
10432
10335
  onChange: function onChange(evt) {
@@ -10437,7 +10340,7 @@ function TextEditorColorPicker(props) {
10437
10340
  setHexa(val);
10438
10341
  }, 200);
10439
10342
  },
10440
- className: rootClassName$1Q + "-color-picker",
10343
+ className: rootClassName$1R + "-color-picker",
10441
10344
  type: "color"
10442
10345
  })), /*#__PURE__*/React.createElement(TextEditorHeaderInput, {
10443
10346
  label: "Hexadecimal",
@@ -10463,10 +10366,10 @@ TextEditorColorPicker.defaultProps = {
10463
10366
  onChange: function onChange() {}
10464
10367
  };
10465
10368
 
10466
- var rootClassName$1R = 'text-editor-header-button';
10369
+ var rootClassName$1S = 'text-editor-header-button';
10467
10370
  function TextEditorHeaderButton(props) {
10468
10371
  return /*#__PURE__*/React.createElement("button", {
10469
- className: getMergedClassNames([rootClassName$1R, props.active ? 'active' : '']),
10372
+ className: getMergedClassNames([rootClassName$1S, props.active ? 'active' : '']),
10470
10373
  onClick: props.onClick,
10471
10374
  disabled: props.disabled
10472
10375
  }, props.icon);
@@ -10478,7 +10381,7 @@ TextEditorHeaderButton.propTypes = {
10478
10381
  disabled: propTypes.bool
10479
10382
  };
10480
10383
 
10481
- var rootClassName$1S = 'text-editor-title-choser';
10384
+ var rootClassName$1T = 'text-editor-title-choser';
10482
10385
  function TextEditorTitleChoser(props) {
10483
10386
  var _useState = useState(getUniqueKey()),
10484
10387
  id = _useState[0];
@@ -10522,7 +10425,7 @@ function TextEditorTitleChoser(props) {
10522
10425
  };
10523
10426
 
10524
10427
  return /*#__PURE__*/React.createElement("div", {
10525
- className: rootClassName$1S,
10428
+ className: rootClassName$1T,
10526
10429
  id: id
10527
10430
  }, /*#__PURE__*/React.createElement("button", {
10528
10431
  onClick: function onClick() {
@@ -10542,7 +10445,7 @@ TextEditorTitleChoser.defaultProps = {
10542
10445
  onChange: function onChange() {}
10543
10446
  };
10544
10447
 
10545
- var rootClassName$1T = 'text-editor-url-creator';
10448
+ var rootClassName$1U = 'text-editor-url-creator';
10546
10449
  function TextEditorUrlCreator(props) {
10547
10450
  var _useState = useState(getUniqueKey()),
10548
10451
  id = _useState[0];
@@ -10618,9 +10521,9 @@ function TextEditorUrlCreator(props) {
10618
10521
 
10619
10522
  return /*#__PURE__*/React.createElement("div", {
10620
10523
  id: id,
10621
- className: rootClassName$1T
10524
+ className: rootClassName$1U
10622
10525
  }, /*#__PURE__*/React.createElement(Row$1, {
10623
- className: rootClassName$1T + "-url-row"
10526
+ className: rootClassName$1U + "-url-row"
10624
10527
  }, /*#__PURE__*/React.createElement(TextEditorHeaderInput, {
10625
10528
  label: "Url",
10626
10529
  value: urlValue,
@@ -10629,7 +10532,7 @@ function TextEditorUrlCreator(props) {
10629
10532
  },
10630
10533
  onEnter: handleSubmit
10631
10534
  })), /*#__PURE__*/React.createElement(Row$1, {
10632
- className: rootClassName$1T + "-text-row"
10535
+ className: rootClassName$1U + "-text-row"
10633
10536
  }, /*#__PURE__*/React.createElement(TextEditorHeaderInput, {
10634
10537
  label: "Texto",
10635
10538
  value: textValue,
@@ -10638,7 +10541,7 @@ function TextEditorUrlCreator(props) {
10638
10541
  },
10639
10542
  onEnter: handleSubmit
10640
10543
  })), /*#__PURE__*/React.createElement(Row$1, {
10641
- className: rootClassName$1T + "-new-tab-row"
10544
+ className: rootClassName$1U + "-new-tab-row"
10642
10545
  }, /*#__PURE__*/React.createElement(Checkbox, {
10643
10546
  value: newTab,
10644
10547
  onChange: function onChange(value) {
@@ -10649,7 +10552,7 @@ function TextEditorUrlCreator(props) {
10649
10552
  return setNewTab(!newTab);
10650
10553
  }
10651
10554
  }, "Nova Guia")), /*#__PURE__*/React.createElement(Row$1, {
10652
- className: rootClassName$1T + "-ok-row"
10555
+ className: rootClassName$1U + "-ok-row"
10653
10556
  }, /*#__PURE__*/React.createElement(TextEditorMenuButton, {
10654
10557
  disabled: !urlValue || !textValue,
10655
10558
  onClick: handleSubmit
@@ -10664,7 +10567,7 @@ TextEditorUrlCreator.defaultProps = {
10664
10567
  onChange: function onChange() {}
10665
10568
  };
10666
10569
 
10667
- var rootClassName$1U = 'component-text-editor';
10570
+ var rootClassName$1V = 'component-text-editor';
10668
10571
  function TextEditor(props) {
10669
10572
  var _useState = useState(getUniqueKey()),
10670
10573
  id = _useState[0];
@@ -10687,7 +10590,7 @@ function TextEditor(props) {
10687
10590
 
10688
10591
  var getProps = function getProps() {
10689
10592
  var p = _extends({}, props, {
10690
- className: getMergedClassNames([rootClassName$1U, props.className || '', props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
10593
+ className: getMergedClassNames([rootClassName$1V, props.className || '', props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
10691
10594
  });
10692
10595
 
10693
10596
  delete p.topLabel;
@@ -10714,7 +10617,7 @@ function TextEditor(props) {
10714
10617
  if (!selection || !selection.anchorNode) return;
10715
10618
  var aux = selection.anchorNode.parentElement;
10716
10619
 
10717
- while (!aux.hasAttribute('class', rootClassName$1U + "-editor")) {
10620
+ while (!aux.hasAttribute('class', rootClassName$1V + "-editor")) {
10718
10621
  if (aux.tagName === 'A') {
10719
10622
  isLink = true;
10720
10623
  } else if (aux.tagName === 'FONT') {
@@ -10778,13 +10681,13 @@ function TextEditor(props) {
10778
10681
  }
10779
10682
  }, [props.value]);
10780
10683
  return /*#__PURE__*/React.createElement("div", {
10781
- className: rootClassName$1U + "-outer"
10684
+ className: rootClassName$1V + "-outer"
10782
10685
  }, !props.hideTopLabel && /*#__PURE__*/React.createElement("div", {
10783
- className: getMergedClassNames([rootClassName$1U + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
10686
+ className: getMergedClassNames([rootClassName$1V + "-top-label", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
10784
10687
  }, props.topLabel), /*#__PURE__*/React.createElement("div", getProps(), /*#__PURE__*/React.createElement("div", {
10785
- className: rootClassName$1U + "-header"
10688
+ className: rootClassName$1V + "-header"
10786
10689
  }, /*#__PURE__*/React.createElement("div", {
10787
- className: rootClassName$1U + "-left-content"
10690
+ className: rootClassName$1V + "-left-content"
10788
10691
  }, /*#__PURE__*/React.createElement(DropdownMenu, {
10789
10692
  opened: fontOpened,
10790
10693
  setOpened: setFontOpened,
@@ -10904,7 +10807,7 @@ function TextEditor(props) {
10904
10807
  document.querySelector("#" + id).focus();
10905
10808
  }
10906
10809
  })), /*#__PURE__*/React.createElement("div", {
10907
- className: rootClassName$1U + "-right-content"
10810
+ className: rootClassName$1V + "-right-content"
10908
10811
  }, /*#__PURE__*/React.createElement(TextEditorHeaderButton, {
10909
10812
  disabled: props.disabled,
10910
10813
  icon: /*#__PURE__*/React.createElement(UndoIcon, null),
@@ -10919,12 +10822,12 @@ function TextEditor(props) {
10919
10822
  }
10920
10823
  }))), /*#__PURE__*/React.createElement("div", {
10921
10824
  id: id,
10922
- className: rootClassName$1U + "-editor",
10825
+ className: rootClassName$1V + "-editor",
10923
10826
  contentEditable: !props.disabled,
10924
10827
  onClick: verifyCursor,
10925
10828
  onKeyUp: verifyCursor
10926
10829
  })), !props.hideHelperText && /*#__PURE__*/React.createElement("div", {
10927
- className: getMergedClassNames([rootClassName$1U + "-helper-text", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
10830
+ className: getMergedClassNames([rootClassName$1V + "-helper-text", props.disabled ? 'disabled' : '', props.error ? 'error' : ''])
10928
10831
  }, props.helperText));
10929
10832
  }
10930
10833
  TextEditor.propTypes = {
@@ -10951,17 +10854,17 @@ var ToastTypes;
10951
10854
  ToastTypes["Error"] = "error";
10952
10855
  })(ToastTypes || (ToastTypes = {}));
10953
10856
 
10954
- var rootClassName$1V = 'component-toast';
10857
+ var rootClassName$1W = 'component-toast';
10955
10858
  function Toast(props) {
10956
10859
  var _useState = useState(props.id || getUniqueKey()),
10957
10860
  id = _useState[0];
10958
10861
 
10959
10862
  var getClassNames = function getClassNames() {
10960
- return getMergedClassNames([rootClassName$1V, rootClassName$1V + "-" + props.theme]);
10863
+ return getMergedClassNames([rootClassName$1W, rootClassName$1W + "-" + props.theme]);
10961
10864
  };
10962
10865
 
10963
10866
  useEffect(function () {
10964
- var el = document.querySelector("#" + id + " ." + rootClassName$1V + "-fill");
10867
+ var el = document.querySelector("#" + id + " ." + rootClassName$1W + "-fill");
10965
10868
 
10966
10869
  if (el) {
10967
10870
  el.style.animation = "fillToZero " + props.timeout + "ms linear forwards";
@@ -11008,22 +10911,22 @@ function Toast(props) {
11008
10911
  id: id,
11009
10912
  className: getClassNames()
11010
10913
  }, React.createElement("div", {
11011
- className: rootClassName$1V + "-left-content"
10914
+ className: rootClassName$1W + "-left-content"
11012
10915
  }, props.label), React.createElement("div", {
11013
- className: rootClassName$1V + "-right-content"
10916
+ className: rootClassName$1W + "-right-content"
11014
10917
  }, props.showActionButton && React.createElement("div", {
11015
- className: rootClassName$1V + "-action-button"
10918
+ className: rootClassName$1W + "-action-button"
11016
10919
  }, props.actionButtonText), React.createElement("div", {
11017
- className: rootClassName$1V + "-close-button"
10920
+ className: rootClassName$1W + "-close-button"
11018
10921
  }, React.createElement(IconButton$1, {
11019
10922
  icon: React.createElement(CloseIcon, null),
11020
10923
  onClick: function onClick() {
11021
10924
  if (typeof props.onClose === 'function') props.onClose();
11022
10925
  }
11023
10926
  }))), props.timeout ? React.createElement("div", {
11024
- className: getMergedClassNames([rootClassName$1V + "-bar", props.showStatusBar ? '' : 'hide'])
10927
+ className: getMergedClassNames([rootClassName$1W + "-bar", props.showStatusBar ? '' : 'hide'])
11025
10928
  }, React.createElement("div", {
11026
- className: rootClassName$1V + "-fill",
10929
+ className: rootClassName$1W + "-fill",
11027
10930
  onAnimationEnd: function onAnimationEnd() {
11028
10931
  if (typeof props.onClose === 'function') props.onClose();
11029
10932
  }
@@ -11038,7 +10941,7 @@ Toast.defaultProps = {
11038
10941
  onClose: function onClose() {}
11039
10942
  };
11040
10943
 
11041
- var rootClassName$1W = 'comp-toast-manager';
10944
+ var rootClassName$1X = 'comp-toast-manager';
11042
10945
  var count = 0;
11043
10946
  var ToastManager = forwardRef(function (props, ref) {
11044
10947
  var _useState = useState([]),
@@ -11113,11 +11016,11 @@ var ToastManager = forwardRef(function (props, ref) {
11113
11016
  });
11114
11017
 
11115
11018
  var getClassNames = function getClassNames() {
11116
- return getMergedClassNames([rootClassName$1W + "-toasts", rootClassName$1W + "-" + props.verticalPosition, rootClassName$1W + "-" + props.horizontalPosition, props.reverse ? rootClassName$1W + "-reverse" : '', props.animateSize ? rootClassName$1W + "-animate-size" : '']);
11019
+ return getMergedClassNames([rootClassName$1X + "-toasts", rootClassName$1X + "-" + props.verticalPosition, rootClassName$1X + "-" + props.horizontalPosition, props.reverse ? rootClassName$1X + "-reverse" : '', props.animateSize ? rootClassName$1X + "-animate-size" : '']);
11117
11020
  };
11118
11021
 
11119
11022
  useLayoutEffect(function () {
11120
- var wrapper = document.querySelector("." + rootClassName$1W + "-toasts");
11023
+ var wrapper = document.querySelector("." + rootClassName$1X + "-toasts");
11121
11024
 
11122
11025
  if (wrapper && wrapper.childElementCount > 0) {
11123
11026
  var somaDasAlturas = 0;
@@ -11128,7 +11031,7 @@ var ToastManager = forwardRef(function (props, ref) {
11128
11031
  for (var i = 0; i < wrapper.children.length; i++) {
11129
11032
  var el = wrapper.children[i];
11130
11033
 
11131
- if (!el.classList.contains(rootClassName$1W + "-toast-exit")) {
11034
+ if (!el.classList.contains(rootClassName$1X + "-toast-exit")) {
11132
11035
  el.style.transform = "translateY(" + somaDasAlturas + "px)";
11133
11036
  somaDasAlturas += el.getBoundingClientRect().height + 12;
11134
11037
  }
@@ -11137,7 +11040,7 @@ var ToastManager = forwardRef(function (props, ref) {
11137
11040
  for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
11138
11041
  var _el = wrapper.children[_i];
11139
11042
 
11140
- if (!_el.classList.contains(rootClassName$1W + "-toast-exit")) {
11043
+ if (!_el.classList.contains(rootClassName$1X + "-toast-exit")) {
11141
11044
  somaDasAlturas += _el.getBoundingClientRect().height + 12;
11142
11045
  _el.style.transform = "translateY(" + somaDasAlturas + "px)";
11143
11046
  }
@@ -11146,7 +11049,7 @@ var ToastManager = forwardRef(function (props, ref) {
11146
11049
  for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
11147
11050
  var _el2 = wrapper.children[_i2];
11148
11051
 
11149
- if (!_el2.classList.contains(rootClassName$1W + "-toast-exit")) {
11052
+ if (!_el2.classList.contains(rootClassName$1X + "-toast-exit")) {
11150
11053
  somaDasAlturas += _el2.getBoundingClientRect().height + 12;
11151
11054
  _el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
11152
11055
  }
@@ -11157,7 +11060,7 @@ var ToastManager = forwardRef(function (props, ref) {
11157
11060
  for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
11158
11061
  var _el3 = wrapper.children[_i3];
11159
11062
 
11160
- if (!_el3.classList.contains(rootClassName$1W + "-toast-exit")) {
11063
+ if (!_el3.classList.contains(rootClassName$1X + "-toast-exit")) {
11161
11064
  _el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
11162
11065
  somaDasAlturas += _el3.getBoundingClientRect().height + 12;
11163
11066
  }
@@ -11170,11 +11073,11 @@ var ToastManager = forwardRef(function (props, ref) {
11170
11073
  }, arrayOfToast.map(function (toast) {
11171
11074
  return React.createElement(CSSTransition, {
11172
11075
  timeout: 300,
11173
- classNames: rootClassName$1W + "-toast",
11076
+ classNames: rootClassName$1X + "-toast",
11174
11077
  key: toast.id,
11175
11078
  unmountOnExit: true
11176
11079
  }, React.createElement("div", {
11177
- className: rootClassName$1W + "-toastzin"
11080
+ className: rootClassName$1X + "-toastzin"
11178
11081
  }, React.createElement(Toast, {
11179
11082
  theme: toast.type,
11180
11083
  label: toast.label,
@@ -11204,7 +11107,7 @@ var TooltipPosition;
11204
11107
  TooltipPosition["Bottom"] = "bottom";
11205
11108
  })(TooltipPosition || (TooltipPosition = {}));
11206
11109
 
11207
- var rootClassName$1X = 'component-tooltip';
11110
+ var rootClassName$1Y = 'component-tooltip';
11208
11111
  function Tooltip(props) {
11209
11112
  var _useState = useState(props.id || getUniqueKey()),
11210
11113
  id = _useState[0];
@@ -11212,13 +11115,13 @@ function Tooltip(props) {
11212
11115
  var getProps = function getProps() {
11213
11116
  return _extends({}, props, {
11214
11117
  id: id,
11215
- className: getMergedClassNames([rootClassName$1X, props.className, rootClassName$1X + "-" + props.position])
11118
+ className: getMergedClassNames([rootClassName$1Y, props.className, rootClassName$1Y + "-" + props.position])
11216
11119
  });
11217
11120
  };
11218
11121
 
11219
11122
  useEffect(function () {
11220
11123
  var element = document.querySelector("#" + id);
11221
- var triangle = element.querySelector("." + rootClassName$1X + "-triangle");
11124
+ var triangle = element.querySelector("." + rootClassName$1Y + "-triangle");
11222
11125
  var bounding = element.getBoundingClientRect();
11223
11126
  var ScreenWidth = window.innerWidth;
11224
11127
 
@@ -11239,16 +11142,16 @@ function Tooltip(props) {
11239
11142
  }
11240
11143
  }, [id, props.position]);
11241
11144
  return React.createElement("div", {
11242
- className: rootClassName$1X + "-outer"
11145
+ className: rootClassName$1Y + "-outer"
11243
11146
  }, React.createElement("div", Object.assign({}, getProps()), props.children, React.createElement("div", {
11244
- className: rootClassName$1X + "-triangle"
11147
+ className: rootClassName$1Y + "-triangle"
11245
11148
  })));
11246
11149
  }
11247
11150
  Tooltip.defaultProps = {
11248
11151
  position: TooltipPosition.Top
11249
11152
  };
11250
11153
 
11251
- var rootClassName$1Y = 'tooltip-manager';
11154
+ var rootClassName$1Z = 'tooltip-manager';
11252
11155
  function TooltipManager() {
11253
11156
  var _useState = useState([]),
11254
11157
  arrayOfTooltips = _useState[0],
@@ -11347,17 +11250,17 @@ function TooltipManager() {
11347
11250
  };
11348
11251
  }, []);
11349
11252
  return React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
11350
- className: rootClassName$1Y
11253
+ className: rootClassName$1Z
11351
11254
  }, arrayOfTooltips.map(function (tooltip) {
11352
11255
  return React.createElement(CSSTransition, {
11353
11256
  timeout: 300,
11354
- classNames: rootClassName$1Y + "-tooltip",
11257
+ classNames: rootClassName$1Z + "-tooltip",
11355
11258
  key: tooltip.id,
11356
11259
  unmountOnExit: true
11357
11260
  }, React.createElement(Tooltip, {
11358
11261
  id: tooltip.id,
11359
11262
  position: tooltip.position,
11360
- className: rootClassName$1Y + "-tooltip",
11263
+ className: rootClassName$1Z + "-tooltip",
11361
11264
  style: _extends({}, tooltip.style),
11362
11265
  onMouseLeave: function onMouseLeave() {
11363
11266
  if (!document.querySelectorAll("[tooltip-id=" + tooltip.id + "]").length) {
@@ -11374,7 +11277,7 @@ function TooltipManager() {
11374
11277
  TooltipManager.propTypes = {};
11375
11278
  TooltipManager.defaultProps = {};
11376
11279
 
11377
- var rootClassName$1Z = 'component-top-loader';
11280
+ var rootClassName$1_ = 'component-top-loader';
11378
11281
  function TopLoader(props) {
11379
11282
  return React.createElement(CSSTransition, {
11380
11283
  classNames: 'fade',
@@ -11382,11 +11285,11 @@ function TopLoader(props) {
11382
11285
  "in": props.opened,
11383
11286
  unmountOnExit: true
11384
11287
  }, React.createElement("div", {
11385
- className: rootClassName$1Z
11288
+ className: rootClassName$1_
11386
11289
  }, React.createElement("div", {
11387
- className: rootClassName$1Z + "-logo"
11290
+ className: rootClassName$1_ + "-logo"
11388
11291
  }, props.logo), props.status && React.createElement("div", {
11389
- className: rootClassName$1Z + "-status"
11292
+ className: rootClassName$1_ + "-status"
11390
11293
  }, props.status)));
11391
11294
  }
11392
11295
  TopLoader.defaultProps = {
@@ -11395,11 +11298,11 @@ TopLoader.defaultProps = {
11395
11298
  })
11396
11299
  };
11397
11300
 
11398
- var rootClassName$1_ = 'component-video-item';
11301
+ var rootClassName$1$ = 'component-video-item';
11399
11302
  function VideoItem(props) {
11400
11303
  var getProps = function getProps() {
11401
11304
  var p = _extends({}, props, {
11402
- className: getMergedClassNames([rootClassName$1_, props.className])
11305
+ className: getMergedClassNames([rootClassName$1$, props.className])
11403
11306
  });
11404
11307
 
11405
11308
  delete p.url;
@@ -11416,20 +11319,20 @@ function VideoItem(props) {
11416
11319
  blackGround: props.blackGround || false
11417
11320
  })), React.createElement(Col$1, {
11418
11321
  cols: [12, 12, 6, 8, 8],
11419
- className: rootClassName$1_ + "-text-col"
11322
+ className: rootClassName$1$ + "-text-col"
11420
11323
  }, React.createElement(Row$1, {
11421
- className: rootClassName$1_ + "-text-row"
11324
+ className: rootClassName$1$ + "-text-row"
11422
11325
  }, React.createElement(Col$1, {
11423
- className: rootClassName$1_ + "-title"
11326
+ className: rootClassName$1$ + "-title"
11424
11327
  }, props.title), React.createElement(Col$1, {
11425
- className: rootClassName$1_ + "-description nunito"
11328
+ className: rootClassName$1$ + "-description nunito"
11426
11329
  }, props.description))));
11427
11330
  }
11428
11331
  VideoItem.defaultProps = {
11429
11332
  url: ''
11430
11333
  };
11431
11334
 
11432
- var rootClassName$1$ = 'video-modal';
11335
+ var rootClassName$20 = 'video-modal';
11433
11336
  function VideoModal(props) {
11434
11337
  var handleClose = useCallback(function () {
11435
11338
  props.onClose(props.modalKey);
@@ -11437,7 +11340,7 @@ function VideoModal(props) {
11437
11340
  var filteredProps = useMemo(function () {
11438
11341
  var p = _extends({}, props, {
11439
11342
  id: props.id ? props.id : props.modalKey ? props.modalKey : "modal" + getUniqueKey(),
11440
- className: getMergedClassNames([rootClassName$1$, props.className || '', props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$1$ + "-" + String(props.size).toLowerCase()])
11343
+ className: getMergedClassNames([rootClassName$20, props.className || '', props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$20 + "-" + String(props.size).toLowerCase()])
11441
11344
  });
11442
11345
 
11443
11346
  delete p.urlVideo;
@@ -11456,12 +11359,12 @@ function VideoModal(props) {
11456
11359
  return p;
11457
11360
  }, [props]);
11458
11361
  return React.createElement("div", Object.assign({}, filteredProps), React.createElement("div", {
11459
- className: rootClassName$1$ + "-close-button"
11362
+ className: rootClassName$20 + "-close-button"
11460
11363
  }, React.createElement(IconButton$1, {
11461
11364
  onClick: handleClose,
11462
11365
  icon: React.createElement(CloseIcon, null)
11463
11366
  })), React.createElement("div", {
11464
- className: rootClassName$1$ + "-video-row"
11367
+ className: rootClassName$20 + "-video-row"
11465
11368
  }, React.createElement(VideoPlayer, Object.assign({
11466
11369
  blackGround: true
11467
11370
  }, props.videoPlayerProps, {
@@ -11501,7 +11404,7 @@ function useDropOpened(initialState) {
11501
11404
  return [opened, toggleOpened];
11502
11405
  }
11503
11406
 
11504
- var rootClassName$20 = 'comp-modal-manager';
11407
+ var rootClassName$21 = 'comp-modal-manager';
11505
11408
  var maskRootClassName$1 = 'component-modal-mask';
11506
11409
 
11507
11410
  var hackFocus$1 = function hackFocus() {
@@ -11587,14 +11490,14 @@ function useModalManager() {
11587
11490
  };
11588
11491
 
11589
11492
  return [React.createElement(React.Fragment, null, React.createElement(TransitionGroup, {
11590
- className: rootClassName$20 + "-modals"
11493
+ className: rootClassName$21 + "-modals"
11591
11494
  }, arrayOfModal.map(function (obj) {
11592
11495
  var _obj$props, _obj$props2, _obj$props3;
11593
11496
 
11594
11497
  var M = obj.component;
11595
11498
  return React.createElement(CSSTransition, {
11596
11499
  timeout: 300,
11597
- classNames: (_obj$props = obj.props) !== null && _obj$props !== void 0 && _obj$props.mobileOnXS ? rootClassName$20 + "-mask-mobile-on-xs" : rootClassName$20 + "-mask",
11500
+ classNames: (_obj$props = obj.props) !== null && _obj$props !== void 0 && _obj$props.mobileOnXS ? rootClassName$21 + "-mask-mobile-on-xs" : rootClassName$21 + "-mask",
11598
11501
  key: (_obj$props2 = obj.props) === null || _obj$props2 === void 0 ? void 0 : _obj$props2.modalKey,
11599
11502
  unmountOnExit: true
11600
11503
  }, React.createElement(ModalMask, {
@@ -11666,7 +11569,7 @@ function useScreenSize() {
11666
11569
  return value;
11667
11570
  }
11668
11571
 
11669
- var rootClassName$21 = 'comp-toast-manager';
11572
+ var rootClassName$22 = 'comp-toast-manager';
11670
11573
  var count$1 = 0;
11671
11574
  function useToastManager(props) {
11672
11575
  var _useState = useState([]),
@@ -11714,10 +11617,10 @@ function useToastManager(props) {
11714
11617
  setArrayOfToast([]);
11715
11618
  }, []);
11716
11619
  var classNames = useMemo(function () {
11717
- return getMergedClassNames([rootClassName$21 + "-toasts", rootClassName$21 + "-" + verticalPosition, rootClassName$21 + "-" + horizontalPosition, reverse ? rootClassName$21 + "-reverse" : '', animateSize ? rootClassName$21 + "-animate-size" : '']);
11620
+ return getMergedClassNames([rootClassName$22 + "-toasts", rootClassName$22 + "-" + verticalPosition, rootClassName$22 + "-" + horizontalPosition, reverse ? rootClassName$22 + "-reverse" : '', animateSize ? rootClassName$22 + "-animate-size" : '']);
11718
11621
  }, [reverse, animateSize, horizontalPosition, verticalPosition]);
11719
11622
  useLayoutEffect(function () {
11720
- var wrapper = document.querySelector("." + rootClassName$21 + "-toasts");
11623
+ var wrapper = document.querySelector("." + rootClassName$22 + "-toasts");
11721
11624
 
11722
11625
  if (wrapper && wrapper.childElementCount > 0) {
11723
11626
  var somaDasAlturas = 0;
@@ -11728,7 +11631,7 @@ function useToastManager(props) {
11728
11631
  for (var i = 0; i < wrapper.children.length; i++) {
11729
11632
  var el = wrapper.children[i];
11730
11633
 
11731
- if (!el.classList.contains(rootClassName$21 + "-toast-exit")) {
11634
+ if (!el.classList.contains(rootClassName$22 + "-toast-exit")) {
11732
11635
  el.style.transform = "translateY(" + somaDasAlturas + "px)";
11733
11636
  somaDasAlturas += el.getBoundingClientRect().height + 12;
11734
11637
  }
@@ -11737,7 +11640,7 @@ function useToastManager(props) {
11737
11640
  for (var _i = wrapper.children.length - 1; _i >= 0; _i--) {
11738
11641
  var _el = wrapper.children[_i];
11739
11642
 
11740
- if (!_el.classList.contains(rootClassName$21 + "-toast-exit")) {
11643
+ if (!_el.classList.contains(rootClassName$22 + "-toast-exit")) {
11741
11644
  somaDasAlturas += _el.getBoundingClientRect().height + 12;
11742
11645
  _el.style.transform = "translateY(" + somaDasAlturas + "px)";
11743
11646
  }
@@ -11746,7 +11649,7 @@ function useToastManager(props) {
11746
11649
  for (var _i2 = 0; _i2 < wrapper.children.length; _i2++) {
11747
11650
  var _el2 = wrapper.children[_i2];
11748
11651
 
11749
- if (!_el2.classList.contains(rootClassName$21 + "-toast-exit")) {
11652
+ if (!_el2.classList.contains(rootClassName$22 + "-toast-exit")) {
11750
11653
  somaDasAlturas += _el2.getBoundingClientRect().height + 12;
11751
11654
  _el2.style.transform = "translateY(-" + somaDasAlturas + "px)";
11752
11655
  }
@@ -11757,7 +11660,7 @@ function useToastManager(props) {
11757
11660
  for (var _i3 = wrapper.children.length - 1; _i3 >= 0; _i3--) {
11758
11661
  var _el3 = wrapper.children[_i3];
11759
11662
 
11760
- if (!_el3.classList.contains(rootClassName$21 + "-toast-exit")) {
11663
+ if (!_el3.classList.contains(rootClassName$22 + "-toast-exit")) {
11761
11664
  _el3.style.transform = "translateY(-" + somaDasAlturas + "px)";
11762
11665
  somaDasAlturas += _el3.getBoundingClientRect().height + 12;
11763
11666
  }
@@ -11770,11 +11673,11 @@ function useToastManager(props) {
11770
11673
  }, arrayOfToast.map(function (toast) {
11771
11674
  return React.createElement(CSSTransition, {
11772
11675
  timeout: 300,
11773
- classNames: rootClassName$21 + "-toast",
11676
+ classNames: rootClassName$22 + "-toast",
11774
11677
  key: toast.id,
11775
11678
  unmountOnExit: true
11776
11679
  }, React.createElement("div", {
11777
- className: rootClassName$21 + "-toastzin"
11680
+ className: rootClassName$22 + "-toastzin"
11778
11681
  }, React.createElement(Toast, {
11779
11682
  theme: toast.theme,
11780
11683
  label: toast.label,