@apicurio/common-ui-components 2.0.0 → 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.
- package/dist/auth/ApplicationAuth.d.ts +4 -3
- package/dist/auth/AuthConfigContext.d.ts +2 -2
- package/dist/auth/IfAuth.d.ts +2 -1
- package/dist/auth/index.d.ts +4 -4
- package/dist/auth/useAuth.d.ts +8 -2
- package/dist/common/DateTime.d.ts +2 -1
- package/dist/common/FromNow.d.ts +2 -1
- package/dist/common/If.d.ts +2 -1
- package/dist/common/IfNotEmpty.d.ts +2 -1
- package/dist/common/IfNotLoading.d.ts +2 -1
- package/dist/common/ListWithToolbar.d.ts +2 -1
- package/dist/common/ObjectDropdown.d.ts +3 -2
- package/dist/common/ObjectSelect.d.ts +2 -1
- package/dist/common/ToggleIcon.d.ts +2 -1
- package/dist/common/UrlUpload.d.ts +2 -1
- package/dist/common/index.d.ts +10 -10
- package/dist/main.d.ts +4 -4
- package/dist/main.js +524 -411
- package/dist/modals/AppAboutModal.d.ts +2 -1
- package/dist/modals/BasicAuthModal.d.ts +13 -0
- package/dist/modals/PleaseWaitModal.d.ts +2 -1
- package/dist/modals/ProgressModal.d.ts +2 -1
- package/dist/modals/index.d.ts +4 -3
- package/dist/table/ChipFilter/ChipFilter.d.ts +3 -2
- package/dist/table/ChipFilter/components/FilterCheckbox.d.ts +2 -1
- package/dist/table/ChipFilter/components/FilterSearch.d.ts +3 -2
- package/dist/table/ChipFilter/components/index.d.ts +3 -3
- package/dist/table/ChipFilter/index.d.ts +5 -5
- package/dist/table/Pagination.d.ts +2 -1
- package/dist/table/ResponsiveTable.d.ts +6 -6
- package/dist/table/TableSkeleton.d.ts +2 -1
- package/dist/table/index.d.ts +5 -5
- package/package.json +17 -17
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UsernameAndPassword } from '../auth';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Properties
|
|
6
|
+
*/
|
|
7
|
+
export type BasicAuthModalProps = {
|
|
8
|
+
onLogin: (creds: UsernameAndPassword) => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Models the login modal to be used with BasicAuth.
|
|
12
|
+
*/
|
|
13
|
+
export declare const BasicAuthModal: FunctionComponent<BasicAuthModalProps>;
|
package/dist/modals/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './AppAboutModal';
|
|
2
|
+
export * from './BasicAuthModal';
|
|
3
|
+
export * from './PleaseWaitModal';
|
|
4
|
+
export * from './ProgressModal';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FilterType } from './types';
|
|
2
|
+
import { ToolbarToggleGroupProps } from '@patternfly/react-core';
|
|
3
|
+
|
|
3
4
|
export type ChipFilterProps = {
|
|
4
5
|
filters: {
|
|
5
6
|
[label: string]: FilterType;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CheckboxType } from '../types';
|
|
2
|
+
|
|
2
3
|
export declare function FilterCheckbox({ label, chips, options, onToggle, }: Pick<CheckboxType<any>, "chips" | "options" | "onToggle"> & {
|
|
3
4
|
label: string;
|
|
4
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { SearchType } from '../types';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
|
|
3
4
|
export declare const FilterSearch: FunctionComponent<Pick<SearchType, "onSearch" | "validate" | "errorMessage"> & {
|
|
4
5
|
label: string;
|
|
5
6
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './FilterSearch';
|
|
2
|
+
export * from './FilterSelector';
|
|
3
|
+
export * from './FilterCheckbox';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export type { FilterType } from
|
|
3
|
-
export type { CheckboxType } from
|
|
4
|
-
export type { SearchType } from
|
|
5
|
-
export * from
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ActionsColumn, Td, Th } from
|
|
3
|
-
|
|
1
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import { ActionsColumnProps, TableVariant, TdProps, ThProps, ActionsColumn, Td, Th } from '@patternfly/react-table';
|
|
3
|
+
|
|
4
4
|
export type RenderHeaderCb<TCol> = (props: {
|
|
5
5
|
Th: typeof Th;
|
|
6
6
|
key: string;
|
|
@@ -51,7 +51,7 @@ export type ResponsiveThProps = {
|
|
|
51
51
|
columnWidth: number;
|
|
52
52
|
canHide: boolean;
|
|
53
53
|
} & Omit<ThProps, "ref">;
|
|
54
|
-
export declare const ResponsiveTh: import(
|
|
54
|
+
export declare const ResponsiveTh: import('react').MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
55
55
|
position: number;
|
|
56
56
|
tableWidth: number;
|
|
57
57
|
columnWidth: number;
|
|
@@ -63,7 +63,7 @@ export type ResponsiveTdProps = {
|
|
|
63
63
|
columnWidth: number;
|
|
64
64
|
canHide: boolean;
|
|
65
65
|
} & Omit<TdProps, "ref">;
|
|
66
|
-
export declare const ResponsiveTd: import(
|
|
66
|
+
export declare const ResponsiveTd: import('react').MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
67
67
|
position: number;
|
|
68
68
|
tableWidth: number;
|
|
69
69
|
columnWidth: number;
|
|
@@ -75,5 +75,5 @@ export type DeletableRowProps = PropsWithChildren<{
|
|
|
75
75
|
onClick?: () => void;
|
|
76
76
|
rowOuiaId?: string;
|
|
77
77
|
}>;
|
|
78
|
-
export declare const DeletableRow: import(
|
|
78
|
+
export declare const DeletableRow: import('react').NamedExoticComponent<DeletableRowProps>;
|
|
79
79
|
export {};
|
package/dist/table/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './Loading';
|
|
2
|
+
export * from './Pagination';
|
|
3
|
+
export * from './ResponsiveTable';
|
|
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
|
+
"version": "2.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -28,29 +28,29 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@apicurio/eslint-config": "0.2.0",
|
|
31
|
-
"@patternfly/patternfly": "5.1
|
|
32
|
-
"@patternfly/react-core": "5.
|
|
33
|
-
"@patternfly/react-icons": "5.1
|
|
34
|
-
"@patternfly/react-table": "5.
|
|
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",
|
|
35
35
|
"@types/luxon": "3.4.2",
|
|
36
|
-
"@types/node": "20.
|
|
37
|
-
"@types/react": "18.2.
|
|
38
|
-
"@types/react-dom": "18.2.
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "
|
|
40
|
-
"@typescript-eslint/parser": "
|
|
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
41
|
"@vitejs/plugin-react": "4.2.1",
|
|
42
|
-
"eslint": "8.
|
|
42
|
+
"eslint": "8.57.0",
|
|
43
43
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
44
|
-
"eslint-plugin-react-refresh": "0.4.
|
|
44
|
+
"eslint-plugin-react-refresh": "0.4.6",
|
|
45
45
|
"luxon": "3.4.4",
|
|
46
|
-
"oidc-client-ts": "3.0.
|
|
46
|
+
"oidc-client-ts": "3.0.1",
|
|
47
47
|
"rimraf": "5.0.5",
|
|
48
|
-
"typescript": "5.
|
|
49
|
-
"vite": "5.
|
|
50
|
-
"vite-plugin-dts": "3.
|
|
48
|
+
"typescript": "5.4.3",
|
|
49
|
+
"vite": "5.2.7",
|
|
50
|
+
"vite-plugin-dts": "3.8.1",
|
|
51
51
|
"react": "18.2.0",
|
|
52
52
|
"react-dom": "18.2.0",
|
|
53
|
-
"react-router-dom": "6.
|
|
53
|
+
"react-router-dom": "6.22.3",
|
|
54
54
|
"use-resize-observer": "9.1.0"
|
|
55
55
|
}
|
|
56
56
|
}
|