@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.
@@ -1,6 +1,7 @@
1
- interface ExcludedPackagesTableProps {
2
- excludedPackages: any[];
3
- isLoading: boolean;
4
- }
5
- export declare const ExcludedPackagesTable: ({ excludedPackages, isLoading }: ExcludedPackagesTableProps) => JSX.Element;
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
- interface FilterInputProps {
2
- onChange?: (text: any, event: any) => void;
3
- placeholder?: string;
4
- }
5
- export declare const FilterInput: ({ onChange: onChangeHandler, placeholder }: FilterInputProps) => JSX.Element;
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
- interface IEcoSelectProps {
2
- ['aria-label']: string;
3
- variant: 'single' | 'checkbox';
4
- placeholderText: string;
5
- options: string[];
6
- onChange?: (selected: any, event: any) => void;
7
- }
8
- export default function EcoSelect({ variant, placeholderText, options, onChange, 'aria-label': ariaLabel }: IEcoSelectProps): JSX.Element;
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
- interface IEcoSelectProps {
2
- ['aria-label']: string;
3
- options: {
4
- id: string;
5
- text: string;
6
- }[];
7
- onChange?: (selected: any, event: any) => void;
8
- }
9
- export declare const ToggleGroup: (props: IEcoSelectProps) => JSX.Element;
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
- interface VulnerabilitiesTableProps {
2
- vulnerabilities: any[];
3
- isLoading: boolean;
4
- hideToggler?: boolean;
5
- }
6
- export declare const VulnerabilitiesTable: ({ vulnerabilities, isLoading, hideToggler }: VulnerabilitiesTableProps) => JSX.Element;
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
- export declare const severitySortOrder: {
2
- Critical: number;
3
- Important: number;
4
- Moderate: number;
5
- Low: number;
6
- };
7
- interface PackagesTableProps {
8
- vulnerabilities: any[];
9
- rpms: any[];
10
- hideToggler?: boolean;
11
- isLoading: boolean;
12
- }
13
- export declare const PackagesTable: ({ vulnerabilities, rpms, hideToggler, isLoading }: PackagesTableProps) => JSX.Element;
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 {};