@digital-ai/dot-components 3.12.0 → 3.13.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.
- package/index.esm.js +343 -219
- package/package.json +1 -1
- package/src/lib/components/analytics/dashboard-actions/DashboardPublishConfirm.styles.d.ts +1 -1
- package/src/lib/components/auto-complete/AutoComplete.d.ts +3 -1
- package/src/lib/components/card/CardHeader.styles.d.ts +2 -0
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/components/list/List.d.ts +1 -1
- package/src/lib/components/list/utils/models.d.ts +2 -0
- package/src/lib/components/popper/Popper.d.ts +3 -1
- package/src/lib/components/popper/Popper.data.d.ts +2 -0
- package/src/lib/components/popper/Popper.styles.d.ts +2 -0
package/package.json
CHANGED
|
@@ -2,5 +2,5 @@ export declare const dashboardCategoriesContainerClassName = "dashboard-categori
|
|
|
2
2
|
export declare const InlineMessage: import("styled-components").StyledComponent<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../../typography/Typography").TypographyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
3
3
|
export declare const StyledPublishConfirmDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const StyledAppSelectDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const StyledAppSelectDotAutoComplete: import("styled-components").StyledComponent<(<T extends import("../..").AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: import("../../auto-complete/AutoComplete").AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element), any, {}, never>;
|
|
5
|
+
export declare const StyledAppSelectDotAutoComplete: import("styled-components").StyledComponent<(<T extends import("../..").AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: import("../../auto-complete/AutoComplete").AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element), any, {}, never>;
|
|
6
6
|
export declare const StyledAppSelectAutoCompleteOption: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
@@ -75,6 +75,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
75
75
|
placeholder?: string;
|
|
76
76
|
/** Classname to be included in the autocomplete popper **/
|
|
77
77
|
popperClassName?: string;
|
|
78
|
+
/** If true, group order (as specified by the consumer) will be preserved. Default group sorting is used when not specified. */
|
|
79
|
+
preserveGroupOrder?: boolean;
|
|
78
80
|
/** If true: popper cannot be opened, TextField is in read only mode, change is not allowed */
|
|
79
81
|
readOnly?: boolean;
|
|
80
82
|
/** Render group function, group prop must be true for the function to be used **/
|
|
@@ -92,4 +94,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
92
94
|
/** If true, the label will be displayed in a warning state. */
|
|
93
95
|
warning?: boolean;
|
|
94
96
|
}
|
|
95
|
-
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -94,6 +94,7 @@ export { DotLink } from './link/Link';
|
|
|
94
94
|
export { DotList } from './list';
|
|
95
95
|
export { DotMenu } from './menu/Menu';
|
|
96
96
|
export { DotMetadataApiProvider, useDotMetadataApiContext, } from './analytics/metadata-api/MetadataApiProvider';
|
|
97
|
+
export { DashboardView } from './analytics/metadata-api/openapi';
|
|
97
98
|
export { DotNavigationRail } from './navigation-rail';
|
|
98
99
|
export { DotPill } from './pill/Pill';
|
|
99
100
|
export { DotProgress } from './progress';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ListProps } from './utils/models';
|
|
2
|
-
export declare const DotList: ({ ariaLabel, ariaRole, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const DotList: ({ ariaLabel, ariaRole, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListCloseOnClickAway, nestedListType, width, }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,6 +20,8 @@ export interface ListProps extends CommonProps {
|
|
|
20
20
|
menuPlacement?: PopperPlacement;
|
|
21
21
|
/** If nested type is 'drawer', determines the width of the left spacing */
|
|
22
22
|
nestedDrawerLeftSpacing?: number;
|
|
23
|
+
/** Determines if expandable nested items will be closed on click away, by default is true */
|
|
24
|
+
nestedListCloseOnClickAway?: boolean;
|
|
23
25
|
/** If 'menu' the nested list will be displayed as a flyout nav, else it will be an expand/collapse toggle list */
|
|
24
26
|
nestedListType?: NestedListType;
|
|
25
27
|
/** Width of list, defaults to 240px */
|
|
@@ -20,6 +20,8 @@ export interface PopperProps extends CommonProps {
|
|
|
20
20
|
children: ReactNode;
|
|
21
21
|
/** Disable the portal behavior. If `true`, children stay within parent DOM hierarchy. */
|
|
22
22
|
disablePortal?: boolean;
|
|
23
|
+
/** If true, the popper will have an arrow */
|
|
24
|
+
hasArrow?: boolean;
|
|
23
25
|
/** Used to specify the position more indepth, https://popper.js.org/docs/v2/modifiers/ */
|
|
24
26
|
modifiers?: ModifersProps[];
|
|
25
27
|
/** Event callback when leaving popper by clicking away */
|
|
@@ -29,5 +31,5 @@ export interface PopperProps extends CommonProps {
|
|
|
29
31
|
/** Popper placement. */
|
|
30
32
|
placement?: PopperPlacementType;
|
|
31
33
|
}
|
|
32
|
-
export declare const DotPopper: ({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, modifiers, onClickAway, open, placement, }: PopperProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const DotPopper: ({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, hasArrow, modifiers, onClickAway, open, placement, }: PopperProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
35
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent } from 'react';
|
|
2
|
+
import { PopperPlacementType } from '@mui/material';
|
|
2
3
|
export interface PopperTestWrapperProps {
|
|
3
4
|
dataTestId?: string;
|
|
4
5
|
disablePortal?: boolean;
|
|
5
6
|
onClickAway?: (event: KeyboardEvent | MouseEvent<Document>) => void;
|
|
6
7
|
}
|
|
7
8
|
export declare const PopperTestWrapper: (props: PopperTestWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const POPPER_PLACEMENT_OPTIONS: PopperPlacementType[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const rootClassName = "dot-popper";
|
|
3
|
+
export declare const arrowClassName = "MuiPopper-arrow";
|
|
3
4
|
export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperProps, "direction"> & {
|
|
4
5
|
component?: import("react").ElementType<any>;
|
|
5
6
|
components?: {
|
|
@@ -10,3 +11,4 @@ export declare const StyledPopper: import("styled-components").StyledComponent<i
|
|
|
10
11
|
};
|
|
11
12
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
12
13
|
} & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
14
|
+
export declare const StyledArrow: import("styled-components").StyledComponent<"span", any, {}, never>;
|