@digital-ai/dot-components 1.1.0 → 1.3.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/README.md +1 -1
- package/dot-components.esm.js +4075 -5126
- package/dot-components.umd.js +4201 -5245
- package/fonts/dot.woff +0 -0
- package/fonts/selection.json +651 -444
- package/lib/components/BaseButtonProps.d.ts +3 -1
- package/lib/components/app-logo/AppLogo.d.ts +11 -0
- package/lib/components/app-toolbar/AppToolbar.d.ts +5 -1
- package/lib/components/app-toolbar/AppToolbar.styles.d.ts +1 -0
- package/lib/components/auto-complete/AutoComplete.d.ts +11 -1
- package/lib/components/avatar/Avatar.d.ts +3 -1
- package/lib/components/badge/Badge.d.ts +14 -0
- package/lib/components/badge/Badge.styles.d.ts +3 -0
- package/lib/components/button/Button.d.ts +2 -2
- package/lib/components/button/IconButton.d.ts +6 -2
- package/lib/components/dynamic-form/DynamicForm.d.ts +11 -0
- package/lib/components/dynamic-form/DynamicForm.styles.d.ts +2 -0
- package/lib/components/dynamic-form/constants.d.ts +4 -0
- package/lib/components/dynamic-form/helpers.d.ts +38 -0
- package/lib/components/dynamic-form/models.d.ts +68 -0
- package/lib/components/dynamic-form/sample.d.ts +4 -0
- package/lib/components/dynamic-form/validation.d.ts +25 -0
- package/lib/components/icon/Icon.d.ts +5 -3
- package/lib/components/index.d.ts +12 -7
- package/lib/components/input-form-fields/InputText.d.ts +4 -1
- package/lib/components/link/Link.d.ts +4 -2
- package/lib/components/list/List.d.ts +17 -5
- package/lib/components/list/List.styles.d.ts +1 -0
- package/lib/components/menu/Menu.d.ts +9 -1
- package/lib/components/menu/Menu.styles.d.ts +1 -0
- package/lib/components/progress/Progress.d.ts +4 -2
- package/lib/components/sidebar/Sidebar.d.ts +9 -1
- package/lib/components/split-button/SplitButton.d.ts +1 -1
- package/lib/components/split-button/SplitButton.styles.d.ts +1 -1
- package/lib/components/table/Table.stories.data.d.ts +13 -5
- package/lib/components/table/Table.styles.d.ts +2 -0
- package/lib/components/table/TableCell.d.ts +4 -2
- package/lib/components/table/TableRow.d.ts +6 -2
- package/lib/components/tooltip/Tooltip.d.ts +9 -0
- package/lib/theme-provider/colors/agility-dark-theme-colors.d.ts +9 -0
- package/lib/theme-provider/colors/agility-light-theme-colors.d.ts +11 -0
- package/lib/theme-provider/colors/light-theme-colors.d.ts +2 -1
- package/package.json +1 -1
|
@@ -17,8 +17,10 @@ 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
|
-
/**
|
|
20
|
+
/** The use of `titleTooltip` is deprecated and will be removed in the next major release. */
|
|
21
21
|
titleTooltip?: string;
|
|
22
|
+
/** Help text to be displayed on hover */
|
|
23
|
+
tooltip?: string;
|
|
22
24
|
/** The type of button */
|
|
23
25
|
type?: ButtonType;
|
|
24
26
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export interface AppLogoProps extends CommonProps {
|
|
4
|
+
/** If provided will display application logo */
|
|
5
|
+
appLogo?: ReactNode;
|
|
6
|
+
/** If provided will display application logo */
|
|
7
|
+
appLogoSmall?: ReactNode;
|
|
8
|
+
/** If true will force the small logo only */
|
|
9
|
+
smallOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const DotAppLogo: ({ appLogo, appLogoSmall, ariaLabel, className, "data-testid": dataTestId, smallOnly, }: AppLogoProps) => JSX.Element;
|
|
@@ -5,6 +5,8 @@ import { ListItemProps } from '../list/List';
|
|
|
5
5
|
export interface AppToolbarProps extends CommonProps {
|
|
6
6
|
/** If provided will display application logo */
|
|
7
7
|
appLogo?: ReactNode;
|
|
8
|
+
/** If provided will display application logo */
|
|
9
|
+
appLogoSmall?: ReactNode;
|
|
8
10
|
/** DEPRECATED, DO NOT USE */
|
|
9
11
|
appName?: string;
|
|
10
12
|
/** User avatar component */
|
|
@@ -15,6 +17,8 @@ export interface AppToolbarProps extends CommonProps {
|
|
|
15
17
|
children?: ReactNode;
|
|
16
18
|
/** Allow to display custom logo */
|
|
17
19
|
customLogo?: ReactNode;
|
|
20
|
+
/** If true, the spacing and height will be shorter */
|
|
21
|
+
dense?: boolean;
|
|
18
22
|
/** If provided will overwrite `mainMenuItems` and display within the main menu drawer */
|
|
19
23
|
mainMenu?: ReactNode;
|
|
20
24
|
/** If provided will display the menu items within the main menu drawer */
|
|
@@ -24,4 +28,4 @@ export interface AppToolbarProps extends CommonProps {
|
|
|
24
28
|
/** Array of nav items to be displayed on the right side */
|
|
25
29
|
navItems?: Array<IconButtonProps>;
|
|
26
30
|
}
|
|
27
|
-
export declare const DotAppToolbar: ({ appName, appLogo, ariaLabel, avatar, borderColor, children, className, customLogo, "data-testid": dataTestId, navItems, mainMenu, mainMenuItems, mainMenuWidth, }: AppToolbarProps) => JSX.Element;
|
|
31
|
+
export declare const DotAppToolbar: ({ appName, appLogo, appLogoSmall, ariaLabel, avatar, borderColor, children, className, customLogo, "data-testid": dataTestId, dense, navItems, mainMenu, mainMenuItems, mainMenuWidth, }: AppToolbarProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const rootClassName = "dot-app-toolbar";
|
|
3
|
+
export declare const denseClassName = "dense";
|
|
3
4
|
export declare const StyledMainMenu: import("styled-components").StyledComponent<({ anchor, ariaLabel, className, children, "data-testid": dataTestId, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
|
|
4
5
|
export declare const StyledAppToolbar: import("styled-components").StyledComponent<"header", any, {}, never>;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { ChangeEvent, Ref } from 'react';
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export interface ActionItem {
|
|
4
|
+
/** The icon to display on the button */
|
|
5
|
+
iconId: string;
|
|
6
|
+
/** Event callback */
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
/** Text displayed */
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
3
11
|
export declare type autoCompleteSize = 'medium' | 'small';
|
|
4
12
|
export declare type AutoCompleteValue = string | string[] | AutoCompleteOption | AutoCompleteOption[];
|
|
5
13
|
export interface AutoCompleteOption {
|
|
@@ -9,6 +17,8 @@ export interface AutoCompleteOption {
|
|
|
9
17
|
}
|
|
10
18
|
export declare const parseAutoCompleteValue: (value: AutoCompleteValue) => string;
|
|
11
19
|
export interface AutoCompleteProps extends CommonProps {
|
|
20
|
+
/** Action button as the last element on the menu **/
|
|
21
|
+
actionItem?: ActionItem;
|
|
12
22
|
/** This prop helps users to fill forms faster */
|
|
13
23
|
autoFocus?: boolean;
|
|
14
24
|
/** default option that is selected */
|
|
@@ -42,4 +52,4 @@ export interface AutoCompleteProps extends CommonProps {
|
|
|
42
52
|
/** value if this is a controlled component */
|
|
43
53
|
value?: AutoCompleteValue;
|
|
44
54
|
}
|
|
45
|
-
export declare const DotAutoComplete: ({ ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disabled, error, freesolo, group, helperText, inputId, inputRef, label, multiple, onChange, options, placeholder, size, value, }: AutoCompleteProps) => JSX.Element;
|
|
55
|
+
export declare const DotAutoComplete: ({ actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disabled, error, freesolo, group, helperText, inputId, inputRef, label, multiple, onChange, options, placeholder, size, value, }: AutoCompleteProps) => JSX.Element;
|
|
@@ -23,7 +23,9 @@ export interface AvatarProps extends CommonProps {
|
|
|
23
23
|
text?: string;
|
|
24
24
|
/** The type of the avatar */
|
|
25
25
|
type?: AvatarType;
|
|
26
|
+
/** Tooltip for avatar */
|
|
27
|
+
tooltip?: string;
|
|
26
28
|
/** The shape of the avatar */
|
|
27
29
|
variant?: AvatarVariant;
|
|
28
30
|
}
|
|
29
|
-
export declare const DotAvatar: ({ alt, ariaLabel, className, color, "data-testid": dataTestId, iconId, imageSrc, onClick, size, text, type, variant, style, }: AvatarProps) => JSX.Element;
|
|
31
|
+
export declare const DotAvatar: ({ alt, ariaLabel, className, color, "data-testid": dataTestId, iconId, imageSrc, onClick, size, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export declare type BadgeOverlap = 'circle' | 'rectangle' | 'circular' | 'rectangular';
|
|
4
|
+
export interface BadgeProps extends CommonProps {
|
|
5
|
+
/** custom color code for the badge */
|
|
6
|
+
badgeColor?: string;
|
|
7
|
+
/** component which will be wrapped with the badge */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** if true, the badge will be completely hidden*/
|
|
10
|
+
invisible?: boolean;
|
|
11
|
+
/** outline shape of the child component */
|
|
12
|
+
overlap?: BadgeOverlap;
|
|
13
|
+
}
|
|
14
|
+
export declare const DotBadge: ({ ariaLabel, badgeColor, children, className, "data-testid": dataTestId, invisible, overlap, }: BadgeProps) => JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BadgeProps } from './Badge';
|
|
2
|
+
export declare const rootClassName = "dot-badge";
|
|
3
|
+
export declare const StyledBadge: import("styled-components").StyledComponent<import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").BadgeTypeMap<{}, "div">>, any, BadgeProps, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { 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: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -8,6 +8,8 @@ export interface IconButtonProps extends CommonProps {
|
|
|
8
8
|
color?: IconButtonColor;
|
|
9
9
|
/** If true, the button will be disabled. */
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
/** If true, the ripple effect is disabled. */
|
|
12
|
+
disableRipple?: boolean;
|
|
11
13
|
/** The icon to display on the button */
|
|
12
14
|
iconId: string;
|
|
13
15
|
/** Determines the size of the icon itself and spacing around it */
|
|
@@ -16,7 +18,9 @@ export interface IconButtonProps extends CommonProps {
|
|
|
16
18
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
17
19
|
/** Determines the size of the button and padding around the icon */
|
|
18
20
|
size?: IconButtonSize;
|
|
19
|
-
/**
|
|
21
|
+
/** DEPRECATED, DO NOT USE */
|
|
20
22
|
titleTooltip?: string;
|
|
23
|
+
/** Help text to be displayed on icon hover */
|
|
24
|
+
tooltip?: string;
|
|
21
25
|
}
|
|
22
|
-
export declare const DotIconButton: ({ ariaLabel, className, color, "data-testid": dataTestId, disabled, iconId, iconSize, onClick, titleTooltip, size, }: IconButtonProps) => JSX.Element;
|
|
26
|
+
export declare const DotIconButton: ({ ariaLabel, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick, titleTooltip, tooltip, size, }: IconButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
import { DynamicFormConfig, DynamicFormOutputData, DynamicFormState } from './models';
|
|
4
|
+
export interface DynamicFormProps extends CommonProps {
|
|
5
|
+
config: DynamicFormConfig;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
liveValidation?: boolean;
|
|
8
|
+
onChange?: (formData: DynamicFormState) => void;
|
|
9
|
+
onSubmit?: (formData: DynamicFormOutputData) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DotDynamicForm: ({ ariaLabel, className, "data-testid": dataTestId, config, disabled, liveValidation, onChange, onSubmit, }: DynamicFormProps) => JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DynamicFormControlType, DynamicFormStateItem } from './models';
|
|
2
|
+
export declare const DATA_CONTROLS: DynamicFormControlType[];
|
|
3
|
+
export declare const DATA_CONTROLS_WITHOUT_VALIDATION: DynamicFormControlType[];
|
|
4
|
+
export declare const INITIAL_STATE_ITEM: DynamicFormStateItem;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { DynamicFormConfig, DynamicFormControlProps, DynamicFormOutputData, DynamicFormState, DynamicFormStateData, HiddenControl } from './models';
|
|
3
|
+
import { AutoCompleteValue } from '../auto-complete/AutoComplete';
|
|
4
|
+
import { CheckboxProps } from '../checkbox/Checkbox';
|
|
5
|
+
declare type AutoCompleteChangeHandler = (controlName: string) => (e: ChangeEvent<HTMLInputElement>, value: AutoCompleteValue) => void;
|
|
6
|
+
declare type ChangeHandler = (controlName: string) => (e: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
declare type CheckboxGroupChangeHandler = (controlName: string) => (event: ChangeEvent<HTMLInputElement>, value: CheckboxProps[]) => void;
|
|
8
|
+
export interface InputBaseArgs {
|
|
9
|
+
controlProps: DynamicFormControlProps;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
index: number;
|
|
12
|
+
liveValidation: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ControlledInputArgs extends InputBaseArgs {
|
|
15
|
+
controlName: string;
|
|
16
|
+
formData: DynamicFormStateData;
|
|
17
|
+
handleChange: AutoCompleteChangeHandler | ChangeHandler | CheckboxGroupChangeHandler;
|
|
18
|
+
}
|
|
19
|
+
export interface UncontrolledInputArgs extends InputBaseArgs {
|
|
20
|
+
formState?: DynamicFormState;
|
|
21
|
+
handleClick?: () => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const getControlValue: <T extends unknown>(controlName: string, data: DynamicFormStateData) => T;
|
|
24
|
+
export declare const checkIfHiddenControl: (hidden: HiddenControl, formValues: DynamicFormOutputData) => boolean;
|
|
25
|
+
export declare const getInitialFormState: (config: DynamicFormConfig, liveValidation: boolean) => DynamicFormState;
|
|
26
|
+
export declare const getOutputFormData: (formState: DynamicFormState) => DynamicFormOutputData;
|
|
27
|
+
export declare const getFormDataFromInitialValues: (config: DynamicFormConfig) => DynamicFormOutputData;
|
|
28
|
+
export declare const buildInputTextControl: ({ controlName, controlProps, disabled, formData, handleChange, index, }: ControlledInputArgs) => JSX.Element;
|
|
29
|
+
export declare const buildInputSelectControl: ({ controlName, controlProps, disabled, formData, handleChange, index, }: ControlledInputArgs) => JSX.Element;
|
|
30
|
+
export declare const buildAutocompleteControl: ({ controlName, controlProps, disabled, formData, handleChange, index, }: ControlledInputArgs) => JSX.Element;
|
|
31
|
+
export declare const buildRadioGroupControl: ({ controlName, controlProps, disabled, formData, handleChange, index, }: ControlledInputArgs) => JSX.Element;
|
|
32
|
+
export declare const buildCheckboxControl: ({ controlName, controlProps, disabled, formData, handleChange, index, }: ControlledInputArgs) => JSX.Element;
|
|
33
|
+
export declare const buildCheckboxGroupControl: ({ controlName, controlProps, disabled, formData, handleChange, index, }: ControlledInputArgs) => JSX.Element;
|
|
34
|
+
export declare const buildSwitchControl: ({ controlName, controlProps, disabled, formData, handleChange, index, }: ControlledInputArgs) => JSX.Element;
|
|
35
|
+
export declare const buildButtonControl: ({ controlProps, disabled, index, }: UncontrolledInputArgs) => JSX.Element;
|
|
36
|
+
export declare const buildResetControl: ({ controlProps, disabled, handleClick, index, }: UncontrolledInputArgs) => JSX.Element;
|
|
37
|
+
export declare const buildSubmitControl: ({ controlProps, disabled, formState, index, liveValidation, }: UncontrolledInputArgs) => JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AutoCompleteProps } from '../auto-complete/AutoComplete';
|
|
3
|
+
import { ButtonProps } from '../button/Button';
|
|
4
|
+
import { CheckboxProps } from '../checkbox/Checkbox';
|
|
5
|
+
import { InputTextProps } from '../input-form-fields/InputText';
|
|
6
|
+
import { InputSelectProps } from '../input-form-fields/InputSelect';
|
|
7
|
+
import { CheckboxGroupProps } from '../checkbox/CheckboxGroup';
|
|
8
|
+
import { RadioGroupProps } from '../radio/RadioGroup';
|
|
9
|
+
import { SwitchProps } from '../switch/Switch';
|
|
10
|
+
export declare type DynamicFormControlType = 'dot-input-text' | 'dot-input-select' | 'dot-checkbox' | 'dot-checkbox-group' | 'dot-autocomplete' | 'dot-button' | 'dot-radio-group' | 'dot-reset' | 'dot-submit' | 'dot-switch' | 'custom-element';
|
|
11
|
+
export declare type DynamicFormControlProps = AutoCompleteProps | InputTextProps | InputSelectProps | CheckboxProps | CheckboxGroupProps | ButtonProps | RadioGroupProps | SwitchProps;
|
|
12
|
+
export interface DynamicFormOutputData {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export declare type ConditionFunction = (formValues: DynamicFormOutputData) => boolean;
|
|
16
|
+
export declare type HiddenControl = boolean | ConditionFunction;
|
|
17
|
+
export interface DynamicFormControl {
|
|
18
|
+
controlName?: string;
|
|
19
|
+
controlType: DynamicFormControlType;
|
|
20
|
+
controlProps?: DynamicFormControlProps;
|
|
21
|
+
initialValue?: unknown;
|
|
22
|
+
validation?: DynamicFormValidation;
|
|
23
|
+
customElement?: ReactNode;
|
|
24
|
+
hidden?: HiddenControl;
|
|
25
|
+
}
|
|
26
|
+
export interface FieldValidation {
|
|
27
|
+
isValid: boolean;
|
|
28
|
+
errorMessage: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface DynamicFormConfig {
|
|
31
|
+
controls: DynamicFormControl[];
|
|
32
|
+
}
|
|
33
|
+
export interface ValidationField {
|
|
34
|
+
condition?: ConditionFunction;
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IsRequired extends ValidationField {
|
|
38
|
+
value: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface Length extends ValidationField {
|
|
41
|
+
value: number;
|
|
42
|
+
}
|
|
43
|
+
export interface DynamicFormValidation {
|
|
44
|
+
isRequired?: IsRequired;
|
|
45
|
+
minLength?: Length;
|
|
46
|
+
maxLength?: Length;
|
|
47
|
+
customValidator?: (value: unknown) => FieldValidation;
|
|
48
|
+
}
|
|
49
|
+
export interface DynamicFormStateItem {
|
|
50
|
+
value: unknown;
|
|
51
|
+
isValid: boolean;
|
|
52
|
+
isTouched: boolean;
|
|
53
|
+
errorMessage: string;
|
|
54
|
+
hidden?: HiddenControl;
|
|
55
|
+
}
|
|
56
|
+
export interface DynamicFormState {
|
|
57
|
+
data: DynamicFormStateData;
|
|
58
|
+
isValid: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface DynamicFormStateData {
|
|
61
|
+
[key: string]: DynamicFormStateItem;
|
|
62
|
+
}
|
|
63
|
+
export interface FormStateUpdateArgs {
|
|
64
|
+
controlName: string;
|
|
65
|
+
newValue: unknown;
|
|
66
|
+
formConfig: DynamicFormConfig;
|
|
67
|
+
validate?: boolean;
|
|
68
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DynamicFormConfig, DynamicFormOutputData, DynamicFormState } from './models';
|
|
2
|
+
export declare const sampleMiddleNameHiddenFn: (formValues: DynamicFormOutputData) => boolean;
|
|
3
|
+
export declare const getSampleConfig: () => DynamicFormConfig;
|
|
4
|
+
export declare const getSampleFormState: () => DynamicFormState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DynamicFormConfig, DynamicFormOutputData, DynamicFormState, DynamicFormValidation, FieldValidation, ValidationField } from './models';
|
|
2
|
+
export declare const checkIfValidationApplies: (validationField: ValidationField, formValues: DynamicFormOutputData) => boolean;
|
|
3
|
+
export declare const checkIfEmptyValue: (value: unknown) => boolean;
|
|
4
|
+
export declare const checkIfString: (value: unknown) => boolean;
|
|
5
|
+
export declare const checkIfEmptyString: (value: string) => boolean;
|
|
6
|
+
export declare const checkIfArray: (value: unknown) => boolean;
|
|
7
|
+
export declare const checkIfEmptyArray: (value: Array<unknown>) => boolean;
|
|
8
|
+
export declare const checkIfStringRequiredInvalid: (value: string, validation: DynamicFormValidation, formValues: DynamicFormOutputData) => boolean;
|
|
9
|
+
export declare const checkIfArrayRequiredInvalid: (value: unknown[], validation: DynamicFormValidation, formValues: DynamicFormOutputData) => boolean;
|
|
10
|
+
export declare const checkIfMinLengthInvalid: (value: string | unknown[], validation: DynamicFormValidation, formValues: DynamicFormOutputData) => boolean;
|
|
11
|
+
export declare const checkIfMaxLengthInvalid: (value: string | unknown[], validation: DynamicFormValidation, formValues: DynamicFormOutputData) => boolean;
|
|
12
|
+
export declare const getInvalidFieldValidation: (errorMessage: string) => FieldValidation;
|
|
13
|
+
export declare const getRequiredFieldValidationError: (validation: DynamicFormValidation) => FieldValidation;
|
|
14
|
+
export declare const getMinLengthFieldValidationError: (validation: DynamicFormValidation) => FieldValidation;
|
|
15
|
+
export declare const getMaxLengthFieldValidationError: (validation: DynamicFormValidation) => FieldValidation;
|
|
16
|
+
export declare const getEmptyValueValidationError: (validation: DynamicFormValidation, formValues: DynamicFormOutputData) => FieldValidation | null;
|
|
17
|
+
export declare const getStringValidationError: (value: string, validation: DynamicFormValidation, formValues: DynamicFormOutputData) => FieldValidation | null;
|
|
18
|
+
export declare const getArrayValidationError: (array: unknown[], validation: DynamicFormValidation, formValues: DynamicFormOutputData) => FieldValidation | null;
|
|
19
|
+
export declare const getCustomValidationError: (value: unknown, validation: DynamicFormValidation) => {
|
|
20
|
+
isValid: boolean;
|
|
21
|
+
errorMessage: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const getFieldValidation: (value: unknown, validation: DynamicFormValidation, formValues: DynamicFormOutputData) => FieldValidation;
|
|
24
|
+
export declare const getControlValidationFromConfig: (controlName: string, config: DynamicFormConfig) => DynamicFormValidation | undefined;
|
|
25
|
+
export declare const checkIfFormDataValid: (formState: DynamicFormState) => boolean;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export declare type IconFontSize = 'inherit' | 'default' | 'small';
|
|
3
|
+
export declare type IconFontSize = 'inherit' | 'default' | 'small' | 'medium';
|
|
4
4
|
export interface IconProps extends CommonProps {
|
|
5
5
|
/** Determines the size of the icon and spacing around it */
|
|
6
6
|
fontSize?: IconFontSize;
|
|
7
7
|
/** The ID of the icon to display on the button */
|
|
8
8
|
iconId: string;
|
|
9
|
-
/**
|
|
9
|
+
/** DEPRECATED, DO NOT USE */
|
|
10
10
|
title?: string;
|
|
11
|
+
/** Tooltip text displayed on hover */
|
|
12
|
+
tooltip?: string;
|
|
11
13
|
}
|
|
12
|
-
export declare const DotIcon: ({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId, title, }: IconProps) => JSX.Element;
|
|
14
|
+
export declare const DotIcon: ({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId, title, tooltip, }: IconProps) => JSX.Element;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
export { DotAccordion } from './accordion/Accordion';
|
|
2
2
|
export { DotActionToolbar } from './action-toolbar/ActionToolbar';
|
|
3
3
|
export { DotAlertBanner } from './alert-banner/AlertBanner';
|
|
4
|
+
export { DotAppLogo } from './app-logo/AppLogo';
|
|
4
5
|
export { DotAppToolbar, AppToolbarProps } from './app-toolbar/AppToolbar';
|
|
5
|
-
export { AutoCompleteOption, DotAutoComplete, AutoCompleteValue, parseAutoCompleteValue, } from './auto-complete/AutoComplete';
|
|
6
|
+
export { AutoCompleteOption, AutoCompleteProps, DotAutoComplete, AutoCompleteValue, parseAutoCompleteValue, } from './auto-complete/AutoComplete';
|
|
6
7
|
export { AvatarProps, DotAvatar } from './avatar/Avatar';
|
|
7
8
|
export { DotAvatarGroup } from './avatar-group/AvatarGroup';
|
|
9
|
+
export { DotBadge } from './badge/Badge';
|
|
8
10
|
export { BreadcrumbItem, DotBreadcrumbs } from './breadcrumbs/Breadcrumbs';
|
|
9
|
-
export { DotButton } from './button/Button';
|
|
11
|
+
export { DotButton, ButtonProps } from './button/Button';
|
|
10
12
|
export { DotButtonToggle } from './button-toggle/ButtonToggle';
|
|
11
13
|
export { DotCard } from './card/Card';
|
|
12
14
|
export { DotCardContent } from './card/CardContent';
|
|
13
15
|
export { DotCardFooter } from './card/CardFooter';
|
|
14
16
|
export { DotCardHeader } from './card/CardHeader';
|
|
15
17
|
export { CheckboxProps, DotCheckbox } from './checkbox/Checkbox';
|
|
16
|
-
export { DotCheckboxGroup } from './checkbox/CheckboxGroup';
|
|
18
|
+
export { DotCheckboxGroup, CheckboxGroupProps } from './checkbox/CheckboxGroup';
|
|
17
19
|
export { DotChip } from './chip/Chip';
|
|
18
20
|
export { DotConfirmationDialog } from './confirmation-dialog/ConfirmationDialog';
|
|
19
21
|
export { Cell, CssCell } from './css-grid/CssCell';
|
|
@@ -24,11 +26,13 @@ export { DotDrawer } from './drawer/Drawer';
|
|
|
24
26
|
export { DotEmptyState } from './empty-state/EmptyState';
|
|
25
27
|
export { DotForm } from './form/Form';
|
|
26
28
|
export { DotFormGroup } from './form-group/FormGroup';
|
|
29
|
+
export { DotDynamicForm, DynamicFormProps } from './dynamic-form/DynamicForm';
|
|
30
|
+
export { DynamicFormConfig, DynamicFormOutputData, DynamicFormState, FieldValidation, } from './dynamic-form/models';
|
|
27
31
|
export { DotIcon } from './icon/Icon';
|
|
28
32
|
export { DotIconButton, IconButtonProps } from './button/IconButton';
|
|
29
33
|
export { DotInlineEdit } from './inline-edit/InlineEdit';
|
|
30
|
-
export { DotInputText } from './input-form-fields/InputText';
|
|
31
|
-
export { DotInputSelect } from './input-form-fields/InputSelect';
|
|
34
|
+
export { DotInputText, InputTextProps } from './input-form-fields/InputText';
|
|
35
|
+
export { DotInputSelect, InputSelectProps, } from './input-form-fields/InputSelect';
|
|
32
36
|
export { DotLink } from './link/Link';
|
|
33
37
|
export { DotList, ListItemProps } from './list/List';
|
|
34
38
|
export { DotMenu, MenuItemProps } from './menu/Menu';
|
|
@@ -36,14 +40,15 @@ export { DotNavigationRail, RailItem } from './navigation-rail/NavigationRail';
|
|
|
36
40
|
export { DotPill } from './pill/Pill';
|
|
37
41
|
export { DotProgress } from './progress/Progress';
|
|
38
42
|
export { DotRadioButton, RadioButtonProps } from './radio/RadioButton';
|
|
39
|
-
export { DotRadioGroup } from './radio/RadioGroup';
|
|
43
|
+
export { DotRadioGroup, RadioGroupProps } from './radio/RadioGroup';
|
|
40
44
|
export { BackItemProps, DotSidebar, SidebarProps } from './sidebar/Sidebar';
|
|
41
45
|
export { DotSkeleton } from './skeleton/Skeleton';
|
|
42
46
|
export { DotSnackbar } from './snackbar/Snackbar';
|
|
43
47
|
export { DotSnackbarContainer, DotSnackbarProvider, useDotSnackbarContext, } from './snackbar/SnackbarProvider';
|
|
44
48
|
export { DotSplitButton } from './split-button/SplitButton';
|
|
45
|
-
export { DotSwitch } from './switch/Switch';
|
|
49
|
+
export { DotSwitch, SwitchProps } from './switch/Switch';
|
|
46
50
|
export { DotTable, TableRowProps } from './table/Table';
|
|
51
|
+
export { DotTooltip } from './tooltip/Tooltip';
|
|
47
52
|
export { Order } from './table/TableBody';
|
|
48
53
|
export { DotHeaderRow, DotColumnHeader } from './table/TableHeader';
|
|
49
54
|
export { TableDataWithPagination } from './table/TableDataWithPagination';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps } from './InputFormFields.propTypes';
|
|
3
|
+
export declare const DELAY_MS = 300;
|
|
3
4
|
export interface InputTextProps extends InputProps {
|
|
5
|
+
/** If true, the input will use debounce functionality. **/
|
|
6
|
+
hasDebounce?: boolean;
|
|
4
7
|
/** if multiline it wil render multiple lines */
|
|
5
8
|
multiline?: boolean;
|
|
6
9
|
/** Placeholder text always displayed inside the input field */
|
|
@@ -14,4 +17,4 @@ export interface InputTextProps extends InputProps {
|
|
|
14
17
|
/** value of the InputText */
|
|
15
18
|
value?: string;
|
|
16
19
|
}
|
|
17
|
-
export declare const DotInputText: ({ autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, fullWidth, helperText, endIcon, id, inputRef, label, multiline, name, onChange, placeholder, readOnly, required, rows, rowsMax, startIcon, size, type, value, warning, }: InputTextProps) => JSX.Element;
|
|
20
|
+
export declare const DotInputText: ({ autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, fullWidth, hasDebounce, helperText, endIcon, id, inputRef, label, multiline, name, onChange, placeholder, readOnly, required, rows, rowsMax, startIcon, size, type, value, warning, }: InputTextProps) => JSX.Element;
|
|
@@ -20,9 +20,11 @@ export interface LinkProps extends CommonProps {
|
|
|
20
20
|
tabIndex?: number;
|
|
21
21
|
/** where to open the link */
|
|
22
22
|
target?: LinkTarget;
|
|
23
|
-
/**
|
|
23
|
+
/** DEPRECATED, DO NOT USE */
|
|
24
24
|
title?: string;
|
|
25
|
+
/** Tooltip text displayed on hover */
|
|
26
|
+
tooltip?: string;
|
|
25
27
|
/** underline the link */
|
|
26
28
|
underline?: LinkUnderline;
|
|
27
29
|
}
|
|
28
|
-
export declare const DotLink: ({ ariaLabel, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, rel, tabIndex, target, title, underline, }: LinkProps) => JSX.Element;
|
|
30
|
+
export declare const DotLink: ({ ariaLabel, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, rel, tabIndex, target, title, tooltip, underline, }: LinkProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementType, MouseEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
3
|
import { PopperPlacement } from '../menu/Menu';
|
|
4
|
-
export declare type NestedListType = '
|
|
4
|
+
export declare type NestedListType = 'drawer' | 'expandable' | 'menu';
|
|
5
5
|
export interface NestedListProps extends CommonProps {
|
|
6
6
|
/** Element that menu is attached to */
|
|
7
7
|
anchorEl?: Element;
|
|
@@ -9,6 +9,8 @@ export interface NestedListProps extends CommonProps {
|
|
|
9
9
|
items: Array<ListItemProps>;
|
|
10
10
|
/** If nested list type is 'menu', determines the placement of the menu */
|
|
11
11
|
menuPlacement?: PopperPlacement;
|
|
12
|
+
/** If nested type is 'drawer', determines the width of the left spacing */
|
|
13
|
+
nestedDrawerLeftSpacing?: number;
|
|
12
14
|
/** Event callback when leaving menu via tab or clicking away */
|
|
13
15
|
onMenuLeave?: (event: KeyboardEvent | MouseEvent) => void;
|
|
14
16
|
/** if true the nested list is visible */
|
|
@@ -19,7 +21,7 @@ export interface NestedListProps extends CommonProps {
|
|
|
19
21
|
type?: NestedListType;
|
|
20
22
|
}
|
|
21
23
|
export interface ListProps extends CommonProps {
|
|
22
|
-
/** string or JSX element that is displayed inside the
|
|
24
|
+
/** string or JSX element that is displayed inside the list */
|
|
23
25
|
children?: ReactNode;
|
|
24
26
|
/** The component used for the root node. Either a string to use a HTML element or a component. */
|
|
25
27
|
component?: ElementType;
|
|
@@ -31,10 +33,16 @@ export interface ListProps extends CommonProps {
|
|
|
31
33
|
items?: Array<ListItemProps>;
|
|
32
34
|
/** If nested list type is 'menu', determines the placement of the menu */
|
|
33
35
|
menuPlacement?: PopperPlacement;
|
|
36
|
+
/** If nested type is 'drawer', determines the width of the left spacing */
|
|
37
|
+
nestedDrawerLeftSpacing?: number;
|
|
34
38
|
/** If 'menu' the nested list will be displayed as a flyout nav, else it will be an expand/collapse toggle list */
|
|
35
39
|
nestedListType?: NestedListType;
|
|
40
|
+
/** Width of list, defaults to 240px */
|
|
41
|
+
width?: number;
|
|
36
42
|
}
|
|
37
43
|
export interface ListItemProps extends CommonProps {
|
|
44
|
+
/** string or JSX element that is displayed inside the list */
|
|
45
|
+
child?: ReactNode;
|
|
38
46
|
/** The component used for the root node. Either a string to use a HTML element or a component. */
|
|
39
47
|
component?: ElementType;
|
|
40
48
|
/** If true, a 1px light border is added to the bottom of the list item. */
|
|
@@ -49,6 +57,8 @@ export interface ListItemProps extends CommonProps {
|
|
|
49
57
|
items?: Array<ListItemProps>;
|
|
50
58
|
/** If nested list type is 'menu', determines the placement of the menu */
|
|
51
59
|
menuPlacement?: PopperPlacement;
|
|
60
|
+
/** If nested type is 'drawer', determines the width of the left spacing */
|
|
61
|
+
nestedDrawerLeftSpacing?: number;
|
|
52
62
|
/** If 'menu' the nested list will be displayed as a flyout nav, else it will be an expand/collapse toggle list */
|
|
53
63
|
nestedListType?: NestedListType;
|
|
54
64
|
/** Event callback */
|
|
@@ -59,8 +69,10 @@ export interface ListItemProps extends CommonProps {
|
|
|
59
69
|
startIconId?: string;
|
|
60
70
|
/** Text which is displayed in the list item */
|
|
61
71
|
text?: string;
|
|
62
|
-
/**
|
|
72
|
+
/** DEPRECATED, DO NOT USE */
|
|
63
73
|
title?: string;
|
|
74
|
+
/** Tooltip text displayed on hover */
|
|
75
|
+
tooltip?: string;
|
|
64
76
|
}
|
|
65
|
-
export declare const DotList: ({ ariaLabel, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedListType, }: ListProps) => JSX.Element;
|
|
66
|
-
export declare const DotListItem: ({ ariaLabel, className, component, "data-testid": dataTestId, divider, endIconId, href, index, onClick, items, menuPlacement, nestedListType, selected, startIconId, text, title, }: ListItemProps) => JSX.Element;
|
|
77
|
+
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, index, onClick, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, selected, startIconId, text, title, tooltip, }: ListItemProps) => JSX.Element;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const rootClassName = "dot-list";
|
|
3
3
|
export declare const listItemRootClass = "dot-list-item";
|
|
4
4
|
export declare const nestedListClassName = "dot-nested-list";
|
|
5
|
+
export declare const nestedDrawerClassName = "dot-nested-drawer";
|
|
5
6
|
export declare const flyoutListItemClassName = "dot-flyout-list-item";
|
|
6
7
|
export declare const flyoutItemLinkClassName = "dot-flyout-item-link";
|
|
7
8
|
export declare const listItemLinkClassName = "dot-list-item-link";
|
|
@@ -4,12 +4,20 @@ export declare type PopperPlacement = 'bottom-end' | 'bottom-start' | 'bottom' |
|
|
|
4
4
|
export interface MenuProps extends CommonProps {
|
|
5
5
|
/** Element that menu is attached to */
|
|
6
6
|
anchorEl?: Element;
|
|
7
|
+
/** If true, compact vertical padding designed for keyboard and mouse input is used for the list and list items. **/
|
|
8
|
+
dense?: boolean;
|
|
7
9
|
/** Disable the portal behavior. If true, children stay within parent DOM hierarchy. */
|
|
8
10
|
disablePortal?: boolean;
|
|
9
11
|
/** Unique ID that ties a particular menu to a specific element */
|
|
10
12
|
id: string;
|
|
13
|
+
/** If true, will display a loading indicator in the menu */
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
/** Maximum number of visible menu items */
|
|
16
|
+
maxVisibleItems?: number;
|
|
11
17
|
/** Array of items to be displayed inside the menu */
|
|
12
18
|
menuItems: Array<MenuItemProps>;
|
|
19
|
+
/** Used to specify height of each menu item when custom component */
|
|
20
|
+
menuItemHeight?: number;
|
|
13
21
|
/** Determines the placement of the menu */
|
|
14
22
|
menuPlacement?: PopperPlacement;
|
|
15
23
|
/** If true, the menu is open. */
|
|
@@ -29,4 +37,4 @@ export interface MenuItemProps {
|
|
|
29
37
|
/** A key that can be used to determine which item was clicked */
|
|
30
38
|
key?: string;
|
|
31
39
|
}
|
|
32
|
-
export declare const DotMenu: ({ anchorEl, ariaLabel, className, "data-testid": dataTestId, disablePortal, id, menuItems, menuPlacement, onLeave, onSelect, open, }: MenuProps) => JSX.Element;
|
|
40
|
+
export declare const DotMenu: ({ anchorEl, ariaLabel, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, }: MenuProps) => JSX.Element;
|
|
@@ -9,11 +9,13 @@ export interface ProgressProps extends CommonProps {
|
|
|
9
9
|
size?: number | string;
|
|
10
10
|
/** controls thickness of the loading spinner border */
|
|
11
11
|
thickness?: number;
|
|
12
|
-
/**
|
|
12
|
+
/** DEPRECATED, DO NOT USE */
|
|
13
13
|
title?: string;
|
|
14
|
+
/** Tooltip text displayed on hover */
|
|
15
|
+
tooltip?: string;
|
|
14
16
|
/** If using static variant, this is the percent of loading complete */
|
|
15
17
|
value?: number;
|
|
16
18
|
/** type of progress spinner displayed */
|
|
17
19
|
variant?: progressVariantOptions;
|
|
18
20
|
}
|
|
19
|
-
export declare const DotProgress: ({ ariaLabel, color, className, "data-testid": dataTestId, size, thickness, title, value, variant, }: ProgressProps) => JSX.Element;
|
|
21
|
+
export declare const DotProgress: ({ ariaLabel, color, className, "data-testid": dataTestId, size, thickness, title, tooltip, value, variant, }: ProgressProps) => JSX.Element;
|
|
@@ -13,6 +13,10 @@ export interface BackItemProps extends CommonProps {
|
|
|
13
13
|
title?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface SidebarProps extends CommonProps {
|
|
16
|
+
/** If provided will display application logo */
|
|
17
|
+
appLogo?: ReactNode;
|
|
18
|
+
/** If provided will display application logo */
|
|
19
|
+
appLogoSmall?: ReactNode;
|
|
16
20
|
/** props used by the back item */
|
|
17
21
|
backItem?: BackItemProps;
|
|
18
22
|
/** If displayBrand is true this text will be displayed above the Digital.ai branding */
|
|
@@ -21,6 +25,8 @@ export interface SidebarProps extends CommonProps {
|
|
|
21
25
|
children?: ReactNode;
|
|
22
26
|
/** If true will display the expand/collapse icon button */
|
|
23
27
|
collapsable?: boolean;
|
|
28
|
+
/** If true will display appLogo provided at the top */
|
|
29
|
+
displayAppLogo?: boolean;
|
|
24
30
|
/** If true will display Digital.ai branding at the bottom */
|
|
25
31
|
displayBrand?: boolean;
|
|
26
32
|
/** If true will display the go back nav item at the top of the sidebar */
|
|
@@ -35,5 +41,7 @@ export interface SidebarProps extends CommonProps {
|
|
|
35
41
|
title?: string;
|
|
36
42
|
/** If provided, will display an avatar next to the title text */
|
|
37
43
|
titleAvatarProps?: AvatarProps;
|
|
44
|
+
/** Width of main menu drawer if mainMenu provided, defaults to 240px */
|
|
45
|
+
width?: number;
|
|
38
46
|
}
|
|
39
|
-
export declare const DotSidebar: ({ ariaLabel, backItem, brandDesc, children, className, collapsable, "data-testid": dataTestId, displayBrand, goBack, navItems, nestedListType, open, title, titleAvatarProps, }: SidebarProps) => JSX.Element;
|
|
47
|
+
export declare const DotSidebar: ({ appLogo, appLogoSmall, ariaLabel, backItem, brandDesc, children, className, collapsable, "data-testid": dataTestId, displayAppLogo, displayBrand, goBack, navItems, nestedListType, open, title, titleAvatarProps, width, }: SidebarProps) => JSX.Element;
|
|
@@ -13,4 +13,4 @@ export interface SplitButtonProps extends BaseButtonProps {
|
|
|
13
13
|
/**The options within the button dropdown */
|
|
14
14
|
options: Array<MenuItemProps>;
|
|
15
15
|
}
|
|
16
|
-
export declare const DotSplitButton: ({ autoFocus, ariaLabel, children, className, "data-testid": dataTestId, disabled, disablePortal, disableRipple, fullWidth, isSubmit, onClick, onSelect, options, size, titleTooltip, type, }: SplitButtonProps) => JSX.Element;
|
|
16
|
+
export declare const DotSplitButton: ({ autoFocus, ariaLabel, children, className, "data-testid": dataTestId, disabled, disablePortal, disableRipple, fullWidth, isSubmit, onClick, onSelect, options, size, titleTooltip, tooltip, type, }: SplitButtonProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const rootClassName = "dot-split-button-group";
|
|
3
3
|
export declare const StyledSplitButtonGroup: import("styled-components").StyledComponent<import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").ButtonGroupTypeMap<{}, "div">>, any, {}, never>;
|
|
4
|
-
export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, className, "data-testid": dataTestId, disablePortal, id, menuItems, menuPlacement, onLeave, onSelect, open, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
|
|
4
|
+
export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
|