grep-components 1.16.0-grepf-1693.2 → 1.16.0
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/41017f048e09b7d9.png +0 -0
- package/dist/assets/index.d.ts +2 -0
- package/dist/components/AppBar/AppBar.d.ts +14 -0
- package/dist/components/AppBar/MainAppStyles.d.ts +30 -0
- package/dist/components/AppBar/MobileAppBar.d.ts +9 -0
- package/dist/components/AppBar/stories/AppBarStory.stories.d.ts +15 -0
- package/dist/components/AppBar/types.d.ts +32 -0
- package/dist/components/AppBarNavList/stories/AppBarNavList.stories.d.ts +2 -0
- package/dist/components/Footer/index.d.ts +3 -0
- package/dist/components/Footer/styles/index.d.ts +1 -1
- package/dist/components/GrepDatePicker/index.d.ts +1 -1
- package/dist/components/GrepDateRange/index.d.ts +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +434 -62
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- 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
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IAuthorizedPage, UserMenuItem, v0colors } from './types';
|
|
3
|
+
declare type AppBarProps = {
|
|
4
|
+
isProd: boolean;
|
|
5
|
+
username: string;
|
|
6
|
+
currentPath: string;
|
|
7
|
+
appTitle: string;
|
|
8
|
+
userMenuItems: UserMenuItem[];
|
|
9
|
+
menuItems: IAuthorizedPage[];
|
|
10
|
+
userRole?: string;
|
|
11
|
+
colors: v0colors;
|
|
12
|
+
};
|
|
13
|
+
declare const AppBar: React.FunctionComponent<AppBarProps>;
|
|
14
|
+
export default AppBar;
|
|
@@ -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>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IAuthorizedPage, UserMenuItem, v0colors } from './types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
userMenuItems: UserMenuItem[];
|
|
5
|
+
menuItems: IAuthorizedPage[];
|
|
6
|
+
colors: v0colors;
|
|
7
|
+
};
|
|
8
|
+
declare const MobileAppBar: React.FunctionComponent<Props>;
|
|
9
|
+
export default MobileAppBar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const v0colors: {
|
|
2
|
+
primary: string;
|
|
3
|
+
secondary: string;
|
|
4
|
+
body: string;
|
|
5
|
+
headerBackgroundColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
primaryFade: string;
|
|
8
|
+
greyText: string;
|
|
9
|
+
placeholderText: string;
|
|
10
|
+
textColor: string;
|
|
11
|
+
textColorFade: string;
|
|
12
|
+
textColorMoreFade: string;
|
|
13
|
+
white: string;
|
|
14
|
+
lightGrey: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare type UserMenuItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
action?: () => void;
|
|
5
|
+
isAnchor?: boolean;
|
|
6
|
+
href?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface IAuthorizedPage {
|
|
9
|
+
name: string;
|
|
10
|
+
translatedTextRef?: string;
|
|
11
|
+
accessTextRef?: string;
|
|
12
|
+
redirectUrl?: string;
|
|
13
|
+
path: string;
|
|
14
|
+
exact?: boolean;
|
|
15
|
+
link?: boolean;
|
|
16
|
+
accessLink?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare type v0colors = {
|
|
19
|
+
body: string;
|
|
20
|
+
headerBackgroundColor: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
primaryFade: string;
|
|
23
|
+
greyText: string;
|
|
24
|
+
placeholderText: string;
|
|
25
|
+
textColor: string;
|
|
26
|
+
textColorFade: string;
|
|
27
|
+
textColorMoreFade: string;
|
|
28
|
+
white: string;
|
|
29
|
+
lightGrey: string;
|
|
30
|
+
primary: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
};
|
|
@@ -4,7 +4,7 @@ export declare const useFooterStyles: (params: void, styleOverrides?: {
|
|
|
4
4
|
} & Record<string, unknown>;
|
|
5
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
6
|
} | undefined) => {
|
|
7
|
-
classes: Record<"footer" | "list" | "item" | "itemText" | "itemBtn", string>;
|
|
7
|
+
classes: Record<"footer" | "content" | "serviceNameText" | "list" | "item" | "itemText" | "itemBtn", string>;
|
|
8
8
|
theme: import("@mui/material").Theme;
|
|
9
9
|
css: import("tss-react").Css;
|
|
10
10
|
cx: import("tss-react").Cx;
|
|
@@ -4,7 +4,7 @@ import { DatePickerProps } from '@mui/x-date-pickers';
|
|
|
4
4
|
import { TextFieldProps } from '@mui/material';
|
|
5
5
|
import '../../utils/dateHelper';
|
|
6
6
|
import { ParseableDate } from '../../utils/dateHelper';
|
|
7
|
-
declare type InputProps = Pick<TextFieldProps, 'id' | 'variant' | 'label' | 'fullWidth' | 'placeholder' | 'helperText' | 'required' | 'onFocus'
|
|
7
|
+
declare type InputProps = Pick<TextFieldProps, 'id' | 'variant' | 'label' | 'fullWidth' | 'placeholder' | 'helperText' | 'required' | 'onFocus'>;
|
|
8
8
|
export interface GrepDatePickerProps extends Omit<DatePickerProps<Dayjs, Dayjs>, 'value' | 'renderInput'>, InputProps {
|
|
9
9
|
value?: ParseableDate | null;
|
|
10
10
|
errorMessage?: string;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { GridSpacing } from '@mui/material';
|
|
3
3
|
import { DateRangeValue } from '../../utils/dateHelper';
|
|
4
4
|
import { GrepDatePickerProps } from '../GrepDatePicker';
|
|
5
|
-
declare type CommonProperties = Pick<GrepDatePickerProps, 'variant'
|
|
5
|
+
declare type CommonProperties = Pick<GrepDatePickerProps, 'variant'>;
|
|
6
6
|
interface Props extends CommonProperties {
|
|
7
7
|
from: Omit<GrepDatePickerProps, 'onChange'>;
|
|
8
8
|
to: Omit<GrepDatePickerProps, 'onChange'>;
|
|
@@ -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,8 +27,10 @@ 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';
|
|
30
|
+
export { default as AppBar } from './components/AppBar/AppBar';
|
|
31
31
|
export { ParseableDate } from './utils/dateHelper';
|
|
32
32
|
export { Utils };
|
|
33
33
|
export * from './components';
|
|
34
34
|
export * from './hooks';
|
|
35
35
|
export * from './styling';
|
|
36
|
+
export * from './assets';
|