@xyo-network/react-appbar 2.25.48 → 2.25.51
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/dist/cjs/components/AppBar/Application.d.ts +4 -3
- package/dist/cjs/components/AppBar/Application.js +3 -6
- package/dist/cjs/components/AppBar/Application.js.map +1 -1
- package/dist/docs.json +4283 -4224
- package/dist/esm/components/AppBar/Application.d.ts +4 -3
- package/dist/esm/components/AppBar/Application.js +4 -7
- package/dist/esm/components/AppBar/Application.js.map +1 -1
- package/package.json +13 -23
- package/src/components/AppBar/Application.tsx +6 -19
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { ToolbarProps } from '@mui/material';
|
|
2
|
+
import { AppBarExProps } from '@xylabs/react-common';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
export interface ApplicationAppBarProps extends AppBarExProps {
|
|
4
5
|
contextToolbar?: ReactElement<ToolbarProps>;
|
|
5
6
|
systemToolbar?: ReactElement<ToolbarProps>;
|
|
6
7
|
responsive?: boolean;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import {
|
|
3
|
-
import { FlexGrowRow, FlexRow } from '@xylabs/react-flexbox';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AppBarEx } from '@xylabs/react-common';
|
|
4
3
|
import { ContextToolbar, SystemToolbar } from '../Toolbar';
|
|
5
|
-
export const ApplicationAppBar = ({ systemToolbar, contextToolbar,
|
|
6
|
-
|
|
7
|
-
const belowSm = useMediaQuery(breakpoints.down('sm'));
|
|
8
|
-
return (_jsx(AppBar, { position: "sticky", ...props, children: _jsxs(Container, { maxWidth: "xl", disableGutters: true, children: [_jsxs(FlexRow, { flexWrap: "nowrap", justifyContent: "flex-start", children: [contextToolbar ?? _jsx(ContextToolbar, { version: true }), _jsx(FlexGrowRow, { children: belowSm && responsive ? null : children }), systemToolbar ?? _jsx(SystemToolbar, {})] }), belowSm && children && responsive ? _jsx(Toolbar, { children: children }) : null] }) }));
|
|
4
|
+
export const ApplicationAppBar = ({ systemToolbar = _jsx(SystemToolbar, {}), contextToolbar = _jsx(ContextToolbar, {}), responsive = true, ...props }) => {
|
|
5
|
+
return _jsx(AppBarEx, { systemToolbar: systemToolbar, contextToolbar: contextToolbar, position: "sticky", responsive: responsive, ...props });
|
|
9
6
|
};
|
|
10
7
|
//# sourceMappingURL=Application.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Application.js","sourceRoot":"","sources":["../../../../src/components/AppBar/Application.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Application.js","sourceRoot":"","sources":["../../../../src/components/AppBar/Application.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAiB,MAAM,sBAAsB,CAAA;AAG9D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAQ1D,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAAE,aAAa,GAAG,KAAC,aAAa,KAAG,EAAE,cAAc,GAAG,KAAC,cAAc,KAAG,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC7K,OAAO,KAAC,QAAQ,IAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAC,QAAQ,EAAC,UAAU,EAAE,UAAU,KAAM,KAAK,GAAI,CAAA;AACxI,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -14,18 +14,17 @@
|
|
|
14
14
|
"@emotion/styled": "^11.8.1",
|
|
15
15
|
"@mui/icons-material": "^5.8.3",
|
|
16
16
|
"@mui/material": "^5.8.3",
|
|
17
|
-
"@xylabs/react-button": "^2.12.
|
|
18
|
-
"@xylabs/react-common": "^2.12.
|
|
19
|
-
"@xylabs/react-flexbox": "^2.12.
|
|
20
|
-
"@xylabs/react-shared": "^2.12.
|
|
21
|
-
"@xyo-network/core": "^2.20.
|
|
22
|
-
"@xyo-network/react-archive": "^2.25.
|
|
23
|
-
"@xyo-network/react-archivist-api": "^2.25.
|
|
24
|
-
"@xyo-network/react-auth": "^2.25.
|
|
25
|
-
"@xyo-network/react-network": "^2.25.
|
|
26
|
-
"@xyo-network/react-shared": "^2.25.
|
|
27
|
-
"@xyo-network/react-
|
|
28
|
-
"lodash": "^4.17.21",
|
|
17
|
+
"@xylabs/react-button": "^2.12.23",
|
|
18
|
+
"@xylabs/react-common": "^2.12.23",
|
|
19
|
+
"@xylabs/react-flexbox": "^2.12.23",
|
|
20
|
+
"@xylabs/react-shared": "^2.12.23",
|
|
21
|
+
"@xyo-network/core": "^2.20.45",
|
|
22
|
+
"@xyo-network/react-archive": "^2.25.51",
|
|
23
|
+
"@xyo-network/react-archivist-api": "^2.25.51",
|
|
24
|
+
"@xyo-network/react-auth": "^2.25.51",
|
|
25
|
+
"@xyo-network/react-network": "^2.25.51",
|
|
26
|
+
"@xyo-network/react-shared": "^2.25.51",
|
|
27
|
+
"@xyo-network/react-wallet": "^2.25.51",
|
|
29
28
|
"react": "^18.1.0",
|
|
30
29
|
"react-dom": "^18.1.0",
|
|
31
30
|
"react-router-dom": "^6.3.0",
|
|
@@ -36,18 +35,9 @@
|
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@babel/core": "^7.18.2",
|
|
38
37
|
"@babel/preset-env": "^7.18.2",
|
|
39
|
-
"@storybook/addons": "^6.5.8",
|
|
40
|
-
"@storybook/api": "^6.5.8",
|
|
41
|
-
"@storybook/components": "^6.5.8",
|
|
42
|
-
"@storybook/core-events": "^6.5.8",
|
|
43
38
|
"@storybook/react": "^6.5.8",
|
|
44
|
-
"@storybook/theming": "^6.5.8",
|
|
45
|
-
"@types/lodash": "^4.14.182",
|
|
46
|
-
"@xylabs/ts-scripts": "^1.0.66",
|
|
47
39
|
"@xylabs/tsconfig": "^1.0.13",
|
|
48
|
-
"axios": "^0.27.2"
|
|
49
|
-
"storybook-dark-mode": "^1.1.0",
|
|
50
|
-
"typescript": "^4.7.3"
|
|
40
|
+
"axios": "^0.27.2"
|
|
51
41
|
},
|
|
52
42
|
"browser": "dist/esm/index.js",
|
|
53
43
|
"docs": "dist/docs.json",
|
|
@@ -107,6 +97,6 @@
|
|
|
107
97
|
},
|
|
108
98
|
"sideEffects": false,
|
|
109
99
|
"types": "dist/esm/index.d.ts",
|
|
110
|
-
"version": "2.25.
|
|
100
|
+
"version": "2.25.51",
|
|
111
101
|
"packageManager": "yarn@3.1.1"
|
|
112
102
|
}
|
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { ToolbarProps } from '@mui/material'
|
|
2
|
+
import { AppBarEx, AppBarExProps } from '@xylabs/react-common'
|
|
3
|
+
import { ReactElement } from 'react'
|
|
4
4
|
|
|
5
5
|
import { ContextToolbar, SystemToolbar } from '../Toolbar'
|
|
6
6
|
|
|
7
|
-
export interface ApplicationAppBarProps extends
|
|
7
|
+
export interface ApplicationAppBarProps extends AppBarExProps {
|
|
8
8
|
contextToolbar?: ReactElement<ToolbarProps>
|
|
9
9
|
systemToolbar?: ReactElement<ToolbarProps>
|
|
10
10
|
responsive?: boolean
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export const ApplicationAppBar: React.FC<ApplicationAppBarProps> = ({ systemToolbar
|
|
14
|
-
|
|
15
|
-
const belowSm = useMediaQuery(breakpoints.down('sm'))
|
|
16
|
-
return (
|
|
17
|
-
<AppBar position="sticky" {...props}>
|
|
18
|
-
<Container maxWidth="xl" disableGutters>
|
|
19
|
-
<FlexRow flexWrap="nowrap" justifyContent="flex-start">
|
|
20
|
-
{contextToolbar ?? <ContextToolbar version />}
|
|
21
|
-
<FlexGrowRow>{belowSm && responsive ? null : children}</FlexGrowRow>
|
|
22
|
-
{systemToolbar ?? <SystemToolbar />}
|
|
23
|
-
</FlexRow>
|
|
24
|
-
{belowSm && children && responsive ? <Toolbar>{children}</Toolbar> : null}
|
|
25
|
-
</Container>
|
|
26
|
-
</AppBar>
|
|
27
|
-
)
|
|
13
|
+
export const ApplicationAppBar: React.FC<ApplicationAppBarProps> = ({ systemToolbar = <SystemToolbar />, contextToolbar = <ContextToolbar />, responsive = true, ...props }) => {
|
|
14
|
+
return <AppBarEx systemToolbar={systemToolbar} contextToolbar={contextToolbar} position="sticky" responsive={responsive} {...props} />
|
|
28
15
|
}
|