@nulogy/components 14.4.1 → 14.5.0

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.
@@ -11,4 +11,9 @@ export declare const CustomCard: {
11
11
  };
12
12
  };
13
13
  export declare const Cardset: () => React.JSX.Element;
14
- export declare const AdvancedUsage: () => React.JSX.Element;
14
+ export declare const AdvancedUsage: {
15
+ (): React.JSX.Element;
16
+ parameters: {
17
+ layout: string;
18
+ };
19
+ };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { RowType, Columns } from "./Table.types";
2
+ import { RowType, Columns, RowBorder } from "./Table.types";
3
3
  export type BaseTableProps<ColumnMetaData> = {
4
4
  columns: Columns<ColumnMetaData>;
5
5
  rows: RowType[];
@@ -16,6 +16,7 @@ export type BaseTableProps<ColumnMetaData> = {
16
16
  onRowMouseLeave?: (...args: any[]) => any;
17
17
  onMouseEnter?: any;
18
18
  onMouseLeave?: any;
19
+ rowBorder?: RowBorder;
19
20
  };
20
- declare function BaseTable<ColumnMetaData>({ noRowsContent, keyField, loading, footerRows, rowHovers, compact, stickyHeader, onRowMouseEnter, onRowMouseLeave, columns, rows, id, className, ...props }: BaseTableProps<ColumnMetaData>): React.JSX.Element;
21
+ declare function BaseTable<ColumnMetaData>({ noRowsContent, keyField, loading, footerRows, rowHovers, compact, stickyHeader, onRowMouseEnter, onRowMouseLeave, columns, rows, id, className, rowBorder, ...props }: BaseTableProps<ColumnMetaData>): React.JSX.Element;
21
22
  export default BaseTable;
@@ -85,6 +85,7 @@ declare class StatefulTable<ColumnMetaData> extends Component<StatefulTableProps
85
85
  onRowMouseLeave?: (...args: any[]) => any;
86
86
  onMouseEnter?: any;
87
87
  onMouseLeave?: any;
88
+ rowBorder?: boolean;
88
89
  selectedRows?: string[];
89
90
  onRowSelectionChange?: (...args: any[]) => any;
90
91
  onRowExpansionChange?: (...args: any[]) => any;
@@ -24,4 +24,5 @@ export type ColumnType<ColumnMetadata> = {
24
24
  key?: never | undefined;
25
25
  });
26
26
  export type Columns<ColumnMetadata> = ColumnType<ColumnMetadata>[];
27
+ export type RowBorder = boolean;
27
28
  export {};
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { RowBorder } from "./Table.types";
2
3
  type TableBodyProps = {
3
4
  rows: any[];
4
5
  columns: any[];
@@ -9,6 +10,7 @@ type TableBodyProps = {
9
10
  compact?: boolean;
10
11
  onRowMouseLeave?: any;
11
12
  onRowMouseEnter?: any;
13
+ rowBorder?: RowBorder;
12
14
  };
13
- declare const TableBody: ({ rows, columns, keyField, noRowsContent, loading, rowHovers, compact, onRowMouseLeave, onRowMouseEnter, }: TableBodyProps) => React.JSX.Element;
15
+ declare const TableBody: ({ rows, columns, keyField, noRowsContent, loading, rowHovers, compact, onRowMouseLeave, onRowMouseEnter, rowBorder, }: TableBodyProps) => React.JSX.Element;
14
16
  export default TableBody;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "14.4.1",
3
+ "version": "14.5.0",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {