@esic-lab/data-core-ui 0.0.6 → 0.0.8

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/index.d.mts CHANGED
@@ -91,21 +91,21 @@ interface Menu {
91
91
  title: string;
92
92
  subMenus: {
93
93
  title: string;
94
- icon?: React.ReactNode;
95
- iconActive?: React.ReactNode;
94
+ icon?: React.ReactNode | React.ReactElement;
95
+ iconActive?: React.ReactNode | React.ReactElement;
96
96
  path: string;
97
- customNode?: React.ReactNode;
97
+ customNode?: React.ReactNode | React.ReactElement;
98
98
  }[];
99
99
  }
100
100
  interface MenuNavBarProps {
101
101
  menus: Menu[];
102
102
  onClick: (path: string) => void;
103
103
  }
104
- declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): JSX.Element;
104
+ declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): React.ReactElement;
105
105
 
106
106
  interface TopNavBarProps {
107
107
  onClickNoti: () => void;
108
108
  }
109
109
  declare function TopNavBar({ onClickNoti }: TopNavBarProps): JSX.Element;
110
110
 
111
- export { Checkbox, CheckboxGroup, GhostButton, Loader, MenuNavBar, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TopNavBar };
111
+ export { Checkbox, CheckboxGroup, GhostButton, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TopNavBar };
package/dist/index.d.ts CHANGED
@@ -91,21 +91,21 @@ interface Menu {
91
91
  title: string;
92
92
  subMenus: {
93
93
  title: string;
94
- icon?: React.ReactNode;
95
- iconActive?: React.ReactNode;
94
+ icon?: React.ReactNode | React.ReactElement;
95
+ iconActive?: React.ReactNode | React.ReactElement;
96
96
  path: string;
97
- customNode?: React.ReactNode;
97
+ customNode?: React.ReactNode | React.ReactElement;
98
98
  }[];
99
99
  }
100
100
  interface MenuNavBarProps {
101
101
  menus: Menu[];
102
102
  onClick: (path: string) => void;
103
103
  }
104
- declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): JSX.Element;
104
+ declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): React.ReactElement;
105
105
 
106
106
  interface TopNavBarProps {
107
107
  onClickNoti: () => void;
108
108
  }
109
109
  declare function TopNavBar({ onClickNoti }: TopNavBarProps): JSX.Element;
110
110
 
111
- export { Checkbox, CheckboxGroup, GhostButton, Loader, MenuNavBar, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TopNavBar };
111
+ export { Checkbox, CheckboxGroup, GhostButton, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TopNavBar };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@esic-lab/data-core-ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
+ "style": "dist/index.css",
10
11
  "devDependencies": {
11
12
  "@chromatic-com/storybook": "^4.1.1",
12
13
  "@iconify/react": "^6.0.1",