@parrot-co/parrot-ui 0.0.78 → 0.0.79

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/module.js CHANGED
@@ -4759,6 +4759,11 @@ const $8de20d77864e0cc6$export$2306c7347640f5e4 = (0, $9ade691eb9e41cfb$export$3
4759
4759
  py: 8,
4760
4760
  fontSize: "$3",
4761
4761
  variants: {
4762
+ isInLastRow: {
4763
+ true: {
4764
+ borderBottom: "none"
4765
+ }
4766
+ },
4762
4767
  isHeader: {
4763
4768
  true: {
4764
4769
  color: "$gray10",
@@ -4824,7 +4829,10 @@ const $2c3cbfa2e31957ff$var$TableWrapper = /*#__PURE__*/ $kF5Av$forwardRef((prop
4824
4829
  type: "tbody",
4825
4830
  children: [
4826
4831
  ...collection.body.childNodes
4827
- ].map((row)=>{
4832
+ ].map((row, index)=>{
4833
+ const isLastRow = index === [
4834
+ ...collection.body.childNodes
4835
+ ].length - 1;
4828
4836
  return /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$TableRow, {
4829
4837
  item: row,
4830
4838
  state: state,
@@ -4835,6 +4843,7 @@ const $2c3cbfa2e31957ff$var$TableWrapper = /*#__PURE__*/ $kF5Av$forwardRef((prop
4835
4843
  cell: cell,
4836
4844
  state: state
4837
4845
  }, cell.key) : /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$TableCell, {
4846
+ isInLastRow: isLastRow,
4838
4847
  cell: cell,
4839
4848
  state: state
4840
4849
  }, cell.key);
@@ -4912,13 +4921,14 @@ function $2c3cbfa2e31957ff$var$TableRow({ item: item , children: children , stat
4912
4921
  children: children
4913
4922
  });
4914
4923
  }
4915
- function $2c3cbfa2e31957ff$var$TableCell({ cell: cell , state: state }) {
4924
+ function $2c3cbfa2e31957ff$var$TableCell({ cell: cell , state: state , isInLastRow: isInLastRow }) {
4916
4925
  const ref = $kF5Av$useRef(null);
4917
4926
  const { gridCellProps: gridCellProps } = (0, $kF5Av$useTableCell)({
4918
4927
  node: cell
4919
4928
  }, state, ref);
4920
4929
  const { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $kF5Av$useFocusRing)();
4921
4930
  return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $8de20d77864e0cc6$export$2306c7347640f5e4), {
4931
+ isInLastRow: isInLastRow,
4922
4932
  "data-focused": isFocusVisible,
4923
4933
  ref: ref,
4924
4934
  ...(0, $kF5Av$mergeProps)(focusProps, gridCellProps),