pixel-react 1.6.1 → 1.6.2

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.6.1",
4
+ "version": "1.6.2",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -215,7 +215,7 @@ const Select: FC<SelectProps> = ({
215
215
  {errorMsg && (
216
216
  <Typography
217
217
  as="div"
218
- lineHeight="12px"
218
+ lineHeight="15px"
219
219
  fontSize={10}
220
220
  color="var(--error_light)"
221
221
  className="ff-select-error-msg"
@@ -187,7 +187,7 @@ const TableBody = React.memo(
187
187
  }) => (
188
188
  <tbody>
189
189
  {flattenedTreeData.map(({ node, level }) => {
190
- const isExpanded = expandedNodes.includes(node.id);
190
+ const isExpanded = expandedNodes.includes(node?.id);
191
191
  return (
192
192
  <TableRow
193
193
  key={node.id}
@@ -219,7 +219,7 @@ const TreeTable: React.FC<TreeTableProps> = ({
219
219
  onExpand,
220
220
  }) => {
221
221
  const handleToggleExpand = useCallback(
222
- (node: any) => onExpand?.(!expandedNodes.includes(node.id), node.id),
222
+ (node: any) => onExpand?.(!expandedNodes.includes(node?.id), node?.id),
223
223
  [expandedNodes, onExpand]
224
224
  );
225
225
 
@@ -21,7 +21,7 @@ export interface TreeTableProps {
21
21
  treeData: any;
22
22
  columnsData: Column[];
23
23
  selected?: string[];
24
- select?: 'radio' | 'checkbox' | null;
24
+ select?: 'radio' | 'checkbox' | 'none';
25
25
  onChange?: (nodes: string[]) => void;
26
26
  onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
27
27
  expandedNodes: string[];