@rhc-shared-components/packages-table 1.0.4 → 1.0.5
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/components/ExcludedPackagesTable.d.ts +7 -6
- package/dist/components/FilterInput.d.ts +7 -6
- package/dist/components/FilterableTable.d.ts +19 -19
- package/dist/components/Select.d.ts +10 -9
- package/dist/components/ToggleGroup.d.ts +11 -10
- package/dist/components/VulnerabilitiesTable.d.ts +8 -7
- package/dist/index.d.ts +15 -14
- package/dist/index.js +503 -706
- package/dist/index.modern.js +298 -455
- package/dist/index.test.d.ts +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -79
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ExcludedPackagesTableProps {
|
|
3
|
+
excludedPackages: any[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const ExcludedPackagesTable: ({ excludedPackages, isLoading }: ExcludedPackagesTableProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FilterInputProps {
|
|
3
|
+
onChange?: (text: any, event: any) => void;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const FilterInput: ({ onChange: onChangeHandler, placeholder }: FilterInputProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { PerPageOptions } from '@patternfly/react-core';
|
|
3
|
-
interface TableColumn {
|
|
4
|
-
title: string;
|
|
5
|
-
sortField?: string;
|
|
6
|
-
sortFn?: any;
|
|
7
|
-
}
|
|
8
|
-
interface IFilterableTableProps<T> {
|
|
9
|
-
tableName: string;
|
|
10
|
-
columns: TableColumn[];
|
|
11
|
-
items: T[];
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
renderRow: (item: T) => (React.ReactNode | string)[];
|
|
14
|
-
filters?: ReactElement[];
|
|
15
|
-
actions?: ReactElement[];
|
|
16
|
-
perPageOptions?: PerPageOptions[];
|
|
17
|
-
}
|
|
18
|
-
export declare function FilterableTable<T>({ columns, items, isLoading, renderRow, filters, actions, perPageOptions }: IFilterableTableProps<T>): JSX.Element;
|
|
19
|
-
export {};
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { PerPageOptions } from '@patternfly/react-core';
|
|
3
|
+
interface TableColumn {
|
|
4
|
+
title: string;
|
|
5
|
+
sortField?: string;
|
|
6
|
+
sortFn?: any;
|
|
7
|
+
}
|
|
8
|
+
interface IFilterableTableProps<T> {
|
|
9
|
+
tableName: string;
|
|
10
|
+
columns: TableColumn[];
|
|
11
|
+
items: T[];
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
renderRow: (item: T) => (React.ReactNode | string)[];
|
|
14
|
+
filters?: ReactElement[];
|
|
15
|
+
actions?: ReactElement[];
|
|
16
|
+
perPageOptions?: PerPageOptions[];
|
|
17
|
+
}
|
|
18
|
+
export declare function FilterableTable<T>({ columns, items, isLoading, renderRow, filters, actions, perPageOptions }: IFilterableTableProps<T>): React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IEcoSelectProps {
|
|
3
|
+
['aria-label']: string;
|
|
4
|
+
variant: 'single' | 'checkbox';
|
|
5
|
+
placeholderText: string;
|
|
6
|
+
options: string[];
|
|
7
|
+
onChange?: (selected: any, event: any) => void;
|
|
8
|
+
}
|
|
9
|
+
export default function EcoSelect({ variant, placeholderText, options, onChange, 'aria-label': ariaLabel }: IEcoSelectProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IEcoSelectProps {
|
|
3
|
+
['aria-label']: string;
|
|
4
|
+
options: {
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}[];
|
|
8
|
+
onChange?: (selected: any, event: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ToggleGroup: (props: IEcoSelectProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface VulnerabilitiesTableProps {
|
|
3
|
+
vulnerabilities: any[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
hideToggler?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const VulnerabilitiesTable: ({ vulnerabilities, isLoading, hideToggler }: VulnerabilitiesTableProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const severitySortOrder: {
|
|
3
|
+
Critical: number;
|
|
4
|
+
Important: number;
|
|
5
|
+
Moderate: number;
|
|
6
|
+
Low: number;
|
|
7
|
+
};
|
|
8
|
+
interface PackagesTableProps {
|
|
9
|
+
vulnerabilities: any[];
|
|
10
|
+
rpms: any[];
|
|
11
|
+
hideToggler?: boolean;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const PackagesTable: ({ vulnerabilities, rpms, hideToggler, isLoading }: PackagesTableProps) => React.JSX.Element;
|
|
15
|
+
export {};
|