@elliemae/ds-global-header 2.3.0-alpha.8 → 2.3.0-alpha.9
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/types/GlobalHeader.d.ts +39 -0
- package/dist/types/GlobalHeaderContainer.d.ts +3 -0
- package/dist/types/GlobalHeaderContext.d.ts +3 -0
- package/dist/types/GlobalHeaderTypes.d.ts +85 -0
- package/dist/types/components/Breadcrumb/GlobalHeaderBreadcrumb.d.ts +2 -0
- package/dist/types/components/Breadcrumb/PureBreadcrumb.d.ts +3 -0
- package/dist/types/components/Breadcrumb/styles.d.ts +5 -0
- package/dist/types/components/Title/GlobalHeaderTitle.d.ts +2 -0
- package/dist/types/components/Toolbar/GlobalHeaderToolbar.d.ts +2 -0
- package/dist/types/components/Toolbar/ToolbarItems.d.ts +2 -0
- package/dist/types/components/Toolbar/styles.d.ts +1 -0
- package/dist/types/config/useGetPropsWithDefaults.d.ts +2 -0
- package/dist/types/config/useGlobalHeader.d.ts +2 -0
- package/dist/types/config/useValidateProps.d.ts +2 -0
- package/dist/types/config/validateHelpers.d.ts +27 -0
- package/dist/types/defaultProps.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/outOfTheBox/AppPicker/AppPicker.d.ts +8 -0
- package/dist/types/outOfTheBox/PopupMenu/PopupMenu.d.ts +3 -0
- package/dist/types/outOfTheBox/PopupMenu/PopupMenuContent.d.ts +3 -0
- package/dist/types/outOfTheBox/PopupMenu/styles.d.ts +4 -0
- package/dist/types/outOfTheBox/SearchToggle/SearchToggle.d.ts +2 -0
- package/dist/types/outOfTheBox/SearchToggle/styles.d.ts +1 -0
- package/dist/types/outOfTheBox/index.d.ts +3 -0
- package/dist/types/propTypes.d.ts +29 -0
- package/dist/types/styles.d.ts +2 -0
- package/package.json +9 -9
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { GlobalHeaderPropsT as Props } from './GlobalHeaderTypes';
|
|
4
|
+
declare const GlobalHeader: {
|
|
5
|
+
(props: Props): JSX.Element;
|
|
6
|
+
defaultProps: Props;
|
|
7
|
+
propTypes: {
|
|
8
|
+
Logo: {
|
|
9
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
10
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
13
|
+
};
|
|
14
|
+
LogoWithBrand: {
|
|
15
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
19
|
+
};
|
|
20
|
+
breadcrumb: {
|
|
21
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
25
|
+
};
|
|
26
|
+
toolbar: {
|
|
27
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
declare const GlobalHeaderWithSchema: {
|
|
35
|
+
(props?: unknown): JSX.Element;
|
|
36
|
+
propTypes: unknown;
|
|
37
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
38
|
+
};
|
|
39
|
+
export { GlobalHeader, GlobalHeaderWithSchema };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DSAppPicker } from '@elliemae/ds-app-picker';
|
|
3
|
+
export declare type AppPickerProps = React.ComponentProps<typeof DSAppPicker>;
|
|
4
|
+
export interface ContextT {
|
|
5
|
+
showIconOnly: boolean;
|
|
6
|
+
setShowIconOnly: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
instanceUID: string;
|
|
8
|
+
globalHeaderToolbarGrid: string[];
|
|
9
|
+
globalHeaderBreadcrumbGrid: string[];
|
|
10
|
+
props: GlobalHeaderPropsT;
|
|
11
|
+
}
|
|
12
|
+
export interface GlobalHeaderContainerT {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface GlobalHeaderPropsT {
|
|
16
|
+
Logo?: React.ComponentType;
|
|
17
|
+
LogoWithBrand?: React.ComponentType;
|
|
18
|
+
breadcrumb?: BreadcrumbItemT[];
|
|
19
|
+
toolbar?: ToolbarItemT[];
|
|
20
|
+
appPickerProps?: AppPickerProps;
|
|
21
|
+
}
|
|
22
|
+
export interface BreadcrumbItemT {
|
|
23
|
+
label: string;
|
|
24
|
+
hasNext?: boolean;
|
|
25
|
+
isSelected?: boolean;
|
|
26
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
27
|
+
length: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ToolbarItemT {
|
|
30
|
+
type?: 'ds-app-picker' | 'ds-popup-menu' | 'ds-search-toggle' | 'custom';
|
|
31
|
+
label: string;
|
|
32
|
+
Icon: React.ComponentType<Record<string, unknown>>;
|
|
33
|
+
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
34
|
+
componentProps?: PopupPropsT | AppPickerProps | SearchTogglePropsT;
|
|
35
|
+
CustomComponent?: React.ComponentType<{
|
|
36
|
+
item: ToolbarItemT;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
39
|
+
export interface PopupPropsT {
|
|
40
|
+
Icon?: React.ComponentType<Record<string, unknown>>;
|
|
41
|
+
options: PopupMenuItemT[];
|
|
42
|
+
closeOnClick?: boolean;
|
|
43
|
+
title?: string;
|
|
44
|
+
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
45
|
+
}
|
|
46
|
+
export interface AppPickerMenuItemT {
|
|
47
|
+
label: string;
|
|
48
|
+
icon: React.ComponentType;
|
|
49
|
+
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface PopupMenuItemT extends Record<string, unknown> {
|
|
53
|
+
type?: string;
|
|
54
|
+
Icon?: React.ComponentType;
|
|
55
|
+
label?: string;
|
|
56
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
57
|
+
closeOnClick?: boolean;
|
|
58
|
+
Content?: React.ComponentType;
|
|
59
|
+
}
|
|
60
|
+
export interface PopupMenuContentPropsT {
|
|
61
|
+
options: PopupMenuItemT[];
|
|
62
|
+
onItemClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
63
|
+
onClose: () => void;
|
|
64
|
+
}
|
|
65
|
+
export interface PipeT {
|
|
66
|
+
showIconOnly: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface LabelT {
|
|
69
|
+
isSelected: boolean;
|
|
70
|
+
isOnlyItem: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface SearchTogglePropsT {
|
|
73
|
+
onNext: () => void;
|
|
74
|
+
onPrevious: () => void;
|
|
75
|
+
currentResultIndex: number;
|
|
76
|
+
totalResults: number;
|
|
77
|
+
placeholder: string;
|
|
78
|
+
value: string;
|
|
79
|
+
onChange: () => void;
|
|
80
|
+
onBlur: () => void;
|
|
81
|
+
onClear: () => void;
|
|
82
|
+
isOpen: boolean;
|
|
83
|
+
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
84
|
+
onClick: (e: React.MouseEvent) => void;
|
|
85
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LabelT, PipeT } from '../../GlobalHeaderTypes';
|
|
2
|
+
export declare const Pipe: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, PipeT, never>;
|
|
3
|
+
export declare const BreadcrumbItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const LabelButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const Label: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, LabelT, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const breadcrumbProps: {
|
|
2
|
+
label: string;
|
|
3
|
+
onClick: string;
|
|
4
|
+
hasNext: string;
|
|
5
|
+
isSelected: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const toolbarProps: {
|
|
8
|
+
label: string;
|
|
9
|
+
type: string;
|
|
10
|
+
componentProps: string;
|
|
11
|
+
Icon: string;
|
|
12
|
+
onClick: string;
|
|
13
|
+
options: string;
|
|
14
|
+
closeOnClick: string;
|
|
15
|
+
apps: string;
|
|
16
|
+
customApps: string;
|
|
17
|
+
sectionTitle: string;
|
|
18
|
+
customSectionTitle: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const isObject: (obj: unknown) => boolean;
|
|
21
|
+
export declare const getVariableType: (arg: unknown) => string;
|
|
22
|
+
export declare const isValidToolbarType: (string: unknown) => boolean;
|
|
23
|
+
export declare const throwBreadcrumbItemError: (validPropKey: keyof typeof breadcrumbProps, invalidProp: unknown) => void;
|
|
24
|
+
export declare const throwToolbarPopupItemError: (validPropKey: keyof typeof toolbarProps, invalidProp: unknown) => void;
|
|
25
|
+
export declare const throwToolbarAppPickerItemError: (validPropKey: keyof typeof toolbarProps, invalidProp: unknown) => void;
|
|
26
|
+
export declare const throwToolbarItemGenericError: (validPropKey: keyof typeof toolbarProps, invalidProp: unknown) => void;
|
|
27
|
+
export declare const throwLogoError: (validPropKey: string, invalidProp: unknown) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DSAppPicker } from '@elliemae/ds-app-picker';
|
|
3
|
+
declare type AppPickerProps = React.ComponentProps<typeof DSAppPicker>;
|
|
4
|
+
export declare const AppPicker: ({ label, id, componentProps, ...otherProps }: AppPickerProps & {
|
|
5
|
+
label: string;
|
|
6
|
+
triggerOnClick?: React.MouseEventHandler<Element> | undefined;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const List: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const ItemWrapper: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const Label: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledNavSearchBoxContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const breadcrumbItem: import("react-desc").PropTypesDescValue;
|
|
3
|
+
export declare const toolbarItem: import("react-desc").PropTypesDescValue;
|
|
4
|
+
export declare const globalHeaderProps: {
|
|
5
|
+
Logo: {
|
|
6
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
7
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
};
|
|
9
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
10
|
+
};
|
|
11
|
+
LogoWithBrand: {
|
|
12
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
16
|
+
};
|
|
17
|
+
breadcrumb: {
|
|
18
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
19
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
+
};
|
|
21
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
22
|
+
};
|
|
23
|
+
toolbar: {
|
|
24
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-global-header",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Global Header",
|
|
6
6
|
"files": [
|
|
@@ -129,14 +129,14 @@
|
|
|
129
129
|
},
|
|
130
130
|
"author": "ICE MT",
|
|
131
131
|
"dependencies": {
|
|
132
|
-
"@elliemae/ds-app-picker": "2.3.0-alpha.
|
|
133
|
-
"@elliemae/ds-form": "2.3.0-alpha.
|
|
134
|
-
"@elliemae/ds-grid": "2.3.0-alpha.
|
|
135
|
-
"@elliemae/ds-icon": "2.3.0-alpha.
|
|
136
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
137
|
-
"@elliemae/ds-popperjs": "2.3.0-alpha.
|
|
138
|
-
"@elliemae/ds-props-helpers": "2.3.0-alpha.
|
|
139
|
-
"@elliemae/ds-utilities": "2.3.0-alpha.
|
|
132
|
+
"@elliemae/ds-app-picker": "2.3.0-alpha.9",
|
|
133
|
+
"@elliemae/ds-form": "2.3.0-alpha.9",
|
|
134
|
+
"@elliemae/ds-grid": "2.3.0-alpha.9",
|
|
135
|
+
"@elliemae/ds-icon": "2.3.0-alpha.9",
|
|
136
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
137
|
+
"@elliemae/ds-popperjs": "2.3.0-alpha.9",
|
|
138
|
+
"@elliemae/ds-props-helpers": "2.3.0-alpha.9",
|
|
139
|
+
"@elliemae/ds-utilities": "2.3.0-alpha.9",
|
|
140
140
|
"react-desc": "~4.1.3",
|
|
141
141
|
"uid": "~2.0.0"
|
|
142
142
|
},
|