grep-components 1.23.0 → 1.23.1-GREPF-2112.1
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/AppBar/AppBar.d.ts +1 -1
- package/dist/components/AppBar/MobileAppBar.d.ts +1 -1
- package/dist/components/AppBar/types.d.ts +2 -2
- package/dist/components/AppBarNavList/styles/index.d.ts +2 -6
- package/dist/components/AppBarProfile/styles/index.d.ts +1 -3
- package/dist/components/ConfirmationDialog/styles/index.d.ts +1 -3
- package/dist/components/ContainedLinkList/styles/index.d.ts +1 -3
- package/dist/components/DropdownMenu/components/collapsable-menu-item.d.ts +1 -1
- package/dist/components/DropdownMenu/components/tooltip-menu-item.d.ts +1 -1
- package/dist/components/DropdownMenu/index.d.ts +4 -4
- package/dist/components/DropdownMenu/styles/collapsable-menu-item.style.d.ts +1 -3
- package/dist/components/DropdownMenu/styles/dropdown-menu.style.d.ts +1 -3
- package/dist/components/Footer/styles/index.d.ts +1 -3
- package/dist/components/GDPR/stories/GDPR.stories.d.ts +2 -2
- package/dist/components/GDPR/styles/index.d.ts +1 -3
- package/dist/components/GrepCrumbs/styles/styles.d.ts +1 -3
- package/dist/components/GrepDatePicker/index.d.ts +1 -1
- package/dist/components/GrepDateRange/index.d.ts +1 -1
- package/dist/components/GrepEditor/components/buttons/InlineButton.d.ts +1 -1
- package/dist/components/GrepEditor/components/buttons/button.d.ts +2 -2
- package/dist/components/GrepEditor/components/editor.d.ts +2 -2
- package/dist/components/GrepEditor/components/toolbars/floating-toolbar.d.ts +1 -1
- package/dist/components/GrepEditor/index.d.ts +1 -1
- package/dist/components/GrepEditor/misc/handlers/key.d.ts +1 -1
- package/dist/components/GrepEditor/misc/utils.d.ts +1 -1
- package/dist/components/GrepEditor/styles/buttonStyles.d.ts +1 -3
- package/dist/components/GrepEditor/styles/editorStyles.d.ts +1 -3
- package/dist/components/GrepEditor/styles/toolbarStyles.d.ts +1 -3
- package/dist/components/GrepInput/index.d.ts +1 -1
- package/dist/components/GrepTable/components/GrepPaginationActions.d.ts +1 -1
- package/dist/components/GrepTable/components/grep-table-cell.d.ts +2 -2
- package/dist/components/GrepTable/components/grep-table-header-cell.d.ts +1 -1
- package/dist/components/GrepTable/components/grep-table-header.d.ts +1 -1
- package/dist/components/GrepTable/components/grep-table-placeholder.d.ts +1 -1
- package/dist/components/GrepTable/components/grep-table-row.d.ts +1 -1
- package/dist/components/GrepTable/index.d.ts +2 -4
- package/dist/components/GrepTable/styles/index.d.ts +3 -9
- package/dist/components/GrepTableCard/index.d.ts +2 -2
- package/dist/components/GrepTableCard/styles/index.d.ts +1 -3
- package/dist/components/GreyCover/styles/index.d.ts +1 -3
- package/dist/components/NavGuard/index.d.ts +2 -2
- package/dist/components/NavGuard/stories/_scaffold.d.ts +1 -1
- package/dist/components/NavGuard/stories/standard.d.ts +2 -2
- package/dist/components/ProfileInfo/styles/index.d.ts +1 -3
- package/dist/components/SearchBar/styles/index.d.ts +1 -3
- package/dist/components/ServiceMessage/index.d.ts +3 -3
- package/dist/components/ServiceMessage/styles/index.d.ts +1 -3
- package/dist/components/Sidebar/index.d.ts +2 -2
- package/dist/components/Sidebar/styles/index.d.ts +1 -3
- package/dist/components/SortableTable/styles/row.style.d.ts +1 -3
- package/dist/components/ToC/context/provider.d.ts +1 -1
- package/dist/components/ToC/stories/_scaffold.d.ts +1 -1
- package/dist/components/ToC/stories/_text.d.ts +2 -2
- package/dist/components/ToC/stories/standard.d.ts +2 -2
- package/dist/components/ToC/styles/nav-tree-node.style.d.ts +1 -3
- package/dist/components/ToC/styles/nav-tree.style.d.ts +1 -3
- package/dist/components/ToC/styles/nav.style.d.ts +1 -3
- package/dist/components/ToC/utils/tree-builder.d.ts +1 -1
- package/dist/hooks/use-date.d.ts +2 -2
- package/dist/hooks/use-debounce.d.ts +1 -1
- package/dist/index.js +98 -59
- package/dist/index.js.map +1 -1
- package/dist/styling/makeStyles.d.ts +23 -17
- package/dist/utils/dateHelper.d.ts +2 -2
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type UserMenuItem = {
|
|
2
2
|
id: string;
|
|
3
3
|
label: string;
|
|
4
4
|
action?: () => void;
|
|
@@ -16,7 +16,7 @@ export interface IAuthorizedPage {
|
|
|
16
16
|
link?: boolean;
|
|
17
17
|
accessLink?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type v0colors = {
|
|
20
20
|
body: string;
|
|
21
21
|
headerBackgroundColor: string;
|
|
22
22
|
borderColor: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
2
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
3
|
-
props:
|
|
4
|
-
classes?: Record<string, string> | undefined;
|
|
5
|
-
} & Record<string, unknown>;
|
|
3
|
+
props: any;
|
|
6
4
|
ownerState?: Record<string, unknown> | undefined;
|
|
7
5
|
} | undefined) => {
|
|
8
6
|
classes: Record<"tabs" | "tab" | "indicator", string>;
|
|
@@ -11,9 +9,7 @@ export declare const useStyles: (params: void, styleOverrides?: {
|
|
|
11
9
|
cx: import("tss-react").Cx;
|
|
12
10
|
};
|
|
13
11
|
export declare const useMobileStyles: (params: void, styleOverrides?: {
|
|
14
|
-
props:
|
|
15
|
-
classes?: Record<string, string> | undefined;
|
|
16
|
-
} & Record<string, unknown>;
|
|
12
|
+
props: any;
|
|
17
13
|
ownerState?: Record<string, unknown> | undefined;
|
|
18
14
|
} | undefined) => {
|
|
19
15
|
classes: Record<"mobileNavList", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"user", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"discard", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"container" | "title", string>;
|
|
@@ -14,7 +14,7 @@ declare class CollapsableMenuStatusEvent {
|
|
|
14
14
|
constructor(type: ToggleState, currentTarget: React.Ref<any>);
|
|
15
15
|
preventDefault(): void;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type ToggleState = 'collapse' | 'expand';
|
|
18
18
|
export interface Properties extends Omit<MenuItemProps, 'button'> {
|
|
19
19
|
items?: React.ReactNode;
|
|
20
20
|
tooltipText?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { MenuItemProps, MenuProps } from '@mui/material';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type BooleanFunction<T> = (context?: T) => boolean;
|
|
4
|
+
export type DropdownMenuItem<T> = Omit<MenuItemProps, 'disabled'> & {
|
|
5
5
|
label: string;
|
|
6
6
|
tooltipText?: string;
|
|
7
7
|
disabled?: BooleanFunction<T> | boolean;
|
|
@@ -12,5 +12,5 @@ export interface DropdownMenuProps<T> extends MenuProps {
|
|
|
12
12
|
context?: T;
|
|
13
13
|
menuItems: Array<DropdownMenuItem<T>>;
|
|
14
14
|
}
|
|
15
|
-
declare const DropdownMenu: <T>({ context, menuItems, ...menuProps }: DropdownMenuProps<T>) => JSX.Element;
|
|
15
|
+
declare const DropdownMenu: <T>({ context, menuItems, ...menuProps }: DropdownMenuProps<T>) => React.JSX.Element;
|
|
16
16
|
export default DropdownMenu;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: (params: {
|
|
2
2
|
open: boolean;
|
|
3
3
|
}, styleOverrides?: {
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
4
|
+
props: any;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"root" | "subMenu" | "expander", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"selected", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useFooterStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"footer" | "content" | "serviceNameText" | "list" | "item" | "itemText" | "itemBtn", string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const renderGDPRText: () => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const renderGDPRText: () => React.JSX.Element;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"container" | "content" | "title" | "body" | "icon", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"container" | "current" | "link", string>;
|
|
@@ -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
|
-
|
|
7
|
+
type InputProps = Pick<TextFieldProps, 'id' | 'variant' | 'label' | 'fullWidth' | 'placeholder' | 'helperText' | 'required' | 'onFocus' | 'margin' | 'sx'>;
|
|
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
|
-
|
|
5
|
+
type CommonProperties = Pick<GrepDatePickerProps, 'variant' | 'margin' | 'sx'>;
|
|
6
6
|
interface Props extends CommonProperties {
|
|
7
7
|
from: Omit<GrepDatePickerProps, 'onChange'>;
|
|
8
8
|
to: Omit<GrepDatePickerProps, 'onChange'>;
|
|
@@ -6,6 +6,6 @@ interface Properties extends Omit<ToggleButtonProps, 'value' | 'type'> {
|
|
|
6
6
|
editor: React.MutableRefObject<Editor>;
|
|
7
7
|
type: InlineStyle;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type Component = React.FunctionComponent<React.PropsWithChildren<Properties>>;
|
|
10
10
|
declare const InlineButton: Component;
|
|
11
11
|
export default InlineButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type InlineStyle = 'BOLD' | 'ITALIC' | 'STRIKETHROUGH' | string;
|
|
3
3
|
export interface Button {
|
|
4
4
|
type: string;
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -8,5 +8,5 @@ export declare enum ButtonType {
|
|
|
8
8
|
bold = "BOLD",
|
|
9
9
|
italic = "ITALIC"
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type Style = keyof typeof ButtonType;
|
|
12
12
|
export declare const createButton: (style: Style) => Button;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Editor, ContentState, DraftBlockRenderMap } from 'draft-js';
|
|
3
3
|
import { ToolbarPropperties } from './toolbars';
|
|
4
4
|
import { Button, Style } from './buttons';
|
|
5
|
-
export
|
|
5
|
+
export type ContentChanged = (content: ContentState) => void;
|
|
6
6
|
export interface GrepEditor extends Editor {
|
|
7
7
|
editor: HTMLElement;
|
|
8
8
|
editorContainer: HTMLElement;
|
|
@@ -33,6 +33,6 @@ export interface Properties {
|
|
|
33
33
|
*/
|
|
34
34
|
canInlineStyle?: boolean;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
type Component = React.FunctionComponent<Properties>;
|
|
37
37
|
export declare const EditorComponent: Component;
|
|
38
38
|
export default EditorComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToolbarPropperties } from '.';
|
|
3
|
-
|
|
3
|
+
type Component = React.FunctionComponent<ToolbarPropperties>;
|
|
4
4
|
export declare const FloatingToolbar: Component;
|
|
5
5
|
export default FloatingToolbar;
|
|
@@ -7,6 +7,6 @@ interface Properties extends GrepEditorProps {
|
|
|
7
7
|
}
|
|
8
8
|
export * from './misc/utils';
|
|
9
9
|
export { ContentState };
|
|
10
|
-
|
|
10
|
+
type Component = React.FunctionComponent<Properties>;
|
|
11
11
|
declare const GrepEditor: Component;
|
|
12
12
|
export default GrepEditor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditorState, DraftEditorCommand, DraftHandleValue } from 'draft-js';
|
|
2
2
|
import { Style } from '../../components/buttons';
|
|
3
|
-
export
|
|
3
|
+
export type CustomDraftCommand = DraftEditorCommand | 'shift-split-block';
|
|
4
4
|
export declare const customKeyHandler: (setEditorState: (state: EditorState) => void) => (command: CustomDraftCommand, editorState: EditorState) => DraftHandleValue;
|
|
5
5
|
export declare const keyHandler: (setEditorState: (state: EditorState) => void, allowedStyles?: Array<Style>) => (command: CustomDraftCommand, editorState: EditorState) => DraftHandleValue;
|
|
6
6
|
export default keyHandler;
|
|
@@ -2,7 +2,7 @@ import { DraftDecorator, ContentState, EditorState } from 'draft-js';
|
|
|
2
2
|
import { Options as Convert2htmlOptions } from 'draft-js-export-html';
|
|
3
3
|
import { InlineStyle } from '../components/buttons';
|
|
4
4
|
export declare const createState: (content?: string, decorators?: DraftDecorator[]) => EditorState;
|
|
5
|
-
export
|
|
5
|
+
export type ParsedContent = {
|
|
6
6
|
txt: string;
|
|
7
7
|
html: string;
|
|
8
8
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useButtonStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"btn" | "btnSelected", string>;
|
|
@@ -4,9 +4,7 @@ interface Properties {
|
|
|
4
4
|
readOnly?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const useEditorStyles: (params: Properties, styleOverrides?: {
|
|
7
|
-
props:
|
|
8
|
-
classes?: Record<string, string> | undefined;
|
|
9
|
-
} & Record<string, unknown>;
|
|
7
|
+
props: any;
|
|
10
8
|
ownerState?: Record<string, unknown> | undefined;
|
|
11
9
|
} | undefined) => {
|
|
12
10
|
classes: Record<"root" | "legend" | "editor" | "label" | "helpertext" | "charcount", string>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare const useFloatingToolbarStyles: (params: {
|
|
2
2
|
isVisible: boolean;
|
|
3
3
|
}, styleOverrides?: {
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
4
|
+
props: any;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"root", string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
|
-
export
|
|
3
|
+
export type PaginationActionsProps = {
|
|
4
4
|
count: number;
|
|
5
5
|
onPageChange: (event: React.MouseEvent<HTMLElement> | null, page: number) => void;
|
|
6
6
|
page: number;
|
|
@@ -7,7 +7,7 @@ export interface Properties<T> extends TableCellProps {
|
|
|
7
7
|
lines?: number;
|
|
8
8
|
selected?: boolean;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
type ComponentProperties<T> = PropsWithChildren<Properties<T>>;
|
|
11
|
+
export type Component<T> = FunctionComponent<ComponentProperties<T>>;
|
|
12
12
|
export declare const GrepTableRow: Component<any>;
|
|
13
13
|
export default GrepTableRow;
|
|
@@ -6,6 +6,6 @@ interface Properties<T> extends TableSortLabelProps {
|
|
|
6
6
|
onSortBy?: (row: T) => void;
|
|
7
7
|
empty?: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type Component<T> = React.FunctionComponent<Properties<T>>;
|
|
10
10
|
export declare const TableHeaderCell: Component<any>;
|
|
11
11
|
export default TableHeaderCell;
|
|
@@ -9,6 +9,6 @@ interface Properties<T> extends TableHeadProps {
|
|
|
9
9
|
onSortBy?: (col: TableColumn<T>) => any;
|
|
10
10
|
dropdownItems?: Array<DropdownMenuItem<T>>;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
type Component<T> = React.FunctionComponent<Properties<T>>;
|
|
13
13
|
export declare const TableHeader: Component<any>;
|
|
14
14
|
export default TableHeader;
|
|
@@ -5,6 +5,6 @@ interface Properties<T> extends Pick<TableCellProps, 'padding'> {
|
|
|
5
5
|
columns: Array<TableColumn<T>>;
|
|
6
6
|
text?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
type Component<T> = React.FunctionComponent<Properties<T>>;
|
|
9
9
|
export declare const GrepTablePlaceholder: Component<any>;
|
|
10
10
|
export default GrepTablePlaceholder;
|
|
@@ -9,6 +9,6 @@ interface Properties<T> extends TableRowProps, Pick<TableCellProperties<T>, 'var
|
|
|
9
9
|
height?: number;
|
|
10
10
|
underlineOnFocus?: boolean;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
type Component<T> = React.FunctionComponent<Properties<T>>;
|
|
13
13
|
export declare const GrepTableRow: Component<any>;
|
|
14
14
|
export default GrepTableRow;
|
|
@@ -51,9 +51,7 @@ interface StyleProps {
|
|
|
51
51
|
showHeader?: boolean;
|
|
52
52
|
}
|
|
53
53
|
export declare const useStyles: (params: StyleProps, styleOverrides?: {
|
|
54
|
-
props:
|
|
55
|
-
classes?: Record<string, string> | undefined;
|
|
56
|
-
} & Record<string, unknown>;
|
|
54
|
+
props: any;
|
|
57
55
|
ownerState?: Record<string, unknown> | undefined;
|
|
58
56
|
} | undefined) => {
|
|
59
57
|
classes: Record<"table" | "body" | "header", string>;
|
|
@@ -68,6 +66,6 @@ export declare const useStyles: (params: StyleProps, styleOverrides?: {
|
|
|
68
66
|
* @todo enhance page handling
|
|
69
67
|
*
|
|
70
68
|
*/
|
|
71
|
-
export declare const GrepTable: <T>({ placeholderText, dropdownItems, isRowDisabled, pagination, outlined, columns, header, data, onSelectedRowChange, sortBy, sortDirection, onSortBy, onRowClick, size, caption, stickyHeader, padding, disableSelectOnClick, menuButtonLabel, underlineOnFocus, rowTabIndex, ...props }: GrepTableProps<T>) => JSX.Element;
|
|
69
|
+
export declare const GrepTable: <T>({ placeholderText, dropdownItems, isRowDisabled, pagination, outlined, columns, header, data, onSelectedRowChange, sortBy, sortDirection, onSortBy, onRowClick, size, caption, stickyHeader, padding, disableSelectOnClick, menuButtonLabel, underlineOnFocus, rowTabIndex, ...props }: GrepTableProps<T>) => React.JSX.Element;
|
|
72
70
|
export { GrepTableRow };
|
|
73
71
|
export default GrepTable;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { TableColumn } from '..';
|
|
2
2
|
export declare const usePaginationActionStyles: (params: void, styleOverrides?: {
|
|
3
|
-
props:
|
|
4
|
-
classes?: Record<string, string> | undefined;
|
|
5
|
-
} & Record<string, unknown>;
|
|
3
|
+
props: any;
|
|
6
4
|
ownerState?: Record<string, unknown> | undefined;
|
|
7
5
|
} | undefined) => {
|
|
8
6
|
classes: Record<"button" | "textButton", string>;
|
|
@@ -11,9 +9,7 @@ export declare const usePaginationActionStyles: (params: void, styleOverrides?:
|
|
|
11
9
|
cx: import("tss-react").Cx;
|
|
12
10
|
};
|
|
13
11
|
export declare const usePaginationStyles: (params: void, styleOverrides?: {
|
|
14
|
-
props:
|
|
15
|
-
classes?: Record<string, string> | undefined;
|
|
16
|
-
} & Record<string, unknown>;
|
|
12
|
+
props: any;
|
|
17
13
|
ownerState?: Record<string, unknown> | undefined;
|
|
18
14
|
} | undefined) => {
|
|
19
15
|
classes: Record<"toolbar" | "selectLabel" | "displayedRows" | "spacer", string>;
|
|
@@ -24,9 +20,7 @@ export declare const usePaginationStyles: (params: void, styleOverrides?: {
|
|
|
24
20
|
export declare const useTableHeaderStyles: (params: {
|
|
25
21
|
column: TableColumn<any>;
|
|
26
22
|
}, styleOverrides?: {
|
|
27
|
-
props:
|
|
28
|
-
classes?: Record<string, string> | undefined;
|
|
29
|
-
} & Record<string, unknown>;
|
|
23
|
+
props: any;
|
|
30
24
|
ownerState?: Record<string, unknown> | undefined;
|
|
31
25
|
} | undefined) => {
|
|
32
26
|
classes: Record<"th", string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { GrepTableProps } from '../GrepTable';
|
|
3
3
|
interface GrepTableCardProps<T> extends GrepTableProps<T> {
|
|
4
4
|
title: string;
|
|
5
5
|
}
|
|
6
|
-
declare const GrepTableCard: <T>(props: GrepTableCardProps<T>) => JSX.Element;
|
|
6
|
+
declare const GrepTableCard: <T>(props: GrepTableCardProps<T>) => React.JSX.Element;
|
|
7
7
|
export default GrepTableCard;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"container" | "title", string>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: (params: {
|
|
2
2
|
elevation?: boolean | undefined;
|
|
3
3
|
}, styleOverrides?: {
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
4
|
+
props: any;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"cover", string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface NavGuardProperties {
|
|
3
3
|
when: boolean;
|
|
4
4
|
title: string;
|
|
@@ -10,5 +10,5 @@ export interface NavGuardProperties {
|
|
|
10
10
|
onCancel?: () => void;
|
|
11
11
|
onSave?: () => void;
|
|
12
12
|
}
|
|
13
|
-
declare const NavGuard: ({ when, title, txt, txtSave, txtCancel, txtDiscard, onSave, onCancel, onDiscard, }: NavGuardProperties) => JSX.Element;
|
|
13
|
+
declare const NavGuard: ({ when, title, txt, txtSave, txtCancel, txtDiscard, onSave, onCancel, onDiscard, }: NavGuardProperties) => React.JSX.Element;
|
|
14
14
|
export default NavGuard;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: () => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"container", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"outer" | "icon" | "input" | "helptext", string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type Props = {
|
|
3
3
|
id: number;
|
|
4
4
|
message: string;
|
|
5
5
|
isPublic?: boolean;
|
|
6
6
|
onDismiss?: (id: number) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const ServiceMessage: ({ id, message, isPublic, onDismiss }: Props) => JSX.Element;
|
|
8
|
+
declare const ServiceMessage: ({ id, message, isPublic, onDismiss }: Props) => React.JSX.Element;
|
|
9
9
|
export default ServiceMessage;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
declare const _default: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"message" | "messageText" | "messageType" | "warning" | "close" | "button", string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { NavigationProps } from '..';
|
|
3
3
|
export interface SidebarProps {
|
|
4
4
|
currentPageId?: number;
|
|
5
5
|
pages: NavigationProps[];
|
|
6
6
|
onPageClick: (page: NavigationProps) => any;
|
|
7
7
|
}
|
|
8
|
-
declare const Sidebar: ({ pages, onPageClick, currentPageId }: SidebarProps) => JSX.Element;
|
|
8
|
+
declare const Sidebar: ({ pages, onPageClick, currentPageId }: SidebarProps) => React.JSX.Element;
|
|
9
9
|
export default Sidebar;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const useStyles: (params: void, styleOverrides?: {
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
2
|
+
props: any;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"container" | "text" | "item" | "icon" | "selected", string>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: (params: {
|
|
2
2
|
isDragging: boolean;
|
|
3
3
|
}, styleOverrides?: {
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
4
|
+
props: any;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"row", string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IdentifyElement } from '../utils/identity-element';
|
|
3
|
-
export
|
|
3
|
+
export type GrepTableOfContentProviderProps = React.PropsWithChildren<{
|
|
4
4
|
container: HTMLElement | null;
|
|
5
5
|
scrollTarget?: HTMLElement;
|
|
6
6
|
className?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: () => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: () => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: (params: {
|
|
2
2
|
lvl: number;
|
|
3
3
|
}, styleOverrides?: {
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
4
|
+
props: any;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"root" | "link", string>;
|