tcce-design-system-test 0.3.10 → 0.3.12
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.
|
@@ -931,7 +931,7 @@ export declare interface SidebarProps {
|
|
|
931
931
|
activePath?: string;
|
|
932
932
|
logoImgExpanded?: default_2.ReactNode;
|
|
933
933
|
logoImgCollapsed?: default_2.ReactNode;
|
|
934
|
-
|
|
934
|
+
onNavigate?: (href: string) => void;
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
export declare const SidebarProvider: ({ children }: PropsWithChildren) => JSX.Element;
|
|
@@ -9616,7 +9616,7 @@ const Ws = T.div`
|
|
|
9616
9616
|
activePath: n,
|
|
9617
9617
|
logoImgExpanded: r,
|
|
9618
9618
|
logoImgCollapsed: i,
|
|
9619
|
-
|
|
9619
|
+
onNavigate: s = () => {
|
|
9620
9620
|
}
|
|
9621
9621
|
}) => {
|
|
9622
9622
|
const { isCollapsed: o, setIsCollapsed: a, isMobileOpen: c, setIsMobileOpen: u } = pc();
|
|
@@ -1245,7 +1245,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const yr={80:E`
|
|
|
1245
1245
|
@media (min-width: 768px) {
|
|
1246
1246
|
display: none;
|
|
1247
1247
|
}
|
|
1248
|
-
`,Jo=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,
|
|
1248
|
+
`,Jo=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:s=()=>{}})=>{const{isCollapsed:i,setIsCollapsed:a,isMobileOpen:c,setIsMobileOpen:d}=qo();return p.jsxs(p.Fragment,{children:[p.jsx(qt,{children:c&&p.jsx(vc,{...Go,onClick:()=>d(!1)})}),p.jsxs(bc,{$collapsed:c?!1:i,$open:c,children:[p.jsxs(wc,{$collapsed:i,children:[p.jsx(xc,{children:i?o:r}),p.jsx(Cc,{onClick:()=>a(!i),"aria-label":"Toggle collapse",children:p.jsx(Y,{component:Jl,size:"md",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Sc,{children:e.map(u=>p.jsx(yc,{item:u,userRoles:t,onNavigate:s,activePath:n},u.id))})]}),p.jsx(Tc,{onClick:()=>{d(!0),a(!1)},$hidden:c,children:p.jsx(Y,{component:Jl,size:30})})]})};Jo.displayName="Sidebar";const kc={underlined:E`
|
|
1249
1249
|
color: var(--color-main-orange-primary);
|
|
1250
1250
|
text-decoration-thickness: 1px;
|
|
1251
1251
|
text-underline-offset: 2px;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.12",
|
|
7
7
|
"description": "This package provides reusable UI components to ensure consistency across all CRM frontend applications",
|
|
8
8
|
"author": "BizAppsTotal <bizapps@tcce.biz>",
|
|
9
9
|
"type": "module",
|