@fattureincloud/fic-design-system 0.19.6 → 0.19.8
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/tableV3/components/body/Body.d.ts +4 -2
- package/dist/components/tableV3/styled.d.ts +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/types.d.ts +1 -0
- package/dist/components/tooltip/useTooltip.d.ts +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Row as RowType } from '@tanstack/react-table';
|
|
3
3
|
import { TableProps } from '../../types';
|
|
4
|
-
interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> {
|
|
4
|
+
interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip' | 'renderEmptyState'> {
|
|
5
5
|
pageIndex: number;
|
|
6
6
|
rows: RowType<T>[];
|
|
7
|
+
columnsCount: number;
|
|
8
|
+
isTableEmpty?: boolean;
|
|
7
9
|
}
|
|
8
|
-
declare const Body: <T>({ isLoading, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
|
|
10
|
+
declare const Body: <T>({ columnsCount, isLoading, isRowDisabled, isRowHighlighted, isTableEmpty, onRowClick, pageIndex, renderEmptyState, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
|
|
9
11
|
export default Body;
|
|
@@ -6,3 +6,4 @@ export declare const HorizontalScroll: import("styled-components").StyledCompone
|
|
|
6
6
|
export declare const DSTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const SortIndicator: import("styled-components").StyledComponent<({ isDisabled, onClick, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
8
8
|
export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const EmptyStateContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TooltipProps } from './types';
|
|
3
3
|
export declare const defaultTooltipProps: TooltipProps;
|
|
4
|
-
declare const Tooltip: ({ callbackAfterTimeout, children, className, hideAfterSeconds, icon, message, onMouseEnter, onMouseLeave, onOpen, placement, positionStrategy, renderButton, shouldRender, showAfterSeconds, showAlways, style, type, usePortal, }: TooltipProps) => JSX.Element;
|
|
4
|
+
declare const Tooltip: ({ callbackAfterTimeout, children, className, hideAfterSeconds, icon, message, onMouseEnter, onMouseLeave, onMouseLeaveHideDelay, onOpen, placement, positionStrategy, renderButton, shouldRender, showAfterSeconds, showAlways, style, type, usePortal, }: TooltipProps) => JSX.Element;
|
|
5
5
|
export default Tooltip;
|
|
@@ -11,6 +11,7 @@ export interface TooltipProps {
|
|
|
11
11
|
message: string | JSX.Element;
|
|
12
12
|
onMouseEnter?: MouseEventHandler;
|
|
13
13
|
onMouseLeave?: MouseEventHandler;
|
|
14
|
+
onMouseLeaveHideDelay?: number;
|
|
14
15
|
onOpen?: (isOpen: boolean) => void;
|
|
15
16
|
placement?: BasePlacement;
|
|
16
17
|
positionStrategy?: 'fixed' | 'absolute';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, Dispatch, MouseEventHandler, MutableRefObject, SetStateAction } from 'react';
|
|
2
2
|
import { TooltipProps } from './types';
|
|
3
|
-
declare type UseTooltipParams = Pick<TooltipProps, 'callbackAfterTimeout' | 'hideAfterSeconds' | 'onMouseEnter' | 'onMouseLeave' | 'onOpen' | 'placement' | 'showAfterSeconds' | 'showAlways' | 'positionStrategy'>;
|
|
3
|
+
declare type UseTooltipParams = Pick<TooltipProps, 'callbackAfterTimeout' | 'hideAfterSeconds' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseLeaveHideDelay' | 'onOpen' | 'placement' | 'showAfterSeconds' | 'showAlways' | 'positionStrategy'>;
|
|
4
4
|
export declare type UseTooltipValue<W extends HTMLElement, C extends HTMLElement> = {
|
|
5
5
|
_onMouseEnter: MouseEventHandler;
|
|
6
6
|
_onMouseLeave: MouseEventHandler;
|
|
@@ -13,5 +13,5 @@ export declare type UseTooltipValue<W extends HTMLElement, C extends HTMLElement
|
|
|
13
13
|
styles: Record<string, CSSProperties>;
|
|
14
14
|
wrapperRef: MutableRefObject<W | null>;
|
|
15
15
|
};
|
|
16
|
-
declare const useTooltip: <W extends HTMLElement, C extends HTMLElement>({ callbackAfterTimeout, hideAfterSeconds, onMouseEnter, onMouseLeave, onOpen, placement, positionStrategy, showAfterSeconds, showAlways, }: UseTooltipParams) => UseTooltipValue<W, C>;
|
|
16
|
+
declare const useTooltip: <W extends HTMLElement, C extends HTMLElement>({ callbackAfterTimeout, hideAfterSeconds, onMouseEnter, onMouseLeave, onMouseLeaveHideDelay, onOpen, placement, positionStrategy, showAfterSeconds, showAlways, }: UseTooltipParams) => UseTooltipValue<W, C>;
|
|
17
17
|
export default useTooltip;
|