@digital-ai/dot-components 1.8.1 → 1.10.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.
Files changed (34) hide show
  1. package/CHANGE_LOG.md +80 -0
  2. package/index.esm.js +502 -232
  3. package/index.umd.js +669 -376
  4. package/lib/components/auto-complete/AutoComplete.d.ts +16 -4
  5. package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +4 -0
  6. package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +19 -1
  7. package/lib/components/auto-complete/index.d.ts +3 -0
  8. package/lib/components/button-toggle/ButtonToggle.d.ts +9 -9
  9. package/lib/components/button-toggle/index.d.ts +1 -0
  10. package/lib/components/divider/Divider.d.ts +17 -0
  11. package/lib/components/divider/Divider.stories.styles.d.ts +2 -0
  12. package/lib/components/divider/Divider.styles.d.ts +2 -0
  13. package/lib/components/divider/index.d.ts +1 -0
  14. package/lib/components/index.d.ts +9 -5
  15. package/lib/components/list/List.stories.data.d.ts +1 -0
  16. package/lib/components/menu/Menu.d.ts +9 -1
  17. package/lib/components/menu/Menu.stories.data.d.ts +1 -0
  18. package/lib/components/menu/Menu.stories.styles.d.ts +2 -0
  19. package/lib/components/menu/Menu.styles.d.ts +6 -1
  20. package/lib/components/menu/MenuList.d.ts +26 -0
  21. package/lib/components/menu/MenuList.styles.d.ts +5 -0
  22. package/lib/components/menu/utils/helpers.d.ts +4 -0
  23. package/lib/components/popper/Popper.d.ts +18 -0
  24. package/lib/components/popper/Popper.data.d.ts +7 -0
  25. package/lib/components/popper/Popper.stories.data.d.ts +6 -0
  26. package/lib/components/popper/Popper.stories.styles.d.ts +4 -0
  27. package/lib/components/popper/Popper.styles.d.ts +3 -0
  28. package/lib/components/popper/index.d.ts +2 -0
  29. package/lib/components/sidebar/Sidebar.stories.data.d.ts +1 -1
  30. package/lib/components/split-button/SplitButton.styles.d.ts +1 -1
  31. package/lib/components/table/Table.styles.d.ts +1 -1
  32. package/lib/components/table/TableSelectionToolbar.d.ts +2 -1
  33. package/lib/components/table/utils/models.d.ts +1 -0
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, ReactNode, Ref } from 'react';
2
- import { AutocompleteCloseReason } from '@material-ui/lab';
2
+ import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@material-ui/lab';
3
3
  import { CommonProps } from '../CommonProps';
4
4
  export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
5
5
  export interface ActionItem {
@@ -19,7 +19,11 @@ export interface AutoCompleteOption {
19
19
  group?: string;
20
20
  title: string;
21
21
  }
22
- export interface AutoCompleteProps extends CommonProps {
22
+ /**
23
+ * AutoCompleteOption can be extended for the use case when customizing
24
+ * autocomplete option rendering by using `renderOption` prop.
25
+ */
26
+ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOption> extends CommonProps {
23
27
  /** Action button as the last element on the menu **/
24
28
  actionItem?: ActionItem;
25
29
  /** This prop helps users to fill forms faster */
@@ -34,6 +38,8 @@ export interface AutoCompleteProps extends CommonProps {
34
38
  disabled?: boolean;
35
39
  /** If true, the input will be displayed in an error state. */
36
40
  error?: boolean;
41
+ /** If `true`, hide the selected options from the list box. */
42
+ filterSelectedOptions?: boolean;
37
43
  /** If true, any arbitrary value can be typed in the field */
38
44
  freesolo?: boolean;
39
45
  /** If true, options will be grouped by category */
@@ -48,6 +54,8 @@ export interface AutoCompleteProps extends CommonProps {
48
54
  label?: string;
49
55
  /** If true, the component will be in a loading state. */
50
56
  loading?: boolean;
57
+ /** Maximum height of Popper's <ul> element */
58
+ maxHeight?: number | string;
51
59
  /** If true, will allow the user to select multiple options */
52
60
  multiple?: boolean;
53
61
  /** A function that should be executed when the autocomplete value changes */
@@ -61,9 +69,13 @@ export interface AutoCompleteProps extends CommonProps {
61
69
  /** Controls the popup's open state. */
62
70
  open?: boolean;
63
71
  /** pre-defined options available to the user */
64
- options?: Array<AutoCompleteOption>;
72
+ options?: Array<T>;
65
73
  /** Placeholder text always displayed inside the input field */
66
74
  placeholder?: string;
75
+ /** Render the option, use `getOptionLabel` by default. */
76
+ renderOption?: (option: T, state: AutocompleteRenderOptionState) => ReactNode;
77
+ /** Render the selected value. */
78
+ renderTags?: (value: T[], getTagProps: AutocompleteGetTagProps) => ReactNode;
67
79
  /** If true, the input will be required and label will display accordingly */
68
80
  required?: boolean;
69
81
  /** Determines the padding within the input field 'medium' or 'small' */
@@ -71,4 +83,4 @@ export interface AutoCompleteProps extends CommonProps {
71
83
  /** value if this is a controlled component */
72
84
  value?: AutoCompleteValue;
73
85
  }
74
- export declare const DotAutoComplete: ({ actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, error, freesolo, group, helperText, inputId, inputRef, label, loading, multiple, onChange, onClose, onInputChange, onOpen, open, options, placeholder, required, size, value, }: AutoCompleteProps) => JSX.Element;
86
+ export declare const DotAutoComplete: <T extends AutoCompleteOption>({ actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onChange, onClose, onInputChange, onOpen, open, options, placeholder, renderOption, renderTags, required, size, value, }: AutoCompleteProps<T>) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const selectedAutocompleteClassName = "dot-selected-autocomplete-items";
2
+ export declare const autocompleteWithoutChipsClassName = "dot-autocomplete-without-chips";
3
+ export declare const StyledSelectedAutocompleteItems: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const StyledAutocompleteWithoutChips: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,6 @@
1
- import { ActionItem } from './AutoComplete';
1
+ import { ChangeEvent } from 'react';
2
+ import { ActionItem, AutoCompleteOption, AutoCompleteProps, AutoCompleteValue } from './AutoComplete';
3
+ import { CommonProps } from '../CommonProps';
2
4
  export declare const movies: {
3
5
  group: string;
4
6
  title: string;
@@ -19,3 +21,19 @@ export declare const actionItemArgType: {
19
21
  };
20
22
  defaultValue: string;
21
23
  };
24
+ export interface AutoCompleteWithRenderOption extends AutoCompleteOption {
25
+ imageUrl: string;
26
+ }
27
+ export declare const fullNameOptions: AutoCompleteWithRenderOption[];
28
+ export interface SelectedAutocompleteItemsProps extends CommonProps {
29
+ onItemRemove: (optionTitle: string) => void;
30
+ selectedOptions: AutoCompleteOption[];
31
+ }
32
+ export declare const SelectedAutocompleteItems: ({ className, onItemRemove, selectedOptions, }: SelectedAutocompleteItemsProps) => JSX.Element;
33
+ export interface AutocompleteWithoutChipsProps extends CommonProps {
34
+ onChange: (event: ChangeEvent, currentlySelectedOptions: AutoCompleteValue) => void;
35
+ onItemRemove: (optionTitle: string) => void;
36
+ selectedOptions: AutoCompleteOption[];
37
+ storyArgs: AutoCompleteProps;
38
+ }
39
+ export declare const AutocompleteWithoutChips: ({ className, onChange, onItemRemove, selectedOptions, storyArgs, }: AutocompleteWithoutChipsProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { AutocompleteRenderOptionState } from '@material-ui/lab';
2
+ export * from './AutoComplete';
3
+ export { parseAutoCompleteValue } from './utils/helpers';
@@ -2,16 +2,17 @@ import { MouseEvent } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  export declare type ButtonToggleSize = 'small' | 'medium' | 'large';
4
4
  export declare type ButtonToggleOrientation = 'horizontal' | 'vertical';
5
- declare type ButtonToggleValue = string | number | boolean;
5
+ export declare type ButtonToggleValue = string | number | boolean;
6
+ export interface ButtonToggleOption extends CommonProps {
7
+ ariaLabel: string;
8
+ disabled?: boolean;
9
+ iconId?: string;
10
+ text?: string;
11
+ value: ButtonToggleValue;
12
+ }
6
13
  export interface ButtonToggleProps extends CommonProps {
7
14
  /** button props for each toggle button options*/
8
- buttonOptions: {
9
- ariaLabel: string;
10
- disabled?: boolean;
11
- iconId?: string;
12
- text?: string;
13
- value: ButtonToggleValue;
14
- }[];
15
+ buttonOptions: ButtonToggleOption[];
15
16
  /** If true, the keyboard focus ripple will be disabled */
16
17
  disableFocusRipple?: boolean;
17
18
  /** If true, the ripple effect will be disabled. */
@@ -28,4 +29,3 @@ export interface ButtonToggleProps extends CommonProps {
28
29
  value?: ButtonToggleValue;
29
30
  }
30
31
  export declare const DotButtonToggle: ({ ariaLabel, buttonOptions, className, "data-testid": dataTestId, disableFocusRipple, disableRipple, exclusive, onChange, orientation, size, value, }: ButtonToggleProps) => JSX.Element;
31
- export {};
@@ -0,0 +1 @@
1
+ export * from './ButtonToggle';
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { CommonProps } from '../CommonProps';
3
+ export declare type DividerOrientation = 'horizontal' | 'vertical';
4
+ export declare type DividerVariant = 'fullWidth' | 'inset' | 'middle';
5
+ export interface DividerProps extends CommonProps {
6
+ /** Absolutely position the element. Default value: `false` */
7
+ absolute?: boolean;
8
+ /** If true, a vertical divider will have the correct height when used in flex container. (By default, a vertical divider will have a calculated height of 0px if it is the child of a flex container.) */
9
+ flexItem?: boolean;
10
+ /** If `true`, the divider will have a lighter color. Default value: `false` */
11
+ light?: boolean;
12
+ /** The divider orientation. (`horizontal`, `vertical`). Default value: `horizontal` */
13
+ orientation?: DividerOrientation;
14
+ /** The variant to use. (`fullWidth`, `inset`, `middle`) */
15
+ variant?: DividerVariant;
16
+ }
17
+ export declare const DotDivider: ({ absolute, ariaLabel, className, "data-testid": dataTestId, flexItem, light, orientation, variant, }: DividerProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const verticalClassName = "dot-divider-vertical";
2
+ export declare const StyledVerticalDividerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ export declare const rootClassName = "dot-divider";
2
+ export declare const StyledDivider: import("styled-components").StyledComponent<import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").DividerTypeMap<{}, "hr">>, any, {}, never>;
@@ -0,0 +1 @@
1
+ export * from './Divider';
@@ -1,8 +1,9 @@
1
1
  export type { AppToolbarProps } from './app-toolbar/AppToolbar';
2
- export type { AutoCompleteOption, AutoCompleteProps, AutoCompleteValue, } from './auto-complete/AutoComplete';
2
+ export type { AutoCompleteOption, AutoCompleteProps, AutoCompleteValue, AutocompleteRenderOptionState, } from './auto-complete';
3
3
  export type { AvatarProps } from './avatar/Avatar';
4
4
  export type { BreadcrumbItem } from './breadcrumbs/Breadcrumbs';
5
5
  export type { ButtonProps } from './button/Button';
6
+ export type { ButtonToggleProps, ButtonToggleValue, ButtonToggleOption, ButtonToggleOrientation, ButtonToggleSize, } from './button-toggle';
6
7
  export type { CheckboxProps } from './checkbox/Checkbox';
7
8
  export type { CheckboxGroupProps } from './checkbox/CheckboxGroup';
8
9
  export type { SubmitButtonProps } from './dialog/Dialog';
@@ -10,7 +11,7 @@ export type { DynamicFormProps } from './dynamic-form/DynamicForm';
10
11
  export type { ConditionFunction, ControlClickHandler, DisabledConditionFunction, DisabledControlCondition, DynamicFormConfig, DynamicFormControl, DynamicFormControlProps, DynamicFormControlType, DynamicFormOutputData, DynamicFormSectionProps, DynamicFormState, DynamicFormStateItem, FieldValidation, } from './dynamic-form/models';
11
12
  export type { IconButtonProps } from './button/IconButton';
12
13
  export type { InputTextProps } from './input-form-fields/InputText';
13
- export type { InputSelectProps, InputSelectOption } from './input-form-fields/InputSelect';
14
+ export type { InputSelectProps, InputSelectOption, } from './input-form-fields/InputSelect';
14
15
  export type { LinkUnderline } from './link/Link';
15
16
  export type { ListItemProps } from './list';
16
17
  export type { MenuItemProps } from './menu/Menu';
@@ -23,18 +24,20 @@ export type { DotColumnHeader, MultiSelect, Order, RowSelectionChangeHandler, Ro
23
24
  export type { TabProps } from './tabs/Tabs';
24
25
  export type { TypographyVariant } from './typography/Typography';
25
26
  export type { ProgressButtonProps } from './progress-button/ProgressButton';
27
+ export type { PopperPlacementType } from './popper';
28
+ export type { DividerOrientation, DividerProps, DividerVariant, } from './divider';
26
29
  export { DotAccordion } from './accordion/Accordion';
27
30
  export { DotActionToolbar } from './action-toolbar/ActionToolbar';
28
31
  export { DotAlertBanner } from './alert-banner/AlertBanner';
29
32
  export { DotAppLogo } from './app-logo/AppLogo';
30
33
  export { DotAppToolbar } from './app-toolbar/AppToolbar';
31
- export { DotAutoComplete } from './auto-complete/AutoComplete';
34
+ export { DotAutoComplete, parseAutoCompleteValue } from './auto-complete';
32
35
  export { DotAvatar } from './avatar/Avatar';
33
36
  export { DotAvatarGroup } from './avatar-group/AvatarGroup';
34
37
  export { DotBadge } from './badge/Badge';
35
38
  export { DotBreadcrumbs } from './breadcrumbs/Breadcrumbs';
36
39
  export { DotButton } from './button/Button';
37
- export { DotButtonToggle } from './button-toggle/ButtonToggle';
40
+ export { DotButtonToggle } from './button-toggle';
38
41
  export { DotCard } from './card/Card';
39
42
  export { DotCardContent } from './card/CardContent';
40
43
  export { DotCardFooter } from './card/CardFooter';
@@ -77,4 +80,5 @@ export { DotTooltip } from './tooltip/Tooltip';
77
80
  export { DotTabs } from './tabs/Tabs';
78
81
  export { DotTypography } from './typography/Typography';
79
82
  export { DotFileUpload } from './file-upload/FileUpload';
80
- export { parseAutoCompleteValue } from './auto-complete/utils/helpers';
83
+ export { DotDivider } from './divider';
84
+ export { DotPopper } from './popper';
@@ -1,3 +1,4 @@
1
1
  import { ListItemProps } from './utils/models';
2
2
  export declare const mockHref = "/?path=/story/components-list--default";
3
3
  export declare const mockListItems: Array<ListItemProps>;
4
+ export declare const listItemsWithoutIcons: Array<ListItemProps>;
@@ -26,6 +26,8 @@ export interface MenuProps extends CommonProps {
26
26
  onSelect?: (event: MouseEvent | KeyboardEvent, menuId: string, itemKey: string) => void;
27
27
  /** If true, the menu is open. */
28
28
  open?: boolean;
29
+ /** Key of the item which needs to be selected. If provided, item will be highlighted. */
30
+ selectedKey?: string;
29
31
  }
30
32
  export interface MenuItemProps {
31
33
  /** Defines a string value that labels the current element **/
@@ -34,9 +36,15 @@ export interface MenuItemProps {
34
36
  children?: ReactNode;
35
37
  /** Space delimited CSS classes to be attributed to the menu item */
36
38
  classes?: string;
39
+ /** If true, the item will be displayed in a disabled state. */
40
+ disabled?: boolean;
41
+ /** If true, a 1px light border is added to the bottom of the menu item. */
42
+ divider?: boolean;
37
43
  /** Used to set custom item height (in pixels). This value has priority over "menuItemHeight" prop. */
38
44
  height?: number;
45
+ /** Children items, for multi-level menu display */
46
+ items?: MenuItemProps[];
39
47
  /** A key that can be used to determine which item was clicked */
40
48
  key?: string;
41
49
  }
42
- export declare const DotMenu: ({ anchorEl, ariaLabel, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, }: MenuProps) => JSX.Element;
50
+ export declare const DotMenu: ({ anchorEl, ariaLabel, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: MenuProps) => JSX.Element;
@@ -9,6 +9,7 @@ export declare const defaultMenuItems: ({
9
9
  key: string;
10
10
  classes?: undefined;
11
11
  })[];
12
+ export declare const multiLevelMenuItems: MenuItemProps[];
12
13
  export declare const buttonMenuItems: {
13
14
  children: string;
14
15
  key: string;
@@ -1,2 +1,4 @@
1
1
  export declare const rootClassName = "dot-menu-wrapper";
2
+ export declare const multiLevelClassName = "dot-multi-level-menu";
2
3
  export declare const StyledMenuWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const StyledMultiLevelMenu: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -2,4 +2,9 @@ import { Popper } from '@material-ui/core';
2
2
  export declare const flyoutMenuClassName = "dot-flyout-menu";
3
3
  export declare const rootClassName = "dot-menu";
4
4
  export declare const popperClassName = "dot-popper";
5
- export declare const StyledPopper: import("styled-components").StyledComponent<typeof Popper, any, {}, never>;
5
+ interface StyledPopperArgs {
6
+ $maxHeight?: number | string;
7
+ }
8
+ export declare const getListMaxHeight: (maxHeight: string | number) => string;
9
+ export declare const StyledPopper: import("styled-components").StyledComponent<typeof Popper, any, StyledPopperArgs, never>;
10
+ export {};
@@ -0,0 +1,26 @@
1
+ import React, { KeyboardEvent, KeyboardEventHandler, MouseEvent, ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ import { MenuItemProps } from './Menu';
4
+ export interface SubMenuCreateArgs {
5
+ anchorElement: Element;
6
+ isOpened: boolean;
7
+ subMenuId: string;
8
+ subMenuItems: MenuItemProps[];
9
+ }
10
+ export interface MenuListProps extends CommonProps {
11
+ autoFocusItem?: boolean;
12
+ dense?: boolean;
13
+ id?: string;
14
+ maxVisibleItems: number;
15
+ menuItemHeight: number | string;
16
+ menuItems: Array<MenuItemProps>;
17
+ onItemSelect?: (event: MouseEvent | KeyboardEvent, itemKey: string) => void;
18
+ onKeyDown?: KeyboardEventHandler<Element>;
19
+ onSubMenuCreate?: (args: SubMenuCreateArgs) => ReactNode;
20
+ selectedKey?: string;
21
+ }
22
+ /**
23
+ * Since this component is used inside 'ClickAwayListener',
24
+ * it needs to be contained within 'forwardRef' function
25
+ */
26
+ export declare const DotMenuList: React.ForwardRefExoticComponent<MenuListProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import { MenuList } from '@material-ui/core';
2
+ export declare const rootClassName = "dot-ul";
3
+ export declare const listItemClassName = "dot-li";
4
+ export declare const listItemWithSubmenuClassName = "dot-li-with-submenu";
5
+ export declare const StyledMenuList: import("styled-components").StyledComponent<typeof MenuList, any, {}, never>;
@@ -9,4 +9,8 @@ export declare const getDefaultItemHeight: (isDense: boolean) => 28 | 33;
9
9
  export declare const calculateItemHeight: (isDense: boolean, customItemHeight?: number, menuItemHeight?: number | string) => number | string;
10
10
  export declare const getNumberOfVisibleItems: (numberOfItems: number, maxVisibleItems?: number) => number;
11
11
  export declare const calculateMaxHeight: ({ isDense, maxVisibleItems, menuItems, menuItemHeight, }: MaxHeightCalculationArgs) => number | string;
12
+ export declare const checkForSubItems: (menuItems: MenuItemProps[]) => boolean;
13
+ export declare const checkIfSubmenu: (anchorElement: Element) => boolean;
14
+ export declare const checkIfMenuItemSelected: (key: string, selectedKey: string, activeSubmenu: string) => boolean;
15
+ export declare const checkForAutoFocus: (autoFocusItem: boolean, isFirstItem: boolean) => boolean;
12
16
  export {};
@@ -0,0 +1,18 @@
1
+ import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
2
+ import { PopperPlacementType } from '@material-ui/core';
3
+ import { CommonProps } from '../CommonProps';
4
+ export interface PopperProps extends CommonProps {
5
+ /** Element that popper is attached to */
6
+ anchorEl?: Element;
7
+ /** The content of the component */
8
+ children: ReactNode;
9
+ /** Disable the portal behavior. If `true`, children stay within parent DOM hierarchy. */
10
+ disablePortal?: boolean;
11
+ /** Event callback when leaving popper by clicking away */
12
+ onClickAway?: (event: KeyboardEvent | MouseEvent<Document>) => void;
13
+ /** If `true`, the popper is visible. */
14
+ open: boolean;
15
+ /** Popper placement. */
16
+ placement?: PopperPlacementType;
17
+ }
18
+ export declare const DotPopper: ({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, onClickAway, open, placement, }: PopperProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { KeyboardEvent, MouseEvent } from 'react';
2
+ export interface PopperTestWrapperProps {
3
+ dataTestId?: string;
4
+ disablePortal?: boolean;
5
+ onClickAway?: (event: KeyboardEvent | MouseEvent<Document>) => void;
6
+ }
7
+ export declare const PopperTestWrapper: (props: PopperTestWrapperProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ButtonToggleValue } from '../button-toggle';
3
+ export interface FlagTaskProps {
4
+ onChange: (optionValue: ButtonToggleValue) => void;
5
+ }
6
+ export declare const FlagTask: ({ onChange }: FlagTaskProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const defaultStoryClassName = "dot-popper-default";
2
+ export declare const flagTaskClassName = "dot-flag-task";
3
+ export declare const StyledPopperStory: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const StyledFlagTask: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,3 @@
1
+ import { Popper } from '@material-ui/core';
2
+ export declare const rootClassName = "dot-popper";
3
+ export declare const StyledPopper: import("styled-components").StyledComponent<typeof Popper, any, {}, never>;
@@ -0,0 +1,2 @@
1
+ export { PopperPlacementType } from '@material-ui/core';
2
+ export * from './Popper';
@@ -41,8 +41,8 @@ export declare const getNavigationItems: (isSelected: (key: number) => boolean,
41
41
  text: string;
42
42
  divider?: undefined;
43
43
  })[];
44
+ startIconId: string;
44
45
  text: string;
45
- startIconId?: undefined;
46
46
  onClick?: undefined;
47
47
  endIconId?: undefined;
48
48
  selected?: undefined;
@@ -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, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, 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, selectedKey, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
@@ -3,4 +3,4 @@ import { Paper } from '@material-ui/core';
3
3
  export declare const rootClassName = "dot-table";
4
4
  export declare const StyledPaper: import("styled-components").StyledComponent<typeof Paper, any, {}, never>;
5
5
  export declare const StyledTableContainer: import("styled-components").StyledComponent<import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").TableContainerTypeMap<{}, "div">>, any, {}, never>;
6
- 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>;
6
+ 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, selectedKey, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  export interface TableSelectionToolbarProps extends CommonProps {
4
4
  bulkActions?: ReactNode;
5
+ onClearAll?: () => void;
5
6
  selectedRowsNumber: number;
6
7
  }
7
- export declare const DotTableSelectionToolbar: ({ ariaLabel, bulkActions, className, "data-testid": dataTestId, selectedRowsNumber, }: TableSelectionToolbarProps) => JSX.Element;
8
+ export declare const DotTableSelectionToolbar: ({ ariaLabel, bulkActions, className, "data-testid": dataTestId, onClearAll, selectedRowsNumber, }: TableSelectionToolbarProps) => JSX.Element;
@@ -7,6 +7,7 @@ export interface MultiSelect {
7
7
  bulkActions?: ReactNode;
8
8
  onCheckAllChange?: TableRowSelectChangeHandler;
9
9
  onCheckRowChange?: TableRowSelectChangeHandler;
10
+ onClearAllChange?: TableRowSelectChangeHandler;
10
11
  }
11
12
  interface MultiSelectTableBase {
12
13
  selectedTableRowIds: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "1.8.1",
3
+ "version": "1.10.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [