grep-components 1.15.0-grepf-1792.3 → 1.15.0-grepf-1792.4
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/components/{AppBarNew → AppBar}/AppBar.d.ts +0 -0
- package/dist/components/AppBar/MainAppStyles.d.ts +30 -0
- package/dist/components/{AppBarNew → AppBar}/MobileAppBar.d.ts +0 -0
- package/dist/components/{AppBarNew/stories/NewAppBarStory.stories.d.ts → AppBar/stories/AppBarStory.stories.d.ts} +0 -0
- package/dist/components/{AppBarNew → AppBar}/types.d.ts +0 -0
- package/dist/components/AppBarNavList/stories/AppBarNavList.stories.d.ts +2 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +36 -66
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/AppBar/index.d.ts +0 -3
- package/dist/components/AppBar/stories/AppBar.stories.d.ts +0 -1
- package/dist/components/AppBar/styles/index.d.ts +0 -1
- package/dist/components/AppBarNew/MainAppStyles.d.ts +0 -31
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Theme, MUIStyledCommonProps } from '@mui/system';
|
|
3
|
+
import { v0colors } from './types';
|
|
4
|
+
export declare const dimensions: {
|
|
5
|
+
breadcrumbsFontSize: number;
|
|
6
|
+
contentWidth: number;
|
|
7
|
+
footerHeight: number;
|
|
8
|
+
inputBoxHeight: number;
|
|
9
|
+
toolbarHeight: number;
|
|
10
|
+
toolbarHeightMobile: number;
|
|
11
|
+
toolbarWidth: number;
|
|
12
|
+
toolbarMenuWidth: number;
|
|
13
|
+
toolbarMenuHeight: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const ToolbarTitle: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps<unknown> & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
+
export declare const EnvironmentTitle: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
+
export declare const Toolbar: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
+
export declare const ToolbarFixer: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const ToolbarInner: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
20
|
+
colors: v0colors;
|
|
21
|
+
} & MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
|
+
export declare const ToolbarLeft: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const ToolbarRight: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
+
export declare const UserContainer: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
|
+
export declare const AccountName: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
26
|
+
export declare const ToolbarMenu: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
|
+
export declare const MobileToolbarMenu: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
28
|
+
export declare const ToolbarMenuInner: import("@emotion/styled").StyledComponent<MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
export declare const ToolbarMenuItem: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps<unknown> & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
|
+
export declare const MobileToolbarMenuItem: import("@emotion/styled").StyledComponent<import("react-router-dom").NavLinkProps<unknown> & import("react").RefAttributes<HTMLAnchorElement> & MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './AppBar';
|
|
1
|
+
export * from './AppBar/AppBar';
|
|
2
2
|
export * from './AppBarProfile';
|
|
3
3
|
export * from './AppBarNavList';
|
|
4
4
|
export * from './BodyLayout';
|
|
@@ -28,7 +28,7 @@ export * from './GrepEditor';
|
|
|
28
28
|
export * from './ConfirmationDialog';
|
|
29
29
|
export * from './GrepDialog';
|
|
30
30
|
export * from './ToC';
|
|
31
|
-
export { default as AppBar } from './AppBar';
|
|
31
|
+
export { default as AppBar } from './AppBar/AppBar';
|
|
32
32
|
export { default as AppBarProfile } from './AppBarProfile';
|
|
33
33
|
export { default as AppBarNavList } from './AppBarNavList';
|
|
34
34
|
export { default as BodyLayout } from './BodyLayout';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as Utils from './utils';
|
|
2
2
|
export { default as Colors } from './styling/Colors';
|
|
3
|
-
export { default as AppBar } from './components/AppBar';
|
|
4
3
|
export { default as AppBarProfile } from './components/AppBarProfile';
|
|
5
4
|
export { default as AppBarNavList } from './components/AppBarNavList';
|
|
6
5
|
export { default as BodyLayout } from './components/BodyLayout';
|
|
@@ -28,7 +27,7 @@ export { default as Sidebar } from './components/Sidebar';
|
|
|
28
27
|
export { default as ServiceMessage } from './components/ServiceMessage';
|
|
29
28
|
export { default as SortableTable } from './components/SortableTable';
|
|
30
29
|
export { default as GrepEditor } from './components/GrepEditor';
|
|
31
|
-
export { default as
|
|
30
|
+
export { default as AppBar } from './components/AppBar/AppBar';
|
|
32
31
|
export { ParseableDate } from './utils/dateHelper';
|
|
33
32
|
export { Utils };
|
|
34
33
|
export * from './components';
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,10 @@ import isBetweenPlugin from 'dayjs/plugin/isBetween';
|
|
|
5
5
|
import { red, pink, purple, deepPurple, indigo, blue, lightBlue, cyan, teal, green, lightGreen, lime, yellow, amber, orange, deepOrange, brown, grey, blueGrey } from '@mui/material/colors';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default, { useContext, forwardRef, createElement, createContext, Fragment, useRef, useLayoutEffect, useState, useCallback as useCallback$1, useEffect, useMemo as useMemo$1 } from 'react';
|
|
8
|
-
import { Toolbar as Toolbar$1, useScrollTrigger, Slide, Button, Box, Typography, IconButton, Menu, MenuItem, Tabs, Tab, Collapse, MenuList, Tooltip, Container, List, ListItem, ListItemText, ListItemIcon, Divider, styled, TableCell, TableRow, TableSortLabel, TableHead, TablePagination, TableContainer, Table, TableBody, TableFooter, CircularProgress, Link, TextField, FormControl, InputLabel, Select, OutlinedInput, Input, Checkbox, FormHelperText, Grid, ToggleButtonGroup, AppBar as AppBar$3, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions } from '@mui/material';
|
|
9
|
-
import AppBar$2 from '@mui/material/AppBar';
|
|
10
|
-
import { useTheme as useTheme$1 } from '@mui/material/styles';
|
|
11
8
|
import AccountCircle from '@mui/icons-material/AccountCircle';
|
|
12
9
|
import ArrowDropdown from '@mui/icons-material/ArrowDropDown';
|
|
10
|
+
import { Button, Box, Typography, IconButton, Menu, MenuItem, Tabs, Tab, Collapse, MenuList, Tooltip, Container, List, ListItem, ListItemText, ListItemIcon, Divider, styled, TableCell, TableRow, TableSortLabel, TableHead, TablePagination, TableContainer, Table, TableBody, TableFooter, CircularProgress, Link, TextField, FormControl, InputLabel, Select, OutlinedInput, Input, Checkbox, FormHelperText, Grid, ToggleButtonGroup, AppBar as AppBar$1, Toolbar as Toolbar$1, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions } from '@mui/material';
|
|
11
|
+
import { useTheme as useTheme$1 } from '@mui/material/styles';
|
|
13
12
|
import { useHistory, NavLink, Prompt } from 'react-router-dom';
|
|
14
13
|
import MenuIcon from '@mui/icons-material/Menu';
|
|
15
14
|
import IconExpand from '@mui/icons-material/ExpandMore';
|
|
@@ -4062,31 +4061,6 @@ var makeStyles = (_a = tssReact.createMakeAndWithStyles({
|
|
|
4062
4061
|
//"useTheme": useTheme as (()=> MyTheme)
|
|
4063
4062
|
}), _a.makeStyles), withStyles = _a.withStyles;
|
|
4064
4063
|
|
|
4065
|
-
var StyledAppBar = withStyles(AppBar$2, {
|
|
4066
|
-
root: {
|
|
4067
|
-
backgroundColor: 'transparant',
|
|
4068
|
-
},
|
|
4069
|
-
positionFixed: {
|
|
4070
|
-
left: 'unset',
|
|
4071
|
-
right: 'unset',
|
|
4072
|
-
},
|
|
4073
|
-
});
|
|
4074
|
-
|
|
4075
|
-
var HideOnScroll = function (_a) {
|
|
4076
|
-
var children = _a.children;
|
|
4077
|
-
// Note that you normally won't need to set the window ref as useScrollTrigger
|
|
4078
|
-
// will default to window.
|
|
4079
|
-
// This is only being set here because the demo is in an iframe.
|
|
4080
|
-
// const trigger = useScrollTrigger({ target: window ? window() : undefined });
|
|
4081
|
-
var trigger = useScrollTrigger();
|
|
4082
|
-
return (React.createElement(Slide, { appear: false, direction: "down", in: !trigger }, children));
|
|
4083
|
-
};
|
|
4084
|
-
var AppBar$1 = function (props) { return (React.createElement(React.Fragment, null,
|
|
4085
|
-
React.createElement(HideOnScroll, __assign({}, props),
|
|
4086
|
-
React.createElement(StyledAppBar, { color: "inherit", elevation: 0 },
|
|
4087
|
-
React.createElement(Toolbar$1, null, props.children))),
|
|
4088
|
-
React.createElement(Toolbar$1, null))); };
|
|
4089
|
-
|
|
4090
4064
|
var useStyles$i = makeStyles()(function (_a) {
|
|
4091
4065
|
var palette = _a.palette;
|
|
4092
4066
|
return ({
|
|
@@ -21761,42 +21735,38 @@ var EnvironmentTitle = styled('div')(function () { return ({
|
|
|
21761
21735
|
color: 'rgba(0, 0, 0, 0.33)',
|
|
21762
21736
|
marginLeft: '17px',
|
|
21763
21737
|
}); });
|
|
21764
|
-
var Toolbar = styled('div')(function (
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21771
|
-
|
|
21772
|
-
|
|
21773
|
-
|
|
21774
|
-
|
|
21775
|
-
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
|
|
21779
|
-
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
|
|
21784
|
-
position: 'fixed',
|
|
21785
|
-
top: 0,
|
|
21786
|
-
left: 0,
|
|
21787
|
-
right: 0,
|
|
21788
|
-
zIndex: 101,
|
|
21789
|
-
});
|
|
21790
|
-
});
|
|
21738
|
+
var Toolbar = styled('div')(function () { return ({
|
|
21739
|
+
display: 'flex',
|
|
21740
|
+
flexDirection: 'column',
|
|
21741
|
+
height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
|
|
21742
|
+
minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
|
|
21743
|
+
maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
|
|
21744
|
+
}); });
|
|
21745
|
+
var ToolbarFixer = styled('div')(function () { return ({
|
|
21746
|
+
display: 'flex',
|
|
21747
|
+
flexDirection: 'column',
|
|
21748
|
+
height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
|
|
21749
|
+
minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
|
|
21750
|
+
maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
|
|
21751
|
+
position: 'fixed',
|
|
21752
|
+
top: 0,
|
|
21753
|
+
left: 0,
|
|
21754
|
+
right: 0,
|
|
21755
|
+
zIndex: 101,
|
|
21756
|
+
}); });
|
|
21791
21757
|
var ToolbarInner = styled('div')(function (_a) {
|
|
21792
21758
|
var _b;
|
|
21793
|
-
var theme = _a.theme;
|
|
21794
|
-
|
|
21759
|
+
var colors = _a.colors, theme = _a.theme;
|
|
21760
|
+
if (!theme) {
|
|
21761
|
+
return {};
|
|
21762
|
+
}
|
|
21763
|
+
return _b = {
|
|
21795
21764
|
alignItems: 'center',
|
|
21796
21765
|
display: 'flex',
|
|
21797
21766
|
margin: '0 auto',
|
|
21798
21767
|
width: '100%',
|
|
21799
|
-
padding: 0
|
|
21768
|
+
padding: 0,
|
|
21769
|
+
backgroundColor: colors.headerBackgroundColor
|
|
21800
21770
|
},
|
|
21801
21771
|
_b[theme.breakpoints.down('sm')] = {
|
|
21802
21772
|
height: "".concat(dimensions.toolbarHeightMobile, "px"),
|
|
@@ -21807,7 +21777,7 @@ var ToolbarInner = styled('div')(function (_a) {
|
|
|
21807
21777
|
height: "".concat(dimensions.toolbarHeight, "px"),
|
|
21808
21778
|
minHeight: "".concat(dimensions.toolbarHeight, "px"),
|
|
21809
21779
|
},
|
|
21810
|
-
_b
|
|
21780
|
+
_b;
|
|
21811
21781
|
});
|
|
21812
21782
|
var ToolbarLeft = styled('div')(function () { return ({
|
|
21813
21783
|
alignItems: 'center',
|
|
@@ -21898,10 +21868,10 @@ var ToolbarMenuInner = styled('div')(function (_a) {
|
|
|
21898
21868
|
margin: '0 auto',
|
|
21899
21869
|
width: '100%'
|
|
21900
21870
|
},
|
|
21901
|
-
_b[theme.breakpoints.down('
|
|
21871
|
+
_b[theme.breakpoints.down('lg')] = {
|
|
21902
21872
|
padding: '0 24px',
|
|
21903
21873
|
},
|
|
21904
|
-
_b[theme.breakpoints.up('
|
|
21874
|
+
_b[theme.breakpoints.up('lg')] = {
|
|
21905
21875
|
padding: 0,
|
|
21906
21876
|
},
|
|
21907
21877
|
_b);
|
|
@@ -21987,7 +21957,7 @@ var MobileAppBar = function (_a) {
|
|
|
21987
21957
|
setAnchorElMenu(null);
|
|
21988
21958
|
};
|
|
21989
21959
|
return (React.createElement(MobileToolbarMenu, { style: { flexGrow: 1 } },
|
|
21990
|
-
React.createElement(AppBar$
|
|
21960
|
+
React.createElement(AppBar$1, { position: "static" },
|
|
21991
21961
|
React.createElement(Toolbar$1, { style: { minHeight: '50px' } },
|
|
21992
21962
|
React.createElement(IconButton, { size: "medium", edge: "start", color: "inherit", "aria-label": "menu", style: { marginRight: 2 }, onClick: handleClickNav },
|
|
21993
21963
|
React.createElement(Menu$1, { sx: { color: 'white' } })),
|
|
@@ -22025,9 +21995,9 @@ var AppBar = function (_a) {
|
|
|
22025
21995
|
: currentPath.includes(page.redirectUrl || '');
|
|
22026
21996
|
return (React.createElement(ToolbarMenuItem, { className: isActive ? 'active' : '', to: page.redirectUrl || '', key: page.name, tabIndex: 0 }, page === null || page === void 0 ? void 0 : page.translatedTextRef));
|
|
22027
21997
|
};
|
|
22028
|
-
return (React.createElement(Toolbar,
|
|
22029
|
-
React.createElement(ToolbarFixer,
|
|
22030
|
-
React.createElement(ToolbarInner,
|
|
21998
|
+
return (React.createElement(Toolbar, null,
|
|
21999
|
+
React.createElement(ToolbarFixer, null,
|
|
22000
|
+
React.createElement(ToolbarInner, { colors: colors },
|
|
22031
22001
|
React.createElement(ToolbarLeft, null,
|
|
22032
22002
|
React.createElement(ToolbarTitle, { to: '/' },
|
|
22033
22003
|
appTitle,
|
|
@@ -22953,5 +22923,5 @@ var GrepTableOfContent = function (_a) {
|
|
|
22953
22923
|
};
|
|
22954
22924
|
GrepTableOfContent.displayName = 'Grep.ToC';
|
|
22955
22925
|
|
|
22956
|
-
export { AppBar
|
|
22926
|
+
export { AppBar, AppBarNavList, AppBarProfile, BodyLayout, CircularLoading, Colors, ConfirmationServiceProvider, ContainedLinkList, DatePicker, DropdownMenu, EditorContext, Footer, GDPR, GrepCrumbs, DatePicker as GrepDatePicker, GrepDateRange, GrepDialogServiceProvider, GrepEditor, GrepInput, GrepSelect, GrepTable, GrepTableCard, GrepTableOfContent, GrepTableRow, GreyCover, InfoContainer, LinkList, LoadingOverlay, MainLayout, NavGuard, OverflowTooltip, ProfileInfo, SearchBar, ServiceMessage, Sidebar, SortableTable, UpdateStyle, index as Utils, convert2html, convert2txt, convertToRgba, createState, filterElements as filterContentElements, hex2rgb, hex2rgba, makeStyles, parseContent, parseContentState, useConfirmation, useContentElements, useDate, useDebounce, useGrepDialog, useStyles$d as useStyles, withStyles };
|
|
22957
22927
|
//# sourceMappingURL=index.js.map
|