@bothub-chat/ui 2.59.0-develop-31e645c9-e625-4cba-a54b-28a42d5ea027 → 2.59.0-fix-link-1c066dc8-fa64-43a3-a4f0-c7a51cdcfbb5
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/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="https://bothub.chat/icon-144x144.png" />
|
|
3
|
-
</p>
|
|
4
|
-
<h1 align="center">Bothub Chat</h1>
|
|
5
|
-
<p align="center">UI Components from Bothub.</p>
|
|
6
|
-
<p align="center">
|
|
7
|
-
<a href="https://bothub-docs.vercel.app/">Documentation</a>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
<h2>Installing</h2>
|
|
11
|
-
<p>Preliminary requirements:</p>
|
|
12
|
-
<ul>
|
|
13
|
-
<li><a href="https://nodejs.org/">Node.js</a> >= <code>18.12.1</code></li>
|
|
14
|
-
<li><a href="https://www.npmjs.com/">npm</a> >= <code>9.1.2</code></li>
|
|
15
|
-
<li><a href="https://yarnpkg.com/">yarn</a> >= <code>1.22.19</code></li>
|
|
16
|
-
</ul>
|
|
17
|
-
<p>Installing peer dependencies:</p>
|
|
18
|
-
<pre>yarn add framer-motion@10.16.3 react@18.2.0 react-dom@18.2.0 styled-components@6.0.7 react-helmet@6.1.0 normalize.css@8.0.1 react-slider@2.0.6 react-markdown@8.0.5 highlight.js@11.9.0 react-highlight@0.15.0</pre>
|
|
19
|
-
<p>Installing package:</p>
|
|
20
|
-
<pre>yarn add @bothub-chat/ui</pre>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<h2>License</h2>
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://bothub.chat/icon-144x144.png" />
|
|
3
|
+
</p>
|
|
4
|
+
<h1 align="center">Bothub Chat</h1>
|
|
5
|
+
<p align="center">UI Components from Bothub.</p>
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://bothub-docs.vercel.app/">Documentation</a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<h2>Installing</h2>
|
|
11
|
+
<p>Preliminary requirements:</p>
|
|
12
|
+
<ul>
|
|
13
|
+
<li><a href="https://nodejs.org/">Node.js</a> >= <code>18.12.1</code></li>
|
|
14
|
+
<li><a href="https://www.npmjs.com/">npm</a> >= <code>9.1.2</code></li>
|
|
15
|
+
<li><a href="https://yarnpkg.com/">yarn</a> >= <code>1.22.19</code></li>
|
|
16
|
+
</ul>
|
|
17
|
+
<p>Installing peer dependencies:</p>
|
|
18
|
+
<pre>yarn add framer-motion@10.16.3 react@18.2.0 react-dom@18.2.0 styled-components@6.0.7 react-helmet@6.1.0 normalize.css@8.0.1 react-slider@2.0.6 react-markdown@8.0.5 highlight.js@11.9.0 react-highlight@0.15.0</pre>
|
|
19
|
+
<p>Installing package:</p>
|
|
20
|
+
<pre>yarn add @bothub-chat/ui</pre>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<h2>License</h2>
|
|
24
24
|
<p><a href="https://github.com/matbea-dev/bothub/blob/main/LICENSE">MIT</a></p>
|
|
@@ -3,6 +3,7 @@ type SidebarMenuItemProps = {
|
|
|
3
3
|
icon: React.ReactNode;
|
|
4
4
|
active?: boolean;
|
|
5
5
|
to?: string;
|
|
6
|
+
href?: string;
|
|
6
7
|
as?: React.ElementType;
|
|
7
8
|
} & React.PropsWithChildren & React.HTMLAttributes<HTMLElement>;
|
|
8
9
|
export declare const SidebarMenuItem: React.FC<SidebarMenuItemProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as e}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useRef as r,useState as i}from"react";import{SidebarMenuListItem as n,SidebarMenuItemIconBox as s,SidebarMenuItemText as c}from"../styled.js";import{useSidebar as m}from"../../context.js";import{useSidebarMenu as a}from"../context.js";import{SidebarMenuItemTooltip as d}from"./tooltip.js";const h=h=>{var{icon:l,children:p,active:f,as:v,to:j,href:u}=h,x=e(h,["icon","children","active","as","to","href"]);const{isOpen:b}=m(),{isShowTooltips:O}=a(),$=r(null),[M,g]=i(!1);return t(n,Object.assign({},x,{as:v,to:j,href:u,ref:$,onMouseEnter:()=>{g(!0)},onMouseLeave:()=>{g(!1)},"data-test":"sidebar-menu-item",children:[o(s,{$active:!!f,children:l}),o(c,{$isOpen:b,$active:!!f,children:p}),o(d,{hovered:M,hidden:b||!O,children:p})]}))};export{h as SidebarMenuItem};
|