@vincentgraul/react-components 1.0.50 → 1.0.51
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/breadcrumb/breadcrumb.d.ts +2 -3
- package/dist/country-selector/country-selector.d.ts +2 -3
- package/dist/flex/flex.d.ts +2 -3
- package/dist/input/input.d.ts +2 -3
- package/dist/loader/loader.d.ts +2 -3
- package/dist/modal/modal.d.ts +2 -3
- package/dist/pagination/pagination.d.ts +2 -3
- package/dist/react-components.mjs +37851 -13483
- package/dist/select/select.d.ts +2 -3
- package/dist/table/table.d.ts +2 -3
- package/dist/use-pagination/use-pagination.d.ts +2 -3
- package/dist/wizard/wizard.d.ts +2 -3
- package/package.json +30 -30
- /package/dist/{style.css → react-components.css} +0 -0
package/dist/select/select.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SelectOptionWithoutId, SelectOption } from './select.types';
|
|
2
|
-
type
|
|
2
|
+
export type SelectProps = {
|
|
3
3
|
options: SelectOptionWithoutId[];
|
|
4
4
|
selectedValue?: string;
|
|
5
5
|
onChange?: (option: SelectOption) => void;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const Select: ({ className, options: optionsProps, selectedValue, onChange }:
|
|
9
|
-
export {};
|
|
8
|
+
export declare const Select: ({ className, options: optionsProps, selectedValue, onChange, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/table/table.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
2
2
|
import { Column } from './table.types';
|
|
3
|
-
type
|
|
3
|
+
export type TableProps<T> = {
|
|
4
4
|
columns: Column[];
|
|
5
5
|
records: T[];
|
|
6
6
|
renderHeader?: () => ReactNode;
|
|
@@ -13,8 +13,7 @@ type Props<T> = {
|
|
|
13
13
|
renderNoRecords?: () => ReactNode;
|
|
14
14
|
className?: string;
|
|
15
15
|
};
|
|
16
|
-
export declare const Table: <T>({ className, columns, records, renderHeader, renderFooter, renderColumnsRow, renderColumnsCell, renderRecordsRow, renderRecordsCell, renderRecordsEmptyCell, renderNoRecords, }:
|
|
16
|
+
export declare const Table: <T>({ className, columns, records, renderHeader, renderFooter, renderColumnsRow, renderColumnsCell, renderRecordsRow, renderRecordsCell, renderRecordsEmptyCell, renderNoRecords, }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare const Th: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export declare const Tr: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export declare const Td: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PaginationData } from './use-pagination.types';
|
|
2
|
-
type
|
|
2
|
+
export type usePaginationProps = {
|
|
3
3
|
page: number;
|
|
4
4
|
totalRecords: number;
|
|
5
5
|
maxRecordsPerPage?: number;
|
|
6
6
|
itemNeighbours?: number;
|
|
7
7
|
minItems?: number;
|
|
8
8
|
};
|
|
9
|
-
export declare const usePagination: (props:
|
|
10
|
-
export {};
|
|
9
|
+
export declare const usePagination: (props: usePaginationProps) => PaginationData;
|
package/dist/wizard/wizard.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { StepProps } from './wizard.types';
|
|
3
|
-
type
|
|
3
|
+
export type WizardProps = {
|
|
4
4
|
children: ReactElement[];
|
|
5
5
|
step?: number;
|
|
6
6
|
renderHeader?: (props: StepProps) => ReactElement;
|
|
7
7
|
renderFooter?: (props: StepProps) => ReactElement;
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const Wizard: ({ className, children, step: stepProps, renderHeader, renderFooter, }:
|
|
11
|
-
export {};
|
|
10
|
+
export declare const Wizard: ({ className, children, step: stepProps, renderHeader, renderFooter, }: WizardProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincentgraul/react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"main": "dist/react-components.mjs",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "GNU GPLV3",
|
|
@@ -29,45 +29,45 @@
|
|
|
29
29
|
"build-storybook": "storybook build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@types/react": "^
|
|
33
|
-
"@types/react-dom": "^
|
|
32
|
+
"@types/react": "^19.0.10",
|
|
33
|
+
"@types/react-dom": "^19.0.4",
|
|
34
34
|
"@types/ua-parser-js": "^0.7.39",
|
|
35
35
|
"@vincentgraul/types": "^1.0.3",
|
|
36
36
|
"@vincentgraul/utils": "^1.0.7",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"intersection-observer": "^0.12.2",
|
|
39
|
-
"react": "^
|
|
40
|
-
"react-dom": "^
|
|
41
|
-
"ua-parser-js": "^
|
|
39
|
+
"react": "^19.0.0",
|
|
40
|
+
"react-dom": "^19.0.0",
|
|
41
|
+
"ua-parser-js": "^2.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@eslint/eslintrc": "^3.
|
|
45
|
-
"@eslint/js": "^9.
|
|
46
|
-
"@storybook/addon-essentials": "^8.
|
|
47
|
-
"@storybook/addon-interactions": "^8.
|
|
48
|
-
"@storybook/addon-links": "^8.
|
|
49
|
-
"@storybook/blocks": "^8.
|
|
50
|
-
"@storybook/react": "^8.
|
|
51
|
-
"@storybook/react-vite": "^8.
|
|
44
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
45
|
+
"@eslint/js": "^9.21.0",
|
|
46
|
+
"@storybook/addon-essentials": "^8.6.2",
|
|
47
|
+
"@storybook/addon-interactions": "^8.6.2",
|
|
48
|
+
"@storybook/addon-links": "^8.6.2",
|
|
49
|
+
"@storybook/blocks": "^8.6.2",
|
|
50
|
+
"@storybook/react": "^8.6.2",
|
|
51
|
+
"@storybook/react-vite": "^8.6.2",
|
|
52
52
|
"@storybook/testing-library": "^0.2.2",
|
|
53
|
-
"@testing-library/react": "^16.0
|
|
53
|
+
"@testing-library/react": "^16.2.0",
|
|
54
54
|
"@types/jest": "^29.5.14",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
56
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
-
"@vitejs/plugin-react": "^4.3.
|
|
58
|
-
"eslint": "^9.
|
|
59
|
-
"eslint-config-prettier": "^
|
|
60
|
-
"eslint-plugin-prettier": "^5.2.
|
|
61
|
-
"eslint-plugin-storybook": "
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
|
56
|
+
"@typescript-eslint/parser": "^8.25.0",
|
|
57
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
58
|
+
"eslint": "^9.21.0",
|
|
59
|
+
"eslint-config-prettier": "^10.0.2",
|
|
60
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
61
|
+
"eslint-plugin-storybook": "0.11.2",
|
|
62
62
|
"jest": "^29.7.0",
|
|
63
63
|
"jest-environment-jsdom": "^29.7.0",
|
|
64
|
-
"prettier": "^3.
|
|
65
|
-
"storybook": "^8.
|
|
66
|
-
"ts-jest": "^29.2.
|
|
67
|
-
"typedoc": "^0.
|
|
68
|
-
"typescript": "^5.
|
|
69
|
-
"vite": "^
|
|
70
|
-
"vite-plugin-dts": "^4.
|
|
64
|
+
"prettier": "^3.5.2",
|
|
65
|
+
"storybook": "^8.6.2",
|
|
66
|
+
"ts-jest": "^29.2.6",
|
|
67
|
+
"typedoc": "^0.27.9",
|
|
68
|
+
"typescript": "^5.8.2",
|
|
69
|
+
"vite": "^6.2.0",
|
|
70
|
+
"vite-plugin-dts": "^4.5.1"
|
|
71
71
|
},
|
|
72
|
-
"packageManager": "pnpm@
|
|
72
|
+
"packageManager": "pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b"
|
|
73
73
|
}
|
|
File without changes
|