grep-components 1.28.0-GREPF-2186.1 → 1.29.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/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 +4 -8
- package/dist/components/AppBarProfile/styles/index.d.ts +2 -4
- package/dist/components/ConfirmationDialog/styles/index.d.ts +2 -4
- package/dist/components/ContainedLinkList/styles/index.d.ts +2 -4
- package/dist/components/DropdownMenu/components/collapsable-menu-item.d.ts +1 -1
- package/dist/components/DropdownMenu/index.d.ts +2 -2
- package/dist/components/DropdownMenu/styles/collapsable-menu-item.style.d.ts +2 -4
- package/dist/components/DropdownMenu/styles/dropdown-menu.style.d.ts +2 -4
- package/dist/components/Footer/styles/index.d.ts +2 -4
- package/dist/components/GDPR/styles/index.d.ts +2 -4
- package/dist/components/GrepCrumbs/styles/styles.d.ts +2 -4
- 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 +2 -4
- package/dist/components/GrepEditor/styles/editorStyles.d.ts +2 -4
- package/dist/components/GrepEditor/styles/toolbarStyles.d.ts +2 -4
- 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 +6 -12
- package/dist/components/GrepTableCard/styles/index.d.ts +2 -4
- package/dist/components/GreyCover/styles/index.d.ts +2 -4
- package/dist/components/ProfileInfo/styles/index.d.ts +2 -4
- package/dist/components/SearchBar/styles/index.d.ts +2 -4
- package/dist/components/ServiceMessage/index.d.ts +1 -1
- package/dist/components/ServiceMessage/styles/index.d.ts +2 -4
- package/dist/components/Sidebar/styles/index.d.ts +2 -4
- package/dist/components/SortableTable/styles/row.style.d.ts +2 -4
- package/dist/components/ToC/context/provider.d.ts +1 -1
- package/dist/components/ToC/styles/nav-tree-node.style.d.ts +2 -4
- package/dist/components/ToC/styles/nav-tree.style.d.ts +2 -4
- package/dist/components/ToC/styles/nav.style.d.ts +2 -4
- 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 +333 -99
- package/dist/index.js.map +1 -1
- package/dist/styling/makeStyles.d.ts +24 -18
- package/dist/utils/dateHelper.d.ts +2 -2
- package/package.json +2 -2
|
@@ -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
|
-
export declare const useStyles: (params: void,
|
|
3
|
-
props:
|
|
4
|
-
classes?: Record<string, string> | undefined;
|
|
5
|
-
} & Record<string, unknown>;
|
|
2
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
3
|
+
props: Record<string, unknown>;
|
|
6
4
|
ownerState?: Record<string, unknown> | undefined;
|
|
7
5
|
} | undefined) => {
|
|
8
6
|
classes: Record<"tabs" | "tab" | "indicator", string>;
|
|
@@ -10,10 +8,8 @@ export declare const useStyles: (params: void, styleOverrides?: {
|
|
|
10
8
|
css: import("tss-react").Css;
|
|
11
9
|
cx: import("tss-react").Cx;
|
|
12
10
|
};
|
|
13
|
-
export declare const useMobileStyles: (params: void,
|
|
14
|
-
props:
|
|
15
|
-
classes?: Record<string, string> | undefined;
|
|
16
|
-
} & Record<string, unknown>;
|
|
11
|
+
export declare const useMobileStyles: (params: void, muiStyleOverridesParams?: {
|
|
12
|
+
props: Record<string, unknown>;
|
|
17
13
|
ownerState?: Record<string, unknown> | undefined;
|
|
18
14
|
} | undefined) => {
|
|
19
15
|
classes: Record<"mobileNavList", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"user", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"discard", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
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
|
/// <reference types="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;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: (params: {
|
|
2
2
|
open: boolean;
|
|
3
|
-
},
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
3
|
+
}, muiStyleOverridesParams?: {
|
|
4
|
+
props: Record<string, unknown>;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"root" | "subMenu" | "expander", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"selected", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useFooterStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useFooterStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"footer" | "content" | "serviceNameText" | "list" | "item" | "itemText" | "itemBtn", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
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
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
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
|
-
export declare const useButtonStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useButtonStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"btn" | "btnSelected", string>;
|
|
@@ -3,10 +3,8 @@ interface Properties {
|
|
|
3
3
|
hasContent: boolean;
|
|
4
4
|
readOnly?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const useEditorStyles: (params: Properties,
|
|
7
|
-
props:
|
|
8
|
-
classes?: Record<string, string> | undefined;
|
|
9
|
-
} & Record<string, unknown>;
|
|
6
|
+
export declare const useEditorStyles: (params: Properties, muiStyleOverridesParams?: {
|
|
7
|
+
props: Record<string, unknown>;
|
|
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
|
-
},
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
3
|
+
}, muiStyleOverridesParams?: {
|
|
4
|
+
props: Record<string, unknown>;
|
|
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;
|
|
@@ -8,7 +8,7 @@ export interface Properties<T> extends TableCellProps {
|
|
|
8
8
|
selected?: boolean;
|
|
9
9
|
expanded?: boolean;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
export
|
|
11
|
+
type ComponentProperties<T> = PropsWithChildren<Properties<T>>;
|
|
12
|
+
export type Component<T> = FunctionComponent<ComponentProperties<T>>;
|
|
13
13
|
export declare const GrepTableRow: Component<any>;
|
|
14
14
|
export default GrepTableRow;
|
|
@@ -6,6 +6,6 @@ interface Properties<T> extends Omit<TableSortLabelProps, "component"> {
|
|
|
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;
|
|
@@ -10,6 +10,6 @@ interface Properties<T> extends TableRowProps, Pick<TableCellProperties<T>, 'var
|
|
|
10
10
|
underlineOnFocus?: boolean;
|
|
11
11
|
expanded?: boolean;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type Component<T> = React.FunctionComponent<Properties<T>>;
|
|
14
14
|
export declare const GrepTableRow: Component<any>;
|
|
15
15
|
export default GrepTableRow;
|
|
@@ -52,10 +52,8 @@ interface StyleProps {
|
|
|
52
52
|
outlined?: boolean;
|
|
53
53
|
showHeader?: boolean;
|
|
54
54
|
}
|
|
55
|
-
export declare const useStyles: (params: StyleProps,
|
|
56
|
-
props:
|
|
57
|
-
classes?: Record<string, string> | undefined;
|
|
58
|
-
} & Record<string, unknown>;
|
|
55
|
+
export declare const useStyles: (params: StyleProps, muiStyleOverridesParams?: {
|
|
56
|
+
props: Record<string, unknown>;
|
|
59
57
|
ownerState?: Record<string, unknown> | undefined;
|
|
60
58
|
} | undefined) => {
|
|
61
59
|
classes: Record<"table" | "body" | "header", string>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { TableColumn } from '..';
|
|
2
|
-
export declare const usePaginationActionStyles: (params: void,
|
|
3
|
-
props:
|
|
4
|
-
classes?: Record<string, string> | undefined;
|
|
5
|
-
} & Record<string, unknown>;
|
|
2
|
+
export declare const usePaginationActionStyles: (params: void, muiStyleOverridesParams?: {
|
|
3
|
+
props: Record<string, unknown>;
|
|
6
4
|
ownerState?: Record<string, unknown> | undefined;
|
|
7
5
|
} | undefined) => {
|
|
8
6
|
classes: Record<"button" | "textButton", string>;
|
|
@@ -10,10 +8,8 @@ export declare const usePaginationActionStyles: (params: void, styleOverrides?:
|
|
|
10
8
|
css: import("tss-react").Css;
|
|
11
9
|
cx: import("tss-react").Cx;
|
|
12
10
|
};
|
|
13
|
-
export declare const usePaginationStyles: (params: void,
|
|
14
|
-
props:
|
|
15
|
-
classes?: Record<string, string> | undefined;
|
|
16
|
-
} & Record<string, unknown>;
|
|
11
|
+
export declare const usePaginationStyles: (params: void, muiStyleOverridesParams?: {
|
|
12
|
+
props: Record<string, unknown>;
|
|
17
13
|
ownerState?: Record<string, unknown> | undefined;
|
|
18
14
|
} | undefined) => {
|
|
19
15
|
classes: Record<"toolbar" | "selectLabel" | "displayedRows" | "spacer", string>;
|
|
@@ -23,10 +19,8 @@ export declare const usePaginationStyles: (params: void, styleOverrides?: {
|
|
|
23
19
|
};
|
|
24
20
|
export declare const useTableHeaderStyles: (params: {
|
|
25
21
|
column: TableColumn<any>;
|
|
26
|
-
},
|
|
27
|
-
props:
|
|
28
|
-
classes?: Record<string, string> | undefined;
|
|
29
|
-
} & Record<string, unknown>;
|
|
22
|
+
}, muiStyleOverridesParams?: {
|
|
23
|
+
props: Record<string, unknown>;
|
|
30
24
|
ownerState?: Record<string, unknown> | undefined;
|
|
31
25
|
} | undefined) => {
|
|
32
26
|
classes: Record<"th", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
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
|
-
},
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
3
|
+
}, muiStyleOverridesParams?: {
|
|
4
|
+
props: Record<string, unknown>;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"cover", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"container", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"outer" | "icon" | "input" | "helptext", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
declare const _default: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
declare const _default: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"message" | "messageText" | "messageType" | "warning" | "close" | "button", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
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
|
-
},
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
3
|
+
}, muiStyleOverridesParams?: {
|
|
4
|
+
props: Record<string, unknown>;
|
|
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,9 +1,7 @@
|
|
|
1
1
|
export declare const useStyles: (params: {
|
|
2
2
|
lvl: number;
|
|
3
|
-
},
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
3
|
+
}, muiStyleOverridesParams?: {
|
|
4
|
+
props: Record<string, unknown>;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
classes: Record<"root" | "link", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"root", string>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare const useStyles: (params: void,
|
|
2
|
-
props:
|
|
3
|
-
classes?: Record<string, string> | undefined;
|
|
4
|
-
} & Record<string, unknown>;
|
|
1
|
+
export declare const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
5
3
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
4
|
} | undefined) => {
|
|
7
5
|
classes: Record<"root" | "keyboardHint", string>;
|
|
@@ -2,6 +2,6 @@ import { Normalizer, ContextElement } from './normalize';
|
|
|
2
2
|
export interface ContextTreeElement extends ContextElement {
|
|
3
3
|
children: ContextTree;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type ContextTree = Record<number, ContextTreeElement>;
|
|
6
6
|
export declare const buildTree: (elements: Array<HTMLElement>, normalizer?: Normalizer) => ContextTree;
|
|
7
7
|
export default buildTree;
|
package/dist/hooks/use-date.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import DateTime from '../utils/dateHelper';
|
|
2
2
|
import { ParseableDate } from '../utils/dateHelper';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type DateInput = ParseableDate | null;
|
|
4
|
+
export type DateState = DateTime.Dayjs | null;
|
|
5
5
|
export declare const defaultOptions: {
|
|
6
6
|
utc: boolean;
|
|
7
7
|
preserveTime: boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
interface Options extends _.DebounceSettings {
|
|
3
3
|
wait: number;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
type Debounce<T extends (...args: any) => any> = _.DebouncedFunc<T>;
|
|
6
6
|
/**
|
|
7
7
|
* Custom hook for debouncing functions inside components
|
|
8
8
|
* @see https://lodash.com/docs/#debounce
|