pixel-react 1.10.10-4 → 1.10.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.10.10-4",
4
+ "version": "1.10.11",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -159,7 +159,7 @@
159
159
  .table-tree-row-action {
160
160
  display: inline-flex;
161
161
  align-items: center;
162
- svg{
162
+ svg {
163
163
  height: 14px;
164
164
  width: 14px;
165
165
  }
@@ -267,6 +267,7 @@
267
267
  height: 12px;
268
268
  width: 12px;
269
269
  transition: transform 0.3s ease;
270
+ cursor: pointer;
270
271
 
271
272
  path {
272
273
  fill: var(--brand-color);
@@ -288,4 +289,4 @@
288
289
  .tree-title-container {
289
290
  display: inline-flex;
290
291
  align-items: center;
291
- }
292
+ }
@@ -143,7 +143,7 @@ const TreeTable: React.FC<TreeTableProps> = ({
143
143
  setExpanding(node.key);
144
144
  onExpand?.(node, index);
145
145
  },
146
- [onExpand]
146
+ [onExpand, expanding]
147
147
  );
148
148
 
149
149
  const handleCheckBoxChange = useCallback(
@@ -151,7 +151,7 @@ const TreeTable: React.FC<TreeTableProps> = ({
151
151
  if (expanding) return;
152
152
  onChange?.(e, node);
153
153
  },
154
- [onChange]
154
+ [onChange, expanding]
155
155
  );
156
156
 
157
157
  const handleRowClick = useCallback(
@@ -159,7 +159,7 @@ const TreeTable: React.FC<TreeTableProps> = ({
159
159
  if (expanding) return;
160
160
  onClick?.(e, node);
161
161
  },
162
- [onClick]
162
+ [onClick, expanding]
163
163
  );
164
164
 
165
165
  return (