@bothub-chat/ui 2.48.1-fix-refactor-5c07a297-6e72-4eac-b0e0-c39dccd2d42c → 2.48.1-fix-refactor-96385007-7cf3-47d3-ab5b-a20d68e624bd
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 +1 @@
|
|
|
1
|
-
import{__rest as t}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{SidebarMenuListItem as r,SidebarMenuItemIconBox as o,SidebarMenuItemText as c}from"../styled.js";import{useSidebar as n}from"../../context.js";const s=s=>{var{icon:a,children:m,active:d,as:l,to:p}=s,h=t(s,["icon","children","active","as","to"]);const{isOpen:v}=n();return e(r,Object.assign({},h,{as:l,to:p,"data-test":"sidebar-menu-item",children:[i(o,{$active:!!d,children:a}),
|
|
1
|
+
import{__rest as t}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{SidebarMenuListItem as r,SidebarMenuItemIconBox as o,SidebarMenuItemText as c}from"../styled.js";import{useSidebar as n}from"../../context.js";const s=s=>{var{icon:a,children:m,active:d,as:l,to:p}=s,h=t(s,["icon","children","active","as","to"]);const{isOpen:v}=n();return e(r,Object.assign({},h,{as:l,to:p,"data-test":"sidebar-menu-item",children:[i(o,{$active:!!d,children:a}),i(c,{$isOpen:v,$active:!!d,children:m})]}))};export{s as SidebarMenuItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{animated as e}from"@react-spring/web";import{styled as i}from"styled-components";import{Typography as t}from"../../typography/index.js";const n=i.div.withConfig({displayName:"styled__SidebarMenuStyled",componentId:"sc-1lz7ko6-0"})(["z-index:",";"],({theme:e})=>e.zIndex.menu),o=i(e.ul).withConfig({displayName:"styled__SidebarMenuList",componentId:"sc-1lz7ko6-1"})(["transform-origin:top center;display:flex;flex-direction:column;margin:0;gap:20px;"," "," margin-top:20px;left:0;z-index:1;list-style-type:none;"],({$isOpen:e,theme:i})=>e&&`\n position: absolute;\n background: ${i.colors.grayScale.gray7};\n border: 1px solid ${i.colors.grayScale.gray3};\n padding: 20px;\n border-radius: 8px;\n width: 100%;\n `,({$isOpen:e})=>!e&&"\n gap: 10px;\n margin: 0;\n padding: 0;\n width: fit-content;\n "),a=i.li.withConfig({displayName:"styled__SidebarMenuListItem",componentId:"sc-1lz7ko6-2"})(["display:flex;align-items:center;gap:10px;cursor:pointer;"]),r=i.div.withConfig({displayName:"styled__SidebarMenuItemIconBox",componentId:"sc-1lz7ko6-3"})(["display:flex;outline:1px solid ",";align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;opacity:",";background:",";svg path{",";}"],({theme:e})=>e.colors.grayScale.gray2,({$active:e})=>e?1:.5,({theme:e,$active:i})=>i?e.colors.grayScale.gray3:e.colors.grayScale.gray4,({theme:e,$active:i})=>i&&`fill: ${e.colors.accent.primary}`),d=i(t).attrs({variant:"body-m-medium"}).withConfig({displayName:"styled__SidebarMenuItemText",componentId:"sc-1lz7ko6-4"})(["opacity:",";"],({$active:e})=>e?1:.5);export{r as SidebarMenuItemIconBox,d as SidebarMenuItemText,o as SidebarMenuList,a as SidebarMenuListItem,n as SidebarMenuStyled};
|
|
1
|
+
import{animated as e}from"@react-spring/web";import{styled as i}from"styled-components";import{Typography as t}from"../../typography/index.js";const n=i.div.withConfig({displayName:"styled__SidebarMenuStyled",componentId:"sc-1lz7ko6-0"})(["z-index:",";"],({theme:e})=>e.zIndex.menu),o=i(e.ul).withConfig({displayName:"styled__SidebarMenuList",componentId:"sc-1lz7ko6-1"})(["transform-origin:top center;display:flex;flex-direction:column;margin:0;gap:20px;"," "," margin-top:20px;left:0;z-index:1;list-style-type:none;"],({$isOpen:e,theme:i})=>e&&`\n position: absolute;\n background: ${i.colors.grayScale.gray7};\n border: 1px solid ${i.colors.grayScale.gray3};\n padding: 20px;\n border-radius: 8px;\n width: 100%;\n `,({$isOpen:e})=>!e&&"\n gap: 10px;\n margin: 0;\n padding: 0;\n width: fit-content;\n "),a=i.li.withConfig({displayName:"styled__SidebarMenuListItem",componentId:"sc-1lz7ko6-2"})(["display:flex;align-items:center;gap:10px;cursor:pointer;"]),r=i.div.withConfig({displayName:"styled__SidebarMenuItemIconBox",componentId:"sc-1lz7ko6-3"})(["display:flex;outline:1px solid ",";align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;opacity:",";background:",";svg path{",";}"],({theme:e})=>e.colors.grayScale.gray2,({$active:e})=>e?1:.5,({theme:e,$active:i})=>i?e.colors.grayScale.gray3:e.colors.grayScale.gray4,({theme:e,$active:i})=>i&&`fill: ${e.colors.accent.primary}`),d=i(t).attrs({variant:"body-m-medium"}).withConfig({displayName:"styled__SidebarMenuItemText",componentId:"sc-1lz7ko6-4"})([""," opacity:",";@media (max-width:","){display:block;}"],({$isOpen:e})=>!e&&"display: none;",({$active:e})=>e?1:.5,({theme:e})=>e.dashboard.tablet.maxWidth);export{r as SidebarMenuItemIconBox,d as SidebarMenuItemText,o as SidebarMenuList,a as SidebarMenuListItem,n as SidebarMenuStyled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{styled as i}from"styled-components";import{Scrollbar as t}from"../scrollbar/index.js";import{Divider as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{styled as i}from"styled-components";import{Scrollbar as t}from"../scrollbar/index.js";import{Divider as o}from"../divider/index.js";import{ScrollbarShadow as d}from"../scrollbar/shadow/index.js";const a=i.div.withConfig({displayName:"styled__SidebarStyled",componentId:"sc-3xc6b3-0"})(["display:flex;flex-direction:column;height:100%;width:",";"," padding:20px 0;background:",";border-radius:18px;transition:all 0.3s ease-in-out;overflow:hidden;@media (max-width:","){width:424px;transform:translateX( "," );transition:all 0.3s ease-in-out;}@media (max-width:","){width:100%;border-radius:0;}"],({$isOpen:e,$isHide:i})=>i?"0px":e?"324px":"74px",({$isOpen:e})=>!e&&"justify-content: center;",({theme:e})=>e.colors.grayScale.gray4,({theme:e})=>e.dashboard.tablet.maxWidth,({$isOpen:e})=>e?"0":"calc(-100% - 16px)",({theme:e})=>e.dashboard.mobile.maxWidth),n=i.div.withConfig({displayName:"styled__SidebarTop",componentId:"sc-3xc6b3-1"})([""," height:fit-content;padding-bottom:16px;"],({$isOpen:e})=>e&&"margin: 0 16px;"),s=i.div.withConfig({displayName:"styled__SidebarContent",componentId:"sc-3xc6b3-2"})(["display:flex;flex-direction:column;overflow:hidden;width:100%;height:100%;padding-bottom:20px;"]),p=i.div.withConfig({displayName:"styled__SidebarBottom",componentId:"sc-3xc6b3-3"})(["display:flex;padding:0 16px;height:fit-content;&:empty{display:none;}"]),r=i.div.withConfig({displayName:"styled__SidebarWrapper",componentId:"sc-3xc6b3-4"})(["display:flex;width:100%;height:100%;overflow:hidden;margin:0 16px;padding-right:","px;"],({$isScrollable:e,$isOpen:i})=>e&&i?20:26),l=i(t).attrs(({theme:i})=>({variant:"secondary",size:6,scrollShadows:{size:90,color:i.colors.grayScale.gray4,top:e(d,{side:"top"}),bottom:e(d,{side:"bottom"})}})).withConfig({displayName:"styled__SidebarBodyScrollbarWrapper",componentId:"sc-3xc6b3-5"})(["position:relative;height:100%;overflow-y:auto;overflow-x:hidden;",""],({$isOpen:e})=>!e&&"\n scrollbar-width: none;\n padding-right: 6px;\n "),c=i.div.withConfig({displayName:"styled__SidebarToolbar",componentId:"sc-3xc6b3-6"})(["display:flex;height:fit-content;"," flex-direction:",";gap:20px;justify-content:space-between;align-items:center;"],({$isOpen:e})=>!e&&"margin-top: 20px;",({$isOpen:e})=>e?"row":"column-reverse"),m=i.div.withConfig({displayName:"styled__SidebarButtons",componentId:"sc-3xc6b3-7"})(["display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;gap:10px;"]),x=i.div.withConfig({displayName:"styled__SidebarHead",componentId:"sc-3xc6b3-8"})(["position:relative;display:grid;"," justify-content:center;align-items:center;gap:14px;margin-bottom:20px;@media (max-width:","){display:none;}"],({$isOpen:e})=>e&&"grid-template-columns: 1fr auto auto;",({theme:e})=>e.dashboard.tablet.maxWidth),h=i(o).withConfig({displayName:"styled__SidebarDivider",componentId:"sc-3xc6b3-9"})(["margin:0 auto;margin-top:16px;width:",";background:",";"],({$isOpen:e})=>e?"width: 100%":"calc(100% - 32px)",({theme:e})=>e.colors.grayScale.gray2),y=i.div.withConfig({displayName:"styled__SidebarBoxContainer",componentId:"sc-3xc6b3-10"})(["display:flex;flex-direction:column;gap:16px;padding:0 16px;margin-bottom:16px;&:empty{display:none;}"]),g=i.div.withConfig({displayName:"styled__SidebarSearchBox",componentId:"sc-3xc6b3-11"})(["display:flex;margin-top:16px;&:empty{display:none;}"]),b=i.div.withConfig({displayName:"styled__SidebarToggleBox",componentId:"sc-3xc6b3-12"})(["@media (max-width:","){display:none;}"],({theme:e})=>e.dashboard.tablet.maxWidth);export{l as SidebarBodyScrollbarWrapper,p as SidebarBottom,y as SidebarBoxContainer,m as SidebarButtons,s as SidebarContent,h as SidebarDivider,x as SidebarHead,g as SidebarSearchBox,a as SidebarStyled,b as SidebarToggleBox,c as SidebarToolbar,n as SidebarTop,r as SidebarWrapper};
|
package/package.json
CHANGED