@latte-macchiat-io/latte-vanilla-components 0.0.479 → 0.0.480

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.479",
3
+ "version": "0.0.480",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -2,15 +2,17 @@ import { ExpandCollapseItem, ExpandCollapseItemsProps } from './Item';
2
2
 
3
3
  import { collapseExpand, collapseExpandList } from './styles.css';
4
4
 
5
+ import { cn } from '../../utils/styleOverride';
6
+
5
7
  import { Heading } from '../Heading';
6
8
 
7
- export type ExpandCollapseProps = {
9
+ export type ExpandCollapseProps = React.HTMLAttributes<HTMLDivElement> & {
8
10
  title?: string;
9
11
  list: ExpandCollapseItemsProps[];
10
12
  };
11
13
 
12
- export const ExpandCollapse = ({ title, list }: ExpandCollapseProps): React.ReactElement => (
13
- <div className={collapseExpand}>
14
+ export const ExpandCollapse = ({ title, list, className }: ExpandCollapseProps): React.ReactElement => (
15
+ <div className={cn(collapseExpand, className)}>
14
16
  {title && <Heading as="h2">{title}</Heading>}
15
17
  <div className={collapseExpandList}>
16
18
  {list.map((expandCollapseItem, index) => (