@soul-refiner/design-system 1.1.8 → 1.1.9

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.
@@ -5,7 +5,7 @@ import React from 'react';
5
5
  declare const InnerNav: {
6
6
  ({ children }: React.PropsWithChildren): React.JSX.Element;
7
7
  Item: {
8
- ({ active, href, icon, label, sx }: InnerNavItemProps): React.JSX.Element;
8
+ ({ active, href, icon, label, sx, onClick, }: InnerNavItemProps): React.JSX.Element;
9
9
  displayName: string;
10
10
  };
11
11
  Dropdown: {
@@ -58,6 +58,7 @@ export interface InnerNavItemProps {
58
58
  icon?: React.ReactElement;
59
59
  label: React.ReactNode;
60
60
  sx?: string;
61
+ onClick?: () => void;
61
62
  }
62
63
  /*************************************************************************************************************************
63
64
  * Dropdown
@@ -53,8 +53,8 @@ const NavWrapper = styled.nav `
53
53
  background-color: var(--color-blue-10);
54
54
  border-right: 1px solid var(--color-grey-9);
55
55
  `;
56
- const InnerNavItem = ({ active, href, icon, label, sx }) => {
57
- return (React.createElement(Item, { "$active": active, "$sx": sx, href: href || '#', scroll: false },
56
+ const InnerNavItem = ({ active, href, icon, label, sx, onClick, }) => {
57
+ return (React.createElement(Item, { "$active": active, "$sx": sx, href: href || '#', scroll: false, onClick: onClick },
58
58
  icon,
59
59
  label));
60
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {