@7shifts/sous-chef 3.79.2 → 3.81.0

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.
@@ -3,6 +3,7 @@ import { AccordionItem as AccordionItemType } from './types';
3
3
  type Props = {
4
4
  items: AccordionItemType[];
5
5
  onExpand?: (item: AccordionItemType) => void;
6
+ defaultOpenId?: string;
6
7
  };
7
8
  declare const Accordion: (props: Props) => React.JSX.Element | null;
8
9
  export default Accordion;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type AccordionItem = {
3
- title: string;
3
+ title: ReactNode | string;
4
4
  content: ReactNode;
5
5
  id?: string;
6
6
  };
@@ -15,7 +15,7 @@ type Props = {
15
15
  extraClass?: string;
16
16
  onClose?: () => void;
17
17
  onVisibleChange?: (isVisible: boolean) => void;
18
- children: React.ReactElement;
18
+ children: React.ReactNode;
19
19
  testId?: string;
20
20
  maxHeight?: string | number;
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "3.79.2",
3
+ "version": "3.81.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",