@groupeactual/ui-kit 0.4.21 → 0.4.23

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.
Files changed (30) hide show
  1. package/dist/cjs/components/Accordion/Accordion.d.ts +5 -4
  2. package/dist/cjs/components/Chip/Chip.d.ts +4 -0
  3. package/dist/cjs/components/Chip/index.d.ts +1 -0
  4. package/dist/cjs/components/Form/Checkbox/Checkbox.d.ts +1 -1
  5. package/dist/cjs/components/Form/TextField/TextField.d.ts +6 -5
  6. package/dist/cjs/components/Pagination/Pagination.d.ts +13 -0
  7. package/dist/cjs/components/Pagination/index.d.ts +1 -0
  8. package/dist/cjs/components/index.d.ts +2 -0
  9. package/dist/cjs/index.js +2067 -174
  10. package/dist/cjs/index.js.map +1 -1
  11. package/dist/esm/components/Accordion/Accordion.d.ts +5 -4
  12. package/dist/esm/components/Chip/Chip.d.ts +4 -0
  13. package/dist/esm/components/Chip/index.d.ts +1 -0
  14. package/dist/esm/components/Form/Checkbox/Checkbox.d.ts +1 -1
  15. package/dist/esm/components/Form/TextField/TextField.d.ts +6 -5
  16. package/dist/esm/components/Pagination/Pagination.d.ts +13 -0
  17. package/dist/esm/components/Pagination/index.d.ts +1 -0
  18. package/dist/esm/components/index.d.ts +2 -0
  19. package/dist/esm/index.js +2067 -176
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/index.d.ts +37 -20
  22. package/package.json +1 -1
  23. package/src/components/Accordion/Accordion.tsx +23 -5
  24. package/src/components/Chip/Chip.tsx +8 -0
  25. package/src/components/Chip/index.ts +1 -0
  26. package/src/components/Form/Checkbox/Checkbox.tsx +2 -2
  27. package/src/components/Form/TextField/TextField.tsx +12 -13
  28. package/src/components/Pagination/Pagination.tsx +110 -0
  29. package/src/components/Pagination/index.ts +1 -0
  30. 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 Omit<AccordionProps, 'children'> {
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, content, summaryHeight, ...props }: Props) => JSX.Element;
10
+ declare const Accordion: ({ icon, title, summaryHeight, expanded, onClick, children, ...props }: Props) => JSX.Element;
10
11
  export default Accordion;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ChipProps as ChipPropsMUI } from '@mui/material/Chip';
3
+ declare const Chip: (props: ChipPropsMUI) => JSX.Element;
4
+ export default Chip;
@@ -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: (field: string, value: any, shouldValidate?: boolean | undefined) => void;
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,9 +1,10 @@
1
- import { ChangeEventHandler, FocusEventHandler, ReactNode } from 'react';
1
+ import { FocusEventHandler, ReactNode } from 'react';
2
2
  import { TextFieldProps } from '@mui/material/TextField';
3
- interface Props {
3
+ import { InputProps as StandardInputProps } from '@mui/material/Input/Input';
4
+ interface Props extends Omit<TextFieldProps, 'error'> {
4
5
  error?: string;
5
- onBlur: FocusEventHandler<unknown>;
6
- onChange: ChangeEventHandler<unknown>;
6
+ onBlur?: FocusEventHandler<unknown>;
7
+ onChange?: StandardInputProps['onChange'];
7
8
  label: string;
8
9
  value: string;
9
10
  name: string;
@@ -13,5 +14,5 @@ interface Props {
13
14
  endAdornment?: ReactNode;
14
15
  maxLength?: number;
15
16
  }
16
- declare const TextField: ({ name, value, error, onBlur, onChange, label, disabled, endAdornment, isValid, placeholder, maxLength, ...props }: Omit<TextFieldProps, 'error'> & Props) => JSX.Element;
17
+ declare const TextField: ({ name, value, error, onBlur, onChange, label, disabled, endAdornment, isValid, placeholder, maxLength, ...props }: Props) => JSX.Element;
17
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';