@digital-ai/dot-components 2.7.4 → 2.8.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 (54) hide show
  1. package/CHANGE_LOG.md +45 -9
  2. package/index.esm.js +106 -32
  3. package/index.umd.js +263 -174
  4. package/lib/Typography.stories.d.ts +1 -1
  5. package/lib/components/AccessibilityProps.d.ts +1 -0
  6. package/lib/components/CommonProps.d.ts +3 -0
  7. package/lib/components/app-switcher/AppSwitcher.styles.d.ts +1 -1
  8. package/lib/components/app-toolbar/AppToolbar.styles.d.ts +1 -1
  9. package/lib/components/auto-complete/AutoComplete.d.ts +7 -3
  10. package/lib/components/auto-complete/AutoComplete.stories.d.ts +2 -1
  11. package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +2 -0
  12. package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +1 -5
  13. package/lib/components/auto-complete/index.d.ts +1 -1
  14. package/lib/components/avatar/Avatar.d.ts +1 -1
  15. package/lib/components/avatar/Avatar.stories.d.ts +1 -1
  16. package/lib/components/button/IconButton.d.ts +1 -1
  17. package/lib/components/button/IconButton.stories.d.ts +1 -1
  18. package/lib/components/drawer/Drawer.d.ts +3 -1
  19. package/lib/components/drawer/Drawer.stories.d.ts +1 -1
  20. package/lib/components/drawer/DrawerBody.d.ts +1 -1
  21. package/lib/components/drawer/DrawerFooter.d.ts +1 -1
  22. package/lib/components/file-upload/FileUpload.d.ts +1 -1
  23. package/lib/components/file-upload/FileUpload.stories.d.ts +1 -1
  24. package/lib/components/icon/Icon.d.ts +1 -1
  25. package/lib/components/icon/Icon.stories.d.ts +1 -1
  26. package/lib/components/index.d.ts +1 -1
  27. package/lib/components/inline-edit/InlineEdit.d.ts +1 -1
  28. package/lib/components/inline-edit/InlineEdit.stories.d.ts +1 -1
  29. package/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +2 -0
  30. package/lib/components/input-form-fields/InputSelect.d.ts +1 -1
  31. package/lib/components/input-form-fields/InputSelect.stories.d.ts +1 -1
  32. package/lib/components/input-form-fields/InputText.d.ts +2 -1
  33. package/lib/components/input-form-fields/InputText.stories.d.ts +2 -1
  34. package/lib/components/link/Link.d.ts +1 -1
  35. package/lib/components/link/Link.stories.d.ts +1 -1
  36. package/lib/components/list/List.d.ts +2 -2
  37. package/lib/components/list/List.stories.d.ts +1 -1
  38. package/lib/components/list/NestedList.styles.d.ts +1 -1
  39. package/lib/components/menu/Menu.d.ts +1 -1
  40. package/lib/components/menu/Menu.stories.d.ts +1 -1
  41. package/lib/components/radio/RadioGroup.d.ts +1 -1
  42. package/lib/components/radio/RadioGroup.stories.d.ts +1 -1
  43. package/lib/components/search-input/SearchInput.d.ts +1 -1
  44. package/lib/components/split-button/SplitButton.styles.d.ts +1 -1
  45. package/lib/components/stepper/Stepper.styles.d.ts +1 -1
  46. package/lib/components/table/Table.styles.d.ts +1 -1
  47. package/lib/components/table/TableActions.styles.d.ts +1 -1
  48. package/lib/components/time-picker/TimePicker.d.ts +3 -1
  49. package/lib/components/time-picker/TimePicker.stories.d.ts +1 -1
  50. package/lib/components/tooltip/Tooltip.d.ts +1 -1
  51. package/lib/components/tooltip/Tooltip.stories.d.ts +1 -1
  52. package/lib/components/typography/Typography.d.ts +3 -1
  53. package/lib/components/typography/Typography.stories.d.ts +1 -1
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
- declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("./components/typography/Typography").TypographyProps) => JSX.Element>;
2
+ declare const _default: ComponentMeta<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("./components/typography/Typography").TypographyProps) => JSX.Element>;
3
3
  export default _default;
4
4
  export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export declare type AriaRoles = 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'button' | 'cell' | 'checkbox' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'dialog' | 'directory' | 'document' | 'feed' | 'figure' | 'form' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'input' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'navigation' | 'note' | 'option' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'textbox' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem';
@@ -1,6 +1,9 @@
1
+ import { AriaRoles } from './AccessibilityProps';
1
2
  export interface CommonProps {
2
3
  /** Defines a string value that labels the current element **/
3
4
  ariaLabel?: string;
5
+ /** The ARIA role attribute of the element **/
6
+ ariaRole?: AriaRoles;
4
7
  /** classes to be attributed to the root of the component */
5
8
  className?: string;
6
9
  /** data attribute passed through for testing purposes ONLY */
@@ -1,2 +1,2 @@
1
1
  export declare const rootClassName = "dot-app-switcher";
2
- export declare const StyledAppSwitcher: import("styled-components").StyledComponent<({ anchor, ariaLabel, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
2
+ export declare const StyledAppSwitcher: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
@@ -1,4 +1,4 @@
1
1
  export declare const rootClassName = "dot-app-toolbar";
2
2
  export declare const denseClassName = "dense";
3
- export declare const StyledMainMenu: import("styled-components").StyledComponent<({ anchor, ariaLabel, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
3
+ export declare const StyledMainMenu: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
4
4
  export declare const StyledAppToolbar: import("styled-components").StyledComponent<"header", any, {}, never>;
@@ -1,5 +1,5 @@
1
- import { ChangeEvent, FocusEvent, HTMLAttributes, ReactNode, Ref, JSXElementConstructor } from 'react';
2
- import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@mui/material';
1
+ import { ChangeEvent, FocusEvent, HTMLAttributes, JSXElementConstructor, ReactNode, Ref } from 'react';
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
5
  export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
@@ -43,6 +43,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
43
43
  endAdornmentTooltip?: string;
44
44
  /** If true, the input will be displayed in an error state. */
45
45
  error?: boolean;
46
+ /** A function that determines the filtered options to be rendered on search. */
47
+ filterOptions?: (options: T[], state: FilterOptionsState<T>) => T[];
46
48
  /** If `true`, hide the selected options from the list box. */
47
49
  filterSelectedOptions?: boolean;
48
50
  /** If true, any arbitrary value can be typed in the field */
@@ -55,6 +57,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
55
57
  inputId: string;
56
58
  /** pass a ref to the input element */
57
59
  inputRef?: Ref<HTMLInputElement>;
60
+ /** The value of the input field. */
61
+ inputValue?: string;
58
62
  /** Label displayed above the input field */
59
63
  label?: string;
60
64
  /** If true, the component will be in a loading state. */
@@ -96,4 +100,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
96
100
  /** If true, the label will be displayed in a warning state. */
97
101
  warning?: boolean;
98
102
  }
99
- export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
103
+ export declare const DotAutoComplete: <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;
@@ -1,11 +1,12 @@
1
1
  import { ComponentMeta, Story } from '@storybook/react';
2
2
  import { AutoCompleteOption, AutoCompleteProps } from './AutoComplete';
3
3
  import { AutoCompleteWithRenderOption } from './Autocomplete.stories.data';
4
- declare const _default: ComponentMeta<(<T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element)>;
4
+ 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
5
  export default _default;
6
6
  export declare const Default: any;
7
7
  export declare const WithActionItem: any;
8
8
  export declare const WithDisabledItems: any;
9
+ export declare const WithFilterOptions: any;
9
10
  export declare const WithCustomActionItem: Story<AutoCompleteProps>;
10
11
  export declare const WithAsyncLoad: Story<AutoCompleteProps>;
11
12
  declare type AutoCompleteWithRenderOptionProps = AutoCompleteProps<AutoCompleteWithRenderOption>;
@@ -1,8 +1,10 @@
1
1
  export declare const selectedAutocompleteClassName = "dot-selected-autocomplete-items";
2
2
  export declare const autocompleteWithRenderClassName = "dot-autocomplete-with-render";
3
+ export declare const autocompleteWithFilterRenderClassName = "dot-autocomplete-with-filter-render";
3
4
  export declare const autocompleteWithoutChipsClassName = "dot-autocomplete-without-chips";
4
5
  export declare const autocompleteWithNullValueClassName = "dot-autocomplete-with-null-value";
5
6
  export declare const StyledAutoCompleteWithRender: import("styled-components").StyledComponent<"li", any, {}, never>;
7
+ export declare const StyledAutoCompleteWithFilterRender: import("styled-components").StyledComponent<"li", any, {}, never>;
6
8
  export declare const StyledSelectedAutocompleteItems: import("styled-components").StyledComponent<"div", any, {}, never>;
7
9
  export declare const StyledAutocompleteWithoutChips: import("styled-components").StyledComponent<"div", any, {}, never>;
8
10
  export declare const StyledAutocompleteWithNullValue: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,11 +1,7 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { ActionItem, AutoCompleteOption, AutoCompleteProps, AutoCompleteValue } from './AutoComplete';
3
3
  import { CommonProps } from '../CommonProps';
4
- export declare const movies: {
5
- group: string;
6
- title: string;
7
- error: boolean;
8
- }[];
4
+ export declare const movies: AutoCompleteOption[];
9
5
  export declare const handleActionItemClick: (newItem?: string) => void;
10
6
  export declare const actionItemOptions: ActionItem[];
11
7
  export declare const actionItemArgType: {
@@ -1,3 +1,3 @@
1
- export type { AutocompleteRenderOptionState } from '@mui/material';
1
+ export type { AutocompleteRenderOptionState, FilterOptionsState, } from '@mui/material';
2
2
  export * from './AutoComplete';
3
3
  export { parseAutoCompleteValue } from './utils/helpers';
@@ -32,4 +32,4 @@ export interface AvatarProps extends CommonProps {
32
32
  /** The shape of the avatar */
33
33
  variant?: AvatarVariant;
34
34
  }
35
- export declare const DotAvatar: ({ alt, ariaLabel, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element;
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;
@@ -1,6 +1,6 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { AvatarProps } from './Avatar';
3
- declare const _default: ComponentMeta<({ alt, ariaLabel, 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, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<AvatarProps>;
6
6
  export declare const AvatarButton: Story<AvatarProps>;
@@ -21,4 +21,4 @@ export interface IconButtonProps extends CommonProps {
21
21
  /** Help text to be displayed on icon hover */
22
22
  tooltip?: string;
23
23
  }
24
- export declare const DotIconButton: ({ ariaLabel, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick, tooltip, size, }: IconButtonProps) => JSX.Element;
24
+ export declare const DotIconButton: ({ ariaLabel, ariaRole, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick, tooltip, size, }: IconButtonProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta } from '@storybook/react';
2
2
  import { IconButtonProps } from './IconButton';
3
- declare const _default: ComponentMeta<({ ariaLabel, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick, tooltip, size, }: IconButtonProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ariaLabel, ariaRole, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick, tooltip, size, }: IconButtonProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: any;
6
6
  export declare const WithPrimaryColor: any;
@@ -1,5 +1,6 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
+ import { AriaRoles } from '../AccessibilityProps';
3
4
  export declare type DrawerAnchor = 'bottom' | 'left' | 'right' | 'top';
4
5
  export declare type DrawerVariant = 'permanent' | 'persistent' | 'temporary';
5
6
  export declare type DrawerModalProps = {
@@ -8,6 +9,7 @@ export declare type DrawerModalProps = {
8
9
  style?: CSSProperties;
9
10
  };
10
11
  export declare type DrawerPaperProps = {
12
+ role?: AriaRoles;
11
13
  style?: CSSProperties;
12
14
  };
13
15
  export interface DrawerSection extends CommonProps {
@@ -40,4 +42,4 @@ export interface DrawerProps extends CommonProps {
40
42
  /** The width of the drawer when anchor is 'left' or 'right' */
41
43
  width?: string;
42
44
  }
43
- export declare const DotDrawer: ({ anchor, ariaLabel, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: DrawerProps) => JSX.Element;
45
+ export declare const DotDrawer: ({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: DrawerProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { DrawerProps } from './Drawer';
3
- declare const _default: ComponentMeta<({ anchor, ariaLabel, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: DrawerProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: DrawerProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<DrawerProps>;
6
6
  export declare const WithHeader: Story<DrawerProps>;
@@ -6,4 +6,4 @@ export interface DrawerBodyProps extends CommonProps {
6
6
  onClose: (event: MouseEvent | KeyboardEvent) => void;
7
7
  variant: string;
8
8
  }
9
- export declare const DotDrawerBody: ({ ariaLabel, children, className, "data-testid": dataTestId, headerExists, onClose, variant, }: DrawerBodyProps) => JSX.Element;
9
+ export declare const DotDrawerBody: ({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, headerExists, onClose, variant, }: DrawerBodyProps) => JSX.Element;
@@ -3,4 +3,4 @@ import { CommonProps } from '../CommonProps';
3
3
  export interface DrawerFooterProps extends CommonProps {
4
4
  children: ReactNode;
5
5
  }
6
- export declare const DotDrawerFooter: ({ ariaLabel, children, className, "data-testid": dataTestId, }: DrawerFooterProps) => JSX.Element;
6
+ export declare const DotDrawerFooter: ({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, }: DrawerFooterProps) => JSX.Element;
@@ -22,4 +22,4 @@ export interface FileUploadProps extends CommonProps {
22
22
  /** Optional callback which gets triggered when the file (from the list) is clicked. */
23
23
  onFileClick?: (file: ListItemFile) => void;
24
24
  }
25
- export declare const DotFileUpload: ({ accept, ariaLabel, buttonOnly, className, "data-testid": dataTestId, disabled, hideFilesList, maxFiles, maxSize, onChange, onDragEnter, onFileClick, }: FileUploadProps) => JSX.Element;
25
+ export declare const DotFileUpload: ({ accept, ariaLabel, ariaRole, buttonOnly, className, "data-testid": dataTestId, disabled, hideFilesList, maxFiles, maxSize, onChange, onDragEnter, onFileClick, }: FileUploadProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta, Story } from '@storybook/react';
2
2
  import { FileUploadProps } from './';
3
- declare const _default: ComponentMeta<({ accept, ariaLabel, buttonOnly, className, "data-testid": dataTestId, disabled, hideFilesList, maxFiles, maxSize, onChange, onDragEnter, onFileClick, }: FileUploadProps) => JSX.Element>;
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
5
  export declare const Default: Story<FileUploadProps>;
6
6
  export declare const WithSingleFileLimit: Story<FileUploadProps>;
@@ -8,4 +8,4 @@ export interface IconProps extends CommonProps {
8
8
  /** Tooltip text displayed on hover */
9
9
  tooltip?: string;
10
10
  }
11
- export declare const DotIcon: ({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element;
11
+ export declare const DotIcon: ({ ariaLabel, ariaRole, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { IconProps } from './Icon';
3
- declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ariaLabel, ariaRole, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<IconProps>;
@@ -1,5 +1,5 @@
1
1
  export type { AppToolbarProps } from './app-toolbar/AppToolbar';
2
- export type { AutoCompleteOption, AutoCompleteProps, AutoCompleteValue, AutocompleteRenderOptionState, } from './auto-complete';
2
+ export type { AutoCompleteOption, AutoCompleteProps, AutoCompleteValue, AutocompleteRenderOptionState, FilterOptionsState, } from './auto-complete';
3
3
  export type { AvatarProps } from './avatar/Avatar';
4
4
  export type { BreadcrumbItem } from './breadcrumbs/Breadcrumbs';
5
5
  export type { ButtonProps, CopyButtonProps, IconButtonProps, IconButtonColor, IconButtonSize, } from './button';
@@ -34,4 +34,4 @@ export interface InlineEditProps extends CommonProps {
34
34
  /**
35
35
  * @experimental This component is still in development
36
36
  */
37
- export declare const DotInlineEdit: ({ ariaLabel, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element;
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;
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta, Story } from '@storybook/react';
2
2
  import { InlineEditProps } from './InlineEdit';
3
- declare const _default: ComponentMeta<({ ariaLabel, 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, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<InlineEditProps>;
6
6
  export declare const WithCharactersLimit: any;
@@ -10,6 +10,8 @@ export interface InputProps extends CommonProps {
10
10
  disabled?: boolean;
11
11
  /** Icon placed after the children. */
12
12
  endIcon?: ReactNode;
13
+ /** Text placed after the children, only displayed if there is no: endIcon, success or error */
14
+ endText?: string;
13
15
  /** If true, the label will be displayed in an error state. */
14
16
  error?: boolean;
15
17
  /** If true, the input will take up the full width of its container */
@@ -12,4 +12,4 @@ export interface InputSelectProps extends InputProps {
12
12
  /** options of select dropdown */
13
13
  options: Array<OptionType>;
14
14
  }
15
- export declare const DotInputSelect: ({ ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disabled, endIcon, error, fullWidth, helperText, id, inputRef, label, name, onBlur, onChange, onFocus, onKeyDown, options, persistentLabel, readOnly, required, shrink, size, startIcon, success, value, warning, }: InputSelectProps) => JSX.Element;
15
+ export declare const DotInputSelect: ({ ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disabled, endIcon, endText, error, fullWidth, helperText, id, inputRef, label, name, onBlur, onChange, onFocus, onKeyDown, options, persistentLabel, readOnly, required, shrink, size, startIcon, success, value, warning, }: InputSelectProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { InputSelectProps } from './InputSelect';
3
- declare const _default: ComponentMeta<({ ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disabled, endIcon, error, fullWidth, helperText, id, inputRef, label, name, onBlur, onChange, onFocus, onKeyDown, options, persistentLabel, readOnly, required, shrink, size, startIcon, success, value, warning, }: InputSelectProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disabled, endIcon, endText, error, fullWidth, helperText, id, inputRef, label, name, onBlur, onChange, onFocus, onKeyDown, options, persistentLabel, readOnly, required, shrink, size, startIcon, success, value, warning, }: InputSelectProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<InputSelectProps>;
6
6
  export declare const WithPersistentLabel: Story<InputSelectProps>;
@@ -26,8 +26,9 @@ export interface EndIconProps {
26
26
  dataTestId?: string;
27
27
  endAdornmentTooltip?: string;
28
28
  endIcon?: ReactNode;
29
+ endText?: string;
29
30
  error?: boolean;
30
31
  success?: boolean;
31
32
  warning?: boolean;
32
33
  }
33
- export declare const DotInputText: ({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, endAdornmentTooltip, fullWidth, hasDebounce, helperText, endIcon, id, inputRef, label, maxRows, minRows, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, placeholder, readOnly, required, shrink, startIcon, size, success, type, value, warning, }: InputTextProps) => JSX.Element;
34
+ export declare const DotInputText: ({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, endAdornmentTooltip, fullWidth, hasDebounce, helperText, endIcon, endText, id, inputRef, label, maxRows, minRows, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, placeholder, readOnly, required, shrink, startIcon, size, success, type, value, warning, }: InputTextProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta, Story } from '@storybook/react';
2
2
  import { InputTextProps } from './InputText';
3
- declare const _default: ComponentMeta<({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, endAdornmentTooltip, fullWidth, hasDebounce, helperText, endIcon, id, inputRef, label, maxRows, minRows, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, placeholder, readOnly, required, shrink, startIcon, size, success, type, value, warning, }: InputTextProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, endAdornmentTooltip, fullWidth, hasDebounce, helperText, endIcon, endText, id, inputRef, label, maxRows, minRows, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, placeholder, readOnly, required, shrink, startIcon, size, success, type, value, warning, }: InputTextProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<InputTextProps>;
6
6
  export declare const WithPersistentLabel: Story<InputTextProps>;
@@ -12,3 +12,4 @@ export declare const WithErrorTooltip: Story<InputTextProps>;
12
12
  export declare const WithWarningTooltip: Story<InputTextProps>;
13
13
  export declare const WithReadOnly: Story<InputTextProps>;
14
14
  export declare const WithMultiline: Story<InputTextProps>;
15
+ export declare const WithEndText: Story<InputTextProps>;
@@ -27,4 +27,4 @@ export interface LinkProps extends CommonProps {
27
27
  /** underline the link */
28
28
  underline?: LinkUnderline;
29
29
  }
30
- export declare const DotLink: ({ ariaLabel, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, onPointerDown, rel, tabIndex, target, tooltip, underline, }: LinkProps) => JSX.Element;
30
+ export declare const DotLink: ({ ariaLabel, ariaRole, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, onPointerDown, rel, tabIndex, target, tooltip, underline, }: LinkProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { LinkProps } from './Link';
3
- declare const _default: ComponentMeta<({ ariaLabel, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, onPointerDown, rel, tabIndex, target, tooltip, underline, }: LinkProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ariaLabel, ariaRole, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, onPointerDown, rel, tabIndex, target, tooltip, underline, }: LinkProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<LinkProps>;
6
6
  export declare const LinkInParagraph: Story<LinkProps>;
@@ -1,4 +1,4 @@
1
1
  import { ListItemProps, ListProps, NestedListProps } from './utils/models';
2
- export declare const DotList: ({ ariaLabel, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => JSX.Element;
3
- export declare const DotListItem: ({ ariaLabel, className, component, "data-testid": dataTestId, divider, endIcon, href, isOpened, onClick, onMenuLeave, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, primaryText, secondaryText, selected, startIcon, target, text, tooltip, tooltipPlacement, }: ListItemProps) => JSX.Element;
2
+ export declare const DotList: ({ ariaLabel, ariaRole, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => JSX.Element;
3
+ export declare const DotListItem: ({ ariaLabel, ariaRole, className, component, "data-testid": dataTestId, divider, endIcon, href, isOpened, onClick, onMenuLeave, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, primaryText, secondaryText, selected, startIcon, target, text, tooltip, tooltipPlacement, }: ListItemProps) => JSX.Element;
4
4
  export declare const NestedList: ({ ariaLabel, anchorEl, "data-testid": dataTestId, items, menuPlacement, nestedDrawerLeftSpacing, onMenuLeave, open, parentItemIndex, type, }: NestedListProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { ListProps } from './utils/models';
3
- declare const _default: ComponentMeta<({ ariaLabel, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => JSX.Element>;
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
5
  export declare const Default: Story<ListProps>;
6
6
  export declare const WithoutIcons: Story<ListProps>;
@@ -1 +1 @@
1
- export declare const StyledDotDrawer: import("styled-components").StyledComponent<({ anchor, ariaLabel, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
1
+ export declare const StyledDotDrawer: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
@@ -47,4 +47,4 @@ export interface MenuItemProps {
47
47
  /** A key that can be used to determine which item was clicked */
48
48
  key?: string;
49
49
  }
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;
50
+ export declare const DotMenu: ({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: MenuProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta, Story } from '@storybook/react';
2
2
  import { MenuProps } from './Menu';
3
- declare const _default: ComponentMeta<({ anchorEl, ariaLabel, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: MenuProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: MenuProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<MenuProps>;
6
6
  export declare const ButtonMenu: Story<MenuProps>;
@@ -26,4 +26,4 @@ export interface RadioGroupProps extends RadioGroupBaseProps {
26
26
  /** Array of RadioButtonProps used to create the radio buttons */
27
27
  options: RadioButtonProps[];
28
28
  }
29
- export declare const DotRadioGroup: ({ ariaLabel, className, "data-testid": dataTestId, defaultValue, disableGroup, endIcon, error, helperText, groupLabel, name, labelPlacement, onChange, value, options, startIcon, required, row, size, }: RadioGroupProps) => JSX.Element;
29
+ export declare const DotRadioGroup: ({ ariaLabel, ariaRole, className, "data-testid": dataTestId, defaultValue, disableGroup, endIcon, error, helperText, groupLabel, name, labelPlacement, onChange, value, options, startIcon, required, row, size, }: RadioGroupProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { RadioGroupProps } from './RadioGroup';
3
- declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, defaultValue, disableGroup, endIcon, error, helperText, groupLabel, name, labelPlacement, onChange, value, options, startIcon, required, row, size, }: RadioGroupProps) => JSX.Element>;
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
5
  export declare const Default: Story<RadioGroupProps>;
6
6
  export declare const WithHelperText: any;
@@ -8,4 +8,4 @@ export interface SearchInputProps extends CommonProps {
8
8
  tooltip?: string;
9
9
  value: string;
10
10
  }
11
- export declare function SearchInput({ 'data-testid': dataTestId, autoFocus, className, disabled, onChange, onClear, placeholder, tooltip, value, }: SearchInputProps): JSX.Element;
11
+ export declare function SearchInput({ 'data-testid': dataTestId, ariaRole, autoFocus, className, disabled, onChange, onClear, placeholder, tooltip, value, }: SearchInputProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare const rootClassName = "dot-split-button-group";
2
2
  export declare const StyledSplitButtonGroup: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ButtonGroupTypeMap<{}, "div">>, any, {}, never>;
3
- 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
+ export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, 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,7 +3,7 @@ export declare const stepListClassName = "dot-stepper-list";
3
3
  export declare const contentClassName = "dot-stepper-content";
4
4
  export declare const StyledStepper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  export declare const StepContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const StepDescription: import("styled-components").StyledComponent<({ ariaLabel, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../typography/Typography").TypographyProps) => JSX.Element, any, {}, never>;
6
+ export declare const StepDescription: import("styled-components").StyledComponent<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../typography/Typography").TypographyProps) => JSX.Element, any, {}, never>;
7
7
  interface StyledStepActionsContainerProps {
8
8
  displayCancelButton?: boolean;
9
9
  }
@@ -1,4 +1,4 @@
1
1
  export declare const rootClassName = "dot-table";
2
2
  export declare const StyledPaper: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").PaperTypeMap<{}, "div">>, any, {}, never>;
3
3
  export declare const StyledTableContainer: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TableContainerTypeMap<{}, "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, selectedKey, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
4
+ export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
@@ -1,3 +1,3 @@
1
1
  export declare const rootClassName = "dot-table-actions";
2
2
  export declare const TableActionsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- 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
+ export declare const StyledMenu: import("styled-components").StyledComponent<({ anchorEl, ariaLabel, ariaRole, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: import("../menu/Menu").MenuProps) => JSX.Element, any, {}, never>;
@@ -44,6 +44,8 @@ export interface TimePickerProps extends CommonProps {
44
44
  onKeyDown?: (e: KeyboardEvent<HTMLElement>, contextEnum: DatePickerKeydownContext) => void;
45
45
  /** Callback fired when the popup requests to be opened. Use in controlled mode (see `open`). */
46
46
  onOpen?: () => void;
47
+ /** Callback fired when the time value on the opened popper changes. */
48
+ onPopperTimeChange?: (value: string) => void;
47
49
  /** Control the popup or dialog open state. */
48
50
  open?: boolean;
49
51
  /** If true, the label will be persistently displayed outside the field */
@@ -58,4 +60,4 @@ export interface TimePickerProps extends CommonProps {
58
60
  export declare const DEFAULT_PICKER_TIME_FORMAT = "HH:mm";
59
61
  export declare const DEFAULT_TIME_FORMAT = "HH:mm";
60
62
  export declare const DEFAULT_TIME = "01:00";
61
- export declare const DotTimePicker: ({ ampm, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disableOpenPicker, disableClickAwayListener, disabled, error, format, fullWidth, helperText, hideActionButtons, inputId, inputName, label, onAccept, onBlur, onCancel, onChange, onClose, onKeyDown, onOpen, open, persistentLabel, readOnly, required, value, }: TimePickerProps) => JSX.Element;
63
+ export declare const DotTimePicker: ({ ampm, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disableOpenPicker, disableClickAwayListener, disabled, error, format, fullWidth, helperText, hideActionButtons, inputId, inputName, label, onAccept, onBlur, onCancel, onChange, onClose, onKeyDown, onOpen, onPopperTimeChange, open, persistentLabel, readOnly, required, value, }: TimePickerProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta, Story } from '@storybook/react';
2
2
  import { TimePickerProps } from './';
3
- declare const _default: ComponentMeta<({ ampm, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disableOpenPicker, disableClickAwayListener, disabled, error, format, fullWidth, helperText, hideActionButtons, inputId, inputName, label, onAccept, onBlur, onCancel, onChange, onClose, onKeyDown, onOpen, open, persistentLabel, readOnly, required, value, }: TimePickerProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ampm, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disableOpenPicker, disableClickAwayListener, disabled, error, format, fullWidth, helperText, hideActionButtons, inputId, inputName, label, onAccept, onBlur, onCancel, onChange, onClose, onKeyDown, onOpen, onPopperTimeChange, open, persistentLabel, readOnly, required, value, }: TimePickerProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: TimePickerProps;
6
6
  export declare const WithAutoFocus: any;
@@ -9,4 +9,4 @@ export interface TooltipProps extends CommonProps {
9
9
  placement?: tooltipPlacement;
10
10
  title?: ReactNode | string | number;
11
11
  }
12
- export declare const DotTooltip: ({ ariaLabel, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element;
12
+ export declare const DotTooltip: ({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { TooltipProps } from './Tooltip';
3
- declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ariaLabel, ariaRole, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<TooltipProps>;
@@ -2,6 +2,8 @@ import { ElementType, ReactNode } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  export declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'button' | 'overline' | 'inherit';
4
4
  export interface TypographyProps extends CommonProps {
5
+ /** When `ariaRole` is `heading` then set a level */
6
+ ariaLevel?: number;
5
7
  /** The content of the component. */
6
8
  children: ReactNode;
7
9
  /** The component used for the root node. Either a string to use a HTML element or a component. */
@@ -13,4 +15,4 @@ export interface TypographyProps extends CommonProps {
13
15
  /** Applies the theme typography styles. */
14
16
  variant?: TypographyVariant;
15
17
  }
16
- export declare const DotTypography: ({ ariaLabel, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => JSX.Element;
18
+ export declare const DotTypography: ({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Story, ComponentMeta } from '@storybook/react';
2
2
  import { TypographyProps } from './Typography';
3
- declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<TypographyProps>;
6
6
  export declare const WithVariants: Story<TypographyProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "2.7.4",
3
+ "version": "2.8.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [