@digital-ai/dot-components 1.3.2 → 1.3.6
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/README.md +2 -1
- package/dot-components.esm.js +995 -496
- package/dot-components.umd.js +957 -455
- package/fonts/dot.woff +0 -0
- package/fonts/selection.json +33 -23
- package/index.d.ts +1 -1
- package/lib/components/accordion/Accordion.d.ts +2 -2
- package/lib/components/alert-banner/AlertBanner.d.ts +8 -1
- package/lib/components/auto-complete/AutoComplete.d.ts +3 -1
- package/lib/components/avatar/Avatar.d.ts +3 -1
- package/lib/components/badge/Badge.d.ts +1 -1
- package/lib/components/badge/Badge.styles.d.ts +5 -2
- package/lib/components/button-toggle/ButtonToggle.d.ts +5 -2
- package/lib/components/dynamic-form/DynamicForm.d.ts +1 -1
- package/lib/components/dynamic-form/DynamicForm.stories.data.d.ts +2 -0
- package/lib/components/dynamic-form/DynamicForm.stories.styles.d.ts +1 -0
- package/lib/components/dynamic-form/DynamicForm.styles.d.ts +2 -1
- package/lib/components/dynamic-form/models.d.ts +22 -8
- package/lib/components/dynamic-form/sample.d.ts +1 -3
- package/lib/components/dynamic-form/utils/formHelpers.d.ts +7 -3
- package/lib/components/dynamic-form/utils/helpers.d.ts +3 -2
- package/lib/components/file-upload/FileListItem.d.ts +10 -0
- package/lib/components/file-upload/FileUpload.d.ts +20 -0
- package/lib/components/file-upload/FileUpload.styles.d.ts +6 -0
- package/lib/components/file-upload/uploadHelpers.d.ts +13 -0
- package/lib/components/index.d.ts +4 -1
- package/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +7 -1
- package/lib/components/input-form-fields/InputSelect.d.ts +1 -1
- package/lib/components/input-form-fields/InputText.d.ts +1 -1
- package/lib/components/list/List.d.ts +12 -2
- package/lib/components/progress-button/ProgressButton.d.ts +9 -0
- package/lib/components/progress-button/ProgressButton.styles.d.ts +3 -0
- package/lib/components/table/Table.stories.data.d.ts +4 -0
- package/lib/components/table/TableRow.d.ts +1 -1
- package/lib/components/tooltip/Tooltip.d.ts +5 -2
- package/lib/theme-provider/ThemeProvider.d.ts +2 -0
- package/package.json +2 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementType, MouseEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
|
+
import { LinkTarget } from '../link/Link';
|
|
3
4
|
import { PopperPlacement } from '../menu/Menu';
|
|
4
5
|
export declare type NestedListType = 'drawer' | 'expandable' | 'menu';
|
|
5
6
|
export interface NestedListProps extends CommonProps {
|
|
@@ -51,10 +52,11 @@ export interface ListItemProps extends CommonProps {
|
|
|
51
52
|
endIconId?: string;
|
|
52
53
|
/** If provided, the list item will be rendered as a link */
|
|
53
54
|
href?: string;
|
|
54
|
-
/**
|
|
55
|
+
/** DEPRECATED, DO NOT USE */
|
|
55
56
|
index?: number;
|
|
56
57
|
/** If provided, the menu item will display a nested list */
|
|
57
58
|
items?: Array<ListItemProps>;
|
|
59
|
+
isOpened?: boolean;
|
|
58
60
|
/** If nested list type is 'menu', determines the placement of the menu */
|
|
59
61
|
menuPlacement?: PopperPlacement;
|
|
60
62
|
/** If nested type is 'drawer', determines the width of the left spacing */
|
|
@@ -63,10 +65,18 @@ export interface ListItemProps extends CommonProps {
|
|
|
63
65
|
nestedListType?: NestedListType;
|
|
64
66
|
/** Event callback */
|
|
65
67
|
onClick?: (event: MouseEvent) => void;
|
|
68
|
+
/** Menu leave event callback */
|
|
69
|
+
onMenuLeave?: () => void;
|
|
70
|
+
/** The main content element */
|
|
71
|
+
primaryText?: string;
|
|
72
|
+
/** The secondary content element */
|
|
73
|
+
secondaryText?: string;
|
|
66
74
|
/** Selected list item */
|
|
67
75
|
selected?: boolean;
|
|
68
76
|
/** If provided, the icon ID which is displayed on the front of the list item */
|
|
69
77
|
startIconId?: string;
|
|
78
|
+
/** where to open the link */
|
|
79
|
+
target?: LinkTarget;
|
|
70
80
|
/** Text which is displayed in the list item */
|
|
71
81
|
text?: string;
|
|
72
82
|
/** DEPRECATED, DO NOT USE */
|
|
@@ -75,4 +85,4 @@ export interface ListItemProps extends CommonProps {
|
|
|
75
85
|
tooltip?: string;
|
|
76
86
|
}
|
|
77
87
|
export declare const DotList: ({ ariaLabel, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => JSX.Element;
|
|
78
|
-
export declare const DotListItem: ({ ariaLabel, className, component, "data-testid": dataTestId, divider, endIconId, href,
|
|
88
|
+
export declare const DotListItem: ({ ariaLabel, className, component, "data-testid": dataTestId, divider, endIconId, href, isOpened, onClick, onMenuLeave, index, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, primaryText, secondaryText, selected, startIconId, target, text, title, tooltip, }: ListItemProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from '../button/Button';
|
|
3
|
+
export declare const SPINNER_DEFAULT_SIZE = 20;
|
|
4
|
+
export declare const SPINNER_LARGE_SIZE = 24;
|
|
5
|
+
export interface ProgressButtonProps extends ButtonProps {
|
|
6
|
+
/** Is spinner displayed */
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const DotProgressButton: ({ ariaLabel, children, className, "data-testid": dataTestId, disabled, disableRipple, fullWidth, isLoading, isSubmit, onClick, size, tooltip, type, }: ProgressButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const rootClassName = "dot-progress-button";
|
|
3
|
+
export declare const StyledProgressButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../button/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -30,6 +30,7 @@ export declare const defaultColumns: ({
|
|
|
30
30
|
})[];
|
|
31
31
|
export declare const defaultData: ({
|
|
32
32
|
id: string;
|
|
33
|
+
className: string;
|
|
33
34
|
selected: boolean;
|
|
34
35
|
rowData: {
|
|
35
36
|
title: string;
|
|
@@ -44,6 +45,7 @@ export declare const defaultData: ({
|
|
|
44
45
|
onclick: () => void;
|
|
45
46
|
tooltip: string;
|
|
46
47
|
}[];
|
|
48
|
+
className: string;
|
|
47
49
|
};
|
|
48
50
|
} | {
|
|
49
51
|
id: string;
|
|
@@ -60,7 +62,9 @@ export declare const defaultData: ({
|
|
|
60
62
|
onclick: () => void;
|
|
61
63
|
tooltip: string;
|
|
62
64
|
}[];
|
|
65
|
+
className?: undefined;
|
|
63
66
|
};
|
|
67
|
+
className?: undefined;
|
|
64
68
|
selected?: undefined;
|
|
65
69
|
})[];
|
|
66
70
|
export declare const paginatedColumns: ({
|
|
@@ -24,5 +24,5 @@ export interface RowProps extends CommonProps {
|
|
|
24
24
|
* A wrapper component around the TableRow component from @material-ui. This component can be used
|
|
25
25
|
* for manipulating data prior to displaying the data inside the table
|
|
26
26
|
*/
|
|
27
|
-
export declare const DotTableRow: ({ columns, data, onActionMenuTrigger, onClick, rowKey, selected, }: RowProps) => JSX.Element;
|
|
27
|
+
export declare const DotTableRow: ({ columns, className, data, onActionMenuTrigger, onClick, rowKey, selected, }: RowProps) => JSX.Element;
|
|
28
28
|
export declare const EmptyDotRow: ({ cols, message, }: EmptyRowProps) => JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { ReactNode, ReactElement } from 'react';
|
|
1
|
+
import { ReactNode, ReactElement, ChangeEvent } from 'react';
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
3
|
export declare type tooltipPlacement = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
4
4
|
export interface TooltipProps extends CommonProps {
|
|
5
5
|
children: ReactElement;
|
|
6
|
+
leaveDelay?: number;
|
|
7
|
+
onClose?: (event: ChangeEvent) => void;
|
|
8
|
+
open?: boolean;
|
|
6
9
|
placement?: tooltipPlacement;
|
|
7
10
|
title?: ReactNode | string | number;
|
|
8
11
|
}
|
|
9
|
-
export declare const DotTooltip: ({ ariaLabel, children, className, "data-testid": dataTestId, placement, title, }: TooltipProps) => JSX.Element;
|
|
12
|
+
export declare const DotTooltip: ({ ariaLabel, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Theme } from '@material-ui/core';
|
|
3
|
+
import { TypographyOptions } from '@material-ui/core/styles/createTypography';
|
|
3
4
|
import { AvatarPaletteColorOptions } from '../../../../../typings/material/index';
|
|
4
5
|
export declare type ThemeOptions = 'light' | 'dark' | 'agility-light' | 'agility-dark';
|
|
6
|
+
export declare const typographyOptions: TypographyOptions;
|
|
5
7
|
export declare const avatarColors: AvatarPaletteColorOptions;
|
|
6
8
|
export declare const agilityLightTheme: Theme;
|
|
7
9
|
export declare const agilityDarkTheme: Theme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digital-ai/dot-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE.md>",
|
|
6
6
|
"contributors": [
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@material-ui/lab": "4.0.0-alpha.56",
|
|
30
30
|
"@material-ui/core": "4.12.3",
|
|
31
|
+
"react-dropzone": "^11.4.2",
|
|
31
32
|
"styled-components": "^5.2.1"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|