@apicurio/common-ui-components 2.0.4 → 2.0.6

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,5 @@
1
- import { UsernameAndPassword } from '../auth';
2
1
  import { FunctionComponent } from 'react';
2
+ import { UsernameAndPassword } from '../auth';
3
3
 
4
4
  /**
5
5
  * Properties
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
1
  import { ActionsColumnProps, TableVariant, TdProps, ThProps, ActionsColumn, Td, Th } from '@patternfly/react-table';
2
+ import { PropsWithChildren, ReactElement } from 'react';
3
3
 
4
4
  export type RenderHeaderCb<TCol> = (props: {
5
5
  Th: typeof Th;
@@ -51,24 +51,24 @@ export type ResponsiveThProps = {
51
51
  columnWidth: number;
52
52
  canHide: boolean;
53
53
  } & Omit<ThProps, "ref">;
54
- export declare const ResponsiveTh: import('react').MemoExoticComponent<import("react").ForwardRefExoticComponent<{
54
+ export declare const ResponsiveTh: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<{
55
55
  position: number;
56
56
  tableWidth: number;
57
57
  columnWidth: number;
58
58
  canHide: boolean;
59
- } & Omit<ThProps, "ref"> & import("react").RefAttributes<HTMLTableCellElement>>>;
59
+ } & Omit<ThProps, "ref"> & import('react').RefAttributes<HTMLTableCellElement>>>;
60
60
  export type ResponsiveTdProps = {
61
61
  position: number;
62
62
  tableWidth: number;
63
63
  columnWidth: number;
64
64
  canHide: boolean;
65
65
  } & Omit<TdProps, "ref">;
66
- export declare const ResponsiveTd: import('react').MemoExoticComponent<import("react").ForwardRefExoticComponent<{
66
+ export declare const ResponsiveTd: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<{
67
67
  position: number;
68
68
  tableWidth: number;
69
69
  columnWidth: number;
70
70
  canHide: boolean;
71
- } & Omit<TdProps, "ref"> & import("react").RefAttributes<HTMLTableCellElement>>>;
71
+ } & Omit<TdProps, "ref"> & import('react').RefAttributes<HTMLTableCellElement>>>;
72
72
  export type DeletableRowProps = PropsWithChildren<{
73
73
  isSelected: boolean;
74
74
  isDeleted: boolean;
@@ -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.4",
4
+ "version": "2.0.6",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -27,30 +27,30 @@
27
27
  "use-resize-observer": "~9"
28
28
  },
29
29
  "devDependencies": {
30
- "@apicurio/eslint-config": "0.2.0",
31
- "@patternfly/patternfly": "5.2.1",
32
- "@patternfly/react-core": "5.2.3",
33
- "@patternfly/react-icons": "5.2.1",
34
- "@patternfly/react-table": "5.2.4",
30
+ "@apicurio/eslint-config": "0.3.0",
31
+ "@patternfly/patternfly": "5.4.2",
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.12.2",
37
- "@types/react": "18.2.73",
38
- "@types/react-dom": "18.2.23",
39
- "@typescript-eslint/eslint-plugin": "7.4.0",
40
- "@typescript-eslint/parser": "7.4.0",
41
- "@vitejs/plugin-react": "4.2.1",
36
+ "@types/node": "20.17.6",
37
+ "@types/react": "18.3.12",
38
+ "@types/react-dom": "18.3.1",
39
+ "@typescript-eslint/eslint-plugin": "8.13.0",
40
+ "@typescript-eslint/parser": "8.13.0",
41
+ "@vitejs/plugin-react": "4.3.3",
42
42
  "eslint": "8.57.1",
43
- "eslint-plugin-react-hooks": "4.6.0",
44
- "eslint-plugin-react-refresh": "0.4.6",
45
- "luxon": "3.4.4",
46
- "oidc-client-ts": "3.0.1",
47
- "rimraf": "5.0.5",
48
- "typescript": "5.4.3",
49
- "vite": "5.2.7",
50
- "vite-plugin-dts": "3.8.1",
51
- "react": "18.2.0",
52
- "react-dom": "18.2.0",
53
- "react-router-dom": "6.22.3",
43
+ "eslint-plugin-react-hooks": "4.6.2",
44
+ "eslint-plugin-react-refresh": "0.4.14",
45
+ "luxon": "3.5.0",
46
+ "oidc-client-ts": "3.1.0",
47
+ "rimraf": "5.0.10",
48
+ "typescript": "5.6.3",
49
+ "vite": "5.4.10",
50
+ "vite-plugin-dts": "3.9.1",
51
+ "react": "18.3.1",
52
+ "react-dom": "18.3.1",
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 { FilterType } from './types';
2
- import { ToolbarToggleGroupProps } from '@patternfly/react-core';
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 { SearchType } from '../types';
2
- import { FunctionComponent } from 'react';
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>;