@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.
@@ -1,9 +1,8 @@
1
1
  import { SelectOptionWithoutId, SelectOption } from './select.types';
2
- type Props = {
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 }: Props) => import("react/jsx-runtime").JSX.Element;
9
- export {};
8
+ export declare const Select: ({ className, options: optionsProps, selectedValue, onChange, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, PropsWithChildren } from 'react';
2
2
  import { Column } from './table.types';
3
- type Props<T> = {
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, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
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 Props = {
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: Props) => PaginationData;
10
- export {};
9
+ export declare const usePagination: (props: usePaginationProps) => PaginationData;
@@ -1,11 +1,10 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { StepProps } from './wizard.types';
3
- type Props = {
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, }: Props) => import("react/jsx-runtime").JSX.Element;
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.50",
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": "^18.3.12",
33
- "@types/react-dom": "^18.3.1",
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": "^18.3.1",
40
- "react-dom": "^18.3.1",
41
- "ua-parser-js": "^1.0.39"
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.1.0",
45
- "@eslint/js": "^9.14.0",
46
- "@storybook/addon-essentials": "^8.4.0",
47
- "@storybook/addon-interactions": "^8.4.0",
48
- "@storybook/addon-links": "^8.4.0",
49
- "@storybook/blocks": "^8.4.0",
50
- "@storybook/react": "^8.4.0",
51
- "@storybook/react-vite": "^8.4.0",
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.1",
53
+ "@testing-library/react": "^16.2.0",
54
54
  "@types/jest": "^29.5.14",
55
- "@typescript-eslint/eslint-plugin": "^8.12.2",
56
- "@typescript-eslint/parser": "^8.12.2",
57
- "@vitejs/plugin-react": "^4.3.3",
58
- "eslint": "^9.13.0",
59
- "eslint-config-prettier": "^9.1.0",
60
- "eslint-plugin-prettier": "^5.2.1",
61
- "eslint-plugin-storybook": "^0.10.1",
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.3.3",
65
- "storybook": "^8.4.0",
66
- "ts-jest": "^29.2.5",
67
- "typedoc": "^0.26.10",
68
- "typescript": "^5.6.3",
69
- "vite": "^5.4.10",
70
- "vite-plugin-dts": "^4.3.0"
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@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
72
+ "packageManager": "pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b"
73
73
  }
File without changes