@bothub-chat/ui 2.48.1-fix-refactor-c7ec9886-8389-4d1b-a399-aba791a1e90e → 2.48.1-fix-refactor-2bf6a80f-2b7b-4cfa-b21d-25fb766ad749

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.
@@ -1,7 +1,8 @@
1
1
  type SidebarMenuItemProps = {
2
2
  icon: React.ReactNode;
3
- label: string;
4
3
  active?: boolean;
5
- };
4
+ href?: string;
5
+ as: React.ElementType;
6
+ } & React.PropsWithChildren;
6
7
  export declare const SidebarMenuItem: React.FC<SidebarMenuItemProps>;
7
8
  export {};
@@ -1 +1 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import{SidebarMenuListItem as r,SidebarMenuItemIconBox as i,SidebarMenuItemText as c}from"../styled.js";import{useSidebar as o}from"../../context.js";const n=({icon:n,label:m,active:s})=>{const{isOpen:l}=o();return t(r,{children:[e(i,{$active:!!s,children:n}),l&&e(c,{$active:!!s,children:m})]})};export{n as SidebarMenuItem};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{SidebarMenuListItem as r,SidebarMenuItemIconBox as i,SidebarMenuItemText as c}from"../styled.js";import{useSidebar as n}from"../../context.js";const o=({icon:o,children:s,active:a,href:m,as:d})=>{const{isOpen:h}=n();return e(r,{as:d,"data-test":"sidebar-menu-item",href:m,children:[t(i,{$active:!!a,children:o}),h&&t(c,{$active:!!a,children:s})]})};export{o as SidebarMenuItem};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bothub-chat/ui",
3
- "version": "2.48.1-fix-refactor-c7ec9886-8389-4d1b-a399-aba791a1e90e",
3
+ "version": "2.48.1-fix-refactor-2bf6a80f-2b7b-4cfa-b21d-25fb766ad749",
4
4
  "description": "Bothub UI Components",
5
5
  "keywords": [
6
6
  "bot",