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