@groupeactual/ui-kit 0.4.22 → 0.4.24
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/cjs/components/Accordion/Accordion.d.ts +5 -4
- package/dist/cjs/components/Chip/Chip.d.ts +4 -0
- package/dist/cjs/components/Chip/index.d.ts +1 -0
- package/dist/cjs/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/cjs/components/Form/TextField/TextField.d.ts +2 -2
- package/dist/cjs/components/Pagination/Pagination.d.ts +13 -0
- package/dist/cjs/components/Pagination/index.d.ts +1 -0
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/index.js +2165 -279
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +5 -4
- package/dist/esm/components/Chip/Chip.d.ts +4 -0
- package/dist/esm/components/Chip/index.d.ts +1 -0
- package/dist/esm/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/components/Form/TextField/TextField.d.ts +2 -2
- package/dist/esm/components/Pagination/Pagination.d.ts +13 -0
- package/dist/esm/components/Pagination/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/index.js +2165 -281
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +34 -18
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +23 -5
- package/src/components/Chip/Chip.tsx +8 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/Form/Checkbox/Checkbox.tsx +2 -2
- package/src/components/Form/TextField/TextField.tsx +3 -2
- package/src/components/Pagination/Pagination.tsx +116 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/index.ts +2 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { AccordionProps } from '@mui/material/Accordion';
|
|
3
|
-
interface Props extends
|
|
3
|
+
interface Props extends AccordionProps {
|
|
4
4
|
icon: ReactNode;
|
|
5
|
-
content: ReactNode;
|
|
6
5
|
title?: string;
|
|
7
6
|
summaryHeight?: number;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
onClick?: MouseEventHandler;
|
|
8
9
|
}
|
|
9
|
-
declare const Accordion: ({ icon, title,
|
|
10
|
+
declare const Accordion: ({ icon, title, summaryHeight, expanded, onClick, children, ...props }: Props) => JSX.Element;
|
|
10
11
|
export default Accordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Chip';
|
|
@@ -4,7 +4,7 @@ interface Props {
|
|
|
4
4
|
name: string;
|
|
5
5
|
value: boolean;
|
|
6
6
|
label: string;
|
|
7
|
-
onChange
|
|
7
|
+
onChange?: (field: string, value: any, shouldValidate?: boolean | undefined) => void;
|
|
8
8
|
error?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const Checkbox: ({ name, value, error, label, onChange, ...props }: CheckboxProps & Props) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FocusEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
3
3
|
import { InputProps as StandardInputProps } from '@mui/material/Input/Input';
|
|
4
|
-
interface Props {
|
|
4
|
+
interface Props extends Omit<TextFieldProps, 'error'> {
|
|
5
5
|
error?: string;
|
|
6
6
|
onBlur?: FocusEventHandler<unknown>;
|
|
7
7
|
onChange?: StandardInputProps['onChange'];
|
|
@@ -14,5 +14,5 @@ interface Props {
|
|
|
14
14
|
endAdornment?: ReactNode;
|
|
15
15
|
maxLength?: number;
|
|
16
16
|
}
|
|
17
|
-
declare const TextField: ({ name, value, error, onBlur, onChange, label, disabled, endAdornment, isValid, placeholder, maxLength, ...props }:
|
|
17
|
+
declare const TextField: ({ name, value, error, onBlur, onChange, label, disabled, endAdornment, isValid, placeholder, maxLength, ...props }: Props) => JSX.Element;
|
|
18
18
|
export default TextField;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
totalString: string;
|
|
4
|
+
totalPerPageString: string;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
limitsPerPage: number[];
|
|
7
|
+
setLimit?: (limit: number) => void;
|
|
8
|
+
setPage?: (page: number) => void;
|
|
9
|
+
page?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const Pagination: ({ totalString, totalPerPageString, totalPages, limitsPerPage, setLimit, setPage, page, limit }: Props) => JSX.Element;
|
|
13
|
+
export default Pagination;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Pagination';
|
|
@@ -5,3 +5,5 @@ export { default as TextField } from './Form/TextField';
|
|
|
5
5
|
export { default as Checkbox } from './Form/Checkbox';
|
|
6
6
|
export { default as Accordion } from './Accordion';
|
|
7
7
|
export { default as IconProvider } from './Icon/Icon';
|
|
8
|
+
export { default as Pagination } from './Pagination';
|
|
9
|
+
export { default as Chip } from './Chip/Chip';
|