next-helios-fe 1.8.37 → 1.8.39

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": "next-helios-fe",
3
- "version": "1.8.37",
3
+ "version": "1.8.39",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,6 +10,7 @@ export interface ItemProps {
10
10
  defaultOpen?: boolean;
11
11
  border?: boolean;
12
12
  };
13
+ onClick?: () => void;
13
14
  }
14
15
 
15
16
  export const Item: React.FC<ItemProps> = ({
@@ -17,6 +18,7 @@ export const Item: React.FC<ItemProps> = ({
17
18
  title,
18
19
  subTitle,
19
20
  options,
21
+ onClick,
20
22
  }) => {
21
23
  const [open, setOpen] = useState(false);
22
24
 
@@ -28,7 +30,9 @@ export const Item: React.FC<ItemProps> = ({
28
30
 
29
31
  return (
30
32
  <div
31
- className={`h-min rounded-md overflow-hidden ${options?.border && "border"}`}
33
+ className={`h-min rounded-md overflow-hidden ${
34
+ options?.border && "border"
35
+ }`}
32
36
  >
33
37
  <div
34
38
  className={`grid w-full overflow-hidden duration-300 ${
@@ -42,6 +46,7 @@ export const Item: React.FC<ItemProps> = ({
42
46
  }`}
43
47
  onClick={() => {
44
48
  setOpen(!open);
49
+ onClick && onClick();
45
50
  }}
46
51
  >
47
52
  <div className="flex-1 flex flex-col items-start">