@digital-ai/dot-components 1.20.0 → 2.0.0-rc.1
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/CHANGE_LOG.md +4 -25
- package/README.md +1 -1
- package/fonts/fonts.ts +6 -0
- package/index.d.ts +1 -1
- package/index.esm.js +605 -1021
- package/index.umd.js +823 -1256
- package/lib/components/BaseButtonProps.d.ts +0 -2
- package/lib/components/accordion/Accordion.d.ts +1 -3
- package/lib/components/accordion/Accordion.styles.d.ts +1 -1
- package/lib/components/action-toolbar/ActionToolbar.styles.d.ts +1 -1
- package/lib/components/alert-banner/AlertBanner.d.ts +1 -3
- package/lib/components/alert-banner/AlertBanner.styles.d.ts +1 -1
- package/lib/components/app-toolbar/AppToolbar.d.ts +1 -3
- package/lib/components/app-toolbar/AppToolbar.stories.data.d.ts +0 -1
- package/lib/components/app-toolbar/AppToolbar.styles.d.ts +0 -1
- package/lib/components/auto-complete/AutoComplete.d.ts +2 -2
- package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +2 -0
- package/lib/components/auto-complete/AutoComplete.styles.d.ts +1 -1
- package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +1 -0
- package/lib/components/auto-complete/index.d.ts +1 -1
- package/lib/components/auto-complete/utils/helpers.d.ts +1 -2
- package/lib/components/avatar/Avatar.styles.d.ts +1 -1
- package/lib/components/avatar-group/AvatarGroup.d.ts +0 -1
- package/lib/components/avatar-group/AvatarGroup.styles.d.ts +3 -0
- package/lib/components/badge/Badge.styles.d.ts +1 -1
- package/lib/components/breadcrumbs/Breadcrumbs.d.ts +2 -4
- package/lib/components/breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
- package/lib/components/breadcrumbs/utils/helpers.d.ts +2 -2
- package/lib/components/button/Button.d.ts +2 -2
- package/lib/components/button/Button.styles.d.ts +1 -1
- package/lib/components/button/IconButton.d.ts +1 -3
- package/lib/components/button/IconButton.styles.d.ts +1 -1
- package/lib/components/button-toggle/ButtonToggle.stories.data.d.ts +0 -1
- package/lib/components/button-toggle/ButtonToggle.styles.d.ts +1 -1
- package/lib/components/checkbox/Checkbox.d.ts +1 -2
- package/lib/components/checkbox/Checkbox.styles.d.ts +1 -1
- package/lib/components/checkbox/CheckboxGroup.d.ts +1 -1
- package/lib/components/chip/Chip.styles.d.ts +1 -1
- package/lib/components/css-grid/CssCell.d.ts +1 -1
- package/lib/components/css-grid/CssGrid.d.ts +14 -8
- package/lib/components/css-grid/CssGridDebug.d.ts +0 -1
- package/lib/components/dialog/Dialog.styles.d.ts +1 -1
- package/lib/components/divider/Divider.d.ts +0 -1
- package/lib/components/divider/Divider.styles.d.ts +1 -1
- package/lib/components/draggable-list/DraggableList.d.ts +0 -1
- package/lib/components/draggable-list/DraggableList.stories.data.d.ts +0 -1
- package/lib/components/draggable-list/utils/models.d.ts +1 -1
- package/lib/components/drawer/Drawer.styles.d.ts +1 -1
- package/lib/components/dynamic-form/DynamicForm.d.ts +0 -1
- package/lib/components/dynamic-form/DynamicForm.styles.d.ts +0 -1
- package/lib/components/dynamic-form/models.d.ts +1 -1
- package/lib/components/empty-state/EmptyState.d.ts +0 -1
- package/lib/components/file-upload/FileListItem.d.ts +0 -1
- package/lib/components/file-upload/FileListItem.styles.d.ts +21 -25
- package/lib/components/file-upload/FileUpload.d.ts +1 -1
- package/lib/components/file-upload/FileUpload.stories.data.d.ts +0 -1
- package/lib/components/file-upload/uploadHelpers.d.ts +12 -0
- package/lib/components/form-controls/FormControl.styles.d.ts +1 -1
- package/lib/components/form-controls/FormControlLabel.styles.d.ts +1 -1
- package/lib/components/form-group/FormGroup.styles.d.ts +1 -1
- package/lib/components/icon/Icon.d.ts +2 -5
- package/lib/components/icon/Icon.styles.d.ts +3 -1
- package/lib/components/inline-edit/InlineEdit.d.ts +0 -1
- package/lib/components/input-form-fields/Input.stories.data.d.ts +0 -1
- package/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +0 -8
- package/lib/components/input-form-fields/InputFormFields.styles.d.ts +3 -5
- package/lib/components/input-form-fields/InputSelect.d.ts +3 -2
- package/lib/components/input-form-fields/InputText.d.ts +7 -15
- package/lib/components/link/Link.d.ts +1 -3
- package/lib/components/link/Link.styles.d.ts +1 -1
- package/lib/components/list/List.d.ts +1 -2
- package/lib/components/list/List.styles.d.ts +1 -1
- package/lib/components/list/ListItem.styles.d.ts +21 -25
- package/lib/components/list/NestedList.styles.d.ts +0 -1
- package/lib/components/list/utils/models.d.ts +1 -9
- package/lib/components/menu/Menu.stories.data.d.ts +0 -1
- package/lib/components/menu/Menu.styles.d.ts +2 -3
- package/lib/components/menu/MenuList.d.ts +2 -2
- package/lib/components/menu/MenuList.styles.d.ts +1 -2
- package/lib/components/navigation-rail/NavigationRail.d.ts +0 -5
- package/lib/components/navigation-rail/NavigationRail.stories.styles.d.ts +0 -2
- package/lib/components/pill/Pill.d.ts +0 -1
- package/lib/components/pill/Pill.styles.d.ts +1 -1
- package/lib/components/popper/Popper.d.ts +1 -1
- package/lib/components/popper/Popper.stories.data.d.ts +0 -1
- package/lib/components/popper/Popper.styles.d.ts +2 -2
- package/lib/components/popper/index.d.ts +1 -1
- package/lib/components/progress/Progress.d.ts +2 -5
- package/lib/components/progress/Progress.styles.d.ts +1 -1
- package/lib/components/progress-button/ProgressButton.d.ts +0 -1
- package/lib/components/radio/RadioButton.styles.d.ts +1 -1
- package/lib/components/radio/RadioGroup.styles.d.ts +1 -1
- package/lib/components/sidebar/Sidebar.stories.data.d.ts +11 -5
- package/lib/components/skeleton/Skeleton.styles.d.ts +1 -1
- package/lib/components/snackbar/Snackbar.styles.d.ts +1 -1
- package/lib/components/snackbar/index.d.ts +1 -1
- package/lib/components/split-button/SplitButton.d.ts +1 -2
- package/lib/components/split-button/SplitButton.styles.d.ts +1 -2
- package/lib/components/switch/Switch.styles.d.ts +1 -1
- package/lib/components/table/Table.data.d.ts +0 -1
- package/lib/components/table/Table.stories.data.d.ts +1 -2
- package/lib/components/table/Table.styles.d.ts +2 -4
- package/lib/components/table/TableActions.d.ts +0 -1
- package/lib/components/table/TableActions.styles.d.ts +0 -1
- package/lib/components/table/TableBody.styles.d.ts +1 -1
- package/lib/components/table/TableBodyCheckboxCell.styles.d.ts +1 -1
- package/lib/components/table/TableCell.styles.d.ts +1 -1
- package/lib/components/table/TableHeader.d.ts +1 -4
- package/lib/components/table/TableHeaderCell.d.ts +1 -3
- package/lib/components/table/TableHeaderCell.styles.d.ts +1 -1
- package/lib/components/table/TableHeaderCheckboxCell.styles.d.ts +1 -1
- package/lib/components/table/TablePagination.d.ts +3 -3
- package/lib/components/table/TableRow.styles.d.ts +1 -1
- package/lib/components/table/TableSelectionToolbar.styles.d.ts +0 -1
- package/lib/components/table/utils/helpers.d.ts +1 -3
- package/lib/components/table/utils/models.d.ts +1 -1
- package/lib/components/tabs/Tabs.d.ts +1 -2
- package/lib/components/tabs/Tabs.styles.d.ts +1 -1
- package/lib/components/truncate-with-tooltip/TruncateWithTooltip.d.ts +0 -1
- package/lib/components/truncate-with-tooltip/TruncateWithTooltip.styles.d.ts +1 -1
- package/lib/components/typography/Typography.d.ts +2 -4
- package/lib/testing-utils/index.d.ts +2 -2
- package/lib/theme-provider/ThemeProvider.d.ts +4 -7
- package/lib/theme-provider/colors/light-theme-colors.d.ts +1 -2
- package/package.json +4 -5
- package/lib/components/input-form-fields/InputLabel.d.ts +0 -17
- package/lib/components/navigation-rail/NavigationRail.stories.data.d.ts +0 -9
|
@@ -17,8 +17,6 @@ export interface BaseButtonProps extends CommonProps {
|
|
|
17
17
|
onClick?: (event: MouseEvent<Element> | KeyboardEvent<Element>) => void;
|
|
18
18
|
/** The size of the button */
|
|
19
19
|
size?: ButtonSize;
|
|
20
|
-
/** The use of `titleTooltip` is deprecated and will be removed in the next major release. */
|
|
21
|
-
titleTooltip?: string;
|
|
22
20
|
/** Help text to be displayed on hover */
|
|
23
21
|
tooltip?: string;
|
|
24
22
|
/** The type of button */
|
|
@@ -5,8 +5,6 @@ export interface AccordionProps extends CommonProps {
|
|
|
5
5
|
actions?: ReactNode;
|
|
6
6
|
/** The content for the Accordion.*/
|
|
7
7
|
children: ReactNode;
|
|
8
|
-
/** DEPRECATED, DO NOT USE */
|
|
9
|
-
defaultExpanded?: boolean;
|
|
10
8
|
/** If true, the accordion will be displayed in a disabled state. */
|
|
11
9
|
disabled?: boolean;
|
|
12
10
|
/** If true, the accordion is expanded. */
|
|
@@ -27,4 +25,4 @@ export interface AccordionProps extends CommonProps {
|
|
|
27
25
|
/** The text within the expanded Accordion */
|
|
28
26
|
summary: ReactNode | string;
|
|
29
27
|
}
|
|
30
|
-
export declare const DotAccordion: ({ actions, ariaLabel, children, className, "data-testid": dataTestId,
|
|
28
|
+
export declare const DotAccordion: ({ actions, ariaLabel, children, className, "data-testid": dataTestId, disabled, expanded, hasElevation, onChange, square, startIcon, summary, noWrap, }: AccordionProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accordion } from '@material
|
|
1
|
+
import { Accordion } from '@mui/material';
|
|
2
2
|
export declare const rootClassName = "dot-accordion";
|
|
3
3
|
export declare const summaryClassName = "dot-accordion-summary";
|
|
4
4
|
export declare const detailClassName = "dot-accordion-details";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-action-toolbar";
|
|
2
|
-
export declare const StyledToolbar: import("styled-components").StyledComponent<import("@material
|
|
2
|
+
export declare const StyledToolbar: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ToolbarTypeMap<{}, "div">>, any, {}, never>;
|
|
@@ -9,11 +9,9 @@ export interface AlertBannerProps extends CommonProps {
|
|
|
9
9
|
children: ReactNode | string;
|
|
10
10
|
/** callback which is triggered when alert banner is closed */
|
|
11
11
|
onClose?: (event: MouseEvent) => void;
|
|
12
|
-
/** If true, the alert banner will have rounded corners */
|
|
13
|
-
roundedCorners?: boolean;
|
|
14
12
|
/** will determine color and icon being used */
|
|
15
13
|
severity: AlertBannerSeverity;
|
|
16
14
|
/** when specified, will control the text that is used inside the alert banner */
|
|
17
15
|
textVariant?: TypographyVariant;
|
|
18
16
|
}
|
|
19
|
-
export declare const DotAlertBanner: ({ action, ariaLabel, children, className, "data-testid": dataTestId, onClose,
|
|
17
|
+
export declare const DotAlertBanner: ({ action, ariaLabel, children, className, "data-testid": dataTestId, onClose, severity, textVariant, }: AlertBannerProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alert } from '@material
|
|
1
|
+
import { Alert } from '@mui/material';
|
|
2
2
|
import { AlertBannerProps } from './AlertBanner';
|
|
3
3
|
export declare const rootClassName = "dot-alert-banner";
|
|
4
4
|
export declare const StyledAlertBanner: import("styled-components").StyledComponent<typeof Alert, any, AlertBannerProps, never>;
|
|
@@ -19,8 +19,6 @@ export interface AppToolbarProps extends CommonProps {
|
|
|
19
19
|
appLogoHref?: string;
|
|
20
20
|
/** If provided will display application logo */
|
|
21
21
|
appLogoSmall?: ReactNode;
|
|
22
|
-
/** DEPRECATED, DO NOT USE */
|
|
23
|
-
appName?: string;
|
|
24
22
|
/** User avatar component */
|
|
25
23
|
avatar?: ReactNode;
|
|
26
24
|
/** Control the bottom border of the toolbar, accepts any valid */
|
|
@@ -44,4 +42,4 @@ export interface AppToolbarProps extends CommonProps {
|
|
|
44
42
|
/** URL of the page the primary logo link will go to */
|
|
45
43
|
primaryLogoHref?: string;
|
|
46
44
|
}
|
|
47
|
-
export declare const DotAppToolbar: ({
|
|
45
|
+
export declare const DotAppToolbar: ({ appLogo, appLogoHref, appLogoSmall, ariaLabel, avatar, borderColor, children, className, closeMenuOnItemClick, customLogo, "data-testid": dataTestId, dense, navItems, mainMenu, mainMenuItems, mainMenuWidth, primaryLogoHref, }: AppToolbarProps) => JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const rootClassName = "dot-app-toolbar";
|
|
3
2
|
export declare const denseClassName = "dense";
|
|
4
3
|
export declare const StyledMainMenu: import("styled-components").StyledComponent<({ anchor, ariaLabel, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode, Ref } from 'react';
|
|
2
|
-
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@material
|
|
2
|
+
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@mui/material';
|
|
3
3
|
import { CommonProps } from '../CommonProps';
|
|
4
4
|
export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
|
|
5
5
|
export interface ActionItem {
|
|
@@ -73,7 +73,7 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
73
73
|
/** Placeholder text always displayed inside the input field */
|
|
74
74
|
placeholder?: string;
|
|
75
75
|
/** Render the option, use `getOptionLabel` by default. */
|
|
76
|
-
renderOption?: (option: T, state: AutocompleteRenderOptionState) => ReactNode;
|
|
76
|
+
renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, option: T, state: AutocompleteRenderOptionState) => ReactNode;
|
|
77
77
|
/** Render the selected value. */
|
|
78
78
|
renderTags?: (value: T[], getTagProps: AutocompleteGetTagProps) => ReactNode;
|
|
79
79
|
/** If true, the input will be required and label will display accordingly */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const selectedAutocompleteClassName = "dot-selected-autocomplete-items";
|
|
2
|
+
export declare const autocompleteWithRenderClassName = "dot-autocomplete-with-render";
|
|
2
3
|
export declare const autocompleteWithoutChipsClassName = "dot-autocomplete-without-chips";
|
|
3
4
|
export declare const autocompleteWithNullValueClassName = "dot-autocomplete-with-null-value";
|
|
5
|
+
export declare const StyledAutoCompleteWithRender: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
4
6
|
export declare const StyledSelectedAutocompleteItems: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
7
|
export declare const StyledAutocompleteWithoutChips: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
8
|
export declare const StyledAutocompleteWithNullValue: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Autocomplete } from '@material
|
|
1
|
+
import { Autocomplete } from '@mui/material';
|
|
2
2
|
export declare const rootClassName = "dot-autocomplete";
|
|
3
3
|
export declare const inputRootClassName = "dot-input-root";
|
|
4
4
|
export declare const inputMediumClassName = "dot-input-medium";
|
|
@@ -23,6 +23,7 @@ export declare const actionItemArgType: {
|
|
|
23
23
|
};
|
|
24
24
|
export interface AutoCompleteWithRenderOption extends AutoCompleteOption {
|
|
25
25
|
imageUrl: string;
|
|
26
|
+
uid: number;
|
|
26
27
|
}
|
|
27
28
|
export declare const fullNameOptions: AutoCompleteWithRenderOption[];
|
|
28
29
|
export interface SelectedAutocompleteItemsProps extends CommonProps {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { AutocompleteGetTagProps } from '@material-ui/lab';
|
|
1
|
+
import { AutocompleteGetTagProps } from '@mui/material';
|
|
3
2
|
import { ChipSize } from '../../chip/Chip';
|
|
4
3
|
import { AutoCompleteOption, AutoCompleteValue } from '../AutoComplete';
|
|
5
4
|
export declare const parseAutoCompleteValue: (value: AutoCompleteValue) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AvatarProps } from './Avatar';
|
|
2
2
|
export declare const rootClassName = "dot-avatar";
|
|
3
|
-
export declare const StyledAvatar: import("styled-components").StyledComponent<import("@material
|
|
3
|
+
export declare const StyledAvatar: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").AvatarTypeMap<{}, "div">>, any, AvatarProps, never>;
|
|
@@ -2,5 +2,5 @@ export declare const rootClassName = "dot-badge";
|
|
|
2
2
|
interface StyledBadgeProps {
|
|
3
3
|
$badgeColor?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const StyledBadge: import("styled-components").StyledComponent<import("@material
|
|
5
|
+
export declare const StyledBadge: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BadgeTypeMap<"span", {}>>, any, StyledBadgeProps, never>;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
3
|
import { LinkUnderline } from '../link/Link';
|
|
4
4
|
export declare type BreadcrumbItem = {
|
|
@@ -21,7 +21,5 @@ export interface BreadcrumbProps extends CommonProps {
|
|
|
21
21
|
items: Array<BreadcrumbItem>;
|
|
22
22
|
/** determines the maximum number of items to display */
|
|
23
23
|
maxItems?: number;
|
|
24
|
-
/** DEPRECATED, DO NOT USE */
|
|
25
|
-
minWidth?: number;
|
|
26
24
|
}
|
|
27
|
-
export declare const DotBreadcrumbs: ({ className, "data-testid": dataTestId, expansionMenu, items, maxItems,
|
|
25
|
+
export declare const DotBreadcrumbs: ({ className, "data-testid": dataTestId, expansionMenu, items, maxItems, }: BreadcrumbProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-breadcrumbs";
|
|
2
2
|
export declare const breadcrumbsWrapperClass = "dot-breadcrumbs-wrapper";
|
|
3
3
|
export declare const StyledBreadcrumbsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const StyledBreadcrumbs: import("styled-components").StyledComponent<import("@material
|
|
4
|
+
export declare const StyledBreadcrumbs: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BreadcrumbsTypeMap<{}, "nav">>, any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MutableRefObject, ReactElement } from 'react';
|
|
2
2
|
import { BreadcrumbItem } from '../Breadcrumbs';
|
|
3
3
|
export interface BreadcrumbItemRefs {
|
|
4
4
|
firstItemRef: MutableRefObject<HTMLDivElement>;
|
|
@@ -10,7 +10,7 @@ export interface BreadcrumbItemsConfig {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const getItemsAfterCollapse: (adjustMaxItems: boolean, visibleItemsNumber: number, maxItems?: number) => number | undefined;
|
|
12
12
|
export declare const getMaxItems: (adjustMaxItems: boolean, visibleItemsNumber: number, maxItems?: number) => number | undefined;
|
|
13
|
-
export declare const getWidthFromRef: <T extends HTMLElement>(ref:
|
|
13
|
+
export declare const getWidthFromRef: <T extends HTMLElement>(ref: MutableRefObject<T>) => number | undefined;
|
|
14
14
|
export declare const checkIfFirstItemAfterCollapse: (currentIndex: number, items: BreadcrumbItem[], itemsAfterCollapse: number) => boolean;
|
|
15
15
|
export declare const getExpandElement: (breadcrumbElement: HTMLElement) => Element;
|
|
16
16
|
export declare const getInitialMaxVisibleItems: (items: BreadcrumbItem[], maxItems?: number) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { BaseButtonProps } from '../BaseButtonProps';
|
|
3
3
|
export interface ButtonProps extends BaseButtonProps {
|
|
4
4
|
/** The text for the button. Button text should be in sentence case. */
|
|
@@ -9,4 +9,4 @@ export interface ButtonProps extends BaseButtonProps {
|
|
|
9
9
|
startIcon?: ReactNode;
|
|
10
10
|
}
|
|
11
11
|
/** This component wraps the Button component from @material-ui. */
|
|
12
|
-
export declare const DotButton:
|
|
12
|
+
export declare const DotButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-button";
|
|
2
|
-
export declare const StyledButton: import("styled-components").StyledComponent<import("@material
|
|
2
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").ButtonTypeMap<{}, "button">>, any, {}, never>;
|
|
@@ -18,9 +18,7 @@ export interface IconButtonProps extends CommonProps {
|
|
|
18
18
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
19
19
|
/** Determines the size of the button and padding around the icon */
|
|
20
20
|
size?: IconButtonSize;
|
|
21
|
-
/** DEPRECATED, DO NOT USE */
|
|
22
|
-
titleTooltip?: string;
|
|
23
21
|
/** Help text to be displayed on icon hover */
|
|
24
22
|
tooltip?: string;
|
|
25
23
|
}
|
|
26
|
-
export declare const DotIconButton: ({ ariaLabel, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick,
|
|
24
|
+
export declare const DotIconButton: ({ ariaLabel, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick, tooltip, size, }: IconButtonProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-icon-btn";
|
|
2
|
-
export declare const StyledIconButton: import("styled-components").StyledComponent<import("@material
|
|
2
|
+
export declare const StyledIconButton: import("styled-components").StyledComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").IconButtonTypeMap<{}, "button">>, any, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ToggleButtonGroup } from '@material
|
|
1
|
+
import { ToggleButtonGroup } from '@mui/material';
|
|
2
2
|
export declare const rootClassName = "dot-button-toggle";
|
|
3
3
|
export declare const StyledToggleButtonGroup: import("styled-components").StyledComponent<typeof ToggleButtonGroup, any, {}, never>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RadioButtonProps } from '../radio/RadioButton';
|
|
3
2
|
export declare type CheckboxSize = 'medium' | 'small';
|
|
4
3
|
export declare type CheckboxLabelPlacement = 'bottom' | 'end' | 'start';
|
|
@@ -10,4 +9,4 @@ export interface CheckboxProps extends RadioButtonProps {
|
|
|
10
9
|
/** if true the checkbox will display with intermediate */
|
|
11
10
|
indeterminate?: boolean;
|
|
12
11
|
}
|
|
13
|
-
export declare function DotCheckbox({ ariaLabel, ariaLabelledby, checked, className,
|
|
12
|
+
export declare function DotCheckbox({ ariaLabel, ariaLabelledby, checked, className, 'data-testid': dataTestId, disabled, disableRipple, id, indeterminate, inputRef, label, labelPlacement, name, onChange, required, size, value, }: CheckboxProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { RadioGroupBaseProps } from '../radio/RadioGroup';
|
|
3
|
-
import { CheckboxProps } from '
|
|
3
|
+
import { CheckboxProps } from './Checkbox';
|
|
4
4
|
export interface CheckboxGroupProps extends RadioGroupBaseProps {
|
|
5
5
|
/** Array of CheckboxProps to set by default */
|
|
6
6
|
defaultValues?: CheckboxProps[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-chip";
|
|
2
|
-
export declare const StyledChip: import("styled-components").StyledComponent<import("@material
|
|
2
|
+
export declare const StyledChip: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ChipTypeMap<{}, "div">>, any, {}, never>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BreakpointValues } from '@material-ui/core/styles/createBreakpoints';
|
|
1
|
+
import { ReactNode } from 'react';
|
|
3
2
|
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export interface GridOptions {
|
|
4
|
+
lg: number;
|
|
5
|
+
md: number;
|
|
6
|
+
sm: number;
|
|
7
|
+
xl: number;
|
|
8
|
+
xs: number;
|
|
9
|
+
}
|
|
4
10
|
export interface CssGridProps extends CommonProps {
|
|
5
11
|
/** Cells for Grid */
|
|
6
|
-
children?:
|
|
12
|
+
children?: ReactNode | ReactNode[];
|
|
7
13
|
/** Columns gap */
|
|
8
|
-
columnGap?:
|
|
14
|
+
columnGap?: GridOptions;
|
|
9
15
|
/** Columns, overrides columnsBreakpoints */
|
|
10
16
|
columns?: number | string;
|
|
11
17
|
/** Breakpoints for columns */
|
|
12
|
-
columnsBreakpoints?:
|
|
18
|
+
columnsBreakpoints?: GridOptions;
|
|
13
19
|
/** Overall gap column and row */
|
|
14
20
|
gap?: string;
|
|
15
21
|
/** Template to create layout */
|
|
@@ -17,15 +23,15 @@ export interface CssGridProps extends CommonProps {
|
|
|
17
23
|
/** Height of the grid */
|
|
18
24
|
height?: string;
|
|
19
25
|
/** Row, overrides columnsBreakpoints */
|
|
20
|
-
rowGap?:
|
|
26
|
+
rowGap?: GridOptions;
|
|
21
27
|
/** Row, configuration */
|
|
22
28
|
rows?: number | string;
|
|
23
29
|
/** Width of the grid */
|
|
24
30
|
width?: string;
|
|
25
31
|
}
|
|
26
32
|
export declare const rootClassName = "dot-grid";
|
|
27
|
-
export declare const defaultGutter:
|
|
28
|
-
export declare const defaultColumns:
|
|
33
|
+
export declare const defaultGutter: GridOptions;
|
|
34
|
+
export declare const defaultColumns: GridOptions;
|
|
29
35
|
export declare const Grid: ({ className, children }: CssGridProps) => JSX.Element;
|
|
30
36
|
export declare const StyledGrid: import("styled-components").StyledComponent<({ className, children }: CssGridProps) => JSX.Element, any, {}, never>;
|
|
31
37
|
export declare const CssGrid: (props: CssGridProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-divider";
|
|
2
|
-
export declare const StyledDivider: import("styled-components").StyledComponent<import("@material
|
|
2
|
+
export declare const StyledDivider: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").DividerTypeMap<{}, "hr">>, any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Drawer } from '@material
|
|
1
|
+
import { Drawer } from '@mui/material';
|
|
2
2
|
import { DrawerProps } from './Drawer';
|
|
3
3
|
export declare const rootClassName = "dot-drawer";
|
|
4
4
|
export declare const StyledDrawer: import("styled-components").StyledComponent<typeof Drawer, any, DrawerProps, never>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const rootClassName = "dot-dynamic-form";
|
|
3
2
|
export declare const StyledDynamicForm: import("styled-components").StyledComponent<({ ariaLabel, children, className, "data-testid": dataTestId, onSubmit, }: import("../form/Form").FormProps) => JSX.Element, any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { AutoCompleteProps } from '../auto-complete
|
|
2
|
+
import { AutoCompleteProps } from '../auto-complete';
|
|
3
3
|
import { ButtonProps } from '../button/Button';
|
|
4
4
|
import { CheckboxProps } from '../checkbox/Checkbox';
|
|
5
5
|
import { InputTextProps } from '../input-form-fields/InputText';
|
|
@@ -1,40 +1,36 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const rootClassName = "dot-file-list-item";
|
|
3
|
-
export declare const StyledFileListItem:
|
|
4
|
-
button?: false;
|
|
5
|
-
}, "li">> & ((props: {
|
|
3
|
+
export declare const StyledFileListItem: ((props: {
|
|
6
4
|
href: string;
|
|
7
5
|
} & {
|
|
8
6
|
button: true;
|
|
9
|
-
} & {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
divider?: boolean;
|
|
19
|
-
focusVisibleClassName?: string;
|
|
20
|
-
selected?: boolean;
|
|
21
|
-
} & {
|
|
22
|
-
action?: import("react").Ref<import("@material-ui/core").ButtonBaseActions>;
|
|
23
|
-
buttonRef?: import("react").Ref<unknown>;
|
|
7
|
+
} & import("@mui/material").ListItemBaseProps & {
|
|
8
|
+
components?: {
|
|
9
|
+
Root?: import("react").ElementType<any>;
|
|
10
|
+
};
|
|
11
|
+
componentsProps?: {
|
|
12
|
+
root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
|
|
13
|
+
};
|
|
14
|
+
} & Omit<{
|
|
15
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions>;
|
|
24
16
|
centerRipple?: boolean;
|
|
25
17
|
children?: import("react").ReactNode;
|
|
18
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses>;
|
|
26
19
|
disabled?: boolean;
|
|
27
20
|
disableRipple?: boolean;
|
|
28
21
|
disableTouchRipple?: boolean;
|
|
29
22
|
focusRipple?: boolean;
|
|
30
23
|
focusVisibleClassName?: string;
|
|
24
|
+
LinkComponent?: import("react").ElementType<any>;
|
|
31
25
|
onFocusVisible?: import("react").FocusEventHandler<any>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, "
|
|
26
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
27
|
+
tabIndex?: number;
|
|
28
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
|
|
29
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
|
|
30
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
37
31
|
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
38
|
-
}, "
|
|
32
|
+
}, "button" | "style" | "className" | "classes" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "autoFocus" | "ContainerComponent" | "ContainerProps" | "dense" | "disableGutters" | "disablePadding" | "divider" | "secondaryAction" | "selected" | "components" | "componentsProps">) => JSX.Element) & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ExtendButtonBaseTypeMap<import("@mui/material").ListItemTypeMap<{
|
|
39
33
|
button: true;
|
|
40
|
-
}, "div"
|
|
34
|
+
}, "div">>> & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ListItemTypeMap<{
|
|
35
|
+
button?: false;
|
|
36
|
+
}, "li">>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FileWithPath } from 'react-dropzone';
|
|
2
|
+
export interface MappedFile {
|
|
3
|
+
errors: Array<FileUploadError>;
|
|
4
|
+
file: FileWithPath;
|
|
5
|
+
}
|
|
6
|
+
export interface FileUploadError {
|
|
7
|
+
code: string;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const parseListItem: (deleteFile: (file: FileWithPath) => void, fileToBeParsed: MappedFile, maxSize: number) => {
|
|
11
|
+
child: JSX.Element;
|
|
12
|
+
};
|
|
@@ -3,4 +3,4 @@ export declare const groupLabelClassName = "dot-form-group-label";
|
|
|
3
3
|
export declare const startAdornmentClassName = "dot-start-adornment";
|
|
4
4
|
export declare const endAdornmentClassName = "dot-end-adornment";
|
|
5
5
|
export declare const placementClassName = "dot-";
|
|
6
|
-
export declare const StyledFormControl: import("@material
|
|
6
|
+
export declare const StyledFormControl: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").FormControlTypeMap<{}, "div">>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormControlLabel } from '@material
|
|
1
|
+
import { FormControlLabel } from '@mui/material';
|
|
2
2
|
export declare const rootClassName = "dot-form-control-label";
|
|
3
3
|
export declare const StyledFormControlLabel: import("styled-components").StyledComponent<typeof FormControlLabel, any, {}, never>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export declare type IconFontSize = '
|
|
2
|
+
export declare type IconFontSize = 'small' | 'medium';
|
|
4
3
|
export interface IconProps extends CommonProps {
|
|
5
4
|
/** Determines the size of the icon and spacing around it */
|
|
6
5
|
fontSize?: IconFontSize;
|
|
7
6
|
/** The ID of the icon to display on the button */
|
|
8
7
|
iconId: string;
|
|
9
|
-
/** DEPRECATED, DO NOT USE */
|
|
10
|
-
title?: string;
|
|
11
8
|
/** Tooltip text displayed on hover */
|
|
12
9
|
tooltip?: string;
|
|
13
10
|
}
|
|
14
|
-
export declare const DotIcon: ({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId,
|
|
11
|
+
export declare const DotIcon: ({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-icon";
|
|
2
|
-
export declare const StyledIcon: import("styled-components").StyledComponent<import("@material
|
|
2
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").IconTypeMap<{}, "span">> & {
|
|
3
|
+
muiName: string;
|
|
4
|
+
}, any, {}, never>;
|