@rhc-shared-components/packages-table 1.0.4 → 2.0.1

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,6 @@
1
- interface ExcludedPackagesTableProps {
2
- excludedPackages: any[];
3
- isLoading: boolean;
4
- }
5
- export declare const ExcludedPackagesTable: ({ excludedPackages, isLoading }: ExcludedPackagesTableProps) => JSX.Element;
6
- export {};
1
+ interface ExcludedPackagesTableProps {
2
+ excludedPackages: any[];
3
+ isLoading: boolean;
4
+ }
5
+ export declare const ExcludedPackagesTable: ({ excludedPackages, isLoading }: ExcludedPackagesTableProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,6 +1,6 @@
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
+ interface FilterInputProps {
2
+ onChange?: (text: any, event: any) => void;
3
+ placeholder?: string;
4
+ }
5
+ export declare const FilterInput: ({ onChange: onChangeHandler, placeholder }: FilterInputProps) => import("react/jsx-runtime").JSX.Element;
6
+ 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 { 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>): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -1,9 +1,9 @@
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
+ 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): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,10 +1,10 @@
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
+ 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) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,7 +1,7 @@
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
+ interface VulnerabilitiesTableProps {
2
+ vulnerabilities: any[];
3
+ isLoading: boolean;
4
+ hideToggler?: boolean;
5
+ }
6
+ export declare const VulnerabilitiesTable: ({ vulnerabilities, isLoading, hideToggler }: VulnerabilitiesTableProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
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
+ 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) => import("react/jsx-runtime").JSX.Element;
14
+ export {};