@parrot-co/parrot-ui 0.0.76 → 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
@@ -1598,7 +1598,6 @@ const $78991f4fdd965321$var$SpaceContext = /*#__PURE__*/ $E4F9t$react.createCont
1598
1598
  function $78991f4fdd965321$export$eef1e68107c58ef2({ children: children , compact: compact , gap: gap , ...props }) {
1599
1599
  const childrenCount = $E4F9t$react.Children.count(children);
1600
1600
  const nodes = $E4F9t$react.useMemo(()=>{
1601
- console.log("rendering space children");
1602
1601
  return $E4F9t$react.Children.map(children, (child, index)=>{
1603
1602
  const isFirstChild = index == 0;
1604
1603
  const isLastChild = index == childrenCount - 1;
@@ -4805,6 +4804,11 @@ const $96aabcfbe9019d87$export$2306c7347640f5e4 = (0, $80923bc9c1ba824c$export$3
4805
4804
  py: 8,
4806
4805
  fontSize: "$3",
4807
4806
  variants: {
4807
+ isInLastRow: {
4808
+ true: {
4809
+ borderBottom: "none"
4810
+ }
4811
+ },
4808
4812
  isHeader: {
4809
4813
  true: {
4810
4814
  color: "$gray10",
@@ -4870,7 +4874,10 @@ const $3dd82f03c348455b$var$TableWrapper = /*#__PURE__*/ $E4F9t$react.forwardRef
4870
4874
  type: "tbody",
4871
4875
  children: [
4872
4876
  ...collection.body.childNodes
4873
- ].map((row)=>{
4877
+ ].map((row, index)=>{
4878
+ const isLastRow = index === [
4879
+ ...collection.body.childNodes
4880
+ ].length - 1;
4874
4881
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($3dd82f03c348455b$var$TableRow, {
4875
4882
  item: row,
4876
4883
  state: state,
@@ -4881,6 +4888,7 @@ const $3dd82f03c348455b$var$TableWrapper = /*#__PURE__*/ $E4F9t$react.forwardRef
4881
4888
  cell: cell,
4882
4889
  state: state
4883
4890
  }, cell.key) : /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($3dd82f03c348455b$var$TableCell, {
4891
+ isInLastRow: isLastRow,
4884
4892
  cell: cell,
4885
4893
  state: state
4886
4894
  }, cell.key);
@@ -4958,13 +4966,14 @@ function $3dd82f03c348455b$var$TableRow({ item: item , children: children , stat
4958
4966
  children: children
4959
4967
  });
4960
4968
  }
4961
- function $3dd82f03c348455b$var$TableCell({ cell: cell , state: state }) {
4969
+ function $3dd82f03c348455b$var$TableCell({ cell: cell , state: state , isInLastRow: isInLastRow }) {
4962
4970
  const ref = $E4F9t$react.useRef(null);
4963
4971
  const { gridCellProps: gridCellProps } = (0, $E4F9t$reactaria.useTableCell)({
4964
4972
  node: cell
4965
4973
  }, state, ref);
4966
4974
  const { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $E4F9t$reactaria.useFocusRing)();
4967
4975
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $96aabcfbe9019d87$export$2306c7347640f5e4), {
4976
+ isInLastRow: isInLastRow,
4968
4977
  "data-focused": isFocusVisible,
4969
4978
  ref: ref,
4970
4979
  ...(0, $E4F9t$reactaria.mergeProps)(focusProps, gridCellProps),