grep-components 1.15.0-grepf-1792.3 → 1.15.0-grepf-1792.5

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.
@@ -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
@@ -3,4 +3,6 @@ export declare const navbarPages: {
3
3
  label: string;
4
4
  onClick: (url: string) => void;
5
5
  toUrl: string;
6
+ name: string;
7
+ path: string;
6
8
  }[];
@@ -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 NewAppBar } from './components/AppBarNew/AppBar';
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 ({
@@ -21762,41 +21736,61 @@ var EnvironmentTitle = styled('div')(function () { return ({
21762
21736
  marginLeft: '17px',
21763
21737
  }); });
21764
21738
  var Toolbar = styled('div')(function (_a) {
21765
- var colors = _a.colors;
21766
- return ({
21767
- display: 'flex',
21768
- flexDirection: 'column',
21769
- backgroundColor: colors.headerBackgroundColor,
21770
- height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21771
- minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21772
- maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21773
- });
21739
+ var _b;
21740
+ var theme = _a.theme;
21741
+ return (_b = {
21742
+ display: 'flex',
21743
+ flexDirection: 'column'
21744
+ },
21745
+ _b[theme.breakpoints.down('sm')] = {
21746
+ height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeightMobile, "px"),
21747
+ minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeightMobile, "px"),
21748
+ maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeightMobile, "px"),
21749
+ },
21750
+ _b[theme.breakpoints.up('sm')] = {
21751
+ height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21752
+ minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21753
+ maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21754
+ },
21755
+ _b);
21774
21756
  });
21775
21757
  var ToolbarFixer = styled('div')(function (_a) {
21776
- var colors = _a.colors;
21777
- return ({
21778
- display: 'flex',
21779
- flexDirection: 'column',
21780
- backgroundColor: colors.headerBackgroundColor,
21781
- height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21782
- minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
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
- });
21791
- var ToolbarInner = styled('div')(function (_a) {
21792
21758
  var _b;
21793
21759
  var theme = _a.theme;
21794
21760
  return (_b = {
21761
+ display: 'flex',
21762
+ flexDirection: 'column',
21763
+ position: 'fixed',
21764
+ top: 0,
21765
+ left: 0,
21766
+ right: 0,
21767
+ zIndex: 101
21768
+ },
21769
+ _b[theme.breakpoints.down('sm')] = {
21770
+ height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeightMobile, "px"),
21771
+ minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeightMobile, "px"),
21772
+ maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeightMobile, "px"),
21773
+ },
21774
+ _b[theme.breakpoints.up('sm')] = {
21775
+ height: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21776
+ minHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21777
+ maxHeight: "".concat(dimensions.toolbarMenuHeight + dimensions.toolbarHeight, "px"),
21778
+ },
21779
+ _b);
21780
+ });
21781
+ var ToolbarInner = styled('div')(function (_a) {
21782
+ var _b;
21783
+ var colors = _a.colors, theme = _a.theme;
21784
+ if (!theme) {
21785
+ return {};
21786
+ }
21787
+ return _b = {
21795
21788
  alignItems: 'center',
21796
21789
  display: 'flex',
21797
21790
  margin: '0 auto',
21798
21791
  width: '100%',
21799
- padding: 0
21792
+ padding: 0,
21793
+ backgroundColor: colors.headerBackgroundColor
21800
21794
  },
21801
21795
  _b[theme.breakpoints.down('sm')] = {
21802
21796
  height: "".concat(dimensions.toolbarHeightMobile, "px"),
@@ -21807,7 +21801,7 @@ var ToolbarInner = styled('div')(function (_a) {
21807
21801
  height: "".concat(dimensions.toolbarHeight, "px"),
21808
21802
  minHeight: "".concat(dimensions.toolbarHeight, "px"),
21809
21803
  },
21810
- _b);
21804
+ _b;
21811
21805
  });
21812
21806
  var ToolbarLeft = styled('div')(function () { return ({
21813
21807
  alignItems: 'center',
@@ -21898,10 +21892,10 @@ var ToolbarMenuInner = styled('div')(function (_a) {
21898
21892
  margin: '0 auto',
21899
21893
  width: '100%'
21900
21894
  },
21901
- _b[theme.breakpoints.down('md')] = {
21895
+ _b[theme.breakpoints.down('lg')] = {
21902
21896
  padding: '0 24px',
21903
21897
  },
21904
- _b[theme.breakpoints.up('md')] = {
21898
+ _b[theme.breakpoints.up('lg')] = {
21905
21899
  padding: 0,
21906
21900
  },
21907
21901
  _b);
@@ -21987,7 +21981,7 @@ var MobileAppBar = function (_a) {
21987
21981
  setAnchorElMenu(null);
21988
21982
  };
21989
21983
  return (React.createElement(MobileToolbarMenu, { style: { flexGrow: 1 } },
21990
- React.createElement(AppBar$3, { position: "static" },
21984
+ React.createElement(AppBar$1, { position: "static" },
21991
21985
  React.createElement(Toolbar$1, { style: { minHeight: '50px' } },
21992
21986
  React.createElement(IconButton, { size: "medium", edge: "start", color: "inherit", "aria-label": "menu", style: { marginRight: 2 }, onClick: handleClickNav },
21993
21987
  React.createElement(Menu$1, { sx: { color: 'white' } })),
@@ -22025,9 +22019,9 @@ var AppBar = function (_a) {
22025
22019
  : currentPath.includes(page.redirectUrl || '');
22026
22020
  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
22021
  };
22028
- return (React.createElement(Toolbar, { colors: colors },
22029
- React.createElement(ToolbarFixer, { colors: colors },
22030
- React.createElement(ToolbarInner, null,
22022
+ return (React.createElement(Toolbar, null,
22023
+ React.createElement(ToolbarFixer, null,
22024
+ React.createElement(ToolbarInner, { colors: colors },
22031
22025
  React.createElement(ToolbarLeft, null,
22032
22026
  React.createElement(ToolbarTitle, { to: '/' },
22033
22027
  appTitle,
@@ -22953,5 +22947,5 @@ var GrepTableOfContent = function (_a) {
22953
22947
  };
22954
22948
  GrepTableOfContent.displayName = 'Grep.ToC';
22955
22949
 
22956
- export { AppBar$1 as 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, AppBar as NewAppBar, 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 };
22950
+ 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
22951
  //# sourceMappingURL=index.js.map