@dartech/arsenal-ui 1.4.36 → 1.4.37
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/index.js
CHANGED
|
@@ -7356,7 +7356,9 @@ const Header = styled(Toolbar)(({
|
|
|
7356
7356
|
backgroundColor: '#fff',
|
|
7357
7357
|
borderRight: '1px solid rgba(38, 40, 66, 0.08)',
|
|
7358
7358
|
position: 'relative',
|
|
7359
|
-
'&
|
|
7359
|
+
'& span': {
|
|
7360
|
+
paddingLeft: 10,
|
|
7361
|
+
paddingTop: 5,
|
|
7360
7362
|
fontSize: 24,
|
|
7361
7363
|
fontWeight: 600,
|
|
7362
7364
|
transition: '.3s ease .1s',
|
|
@@ -7373,7 +7375,11 @@ const Header = styled(Toolbar)(({
|
|
|
7373
7375
|
visibility: 'hidden'
|
|
7374
7376
|
},
|
|
7375
7377
|
'&.collapsed': {
|
|
7376
|
-
|
|
7378
|
+
justifyContent: 'center',
|
|
7379
|
+
'& img': {
|
|
7380
|
+
width: 40
|
|
7381
|
+
},
|
|
7382
|
+
'& span': {
|
|
7377
7383
|
opacity: 0,
|
|
7378
7384
|
visibility: 'hidden',
|
|
7379
7385
|
transitionDelay: '0s'
|
|
@@ -7837,7 +7843,9 @@ var img = "data:image/svg+xml,%3csvg width='7' height='12' viewBox='0 0 7 12' fi
|
|
|
7837
7843
|
const SidebarDrawer = ({
|
|
7838
7844
|
title,
|
|
7839
7845
|
routes,
|
|
7840
|
-
id
|
|
7846
|
+
id,
|
|
7847
|
+
logo,
|
|
7848
|
+
collapsedLogo
|
|
7841
7849
|
}) => {
|
|
7842
7850
|
const {
|
|
7843
7851
|
collapsed,
|
|
@@ -7862,16 +7870,25 @@ const SidebarDrawer = ({
|
|
|
7862
7870
|
}),
|
|
7863
7871
|
id: id
|
|
7864
7872
|
}, {
|
|
7865
|
-
children: [!!title && jsx(Header, Object.assign({
|
|
7873
|
+
children: [(!!title || !!logo) && jsx(Header, Object.assign({
|
|
7866
7874
|
className: classnames({
|
|
7867
7875
|
collapsed
|
|
7868
7876
|
}),
|
|
7869
7877
|
"data-title": title.substring(0, 1)
|
|
7870
7878
|
}, {
|
|
7871
|
-
children:
|
|
7872
|
-
|
|
7879
|
+
children: jsxs(Box, Object.assign({
|
|
7880
|
+
display: 'flex',
|
|
7881
|
+
flexDirection: 'column'
|
|
7873
7882
|
}, {
|
|
7874
|
-
children: title
|
|
7883
|
+
children: [!!title && jsx(Box, Object.assign({
|
|
7884
|
+
component: "span"
|
|
7885
|
+
}, {
|
|
7886
|
+
children: title
|
|
7887
|
+
})), !!logo && jsx(Box, {
|
|
7888
|
+
component: "img",
|
|
7889
|
+
src: collapsed ? collapsedLogo : logo,
|
|
7890
|
+
alt: "Lending Hub KZ"
|
|
7891
|
+
})]
|
|
7875
7892
|
}))
|
|
7876
7893
|
})), jsx(List, Object.assign({
|
|
7877
7894
|
sx: {
|
|
@@ -7891,7 +7908,9 @@ const Sidebar = ({
|
|
|
7891
7908
|
routes,
|
|
7892
7909
|
theme: _theme = theme,
|
|
7893
7910
|
title: _title = '',
|
|
7894
|
-
id
|
|
7911
|
+
id,
|
|
7912
|
+
logo,
|
|
7913
|
+
collapsedLogo
|
|
7895
7914
|
}) => {
|
|
7896
7915
|
return jsxs(ThemeProvider, Object.assign({
|
|
7897
7916
|
theme: _theme
|
|
@@ -7900,7 +7919,9 @@ const Sidebar = ({
|
|
|
7900
7919
|
children: jsx(SidebarDrawer$1, {
|
|
7901
7920
|
title: _title,
|
|
7902
7921
|
routes: routes,
|
|
7903
|
-
id: id
|
|
7922
|
+
id: id,
|
|
7923
|
+
logo: logo,
|
|
7924
|
+
collapsedLogo: collapsedLogo
|
|
7904
7925
|
})
|
|
7905
7926
|
})]
|
|
7906
7927
|
}));
|
package/package.json
CHANGED
|
@@ -5,6 +5,8 @@ type Props = {
|
|
|
5
5
|
theme?: any;
|
|
6
6
|
title?: string;
|
|
7
7
|
id?: string;
|
|
8
|
+
logo?: string;
|
|
9
|
+
collapsedLogo?: string;
|
|
8
10
|
};
|
|
9
|
-
export declare const Sidebar: ({ routes, theme, title, id }: Props) => JSX.Element;
|
|
11
|
+
export declare const Sidebar: ({ routes, theme, title, id, logo, collapsedLogo, }: Props) => JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -4,6 +4,8 @@ type Props = {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
routes: Route[];
|
|
6
6
|
id?: string;
|
|
7
|
+
logo?: string;
|
|
8
|
+
collapsedLogo?: string;
|
|
7
9
|
};
|
|
8
|
-
declare const SidebarDrawer: ({ title, routes, id }: Props) => JSX.Element;
|
|
10
|
+
declare const SidebarDrawer: ({ title, routes, id, logo, collapsedLogo }: Props) => JSX.Element;
|
|
9
11
|
export default SidebarDrawer;
|