@dartech/arsenal-ui 1.4.36 → 1.4.38
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 +32 -12
- package/package.json +1 -1
- package/src/lib/Sidebar/Sidebar.d.ts +3 -1
- package/src/lib/Sidebar/SidebarDrawer.d.ts +3 -1
package/index.js
CHANGED
|
@@ -1259,9 +1259,8 @@ const ControlAceEditor = /*#__PURE__*/forwardRef((_a, ref) => {
|
|
|
1259
1259
|
},
|
|
1260
1260
|
readOnly: readOnly,
|
|
1261
1261
|
value: safeValue,
|
|
1262
|
-
onChange: handleChange
|
|
1263
|
-
|
|
1264
|
-
extentions: extensions[mode]
|
|
1262
|
+
onChange: handleChange,
|
|
1263
|
+
extensions: mode === 'text' ? [] : extensions[mode]
|
|
1265
1264
|
}, otherProps)), error && !hideErrorMessage && jsx(FormHelperText, Object.assign({
|
|
1266
1265
|
variant: "standard",
|
|
1267
1266
|
error: true
|
|
@@ -7356,7 +7355,9 @@ const Header = styled(Toolbar)(({
|
|
|
7356
7355
|
backgroundColor: '#fff',
|
|
7357
7356
|
borderRight: '1px solid rgba(38, 40, 66, 0.08)',
|
|
7358
7357
|
position: 'relative',
|
|
7359
|
-
'&
|
|
7358
|
+
'& span': {
|
|
7359
|
+
paddingLeft: 10,
|
|
7360
|
+
paddingTop: 5,
|
|
7360
7361
|
fontSize: 24,
|
|
7361
7362
|
fontWeight: 600,
|
|
7362
7363
|
transition: '.3s ease .1s',
|
|
@@ -7373,7 +7374,11 @@ const Header = styled(Toolbar)(({
|
|
|
7373
7374
|
visibility: 'hidden'
|
|
7374
7375
|
},
|
|
7375
7376
|
'&.collapsed': {
|
|
7376
|
-
|
|
7377
|
+
justifyContent: 'center',
|
|
7378
|
+
'& img': {
|
|
7379
|
+
width: 40
|
|
7380
|
+
},
|
|
7381
|
+
'& span': {
|
|
7377
7382
|
opacity: 0,
|
|
7378
7383
|
visibility: 'hidden',
|
|
7379
7384
|
transitionDelay: '0s'
|
|
@@ -7837,7 +7842,9 @@ var img = "data:image/svg+xml,%3csvg width='7' height='12' viewBox='0 0 7 12' fi
|
|
|
7837
7842
|
const SidebarDrawer = ({
|
|
7838
7843
|
title,
|
|
7839
7844
|
routes,
|
|
7840
|
-
id
|
|
7845
|
+
id,
|
|
7846
|
+
logo,
|
|
7847
|
+
collapsedLogo
|
|
7841
7848
|
}) => {
|
|
7842
7849
|
const {
|
|
7843
7850
|
collapsed,
|
|
@@ -7862,16 +7869,25 @@ const SidebarDrawer = ({
|
|
|
7862
7869
|
}),
|
|
7863
7870
|
id: id
|
|
7864
7871
|
}, {
|
|
7865
|
-
children: [!!title && jsx(Header, Object.assign({
|
|
7872
|
+
children: [(!!title || !!logo) && jsx(Header, Object.assign({
|
|
7866
7873
|
className: classnames({
|
|
7867
7874
|
collapsed
|
|
7868
7875
|
}),
|
|
7869
7876
|
"data-title": title.substring(0, 1)
|
|
7870
7877
|
}, {
|
|
7871
|
-
children:
|
|
7872
|
-
|
|
7878
|
+
children: jsxs(Box, Object.assign({
|
|
7879
|
+
display: 'flex',
|
|
7880
|
+
flexDirection: 'column'
|
|
7873
7881
|
}, {
|
|
7874
|
-
children: title
|
|
7882
|
+
children: [!!title && jsx(Box, Object.assign({
|
|
7883
|
+
component: "span"
|
|
7884
|
+
}, {
|
|
7885
|
+
children: title
|
|
7886
|
+
})), !!logo && jsx(Box, {
|
|
7887
|
+
component: "img",
|
|
7888
|
+
src: collapsed ? collapsedLogo : logo,
|
|
7889
|
+
alt: "Lending Hub KZ"
|
|
7890
|
+
})]
|
|
7875
7891
|
}))
|
|
7876
7892
|
})), jsx(List, Object.assign({
|
|
7877
7893
|
sx: {
|
|
@@ -7891,7 +7907,9 @@ const Sidebar = ({
|
|
|
7891
7907
|
routes,
|
|
7892
7908
|
theme: _theme = theme,
|
|
7893
7909
|
title: _title = '',
|
|
7894
|
-
id
|
|
7910
|
+
id,
|
|
7911
|
+
logo,
|
|
7912
|
+
collapsedLogo
|
|
7895
7913
|
}) => {
|
|
7896
7914
|
return jsxs(ThemeProvider, Object.assign({
|
|
7897
7915
|
theme: _theme
|
|
@@ -7900,7 +7918,9 @@ const Sidebar = ({
|
|
|
7900
7918
|
children: jsx(SidebarDrawer$1, {
|
|
7901
7919
|
title: _title,
|
|
7902
7920
|
routes: routes,
|
|
7903
|
-
id: id
|
|
7921
|
+
id: id,
|
|
7922
|
+
logo: logo,
|
|
7923
|
+
collapsedLogo: collapsedLogo
|
|
7904
7924
|
})
|
|
7905
7925
|
})]
|
|
7906
7926
|
}));
|
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;
|