@apicurio/common-ui-components 2.0.5 → 2.0.7

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,5 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
-
3
2
  export type FrontendInfo = {
4
3
  name: string;
5
4
  url: string;
@@ -1,6 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { UsernameAndPassword } from '../auth';
3
-
4
3
  /**
5
4
  * Properties
6
5
  */
@@ -1,5 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
-
3
2
  /**
4
3
  * Properties
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
-
3
2
  /**
4
3
  * Properties
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { PaginationProps as PFPaginationProps } from '@patternfly/react-core';
2
-
3
2
  export type PaginationProps = {
4
3
  itemCount: number;
5
4
  page: number;
@@ -1,6 +1,5 @@
1
1
  import { ActionsColumnProps, TableVariant, TdProps, ThProps, ActionsColumn, Td, Th } from '@patternfly/react-table';
2
2
  import { PropsWithChildren, ReactElement } from 'react';
3
-
4
3
  export type RenderHeaderCb<TCol> = (props: {
5
4
  Th: typeof Th;
6
5
  key: string;
@@ -1,5 +1,4 @@
1
1
  import { Td } from '@patternfly/react-table';
2
-
3
2
  type Props = {
4
3
  columns: number;
5
4
  rows: number;
@@ -2,4 +2,3 @@ export * from './Loading';
2
2
  export * from './Pagination';
3
3
  export * from './ResponsiveTable';
4
4
  export * from './TableSkeleton';
5
- export * from './ChipFilter';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apicurio/common-ui-components",
3
3
  "private": false,
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -29,28 +29,28 @@
29
29
  "devDependencies": {
30
30
  "@apicurio/eslint-config": "0.3.0",
31
31
  "@patternfly/patternfly": "5.4.2",
32
- "@patternfly/react-core": "5.4.2",
33
- "@patternfly/react-icons": "5.4.0",
34
- "@patternfly/react-table": "5.4.8",
32
+ "@patternfly/react-core": "5.4.8",
33
+ "@patternfly/react-icons": "5.4.2",
34
+ "@patternfly/react-table": "5.4.9",
35
35
  "@types/luxon": "3.4.2",
36
- "@types/node": "20.16.15",
36
+ "@types/node": "20.17.6",
37
37
  "@types/react": "18.3.12",
38
38
  "@types/react-dom": "18.3.1",
39
- "@typescript-eslint/eslint-plugin": "7.18.0",
40
- "@typescript-eslint/parser": "7.18.0",
39
+ "@typescript-eslint/eslint-plugin": "8.14.0",
40
+ "@typescript-eslint/parser": "8.14.0",
41
41
  "@vitejs/plugin-react": "4.3.3",
42
42
  "eslint": "8.57.1",
43
- "eslint-plugin-react-hooks": "4.6.2",
44
- "eslint-plugin-react-refresh": "0.4.13",
43
+ "eslint-plugin-react-hooks": "5.0.0",
44
+ "eslint-plugin-react-refresh": "0.4.14",
45
45
  "luxon": "3.5.0",
46
46
  "oidc-client-ts": "3.1.0",
47
- "rimraf": "5.0.10",
47
+ "rimraf": "6.0.1",
48
48
  "typescript": "5.6.3",
49
- "vite": "5.4.10",
50
- "vite-plugin-dts": "3.9.1",
49
+ "vite": "5.4.11",
50
+ "vite-plugin-dts": "4.3.0",
51
51
  "react": "18.3.1",
52
52
  "react-dom": "18.3.1",
53
- "react-router-dom": "6.27.0",
53
+ "react-router-dom": "6.28.0",
54
54
  "use-resize-observer": "9.1.0"
55
55
  }
56
56
  }
@@ -1,10 +0,0 @@
1
- import { ToolbarToggleGroupProps } from '@patternfly/react-core';
2
- import { FilterType } from './types';
3
-
4
- export type ChipFilterProps = {
5
- filters: {
6
- [label: string]: FilterType;
7
- };
8
- breakpoint?: ToolbarToggleGroupProps["breakpoint"];
9
- };
10
- export declare function ChipFilter({ filters, breakpoint }: ChipFilterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { CheckboxType } from '../types';
2
-
3
- export declare function FilterCheckbox({ label, chips, options, onToggle, }: Pick<CheckboxType<any>, "chips" | "options" | "onToggle"> & {
4
- label: string;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { SearchType } from '../types';
3
-
4
- export declare const FilterSearch: FunctionComponent<Pick<SearchType, "onSearch" | "validate" | "errorMessage"> & {
5
- label: string;
6
- }>;
@@ -1,6 +0,0 @@
1
- export declare function FilterSelector({ options, value, onChange, ouiaId, }: {
2
- options: string[];
3
- value: string;
4
- onChange: (value: string) => void;
5
- ouiaId: string;
6
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export * from './FilterSearch';
2
- export * from './FilterSelector';
3
- export * from './FilterCheckbox';
@@ -1,5 +0,0 @@
1
- export * from './ChipFilter';
2
- export type { FilterType } from './types';
3
- export type { CheckboxType } from './types';
4
- export type { SearchType } from './types';
5
- export * from './components';
@@ -1,20 +0,0 @@
1
- export type SearchType = {
2
- type: "search";
3
- validate: (value: string) => boolean;
4
- errorMessage: string;
5
- chips: string[];
6
- onSearch: (value: string) => void;
7
- onRemoveChip: (value: string) => void;
8
- onRemoveGroup: () => void;
9
- };
10
- export type CheckboxType<T extends string | number> = {
11
- type: "checkbox";
12
- chips: string[];
13
- options: {
14
- [key in T]: string;
15
- };
16
- onToggle: (value: T) => void;
17
- onRemoveChip: (value: T) => void;
18
- onRemoveGroup: () => void;
19
- };
20
- export type FilterType = SearchType | CheckboxType<any>;