@digital-ai/dot-components 2.4.0 → 2.5.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 (69) hide show
  1. package/CHANGE_LOG.md +44 -11
  2. package/README.md +15 -0
  3. package/index.esm.js +523 -407
  4. package/index.umd.js +706 -574
  5. package/lib/Typography.stories.d.ts +4 -0
  6. package/lib/components/accordion/Accordion.stories.d.ts +8 -0
  7. package/lib/components/action-toolbar/ActionToolbar.stories.d.ts +5 -0
  8. package/lib/components/alert-banner/AlertBanner.stories.d.ts +5 -0
  9. package/lib/components/app-switcher/AppSwitcher.d.ts +2 -1
  10. package/lib/components/app-switcher/utils/helpers.d.ts +1 -1
  11. package/lib/components/app-toolbar/AppToolbar.stories.d.ts +8 -0
  12. package/lib/components/auto-complete/AutoComplete.d.ts +3 -3
  13. package/lib/components/auto-complete/AutoComplete.stories.d.ts +22 -0
  14. package/lib/components/avatar/Avatar.stories.d.ts +7 -0
  15. package/lib/components/avatar-group/AvatarGroup.stories.d.ts +5 -0
  16. package/lib/components/badge/Badge.stories.d.ts +8 -0
  17. package/lib/components/breadcrumbs/Breadcrumbs.stories.d.ts +5 -0
  18. package/lib/components/button/Button.stories.d.ts +11 -0
  19. package/lib/components/button/CopyButton.stories.d.ts +5 -0
  20. package/lib/components/button/CopyButton.styles.d.ts +1 -1
  21. package/lib/components/button/IconButton.stories.d.ts +10 -0
  22. package/lib/components/button-toggle/ButtonToggle.stories.d.ts +11 -0
  23. package/lib/components/card/Card.stories.d.ts +6 -0
  24. package/lib/components/checkbox/Checkbox.stories.d.ts +9 -0
  25. package/lib/components/checkbox/CheckboxGroup.stories.d.ts +6 -0
  26. package/lib/components/chip/Chip.stories.d.ts +8 -0
  27. package/lib/components/confirmation-dialog/ConfirmationDialog.stories.d.ts +6 -0
  28. package/lib/components/css-grid/CssGrid.stories.d.ts +7 -0
  29. package/lib/components/dialog/Dialog.stories.d.ts +5 -0
  30. package/lib/components/divider/Divider.stories.d.ts +6 -0
  31. package/lib/components/draggable-list/DraggableList.stories.d.ts +10 -0
  32. package/lib/components/drawer/Drawer.d.ts +1 -0
  33. package/lib/components/drawer/Drawer.stories.d.ts +9 -0
  34. package/lib/components/dynamic-form/DynamicForm.stories.d.ts +5 -0
  35. package/lib/components/dynamic-form/utils/helpers.d.ts +1 -1
  36. package/lib/components/empty-state/EmptyState.stories.d.ts +5 -0
  37. package/lib/components/file-upload/FileUpload.stories.d.ts +8 -0
  38. package/lib/components/form/Form.stories.d.ts +5 -0
  39. package/lib/components/form-group/FormGroup.stories.d.ts +5 -0
  40. package/lib/components/helpers.d.ts +1 -0
  41. package/lib/components/icon/Icon.stories.d.ts +5 -0
  42. package/lib/components/inline-edit/InlineEdit.stories.d.ts +15 -0
  43. package/lib/components/input-form-fields/InputSelect.stories.d.ts +10 -0
  44. package/lib/components/input-form-fields/InputText.stories.d.ts +14 -0
  45. package/lib/components/linear-progress/LinearProgress.stories.d.ts +13 -0
  46. package/lib/components/link/Link.stories.d.ts +6 -0
  47. package/lib/components/list/List.stories.d.ts +6 -0
  48. package/lib/components/menu/Menu.stories.d.ts +9 -0
  49. package/lib/components/navigation-rail/NavigationRail.stories.d.ts +7 -0
  50. package/lib/components/pill/Pill.stories.d.ts +5 -0
  51. package/lib/components/popper/Popper.stories.d.ts +6 -0
  52. package/lib/components/progress/Progress.stories.d.ts +9 -0
  53. package/lib/components/progress-button/ProgressButton.stories.d.ts +5 -0
  54. package/lib/components/radio/RadioButton.stories.d.ts +5 -0
  55. package/lib/components/radio/RadioGroup.stories.d.ts +7 -0
  56. package/lib/components/search-input/SearchInput.d.ts +11 -0
  57. package/lib/components/search-input/SearchInput.styles.d.ts +2 -0
  58. package/lib/components/sidebar/Sidebar.stories.d.ts +8 -0
  59. package/lib/components/skeleton/Skeleton.stories.d.ts +5 -0
  60. package/lib/components/snackbar/Snackbar.stories.d.ts +6 -0
  61. package/lib/components/split-button/SplitButton.stories.d.ts +9 -0
  62. package/lib/components/switch/Switch.stories.d.ts +12 -0
  63. package/lib/components/table/Table.stories.d.ts +10 -0
  64. package/lib/components/table/TablePagination.stories.d.ts +5 -0
  65. package/lib/components/tabs/Tabs.stories.d.ts +6 -0
  66. package/lib/components/tooltip/Tooltip.stories.d.ts +5 -0
  67. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.stories.d.ts +8 -0
  68. package/lib/components/typography/Typography.stories.d.ts +7 -0
  69. package/package.json +3 -3
@@ -0,0 +1,4 @@
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>;
3
+ export default _default;
4
+ export declare const Default: Story;
@@ -0,0 +1,8 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { AccordionProps } from './Accordion';
3
+ declare const _default: ComponentMeta<({ actions, ariaLabel, children, className, "data-testid": dataTestId, disabled, expanded, hasElevation, onChange, square, startIcon, summary, noWrap, }: AccordionProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<AccordionProps>;
6
+ export declare const WithExpanded: Story<AccordionProps>;
7
+ export declare const WithStartIcons: Story<AccordionProps>;
8
+ export declare const WithNoWrap: Story<AccordionProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { DotActionBarProps } from './ActionToolbar';
3
+ declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, variant, }: DotActionBarProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<DotActionBarProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { AlertBannerProps } from './AlertBanner';
3
+ declare const _default: ComponentMeta<({ action, ariaLabel, children, className, "data-testid": dataTestId, onClose, roundedCorners, severity, textVariant, }: AlertBannerProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<AlertBannerProps>;
@@ -9,6 +9,7 @@ interface CommonAppSwitcherProps extends CommonProps {
9
9
  activeApp: ActiveAppInfo;
10
10
  noAppTypeLabel?: string;
11
11
  onClose?: (event: MouseEvent | KeyboardEvent) => void;
12
+ searchInstancesThreshold?: number;
12
13
  yOffset?: number;
13
14
  zIndex?: number;
14
15
  }
@@ -18,7 +19,7 @@ interface AppSwitcherViewProps extends CommonAppSwitcherProps {
18
19
  platformConsoleUrl?: string;
19
20
  selectedAppType: string;
20
21
  }
21
- export declare const DotAppSwitcherView: ({ activeApp, apps, className, noAppTypeLabel, platformConsoleUrl, onClose, open, selectedAppType, yOffset, zIndex, }: AppSwitcherViewProps) => JSX.Element;
22
+ export declare const DotAppSwitcherView: ({ activeApp, apps, className, noAppTypeLabel, platformConsoleUrl, onClose, open, searchInstancesThreshold, selectedAppType, yOffset, zIndex, }: AppSwitcherViewProps) => JSX.Element;
22
23
  interface AppSwitcherProps extends CommonAppSwitcherProps {
23
24
  accountId?: string;
24
25
  includePlatformConsole?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { MenuItemProps } from '../../menu/Menu';
3
3
  export declare const getLogoForAppType: (appType: string) => string;
4
- export declare const daiAppsHeaderMenuItem: {
4
+ export declare const daiAppsHeaderMenuItem: (count?: number) => {
5
5
  children: JSX.Element;
6
6
  key: string;
7
7
  disabled: boolean;
@@ -0,0 +1,8 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { AppToolbarProps } from './AppToolbar';
3
+ declare const _default: ComponentMeta<({ ariaLabel, appLogo, appLogoHref, appLogoSmall, avatar, borderColor, children, className, closeMenuOnItemClick, customLogo, "data-testid": dataTestId, dense, mainMenu, mainMenuItems, mainMenuWidth, menuCloseOnClickAway, navItems, onClickAway, primaryLogoHref, }: AppToolbarProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<AppToolbarProps>;
6
+ export declare const WithoutMenu: Story<AppToolbarProps>;
7
+ export declare const WithCustomMenu: Story<AppToolbarProps>;
8
+ export declare const WithCustomMenuClose: Story<AppToolbarProps>;
@@ -1,6 +1,7 @@
1
1
  import { ChangeEvent, FocusEvent, HTMLAttributes, ReactNode, Ref, JSXElementConstructor } from 'react';
2
2
  import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@mui/material';
3
3
  import { CommonProps } from '../CommonProps';
4
+ import { inputSizeOptions } from '../input-form-fields/InputFormFields.propTypes';
4
5
  export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
5
6
  export interface ActionItem {
6
7
  /** The icon to display on the button */
@@ -12,7 +13,6 @@ export interface ActionItem {
12
13
  /** Text/Node displayed */
13
14
  text?: string | ReactNode;
14
15
  }
15
- export declare type autoCompleteSize = 'medium' | 'small';
16
16
  export declare type AutoCompleteValue = string | string[] | AutoCompleteOption | AutoCompleteOption[] | null;
17
17
  export interface AutoCompleteOption {
18
18
  error?: boolean;
@@ -32,7 +32,7 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
32
32
  autoFocus?: boolean;
33
33
  /** default option that is selected */
34
34
  defaultValue?: AutoCompleteValue;
35
- /** When `true` input textbox will be small size, when `false` it will be medium size. Default value is `true`. **/
35
+ /** Controls size of chip spacing within the autocomplete **/
36
36
  dense?: boolean;
37
37
  /** Disable the portal behavior. If true, children stay within parent DOM hierarchy. */
38
38
  disablePortal?: boolean;
@@ -88,7 +88,7 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
88
88
  /** If true, the input will be required and label will display accordingly */
89
89
  required?: boolean;
90
90
  /** Determines the padding within the input field 'medium' or 'small' */
91
- size?: autoCompleteSize;
91
+ size?: inputSizeOptions;
92
92
  /** value if this is a controlled component */
93
93
  value?: AutoCompleteValue;
94
94
  /** If true, the label will be displayed in a warning state. */
@@ -0,0 +1,22 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { AutoCompleteOption, AutoCompleteProps } from './AutoComplete';
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, 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)>;
5
+ export default _default;
6
+ export declare const Default: any;
7
+ export declare const WithActionItem: any;
8
+ export declare const WithCustomActionItem: Story<AutoCompleteProps>;
9
+ export declare const WithAsyncLoad: Story<AutoCompleteProps>;
10
+ declare type AutoCompleteWithRenderOptionProps = AutoCompleteProps<AutoCompleteWithRenderOption>;
11
+ export declare const WithRenderOption: Story<AutoCompleteWithRenderOptionProps>;
12
+ export declare const WithChipError: Story<AutoCompleteProps>;
13
+ export declare const WithoutChips: Story<AutoCompleteWithRenderOptionProps>;
14
+ export declare const WithNullAsValue: Story<AutoCompleteProps>;
15
+ export declare const WithMaxHeight: any;
16
+ export declare const WithCustomBlur: Story<AutoCompleteProps>;
17
+ export declare const WithReadOnly: any;
18
+ export declare const WithWarning: any;
19
+ export declare const WithError: any;
20
+ export declare const WithLabel: any;
21
+ export declare const WithPersistentLabel: any;
22
+ export declare const WithFixedVirtualList: Story<AutoCompleteProps>;
@@ -0,0 +1,7 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<AvatarProps>;
6
+ export declare const AvatarButton: Story<AvatarProps>;
7
+ export declare const WithTooltip: Story<AvatarProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { AvatarGroupProps } from './AvatarGroup';
3
+ declare const _default: ComponentMeta<({ ariaLabel, avatars, className, "data-testid": dataTestId, max, spacing, }: AvatarGroupProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<AvatarGroupProps>;
@@ -0,0 +1,8 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { BadgeProps } from './Badge';
3
+ declare const _default: ComponentMeta<({ ariaLabel, badgeColor, badgeContent, children, className, "data-testid": dataTestId, invisible, max, overlap, variant, }: BadgeProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<BadgeProps>;
6
+ export declare const WithNotification: Story<BadgeProps>;
7
+ export declare const WithNotificationNumber: Story<BadgeProps>;
8
+ export declare const WithMaxNumber: Story<BadgeProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { BreadcrumbProps } from './Breadcrumbs';
3
+ declare const _default: ComponentMeta<({ className, "data-testid": dataTestId, expansionMenu, items, maxItems, }: BreadcrumbProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<BreadcrumbProps>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from '@storybook/react';
3
+ import { ButtonProps } from './Button';
4
+ declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>>;
5
+ export default _default;
6
+ export declare const Default: any;
7
+ export declare const WithStartIcon: any;
8
+ export declare const WithEndIcon: any;
9
+ export declare const WithDestructiveType: any;
10
+ export declare const WithOutlinedType: any;
11
+ export declare const WithTextType: any;
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta } from '@storybook/react';
2
+ import { CopyButtonProps } from './CopyButton';
3
+ declare const _default: ComponentMeta<({ ariaLabel, copiedTooltip, copyTooltip, "data-testid": dataTestId, value, }: CopyButtonProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: any;
@@ -1,2 +1,2 @@
1
1
  export declare const rootClassName = "dot-copy-button";
2
- export declare const StyledCopyButton: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const StyledCopyButton: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -0,0 +1,10 @@
1
+ import { ComponentMeta } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: any;
6
+ export declare const WithPrimaryColor: any;
7
+ export declare const WithSecondaryColor: any;
8
+ export declare const WithSmallSize: any;
9
+ export declare const WithDisabledState: any;
10
+ export declare const WithDisabledRipple: any;
@@ -0,0 +1,11 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { ButtonToggleProps } from './';
3
+ declare const _default: ComponentMeta<({ ariaLabel, buttonOptions, className, color, "data-testid": dataTestId, disableFocusRipple, disableRipple, exclusive, onChange, orientation, size, value, }: ButtonToggleProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<ButtonToggleProps>;
6
+ export declare const WithTooltip: Story<ButtonToggleProps>;
7
+ export declare const WithDifferentValueTypes: Story<ButtonToggleProps>;
8
+ export declare const WithExclusivity: Story<ButtonToggleProps>;
9
+ export declare const WithSmallSize: Story<ButtonToggleProps>;
10
+ export declare const WithLargeSize: Story<ButtonToggleProps>;
11
+ export declare const WithPrimaryColor: Story<ButtonToggleProps>;
@@ -0,0 +1,6 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { CardProps } from './Card';
3
+ declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, }: CardProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<CardProps>;
6
+ export declare const ComplexCardWithMedia: Story<CardProps>;
@@ -0,0 +1,9 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { CheckboxProps, DotCheckbox } from './Checkbox';
3
+ declare const _default: ComponentMeta<typeof DotCheckbox>;
4
+ export default _default;
5
+ export declare const Default: Story<CheckboxProps>;
6
+ export declare const WithSmallSize: Story<CheckboxProps>;
7
+ export declare const WithStartLabelPlacement: Story<CheckboxProps>;
8
+ export declare const WithBottomLabelPlacement: Story<CheckboxProps>;
9
+ export declare const WithIndeterminateOption: Story<CheckboxProps>;
@@ -0,0 +1,6 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { DotCheckboxGroup, CheckboxGroupProps } from './CheckboxGroup';
3
+ declare const _default: ComponentMeta<typeof DotCheckboxGroup>;
4
+ export default _default;
5
+ export declare const Default: Story<CheckboxGroupProps>;
6
+ export declare const WithHelperText: any;
@@ -0,0 +1,8 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { ChipProps } from './Chip';
3
+ declare const _default: ComponentMeta<({ ariaLabel, avatar, charactersLimit, children, className, "data-testid": dataTestId, disabled, error, isClickable, isDeletable, onClick, onDelete, size, startIcon, }: ChipProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<ChipProps>;
6
+ export declare const ChipWithAvatar: Story<ChipProps>;
7
+ export declare const ChipWithIcon: Story<ChipProps>;
8
+ export declare const ChipWithLongText: Story<ChipProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentMeta } from '@storybook/react';
2
+ import { ConfirmationDialogProps } from './ConfirmationDialog';
3
+ declare const _default: ComponentMeta<({ ariaLabel, cancelButtonProps, className, "data-testid": dataTestId, message, onCancel, onSubmit, submitButtonProps, open, title, }: ConfirmationDialogProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: any;
6
+ export declare const WithCustomTitleAndMessage: any;
@@ -0,0 +1,7 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { CssGridProps } from './CssGrid';
3
+ declare const _default: ComponentMeta<(props: CssGridProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<CssGridProps>;
6
+ export declare const DebugCssGrid: Story<CssGridProps>;
7
+ export declare const CssGridCell: Story<CssGridProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { DialogProps } from './Dialog';
3
+ declare const _default: ComponentMeta<({ ariaLabel, cancelButtonProps, cancelButtonVisible, className, "data-testid": dataTestId, children, closeIconVisible, closeOnClickAway, hasPrimaryAction, onCancel, onSubmit, open, submitButtonProps, title, }: DialogProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<DialogProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { DividerProps } from './Divider';
3
+ declare const _default: ComponentMeta<({ absolute, ariaLabel, className, "data-testid": dataTestId, flexItem, light, orientation, variant, }: DividerProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<DividerProps>;
6
+ export declare const WithVerticalOrientation: (args: any) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ComponentMeta } from '@storybook/react';
2
+ import { DraggableListProps } from './';
3
+ declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, disableDrag, draggableHandle, items, onChange, rowHeight, width, }: DraggableListProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: any;
6
+ export declare const WithCustomWidth: any;
7
+ export declare const WithAvatar: any;
8
+ export declare const WithIcons: any;
9
+ export declare const WithDisabledDrag: any;
10
+ export declare const WithDraggableHandle: any;
@@ -4,6 +4,7 @@ export declare type DrawerAnchor = 'bottom' | 'left' | 'right' | 'top';
4
4
  export declare type DrawerVariant = 'permanent' | 'persistent' | 'temporary';
5
5
  export declare type DrawerModalProps = {
6
6
  container?: Element;
7
+ hideBackdrop?: boolean;
7
8
  style?: CSSProperties;
8
9
  };
9
10
  export declare type DrawerPaperProps = {
@@ -0,0 +1,9 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<DrawerProps>;
6
+ export declare const WithHeader: Story<DrawerProps>;
7
+ export declare const WithBodyOnly: Story<DrawerProps>;
8
+ export declare const WithFooter: Story<DrawerProps>;
9
+ export declare const WithHeaderBodyFooter: Story<DrawerProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { DynamicFormProps } from './DynamicForm';
3
+ declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, config, disabled: isFormDisabled, liveValidation, onChange, onSubmit, }: DynamicFormProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<DynamicFormProps>;
@@ -1,5 +1,5 @@
1
1
  import { ControlCondition, DisabledControlCondition, DynamicFormConfig, DynamicFormOutputData, DynamicFormState, DynamicFormStateData } from '../models';
2
- export declare const getControlValue: <T extends unknown>(controlName: string, data: DynamicFormStateData) => T;
2
+ export declare const getControlValue: <T>(controlName: string, data: DynamicFormStateData) => T;
3
3
  export declare const getOutputFormData: (formState: DynamicFormState) => DynamicFormOutputData;
4
4
  export declare const checkIfHiddenControl: (hidden: ControlCondition, formValues: DynamicFormOutputData) => boolean;
5
5
  export declare const checkIfDisabledControl: (disabled: DisabledControlCondition, formValues: DynamicFormOutputData, isFormValid: boolean) => boolean;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { EmptyStateProps } from './EmptyState';
3
+ declare const _default: ComponentMeta<({ ariaLabel, buttonProps, className, "data-testid": dataTestId, imageAltText, imageSrc, subtitle, title, }: EmptyStateProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<EmptyStateProps>;
@@ -0,0 +1,8 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<FileUploadProps>;
6
+ export declare const WithSingleFileLimit: Story<FileUploadProps>;
7
+ export declare const WithCustomFileUploadList: Story<FileUploadProps>;
8
+ export declare const WithUploadErrors: Story<FileUploadProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { FormProps } from './Form';
3
+ declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, onSubmit, }: FormProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<FormProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { DotFormGroup, FormGroupProps } from './FormGroup';
3
+ declare const _default: ComponentMeta<typeof DotFormGroup>;
4
+ export default _default;
5
+ export declare const Default: Story<FormGroupProps>;
@@ -5,6 +5,7 @@ export declare const calculateNumberFromText: (text: string) => number;
5
5
  export declare const calculateWidth: (width: number | string) => string | undefined;
6
6
  export declare const getAvatarColorForInputText: (value: string) => AvatarColor;
7
7
  export declare const isString: (str: unknown) => boolean;
8
+ export declare const isLowerCase: (str: string) => boolean;
8
9
  export declare const isNumber: (num: unknown) => boolean;
9
10
  export declare const renderNodeOrTypography: (content: string | ReactNode, typographyVariant?: TypographyVariant) => ReactNode;
10
11
  export declare const searchString: (needle: string, haystack: string) => boolean;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { IconProps } from './Icon';
3
+ declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<IconProps>;
@@ -0,0 +1,15 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { InlineEditProps } from './InlineEdit';
3
+ declare const _default: ComponentMeta<({ ariaLabel, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, selectTextOnEdit, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<InlineEditProps>;
6
+ export declare const WithCharactersLimit: any;
7
+ export declare const WithMultipleLines: any;
8
+ export declare const WithReadOnlyMode: any;
9
+ export declare const WithoutActionButtons: any;
10
+ export declare const WithTooltip: any;
11
+ export declare const WithSaveError: Story<InlineEditProps>;
12
+ export declare const WithCustomTypography: Story<InlineEditProps>;
13
+ export declare const WithSingleBinding: any;
14
+ export declare const WithMultipleBindings: Story<InlineEditProps>;
15
+ export declare const WithSelectOnEdit: any;
@@ -0,0 +1,10 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<InputSelectProps>;
6
+ export declare const WithPersistentLabel: Story<InputSelectProps>;
7
+ export declare const WithError: Story<InputSelectProps>;
8
+ export declare const WithSuccess: Story<InputSelectProps>;
9
+ export declare const WithWarning: Story<InputSelectProps>;
10
+ export declare const WithReadOnly: Story<InputSelectProps>;
@@ -0,0 +1,14 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<InputTextProps>;
6
+ export declare const WithPersistentLabel: Story<InputTextProps>;
7
+ export declare const WithHelperText: Story<InputTextProps>;
8
+ export declare const WithError: Story<InputTextProps>;
9
+ export declare const WithSuccess: Story<InputTextProps>;
10
+ export declare const WithWarning: Story<InputTextProps>;
11
+ export declare const WithErrorTooltip: Story<InputTextProps>;
12
+ export declare const WithWarningTooltip: Story<InputTextProps>;
13
+ export declare const WithReadOnly: Story<InputTextProps>;
14
+ export declare const WithMultiline: Story<InputTextProps>;
@@ -0,0 +1,13 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { LinearProgressProps } from './LinearProgress';
3
+ declare const _default: ComponentMeta<({ ariaLabel, color, className, "data-testid": dataTestId, value, valueBuffer, variant, }: LinearProgressProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<LinearProgressProps>;
6
+ export declare const WithDeterminateVariant: any;
7
+ export declare const WithBufferVariant: any;
8
+ export declare const WithQueryVariant: any;
9
+ export declare const WithPrimaryColor: any;
10
+ export declare const WithSecondaryColor: any;
11
+ export declare const WithErrorColor: any;
12
+ export declare const WithWarningColor: any;
13
+ export declare const WithPurpleColor: any;
@@ -0,0 +1,6 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { LinkProps } from './Link';
3
+ declare const _default: ComponentMeta<({ ariaLabel, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, rel, tabIndex, target, tooltip, underline, }: LinkProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<LinkProps>;
6
+ export declare const LinkInParagraph: Story<LinkProps>;
@@ -0,0 +1,6 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<ListProps>;
6
+ export declare const WithoutIcons: Story<ListProps>;
@@ -0,0 +1,9 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<MenuProps>;
6
+ export declare const ButtonMenu: Story<MenuProps>;
7
+ export declare const TableMenu: Story<MenuProps>;
8
+ export declare const WithCustomHeight: Story<MenuProps>;
9
+ export declare const WithMultiLevelMenu: Story<MenuProps>;
@@ -0,0 +1,7 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { NavigationRailProps } from './NavigationRail';
3
+ declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, onChange, railItemPosition, railItems, selectedIndex, }: NavigationRailProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<NavigationRailProps>;
6
+ export declare const WithProgrammaticNavigation: Story<NavigationRailProps>;
7
+ export declare const WithBadges: Story<NavigationRailProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { PillProps } from './Pill';
3
+ declare const _default: ComponentMeta<({ ariaLabel, backgroundcolor, bordercolor, className, "data-testid": dataTestId, icon, label, labelcolor, size, status, variant, }: PillProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<PillProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { PopperProps } from './Popper';
3
+ declare const _default: ComponentMeta<({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, onClickAway, open, placement, }: PopperProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<PopperProps>;
6
+ export declare const WithButtonAnchor: Story<PopperProps>;
@@ -0,0 +1,9 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { ProgressProps } from './Progress';
3
+ declare const _default: ComponentMeta<({ ariaLabel, color, className, "data-testid": dataTestId, size, thickness, tooltip, value, variant, }: ProgressProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<ProgressProps>;
6
+ export declare const WithPrimaryColor: any;
7
+ export declare const WithCustomSizeAndThickness: any;
8
+ export declare const WithDeterminateVariant: any;
9
+ export declare const WithPercentageSimulation: (args: ProgressProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { ProgressButtonProps } from './ProgressButton';
3
+ declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, disabled, disableRipple, fullWidth, isLoading, isSubmit, onClick, size, tooltip, type, }: ProgressButtonProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<ProgressButtonProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { DotRadioButton, RadioButtonProps } from './RadioButton';
3
+ declare const _default: ComponentMeta<typeof DotRadioButton>;
4
+ export default _default;
5
+ export declare const Default: Story<RadioButtonProps>;
@@ -0,0 +1,7 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
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>;
4
+ export default _default;
5
+ export declare const Default: Story<RadioGroupProps>;
6
+ export declare const WithHelperText: any;
7
+ export declare const WithRowAndHelperText: any;
@@ -0,0 +1,11 @@
1
+ import { CommonProps } from '../CommonProps';
2
+ export interface SearchInputProps extends CommonProps {
3
+ autoFocus?: boolean;
4
+ disabled?: boolean;
5
+ onChange?: (searchText: string) => void;
6
+ onClear?: () => void;
7
+ placeholder?: string;
8
+ tooltip?: string;
9
+ value: string;
10
+ }
11
+ export declare function SearchInput({ 'data-testid': dataTestId, autoFocus, className, disabled, onChange, onClear, placeholder, tooltip, value, }: SearchInputProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const rootClassName = "dot-search-input";
2
+ export declare const StyledSearchInput: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -0,0 +1,8 @@
1
+ import { ComponentMeta, Story } from '@storybook/react';
2
+ import { SidebarProps } from './Sidebar';
3
+ declare const _default: ComponentMeta<({ appLogo, appLogoSmall, ariaLabel, backItem, brandDesc, children, className, collapsable, "data-testid": dataTestId, displayAppLogo, displayBrand, goBack, navItems, nestedListType, onCollapseChange, open, title, titleAvatarProps, width, }: SidebarProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<SidebarProps>;
6
+ export declare const WithReactRouter: Story<SidebarProps>;
7
+ export declare const WithTooltipsWhenCollapsed: Story<SidebarProps>;
8
+ export declare const WithBackItem: Story<SidebarProps>;
@@ -0,0 +1,5 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { SkeletonProps } from './Skeleton';
3
+ declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, height, width, variant, }: SkeletonProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<SkeletonProps>;
@@ -0,0 +1,6 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { SnackbarProps } from './';
3
+ declare const _default: ComponentMeta<({ action, anchorOrigin, ariaLabel, children, className, "data-testid": dataTestId, onClose, open, severity, width, }: SnackbarProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<SnackbarProps>;
6
+ export declare const WithBottomCenterAnchor: Story<SnackbarProps>;
@@ -0,0 +1,9 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { SplitButtonProps } from './SplitButton';
3
+ declare const _default: ComponentMeta<({ autoFocus, ariaLabel, className, "data-testid": dataTestId, defaultMainOptionKey, disabled, disablePortal, disableRipple, fullWidth, isSubmit, onOptionClick, options, size, tooltip, type, }: SplitButtonProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<SplitButtonProps>;
6
+ export declare const WithSelectedKey: Story<SplitButtonProps>;
7
+ export declare const WithMainOptionDisabled: Story<SplitButtonProps>;
8
+ export declare const WithMenuOptionDisabled: Story<SplitButtonProps>;
9
+ export declare const WithMenuButtonDisabled: Story<SplitButtonProps>;
@@ -0,0 +1,12 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { SwitchProps } from './';
3
+ declare const _default: ComponentMeta<({ ariaLabel, checked, className, color, "data-testid": dataTestId, disabled, id, inputRef, label, labelPlacement, onChange, size, }: SwitchProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<SwitchProps>;
6
+ export declare const WithSecondaryColor: Story<SwitchProps>;
7
+ export declare const WithDisabledState: Story<SwitchProps>;
8
+ export declare const WithSmallSize: Story<SwitchProps>;
9
+ export declare const WithStartLabelPlacement: Story<SwitchProps>;
10
+ export declare const WithBottomLabelPlacement: Story<SwitchProps>;
11
+ export declare const WithTopLabelPlacement: Story<SwitchProps>;
12
+ export declare const WithoutLabel: Story<SwitchProps>;
@@ -0,0 +1,10 @@
1
+ import { Story, ComponentMeta } from '@storybook/react';
2
+ import { TableProps } from './Table';
3
+ declare const _default: ComponentMeta<({ ariaLabel, bodyTypography, className, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Default: Story<TableProps>;
6
+ export declare const LocallyPaginatedTable: Story<TableProps>;
7
+ export declare const RemotelyPaginatedTable: Story<TableProps>;
8
+ export declare const WithActionMenu: Story<TableProps>;
9
+ export declare const WithCheckboxSelection: Story<TableProps>;
10
+ export declare const EmptyTable: Story<TableProps>;