@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/main.js CHANGED
@@ -4804,6 +4804,11 @@ const $96aabcfbe9019d87$export$2306c7347640f5e4 = (0, $80923bc9c1ba824c$export$3
4804
4804
  py: 8,
4805
4805
  fontSize: "$3",
4806
4806
  variants: {
4807
+ isInLastRow: {
4808
+ true: {
4809
+ borderBottom: "none"
4810
+ }
4811
+ },
4807
4812
  isHeader: {
4808
4813
  true: {
4809
4814
  color: "$gray10",
@@ -4869,7 +4874,10 @@ const $3dd82f03c348455b$var$TableWrapper = /*#__PURE__*/ $E4F9t$react.forwardRef
4869
4874
  type: "tbody",
4870
4875
  children: [
4871
4876
  ...collection.body.childNodes
4872
- ].map((row)=>{
4877
+ ].map((row, index)=>{
4878
+ const isLastRow = index === [
4879
+ ...collection.body.childNodes
4880
+ ].length - 1;
4873
4881
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($3dd82f03c348455b$var$TableRow, {
4874
4882
  item: row,
4875
4883
  state: state,
@@ -4880,6 +4888,7 @@ const $3dd82f03c348455b$var$TableWrapper = /*#__PURE__*/ $E4F9t$react.forwardRef
4880
4888
  cell: cell,
4881
4889
  state: state
4882
4890
  }, cell.key) : /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($3dd82f03c348455b$var$TableCell, {
4891
+ isInLastRow: isLastRow,
4883
4892
  cell: cell,
4884
4893
  state: state
4885
4894
  }, cell.key);
@@ -4957,13 +4966,14 @@ function $3dd82f03c348455b$var$TableRow({ item: item , children: children , stat
4957
4966
  children: children
4958
4967
  });
4959
4968
  }
4960
- function $3dd82f03c348455b$var$TableCell({ cell: cell , state: state }) {
4969
+ function $3dd82f03c348455b$var$TableCell({ cell: cell , state: state , isInLastRow: isInLastRow }) {
4961
4970
  const ref = $E4F9t$react.useRef(null);
4962
4971
  const { gridCellProps: gridCellProps } = (0, $E4F9t$reactaria.useTableCell)({
4963
4972
  node: cell
4964
4973
  }, state, ref);
4965
4974
  const { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $E4F9t$reactaria.useFocusRing)();
4966
4975
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $96aabcfbe9019d87$export$2306c7347640f5e4), {
4976
+ isInLastRow: isInLastRow,
4967
4977
  "data-focused": isFocusVisible,
4968
4978
  ref: ref,
4969
4979
  ...(0, $E4F9t$reactaria.mergeProps)(focusProps, gridCellProps),