@vygruppen/spor-react 12.5.4 → 12.5.6
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/accordion/Expandable.tsx +1 -1
- package/src/accordion/types.ts +7 -5
package/package.json
CHANGED
@@ -28,7 +28,7 @@ export const Expandable = forwardRef<HTMLDivElement, ExpandableProps>(
|
|
28
28
|
(props, ref) => {
|
29
29
|
const { title, children, headingLevel, startElement, ...rest } = props;
|
30
30
|
return (
|
31
|
-
<Accordion
|
31
|
+
<Accordion ref={ref} {...rest}>
|
32
32
|
<ExpandableItem
|
33
33
|
title={title}
|
34
34
|
headingLevel={headingLevel}
|
package/src/accordion/types.ts
CHANGED
@@ -3,7 +3,7 @@ import {
|
|
3
3
|
Accordion as ChakraAccordion,
|
4
4
|
AccordionRootProps as ChakraAccordionProps,
|
5
5
|
} from "@chakra-ui/react";
|
6
|
-
import { PropsWithChildren } from "react";
|
6
|
+
import { PropsWithChildren, ReactNode } from "react";
|
7
7
|
|
8
8
|
import { accordionSlotRecipe } from "@/theme/slot-recipes/accordion";
|
9
9
|
|
@@ -48,15 +48,17 @@ export type AccordionItemContentProps = ChakraAccordion.ItemContentProps & {
|
|
48
48
|
children?: React.ReactNode;
|
49
49
|
};
|
50
50
|
|
51
|
-
export type ExpandableProps =
|
52
|
-
|
51
|
+
export type ExpandableProps = Omit<
|
52
|
+
AccordionProps & AccordionItemTriggerProps,
|
53
|
+
"title"
|
54
|
+
> &
|
53
55
|
HeadingLevel & {
|
54
|
-
title:
|
56
|
+
title: ReactNode;
|
55
57
|
};
|
56
58
|
|
57
59
|
export type ExpandableItemProps = HeadingLevel & {
|
58
60
|
value: string;
|
59
|
-
title:
|
61
|
+
title: ReactNode;
|
60
62
|
children?: React.ReactNode;
|
61
63
|
startElement?: React.ReactNode;
|
62
64
|
};
|