@groupeactual/ui-kit 0.4.17 → 0.4.19
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 +3 -3
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +3 -3
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +3 -3
- package/src/components/Icon/Icon.tsx +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,13 +51,13 @@ interface Props$3 {
|
|
|
51
51
|
}
|
|
52
52
|
declare const Checkbox: ({ name, value, error, label, onChange, ...props }: CheckboxProps & Props$3) => JSX.Element;
|
|
53
53
|
|
|
54
|
-
interface Props$2 {
|
|
54
|
+
interface Props$2 extends Omit<AccordionProps, 'children'> {
|
|
55
55
|
icon: ReactNode;
|
|
56
|
-
title: ReactNode;
|
|
57
56
|
content: ReactNode;
|
|
57
|
+
title?: string;
|
|
58
58
|
summaryHeight?: number;
|
|
59
59
|
}
|
|
60
|
-
declare const Accordion: ({ icon, title, content, summaryHeight, ...props }: Props$2
|
|
60
|
+
declare const Accordion: ({ icon, title, content, summaryHeight, ...props }: Props$2) => JSX.Element;
|
|
61
61
|
|
|
62
62
|
declare const FontSizes: {
|
|
63
63
|
xs: number;
|
package/package.json
CHANGED
|
@@ -3,10 +3,10 @@ import AccordionMui, { AccordionProps } from '@mui/material/Accordion';
|
|
|
3
3
|
import AccordionSummary from '@mui/material/AccordionSummary';
|
|
4
4
|
import AccordionDetails from '@mui/material/AccordionDetails';
|
|
5
5
|
|
|
6
|
-
interface Props {
|
|
6
|
+
interface Props extends Omit<AccordionProps, 'children'> {
|
|
7
7
|
icon: ReactNode;
|
|
8
|
-
title: ReactNode;
|
|
9
8
|
content: ReactNode;
|
|
9
|
+
title?: string;
|
|
10
10
|
summaryHeight?: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ const Accordion = ({
|
|
|
16
16
|
content,
|
|
17
17
|
summaryHeight,
|
|
18
18
|
...props
|
|
19
|
-
}: Props
|
|
19
|
+
}: Props) => {
|
|
20
20
|
return (
|
|
21
21
|
<AccordionMui
|
|
22
22
|
sx={{ border: `1px solid`, borderColor: 'greyLightDefaultBorder' }}
|
|
@@ -3,7 +3,7 @@ import { forwardRef } from 'react';
|
|
|
3
3
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
4
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
5
5
|
import Box, { BoxProps } from '@mui/material/Box';
|
|
6
|
-
import {
|
|
6
|
+
import { useTheme } from '@mui/system';
|
|
7
7
|
|
|
8
8
|
const FontSizes = {
|
|
9
9
|
xs: 8,
|