plataforma-fundacao-componentes 2.22.2 → 2.22.5

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.
@@ -3961,7 +3961,7 @@ function Col(props) {
3961
3961
  });
3962
3962
 
3963
3963
  var rp = _extends({}, props, {
3964
- className: getMergedClassNames([props.className, rootClassName$L].concat(getSizes, [props.centralized ? 'centralized' : '', props.end ? 'end' : '', props.noPadding ? 'no-padding' : '']))
3964
+ className: getMergedClassNames([props.className, rootClassName$L].concat(getSizes, [props.centralized ? 'centralized' : '', props.end ? 'end' : '', props.noPadding ? 'no-padding' : '', props.noPaddingTop ? 'no-padding-top' : '', props.buttonActionsCol ? 'button-actions-col' : '']))
3965
3965
  });
3966
3966
 
3967
3967
  delete rp.noPadding;
@@ -4421,7 +4421,7 @@ var DropdownItem$1 = memo(DropdownItem);
4421
4421
  var rootClassName$S = 'component-dropdown-menu';
4422
4422
  function DropdownMenu(props) {
4423
4423
  var id = useMemo(function () {
4424
- return "" + rootClassName$S + (props.id ? props.id : getUniqueKey());
4424
+ return props.id ? props.id : getUniqueKey();
4425
4425
  }, [props.id]);
4426
4426
 
4427
4427
  var _useState = useState(null),
@@ -8435,7 +8435,7 @@ function Modal(props) {
8435
8435
  var filteredProps = useMemo(function () {
8436
8436
  var p = _extends({}, props, {
8437
8437
  id: props.id ? props.id : props.modalKey ? props.modalKey : "modal" + getUniqueKey(),
8438
- className: getMergedClassNames([rootClassName$1k, props.className || '', props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$1k + "-" + String(props.size).toLowerCase()])
8438
+ className: getMergedClassNames([props.className || '', rootClassName$1k, props.mobileOnXS ? 'mobile-on-xs' : '', rootClassName$1k + "-" + String(props.size).toLowerCase()])
8439
8439
  });
8440
8440
 
8441
8441
  delete p.footer;
@@ -8478,7 +8478,7 @@ function Modal(props) {
8478
8478
  onClick: handleClose,
8479
8479
  icon: React.createElement(CloseIcon, null)
8480
8480
  }))), React.createElement("div", {
8481
- className: rootClassName$1k + "-content"
8481
+ className: getMergedClassNames([rootClassName$1k + "-content", props.compenseColPaddingContent ? 'compense' : ''])
8482
8482
  }, props.children), props.footer ? React.createElement("div", {
8483
8483
  className: rootClassName$1k + "-footer"
8484
8484
  }, footer) : undefined);
@@ -9671,14 +9671,18 @@ function Table(props) {
9671
9671
  }, React.createElement("tr", null), props.lines && props.lines.length ? Array.from(props.lines).map(function (line, index) {
9672
9672
  var key = line.key ? line.key : index;
9673
9673
  delete line.key;
9674
+ var disabled = line.disabled || false;
9675
+ delete line.disabled;
9674
9676
  var lineProps = line.props ? line.props : {};
9675
9677
  delete line.props;
9676
9678
  return React.createElement("tr", Object.assign({
9677
- key: key
9679
+ key: key,
9680
+ "aria-disabled": disabled
9678
9681
  }, lineProps), React.createElement("td", null), Object.values(line).map(function (cell, valueIndex) {
9682
+ var columnProps = props.columns[valueIndex].props || {};
9679
9683
  return React.createElement("td", Object.assign({
9680
9684
  key: cell && cell.key ? cell.key : valueIndex
9681
- }, props.columns[valueIndex] && props.columns[valueIndex].props ? props.columns[valueIndex].props : {}, cell && cell.props ? cell.props : {}), cell);
9685
+ }, columnProps, cell && cell.props ? cell.props : {}), cell);
9682
9686
  }), React.createElement("td", null));
9683
9687
  }) : undefined))));
9684
9688
  }
@@ -9901,12 +9905,15 @@ function TableWithOverflow(props) {
9901
9905
  delete line.props;
9902
9906
  return React.createElement("tr", Object.assign({
9903
9907
  key: key
9904
- }, lineProps), React.createElement("td", null), Object.values(line).map(function (cell, valueIndex) {
9905
- var _props$columns$valueI;
9906
-
9907
- return React.createElement("td", Object.assign({
9908
- key: cell.key ? cell.key : valueIndex
9909
- }, (_props$columns$valueI = props.columns[valueIndex]) === null || _props$columns$valueI === void 0 ? void 0 : _props$columns$valueI.props, cell.props), cell);
9908
+ }, lineProps), React.createElement("td", null), Object.entries(line).map(function (cell, valueIndex) {
9909
+ var column = Array.from(props.columns).find(function (c) {
9910
+ return c.key === cell[0];
9911
+ });
9912
+ return (column === null || column === void 0 ? void 0 : column.key) === 'actions' ? React.createElement("td", {
9913
+ key: fakeId + "-actions"
9914
+ }) : React.createElement("td", Object.assign({
9915
+ key: cell[1].key ? cell[1].key : valueIndex
9916
+ }, column === null || column === void 0 ? void 0 : column.props, cell[1].props), cell[1]);
9910
9917
  }), React.createElement("td", null));
9911
9918
  }) : undefined)), props.upperHeader ? React.createElement(React.Fragment, null, React.createElement("div", {
9912
9919
  className: getMergedClassNames([rootClassName$1A + "-upper-header", props.upperHeader.active ? 'active' : ''])