@digital-ai/dot-components 3.2.2 → 3.4.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/index.esm.js +400 -219
- package/package.json +1 -1
- package/src/lib/components/chip/Chip.d.ts +3 -1
- package/src/lib/components/list/ListItem.d.ts +1 -1
- package/src/lib/components/list/utils/models.d.ts +5 -2
- package/src/lib/components/table/TablePagination.d.ts +3 -1
- package/src/lib/components/table/TablePaginationCustomActions.d.ts +2 -0
- package/src/lib/components/table/TablePaginationCustomActions.styles.d.ts +2 -0
package/package.json
CHANGED
|
@@ -25,5 +25,7 @@ export interface ChipProps extends CommonProps {
|
|
|
25
25
|
size?: ChipSize;
|
|
26
26
|
/** The icon to display on the chip */
|
|
27
27
|
startIcon?: ReactElement;
|
|
28
|
+
/** The tab index of the chip */
|
|
29
|
+
tabIndex?: number;
|
|
28
30
|
}
|
|
29
|
-
export declare const DotChip: ({ ariaLabel, avatar, charactersLimit, children, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, disabled, error, isClickable, isDeletable, onClick, onDelete, size, startIcon, }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const DotChip: ({ ariaLabel, avatar, charactersLimit, children, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, disabled, error, isClickable, isDeletable, onClick, onDelete, size, startIcon, tabIndex, }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ListItemProps } from './utils/models';
|
|
2
|
-
export declare const DotListItem: ({ ariaLabel, ariaRole, className, component, "data-pendoid": dataPendoId, "data-testid": dataTestId, divider, endIcon, href, isOpened, onClick, onMenuLeave, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, primaryText, secondaryText, selected, startIcon, target, text, tooltip, tooltipPlacement, }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const DotListItem: ({ ariaLabel, ariaRole, autoFocus, className, component, "data-pendoid": dataPendoId, "data-testid": dataTestId, divider, endIcon, href, isOpened, onClick, onKeyDown, onMenuLeave, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, primaryText, secondaryText, selected, startIcon, target, text, tooltip, tooltipPlacement, }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ElementType, KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
1
|
+
import { ElementType, KeyboardEvent, KeyboardEventHandler, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { CommonProps } from '../../CommonProps';
|
|
3
3
|
import { PopperPlacement } from '../../menu/Menu';
|
|
4
4
|
import { LinkTarget } from '../../link/Link';
|
|
5
|
-
import { TooltipPlacement } from '../../tooltip
|
|
5
|
+
import { TooltipPlacement } from '../../tooltip';
|
|
6
6
|
export declare const DEFAULT_TOOLTIP_PLACEMENT = "top-start";
|
|
7
7
|
export type NestedListType = 'drawer' | 'expandable' | 'menu';
|
|
8
8
|
export interface ListProps extends CommonProps {
|
|
@@ -26,6 +26,8 @@ export interface ListProps extends CommonProps {
|
|
|
26
26
|
width?: number | string;
|
|
27
27
|
}
|
|
28
28
|
export interface ListItemProps extends CommonProps {
|
|
29
|
+
/** If true, the list item will be focused **/
|
|
30
|
+
autoFocus?: boolean;
|
|
29
31
|
/** string or JSX element that is displayed inside the list */
|
|
30
32
|
child?: ReactNode;
|
|
31
33
|
/** The component used for the root node. Either a string to use a HTML element or a component. */
|
|
@@ -48,6 +50,7 @@ export interface ListItemProps extends CommonProps {
|
|
|
48
50
|
nestedListType?: NestedListType;
|
|
49
51
|
/** Event callback */
|
|
50
52
|
onClick?: (event: MouseEvent) => void;
|
|
53
|
+
onKeyDown?: KeyboardEventHandler;
|
|
51
54
|
/** Menu leave event callback */
|
|
52
55
|
onMenuLeave?: (event: MouseEvent | KeyboardEvent) => void;
|
|
53
56
|
/** The main content element */
|
|
@@ -18,8 +18,10 @@ export interface TablePaginationProps extends CommonProps {
|
|
|
18
18
|
rowsPerPage?: number;
|
|
19
19
|
/** Customizes the options of the rows per page select field. Default: [10, 25, 50, 100, 150, 200] */
|
|
20
20
|
rowsPerPageOptions?: number[];
|
|
21
|
+
/** If true, it displays a current page button between arrow buttons, and on click it opens a popper with page numbers to choose */
|
|
22
|
+
showJumpToPageActionButton?: boolean;
|
|
21
23
|
/** Typography variant which will be used for pagination text */
|
|
22
24
|
typography: TypographyVariant;
|
|
23
25
|
}
|
|
24
26
|
/** This component wraps the TablePagination component from @material-ui. */
|
|
25
|
-
export declare const DotTablePagination: ({ ariaLabel, className, count, "data-testid": dataTestId, labelRowsPerPage, onPageChange, onRowsPerPageChange, page, rowsPerPage, rowsPerPageOptions, typography, }: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const DotTablePagination: ({ ariaLabel, className, count, "data-testid": dataTestId, labelRowsPerPage, onPageChange, onRowsPerPageChange, page, rowsPerPage, rowsPerPageOptions, showJumpToPageActionButton, typography, }: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
|