@digital-ai/dot-components 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ export type { ButtonProps } from './Button';
2
+ export type { IconButtonProps, IconButtonColor, IconButtonSize, } from './IconButton';
3
+ export { DotButton } from './Button';
4
+ export { DotIconButton } from './IconButton';
@@ -1,10 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { FileWithPath } from 'react-dropzone';
3
2
  import { CommonProps } from '../CommonProps';
3
+ export interface ListItemFile {
4
+ id: string | number;
5
+ path: string;
6
+ }
4
7
  export interface FileItemProps extends CommonProps {
5
- deleteFile: (file: FileWithPath) => void;
8
+ deleteFile: (fileIndex: string | number) => void;
9
+ disableDelete?: boolean;
6
10
  error?: boolean;
7
11
  errorText?: string;
8
- file: FileWithPath;
12
+ file: ListItemFile;
13
+ onClick?: (file: ListItemFile) => void;
9
14
  }
10
- export declare const DotFileListItem: ({ ariaLabel, className, "data-testid": dataTestId, deleteFile, error, errorText, file, }: FileItemProps) => JSX.Element;
15
+ export declare const DotFileListItem: ({ ariaLabel, className, "data-testid": dataTestId, deleteFile, disableDelete, error, errorText, file, onClick, }: FileItemProps) => JSX.Element;
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ export declare const rootClassName = "dot-file-list-item";
3
+ export declare const StyledFileListItem: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").ListItemTypeMap<{
4
+ button?: false;
5
+ }, "li">> & ((props: {
6
+ href: string;
7
+ } & {
8
+ button: true;
9
+ } & {
10
+ alignItems?: "center" | "flex-start";
11
+ autoFocus?: boolean;
12
+ button?: boolean;
13
+ ContainerComponent?: import("react").ElementType<import("react").HTMLAttributes<HTMLDivElement>>;
14
+ ContainerProps?: import("react").HTMLAttributes<HTMLDivElement>;
15
+ dense?: boolean;
16
+ disabled?: boolean;
17
+ disableGutters?: boolean;
18
+ divider?: boolean;
19
+ focusVisibleClassName?: string;
20
+ selected?: boolean;
21
+ } & {
22
+ action?: import("react").Ref<import("@material-ui/core").ButtonBaseActions>;
23
+ buttonRef?: import("react").Ref<unknown>;
24
+ centerRipple?: boolean;
25
+ children?: import("react").ReactNode;
26
+ disabled?: boolean;
27
+ disableRipple?: boolean;
28
+ disableTouchRipple?: boolean;
29
+ focusRipple?: boolean;
30
+ focusVisibleClassName?: string;
31
+ onFocusVisible?: import("react").FocusEventHandler<any>;
32
+ tabIndex?: string | number;
33
+ TouchRippleProps?: Partial<import("@material-ui/core/ButtonBase/TouchRipple").TouchRippleProps>;
34
+ } & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").ExtendButtonBaseTypeMap<import("@material-ui/core").ListItemTypeMap<{
35
+ button: true;
36
+ }, "div">>> & Pick<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
37
+ ref?: import("react").Ref<HTMLAnchorElement>;
38
+ }, "slot" | "title" | "type" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "download" | "href" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy">) => JSX.Element) & import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").ExtendButtonBaseTypeMap<import("@material-ui/core").ListItemTypeMap<{
39
+ button: true;
40
+ }, "div">>>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
- import { MappedFile } from './uploadHelpers';
3
+ import { MappedFile } from './utils/models';
4
+ import { ListItemFile } from './FileListItem';
4
5
  export interface FileUploadProps extends CommonProps {
5
6
  /** Unique file type specifiers <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers" target="_blank">More Info</a> */
6
7
  accept?: Array<string>;
@@ -8,7 +9,9 @@ export interface FileUploadProps extends CommonProps {
8
9
  buttonOnly?: boolean;
9
10
  /** If true, the upload zone will be disabled */
10
11
  disabled?: boolean;
11
- /** Defines the maximum number of files that can be uploaded at once */
12
+ /** If true, upload file list won't be displayed. Used when consumer wants to render his own list. */
13
+ hideFilesList?: boolean;
14
+ /** Defines the maximum number of files that can be uploaded */
12
15
  maxFiles?: number;
13
16
  /** Defines the maximum file size (in MB) */
14
17
  maxSize: number;
@@ -16,5 +19,7 @@ export interface FileUploadProps extends CommonProps {
16
19
  onChange: (files: Array<MappedFile>) => void;
17
20
  /** callback triggered when dragenter event occurs */
18
21
  onDragEnter?: (event: React.DragEvent<HTMLDivElement>) => void;
22
+ /** Optional callback which gets triggered when the file (from the list) is clicked. */
23
+ onFileClick?: (file: ListItemFile) => void;
19
24
  }
20
- export declare const DotFileUpload: ({ accept, ariaLabel, buttonOnly, className, "data-testid": dataTestId, disabled, maxFiles, maxSize, onChange, onDragEnter, }: FileUploadProps) => JSX.Element;
25
+ export declare const DotFileUpload: ({ accept, ariaLabel, buttonOnly, className, "data-testid": dataTestId, disabled, hideFilesList, maxFiles, maxSize, onChange, onDragEnter, onFileClick, }: FileUploadProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { FileUploadProps } from './';
3
+ export interface CustomFileUploadArgs {
4
+ args: FileUploadProps;
5
+ }
6
+ export declare const CustomFileUpload: ({ args }: CustomFileUploadArgs) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const withCustomFileUploadListClassName = "dot-custom-file-upload-list";
2
+ export declare const StyledWithCustomFileUploadList: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,6 @@
1
+ export type { FileUploadError, MappedFile, MappedListItemFile, } from './utils/models';
2
+ export type { FileUploadProps } from './FileUpload';
3
+ export type { ListItemFile } from './FileListItem';
4
+ export type { FileItemProps } from './FileListItem';
5
+ export { DotFileUpload } from './FileUpload';
6
+ export { DotFileListItem } from './FileListItem';
@@ -0,0 +1,23 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { FileRejection } from 'react-dropzone';
3
+ import { DropzoneContentArgs, ParseListItemArgs, UploadedFilesListArgs } from './models';
4
+ export declare const renderMaxSizeMessage: (maxSizeMB: number) => ReactNode;
5
+ export declare const renderMaxFilesMessage: (maxFiles: number, maxFilesClasses: string) => ReactNode;
6
+ export declare const renderSelectFilesButton: (isUploadDisabled: boolean, onButtonClick: () => void) => ReactNode;
7
+ export declare const renderActiveDragArea: () => ReactNode;
8
+ export declare const renderDragAndDropArea: (isUploadDisabled: boolean, onSelectButtonClick: () => void) => ReactNode;
9
+ export declare const renderDropzoneContent: ({ buttonOnly, isDragActive, isUploadDisabled, open, }: DropzoneContentArgs) => React.ReactNode;
10
+ export declare const getUploadedFilesList: ({ maxSize, onFileClick, onFileDelete, uploadedFiles, }: UploadedFilesListArgs) => {
11
+ child: JSX.Element;
12
+ }[];
13
+ export declare const parseListItem: ({ onFileDelete, onFileClick, fileToBeParsed, index, maxSize, }: ParseListItemArgs) => {
14
+ child: JSX.Element;
15
+ };
16
+ export declare const mapAcceptedFiles: (files: File[]) => {
17
+ file: File;
18
+ errors: any[];
19
+ }[];
20
+ export declare const joinAcceptedAndRejectedFiles: (filesAccepted: File[], filesRejected: FileRejection[]) => {
21
+ file: File;
22
+ errors: any[];
23
+ }[];
@@ -0,0 +1,33 @@
1
+ import { FileWithPath } from 'react-dropzone';
2
+ import { ListItemFile } from '../FileListItem';
3
+ export interface FileUploadError {
4
+ code: string;
5
+ message: string;
6
+ }
7
+ export interface MappedListItemFile {
8
+ errors: FileUploadError[];
9
+ listItemFile: ListItemFile;
10
+ }
11
+ export interface MappedFile {
12
+ errors: Array<FileUploadError>;
13
+ file: FileWithPath;
14
+ }
15
+ export interface DropzoneContentArgs {
16
+ buttonOnly: boolean;
17
+ isDragActive: boolean;
18
+ isUploadDisabled: boolean;
19
+ open: () => void;
20
+ }
21
+ export interface UploadedFilesListArgs {
22
+ maxSize: number;
23
+ onFileClick?: (file: ListItemFile) => void;
24
+ onFileDelete: (fileIndexToBeRemoved: number) => void;
25
+ uploadedFiles: MappedFile[];
26
+ }
27
+ export interface ParseListItemArgs {
28
+ fileToBeParsed: MappedFile;
29
+ index: number;
30
+ maxSize: number;
31
+ onFileClick?: (file: ListItemFile) => void;
32
+ onFileDelete: (fileIndexToBeRemoved: number) => void;
33
+ }
@@ -2,24 +2,23 @@ export type { AppToolbarProps } from './app-toolbar/AppToolbar';
2
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
- export type { ButtonProps } from './button/Button';
5
+ export type { ButtonProps, IconButtonProps, IconButtonColor, IconButtonSize, } from './button';
6
6
  export type { ButtonToggleProps, ButtonToggleValue, ButtonToggleOption, ButtonToggleOrientation, ButtonToggleSingleValue, ButtonToggleSize, } from './button-toggle';
7
7
  export type { CheckboxProps } from './checkbox/Checkbox';
8
8
  export type { CheckboxGroupProps } from './checkbox/CheckboxGroup';
9
9
  export type { SubmitButtonProps } from './dialog/Dialog';
10
10
  export type { DynamicFormProps } from './dynamic-form/DynamicForm';
11
11
  export type { ConditionFunction, ControlClickHandler, DisabledConditionFunction, DisabledControlCondition, DynamicFormConfig, DynamicFormControl, DynamicFormControlProps, DynamicFormControlType, DynamicFormOutputData, DynamicFormSectionProps, DynamicFormState, DynamicFormStateItem, FieldValidation, } from './dynamic-form/models';
12
- export type { IconButtonProps } from './button/IconButton';
13
12
  export type { InputTextProps } from './input-form-fields/InputText';
14
13
  export type { InputSelectProps, InputSelectOption, } from './input-form-fields/InputSelect';
15
14
  export type { LinkUnderline } from './link/Link';
16
15
  export type { ListItemProps } from './list';
17
16
  export type { MenuItemProps } from './menu/Menu';
18
- export type { RailItem } from './navigation-rail/NavigationRail';
17
+ export type { RailItem, RailItemsPosition } from './navigation-rail';
19
18
  export type { RadioButtonProps } from './radio/RadioButton';
20
19
  export type { RadioGroupProps } from './radio/RadioGroup';
21
20
  export type { BackItemProps, SidebarProps } from './sidebar/Sidebar';
22
- export type { SwitchProps } from './switch/Switch';
21
+ export type { SwitchProps, SwitchColor, SwitchSize, SwitchLabelPlacement, } from './switch';
23
22
  export type { DotColumnHeader, MultiSelect, Order, RowSelectionChangeHandler, RowsPerPageOption, TableDataWithPagination, TableRowProps, TableRowSelectChangeHandler, TextAlignment, SortDirection, } from './table';
24
23
  export type { TabProps } from './tabs/Tabs';
25
24
  export type { TypographyVariant } from './typography/Typography';
@@ -32,6 +31,7 @@ export type { DraggableItem, DraggableListChangeHandler, } from './draggable-lis
32
31
  export type { SnackbarProps, SnackbarSeverity, SnackbarOrigin, } from './snackbar';
33
32
  export type { CharactersLimit, InlineEditProps } from './inline-edit';
34
33
  export type { progressColorOptions, progressVariantOptions, ProgressProps, } from './progress';
34
+ export type { FileItemProps, FileUploadError, FileUploadProps, ListItemFile, MappedFile, MappedListItemFile, } from './file-upload';
35
35
  export { DotAccordion } from './accordion/Accordion';
36
36
  export { DotActionToolbar } from './action-toolbar/ActionToolbar';
37
37
  export { DotAlertBanner } from './alert-banner/AlertBanner';
@@ -42,7 +42,7 @@ export { DotAvatar } from './avatar/Avatar';
42
42
  export { DotAvatarGroup } from './avatar-group/AvatarGroup';
43
43
  export { DotBadge } from './badge';
44
44
  export { DotBreadcrumbs } from './breadcrumbs/Breadcrumbs';
45
- export { DotButton } from './button/Button';
45
+ export { DotButton, DotIconButton } from './button';
46
46
  export { DotButtonToggle } from './button-toggle';
47
47
  export { DotCard } from './card/Card';
48
48
  export { DotCardContent } from './card/CardContent';
@@ -62,14 +62,13 @@ export { DotForm } from './form/Form';
62
62
  export { DotFormGroup } from './form-group/FormGroup';
63
63
  export { DotDynamicForm } from './dynamic-form/DynamicForm';
64
64
  export { DotIcon } from './icon/Icon';
65
- export { DotIconButton } from './button/IconButton';
66
65
  export { DotInlineEdit } from './inline-edit';
67
66
  export { DotInputText } from './input-form-fields/InputText';
68
67
  export { DotInputSelect } from './input-form-fields/InputSelect';
69
68
  export { DotLink } from './link/Link';
70
69
  export { DotList } from './list';
71
70
  export { DotMenu } from './menu/Menu';
72
- export { DotNavigationRail } from './navigation-rail/NavigationRail';
71
+ export { DotNavigationRail } from './navigation-rail';
73
72
  export { DotPill } from './pill/Pill';
74
73
  export { DotProgress } from './progress';
75
74
  export { DotRadioButton } from './radio/RadioButton';
@@ -79,12 +78,12 @@ export { DotSkeleton } from './skeleton/Skeleton';
79
78
  export { DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, useDotSnackbarContext, } from './snackbar';
80
79
  export { DotSplitButton } from './split-button/SplitButton';
81
80
  export { DotProgressButton } from './progress-button/ProgressButton';
82
- export { DotSwitch } from './switch/Switch';
81
+ export { DotSwitch } from './switch';
83
82
  export { DotHeaderRow, DotTable, DotTablePagination } from './table';
84
83
  export { DotTooltip } from './tooltip/Tooltip';
85
84
  export { DotTabs } from './tabs/Tabs';
86
85
  export { DotTypography } from './typography/Typography';
87
- export { DotFileUpload } from './file-upload/FileUpload';
86
+ export { DotFileUpload, DotFileListItem } from './file-upload';
88
87
  export { DotDivider } from './divider';
89
88
  export { DotPopper } from './popper';
90
89
  export { DotTruncateWithTooltip } from './truncate-with-tooltip';
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonProps } from '../CommonProps';
3
3
  import { TypographyVariant } from '../typography/Typography';
4
- import { CharactersLimit } from './utils/models';
4
+ import { CharactersLimit, InlineEditBinding } from './utils/models';
5
5
  export interface InlineEditProps extends CommonProps {
6
+ /** Optional array of bindings, used to replace targeted string in edit mode with the corresponding value in view mode */
7
+ bindings?: InlineEditBinding[];
6
8
  /** Characters limit configuration object */
7
9
  charactersLimit?: CharactersLimit;
8
10
  /** If true, the input will take up the full width of its container */
@@ -12,7 +14,7 @@ export interface InlineEditProps extends CommonProps {
12
14
  /** The name of input element */
13
15
  name: string;
14
16
  /** An async function which should be executed when the value of the input changes */
15
- onChange: (value: string) => Promise<boolean>;
17
+ onChange?: (value: string) => Promise<boolean>;
16
18
  /** A function that informs the parent of current editing state */
17
19
  onEditStateChange?: (editing: boolean) => void;
18
20
  /** If true, component will behave like a regular text (editing functionality will be disabled). */
@@ -25,4 +27,4 @@ export interface InlineEditProps extends CommonProps {
25
27
  /**
26
28
  * @experimental This component is still in development
27
29
  */
28
- export declare const DotInlineEdit: ({ ariaLabel, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, typography, value, }: InlineEditProps) => JSX.Element;
30
+ export declare const DotInlineEdit: ({ ariaLabel, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, typography, value, }: InlineEditProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const multipleBindingsClassName = "dot-multiple-bindings-story";
2
+ export declare const StyledWithMultipleBindings: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { InlineEditBinding } from './models';
2
3
  export declare const getCounterAdornment: (currentLength: number, maxLength: number, dataTestId?: string) => ReactNode | undefined;
3
4
  export declare const getWarningAdornment: () => JSX.Element;
5
+ export declare const applyBindings: (bindings: InlineEditBinding[], inlineEditText: string) => ReactNode;
@@ -3,3 +3,11 @@ export interface CharactersLimit {
3
3
  hideCounter?: boolean;
4
4
  maxLength: number;
5
5
  }
6
+ export interface InlineEditBinding {
7
+ /** String, written in edit mode, which will be bound to the actual value in view mode */
8
+ binding: string;
9
+ /** Optional prop used to define custom CSS for the value when in view mode */
10
+ className?: string;
11
+ /** Value which will be displayed in view mode */
12
+ value: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ export declare const programmaticNavigationClassName = "dot-programmatic-navigation-story";
2
+ export declare const StyledWithProgrammaticNavigation: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ export type { RailItemsPosition, RailItem, NavigationRailProps, } from './NavigationRail';
2
+ export { DotNavigationRail } from './NavigationRail';
@@ -0,0 +1,2 @@
1
+ export type { SwitchProps, SwitchColor, SwitchSize, SwitchLabelPlacement, } from './Switch';
2
+ export { DotSwitch } from './Switch';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "1.13.0",
3
+ "version": "1.15.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { FileWithPath } from 'react-dropzone';
3
- export interface MappedFile {
4
- errors: Array<FileUploadError>;
5
- file: FileWithPath;
6
- }
7
- export interface FileUploadError {
8
- code: string;
9
- message: string;
10
- }
11
- export declare const parseListItem: (deleteFile: (file: FileWithPath) => void, fileToBeParsed: MappedFile, maxSize: number) => {
12
- child: JSX.Element;
13
- };