grep-components 2.7.0-GREPF-2633.1 → 2.7.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.
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { GridSpacing } from '@mui/material/Grid';
3
2
  import { DateRangeValue } from '../../utils/dateHelper';
4
3
  import { GrepDatePickerProps } from '../GrepDatePicker';
5
4
  import { Dayjs } from 'dayjs';
5
+ import { GridSpacing } from '@mui/material/Grid2';
6
6
  type CommonProperties = Pick<GrepDatePickerProps, 'variant' | 'margin' | 'sx'>;
7
7
  interface Props extends CommonProperties {
8
8
  from: Omit<GrepDatePickerProps, 'onChange'>;
@@ -1,4 +1,4 @@
1
- import React, { JSX } from 'react';
1
+ import React from 'react';
2
2
  export interface GrepDialogOptions {
3
3
  title: string;
4
4
  content: React.ReactNode;
@@ -1,17 +1,17 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- decorators: ((storyFn: any) => JSX.Element)[];
4
+ decorators: ((storyFn: any) => React.JSX.Element)[];
5
5
  };
6
6
  export default _default;
7
7
  export declare const Standard: {
8
- (): JSX.Element;
8
+ (): React.JSX.Element;
9
9
  story: {
10
10
  name: string;
11
11
  };
12
12
  };
13
13
  export declare const WithCustomActions: {
14
- (): JSX.Element;
14
+ (): React.JSX.Element;
15
15
  story: {
16
16
  name: string;
17
17
  };
@@ -1,3 +1,3 @@
1
- import { DOMExportOutputMap } from 'lexical';
2
- export declare const htmlExportMap: DOMExportOutputMap;
1
+ import { DOMExportOutput, KlassConstructor, LexicalEditor, LexicalNode } from 'lexical';
2
+ export declare const htmlExportMap: Map<KlassConstructor<typeof LexicalNode>, (editor: LexicalEditor, target: LexicalNode) => DOMExportOutput>;
3
3
  export declare function ApplyFormatting(element: HTMLElement, formatting: Record<string, boolean>): HTMLElement;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { FC, JSX } from 'react';
8
+ import { FC } from 'react';
9
9
  import { Button } from '../buttons';
10
10
  import { ToolbarProperties } from '../../entities';
11
11
  export default function FloatingTextFormatToolbarPlugin({ anchorElem, buttons, CustomToolbar, }: {
@@ -18,7 +18,7 @@ export interface Properties {
18
18
  disableNewlines?: boolean;
19
19
  stripPastedStyles?: boolean;
20
20
  blockPasting?: boolean;
21
- editorRef?: RefObject<LexicalEditor | null | undefined>;
21
+ editorRef?: RefObject<LexicalEditor>;
22
22
  /**
23
23
  * Undefined: allow all styles.
24
24
  * Empty array: disable all styles.
@@ -1,4 +1,4 @@
1
- import React, { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { TableProps } from '@mui/material/Table';
3
3
  import { TableCellProps } from '@mui/material/TableCell';
4
4
  import GrepTableRow from './components/grep-table-row';
@@ -69,6 +69,6 @@ export declare const useStyles: (params: StyleProps, muiStyleOverridesParams?: {
69
69
  * @todo enhance page handling
70
70
  *
71
71
  */
72
- 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, rowStyle, rowsPerPageOptions, ...props }: GrepTableProps<T>) => JSX.Element;
72
+ 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, rowStyle, rowsPerPageOptions, ...props }: GrepTableProps<T>) => React.JSX.Element;
73
73
  export { GrepTableRow };
74
74
  export default GrepTable;
@@ -1,4 +1,4 @@
1
- import React, { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { TableCellProps } from '@mui/material/TableCell';
3
3
  export interface Properties extends TableCellProps {
4
4
  locked: boolean;
@@ -1,4 +1,3 @@
1
- import { JSX } from 'react';
2
1
  import { CellNode } from '..';
3
2
  interface Properties<T> {
4
3
  id: string | number;
@@ -1,4 +1,4 @@
1
- import { ReactNode, JSX } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { TableCellProps } from '@mui/material/TableCell';
3
3
  export interface CellNode {
4
4
  value: ReactNode;
@@ -1,5 +1,4 @@
1
- import DateTime from '../utils/dateHelper';
2
- import { ParseableDate } from '../utils/dateHelper';
1
+ import DateTime, { ParseableDate } from '../utils/dateHelper';
3
2
  export type DateInput = ParseableDate | null;
4
3
  export type DateState = DateTime.Dayjs | null;
5
4
  export declare const defaultOptions: {
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export { default as ServiceMessage } from './components/ServiceMessage';
28
28
  export { default as SortableTable } from './components/SortableTable';
29
29
  export { default as GrepEditor } from './components/GrepEditor';
30
30
  export { default as AppBar } from './components/AppBar/AppBar';
31
- export { ParseableDate } from './utils/dateHelper';
31
+ export type { ParseableDate } from './utils/dateHelper';
32
32
  export { Utils };
33
33
  export * from './components';
34
34
  export * from './hooks';