@digital-ai/dot-components 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGE_LOG.md +27 -4
- package/index.esm.js +523 -407
- package/index.umd.js +706 -574
- package/lib/components/app-switcher/AppSwitcher.d.ts +2 -1
- package/lib/components/app-switcher/utils/helpers.d.ts +1 -1
- package/lib/components/auto-complete/AutoComplete.d.ts +3 -3
- package/lib/components/button/CopyButton.styles.d.ts +1 -1
- package/lib/components/drawer/Drawer.d.ts +1 -0
- package/lib/components/helpers.d.ts +1 -0
- package/lib/components/search-input/SearchInput.d.ts +11 -0
- package/lib/components/search-input/SearchInput.styles.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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
|
-
/**
|
|
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?:
|
|
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. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-copy-button";
|
|
2
|
-
export declare const StyledCopyButton: import("styled-components").StyledComponent<"
|
|
2
|
+
export declare const StyledCopyButton: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -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 = {
|
|
@@ -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,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;
|