@digital-ai/dot-components 2.8.2 → 2.10.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/CHANGE_LOG.md +44 -17
- package/index.esm.js +144 -78
- package/index.umd.js +142 -74
- package/lib/components/accordion/Accordion.stories.d.ts +5 -5
- package/lib/components/accordion/Accordion.styles.d.ts +1 -2
- package/lib/components/app-switcher/AppSwitcher.d.ts +1 -1
- package/lib/components/app-switcher/AppSwitcher.stories.d.ts +5 -0
- package/lib/components/auto-complete/AutoComplete.d.ts +1 -16
- package/lib/components/auto-complete/AutoComplete.stories.d.ts +2 -1
- package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +2 -1
- package/lib/components/auto-complete/index.d.ts +1 -0
- package/lib/components/auto-complete/utils/helpers.d.ts +1 -1
- package/lib/components/auto-complete/utils/interface.d.ts +17 -0
- package/lib/components/avatar/Avatar.d.ts +3 -1
- package/lib/components/avatar/Avatar.stories.d.ts +6 -5
- package/lib/components/badge/Badge.stories.d.ts +5 -5
- package/lib/components/checkbox/Checkbox.stories.d.ts +6 -6
- package/lib/components/checkbox/CheckboxGroup.stories.d.ts +3 -3
- package/lib/components/chip/Chip.stories.d.ts +5 -5
- package/lib/components/dynamic-form/utils/formHelpers.d.ts +1 -1
- package/lib/components/file-upload/FileListItem.styles.d.ts +7 -1
- package/lib/components/file-upload/FileUpload.stories.d.ts +5 -5
- package/lib/components/inline-edit/InlineEdit.d.ts +3 -1
- package/lib/components/inline-edit/InlineEdit.stories.d.ts +6 -6
- package/lib/components/inline-edit/InlineEdit.styles.d.ts +1 -0
- package/lib/components/input-form-fields/InputFormFields.styles.d.ts +2 -2
- package/lib/components/linear-progress/LinearProgress.stories.d.ts +2 -2
- package/lib/components/list/List.stories.d.ts +3 -3
- package/lib/components/list/ListItem.styles.d.ts +7 -1
- package/lib/components/menu/Menu.styles.d.ts +10 -1
- package/lib/components/popper/Popper.styles.d.ts +10 -1
- package/lib/components/progress/Progress.stories.d.ts +2 -2
- package/lib/components/radio/RadioGroup.stories.d.ts +2 -2
- package/lib/components/snackbar/Snackbar.stories.d.ts +3 -3
- package/lib/components/split-button/SplitButton.stories.d.ts +6 -6
- package/lib/components/stepper/Stepper.stories.d.ts +7 -7
- package/lib/components/switch/Switch.stories.d.ts +9 -9
- package/lib/components/table/Table.stories.d.ts +6 -6
- package/lib/components/table/TableCell.d.ts +3 -2
- package/lib/components/truncate-with-tooltip/TruncateWithTooltip.stories.d.ts +5 -5
- package/lib/components/typography/Typography.stories.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { AccordionProps } from './Accordion';
|
|
3
3
|
declare const _default: ComponentMeta<({ actions, ariaLabel, children, className, "data-testid": dataTestId, disabled, expanded, hasElevation, onChange, square, startIcon, summary, noWrap, }: AccordionProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithExpanded:
|
|
7
|
-
export declare const WithStartIcons:
|
|
8
|
-
export declare const WithNoWrap:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithExpanded: any;
|
|
7
|
+
export declare const WithStartIcons: any;
|
|
8
|
+
export declare const WithNoWrap: any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Accordion } from '@mui/material';
|
|
2
1
|
export declare const rootClassName = "dot-accordion";
|
|
3
2
|
export declare const summaryClassName = "dot-accordion-summary";
|
|
4
3
|
export declare const detailClassName = "dot-accordion-details";
|
|
5
|
-
export declare const StyledAccordion: import("styled-components").StyledComponent<
|
|
4
|
+
export declare const StyledAccordion: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").AccordionTypeMap<{}, "div">>, any, {}, never>;
|
|
@@ -21,7 +21,7 @@ interface AppSwitcherViewProps extends CommonAppSwitcherProps {
|
|
|
21
21
|
selectedAppType: string;
|
|
22
22
|
}
|
|
23
23
|
export declare const DotAppSwitcherView: ({ activeApp, apps, className, maxRecentInstances, noAppTypeLabel, platformConsoleUrl, onClose, open, searchInstancesThreshold, selectedAppType, yOffset, zIndex, }: AppSwitcherViewProps) => JSX.Element;
|
|
24
|
-
interface AppSwitcherProps extends CommonAppSwitcherProps {
|
|
24
|
+
export interface AppSwitcherProps extends CommonAppSwitcherProps {
|
|
25
25
|
accountId?: string;
|
|
26
26
|
includePlatformConsole?: boolean;
|
|
27
27
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { AppSwitcherProps } from './AppSwitcher';
|
|
3
|
+
declare const _default: ComponentMeta<({ accountId, includePlatformConsole, onClose, ...commonProps }: AppSwitcherProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<AppSwitcherProps>;
|
|
@@ -2,23 +2,8 @@ import { ChangeEvent, FocusEvent, HTMLAttributes, JSXElementConstructor, ReactNo
|
|
|
2
2
|
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
|
|
3
3
|
import { CommonProps } from '../CommonProps';
|
|
4
4
|
import { inputSizeOptions } from '../input-form-fields/InputFormFields.propTypes';
|
|
5
|
+
import { ActionItem, AutoCompleteOption, AutoCompleteValue } from './utils/interface';
|
|
5
6
|
export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
|
|
6
|
-
export interface ActionItem {
|
|
7
|
-
/** The icon to display on the button */
|
|
8
|
-
iconId?: string;
|
|
9
|
-
/** Event callback */
|
|
10
|
-
onClick: (inputText?: string) => void;
|
|
11
|
-
/** If set to true, it will prevent duplicate item insertion */
|
|
12
|
-
preventDuplicateInsertion?: boolean;
|
|
13
|
-
/** Text/Node displayed */
|
|
14
|
-
text?: string | ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare type AutoCompleteValue = string | string[] | AutoCompleteOption | AutoCompleteOption[] | null;
|
|
17
|
-
export interface AutoCompleteOption {
|
|
18
|
-
error?: boolean;
|
|
19
|
-
group?: string;
|
|
20
|
-
title: string;
|
|
21
|
-
}
|
|
22
7
|
/**
|
|
23
8
|
* AutoCompleteOption can be extended for the use case when customizing
|
|
24
9
|
* autocomplete option rendering by using `renderOption` prop.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { AutoCompleteProps } from './AutoComplete';
|
|
3
|
+
import { AutoCompleteOption } from './utils/interface';
|
|
3
4
|
import { AutoCompleteWithRenderOption } from './Autocomplete.stories.data';
|
|
4
5
|
declare const _default: ComponentMeta<(<T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element)>;
|
|
5
6
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AutoCompleteProps } from './AutoComplete';
|
|
3
|
+
import { ActionItem, AutoCompleteOption, AutoCompleteValue } from './utils/interface';
|
|
3
4
|
import { CommonProps } from '../CommonProps';
|
|
4
5
|
export declare const movies: AutoCompleteOption[];
|
|
5
6
|
export declare const handleActionItemClick: (newItem?: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AutocompleteGetTagProps } from '@mui/material';
|
|
2
2
|
import { ChipSize } from '../../chip/Chip';
|
|
3
|
-
import { AutoCompleteOption, AutoCompleteValue } from '
|
|
3
|
+
import { AutoCompleteOption, AutoCompleteValue } from './interface';
|
|
4
4
|
export declare const parseAutoCompleteValue: (value: AutoCompleteValue) => string;
|
|
5
5
|
export interface GetChipsFromAutocompleteProps {
|
|
6
6
|
chipSize?: ChipSize;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ActionItem {
|
|
3
|
+
/** The icon to display on the button */
|
|
4
|
+
iconId?: string;
|
|
5
|
+
/** Event callback */
|
|
6
|
+
onClick: (inputText?: string) => void;
|
|
7
|
+
/** If set to true, it will prevent duplicate item insertion */
|
|
8
|
+
preventDuplicateInsertion?: boolean;
|
|
9
|
+
/** Text/Node displayed */
|
|
10
|
+
text?: string | ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare type AutoCompleteValue = string | string[] | AutoCompleteOption | AutoCompleteOption[] | null;
|
|
13
|
+
export interface AutoCompleteOption {
|
|
14
|
+
error?: boolean;
|
|
15
|
+
group?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}
|
|
@@ -15,6 +15,8 @@ export interface AvatarProps extends CommonProps {
|
|
|
15
15
|
iconId?: string;
|
|
16
16
|
/** Source for the image used for the avatar */
|
|
17
17
|
imageSrc?: string;
|
|
18
|
+
/** The number to be displayed. Only the first 2 digits will be displayed */
|
|
19
|
+
number?: number;
|
|
18
20
|
/** Event callback */
|
|
19
21
|
onClick?: (event: MouseEvent) => void;
|
|
20
22
|
/** Size of avatar displayed */
|
|
@@ -32,4 +34,4 @@ export interface AvatarProps extends CommonProps {
|
|
|
32
34
|
/** The shape of the avatar */
|
|
33
35
|
variant?: AvatarVariant;
|
|
34
36
|
}
|
|
35
|
-
export declare const DotAvatar: ({ alt, ariaLabel, ariaRole, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element;
|
|
37
|
+
export declare const DotAvatar: ({ alt, ariaLabel, ariaRole, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, number, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { AvatarProps } from './Avatar';
|
|
3
|
-
declare const _default: ComponentMeta<({ alt, ariaLabel, ariaRole, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element>;
|
|
3
|
+
declare const _default: ComponentMeta<({ alt, ariaLabel, ariaRole, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, number, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const AvatarButton:
|
|
7
|
-
export declare const
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const AvatarButton: any;
|
|
7
|
+
export declare const WithNumber: any;
|
|
8
|
+
export declare const WithTooltip: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { BadgeProps } from './Badge';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, badgeColor, badgeContent, children, className, "data-testid": dataTestId, invisible, max, overlap, variant, }: BadgeProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithNotification:
|
|
7
|
-
export declare const WithNotificationNumber:
|
|
8
|
-
export declare const WithMaxNumber:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithNotification: any;
|
|
7
|
+
export declare const WithNotificationNumber: any;
|
|
8
|
+
export declare const WithMaxNumber: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentMeta
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { CheckboxProps, DotCheckbox } from './Checkbox';
|
|
3
3
|
declare const _default: ComponentMeta<typeof DotCheckbox>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithSmallSize:
|
|
7
|
-
export declare const WithStartLabelPlacement:
|
|
8
|
-
export declare const WithBottomLabelPlacement:
|
|
9
|
-
export declare const WithIndeterminateOption:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithSmallSize: any;
|
|
7
|
+
export declare const WithStartLabelPlacement: any;
|
|
8
|
+
export declare const WithBottomLabelPlacement: any;
|
|
9
|
+
export declare const WithIndeterminateOption: (args: CheckboxProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DotCheckboxGroup
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { DotCheckboxGroup } from './CheckboxGroup';
|
|
3
3
|
declare const _default: ComponentMeta<typeof DotCheckboxGroup>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
5
|
+
export declare const Default: any;
|
|
6
6
|
export declare const WithHelperText: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { ChipProps } from './Chip';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, avatar, charactersLimit, children, className, "data-testid": dataTestId, disabled, error, isClickable, isDeletable, onClick, onDelete, size, startIcon, }: ChipProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const ChipWithAvatar:
|
|
7
|
-
export declare const ChipWithIcon:
|
|
8
|
-
export declare const ChipWithLongText:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const ChipWithAvatar: any;
|
|
7
|
+
export declare const ChipWithIcon: any;
|
|
8
|
+
export declare const ChipWithLongText: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { ControlClickHandler, DynamicFormConfig, DynamicFormControl, DynamicFormControlProps, DynamicFormOutputData, DynamicFormState, DynamicFormStateData, DynamicFormStateItem } from '../models';
|
|
3
|
-
import { AutoCompleteValue } from '../../auto-complete/
|
|
3
|
+
import { AutoCompleteValue } from '../../auto-complete/';
|
|
4
4
|
import { CheckboxProps } from '../../checkbox/Checkbox';
|
|
5
5
|
declare type AutoCompleteChangeHandler = (controlName: string) => (e: ChangeEvent<HTMLInputElement>, value: AutoCompleteValue) => void;
|
|
6
6
|
declare type ChangeHandler = (controlName: string) => (e: ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -11,6 +11,12 @@ export declare const StyledFileListItem: ((props: {
|
|
|
11
11
|
componentsProps?: {
|
|
12
12
|
root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
|
|
13
13
|
};
|
|
14
|
+
slotProps?: {
|
|
15
|
+
root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
|
|
16
|
+
};
|
|
17
|
+
slots?: {
|
|
18
|
+
root?: import("react").ElementType<any>;
|
|
19
|
+
};
|
|
14
20
|
} & Omit<{
|
|
15
21
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions>;
|
|
16
22
|
centerRipple?: boolean;
|
|
@@ -29,7 +35,7 @@ export declare const StyledFileListItem: ((props: {
|
|
|
29
35
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
|
|
30
36
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
31
37
|
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
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<{
|
|
38
|
+
}, "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" | "slotProps" | "slots">) => JSX.Element) & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ExtendButtonBaseTypeMap<import("@mui/material").ListItemTypeMap<{
|
|
33
39
|
button: true;
|
|
34
40
|
}, "div">>> & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ListItemTypeMap<{
|
|
35
41
|
button?: false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentMeta
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { FileUploadProps } from './';
|
|
3
3
|
declare const _default: ComponentMeta<({ accept, ariaLabel, ariaRole, buttonOnly, className, "data-testid": dataTestId, disabled, hideFilesList, maxFiles, maxSize, onChange, onDragEnter, onFileClick, }: FileUploadProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithSingleFileLimit:
|
|
7
|
-
export declare const WithCustomFileUploadList:
|
|
8
|
-
export declare const WithUploadErrors:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithSingleFileLimit: any;
|
|
7
|
+
export declare const WithCustomFileUploadList: (args: FileUploadProps) => JSX.Element;
|
|
8
|
+
export declare const WithUploadErrors: (args: FileUploadProps) => JSX.Element;
|
|
@@ -16,6 +16,8 @@ export interface InlineEditProps extends CommonProps {
|
|
|
16
16
|
onChange?: (value: string) => Promise<boolean>;
|
|
17
17
|
/** A function that informs the parent of current editing state */
|
|
18
18
|
onEditStateChange?: (editing: boolean) => void;
|
|
19
|
+
/** If provided will display placeholder text when field is empty */
|
|
20
|
+
placeholder?: string;
|
|
19
21
|
/** If true, component will behave like a regular text (editing functionality will be disabled). */
|
|
20
22
|
readOnly?: boolean;
|
|
21
23
|
/** If true, when starting edit it will select all text in the input */
|
|
@@ -34,4 +36,4 @@ export interface InlineEditProps extends CommonProps {
|
|
|
34
36
|
/**
|
|
35
37
|
* @experimental This component is still in development
|
|
36
38
|
*/
|
|
37
|
-
export declare const DotInlineEdit: ({ ariaLabel, ariaRole, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element;
|
|
39
|
+
export declare const DotInlineEdit: ({ ariaLabel, ariaRole, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, placeholder, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ComponentMeta
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { InlineEditProps } from './InlineEdit';
|
|
3
|
-
declare const _default: ComponentMeta<({ ariaLabel, ariaRole, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element>;
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, ariaRole, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, placeholder, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
5
|
+
export declare const Default: any;
|
|
6
6
|
export declare const WithCharactersLimit: any;
|
|
7
|
+
export declare const WithPlaceholder: any;
|
|
7
8
|
export declare const WithMultipleLines: any;
|
|
8
9
|
export declare const WithReadOnlyMode: any;
|
|
9
10
|
export declare const WithoutActionButtons: any;
|
|
10
11
|
export declare const WithTooltip: any;
|
|
11
|
-
export declare const WithSaveError:
|
|
12
|
-
export declare const WithCustomTypography: Story<InlineEditProps>;
|
|
12
|
+
export declare const WithSaveError: (args: InlineEditProps) => JSX.Element;
|
|
13
13
|
export declare const WithStartEditable: any;
|
|
14
14
|
export declare const WithSingleBinding: any;
|
|
15
|
-
export declare const WithMultipleBindings:
|
|
15
|
+
export declare const WithMultipleBindings: (args: InlineEditProps) => JSX.Element;
|
|
16
16
|
export declare const WithSelectOnEdit: any;
|
|
@@ -2,6 +2,7 @@ import { TypographyVariant } from '../typography/Typography';
|
|
|
2
2
|
export declare const rootClassName = "dot-inline-edit";
|
|
3
3
|
export declare const editModeClassName = "dot-edit-mode";
|
|
4
4
|
export declare const viewModeClassName = "dot-view-mode";
|
|
5
|
+
export declare const placeholderClassName = "dot-placeholder";
|
|
5
6
|
export declare const readOnlyClassName = "dot-read-only";
|
|
6
7
|
export declare const editActionsClassName = "dot-edit-actions";
|
|
7
8
|
export declare const editTextFieldClassName = "dot-edit-text-field";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextField
|
|
1
|
+
import { TextField } from '@mui/material';
|
|
2
2
|
export declare const rootClassName = "dot-text-field";
|
|
3
3
|
export declare const rootSelectClassName = "dot-select-field";
|
|
4
4
|
export declare const labelClassName = "dot-input-label";
|
|
@@ -8,6 +8,6 @@ export declare const successClassName = "dot-success";
|
|
|
8
8
|
export declare const adornmentIconClassName = "dot-adornment-icon";
|
|
9
9
|
export declare const fieldsetClassName = "MuiOutlinedInput-notchedOutline";
|
|
10
10
|
export declare const StyledAdornment: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").InputAdornmentTypeMap<{}, "div">>, any, {}, never>;
|
|
11
|
-
export declare const StyledInputLabel: import("styled-components").StyledComponent<
|
|
11
|
+
export declare const StyledInputLabel: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").InputLabelTypeMap<{}, "label">>, any, {}, never>;
|
|
12
12
|
export declare const StyledTextFieldContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
13
|
export declare const StyledTextField: import("styled-components").StyledComponent<typeof TextField, any, {}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentMeta
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { LinearProgressProps } from './LinearProgress';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, color, className, "data-testid": dataTestId, value, valueBuffer, variant, }: LinearProgressProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
5
|
+
export declare const Default: any;
|
|
6
6
|
export declare const WithDeterminateVariant: any;
|
|
7
7
|
export declare const WithBufferVariant: any;
|
|
8
8
|
export declare const WithQueryVariant: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { ListProps } from './utils/models';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, ariaRole, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithoutIcons:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithoutIcons: any;
|
|
@@ -13,6 +13,12 @@ export declare const StyledListItem: ((props: {
|
|
|
13
13
|
componentsProps?: {
|
|
14
14
|
root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
|
|
15
15
|
};
|
|
16
|
+
slotProps?: {
|
|
17
|
+
root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
|
|
18
|
+
};
|
|
19
|
+
slots?: {
|
|
20
|
+
root?: import("react").ElementType<any>;
|
|
21
|
+
};
|
|
16
22
|
} & Omit<{
|
|
17
23
|
action?: import("react").Ref<import("@mui/material").ButtonBaseActions>;
|
|
18
24
|
centerRipple?: boolean;
|
|
@@ -31,7 +37,7 @@ export declare const StyledListItem: ((props: {
|
|
|
31
37
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
|
|
32
38
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
33
39
|
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
34
|
-
}, "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<{
|
|
40
|
+
}, "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" | "slotProps" | "slots">) => JSX.Element) & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ExtendButtonBaseTypeMap<import("@mui/material").ListItemTypeMap<{
|
|
35
41
|
button: true;
|
|
36
42
|
}, "div">>> & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ListItemTypeMap<{
|
|
37
43
|
button?: false;
|
|
@@ -5,5 +5,14 @@ interface StyledPopperArgs {
|
|
|
5
5
|
$maxHeight?: number | string;
|
|
6
6
|
}
|
|
7
7
|
export declare const getListMaxHeight: (maxHeight: string | number) => string;
|
|
8
|
-
export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<
|
|
8
|
+
export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperProps<"div">, "direction"> & {
|
|
9
|
+
component?: import("react").ElementType<any>;
|
|
10
|
+
components?: {
|
|
11
|
+
Root?: import("react").ElementType<any>;
|
|
12
|
+
};
|
|
13
|
+
componentsProps?: {
|
|
14
|
+
root?: import("@mui/base").SlotComponentProps<"div", import("@mui/base").PopperRootSlotPropsOverrides, import("@mui/base").PopperOwnProps>;
|
|
15
|
+
};
|
|
16
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
17
|
+
} & import("react").RefAttributes<HTMLDivElement>>, any, StyledPopperArgs, never>;
|
|
9
18
|
export {};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const rootClassName = "dot-popper";
|
|
3
|
-
export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperProps<"div">, "direction"> & {
|
|
4
|
+
component?: import("react").ElementType<any>;
|
|
5
|
+
components?: {
|
|
6
|
+
Root?: import("react").ElementType<any>;
|
|
7
|
+
};
|
|
8
|
+
componentsProps?: {
|
|
9
|
+
root?: import("@mui/base").SlotComponentProps<"div", import("@mui/base").PopperRootSlotPropsOverrides, import("@mui/base").PopperOwnProps>;
|
|
10
|
+
};
|
|
11
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
12
|
+
} & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentMeta
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { ProgressProps } from './Progress';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, color, className, "data-testid": dataTestId, size, thickness, tooltip, value, variant, }: ProgressProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
5
|
+
export declare const Default: any;
|
|
6
6
|
export declare const WithPrimaryColor: any;
|
|
7
7
|
export declare const WithCustomSizeAndThickness: any;
|
|
8
8
|
export declare const WithDeterminateVariant: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { RadioGroupProps } from './RadioGroup';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, ariaRole, className, "data-testid": dataTestId, defaultValue, disableGroup, endIcon, error, helperText, groupLabel, name, labelPlacement, onChange, value, options, startIcon, required, row, size, }: RadioGroupProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
5
|
+
export declare const Default: any;
|
|
6
6
|
export declare const WithHelperText: any;
|
|
7
7
|
export declare const WithRowAndHelperText: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { SnackbarProps } from './';
|
|
3
3
|
declare const _default: ComponentMeta<({ action, anchorOrigin, ariaLabel, children, className, "data-testid": dataTestId, onClose, open, severity, width, }: SnackbarProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithBottomCenterAnchor:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithBottomCenterAnchor: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { SplitButtonProps } from './SplitButton';
|
|
3
3
|
declare const _default: ComponentMeta<({ autoFocus, ariaLabel, className, "data-testid": dataTestId, defaultMainOptionKey, disabled, disablePortal, disableRipple, fullWidth, isSubmit, onOptionClick, options, size, tooltip, type, }: SplitButtonProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithSelectedKey:
|
|
7
|
-
export declare const WithMainOptionDisabled:
|
|
8
|
-
export declare const WithMenuOptionDisabled:
|
|
9
|
-
export declare const WithMenuButtonDisabled:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithSelectedKey: any;
|
|
7
|
+
export declare const WithMainOptionDisabled: any;
|
|
8
|
+
export declare const WithMenuOptionDisabled: any;
|
|
9
|
+
export declare const WithMenuButtonDisabled: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ComponentMeta
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { StepperProps } from './Stepper';
|
|
3
3
|
declare const _default: ComponentMeta<({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithStepDescription:
|
|
7
|
-
export declare const WithHorizontalOrientation:
|
|
8
|
-
export declare const WithErrorStep:
|
|
9
|
-
export declare const WithInitialAndFinalContent:
|
|
10
|
-
export declare const WithStepperListOnRightSide:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithStepDescription: any;
|
|
7
|
+
export declare const WithHorizontalOrientation: any;
|
|
8
|
+
export declare const WithErrorStep: any;
|
|
9
|
+
export declare const WithInitialAndFinalContent: any;
|
|
10
|
+
export declare const WithStepperListOnRightSide: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { SwitchProps } from './';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, checked, className, color, "data-testid": dataTestId, disabled, id, inputRef, label, labelPlacement, onChange, size, }: SwitchProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithSecondaryColor:
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const WithStartLabelPlacement:
|
|
10
|
-
export declare const WithBottomLabelPlacement:
|
|
11
|
-
export declare const WithTopLabelPlacement:
|
|
12
|
-
export declare const WithoutLabel:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithSecondaryColor: any;
|
|
7
|
+
export declare const WithSmallSize: any;
|
|
8
|
+
export declare const WithDisabledState: any;
|
|
9
|
+
export declare const WithStartLabelPlacement: any;
|
|
10
|
+
export declare const WithBottomLabelPlacement: any;
|
|
11
|
+
export declare const WithTopLabelPlacement: any;
|
|
12
|
+
export declare const WithoutLabel: any;
|
|
@@ -2,9 +2,9 @@ import { Story, ComponentMeta } from '@storybook/react';
|
|
|
2
2
|
import { TableProps } from './Table';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, bodyTypography, className, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default: Story
|
|
6
|
-
export declare const LocallyPaginatedTable: Story
|
|
7
|
-
export declare const RemotelyPaginatedTable: Story
|
|
8
|
-
export declare const WithActionMenu: Story
|
|
9
|
-
export declare const WithCheckboxSelection: Story
|
|
10
|
-
export declare const EmptyTable: Story
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const LocallyPaginatedTable: Story;
|
|
7
|
+
export declare const RemotelyPaginatedTable: Story;
|
|
8
|
+
export declare const WithActionMenu: Story;
|
|
9
|
+
export declare const WithCheckboxSelection: Story;
|
|
10
|
+
export declare const EmptyTable: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
3
|
import { TypographyVariant } from '../typography/Typography';
|
|
4
4
|
export declare type TextAlignment = 'center' | 'inherit' | 'justify' | 'left' | 'right';
|
|
@@ -9,10 +9,11 @@ export interface CellProps extends CommonProps {
|
|
|
9
9
|
id?: string;
|
|
10
10
|
noWrap?: boolean;
|
|
11
11
|
onActionMenuTrigger?: (el: HTMLElement, menuItem: Array<ReactNode>) => void;
|
|
12
|
+
style?: CSSProperties;
|
|
12
13
|
typography: TypographyVariant;
|
|
13
14
|
value?: unknown;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* A wrapper component around the TableCell component from @material-ui.
|
|
17
18
|
*/
|
|
18
|
-
export declare const DotBodyCell: ({ ariaLabel, align, cellKey, className, colspan, "data-testid": dataTestId, noWrap, onActionMenuTrigger, typography, value, }: CellProps) => JSX.Element;
|
|
19
|
+
export declare const DotBodyCell: ({ ariaLabel, align, cellKey, className, colspan, "data-testid": dataTestId, noWrap, onActionMenuTrigger, style, typography, value, }: CellProps) => JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentMeta
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { TruncateWithTooltipProps } from './';
|
|
3
3
|
declare const _default: ComponentMeta<({ ariaLabel, charactersLimit, className, "data-testid": dataTestId, label, width, }: TruncateWithTooltipProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Default:
|
|
6
|
-
export declare const WithAutoTruncate:
|
|
7
|
-
export declare const WithWidthAsNumber:
|
|
8
|
-
export declare const WithWidthAsString:
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithAutoTruncate: any;
|
|
7
|
+
export declare const WithWidthAsNumber: any;
|
|
8
|
+
export declare const WithWidthAsString: any;
|